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,408 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, input, ChangeDetectionStrategy, Component, output, computed } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { NgControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import * as i2 from '@angular/material/form-field';
|
|
6
|
+
import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
|
|
7
|
+
import * as i3$1 from '@angular/material/icon';
|
|
8
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
+
import * as i1$1 from '@angular/material/button';
|
|
10
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
+
import * as i5 from '@angular/material/tooltip';
|
|
12
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
|
+
import { B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
|
|
14
|
+
import { Subject } from 'rxjs';
|
|
15
|
+
import * as i8 from '@angular/material/select';
|
|
16
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
17
|
+
import { OptionSelectTypes } from 'ngx-t-forms-types';
|
|
18
|
+
import * as i4 from '@angular/material/chips';
|
|
19
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
20
|
+
import * as i13 from '@angular/material/radio';
|
|
21
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
22
|
+
import * as i3 from '@angular/material/checkbox';
|
|
23
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
24
|
+
import * as i6 from '@angular/material/list';
|
|
25
|
+
import { MatListModule } from '@angular/material/list';
|
|
26
|
+
import { TitleCasePipe } from '@angular/common';
|
|
27
|
+
|
|
28
|
+
function SelectInputComponent_Case_0_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
+
i0.ɵɵelementStart(0, "mat-chip-option", 4);
|
|
30
|
+
i0.ɵɵtext(1);
|
|
31
|
+
i0.ɵɵelementEnd();
|
|
32
|
+
} if (rf & 2) {
|
|
33
|
+
const option_r3 = ctx.$implicit;
|
|
34
|
+
i0.ɵɵproperty("value", option_r3.value);
|
|
35
|
+
i0.ɵɵadvance();
|
|
36
|
+
i0.ɵɵtextInterpolate(option_r3.label);
|
|
37
|
+
} }
|
|
38
|
+
function SelectInputComponent_Case_0_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
40
|
+
i0.ɵɵelementStart(0, "mat-chip-listbox", 3);
|
|
41
|
+
i0.ɵɵlistener("change", function SelectInputComponent_Case_0_Template_mat_chip_listbox_change_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectionChange($event)); });
|
|
42
|
+
i0.ɵɵrepeaterCreate(1, SelectInputComponent_Case_0_For_2_Template, 2, 2, "mat-chip-option", 4, i0.ɵɵrepeaterTrackByIndex);
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
} if (rf & 2) {
|
|
45
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
46
|
+
i0.ɵɵproperty("multiple", !!ctx_r1.inputConfig().allowMultipleSelection)("value", ctx_r1.value)("disabled", ctx_r1.controlDisabled);
|
|
47
|
+
i0.ɵɵadvance();
|
|
48
|
+
i0.ɵɵrepeater(ctx_r1.getSelectOptions());
|
|
49
|
+
} }
|
|
50
|
+
function SelectInputComponent_Case_1_Conditional_0_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
52
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 7);
|
|
53
|
+
i0.ɵɵlistener("change", function SelectInputComponent_Case_1_Conditional_0_For_1_Template_mat_checkbox_change_0_listener($event) { const option_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.checkBoxChanged($event, option_r5.value)); });
|
|
54
|
+
i0.ɵɵtext(1);
|
|
55
|
+
i0.ɵɵelementEnd();
|
|
56
|
+
} if (rf & 2) {
|
|
57
|
+
const option_r5 = ctx.$implicit;
|
|
58
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
59
|
+
i0.ɵɵproperty("value", option_r5.value)("checked", ctx_r1.isSelected(option_r5.value))("disabled", ctx_r1.controlDisabled);
|
|
60
|
+
i0.ɵɵadvance();
|
|
61
|
+
i0.ɵɵtextInterpolate1(" ", option_r5.label, "\n");
|
|
62
|
+
} }
|
|
63
|
+
function SelectInputComponent_Case_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
+
i0.ɵɵrepeaterCreate(0, SelectInputComponent_Case_1_Conditional_0_For_1_Template, 2, 4, "mat-checkbox", 6, i0.ɵɵrepeaterTrackByIndex);
|
|
65
|
+
} if (rf & 2) {
|
|
66
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
67
|
+
i0.ɵɵrepeater(ctx_r1.getSelectOptions());
|
|
68
|
+
} }
|
|
69
|
+
function SelectInputComponent_Case_1_Conditional_1_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
+
i0.ɵɵelementStart(0, "mat-radio-button", 9);
|
|
71
|
+
i0.ɵɵtext(1);
|
|
72
|
+
i0.ɵɵelementEnd();
|
|
73
|
+
} if (rf & 2) {
|
|
74
|
+
const option_r7 = ctx.$implicit;
|
|
75
|
+
i0.ɵɵproperty("value", option_r7.value);
|
|
76
|
+
i0.ɵɵadvance();
|
|
77
|
+
i0.ɵɵtextInterpolate(option_r7.label);
|
|
78
|
+
} }
|
|
79
|
+
function SelectInputComponent_Case_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
81
|
+
i0.ɵɵelementStart(0, "mat-radio-group", 8);
|
|
82
|
+
i0.ɵɵlistener("change", function SelectInputComponent_Case_1_Conditional_1_Template_mat_radio_group_change_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onSelectionChange($event)); });
|
|
83
|
+
i0.ɵɵrepeaterCreate(1, SelectInputComponent_Case_1_Conditional_1_For_2_Template, 2, 2, "mat-radio-button", 9, i0.ɵɵrepeaterTrackByIndex);
|
|
84
|
+
i0.ɵɵelementEnd();
|
|
85
|
+
} if (rf & 2) {
|
|
86
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
87
|
+
i0.ɵɵproperty("value", ctx_r1.value)("disabled", ctx_r1.controlDisabled);
|
|
88
|
+
i0.ɵɵadvance();
|
|
89
|
+
i0.ɵɵrepeater(ctx_r1.getSelectOptions());
|
|
90
|
+
} }
|
|
91
|
+
function SelectInputComponent_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
+
i0.ɵɵconditionalCreate(0, SelectInputComponent_Case_1_Conditional_0_Template, 2, 0)(1, SelectInputComponent_Case_1_Conditional_1_Template, 3, 2, "mat-radio-group", 5);
|
|
93
|
+
} if (rf & 2) {
|
|
94
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
95
|
+
i0.ɵɵconditional(!!ctx_r1.inputConfig().allowMultipleSelection ? 0 : 1);
|
|
96
|
+
} }
|
|
97
|
+
function SelectInputComponent_Case_2_For_3_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
98
|
+
i0.ɵɵelementStart(0, "mat-list-item", 12);
|
|
99
|
+
i0.ɵɵelement(1, "img", 13);
|
|
100
|
+
i0.ɵɵelementStart(2, "div", 14);
|
|
101
|
+
i0.ɵɵtext(3);
|
|
102
|
+
i0.ɵɵpipe(4, "titlecase");
|
|
103
|
+
i0.ɵɵelementEnd();
|
|
104
|
+
i0.ɵɵelementStart(5, "div", 15);
|
|
105
|
+
i0.ɵɵtext(6);
|
|
106
|
+
i0.ɵɵelementEnd()();
|
|
107
|
+
} if (rf & 2) {
|
|
108
|
+
const option_r9 = i0.ɵɵnextContext().$implicit;
|
|
109
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
110
|
+
i0.ɵɵadvance();
|
|
111
|
+
i0.ɵɵproperty("src", ctx_r1.getAvatar(option_r9.username), i0.ɵɵsanitizeUrl);
|
|
112
|
+
i0.ɵɵadvance(2);
|
|
113
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, option_r9.username));
|
|
114
|
+
i0.ɵɵadvance(3);
|
|
115
|
+
i0.ɵɵtextInterpolate1(" ", option_r9.email);
|
|
116
|
+
} }
|
|
117
|
+
function SelectInputComponent_Case_2_For_3_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
118
|
+
i0.ɵɵtext(0);
|
|
119
|
+
} if (rf & 2) {
|
|
120
|
+
const option_r9 = i0.ɵɵnextContext().$implicit;
|
|
121
|
+
i0.ɵɵtextInterpolate1(" ", option_r9.label, " ");
|
|
122
|
+
} }
|
|
123
|
+
function SelectInputComponent_Case_2_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
124
|
+
i0.ɵɵelementStart(0, "mat-option", 11);
|
|
125
|
+
i0.ɵɵconditionalCreate(1, SelectInputComponent_Case_2_For_3_Case_1_Template, 7, 5, "mat-list-item", 12)(2, SelectInputComponent_Case_2_For_3_Case_2_Template, 1, 1);
|
|
126
|
+
i0.ɵɵelementEnd();
|
|
127
|
+
} if (rf & 2) {
|
|
128
|
+
let tmp_14_0;
|
|
129
|
+
const option_r9 = ctx.$implicit;
|
|
130
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
131
|
+
i0.ɵɵproperty("value", option_r9.value)("disabled", ctx_r1.controlDisabled);
|
|
132
|
+
i0.ɵɵadvance();
|
|
133
|
+
i0.ɵɵconditional((tmp_14_0 = (tmp_14_0 = ctx_r1.inputConfig().matOptions) == null ? null : tmp_14_0.optionType) === "user" ? 1 : 2);
|
|
134
|
+
} }
|
|
135
|
+
function SelectInputComponent_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
136
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
137
|
+
i0.ɵɵelementStart(0, "mat-select", 10, 0);
|
|
138
|
+
i0.ɵɵlistener("selectionChange", function SelectInputComponent_Case_2_Template_mat_select_selectionChange_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectionChange($event)); });
|
|
139
|
+
i0.ɵɵrepeaterCreate(2, SelectInputComponent_Case_2_For_3_Template, 3, 3, "mat-option", 11, i0.ɵɵrepeaterTrackByIndex);
|
|
140
|
+
i0.ɵɵelementEnd();
|
|
141
|
+
} if (rf & 2) {
|
|
142
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
143
|
+
i0.ɵɵproperty("multiple", !!ctx_r1.inputConfig().allowMultipleSelection)("value", ctx_r1.value)("disabled", ctx_r1.controlDisabled);
|
|
144
|
+
i0.ɵɵadvance(2);
|
|
145
|
+
i0.ɵɵrepeater(ctx_r1.getSelectOptions());
|
|
146
|
+
} }
|
|
147
|
+
const customInputConfig = {
|
|
148
|
+
controlType: 'lib-select-input',
|
|
149
|
+
nextId: 0,
|
|
150
|
+
};
|
|
151
|
+
class SelectInputComponent extends BaseCustomInput {
|
|
152
|
+
constructor() {
|
|
153
|
+
super(inject(NgControl, { optional: true, self: true }), inject(ElementRef), customInputConfig);
|
|
154
|
+
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
155
|
+
this.optionSelectTypes = OptionSelectTypes;
|
|
156
|
+
this.#valueSubject = new Subject();
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* True when the control must not accept selection changes — either the form
|
|
160
|
+
* control was disabled (`BaseCustomInput.disabled`) or the descriptor marks the
|
|
161
|
+
* field `readonly`/`disabled`. Mirrors the reference `readonly || disabled`
|
|
162
|
+
* contract so every option-select variant blocks interaction uniformly.
|
|
163
|
+
*/
|
|
164
|
+
get controlDisabled() {
|
|
165
|
+
const cfg = this.inputConfig();
|
|
166
|
+
return this.disabled || !!cfg?.readonly || !!cfg?.disabled;
|
|
167
|
+
}
|
|
168
|
+
get empty() {
|
|
169
|
+
return !this.value;
|
|
170
|
+
}
|
|
171
|
+
get shouldLabelFloat() {
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
#valueSubject;
|
|
175
|
+
onInputChange($event) {
|
|
176
|
+
this.#valueSubject.next($event);
|
|
177
|
+
}
|
|
178
|
+
onSelectionChange(event) {
|
|
179
|
+
this.value = event.value;
|
|
180
|
+
this.stateChanges.next();
|
|
181
|
+
this.onChange(this.value);
|
|
182
|
+
}
|
|
183
|
+
checkBoxChanged(event, value) {
|
|
184
|
+
const current = Array.isArray(this.value) ? this.value : [];
|
|
185
|
+
if (event.checked) {
|
|
186
|
+
this.value = [...current, value];
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
this.value = current.filter((v) => v !== value);
|
|
190
|
+
}
|
|
191
|
+
this.stateChanges.next();
|
|
192
|
+
this.onChange(this.value);
|
|
193
|
+
}
|
|
194
|
+
isSelected(value) {
|
|
195
|
+
if (!this.value || !Array.isArray(this.value))
|
|
196
|
+
return false;
|
|
197
|
+
return this.value.includes(value);
|
|
198
|
+
}
|
|
199
|
+
// NOTE(phase-4): `matOptions.options` is `(FormInputBasicOptionInterface | DynamicObjectInterface)[]`
|
|
200
|
+
// but templates access `.value`, `.label`, `.username`, `.email` directly. Until the template
|
|
201
|
+
// is split per `optionType`, the return shape stays `any[]` to keep strictTemplates passing.
|
|
202
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split template per matOptions.optionType, then narrow.
|
|
203
|
+
getSelectOptions() {
|
|
204
|
+
const cfg = this.inputConfig();
|
|
205
|
+
if (!cfg?.matOptions)
|
|
206
|
+
return [];
|
|
207
|
+
if (Array.isArray(cfg.matOptions?.options)) {
|
|
208
|
+
return cfg.matOptions?.options || [];
|
|
209
|
+
}
|
|
210
|
+
return [];
|
|
211
|
+
}
|
|
212
|
+
getAvatar(userName) {
|
|
213
|
+
return `https://ui-avatars.com/api/?color=EADDFF&font-size=0.36&bold=true&background=random&name=${userName}`;
|
|
214
|
+
}
|
|
215
|
+
get inputControl() {
|
|
216
|
+
return this.ngControl?.control ?? null;
|
|
217
|
+
}
|
|
218
|
+
static { this.ɵfac = function SelectInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectInputComponent)(); }; }
|
|
219
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectInputComponent, selectors: [["lib-select-input"]], hostVars: 3, hostBindings: function SelectInputComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
220
|
+
i0.ɵɵdomProperty("id", ctx.id);
|
|
221
|
+
i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
|
|
222
|
+
} }, inputs: { inputConfig: [1, "inputConfig"] }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: SelectInputComponent }]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 1, consts: [["sele", ""], ["aria-l", "", "abel", "Chip select options", 3, "multiple", "value", "disabled"], [3, "multiple", "value", "disabled"], ["aria-l", "", "abel", "Chip select options", 3, "change", "multiple", "value", "disabled"], [3, "value"], ["aria-labelledby", "example-radio-group-label", 1, "example-radio-group", 3, "value", "disabled"], [1, "example-margin", 3, "value", "checked", "disabled"], [1, "example-margin", 3, "change", "value", "checked", "disabled"], ["aria-labelledby", "example-radio-group-label", 1, "example-radio-group", 3, "change", "value", "disabled"], [1, "example-radio-button", 3, "value"], [3, "selectionChange", "multiple", "value", "disabled"], [3, "value", "disabled"], [2, "padding", "0px"], ["matListItemAvatar", "", 3, "src"], ["matListItemTitle", ""], ["matListItemLine", ""]], template: function SelectInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
223
|
+
i0.ɵɵconditionalCreate(0, SelectInputComponent_Case_0_Template, 3, 3, "mat-chip-listbox", 1)(1, SelectInputComponent_Case_1_Template, 2, 1)(2, SelectInputComponent_Case_2_Template, 4, 3, "mat-select", 2);
|
|
224
|
+
} if (rf & 2) {
|
|
225
|
+
let tmp_0_0;
|
|
226
|
+
i0.ɵɵconditional((tmp_0_0 = ctx.inputConfig().optionSelectType) === ctx.optionSelectTypes.ChipSelect ? 0 : tmp_0_0 === ctx.optionSelectTypes.RadioButton ? 1 : 2);
|
|
227
|
+
} }, dependencies: [ReactiveFormsModule,
|
|
228
|
+
MatSelectModule, i8.MatSelect, i8.MatOption, MatChipsModule, i4.MatChipListbox, i4.MatChipOption, MatRadioModule, i13.MatRadioGroup, i13.MatRadioButton, MatCheckboxModule, i3.MatCheckbox, MatListModule, i6.MatListItem, i6.MatListItemAvatar, i6.MatListItemLine, i6.MatListItemTitle, TitleCasePipe], encapsulation: 2, changeDetection: 0 }); }
|
|
229
|
+
}
|
|
230
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectInputComponent, [{
|
|
231
|
+
type: Component,
|
|
232
|
+
args: [{ selector: 'lib-select-input', imports: [
|
|
233
|
+
ReactiveFormsModule,
|
|
234
|
+
MatSelectModule,
|
|
235
|
+
MatChipsModule,
|
|
236
|
+
MatRadioModule,
|
|
237
|
+
MatCheckboxModule,
|
|
238
|
+
MatListModule,
|
|
239
|
+
TitleCasePipe,
|
|
240
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
241
|
+
'[class.floating]': 'shouldLabelFloat',
|
|
242
|
+
'[id]': 'id',
|
|
243
|
+
}, providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }], template: "@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track $index) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n" }]
|
|
244
|
+
}], () => [], { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }] }); })();
|
|
245
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectInputComponent, { className: "SelectInputComponent", filePath: "lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.ts", lineNumber: 40 }); })();
|
|
246
|
+
|
|
247
|
+
function SelectInputElementComponent_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
248
|
+
i0.ɵɵelementStart(0, "mat-hint", 4);
|
|
249
|
+
i0.ɵɵtext(1);
|
|
250
|
+
i0.ɵɵelementEnd();
|
|
251
|
+
} if (rf & 2) {
|
|
252
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
253
|
+
i0.ɵɵadvance();
|
|
254
|
+
i0.ɵɵtextInterpolate1(" ", inputConfig_r1.temporaryHint || inputConfig_r1.hintLabel, " ");
|
|
255
|
+
} }
|
|
256
|
+
function SelectInputElementComponent_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
257
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
258
|
+
i0.ɵɵelementStart(0, "button", 12);
|
|
259
|
+
i0.ɵɵlistener("click", function SelectInputElementComponent_Conditional_1_Conditional_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const inputConfig_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(inputConfig_r1.canReload.emit()); });
|
|
260
|
+
i0.ɵɵelementStart(1, "mat-icon", 13);
|
|
261
|
+
i0.ɵɵtext(2, "sync");
|
|
262
|
+
i0.ɵɵelementEnd()();
|
|
263
|
+
} }
|
|
264
|
+
function SelectInputElementComponent_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
265
|
+
i0.ɵɵelementStart(0, "mat-icon", 7);
|
|
266
|
+
i0.ɵɵtext(1);
|
|
267
|
+
i0.ɵɵelementEnd();
|
|
268
|
+
} if (rf & 2) {
|
|
269
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
270
|
+
i0.ɵɵadvance();
|
|
271
|
+
i0.ɵɵtextInterpolate(inputConfig_r1.prefixIcon);
|
|
272
|
+
} }
|
|
273
|
+
function SelectInputElementComponent_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
274
|
+
i0.ɵɵelementStart(0, "mat-icon", 8);
|
|
275
|
+
i0.ɵɵtext(1);
|
|
276
|
+
i0.ɵɵelementEnd();
|
|
277
|
+
} if (rf & 2) {
|
|
278
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
279
|
+
i0.ɵɵadvance();
|
|
280
|
+
i0.ɵɵtextInterpolate(inputConfig_r1.suffixIcon);
|
|
281
|
+
} }
|
|
282
|
+
function SelectInputElementComponent_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
283
|
+
i0.ɵɵelementStart(0, "span", 9);
|
|
284
|
+
i0.ɵɵtext(1);
|
|
285
|
+
i0.ɵɵelementEnd();
|
|
286
|
+
} if (rf & 2) {
|
|
287
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
288
|
+
i0.ɵɵadvance();
|
|
289
|
+
i0.ɵɵtextInterpolate(inputConfig_r1.prefixText);
|
|
290
|
+
} }
|
|
291
|
+
function SelectInputElementComponent_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
292
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
293
|
+
i0.ɵɵtext(1);
|
|
294
|
+
i0.ɵɵelementEnd();
|
|
295
|
+
} if (rf & 2) {
|
|
296
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
297
|
+
i0.ɵɵadvance();
|
|
298
|
+
i0.ɵɵtextInterpolate(inputConfig_r1.suffixText);
|
|
299
|
+
} }
|
|
300
|
+
function SelectInputElementComponent_Conditional_1_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
301
|
+
i0.ɵɵelementStart(0, "mat-hint", 11);
|
|
302
|
+
i0.ɵɵtext(1);
|
|
303
|
+
i0.ɵɵelementEnd();
|
|
304
|
+
} if (rf & 2) {
|
|
305
|
+
let tmp_3_0;
|
|
306
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
307
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
308
|
+
i0.ɵɵadvance();
|
|
309
|
+
i0.ɵɵtextInterpolate1(" ", (((tmp_3_0 = ctx_r2.formGroup().controls[inputConfig_r1.id]) == null ? null : tmp_3_0.value == null ? null : tmp_3_0.value.length) || 0) + "/" + inputConfig_r1.maxLength, " ");
|
|
310
|
+
} }
|
|
311
|
+
function SelectInputElementComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
312
|
+
i0.ɵɵelementStart(0, "mat-form-field", 1)(1, "mat-label");
|
|
313
|
+
i0.ɵɵtext(2);
|
|
314
|
+
i0.ɵɵelement(3, "lib-t-form-input-status", 2);
|
|
315
|
+
i0.ɵɵelementEnd();
|
|
316
|
+
i0.ɵɵelement(4, "lib-select-input", 3);
|
|
317
|
+
i0.ɵɵconditionalCreate(5, SelectInputElementComponent_Conditional_1_Conditional_5_Template, 2, 1, "mat-hint", 4);
|
|
318
|
+
i0.ɵɵelementStart(6, "mat-error", 5);
|
|
319
|
+
i0.ɵɵtext(7);
|
|
320
|
+
i0.ɵɵelementEnd();
|
|
321
|
+
i0.ɵɵconditionalCreate(8, SelectInputElementComponent_Conditional_1_Conditional_8_Template, 3, 0, "button", 6);
|
|
322
|
+
i0.ɵɵconditionalCreate(9, SelectInputElementComponent_Conditional_1_Conditional_9_Template, 2, 1, "mat-icon", 7);
|
|
323
|
+
i0.ɵɵconditionalCreate(10, SelectInputElementComponent_Conditional_1_Conditional_10_Template, 2, 1, "mat-icon", 8);
|
|
324
|
+
i0.ɵɵconditionalCreate(11, SelectInputElementComponent_Conditional_1_Conditional_11_Template, 2, 1, "span", 9);
|
|
325
|
+
i0.ɵɵconditionalCreate(12, SelectInputElementComponent_Conditional_1_Conditional_12_Template, 2, 1, "span", 10);
|
|
326
|
+
i0.ɵɵconditionalCreate(13, SelectInputElementComponent_Conditional_1_Conditional_13_Template, 2, 1, "mat-hint", 11);
|
|
327
|
+
i0.ɵɵelementEnd();
|
|
328
|
+
} if (rf & 2) {
|
|
329
|
+
const inputConfig_r1 = ctx;
|
|
330
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
331
|
+
i0.ɵɵproperty("appearance", inputConfig_r1.appearance || "fill");
|
|
332
|
+
i0.ɵɵadvance(2);
|
|
333
|
+
i0.ɵɵtextInterpolate1(" ", inputConfig_r1.label, " ");
|
|
334
|
+
i0.ɵɵadvance();
|
|
335
|
+
i0.ɵɵproperty("inputConfig", inputConfig_r1);
|
|
336
|
+
i0.ɵɵadvance();
|
|
337
|
+
i0.ɵɵproperty("inputConfig", inputConfig_r1)("required", inputConfig_r1.required)("formControlName", inputConfig_r1.id);
|
|
338
|
+
i0.ɵɵadvance();
|
|
339
|
+
i0.ɵɵconditional(inputConfig_r1.hintLabel || inputConfig_r1.temporaryHint ? 5 : -1);
|
|
340
|
+
i0.ɵɵadvance(2);
|
|
341
|
+
i0.ɵɵtextInterpolate(ctx_r2.errorMessage());
|
|
342
|
+
i0.ɵɵadvance();
|
|
343
|
+
i0.ɵɵconditional((inputConfig_r1.canReload == null ? null : inputConfig_r1.canReload.canReload) ? 8 : -1);
|
|
344
|
+
i0.ɵɵadvance();
|
|
345
|
+
i0.ɵɵconditional(inputConfig_r1.prefixIcon ? 9 : -1);
|
|
346
|
+
i0.ɵɵadvance();
|
|
347
|
+
i0.ɵɵconditional(inputConfig_r1.suffixIcon && inputConfig_r1.id !== "password" ? 10 : -1);
|
|
348
|
+
i0.ɵɵadvance();
|
|
349
|
+
i0.ɵɵconditional(inputConfig_r1.prefixText ? 11 : -1);
|
|
350
|
+
i0.ɵɵadvance();
|
|
351
|
+
i0.ɵɵconditional(inputConfig_r1.suffixText ? 12 : -1);
|
|
352
|
+
i0.ɵɵadvance();
|
|
353
|
+
i0.ɵɵconditional(inputConfig_r1.maxLength && ctx_r2.formGroup() ? 13 : -1);
|
|
354
|
+
} }
|
|
355
|
+
/** Wraps a reactive select control inside a `mat-form-field`. */
|
|
356
|
+
class SelectInputElementComponent {
|
|
357
|
+
constructor() {
|
|
358
|
+
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
359
|
+
this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
|
|
360
|
+
this.reload = output();
|
|
361
|
+
this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
362
|
+
this.errorStateMatcher = {
|
|
363
|
+
isErrorState(control, _form) {
|
|
364
|
+
return !!(control && control.invalid && (control.dirty || control.touched));
|
|
365
|
+
},
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
getSelectOptions() {
|
|
369
|
+
const cfg = this.inputConfig();
|
|
370
|
+
if (!cfg.matOptions)
|
|
371
|
+
return [];
|
|
372
|
+
if (Array.isArray(cfg.matOptions?.options)) {
|
|
373
|
+
return cfg.matOptions.options ?? [];
|
|
374
|
+
}
|
|
375
|
+
return [];
|
|
376
|
+
}
|
|
377
|
+
selectInputSearchWord(event) {
|
|
378
|
+
this.optionsSearchWordKeyWord = event.detail.value.toUpperCase();
|
|
379
|
+
}
|
|
380
|
+
static { this.ɵfac = function SelectInputElementComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectInputElementComponent)(); }; }
|
|
381
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectInputElementComponent, selectors: [["lib-select-input-element"]], inputs: { inputConfig: [1, "inputConfig"], formGroup: [1, "formGroup"] }, outputs: { reload: "reload" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["subscriptSizing", "dynamic", 3, "appearance"], [3, "inputConfig"], [3, "inputConfig", "required", "formControlName"], [1, "inputHint"], ["matTooltipClass", "errorToolTip", 1, "oneLineTextEllipsis"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px"], ["matPrefix", ""], ["matSuffix", ""], ["matPrefix", "", 2, "top", "0"], ["matSuffix", "", 2, "padding-left", "5px"], ["align", "end"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px", 3, "click"], [2, "color", "var(--mat-sys-primary)"]], template: function SelectInputElementComponent_Template(rf, ctx) { if (rf & 1) {
|
|
382
|
+
i0.ɵɵelementContainerStart(0, 0);
|
|
383
|
+
i0.ɵɵconditionalCreate(1, SelectInputElementComponent_Conditional_1_Template, 14, 14, "mat-form-field", 1);
|
|
384
|
+
i0.ɵɵelementContainerEnd();
|
|
385
|
+
} if (rf & 2) {
|
|
386
|
+
let tmp_1_0;
|
|
387
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup());
|
|
388
|
+
i0.ɵɵadvance();
|
|
389
|
+
i0.ɵɵconditional((tmp_1_0 = ctx.inputConfig()) ? 1 : -1, tmp_1_0);
|
|
390
|
+
} }, dependencies: [ReactiveFormsModule, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.FormGroupDirective, i1.FormControlName, MatFormFieldModule, i2.MatFormField, i2.MatLabel, i2.MatHint, i2.MatError, i2.MatPrefix, i2.MatSuffix, MatIconModule, i3$1.MatIcon, MatButtonModule, i1$1.MatIconButton, MatTooltipModule, i5.MatTooltip, SelectInputComponent,
|
|
391
|
+
TFormInputStatusComponent], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%!important}mat-form-field[_ngcontent-%COMP%] .input-sync-button[_ngcontent-%COMP%]{display:none}mat-form-field[_ngcontent-%COMP%]:hover .input-sync-button[_ngcontent-%COMP%]{display:inline-block}"], changeDetection: 0 }); }
|
|
392
|
+
}
|
|
393
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectInputElementComponent, [{
|
|
394
|
+
type: Component,
|
|
395
|
+
args: [{ selector: 'lib-select-input-element', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
396
|
+
ReactiveFormsModule,
|
|
397
|
+
MatFormFieldModule,
|
|
398
|
+
MatIconModule,
|
|
399
|
+
MatButtonModule,
|
|
400
|
+
MatTooltipModule,
|
|
401
|
+
SelectInputComponent,
|
|
402
|
+
TFormInputStatusComponent,
|
|
403
|
+
], template: "<ng-container [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-select-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-select-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</ng-container>\r\n", styles: ["mat-form-field{width:100%!important}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
|
|
404
|
+
}], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] }); })();
|
|
405
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectInputElementComponent, { className: "SelectInputElementComponent", filePath: "lib/components/t-form-input/elements/select-input-element/select-input-element.component.ts", lineNumber: 29 }); })();
|
|
406
|
+
|
|
407
|
+
export { SelectInputElementComponent };
|
|
408
|
+
//# sourceMappingURL=ngx-t-forms-select-input-element.component-CLs5UkmC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-select-input-element.component-CLs5UkmC.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/select-input-element.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/select-input-element.component.ts"],"sourcesContent":["@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track $index) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n","import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\n\r\nimport { AbstractControl, NgControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { Subject } from 'rxjs';\r\nimport { MatSelectChange, MatSelectModule } from '@angular/material/select';\r\nimport { ITowerStepColumn, OptionSelectTypes } from 'ngx-t-forms-types';\r\nimport { MatChipListboxChange, MatChipsModule } from '@angular/material/chips';\r\nimport { MatRadioChange, MatRadioModule } from '@angular/material/radio';\r\nimport { MatCheckboxChange, MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { TitleCasePipe } from '@angular/common';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-select-input',\r\n nextId: 0,\r\n};\r\n\r\n@Component({\r\n selector: 'lib-select-input',\r\n imports: [\r\n ReactiveFormsModule,\r\n MatSelectModule,\r\n MatChipsModule,\r\n MatRadioModule,\r\n MatCheckboxModule,\r\n MatListModule,\r\n TitleCasePipe,\r\n ],\r\n templateUrl: './select-input.component.html',\r\n styleUrl: './select-input.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[class.floating]': 'shouldLabelFloat',\r\n '[id]': 'id',\r\n },\r\n providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }],\r\n})\r\nexport class SelectInputComponent extends BaseCustomInput<string | number | Date | string[]> {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig,\r\n );\r\n }\r\n\r\n protected readonly optionSelectTypes = OptionSelectTypes;\r\n\r\n /**\r\n * True when the control must not accept selection changes — either the form\r\n * control was disabled (`BaseCustomInput.disabled`) or the descriptor marks the\r\n * field `readonly`/`disabled`. Mirrors the reference `readonly || disabled`\r\n * contract so every option-select variant blocks interaction uniformly.\r\n */\r\n protected get controlDisabled(): boolean {\r\n const cfg = this.inputConfig();\r\n return this.disabled || !!cfg?.readonly || !!cfg?.disabled;\r\n }\r\n\r\n override get empty(): boolean {\r\n return !this.value;\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return true;\r\n }\r\n\r\n readonly #valueSubject = new Subject<unknown>();\r\n\r\n protected onInputChange($event: unknown): void {\r\n this.#valueSubject.next($event);\r\n }\r\n\r\n protected onSelectionChange(event: MatSelectChange | MatChipListboxChange | MatRadioChange): void {\r\n this.value = event.value;\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n\r\n protected checkBoxChanged(event: MatCheckboxChange, value: string): void {\r\n const current = Array.isArray(this.value) ? (this.value as string[]) : [];\r\n if (event.checked) {\r\n this.value = [...current, value];\r\n } else {\r\n this.value = current.filter((v) => v !== value);\r\n }\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n\r\n protected isSelected(value: string): boolean {\r\n if (!this.value || !Array.isArray(this.value)) return false;\r\n return (this.value as string[]).includes(value);\r\n }\r\n\r\n // NOTE(phase-4): `matOptions.options` is `(FormInputBasicOptionInterface | DynamicObjectInterface)[]`\r\n // but templates access `.value`, `.label`, `.username`, `.email` directly. Until the template\r\n // is split per `optionType`, the return shape stays `any[]` to keep strictTemplates passing.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split template per matOptions.optionType, then narrow.\r\n protected getSelectOptions(): any[] {\r\n const cfg = this.inputConfig();\r\n if (!cfg?.matOptions) return [];\r\n if (Array.isArray(cfg.matOptions?.options)) {\r\n return cfg.matOptions?.options || [];\r\n }\r\n return [];\r\n }\r\n\r\n protected getAvatar(userName: unknown): string {\r\n return `https://ui-avatars.com/api/?color=EADDFF&font-size=0.36&bold=true&background=random&name=${userName}`;\r\n }\r\n\r\n protected get inputControl(): AbstractControl | null {\r\n return this.ngControl?.control ?? null;\r\n }\r\n}\r\n","<ng-container [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-select-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-select-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</ng-container>\r\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormControl, FormGroup, FormGroupDirective, NgForm, ReactiveFormsModule } from '@angular/forms';\r\nimport { ErrorStateMatcher } from '@angular/material/core';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { SelectInputComponent } from './elements/select-input/select-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/** Wraps a reactive select control inside a `mat-form-field`. */\r\n@Component({\r\n selector: 'lib-select-input-element',\r\n templateUrl: './select-input-element.component.html',\r\n styleUrl: './select-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n SelectInputComponent,\r\n TFormInputStatusComponent,\r\n ],\r\n})\r\nexport class SelectInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n protected optionsSearchWordKeyWord!: string;\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n\r\n protected readonly errorStateMatcher: ErrorStateMatcher = {\r\n isErrorState(control: FormControl | null, _form: FormGroupDirective | NgForm | null): boolean {\r\n return !!(control && control.invalid && (control.dirty || control.touched));\r\n },\r\n };\r\n\r\n protected getSelectOptions(): unknown[] {\r\n const cfg = this.inputConfig();\r\n if (!cfg.matOptions) return [];\r\n if (Array.isArray(cfg.matOptions?.options)) {\r\n return cfg.matOptions.options ?? [];\r\n }\r\n return [];\r\n }\r\n\r\n protected selectInputSearchWord(event: { detail: { value: string } }): void {\r\n this.optionsSearchWordKeyWord = event.detail.value.toUpperCase();\r\n }\r\n}\r\n"],"names":["i1","i2","i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKE,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,CAAwC;IAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAgB;IAAA,EAAA,CAAA,YAAA,EAAkB;;;IAAzD,EAAA,CAAA,UAAA,CAAA,OAAA,EAAA,SAAA,CAAA,KAAA,CAAsB;IAAC,EAAA,CAAA,SAAA,EAAgB;IAAhB,EAAA,CAAA,iBAAA,CAAA,SAAA,CAAA,KAAA,CAAgB;;;;IAH1D,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,CACyE;AAAvE,IAAA,EAAA,CAAA,UAAA,CAAA,QAAA,EAAA,SAAA,uEAAA,CAAA,MAAA,EAAA,EAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAU,gCAAyB,CAAA,CAAA,CAAA,CAAA,CAAC;IACpC,EAAA,CAAA,gBAAA,CA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BAAyB,CAAA,EAAA,MAAA,EAAA,CAAA,qPAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;iFAGhB,2BAA2B,EAAA,CAAA;cAfvC,SAAS;AACE,QAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,EAAA,eAAA,EAGnB,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC;oBACP,mBAAmB;oBACnB,kBAAkB;oBAClB,aAAa;oBACb,eAAe;oBACf,gBAAgB;oBAChB,oBAAoB;oBACpB,yBAAyB;AAC1B,iBAAA,EAAA,QAAA,EAAA,+oEAAA,EAAA,MAAA,EAAA,CAAA,oJAAA,CAAA,EAAA;;kFAEU,2BAA2B,EAAA,EAAA,SAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,6FAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
|
|
@@ -10,7 +10,7 @@ import * as i1$1 from '@angular/material/button';
|
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import * as i5 from '@angular/material/tooltip';
|
|
12
12
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
|
-
import { B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-
|
|
13
|
+
import { B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-CJGAj18J.mjs';
|
|
14
14
|
import { Subject } from 'rxjs';
|
|
15
15
|
import * as i8 from '@angular/material/select';
|
|
16
16
|
import { MatSelectModule } from '@angular/material/select';
|
|
@@ -157,4 +157,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
157
157
|
}], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
|
|
158
158
|
|
|
159
159
|
export { SelectInputElementComponent };
|
|
160
|
-
//# sourceMappingURL=ngx-t-forms-select-input-element.component-
|
|
160
|
+
//# sourceMappingURL=ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-select-input-element.component-DNBZVxhD.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/select-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/select-input-element.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\n\r\nimport { AbstractControl, NgControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { Subject } from 'rxjs';\r\nimport { MatSelectChange, MatSelectModule } from '@angular/material/select';\r\nimport { ITowerStepColumn, OptionSelectTypes } from 'ngx-t-forms-types';\r\nimport { MatChipListboxChange, MatChipsModule } from '@angular/material/chips';\r\nimport { MatRadioChange, MatRadioModule } from '@angular/material/radio';\r\nimport { MatCheckboxChange, MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { TitleCasePipe } from '@angular/common';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-select-input',\r\n nextId: 0,\r\n};\r\n\r\n@Component({\r\n selector: 'lib-select-input',\r\n imports: [\r\n ReactiveFormsModule,\r\n MatSelectModule,\r\n MatChipsModule,\r\n MatRadioModule,\r\n MatCheckboxModule,\r\n MatListModule,\r\n TitleCasePipe,\r\n ],\r\n templateUrl: './select-input.component.html',\r\n styleUrl: './select-input.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[class.floating]': 'shouldLabelFloat',\r\n '[id]': 'id',\r\n },\r\n providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }],\r\n})\r\nexport class SelectInputComponent extends BaseCustomInput<string | number | Date | string[]> {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig,\r\n );\r\n }\r\n\r\n protected readonly optionSelectTypes = OptionSelectTypes;\r\n\r\n /**\r\n * True when the control must not accept selection changes — either the form\r\n * control was disabled (`BaseCustomInput.disabled`) or the descriptor marks the\r\n * field `readonly`/`disabled`. Mirrors the reference `readonly || disabled`\r\n * contract so every option-select variant blocks interaction uniformly.\r\n */\r\n protected get controlDisabled(): boolean {\r\n const cfg = this.inputConfig();\r\n return this.disabled || !!cfg?.readonly || !!cfg?.disabled;\r\n }\r\n\r\n override get empty(): boolean {\r\n return !this.value;\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return true;\r\n }\r\n\r\n readonly #valueSubject = new Subject<unknown>();\r\n\r\n protected onInputChange($event: unknown): void {\r\n this.#valueSubject.next($event);\r\n }\r\n\r\n protected onSelectionChange(event: MatSelectChange | MatChipListboxChange | MatRadioChange): void {\r\n this.value = event.value;\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n\r\n protected checkBoxChanged(event: MatCheckboxChange, value: string): void {\r\n const current = Array.isArray(this.value) ? (this.value as string[]) : [];\r\n if (event.checked) {\r\n this.value = [...current, value];\r\n } else {\r\n this.value = current.filter((v) => v !== value);\r\n }\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n\r\n protected isSelected(value: string): boolean {\r\n if (!this.value || !Array.isArray(this.value)) return false;\r\n return (this.value as string[]).includes(value);\r\n }\r\n\r\n // NOTE(phase-4): `matOptions.options` is `(FormInputBasicOptionInterface | DynamicObjectInterface)[]`\r\n // but templates access `.value`, `.label`, `.username`, `.email` directly. Until the template\r\n // is split per `optionType`, the return shape stays `any[]` to keep strictTemplates passing.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split template per matOptions.optionType, then narrow.\r\n protected getSelectOptions(): any[] {\r\n const cfg = this.inputConfig();\r\n if (!cfg?.matOptions) return [];\r\n if (Array.isArray(cfg.matOptions?.options)) {\r\n return cfg.matOptions?.options || [];\r\n }\r\n return [];\r\n }\r\n\r\n protected getAvatar(userName: unknown): string {\r\n return `https://ui-avatars.com/api/?color=EADDFF&font-size=0.36&bold=true&background=random&name=${userName}`;\r\n }\r\n\r\n protected get inputControl(): AbstractControl | null {\r\n return this.ngControl?.control ?? null;\r\n }\r\n}\r\n","@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track $index) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormControl, FormGroup, FormGroupDirective, NgForm, ReactiveFormsModule } from '@angular/forms';\r\nimport { ErrorStateMatcher } from '@angular/material/core';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { SelectInputComponent } from './elements/select-input/select-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/** Wraps a reactive select control inside a `mat-form-field`. */\r\n@Component({\r\n selector: 'lib-select-input-element',\r\n templateUrl: './select-input-element.component.html',\r\n styleUrl: './select-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n SelectInputComponent,\r\n TFormInputStatusComponent,\r\n ],\r\n})\r\nexport class SelectInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n protected optionsSearchWordKeyWord!: string;\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n\r\n protected readonly errorStateMatcher: ErrorStateMatcher = {\r\n isErrorState(control: FormControl | null, _form: FormGroupDirective | NgForm | null): boolean {\r\n return !!(control && control.invalid && (control.dirty || control.touched));\r\n },\r\n };\r\n\r\n protected getSelectOptions(): unknown[] {\r\n const cfg = this.inputConfig();\r\n if (!cfg.matOptions) return [];\r\n if (Array.isArray(cfg.matOptions?.options)) {\r\n return cfg.matOptions.options ?? [];\r\n }\r\n return [];\r\n }\r\n\r\n protected selectInputSearchWord(event: { detail: { value: string } }): void {\r\n this.optionsSearchWordKeyWord = event.detail.value.toUpperCase();\r\n }\r\n}\r\n","<ng-container [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-select-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-select-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</ng-container>\r\n"],"names":["i1","i2","i3","i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAM,iBAAiB,GAA0B;AAC/C,IAAA,WAAW,EAAE,kBAAkB;AAC/B,IAAA,MAAM,EAAE,CAAC;CACV;AAsBK,MAAO,oBAAqB,SAAQ,eAAkD,CAAA;AAG1F,IAAA,WAAA,GAAA;QACE,KAAK,CACH,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAc,EAC9D,MAAM,CAA0B,UAAU,CAAC,EAC3C,iBAAiB,CAClB;AAPM,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,iFAAoB;QAUtC,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A,oBAAA,EAAA,qBAAA,EAAA,qBAAA,EAAA,yBAAA,EAAA,YAAA,EAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAChB,oBAAoB,sFACpB,yBAAyB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAGhB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAfvC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,EAAA,eAAA,EAGnB,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC;wBACP,mBAAmB;wBACnB,kBAAkB;wBAClB,aAAa;wBACb,eAAe;wBACf,gBAAgB;wBAChB,oBAAoB;wBACpB,yBAAyB;AAC1B,qBAAA,EAAA,QAAA,EAAA,+oEAAA,EAAA,MAAA,EAAA,CAAA,oJAAA,CAAA,EAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-select-input-element.component-c7IgHdXA.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/select-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/select-input-element.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\n\r\nimport { AbstractControl, NgControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { Subject } from 'rxjs';\r\nimport { MatSelectChange, MatSelectModule } from '@angular/material/select';\r\nimport { ITowerStepColumn, OptionSelectTypes } from 'ngx-t-forms-types';\r\nimport { MatChipListboxChange, MatChipsModule } from '@angular/material/chips';\r\nimport { MatRadioChange, MatRadioModule } from '@angular/material/radio';\r\nimport { MatCheckboxChange, MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { TitleCasePipe } from '@angular/common';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-select-input',\r\n nextId: 0,\r\n};\r\n\r\n@Component({\r\n selector: 'lib-select-input',\r\n imports: [\r\n ReactiveFormsModule,\r\n MatSelectModule,\r\n MatChipsModule,\r\n MatRadioModule,\r\n MatCheckboxModule,\r\n MatListModule,\r\n TitleCasePipe,\r\n ],\r\n templateUrl: './select-input.component.html',\r\n styleUrl: './select-input.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[class.floating]': 'shouldLabelFloat',\r\n '[id]': 'id',\r\n },\r\n providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }],\r\n})\r\nexport class SelectInputComponent extends BaseCustomInput<string | number | Date | string[]> {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig,\r\n );\r\n }\r\n\r\n protected readonly optionSelectTypes = OptionSelectTypes;\r\n\r\n /**\r\n * True when the control must not accept selection changes — either the form\r\n * control was disabled (`BaseCustomInput.disabled`) or the descriptor marks the\r\n * field `readonly`/`disabled`. Mirrors the reference `readonly || disabled`\r\n * contract so every option-select variant blocks interaction uniformly.\r\n */\r\n protected get controlDisabled(): boolean {\r\n const cfg = this.inputConfig();\r\n return this.disabled || !!cfg?.readonly || !!cfg?.disabled;\r\n }\r\n\r\n override get empty(): boolean {\r\n return !this.value;\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return true;\r\n }\r\n\r\n readonly #valueSubject = new Subject<unknown>();\r\n\r\n protected onInputChange($event: unknown): void {\r\n this.#valueSubject.next($event);\r\n }\r\n\r\n protected onSelectionChange(event: MatSelectChange | MatChipListboxChange | MatRadioChange): void {\r\n this.value = event.value;\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n\r\n protected checkBoxChanged(event: MatCheckboxChange, value: string): void {\r\n const current = Array.isArray(this.value) ? (this.value as string[]) : [];\r\n if (event.checked) {\r\n this.value = [...current, value];\r\n } else {\r\n this.value = current.filter((v) => v !== value);\r\n }\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n\r\n protected isSelected(value: string): boolean {\r\n if (!this.value || !Array.isArray(this.value)) return false;\r\n return (this.value as string[]).includes(value);\r\n }\r\n\r\n // NOTE(phase-4): `matOptions.options` is `(FormInputBasicOptionInterface | DynamicObjectInterface)[]`\r\n // but templates access `.value`, `.label`, `.username`, `.email` directly. Until the template\r\n // is split per `optionType`, the return shape stays `any[]` to keep strictTemplates passing.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split template per matOptions.optionType, then narrow.\r\n protected getSelectOptions(): any[] {\r\n const cfg = this.inputConfig();\r\n if (!cfg?.matOptions) return [];\r\n if (Array.isArray(cfg.matOptions?.options)) {\r\n return cfg.matOptions?.options || [];\r\n }\r\n return [];\r\n }\r\n\r\n protected getAvatar(userName: unknown): string {\r\n return `https://ui-avatars.com/api/?color=EADDFF&font-size=0.36&bold=true&background=random&name=${userName}`;\r\n }\r\n\r\n protected get inputControl(): AbstractControl | null {\r\n return this.ngControl?.control ?? null;\r\n }\r\n}\r\n","@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track $index) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormControl, FormGroup, FormGroupDirective, NgForm, ReactiveFormsModule } from '@angular/forms';\r\nimport { ErrorStateMatcher } from '@angular/material/core';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { SelectInputComponent } from './elements/select-input/select-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/** Wraps a reactive select control inside a `mat-form-field`. */\r\n@Component({\r\n selector: 'lib-select-input-element',\r\n templateUrl: './select-input-element.component.html',\r\n styleUrl: './select-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n SelectInputComponent,\r\n TFormInputStatusComponent,\r\n ],\r\n})\r\nexport class SelectInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n protected optionsSearchWordKeyWord!: string;\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n\r\n protected readonly errorStateMatcher: ErrorStateMatcher = {\r\n isErrorState(control: FormControl | null, _form: FormGroupDirective | NgForm | null): boolean {\r\n return !!(control && control.invalid && (control.dirty || control.touched));\r\n },\r\n };\r\n\r\n protected getSelectOptions(): unknown[] {\r\n const cfg = this.inputConfig();\r\n if (!cfg.matOptions) return [];\r\n if (Array.isArray(cfg.matOptions?.options)) {\r\n return cfg.matOptions.options ?? [];\r\n }\r\n return [];\r\n }\r\n\r\n protected selectInputSearchWord(event: { detail: { value: string } }): void {\r\n this.optionsSearchWordKeyWord = event.detail.value.toUpperCase();\r\n }\r\n}\r\n","<ng-container [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-select-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-select-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </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