ngx-t-forms 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map → ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map → ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs +643 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs → ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs} +4 -4
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs} +4 -4
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs +261 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map → ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs +157 -0
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs +373 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs +1259 -0
- package/fesm2022/ngx-t-forms-document-picker.component-DIqaaBSl.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs +417 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs} +25 -11
- package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map → ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs +86 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map → ngx-t-forms-form-json-view.component-DzJKFl4c.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
- package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs.map → ngx-t-forms-geo-location.component-Bj_qIEqi.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs +129 -0
- package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-index-6YIhS6cm.mjs → ngx-t-forms-index-C8NtLE16.mjs} +2 -2
- package/fesm2022/ngx-t-forms-index-C8NtLE16.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-DiciFhSS.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map → ngx-t-forms-input-custom.component-DiciFhSS.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs +190 -0
- package/fesm2022/ngx-t-forms-input-editor.component-D12hrHOc.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map → ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs} +5 -5
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs} +3 -3
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map → ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs +447 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs +905 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs} +1391 -158
- package/fesm2022/ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs +79 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs +748 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CtCOIpai.mjs} +4 -4
- package/fesm2022/ngx-t-forms-record-list-manager.component-CtCOIpai.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs +272 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-D9wIdOhg.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs → ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs} +38 -7
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
- package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-U9uQ_Ow9.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-CxYTmuvV.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs +169 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
- package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs +574 -0
- package/fesm2022/ngx-t-forms-validators-config.component-EM7RSWIz.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/styles/_editor-mixins.scss +117 -117
- package/styles/_signature-pad.scss +26 -26
- package/styles/_tokens.scss +148 -148
- package/types/ngx-t-forms.d.ts +7 -2
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
- package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
- package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
- package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
- package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
- package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
- package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
- package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
- package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
- package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
- package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
- package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
|
@@ -1,1024 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, input, output, viewChild, ChangeDetectorRef, DestroyRef, effect, ChangeDetectionStrategy, Component, 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 i2$2 from '@angular/material/button';
|
|
10
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
-
import * as i5 from '@angular/material/tooltip';
|
|
12
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
|
-
import { B as BaseCustomInput, _ as _isEqual, Z as fuzzySearch, $ as returnMappedPathValue, R as FormatDataPipe, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
|
|
14
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
15
|
-
import { DocumentLitsLabelConfigInterfaceValueType, InputDataTypes } from 'ngx-t-forms-types';
|
|
16
|
-
import * as i5$1 from '@angular/material/table';
|
|
17
|
-
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
18
|
-
import * as i3$2 from '@angular/material/paginator';
|
|
19
|
-
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
20
|
-
import * as i2$3 from '@angular/material/sort';
|
|
21
|
-
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
22
|
-
import { debounceTime, map, distinctUntilChanged } from 'rxjs';
|
|
23
|
-
import * as i3 from '@angular/material/card';
|
|
24
|
-
import { MatCardModule } from '@angular/material/card';
|
|
25
|
-
import * as i4 from '@angular/material/progress-spinner';
|
|
26
|
-
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
27
|
-
import * as i2$1 from '@angular/material/input';
|
|
28
|
-
import { MatInputModule } from '@angular/material/input';
|
|
29
|
-
import * as i3$3 from '@angular/material/checkbox';
|
|
30
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
31
|
-
import * as i3$4 from '@angular/material/radio';
|
|
32
|
-
import { MatRadioModule } from '@angular/material/radio';
|
|
33
|
-
|
|
34
|
-
const _c0 = () => [5, 10, 25, 50];
|
|
35
|
-
const _forTrack0 = ($index, $item) => $item.key;
|
|
36
|
-
function PaginatedSelectionTableReactiveInput_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
38
|
-
i0.ɵɵelementStart(0, "button", 11);
|
|
39
|
-
i0.ɵɵlistener("click", function PaginatedSelectionTableReactiveInput_Conditional_1_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.clearSearch()); });
|
|
40
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
41
|
-
i0.ɵɵtext(2, "close");
|
|
42
|
-
i0.ɵɵelementEnd()();
|
|
43
|
-
} }
|
|
44
|
-
function PaginatedSelectionTableReactiveInput_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
45
|
-
i0.ɵɵelementStart(0, "mat-icon", 9);
|
|
46
|
-
i0.ɵɵtext(1, "search");
|
|
47
|
-
i0.ɵɵelementEnd();
|
|
48
|
-
} }
|
|
49
|
-
function PaginatedSelectionTableReactiveInput_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
-
i0.ɵɵelementStart(0, "span", 10);
|
|
51
|
-
i0.ɵɵtext(1);
|
|
52
|
-
i0.ɵɵelementEnd();
|
|
53
|
-
} if (rf & 2) {
|
|
54
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
55
|
-
i0.ɵɵadvance();
|
|
56
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.getSelectedIds().length, " selected ");
|
|
57
|
-
} }
|
|
58
|
-
function PaginatedSelectionTableReactiveInput_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
-
i0.ɵɵelementStart(0, "header", 1)(1, "div", 5)(2, "mat-form-field", 6);
|
|
60
|
-
i0.ɵɵelement(3, "input", 7);
|
|
61
|
-
i0.ɵɵconditionalCreate(4, PaginatedSelectionTableReactiveInput_Conditional_1_Conditional_4_Template, 3, 0, "button", 8)(5, PaginatedSelectionTableReactiveInput_Conditional_1_Conditional_5_Template, 2, 0, "mat-icon", 9);
|
|
62
|
-
i0.ɵɵelementEnd();
|
|
63
|
-
i0.ɵɵconditionalCreate(6, PaginatedSelectionTableReactiveInput_Conditional_1_Conditional_6_Template, 2, 1, "span", 10);
|
|
64
|
-
i0.ɵɵelementEnd()();
|
|
65
|
-
} if (rf & 2) {
|
|
66
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
67
|
-
i0.ɵɵadvance(3);
|
|
68
|
-
i0.ɵɵproperty("placeholder", ctx_r1.searchPlaceholder())("formControl", ctx_r1.searchFormControl);
|
|
69
|
-
i0.ɵɵattribute("aria-label", ctx_r1.searchPlaceholder());
|
|
70
|
-
i0.ɵɵadvance();
|
|
71
|
-
i0.ɵɵconditional(ctx_r1.searchFormControl.value ? 4 : 5);
|
|
72
|
-
i0.ɵɵadvance(2);
|
|
73
|
-
i0.ɵɵconditional(ctx_r1.isMultiSelect && ctx_r1.getSelectedIds().length > 0 ? 6 : -1);
|
|
74
|
-
} }
|
|
75
|
-
function PaginatedSelectionTableReactiveInput_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
77
|
-
i0.ɵɵelement(1, "mat-spinner", 12);
|
|
78
|
-
i0.ɵɵelementEnd();
|
|
79
|
-
} if (rf & 2) {
|
|
80
|
-
i0.ɵɵadvance();
|
|
81
|
-
i0.ɵɵproperty("diameter", 40);
|
|
82
|
-
} }
|
|
83
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
84
|
-
i0.ɵɵelementStart(0, "div", 13)(1, "mat-icon", 15);
|
|
85
|
-
i0.ɵɵtext(2, "info");
|
|
86
|
-
i0.ɵɵelementEnd();
|
|
87
|
-
i0.ɵɵelementStart(3, "span")(4, "strong");
|
|
88
|
-
i0.ɵɵtext(5);
|
|
89
|
-
i0.ɵɵelementEnd();
|
|
90
|
-
i0.ɵɵtext(6);
|
|
91
|
-
i0.ɵɵelementEnd()();
|
|
92
|
-
} if (rf & 2) {
|
|
93
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
94
|
-
i0.ɵɵadvance(5);
|
|
95
|
-
i0.ɵɵtextInterpolate(ctx_r1.isMultiSelect ? "Select items" : "Select an item");
|
|
96
|
-
i0.ɵɵadvance();
|
|
97
|
-
i0.ɵɵtextInterpolate3(" \u2014 Sort or use pagination to find ", ctx_r1.isMultiSelect ? "them" : "it", ", then ", ctx_r1.isMultiSelect ? "check the box" : "select the radio", " to select ", ctx_r1.isMultiSelect ? "them" : "it", ".");
|
|
98
|
-
} }
|
|
99
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
100
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
101
|
-
i0.ɵɵelementStart(0, "button", 17);
|
|
102
|
-
i0.ɵɵlistener("click", function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_2_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.reload()); });
|
|
103
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
104
|
-
i0.ɵɵtext(2, "refresh");
|
|
105
|
-
i0.ɵɵelementEnd();
|
|
106
|
-
i0.ɵɵtext(3, " Retry ");
|
|
107
|
-
i0.ɵɵelementEnd();
|
|
108
|
-
} }
|
|
109
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
110
|
-
i0.ɵɵelementStart(0, "div", 14)(1, "mat-icon");
|
|
111
|
-
i0.ɵɵtext(2, "folder_open");
|
|
112
|
-
i0.ɵɵelementEnd();
|
|
113
|
-
i0.ɵɵelementStart(3, "span");
|
|
114
|
-
i0.ɵɵtext(4);
|
|
115
|
-
i0.ɵɵelementEnd();
|
|
116
|
-
i0.ɵɵconditionalCreate(5, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_2_Conditional_5_Template, 4, 0, "button", 16);
|
|
117
|
-
i0.ɵɵelementEnd();
|
|
118
|
-
} if (rf & 2) {
|
|
119
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
120
|
-
i0.ɵɵadvance(4);
|
|
121
|
-
i0.ɵɵtextInterpolate(ctx_r1.emptyMessage());
|
|
122
|
-
i0.ɵɵadvance();
|
|
123
|
-
i0.ɵɵconditional(ctx_r1.canReload() ? 5 : -1);
|
|
124
|
-
} }
|
|
125
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_th_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
126
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
127
|
-
i0.ɵɵelementStart(0, "button", 28);
|
|
128
|
-
i0.ɵɵlistener("click", function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_th_1_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.reload()); });
|
|
129
|
-
i0.ɵɵelementStart(1, "mat-icon", 29);
|
|
130
|
-
i0.ɵɵtext(2, "sync");
|
|
131
|
-
i0.ɵɵelementEnd()();
|
|
132
|
-
} }
|
|
133
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_th_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
134
|
-
i0.ɵɵtext(0);
|
|
135
|
-
} if (rf & 2) {
|
|
136
|
-
const col_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
137
|
-
i0.ɵɵtextInterpolate1(" ", col_r5.label, " ");
|
|
138
|
-
} }
|
|
139
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
140
|
-
i0.ɵɵelementStart(0, "th", 26);
|
|
141
|
-
i0.ɵɵconditionalCreate(1, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_th_1_Conditional_1_Template, 3, 0, "button", 27)(2, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_th_1_Conditional_2_Template, 1, 1);
|
|
142
|
-
i0.ɵɵelementEnd();
|
|
143
|
-
} if (rf & 2) {
|
|
144
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
145
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
146
|
-
i0.ɵɵclassProp("text-right-align", col_r5.type === "currency" || col_r5.type === "number")("doc-picker-col-icons", col_r5.key === "icons")("doc-picker-col-actions", col_r5.key === "actions")("doc-picker-col-text", col_r5.key !== "icons" && col_r5.key !== "actions" && col_r5.type !== "currency" && col_r5.type !== "number")("doc-picker-col-numeric", col_r5.type === "currency" || col_r5.type === "number");
|
|
147
|
-
i0.ɵɵproperty("disabled", col_r5.key === "icons" || col_r5.key === "actions");
|
|
148
|
-
i0.ɵɵadvance();
|
|
149
|
-
i0.ɵɵconditional(col_r5.key === "actions" && ctx_r1.canReload() ? 1 : 2);
|
|
150
|
-
} }
|
|
151
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
152
|
-
i0.ɵɵelementStart(0, "mat-icon", 31);
|
|
153
|
-
i0.ɵɵtext(1, "description");
|
|
154
|
-
i0.ɵɵelementEnd();
|
|
155
|
-
} }
|
|
156
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
157
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
158
|
-
i0.ɵɵelementStart(0, "mat-checkbox", 34);
|
|
159
|
-
i0.ɵɵlistener("change", function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Conditional_2_Template_mat_checkbox_change_0_listener() { i0.ɵɵrestoreView(_r6); const row_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.selectRow(row_r7)); });
|
|
160
|
-
i0.ɵɵelementEnd();
|
|
161
|
-
} if (rf & 2) {
|
|
162
|
-
let tmp_17_0;
|
|
163
|
-
const row_r7 = i0.ɵɵnextContext().$implicit;
|
|
164
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
165
|
-
i0.ɵɵproperty("checked", ctx_r1.isRowSelected(row_r7))("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_r7) ? "Clear selection" : "Select " + (row_r7["reference"] ?? row_r7["name"] ?? "item"));
|
|
166
|
-
i0.ɵɵattribute("aria-label", ctx_r1.isRowSelected(row_r7) ? "Clear selection" : "Select " + (row_r7["reference"] ?? row_r7["name"] ?? "item"));
|
|
167
|
-
} }
|
|
168
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
169
|
-
i0.ɵɵelementStart(0, "span", 35);
|
|
170
|
-
i0.ɵɵpipe(1, "formatData");
|
|
171
|
-
i0.ɵɵtext(2);
|
|
172
|
-
i0.ɵɵpipe(3, "formatData");
|
|
173
|
-
i0.ɵɵelementEnd();
|
|
174
|
-
} if (rf & 2) {
|
|
175
|
-
const row_r7 = i0.ɵɵnextContext().$implicit;
|
|
176
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
177
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
178
|
-
i0.ɵɵclassProp("doc-picker-cell-selected", ctx_r1.isRowSelected(row_r7));
|
|
179
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind2(1, 4, row_r7[col_r5.key], col_r5.type));
|
|
180
|
-
i0.ɵɵadvance(2);
|
|
181
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 7, row_r7[col_r5.key], col_r5.type), " ");
|
|
182
|
-
} }
|
|
183
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
184
|
-
i0.ɵɵelementStart(0, "td", 30);
|
|
185
|
-
i0.ɵɵconditionalCreate(1, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Conditional_1_Template, 2, 0, "mat-icon", 31)(2, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Conditional_2_Template, 1, 4, "mat-checkbox", 32)(3, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Conditional_3_Template, 4, 10, "span", 33);
|
|
186
|
-
i0.ɵɵelementEnd();
|
|
187
|
-
} if (rf & 2) {
|
|
188
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
189
|
-
i0.ɵɵclassProp("text-right-align", col_r5.type === "currency" || col_r5.type === "number")("doc-picker-col-icons", col_r5.key === "icons")("doc-picker-col-actions", col_r5.key === "actions")("doc-picker-col-text", col_r5.key !== "icons" && col_r5.key !== "actions" && col_r5.type !== "currency" && col_r5.type !== "number")("doc-picker-col-numeric", col_r5.type === "currency" || col_r5.type === "number");
|
|
190
|
-
i0.ɵɵadvance();
|
|
191
|
-
i0.ɵɵconditional(col_r5.key === "icons" ? 1 : col_r5.key === "actions" ? 2 : 3);
|
|
192
|
-
} }
|
|
193
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
194
|
-
i0.ɵɵelementContainerStart(0, 21);
|
|
195
|
-
i0.ɵɵtemplate(1, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_th_1_Template, 3, 12, "th", 24)(2, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_td_2_Template, 4, 11, "td", 25);
|
|
196
|
-
i0.ɵɵelementContainerEnd();
|
|
197
|
-
} if (rf & 2) {
|
|
198
|
-
const col_r5 = ctx.$implicit;
|
|
199
|
-
const ɵ$index_68_r8 = ctx.$index;
|
|
200
|
-
const ɵ$count_68_r9 = ctx.$count;
|
|
201
|
-
i0.ɵɵproperty("matColumnDef", col_r5.key)("stickyEnd", ɵ$index_68_r8 === ɵ$count_68_r9 - 1);
|
|
202
|
-
} }
|
|
203
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
204
|
-
i0.ɵɵelement(0, "tr", 36);
|
|
205
|
-
} }
|
|
206
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
-
i0.ɵɵelement(0, "tr", 37);
|
|
208
|
-
} if (rf & 2) {
|
|
209
|
-
const row_r10 = ctx.$implicit;
|
|
210
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
211
|
-
i0.ɵɵclassProp("doc-picker-row-selected", ctx_r1.isRowSelected(row_r10));
|
|
212
|
-
i0.ɵɵattribute("aria-label", "Row: " + (row_r10["reference"] ?? row_r10["name"] ?? "item"))("aria-selected", ctx_r1.isRowSelected(row_r10));
|
|
213
|
-
} }
|
|
214
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
215
|
-
i0.ɵɵelementStart(0, "div", 18)(1, "table", 20);
|
|
216
|
-
i0.ɵɵrepeaterCreate(2, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_For_3_Template, 3, 2, "ng-container", 21, _forTrack0);
|
|
217
|
-
i0.ɵɵtemplate(4, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_tr_4_Template, 1, 0, "tr", 22)(5, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_tr_5_Template, 1, 4, "tr", 23);
|
|
218
|
-
i0.ɵɵelementEnd()();
|
|
219
|
-
} if (rf & 2) {
|
|
220
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
221
|
-
i0.ɵɵadvance();
|
|
222
|
-
i0.ɵɵproperty("dataSource", ctx_r1.dataSource)("matSortActive", ctx_r1.sortActiveColumn);
|
|
223
|
-
i0.ɵɵadvance();
|
|
224
|
-
i0.ɵɵrepeater(ctx_r1.columns);
|
|
225
|
-
i0.ɵɵadvance(2);
|
|
226
|
-
i0.ɵɵproperty("matHeaderRowDef", ctx_r1.displayedColumns)("matHeaderRowDefSticky", true);
|
|
227
|
-
i0.ɵɵadvance();
|
|
228
|
-
i0.ɵɵproperty("matRowDefColumns", ctx_r1.displayedColumns);
|
|
229
|
-
} }
|
|
230
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_th_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
231
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
232
|
-
i0.ɵɵelementStart(0, "button", 28);
|
|
233
|
-
i0.ɵɵlistener("click", function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_th_1_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.reload()); });
|
|
234
|
-
i0.ɵɵelementStart(1, "mat-icon", 29);
|
|
235
|
-
i0.ɵɵtext(2, "sync");
|
|
236
|
-
i0.ɵɵelementEnd()();
|
|
237
|
-
} }
|
|
238
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_th_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
239
|
-
i0.ɵɵtext(0);
|
|
240
|
-
} if (rf & 2) {
|
|
241
|
-
const col_r13 = i0.ɵɵnextContext(2).$implicit;
|
|
242
|
-
i0.ɵɵtextInterpolate1(" ", col_r13.label, " ");
|
|
243
|
-
} }
|
|
244
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
245
|
-
i0.ɵɵelementStart(0, "th", 26);
|
|
246
|
-
i0.ɵɵconditionalCreate(1, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_th_1_Conditional_1_Template, 3, 0, "button", 27)(2, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_th_1_Conditional_2_Template, 1, 1);
|
|
247
|
-
i0.ɵɵelementEnd();
|
|
248
|
-
} if (rf & 2) {
|
|
249
|
-
const col_r13 = i0.ɵɵnextContext().$implicit;
|
|
250
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
251
|
-
i0.ɵɵclassProp("text-right-align", col_r13.type === "currency" || col_r13.type === "number")("doc-picker-col-icons", col_r13.key === "icons")("doc-picker-col-actions", col_r13.key === "actions")("doc-picker-col-text", col_r13.key !== "icons" && col_r13.key !== "actions" && col_r13.type !== "currency" && col_r13.type !== "number")("doc-picker-col-numeric", col_r13.type === "currency" || col_r13.type === "number");
|
|
252
|
-
i0.ɵɵproperty("disabled", col_r13.key === "icons" || col_r13.key === "actions");
|
|
253
|
-
i0.ɵɵadvance();
|
|
254
|
-
i0.ɵɵconditional(col_r13.key === "actions" && ctx_r1.canReload() ? 1 : 2);
|
|
255
|
-
} }
|
|
256
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
257
|
-
i0.ɵɵelementStart(0, "mat-icon", 31);
|
|
258
|
-
i0.ɵɵtext(1, "description");
|
|
259
|
-
i0.ɵɵelementEnd();
|
|
260
|
-
} }
|
|
261
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
262
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
263
|
-
i0.ɵɵelementStart(0, "mat-radio-button", 40);
|
|
264
|
-
i0.ɵɵlistener("click", function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Conditional_2_Template_mat_radio_button_click_0_listener($event) { i0.ɵɵrestoreView(_r14); const row_r15 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.onRadioClick(row_r15, $event)); });
|
|
265
|
-
i0.ɵɵelementEnd();
|
|
266
|
-
} if (rf & 2) {
|
|
267
|
-
let tmp_17_0;
|
|
268
|
-
const row_r15 = i0.ɵɵnextContext().$implicit;
|
|
269
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
270
|
-
i0.ɵɵproperty("value", ctx_r1.getRowId(row_r15))("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_r15) ? "Clear selection" : "Select " + (row_r15["reference"] ?? row_r15["name"] ?? "item"));
|
|
271
|
-
i0.ɵɵattribute("aria-label", ctx_r1.isRowSelected(row_r15) ? "Clear selection" : "Select " + (row_r15["reference"] ?? row_r15["name"] ?? "item"));
|
|
272
|
-
} }
|
|
273
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
274
|
-
i0.ɵɵelementStart(0, "span", 35);
|
|
275
|
-
i0.ɵɵpipe(1, "formatData");
|
|
276
|
-
i0.ɵɵtext(2);
|
|
277
|
-
i0.ɵɵpipe(3, "formatData");
|
|
278
|
-
i0.ɵɵelementEnd();
|
|
279
|
-
} if (rf & 2) {
|
|
280
|
-
const row_r15 = i0.ɵɵnextContext().$implicit;
|
|
281
|
-
const col_r13 = i0.ɵɵnextContext().$implicit;
|
|
282
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
283
|
-
i0.ɵɵclassProp("doc-picker-cell-selected", ctx_r1.isRowSelected(row_r15));
|
|
284
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind2(1, 4, row_r15[col_r13.key], col_r13.type));
|
|
285
|
-
i0.ɵɵadvance(2);
|
|
286
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 7, row_r15[col_r13.key], col_r13.type), " ");
|
|
287
|
-
} }
|
|
288
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
289
|
-
i0.ɵɵelementStart(0, "td", 30);
|
|
290
|
-
i0.ɵɵconditionalCreate(1, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Conditional_1_Template, 2, 0, "mat-icon", 31)(2, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Conditional_2_Template, 1, 4, "mat-radio-button", 39)(3, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Conditional_3_Template, 4, 10, "span", 33);
|
|
291
|
-
i0.ɵɵelementEnd();
|
|
292
|
-
} if (rf & 2) {
|
|
293
|
-
const col_r13 = i0.ɵɵnextContext().$implicit;
|
|
294
|
-
i0.ɵɵclassProp("text-right-align", col_r13.type === "currency" || col_r13.type === "number")("doc-picker-col-icons", col_r13.key === "icons")("doc-picker-col-actions", col_r13.key === "actions")("doc-picker-col-text", col_r13.key !== "icons" && col_r13.key !== "actions" && col_r13.type !== "currency" && col_r13.type !== "number")("doc-picker-col-numeric", col_r13.type === "currency" || col_r13.type === "number");
|
|
295
|
-
i0.ɵɵadvance();
|
|
296
|
-
i0.ɵɵconditional(col_r13.key === "icons" ? 1 : col_r13.key === "actions" ? 2 : 3);
|
|
297
|
-
} }
|
|
298
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
299
|
-
i0.ɵɵelementContainerStart(0, 21);
|
|
300
|
-
i0.ɵɵtemplate(1, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_th_1_Template, 3, 12, "th", 24)(2, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_td_2_Template, 4, 11, "td", 25);
|
|
301
|
-
i0.ɵɵelementContainerEnd();
|
|
302
|
-
} if (rf & 2) {
|
|
303
|
-
const col_r13 = ctx.$implicit;
|
|
304
|
-
const ɵ$index_115_r16 = ctx.$index;
|
|
305
|
-
const ɵ$count_115_r17 = ctx.$count;
|
|
306
|
-
i0.ɵɵproperty("matColumnDef", col_r13.key)("stickyEnd", ɵ$index_115_r16 === ɵ$count_115_r17 - 1);
|
|
307
|
-
} }
|
|
308
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
309
|
-
i0.ɵɵelement(0, "tr", 36);
|
|
310
|
-
} }
|
|
311
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_tr_6_Template(rf, ctx) { if (rf & 1) {
|
|
312
|
-
i0.ɵɵelement(0, "tr", 37);
|
|
313
|
-
} if (rf & 2) {
|
|
314
|
-
const row_r18 = ctx.$implicit;
|
|
315
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
316
|
-
i0.ɵɵclassProp("doc-picker-row-selected", ctx_r1.isRowSelected(row_r18));
|
|
317
|
-
i0.ɵɵattribute("aria-label", "Row: " + (row_r18["reference"] ?? row_r18["name"] ?? "item"))("aria-selected", ctx_r1.isRowSelected(row_r18));
|
|
318
|
-
} }
|
|
319
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
320
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
321
|
-
i0.ɵɵelementStart(0, "mat-radio-group", 38);
|
|
322
|
-
i0.ɵɵlistener("change", function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_Template_mat_radio_group_change_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onRadioChange($event)); });
|
|
323
|
-
i0.ɵɵelementStart(1, "div", 18)(2, "table", 20);
|
|
324
|
-
i0.ɵɵrepeaterCreate(3, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_For_4_Template, 3, 2, "ng-container", 21, _forTrack0);
|
|
325
|
-
i0.ɵɵtemplate(5, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_tr_5_Template, 1, 0, "tr", 22)(6, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_tr_6_Template, 1, 4, "tr", 23);
|
|
326
|
-
i0.ɵɵelementEnd()()();
|
|
327
|
-
} if (rf & 2) {
|
|
328
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
329
|
-
i0.ɵɵproperty("value", ctx_r1.getNormalizedSingleValue());
|
|
330
|
-
i0.ɵɵadvance(2);
|
|
331
|
-
i0.ɵɵproperty("dataSource", ctx_r1.dataSource)("matSortActive", ctx_r1.sortActiveColumn);
|
|
332
|
-
i0.ɵɵadvance();
|
|
333
|
-
i0.ɵɵrepeater(ctx_r1.columns);
|
|
334
|
-
i0.ɵɵadvance(2);
|
|
335
|
-
i0.ɵɵproperty("matHeaderRowDef", ctx_r1.displayedColumns)("matHeaderRowDefSticky", true);
|
|
336
|
-
i0.ɵɵadvance();
|
|
337
|
-
i0.ɵɵproperty("matRowDefColumns", ctx_r1.displayedColumns);
|
|
338
|
-
} }
|
|
339
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
340
|
-
i0.ɵɵconditionalCreate(0, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_0_Template, 6, 5, "div", 18)(1, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Conditional_1_Template, 7, 6, "mat-radio-group", 19);
|
|
341
|
-
} if (rf & 2) {
|
|
342
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
343
|
-
i0.ɵɵconditional(ctx_r1.isMultiSelect ? 0 : 1);
|
|
344
|
-
} }
|
|
345
|
-
function PaginatedSelectionTableReactiveInput_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
346
|
-
i0.ɵɵelementStart(0, "div", 3);
|
|
347
|
-
i0.ɵɵconditionalCreate(1, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_1_Template, 7, 4, "div", 13);
|
|
348
|
-
i0.ɵɵconditionalCreate(2, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_2_Template, 6, 2, "div", 14);
|
|
349
|
-
i0.ɵɵconditionalCreate(3, PaginatedSelectionTableReactiveInput_Conditional_3_Conditional_3_Template, 2, 1);
|
|
350
|
-
i0.ɵɵelementEnd();
|
|
351
|
-
} if (rf & 2) {
|
|
352
|
-
let tmp_1_0;
|
|
353
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
354
|
-
i0.ɵɵadvance();
|
|
355
|
-
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.value ? 1 : -1);
|
|
356
|
-
i0.ɵɵadvance();
|
|
357
|
-
i0.ɵɵconditional(ctx_r1.dataSource.filteredData.length === 0 ? 2 : -1);
|
|
358
|
-
i0.ɵɵadvance();
|
|
359
|
-
i0.ɵɵconditional(ctx_r1.dataSource.filteredData.length > 0 && ctx_r1.columns.length > 0 ? 3 : -1);
|
|
360
|
-
} }
|
|
361
|
-
function PaginatedSelectionTableReactiveInput_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
362
|
-
i0.ɵɵelement(0, "mat-paginator", 4);
|
|
363
|
-
} if (rf & 2) {
|
|
364
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
365
|
-
i0.ɵɵproperty("pageSizeOptions", i0.ɵɵpureFunction0(3, _c0))("pageSize", 5)("length", ctx_r1.dataSource.filteredData.length);
|
|
366
|
-
} }
|
|
367
|
-
/** Max rows to sample for type inference - balances accuracy vs performance */
|
|
368
|
-
const TYPE_INFER_SAMPLE_SIZE = 5;
|
|
369
|
-
const customInputConfig = {
|
|
370
|
-
controlType: 'lib-paginated-selection-table-reactive-input',
|
|
371
|
-
nextId: 0,
|
|
372
|
-
};
|
|
373
|
-
class PaginatedSelectionTableReactiveInput extends BaseCustomInput {
|
|
374
|
-
#cdr;
|
|
375
|
-
#destroyRef;
|
|
376
|
-
/** Cached inferred column types from data - recomputed only when data changes */
|
|
377
|
-
#inferredColumnTypes;
|
|
378
|
-
#lastInferredDataRef;
|
|
379
|
-
#columnsCacheDirty;
|
|
380
|
-
#cachedColumns;
|
|
381
|
-
#cachedDisplayedColumns;
|
|
382
|
-
#cachedSortActiveColumn;
|
|
383
|
-
#lastInputConfig;
|
|
384
|
-
#loadScheduled;
|
|
385
|
-
#destroyed;
|
|
386
|
-
#connectTimeoutId;
|
|
387
|
-
constructor() {
|
|
388
|
-
super(inject(NgControl, { self: true, optional: true }), inject(ElementRef), customInputConfig);
|
|
389
|
-
this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
|
|
390
|
-
this.canReload = input(false, ...(ngDevMode ? [{ debugName: "canReload" }] : /* istanbul ignore next */ []));
|
|
391
|
-
this.loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
392
|
-
this.searchPlaceholder = input('Search items…', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
|
|
393
|
-
this.emptyMessage = input('No items found', ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
394
|
-
this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
395
|
-
this.reloadData = output();
|
|
396
|
-
this.searchFormControl = new FormControl('');
|
|
397
|
-
this.dataSource = new MatTableDataSource([]);
|
|
398
|
-
this.sort = viewChild(MatSort, ...(ngDevMode ? [{ debugName: "sort" }] : /* istanbul ignore next */ []));
|
|
399
|
-
this.paginator = viewChild(MatPaginator, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
400
|
-
this.#cdr = inject(ChangeDetectorRef);
|
|
401
|
-
this.#destroyRef = inject(DestroyRef);
|
|
402
|
-
/** Cached inferred column types from data - recomputed only when data changes */
|
|
403
|
-
this.#inferredColumnTypes = {};
|
|
404
|
-
this.#lastInferredDataRef = null;
|
|
405
|
-
this.#columnsCacheDirty = true;
|
|
406
|
-
this.#cachedColumns = [];
|
|
407
|
-
this.#cachedDisplayedColumns = [];
|
|
408
|
-
this.#cachedSortActiveColumn = '';
|
|
409
|
-
this.#loadScheduled = false;
|
|
410
|
-
this.#destroyed = false;
|
|
411
|
-
this.#connectTimeoutId = null;
|
|
412
|
-
this.#setupFuzzyFilterPredicate();
|
|
413
|
-
this.#setupSelectionFirstSort();
|
|
414
|
-
this.#setupSearchSubscription();
|
|
415
|
-
// Replaces the previous @Input setter side-effect: react to inputConfig changes.
|
|
416
|
-
effect(() => {
|
|
417
|
-
const value = this.inputConfig();
|
|
418
|
-
if (_isEqual(this.#lastInputConfig, value))
|
|
419
|
-
return;
|
|
420
|
-
const prevMatOptions = this.#lastInputConfig?.matOptions?.options;
|
|
421
|
-
const nextMatOptions = value?.matOptions?.options;
|
|
422
|
-
const matOptionsChanged = !_isEqual(prevMatOptions, nextMatOptions);
|
|
423
|
-
this.#lastInputConfig = value;
|
|
424
|
-
this.#columnsCacheDirty = true;
|
|
425
|
-
if (matOptionsChanged) {
|
|
426
|
-
this.#scheduleLoadInputData();
|
|
427
|
-
}
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
get empty() {
|
|
431
|
-
const n = this.value;
|
|
432
|
-
if (n === null || n === undefined)
|
|
433
|
-
return true;
|
|
434
|
-
if (this.isMultiSelect) {
|
|
435
|
-
return Array.isArray(n) && n.length === 0;
|
|
436
|
-
}
|
|
437
|
-
return n === '';
|
|
438
|
-
}
|
|
439
|
-
get shouldLabelFloat() {
|
|
440
|
-
return true;
|
|
441
|
-
}
|
|
442
|
-
get getSelectOptions() {
|
|
443
|
-
const cfg = this.inputConfig();
|
|
444
|
-
if (!cfg?.matOptions)
|
|
445
|
-
return [];
|
|
446
|
-
if (Array.isArray(cfg.matOptions?.options)) {
|
|
447
|
-
return cfg.matOptions?.options || [];
|
|
448
|
-
}
|
|
449
|
-
return [];
|
|
450
|
-
}
|
|
451
|
-
#ensureColumnsCache() {
|
|
452
|
-
if (!this.#columnsCacheDirty)
|
|
453
|
-
return;
|
|
454
|
-
this.#columnsCacheDirty = false;
|
|
455
|
-
this.#cachedColumns = this.#computeColumns();
|
|
456
|
-
this.#cachedDisplayedColumns = this.#cachedColumns.map(c => c.key);
|
|
457
|
-
this.#cachedSortActiveColumn = this.#cachedDisplayedColumns.find(c => c !== 'icons' && c !== 'actions') ?? '';
|
|
458
|
-
}
|
|
459
|
-
#computeColumns() {
|
|
460
|
-
const cfg = this.inputConfig();
|
|
461
|
-
const configColumns = cfg?.paginationSelectionConfig?.columns;
|
|
462
|
-
const options = this.getSelectOptions;
|
|
463
|
-
let dataColumns;
|
|
464
|
-
if ((!configColumns || !Array.isArray(configColumns) || configColumns.length === 0) && Array.isArray(options)) {
|
|
465
|
-
const allKeys = options.flatMap((option) => Object.keys((option ?? {})));
|
|
466
|
-
const uniqueKeys = [...new Set(allKeys)].filter(k => k !== 'icons' && k !== 'actions');
|
|
467
|
-
dataColumns = uniqueKeys.map(key => ({
|
|
468
|
-
key,
|
|
469
|
-
label: key,
|
|
470
|
-
id: key,
|
|
471
|
-
type: this.#inferredColumnTypes[key],
|
|
472
|
-
}));
|
|
473
|
-
}
|
|
474
|
-
else {
|
|
475
|
-
dataColumns = (configColumns || [])
|
|
476
|
-
.filter((c) => typeof c.key === 'string' && c.key !== 'icons' && c.key !== 'actions')
|
|
477
|
-
.map((c) => ({
|
|
478
|
-
key: c.key,
|
|
479
|
-
label: c.label ?? c.key ?? '',
|
|
480
|
-
id: c.id ?? c.key,
|
|
481
|
-
type: c.type ?? this.#inferredColumnTypes[c.key],
|
|
482
|
-
}));
|
|
483
|
-
}
|
|
484
|
-
return [
|
|
485
|
-
{ key: 'icons', label: '', id: 'icons' },
|
|
486
|
-
...dataColumns,
|
|
487
|
-
{ key: 'actions', label: '', id: 'actions' },
|
|
488
|
-
];
|
|
489
|
-
}
|
|
490
|
-
get columns() {
|
|
491
|
-
this.#ensureColumnsCache();
|
|
492
|
-
return this.#cachedColumns;
|
|
493
|
-
}
|
|
494
|
-
get displayedColumns() {
|
|
495
|
-
this.#ensureColumnsCache();
|
|
496
|
-
return this.#cachedDisplayedColumns;
|
|
497
|
-
}
|
|
498
|
-
/** First sortable column for initial matSort state (excludes icons/actions) */
|
|
499
|
-
get sortActiveColumn() {
|
|
500
|
-
this.#ensureColumnsCache();
|
|
501
|
-
return this.#cachedSortActiveColumn;
|
|
502
|
-
}
|
|
503
|
-
/** Defer data load until after current CD cycle completes (prevents ExpressionChanged errors
|
|
504
|
-
* in parent FormSectionStepper when sectionFormErrorMessage changes as form validation updates). */
|
|
505
|
-
#scheduleLoadInputData() {
|
|
506
|
-
if (this.#loadScheduled)
|
|
507
|
-
return;
|
|
508
|
-
this.#loadScheduled = true;
|
|
509
|
-
Promise.resolve().then(() => {
|
|
510
|
-
this.#loadScheduled = false;
|
|
511
|
-
if (!this.#destroyed)
|
|
512
|
-
this.loadInputData();
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
loadInputData() {
|
|
516
|
-
const options = this.getSelectOptions;
|
|
517
|
-
if (Array.isArray(options) && options.every(option => typeof option === 'object' && option !== null)) {
|
|
518
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): widen `dataSource` to `Record<string, unknown>` once template column accessors are narrowed.
|
|
519
|
-
this.dataSource.data = options;
|
|
520
|
-
this.#inferColumnTypesFromData();
|
|
521
|
-
this.#attachSortAndPaginatorAfterViewReady();
|
|
522
|
-
this.#cdr.markForCheck();
|
|
523
|
-
}
|
|
524
|
-
else {
|
|
525
|
-
this.dataSource.data = [];
|
|
526
|
-
this.#clearInferredCache();
|
|
527
|
-
this.errorMessage = 'Invalid options format';
|
|
528
|
-
this.#cdr.markForCheck();
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
/** Connects sort and paginator to dataSource. Deferred because table/paginator are inside @if. */
|
|
532
|
-
#attachSortAndPaginatorAfterViewReady() {
|
|
533
|
-
if (this.#connectTimeoutId != null)
|
|
534
|
-
return;
|
|
535
|
-
this.#connectTimeoutId = setTimeout(() => {
|
|
536
|
-
this.#connectTimeoutId = null;
|
|
537
|
-
const sortRef = this.sort();
|
|
538
|
-
const paginatorRef = this.paginator();
|
|
539
|
-
if (sortRef && this.dataSource.sort !== sortRef) {
|
|
540
|
-
this.dataSource.sort = sortRef;
|
|
541
|
-
}
|
|
542
|
-
if (paginatorRef && this.dataSource.paginator !== paginatorRef) {
|
|
543
|
-
this.dataSource.paginator = paginatorRef;
|
|
544
|
-
}
|
|
545
|
-
// Avoid markForCheck() here - it triggers full-tree CD that re-evaluates parent's
|
|
546
|
-
// sectionFormErrorMessage mid-cycle, causing ExpressionChangedAfterItHasBeenCheckedError.
|
|
547
|
-
// MatTableDataSource propagates sort/paginator changes; view updates on next CD.
|
|
548
|
-
}, 0);
|
|
549
|
-
}
|
|
550
|
-
/** Clear cached references to prevent memory leaks. */
|
|
551
|
-
#clearInferredCache() {
|
|
552
|
-
this.#inferredColumnTypes = {};
|
|
553
|
-
this.#lastInferredDataRef = null;
|
|
554
|
-
this.#columnsCacheDirty = true;
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* Overrides MatTableDataSource.sortData so selected rows are always rendered
|
|
558
|
-
* first, before any sort-ordered unselected rows. This makes selections visible
|
|
559
|
-
* on page 1 regardless of how the table is sorted.
|
|
560
|
-
*/
|
|
561
|
-
#setupSelectionFirstSort() {
|
|
562
|
-
this.dataSource.sortData = (data, sort) => {
|
|
563
|
-
const selected = [];
|
|
564
|
-
const unselected = [];
|
|
565
|
-
for (const row of data) {
|
|
566
|
-
(this.isRowSelected(row) ? selected : unselected).push(row);
|
|
567
|
-
}
|
|
568
|
-
if (!sort.active || !sort.direction) {
|
|
569
|
-
return [...selected, ...unselected];
|
|
570
|
-
}
|
|
571
|
-
const key = sort.active;
|
|
572
|
-
const dir = sort.direction === 'asc' ? 1 : -1;
|
|
573
|
-
const colType = this.#inferredColumnTypes[key];
|
|
574
|
-
unselected.sort((a, b) => {
|
|
575
|
-
const va = a[key];
|
|
576
|
-
const vb = b[key];
|
|
577
|
-
if (va == null && vb == null)
|
|
578
|
-
return 0;
|
|
579
|
-
if (va == null)
|
|
580
|
-
return dir;
|
|
581
|
-
if (vb == null)
|
|
582
|
-
return -dir;
|
|
583
|
-
return dir * this.#compareColValues(va, vb, colType);
|
|
584
|
-
});
|
|
585
|
-
return [...selected, ...unselected];
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
/** Type-aware value comparator used by sortData. Returns negative/zero/positive like Array.sort. */
|
|
589
|
-
#compareColValues(va, vb, colType) {
|
|
590
|
-
// Explicit number columns: parse to float so "9" < "10" (not lexicographic)
|
|
591
|
-
if (colType === DocumentLitsLabelConfigInterfaceValueType.number) {
|
|
592
|
-
const na = parseFloat(String(va));
|
|
593
|
-
const nb = parseFloat(String(vb));
|
|
594
|
-
if (!Number.isNaN(na) && !Number.isNaN(nb))
|
|
595
|
-
return na - nb;
|
|
596
|
-
}
|
|
597
|
-
// Date columns: compare as timestamps
|
|
598
|
-
if (colType === DocumentLitsLabelConfigInterfaceValueType.date) {
|
|
599
|
-
const ta = new Date(va).getTime();
|
|
600
|
-
const tb = new Date(vb).getTime();
|
|
601
|
-
if (!Number.isNaN(ta) && !Number.isNaN(tb))
|
|
602
|
-
return ta - tb;
|
|
603
|
-
}
|
|
604
|
-
// Native JS numbers (regardless of inferred type)
|
|
605
|
-
if (typeof va === 'number' && typeof vb === 'number')
|
|
606
|
-
return va - vb;
|
|
607
|
-
// Native JS Date instances
|
|
608
|
-
if (va instanceof Date && vb instanceof Date)
|
|
609
|
-
return va.getTime() - vb.getTime();
|
|
610
|
-
// Everything else: locale-aware string sort with numeric collation ("9" < "10")
|
|
611
|
-
const sa = typeof va === 'string' ? va : String(va);
|
|
612
|
-
const sb = typeof vb === 'string' ? vb : String(vb);
|
|
613
|
-
return sa.localeCompare(sb, undefined, { numeric: true, sensitivity: 'base' });
|
|
614
|
-
}
|
|
615
|
-
/** Re-sorts the dataSource pipeline so selected rows bubble to the top, then navigates to page 1. */
|
|
616
|
-
#bringSelectionToFront() {
|
|
617
|
-
if (this.dataSource.data.length === 0)
|
|
618
|
-
return;
|
|
619
|
-
// Shallow copy triggers MatTableDataSource to re-run filter → sortData → paginator.
|
|
620
|
-
this.dataSource.data = [...this.dataSource.data];
|
|
621
|
-
this.dataSource.paginator?.firstPage();
|
|
622
|
-
}
|
|
623
|
-
/** Filter predicate using fuzzy search on all stringifiable row values. */
|
|
624
|
-
#setupFuzzyFilterPredicate() {
|
|
625
|
-
this.dataSource.filterPredicate = (row, filter) => {
|
|
626
|
-
const term = filter?.trim();
|
|
627
|
-
if (!term)
|
|
628
|
-
return true;
|
|
629
|
-
if (typeof row !== 'object' || row === null)
|
|
630
|
-
return false;
|
|
631
|
-
return Object.values(row).some((value) => {
|
|
632
|
-
if (value == null)
|
|
633
|
-
return false;
|
|
634
|
-
const text = typeof value === 'string' ? value : String(value);
|
|
635
|
-
return fuzzySearch(term, text);
|
|
636
|
-
});
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
#setupSearchSubscription() {
|
|
640
|
-
this.searchFormControl.valueChanges.pipe(debounceTime(300), map((term) => term?.trim() ?? ''), distinctUntilChanged((a, b) => a === b), takeUntilDestroyed(this.#destroyRef)).subscribe((filter) => {
|
|
641
|
-
this.dataSource.filter = filter;
|
|
642
|
-
this.dataSource.paginator?.firstPage();
|
|
643
|
-
this.#cdr.markForCheck();
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
clearSearch() {
|
|
647
|
-
this.searchFormControl.setValue('');
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* Infers column types from data source by sampling first N rows.
|
|
651
|
-
* Cached per data reference to avoid recomputation on every change detection.
|
|
652
|
-
*/
|
|
653
|
-
#inferColumnTypesFromData() {
|
|
654
|
-
const data = this.dataSource.data;
|
|
655
|
-
if (data === this.#lastInferredDataRef)
|
|
656
|
-
return;
|
|
657
|
-
if (data.length === 0) {
|
|
658
|
-
this.#clearInferredCache();
|
|
659
|
-
return;
|
|
660
|
-
}
|
|
661
|
-
this.#lastInferredDataRef = data;
|
|
662
|
-
const sampleSize = Math.min(TYPE_INFER_SAMPLE_SIZE, data.length);
|
|
663
|
-
const keys = Object.keys(data[0] ?? {});
|
|
664
|
-
for (const key of keys) {
|
|
665
|
-
if (key === 'icons' || key === 'actions')
|
|
666
|
-
continue;
|
|
667
|
-
let inferred = undefined;
|
|
668
|
-
for (let i = 0; i < sampleSize; i++) {
|
|
669
|
-
const v = data[i]?.[key];
|
|
670
|
-
if (v === null || v === undefined)
|
|
671
|
-
continue;
|
|
672
|
-
inferred = this.#inferValueType(v);
|
|
673
|
-
break;
|
|
674
|
-
}
|
|
675
|
-
this.#inferredColumnTypes[key] = inferred;
|
|
676
|
-
}
|
|
677
|
-
this.#columnsCacheDirty = true;
|
|
678
|
-
}
|
|
679
|
-
/** Lightweight single-value type inference for formatData pipe compatibility */
|
|
680
|
-
#inferValueType(v) {
|
|
681
|
-
if (typeof v === 'boolean')
|
|
682
|
-
return InputDataTypes.Boolean;
|
|
683
|
-
if (Array.isArray(v))
|
|
684
|
-
return InputDataTypes.Array;
|
|
685
|
-
if (typeof v === 'object' && v !== null) {
|
|
686
|
-
return v instanceof Date ? DocumentLitsLabelConfigInterfaceValueType.date : InputDataTypes.Object;
|
|
687
|
-
}
|
|
688
|
-
if (typeof v === 'number' && !Number.isNaN(v))
|
|
689
|
-
return DocumentLitsLabelConfigInterfaceValueType.number;
|
|
690
|
-
if (typeof v === 'string') {
|
|
691
|
-
const trimmed = v.trim();
|
|
692
|
-
if (trimmed === '')
|
|
693
|
-
return undefined;
|
|
694
|
-
const num = Number(trimmed);
|
|
695
|
-
if (!Number.isNaN(num))
|
|
696
|
-
return DocumentLitsLabelConfigInterfaceValueType.number;
|
|
697
|
-
const d = new Date(v);
|
|
698
|
-
if (!Number.isNaN(d.getTime()))
|
|
699
|
-
return DocumentLitsLabelConfigInterfaceValueType.date;
|
|
700
|
-
}
|
|
701
|
-
return undefined;
|
|
702
|
-
}
|
|
703
|
-
get isMultiSelect() {
|
|
704
|
-
return this.inputConfig()?.allowMultipleSelection ?? false;
|
|
705
|
-
}
|
|
706
|
-
get primaryIdentifierKey() {
|
|
707
|
-
return this.inputConfig()?.paginationSelectionConfig?.primaryIdentifierKey;
|
|
708
|
-
}
|
|
709
|
-
/** Returns the row identifier: uses returnMappedPathValue when primaryIdentifierKey is set, else fallback to _id/id. */
|
|
710
|
-
getRowId(row) {
|
|
711
|
-
const pk = this.primaryIdentifierKey;
|
|
712
|
-
if (pk != null && pk !== '') {
|
|
713
|
-
return returnMappedPathValue(pk, row);
|
|
714
|
-
}
|
|
715
|
-
return row['_id'] ?? row['id'];
|
|
716
|
-
}
|
|
717
|
-
/** Builds a minimal row object from an id for fallback when the row is not in dataSource (e.g. from radio value). */
|
|
718
|
-
#buildFallbackRowFromId(id) {
|
|
719
|
-
const pk = this.primaryIdentifierKey;
|
|
720
|
-
if (!pk || !Array.isArray(pk) || pk.length === 0) {
|
|
721
|
-
return { _id: id, id };
|
|
722
|
-
}
|
|
723
|
-
const obj = {};
|
|
724
|
-
let current = obj;
|
|
725
|
-
for (let i = 0; i < pk.length; i++) {
|
|
726
|
-
const node = pk[i];
|
|
727
|
-
const key = typeof node === 'object' && node != null && node.key != null ? String(node.key) : String(node);
|
|
728
|
-
const isLast = i === pk.length - 1;
|
|
729
|
-
if (isLast) {
|
|
730
|
-
current[key] = id;
|
|
731
|
-
}
|
|
732
|
-
else {
|
|
733
|
-
current[key] = {};
|
|
734
|
-
current = current[key];
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
return obj;
|
|
738
|
-
}
|
|
739
|
-
getSelectedIds() {
|
|
740
|
-
const v = this.value;
|
|
741
|
-
return Array.isArray(v) ? v : (v ? [v] : []);
|
|
742
|
-
}
|
|
743
|
-
/** Returns a primitive ID suitable for `[value]` on mat-radio-group, normalizing away object preset values. */
|
|
744
|
-
getNormalizedSingleValue() {
|
|
745
|
-
const v = this.value;
|
|
746
|
-
if (v == null || Array.isArray(v))
|
|
747
|
-
return v;
|
|
748
|
-
if (typeof v === 'object')
|
|
749
|
-
return this.getRowId(v);
|
|
750
|
-
return v;
|
|
751
|
-
}
|
|
752
|
-
isRowSelected(row) {
|
|
753
|
-
const rowId = this.getRowId(row);
|
|
754
|
-
if (rowId == null)
|
|
755
|
-
return false;
|
|
756
|
-
return this.getSelectedIds().some(v => {
|
|
757
|
-
if (v == null)
|
|
758
|
-
return false;
|
|
759
|
-
if (v === rowId)
|
|
760
|
-
return true;
|
|
761
|
-
// Preset values may arrive as full row objects instead of bare IDs.
|
|
762
|
-
// Extract the ID from the stored object so the comparison still works.
|
|
763
|
-
if (typeof v === 'object') {
|
|
764
|
-
return this.getRowId(v) == rowId;
|
|
765
|
-
}
|
|
766
|
-
// Handle string/number type coercion (e.g. "123" vs 123).
|
|
767
|
-
return String(v) === String(rowId);
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
onRadioChange(event) {
|
|
771
|
-
const id = event?.value;
|
|
772
|
-
if (id == null)
|
|
773
|
-
return;
|
|
774
|
-
const row = this.dataSource.data.find((r) => this.getRowId(r) == id);
|
|
775
|
-
this.selectRow(row ?? this.#buildFallbackRowFromId(id));
|
|
776
|
-
}
|
|
777
|
-
/** Handle click on radio: if already selected, deselect (radios don't fire change when re-clicked). */
|
|
778
|
-
onRadioClick(row, event) {
|
|
779
|
-
if (this.isRowSelected(row)) {
|
|
780
|
-
event.preventDefault();
|
|
781
|
-
event.stopPropagation();
|
|
782
|
-
this.selectRow(row);
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
selectRow(row) {
|
|
786
|
-
const id = this.getRowId(row);
|
|
787
|
-
if (this.isMultiSelect) {
|
|
788
|
-
const ids = [...this.getSelectedIds()];
|
|
789
|
-
const idx = ids.indexOf(id);
|
|
790
|
-
if (idx >= 0) {
|
|
791
|
-
ids.splice(idx, 1);
|
|
792
|
-
}
|
|
793
|
-
else {
|
|
794
|
-
ids.push(id);
|
|
795
|
-
}
|
|
796
|
-
this.value = ids.length ? ids : null;
|
|
797
|
-
this.onChange(this.value);
|
|
798
|
-
this.onTouched();
|
|
799
|
-
this.#bringSelectionToFront();
|
|
800
|
-
this.#cdr.markForCheck();
|
|
801
|
-
return;
|
|
802
|
-
}
|
|
803
|
-
const isDeselecting = id === this.value;
|
|
804
|
-
this.value = isDeselecting ? undefined : id;
|
|
805
|
-
this.onChange(this.value);
|
|
806
|
-
this.onTouched();
|
|
807
|
-
this.#bringSelectionToFront();
|
|
808
|
-
this.#cdr.markForCheck();
|
|
809
|
-
}
|
|
810
|
-
writeValue(value) {
|
|
811
|
-
super.writeValue(value);
|
|
812
|
-
this.#bringSelectionToFront();
|
|
813
|
-
this.#cdr.markForCheck();
|
|
814
|
-
}
|
|
815
|
-
ngAfterViewInit() {
|
|
816
|
-
this.#attachSortAndPaginatorAfterViewReady();
|
|
817
|
-
}
|
|
818
|
-
ngOnDestroy() {
|
|
819
|
-
this.#destroyed = true;
|
|
820
|
-
this.#loadScheduled = false;
|
|
821
|
-
if (this.#connectTimeoutId != null) {
|
|
822
|
-
clearTimeout(this.#connectTimeoutId);
|
|
823
|
-
this.#connectTimeoutId = null;
|
|
824
|
-
}
|
|
825
|
-
this.#clearInferredCache();
|
|
826
|
-
this.dataSource.data = [];
|
|
827
|
-
super.ngOnDestroy();
|
|
828
|
-
}
|
|
829
|
-
reload() {
|
|
830
|
-
this.reloadData.emit();
|
|
831
|
-
}
|
|
832
|
-
static { this.ɵfac = function PaginatedSelectionTableReactiveInput_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginatedSelectionTableReactiveInput)(); }; }
|
|
833
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginatedSelectionTableReactiveInput, selectors: [["lib-paginated-selection-table-reactive-input"]], viewQuery: function PaginatedSelectionTableReactiveInput_Query(rf, ctx) { if (rf & 1) {
|
|
834
|
-
i0.ɵɵviewQuerySignal(ctx.sort, MatSort, 5)(ctx.paginator, MatPaginator, 5);
|
|
835
|
-
} if (rf & 2) {
|
|
836
|
-
i0.ɵɵqueryAdvance(2);
|
|
837
|
-
} }, hostVars: 3, hostBindings: function PaginatedSelectionTableReactiveInput_HostBindings(rf, ctx) { if (rf & 2) {
|
|
838
|
-
i0.ɵɵdomProperty("id", ctx.id);
|
|
839
|
-
i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
|
|
840
|
-
} }, inputs: { formBuilderFunctions: [1, "formBuilderFunctions"], canReload: [1, "canReload"], loading: [1, "loading"], searchPlaceholder: [1, "searchPlaceholder"], emptyMessage: [1, "emptyMessage"], inputConfig: [1, "inputConfig"] }, outputs: { reloadData: "reloadData" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: PaginatedSelectionTableReactiveInput }]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 3, consts: [[1, "doc-picker-card"], [1, "doc-picker-header"], [1, "doc-picker-loading"], [1, "doc-picker-body"], ["showFirstLastButtons", "", "aria-label", "Selection list pagination", 1, "doc-picker-paginator", 3, "pageSizeOptions", "pageSize", "length"], [1, "doc-picker-toolbar"], ["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"], ["aria-label", "Loading items", 3, "diameter"], [1, "doc-picker-helper"], [1, "doc-picker-empty"], ["color", "primary", 1, "doc-picker-helper-icon"], ["mat-stroked-button", "", "color", "primary", "aria-label", "Retry loading items", 1, "doc-picker-retry"], ["mat-stroked-button", "", "color", "primary", "aria-label", "Retry loading items", 1, "doc-picker-retry", 3, "click"], [1, "doc-picker-table-wrapper"], [1, "doc-picker-radio-group", 3, "value"], ["mat-table", "", "matSortDisableClear", "", "matSortDirection", "asc", "matSort", "", "role", "grid", "aria-label", "Selection list", 1, "doc-picker-table", 3, "dataSource", "matSortActive"], [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", "Click to refresh this field.", "aria-label", "Refresh list", 1, "doc-picker-refresh", "doc-picker-refresh-spacing"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "aria-label", "Refresh list", 1, "doc-picker-refresh", "doc-picker-refresh-spacing", 3, "click"], [1, "doc-picker-refresh-icon"], ["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"], ["matTooltipPosition", "below", 3, "value", "disabled", "matTooltip"], ["matTooltipPosition", "below", 3, "click", "value", "disabled", "matTooltip"]], template: function PaginatedSelectionTableReactiveInput_Template(rf, ctx) { if (rf & 1) {
|
|
841
|
-
i0.ɵɵelementStart(0, "mat-card", 0);
|
|
842
|
-
i0.ɵɵconditionalCreate(1, PaginatedSelectionTableReactiveInput_Conditional_1_Template, 7, 5, "header", 1);
|
|
843
|
-
i0.ɵɵconditionalCreate(2, PaginatedSelectionTableReactiveInput_Conditional_2_Template, 2, 1, "div", 2)(3, PaginatedSelectionTableReactiveInput_Conditional_3_Template, 4, 3, "div", 3);
|
|
844
|
-
i0.ɵɵconditionalCreate(4, PaginatedSelectionTableReactiveInput_Conditional_4_Template, 1, 4, "mat-paginator", 4);
|
|
845
|
-
i0.ɵɵelementEnd();
|
|
846
|
-
} if (rf & 2) {
|
|
847
|
-
let tmp_0_0;
|
|
848
|
-
let tmp_2_0;
|
|
849
|
-
i0.ɵɵadvance();
|
|
850
|
-
i0.ɵɵconditional(!((tmp_0_0 = ctx.inputConfig()) == null ? null : tmp_0_0.disabled) && !((tmp_0_0 = ctx.inputConfig()) == null ? null : tmp_0_0.readonly) ? 1 : -1);
|
|
851
|
-
i0.ɵɵadvance();
|
|
852
|
-
i0.ɵɵconditional(ctx.loading() ? 2 : 3);
|
|
853
|
-
i0.ɵɵadvance(2);
|
|
854
|
-
i0.ɵɵconditional(!((tmp_2_0 = ctx.inputConfig()) == null ? null : tmp_2_0.disabled) && !((tmp_2_0 = ctx.inputConfig()) == null ? null : tmp_2_0.readonly) && ctx.dataSource.filteredData.length > 0 && !ctx.loading() ? 4 : -1);
|
|
855
|
-
} }, 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, i2$2.MatButton, i2$2.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, i2$3.MatSort, i2$3.MatSortHeader, MatPaginatorModule, i3$2.MatPaginator, MatCheckboxModule, i3$3.MatCheckbox, MatRadioModule, i3$4.MatRadioGroup, i3$4.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-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-loading[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:1.5rem;min-height:6rem}.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-refresh[_ngcontent-%COMP%]{flex-shrink:0;transition:transform .15s}.doc-picker-refresh[_ngcontent-%COMP%]:hover{transform:rotate(90deg)}.doc-picker-refresh-spacing[_ngcontent-%COMP%]{margin-right:.25rem}.doc-picker-refresh-icon[_ngcontent-%COMP%]{height:1.25rem;width:1.25rem;font-size:1.25rem;color:var(--doc-picker-primary)}.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-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));text-align:center}.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-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-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-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 }); }
|
|
856
|
-
}
|
|
857
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginatedSelectionTableReactiveInput, [{
|
|
858
|
-
type: Component,
|
|
859
|
-
args: [{ selector: 'lib-paginated-selection-table-reactive-input', imports: [
|
|
860
|
-
ReactiveFormsModule,
|
|
861
|
-
FormatDataPipe,
|
|
862
|
-
MatCardModule,
|
|
863
|
-
MatIconModule,
|
|
864
|
-
MatProgressSpinnerModule,
|
|
865
|
-
MatFormFieldModule,
|
|
866
|
-
MatInputModule,
|
|
867
|
-
MatButtonModule,
|
|
868
|
-
MatTooltipModule,
|
|
869
|
-
MatTableModule,
|
|
870
|
-
MatSortModule,
|
|
871
|
-
MatPaginatorModule,
|
|
872
|
-
MatCheckboxModule,
|
|
873
|
-
MatRadioModule,
|
|
874
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
875
|
-
'[class.floating]': 'shouldLabelFloat',
|
|
876
|
-
'[id]': 'id',
|
|
877
|
-
}, providers: [{ provide: MatFormFieldControl, useExisting: PaginatedSelectionTableReactiveInput }], template: "\r\n<mat-card class=\"doc-picker-card\">\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly) {\r\n <header class=\"doc-picker-header\">\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 </header>\r\n }\r\n @if (loading()) {\r\n <div class=\"doc-picker-loading\">\r\n <mat-spinner [diameter]=\"40\" aria-label=\"Loading items\"></mat-spinner>\r\n </div>\r\n } @else {\r\n <div class=\"doc-picker-body\">\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && !value) {\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 ? 'Select items' : 'Select an item' }}</strong> \u2014 Sort or use pagination to find {{ isMultiSelect ? 'them' : 'it' }}, then {{ isMultiSelect ? 'check the box' : 'select the radio' }} to select {{ isMultiSelect ? 'them' : 'it' }}.</span>\r\n </div>\r\n }\r\n @if (dataSource.filteredData.length === 0) {\r\n <div class=\"doc-picker-empty\">\r\n <mat-icon>folder_open</mat-icon>\r\n <span>{{ emptyMessage() }}</span>\r\n @if (canReload()) {\r\n <button mat-stroked-button color=\"primary\" (click)=\"reload()\" class=\"doc-picker-retry\"\r\n aria-label=\"Retry loading items\">\r\n <mat-icon>refresh</mat-icon>\r\n Retry\r\n </button>\r\n }\r\n </div>\r\n }\r\n @if (dataSource.filteredData.length > 0 && columns.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\"\r\n [matSortActive]=\"sortActiveColumn\" matSortDisableClear matSortDirection=\"asc\"\r\n matSort role=\"grid\" aria-label=\"Selection list\">\r\n @for (col of columns; track col.key) {\r\n <ng-container [matColumnDef]=\"col.key\" [stickyEnd]=\"$last\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header\r\n [disabled]=\"col.key === 'icons' || col.key === 'actions'\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n\r\n @if(col.key === 'actions' && canReload()){\r\n <button mat-icon-button\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"doc-picker-refresh doc-picker-refresh-spacing\"\r\n (click)=\"reload()\"\r\n aria-label=\"Refresh list\">\r\n <mat-icon class=\"doc-picker-refresh-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.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'icons') {\r\n <mat-icon class=\"doc-picker-row-icon\">description</mat-icon>\r\n } @else if (col.key === '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'] ?? row['name'] ?? 'item')\"\r\n matTooltipPosition=\"below\"\r\n [attr.aria-label]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\">\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.key] | formatData:col.type\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | 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'] ?? row['name'] ?? 'item')\"\r\n [attr.aria-selected]=\"isRowSelected(row)\"></tr>\r\n </table>\r\n </div>\r\n } @else {\r\n <mat-radio-group [value]=\"getNormalizedSingleValue()\" (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\"\r\n [matSortActive]=\"sortActiveColumn\" matSortDisableClear matSortDirection=\"asc\"\r\n matSort role=\"grid\" aria-label=\"Selection list\">\r\n @for (col of columns; track col.key) {\r\n <ng-container [matColumnDef]=\"col.key\" [stickyEnd]=\"$last\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header\r\n [disabled]=\"col.key === 'icons' || col.key === 'actions'\"\r\n [class.text-right-align]=\"col.type === 'currency' || col.type === 'number'\"\r\n [class.doc-picker-col-icons]=\"col.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'actions' && canReload()) {\r\n <button mat-icon-button\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"doc-picker-refresh doc-picker-refresh-spacing\"\r\n (click)=\"reload()\"\r\n aria-label=\"Refresh list\">\r\n <mat-icon class=\"doc-picker-refresh-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.key === 'icons'\"\r\n [class.doc-picker-col-actions]=\"col.key === 'actions'\"\r\n [class.doc-picker-col-text]=\"col.key !== 'icons' && col.key !== 'actions' && col.type !== 'currency' && col.type !== 'number'\"\r\n [class.doc-picker-col-numeric]=\"col.type === 'currency' || col.type === 'number'\">\r\n @if (col.key === 'icons') {\r\n <mat-icon class=\"doc-picker-row-icon\">description</mat-icon>\r\n } @else if (col.key === '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'] ?? row['name'] ?? 'item')\"\r\n matTooltipPosition=\"below\"\r\n [attr.aria-label]=\"isRowSelected(row) ? 'Clear selection' : 'Select ' + (row['reference'] ?? row['name'] ?? 'item')\">\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.key] | formatData:col.type\"\r\n matTooltipPosition=\"above\">\r\n {{ row[col.key] | 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'] ?? row['name'] ?? 'item')\"\r\n [attr.aria-selected]=\"isRowSelected(row)\"></tr>\r\n </table>\r\n </div>\r\n </mat-radio-group>\r\n }\r\n }\r\n </div>\r\n }\r\n @if (!inputConfig()?.disabled && !inputConfig()?.readonly && dataSource.filteredData.length > 0 && !loading()) {\r\n <mat-paginator [pageSizeOptions]=\"[5, 10, 25, 50]\"\r\n [pageSize]=\"5\"\r\n [length]=\"dataSource.filteredData.length\"\r\n showFirstLastButtons\r\n aria-label=\"Selection list pagination\" class=\"doc-picker-paginator\"></mat-paginator>\r\n }\r\n</mat-card>\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-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-loading{display:flex;justify-content:center;align-items:center;padding:1.5rem;min-height:6rem}.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-refresh{flex-shrink:0;transition:transform .15s}.doc-picker-refresh:hover{transform:rotate(90deg)}.doc-picker-refresh-spacing{margin-right:.25rem}.doc-picker-refresh-icon{height:1.25rem;width:1.25rem;font-size:1.25rem;color:var(--doc-picker-primary)}.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-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));text-align:center}.doc-picker-row-icon{font-size:1.125rem!important;width:1.125rem!important;height:1.125rem!important;color:var(--doc-picker-primary)}.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-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-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"] }]
|
|
878
|
-
}], () => [], { formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }], canReload: [{ type: i0.Input, args: [{ isSignal: true, alias: "canReload", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", 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 }] }], reloadData: [{ type: i0.Output, args: ["reloadData"] }], sort: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatSort), { isSignal: true }] }], paginator: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatPaginator), { isSignal: true }] }] }); })();
|
|
879
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginatedSelectionTableReactiveInput, { className: "PaginatedSelectionTableReactiveInput", filePath: "lib/components/t-form-input/elements/paginated-selection-table/elements/paginated-selection-table-reactive-input/paginated-selection-table-reactive-input.ts", lineNumber: 82 }); })();
|
|
880
|
-
|
|
881
|
-
function PaginatedSelectionTable_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
882
|
-
i0.ɵɵelementStart(0, "mat-hint", 4);
|
|
883
|
-
i0.ɵɵtext(1);
|
|
884
|
-
i0.ɵɵelementEnd();
|
|
885
|
-
} if (rf & 2) {
|
|
886
|
-
const inputConfig_r2 = i0.ɵɵnextContext();
|
|
887
|
-
i0.ɵɵadvance();
|
|
888
|
-
i0.ɵɵtextInterpolate1(" ", inputConfig_r2.temporaryHint || inputConfig_r2.hintLabel, " ");
|
|
889
|
-
} }
|
|
890
|
-
function PaginatedSelectionTable_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
891
|
-
i0.ɵɵelementStart(0, "mat-icon", 6);
|
|
892
|
-
i0.ɵɵtext(1);
|
|
893
|
-
i0.ɵɵelementEnd();
|
|
894
|
-
} if (rf & 2) {
|
|
895
|
-
const inputConfig_r2 = i0.ɵɵnextContext();
|
|
896
|
-
i0.ɵɵadvance();
|
|
897
|
-
i0.ɵɵtextInterpolate(inputConfig_r2.prefixIcon);
|
|
898
|
-
} }
|
|
899
|
-
function PaginatedSelectionTable_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
900
|
-
i0.ɵɵelementStart(0, "mat-icon", 7);
|
|
901
|
-
i0.ɵɵtext(1);
|
|
902
|
-
i0.ɵɵelementEnd();
|
|
903
|
-
} if (rf & 2) {
|
|
904
|
-
const inputConfig_r2 = i0.ɵɵnextContext();
|
|
905
|
-
i0.ɵɵadvance();
|
|
906
|
-
i0.ɵɵtextInterpolate(inputConfig_r2.suffixIcon);
|
|
907
|
-
} }
|
|
908
|
-
function PaginatedSelectionTable_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
909
|
-
i0.ɵɵelementStart(0, "span", 8);
|
|
910
|
-
i0.ɵɵtext(1);
|
|
911
|
-
i0.ɵɵelementEnd();
|
|
912
|
-
} if (rf & 2) {
|
|
913
|
-
const inputConfig_r2 = i0.ɵɵnextContext();
|
|
914
|
-
i0.ɵɵadvance();
|
|
915
|
-
i0.ɵɵtextInterpolate(inputConfig_r2.prefixText);
|
|
916
|
-
} }
|
|
917
|
-
function PaginatedSelectionTable_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
918
|
-
i0.ɵɵelementStart(0, "span", 9);
|
|
919
|
-
i0.ɵɵtext(1);
|
|
920
|
-
i0.ɵɵelementEnd();
|
|
921
|
-
} if (rf & 2) {
|
|
922
|
-
const inputConfig_r2 = i0.ɵɵnextContext();
|
|
923
|
-
i0.ɵɵadvance();
|
|
924
|
-
i0.ɵɵtextInterpolate(inputConfig_r2.suffixText);
|
|
925
|
-
} }
|
|
926
|
-
function PaginatedSelectionTable_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
927
|
-
i0.ɵɵelementStart(0, "mat-hint", 10);
|
|
928
|
-
i0.ɵɵtext(1);
|
|
929
|
-
i0.ɵɵelementEnd();
|
|
930
|
-
} if (rf & 2) {
|
|
931
|
-
let tmp_3_0;
|
|
932
|
-
const inputConfig_r2 = i0.ɵɵnextContext();
|
|
933
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
934
|
-
i0.ɵɵadvance();
|
|
935
|
-
i0.ɵɵtextInterpolate1(" ", (((tmp_3_0 = ctx_r2.formGroup().controls[inputConfig_r2.id]) == null ? null : tmp_3_0.value == null ? null : tmp_3_0.value.length) || 0) + "/" + inputConfig_r2.maxLength, " ");
|
|
936
|
-
} }
|
|
937
|
-
function PaginatedSelectionTable_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
938
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
939
|
-
i0.ɵɵelementStart(0, "mat-form-field", 1)(1, "mat-label");
|
|
940
|
-
i0.ɵɵtext(2);
|
|
941
|
-
i0.ɵɵelement(3, "lib-t-form-input-status", 2);
|
|
942
|
-
i0.ɵɵelementEnd();
|
|
943
|
-
i0.ɵɵelementStart(4, "lib-paginated-selection-table-reactive-input", 3);
|
|
944
|
-
i0.ɵɵlistener("reloadData", function PaginatedSelectionTable_Conditional_1_Template_lib_paginated_selection_table_reactive_input_reloadData_4_listener() { const inputConfig_r2 = i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(inputConfig_r2.canReload.emit()); });
|
|
945
|
-
i0.ɵɵelementEnd();
|
|
946
|
-
i0.ɵɵconditionalCreate(5, PaginatedSelectionTable_Conditional_1_Conditional_5_Template, 2, 1, "mat-hint", 4);
|
|
947
|
-
i0.ɵɵelementStart(6, "mat-error", 5);
|
|
948
|
-
i0.ɵɵtext(7);
|
|
949
|
-
i0.ɵɵelementEnd();
|
|
950
|
-
i0.ɵɵconditionalCreate(8, PaginatedSelectionTable_Conditional_1_Conditional_8_Template, 2, 1, "mat-icon", 6);
|
|
951
|
-
i0.ɵɵconditionalCreate(9, PaginatedSelectionTable_Conditional_1_Conditional_9_Template, 2, 1, "mat-icon", 7);
|
|
952
|
-
i0.ɵɵconditionalCreate(10, PaginatedSelectionTable_Conditional_1_Conditional_10_Template, 2, 1, "span", 8);
|
|
953
|
-
i0.ɵɵconditionalCreate(11, PaginatedSelectionTable_Conditional_1_Conditional_11_Template, 2, 1, "span", 9);
|
|
954
|
-
i0.ɵɵconditionalCreate(12, PaginatedSelectionTable_Conditional_1_Conditional_12_Template, 2, 1, "mat-hint", 10);
|
|
955
|
-
i0.ɵɵelementEnd();
|
|
956
|
-
} if (rf & 2) {
|
|
957
|
-
const inputConfig_r2 = ctx;
|
|
958
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
959
|
-
i0.ɵɵproperty("appearance", inputConfig_r2.appearance || "fill");
|
|
960
|
-
i0.ɵɵadvance(2);
|
|
961
|
-
i0.ɵɵtextInterpolate1(" ", inputConfig_r2.label, " ");
|
|
962
|
-
i0.ɵɵadvance();
|
|
963
|
-
i0.ɵɵproperty("inputConfig", inputConfig_r2);
|
|
964
|
-
i0.ɵɵadvance();
|
|
965
|
-
i0.ɵɵproperty("inputConfig", inputConfig_r2)("disabled", !!inputConfig_r2.disabled)("required", inputConfig_r2.required)("canReload", !!(inputConfig_r2.canReload == null ? null : inputConfig_r2.canReload.canReload) || false)("formControlName", inputConfig_r2.id);
|
|
966
|
-
i0.ɵɵadvance();
|
|
967
|
-
i0.ɵɵconditional(inputConfig_r2.hintLabel || inputConfig_r2.temporaryHint ? 5 : -1);
|
|
968
|
-
i0.ɵɵadvance(2);
|
|
969
|
-
i0.ɵɵtextInterpolate(ctx_r2.errorMessage());
|
|
970
|
-
i0.ɵɵadvance();
|
|
971
|
-
i0.ɵɵconditional(inputConfig_r2.prefixIcon ? 8 : -1);
|
|
972
|
-
i0.ɵɵadvance();
|
|
973
|
-
i0.ɵɵconditional(inputConfig_r2.suffixIcon && inputConfig_r2.id !== "password" ? 9 : -1);
|
|
974
|
-
i0.ɵɵadvance();
|
|
975
|
-
i0.ɵɵconditional(inputConfig_r2.prefixText ? 10 : -1);
|
|
976
|
-
i0.ɵɵadvance();
|
|
977
|
-
i0.ɵɵconditional(inputConfig_r2.suffixText ? 11 : -1);
|
|
978
|
-
i0.ɵɵadvance();
|
|
979
|
-
i0.ɵɵconditional(inputConfig_r2.maxLength && ctx_r2.formGroup() ? 12 : -1);
|
|
980
|
-
} }
|
|
981
|
-
/** Wraps a paginated selection-table control inside a `mat-form-field`. */
|
|
982
|
-
class PaginatedSelectionTable {
|
|
983
|
-
constructor() {
|
|
984
|
-
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
985
|
-
this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
|
|
986
|
-
this.reload = output();
|
|
987
|
-
this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
988
|
-
this.errorStateMatcher = {
|
|
989
|
-
isErrorState(control, _form) {
|
|
990
|
-
return !!(control && control.invalid && (control.dirty || control.touched));
|
|
991
|
-
},
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
static { this.ɵfac = function PaginatedSelectionTable_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginatedSelectionTable)(); }; }
|
|
995
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginatedSelectionTable, selectors: [["lib-paginated-selection-table"]], inputs: { inputConfig: [1, "inputConfig"], formGroup: [1, "formGroup"] }, outputs: { reload: "reload" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["subscriptSizing", "dynamic", 3, "appearance"], [3, "inputConfig"], [3, "reloadData", "inputConfig", "disabled", "required", "canReload", "formControlName"], [1, "inputHint"], ["matTooltipClass", "errorToolTip", 1, "oneLineTextEllipsis"], ["matPrefix", ""], ["matSuffix", ""], ["matPrefix", "", 2, "top", "0"], ["matSuffix", "", 2, "padding-left", "5px"], ["align", "end"]], template: function PaginatedSelectionTable_Template(rf, ctx) { if (rf & 1) {
|
|
996
|
-
i0.ɵɵelementContainerStart(0, 0);
|
|
997
|
-
i0.ɵɵconditionalCreate(1, PaginatedSelectionTable_Conditional_1_Template, 13, 15, "mat-form-field", 1);
|
|
998
|
-
i0.ɵɵelementContainerEnd();
|
|
999
|
-
} if (rf & 2) {
|
|
1000
|
-
let tmp_1_0;
|
|
1001
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup());
|
|
1002
|
-
i0.ɵɵadvance();
|
|
1003
|
-
i0.ɵɵconditional((tmp_1_0 = ctx.inputConfig()) ? 1 : -1, tmp_1_0);
|
|
1004
|
-
} }, dependencies: [ReactiveFormsModule, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.FormGroupDirective, i1.FormControlName, MatFormFieldModule, i2.MatFormField, i2.MatLabel, i2.MatHint, i2.MatError, i2.MatPrefix, i2.MatSuffix, MatIconModule, i3$1.MatIcon, MatButtonModule,
|
|
1005
|
-
MatTooltipModule,
|
|
1006
|
-
TFormInputStatusComponent,
|
|
1007
|
-
PaginatedSelectionTableReactiveInput], 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 }); }
|
|
1008
|
-
}
|
|
1009
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginatedSelectionTable, [{
|
|
1010
|
-
type: Component,
|
|
1011
|
-
args: [{ selector: 'lib-paginated-selection-table', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1012
|
-
ReactiveFormsModule,
|
|
1013
|
-
MatFormFieldModule,
|
|
1014
|
-
MatIconModule,
|
|
1015
|
-
MatButtonModule,
|
|
1016
|
-
MatTooltipModule,
|
|
1017
|
-
TFormInputStatusComponent,
|
|
1018
|
-
PaginatedSelectionTableReactiveInput,
|
|
1019
|
-
], template: "<ng-container [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-paginated-selection-table-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [disabled]=\"!!inputConfig.disabled\"\r\n [required]=\"inputConfig.required\"\r\n [canReload]=\"!!inputConfig.canReload?.canReload || false\"\r\n (reloadData)=\"inputConfig.canReload.emit()\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-paginated-selection-table-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 <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</ng-container>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
|
|
1020
|
-
}], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] }); })();
|
|
1021
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginatedSelectionTable, { className: "PaginatedSelectionTable", filePath: "lib/components/t-form-input/elements/paginated-selection-table/paginated-selection-table.ts", lineNumber: 29 }); })();
|
|
1022
|
-
|
|
1023
|
-
export { PaginatedSelectionTable };
|
|
1024
|
-
//# sourceMappingURL=ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map
|