ngx-t-forms 2.0.34 → 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-DYKniIW1.mjs → ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DYKniIW1.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-sAVeqJDq.mjs → ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-sAVeqJDq.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-DHCYc95E.mjs → ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-DHCYc95E.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-BwGlol4L.mjs → ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.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-6fu2mXuZ.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.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-BdFscpSi.mjs → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-data-source-picker.component-BdFscpSi.mjs.map → ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-BakchGky.mjs → ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-BakchGky.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-BnCFgi6y.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-BnCFgi6y.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-PW2XiPiH.mjs +373 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs.map +1 -0
- 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-Bp_PJyo4.mjs → ngx-t-forms-document-picker.component-BNQ1a96s.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-document-picker.component-Bp_PJyo4.mjs.map → ngx-t-forms-document-picker.component-BNQ1a96s.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-editor-input-element.component-Crad-MN8.mjs → ngx-t-forms-editor-input-element.component-C12fnCTM.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-editor-input-element.component-Crad-MN8.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-IEjjoNbP.mjs → ngx-t-forms-editor-js-input.component-cxob42pE.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-editor-js-input.component-IEjjoNbP.mjs.map → ngx-t-forms-editor-js-input.component-cxob42pE.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CzCphzUH.mjs → ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CzCphzUH.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-DVyLFw6x.mjs → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-input-selector.component-DVyLFw6x.mjs.map → ngx-t-forms-form-input-selector.component-xIalL_cs.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs → ngx-t-forms-form-json-view.component-CU1d8rGd.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-D5YJ5pFm.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-payload-projection.component-Ip9ewB18.mjs → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs.map → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map} +1 -1
- 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-tGbPKHM6.mjs +389 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs.map +1 -0
- 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-DTEx6mIl.mjs → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DTEx6mIl.mjs.map → ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-geo-location.component-4vXrrAS0.mjs → ngx-t-forms-geo-location.component-ChmvJCGu.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-geo-location.component-4vXrrAS0.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-BbfiG8wm.mjs → ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BbfiG8wm.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-D8TBBLAD.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-B855cSGR.mjs → ngx-t-forms-input-custom.component-pUshbxSM.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-B855cSGR.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-CxXMETLl.mjs +190 -0
- package/fesm2022/ngx-t-forms-input-editor.component-CxXMETLl.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-C0L8Vi2y.mjs → ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-C0L8Vi2y.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-D8tnMRWS.mjs → ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-D8tnMRWS.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-BgZ2Q0yu.mjs → ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-BgZ2Q0yu.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-DD13F1yS.mjs → ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DD13F1yS.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--lBn-Pvd.mjs → ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component--lBn-Pvd.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-CZHFMhL7.mjs → ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs} +10 -10
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs.map +1 -0
- 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-BkTeV_AF.mjs → ngx-t-forms-ngx-t-forms-CJGAj18J.mjs} +2042 -179
- 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-1W6jXaKk.mjs → ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-paginated-selection-table-1W6jXaKk.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-yBqYGbgL.mjs → ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs} +9 -9
- package/fesm2022/ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs.map +1 -0
- 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-fC_S81-7.mjs → ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-record-list-manager.component-fC_S81-7.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-r1KNcuod.mjs → ngx-t-forms-required-inputs.component-ByBeNLXu.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-required-inputs.component-r1KNcuod.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-C99RdNiP.mjs → ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs} +61 -15
- 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-Cl1wrszQ.mjs → ngx-t-forms-section-report.component-mUpSxbaB.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-section-report.component-Cl1wrszQ.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-CStVMEhv.mjs → ngx-t-forms-select-input-element.component-c7IgHdXA.mjs} +5 -5
- package/fesm2022/ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map +1 -0
- 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-BybBzePF.mjs → ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BybBzePF.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-t-workflow-picker.component-CtavFAUq.mjs → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs.map → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-CVUTn20g.mjs → ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-CVUTn20g.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-BoZvYozf.mjs → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs.map → ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-Df9wzsjg.mjs → ngx-t-forms-validators-config.component-DgIVRSvF.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-validators-config.component-Df9wzsjg.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-CJvbB68e.mjs → ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs} +9 -9
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CJvbB68e.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 +8 -2
- package/styles/_editor-mixins.scss +55 -0
- package/styles/_json-editor-syntax.scss +16 -0
- package/types/ngx-t-forms.d.ts +663 -12
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-KmfVY6sd.mjs +0 -368
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-KmfVY6sd.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-enB9ZNG7.mjs +0 -389
- package/fesm2022/ngx-t-forms-form-section-stepper.component-enB9ZNG7.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-D8TBBLAD.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-editor.component-DBFYZyi3.mjs +0 -193
- package/fesm2022/ngx-t-forms-input-editor.component-DBFYZyi3.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CZHFMhL7.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-yBqYGbgL.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C99RdNiP.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-select-input-element.component-CStVMEhv.mjs.map +0 -1
|
@@ -0,0 +1,1217 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Injectable, ElementRef, input, viewChild, ChangeDetectorRef, DestroyRef, effect, ChangeDetectionStrategy, Component, output, computed } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { NgControl, FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import * as i2 from '@angular/material/form-field';
|
|
6
|
+
import { MatFormFieldModule, MatFormFieldControl } 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 { N as NGX_T_FORMS_CONFIG_TOKEN, B as BaseCustomInput, _ as _isEqual, C as returnMappedPathValue, G as FormatDataPipe, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
|
|
14
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
15
|
+
import { of, throwError, debounceTime, map as map$1, distinctUntilChanged, tap, take as take$1, catchError as catchError$1, finalize } from 'rxjs';
|
|
16
|
+
import { take, map, catchError } from 'rxjs/operators';
|
|
17
|
+
import { DataSources, DocumentLitsLabelConfigInterfaceValueType } from 'ngx-t-forms-types';
|
|
18
|
+
import * as i11 from '@angular/material/paginator';
|
|
19
|
+
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
20
|
+
import * as i10 from '@angular/material/sort';
|
|
21
|
+
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
22
|
+
import * as i5$1 from '@angular/material/table';
|
|
23
|
+
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
24
|
+
import * as i3 from '@angular/material/card';
|
|
25
|
+
import { MatCardModule } from '@angular/material/card';
|
|
26
|
+
import * as i4 from '@angular/material/progress-spinner';
|
|
27
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
28
|
+
import * as i2$1 from '@angular/material/input';
|
|
29
|
+
import { MatInputModule } from '@angular/material/input';
|
|
30
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
31
|
+
import * as i3$2 from '@angular/material/checkbox';
|
|
32
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
33
|
+
import * as i13 from '@angular/material/radio';
|
|
34
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
35
|
+
|
|
36
|
+
/** Default sort when none provided: updatedAt descending. */
|
|
37
|
+
const DEFAULT_SORT = { updatedAt: -1 };
|
|
38
|
+
/**
|
|
39
|
+
* Abstracts document fetching from different data sources (API, MongoDB, default).
|
|
40
|
+
* For default source with getWorkflowDocuments, supports server-side pagination, sort, and search
|
|
41
|
+
* (aligned with getTransactionsWithSchema / getWorkflowDocuments).
|
|
42
|
+
*/
|
|
43
|
+
class DocumentLoaderService {
|
|
44
|
+
constructor() {
|
|
45
|
+
this.formsConfig = inject(NGX_T_FORMS_CONFIG_TOKEN, { optional: true });
|
|
46
|
+
}
|
|
47
|
+
loadDocuments(params) {
|
|
48
|
+
const { sourceType, documentsSource, workflowId } = params;
|
|
49
|
+
if (sourceType === DataSources.Api && documentsSource) {
|
|
50
|
+
return this.loadFromApi(params);
|
|
51
|
+
}
|
|
52
|
+
if (sourceType === DataSources.MongoDb && documentsSource) {
|
|
53
|
+
return this.loadFromMongoDb(params);
|
|
54
|
+
}
|
|
55
|
+
if (sourceType === 'default') {
|
|
56
|
+
return this.loadFromDefault(workflowId, params);
|
|
57
|
+
}
|
|
58
|
+
return of({ documents: [] });
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Normalizes API/MongoDB/default responses to LoadDocumentsResult.
|
|
62
|
+
* Extracts documents from formValues, documents, results, or raw array.
|
|
63
|
+
* Validates footerConfig. Returns empty documents + error on malformed response.
|
|
64
|
+
*/
|
|
65
|
+
normalizeToLoadDocumentsResult(response) {
|
|
66
|
+
if (response == null) {
|
|
67
|
+
return { documents: [] };
|
|
68
|
+
}
|
|
69
|
+
const res = response;
|
|
70
|
+
const rawDocs = res['formValues'] ?? res['documents'] ?? res['results'] ?? (Array.isArray(response) ? response : undefined);
|
|
71
|
+
if (!Array.isArray(rawDocs)) {
|
|
72
|
+
return {
|
|
73
|
+
documents: [],
|
|
74
|
+
error: 'Invalid response format: expected formValues, documents, or results array',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const documents = this.flattenListDocuments(rawDocs);
|
|
78
|
+
const footerConfig = this.validateFooterConfig(res['footerConfig']);
|
|
79
|
+
return { documents, footerConfig };
|
|
80
|
+
}
|
|
81
|
+
validateFooterConfig(fc) {
|
|
82
|
+
if (!fc || typeof fc !== 'object')
|
|
83
|
+
return undefined;
|
|
84
|
+
const o = fc;
|
|
85
|
+
const totalPages = o['totalPages'];
|
|
86
|
+
const totalItems = o['totalItems'];
|
|
87
|
+
const itemsPerPage = o['itemsPerPage'];
|
|
88
|
+
if (typeof totalPages !== 'number' || typeof totalItems !== 'number' || typeof itemsPerPage !== 'number') {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
totalPages,
|
|
93
|
+
totalItems,
|
|
94
|
+
itemsPerPage,
|
|
95
|
+
currentPage: typeof o['currentPage'] === 'number' ? o['currentPage'] : undefined,
|
|
96
|
+
sortBy: (o['sortBy'] && typeof o['sortBy'] === 'object')
|
|
97
|
+
? o['sortBy']
|
|
98
|
+
: undefined,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
loadFromApi(params) {
|
|
102
|
+
const { documentsSource, workflowId, parentFormValue, formBuilder } = params;
|
|
103
|
+
const config = documentsSource;
|
|
104
|
+
const missingInputs = [];
|
|
105
|
+
const postData = (config.backEndConfig?.minimumInputRequired ?? []).reduce((acc, curr) => {
|
|
106
|
+
if (curr.type === 'default') {
|
|
107
|
+
acc[curr.name] = curr.defaultValue;
|
|
108
|
+
return acc;
|
|
109
|
+
}
|
|
110
|
+
if (curr.type === 'mapto' && parentFormValue[curr.name] !== undefined) {
|
|
111
|
+
acc[curr.name] = parentFormValue[curr.name];
|
|
112
|
+
return acc;
|
|
113
|
+
}
|
|
114
|
+
missingInputs.push(curr.name);
|
|
115
|
+
return acc;
|
|
116
|
+
}, {});
|
|
117
|
+
postData['workflowId'] = workflowId;
|
|
118
|
+
postData['page'] = params.page ?? 1;
|
|
119
|
+
postData['itemsPerPage'] = params.itemsPerPage ?? 10;
|
|
120
|
+
postData['sort'] = (params.sort && Object.keys(params.sort).length > 0) ? params.sort : DEFAULT_SORT;
|
|
121
|
+
postData['searchKey'] = params.searchKey;
|
|
122
|
+
if (params.filter && Object.keys(params.filter).length > 0) {
|
|
123
|
+
postData['filter'] = params.filter;
|
|
124
|
+
}
|
|
125
|
+
if (missingInputs.length > 0) {
|
|
126
|
+
return throwError(() => new Error(`Missing inputs: ${missingInputs.join(', ')}`));
|
|
127
|
+
}
|
|
128
|
+
return formBuilder.httpPostDataFunction(config.httpEndPoint, postData).pipe(take(1), map((response) => this.normalizeToLoadDocumentsResult(response)), catchError((err) => {
|
|
129
|
+
const msg = err?.error?.message ?? (err instanceof Error ? err.message : 'Unknown error');
|
|
130
|
+
return of({ documents: [], error: msg });
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
loadFromMongoDb(params) {
|
|
134
|
+
const { documentsSource, formBuilder } = params;
|
|
135
|
+
const config = documentsSource;
|
|
136
|
+
if (!config.pipeline || config.pipeline.length === 0) {
|
|
137
|
+
return throwError(() => new Error('No pipeline found'));
|
|
138
|
+
}
|
|
139
|
+
if (!config.workflowId) {
|
|
140
|
+
return throwError(() => new Error('No workflow id found'));
|
|
141
|
+
}
|
|
142
|
+
const paginationParams = {
|
|
143
|
+
page: params.page ?? 1,
|
|
144
|
+
itemsPerPage: params.itemsPerPage ?? 10,
|
|
145
|
+
sort: (params.sort && Object.keys(params.sort).length > 0) ? params.sort : DEFAULT_SORT,
|
|
146
|
+
searchKey: params.searchKey,
|
|
147
|
+
...(params.filter && Object.keys(params.filter).length > 0 ? { filter: params.filter } : {}),
|
|
148
|
+
};
|
|
149
|
+
const runPipeline = formBuilder.runMongoDbPipeLine;
|
|
150
|
+
return runPipeline(config.pipeline, config.workflowId, paginationParams).pipe(take(1), map((data) => this.normalizeToLoadDocumentsResult(data)), catchError((err) => {
|
|
151
|
+
const msg = err?.error?.message ?? (err instanceof Error ? err.message : 'Unknown error');
|
|
152
|
+
return of({ documents: [], error: msg });
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
155
|
+
loadFromDefault(workflowId, params) {
|
|
156
|
+
// Prefer formBuilder from params; fallback to injected config when params.formBuilder
|
|
157
|
+
// lacks getWorkflowDocuments (e.g. form builder preview, test-app, or partial config)
|
|
158
|
+
const getWorkflowDocuments = this.formsConfig?.formBuilder?.getWorkflowDocuments;
|
|
159
|
+
if (typeof getWorkflowDocuments !== 'function') {
|
|
160
|
+
return of({ documents: [] });
|
|
161
|
+
}
|
|
162
|
+
const page = params.page ?? 1;
|
|
163
|
+
const itemsPerPage = params.itemsPerPage ?? 10;
|
|
164
|
+
const sort = (params.sort && Object.keys(params.sort).length > 0) ? params.sort : DEFAULT_SORT;
|
|
165
|
+
const searchKey = params.searchKey;
|
|
166
|
+
const filter = params.filter;
|
|
167
|
+
return getWorkflowDocuments(workflowId, page, itemsPerPage, sort, searchKey, filter).pipe(take(1), map((res) => this.normalizeToLoadDocumentsResult(res)));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Flatten WorkFlowDocumentInterface list rows so form fields are at top level.
|
|
171
|
+
* Matches getSelectedDocument structure so row[col.formControlName] works for all columns.
|
|
172
|
+
* Attaches _originalDoc so primaryIdentifierKey can resolve against the original nested structure
|
|
173
|
+
* (e.g. { _id, reference, form: { customId } }) when the flattened row has form keys at top level.
|
|
174
|
+
*/
|
|
175
|
+
flattenListDocuments(docs) {
|
|
176
|
+
return docs.map((doc) => {
|
|
177
|
+
const form = doc['form'];
|
|
178
|
+
if (!form || typeof form !== 'object')
|
|
179
|
+
return { ...doc, _originalDoc: doc };
|
|
180
|
+
const { form: _f, ...rest } = doc;
|
|
181
|
+
return { ...rest, ...form, _originalDoc: doc };
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
static { this.ɵfac = function DocumentLoaderService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DocumentLoaderService)(); }; }
|
|
185
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: DocumentLoaderService, factory: DocumentLoaderService.ɵfac, providedIn: 'root' }); }
|
|
186
|
+
}
|
|
187
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentLoaderService, [{
|
|
188
|
+
type: Injectable,
|
|
189
|
+
args: [{ providedIn: 'root' }]
|
|
190
|
+
}], null, null); })();
|
|
191
|
+
|
|
192
|
+
const _c0 = () => [5, 10, 25, 50];
|
|
193
|
+
const _forTrack0 = ($index, $item) => $item.formControlName;
|
|
194
|
+
function DocumentPickerReactiveInputComponent_Conditional_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
195
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
196
|
+
i0.ɵɵelementStart(0, "button", 9);
|
|
197
|
+
i0.ɵɵlistener("click", function DocumentPickerReactiveInputComponent_Conditional_2_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.clearSearch()); });
|
|
198
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
199
|
+
i0.ɵɵtext(2, "close");
|
|
200
|
+
i0.ɵɵelementEnd()();
|
|
201
|
+
} }
|
|
202
|
+
function DocumentPickerReactiveInputComponent_Conditional_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
203
|
+
i0.ɵɵelementStart(0, "mat-icon", 7);
|
|
204
|
+
i0.ɵɵtext(1, "search");
|
|
205
|
+
i0.ɵɵelementEnd();
|
|
206
|
+
} }
|
|
207
|
+
function DocumentPickerReactiveInputComponent_Conditional_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
208
|
+
i0.ɵɵelementStart(0, "span", 8);
|
|
209
|
+
i0.ɵɵtext(1);
|
|
210
|
+
i0.ɵɵelementEnd();
|
|
211
|
+
} if (rf & 2) {
|
|
212
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
213
|
+
i0.ɵɵadvance();
|
|
214
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.getSelectedIds().length, " selected ");
|
|
215
|
+
} }
|
|
216
|
+
function DocumentPickerReactiveInputComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
217
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "mat-form-field", 4);
|
|
218
|
+
i0.ɵɵelement(2, "input", 5);
|
|
219
|
+
i0.ɵɵconditionalCreate(3, DocumentPickerReactiveInputComponent_Conditional_2_Conditional_3_Template, 3, 0, "button", 6)(4, DocumentPickerReactiveInputComponent_Conditional_2_Conditional_4_Template, 2, 0, "mat-icon", 7);
|
|
220
|
+
i0.ɵɵelementEnd();
|
|
221
|
+
i0.ɵɵconditionalCreate(5, DocumentPickerReactiveInputComponent_Conditional_2_Conditional_5_Template, 2, 1, "span", 8);
|
|
222
|
+
i0.ɵɵelementEnd();
|
|
223
|
+
} if (rf & 2) {
|
|
224
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
225
|
+
i0.ɵɵadvance(2);
|
|
226
|
+
i0.ɵɵproperty("placeholder", ctx_r1.searchPlaceholder())("formControl", ctx_r1.searchFormControl);
|
|
227
|
+
i0.ɵɵattribute("aria-label", ctx_r1.searchPlaceholder());
|
|
228
|
+
i0.ɵɵadvance();
|
|
229
|
+
i0.ɵɵconditional(ctx_r1.searchFormControl.value ? 3 : 4);
|
|
230
|
+
i0.ɵɵadvance(2);
|
|
231
|
+
i0.ɵɵconditional(ctx_r1.isMultiSelect && ctx_r1.getSelectedIds().length > 0 ? 5 : -1);
|
|
232
|
+
} }
|
|
233
|
+
function DocumentPickerReactiveInputComponent_Conditional_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
234
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
235
|
+
i0.ɵɵelementStart(0, "button", 13);
|
|
236
|
+
i0.ɵɵlistener("click", function DocumentPickerReactiveInputComponent_Conditional_3_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.refreshDocuments()); });
|
|
237
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
238
|
+
i0.ɵɵtext(2, "refresh");
|
|
239
|
+
i0.ɵɵelementEnd();
|
|
240
|
+
i0.ɵɵtext(3, " Retry ");
|
|
241
|
+
i0.ɵɵelementEnd();
|
|
242
|
+
} }
|
|
243
|
+
function DocumentPickerReactiveInputComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
244
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "mat-icon", 10);
|
|
245
|
+
i0.ɵɵtext(2, "error");
|
|
246
|
+
i0.ɵɵelementEnd();
|
|
247
|
+
i0.ɵɵelementStart(3, "span", 11);
|
|
248
|
+
i0.ɵɵtext(4);
|
|
249
|
+
i0.ɵɵelementEnd();
|
|
250
|
+
i0.ɵɵconditionalCreate(5, DocumentPickerReactiveInputComponent_Conditional_3_Conditional_5_Template, 4, 0, "button", 12);
|
|
251
|
+
i0.ɵɵelementEnd();
|
|
252
|
+
} if (rf & 2) {
|
|
253
|
+
let tmp_2_0;
|
|
254
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
255
|
+
i0.ɵɵadvance(4);
|
|
256
|
+
i0.ɵɵtextInterpolate(ctx_r1.dataLoadingError);
|
|
257
|
+
i0.ɵɵadvance();
|
|
258
|
+
i0.ɵɵconditional(!((tmp_2_0 = ctx_r1.inputConfig()) == null ? null : tmp_2_0.disabled) && !((tmp_2_0 = ctx_r1.inputConfig()) == null ? null : tmp_2_0.readonly) ? 5 : -1);
|
|
259
|
+
} }
|
|
260
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
261
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "mat-icon", 20);
|
|
262
|
+
i0.ɵɵtext(2, "info");
|
|
263
|
+
i0.ɵɵelementEnd();
|
|
264
|
+
i0.ɵɵelementStart(3, "span")(4, "strong");
|
|
265
|
+
i0.ɵɵtext(5);
|
|
266
|
+
i0.ɵɵelementEnd();
|
|
267
|
+
i0.ɵɵtext(6);
|
|
268
|
+
i0.ɵɵelementEnd()();
|
|
269
|
+
} if (rf & 2) {
|
|
270
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
271
|
+
i0.ɵɵadvance(5);
|
|
272
|
+
i0.ɵɵtextInterpolate(ctx_r1.isMultiSelect ? "Link transactions" : "Link a transaction");
|
|
273
|
+
i0.ɵɵadvance();
|
|
274
|
+
i0.ɵɵtextInterpolate3(" \u2014 Search or sort to find ", ctx_r1.isMultiSelect ? "them" : "one", ", then ", ctx_r1.isMultiSelect ? "check the box" : "select the radio", " to select ", ctx_r1.isMultiSelect ? "them" : "it", ".");
|
|
275
|
+
} }
|
|
276
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
277
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
278
|
+
i0.ɵɵelement(1, "mat-spinner", 21);
|
|
279
|
+
i0.ɵɵelementEnd();
|
|
280
|
+
} if (rf & 2) {
|
|
281
|
+
i0.ɵɵadvance();
|
|
282
|
+
i0.ɵɵproperty("diameter", 40);
|
|
283
|
+
} }
|
|
284
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
285
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
286
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "mat-icon");
|
|
287
|
+
i0.ɵɵtext(2, "folder_open");
|
|
288
|
+
i0.ɵɵelementEnd();
|
|
289
|
+
i0.ɵɵelementStart(3, "span");
|
|
290
|
+
i0.ɵɵtext(4);
|
|
291
|
+
i0.ɵɵelementEnd();
|
|
292
|
+
i0.ɵɵelementStart(5, "button", 13);
|
|
293
|
+
i0.ɵɵlistener("click", function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_4_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.refreshDocuments()); });
|
|
294
|
+
i0.ɵɵelementStart(6, "mat-icon");
|
|
295
|
+
i0.ɵɵtext(7, "refresh");
|
|
296
|
+
i0.ɵɵelementEnd();
|
|
297
|
+
i0.ɵɵtext(8, " Retry ");
|
|
298
|
+
i0.ɵɵelementEnd()();
|
|
299
|
+
} if (rf & 2) {
|
|
300
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
301
|
+
i0.ɵɵadvance(4);
|
|
302
|
+
i0.ɵɵtextInterpolate(ctx_r1.emptyMessage());
|
|
303
|
+
} }
|
|
304
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_th_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
305
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
306
|
+
i0.ɵɵelementStart(0, "button", 32);
|
|
307
|
+
i0.ɵɵlistener("click", function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_th_1_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.refreshDocuments()); });
|
|
308
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
309
|
+
i0.ɵɵtext(2, "sync");
|
|
310
|
+
i0.ɵɵelementEnd()();
|
|
311
|
+
} }
|
|
312
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_th_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
313
|
+
i0.ɵɵtext(0);
|
|
314
|
+
} if (rf & 2) {
|
|
315
|
+
const col_r6 = i0.ɵɵnextContext(2).$implicit;
|
|
316
|
+
i0.ɵɵtextInterpolate1(" ", col_r6.label, " ");
|
|
317
|
+
} }
|
|
318
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
319
|
+
i0.ɵɵelementStart(0, "th", 30);
|
|
320
|
+
i0.ɵɵconditionalCreate(1, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_th_1_Conditional_1_Template, 3, 0, "button", 31)(2, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_th_1_Conditional_2_Template, 1, 1);
|
|
321
|
+
i0.ɵɵelementEnd();
|
|
322
|
+
} if (rf & 2) {
|
|
323
|
+
const col_r6 = i0.ɵɵnextContext().$implicit;
|
|
324
|
+
i0.ɵɵclassProp("text-right-align", col_r6.type === "currency" || col_r6.type === "number")("doc-picker-col-icons", col_r6.formControlName === "icons")("doc-picker-col-actions", col_r6.formControlName === "actions")("doc-picker-col-text", col_r6.formControlName !== "icons" && col_r6.formControlName !== "actions" && col_r6.type !== "currency" && col_r6.type !== "number")("doc-picker-col-numeric", col_r6.type === "currency" || col_r6.type === "number");
|
|
325
|
+
i0.ɵɵproperty("disabled", col_r6.formControlName === "icons" || col_r6.formControlName === "actions");
|
|
326
|
+
i0.ɵɵadvance();
|
|
327
|
+
i0.ɵɵconditional(col_r6.formControlName === "actions" ? 1 : 2);
|
|
328
|
+
} }
|
|
329
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
330
|
+
i0.ɵɵelementStart(0, "mat-icon", 34);
|
|
331
|
+
i0.ɵɵtext(1, "description");
|
|
332
|
+
i0.ɵɵelementEnd();
|
|
333
|
+
} }
|
|
334
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
335
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
336
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 37);
|
|
337
|
+
i0.ɵɵlistener("change", function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Conditional_2_Template_mat_checkbox_change_0_listener() { i0.ɵɵrestoreView(_r7); const row_r8 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.selectRow(row_r8)); });
|
|
338
|
+
i0.ɵɵelementEnd();
|
|
339
|
+
} if (rf & 2) {
|
|
340
|
+
let tmp_17_0;
|
|
341
|
+
const row_r8 = i0.ɵɵnextContext().$implicit;
|
|
342
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
343
|
+
i0.ɵɵproperty("checked", ctx_r1.isRowSelected(row_r8))("disabled", !!((tmp_17_0 = ctx_r1.inputConfig()) == null ? null : tmp_17_0.disabled) || !!((tmp_17_0 = ctx_r1.inputConfig()) == null ? null : tmp_17_0.readonly))("matTooltip", ctx_r1.isRowSelected(row_r8) ? "Clear selection" : "Select " + (row_r8["reference"] ?? "document"));
|
|
344
|
+
i0.ɵɵattribute("aria-label", ctx_r1.isRowSelected(row_r8) ? "Clear selection" : "Select " + (row_r8["reference"] ?? "document"));
|
|
345
|
+
} }
|
|
346
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
347
|
+
i0.ɵɵelementStart(0, "span", 38);
|
|
348
|
+
i0.ɵɵpipe(1, "formatData");
|
|
349
|
+
i0.ɵɵtext(2);
|
|
350
|
+
i0.ɵɵpipe(3, "formatData");
|
|
351
|
+
i0.ɵɵelementEnd();
|
|
352
|
+
} if (rf & 2) {
|
|
353
|
+
const row_r8 = i0.ɵɵnextContext().$implicit;
|
|
354
|
+
const col_r6 = i0.ɵɵnextContext().$implicit;
|
|
355
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
356
|
+
i0.ɵɵclassProp("doc-picker-cell-selected", ctx_r1.isRowSelected(row_r8));
|
|
357
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind2(1, 4, row_r8[col_r6.formControlName], col_r6.type));
|
|
358
|
+
i0.ɵɵadvance(2);
|
|
359
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 7, row_r8[col_r6.formControlName], col_r6.type), " ");
|
|
360
|
+
} }
|
|
361
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
362
|
+
i0.ɵɵelementStart(0, "td", 33);
|
|
363
|
+
i0.ɵɵconditionalCreate(1, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Conditional_1_Template, 2, 0, "mat-icon", 34)(2, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Conditional_2_Template, 1, 4, "mat-checkbox", 35)(3, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Conditional_3_Template, 4, 10, "span", 36);
|
|
364
|
+
i0.ɵɵelementEnd();
|
|
365
|
+
} if (rf & 2) {
|
|
366
|
+
const col_r6 = i0.ɵɵnextContext().$implicit;
|
|
367
|
+
i0.ɵɵclassProp("text-right-align", col_r6.type === "currency" || col_r6.type === "number")("doc-picker-col-icons", col_r6.formControlName === "icons")("doc-picker-col-actions", col_r6.formControlName === "actions")("doc-picker-col-text", col_r6.formControlName !== "icons" && col_r6.formControlName !== "actions" && col_r6.type !== "currency" && col_r6.type !== "number")("doc-picker-col-numeric", col_r6.type === "currency" || col_r6.type === "number");
|
|
368
|
+
i0.ɵɵadvance();
|
|
369
|
+
i0.ɵɵconditional(col_r6.formControlName === "icons" ? 1 : col_r6.formControlName === "actions" ? 2 : 3);
|
|
370
|
+
} }
|
|
371
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
372
|
+
i0.ɵɵelementContainerStart(0, 25);
|
|
373
|
+
i0.ɵɵtemplate(1, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_th_1_Template, 3, 12, "th", 28)(2, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_td_2_Template, 4, 11, "td", 29);
|
|
374
|
+
i0.ɵɵelementContainerEnd();
|
|
375
|
+
} if (rf & 2) {
|
|
376
|
+
const col_r6 = ctx.$implicit;
|
|
377
|
+
const ɵ$index_85_r9 = ctx.$index;
|
|
378
|
+
const ɵ$count_85_r10 = ctx.$count;
|
|
379
|
+
i0.ɵɵproperty("matColumnDef", col_r6.formControlName)("stickyEnd", ɵ$index_85_r9 === ɵ$count_85_r10 - 1);
|
|
380
|
+
} }
|
|
381
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
382
|
+
i0.ɵɵelement(0, "tr", 39);
|
|
383
|
+
} }
|
|
384
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
385
|
+
i0.ɵɵelement(0, "tr", 40);
|
|
386
|
+
} if (rf & 2) {
|
|
387
|
+
const row_r11 = ctx.$implicit;
|
|
388
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
389
|
+
i0.ɵɵclassProp("doc-picker-row-selected", ctx_r1.isRowSelected(row_r11));
|
|
390
|
+
i0.ɵɵattribute("aria-label", "Row: " + (row_r11["reference"] ?? "document"))("aria-selected", ctx_r1.isRowSelected(row_r11));
|
|
391
|
+
} }
|
|
392
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
393
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "table", 24);
|
|
394
|
+
i0.ɵɵrepeaterCreate(2, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_For_3_Template, 3, 2, "ng-container", 25, _forTrack0);
|
|
395
|
+
i0.ɵɵtemplate(4, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_tr_4_Template, 1, 0, "tr", 26)(5, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_tr_5_Template, 1, 4, "tr", 27);
|
|
396
|
+
i0.ɵɵelementEnd()();
|
|
397
|
+
} if (rf & 2) {
|
|
398
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
399
|
+
i0.ɵɵadvance();
|
|
400
|
+
i0.ɵɵproperty("dataSource", ctx_r1.dataSource);
|
|
401
|
+
i0.ɵɵadvance();
|
|
402
|
+
i0.ɵɵrepeater(ctx_r1._cols);
|
|
403
|
+
i0.ɵɵadvance(2);
|
|
404
|
+
i0.ɵɵproperty("matHeaderRowDef", ctx_r1.displayedColumns)("matHeaderRowDefSticky", true);
|
|
405
|
+
i0.ɵɵadvance();
|
|
406
|
+
i0.ɵɵproperty("matRowDefColumns", ctx_r1.displayedColumns);
|
|
407
|
+
} }
|
|
408
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_th_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
409
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
410
|
+
i0.ɵɵelementStart(0, "button", 32);
|
|
411
|
+
i0.ɵɵlistener("click", function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_th_1_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.refreshDocuments()); });
|
|
412
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
413
|
+
i0.ɵɵtext(2, "sync");
|
|
414
|
+
i0.ɵɵelementEnd()();
|
|
415
|
+
} }
|
|
416
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_th_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
417
|
+
i0.ɵɵtext(0);
|
|
418
|
+
} if (rf & 2) {
|
|
419
|
+
const col_r14 = i0.ɵɵnextContext(2).$implicit;
|
|
420
|
+
i0.ɵɵtextInterpolate1(" ", col_r14.label, " ");
|
|
421
|
+
} }
|
|
422
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
423
|
+
i0.ɵɵelementStart(0, "th", 30);
|
|
424
|
+
i0.ɵɵconditionalCreate(1, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_th_1_Conditional_1_Template, 3, 0, "button", 31)(2, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_th_1_Conditional_2_Template, 1, 1);
|
|
425
|
+
i0.ɵɵelementEnd();
|
|
426
|
+
} if (rf & 2) {
|
|
427
|
+
const col_r14 = i0.ɵɵnextContext().$implicit;
|
|
428
|
+
i0.ɵɵclassProp("text-right-align", col_r14.type === "currency" || col_r14.type === "number")("doc-picker-col-icons", col_r14.formControlName === "icons")("doc-picker-col-actions", col_r14.formControlName === "actions")("doc-picker-col-text", col_r14.formControlName !== "icons" && col_r14.formControlName !== "actions" && col_r14.type !== "currency" && col_r14.type !== "number")("doc-picker-col-numeric", col_r14.type === "currency" || col_r14.type === "number");
|
|
429
|
+
i0.ɵɵproperty("disabled", col_r14.formControlName === "icons" || col_r14.formControlName === "actions");
|
|
430
|
+
i0.ɵɵadvance();
|
|
431
|
+
i0.ɵɵconditional(col_r14.formControlName === "actions" ? 1 : 2);
|
|
432
|
+
} }
|
|
433
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
434
|
+
i0.ɵɵelementStart(0, "mat-icon", 34);
|
|
435
|
+
i0.ɵɵtext(1, "description");
|
|
436
|
+
i0.ɵɵelementEnd();
|
|
437
|
+
} }
|
|
438
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
439
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
440
|
+
i0.ɵɵelementStart(0, "mat-radio-button", 44);
|
|
441
|
+
i0.ɵɵlistener("click", function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Conditional_2_Template_mat_radio_button_click_0_listener($event) { i0.ɵɵrestoreView(_r15); const row_r16 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.onRadioClick(row_r16, $event)); });
|
|
442
|
+
i0.ɵɵelementEnd();
|
|
443
|
+
} if (rf & 2) {
|
|
444
|
+
let tmp_17_0;
|
|
445
|
+
const row_r16 = i0.ɵɵnextContext().$implicit;
|
|
446
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
447
|
+
i0.ɵɵproperty("value", ctx_r1.getRowId(row_r16))("disabled", !!((tmp_17_0 = ctx_r1.inputConfig()) == null ? null : tmp_17_0.disabled) || !!((tmp_17_0 = ctx_r1.inputConfig()) == null ? null : tmp_17_0.readonly))("matTooltip", ctx_r1.isRowSelected(row_r16) ? "Clear selection" : "Select " + (row_r16["reference"] ?? "document"));
|
|
448
|
+
i0.ɵɵattribute("aria-label", ctx_r1.isRowSelected(row_r16) ? "Clear selection" : "Select " + (row_r16["reference"] ?? "document"));
|
|
449
|
+
} }
|
|
450
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
451
|
+
i0.ɵɵelementStart(0, "span", 38);
|
|
452
|
+
i0.ɵɵpipe(1, "formatData");
|
|
453
|
+
i0.ɵɵtext(2);
|
|
454
|
+
i0.ɵɵpipe(3, "formatData");
|
|
455
|
+
i0.ɵɵelementEnd();
|
|
456
|
+
} if (rf & 2) {
|
|
457
|
+
const row_r16 = i0.ɵɵnextContext().$implicit;
|
|
458
|
+
const col_r14 = i0.ɵɵnextContext().$implicit;
|
|
459
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
460
|
+
i0.ɵɵclassProp("doc-picker-cell-selected", ctx_r1.isRowSelected(row_r16));
|
|
461
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind2(1, 4, row_r16[col_r14.formControlName], col_r14.type));
|
|
462
|
+
i0.ɵɵadvance(2);
|
|
463
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 7, row_r16[col_r14.formControlName], col_r14.type), " ");
|
|
464
|
+
} }
|
|
465
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
466
|
+
i0.ɵɵelementStart(0, "td", 33);
|
|
467
|
+
i0.ɵɵconditionalCreate(1, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Conditional_1_Template, 2, 0, "mat-icon", 34)(2, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Conditional_2_Template, 1, 4, "mat-radio-button", 43)(3, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Conditional_3_Template, 4, 10, "span", 36);
|
|
468
|
+
i0.ɵɵelementEnd();
|
|
469
|
+
} if (rf & 2) {
|
|
470
|
+
const col_r14 = i0.ɵɵnextContext().$implicit;
|
|
471
|
+
i0.ɵɵclassProp("text-right-align", col_r14.type === "currency" || col_r14.type === "number")("doc-picker-col-icons", col_r14.formControlName === "icons")("doc-picker-col-actions", col_r14.formControlName === "actions")("doc-picker-col-text", col_r14.formControlName !== "icons" && col_r14.formControlName !== "actions" && col_r14.type !== "currency" && col_r14.type !== "number")("doc-picker-col-numeric", col_r14.type === "currency" || col_r14.type === "number");
|
|
472
|
+
i0.ɵɵadvance();
|
|
473
|
+
i0.ɵɵconditional(col_r14.formControlName === "icons" ? 1 : col_r14.formControlName === "actions" ? 2 : 3);
|
|
474
|
+
} }
|
|
475
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
476
|
+
i0.ɵɵelementContainerStart(0, 25);
|
|
477
|
+
i0.ɵɵtemplate(1, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_th_1_Template, 3, 12, "th", 28)(2, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_td_2_Template, 4, 11, "td", 29);
|
|
478
|
+
i0.ɵɵelementContainerEnd();
|
|
479
|
+
} if (rf & 2) {
|
|
480
|
+
const col_r14 = ctx.$implicit;
|
|
481
|
+
const ɵ$index_132_r17 = ctx.$index;
|
|
482
|
+
const ɵ$count_132_r18 = ctx.$count;
|
|
483
|
+
i0.ɵɵproperty("matColumnDef", col_r14.formControlName)("stickyEnd", ɵ$index_132_r17 === ɵ$count_132_r18 - 1);
|
|
484
|
+
} }
|
|
485
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
486
|
+
i0.ɵɵelement(0, "tr", 39);
|
|
487
|
+
} }
|
|
488
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_tr_6_Template(rf, ctx) { if (rf & 1) {
|
|
489
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
490
|
+
i0.ɵɵelementStart(0, "tr", 45);
|
|
491
|
+
i0.ɵɵlistener("click", function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_tr_6_Template_tr_click_0_listener($event) { const row_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onRowClick(row_r20, $event)); });
|
|
492
|
+
i0.ɵɵelementEnd();
|
|
493
|
+
} if (rf & 2) {
|
|
494
|
+
const row_r20 = ctx.$implicit;
|
|
495
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
496
|
+
i0.ɵɵclassProp("doc-picker-row-selected", ctx_r1.isRowSelected(row_r20));
|
|
497
|
+
i0.ɵɵattribute("aria-label", "Row: " + (row_r20["reference"] ?? "document"))("aria-selected", ctx_r1.isRowSelected(row_r20));
|
|
498
|
+
} }
|
|
499
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
500
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
501
|
+
i0.ɵɵelementStart(0, "mat-radio-group", 41);
|
|
502
|
+
i0.ɵɵlistener("change", function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_Template_mat_radio_group_change_0_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onRadioChange($event)); });
|
|
503
|
+
i0.ɵɵelementStart(1, "div", 22)(2, "table", 24);
|
|
504
|
+
i0.ɵɵrepeaterCreate(3, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_For_4_Template, 3, 2, "ng-container", 25, _forTrack0);
|
|
505
|
+
i0.ɵɵtemplate(5, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_tr_5_Template, 1, 0, "tr", 26)(6, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_tr_6_Template, 1, 4, "tr", 42);
|
|
506
|
+
i0.ɵɵelementEnd()()();
|
|
507
|
+
} if (rf & 2) {
|
|
508
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
509
|
+
i0.ɵɵproperty("value", ctx_r1.value);
|
|
510
|
+
i0.ɵɵadvance(2);
|
|
511
|
+
i0.ɵɵproperty("dataSource", ctx_r1.dataSource);
|
|
512
|
+
i0.ɵɵadvance();
|
|
513
|
+
i0.ɵɵrepeater(ctx_r1._cols);
|
|
514
|
+
i0.ɵɵadvance(2);
|
|
515
|
+
i0.ɵɵproperty("matHeaderRowDef", ctx_r1.displayedColumns)("matHeaderRowDefSticky", true);
|
|
516
|
+
i0.ɵɵadvance();
|
|
517
|
+
i0.ɵɵproperty("matRowDefColumns", ctx_r1.displayedColumns);
|
|
518
|
+
} }
|
|
519
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
520
|
+
i0.ɵɵconditionalCreate(0, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_0_Template, 6, 4, "div", 22)(1, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Conditional_1_Template, 7, 5, "mat-radio-group", 23);
|
|
521
|
+
} if (rf & 2) {
|
|
522
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
523
|
+
i0.ɵɵconditional(ctx_r1.isMultiSelect ? 0 : 1);
|
|
524
|
+
} }
|
|
525
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
526
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
527
|
+
i0.ɵɵelementStart(0, "mat-paginator", 46);
|
|
528
|
+
i0.ɵɵlistener("page", function DocumentPickerReactiveInputComponent_Conditional_4_Conditional_6_Template_mat_paginator_page_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onPageChange($event)); });
|
|
529
|
+
i0.ɵɵelementEnd();
|
|
530
|
+
} if (rf & 2) {
|
|
531
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
532
|
+
i0.ɵɵproperty("pageSizeOptions", i0.ɵɵpureFunction0(4, _c0))("pageSize", ctx_r1.pageSizeForDisplay)("length", ctx_r1.footerConfig ? ctx_r1.footerConfig.totalItems : ctx_r1.dataSource.filteredData.length)("pageIndex", ctx_r1.pageIndexForDisplay);
|
|
533
|
+
} }
|
|
534
|
+
function DocumentPickerReactiveInputComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
535
|
+
i0.ɵɵelementStart(0, "div", 14);
|
|
536
|
+
i0.ɵɵconditionalCreate(1, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_1_Template, 7, 4, "div", 15);
|
|
537
|
+
i0.ɵɵelementStart(2, "div", 16);
|
|
538
|
+
i0.ɵɵconditionalCreate(3, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_3_Template, 2, 1, "div", 17);
|
|
539
|
+
i0.ɵɵconditionalCreate(4, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_4_Template, 9, 1, "div", 18);
|
|
540
|
+
i0.ɵɵconditionalCreate(5, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_5_Template, 2, 1);
|
|
541
|
+
i0.ɵɵelementEnd()();
|
|
542
|
+
i0.ɵɵconditionalCreate(6, DocumentPickerReactiveInputComponent_Conditional_4_Conditional_6_Template, 1, 5, "mat-paginator", 19);
|
|
543
|
+
} if (rf & 2) {
|
|
544
|
+
let tmp_1_0;
|
|
545
|
+
let tmp_5_0;
|
|
546
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
547
|
+
i0.ɵɵadvance();
|
|
548
|
+
i0.ɵɵconditional(!((tmp_1_0 = ctx_r1.inputConfig()) == null ? null : tmp_1_0.disabled) && !((tmp_1_0 = ctx_r1.inputConfig()) == null ? null : tmp_1_0.readonly) && !ctx_r1.selectedDocument ? 1 : -1);
|
|
549
|
+
i0.ɵɵadvance(2);
|
|
550
|
+
i0.ɵɵconditional(ctx_r1._loadingCols || ctx_r1.loadingData ? 3 : -1);
|
|
551
|
+
i0.ɵɵadvance();
|
|
552
|
+
i0.ɵɵconditional(ctx_r1.dataSource.filteredData.length === 0 && !ctx_r1.loadingData && !ctx_r1._loadingCols ? 4 : -1);
|
|
553
|
+
i0.ɵɵadvance();
|
|
554
|
+
i0.ɵɵconditional(ctx_r1.dataSource.filteredData.length > 0 && ctx_r1._cols.length > 0 ? 5 : -1);
|
|
555
|
+
i0.ɵɵadvance();
|
|
556
|
+
i0.ɵɵconditional(!((tmp_5_0 = ctx_r1.inputConfig()) == null ? null : tmp_5_0.disabled) && !((tmp_5_0 = ctx_r1.inputConfig()) == null ? null : tmp_5_0.readonly) && !ctx_r1.selectedDocument ? 6 : -1);
|
|
557
|
+
} }
|
|
558
|
+
const customInputConfig = {
|
|
559
|
+
controlType: 'lib-document-picker-reactive-input',
|
|
560
|
+
nextId: 0,
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* Document Picker: Link workflow transactions via search, sort, and selection.
|
|
564
|
+
*
|
|
565
|
+
* User Story: As a Process Coordinator, I want to search, sort, and select specific workflow
|
|
566
|
+
* transactions from a paginated list, so that I can accurately link related records.
|
|
567
|
+
*
|
|
568
|
+
* AC1 Dynamic loading: Reloads when workflowId/inputConfig changes.
|
|
569
|
+
* AC2 Search: Refreshes list and resets to page 1 on keyword change; restores full list when cleared.
|
|
570
|
+
* AC3 Sort/Pagination: Sort resets to page 1; pagination fetches subset while preserving search/sort.
|
|
571
|
+
* AC4 Selection: Selected transaction shown clearly; deselect restores paginated view.
|
|
572
|
+
* AC5 Empty/Error: "No transactions found" when empty; error state with retry option.
|
|
573
|
+
*/
|
|
574
|
+
class DocumentPickerReactiveInputComponent extends BaseCustomInput {
|
|
575
|
+
#formsConfig;
|
|
576
|
+
#documentLoader;
|
|
577
|
+
#cdr;
|
|
578
|
+
#destroyRef;
|
|
579
|
+
#pickerConfig;
|
|
580
|
+
#lastInputConfig;
|
|
581
|
+
/** Documents loaded in memory. For client-side: full list; for server-side: current page only. */
|
|
582
|
+
#documentOptions;
|
|
583
|
+
/** Last loaded workflowId/sourceType - only reload when these change. */
|
|
584
|
+
#lastLoadedWorkflowId;
|
|
585
|
+
#lastLoadedSourceType;
|
|
586
|
+
constructor() {
|
|
587
|
+
super(inject(NgControl, { self: true, optional: true }), inject(ElementRef), customInputConfig);
|
|
588
|
+
this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
|
|
589
|
+
this.searchPlaceholder = input('Search transactions…', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
|
|
590
|
+
this.emptyMessage = input('No transactions found', ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
591
|
+
this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
592
|
+
this.searchFormControl = new FormControl('');
|
|
593
|
+
this.dataSource = new MatTableDataSource([]);
|
|
594
|
+
this.sort = viewChild(MatSort, ...(ngDevMode ? [{ debugName: "sort" }] : /* istanbul ignore next */ []));
|
|
595
|
+
this.paginator = viewChild(MatPaginator, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
596
|
+
this.#formsConfig = inject(NGX_T_FORMS_CONFIG_TOKEN);
|
|
597
|
+
this.#documentLoader = inject(DocumentLoaderService);
|
|
598
|
+
this.#cdr = inject(ChangeDetectorRef);
|
|
599
|
+
this.#destroyRef = inject(DestroyRef);
|
|
600
|
+
this._cols = [];
|
|
601
|
+
this._loadingCols = false;
|
|
602
|
+
/** Documents loaded in memory. For client-side: full list; for server-side: current page only. */
|
|
603
|
+
this.#documentOptions = [];
|
|
604
|
+
this.serverPage = 1;
|
|
605
|
+
this.serverPageSize = 5;
|
|
606
|
+
this.serverSort = { ...DEFAULT_SORT };
|
|
607
|
+
this.loadingData = false;
|
|
608
|
+
this.selectedDocument = undefined;
|
|
609
|
+
this.#listenToStateChanges();
|
|
610
|
+
this.#setupFilterPredicate();
|
|
611
|
+
this.#setupSearchSubscription();
|
|
612
|
+
// Replaces the previous @Input setter side-effect: react to inputConfig changes.
|
|
613
|
+
effect(() => {
|
|
614
|
+
const value = this.inputConfig();
|
|
615
|
+
if (_isEqual(this.#lastInputConfig, value))
|
|
616
|
+
return;
|
|
617
|
+
this.#lastInputConfig = value;
|
|
618
|
+
this.loadCols();
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
get isMultiSelect() {
|
|
622
|
+
return this.inputConfig()?.allowMultipleSelection === true;
|
|
623
|
+
}
|
|
624
|
+
get primaryIdentifierKey() {
|
|
625
|
+
return this.inputConfig()?.workflowPickerConfig?.primaryIdentifierKey;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Returns the row identifier. Uses returnMappedPathValue when primaryIdentifierKey is set,
|
|
629
|
+
* resolving against the original document (row._originalDoc) for nested paths like form.customId,
|
|
630
|
+
* since the table row is flattened. Fallback: _id or id.
|
|
631
|
+
*/
|
|
632
|
+
getRowId(row) {
|
|
633
|
+
const pk = this.primaryIdentifierKey;
|
|
634
|
+
if (pk != null && pk !== '') {
|
|
635
|
+
const doc = row['_originalDoc'] ?? row;
|
|
636
|
+
return returnMappedPathValue(pk, doc);
|
|
637
|
+
}
|
|
638
|
+
return row['_id'] ?? row['id'];
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Builds a filter object for the selected value.
|
|
642
|
+
* Key: dot-joined path from primaryIdentifierKey (e.g. form.customId) or '_id' when not set.
|
|
643
|
+
* Value: the current value.
|
|
644
|
+
*/
|
|
645
|
+
#buildFilterForValue() {
|
|
646
|
+
const val = this.value;
|
|
647
|
+
if (val == null || val === '')
|
|
648
|
+
return undefined;
|
|
649
|
+
const pk = this.primaryIdentifierKey;
|
|
650
|
+
let filterKey = '_id';
|
|
651
|
+
if (pk != null && pk !== '') {
|
|
652
|
+
if (typeof pk === 'string') {
|
|
653
|
+
filterKey = pk;
|
|
654
|
+
}
|
|
655
|
+
else if (Array.isArray(pk) && pk.length > 0) {
|
|
656
|
+
filterKey = pk
|
|
657
|
+
.map((n) => (typeof n === 'object' && n != null && (n).key != null ? String((n).key) : String(n)))
|
|
658
|
+
.join('.');
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return { [filterKey]: val };
|
|
662
|
+
}
|
|
663
|
+
/** Builds a minimal row from an id for fallback when the row is not in documentOptions/dataSource. */
|
|
664
|
+
#buildFallbackRowFromId(id) {
|
|
665
|
+
const pk = this.primaryIdentifierKey;
|
|
666
|
+
if (!pk || !Array.isArray(pk) || pk.length === 0) {
|
|
667
|
+
return { _id: id, id };
|
|
668
|
+
}
|
|
669
|
+
const obj = {};
|
|
670
|
+
let current = obj;
|
|
671
|
+
for (let i = 0; i < pk.length; i++) {
|
|
672
|
+
const node = pk[i];
|
|
673
|
+
const key = typeof node === 'object' && node != null && node.key != null ? String(node.key) : String(node);
|
|
674
|
+
const isLast = i === pk.length - 1;
|
|
675
|
+
if (isLast) {
|
|
676
|
+
current[key] = id;
|
|
677
|
+
}
|
|
678
|
+
else {
|
|
679
|
+
current[key] = {};
|
|
680
|
+
current = current[key];
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
return obj;
|
|
684
|
+
}
|
|
685
|
+
/** Returns selected id(s) as strings. Handles value from form/API (string, number, ObjectId, etc.). */
|
|
686
|
+
getSelectedIds() {
|
|
687
|
+
const v = this.value;
|
|
688
|
+
if (v == null || v === '')
|
|
689
|
+
return [];
|
|
690
|
+
if (Array.isArray(v))
|
|
691
|
+
return v.map((x) => (x != null ? String(x) : '')).filter(Boolean);
|
|
692
|
+
return [String(v)];
|
|
693
|
+
}
|
|
694
|
+
isRowSelected(row) {
|
|
695
|
+
const id = this.getRowId(row);
|
|
696
|
+
return this.getSelectedIds().some((sid) => sid == id || String(id) === sid);
|
|
697
|
+
}
|
|
698
|
+
get empty() {
|
|
699
|
+
const n = this.value;
|
|
700
|
+
if (n === null || n === undefined)
|
|
701
|
+
return true;
|
|
702
|
+
if (this.isMultiSelect) {
|
|
703
|
+
return Array.isArray(n) && n.length === 0;
|
|
704
|
+
}
|
|
705
|
+
return n === '';
|
|
706
|
+
}
|
|
707
|
+
get shouldLabelFloat() {
|
|
708
|
+
return true;
|
|
709
|
+
}
|
|
710
|
+
ngAfterViewInit() {
|
|
711
|
+
const sortRef = this.sort();
|
|
712
|
+
if (sortRef) {
|
|
713
|
+
this.dataSource.sort = sortRef;
|
|
714
|
+
sortRef.sortChange.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((s) => {
|
|
715
|
+
if (this.footerConfig && s.active && s.direction) {
|
|
716
|
+
this.onSortChange(s.active, s.direction);
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
this.#attachPaginatorIfNeeded();
|
|
721
|
+
}
|
|
722
|
+
/** Attach paginator when client-side (not server-side). Server-side uses length from footerConfig. */
|
|
723
|
+
#attachPaginatorIfNeeded() {
|
|
724
|
+
if (this.footerConfig)
|
|
725
|
+
return; // Server-side: paginator length handled by template
|
|
726
|
+
const paginatorRef = this.paginator();
|
|
727
|
+
if (paginatorRef && this.dataSource.paginator !== paginatorRef) {
|
|
728
|
+
this.dataSource.paginator = paginatorRef;
|
|
729
|
+
this.#cdr.markForCheck();
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
#setupFilterPredicate() {
|
|
733
|
+
this.dataSource.filterPredicate = (doc, filter) => {
|
|
734
|
+
const term = filter?.trim();
|
|
735
|
+
if (!term)
|
|
736
|
+
return true;
|
|
737
|
+
if (typeof doc !== 'object' || doc === null)
|
|
738
|
+
return false;
|
|
739
|
+
const regex = new RegExp(term.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), 'i');
|
|
740
|
+
return Object.values(doc).some(value => typeof value === 'string' && regex.test(value));
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
#setupSearchSubscription() {
|
|
744
|
+
this.searchFormControl.valueChanges.pipe(debounceTime(400), map$1((term) => term?.trim() ?? ''), distinctUntilChanged((a, b) => a === b), takeUntilDestroyed(this.#destroyRef)).subscribe((filter) => {
|
|
745
|
+
if (this.footerConfig) {
|
|
746
|
+
this.serverPage = 1;
|
|
747
|
+
this.loadDocumentOptions(true);
|
|
748
|
+
}
|
|
749
|
+
else {
|
|
750
|
+
this.dataSource.filter = filter;
|
|
751
|
+
this.dataSource.paginator?.firstPage();
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
get parentFormGroup() {
|
|
756
|
+
return this.ngControl?.control?.parent;
|
|
757
|
+
}
|
|
758
|
+
get displayedColumns() {
|
|
759
|
+
return this._cols.map((col) => col.formControlName);
|
|
760
|
+
}
|
|
761
|
+
/** Page index for paginator: server-side uses serverPage; client-side uses paginator's current page. */
|
|
762
|
+
get pageIndexForDisplay() {
|
|
763
|
+
return this.footerConfig ? this.serverPage - 1 : (this.paginator()?.pageIndex ?? 0);
|
|
764
|
+
}
|
|
765
|
+
/** Page size for paginator: server-side uses serverPageSize; client-side uses paginator's current size. */
|
|
766
|
+
get pageSizeForDisplay() {
|
|
767
|
+
return this.footerConfig ? this.serverPageSize : (this.paginator()?.pageSize ?? 5);
|
|
768
|
+
}
|
|
769
|
+
/** True when server echoes sort in footerConfig; false when sortBy is empty → use local sort. */
|
|
770
|
+
get serverMaintainsSort() {
|
|
771
|
+
const sb = this.footerConfig?.sortBy;
|
|
772
|
+
return !!(sb && typeof sb === 'object' && Object.keys(sb).length > 0);
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* Documents load only when workflowId or documentSourceType changes.
|
|
776
|
+
* Search, pagination, sorting operate client-side on already-loaded data.
|
|
777
|
+
*/
|
|
778
|
+
#shouldLoadDocuments(forceRefresh) {
|
|
779
|
+
if (forceRefresh)
|
|
780
|
+
return true;
|
|
781
|
+
const pickerConfig = this.inputConfig()?.workflowPickerConfig;
|
|
782
|
+
const workflowId = pickerConfig?.workflowId ?? '';
|
|
783
|
+
const sourceType = pickerConfig?.documentSourceType ?? 'default';
|
|
784
|
+
if (!workflowId || !sourceType)
|
|
785
|
+
return false;
|
|
786
|
+
return (this.#lastLoadedWorkflowId !== workflowId || this.#lastLoadedSourceType !== sourceType);
|
|
787
|
+
}
|
|
788
|
+
#listenToStateChanges() {
|
|
789
|
+
this.stateChanges.pipe(takeUntilDestroyed(this.#destroyRef), tap(() => {
|
|
790
|
+
if (this.isMultiSelect) {
|
|
791
|
+
this.dataSource.data = [...this.#documentOptions];
|
|
792
|
+
this.#cdr.markForCheck();
|
|
793
|
+
return;
|
|
794
|
+
}
|
|
795
|
+
const hasValue = !!this.value;
|
|
796
|
+
const docIdMatches = this.selectedDocument != null && this.getRowId(this.selectedDocument) == this.value;
|
|
797
|
+
if (!docIdMatches && hasValue) {
|
|
798
|
+
// Use filter so the selected document appears on the first page
|
|
799
|
+
this.serverPage = 1;
|
|
800
|
+
this.loadDocumentOptions(true);
|
|
801
|
+
}
|
|
802
|
+
else if (!docIdMatches && !hasValue) {
|
|
803
|
+
this.restoreDocumentList();
|
|
804
|
+
}
|
|
805
|
+
})).subscribe();
|
|
806
|
+
}
|
|
807
|
+
/** Restore list view from memory (no API call). Use when value is cleared or user deselects. */
|
|
808
|
+
restoreDocumentList() {
|
|
809
|
+
this.selectedDocument = undefined;
|
|
810
|
+
this.dataSource.data = [...this.#documentOptions];
|
|
811
|
+
this.loadingData = false;
|
|
812
|
+
this.dataLoadingError = undefined;
|
|
813
|
+
setTimeout(() => this.#attachPaginatorIfNeeded(), 0);
|
|
814
|
+
this.#cdr.markForCheck();
|
|
815
|
+
}
|
|
816
|
+
loadCols() {
|
|
817
|
+
const newConfig = this.#lastInputConfig?.workflowPickerConfig;
|
|
818
|
+
if (_isEqual(this.#pickerConfig, newConfig))
|
|
819
|
+
return;
|
|
820
|
+
if (!newConfig?.workflowId) {
|
|
821
|
+
this.#pickerConfig = newConfig;
|
|
822
|
+
this._cols = [];
|
|
823
|
+
this.#documentOptions = [];
|
|
824
|
+
this.dataSource.data = [];
|
|
825
|
+
this.#lastLoadedWorkflowId = undefined;
|
|
826
|
+
this.#lastLoadedSourceType = undefined;
|
|
827
|
+
this.footerConfig = undefined;
|
|
828
|
+
this.serverPage = 1;
|
|
829
|
+
this.serverPageSize = 10;
|
|
830
|
+
this.serverSort = { ...DEFAULT_SORT };
|
|
831
|
+
this.selectedDocument = undefined;
|
|
832
|
+
this.dataLoadingError = undefined;
|
|
833
|
+
this.#cdr.markForCheck();
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
this.#pickerConfig = newConfig;
|
|
837
|
+
this.#lastLoadedWorkflowId = undefined;
|
|
838
|
+
this.#lastLoadedSourceType = undefined;
|
|
839
|
+
this.footerConfig = undefined;
|
|
840
|
+
this.serverPage = 1;
|
|
841
|
+
this._loadingCols = true;
|
|
842
|
+
this.#cdr.markForCheck();
|
|
843
|
+
this.#formsConfig.formBuilder.getWorkflowCols(newConfig.workflowId).pipe(take$1(1), tap((cols) => {
|
|
844
|
+
this._cols = [
|
|
845
|
+
{ label: '', formControlName: 'icons' },
|
|
846
|
+
{ label: 'reference', formControlName: 'reference' },
|
|
847
|
+
{ label: 'Updated', formControlName: 'updatedAt', type: DocumentLitsLabelConfigInterfaceValueType.date },
|
|
848
|
+
...cols,
|
|
849
|
+
{ label: '', formControlName: 'actions' },
|
|
850
|
+
];
|
|
851
|
+
this.loadDocumentOptions();
|
|
852
|
+
}), catchError$1(() => {
|
|
853
|
+
this._cols = [];
|
|
854
|
+
return of([]);
|
|
855
|
+
}), finalize(() => {
|
|
856
|
+
this._loadingCols = false;
|
|
857
|
+
this.#cdr.markForCheck();
|
|
858
|
+
}), takeUntilDestroyed(this.#destroyRef)).subscribe();
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* Load documents only when workflowId or documentSourceType changes.
|
|
862
|
+
* Called from: loadCols (config change), refreshDocuments (user refresh).
|
|
863
|
+
*/
|
|
864
|
+
loadDocumentOptions(forceRefresh = false) {
|
|
865
|
+
const pickerConfig = this.inputConfig()?.workflowPickerConfig;
|
|
866
|
+
const workflowId = pickerConfig?.workflowId ?? '';
|
|
867
|
+
const sourceType = pickerConfig?.documentSourceType ?? 'default';
|
|
868
|
+
const newSource = pickerConfig?.documentsSource;
|
|
869
|
+
if (!sourceType)
|
|
870
|
+
return;
|
|
871
|
+
if (!forceRefresh && !this.#shouldLoadDocuments(false))
|
|
872
|
+
return;
|
|
873
|
+
this.#lastLoadedWorkflowId = workflowId;
|
|
874
|
+
this.#lastLoadedSourceType = sourceType;
|
|
875
|
+
this.loadingData = true;
|
|
876
|
+
this.dataLoadingError = undefined;
|
|
877
|
+
this.#cdr.markForCheck();
|
|
878
|
+
const effectiveSort = (this.serverSort && Object.keys(this.serverSort).length > 0) ? this.serverSort : DEFAULT_SORT;
|
|
879
|
+
const filter = !this.isMultiSelect && this.value ? this.#buildFilterForValue() : undefined;
|
|
880
|
+
const parentFormValue = {
|
|
881
|
+
...(this.parentFormGroup?.value ?? {}),
|
|
882
|
+
page: this.serverPage,
|
|
883
|
+
itemsPerPage: this.serverPageSize,
|
|
884
|
+
sort: effectiveSort,
|
|
885
|
+
searchKey: this.searchFormControl.value?.trim() || undefined,
|
|
886
|
+
...(filter ? { filter } : {}),
|
|
887
|
+
};
|
|
888
|
+
const params = {
|
|
889
|
+
sourceType,
|
|
890
|
+
documentsSource: newSource,
|
|
891
|
+
workflowId,
|
|
892
|
+
parentFormValue,
|
|
893
|
+
formBuilder: this.#formsConfig.formBuilder,
|
|
894
|
+
page: this.serverPage,
|
|
895
|
+
itemsPerPage: this.serverPageSize,
|
|
896
|
+
sort: effectiveSort,
|
|
897
|
+
searchKey: this.searchFormControl.value?.trim() || undefined,
|
|
898
|
+
filter,
|
|
899
|
+
};
|
|
900
|
+
this.#documentLoader.loadDocuments(params).pipe(take$1(1), tap((result) => {
|
|
901
|
+
const documents = result.documents;
|
|
902
|
+
this.#documentOptions = documents;
|
|
903
|
+
this.footerConfig = result.footerConfig;
|
|
904
|
+
this.dataLoadingError = result.error;
|
|
905
|
+
if (this.isMultiSelect) {
|
|
906
|
+
this.dataSource.data = [...this.#documentOptions];
|
|
907
|
+
setTimeout(() => this.#attachPaginatorIfNeeded(), 0);
|
|
908
|
+
}
|
|
909
|
+
else if (this.value) {
|
|
910
|
+
const matchingDoc = documents.find((d) => this.getRowId(d) == this.value);
|
|
911
|
+
const rowFromCurrent = !matchingDoc && this.dataSource.data?.length
|
|
912
|
+
? this.dataSource.data.find((d) => this.getRowId(d) == this.value)
|
|
913
|
+
: null;
|
|
914
|
+
const displayDoc = matchingDoc ?? rowFromCurrent ?? this.#buildFallbackRowFromId(this.value);
|
|
915
|
+
this.selectedDocument = matchingDoc ?? rowFromCurrent ?? undefined;
|
|
916
|
+
this.dataSource.data = [displayDoc];
|
|
917
|
+
setTimeout(() => this.#attachPaginatorIfNeeded(), 0);
|
|
918
|
+
}
|
|
919
|
+
else {
|
|
920
|
+
this.selectedDocument = undefined;
|
|
921
|
+
this.dataSource.data = [...this.#documentOptions];
|
|
922
|
+
setTimeout(() => this.#attachPaginatorIfNeeded(), 0);
|
|
923
|
+
}
|
|
924
|
+
}), catchError$1((error) => {
|
|
925
|
+
this.dataLoadingError =
|
|
926
|
+
error?.error?.message ?? (error instanceof Error ? error.message : 'Unknown error');
|
|
927
|
+
this.#documentOptions = [];
|
|
928
|
+
this.footerConfig = undefined;
|
|
929
|
+
this.dataSource.data = [];
|
|
930
|
+
return of({ documents: [] });
|
|
931
|
+
}), finalize(() => {
|
|
932
|
+
this.loadingData = false;
|
|
933
|
+
this.#cdr.markForCheck();
|
|
934
|
+
}), takeUntilDestroyed(this.#destroyRef)).subscribe();
|
|
935
|
+
}
|
|
936
|
+
refreshDocuments() {
|
|
937
|
+
this.#lastLoadedWorkflowId = undefined;
|
|
938
|
+
this.#lastLoadedSourceType = undefined;
|
|
939
|
+
this.loadDocumentOptions(true);
|
|
940
|
+
}
|
|
941
|
+
/** Server-side: handle paginator page/pageSize change. */
|
|
942
|
+
onPageChange(event) {
|
|
943
|
+
if (!this.footerConfig)
|
|
944
|
+
return;
|
|
945
|
+
this.serverPage = event.pageIndex + 1;
|
|
946
|
+
this.serverPageSize = event.pageSize;
|
|
947
|
+
this.loadDocumentOptions(true);
|
|
948
|
+
}
|
|
949
|
+
/** Server-side: handle sort change. */
|
|
950
|
+
onSortChange(active, direction) {
|
|
951
|
+
if (!this.footerConfig || !active)
|
|
952
|
+
return;
|
|
953
|
+
this.serverSort = { [active]: direction === 'asc' ? 1 : -1 };
|
|
954
|
+
this.serverPage = 1;
|
|
955
|
+
this.loadDocumentOptions(true);
|
|
956
|
+
}
|
|
957
|
+
clearSearch() {
|
|
958
|
+
this.searchFormControl.setValue('');
|
|
959
|
+
}
|
|
960
|
+
onRadioChange(event) {
|
|
961
|
+
const id = event?.value;
|
|
962
|
+
if (id == null)
|
|
963
|
+
return;
|
|
964
|
+
const row = this.#documentOptions.find((r) => this.getRowId(r) == id) ??
|
|
965
|
+
this.dataSource.data.find((r) => this.getRowId(r) == id);
|
|
966
|
+
this.selectRow(row ?? this.#buildFallbackRowFromId(id));
|
|
967
|
+
}
|
|
968
|
+
/** Handle click on radio: if already selected, deselect (radios don't fire change when re-clicked). */
|
|
969
|
+
onRadioClick(row, event) {
|
|
970
|
+
if (this.isRowSelected(row)) {
|
|
971
|
+
event.preventDefault();
|
|
972
|
+
event.stopPropagation();
|
|
973
|
+
this.selectRow(row);
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
/** Handle click on row: toggle selection (select or deselect). Ignores clicks on buttons/controls. */
|
|
977
|
+
onRowClick(row, event) {
|
|
978
|
+
const cfg = this.inputConfig();
|
|
979
|
+
if (!!cfg?.disabled || !!cfg?.readonly)
|
|
980
|
+
return;
|
|
981
|
+
const target = event.target;
|
|
982
|
+
if (target.closest('button, [mat-icon-button], .mat-mdc-radio-button'))
|
|
983
|
+
return;
|
|
984
|
+
this.selectRow(row);
|
|
985
|
+
}
|
|
986
|
+
// Row parameter mirrors `getRowId` / `isRowSelected` which use `Record<string, any>` to match
|
|
987
|
+
// the upstream `MatTableDataSource<Record<string, any>>` declaration.
|
|
988
|
+
selectRow(row) {
|
|
989
|
+
const id = this.getRowId(row);
|
|
990
|
+
const idStr = id != null ? String(id) : undefined;
|
|
991
|
+
if (this.isMultiSelect) {
|
|
992
|
+
const ids = [...this.getSelectedIds()];
|
|
993
|
+
const idx = ids.indexOf(idStr ?? '');
|
|
994
|
+
if (idx >= 0) {
|
|
995
|
+
ids.splice(idx, 1);
|
|
996
|
+
}
|
|
997
|
+
else if (idStr != null) {
|
|
998
|
+
ids.push(idStr);
|
|
999
|
+
}
|
|
1000
|
+
this.value = ids.length ? ids : null;
|
|
1001
|
+
this.onChange(this.value);
|
|
1002
|
+
this.onTouched();
|
|
1003
|
+
this.#cdr.markForCheck();
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
const isDeselecting = this.isRowSelected(row);
|
|
1007
|
+
this.selectedDocument = undefined;
|
|
1008
|
+
this.value = isDeselecting ? null : (idStr ?? null);
|
|
1009
|
+
this.onChange(this.value);
|
|
1010
|
+
this.onTouched();
|
|
1011
|
+
if (isDeselecting) {
|
|
1012
|
+
this.serverPage = 1;
|
|
1013
|
+
this.loadDocumentOptions(true);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
static { this.ɵfac = function DocumentPickerReactiveInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DocumentPickerReactiveInputComponent)(); }; }
|
|
1017
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocumentPickerReactiveInputComponent, selectors: [["lib-document-picker-reactive-input"]], viewQuery: function DocumentPickerReactiveInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1018
|
+
i0.ɵɵviewQuerySignal(ctx.sort, MatSort, 5)(ctx.paginator, MatPaginator, 5);
|
|
1019
|
+
} if (rf & 2) {
|
|
1020
|
+
i0.ɵɵqueryAdvance(2);
|
|
1021
|
+
} }, hostVars: 3, hostBindings: function DocumentPickerReactiveInputComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
1022
|
+
i0.ɵɵdomProperty("id", ctx.id);
|
|
1023
|
+
i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
|
|
1024
|
+
} }, inputs: { formBuilderFunctions: [1, "formBuilderFunctions"], searchPlaceholder: [1, "searchPlaceholder"], emptyMessage: [1, "emptyMessage"], inputConfig: [1, "inputConfig"] }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: DocumentPickerReactiveInputComponent }]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 2, consts: [[1, "doc-picker-card"], [1, "doc-picker-header"], [1, "doc-picker-toolbar"], [1, "doc-picker-error"], ["subscriptSizing", "dynamic", 1, "doc-picker-search"], ["matInput", "", 3, "placeholder", "formControl"], ["mat-icon-button", "", "matSuffix", "", "type", "button", "aria-label", "Clear search"], ["matSuffix", ""], ["role", "status", "aria-live", "polite", 1, "doc-picker-selection-badge"], ["mat-icon-button", "", "matSuffix", "", "type", "button", "aria-label", "Clear search", 3, "click"], ["color", "warn"], [1, "doc-picker-error-text"], ["mat-stroked-button", "", "color", "warn", "aria-label", "Retry loading documents", 1, "doc-picker-retry"], ["mat-stroked-button", "", "color", "warn", "aria-label", "Retry loading documents", 1, "doc-picker-retry", 3, "click"], [1, "doc-picker-body"], [1, "doc-picker-helper"], [1, "doc-picker-content-area"], [1, "doc-picker-loading", "doc-picker-loading-overlay"], [1, "doc-picker-empty"], ["showFirstLastButtons", "", "aria-label", "Transaction list pagination", 1, "doc-picker-paginator", 3, "pageSizeOptions", "pageSize", "length", "pageIndex"], ["color", "primary", 1, "doc-picker-helper-icon"], ["aria-label", "Loading documents", 3, "diameter"], [1, "doc-picker-table-wrapper"], [1, "doc-picker-radio-group", 3, "value"], ["mat-table", "", "matSort", "", "matSortActive", "updatedAt", "matSortDisableClear", "", "matSortDirection", "desc", "role", "grid", "aria-label", "Transaction list", 1, "doc-picker-table", 3, "dataSource"], [3, "matColumnDef", "stickyEnd"], ["mat-header-row", "", 4, "matHeaderRowDef", "matHeaderRowDefSticky"], ["mat-row", "", "class", "doc-picker-row", 3, "doc-picker-row-selected", 4, "matRowDef", "matRowDefColumns"], ["mat-header-cell", "", "mat-sort-header", "", 3, "disabled", "text-right-align", "doc-picker-col-icons", "doc-picker-col-actions", "doc-picker-col-text", "doc-picker-col-numeric", 4, "matHeaderCellDef"], ["mat-cell", "", 3, "text-right-align", "doc-picker-col-icons", "doc-picker-col-actions", "doc-picker-col-text", "doc-picker-col-numeric", 4, "matCellDef"], ["mat-header-cell", "", "mat-sort-header", "", 3, "disabled"], ["mat-icon-button", "", "matTooltip", "Refresh list", "matTooltipPosition", "below", "aria-label", "Refresh document list", 1, "doc-picker-refresh"], ["mat-icon-button", "", "matTooltip", "Refresh list", "matTooltipPosition", "below", "aria-label", "Refresh document list", 1, "doc-picker-refresh", 3, "click"], ["mat-cell", ""], [1, "doc-picker-row-icon"], ["matTooltipPosition", "below", 3, "checked", "disabled", "matTooltip"], ["matTooltipPosition", "above", 1, "doc-picker-cell-value", "doc-picker-cell-text", 3, "doc-picker-cell-selected", "matTooltip"], ["matTooltipPosition", "below", 3, "change", "checked", "disabled", "matTooltip"], ["matTooltipPosition", "above", 1, "doc-picker-cell-value", "doc-picker-cell-text", 3, "matTooltip"], ["mat-header-row", ""], ["mat-row", "", 1, "doc-picker-row"], [1, "doc-picker-radio-group", 3, "change", "value"], ["mat-row", "", "class", "doc-picker-row", 3, "doc-picker-row-selected", "click", 4, "matRowDef", "matRowDefColumns"], ["matTooltipPosition", "below", 3, "value", "disabled", "matTooltip"], ["matTooltipPosition", "below", 3, "click", "value", "disabled", "matTooltip"], ["mat-row", "", 1, "doc-picker-row", 3, "click"], ["showFirstLastButtons", "", "aria-label", "Transaction list pagination", 1, "doc-picker-paginator", 3, "page", "pageSizeOptions", "pageSize", "length", "pageIndex"]], template: function DocumentPickerReactiveInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1025
|
+
i0.ɵɵelementStart(0, "mat-card", 0)(1, "header", 1);
|
|
1026
|
+
i0.ɵɵconditionalCreate(2, DocumentPickerReactiveInputComponent_Conditional_2_Template, 6, 5, "div", 2);
|
|
1027
|
+
i0.ɵɵelementEnd();
|
|
1028
|
+
i0.ɵɵconditionalCreate(3, DocumentPickerReactiveInputComponent_Conditional_3_Template, 6, 2, "div", 3)(4, DocumentPickerReactiveInputComponent_Conditional_4_Template, 7, 5);
|
|
1029
|
+
i0.ɵɵelementEnd();
|
|
1030
|
+
} if (rf & 2) {
|
|
1031
|
+
let tmp_0_0;
|
|
1032
|
+
i0.ɵɵadvance(2);
|
|
1033
|
+
i0.ɵɵconditional(!((tmp_0_0 = ctx.inputConfig()) == null ? null : tmp_0_0.disabled) && !((tmp_0_0 = ctx.inputConfig()) == null ? null : tmp_0_0.readonly) && !ctx.selectedDocument && !ctx.dataLoadingError ? 2 : -1);
|
|
1034
|
+
i0.ɵɵadvance();
|
|
1035
|
+
i0.ɵɵconditional(ctx.dataLoadingError ? 3 : 4);
|
|
1036
|
+
} }, dependencies: [ReactiveFormsModule, i1.DefaultValueAccessor, i1.NgControlStatus, i1.FormControlDirective, MatCardModule, i3.MatCard, MatIconModule, i3$1.MatIcon, MatProgressSpinnerModule, i4.MatProgressSpinner, MatFormFieldModule, i2.MatFormField, i2.MatSuffix, MatInputModule, i2$1.MatInput, MatButtonModule, i1$1.MatButton, i1$1.MatIconButton, MatTooltipModule, i5.MatTooltip, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatSortModule, i10.MatSort, i10.MatSortHeader, MatPaginatorModule, i11.MatPaginator, MatDividerModule,
|
|
1037
|
+
MatCheckboxModule, i3$2.MatCheckbox, MatRadioModule, i13.MatRadioGroup, i13.MatRadioButton, FormatDataPipe], styles: ["[_nghost-%COMP%]{--doc-picker-radius-lg: 12px;--doc-picker-radius-sm: 8px;--doc-picker-radius-pill: 6px;--doc-picker-shadow: 0 2px 8px rgba(0, 0, 0, .08);--doc-picker-primary: var(--mat-sys-primary, #6750a4);--doc-picker-surface: var(--mat-sys-surface, #fef7ff);--doc-picker-surface-container: var(--mat-sys-surface-container, #f3edf7);--doc-picker-on-surface: var(--mat-sys-on-surface, #1c1b1f);--doc-picker-on-surface-variant: var(--mat-sys-on-surface-variant, #49454f);--doc-picker-outline: var(--mat-sys-outline, #79747e)}@media(prefers-color-scheme:dark){[_nghost-%COMP%]{--doc-picker-shadow: 0 1px 3px rgba(0, 0, 0, .3)}}.doc-picker-card[_ngcontent-%COMP%]{border-radius:var(--doc-picker-radius-lg);box-shadow:var(--doc-picker-shadow);border:1px solid color-mix(in srgb,var(--doc-picker-outline) 15%,transparent);overflow:hidden;background:var(--doc-picker-surface)}.doc-picker-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:0rem;background:color-mix(in srgb,var(--doc-picker-primary) 4%,transparent);border-bottom:1px solid color-mix(in srgb,var(--doc-picker-outline) 10%,transparent)}.doc-picker-header-icon[_ngcontent-%COMP%]{width:2.25rem;height:2.25rem;min-width:2.25rem;border-radius:var(--doc-picker-radius-sm);background:color-mix(in srgb,var(--doc-picker-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.doc-picker-header-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.25rem;width:1.25rem;height:1.25rem;color:var(--doc-picker-primary)}.doc-picker-header-content[_ngcontent-%COMP%]{flex:1;min-width:0}.doc-picker-title[_ngcontent-%COMP%]{font-size:.9375rem;font-weight:600;letter-spacing:-.01em;color:var(--doc-picker-on-surface);margin:0;line-height:1.3}.doc-picker-subtitle[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--doc-picker-on-surface-variant);line-height:1.35;margin:.25rem 0 0}.doc-picker-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-shrink:0;width:100%}.doc-picker-selection-badge[_ngcontent-%COMP%]{flex-shrink:0;font-size:.75rem;font-weight:500;padding:.25rem .5rem;border-radius:var(--doc-picker-radius-pill);background:color-mix(in srgb,var(--doc-picker-primary) 14%,transparent);color:var(--doc-picker-primary);white-space:nowrap}.doc-picker-search[_ngcontent-%COMP%]{width:100%;min-width:8rem}.doc-picker-search[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{--mdc-filled-text-field-container-color: transparent;--mdc-filled-text-field-container-shape: var(--doc-picker-radius-sm)}.doc-picker-search[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper[_ngcontent-%COMP%]{display:none}.doc-picker-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:.8125rem}.doc-picker-refresh[_ngcontent-%COMP%]{flex-shrink:0;min-width:fit-content;min-height:fit-content;transition:transform .15s}.doc-picker-refresh[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1.5rem;width:1.5rem;font-size:1.5rem;color:var(--doc-picker-primary);margin:0;padding:0;vertical-align:middle;display:inline-block;line-height:1}.doc-picker-refresh[_ngcontent-%COMP%]:hover{transform:rotate(90deg)}.doc-picker-loading[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:1.5rem;min-height:6rem}.doc-picker-content-area[_ngcontent-%COMP%]{position:relative;min-height:6rem}.doc-picker-loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;background:color-mix(in srgb,var(--doc-picker-surface) 95%,transparent);border-radius:var(--doc-picker-radius-sm)}.doc-picker-error[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.75rem 1rem;margin:.75rem 1rem;background:color-mix(in srgb,var(--mat-sys-error, #b3261e) 8%,transparent);border-radius:var(--doc-picker-radius-sm)}.doc-picker-error[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0;font-size:1.25rem;width:1.25rem;height:1.25rem}.doc-picker-error-text[_ngcontent-%COMP%]{flex:1;font-size:.8125rem;color:var(--doc-picker-on-surface)}.doc-picker-retry[_ngcontent-%COMP%]{min-height:2.25rem;font-size:.8125rem;transition:all .15s}.doc-picker-retry[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:.25rem;vertical-align:middle;font-size:1rem;width:1rem;height:1rem}.doc-picker-body[_ngcontent-%COMP%]{padding:.75rem 1rem;display:flex;flex-direction:column;gap:.75rem}.doc-picker-helper[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem .75rem;background:color-mix(in srgb,var(--doc-picker-primary) 6%,transparent);border-radius:var(--doc-picker-radius-sm);font-size:.8125rem;color:var(--doc-picker-on-surface-variant);line-height:1.4}.doc-picker-helper-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.125rem;height:1.125rem;flex-shrink:0;margin-top:.125rem}.doc-picker-helper[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--doc-picker-on-surface)}.doc-picker-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;font-size:.8125rem;color:var(--doc-picker-on-surface-variant);padding:1rem;background:var(--doc-picker-surface-container);border-radius:var(--doc-picker-radius-sm);text-align:center;margin:0}.doc-picker-empty[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.25rem;width:1.25rem;height:1.25rem;opacity:.7}.doc-picker-table-wrapper[_ngcontent-%COMP%]{overflow:auto;max-height:50vh;border-radius:var(--doc-picker-radius-sm);border:1px solid color-mix(in srgb,var(--doc-picker-outline) 15%,transparent)}.doc-picker-table[_ngcontent-%COMP%]{width:100%;min-width:fit-content;table-layout:auto;border-collapse:collapse}.doc-picker-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--doc-picker-primary) 4%,transparent)}.doc-picker-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{position:sticky;top:0;z-index:3;box-shadow:0 2px 4px #0000000f}.doc-picker-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--doc-picker-on-surface-variant);background:var(--mat-table-background-color, var(--mat-sys-surface));padding:.35rem .5rem}.doc-picker-table[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]{font-size:.75rem;padding:.35rem .5rem}.doc-picker-col-icons[_ngcontent-%COMP%], .doc-picker-col-actions[_ngcontent-%COMP%]{width:2.5rem;min-width:2.5rem;max-width:2.5rem;background:var(--mat-table-background-color, var(--mat-sys-surface))}.doc-picker-col-text[_ngcontent-%COMP%]{width:fit-content;min-width:4rem;max-width:18rem}.doc-picker-col-numeric[_ngcontent-%COMP%]{width:min-content;min-width:4rem}.doc-picker-col-icons[_ngcontent-%COMP%], .doc-picker-col-actions[_ngcontent-%COMP%]{text-align:center}.doc-picker-table[_ngcontent-%COMP%] th.doc-picker-col-actions[_ngcontent-%COMP%], .doc-picker-table[_ngcontent-%COMP%] td.doc-picker-col-actions[_ngcontent-%COMP%]{background:var(--mat-table-background-color, var(--mat-sys-surface))!important;box-shadow:-4px 0 8px #0000000f}.doc-picker-col-actions[_ngcontent-%COMP%] .mat-mdc-checkbox[_ngcontent-%COMP%], .doc-picker-col-actions[_ngcontent-%COMP%] .mat-mdc-radio-button[_ngcontent-%COMP%]{--mdc-checkbox-state-layer-size: 2rem}.doc-picker-radio-group[_ngcontent-%COMP%]{display:block}.doc-picker-row-icon[_ngcontent-%COMP%]{font-size:1.125rem!important;width:1.125rem!important;height:1.125rem!important;color:var(--doc-picker-primary)}.doc-picker-cell-value[_ngcontent-%COMP%]{transition:color .15s}.doc-picker-cell-text[_ngcontent-%COMP%]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.doc-picker-cell-selected[_ngcontent-%COMP%]{color:var(--doc-picker-primary);font-weight:500}.doc-picker-row[_ngcontent-%COMP%]{cursor:pointer;transition:background-color .15s}.doc-picker-row[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--doc-picker-primary) 6%,transparent)}.doc-picker-row-selected[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--doc-picker-primary) 12%,transparent)}.doc-picker-row-selected[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--doc-picker-primary) 14%,transparent)}.doc-picker-paginator[_ngcontent-%COMP%]{background:var(--doc-picker-surface);border-top:1px solid color-mix(in srgb,var(--doc-picker-outline) 10%,transparent)}.doc-picker-paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container[_ngcontent-%COMP%]{padding:.5rem 1rem;font-size:.8125rem}.text-right-align[_ngcontent-%COMP%]{text-align:right}"], changeDetection: 0 }); }
|
|
1038
|
+
}
|
|
1039
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentPickerReactiveInputComponent, [{
|
|
1040
|
+
type: Component,
|
|
1041
|
+
args: [{ selector: 'lib-document-picker-reactive-input', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1042
|
+
ReactiveFormsModule,
|
|
1043
|
+
MatCardModule,
|
|
1044
|
+
MatIconModule,
|
|
1045
|
+
MatProgressSpinnerModule,
|
|
1046
|
+
MatFormFieldModule,
|
|
1047
|
+
MatInputModule,
|
|
1048
|
+
MatButtonModule,
|
|
1049
|
+
MatTooltipModule,
|
|
1050
|
+
MatTableModule,
|
|
1051
|
+
MatSortModule,
|
|
1052
|
+
MatPaginatorModule,
|
|
1053
|
+
MatDividerModule,
|
|
1054
|
+
MatCheckboxModule,
|
|
1055
|
+
MatRadioModule,
|
|
1056
|
+
FormatDataPipe,
|
|
1057
|
+
], host: {
|
|
1058
|
+
'[class.floating]': 'shouldLabelFloat',
|
|
1059
|
+
'[id]': 'id',
|
|
1060
|
+
}, providers: [{ provide: MatFormFieldControl, useExisting: DocumentPickerReactiveInputComponent }], template: "<mat-card class=\"doc-picker-card\">\r\n <header class=\"doc-picker-header\">\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && !selectedDocument && !dataLoadingError) {\r\n <div class=\"doc-picker-toolbar\">\r\n <mat-form-field subscriptSizing=\"dynamic\" class=\"doc-picker-search\">\r\n <input matInput [placeholder]=\"searchPlaceholder()\" [formControl]=\"searchFormControl\"\r\n [attr.aria-label]=\"searchPlaceholder()\">\r\n @if (searchFormControl.value) {\r\n <button mat-icon-button matSuffix (click)=\"clearSearch()\" type=\"button\"\r\n aria-label=\"Clear search\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n } @else {\r\n <mat-icon matSuffix>search</mat-icon>\r\n }\r\n </mat-form-field>\r\n @if (isMultiSelect && getSelectedIds().length > 0) {\r\n <span class=\"doc-picker-selection-badge\" role=\"status\" aria-live=\"polite\">\r\n {{ getSelectedIds().length }} selected\r\n </span>\r\n }\r\n </div>\r\n }\r\n </header>\r\n\r\n @if (dataLoadingError) {\r\n <div class=\"doc-picker-error\">\r\n <mat-icon color=\"warn\">error</mat-icon>\r\n <span class=\"doc-picker-error-text\">{{ dataLoadingError }}</span>\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly) {\r\n <button mat-stroked-button color=\"warn\" (click)=\"refreshDocuments()\" class=\"doc-picker-retry\"\r\n aria-label=\"Retry loading documents\">\r\n <mat-icon>refresh</mat-icon>\r\n Retry\r\n </button>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"doc-picker-body\">\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && !selectedDocument) {\r\n <div class=\"doc-picker-helper\">\r\n <mat-icon class=\"doc-picker-helper-icon\" color=\"primary\">info</mat-icon>\r\n <span><strong>{{ isMultiSelect ? 'Link transactions' : 'Link a transaction' }}</strong> \u2014 Search or sort to find {{ isMultiSelect ? 'them' : 'one' }}, then {{ isMultiSelect ? 'check the box' : 'select the radio' }} to select {{ isMultiSelect ? 'them' : 'it' }}.</span>\r\n </div>\r\n }\r\n <div class=\"doc-picker-content-area\">\r\n @if (_loadingCols || loadingData) {\r\n <div class=\"doc-picker-loading doc-picker-loading-overlay\">\r\n <mat-spinner [diameter]=\"40\" aria-label=\"Loading documents\"></mat-spinner>\r\n </div>\r\n }\r\n @if (dataSource.filteredData.length === 0 && !loadingData && !_loadingCols) {\r\n <div class=\"doc-picker-empty\">\r\n <mat-icon>folder_open</mat-icon>\r\n <span>{{ emptyMessage() }}</span>\r\n <button mat-stroked-button color=\"warn\" (click)=\"refreshDocuments()\" class=\"doc-picker-retry\"\r\n aria-label=\"Retry loading documents\">\r\n <mat-icon>refresh</mat-icon>\r\n Retry\r\n </button>\r\n </div>\r\n }\r\n @if (dataSource.filteredData.length > 0 && _cols.length > 0) {\r\n @if (isMultiSelect) {\r\n <div class=\"doc-picker-table-wrapper\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"doc-picker-table\" matSort matSortActive=\"updatedAt\"\r\n matSortDisableClear matSortDirection=\"desc\" role=\"grid\" aria-label=\"Transaction list\">\r\n @for (col of _cols; track col.formControlName) {\r\n <ng-container [matColumnDef]=\"col.formControlName\" [stickyEnd]=\"$last\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header\r\n [disabled]=\"col.formControlName === 'icons' || col.formControlName === 'actions'\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.formControlName === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.formControlName === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.formControlName !== 'icons' && col.formControlName !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.formControlName === 'actions') {\r\n <button mat-icon-button (click)=\"refreshDocuments()\" class=\"doc-picker-refresh\"\r\n matTooltip=\"Refresh list\" matTooltipPosition=\"below\" aria-label=\"Refresh document list\">\r\n <mat-icon>sync</mat-icon>\r\n </button>\r\n }@else {\r\n {{ col.label }}\r\n }\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.formControlName === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.formControlName === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.formControlName !== 'icons' && col.formControlName !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.formControlName === 'icons') {\r\n <mat-icon class=\"doc-picker-row-icon\">description</mat-icon>\r\n } @else if (col.formControlName === 'actions') {\r\n <mat-checkbox\r\n [checked]=\"isRowSelected(row)\"\r\n [disabled]=\"!!inputConfig()?.disabled || !!inputConfig()?.readonly\"\r\n (change)=\"selectRow(row)\"\r\n [matTooltip]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? 'document')\"\r\n matTooltipPosition=\"below\"\r\n [attr.aria-label]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? 'document')\">\r\n </mat-checkbox>\r\n } @else {\r\n <span class=\"doc-picker-cell-value doc-picker-cell-text\"\r\n [class.doc-picker-cell-selected]=\"isRowSelected(row)\"\r\n [matTooltip]=\"row[col.formControlName] | formatData:col.type\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.formControlName] | formatData:col.type }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row class=\"doc-picker-row\" *matRowDef=\"let row; columns: displayedColumns;\"\r\n [class.doc-picker-row-selected]=\"isRowSelected(row)\"\r\n [attr.aria-label]=\"'Row: ' + (row['reference'] ?? 'document')\"\r\n [attr.aria-selected]=\"isRowSelected(row)\"></tr>\r\n </table>\r\n </div>\r\n } @else {\r\n <mat-radio-group [value]=\"value\" (change)=\"onRadioChange($event)\" class=\"doc-picker-radio-group\">\r\n <div class=\"doc-picker-table-wrapper\">\r\n <table mat-table [dataSource]=\"dataSource\" class=\"doc-picker-table\" matSort matSortActive=\"updatedAt\"\r\n matSortDisableClear matSortDirection=\"desc\" role=\"grid\" aria-label=\"Transaction list\">\r\n @for (col of _cols; track col.formControlName) {\r\n <ng-container [matColumnDef]=\"col.formControlName\" [stickyEnd]=\"$last\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header\r\n [disabled]=\"col.formControlName === 'icons' || col.formControlName === 'actions'\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.formControlName === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.formControlName === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.formControlName !== 'icons' && col.formControlName !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n \r\n\r\n @if (col.formControlName === 'actions') {\r\n <button mat-icon-button (click)=\"refreshDocuments()\" class=\"doc-picker-refresh\"\r\n matTooltip=\"Refresh list\" matTooltipPosition=\"below\" aria-label=\"Refresh document list\">\r\n <mat-icon>sync</mat-icon>\r\n </button>\r\n }@else {\r\n {{ col.label }}\r\n }\r\n \r\n </th>\r\n <td mat-cell *matCellDef=\"let row\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.formControlName === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.formControlName === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.formControlName !== 'icons' && col.formControlName !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.formControlName === 'icons') {\r\n <mat-icon class=\"doc-picker-row-icon\">description</mat-icon>\r\n } @else if (col.formControlName === 'actions') {\r\n <mat-radio-button\r\n [value]=\"getRowId(row)\"\r\n [disabled]=\"!!inputConfig()?.disabled || !!inputConfig()?.readonly\"\r\n (click)=\"onRadioClick(row, $event)\"\r\n [matTooltip]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? 'document')\"\r\n matTooltipPosition=\"below\"\r\n [attr.aria-label]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? 'document')\">\r\n </mat-radio-button>\r\n } @else {\r\n <span class=\"doc-picker-cell-value doc-picker-cell-text\"\r\n [class.doc-picker-cell-selected]=\"isRowSelected(row)\"\r\n [matTooltip]=\"row[col.formControlName] | formatData:col.type\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.formControlName] | formatData:col.type }}\r\n </span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n <tr mat-row class=\"doc-picker-row\" *matRowDef=\"let row; columns: displayedColumns;\"\r\n [class.doc-picker-row-selected]=\"isRowSelected(row)\"\r\n [attr.aria-label]=\"'Row: ' + (row['reference'] ?? 'document')\"\r\n [attr.aria-selected]=\"isRowSelected(row)\"\r\n (click)=\"onRowClick(row, $event)\"></tr>\r\n </table>\r\n </div>\r\n </mat-radio-group>\r\n }\r\n }\r\n </div>\r\n </div>\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && !selectedDocument) {\r\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 50]\"\r\n [pageSize]=\"pageSizeForDisplay\"\r\n [length]=\"footerConfig ? footerConfig.totalItems : dataSource.filteredData.length\"\r\n [pageIndex]=\"pageIndexForDisplay\"\r\n (page)=\"onPageChange($event)\"\r\n showFirstLastButtons\r\n aria-label=\"Transaction list pagination\" class=\"doc-picker-paginator\"></mat-paginator>\r\n }\r\n }\r\n</mat-card>\r\n\r\n", styles: [":host{--doc-picker-radius-lg: 12px;--doc-picker-radius-sm: 8px;--doc-picker-radius-pill: 6px;--doc-picker-shadow: 0 2px 8px rgba(0, 0, 0, .08);--doc-picker-primary: var(--mat-sys-primary, #6750a4);--doc-picker-surface: var(--mat-sys-surface, #fef7ff);--doc-picker-surface-container: var(--mat-sys-surface-container, #f3edf7);--doc-picker-on-surface: var(--mat-sys-on-surface, #1c1b1f);--doc-picker-on-surface-variant: var(--mat-sys-on-surface-variant, #49454f);--doc-picker-outline: var(--mat-sys-outline, #79747e)}@media(prefers-color-scheme:dark){:host{--doc-picker-shadow: 0 1px 3px rgba(0, 0, 0, .3)}}.doc-picker-card{border-radius:var(--doc-picker-radius-lg);box-shadow:var(--doc-picker-shadow);border:1px solid color-mix(in srgb,var(--doc-picker-outline) 15%,transparent);overflow:hidden;background:var(--doc-picker-surface)}.doc-picker-header{display:flex;align-items:center;gap:.75rem;padding:0rem;background:color-mix(in srgb,var(--doc-picker-primary) 4%,transparent);border-bottom:1px solid color-mix(in srgb,var(--doc-picker-outline) 10%,transparent)}.doc-picker-header-icon{width:2.25rem;height:2.25rem;min-width:2.25rem;border-radius:var(--doc-picker-radius-sm);background:color-mix(in srgb,var(--doc-picker-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.doc-picker-header-icon mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;color:var(--doc-picker-primary)}.doc-picker-header-content{flex:1;min-width:0}.doc-picker-title{font-size:.9375rem;font-weight:600;letter-spacing:-.01em;color:var(--doc-picker-on-surface);margin:0;line-height:1.3}.doc-picker-subtitle{font-size:.8125rem;color:var(--doc-picker-on-surface-variant);line-height:1.35;margin:.25rem 0 0}.doc-picker-toolbar{display:flex;align-items:center;gap:.5rem;flex-shrink:0;width:100%}.doc-picker-selection-badge{flex-shrink:0;font-size:.75rem;font-weight:500;padding:.25rem .5rem;border-radius:var(--doc-picker-radius-pill);background:color-mix(in srgb,var(--doc-picker-primary) 14%,transparent);color:var(--doc-picker-primary);white-space:nowrap}.doc-picker-search{width:100%;min-width:8rem}.doc-picker-search .mat-mdc-form-field{--mdc-filled-text-field-container-color: transparent;--mdc-filled-text-field-container-shape: var(--doc-picker-radius-sm)}.doc-picker-search .mat-mdc-form-field-subscript-wrapper{display:none}.doc-picker-search input{font-size:.8125rem}.doc-picker-refresh{flex-shrink:0;min-width:fit-content;min-height:fit-content;transition:transform .15s}.doc-picker-refresh mat-icon{height:1.5rem;width:1.5rem;font-size:1.5rem;color:var(--doc-picker-primary);margin:0;padding:0;vertical-align:middle;display:inline-block;line-height:1}.doc-picker-refresh:hover{transform:rotate(90deg)}.doc-picker-loading{display:flex;justify-content:center;align-items:center;padding:1.5rem;min-height:6rem}.doc-picker-content-area{position:relative;min-height:6rem}.doc-picker-loading-overlay{position:absolute;inset:0;z-index:2;background:color-mix(in srgb,var(--doc-picker-surface) 95%,transparent);border-radius:var(--doc-picker-radius-sm)}.doc-picker-error{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.75rem 1rem;margin:.75rem 1rem;background:color-mix(in srgb,var(--mat-sys-error, #b3261e) 8%,transparent);border-radius:var(--doc-picker-radius-sm)}.doc-picker-error mat-icon{flex-shrink:0;font-size:1.25rem;width:1.25rem;height:1.25rem}.doc-picker-error-text{flex:1;font-size:.8125rem;color:var(--doc-picker-on-surface)}.doc-picker-retry{min-height:2.25rem;font-size:.8125rem;transition:all .15s}.doc-picker-retry mat-icon{margin-right:.25rem;vertical-align:middle;font-size:1rem;width:1rem;height:1rem}.doc-picker-body{padding:.75rem 1rem;display:flex;flex-direction:column;gap:.75rem}.doc-picker-helper{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem .75rem;background:color-mix(in srgb,var(--doc-picker-primary) 6%,transparent);border-radius:var(--doc-picker-radius-sm);font-size:.8125rem;color:var(--doc-picker-on-surface-variant);line-height:1.4}.doc-picker-helper-icon{font-size:1.125rem;width:1.125rem;height:1.125rem;flex-shrink:0;margin-top:.125rem}.doc-picker-helper strong{color:var(--doc-picker-on-surface)}.doc-picker-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;font-size:.8125rem;color:var(--doc-picker-on-surface-variant);padding:1rem;background:var(--doc-picker-surface-container);border-radius:var(--doc-picker-radius-sm);text-align:center;margin:0}.doc-picker-empty mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;opacity:.7}.doc-picker-table-wrapper{overflow:auto;max-height:50vh;border-radius:var(--doc-picker-radius-sm);border:1px solid color-mix(in srgb,var(--doc-picker-outline) 15%,transparent)}.doc-picker-table{width:100%;min-width:fit-content;table-layout:auto;border-collapse:collapse}.doc-picker-table .mat-mdc-header-row{background:color-mix(in srgb,var(--doc-picker-primary) 4%,transparent)}.doc-picker-table .mat-mdc-header-row{position:sticky;top:0;z-index:3;box-shadow:0 2px 4px #0000000f}.doc-picker-table .mat-mdc-header-cell{font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--doc-picker-on-surface-variant);background:var(--mat-table-background-color, var(--mat-sys-surface));padding:.35rem .5rem}.doc-picker-table .mat-mdc-cell{font-size:.75rem;padding:.35rem .5rem}.doc-picker-col-icons,.doc-picker-col-actions{width:2.5rem;min-width:2.5rem;max-width:2.5rem;background:var(--mat-table-background-color, var(--mat-sys-surface))}.doc-picker-col-text{width:fit-content;min-width:4rem;max-width:18rem}.doc-picker-col-numeric{width:min-content;min-width:4rem}.doc-picker-col-icons,.doc-picker-col-actions{text-align:center}.doc-picker-table th.doc-picker-col-actions,.doc-picker-table td.doc-picker-col-actions{background:var(--mat-table-background-color, var(--mat-sys-surface))!important;box-shadow:-4px 0 8px #0000000f}.doc-picker-col-actions .mat-mdc-checkbox,.doc-picker-col-actions .mat-mdc-radio-button{--mdc-checkbox-state-layer-size: 2rem}.doc-picker-radio-group{display:block}.doc-picker-row-icon{font-size:1.125rem!important;width:1.125rem!important;height:1.125rem!important;color:var(--doc-picker-primary)}.doc-picker-cell-value{transition:color .15s}.doc-picker-cell-text{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.doc-picker-cell-selected{color:var(--doc-picker-primary);font-weight:500}.doc-picker-row{cursor:pointer;transition:background-color .15s}.doc-picker-row:hover{background:color-mix(in srgb,var(--doc-picker-primary) 6%,transparent)}.doc-picker-row-selected{background:color-mix(in srgb,var(--doc-picker-primary) 12%,transparent)}.doc-picker-row-selected:hover{background:color-mix(in srgb,var(--doc-picker-primary) 14%,transparent)}.doc-picker-paginator{background:var(--doc-picker-surface);border-top:1px solid color-mix(in srgb,var(--doc-picker-outline) 10%,transparent)}.doc-picker-paginator .mat-mdc-paginator-container{padding:.5rem 1rem;font-size:.8125rem}.text-right-align{text-align:right}\n"] }]
|
|
1061
|
+
}], () => [], { formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: false }] }], sort: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatSort), { isSignal: true }] }], paginator: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatPaginator), { isSignal: true }] }] }); })();
|
|
1062
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DocumentPickerReactiveInputComponent, { className: "DocumentPickerReactiveInputComponent", filePath: "lib/components/t-form-input/elements/document-picker/core/document-picker-reactive-input/document-picker-reactive-input.component.ts", lineNumber: 91 }); })();
|
|
1063
|
+
|
|
1064
|
+
function DocumentPickerComponent_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
1065
|
+
i0.ɵɵelementStart(0, "mat-hint", 4);
|
|
1066
|
+
i0.ɵɵtext(1);
|
|
1067
|
+
i0.ɵɵelementEnd();
|
|
1068
|
+
} if (rf & 2) {
|
|
1069
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
1070
|
+
i0.ɵɵadvance();
|
|
1071
|
+
i0.ɵɵtextInterpolate1(" ", inputConfig_r1.temporaryHint || inputConfig_r1.hintLabel, " ");
|
|
1072
|
+
} }
|
|
1073
|
+
function DocumentPickerComponent_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
1074
|
+
i0.ɵɵelementStart(0, "mat-error", 5);
|
|
1075
|
+
i0.ɵɵtext(1);
|
|
1076
|
+
i0.ɵɵelementEnd();
|
|
1077
|
+
} if (rf & 2) {
|
|
1078
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1079
|
+
i0.ɵɵadvance();
|
|
1080
|
+
i0.ɵɵtextInterpolate(ctx_r1.errorMessage());
|
|
1081
|
+
} }
|
|
1082
|
+
function DocumentPickerComponent_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
1083
|
+
i0.ɵɵelementStart(0, "mat-icon", 6);
|
|
1084
|
+
i0.ɵɵtext(1);
|
|
1085
|
+
i0.ɵɵelementEnd();
|
|
1086
|
+
} if (rf & 2) {
|
|
1087
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
1088
|
+
i0.ɵɵadvance();
|
|
1089
|
+
i0.ɵɵtextInterpolate(inputConfig_r1.prefixIcon);
|
|
1090
|
+
} }
|
|
1091
|
+
function DocumentPickerComponent_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
1092
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
1093
|
+
i0.ɵɵelementStart(0, "button", 12);
|
|
1094
|
+
i0.ɵɵlistener("click", function DocumentPickerComponent_Conditional_1_Conditional_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const inputConfig_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(inputConfig_r1.canReload.emit()); });
|
|
1095
|
+
i0.ɵɵelementStart(1, "mat-icon", 13);
|
|
1096
|
+
i0.ɵɵtext(2, "sync");
|
|
1097
|
+
i0.ɵɵelementEnd()();
|
|
1098
|
+
} }
|
|
1099
|
+
function DocumentPickerComponent_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
1100
|
+
i0.ɵɵelementStart(0, "mat-icon", 8);
|
|
1101
|
+
i0.ɵɵtext(1);
|
|
1102
|
+
i0.ɵɵelementEnd();
|
|
1103
|
+
} if (rf & 2) {
|
|
1104
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
1105
|
+
i0.ɵɵadvance();
|
|
1106
|
+
i0.ɵɵtextInterpolate(inputConfig_r1.suffixIcon);
|
|
1107
|
+
} }
|
|
1108
|
+
function DocumentPickerComponent_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
1109
|
+
i0.ɵɵelementStart(0, "span", 9);
|
|
1110
|
+
i0.ɵɵtext(1);
|
|
1111
|
+
i0.ɵɵelementEnd();
|
|
1112
|
+
} if (rf & 2) {
|
|
1113
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
1114
|
+
i0.ɵɵadvance();
|
|
1115
|
+
i0.ɵɵtextInterpolate(inputConfig_r1.prefixText);
|
|
1116
|
+
} }
|
|
1117
|
+
function DocumentPickerComponent_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
1118
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
1119
|
+
i0.ɵɵtext(1);
|
|
1120
|
+
i0.ɵɵelementEnd();
|
|
1121
|
+
} if (rf & 2) {
|
|
1122
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
1123
|
+
i0.ɵɵadvance();
|
|
1124
|
+
i0.ɵɵtextInterpolate(inputConfig_r1.suffixText);
|
|
1125
|
+
} }
|
|
1126
|
+
function DocumentPickerComponent_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
1127
|
+
i0.ɵɵelementStart(0, "mat-hint", 11);
|
|
1128
|
+
i0.ɵɵtext(1);
|
|
1129
|
+
i0.ɵɵelementEnd();
|
|
1130
|
+
} if (rf & 2) {
|
|
1131
|
+
let tmp_3_0;
|
|
1132
|
+
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
1133
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1134
|
+
i0.ɵɵadvance();
|
|
1135
|
+
i0.ɵɵtextInterpolate1(" ", (((tmp_3_0 = ctx_r1.formGroup().controls[inputConfig_r1.id]) == null ? null : tmp_3_0.value == null ? null : tmp_3_0.value.length) || 0) + "/" + inputConfig_r1.maxLength, " ");
|
|
1136
|
+
} }
|
|
1137
|
+
function DocumentPickerComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1138
|
+
i0.ɵɵelementStart(0, "mat-form-field", 1)(1, "mat-label");
|
|
1139
|
+
i0.ɵɵtext(2);
|
|
1140
|
+
i0.ɵɵelement(3, "lib-t-form-input-status", 2);
|
|
1141
|
+
i0.ɵɵelementEnd();
|
|
1142
|
+
i0.ɵɵelement(4, "lib-document-picker-reactive-input", 3);
|
|
1143
|
+
i0.ɵɵconditionalCreate(5, DocumentPickerComponent_Conditional_1_Conditional_5_Template, 2, 1, "mat-hint", 4);
|
|
1144
|
+
i0.ɵɵconditionalCreate(6, DocumentPickerComponent_Conditional_1_Conditional_6_Template, 2, 1, "mat-error", 5);
|
|
1145
|
+
i0.ɵɵconditionalCreate(7, DocumentPickerComponent_Conditional_1_Conditional_7_Template, 2, 1, "mat-icon", 6);
|
|
1146
|
+
i0.ɵɵconditionalCreate(8, DocumentPickerComponent_Conditional_1_Conditional_8_Template, 3, 0, "button", 7);
|
|
1147
|
+
i0.ɵɵconditionalCreate(9, DocumentPickerComponent_Conditional_1_Conditional_9_Template, 2, 1, "mat-icon", 8);
|
|
1148
|
+
i0.ɵɵconditionalCreate(10, DocumentPickerComponent_Conditional_1_Conditional_10_Template, 2, 1, "span", 9);
|
|
1149
|
+
i0.ɵɵconditionalCreate(11, DocumentPickerComponent_Conditional_1_Conditional_11_Template, 2, 1, "span", 10);
|
|
1150
|
+
i0.ɵɵconditionalCreate(12, DocumentPickerComponent_Conditional_1_Conditional_12_Template, 2, 1, "mat-hint", 11);
|
|
1151
|
+
i0.ɵɵelementEnd();
|
|
1152
|
+
} if (rf & 2) {
|
|
1153
|
+
const inputConfig_r1 = ctx;
|
|
1154
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1155
|
+
i0.ɵɵproperty("appearance", inputConfig_r1.appearance || "fill");
|
|
1156
|
+
i0.ɵɵadvance(2);
|
|
1157
|
+
i0.ɵɵtextInterpolate1(" ", inputConfig_r1.label, " ");
|
|
1158
|
+
i0.ɵɵadvance();
|
|
1159
|
+
i0.ɵɵproperty("inputConfig", inputConfig_r1);
|
|
1160
|
+
i0.ɵɵadvance();
|
|
1161
|
+
i0.ɵɵproperty("disabled", !!inputConfig_r1.disabled)("inputConfig", inputConfig_r1)("formBuilderFunctions", ctx_r1.formBuilderFunctions())("required", inputConfig_r1.required)("formControlName", inputConfig_r1.id);
|
|
1162
|
+
i0.ɵɵadvance();
|
|
1163
|
+
i0.ɵɵconditional(inputConfig_r1.hintLabel || inputConfig_r1.temporaryHint ? 5 : -1);
|
|
1164
|
+
i0.ɵɵadvance();
|
|
1165
|
+
i0.ɵɵconditional(!!ctx_r1.errorMessage() ? 6 : -1);
|
|
1166
|
+
i0.ɵɵadvance();
|
|
1167
|
+
i0.ɵɵconditional(inputConfig_r1.prefixIcon ? 7 : -1);
|
|
1168
|
+
i0.ɵɵadvance();
|
|
1169
|
+
i0.ɵɵconditional((inputConfig_r1.canReload == null ? null : inputConfig_r1.canReload.canReload) ? 8 : -1);
|
|
1170
|
+
i0.ɵɵadvance();
|
|
1171
|
+
i0.ɵɵconditional(inputConfig_r1.suffixIcon && inputConfig_r1.id !== "password" ? 9 : -1);
|
|
1172
|
+
i0.ɵɵadvance();
|
|
1173
|
+
i0.ɵɵconditional(inputConfig_r1.prefixText ? 10 : -1);
|
|
1174
|
+
i0.ɵɵadvance();
|
|
1175
|
+
i0.ɵɵconditional(inputConfig_r1.suffixText ? 11 : -1);
|
|
1176
|
+
i0.ɵɵadvance();
|
|
1177
|
+
i0.ɵɵconditional(inputConfig_r1.maxLength && ctx_r1.formGroup() ? 12 : -1);
|
|
1178
|
+
} }
|
|
1179
|
+
/** Wraps a reactive document-picker control inside a `mat-form-field`. */
|
|
1180
|
+
class DocumentPickerComponent {
|
|
1181
|
+
constructor() {
|
|
1182
|
+
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
1183
|
+
this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
|
|
1184
|
+
this.editorMode = input(false, ...(ngDevMode ? [{ debugName: "editorMode" }] : /* istanbul ignore next */ []));
|
|
1185
|
+
this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
|
|
1186
|
+
this.reload = output();
|
|
1187
|
+
this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
1188
|
+
}
|
|
1189
|
+
static { this.ɵfac = function DocumentPickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DocumentPickerComponent)(); }; }
|
|
1190
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocumentPickerComponent, selectors: [["lib-document-picker"]], inputs: { inputConfig: [1, "inputConfig"], formGroup: [1, "formGroup"], editorMode: [1, "editorMode"], formBuilderFunctions: [1, "formBuilderFunctions"] }, outputs: { reload: "reload" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["subscriptSizing", "dynamic", 3, "appearance"], [3, "inputConfig"], [3, "disabled", "inputConfig", "formBuilderFunctions", "required", "formControlName"], [1, "inputHint"], ["matTooltipClass", "errorToolTip", 1, "oneLineTextEllipsis"], ["matPrefix", ""], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px"], ["matSuffix", ""], ["matPrefix", "", 2, "top", "0"], ["matSuffix", "", 2, "padding-left", "5px"], ["align", "end"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px", 3, "click"], [2, "color", "var(--mat-sys-primary)"]], template: function DocumentPickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1191
|
+
i0.ɵɵelementStart(0, "form", 0);
|
|
1192
|
+
i0.ɵɵconditionalCreate(1, DocumentPickerComponent_Conditional_1_Template, 13, 16, "mat-form-field", 1);
|
|
1193
|
+
i0.ɵɵelementEnd();
|
|
1194
|
+
} if (rf & 2) {
|
|
1195
|
+
let tmp_1_0;
|
|
1196
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup());
|
|
1197
|
+
i0.ɵɵadvance();
|
|
1198
|
+
i0.ɵɵconditional((tmp_1_0 = ctx.inputConfig()) ? 1 : -1, tmp_1_0);
|
|
1199
|
+
} }, dependencies: [ReactiveFormsModule, i1.ɵNgNoValidate, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.FormGroupDirective, i1.FormControlName, MatFormFieldModule, i2.MatFormField, i2.MatLabel, i2.MatHint, i2.MatError, i2.MatPrefix, i2.MatSuffix, MatIconModule, i3$1.MatIcon, MatButtonModule, i1$1.MatIconButton, MatTooltipModule, i5.MatTooltip, DocumentPickerReactiveInputComponent,
|
|
1200
|
+
TFormInputStatusComponent], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}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 }); }
|
|
1201
|
+
}
|
|
1202
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentPickerComponent, [{
|
|
1203
|
+
type: Component,
|
|
1204
|
+
args: [{ selector: 'lib-document-picker', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1205
|
+
ReactiveFormsModule,
|
|
1206
|
+
MatFormFieldModule,
|
|
1207
|
+
MatIconModule,
|
|
1208
|
+
MatButtonModule,
|
|
1209
|
+
MatTooltipModule,
|
|
1210
|
+
DocumentPickerReactiveInputComponent,
|
|
1211
|
+
TFormInputStatusComponent,
|
|
1212
|
+
], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-document-picker-reactive-input\r\n [disabled]=\"!!inputConfig.disabled\"\r\n [inputConfig]=\"inputConfig\"\r\n [formBuilderFunctions]=\"formBuilderFunctions()\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-document-picker-reactive-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 @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
|
|
1213
|
+
}], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], editorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorMode", required: false }] }], formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }], reload: [{ type: i0.Output, args: ["reload"] }] }); })();
|
|
1214
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DocumentPickerComponent, { className: "DocumentPickerComponent", filePath: "lib/components/t-form-input/elements/document-picker/document-picker.component.ts", lineNumber: 28 }); })();
|
|
1215
|
+
|
|
1216
|
+
export { DocumentPickerComponent };
|
|
1217
|
+
//# sourceMappingURL=ngx-t-forms-document-picker.component-B47pQxMF.mjs.map
|