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,2923 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, DestroyRef, input, output, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, signal, ElementRef } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/forms';
|
|
4
|
-
import { ReactiveFormsModule, FormsModule, FormBuilder, FormControl, Validators, NgControl } from '@angular/forms';
|
|
5
|
-
import * as i2$2 from '@angular/material/form-field';
|
|
6
|
-
import { MatFormFieldModule, MatFormFieldControl } from '@angular/material/form-field';
|
|
7
|
-
import * as i3 from '@angular/material/icon';
|
|
8
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
-
import * as i2$1 from '@angular/material/button';
|
|
10
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
-
import * as i5$2 from '@angular/material/tooltip';
|
|
12
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
|
-
import { N as NGX_T_FORMS_CONFIG_TOKEN, _ as _isEqual, D as DaysAgoPipe, B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
|
|
14
|
-
import { AsyncPipe, DecimalPipe, TitleCasePipe } from '@angular/common';
|
|
15
|
-
import { InputDataTypes, AdjudicationSteps } from 'ngx-t-forms-types';
|
|
16
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
17
|
-
import * as i2 from '@angular/cdk/text-field';
|
|
18
|
-
import { TextFieldModule } from '@angular/cdk/text-field';
|
|
19
|
-
import * as i5 from '@angular/material/autocomplete';
|
|
20
|
-
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
21
|
-
import * as i2$3 from '@angular/material/input';
|
|
22
|
-
import { MatInputModule } from '@angular/material/input';
|
|
23
|
-
import * as i8 from '@angular/material/select';
|
|
24
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
25
|
-
import * as i2$4 from '@angular/material/sort';
|
|
26
|
-
import { MatSortModule } from '@angular/material/sort';
|
|
27
|
-
import * as i5$1 from '@angular/material/table';
|
|
28
|
-
import { MatTableModule } from '@angular/material/table';
|
|
29
|
-
import { tap, BehaviorSubject, switchMap, take, shareReplay, combineLatest, map, startWith, catchError, of } from 'rxjs';
|
|
30
|
-
import { v4 } from 'uuid';
|
|
31
|
-
import { g as getInputIcon } from './ngx-t-forms-getInputIcon-B4ADgevZ.mjs';
|
|
32
|
-
import * as i2$5 from '@angular/cdk/overlay';
|
|
33
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
34
|
-
import * as i1$1 from '@angular/material/dialog';
|
|
35
|
-
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule, MatDialog } from '@angular/material/dialog';
|
|
36
|
-
import * as i4 from '@angular/material/progress-spinner';
|
|
37
|
-
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
38
|
-
import * as i7 from '@angular/material/core';
|
|
39
|
-
import { MatRippleModule } from '@angular/material/core';
|
|
40
|
-
import { b as EditorJsInputComponent } from './ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs';
|
|
41
|
-
import * as i1$2 from '@angular/material/progress-bar';
|
|
42
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
43
|
-
import * as i5$3 from '@angular/material/expansion';
|
|
44
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
45
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
46
|
-
import * as i6 from '@angular/material/list';
|
|
47
|
-
|
|
48
|
-
const _c0$2 = () => [];
|
|
49
|
-
const _forTrack0$4 = ($index, $item) => $item.id;
|
|
50
|
-
function PointsCreationComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
-
i0.ɵɵelementStart(0, "h5", 11);
|
|
52
|
-
i0.ɵɵtext(1, " \u2139\uFE0F To add a scoring item: ");
|
|
53
|
-
i0.ɵɵelementEnd();
|
|
54
|
-
i0.ɵɵelementStart(2, "ol")(3, "li")(4, "strong");
|
|
55
|
-
i0.ɵɵtext(5, "Enter Description:");
|
|
56
|
-
i0.ɵɵelementEnd();
|
|
57
|
-
i0.ɵɵelementStart(6, "ul", 12)(7, "li");
|
|
58
|
-
i0.ɵɵtext(8, " To ");
|
|
59
|
-
i0.ɵɵelementStart(9, "strong");
|
|
60
|
-
i0.ɵɵtext(10, "link");
|
|
61
|
-
i0.ɵɵelementEnd();
|
|
62
|
-
i0.ɵɵtext(11, " a field: You ");
|
|
63
|
-
i0.ɵɵelementStart(12, "strong");
|
|
64
|
-
i0.ɵɵtext(13, "must select it");
|
|
65
|
-
i0.ɵɵelementEnd();
|
|
66
|
-
i0.ɵɵtext(14, " from the list first (you can edit it after). ");
|
|
67
|
-
i0.ɵɵelementEnd();
|
|
68
|
-
i0.ɵɵelementStart(15, "li");
|
|
69
|
-
i0.ɵɵtext(16, " For a ");
|
|
70
|
-
i0.ɵɵelementStart(17, "strong");
|
|
71
|
-
i0.ɵɵtext(18, "custom");
|
|
72
|
-
i0.ɵɵelementEnd();
|
|
73
|
-
i0.ɵɵtext(19, " point: ");
|
|
74
|
-
i0.ɵɵelementStart(20, "strong");
|
|
75
|
-
i0.ɵɵtext(21, "Ignore the list");
|
|
76
|
-
i0.ɵɵelementEnd();
|
|
77
|
-
i0.ɵɵtext(22, " and just type your own description. ");
|
|
78
|
-
i0.ɵɵelementEnd()()();
|
|
79
|
-
i0.ɵɵelementStart(23, "li")(24, "strong");
|
|
80
|
-
i0.ɵɵtext(25, "Set Details:");
|
|
81
|
-
i0.ɵɵelementEnd();
|
|
82
|
-
i0.ɵɵtext(26, " Assign the ");
|
|
83
|
-
i0.ɵɵelementStart(27, "strong");
|
|
84
|
-
i0.ɵɵtext(28, "Points");
|
|
85
|
-
i0.ɵɵelementEnd();
|
|
86
|
-
i0.ɵɵtext(29, " and select the ");
|
|
87
|
-
i0.ɵɵelementStart(30, "strong");
|
|
88
|
-
i0.ɵɵtext(31, "Point Type");
|
|
89
|
-
i0.ɵɵelementEnd();
|
|
90
|
-
i0.ɵɵtext(32, ". ");
|
|
91
|
-
i0.ɵɵelementEnd();
|
|
92
|
-
i0.ɵɵelementStart(33, "li")(34, "strong");
|
|
93
|
-
i0.ɵɵtext(35, "Save:");
|
|
94
|
-
i0.ɵɵelementEnd();
|
|
95
|
-
i0.ɵɵtext(36, " Click the ");
|
|
96
|
-
i0.ɵɵelementStart(37, "strong");
|
|
97
|
-
i0.ɵɵtext(38, "\"Save\"");
|
|
98
|
-
i0.ɵɵelementEnd();
|
|
99
|
-
i0.ɵɵtext(39, " button to add the item. ");
|
|
100
|
-
i0.ɵɵelementEnd()();
|
|
101
|
-
} }
|
|
102
|
-
function PointsCreationComponent_th_4_Template(rf, ctx) { if (rf & 1) {
|
|
103
|
-
i0.ɵɵelementStart(0, "th", 13);
|
|
104
|
-
i0.ɵɵtext(1, "Description");
|
|
105
|
-
i0.ɵɵelementEnd();
|
|
106
|
-
} }
|
|
107
|
-
function PointsCreationComponent_td_5_Conditional_1_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
108
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
109
|
-
i0.ɵɵelementStart(0, "mat-option", 19);
|
|
110
|
-
i0.ɵɵlistener("click", function PointsCreationComponent_td_5_Conditional_1_For_5_Template_mat_option_click_0_listener() { const input_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.selectActiveInput(input_r4)); });
|
|
111
|
-
i0.ɵɵelementStart(1, "div", 20)(2, "mat-icon", 21);
|
|
112
|
-
i0.ɵɵtext(3);
|
|
113
|
-
i0.ɵɵelementEnd();
|
|
114
|
-
i0.ɵɵelementStart(4, "span")(5, "div", 22)(6, "strong");
|
|
115
|
-
i0.ɵɵtext(7);
|
|
116
|
-
i0.ɵɵelementEnd()();
|
|
117
|
-
i0.ɵɵelementStart(8, "div", 23);
|
|
118
|
-
i0.ɵɵtext(9);
|
|
119
|
-
i0.ɵɵelementEnd()()()();
|
|
120
|
-
} if (rf & 2) {
|
|
121
|
-
const input_r4 = ctx.$implicit;
|
|
122
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
123
|
-
i0.ɵɵproperty("value", input_r4.label);
|
|
124
|
-
i0.ɵɵadvance(2);
|
|
125
|
-
i0.ɵɵattribute("aria-label", input_r4.label);
|
|
126
|
-
i0.ɵɵadvance();
|
|
127
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.getInputIcon(input_r4), " ");
|
|
128
|
-
i0.ɵɵadvance(4);
|
|
129
|
-
i0.ɵɵtextInterpolate1(" ", input_r4.label, " ");
|
|
130
|
-
i0.ɵɵadvance(2);
|
|
131
|
-
i0.ɵɵtextInterpolate1(" ", input_r4.hintLabel || input_r4.formControlName, " ");
|
|
132
|
-
} }
|
|
133
|
-
function PointsCreationComponent_td_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
134
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
135
|
-
i0.ɵɵelementStart(0, "mat-form-field", 15)(1, "textarea", 16);
|
|
136
|
-
i0.ɵɵtwoWayListener("ngModelChange", function PointsCreationComponent_td_5_Conditional_1_Template_textarea_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.pointRow.description, $event) || (ctx_r1.pointRow.description = $event); return i0.ɵɵresetView($event); });
|
|
137
|
-
i0.ɵɵelementEnd();
|
|
138
|
-
i0.ɵɵelementStart(2, "mat-autocomplete", 17, 0);
|
|
139
|
-
i0.ɵɵrepeaterCreate(4, PointsCreationComponent_td_5_Conditional_1_For_5_Template, 10, 5, "mat-option", 18, _forTrack0$4);
|
|
140
|
-
i0.ɵɵelementEnd()();
|
|
141
|
-
} if (rf & 2) {
|
|
142
|
-
const auto_r5 = i0.ɵɵreference(3);
|
|
143
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
144
|
-
i0.ɵɵadvance();
|
|
145
|
-
i0.ɵɵproperty("matAutocomplete", auto_r5);
|
|
146
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.pointRow.description);
|
|
147
|
-
i0.ɵɵadvance(3);
|
|
148
|
-
i0.ɵɵrepeater(ctx_r1.filteredInputs);
|
|
149
|
-
} }
|
|
150
|
-
function PointsCreationComponent_td_5_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
151
|
-
i0.ɵɵtext(0);
|
|
152
|
-
} if (rf & 2) {
|
|
153
|
-
const element_r6 = i0.ɵɵnextContext().$implicit;
|
|
154
|
-
i0.ɵɵtextInterpolate1(" ", element_r6.description, " ");
|
|
155
|
-
} }
|
|
156
|
-
function PointsCreationComponent_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
157
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
158
|
-
i0.ɵɵconditionalCreate(1, PointsCreationComponent_td_5_Conditional_1_Template, 6, 2, "mat-form-field", 15)(2, PointsCreationComponent_td_5_Conditional_2_Template, 1, 1);
|
|
159
|
-
i0.ɵɵelementEnd();
|
|
160
|
-
} if (rf & 2) {
|
|
161
|
-
const element_r6 = ctx.$implicit;
|
|
162
|
-
i0.ɵɵadvance();
|
|
163
|
-
i0.ɵɵconditional(element_r6.isEditRow ? 1 : 2);
|
|
164
|
-
} }
|
|
165
|
-
function PointsCreationComponent_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
-
i0.ɵɵelementStart(0, "th", 13);
|
|
167
|
-
i0.ɵɵtext(1, "Points");
|
|
168
|
-
i0.ɵɵelementEnd();
|
|
169
|
-
} }
|
|
170
|
-
function PointsCreationComponent_td_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
171
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
172
|
-
i0.ɵɵelementStart(0, "mat-form-field", 15)(1, "input", 24);
|
|
173
|
-
i0.ɵɵtwoWayListener("ngModelChange", function PointsCreationComponent_td_8_Conditional_1_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.pointRow.totalPoints, $event) || (ctx_r1.pointRow.totalPoints = $event); return i0.ɵɵresetView($event); });
|
|
174
|
-
i0.ɵɵelementEnd()();
|
|
175
|
-
} if (rf & 2) {
|
|
176
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
177
|
-
i0.ɵɵadvance();
|
|
178
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.pointRow.totalPoints);
|
|
179
|
-
} }
|
|
180
|
-
function PointsCreationComponent_td_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
181
|
-
i0.ɵɵtext(0);
|
|
182
|
-
} if (rf & 2) {
|
|
183
|
-
const element_r8 = i0.ɵɵnextContext().$implicit;
|
|
184
|
-
i0.ɵɵtextInterpolate1(" ", element_r8.totalPoints, " ");
|
|
185
|
-
} }
|
|
186
|
-
function PointsCreationComponent_td_8_Template(rf, ctx) { if (rf & 1) {
|
|
187
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
188
|
-
i0.ɵɵconditionalCreate(1, PointsCreationComponent_td_8_Conditional_1_Template, 2, 1, "mat-form-field", 15)(2, PointsCreationComponent_td_8_Conditional_2_Template, 1, 1);
|
|
189
|
-
i0.ɵɵelementEnd();
|
|
190
|
-
} if (rf & 2) {
|
|
191
|
-
const element_r8 = ctx.$implicit;
|
|
192
|
-
i0.ɵɵadvance();
|
|
193
|
-
i0.ɵɵconditional(element_r8.isEditRow ? 1 : 2);
|
|
194
|
-
} }
|
|
195
|
-
function PointsCreationComponent_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
196
|
-
i0.ɵɵelementStart(0, "th", 13);
|
|
197
|
-
i0.ɵɵtext(1, "Point Type");
|
|
198
|
-
i0.ɵɵelementEnd();
|
|
199
|
-
} }
|
|
200
|
-
function PointsCreationComponent_td_11_Conditional_1_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
201
|
-
i0.ɵɵelementStart(0, "mat-option", 18);
|
|
202
|
-
i0.ɵɵtext(1);
|
|
203
|
-
i0.ɵɵelementEnd();
|
|
204
|
-
} if (rf & 2) {
|
|
205
|
-
const type_r10 = ctx.$implicit;
|
|
206
|
-
i0.ɵɵproperty("value", type_r10);
|
|
207
|
-
i0.ɵɵadvance();
|
|
208
|
-
i0.ɵɵtextInterpolate(type_r10);
|
|
209
|
-
} }
|
|
210
|
-
function PointsCreationComponent_td_11_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
211
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
212
|
-
i0.ɵɵelementStart(0, "mat-form-field", 15)(1, "mat-select", 25);
|
|
213
|
-
i0.ɵɵlistener("selectionChange", function PointsCreationComponent_td_11_Conditional_1_Template_mat_select_selectionChange_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.selectPointType($event)); });
|
|
214
|
-
i0.ɵɵrepeaterCreate(2, PointsCreationComponent_td_11_Conditional_1_For_3_Template, 2, 2, "mat-option", 18, i0.ɵɵrepeaterTrackByIndex);
|
|
215
|
-
i0.ɵɵelementEnd()();
|
|
216
|
-
} if (rf & 2) {
|
|
217
|
-
let tmp_4_0;
|
|
218
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
219
|
-
i0.ɵɵadvance();
|
|
220
|
-
i0.ɵɵproperty("value", ctx_r1.pointRow.pointType);
|
|
221
|
-
i0.ɵɵadvance();
|
|
222
|
-
i0.ɵɵrepeater(((tmp_4_0 = ctx_r1.inputConfig()) == null ? null : tmp_4_0.adjudicationPointTypes) || i0.ɵɵpureFunction0(1, _c0$2));
|
|
223
|
-
} }
|
|
224
|
-
function PointsCreationComponent_td_11_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
225
|
-
i0.ɵɵtext(0);
|
|
226
|
-
} if (rf & 2) {
|
|
227
|
-
const element_r11 = i0.ɵɵnextContext().$implicit;
|
|
228
|
-
i0.ɵɵtextInterpolate1(" ", element_r11.pointType, " ");
|
|
229
|
-
} }
|
|
230
|
-
function PointsCreationComponent_td_11_Template(rf, ctx) { if (rf & 1) {
|
|
231
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
232
|
-
i0.ɵɵconditionalCreate(1, PointsCreationComponent_td_11_Conditional_1_Template, 4, 2, "mat-form-field", 15)(2, PointsCreationComponent_td_11_Conditional_2_Template, 1, 1);
|
|
233
|
-
i0.ɵɵelementEnd();
|
|
234
|
-
} if (rf & 2) {
|
|
235
|
-
const element_r11 = ctx.$implicit;
|
|
236
|
-
i0.ɵɵadvance();
|
|
237
|
-
i0.ɵɵconditional(element_r11.isEditRow ? 1 : 2);
|
|
238
|
-
} }
|
|
239
|
-
function PointsCreationComponent_th_13_Template(rf, ctx) { if (rf & 1) {
|
|
240
|
-
i0.ɵɵelement(0, "th", 13);
|
|
241
|
-
} }
|
|
242
|
-
function PointsCreationComponent_td_14_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
243
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
244
|
-
i0.ɵɵelementStart(0, "button", 28);
|
|
245
|
-
i0.ɵɵlistener("click", function PointsCreationComponent_td_14_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.savePoints()); });
|
|
246
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
247
|
-
i0.ɵɵtext(2, " save ");
|
|
248
|
-
i0.ɵɵelementEnd()();
|
|
249
|
-
} if (rf & 2) {
|
|
250
|
-
let tmp_3_0;
|
|
251
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
252
|
-
i0.ɵɵproperty("disabled", !ctx_r1.pointInEditIsValid || ((tmp_3_0 = ctx_r1.inputConfig()) == null ? null : tmp_3_0.disabled) || ((tmp_3_0 = ctx_r1.inputConfig()) == null ? null : tmp_3_0.readonly));
|
|
253
|
-
} }
|
|
254
|
-
function PointsCreationComponent_td_14_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
255
|
-
const _r13 = i0.ɵɵgetCurrentView();
|
|
256
|
-
i0.ɵɵelementStart(0, "button", 30);
|
|
257
|
-
i0.ɵɵlistener("click", function PointsCreationComponent_td_14_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const element_r14 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.edit(element_r14)); });
|
|
258
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
259
|
-
i0.ɵɵtext(2, "edit");
|
|
260
|
-
i0.ɵɵelementEnd()();
|
|
261
|
-
i0.ɵɵelementStart(3, "button", 30);
|
|
262
|
-
i0.ɵɵlistener("click", function PointsCreationComponent_td_14_Conditional_3_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r13); const element_r14 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.remove(element_r14)); });
|
|
263
|
-
i0.ɵɵelementStart(4, "mat-icon");
|
|
264
|
-
i0.ɵɵtext(5, "delete_forever");
|
|
265
|
-
i0.ɵɵelementEnd()();
|
|
266
|
-
} }
|
|
267
|
-
function PointsCreationComponent_td_14_Template(rf, ctx) { if (rf & 1) {
|
|
268
|
-
i0.ɵɵelementStart(0, "td", 14)(1, "span", 26);
|
|
269
|
-
i0.ɵɵconditionalCreate(2, PointsCreationComponent_td_14_Conditional_2_Template, 3, 1, "button", 27)(3, PointsCreationComponent_td_14_Conditional_3_Template, 6, 0);
|
|
270
|
-
i0.ɵɵelementEnd()();
|
|
271
|
-
} if (rf & 2) {
|
|
272
|
-
const element_r14 = ctx.$implicit;
|
|
273
|
-
i0.ɵɵadvance(2);
|
|
274
|
-
i0.ɵɵconditional(element_r14.isEditRow ? 2 : 3);
|
|
275
|
-
} }
|
|
276
|
-
function PointsCreationComponent_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
277
|
-
i0.ɵɵelement(0, "tr", 31);
|
|
278
|
-
} }
|
|
279
|
-
function PointsCreationComponent_tr_16_Template(rf, ctx) { if (rf & 1) {
|
|
280
|
-
i0.ɵɵelement(0, "tr", 32);
|
|
281
|
-
} }
|
|
282
|
-
class PointsCreationComponent {
|
|
283
|
-
#config;
|
|
284
|
-
#destroyRef;
|
|
285
|
-
#points;
|
|
286
|
-
constructor() {
|
|
287
|
-
this.#config = inject(NGX_T_FORMS_CONFIG_TOKEN);
|
|
288
|
-
this.#destroyRef = inject(DestroyRef);
|
|
289
|
-
/** Tower step column config that drives column layout, types, and disabled/readonly state. */
|
|
290
|
-
this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
291
|
-
/** Existing points list pushed in from the parent (workflow-adjudication-reactive-input). */
|
|
292
|
-
// NOTE(phase-4): Trap 6 — parent (`workflow-adjudication-reactive-input`) binds a
|
|
293
|
-
// `WorkflowAdjudicationValue | null` union of three incompatible shapes. Until the parent
|
|
294
|
-
// template is split per adjudication step type, this input must remain `any`.
|
|
295
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split parent template by adjudication step, then narrow this input.
|
|
296
|
-
this.value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
297
|
-
/** Emits the updated points list whenever the user saves, edits, or removes a row. */
|
|
298
|
-
this.pointsChange = output();
|
|
299
|
-
this.pointRow = this.#createDefaultPointRow();
|
|
300
|
-
this.selectAllWorkflowInputs = [];
|
|
301
|
-
this.#points = [];
|
|
302
|
-
/** Material table columns derived from the input config. */
|
|
303
|
-
this.cols = computed(() => {
|
|
304
|
-
const cfg = this.inputConfig();
|
|
305
|
-
let cols = (cfg?.adjudicationPointTypes?.length || 0) > 0
|
|
306
|
-
? ['description', 'totalPoints', 'pointType', 'actions']
|
|
307
|
-
: ['description', 'totalPoints', 'actions'];
|
|
308
|
-
if (cfg?.disabled || !!cfg?.readonly) {
|
|
309
|
-
cols = cols.filter(col => col !== 'actions');
|
|
310
|
-
}
|
|
311
|
-
return cols;
|
|
312
|
-
}, ...(ngDevMode ? [{ debugName: "cols" }] : /* istanbul ignore next */ []));
|
|
313
|
-
/** Mirrors the legacy `set value` setter — pushes incoming `value` into the internal `#points` buffer. */
|
|
314
|
-
this.valueBridge = effect(() => {
|
|
315
|
-
const next = this.value();
|
|
316
|
-
this.#points = (next || []);
|
|
317
|
-
}, ...(ngDevMode ? [{ debugName: "valueBridge" }] : /* istanbul ignore next */ []));
|
|
318
|
-
this.#config.formBuilder.getCurrentFormAvailableInputOptions().pipe(tap((inputs) => {
|
|
319
|
-
this.selectAllWorkflowInputs = inputs;
|
|
320
|
-
}), takeUntilDestroyed(this.#destroyRef)).subscribe();
|
|
321
|
-
}
|
|
322
|
-
get points() {
|
|
323
|
-
const cfg = this.inputConfig();
|
|
324
|
-
if (cfg?.disabled || !!cfg?.readonly) {
|
|
325
|
-
return this.#points;
|
|
326
|
-
}
|
|
327
|
-
return [...this.#points, this.pointRow];
|
|
328
|
-
}
|
|
329
|
-
get filteredInputs() {
|
|
330
|
-
const description = this.pointRow.description?.toLowerCase() || '';
|
|
331
|
-
if (!description) {
|
|
332
|
-
return this.selectAllWorkflowInputs;
|
|
333
|
-
}
|
|
334
|
-
const regex = new RegExp(description.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), 'i');
|
|
335
|
-
return this.selectAllWorkflowInputs.filter((input) => (typeof input.label === 'string' && regex.test(input.label)) ||
|
|
336
|
-
(typeof input.hintLabel === 'string' && regex.test(input.hintLabel)));
|
|
337
|
-
}
|
|
338
|
-
get pointInEditIsValid() {
|
|
339
|
-
const cfg = this.inputConfig();
|
|
340
|
-
const typeRequired = (cfg?.adjudicationPointTypes?.length || 0) > 0;
|
|
341
|
-
return !!this.pointRow.description && this.pointRow.totalPoints > 0 && (!typeRequired || !!this.pointRow.pointType);
|
|
342
|
-
}
|
|
343
|
-
#createDefaultPointRow() {
|
|
344
|
-
return {
|
|
345
|
-
id: '',
|
|
346
|
-
formControlName: '',
|
|
347
|
-
totalPoints: 0,
|
|
348
|
-
description: '',
|
|
349
|
-
pointType: '',
|
|
350
|
-
inputId: undefined,
|
|
351
|
-
isEditRow: true,
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
#resetPointRow() {
|
|
355
|
-
this.pointRow = this.#createDefaultPointRow();
|
|
356
|
-
}
|
|
357
|
-
selectActiveInput(input) {
|
|
358
|
-
const cfg = this.inputConfig();
|
|
359
|
-
this.pointRow = {
|
|
360
|
-
...this.pointRow,
|
|
361
|
-
totalPoints: 0,
|
|
362
|
-
description: input.label || '',
|
|
363
|
-
id: input.id,
|
|
364
|
-
formControlName: input.formControlName,
|
|
365
|
-
pointType: this.pointRow.pointType || cfg?.adjudicationPointTypes[0] || '',
|
|
366
|
-
inputId: input.id,
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
selectPointType(pointType) {
|
|
370
|
-
this.pointRow = {
|
|
371
|
-
...this.pointRow,
|
|
372
|
-
pointType: pointType.value,
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
savePoints() {
|
|
376
|
-
const pointToSave = {
|
|
377
|
-
...this.pointRow,
|
|
378
|
-
id: this.pointRow.id || v4(),
|
|
379
|
-
formControlName: this.pointRow.formControlName || this.pointRow.description,
|
|
380
|
-
isEditRow: undefined,
|
|
381
|
-
};
|
|
382
|
-
this.#points = [...this.#points, pointToSave];
|
|
383
|
-
this.pointsChange.emit(this.#points);
|
|
384
|
-
this.#resetPointRow();
|
|
385
|
-
}
|
|
386
|
-
edit(element) {
|
|
387
|
-
this.pointRow = {
|
|
388
|
-
...element,
|
|
389
|
-
isEditRow: true,
|
|
390
|
-
};
|
|
391
|
-
this.#points = this.#points.filter(p => p.id !== element.id);
|
|
392
|
-
this.pointsChange.emit(this.#points);
|
|
393
|
-
}
|
|
394
|
-
remove(element) {
|
|
395
|
-
this.#points = this.#points.filter(p => p.id !== element.id);
|
|
396
|
-
this.pointsChange.emit(this.#points);
|
|
397
|
-
}
|
|
398
|
-
getInputIcon(input) {
|
|
399
|
-
return getInputIcon(input.element);
|
|
400
|
-
}
|
|
401
|
-
static { this.ɵfac = function PointsCreationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PointsCreationComponent)(); }; }
|
|
402
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PointsCreationComponent, selectors: [["lib-points-creation"]], inputs: { inputConfig: [1, "inputConfig"], value: [1, "value"] }, outputs: { pointsChange: "pointsChange" }, decls: 17, vars: 5, consts: [["auto", "matAutocomplete"], [2, "resize", "both", "overflow", "auto"], ["mat-table", "", "matSort", "", 3, "dataSource"], ["matColumnDef", "description"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", 4, "matCellDef"], ["matColumnDef", "totalPoints"], ["matColumnDef", "pointType"], ["matColumnDef", "actions", 3, "stickyEnd"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], [2, "margin-bottom", "5px", "margin-top", "0px"], [2, "margin-top", "5px", "margin-bottom", "5px", "padding-left", "20px", "list-style-type", "disc"], ["mat-header-cell", ""], ["mat-cell", ""], ["subscriptSizing", "dynamic", "appearance", "outline", 1, "input-add"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "1", "placeholder", "Enter point description", 3, "ngModelChange", "matAutocomplete", "ngModel"], ["autoActiveFirstOption", ""], [3, "value"], [3, "click", "value"], [2, "display", "flex", "align-items", "center", "gap", "8px"], [2, "font-size", "24px", "width", "24px", "height", "24px"], [2, "font-size", "0.75em"], [2, "font-size", "0.75em", "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"], ["matInput", "", "placeholder", "Enter points , eg 50", "type", "number", 3, "ngModelChange", "ngModel"], ["ngDefaultControl", "", "placeholder", "Select", 3, "selectionChange", "value"], [2, "display", "flex", "justify-content", "center"], ["matTooltip", "Save Point in Edit", "color", "primary", "mat-flat-button", "", 2, "white-space", "nowrap", "height", "26px", "margin-bottom", "0px", 3, "disabled"], ["matTooltip", "Save Point in Edit", "color", "primary", "mat-flat-button", "", 2, "white-space", "nowrap", "height", "26px", "margin-bottom", "0px", 3, "click", "disabled"], [2, "font-size", "0.875em"], ["mat-icon-button", "", 3, "click"], ["mat-header-row", ""], ["mat-row", ""]], template: function PointsCreationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
403
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
404
|
-
i0.ɵɵconditionalCreate(1, PointsCreationComponent_Conditional_1_Template, 40, 0);
|
|
405
|
-
i0.ɵɵelementStart(2, "table", 2);
|
|
406
|
-
i0.ɵɵelementContainerStart(3, 3);
|
|
407
|
-
i0.ɵɵtemplate(4, PointsCreationComponent_th_4_Template, 2, 0, "th", 4)(5, PointsCreationComponent_td_5_Template, 3, 1, "td", 5);
|
|
408
|
-
i0.ɵɵelementContainerEnd();
|
|
409
|
-
i0.ɵɵelementContainerStart(6, 6);
|
|
410
|
-
i0.ɵɵtemplate(7, PointsCreationComponent_th_7_Template, 2, 0, "th", 4)(8, PointsCreationComponent_td_8_Template, 3, 1, "td", 5);
|
|
411
|
-
i0.ɵɵelementContainerEnd();
|
|
412
|
-
i0.ɵɵelementContainerStart(9, 7);
|
|
413
|
-
i0.ɵɵtemplate(10, PointsCreationComponent_th_10_Template, 2, 0, "th", 4)(11, PointsCreationComponent_td_11_Template, 3, 1, "td", 5);
|
|
414
|
-
i0.ɵɵelementContainerEnd();
|
|
415
|
-
i0.ɵɵelementContainerStart(12, 8);
|
|
416
|
-
i0.ɵɵtemplate(13, PointsCreationComponent_th_13_Template, 1, 0, "th", 4)(14, PointsCreationComponent_td_14_Template, 4, 1, "td", 5);
|
|
417
|
-
i0.ɵɵelementContainerEnd();
|
|
418
|
-
i0.ɵɵtemplate(15, PointsCreationComponent_tr_15_Template, 1, 0, "tr", 9)(16, PointsCreationComponent_tr_16_Template, 1, 0, "tr", 10);
|
|
419
|
-
i0.ɵɵelementEnd()();
|
|
420
|
-
} if (rf & 2) {
|
|
421
|
-
i0.ɵɵadvance();
|
|
422
|
-
i0.ɵɵconditional(!ctx.points || ctx.points.length === 1 ? 1 : -1);
|
|
423
|
-
i0.ɵɵadvance();
|
|
424
|
-
i0.ɵɵproperty("dataSource", ctx.points);
|
|
425
|
-
i0.ɵɵadvance(10);
|
|
426
|
-
i0.ɵɵproperty("stickyEnd", true);
|
|
427
|
-
i0.ɵɵadvance(3);
|
|
428
|
-
i0.ɵɵproperty("matHeaderRowDef", ctx.cols());
|
|
429
|
-
i0.ɵɵadvance();
|
|
430
|
-
i0.ɵɵproperty("matRowDefColumns", ctx.cols());
|
|
431
|
-
} }, dependencies: [ReactiveFormsModule, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.NgControlStatus, FormsModule, i1.NgModel, TextFieldModule, i2.CdkTextareaAutosize, MatAutocompleteModule, i5.MatAutocomplete, i8.MatOption, i5.MatAutocompleteTrigger, MatButtonModule, i2$1.MatButton, i2$1.MatIconButton, MatFormFieldModule, i2$2.MatFormField, MatIconModule, i3.MatIcon, MatInputModule, i2$3.MatInput, MatSelectModule, i8.MatSelect, MatSortModule, i2$4.MatSort, 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, MatTooltipModule, i5$2.MatTooltip], styles: [".input-add[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:4px}mat-hint[_ngcontent-%COMP%]{text-align:start}[_nghost-%COMP%] .glass[_ngcontent-%COMP%]{background:#ffffff40;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.mat-column-totalPoints[_ngcontent-%COMP%]{width:100px!important;max-width:100px!important}.mat-column-pointType[_ngcontent-%COMP%]{width:180px!important;max-width:180px!important}.mat-column-actions[_ngcontent-%COMP%]{width:78px!important;max-width:78px!important}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
|
|
432
|
-
}
|
|
433
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PointsCreationComponent, [{
|
|
434
|
-
type: Component,
|
|
435
|
-
args: [{ selector: 'lib-points-creation', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
|
|
436
|
-
ReactiveFormsModule,
|
|
437
|
-
FormsModule,
|
|
438
|
-
TextFieldModule,
|
|
439
|
-
MatAutocompleteModule,
|
|
440
|
-
MatButtonModule,
|
|
441
|
-
MatFormFieldModule,
|
|
442
|
-
MatIconModule,
|
|
443
|
-
MatInputModule,
|
|
444
|
-
MatSelectModule,
|
|
445
|
-
MatSortModule,
|
|
446
|
-
MatTableModule,
|
|
447
|
-
MatTooltipModule,
|
|
448
|
-
], template: "<div style=\"resize: both; overflow: auto;\">\r\n @if (!points || points.length === 1) {\r\n <h5 style=\"margin-bottom: 5px; margin-top: 0px;\">\r\n ℹ️ To add a scoring item:\r\n </h5>\r\n <ol>\r\n <li>\r\n <strong>Enter Description:</strong>\r\n <ul style=\"margin-top: 5px; margin-bottom: 5px; padding-left: 20px; list-style-type: disc;\">\r\n <li>\r\n To <strong>link</strong> a field: You <strong>must select it</strong> from the list first (you can\r\n edit it after).\r\n </li>\r\n <li>\r\n For a <strong>custom</strong> point: <strong>Ignore the list</strong> and just type your own\r\n description.\r\n </li>\r\n </ul>\r\n </li>\r\n <li>\r\n <strong>Set Details:</strong>\r\n Assign the <strong>Points</strong> and select the <strong>Point Type</strong>.\r\n </li>\r\n <li>\r\n <strong>Save:</strong>\r\n Click the <strong>\"Save\"</strong> button to add the item.\r\n </li>\r\n </ol>\r\n }\r\n <table mat-table [dataSource]=\"points\" matSort>\r\n <ng-container matColumnDef=\"description\">\r\n <th mat-header-cell *matHeaderCellDef>Description</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n @if (element.isEditRow) {\r\n <mat-form-field subscriptSizing=\"dynamic\" class=\"input-add\" appearance=\"outline\">\r\n <textarea [matAutocomplete]=\"auto\" [(ngModel)]=\"pointRow.description\" matInput cdkTextareaAutosize\r\n cdkAutosizeMinRows=\"1\" placeholder=\"Enter point description\"></textarea>\r\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\">\r\n @for (input of filteredInputs; track input.id) {\r\n <mat-option [value]=\"input.label\" (click)=\"selectActiveInput(input)\">\r\n <div style=\"display: flex;align-items: center;gap:8px\">\r\n <mat-icon style=\"font-size:24px; width:24px; height:24px;\"\r\n [attr.aria-label]=\"input.label\">\r\n {{ getInputIcon(input) }}\r\n </mat-icon>\r\n <span>\r\n <div style=\"font-size: 0.75em;\">\r\n <strong>\r\n {{ input.label }}\r\n </strong>\r\n </div>\r\n <div\r\n style=\"font-size: 0.75em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;\">\r\n {{ input.hintLabel || input.formControlName }}\r\n </div>\r\n </span>\r\n </div>\r\n </mat-option>\r\n }\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n } @else {\r\n {{ element.description }}\r\n }\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"totalPoints\">\r\n <th mat-header-cell *matHeaderCellDef>Points</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n @if (element.isEditRow) {\r\n <mat-form-field subscriptSizing=\"dynamic\" class=\"input-add\" appearance=\"outline\">\r\n <input matInput [(ngModel)]=\"pointRow.totalPoints\"\r\n placeholder=\"Enter points , eg 50\" type=\"number\">\r\n </mat-form-field>\r\n } @else {\r\n {{ element.totalPoints }}\r\n }\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"pointType\">\r\n <th mat-header-cell *matHeaderCellDef>Point Type</th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n @if (element.isEditRow) {\r\n <mat-form-field subscriptSizing=\"dynamic\" class=\"input-add\" appearance=\"outline\">\r\n <mat-select (selectionChange)=\"selectPointType($event)\" ngDefaultControl\r\n [value]=\"pointRow.pointType\"\r\n placeholder=\"Select\">\r\n @for (type of inputConfig()?.adjudicationPointTypes || []; track $index) {\r\n <mat-option [value]=\"type\">{{ type }}</mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n } @else {\r\n {{ element.pointType }}\r\n }\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"actions\" [stickyEnd]=\"true\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <span style=\"display: flex; justify-content: center;\">\r\n @if (element.isEditRow) {\r\n <button matTooltip=\"Save Point in Edit\" color=\"primary\" style=\"white-space: nowrap;\r\n height: 26px;\r\n margin-bottom: 0px;\" mat-flat-button (click)=\"savePoints()\" [disabled]=\"!pointInEditIsValid || inputConfig()?.disabled || inputConfig()?.readonly\">\r\n <span style=\"font-size: 0.875em;\">\r\n save\r\n </span>\r\n </button>\r\n } @else {\r\n <button mat-icon-button (click)=\"edit(element)\">\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button mat-icon-button (click)=\"remove(element)\">\r\n <mat-icon>delete_forever</mat-icon>\r\n </button>\r\n }\r\n </span>\r\n </td>\r\n </ng-container>\r\n <tr mat-header-row *matHeaderRowDef=\"cols()\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: cols()\"></tr>\r\n </table>\r\n</div>\r\n", styles: [".input-add{width:100%}th,td{padding:4px}mat-hint{text-align:start}:host .glass{background:#ffffff40;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.mat-column-totalPoints{width:100px!important;max-width:100px!important}.mat-column-pointType{width:180px!important;max-width:180px!important}.mat-column-actions{width:78px!important;max-width:78px!important}li{font-size:.75em}ol{margin-top:8px}\n"] }]
|
|
449
|
-
}], () => [], { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], pointsChange: [{ type: i0.Output, args: ["pointsChange"] }] }); })();
|
|
450
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PointsCreationComponent, { className: "PointsCreationComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/points-creation/points-creation.component.ts", lineNumber: 44 }); })();
|
|
451
|
-
|
|
452
|
-
function getColorForNumber(targetNumber, numbers, asc = true) {
|
|
453
|
-
if (numbers.length === 0) {
|
|
454
|
-
throw new Error("The numbers array must not be empty.");
|
|
455
|
-
}
|
|
456
|
-
// Avoid sorting the original array
|
|
457
|
-
const sortedNumbers = [...numbers].sort((a, b) => asc ? a - b : b - a);
|
|
458
|
-
const min = sortedNumbers[0];
|
|
459
|
-
const max = sortedNumbers[sortedNumbers.length - 1];
|
|
460
|
-
if (!min || !max) {
|
|
461
|
-
return "rgb(173, 173, 173)";
|
|
462
|
-
}
|
|
463
|
-
if (min === max) {
|
|
464
|
-
return "rgb(173, 173, 173)"; // Return gray if there is no range
|
|
465
|
-
}
|
|
466
|
-
const interpolateColor = (value) => {
|
|
467
|
-
const fraction = (value - min) / (max - min);
|
|
468
|
-
const colors = [
|
|
469
|
-
{ color: [247, 0, 0], pos: 0.0 }, // Red
|
|
470
|
-
{ color: [247, 187, 0], pos: 0.25 }, // Orange
|
|
471
|
-
{ color: [247, 247, 0], pos: 0.5 }, // Yellow
|
|
472
|
-
{ color: [207, 247, 0], pos: 0.75 }, // Light green
|
|
473
|
-
{ color: [96, 247, 0], pos: 1.0 } // Green
|
|
474
|
-
];
|
|
475
|
-
for (let i = 0; i < colors.length - 1; i++) {
|
|
476
|
-
const nextColor = colors[i + 1];
|
|
477
|
-
const currentColor = colors[i];
|
|
478
|
-
if (currentColor && nextColor && fraction <= nextColor.pos) {
|
|
479
|
-
const range = nextColor.pos - currentColor.pos;
|
|
480
|
-
const localFraction = (fraction - currentColor.pos) / range;
|
|
481
|
-
const r = Math.round(currentColor.color[0] + localFraction * (nextColor.color[0] - currentColor.color[0]));
|
|
482
|
-
const g = Math.round(currentColor.color[1] + localFraction * (nextColor.color[1] - currentColor.color[1]));
|
|
483
|
-
const b = Math.round(currentColor.color[2] + localFraction * (nextColor.color[2] - currentColor.color[2]));
|
|
484
|
-
return `rgb(${r}, ${g}, ${b})`;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
return `rgb(${colors[colors.length - 1]?.color[0]}, ${colors[colors.length - 1]?.color[1]}, ${colors[colors.length - 1]?.color[2]},0.6)`;
|
|
488
|
-
};
|
|
489
|
-
return interpolateColor(targetNumber);
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
function SubmissionReviewDialogComponent_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
493
|
-
i0.ɵɵelementStart(0, "button", 8);
|
|
494
|
-
i0.ɵɵtext(1, " Save Feedback ");
|
|
495
|
-
i0.ɵɵelementEnd();
|
|
496
|
-
} if (rf & 2) {
|
|
497
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
498
|
-
i0.ɵɵproperty("mat-dialog-close", ctx_r0.changedNotes);
|
|
499
|
-
} }
|
|
500
|
-
class SubmissionReviewDialogComponent {
|
|
501
|
-
constructor() {
|
|
502
|
-
this.dialogRef = inject(MatDialogRef);
|
|
503
|
-
this.data = inject(MAT_DIALOG_DATA);
|
|
504
|
-
}
|
|
505
|
-
get notesInputConfig() {
|
|
506
|
-
return {
|
|
507
|
-
id: 'adj_microFlow_review_notes',
|
|
508
|
-
label: 'Notes',
|
|
509
|
-
readonly: this.data.readonly,
|
|
510
|
-
required: false,
|
|
511
|
-
formControlName: 'adj_microFlow_review_notes',
|
|
512
|
-
};
|
|
513
|
-
}
|
|
514
|
-
get respondentName() {
|
|
515
|
-
const raw = this.data.row[this.data.respondentNameKey];
|
|
516
|
-
return typeof raw === 'string' ? raw : '';
|
|
517
|
-
}
|
|
518
|
-
notesChanged(notes) {
|
|
519
|
-
this.changedNotes = notes;
|
|
520
|
-
}
|
|
521
|
-
static { this.ɵfac = function SubmissionReviewDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SubmissionReviewDialogComponent)(); }; }
|
|
522
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionReviewDialogComponent, selectors: [["lib-submission-review-dialog"]], decls: 21, vars: 5, consts: [["mat-dialog-title", ""], [1, "bidder-name"], [1, "dialog-instructions"], [2, "padding-bottom", "8px", "padding-bottom", "8px"], ["floatLabel", "always", "subscriptSizing", "dynamic", "appearance", "outline", 2, "width", "100%", "display", "absolute", "left", "0", "margin-bottom", "8px", "margin-top", "8px", "border-radius", "16px"], ["ngDefaultControl", "", 3, "valueChanged", "value", "inputConfig", "required"], ["align", "end"], ["mat-dialog-close", "", "mat-button", ""], ["mat-flat-button", "", 3, "mat-dialog-close"]], template: function SubmissionReviewDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
523
|
-
i0.ɵɵelementStart(0, "span", 0);
|
|
524
|
-
i0.ɵɵtext(1, " Review Feedback For ");
|
|
525
|
-
i0.ɵɵelementStart(2, "span", 1);
|
|
526
|
-
i0.ɵɵtext(3);
|
|
527
|
-
i0.ɵɵelementEnd()();
|
|
528
|
-
i0.ɵɵelementStart(4, "div", 2)(5, "p");
|
|
529
|
-
i0.ɵɵtext(6, " Your notes will be visible to the respondent. Provide ");
|
|
530
|
-
i0.ɵɵelementStart(7, "strong");
|
|
531
|
-
i0.ɵɵtext(8, "clear, constructive feedback");
|
|
532
|
-
i0.ɵɵelementEnd();
|
|
533
|
-
i0.ɵɵtext(9, " to guide their future submissions. ");
|
|
534
|
-
i0.ɵɵelementEnd()();
|
|
535
|
-
i0.ɵɵelementStart(10, "mat-dialog-content", 3)(11, "mat-form-field", 4)(12, "lib-editor-js-input", 5);
|
|
536
|
-
i0.ɵɵlistener("valueChanged", function SubmissionReviewDialogComponent_Template_lib_editor_js_input_valueChanged_12_listener($event) { return ctx.notesChanged($event); });
|
|
537
|
-
i0.ɵɵelementEnd();
|
|
538
|
-
i0.ɵɵelementStart(13, "mat-hint")(14, "strong");
|
|
539
|
-
i0.ɵɵtext(15, "Tip:");
|
|
540
|
-
i0.ɵɵelementEnd();
|
|
541
|
-
i0.ɵɵtext(16, " Use bold, lists, and tables to structure your feedback. ");
|
|
542
|
-
i0.ɵɵelementEnd()()();
|
|
543
|
-
i0.ɵɵelementStart(17, "mat-dialog-actions", 6)(18, "button", 7);
|
|
544
|
-
i0.ɵɵtext(19, " Cancel ");
|
|
545
|
-
i0.ɵɵelementEnd();
|
|
546
|
-
i0.ɵɵconditionalCreate(20, SubmissionReviewDialogComponent_Conditional_20_Template, 2, 1, "button", 8);
|
|
547
|
-
i0.ɵɵelementEnd();
|
|
548
|
-
} if (rf & 2) {
|
|
549
|
-
i0.ɵɵadvance(3);
|
|
550
|
-
i0.ɵɵtextInterpolate(ctx.respondentName);
|
|
551
|
-
i0.ɵɵadvance(9);
|
|
552
|
-
i0.ɵɵproperty("value", ctx.data.row["adj_microFlow_review_notes"] || ctx.data.activeRowNotes)("inputConfig", ctx.notesInputConfig)("required", ctx.notesInputConfig.required);
|
|
553
|
-
i0.ɵɵadvance(8);
|
|
554
|
-
i0.ɵɵconditional(!ctx.data.readonly ? 20 : -1);
|
|
555
|
-
} }, dependencies: [MatDialogModule, i1$1.MatDialogClose, i1$1.MatDialogTitle, i1$1.MatDialogActions, i1$1.MatDialogContent, MatFormFieldModule, i2$2.MatFormField, i2$2.MatHint, MatButtonModule, i2$1.MatButton, EditorJsInputComponent], styles: ["[_nghost-%COMP%]{display:block;min-width:500px;max-width:700px}.bidder-name[_ngcontent-%COMP%]{font-weight:500}.summary-bar[_ngcontent-%COMP%]{margin-bottom:24px}.summary-bar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500}.score-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;gap:16px}.score-description[_ngcontent-%COMP%]{flex:1;margin-right:16px;line-height:1.4}.score-input[_ngcontent-%COMP%]{flex-shrink:0;width:150px}.mat-expansion-panel-body[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%]:last-child + mat-divider[_ngcontent-%COMP%]{display:none}mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 24px}.mat-mdc-form-field-error[_ngcontent-%COMP%]{font-size:.8125em}.dialog-instructions[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:24px;max-width:95%;padding-left:24px;padding-right:24px}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
|
|
556
|
-
}
|
|
557
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionReviewDialogComponent, [{
|
|
558
|
-
type: Component,
|
|
559
|
-
args: [{ selector: 'lib-submission-review-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [MatDialogModule, MatFormFieldModule, MatButtonModule, EditorJsInputComponent], template: "<span mat-dialog-title>\r\n Review Feedback For <span class=\"bidder-name\">{{ respondentName }}</span>\r\n</span>\r\n\r\n<div class=\"dialog-instructions\">\r\n <p>\r\n Your notes will be visible to the respondent. Provide <strong>clear, constructive feedback</strong> to\r\n guide their future submissions.\r\n </p>\r\n</div>\r\n<mat-dialog-content style=\"padding-bottom: 8px;padding-bottom: 8px\">\r\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\" style=\"width: 100%;\r\n display: absolute;\r\n left: 0;\r\n margin-bottom: 8px;\r\n margin-top: 8px;\r\n border-radius:16px;\" appearance=\"outline\">\r\n <lib-editor-js-input [value]=\"data.row['adj_microFlow_review_notes'] || data.activeRowNotes\"\r\n (valueChanged)=\"notesChanged($event)\" ngDefaultControl [inputConfig]=\"notesInputConfig\"\r\n [required]=\"notesInputConfig.required\">\r\n </lib-editor-js-input>\r\n <mat-hint>\r\n <strong>Tip:</strong> Use bold, lists, and tables to structure your feedback.\r\n </mat-hint>\r\n </mat-form-field>\r\n</mat-dialog-content>\r\n\r\n\r\n<mat-dialog-actions align=\"end\">\r\n <button mat-dialog-close mat-button >\r\n Cancel\r\n </button>\r\n @if( !data.readonly){\r\n <button mat-flat-button\r\n [mat-dialog-close]=\"changedNotes\"\r\n >\r\n Save Feedback\r\n </button>}\r\n</mat-dialog-actions>", styles: [":host{display:block;min-width:500px;max-width:700px}.bidder-name{font-weight:500}.summary-bar{margin-bottom:24px}.summary-bar h3{margin-bottom:8px;font-weight:500}.score-item{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;gap:16px}.score-description{flex:1;margin-right:16px;line-height:1.4}.score-input{flex-shrink:0;width:150px}.mat-expansion-panel-body .score-item:last-child+mat-divider{display:none}mat-dialog-actions{padding:16px 24px}.mat-mdc-form-field-error{font-size:.8125em}.dialog-instructions{margin-top:-8px;margin-bottom:24px;max-width:95%;padding-left:24px;padding-right:24px}li{font-size:.75em}ol,ul{margin-top:8px}\n"] }]
|
|
560
|
-
}], null, null); })();
|
|
561
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SubmissionReviewDialogComponent, { className: "SubmissionReviewDialogComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/submission-review/elements/submission-review-dialog/submission-review-dialog.component.ts", lineNumber: 30 }); })();
|
|
562
|
-
|
|
563
|
-
const _c0$1 = () => [];
|
|
564
|
-
const _forTrack0$3 = ($index, $item) => $item.formControlName;
|
|
565
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
566
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
567
|
-
i0.ɵɵelement(1, "mat-spinner");
|
|
568
|
-
i0.ɵɵelementEnd();
|
|
569
|
-
} }
|
|
570
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
571
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
572
|
-
i0.ɵɵelementStart(0, "div", 2)(1, "h5", 3);
|
|
573
|
-
i0.ɵɵtext(2, "\u274C Failed to load data");
|
|
574
|
-
i0.ɵɵelementEnd();
|
|
575
|
-
i0.ɵɵelementStart(3, "p");
|
|
576
|
-
i0.ɵɵtext(4);
|
|
577
|
-
i0.ɵɵelementEnd();
|
|
578
|
-
i0.ɵɵelementStart(5, "button", 4);
|
|
579
|
-
i0.ɵɵlistener("click", function SubmissionReviewComponent_Conditional_0_Conditional_1_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.loadMicroSubmissions()); });
|
|
580
|
-
i0.ɵɵtext(6, " Try Again ");
|
|
581
|
-
i0.ɵɵelementEnd()();
|
|
582
|
-
} if (rf & 2) {
|
|
583
|
-
const vm_r3 = i0.ɵɵnextContext();
|
|
584
|
-
i0.ɵɵadvance(4);
|
|
585
|
-
i0.ɵɵtextInterpolate(vm_r3.error);
|
|
586
|
-
} }
|
|
587
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
588
|
-
i0.ɵɵelementStart(0, "div", 5)(1, "h5", 3);
|
|
589
|
-
i0.ɵɵtext(2, "\u2699\uFE0F This step needs to be configured to show data.");
|
|
590
|
-
i0.ɵɵelementEnd();
|
|
591
|
-
i0.ɵɵelementStart(3, "ol")(4, "li")(5, "strong");
|
|
592
|
-
i0.ɵɵtext(6, "Why you're seeing this:");
|
|
593
|
-
i0.ɵɵelementEnd();
|
|
594
|
-
i0.ɵɵelementStart(7, "ul")(8, "li");
|
|
595
|
-
i0.ɵɵtext(9, "This component is designed for a ");
|
|
596
|
-
i0.ɵɵelementStart(10, "strong");
|
|
597
|
-
i0.ɵɵtext(11, "\"Submission Review\"");
|
|
598
|
-
i0.ɵɵelementEnd();
|
|
599
|
-
i0.ɵɵtext(12, " workflow step.");
|
|
600
|
-
i0.ɵɵelementEnd();
|
|
601
|
-
i0.ɵɵelementStart(13, "li");
|
|
602
|
-
i0.ɵɵtext(14, "It's currently missing the required column setup.");
|
|
603
|
-
i0.ɵɵelementEnd()()();
|
|
604
|
-
i0.ɵɵelementStart(15, "li")(16, "strong");
|
|
605
|
-
i0.ɵɵtext(17, "What to do (for Administrators):");
|
|
606
|
-
i0.ɵɵelementEnd();
|
|
607
|
-
i0.ɵɵtext(18, " To fix this, go to the ");
|
|
608
|
-
i0.ɵɵelementStart(19, "strong");
|
|
609
|
-
i0.ɵɵtext(20, "Workflow Builder");
|
|
610
|
-
i0.ɵɵelementEnd();
|
|
611
|
-
i0.ɵɵtext(21, " and for this specific step, ");
|
|
612
|
-
i0.ɵɵelementStart(22, "strong");
|
|
613
|
-
i0.ɵɵtext(23, "map the display columns");
|
|
614
|
-
i0.ɵɵelementEnd();
|
|
615
|
-
i0.ɵɵtext(24, " to the desired submission data (e.g., form fields or document keys). ");
|
|
616
|
-
i0.ɵɵelementEnd()()();
|
|
617
|
-
} }
|
|
618
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
619
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
620
|
-
i0.ɵɵelementStart(0, "div", 5)(1, "h5", 3);
|
|
621
|
-
i0.ɵɵtext(2, "\u2139\uFE0F There are no submissions to display.");
|
|
622
|
-
i0.ɵɵelementEnd();
|
|
623
|
-
i0.ɵɵelementStart(3, "ul")(4, "li");
|
|
624
|
-
i0.ɵɵtext(5, "This can happen if ");
|
|
625
|
-
i0.ɵɵelementStart(6, "strong");
|
|
626
|
-
i0.ɵɵtext(7, "no one has responded");
|
|
627
|
-
i0.ɵɵelementEnd();
|
|
628
|
-
i0.ɵɵtext(8, " yet, or if the ");
|
|
629
|
-
i0.ɵɵelementStart(9, "strong");
|
|
630
|
-
i0.ɵɵtext(10, "submission closing date has passed");
|
|
631
|
-
i0.ɵɵelementEnd();
|
|
632
|
-
i0.ɵɵtext(11, ".");
|
|
633
|
-
i0.ɵɵelementEnd();
|
|
634
|
-
i0.ɵɵelementStart(12, "li");
|
|
635
|
-
i0.ɵɵtext(13, "If you are expecting to see submissions, try clicking the ");
|
|
636
|
-
i0.ɵɵelementStart(14, "strong");
|
|
637
|
-
i0.ɵɵtext(15, "Refresh");
|
|
638
|
-
i0.ɵɵelementEnd();
|
|
639
|
-
i0.ɵɵtext(16, " button.");
|
|
640
|
-
i0.ɵɵelementEnd()();
|
|
641
|
-
i0.ɵɵelementStart(17, "button", 6);
|
|
642
|
-
i0.ɵɵlistener("click", function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_1_Template_button_click_17_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.loadMicroSubmissions()); });
|
|
643
|
-
i0.ɵɵtext(18, " Refresh ");
|
|
644
|
-
i0.ɵɵelementEnd()();
|
|
645
|
-
} }
|
|
646
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
647
|
-
i0.ɵɵelementStart(0, "div", 5)(1, "h5", 3);
|
|
648
|
-
i0.ɵɵtext(2, "\uD83D\uDCDD How to Review Submissions");
|
|
649
|
-
i0.ɵɵelementEnd();
|
|
650
|
-
i0.ɵɵelementStart(3, "ol")(4, "li")(5, "strong");
|
|
651
|
-
i0.ɵɵtext(6, "View Response:");
|
|
652
|
-
i0.ɵɵelementEnd();
|
|
653
|
-
i0.ɵɵtext(7, " Click the ");
|
|
654
|
-
i0.ɵɵelementStart(8, "strong");
|
|
655
|
-
i0.ɵɵtext(9, "Preview");
|
|
656
|
-
i0.ɵɵelementEnd();
|
|
657
|
-
i0.ɵɵtext(10, " (");
|
|
658
|
-
i0.ɵɵelementStart(11, "mat-icon", 11);
|
|
659
|
-
i0.ɵɵtext(12, "preview");
|
|
660
|
-
i0.ɵɵelementEnd();
|
|
661
|
-
i0.ɵɵtext(13, ") icon to see the full submission. ");
|
|
662
|
-
i0.ɵɵelementEnd();
|
|
663
|
-
i0.ɵɵelementStart(14, "li")(15, "strong");
|
|
664
|
-
i0.ɵɵtext(16, "Set Status:");
|
|
665
|
-
i0.ɵɵelementEnd();
|
|
666
|
-
i0.ɵɵtext(17, " Use the dropdown to select ");
|
|
667
|
-
i0.ɵɵelementStart(18, "strong");
|
|
668
|
-
i0.ɵɵtext(19, "Compliant");
|
|
669
|
-
i0.ɵɵelementEnd();
|
|
670
|
-
i0.ɵɵtext(20, " or ");
|
|
671
|
-
i0.ɵɵelementStart(21, "strong");
|
|
672
|
-
i0.ɵɵtext(22, "Non-compliant");
|
|
673
|
-
i0.ɵɵelementEnd();
|
|
674
|
-
i0.ɵɵtext(23, ". ");
|
|
675
|
-
i0.ɵɵelementEnd();
|
|
676
|
-
i0.ɵɵelementStart(24, "li")(25, "strong");
|
|
677
|
-
i0.ɵɵtext(26, "Add Note (If Non-compliant):");
|
|
678
|
-
i0.ɵɵelementEnd();
|
|
679
|
-
i0.ɵɵelementStart(27, "ul")(28, "li");
|
|
680
|
-
i0.ɵɵtext(29, "If you select ");
|
|
681
|
-
i0.ɵɵelementStart(30, "strong");
|
|
682
|
-
i0.ɵɵtext(31, "Non-compliant");
|
|
683
|
-
i0.ɵɵelementEnd();
|
|
684
|
-
i0.ɵɵtext(32, ", you ");
|
|
685
|
-
i0.ɵɵelementStart(33, "strong");
|
|
686
|
-
i0.ɵɵtext(34, "must");
|
|
687
|
-
i0.ɵɵelementEnd();
|
|
688
|
-
i0.ɵɵtext(35, " add a note.");
|
|
689
|
-
i0.ɵɵelementEnd();
|
|
690
|
-
i0.ɵɵelementStart(36, "li");
|
|
691
|
-
i0.ɵɵtext(37, "Click the ");
|
|
692
|
-
i0.ɵɵelementStart(38, "strong");
|
|
693
|
-
i0.ɵɵtext(39, "Add Note");
|
|
694
|
-
i0.ɵɵelementEnd();
|
|
695
|
-
i0.ɵɵtext(40, " (");
|
|
696
|
-
i0.ɵɵelementStart(41, "mat-icon", 11);
|
|
697
|
-
i0.ɵɵtext(42, "add_comment");
|
|
698
|
-
i0.ɵɵelementEnd();
|
|
699
|
-
i0.ɵɵtext(43, ") icon, write your feedback, and hit ");
|
|
700
|
-
i0.ɵɵelementStart(44, "strong");
|
|
701
|
-
i0.ɵɵtext(45, "Save Feedback");
|
|
702
|
-
i0.ɵɵelementEnd();
|
|
703
|
-
i0.ɵɵtext(46, ". Your note will be visible to the applicant.");
|
|
704
|
-
i0.ɵɵelementEnd()()()()();
|
|
705
|
-
} }
|
|
706
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Conditional_1_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
707
|
-
i0.ɵɵelementStart(0, "mat-option", 17);
|
|
708
|
-
i0.ɵɵtext(1);
|
|
709
|
-
i0.ɵɵelementEnd();
|
|
710
|
-
} if (rf & 2) {
|
|
711
|
-
const type_r6 = ctx.$implicit;
|
|
712
|
-
i0.ɵɵproperty("value", type_r6.value);
|
|
713
|
-
i0.ɵɵadvance();
|
|
714
|
-
i0.ɵɵtextInterpolate(type_r6.label);
|
|
715
|
-
} }
|
|
716
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
717
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
718
|
-
i0.ɵɵelementStart(0, "mat-form-field", 15)(1, "mat-label");
|
|
719
|
-
i0.ɵɵtext(2, " Bulk Status Selection ");
|
|
720
|
-
i0.ɵɵelementEnd();
|
|
721
|
-
i0.ɵɵelementStart(3, "mat-select", 16);
|
|
722
|
-
i0.ɵɵlistener("selectionChange", function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Conditional_1_Template_mat_select_selectionChange_3_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.bulkStatusChanged($event)); });
|
|
723
|
-
i0.ɵɵrepeaterCreate(4, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Conditional_1_For_5_Template, 2, 2, "mat-option", 17, i0.ɵɵrepeaterTrackByIdentity);
|
|
724
|
-
i0.ɵɵelementEnd()();
|
|
725
|
-
} if (rf & 2) {
|
|
726
|
-
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
727
|
-
i0.ɵɵadvance(3);
|
|
728
|
-
i0.ɵɵstyleProp("color", ctx_r1.bulkStatus() === "non-compliant" ? "var(--mat-sys-error)" : ctx_r1.bulkStatus() === "compliant" ? "var(--mat-sys-primary)" : "");
|
|
729
|
-
i0.ɵɵproperty("value", ctx_r1.bulkStatus());
|
|
730
|
-
i0.ɵɵadvance();
|
|
731
|
-
i0.ɵɵrepeater(ctx_r1.bulkOperations || i0.ɵɵpureFunction0(3, _c0$1));
|
|
732
|
-
} }
|
|
733
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
734
|
-
i0.ɵɵtext(0);
|
|
735
|
-
} if (rf & 2) {
|
|
736
|
-
const col_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
737
|
-
i0.ɵɵtextInterpolate1(" ", col_r7.label, " ");
|
|
738
|
-
} }
|
|
739
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
740
|
-
i0.ɵɵelementStart(0, "th", 14);
|
|
741
|
-
i0.ɵɵconditionalCreate(1, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Conditional_1_Template, 6, 4, "mat-form-field", 15)(2, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Conditional_2_Template, 1, 1);
|
|
742
|
-
i0.ɵɵelementEnd();
|
|
743
|
-
} if (rf & 2) {
|
|
744
|
-
let tmp_15_0;
|
|
745
|
-
const col_r7 = i0.ɵɵnextContext().$implicit;
|
|
746
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
747
|
-
i0.ɵɵadvance();
|
|
748
|
-
i0.ɵɵconditional(col_r7.formControlName === "status" && !((tmp_15_0 = ctx_r1.inputConfig()) == null ? null : tmp_15_0.readonly) ? 1 : 2);
|
|
749
|
-
} }
|
|
750
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
751
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
752
|
-
i0.ɵɵelementStart(0, "button", 22, 0);
|
|
753
|
-
i0.ɵɵlistener("click", function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_1_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const row_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.openNotes(row_r9)); });
|
|
754
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
755
|
-
i0.ɵɵtext(3);
|
|
756
|
-
i0.ɵɵelementEnd()();
|
|
757
|
-
} if (rf & 2) {
|
|
758
|
-
const row_r9 = i0.ɵɵnextContext(2).$implicit;
|
|
759
|
-
const vm_r3 = i0.ɵɵnextContext(4);
|
|
760
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
761
|
-
i0.ɵɵproperty("matTooltip", `Add a review note for **` + row_r9[vm_r3.columnMapping.respondentNameKey] + `**`);
|
|
762
|
-
i0.ɵɵadvance(2);
|
|
763
|
-
i0.ɵɵstyleProp("color", ctx_r1.notesOpenForRowId === row_r9.id ? "var(--mat-sys-primary)" : row_r9["adj_microFlow_review"] === "non-compliant" && !row_r9["adj_microFlow_review_notes"] ? "var(--mat-sys-error)" : "");
|
|
764
|
-
i0.ɵɵadvance();
|
|
765
|
-
i0.ɵɵtextInterpolate1(" ", !row_r9["submissionHasReviewNotes"] ? "add_comment" : "comment", " ");
|
|
766
|
-
} }
|
|
767
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
768
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
769
|
-
i0.ɵɵelementStart(0, "span", 19)(1, "button", 20);
|
|
770
|
-
i0.ɵɵlistener("click", function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_1_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r8); const row_r9 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.viewMicroSubmission(row_r9)); });
|
|
771
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
772
|
-
i0.ɵɵtext(3, "preview");
|
|
773
|
-
i0.ɵɵelementEnd()();
|
|
774
|
-
i0.ɵɵconditionalCreate(4, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_1_Conditional_4_Template, 4, 4, "button", 21);
|
|
775
|
-
i0.ɵɵelementEnd();
|
|
776
|
-
} if (rf & 2) {
|
|
777
|
-
let tmp_18_0;
|
|
778
|
-
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
779
|
-
const vm_r3 = i0.ɵɵnextContext(4);
|
|
780
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
781
|
-
i0.ɵɵadvance();
|
|
782
|
-
i0.ɵɵproperty("matTooltip", `View and review **` + row_r9[vm_r3.columnMapping.respondentNameKey] + `** 's' Submission`);
|
|
783
|
-
i0.ɵɵadvance(3);
|
|
784
|
-
i0.ɵɵconditional(!((tmp_18_0 = ctx_r1.inputConfig()) == null ? null : tmp_18_0.readonly) || ((tmp_18_0 = ctx_r1.inputConfig()) == null ? null : tmp_18_0.readonly) && !!row_r9["submissionHasReviewNotes"] ? 4 : -1);
|
|
785
|
-
} }
|
|
786
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_2_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
787
|
-
i0.ɵɵelementStart(0, "mat-option", 17);
|
|
788
|
-
i0.ɵɵtext(1);
|
|
789
|
-
i0.ɵɵelementEnd();
|
|
790
|
-
} if (rf & 2) {
|
|
791
|
-
const type_r12 = ctx.$implicit;
|
|
792
|
-
i0.ɵɵproperty("value", type_r12.value);
|
|
793
|
-
i0.ɵɵadvance();
|
|
794
|
-
i0.ɵɵtextInterpolate(type_r12.label);
|
|
795
|
-
} }
|
|
796
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
797
|
-
i0.ɵɵelementStart(0, "mat-hint", 24);
|
|
798
|
-
i0.ɵɵtext(1, " Rejection reason is required. Add a review note. ");
|
|
799
|
-
i0.ɵɵelementEnd();
|
|
800
|
-
} }
|
|
801
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
802
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
803
|
-
i0.ɵɵelementStart(0, "mat-form-field", 15)(1, "mat-select", 23);
|
|
804
|
-
i0.ɵɵlistener("selectionChange", function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_2_Template_mat_select_selectionChange_1_listener($event) { i0.ɵɵrestoreView(_r11); const row_r9 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.setResponseStatus(row_r9, $event)); });
|
|
805
|
-
i0.ɵɵrepeaterCreate(2, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_2_For_3_Template, 2, 2, "mat-option", 17, i0.ɵɵrepeaterTrackByIdentity);
|
|
806
|
-
i0.ɵɵelementEnd();
|
|
807
|
-
i0.ɵɵconditionalCreate(4, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_2_Conditional_4_Template, 2, 0, "mat-hint", 24);
|
|
808
|
-
i0.ɵɵelementEnd();
|
|
809
|
-
} if (rf & 2) {
|
|
810
|
-
let tmp_18_0;
|
|
811
|
-
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
812
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
813
|
-
i0.ɵɵadvance();
|
|
814
|
-
i0.ɵɵstyleProp("color", row_r9["adj_microFlow_review"] === "non-compliant" ? "var(--mat-sys-error)" : row_r9["adj_microFlow_review"] === "compliant" ? "var(--mat-sys-primary)" : "");
|
|
815
|
-
i0.ɵɵproperty("disabled", !ctx_r1.canChangeStatus(row_r9) || ((tmp_18_0 = ctx_r1.inputConfig()) == null ? null : tmp_18_0.readonly) === true)("value", row_r9.adj_microFlow_review);
|
|
816
|
-
i0.ɵɵadvance();
|
|
817
|
-
i0.ɵɵrepeater(ctx_r1.reviewStatuses || i0.ɵɵpureFunction0(5, _c0$1));
|
|
818
|
-
i0.ɵɵadvance(2);
|
|
819
|
-
i0.ɵɵconditional(row_r9["adj_microFlow_review"] === "non-compliant" && !row_r9["adj_microFlow_review_notes"] ? 4 : -1);
|
|
820
|
-
} }
|
|
821
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_0_Template(rf, ctx) { if (rf & 1) {
|
|
822
|
-
i0.ɵɵtext(0);
|
|
823
|
-
i0.ɵɵpipe(1, "daysAgo");
|
|
824
|
-
} if (rf & 2) {
|
|
825
|
-
const row_r9 = i0.ɵɵnextContext(2).$implicit;
|
|
826
|
-
const col_r7 = i0.ɵɵnextContext().$implicit;
|
|
827
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, row_r9[col_r7.formControlName]), " ");
|
|
828
|
-
} }
|
|
829
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
830
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
831
|
-
i0.ɵɵtext(1, " fiber_manual_record ");
|
|
832
|
-
i0.ɵɵelementEnd();
|
|
833
|
-
} if (rf & 2) {
|
|
834
|
-
const row_r9 = i0.ɵɵnextContext(3).$implicit;
|
|
835
|
-
i0.ɵɵstyleProp("color", row_r9.adjudicationPricePreferenceCalculationColor);
|
|
836
|
-
} }
|
|
837
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
838
|
-
i0.ɵɵelementStart(0, "div", 25)(1, "span");
|
|
839
|
-
i0.ɵɵtext(2);
|
|
840
|
-
i0.ɵɵpipe(3, "number");
|
|
841
|
-
i0.ɵɵelementEnd();
|
|
842
|
-
i0.ɵɵconditionalCreate(4, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_1_Conditional_4_Template, 2, 2, "mat-icon", 26);
|
|
843
|
-
i0.ɵɵelementEnd();
|
|
844
|
-
} if (rf & 2) {
|
|
845
|
-
const row_r9 = i0.ɵɵnextContext(2).$implicit;
|
|
846
|
-
const col_r7 = i0.ɵɵnextContext().$implicit;
|
|
847
|
-
i0.ɵɵadvance(2);
|
|
848
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 2, row_r9[col_r7.formControlName], "0.0-0") || "N/A", " ");
|
|
849
|
-
i0.ɵɵadvance(2);
|
|
850
|
-
i0.ɵɵconditional(col_r7.showColor ? 4 : -1);
|
|
851
|
-
} }
|
|
852
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
853
|
-
i0.ɵɵelementStart(0, "span", 27)(1, "mat-icon", 28);
|
|
854
|
-
i0.ɵɵtext(2, "domain");
|
|
855
|
-
i0.ɵɵelementEnd();
|
|
856
|
-
i0.ɵɵelementStart(3, "strong");
|
|
857
|
-
i0.ɵɵtext(4);
|
|
858
|
-
i0.ɵɵelementEnd()();
|
|
859
|
-
i0.ɵɵelementStart(5, "span", 29)(6, "mat-icon");
|
|
860
|
-
i0.ɵɵtext(7, "fingerprint");
|
|
861
|
-
i0.ɵɵelementEnd();
|
|
862
|
-
i0.ɵɵtext(8);
|
|
863
|
-
i0.ɵɵelementStart(9, "mat-icon");
|
|
864
|
-
i0.ɵɵtext(10, "more_time");
|
|
865
|
-
i0.ɵɵelementEnd();
|
|
866
|
-
i0.ɵɵtext(11);
|
|
867
|
-
i0.ɵɵpipe(12, "daysAgo");
|
|
868
|
-
i0.ɵɵelementEnd();
|
|
869
|
-
} if (rf & 2) {
|
|
870
|
-
const row_r9 = i0.ɵɵnextContext(3).$implicit;
|
|
871
|
-
const col_r7 = i0.ɵɵnextContext().$implicit;
|
|
872
|
-
const vm_r3 = i0.ɵɵnextContext(3);
|
|
873
|
-
i0.ɵɵadvance(4);
|
|
874
|
-
i0.ɵɵtextInterpolate1(" ", row_r9[col_r7.formControlName], " ");
|
|
875
|
-
i0.ɵɵadvance(4);
|
|
876
|
-
i0.ɵɵtextInterpolate1(" ", row_r9[vm_r3.columnMapping.respondentCodeKey], " ");
|
|
877
|
-
i0.ɵɵadvance(3);
|
|
878
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 3, row_r9[vm_r3.columnMapping.responseDateKey || ""]), " ");
|
|
879
|
-
} }
|
|
880
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
881
|
-
i0.ɵɵtext(0);
|
|
882
|
-
} if (rf & 2) {
|
|
883
|
-
const row_r9 = i0.ɵɵnextContext(3).$implicit;
|
|
884
|
-
const col_r7 = i0.ɵɵnextContext().$implicit;
|
|
885
|
-
i0.ɵɵtextInterpolate1(" ", row_r9[col_r7.formControlName], " ");
|
|
886
|
-
} }
|
|
887
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
888
|
-
i0.ɵɵconditionalCreate(0, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_2_Conditional_0_Template, 13, 5)(1, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_2_Conditional_1_Template, 1, 1);
|
|
889
|
-
} if (rf & 2) {
|
|
890
|
-
const $index_r13 = i0.ɵɵnextContext(3).$index;
|
|
891
|
-
i0.ɵɵconditional($index_r13 === 0 ? 0 : 1);
|
|
892
|
-
} }
|
|
893
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
894
|
-
i0.ɵɵconditionalCreate(0, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_0_Template, 2, 3)(1, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_1_Template, 5, 5, "div", 25)(2, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Case_2_Template, 2, 1);
|
|
895
|
-
} if (rf & 2) {
|
|
896
|
-
let tmp_17_0;
|
|
897
|
-
const col_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
898
|
-
i0.ɵɵconditional((tmp_17_0 = col_r7 == null ? null : col_r7.type) === "daysAgo" ? 0 : tmp_17_0 === "number" ? 1 : 2);
|
|
899
|
-
} }
|
|
900
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
901
|
-
i0.ɵɵelementStart(0, "td", 18);
|
|
902
|
-
i0.ɵɵlistener("click", function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Template_td_click_0_listener($event) { return $event.stopPropagation(); });
|
|
903
|
-
i0.ɵɵconditionalCreate(1, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_1_Template, 5, 2, "span", 19)(2, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_2_Template, 5, 6, "mat-form-field", 15)(3, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Conditional_3_Template, 3, 1);
|
|
904
|
-
i0.ɵɵelementEnd();
|
|
905
|
-
} if (rf & 2) {
|
|
906
|
-
const row_r9 = ctx.$implicit;
|
|
907
|
-
const col_r7 = i0.ɵɵnextContext().$implicit;
|
|
908
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
909
|
-
i0.ɵɵstyleProp("border-bottom-color", row_r9.adjudicationPricePreferenceCalculationColor)("background", row_r9.backgroundShades == null ? null : row_r9.backgroundShades[col_r7.formControlName]);
|
|
910
|
-
i0.ɵɵclassProp("selected-row", ctx_r1.selected === row_r9.id)("price-preference-cell", true);
|
|
911
|
-
i0.ɵɵadvance();
|
|
912
|
-
i0.ɵɵconditional(col_r7.formControlName === "actions" ? 1 : col_r7.formControlName === "status" ? 2 : 3);
|
|
913
|
-
} }
|
|
914
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
915
|
-
i0.ɵɵelementContainerStart(0, 8);
|
|
916
|
-
i0.ɵɵtemplate(1, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_th_1_Template, 3, 1, "th", 12)(2, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_td_2_Template, 4, 9, "td", 13);
|
|
917
|
-
i0.ɵɵelementContainerEnd();
|
|
918
|
-
} if (rf & 2) {
|
|
919
|
-
const col_r7 = ctx.$implicit;
|
|
920
|
-
i0.ɵɵproperty("matColumnDef", col_r7.formControlName);
|
|
921
|
-
} }
|
|
922
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
923
|
-
i0.ɵɵelement(0, "tr", 30);
|
|
924
|
-
} }
|
|
925
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
926
|
-
i0.ɵɵelement(0, "tr", 31);
|
|
927
|
-
} }
|
|
928
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
929
|
-
i0.ɵɵconditionalCreate(0, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_Conditional_0_Template, 47, 0, "div", 5);
|
|
930
|
-
i0.ɵɵelementStart(1, "table", 7);
|
|
931
|
-
i0.ɵɵrepeaterCreate(2, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_For_3_Template, 3, 1, "ng-container", 8, _forTrack0$3);
|
|
932
|
-
i0.ɵɵtemplate(4, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_tr_4_Template, 1, 0, "tr", 9)(5, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_tr_5_Template, 1, 0, "tr", 10);
|
|
933
|
-
i0.ɵɵelementEnd();
|
|
934
|
-
} if (rf & 2) {
|
|
935
|
-
let tmp_4_0;
|
|
936
|
-
const vm_r3 = i0.ɵɵnextContext(2);
|
|
937
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
938
|
-
i0.ɵɵconditional(!ctx_r1.value() || (((tmp_4_0 = ctx_r1.value()) == null ? null : tmp_4_0.length) ?? 0) === 0 ? 0 : -1);
|
|
939
|
-
i0.ɵɵadvance();
|
|
940
|
-
i0.ɵɵproperty("dataSource", vm_r3.submissions);
|
|
941
|
-
i0.ɵɵadvance();
|
|
942
|
-
i0.ɵɵrepeater(vm_r3.displayColumns);
|
|
943
|
-
i0.ɵɵadvance(2);
|
|
944
|
-
i0.ɵɵproperty("matHeaderRowDef", vm_r3.displayCols);
|
|
945
|
-
i0.ɵɵadvance();
|
|
946
|
-
i0.ɵɵproperty("matRowDefColumns", vm_r3.displayCols);
|
|
947
|
-
} }
|
|
948
|
-
function SubmissionReviewComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
949
|
-
i0.ɵɵconditionalCreate(0, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_0_Template, 25, 0, "div", 5)(1, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_1_Template, 19, 0, "div", 5)(2, SubmissionReviewComponent_Conditional_0_Conditional_2_Conditional_2_Template, 6, 4);
|
|
950
|
-
} if (rf & 2) {
|
|
951
|
-
const vm_r3 = i0.ɵɵnextContext();
|
|
952
|
-
i0.ɵɵconditional(!vm_r3.displayCols.length ? 0 : !vm_r3.submissions.length ? 1 : 2);
|
|
953
|
-
} }
|
|
954
|
-
function SubmissionReviewComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
955
|
-
i0.ɵɵconditionalCreate(0, SubmissionReviewComponent_Conditional_0_Conditional_0_Template, 2, 0, "div", 1)(1, SubmissionReviewComponent_Conditional_0_Conditional_1_Template, 7, 1, "div", 2)(2, SubmissionReviewComponent_Conditional_0_Conditional_2_Template, 3, 1);
|
|
956
|
-
} if (rf & 2) {
|
|
957
|
-
const vm_r3 = ctx;
|
|
958
|
-
i0.ɵɵconditional(vm_r3.loading ? 0 : vm_r3.error ? 1 : 2);
|
|
959
|
-
} }
|
|
960
|
-
class SubmissionReviewComponent {
|
|
961
|
-
constructor() {
|
|
962
|
-
this.#config = inject(NGX_T_FORMS_CONFIG_TOKEN);
|
|
963
|
-
this.#destroyRef = inject(DestroyRef);
|
|
964
|
-
this.dialog = inject(MatDialog);
|
|
965
|
-
this.#refreshTrigger = new BehaviorSubject(undefined);
|
|
966
|
-
// A stream to push updates of the review values (`this.value`)
|
|
967
|
-
this.#valueChanges$ = new BehaviorSubject([]);
|
|
968
|
-
this.#valueSignal = signal([], ...(ngDevMode ? [{ debugName: "#valueSignal" }] : /* istanbul ignore next */ []));
|
|
969
|
-
this.#value = [];
|
|
970
|
-
this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
971
|
-
/** The current review payload. Null while loading. */
|
|
972
|
-
// Parent (`workflow-adjudication-reactive-input`) passes a `WorkflowAdjudicationValue | null`
|
|
973
|
-
// union that includes three incompatible shapes (score-sheet array, micro-flow review array,
|
|
974
|
-
// response-elected-supplier object). This component only consumes the micro-flow branch; the
|
|
975
|
-
// input must remain `any` until parent template typing is split per micro-flow.
|
|
976
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split parent template by adjudication step type, then narrow this input.
|
|
977
|
-
this.value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
978
|
-
this.valueBridge = effect(() => {
|
|
979
|
-
const next = this.value() ?? [];
|
|
980
|
-
if (_isEqual(next, this.#value))
|
|
981
|
-
return;
|
|
982
|
-
this.#value = next;
|
|
983
|
-
this.#valueSignal.set(next);
|
|
984
|
-
this.#valueChanges$.next(next);
|
|
985
|
-
}, ...(ngDevMode ? [{ debugName: "valueBridge" }] : /* istanbul ignore next */ []));
|
|
986
|
-
this.reviewChange = output();
|
|
987
|
-
this.selected = '';
|
|
988
|
-
this.columnMapping = undefined;
|
|
989
|
-
this.submissions = [];
|
|
990
|
-
this.#initialState = {
|
|
991
|
-
loading: true,
|
|
992
|
-
submissions: [],
|
|
993
|
-
columnMapping: { respondentNameKey: '', respondentCodeKey: '' },
|
|
994
|
-
displayCols: [],
|
|
995
|
-
displayColumns: [],
|
|
996
|
-
error: undefined,
|
|
997
|
-
};
|
|
998
|
-
// Stream for the initial data fetch. Only re-runs when `refreshTrigger` is fired.
|
|
999
|
-
this.#fetchedData$ = this.#refreshTrigger.pipe(switchMap(() => this.#config.formBuilder.getCurrentStepMicroflowSubmissions().pipe(take(1))), shareReplay(1));
|
|
1000
|
-
/**
|
|
1001
|
-
* REFACTORED: The new vm$ combines the one-time fetched data with the ongoing stream
|
|
1002
|
-
* of local review changes (`valueChanges$`). This prevents re-fetching from the server
|
|
1003
|
-
* every time a status or note is changed.
|
|
1004
|
-
*/
|
|
1005
|
-
this.vm$ = combineLatest([
|
|
1006
|
-
this.#fetchedData$,
|
|
1007
|
-
this.#valueChanges$
|
|
1008
|
-
]).pipe(map(([res, reviewValues]) => {
|
|
1009
|
-
const { submissions, columnMapping } = res;
|
|
1010
|
-
this.columnMapping = columnMapping;
|
|
1011
|
-
this.submissions = submissions;
|
|
1012
|
-
// FIX: Pass reviewValues as an argument to make the function pure.
|
|
1013
|
-
const enrichedSubmissions = this.#enrichSubmissionsData(submissions, columnMapping, reviewValues) || this.#value || [];
|
|
1014
|
-
const calcKey = columnMapping.responsePreferenceCalculationKey || 'adjudicationPricePreferenceCalculation';
|
|
1015
|
-
const sortedSubmissions = [...enrichedSubmissions].sort((a, b) => Number(b[calcKey]) - Number(a[calcKey]));
|
|
1016
|
-
const newVm = {
|
|
1017
|
-
loading: false,
|
|
1018
|
-
submissions: sortedSubmissions || this.#value,
|
|
1019
|
-
columnMapping: columnMapping,
|
|
1020
|
-
displayCols: [columnMapping.respondentNameKey, 'adjudicationPricePreferenceCalculation', 'status', 'actions'],
|
|
1021
|
-
displayColumns: [
|
|
1022
|
-
{ label: 'name', formControlName: columnMapping.respondentNameKey, type: InputDataTypes.String },
|
|
1023
|
-
{ label: 'Preference', formControlName: 'adjudicationPricePreferenceCalculation', type: InputDataTypes.Number, showColor: true },
|
|
1024
|
-
{ label: 'Actions', formControlName: 'actions', type: InputDataTypes.String },
|
|
1025
|
-
{ label: 'status and Notes', formControlName: 'status', type: 'actions' },
|
|
1026
|
-
],
|
|
1027
|
-
error: undefined,
|
|
1028
|
-
};
|
|
1029
|
-
return newVm;
|
|
1030
|
-
}), startWith(this.#initialState), catchError(() => {
|
|
1031
|
-
return of({ ...this.#initialState, loading: false, error: 'Failed to load submissions.' });
|
|
1032
|
-
}), shareReplay(1));
|
|
1033
|
-
this.reviewStatuses = [
|
|
1034
|
-
{
|
|
1035
|
-
label: '✅ Compliant',
|
|
1036
|
-
value: 'compliant',
|
|
1037
|
-
color: 'var(--mat-sys-primary)',
|
|
1038
|
-
},
|
|
1039
|
-
{
|
|
1040
|
-
label: '❌ Non-compliant',
|
|
1041
|
-
value: 'non-compliant',
|
|
1042
|
-
color: 'var(--mat-sys-error)',
|
|
1043
|
-
},
|
|
1044
|
-
];
|
|
1045
|
-
this.maxLimit = computed(() => {
|
|
1046
|
-
const hasMax = this.inputConfig()?.maxLength;
|
|
1047
|
-
if (!hasMax || isNaN(Number(hasMax))) {
|
|
1048
|
-
return undefined;
|
|
1049
|
-
}
|
|
1050
|
-
return Number(hasMax);
|
|
1051
|
-
}, ...(ngDevMode ? [{ debugName: "maxLimit" }] : /* istanbul ignore next */ []));
|
|
1052
|
-
this.notesOpenForRowId = null;
|
|
1053
|
-
this.bulkOperations = [
|
|
1054
|
-
{
|
|
1055
|
-
label: '✅ Set all to Compliant',
|
|
1056
|
-
value: 'compliant',
|
|
1057
|
-
color: 'var(--mat-sys-primary)',
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
label: '❌ Set all to Non-compliant',
|
|
1061
|
-
value: 'non-compliant',
|
|
1062
|
-
color: 'var(--mat-sys-error)',
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
label: '🔄 Reset all ',
|
|
1066
|
-
value: 'reset',
|
|
1067
|
-
color: 'var(--mat-sys-secondary)',
|
|
1068
|
-
}
|
|
1069
|
-
];
|
|
1070
|
-
this.bulkStatus = computed(() => {
|
|
1071
|
-
// Re-read on submissions and value changes via the signal
|
|
1072
|
-
void this.#valueSignal();
|
|
1073
|
-
const allCompliant = this.submissions.every((s) => s['adj_microFlow_review'] === 'compliant');
|
|
1074
|
-
if (allCompliant) {
|
|
1075
|
-
return 'compliant';
|
|
1076
|
-
}
|
|
1077
|
-
const allNonCompliant = this.submissions.every((s) => s['adj_microFlow_review'] === 'non-compliant');
|
|
1078
|
-
if (allNonCompliant) {
|
|
1079
|
-
return 'non-compliant';
|
|
1080
|
-
}
|
|
1081
|
-
return 'mixed';
|
|
1082
|
-
}, ...(ngDevMode ? [{ debugName: "bulkStatus" }] : /* istanbul ignore next */ []));
|
|
1083
|
-
}
|
|
1084
|
-
#config;
|
|
1085
|
-
#destroyRef;
|
|
1086
|
-
#refreshTrigger;
|
|
1087
|
-
// A stream to push updates of the review values (`this.value`)
|
|
1088
|
-
#valueChanges$;
|
|
1089
|
-
#valueSignal;
|
|
1090
|
-
#value;
|
|
1091
|
-
#initialState;
|
|
1092
|
-
// Stream for the initial data fetch. Only re-runs when `refreshTrigger` is fired.
|
|
1093
|
-
#fetchedData$;
|
|
1094
|
-
loadMicroSubmissions() {
|
|
1095
|
-
this.#refreshTrigger.next();
|
|
1096
|
-
}
|
|
1097
|
-
/**
|
|
1098
|
-
* REFACTORED: Now accepts `reviewValues` as a parameter instead of relying on `this.value`.
|
|
1099
|
-
*/
|
|
1100
|
-
#enrichSubmissionsData(submissions, cols, reviewValues) {
|
|
1101
|
-
const numberSets = new Map();
|
|
1102
|
-
numberSets.set(cols.responsePreferenceCalculationKey || 'adjudicationPricePreferenceCalculation', submissions.map((s) => Number(s[cols.responsePreferenceCalculationKey || 'adjudicationPricePreferenceCalculation'] || 0)));
|
|
1103
|
-
// NOTE(phase-4): the legacy fallback assigns review-value rows into a submission-shaped slot —
|
|
1104
|
-
// the two only share `id`, so most downstream property reads degrade to undefined. Preserved
|
|
1105
|
-
// for behavioural parity. `ISubmission` extends `Record<string, any>`, so review-value entries
|
|
1106
|
-
// satisfy the structural shape (with most fields as undefined). Flagged as a pre-existing
|
|
1107
|
-
// latent defect — out of scope for Phase 4 type tightening.
|
|
1108
|
-
const list = submissions.length > 0
|
|
1109
|
-
? submissions
|
|
1110
|
-
: (this.#value ?? []);
|
|
1111
|
-
return list.map((submission) => {
|
|
1112
|
-
const priceCalcKey = cols.responsePreferenceCalculationKey || 'adjudicationPricePreferenceCalculation';
|
|
1113
|
-
const numbers = numberSets.get(priceCalcKey) || [];
|
|
1114
|
-
const color = numbers.length === 0 ? submission.adjudicationPricePreferenceCalculationColor : this.#getColorString(submission[priceCalcKey], numbers);
|
|
1115
|
-
const backgroundShades = numbers.length === 0 ? submission['backgroundShades'] : { [priceCalcKey]: this.#getScoreShade(color ?? '') };
|
|
1116
|
-
// Use the passed `reviewValues` argument
|
|
1117
|
-
// T-A widened upstream `adj_microFlow_review_notes` to `unknown` (consumer-side narrowing).
|
|
1118
|
-
// The local consumer expects an OutputData payload; narrow with a cast at the boundary.
|
|
1119
|
-
const submissionReview = (reviewValues?.find((v) => v.id === submission.id) ?? {});
|
|
1120
|
-
return {
|
|
1121
|
-
...submission,
|
|
1122
|
-
submissionIsReviewed: !!submissionReview,
|
|
1123
|
-
adj_microFlow_review_notes: submissionReview?.adj_microFlow_review_notes || '',
|
|
1124
|
-
submissionHasReviewNotes: !!submissionReview?.adj_microFlow_review_notes,
|
|
1125
|
-
adj_microFlow_review: submissionReview?.['adj_microFlow_review'],
|
|
1126
|
-
adjudicationPricePreferenceCalculationColor: color,
|
|
1127
|
-
adjudicationPricePreferenceCalculation: submission[cols.responsePreferenceCalculationKey || 'adjudicationPricePreferenceCalculation'],
|
|
1128
|
-
backgroundShades
|
|
1129
|
-
};
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
#getColorString(target, numbers) {
|
|
1133
|
-
return getColorForNumber(target, numbers, true);
|
|
1134
|
-
}
|
|
1135
|
-
#getScoreShade(rgbColor) {
|
|
1136
|
-
if (!rgbColor)
|
|
1137
|
-
return '';
|
|
1138
|
-
return rgbColor.replace('rgb', 'rgba').replace(')', `, 0.1)`);
|
|
1139
|
-
}
|
|
1140
|
-
viewMicroSubmission(res) {
|
|
1141
|
-
const alreadyInValue = this.#value?.find((v) => v.id === res.id);
|
|
1142
|
-
if (!alreadyInValue) {
|
|
1143
|
-
const newReview = this.#buildReviewRecord(res, undefined);
|
|
1144
|
-
const newValue = [...(this.#value || []), newReview];
|
|
1145
|
-
this.reviewChange.emit(newValue);
|
|
1146
|
-
}
|
|
1147
|
-
this.#config.formBuilder['previewWorkflowDocument'](res.id);
|
|
1148
|
-
}
|
|
1149
|
-
/**
|
|
1150
|
-
* Builds a review record from a submission row. Status, createdAt and updatedAt are
|
|
1151
|
-
* all optional on the shared `WorkflowAdjudicationMicroFlowReviewValue` type, so
|
|
1152
|
-
* `undefined` flows through naturally without any casts.
|
|
1153
|
-
*/
|
|
1154
|
-
#buildReviewRecord(res, status) {
|
|
1155
|
-
const cm = this.columnMapping;
|
|
1156
|
-
const createdAt = res[cm?.responseDateKey || 'createdAt'] || undefined;
|
|
1157
|
-
const updatedAt = res[cm?.responseDateKey || 'updatedAt'] || undefined;
|
|
1158
|
-
return {
|
|
1159
|
-
id: res.id,
|
|
1160
|
-
adj_microFlow_review: status,
|
|
1161
|
-
nameOfBidder: res[cm?.respondentNameKey || ''] || '',
|
|
1162
|
-
supplierNumber: res[cm?.respondentCodeKey || ''] || '',
|
|
1163
|
-
createdAt,
|
|
1164
|
-
updatedAt,
|
|
1165
|
-
adjudicationPricePreferenceCalculation: res[cm?.responsePreferenceCalculationKey || 'adjudicationPricePreferenceCalculation'] || 0,
|
|
1166
|
-
reference: res['reference'] || '',
|
|
1167
|
-
};
|
|
1168
|
-
}
|
|
1169
|
-
setResponseStatus(res, status) {
|
|
1170
|
-
const alreadyInValue = this.#value?.find((v) => v.id === res.id);
|
|
1171
|
-
const statusValue = status.value;
|
|
1172
|
-
if (!alreadyInValue) {
|
|
1173
|
-
const newReview = this.#buildReviewRecord(res, statusValue);
|
|
1174
|
-
this.reviewChange.emit([...(this.#value || []), newReview]);
|
|
1175
|
-
this.reachedMax([...(this.#value || []), newReview]);
|
|
1176
|
-
return;
|
|
1177
|
-
}
|
|
1178
|
-
const newValue = (this.#value || []).map((v) => {
|
|
1179
|
-
if (v.id === res.id) {
|
|
1180
|
-
return { ...v, adj_microFlow_review: statusValue };
|
|
1181
|
-
}
|
|
1182
|
-
return v;
|
|
1183
|
-
});
|
|
1184
|
-
this.reviewChange.emit(newValue);
|
|
1185
|
-
this.reachedMax(newValue);
|
|
1186
|
-
}
|
|
1187
|
-
reachedMax(newValue) {
|
|
1188
|
-
const hasMax = this.inputConfig()?.maxLength;
|
|
1189
|
-
if (!hasMax || isNaN(Number(hasMax))) {
|
|
1190
|
-
return; // No limit set, do nothin
|
|
1191
|
-
}
|
|
1192
|
-
const allCompetentSubmissions = newValue?.filter((v) => v.adj_microFlow_review === 'compliant').length || 0;
|
|
1193
|
-
if (!(allCompetentSubmissions >= (Number(hasMax) || 1))) {
|
|
1194
|
-
return;
|
|
1195
|
-
}
|
|
1196
|
-
const missingSubmission = this.submissions
|
|
1197
|
-
.filter((s) => !newValue?.find((v) => v.id === s.id))
|
|
1198
|
-
.map((s) => this.#buildReviewRecord(s, 'non-compliant'));
|
|
1199
|
-
const unique = new Set([...(newValue || []), ...missingSubmission]);
|
|
1200
|
-
this.reviewChange.emit(Array.from(unique));
|
|
1201
|
-
}
|
|
1202
|
-
// FIX: A Map to hold notes being edited, keyed by row ID. This prevents shared state.
|
|
1203
|
-
/**
|
|
1204
|
-
* REFACTORED: Saves the notes from the `notesBeingEdited` map.
|
|
1205
|
-
*/
|
|
1206
|
-
notesBlur(notesToSave) {
|
|
1207
|
-
if (!this.notesOpenForRowId || !notesToSave) {
|
|
1208
|
-
this.notesOpenForRowId = null;
|
|
1209
|
-
return;
|
|
1210
|
-
}
|
|
1211
|
-
const alreadyInValue = this.#value?.find((v) => v.id === this.notesOpenForRowId);
|
|
1212
|
-
if (!alreadyInValue) {
|
|
1213
|
-
const newReview = {
|
|
1214
|
-
id: this.notesOpenForRowId,
|
|
1215
|
-
adj_microFlow_review_notes: notesToSave,
|
|
1216
|
-
adj_microFlow_review: undefined,
|
|
1217
|
-
nameOfBidder: '',
|
|
1218
|
-
supplierNumber: '',
|
|
1219
|
-
createdAt: undefined,
|
|
1220
|
-
updatedAt: undefined,
|
|
1221
|
-
adjudicationPricePreferenceCalculation: 0,
|
|
1222
|
-
reference: '',
|
|
1223
|
-
};
|
|
1224
|
-
this.reviewChange.emit([...(this.#value || []), newReview]);
|
|
1225
|
-
}
|
|
1226
|
-
else {
|
|
1227
|
-
const newValue = (this.#value ?? []).map((v) => {
|
|
1228
|
-
if (v.id === this.notesOpenForRowId) {
|
|
1229
|
-
return { ...v, adj_microFlow_review_notes: notesToSave };
|
|
1230
|
-
}
|
|
1231
|
-
return v;
|
|
1232
|
-
});
|
|
1233
|
-
this.reviewChange.emit(newValue);
|
|
1234
|
-
}
|
|
1235
|
-
// Clean up and close the overlay
|
|
1236
|
-
}
|
|
1237
|
-
bulkStatusChanged(event) {
|
|
1238
|
-
const newStatus = event.value;
|
|
1239
|
-
if (newStatus === 'reset') {
|
|
1240
|
-
this.reviewChange.emit([]);
|
|
1241
|
-
return;
|
|
1242
|
-
}
|
|
1243
|
-
// Create a Map of existing values for efficient O(1) lookup
|
|
1244
|
-
const existingValueMap = new Map((this.#value ?? []).map(v => [v.id, v]));
|
|
1245
|
-
// Destructure column keys with fallbacks for cleaner access
|
|
1246
|
-
const { respondentNameKey = '', respondentCodeKey = '', responseDateKey = 'createdAt', responsePreferenceCalculationKey = 'adjudicationPricePreferenceCalculation', } = this.columnMapping || {};
|
|
1247
|
-
let allItems = this.submissions.map(s => {
|
|
1248
|
-
// Efficiently look up the existing value using the Map
|
|
1249
|
-
const existingValue = existingValueMap.get(s.id);
|
|
1250
|
-
// If it exists, spread its properties to preserve them and update the status
|
|
1251
|
-
if (existingValue) {
|
|
1252
|
-
return { ...existingValue, adj_microFlow_review: newStatus };
|
|
1253
|
-
}
|
|
1254
|
-
// Otherwise, create a new object from the submission data
|
|
1255
|
-
return {
|
|
1256
|
-
id: s.id,
|
|
1257
|
-
adj_microFlow_review: newStatus,
|
|
1258
|
-
nameOfBidder: s[respondentNameKey] || '',
|
|
1259
|
-
supplierNumber: s[respondentCodeKey] || '',
|
|
1260
|
-
createdAt: s[responseDateKey] || undefined,
|
|
1261
|
-
updatedAt: s[this.columnMapping?.responseDateKey || 'updatedAt'] || undefined,
|
|
1262
|
-
adjudicationPricePreferenceCalculation: s[responsePreferenceCalculationKey] || 0,
|
|
1263
|
-
reference: s['reference'] || '',
|
|
1264
|
-
};
|
|
1265
|
-
});
|
|
1266
|
-
// Apply the compliance limit if necessary
|
|
1267
|
-
const limit = this.maxLimit();
|
|
1268
|
-
if (limit !== undefined && newStatus === 'compliant') {
|
|
1269
|
-
// Sort by preference calculation, highest first
|
|
1270
|
-
allItems.sort((a, b) => (b.adjudicationPricePreferenceCalculation ?? 0) - (a.adjudicationPricePreferenceCalculation ?? 0));
|
|
1271
|
-
// Mark items beyond the limit as 'non-compliant'
|
|
1272
|
-
allItems = allItems.map((item, index) => {
|
|
1273
|
-
if (index >= limit) {
|
|
1274
|
-
return { ...item, adj_microFlow_review: 'non-compliant' };
|
|
1275
|
-
}
|
|
1276
|
-
return item;
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
this.reviewChange.emit(allItems);
|
|
1280
|
-
}
|
|
1281
|
-
openNotes(row) {
|
|
1282
|
-
this.notesOpenForRowId = row.id;
|
|
1283
|
-
const stringfiedTemplate = JSON.stringify(this.inputConfig()?.adjudicationReviewFeedbackTemplate);
|
|
1284
|
-
const template = stringfiedTemplate?.replace(/\$bidderName/g, row[this.columnMapping?.respondentNameKey || ''])
|
|
1285
|
-
?.replace(/\$bidderCode/g, row[this.columnMapping?.respondentCodeKey || ''])
|
|
1286
|
-
?.replace(/\$responseDate/g, row[this.columnMapping?.responseDateKey || ''])
|
|
1287
|
-
?.replace(/\$responsePreferenceCalculation/g, row[this.columnMapping?.responsePreferenceCalculationKey || ''] || '0');
|
|
1288
|
-
this.dialog.open(SubmissionReviewDialogComponent, {
|
|
1289
|
-
height: 'fit-content',
|
|
1290
|
-
data: {
|
|
1291
|
-
row,
|
|
1292
|
-
respondentNameKey: this.columnMapping?.respondentNameKey || '',
|
|
1293
|
-
respondentCodeKey: this.columnMapping?.respondentCodeKey || '',
|
|
1294
|
-
readonly: this.inputConfig()?.readonly || false,
|
|
1295
|
-
activeRowNotes: JSON.parse(template || '{}')
|
|
1296
|
-
},
|
|
1297
|
-
autoFocus: false,
|
|
1298
|
-
disableClose: true
|
|
1299
|
-
}).afterClosed().pipe(take(1), tap((result) => {
|
|
1300
|
-
this.notesBlur(result);
|
|
1301
|
-
}), takeUntilDestroyed(this.#destroyRef)).subscribe();
|
|
1302
|
-
}
|
|
1303
|
-
canChangeStatus(row) {
|
|
1304
|
-
if (row['adj_microFlow_review'] === 'compliant')
|
|
1305
|
-
return true;
|
|
1306
|
-
const maxLength = this.inputConfig()?.maxLength;
|
|
1307
|
-
// check if max exists and is a number
|
|
1308
|
-
if (!maxLength || isNaN(Number(maxLength))) {
|
|
1309
|
-
return true; // No limit set, allow status change
|
|
1310
|
-
}
|
|
1311
|
-
const allCompetentSubmissions = this.#value?.filter((v) => v.adj_microFlow_review === 'compliant').length || 0;
|
|
1312
|
-
return allCompetentSubmissions < (Number(maxLength) || 1);
|
|
1313
|
-
}
|
|
1314
|
-
static { this.ɵfac = function SubmissionReviewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SubmissionReviewComponent)(); }; }
|
|
1315
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubmissionReviewComponent, selectors: [["lib-submission-review"]], inputs: { inputConfig: [1, "inputConfig"], value: [1, "value"] }, outputs: { reviewChange: "reviewChange" }, decls: 2, vars: 3, consts: [["trigger", "cdkOverlayOrigin"], [2, "display", "flex", "justify-content", "center", "align-items", "center", "padding", "24px", "width", "100%"], [1, "info-card", "error-card"], [1, "info-title"], ["mat-raised-button", "", "color", "primary", 3, "click"], [1, "info-card"], ["mat-raised-button", "", "color", "primary", 1, "load-button", 3, "click"], ["mat-table", "", 3, "dataSource"], [3, "matColumnDef"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], [1, "smallIcon"], ["mat-header-cell", "", "style", "padding:4px", 4, "matHeaderCellDef"], ["mat-cell", "", "mat-ripple", "", "class", "table-cell", 3, "selected-row", "price-preference-cell", "border-bottom-color", "background", "click", 4, "matCellDef"], ["mat-header-cell", "", 2, "padding", "4px"], ["floatLabel", "always", "subscriptSizing", "dynamic", "appearance", "outline", 2, "width", "100%", "margin-bottom", "8px", "margin-top", "8px", "border-radius", "16px"], ["ngDefaultControl", "", "placeholder", " Select Status", 3, "selectionChange", "value"], [3, "value"], ["mat-cell", "", "mat-ripple", "", 1, "table-cell", 3, "click"], [2, "display", "flex", "align-items", "center"], ["matTooltipPosition", "before", "mat-icon-button", "", 3, "click", "matTooltip"], ["cdkOverlayOrigin", "", "matTooltipPosition", "after", "mat-icon-button", "", 3, "matTooltip"], ["cdkOverlayOrigin", "", "matTooltipPosition", "after", "mat-icon-button", "", 3, "click", "matTooltip"], ["ngDefaultControl", "", "placeholder", " Select Status", 3, "selectionChange", "disabled", "value"], [2, "color", "var(--mat-sys-error)"], [1, "number-cell"], [3, "color"], [1, "main-submission-text"], [2, "font-size", "1em", "height", "16px", "width", "16px"], [1, "secondary-text"], ["mat-header-row", ""], ["mat-row", ""]], template: function SubmissionReviewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1316
|
-
i0.ɵɵconditionalCreate(0, SubmissionReviewComponent_Conditional_0_Template, 3, 1);
|
|
1317
|
-
i0.ɵɵpipe(1, "async");
|
|
1318
|
-
} if (rf & 2) {
|
|
1319
|
-
let tmp_0_0;
|
|
1320
|
-
i0.ɵɵconditional((tmp_0_0 = i0.ɵɵpipeBind1(1, 1, ctx.vm$)) ? 0 : -1, tmp_0_0);
|
|
1321
|
-
} }, dependencies: [FormsModule, i1.DefaultValueAccessor, OverlayModule, i2$5.CdkOverlayOrigin, MatButtonModule, i2$1.MatButton, i2$1.MatIconButton, MatFormFieldModule, i2$2.MatFormField, i2$2.MatLabel, i2$2.MatHint, MatIconModule, i3.MatIcon, MatInputModule,
|
|
1322
|
-
MatProgressSpinnerModule, i4.MatProgressSpinner, MatRippleModule, i7.MatRipple, MatSelectModule, i8.MatSelect, i8.MatOption, 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, MatTooltipModule, i5$2.MatTooltip, AsyncPipe,
|
|
1323
|
-
DecimalPipe,
|
|
1324
|
-
DaysAgoPipe], styles: [".number[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}.number-cell[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text[_ngcontent-%COMP%]{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.mat-column-adjudicationPricePreferenceCalculation[_ngcontent-%COMP%]{max-width:70px}.mat-column-actions[_ngcontent-%COMP%]{padding:0;max-width:80px}.mat-column-status[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:.875em}[_nghost-%COMP%] .notes-card[_ngcontent-%COMP%]{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.table-cell[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}"], changeDetection: 0 }); }
|
|
1325
|
-
}
|
|
1326
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionReviewComponent, [{
|
|
1327
|
-
type: Component,
|
|
1328
|
-
args: [{ selector: 'lib-submission-review', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
|
|
1329
|
-
AsyncPipe,
|
|
1330
|
-
DecimalPipe,
|
|
1331
|
-
FormsModule,
|
|
1332
|
-
OverlayModule,
|
|
1333
|
-
MatButtonModule,
|
|
1334
|
-
MatFormFieldModule,
|
|
1335
|
-
MatIconModule,
|
|
1336
|
-
MatInputModule,
|
|
1337
|
-
MatProgressSpinnerModule,
|
|
1338
|
-
MatRippleModule,
|
|
1339
|
-
MatSelectModule,
|
|
1340
|
-
MatTableModule,
|
|
1341
|
-
MatTooltipModule,
|
|
1342
|
-
DaysAgoPipe,
|
|
1343
|
-
], template: "@if (vm$ | async; as vm) {\r\n\r\n @if (vm.loading) {\r\n <div style=\"display: flex; justify-content: center; align-items: center; padding:24px;width: 100%;\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n } @else if (vm.error) {\r\n <div class=\"info-card error-card\">\r\n <h5 class=\"info-title\">\u274C Failed to load data</h5>\r\n <p>{{ vm.error }}</p>\r\n <button mat-raised-button color=\"primary\" (click)=\"loadMicroSubmissions()\">\r\n Try Again\r\n </button>\r\n </div>\r\n } @else {\r\n @if (!vm.displayCols.length) {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\u2699\uFE0F This step needs to be configured to show data.</h5>\r\n <ol>\r\n <li>\r\n <strong>Why you're seeing this:</strong>\r\n <ul>\r\n <li>This component is designed for a <strong>\"Submission Review\"</strong> workflow step.</li>\r\n <li>It's currently missing the required column setup.</li>\r\n </ul>\r\n </li>\r\n <li>\r\n <strong>What to do (for Administrators):</strong>\r\n To fix this, go to the <strong>Workflow Builder</strong> and for this specific step, <strong>map the display\r\n columns</strong> to the desired submission data (e.g., form fields or document keys).\r\n </li>\r\n </ol>\r\n </div>\r\n } @else if (!vm.submissions.length) {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\u2139\uFE0F There are no submissions to display.</h5>\r\n <ul>\r\n <li>This can happen if <strong>no one has responded</strong> yet, or if the <strong>submission closing date has\r\n passed</strong>.</li>\r\n <li>If you are expecting to see submissions, try clicking the <strong>Refresh</strong> button.</li>\r\n </ul>\r\n <button mat-raised-button color=\"primary\" (click)=\"loadMicroSubmissions()\" class=\"load-button\">\r\n Refresh\r\n </button>\r\n </div>\r\n } @else {\r\n @if (!value() || (value()?.length ?? 0) === 0) {\r\n <!-- value() typed `any` per parent's mixed union; length check survives null -->\r\n\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\uD83D\uDCDD How to Review Submissions</h5>\r\n <ol>\r\n <li>\r\n <strong>View Response:</strong> Click the <strong>Preview</strong> (<mat-icon\r\n class=\"smallIcon\">preview</mat-icon>) icon to see the full submission.\r\n </li>\r\n <li>\r\n <strong>Set Status:</strong> Use the dropdown to select <strong>Compliant</strong> or\r\n <strong>Non-compliant</strong>.\r\n </li>\r\n <li>\r\n <strong>Add Note (If Non-compliant):</strong>\r\n <ul>\r\n <li>If you select <strong>Non-compliant</strong>, you <strong>must</strong> add a note.</li>\r\n <li>Click the <strong>Add Note</strong> (<mat-icon class=\"smallIcon\">add_comment</mat-icon>) icon, write your\r\n feedback, and hit <strong>Save Feedback</strong>. Your note will be visible to the applicant.</li>\r\n </ul>\r\n </li>\r\n </ol>\r\n </div>\r\n }\r\n <table mat-table [dataSource]=\"vm.submissions\">\r\n @for (col of vm.displayColumns; track col.formControlName) {\r\n <ng-container [matColumnDef]=\"col.formControlName\">\r\n <th mat-header-cell *matHeaderCellDef style=\"padding:4px\">\r\n\r\n @if (col.formControlName === 'status' && !inputConfig()?.readonly) {\r\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\" style=\"width: 100%;\r\n margin-bottom: 8px;\r\n margin-top: 8px;\r\n border-radius:16px;\" appearance=\"outline\">\r\n <mat-label>\r\n Bulk Status Selection\r\n </mat-label>\r\n <mat-select\r\n [style.color]=\"bulkStatus() === 'non-compliant' ? 'var(--mat-sys-error)' : bulkStatus()==='compliant'? 'var(--mat-sys-primary)' : ''\"\r\n (selectionChange)=\"bulkStatusChanged($event)\" ngDefaultControl [value]=\"bulkStatus()\"\r\n placeholder=\" Select Status\">\r\n @for (type of bulkOperations || []; track type) {\r\n <mat-option [value]=\"type.value\">{{type.label}}</mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n } @else {\r\n {{ col.label }}\r\n }\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\" mat-ripple class=\"table-cell\" [class.selected-row]=\"selected === row.id\"\r\n (click)=\"$event.stopPropagation()\" [class.price-preference-cell]=\"true\"\r\n [style.border-bottom-color]=\"row.adjudicationPricePreferenceCalculationColor\"\r\n [style.background]=\"row.backgroundShades?.[col.formControlName]\">\r\n\r\n @if (col.formControlName === 'actions') {\r\n <span style=\"display: flex; align-items: center;\">\r\n <button matTooltipPosition=\"before\"\r\n [matTooltip]=\"`View and review **` + row[vm.columnMapping.respondentNameKey]+ `** 's' Submission`\"\r\n (click)=\"viewMicroSubmission(row)\" mat-icon-button>\r\n <mat-icon>preview</mat-icon>\r\n </button>\r\n @if (!(inputConfig()?.readonly) || (inputConfig()?.readonly) && !!row['submissionHasReviewNotes']) {\r\n <button (click)=\"openNotes(row)\" cdkOverlayOrigin #trigger=\"cdkOverlayOrigin\" matTooltipPosition=\"after\"\r\n [matTooltip]=\"\r\n `Add a review note for **` + row[vm.columnMapping.respondentNameKey] + `**`\" mat-icon-button>\r\n <mat-icon [style.color]=\"\r\n notesOpenForRowId === row.id ? 'var(--mat-sys-primary)' : (row['adj_microFlow_review']==='non-compliant' && !row['adj_microFlow_review_notes']?'var(--mat-sys-error)':'')\r\n \">\r\n {{ !row['submissionHasReviewNotes']? 'add_comment' : 'comment' }}\r\n </mat-icon>\r\n </button>\r\n }\r\n </span>\r\n } @else if (col.formControlName === 'status') {\r\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\" style=\"width: 100%;\r\n margin-bottom: 8px;\r\n margin-top: 8px;\r\n border-radius:16px;\" appearance=\"outline\">\r\n <mat-select [disabled]=\"!canChangeStatus(row) || inputConfig()?.readonly === true\"\r\n [style.color]=\"row['adj_microFlow_review'] === 'non-compliant' ? 'var(--mat-sys-error)' : row['adj_microFlow_review']==='compliant'? 'var(--mat-sys-primary)' : ''\"\r\n (selectionChange)=\"setResponseStatus(row,$event)\" ngDefaultControl [value]=\"row.adj_microFlow_review\"\r\n placeholder=\" Select Status\">\r\n @for (type of reviewStatuses || []; track type) {\r\n <mat-option [value]=\"type.value\">{{type.label}}</mat-option>\r\n }\r\n </mat-select>\r\n @if (row['adj_microFlow_review']==='non-compliant' && !row['adj_microFlow_review_notes']) {\r\n <mat-hint style=\"color:var(--mat-sys-error)\">\r\n Rejection reason is required. Add a review note.\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n } @else {\r\n @switch (col?.type) {\r\n @case ('daysAgo') {\r\n {{ row[col.formControlName] | daysAgo }}\r\n }\r\n @case ('number') {\r\n <div class=\"number-cell\">\r\n <span>\r\n {{ (row[col.formControlName] | number:'0.0-0' ) || 'N/A' }}\r\n </span>\r\n @if (col.showColor) {\r\n <mat-icon [style.color]=\"row.adjudicationPricePreferenceCalculationColor\">\r\n fiber_manual_record\r\n </mat-icon>\r\n }\r\n </div>\r\n }\r\n @default {\r\n @if ($index === 0) {\r\n <span class=\"main-submission-text\">\r\n <mat-icon style=\"font-size: 1em;height:16px;width:16px\">domain</mat-icon>\r\n <strong>\r\n {{ row[col.formControlName] }}\r\n </strong>\r\n </span>\r\n <span class=\"secondary-text\">\r\n <mat-icon>fingerprint</mat-icon>\r\n {{row[vm.columnMapping.respondentCodeKey]}}\r\n <mat-icon>more_time</mat-icon>\r\n {{ row[vm.columnMapping.responseDateKey ||''] | daysAgo}}\r\n </span>\r\n } @else {\r\n {{ row[col.formControlName] }}\r\n }\r\n }\r\n }\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"vm.displayCols\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: vm.displayCols\"></tr>\r\n </table>\r\n }\r\n }\r\n\r\n}\r\n", styles: [".number{display:flex;justify-content:space-between;align-items:center}li{font-size:.75em}ol,ul{margin-top:8px}.number-cell{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text mat-icon{font-size:.875em;width:14px;height:14px}.mat-column-adjudicationPricePreferenceCalculation{max-width:70px}.mat-column-actions{padding:0;max-width:80px}.mat-column-status{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text{display:flex;align-items:center;gap:8px;font-size:.875em}:host .notes-card{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon{font-size:.875em;width:14px;height:14px}.table-cell{padding-left:4px;padding-right:4px}\n"] }]
|
|
1344
|
-
}], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], reviewChange: [{ type: i0.Output, args: ["reviewChange"] }] }); })();
|
|
1345
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SubmissionReviewComponent, { className: "SubmissionReviewComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/submission-review/submission-review.component.ts", lineNumber: 90 }); })();
|
|
1346
|
-
|
|
1347
|
-
const _c0 = () => [];
|
|
1348
|
-
const _forTrack0$2 = ($index, $item) => $item.key;
|
|
1349
|
-
const _forTrack1 = ($index, $item) => $item.id;
|
|
1350
|
-
function PointAssignmentDialogComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1351
|
-
i0.ɵɵelementStart(0, "div", 11)(1, "h5", 12);
|
|
1352
|
-
i0.ɵɵtext(2, "\uD83D\uDCAF How to Assign Points ");
|
|
1353
|
-
i0.ɵɵelementEnd();
|
|
1354
|
-
i0.ɵɵelementStart(3, "ol")(4, "li")(5, "strong");
|
|
1355
|
-
i0.ɵɵtext(6, "Enter a score");
|
|
1356
|
-
i0.ɵɵelementEnd();
|
|
1357
|
-
i0.ɵɵtext(7, " for each item listed below. ");
|
|
1358
|
-
i0.ɵɵelementEnd();
|
|
1359
|
-
i0.ɵɵelementStart(8, "li")(9, "strong");
|
|
1360
|
-
i0.ɵɵtext(10, "Follow the rules:");
|
|
1361
|
-
i0.ɵɵelementEnd();
|
|
1362
|
-
i0.ɵɵelementStart(11, "ul")(12, "li");
|
|
1363
|
-
i0.ɵɵtext(13, "Your score cannot be higher than the maximum points shown (e.g., / 10).");
|
|
1364
|
-
i0.ɵɵelementEnd();
|
|
1365
|
-
i0.ɵɵelementStart(14, "li");
|
|
1366
|
-
i0.ɵɵtext(15, "The ");
|
|
1367
|
-
i0.ɵɵelementStart(16, "strong");
|
|
1368
|
-
i0.ɵɵtext(17, "\"Save Points\"");
|
|
1369
|
-
i0.ɵɵelementEnd();
|
|
1370
|
-
i0.ɵɵtext(18, " button at the bottom will turn blue when everything is filled out correctly.");
|
|
1371
|
-
i0.ɵɵelementEnd()()();
|
|
1372
|
-
i0.ɵɵelementStart(19, "li")(20, "strong");
|
|
1373
|
-
i0.ɵɵtext(21, "Click the blue \"Save Points\" button");
|
|
1374
|
-
i0.ɵɵelementEnd();
|
|
1375
|
-
i0.ɵɵtext(22, " to finish. ");
|
|
1376
|
-
i0.ɵɵelementEnd()()();
|
|
1377
|
-
} }
|
|
1378
|
-
function PointAssignmentDialogComponent_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1379
|
-
i0.ɵɵelementStart(0, "div", 11)(1, "h5", 12);
|
|
1380
|
-
i0.ɵɵtext(2, "\u270D\uFE0F Editing Your Scores");
|
|
1381
|
-
i0.ɵɵelementEnd();
|
|
1382
|
-
i0.ɵɵelementStart(3, "ol")(4, "li")(5, "strong");
|
|
1383
|
-
i0.ɵɵtext(6, "You are viewing saved scores.");
|
|
1384
|
-
i0.ɵɵelementEnd();
|
|
1385
|
-
i0.ɵɵtext(7, " To make a change, simply click on a score and type in a new number. ");
|
|
1386
|
-
i0.ɵɵelementEnd();
|
|
1387
|
-
i0.ɵɵelementStart(8, "li");
|
|
1388
|
-
i0.ɵɵtext(9, " The ");
|
|
1389
|
-
i0.ɵɵelementStart(10, "strong");
|
|
1390
|
-
i0.ɵɵtext(11, "Total Points");
|
|
1391
|
-
i0.ɵɵelementEnd();
|
|
1392
|
-
i0.ɵɵtext(12, " bar at the top will update as you make edits. ");
|
|
1393
|
-
i0.ɵɵelementEnd();
|
|
1394
|
-
i0.ɵɵelementStart(13, "li");
|
|
1395
|
-
i0.ɵɵtext(14, " Click ");
|
|
1396
|
-
i0.ɵɵelementStart(15, "strong");
|
|
1397
|
-
i0.ɵɵtext(16, "\"Save Points\"");
|
|
1398
|
-
i0.ɵɵelementEnd();
|
|
1399
|
-
i0.ɵɵtext(17, " to confirm your changes when you're done. ");
|
|
1400
|
-
i0.ɵɵelementEnd()()();
|
|
1401
|
-
} }
|
|
1402
|
-
function PointAssignmentDialogComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
1403
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
1404
|
-
i0.ɵɵconditionalCreate(1, PointAssignmentDialogComponent_Conditional_4_Conditional_1_Template, 23, 0, "div", 11)(2, PointAssignmentDialogComponent_Conditional_4_Conditional_2_Template, 18, 0, "div", 11);
|
|
1405
|
-
i0.ɵɵelementEnd();
|
|
1406
|
-
} if (rf & 2) {
|
|
1407
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1408
|
-
i0.ɵɵadvance();
|
|
1409
|
-
i0.ɵɵconditional(!ctx_r0.pointsForm.dirty && !ctx_r0.pointsForm.touched ? 1 : 2);
|
|
1410
|
-
} }
|
|
1411
|
-
function PointAssignmentDialogComponent_For_14_For_5_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
1412
|
-
i0.ɵɵelementStart(0, "mat-error");
|
|
1413
|
-
i0.ɵɵtext(1, "A score is required.");
|
|
1414
|
-
i0.ɵɵelementEnd();
|
|
1415
|
-
} }
|
|
1416
|
-
function PointAssignmentDialogComponent_For_14_For_5_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
1417
|
-
i0.ɵɵelementStart(0, "mat-error");
|
|
1418
|
-
i0.ɵɵtext(1);
|
|
1419
|
-
i0.ɵɵelementEnd();
|
|
1420
|
-
} if (rf & 2) {
|
|
1421
|
-
const score_r3 = i0.ɵɵnextContext().$implicit;
|
|
1422
|
-
i0.ɵɵadvance();
|
|
1423
|
-
i0.ɵɵtextInterpolate1("Score cannot exceed ", score_r3.totalPoints, ".");
|
|
1424
|
-
} }
|
|
1425
|
-
function PointAssignmentDialogComponent_For_14_For_5_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
1426
|
-
i0.ɵɵelementStart(0, "mat-error");
|
|
1427
|
-
i0.ɵɵtext(1, "Score cannot be negative.");
|
|
1428
|
-
i0.ɵɵelementEnd();
|
|
1429
|
-
} }
|
|
1430
|
-
function PointAssignmentDialogComponent_For_14_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
1431
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
1432
|
-
i0.ɵɵelementStart(0, "div", 13)(1, "label", 14);
|
|
1433
|
-
i0.ɵɵtext(2);
|
|
1434
|
-
i0.ɵɵelementEnd();
|
|
1435
|
-
i0.ɵɵelementStart(3, "mat-form-field", 15)(4, "mat-label");
|
|
1436
|
-
i0.ɵɵtext(5, "Score");
|
|
1437
|
-
i0.ɵɵelementEnd();
|
|
1438
|
-
i0.ɵɵelementStart(6, "input", 16);
|
|
1439
|
-
i0.ɵɵlistener("input", function PointAssignmentDialogComponent_For_14_For_5_Template_input_input_6_listener($event) { const score_r3 = i0.ɵɵrestoreView(_r2).$implicit; const group_r4 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.correctMaxValue($event, group_r4.key, score_r3.id, score_r3.totalPoints)); });
|
|
1440
|
-
i0.ɵɵelementEnd();
|
|
1441
|
-
i0.ɵɵelementStart(7, "span", 17)(8, "span", 18);
|
|
1442
|
-
i0.ɵɵtext(9);
|
|
1443
|
-
i0.ɵɵelementEnd()();
|
|
1444
|
-
i0.ɵɵconditionalCreate(10, PointAssignmentDialogComponent_For_14_For_5_Conditional_10_Template, 2, 0, "mat-error");
|
|
1445
|
-
i0.ɵɵconditionalCreate(11, PointAssignmentDialogComponent_For_14_For_5_Conditional_11_Template, 2, 1, "mat-error");
|
|
1446
|
-
i0.ɵɵconditionalCreate(12, PointAssignmentDialogComponent_For_14_For_5_Conditional_12_Template, 2, 0, "mat-error");
|
|
1447
|
-
i0.ɵɵelementEnd()();
|
|
1448
|
-
i0.ɵɵelement(13, "mat-divider");
|
|
1449
|
-
} if (rf & 2) {
|
|
1450
|
-
let tmp_28_0;
|
|
1451
|
-
let tmp_29_0;
|
|
1452
|
-
let tmp_30_0;
|
|
1453
|
-
const score_r3 = ctx.$implicit;
|
|
1454
|
-
const group_r4 = i0.ɵɵnextContext().$implicit;
|
|
1455
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1456
|
-
i0.ɵɵadvance();
|
|
1457
|
-
i0.ɵɵproperty("for", score_r3.id);
|
|
1458
|
-
i0.ɵɵadvance();
|
|
1459
|
-
i0.ɵɵtextInterpolate(score_r3.description);
|
|
1460
|
-
i0.ɵɵadvance(4);
|
|
1461
|
-
i0.ɵɵproperty("disabled", ctx_r0.data.readonly)("id", score_r3.id)("formControlName", score_r3.id)("max", score_r3.totalPoints)("errorStateMatcher", ctx_r0.matcher);
|
|
1462
|
-
i0.ɵɵadvance(3);
|
|
1463
|
-
i0.ɵɵtextInterpolate1(" / ", score_r3.totalPoints, " ");
|
|
1464
|
-
i0.ɵɵadvance();
|
|
1465
|
-
i0.ɵɵconditional(((tmp_28_0 = ctx_r0.pointsForm.get(group_r4.key)) == null ? null : (tmp_28_0 = tmp_28_0.get(score_r3.id)) == null ? null : tmp_28_0.hasError("required")) ? 10 : -1);
|
|
1466
|
-
i0.ɵɵadvance();
|
|
1467
|
-
i0.ɵɵconditional(((tmp_29_0 = ctx_r0.pointsForm.get(group_r4.key)) == null ? null : (tmp_29_0 = tmp_29_0.get(score_r3.id)) == null ? null : tmp_29_0.hasError("max")) ? 11 : -1);
|
|
1468
|
-
i0.ɵɵadvance();
|
|
1469
|
-
i0.ɵɵconditional(((tmp_30_0 = ctx_r0.pointsForm.get(group_r4.key)) == null ? null : (tmp_30_0 = tmp_30_0.get(score_r3.id)) == null ? null : tmp_30_0.hasError("min")) ? 12 : -1);
|
|
1470
|
-
} }
|
|
1471
|
-
function PointAssignmentDialogComponent_For_14_Template(rf, ctx) { if (rf & 1) {
|
|
1472
|
-
i0.ɵɵelementStart(0, "mat-expansion-panel", 7)(1, "mat-expansion-panel-header")(2, "mat-panel-title");
|
|
1473
|
-
i0.ɵɵtext(3);
|
|
1474
|
-
i0.ɵɵelementEnd()();
|
|
1475
|
-
i0.ɵɵrepeaterCreate(4, PointAssignmentDialogComponent_For_14_For_5_Template, 14, 11, null, null, _forTrack1);
|
|
1476
|
-
i0.ɵɵelementEnd();
|
|
1477
|
-
} if (rf & 2) {
|
|
1478
|
-
const group_r4 = ctx.$implicit;
|
|
1479
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1480
|
-
i0.ɵɵproperty("expanded", true)("formGroupName", group_r4.key);
|
|
1481
|
-
i0.ɵɵadvance(3);
|
|
1482
|
-
i0.ɵɵtextInterpolate(group_r4.name);
|
|
1483
|
-
i0.ɵɵadvance();
|
|
1484
|
-
i0.ɵɵrepeater(ctx_r0.data.groupedScoreSheet[group_r4.key] || i0.ɵɵpureFunction0(3, _c0));
|
|
1485
|
-
} }
|
|
1486
|
-
function PointAssignmentDialogComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
1487
|
-
i0.ɵɵelementStart(0, "button", 10);
|
|
1488
|
-
i0.ɵɵtext(1, " Save Points ");
|
|
1489
|
-
i0.ɵɵelementEnd();
|
|
1490
|
-
} if (rf & 2) {
|
|
1491
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1492
|
-
i0.ɵɵproperty("mat-dialog-close", ctx_r0.pointsForm.getRawValue())("disabled", ctx_r0.pointsForm.invalid);
|
|
1493
|
-
} }
|
|
1494
|
-
/** Shows validation errors as soon as the control becomes dirty + invalid. */
|
|
1495
|
-
class ShowErrorOnDirtyMatcher {
|
|
1496
|
-
isErrorState(control, _form) {
|
|
1497
|
-
return !!(control && control.invalid && control.dirty);
|
|
1498
|
-
}
|
|
1499
|
-
}
|
|
1500
|
-
class PointAssignmentDialogComponent {
|
|
1501
|
-
constructor() {
|
|
1502
|
-
this.dialogRef = inject(MatDialogRef);
|
|
1503
|
-
this.data = inject(MAT_DIALOG_DATA);
|
|
1504
|
-
this.#fb = inject(FormBuilder);
|
|
1505
|
-
this.maxPossiblePoints = 0;
|
|
1506
|
-
this.matcher = new ShowErrorOnDirtyMatcher();
|
|
1507
|
-
}
|
|
1508
|
-
#fb;
|
|
1509
|
-
ngOnInit() {
|
|
1510
|
-
this.#calculateMaxPoints();
|
|
1511
|
-
this.pointsForm = this.#buildForm();
|
|
1512
|
-
this.totalPoints$ = this.#createTotalPointsObservable();
|
|
1513
|
-
}
|
|
1514
|
-
correctMaxValue(event, groupKey, controlId, maxPoints) {
|
|
1515
|
-
const inputElement = event.target;
|
|
1516
|
-
const currentValue = parseFloat(inputElement.value);
|
|
1517
|
-
if (currentValue > maxPoints) {
|
|
1518
|
-
this.pointsForm.get([groupKey, controlId])?.patchValue(maxPoints);
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
#buildForm() {
|
|
1522
|
-
const groupOfGroups = this.data.scoreSheetGroups.reduce((acc, group) => {
|
|
1523
|
-
const scoresInGroup = this.data.groupedScoreSheet[group.key] || [];
|
|
1524
|
-
const groupControls = scoresInGroup.reduce((ctrls, score) => {
|
|
1525
|
-
const existingScore = this.data.row.adj_microFlow_assignedScore?.[score.id] ?? null;
|
|
1526
|
-
ctrls[score.id] = new FormControl(existingScore, [
|
|
1527
|
-
Validators.required,
|
|
1528
|
-
Validators.min(0),
|
|
1529
|
-
Validators.max(score.totalPoints),
|
|
1530
|
-
]);
|
|
1531
|
-
return ctrls;
|
|
1532
|
-
}, {});
|
|
1533
|
-
acc[group.key] = this.#fb.group(groupControls);
|
|
1534
|
-
return acc;
|
|
1535
|
-
}, {});
|
|
1536
|
-
return this.#fb.group(groupOfGroups);
|
|
1537
|
-
}
|
|
1538
|
-
#calculateMaxPoints() {
|
|
1539
|
-
this.maxPossiblePoints = Object.values(this.data.groupedScoreSheet)
|
|
1540
|
-
.flat()
|
|
1541
|
-
.reduce((acc, score) => acc + score.totalPoints, 0);
|
|
1542
|
-
}
|
|
1543
|
-
#createTotalPointsObservable() {
|
|
1544
|
-
return this.pointsForm.valueChanges.pipe(startWith(this.pointsForm.value), map(formValue => {
|
|
1545
|
-
let total = 0;
|
|
1546
|
-
Object.values(formValue || {}).forEach((group) => {
|
|
1547
|
-
if (group && typeof group === 'object') {
|
|
1548
|
-
Object.values(group).forEach(score => {
|
|
1549
|
-
total += Number(score) || 0;
|
|
1550
|
-
});
|
|
1551
|
-
}
|
|
1552
|
-
});
|
|
1553
|
-
return total;
|
|
1554
|
-
}));
|
|
1555
|
-
}
|
|
1556
|
-
static { this.ɵfac = function PointAssignmentDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PointAssignmentDialogComponent)(); }; }
|
|
1557
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PointAssignmentDialogComponent, selectors: [["lib-point-assignment-dialog"]], decls: 19, vars: 11, consts: [["mat-dialog-title", ""], [1, "bidder-name"], [1, "dialog-instructions"], [2, "padding-bottom", "8px", "padding-bottom", "8px", 3, "formGroup"], [1, "summary-bar"], ["mode", "determinate", 3, "value"], ["multi", ""], [3, "expanded", "formGroupName"], ["align", "end"], ["mat-button", "", "mat-dialog-close", ""], ["mat-flat-button", "", "color", "primary", 3, "mat-dialog-close", "disabled"], [1, "info-card"], [1, "info-title"], [1, "score-item"], [1, "score-description", 3, "for"], ["appearance", "outline", "subscriptSizing", "dynamic", 1, "score-input"], ["matInput", "", "type", "number", "placeholder", "0", "min", "0", 3, "input", "disabled", "id", "formControlName", "max", "errorStateMatcher"], ["matSuffix", ""], [2, "min-width", "58px", "display", "flex"]], template: function PointAssignmentDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1558
|
-
i0.ɵɵelementStart(0, "span", 0);
|
|
1559
|
-
i0.ɵɵtext(1, " Assign Points for ");
|
|
1560
|
-
i0.ɵɵelementStart(2, "span", 1);
|
|
1561
|
-
i0.ɵɵtext(3);
|
|
1562
|
-
i0.ɵɵelementEnd()();
|
|
1563
|
-
i0.ɵɵconditionalCreate(4, PointAssignmentDialogComponent_Conditional_4_Template, 3, 1, "div", 2);
|
|
1564
|
-
i0.ɵɵelementStart(5, "mat-dialog-content", 3)(6, "div", 4)(7, "h3");
|
|
1565
|
-
i0.ɵɵtext(8);
|
|
1566
|
-
i0.ɵɵpipe(9, "async");
|
|
1567
|
-
i0.ɵɵelementEnd();
|
|
1568
|
-
i0.ɵɵelement(10, "mat-progress-bar", 5);
|
|
1569
|
-
i0.ɵɵpipe(11, "async");
|
|
1570
|
-
i0.ɵɵelementEnd();
|
|
1571
|
-
i0.ɵɵelementStart(12, "mat-accordion", 6);
|
|
1572
|
-
i0.ɵɵrepeaterCreate(13, PointAssignmentDialogComponent_For_14_Template, 6, 4, "mat-expansion-panel", 7, _forTrack0$2);
|
|
1573
|
-
i0.ɵɵelementEnd()();
|
|
1574
|
-
i0.ɵɵelementStart(15, "mat-dialog-actions", 8)(16, "button", 9);
|
|
1575
|
-
i0.ɵɵtext(17, "Cancel");
|
|
1576
|
-
i0.ɵɵelementEnd();
|
|
1577
|
-
i0.ɵɵconditionalCreate(18, PointAssignmentDialogComponent_Conditional_18_Template, 2, 2, "button", 10);
|
|
1578
|
-
i0.ɵɵelementEnd();
|
|
1579
|
-
} if (rf & 2) {
|
|
1580
|
-
i0.ɵɵadvance(3);
|
|
1581
|
-
i0.ɵɵtextInterpolate(ctx.data.row["nameOfBidder"]);
|
|
1582
|
-
i0.ɵɵadvance();
|
|
1583
|
-
i0.ɵɵconditional(!ctx.data.readonly ? 4 : -1);
|
|
1584
|
-
i0.ɵɵadvance();
|
|
1585
|
-
i0.ɵɵproperty("formGroup", ctx.pointsForm);
|
|
1586
|
-
i0.ɵɵadvance(3);
|
|
1587
|
-
i0.ɵɵtextInterpolate2("Total Points: ", i0.ɵɵpipeBind1(9, 7, ctx.totalPoints$), " / ", ctx.maxPossiblePoints);
|
|
1588
|
-
i0.ɵɵadvance(2);
|
|
1589
|
-
i0.ɵɵproperty("value", (i0.ɵɵpipeBind1(11, 9, ctx.totalPoints$) || 0) / ctx.maxPossiblePoints * 100);
|
|
1590
|
-
i0.ɵɵadvance(3);
|
|
1591
|
-
i0.ɵɵrepeater(ctx.data.scoreSheetGroups);
|
|
1592
|
-
i0.ɵɵadvance(5);
|
|
1593
|
-
i0.ɵɵconditional(!ctx.data.readonly ? 18 : -1);
|
|
1594
|
-
} }, dependencies: [ReactiveFormsModule, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.MinValidator, i1.MaxValidator, i1.FormGroupDirective, i1.FormControlName, i1.FormGroupName, MatDialogModule, i1$1.MatDialogClose, i1$1.MatDialogTitle, i1$1.MatDialogActions, i1$1.MatDialogContent, MatFormFieldModule, i2$2.MatFormField, i2$2.MatLabel, i2$2.MatError, i2$2.MatSuffix, MatInputModule, i2$3.MatInput, MatButtonModule, i2$1.MatButton, MatProgressBarModule, i1$2.MatProgressBar, MatExpansionModule, i5$3.MatAccordion, i5$3.MatExpansionPanel, i5$3.MatExpansionPanelHeader, i5$3.MatExpansionPanelTitle, MatDividerModule, i6.MatDivider, AsyncPipe], styles: ["[_nghost-%COMP%]{display:block;min-width:500px;max-width:700px}.bidder-name[_ngcontent-%COMP%]{font-weight:500}.summary-bar[_ngcontent-%COMP%]{margin-bottom:24px}.summary-bar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500}.score-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;gap:16px}.score-description[_ngcontent-%COMP%]{flex:1;margin-right:16px;line-height:1.4}.score-input[_ngcontent-%COMP%]{flex-shrink:0;width:150px}.mat-expansion-panel-body[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%]:last-child + mat-divider[_ngcontent-%COMP%]{display:none}mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 24px}.mat-mdc-form-field-error[_ngcontent-%COMP%]{font-size:.8125em}.dialog-instructions[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:24px;max-width:95%;padding-left:24px;padding-right:24px}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
|
|
1595
|
-
}
|
|
1596
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PointAssignmentDialogComponent, [{
|
|
1597
|
-
type: Component,
|
|
1598
|
-
args: [{ selector: 'lib-point-assignment-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
|
|
1599
|
-
AsyncPipe,
|
|
1600
|
-
ReactiveFormsModule,
|
|
1601
|
-
MatDialogModule,
|
|
1602
|
-
MatFormFieldModule,
|
|
1603
|
-
MatInputModule,
|
|
1604
|
-
MatButtonModule,
|
|
1605
|
-
MatProgressBarModule,
|
|
1606
|
-
MatExpansionModule,
|
|
1607
|
-
MatDividerModule,
|
|
1608
|
-
], template: "<span mat-dialog-title>\r\n Assign Points for <span class=\"bidder-name\">{{ data.row['nameOfBidder'] }}</span>\r\n</span>\r\n @if( !data.readonly){\r\n<div class=\"dialog-instructions\">\r\n @if(!pointsForm.dirty && !pointsForm.touched){\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\uD83D\uDCAF How to Assign Points\r\n\r\n </h5>\r\n <ol>\r\n <li>\r\n <strong>Enter a score</strong> for each item listed below.\r\n </li>\r\n <li>\r\n <strong>Follow the rules:</strong>\r\n <ul>\r\n <li>Your score cannot be higher than the maximum points shown (e.g., / 10).</li>\r\n <li>The <strong>\"Save Points\"</strong> button at the bottom will turn blue when everything is filled\r\n out correctly.</li>\r\n </ul>\r\n </li>\r\n <li>\r\n <strong>Click the blue \"Save Points\" button</strong> to finish.\r\n </li>\r\n </ol>\r\n </div>\r\n }\r\n @else {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\u270D\uFE0F Editing Your Scores</h5>\r\n <ol>\r\n <li>\r\n <strong>You are viewing saved scores.</strong> To make a change, simply click on a score and type in a\r\n new number.\r\n </li>\r\n <li>\r\n The <strong>Total Points</strong> bar at the top will update as you make edits.\r\n </li>\r\n <li>\r\n Click <strong>\"Save Points\"</strong> to confirm your changes when you're done.\r\n </li>\r\n </ol>\r\n </div>\r\n }\r\n</div>\r\n\r\n }\r\n\r\n\r\n<mat-dialog-content style=\"padding-bottom: 8px;padding-bottom: 8px\" [formGroup]=\"pointsForm\">\r\n <div class=\"summary-bar\">\r\n <h3>Total Points: {{ totalPoints$ | async }} / {{ maxPossiblePoints }}</h3>\r\n <mat-progress-bar mode=\"determinate\"\r\n [value]=\"((totalPoints$ | async) || 0) / maxPossiblePoints * 100\"></mat-progress-bar>\r\n </div>\r\n\r\n <mat-accordion multi>\r\n @for (group of data.scoreSheetGroups; track group.key) {\r\n <mat-expansion-panel [expanded]=\"true\" [formGroupName]=\"group.key\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>{{ group.name }}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n @for (score of data.groupedScoreSheet[group.key] || []; track score.id) {\r\n <div class=\"score-item\">\r\n <label [for]=\"score.id\" class=\"score-description\">{{ score.description }}</label>\r\n\r\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" class=\"score-input\">\r\n <mat-label>Score</mat-label>\r\n <input [disabled]=\"data.readonly\" matInput type=\"number\" placeholder=\"0\" [id]=\"score.id\"\r\n [formControlName]=\"score.id\" [max]=\"score.totalPoints\" min=\"0\" [errorStateMatcher]=\"matcher\"\r\n (input)=\"correctMaxValue($event, group.key, score.id, score.totalPoints)\" />\r\n <span matSuffix>\r\n <span style=\"min-width: 58px; display:flex\">\r\n / {{ score.totalPoints }}\r\n </span>\r\n </span>\r\n\r\n @if (pointsForm.get(group.key)?.get(score.id)?.hasError('required')) {\r\n <mat-error>A score is required.</mat-error>\r\n }\r\n @if (pointsForm.get(group.key)?.get(score.id)?.hasError('max')) {\r\n <mat-error>Score cannot exceed {{ score.totalPoints }}.</mat-error>\r\n }\r\n @if (pointsForm.get(group.key)?.get(score.id)?.hasError('min')) {\r\n <mat-error>Score cannot be negative.</mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n <mat-divider></mat-divider>\r\n }\r\n </mat-expansion-panel>\r\n }\r\n </mat-accordion>\r\n\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions align=\"end\">\r\n <button mat-button mat-dialog-close>Cancel</button>\r\n @if( !data.readonly){\r\n <button mat-flat-button color=\"primary\" \r\n [mat-dialog-close]=\"pointsForm.getRawValue()\"\r\n [disabled]=\"pointsForm.invalid\">\r\n Save Points\r\n </button>\r\n }\r\n\r\n</mat-dialog-actions>", styles: [":host{display:block;min-width:500px;max-width:700px}.bidder-name{font-weight:500}.summary-bar{margin-bottom:24px}.summary-bar h3{margin-bottom:8px;font-weight:500}.score-item{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;gap:16px}.score-description{flex:1;margin-right:16px;line-height:1.4}.score-input{flex-shrink:0;width:150px}.mat-expansion-panel-body .score-item:last-child+mat-divider{display:none}mat-dialog-actions{padding:16px 24px}.mat-mdc-form-field-error{font-size:.8125em}.dialog-instructions{margin-top:-8px;margin-bottom:24px;max-width:95%;padding-left:24px;padding-right:24px}li{font-size:.75em}ol,ul{margin-top:8px}\n"] }]
|
|
1609
|
-
}], null, null); })();
|
|
1610
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PointAssignmentDialogComponent, { className: "PointAssignmentDialogComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/point-assignment/elements/point-assignment-dialog/point-assignment-dialog.component.ts", lineNumber: 61 }); })();
|
|
1611
|
-
|
|
1612
|
-
const _forTrack0$1 = ($index, $item) => $item.formControlName;
|
|
1613
|
-
function PointAssignmentComponent_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1614
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
1615
|
-
i0.ɵɵelement(1, "mat-spinner");
|
|
1616
|
-
i0.ɵɵelementEnd();
|
|
1617
|
-
} }
|
|
1618
|
-
function PointAssignmentComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1619
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
1620
|
-
i0.ɵɵelementStart(0, "div", 1)(1, "h5", 2);
|
|
1621
|
-
i0.ɵɵtext(2, "\u274C Failed to load data");
|
|
1622
|
-
i0.ɵɵelementEnd();
|
|
1623
|
-
i0.ɵɵelementStart(3, "p");
|
|
1624
|
-
i0.ɵɵtext(4);
|
|
1625
|
-
i0.ɵɵelementEnd();
|
|
1626
|
-
i0.ɵɵelementStart(5, "button", 3);
|
|
1627
|
-
i0.ɵɵlistener("click", function PointAssignmentComponent_Conditional_0_Conditional_1_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.loadMicroSubmissions()); });
|
|
1628
|
-
i0.ɵɵtext(6, " Try Again ");
|
|
1629
|
-
i0.ɵɵelementEnd()();
|
|
1630
|
-
} if (rf & 2) {
|
|
1631
|
-
const vm_r3 = i0.ɵɵnextContext();
|
|
1632
|
-
i0.ɵɵadvance(4);
|
|
1633
|
-
i0.ɵɵtextInterpolate(vm_r3.error);
|
|
1634
|
-
} }
|
|
1635
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1636
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
1637
|
-
i0.ɵɵelementStart(0, "div", 4)(1, "h5", 2);
|
|
1638
|
-
i0.ɵɵtext(2, "\u2139\uFE0F There are no submissions to display.");
|
|
1639
|
-
i0.ɵɵelementEnd();
|
|
1640
|
-
i0.ɵɵelementStart(3, "ul")(4, "li");
|
|
1641
|
-
i0.ɵɵtext(5, "This can happen if ");
|
|
1642
|
-
i0.ɵɵelementStart(6, "strong");
|
|
1643
|
-
i0.ɵɵtext(7, "no one has responded");
|
|
1644
|
-
i0.ɵɵelementEnd();
|
|
1645
|
-
i0.ɵɵtext(8, " yet, or if ");
|
|
1646
|
-
i0.ɵɵelementStart(9, "strong");
|
|
1647
|
-
i0.ɵɵtext(10, "none of the submission were compliant ");
|
|
1648
|
-
i0.ɵɵelementEnd();
|
|
1649
|
-
i0.ɵɵtext(11, ".");
|
|
1650
|
-
i0.ɵɵelementEnd();
|
|
1651
|
-
i0.ɵɵelementStart(12, "li");
|
|
1652
|
-
i0.ɵɵtext(13, "If you are expecting to see submissions, try clicking the ");
|
|
1653
|
-
i0.ɵɵelementStart(14, "strong");
|
|
1654
|
-
i0.ɵɵtext(15, "Refresh");
|
|
1655
|
-
i0.ɵɵelementEnd();
|
|
1656
|
-
i0.ɵɵtext(16, " button.");
|
|
1657
|
-
i0.ɵɵelementEnd()();
|
|
1658
|
-
i0.ɵɵelementStart(17, "button", 5);
|
|
1659
|
-
i0.ɵɵlistener("click", function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_0_Template_button_click_17_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.loadMicroSubmissions()); });
|
|
1660
|
-
i0.ɵɵtext(18, " Refresh ");
|
|
1661
|
-
i0.ɵɵelementEnd()();
|
|
1662
|
-
} }
|
|
1663
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1664
|
-
i0.ɵɵelementStart(0, "div", 4)(1, "h5", 2);
|
|
1665
|
-
i0.ɵɵtext(2, "\uD83D\uDCDD How to Review Submissions");
|
|
1666
|
-
i0.ɵɵelementEnd();
|
|
1667
|
-
i0.ɵɵelementStart(3, "ol")(4, "li")(5, "strong");
|
|
1668
|
-
i0.ɵɵtext(6, "View Response:");
|
|
1669
|
-
i0.ɵɵelementEnd();
|
|
1670
|
-
i0.ɵɵtext(7, " Click the ");
|
|
1671
|
-
i0.ɵɵelementStart(8, "strong");
|
|
1672
|
-
i0.ɵɵtext(9, "Preview");
|
|
1673
|
-
i0.ɵɵelementEnd();
|
|
1674
|
-
i0.ɵɵtext(10, " (");
|
|
1675
|
-
i0.ɵɵelementStart(11, "mat-icon", 10);
|
|
1676
|
-
i0.ɵɵtext(12, "preview");
|
|
1677
|
-
i0.ɵɵelementEnd();
|
|
1678
|
-
i0.ɵɵtext(13, ") icon to see the full submission. ");
|
|
1679
|
-
i0.ɵɵelementEnd();
|
|
1680
|
-
i0.ɵɵelementStart(14, "li")(15, "strong");
|
|
1681
|
-
i0.ɵɵtext(16, "Set Status:");
|
|
1682
|
-
i0.ɵɵelementEnd();
|
|
1683
|
-
i0.ɵɵtext(17, " Use the dropdown to select ");
|
|
1684
|
-
i0.ɵɵelementStart(18, "strong");
|
|
1685
|
-
i0.ɵɵtext(19, "Compliant");
|
|
1686
|
-
i0.ɵɵelementEnd();
|
|
1687
|
-
i0.ɵɵtext(20, " or ");
|
|
1688
|
-
i0.ɵɵelementStart(21, "strong");
|
|
1689
|
-
i0.ɵɵtext(22, "Non-compliant");
|
|
1690
|
-
i0.ɵɵelementEnd();
|
|
1691
|
-
i0.ɵɵtext(23, ". ");
|
|
1692
|
-
i0.ɵɵelementEnd();
|
|
1693
|
-
i0.ɵɵelementStart(24, "li")(25, "strong");
|
|
1694
|
-
i0.ɵɵtext(26, "Add Note (If Non-compliant):");
|
|
1695
|
-
i0.ɵɵelementEnd();
|
|
1696
|
-
i0.ɵɵelementStart(27, "ul")(28, "li");
|
|
1697
|
-
i0.ɵɵtext(29, "If you select ");
|
|
1698
|
-
i0.ɵɵelementStart(30, "strong");
|
|
1699
|
-
i0.ɵɵtext(31, "Non-compliant");
|
|
1700
|
-
i0.ɵɵelementEnd();
|
|
1701
|
-
i0.ɵɵtext(32, ", you ");
|
|
1702
|
-
i0.ɵɵelementStart(33, "strong");
|
|
1703
|
-
i0.ɵɵtext(34, "must");
|
|
1704
|
-
i0.ɵɵelementEnd();
|
|
1705
|
-
i0.ɵɵtext(35, " add a note.");
|
|
1706
|
-
i0.ɵɵelementEnd();
|
|
1707
|
-
i0.ɵɵelementStart(36, "li");
|
|
1708
|
-
i0.ɵɵtext(37, "Click the ");
|
|
1709
|
-
i0.ɵɵelementStart(38, "strong");
|
|
1710
|
-
i0.ɵɵtext(39, "Add Note");
|
|
1711
|
-
i0.ɵɵelementEnd();
|
|
1712
|
-
i0.ɵɵtext(40, " (");
|
|
1713
|
-
i0.ɵɵelementStart(41, "mat-icon", 10);
|
|
1714
|
-
i0.ɵɵtext(42, "add_comment");
|
|
1715
|
-
i0.ɵɵelementEnd();
|
|
1716
|
-
i0.ɵɵtext(43, ") icon, write your feedback, and hit ");
|
|
1717
|
-
i0.ɵɵelementStart(44, "strong");
|
|
1718
|
-
i0.ɵɵtext(45, "Save Feedback");
|
|
1719
|
-
i0.ɵɵelementEnd();
|
|
1720
|
-
i0.ɵɵtext(46, ". Your note will be visible to the applicant.");
|
|
1721
|
-
i0.ɵɵelementEnd()()()()();
|
|
1722
|
-
} }
|
|
1723
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
1724
|
-
i0.ɵɵelementStart(0, "th", 13);
|
|
1725
|
-
i0.ɵɵtext(1);
|
|
1726
|
-
i0.ɵɵelementEnd();
|
|
1727
|
-
} if (rf & 2) {
|
|
1728
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
1729
|
-
i0.ɵɵadvance();
|
|
1730
|
-
i0.ɵɵtextInterpolate1(" ", col_r5.label, " ");
|
|
1731
|
-
} }
|
|
1732
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1733
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
1734
|
-
i0.ɵɵelementStart(0, "span", 15)(1, "button", 17);
|
|
1735
|
-
i0.ɵɵlistener("click", function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_1_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const row_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.viewMicroSubmission(row_r7)); });
|
|
1736
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
1737
|
-
i0.ɵɵtext(3, "preview");
|
|
1738
|
-
i0.ɵɵelementEnd()()();
|
|
1739
|
-
} if (rf & 2) {
|
|
1740
|
-
const row_r7 = i0.ɵɵnextContext().$implicit;
|
|
1741
|
-
const vm_r3 = i0.ɵɵnextContext(4);
|
|
1742
|
-
i0.ɵɵadvance();
|
|
1743
|
-
i0.ɵɵproperty("matTooltip", "View and review **" + row_r7[vm_r3.columnMapping.respondentNameKey] + "'s' Submission");
|
|
1744
|
-
} }
|
|
1745
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1746
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
1747
|
-
i0.ɵɵelementStart(0, "button", 18);
|
|
1748
|
-
i0.ɵɵlistener("click", function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const row_r7 = i0.ɵɵnextContext().$implicit; const vm_r3 = i0.ɵɵnextContext(4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.openPointAssignmentDialog(row_r7, vm_r3 == null ? null : vm_r3.groupedScoreSheet, vm_r3.scoreSheetGroups)); });
|
|
1749
|
-
i0.ɵɵtext(1);
|
|
1750
|
-
i0.ɵɵpipe(2, "number");
|
|
1751
|
-
i0.ɵɵelementEnd();
|
|
1752
|
-
} if (rf & 2) {
|
|
1753
|
-
const row_r7 = i0.ɵɵnextContext().$implicit;
|
|
1754
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
1755
|
-
i0.ɵɵproperty("id", row_r7.id);
|
|
1756
|
-
i0.ɵɵadvance();
|
|
1757
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2, row_r7[col_r5.formControlName], "0.0-0") || "Assign Points", " ");
|
|
1758
|
-
} }
|
|
1759
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_0_Template(rf, ctx) { if (rf & 1) {
|
|
1760
|
-
i0.ɵɵtext(0);
|
|
1761
|
-
i0.ɵɵpipe(1, "daysAgo");
|
|
1762
|
-
} if (rf & 2) {
|
|
1763
|
-
const row_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
1764
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
1765
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, row_r7[col_r5.formControlName]), " ");
|
|
1766
|
-
} }
|
|
1767
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
1768
|
-
i0.ɵɵtext(0);
|
|
1769
|
-
i0.ɵɵpipe(1, "number");
|
|
1770
|
-
} if (rf & 2) {
|
|
1771
|
-
const row_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
1772
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
1773
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(1, 1, row_r7[col_r5.formControlName], "0.0-0") || "N/A", " ");
|
|
1774
|
-
} }
|
|
1775
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1776
|
-
i0.ɵɵelementStart(0, "span", 19)(1, "mat-icon", 20);
|
|
1777
|
-
i0.ɵɵtext(2, "domain");
|
|
1778
|
-
i0.ɵɵelementEnd();
|
|
1779
|
-
i0.ɵɵelementStart(3, "strong");
|
|
1780
|
-
i0.ɵɵtext(4);
|
|
1781
|
-
i0.ɵɵelementEnd()();
|
|
1782
|
-
i0.ɵɵelementStart(5, "span", 21)(6, "mat-icon");
|
|
1783
|
-
i0.ɵɵtext(7, "fingerprint");
|
|
1784
|
-
i0.ɵɵelementEnd();
|
|
1785
|
-
i0.ɵɵtext(8);
|
|
1786
|
-
i0.ɵɵelementStart(9, "mat-icon");
|
|
1787
|
-
i0.ɵɵtext(10, "more_time");
|
|
1788
|
-
i0.ɵɵelementEnd();
|
|
1789
|
-
i0.ɵɵtext(11);
|
|
1790
|
-
i0.ɵɵpipe(12, "daysAgo");
|
|
1791
|
-
i0.ɵɵelementEnd();
|
|
1792
|
-
} if (rf & 2) {
|
|
1793
|
-
const row_r7 = i0.ɵɵnextContext(3).$implicit;
|
|
1794
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
1795
|
-
const vm_r3 = i0.ɵɵnextContext(3);
|
|
1796
|
-
i0.ɵɵadvance(4);
|
|
1797
|
-
i0.ɵɵtextInterpolate1(" ", row_r7[col_r5.formControlName], " ");
|
|
1798
|
-
i0.ɵɵadvance(4);
|
|
1799
|
-
i0.ɵɵtextInterpolate1(" ", row_r7[vm_r3.columnMapping.respondentCodeKey], " ");
|
|
1800
|
-
i0.ɵɵadvance(3);
|
|
1801
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 3, row_r7[vm_r3.columnMapping.responseDateKey || ""]), " ");
|
|
1802
|
-
} }
|
|
1803
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1804
|
-
i0.ɵɵtext(0);
|
|
1805
|
-
} if (rf & 2) {
|
|
1806
|
-
const row_r7 = i0.ɵɵnextContext(3).$implicit;
|
|
1807
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
1808
|
-
i0.ɵɵtextInterpolate1(" ", row_r7[col_r5.formControlName], " ");
|
|
1809
|
-
} }
|
|
1810
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
1811
|
-
i0.ɵɵconditionalCreate(0, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Conditional_0_Template, 13, 5)(1, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Conditional_1_Template, 1, 1);
|
|
1812
|
-
} if (rf & 2) {
|
|
1813
|
-
const $index_r9 = i0.ɵɵnextContext(3).$index;
|
|
1814
|
-
i0.ɵɵconditional($index_r9 === 0 ? 0 : 1);
|
|
1815
|
-
} }
|
|
1816
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1817
|
-
i0.ɵɵconditionalCreate(0, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_0_Template, 2, 3)(1, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_1_Template, 2, 4)(2, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Template, 2, 1);
|
|
1818
|
-
} if (rf & 2) {
|
|
1819
|
-
let tmp_17_0;
|
|
1820
|
-
const col_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
1821
|
-
i0.ɵɵconditional((tmp_17_0 = col_r5 == null ? null : col_r5.type) === "daysAgo" ? 0 : tmp_17_0 === "number" ? 1 : 2);
|
|
1822
|
-
} }
|
|
1823
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
1824
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
1825
|
-
i0.ɵɵlistener("click", function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Template_td_click_0_listener($event) { return $event.stopPropagation(); });
|
|
1826
|
-
i0.ɵɵconditionalCreate(1, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_1_Template, 4, 1, "span", 15)(2, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Template, 3, 5, "button", 16)(3, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Template, 3, 1);
|
|
1827
|
-
i0.ɵɵelementEnd();
|
|
1828
|
-
} if (rf & 2) {
|
|
1829
|
-
const row_r7 = ctx.$implicit;
|
|
1830
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
1831
|
-
i0.ɵɵstyleProp("border-bottom-color", row_r7.adjudicationPricePreferenceCalculationColor)("background", row_r7.backgroundShades == null ? null : row_r7.backgroundShades[col_r5.formControlName]);
|
|
1832
|
-
i0.ɵɵclassProp("price-preference-cell", true);
|
|
1833
|
-
i0.ɵɵadvance();
|
|
1834
|
-
i0.ɵɵconditional(col_r5.formControlName === "actions" ? 1 : col_r5.formControlName === "adj_microFlow_scoreSheetTotalPoints" ? 2 : 3);
|
|
1835
|
-
} }
|
|
1836
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
1837
|
-
i0.ɵɵelementContainerStart(0, 7);
|
|
1838
|
-
i0.ɵɵtemplate(1, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_th_1_Template, 2, 1, "th", 11)(2, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Template, 4, 7, "td", 12);
|
|
1839
|
-
i0.ɵɵelementContainerEnd();
|
|
1840
|
-
} if (rf & 2) {
|
|
1841
|
-
const col_r5 = ctx.$implicit;
|
|
1842
|
-
i0.ɵɵproperty("matColumnDef", col_r5.formControlName);
|
|
1843
|
-
} }
|
|
1844
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
1845
|
-
i0.ɵɵelement(0, "tr", 22);
|
|
1846
|
-
} }
|
|
1847
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
1848
|
-
i0.ɵɵelement(0, "tr", 23);
|
|
1849
|
-
} }
|
|
1850
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1851
|
-
i0.ɵɵconditionalCreate(0, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_Conditional_0_Template, 47, 0, "div", 4);
|
|
1852
|
-
i0.ɵɵelementStart(1, "table", 6);
|
|
1853
|
-
i0.ɵɵrepeaterCreate(2, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_For_3_Template, 3, 1, "ng-container", 7, _forTrack0$1);
|
|
1854
|
-
i0.ɵɵtemplate(4, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_tr_4_Template, 1, 0, "tr", 8)(5, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_tr_5_Template, 1, 0, "tr", 9);
|
|
1855
|
-
i0.ɵɵelementEnd();
|
|
1856
|
-
} if (rf & 2) {
|
|
1857
|
-
const vm_r3 = i0.ɵɵnextContext(2);
|
|
1858
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
1859
|
-
i0.ɵɵconditional(!ctx_r1.value || ctx_r1.value.length === 0 ? 0 : -1);
|
|
1860
|
-
i0.ɵɵadvance();
|
|
1861
|
-
i0.ɵɵproperty("dataSource", vm_r3.submissions);
|
|
1862
|
-
i0.ɵɵadvance();
|
|
1863
|
-
i0.ɵɵrepeater(vm_r3.displayColumns);
|
|
1864
|
-
i0.ɵɵadvance(2);
|
|
1865
|
-
i0.ɵɵproperty("matHeaderRowDef", vm_r3.displayCols);
|
|
1866
|
-
i0.ɵɵadvance();
|
|
1867
|
-
i0.ɵɵproperty("matRowDefColumns", vm_r3.displayCols);
|
|
1868
|
-
} }
|
|
1869
|
-
function PointAssignmentComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1870
|
-
i0.ɵɵconditionalCreate(0, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_0_Template, 19, 0, "div", 4)(1, PointAssignmentComponent_Conditional_0_Conditional_2_Conditional_1_Template, 6, 4);
|
|
1871
|
-
} if (rf & 2) {
|
|
1872
|
-
const vm_r3 = i0.ɵɵnextContext();
|
|
1873
|
-
i0.ɵɵconditional(vm_r3.submissions.length === 0 ? 0 : 1);
|
|
1874
|
-
} }
|
|
1875
|
-
function PointAssignmentComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1876
|
-
i0.ɵɵconditionalCreate(0, PointAssignmentComponent_Conditional_0_Conditional_0_Template, 2, 0, "div", 0)(1, PointAssignmentComponent_Conditional_0_Conditional_1_Template, 7, 1, "div", 1)(2, PointAssignmentComponent_Conditional_0_Conditional_2_Template, 2, 1);
|
|
1877
|
-
} if (rf & 2) {
|
|
1878
|
-
const vm_r3 = ctx;
|
|
1879
|
-
i0.ɵɵconditional(vm_r3.loading ? 0 : vm_r3.error ? 1 : 2);
|
|
1880
|
-
} }
|
|
1881
|
-
class PointAssignmentComponent {
|
|
1882
|
-
constructor() {
|
|
1883
|
-
this.#config = inject(NGX_T_FORMS_CONFIG_TOKEN);
|
|
1884
|
-
this.#dialog = inject(MatDialog);
|
|
1885
|
-
this.#destroyRef = inject(DestroyRef);
|
|
1886
|
-
this.#refreshTrigger = new BehaviorSubject(undefined);
|
|
1887
|
-
// A stream to push updates of the review values (`this.value`)
|
|
1888
|
-
this.#valueChanges$ = new BehaviorSubject([]);
|
|
1889
|
-
this.#initialState = {
|
|
1890
|
-
loading: true,
|
|
1891
|
-
submissions: [],
|
|
1892
|
-
columnMapping: {},
|
|
1893
|
-
displayCols: [],
|
|
1894
|
-
displayColumns: [],
|
|
1895
|
-
error: undefined,
|
|
1896
|
-
};
|
|
1897
|
-
this.#valueSignal = signal([], ...(ngDevMode ? [{ debugName: "#valueSignal" }] : /* istanbul ignore next */ []));
|
|
1898
|
-
this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
1899
|
-
// NOTE(phase-4): Trap 6 — parent (`workflow-adjudication-reactive-input`) binds a
|
|
1900
|
-
// `WorkflowAdjudicationValue | null` union of three incompatible shapes. Until the parent
|
|
1901
|
-
// template is split per adjudication step type, this input must remain `any`; narrow
|
|
1902
|
-
// inside `valueBridge`.
|
|
1903
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split parent template by adjudication step, then narrow this input.
|
|
1904
|
-
this.value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1905
|
-
this.valueBridge = effect(() => {
|
|
1906
|
-
const raw = this.value();
|
|
1907
|
-
const next = Array.isArray(raw) ? raw : [];
|
|
1908
|
-
if (_isEqual(next, this.#valueSignal()))
|
|
1909
|
-
return;
|
|
1910
|
-
this.#valueSignal.set(next);
|
|
1911
|
-
this.#valueChanges$.next(next);
|
|
1912
|
-
}, ...(ngDevMode ? [{ debugName: "valueBridge" }] : /* istanbul ignore next */ []));
|
|
1913
|
-
// NOTE(phase-4): Trap 6 — emitter forwards enriched `ISubmission[]` rows (with score-sheet
|
|
1914
|
-
// augmentation) back to the parent which then writes through the `WorkflowAdjudicationValue`
|
|
1915
|
-
// union. D-013: the parent (`workflow-adjudication-reactive-input`) `(pointsChange)="setValue($event)"`
|
|
1916
|
-
// binding only typechecks under strictTemplates if `$event` is assignable to that union; the
|
|
1917
|
-
// enriched `ISubmission[]` payload matches no single branch (missing formControlName/totalPoints/
|
|
1918
|
-
// description), so the emitted type must stay `any[]` to preserve parity. Narrows when the parent
|
|
1919
|
-
// template is split per adjudication step type.
|
|
1920
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split parent template by adjudication step, then narrow this emitter.
|
|
1921
|
-
this.pointsChange = output();
|
|
1922
|
-
// Stream for the initial data fetch. Only re-runs when `refreshTrigger` is fired.
|
|
1923
|
-
this.#fetchedData$ = this.#refreshTrigger.pipe(switchMap(() => this.#config.formBuilder.getCurrentStepMicroflowSubmissions().pipe(take(1))), shareReplay(1));
|
|
1924
|
-
this.vm$ = combineLatest([
|
|
1925
|
-
this.#fetchedData$,
|
|
1926
|
-
this.#valueChanges$,
|
|
1927
|
-
]).pipe(map(([res, reviewValues]) => {
|
|
1928
|
-
const { columnMapping, submissions, scoreSheet } = res;
|
|
1929
|
-
// group scoresheet by pointType
|
|
1930
|
-
const groupedScoreSheet = (scoreSheet || []).reduce((acc, curr) => {
|
|
1931
|
-
const pointType = curr.pointType || 'default';
|
|
1932
|
-
if (!acc[pointType]) {
|
|
1933
|
-
acc[pointType] = [];
|
|
1934
|
-
}
|
|
1935
|
-
acc[pointType].push(curr);
|
|
1936
|
-
return acc;
|
|
1937
|
-
}, {});
|
|
1938
|
-
const dataModel = {
|
|
1939
|
-
submissions: this.#enrichSubmissionsData(submissions || [], reviewValues),
|
|
1940
|
-
loading: false,
|
|
1941
|
-
error: undefined,
|
|
1942
|
-
groupedScoreSheet,
|
|
1943
|
-
scoreSheetGroups: Object.keys(groupedScoreSheet).map((key) => ({
|
|
1944
|
-
name: key.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'),
|
|
1945
|
-
key,
|
|
1946
|
-
})),
|
|
1947
|
-
columnMapping,
|
|
1948
|
-
displayCols: [
|
|
1949
|
-
'nameOfBidder',
|
|
1950
|
-
'adj_microFlow_review',
|
|
1951
|
-
'adjudicationPricePreferenceCalculation',
|
|
1952
|
-
'adj_microFlow_scoreSheetTotalPoints',
|
|
1953
|
-
'actions',
|
|
1954
|
-
],
|
|
1955
|
-
displayColumns: [
|
|
1956
|
-
{ label: 'name', formControlName: 'nameOfBidder', type: 'string' },
|
|
1957
|
-
{ label: 'Pref Calc', formControlName: 'adjudicationPricePreferenceCalculation', type: 'number', showColor: true },
|
|
1958
|
-
{ label: 'status', formControlName: 'adj_microFlow_review', type: 'string' },
|
|
1959
|
-
{ label: 'Score', formControlName: 'adj_microFlow_scoreSheetTotalPoints', type: 'number', showColor: true },
|
|
1960
|
-
{ label: '', formControlName: 'actions', type: 'string' },
|
|
1961
|
-
],
|
|
1962
|
-
};
|
|
1963
|
-
return { ...dataModel };
|
|
1964
|
-
}), startWith(this.#initialState), catchError(() => of({ ...this.#initialState, loading: false, error: 'Failed to load submissions.' })), shareReplay(1));
|
|
1965
|
-
this.readonly = computed(() => this.inputConfig()?.readonly ?? false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
|
|
1966
|
-
}
|
|
1967
|
-
#config;
|
|
1968
|
-
#dialog;
|
|
1969
|
-
#destroyRef;
|
|
1970
|
-
#refreshTrigger;
|
|
1971
|
-
// A stream to push updates of the review values (`this.value`)
|
|
1972
|
-
#valueChanges$;
|
|
1973
|
-
#initialState;
|
|
1974
|
-
#valueSignal;
|
|
1975
|
-
// Stream for the initial data fetch. Only re-runs when `refreshTrigger` is fired.
|
|
1976
|
-
#fetchedData$;
|
|
1977
|
-
loadMicroSubmissions() {
|
|
1978
|
-
this.#refreshTrigger.next();
|
|
1979
|
-
}
|
|
1980
|
-
viewMicroSubmission(res) {
|
|
1981
|
-
this.#config.formBuilder['previewWorkflowDocument'](res.id);
|
|
1982
|
-
}
|
|
1983
|
-
#enrichSubmissionsData(submissions, reviewValues) {
|
|
1984
|
-
const numberSets = new Map();
|
|
1985
|
-
numberSets.set('adjudicationPricePreferenceCalculation', submissions.map((s) => Number(s['adjudicationPricePreferenceCalculation'] || 0)));
|
|
1986
|
-
const list = submissions.length > 0 ? submissions : (reviewValues || []);
|
|
1987
|
-
return list.map((submission) => {
|
|
1988
|
-
const numbers = numberSets.get('adjudicationPricePreferenceCalculation') || [];
|
|
1989
|
-
const color = numbers.length === 0
|
|
1990
|
-
? submission['adjudicationPricePreferenceCalculationColor']
|
|
1991
|
-
: this.#getColorString(submission['adjudicationPricePreferenceCalculation'], numbers);
|
|
1992
|
-
const backgroundShades = { ['adjudicationPricePreferenceCalculation']: this.#getScoreShade(color ?? '') };
|
|
1993
|
-
const existing = this.#valueSignal()?.find((v) => v.id === submission.id);
|
|
1994
|
-
return {
|
|
1995
|
-
...submission,
|
|
1996
|
-
adj_microFlow_review: submission['adj_microFlow_review'] === 'compliant' ? '✅' : '❌',
|
|
1997
|
-
adjudicationPricePreferenceCalculationColor: color,
|
|
1998
|
-
backgroundShades,
|
|
1999
|
-
...existing,
|
|
2000
|
-
};
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
#getScoreShade(rgbColor) {
|
|
2004
|
-
if (!rgbColor)
|
|
2005
|
-
return '';
|
|
2006
|
-
return rgbColor.replace('rgb', 'rgba').replace(')', `, 0.1)`);
|
|
2007
|
-
}
|
|
2008
|
-
#getColorString(target, numbers) {
|
|
2009
|
-
return getColorForNumber(target, numbers, true);
|
|
2010
|
-
}
|
|
2011
|
-
openPointAssignmentDialog(row, groupedScoreSheet, scoreSheetGroups) {
|
|
2012
|
-
this.#dialog
|
|
2013
|
-
.open(PointAssignmentDialogComponent, {
|
|
2014
|
-
height: 'fit-content',
|
|
2015
|
-
data: {
|
|
2016
|
-
row,
|
|
2017
|
-
groupedScoreSheet,
|
|
2018
|
-
scoreSheetGroups,
|
|
2019
|
-
readonly: this.inputConfig()?.readonly || false,
|
|
2020
|
-
},
|
|
2021
|
-
autoFocus: false,
|
|
2022
|
-
disableClose: true,
|
|
2023
|
-
})
|
|
2024
|
-
.afterClosed()
|
|
2025
|
-
.pipe(take(1), switchMap((result) => {
|
|
2026
|
-
if (!result)
|
|
2027
|
-
return of(null);
|
|
2028
|
-
// Update the value with the new point assignments
|
|
2029
|
-
const assignment = Object.values(result).reduce((acc, curr) => {
|
|
2030
|
-
acc = { ...acc, ...curr };
|
|
2031
|
-
return acc;
|
|
2032
|
-
}, {});
|
|
2033
|
-
row['adj_microFlow_assignedScore'] = assignment;
|
|
2034
|
-
const currentList = this.#valueSignal() ?? [];
|
|
2035
|
-
const alreadyInValue = currentList.find((v) => v.id === row.id);
|
|
2036
|
-
let newValue;
|
|
2037
|
-
if (!alreadyInValue) {
|
|
2038
|
-
newValue = [
|
|
2039
|
-
...currentList,
|
|
2040
|
-
{
|
|
2041
|
-
...row,
|
|
2042
|
-
adj_microFlow_assignedScore: assignment,
|
|
2043
|
-
adj_microFlow_scoreSheetTotalPoints: Object.values(assignment).reduce((acc, curr) => acc + curr, 0),
|
|
2044
|
-
},
|
|
2045
|
-
];
|
|
2046
|
-
}
|
|
2047
|
-
else {
|
|
2048
|
-
newValue = currentList.map((v) => {
|
|
2049
|
-
if (v.id === row.id) {
|
|
2050
|
-
return {
|
|
2051
|
-
...v,
|
|
2052
|
-
adj_microFlow_scoreSheetTotalPoints: Object.values(assignment).reduce((acc, curr) => acc + curr, 0),
|
|
2053
|
-
adj_microFlow_assignedScore: assignment,
|
|
2054
|
-
};
|
|
2055
|
-
}
|
|
2056
|
-
return v;
|
|
2057
|
-
});
|
|
2058
|
-
}
|
|
2059
|
-
return of(newValue);
|
|
2060
|
-
}), tap((newValue) => {
|
|
2061
|
-
if (!newValue || this.inputConfig()?.readonly)
|
|
2062
|
-
return;
|
|
2063
|
-
this.pointsChange.emit(newValue);
|
|
2064
|
-
}), takeUntilDestroyed(this.#destroyRef))
|
|
2065
|
-
.subscribe();
|
|
2066
|
-
}
|
|
2067
|
-
static { this.ɵfac = function PointAssignmentComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PointAssignmentComponent)(); }; }
|
|
2068
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PointAssignmentComponent, selectors: [["lib-point-assignment"]], inputs: { inputConfig: [1, "inputConfig"], value: [1, "value"] }, outputs: { pointsChange: "pointsChange" }, decls: 2, vars: 3, consts: [[2, "display", "flex", "justify-content", "center", "align-items", "center", "padding", "24px", "width", "100%"], [1, "info-card", "error-card"], [1, "info-title"], ["mat-raised-button", "", "color", "primary", 3, "click"], [1, "info-card"], ["mat-raised-button", "", "color", "primary", 1, "load-button", 3, "click"], ["mat-table", "", 3, "dataSource"], [3, "matColumnDef"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], [1, "smallIcon"], ["mat-header-cell", "", "style", "padding:4px", 4, "matHeaderCellDef"], ["mat-cell", "", "mat-ripple", "", "class", "table-cell", 3, "price-preference-cell", "border-bottom-color", "background", "click", 4, "matCellDef"], ["mat-header-cell", "", 2, "padding", "4px"], ["mat-cell", "", "mat-ripple", "", 1, "table-cell", 3, "click"], [2, "display", "flex", "align-items", "center"], ["mat-stroked-button", "", 3, "id"], ["matTooltipPosition", "before", "mat-icon-button", "", 3, "click", "matTooltip"], ["mat-stroked-button", "", 3, "click", "id"], [1, "main-submission-text"], [2, "font-size", "1em", "height", "16px", "width", "16px"], [1, "secondary-text"], ["mat-header-row", ""], ["mat-row", ""]], template: function PointAssignmentComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2069
|
-
i0.ɵɵconditionalCreate(0, PointAssignmentComponent_Conditional_0_Template, 3, 1);
|
|
2070
|
-
i0.ɵɵpipe(1, "async");
|
|
2071
|
-
} if (rf & 2) {
|
|
2072
|
-
let tmp_0_0;
|
|
2073
|
-
i0.ɵɵconditional((tmp_0_0 = i0.ɵɵpipeBind1(1, 1, ctx.vm$)) ? 0 : -1, tmp_0_0);
|
|
2074
|
-
} }, dependencies: [FormsModule,
|
|
2075
|
-
ReactiveFormsModule,
|
|
2076
|
-
MatButtonModule, i2$1.MatButton, i2$1.MatIconButton, MatIconModule, i3.MatIcon, MatProgressSpinnerModule, i4.MatProgressSpinner, MatRippleModule, i7.MatRipple, 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, MatTooltipModule, i5$2.MatTooltip, AsyncPipe,
|
|
2077
|
-
DecimalPipe,
|
|
2078
|
-
DaysAgoPipe], styles: [".number[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}.number-cell[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text[_ngcontent-%COMP%]{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.mat-column-adj_microFlow_review[_ngcontent-%COMP%]{max-width:18px;text-align:center}.mat-column-nameOfBidder[_ngcontent-%COMP%]{max-width:90px}.mat-column-actions[_ngcontent-%COMP%]{padding:0;max-width:80px}.mat-column-status[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:.875em}[_nghost-%COMP%] .notes-card[_ngcontent-%COMP%]{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.table-cell[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.mat-column-adjudicationPricePreferenceCalculation[_ngcontent-%COMP%]{max-width:18px;text-align:center}.mat-column-adj_microFlow_scoreSheetTotalPoints[_ngcontent-%COMP%]{width:148px;text-align:center}.mat-column-actions[_ngcontent-%COMP%]{max-width:14px;text-align:center}.ngx-t-forms-point-assignment-menu[_ngcontent-%COMP%]{width:fit-content!important;max-width:400px!important}.point-assignment-menu[_ngcontent-%COMP%]{padding-left:28px;padding-right:28px}"], changeDetection: 0 }); }
|
|
2079
|
-
}
|
|
2080
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PointAssignmentComponent, [{
|
|
2081
|
-
type: Component,
|
|
2082
|
-
args: [{ selector: 'lib-point-assignment', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
|
|
2083
|
-
AsyncPipe,
|
|
2084
|
-
DecimalPipe,
|
|
2085
|
-
FormsModule,
|
|
2086
|
-
ReactiveFormsModule,
|
|
2087
|
-
MatButtonModule,
|
|
2088
|
-
MatIconModule,
|
|
2089
|
-
MatProgressSpinnerModule,
|
|
2090
|
-
MatRippleModule,
|
|
2091
|
-
MatTableModule,
|
|
2092
|
-
MatTooltipModule,
|
|
2093
|
-
DaysAgoPipe,
|
|
2094
|
-
], template: "@if (vm$ | async; as vm) {\r\n @if (vm.loading) {\r\n <div style=\"display: flex; justify-content: center; align-items: center; padding:24px;width: 100%;\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n } @else if (vm.error) {\r\n <div class=\"info-card error-card\">\r\n <h5 class=\"info-title\">\u274C Failed to load data</h5>\r\n <p>{{ vm.error }}</p>\r\n <button mat-raised-button color=\"primary\" (click)=\"loadMicroSubmissions()\">\r\n Try Again\r\n </button>\r\n </div>\r\n } @else {\r\n @if (vm.submissions.length === 0) {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\u2139\uFE0F There are no submissions to display.</h5>\r\n <ul>\r\n <li>This can happen if <strong>no one has responded</strong> yet, or if <strong>none of the submission were\r\n compliant </strong>.</li>\r\n <li>If you are expecting to see submissions, try clicking the <strong>Refresh</strong> button.</li>\r\n </ul>\r\n <button mat-raised-button color=\"primary\" (click)=\"loadMicroSubmissions()\" class=\"load-button\">\r\n Refresh\r\n </button>\r\n </div>\r\n } @else {\r\n @if (!value || value.length === 0) {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\uD83D\uDCDD How to Review Submissions</h5>\r\n <ol>\r\n <li>\r\n <strong>View Response:</strong> Click the <strong>Preview</strong> (<mat-icon\r\n class=\"smallIcon\">preview</mat-icon>) icon to see the full submission.\r\n </li>\r\n <li>\r\n <strong>Set Status:</strong> Use the dropdown to select <strong>Compliant</strong> or\r\n <strong>Non-compliant</strong>.\r\n </li>\r\n <li>\r\n <strong>Add Note (If Non-compliant):</strong>\r\n <ul>\r\n <li>If you select <strong>Non-compliant</strong>, you <strong>must</strong> add a note.</li>\r\n <li>Click the <strong>Add Note</strong> (<mat-icon class=\"smallIcon\">add_comment</mat-icon>) icon, write your\r\n feedback, and hit <strong>Save Feedback</strong>. Your note will be visible to the applicant.</li>\r\n </ul>\r\n </li>\r\n </ol>\r\n </div>\r\n }\r\n <table mat-table [dataSource]=\"vm.submissions\">\r\n @for (col of vm.displayColumns; track col.formControlName) {\r\n <ng-container [matColumnDef]=\"col.formControlName\">\r\n <th mat-header-cell *matHeaderCellDef style=\"padding:4px\">\r\n {{ col.label }}\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\" mat-ripple class=\"table-cell\" (click)=\"$event.stopPropagation()\"\r\n [class.price-preference-cell]=\"true\"\r\n [style.border-bottom-color]=\"row.adjudicationPricePreferenceCalculationColor\"\r\n [style.background]=\"row.backgroundShades?.[col.formControlName]\">\r\n @if (col.formControlName === 'actions') {\r\n <span style=\"display: flex; align-items: center;\">\r\n <button matTooltipPosition=\"before\"\r\n [matTooltip]=\"'View and review **' + row[vm.columnMapping.respondentNameKey] + '\\'s\\' Submission'\"\r\n (click)=\"viewMicroSubmission(row)\" mat-icon-button>\r\n <mat-icon>preview</mat-icon>\r\n </button>\r\n </span>\r\n } @else if (col.formControlName === 'adj_microFlow_scoreSheetTotalPoints') {\r\n <button\r\n (click)=\"openPointAssignmentDialog(row, vm?.groupedScoreSheet, vm.scoreSheetGroups)\"\r\n [id]=\"row.id\" mat-stroked-button>\r\n {{ (row[col.formControlName] | number:'0.0-0') || 'Assign Points' }}\r\n </button>\r\n } @else {\r\n @switch (col?.type) {\r\n @case ('daysAgo') {\r\n {{ row[col.formControlName] | daysAgo }}\r\n }\r\n @case ('number') {\r\n {{ (row[col.formControlName] | number:'0.0-0') || 'N/A' }}\r\n }\r\n @default {\r\n @if ($index === 0) {\r\n <span class=\"main-submission-text\">\r\n <mat-icon style=\"font-size: 1em;height:16px;width:16px\">domain</mat-icon>\r\n <strong>\r\n {{ row[col.formControlName] }}\r\n </strong>\r\n </span>\r\n <span class=\"secondary-text\">\r\n <mat-icon>fingerprint</mat-icon>\r\n {{ row[vm.columnMapping.respondentCodeKey] }}\r\n <mat-icon>more_time</mat-icon>\r\n {{ row[vm.columnMapping.responseDateKey || ''] | daysAgo }}\r\n </span>\r\n } @else {\r\n {{ row[col.formControlName] }}\r\n }\r\n }\r\n }\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"vm.displayCols\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: vm.displayCols\"></tr>\r\n </table>\r\n }\r\n }\r\n}\r\n", styles: [".number{display:flex;justify-content:space-between;align-items:center}li{font-size:.75em}ol,ul{margin-top:8px}.number-cell{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text mat-icon{font-size:.875em;width:14px;height:14px}.mat-column-adj_microFlow_review{max-width:18px;text-align:center}.mat-column-nameOfBidder{max-width:90px}.mat-column-actions{padding:0;max-width:80px}.mat-column-status{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text{display:flex;align-items:center;gap:8px;font-size:.875em}:host .notes-card{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon{font-size:.875em;width:14px;height:14px}.table-cell{padding-left:4px;padding-right:4px}.mat-column-adjudicationPricePreferenceCalculation{max-width:18px;text-align:center}.mat-column-adj_microFlow_scoreSheetTotalPoints{width:148px;text-align:center}.mat-column-actions{max-width:14px;text-align:center}.ngx-t-forms-point-assignment-menu{width:fit-content!important;max-width:400px!important}.point-assignment-menu{padding-left:28px;padding-right:28px}\n"] }]
|
|
2095
|
-
}], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], pointsChange: [{ type: i0.Output, args: ["pointsChange"] }] }); })();
|
|
2096
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PointAssignmentComponent, { className: "PointAssignmentComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/point-assignment/point-assignment.component.ts", lineNumber: 55 }); })();
|
|
2097
|
-
|
|
2098
|
-
const _forTrack0 = ($index, $item) => $item.formControlName;
|
|
2099
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
2100
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
2101
|
-
i0.ɵɵelement(1, "mat-spinner");
|
|
2102
|
-
i0.ɵɵelementEnd();
|
|
2103
|
-
} }
|
|
2104
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2105
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
2106
|
-
i0.ɵɵelementStart(0, "div", 1)(1, "h5", 2);
|
|
2107
|
-
i0.ɵɵtext(2, "\u274C Failed to load data");
|
|
2108
|
-
i0.ɵɵelementEnd();
|
|
2109
|
-
i0.ɵɵelementStart(3, "p");
|
|
2110
|
-
i0.ɵɵtext(4);
|
|
2111
|
-
i0.ɵɵelementEnd();
|
|
2112
|
-
i0.ɵɵelementStart(5, "button", 3);
|
|
2113
|
-
i0.ɵɵlistener("click", function SupplierSelectionComponent_Conditional_0_Conditional_1_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.loadMicroSubmissions()); });
|
|
2114
|
-
i0.ɵɵtext(6, " Try Again ");
|
|
2115
|
-
i0.ɵɵelementEnd()();
|
|
2116
|
-
} if (rf & 2) {
|
|
2117
|
-
const vm_r3 = i0.ɵɵnextContext();
|
|
2118
|
-
i0.ɵɵadvance(4);
|
|
2119
|
-
i0.ɵɵtextInterpolate(vm_r3.error);
|
|
2120
|
-
} }
|
|
2121
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
2122
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
2123
|
-
i0.ɵɵelementStart(0, "div", 4)(1, "h5", 2);
|
|
2124
|
-
i0.ɵɵtext(2, "\u2139\uFE0F There are no submissions to display.");
|
|
2125
|
-
i0.ɵɵelementEnd();
|
|
2126
|
-
i0.ɵɵelementStart(3, "ul")(4, "li");
|
|
2127
|
-
i0.ɵɵtext(5, "This can happen if ");
|
|
2128
|
-
i0.ɵɵelementStart(6, "strong");
|
|
2129
|
-
i0.ɵɵtext(7, "no one has responded");
|
|
2130
|
-
i0.ɵɵelementEnd();
|
|
2131
|
-
i0.ɵɵtext(8, " yet, or if ");
|
|
2132
|
-
i0.ɵɵelementStart(9, "strong");
|
|
2133
|
-
i0.ɵɵtext(10, "none of the submission were compliant ");
|
|
2134
|
-
i0.ɵɵelementEnd();
|
|
2135
|
-
i0.ɵɵtext(11, ".");
|
|
2136
|
-
i0.ɵɵelementEnd();
|
|
2137
|
-
i0.ɵɵelementStart(12, "li");
|
|
2138
|
-
i0.ɵɵtext(13, "If you are expecting to see submissions, try clicking the ");
|
|
2139
|
-
i0.ɵɵelementStart(14, "strong");
|
|
2140
|
-
i0.ɵɵtext(15, "Refresh");
|
|
2141
|
-
i0.ɵɵelementEnd();
|
|
2142
|
-
i0.ɵɵtext(16, " button.");
|
|
2143
|
-
i0.ɵɵelementEnd()();
|
|
2144
|
-
i0.ɵɵelementStart(17, "button", 5);
|
|
2145
|
-
i0.ɵɵlistener("click", function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_0_Template_button_click_17_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.loadMicroSubmissions()); });
|
|
2146
|
-
i0.ɵɵtext(18, " Refresh ");
|
|
2147
|
-
i0.ɵɵelementEnd()();
|
|
2148
|
-
} }
|
|
2149
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
2150
|
-
i0.ɵɵelementStart(0, "div", 4)(1, "h5", 2);
|
|
2151
|
-
i0.ɵɵtext(2, "\uD83D\uDCDD How to Appoint");
|
|
2152
|
-
i0.ɵɵelementEnd();
|
|
2153
|
-
i0.ɵɵelementStart(3, "ol")(4, "li")(5, "strong");
|
|
2154
|
-
i0.ɵɵtext(6, "View Response:");
|
|
2155
|
-
i0.ɵɵelementEnd();
|
|
2156
|
-
i0.ɵɵtext(7, " Click the ");
|
|
2157
|
-
i0.ɵɵelementStart(8, "strong");
|
|
2158
|
-
i0.ɵɵtext(9, "Preview");
|
|
2159
|
-
i0.ɵɵelementEnd();
|
|
2160
|
-
i0.ɵɵtext(10, " (");
|
|
2161
|
-
i0.ɵɵelementStart(11, "mat-icon", 10);
|
|
2162
|
-
i0.ɵɵtext(12, "preview");
|
|
2163
|
-
i0.ɵɵelementEnd();
|
|
2164
|
-
i0.ɵɵtext(13, ") icon to see the full submission. ");
|
|
2165
|
-
i0.ɵɵelementEnd();
|
|
2166
|
-
i0.ɵɵelementStart(14, "li")(15, "strong");
|
|
2167
|
-
i0.ɵɵtext(16, "Appoint:");
|
|
2168
|
-
i0.ɵɵelementEnd();
|
|
2169
|
-
i0.ɵɵtext(17, " Click the ");
|
|
2170
|
-
i0.ɵɵelementStart(18, "strong");
|
|
2171
|
-
i0.ɵɵtext(19, "Appoint");
|
|
2172
|
-
i0.ɵɵelementEnd();
|
|
2173
|
-
i0.ɵɵtext(20, " button to appoint the supplier. ");
|
|
2174
|
-
i0.ɵɵelementEnd()()();
|
|
2175
|
-
} }
|
|
2176
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
2177
|
-
i0.ɵɵelementStart(0, "th", 13);
|
|
2178
|
-
i0.ɵɵtext(1);
|
|
2179
|
-
i0.ɵɵelementEnd();
|
|
2180
|
-
} if (rf & 2) {
|
|
2181
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
2182
|
-
i0.ɵɵadvance();
|
|
2183
|
-
i0.ɵɵtextInterpolate1(" ", col_r5.label, " ");
|
|
2184
|
-
} }
|
|
2185
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2186
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
2187
|
-
i0.ɵɵelementStart(0, "span", 15)(1, "button", 16);
|
|
2188
|
-
i0.ɵɵlistener("click", function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_1_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const row_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.viewMicroSubmission(row_r7)); });
|
|
2189
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
2190
|
-
i0.ɵɵtext(3, "preview");
|
|
2191
|
-
i0.ɵɵelementEnd()()();
|
|
2192
|
-
} if (rf & 2) {
|
|
2193
|
-
const row_r7 = i0.ɵɵnextContext().$implicit;
|
|
2194
|
-
const vm_r3 = i0.ɵɵnextContext(4);
|
|
2195
|
-
i0.ɵɵadvance();
|
|
2196
|
-
i0.ɵɵproperty("matTooltip", `View and review **` + row_r7[vm_r3.columnMapping.respondentNameKey] + `** 's' Submission`);
|
|
2197
|
-
} }
|
|
2198
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
2199
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
2200
|
-
i0.ɵɵelementStart(0, "button", 19);
|
|
2201
|
-
i0.ɵɵlistener("click", function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const row_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.appointASupplier(row_r7)); });
|
|
2202
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
2203
|
-
i0.ɵɵtext(2, " check_circle ");
|
|
2204
|
-
i0.ɵɵelementEnd();
|
|
2205
|
-
i0.ɵɵtext(3, " Appointed ");
|
|
2206
|
-
i0.ɵɵelementEnd();
|
|
2207
|
-
} }
|
|
2208
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2209
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
2210
|
-
i0.ɵɵelementStart(0, "button", 20);
|
|
2211
|
-
i0.ɵɵlistener("click", function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const row_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.appointASupplier(row_r7)); });
|
|
2212
|
-
i0.ɵɵtext(1, " Appoint ");
|
|
2213
|
-
i0.ɵɵelementEnd();
|
|
2214
|
-
} }
|
|
2215
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
2216
|
-
i0.ɵɵconditionalCreate(0, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Conditional_0_Template, 4, 0, "button", 17)(1, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Conditional_1_Template, 2, 0, "button", 18);
|
|
2217
|
-
} if (rf & 2) {
|
|
2218
|
-
const row_r7 = i0.ɵɵnextContext().$implicit;
|
|
2219
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
2220
|
-
i0.ɵɵconditional(row_r7[col_r5.formControlName] === true ? 0 : 1);
|
|
2221
|
-
} }
|
|
2222
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_0_Template(rf, ctx) { if (rf & 1) {
|
|
2223
|
-
i0.ɵɵtext(0);
|
|
2224
|
-
i0.ɵɵpipe(1, "daysAgo");
|
|
2225
|
-
} if (rf & 2) {
|
|
2226
|
-
const row_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
2227
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
2228
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, row_r7[col_r5.formControlName]), " ");
|
|
2229
|
-
} }
|
|
2230
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
2231
|
-
i0.ɵɵtext(0);
|
|
2232
|
-
i0.ɵɵpipe(1, "number");
|
|
2233
|
-
} if (rf & 2) {
|
|
2234
|
-
const row_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
2235
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
2236
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(1, 1, row_r7[col_r5.formControlName], "0.0-0") || "N/A", " ");
|
|
2237
|
-
} }
|
|
2238
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
2239
|
-
i0.ɵɵelementStart(0, "span", 21)(1, "mat-icon", 22);
|
|
2240
|
-
i0.ɵɵtext(2, "domain");
|
|
2241
|
-
i0.ɵɵelementEnd();
|
|
2242
|
-
i0.ɵɵelementStart(3, "strong");
|
|
2243
|
-
i0.ɵɵtext(4);
|
|
2244
|
-
i0.ɵɵelementEnd()();
|
|
2245
|
-
i0.ɵɵelementStart(5, "span", 23)(6, "mat-icon");
|
|
2246
|
-
i0.ɵɵtext(7, "fingerprint");
|
|
2247
|
-
i0.ɵɵelementEnd();
|
|
2248
|
-
i0.ɵɵtext(8);
|
|
2249
|
-
i0.ɵɵelementStart(9, "mat-icon");
|
|
2250
|
-
i0.ɵɵtext(10, "more_time");
|
|
2251
|
-
i0.ɵɵelementEnd();
|
|
2252
|
-
i0.ɵɵtext(11);
|
|
2253
|
-
i0.ɵɵpipe(12, "daysAgo");
|
|
2254
|
-
i0.ɵɵelementEnd();
|
|
2255
|
-
} if (rf & 2) {
|
|
2256
|
-
const row_r7 = i0.ɵɵnextContext(3).$implicit;
|
|
2257
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
2258
|
-
const vm_r3 = i0.ɵɵnextContext(3);
|
|
2259
|
-
i0.ɵɵadvance(4);
|
|
2260
|
-
i0.ɵɵtextInterpolate1(" ", row_r7[col_r5.formControlName], " ");
|
|
2261
|
-
i0.ɵɵadvance(4);
|
|
2262
|
-
i0.ɵɵtextInterpolate1(" ", row_r7[vm_r3.columnMapping.respondentCodeKey], " ");
|
|
2263
|
-
i0.ɵɵadvance(3);
|
|
2264
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 3, row_r7[vm_r3.columnMapping.responseDateKey || ""]), " ");
|
|
2265
|
-
} }
|
|
2266
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2267
|
-
i0.ɵɵtext(0);
|
|
2268
|
-
} if (rf & 2) {
|
|
2269
|
-
const row_r7 = i0.ɵɵnextContext(3).$implicit;
|
|
2270
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
2271
|
-
i0.ɵɵtextInterpolate1(" ", row_r7[col_r5.formControlName], " ");
|
|
2272
|
-
} }
|
|
2273
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
2274
|
-
i0.ɵɵconditionalCreate(0, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Conditional_0_Template, 13, 5)(1, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Conditional_1_Template, 1, 1);
|
|
2275
|
-
} if (rf & 2) {
|
|
2276
|
-
const $index_r10 = i0.ɵɵnextContext(3).$index;
|
|
2277
|
-
i0.ɵɵconditional($index_r10 === 0 ? 0 : 1);
|
|
2278
|
-
} }
|
|
2279
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
2280
|
-
i0.ɵɵconditionalCreate(0, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_0_Template, 2, 3)(1, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_1_Template, 2, 4)(2, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Case_2_Template, 2, 1);
|
|
2281
|
-
} if (rf & 2) {
|
|
2282
|
-
let tmp_17_0;
|
|
2283
|
-
const col_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
2284
|
-
i0.ɵɵconditional((tmp_17_0 = col_r5 == null ? null : col_r5.type) === "daysAgo" ? 0 : tmp_17_0 === "number" ? 1 : 2);
|
|
2285
|
-
} }
|
|
2286
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
2287
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
2288
|
-
i0.ɵɵlistener("click", function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Template_td_click_0_listener($event) { return $event.stopPropagation(); });
|
|
2289
|
-
i0.ɵɵconditionalCreate(1, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_1_Template, 4, 1, "span", 15)(2, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_2_Template, 2, 1)(3, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Conditional_3_Template, 3, 1);
|
|
2290
|
-
i0.ɵɵelementEnd();
|
|
2291
|
-
} if (rf & 2) {
|
|
2292
|
-
const row_r7 = ctx.$implicit;
|
|
2293
|
-
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
2294
|
-
i0.ɵɵstyleProp("border-bottom-color", row_r7.colColors[col_r5.formControlName])("background", row_r7.backgroundShades == null ? null : row_r7.backgroundShades[col_r5.formControlName]);
|
|
2295
|
-
i0.ɵɵclassProp("price-preference-cell", true);
|
|
2296
|
-
i0.ɵɵadvance();
|
|
2297
|
-
i0.ɵɵconditional(col_r5.formControlName === "actions" ? 1 : col_r5.formControlName === "adj_microFlow_supplierAppointed" ? 2 : 3);
|
|
2298
|
-
} }
|
|
2299
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
2300
|
-
i0.ɵɵelementContainerStart(0, 7);
|
|
2301
|
-
i0.ɵɵtemplate(1, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_th_1_Template, 2, 1, "th", 11)(2, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_td_2_Template, 4, 7, "td", 12);
|
|
2302
|
-
i0.ɵɵelementContainerEnd();
|
|
2303
|
-
} if (rf & 2) {
|
|
2304
|
-
const col_r5 = ctx.$implicit;
|
|
2305
|
-
i0.ɵɵproperty("matColumnDef", col_r5.formControlName);
|
|
2306
|
-
} }
|
|
2307
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
2308
|
-
i0.ɵɵelement(0, "tr", 24);
|
|
2309
|
-
} }
|
|
2310
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
2311
|
-
i0.ɵɵelement(0, "tr", 25);
|
|
2312
|
-
} }
|
|
2313
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2314
|
-
i0.ɵɵconditionalCreate(0, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_Conditional_0_Template, 21, 0, "div", 4);
|
|
2315
|
-
i0.ɵɵelementStart(1, "table", 6);
|
|
2316
|
-
i0.ɵɵrepeaterCreate(2, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_For_3_Template, 3, 1, "ng-container", 7, _forTrack0);
|
|
2317
|
-
i0.ɵɵtemplate(4, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_tr_4_Template, 1, 0, "tr", 8)(5, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_tr_5_Template, 1, 0, "tr", 9);
|
|
2318
|
-
i0.ɵɵelementEnd();
|
|
2319
|
-
} if (rf & 2) {
|
|
2320
|
-
const vm_r3 = i0.ɵɵnextContext(2);
|
|
2321
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2322
|
-
i0.ɵɵconditional(!ctx_r1.value || ctx_r1.value.length === 0 ? 0 : -1);
|
|
2323
|
-
i0.ɵɵadvance();
|
|
2324
|
-
i0.ɵɵproperty("dataSource", vm_r3.submissions);
|
|
2325
|
-
i0.ɵɵadvance();
|
|
2326
|
-
i0.ɵɵrepeater(vm_r3.displayColumns);
|
|
2327
|
-
i0.ɵɵadvance(2);
|
|
2328
|
-
i0.ɵɵproperty("matHeaderRowDef", vm_r3.displayCols);
|
|
2329
|
-
i0.ɵɵadvance();
|
|
2330
|
-
i0.ɵɵproperty("matRowDefColumns", vm_r3.displayCols);
|
|
2331
|
-
} }
|
|
2332
|
-
function SupplierSelectionComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
2333
|
-
i0.ɵɵconditionalCreate(0, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_0_Template, 19, 0, "div", 4)(1, SupplierSelectionComponent_Conditional_0_Conditional_2_Conditional_1_Template, 6, 4);
|
|
2334
|
-
} if (rf & 2) {
|
|
2335
|
-
const vm_r3 = i0.ɵɵnextContext();
|
|
2336
|
-
i0.ɵɵconditional(vm_r3.submissions.length === 0 ? 0 : 1);
|
|
2337
|
-
} }
|
|
2338
|
-
function SupplierSelectionComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
2339
|
-
i0.ɵɵconditionalCreate(0, SupplierSelectionComponent_Conditional_0_Conditional_0_Template, 2, 0, "div", 0)(1, SupplierSelectionComponent_Conditional_0_Conditional_1_Template, 7, 1, "div", 1)(2, SupplierSelectionComponent_Conditional_0_Conditional_2_Template, 2, 1);
|
|
2340
|
-
} if (rf & 2) {
|
|
2341
|
-
const vm_r3 = ctx;
|
|
2342
|
-
i0.ɵɵconditional(vm_r3.loading ? 0 : vm_r3.error ? 1 : 2);
|
|
2343
|
-
} }
|
|
2344
|
-
function toSupplierValue(input) {
|
|
2345
|
-
// Runtime guard — the parent supplies a union of array / object payloads.
|
|
2346
|
-
return Array.isArray(input) ? input : [];
|
|
2347
|
-
}
|
|
2348
|
-
class SupplierSelectionComponent {
|
|
2349
|
-
constructor() {
|
|
2350
|
-
this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
2351
|
-
// Phase-4 TODO: parent (workflow-adjudication-reactive-input) accepts broader `WorkflowAdjudicationValue` union.
|
|
2352
|
-
// Emitting narrower `SupplierRow[]` is structurally compatible at runtime; output widened to `any` for template typecheck (Trap 6).
|
|
2353
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2354
|
-
this.supplierSelection = output();
|
|
2355
|
-
this.#config = inject(NGX_T_FORMS_CONFIG_TOKEN);
|
|
2356
|
-
this.#destroyRef = inject(DestroyRef);
|
|
2357
|
-
this.#dialog = inject(MatDialog);
|
|
2358
|
-
this.#refreshTrigger = new BehaviorSubject(undefined);
|
|
2359
|
-
// A stream to push updates of the review values (`this.value`)
|
|
2360
|
-
this.#valueChanges$ = new BehaviorSubject([]);
|
|
2361
|
-
this.#initialState = {
|
|
2362
|
-
loading: true,
|
|
2363
|
-
submissions: [],
|
|
2364
|
-
columnMapping: {},
|
|
2365
|
-
displayCols: [],
|
|
2366
|
-
displayColumns: [],
|
|
2367
|
-
error: undefined,
|
|
2368
|
-
};
|
|
2369
|
-
this.#value = [];
|
|
2370
|
-
// NOTE(phase-4): Trap 6 — parent (`workflow-adjudication-reactive-input`) binds a
|
|
2371
|
-
// `WorkflowAdjudicationValue | null` union of three incompatible shapes. The template
|
|
2372
|
-
// also reads `value.length` directly. Until parent template is split per adjudication step
|
|
2373
|
-
// the input must remain `any`; narrow inside the `valueBridge` via `toSupplierValue`.
|
|
2374
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split parent template by adjudication step, then narrow this input.
|
|
2375
|
-
this.value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2376
|
-
this.valueBridge = effect(() => {
|
|
2377
|
-
const next = toSupplierValue(this.value());
|
|
2378
|
-
if (_isEqual(next, this.#value))
|
|
2379
|
-
return;
|
|
2380
|
-
this.#value = next;
|
|
2381
|
-
this.#valueChanges$.next(this.#value);
|
|
2382
|
-
}, ...(ngDevMode ? [{ debugName: "valueBridge" }] : /* istanbul ignore next */ []));
|
|
2383
|
-
this.#fetchedData$ = this.#refreshTrigger.pipe(switchMap(() => this.#config.formBuilder.getCurrentStepMicroflowSubmissions().pipe(take(1))), shareReplay(1));
|
|
2384
|
-
this.vm$ = combineLatest([
|
|
2385
|
-
this.#fetchedData$,
|
|
2386
|
-
this.#valueChanges$,
|
|
2387
|
-
]).pipe(map(([res, reviewValues]) => {
|
|
2388
|
-
const { columnMapping, submissions, scoreSheet, adjudicationPricePreferenceCalculationFormula, } = res;
|
|
2389
|
-
//group scoreSheet by pointType
|
|
2390
|
-
const groupedScoreSheet = (scoreSheet || []).reduce((acc, curr) => {
|
|
2391
|
-
const pointType = curr.pointType || 'default';
|
|
2392
|
-
if (!acc[pointType]) {
|
|
2393
|
-
acc[pointType] = [];
|
|
2394
|
-
}
|
|
2395
|
-
acc[pointType].push(curr);
|
|
2396
|
-
return acc;
|
|
2397
|
-
}, {});
|
|
2398
|
-
const totalPossibleScore = (scoreSheet || []).reduce((acc, curr) => acc + curr.totalPoints, 0);
|
|
2399
|
-
const maxPointsAwarded = adjudicationPricePreferenceCalculationFormula ===
|
|
2400
|
-
'80(1-((totalBidPrice-Pmin)/(Pmin)))'
|
|
2401
|
-
? 20
|
|
2402
|
-
: adjudicationPricePreferenceCalculationFormula ===
|
|
2403
|
-
'90(1-((totalBidPrice-Pmin)/(Pmin)))'
|
|
2404
|
-
? 10
|
|
2405
|
-
: 100;
|
|
2406
|
-
const dataModel = {
|
|
2407
|
-
submissions: this.#enrichSubmissionsData(submissions || [], reviewValues, totalPossibleScore, maxPointsAwarded),
|
|
2408
|
-
loading: false,
|
|
2409
|
-
error: undefined,
|
|
2410
|
-
groupedScoreSheet,
|
|
2411
|
-
scoreSheetGroups: Object.keys(groupedScoreSheet).map((key) => ({
|
|
2412
|
-
name: key
|
|
2413
|
-
.replace(/([a-z])([A-Z])/g, '$1 $2')
|
|
2414
|
-
.replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'),
|
|
2415
|
-
key: key,
|
|
2416
|
-
})),
|
|
2417
|
-
maxPointsAwarded,
|
|
2418
|
-
totalPossibleScore,
|
|
2419
|
-
columnMapping: columnMapping,
|
|
2420
|
-
displayCols: [
|
|
2421
|
-
'nameOfBidder',
|
|
2422
|
-
'adjudicationPricePreferenceCalculation',
|
|
2423
|
-
'adj_microFlow_pointsAwarded',
|
|
2424
|
-
'adj_microFlow_pricePointCalculation',
|
|
2425
|
-
'actions',
|
|
2426
|
-
'adj_microFlow_supplierAppointed',
|
|
2427
|
-
],
|
|
2428
|
-
displayColumns: [
|
|
2429
|
-
{ label: 'name', formControlName: 'nameOfBidder', type: InputDataTypes.String },
|
|
2430
|
-
{
|
|
2431
|
-
label: `${100 - maxPointsAwarded}`,
|
|
2432
|
-
formControlName: 'adjudicationPricePreferenceCalculation',
|
|
2433
|
-
type: InputDataTypes.Number,
|
|
2434
|
-
},
|
|
2435
|
-
{
|
|
2436
|
-
label: `${maxPointsAwarded}`,
|
|
2437
|
-
formControlName: 'adj_microFlow_pointsAwarded',
|
|
2438
|
-
type: InputDataTypes.Number,
|
|
2439
|
-
},
|
|
2440
|
-
{
|
|
2441
|
-
label: 'Total',
|
|
2442
|
-
formControlName: 'adj_microFlow_pricePointCalculation',
|
|
2443
|
-
type: InputDataTypes.Number,
|
|
2444
|
-
},
|
|
2445
|
-
// `actions` is an internal cell type used by the template `@switch`; widened locally in `tableCols`.
|
|
2446
|
-
{ label: '', formControlName: 'actions', type: 'actions' },
|
|
2447
|
-
{
|
|
2448
|
-
label: 'Appointed',
|
|
2449
|
-
formControlName: 'adj_microFlow_supplierAppointed',
|
|
2450
|
-
type: InputDataTypes.Boolean,
|
|
2451
|
-
showColor: true,
|
|
2452
|
-
},
|
|
2453
|
-
],
|
|
2454
|
-
};
|
|
2455
|
-
return {
|
|
2456
|
-
...dataModel,
|
|
2457
|
-
};
|
|
2458
|
-
}), startWith(this.#initialState), catchError(() => {
|
|
2459
|
-
return of({
|
|
2460
|
-
...this.#initialState,
|
|
2461
|
-
loading: false,
|
|
2462
|
-
error: 'Failed to load submissions.',
|
|
2463
|
-
});
|
|
2464
|
-
}), shareReplay(1));
|
|
2465
|
-
}
|
|
2466
|
-
#config;
|
|
2467
|
-
#destroyRef;
|
|
2468
|
-
#dialog;
|
|
2469
|
-
#refreshTrigger;
|
|
2470
|
-
// A stream to push updates of the review values (`this.value`)
|
|
2471
|
-
#valueChanges$;
|
|
2472
|
-
#initialState;
|
|
2473
|
-
#value;
|
|
2474
|
-
#fetchedData$;
|
|
2475
|
-
loadMicroSubmissions() {
|
|
2476
|
-
this.#refreshTrigger.next();
|
|
2477
|
-
}
|
|
2478
|
-
viewMicroSubmission(res) {
|
|
2479
|
-
this.#config.formBuilder['previewWorkflowDocument'](res.id);
|
|
2480
|
-
}
|
|
2481
|
-
#enrichSubmissionsData(submissions, value, totalPossibleScore, maxPointsAwarded) {
|
|
2482
|
-
// 1. Handle edge cases first for clarity.
|
|
2483
|
-
// 2. Improve performance by creating a lookup map to avoid O(n^2) complexity.
|
|
2484
|
-
// This is much faster than using .find() inside a loop.
|
|
2485
|
-
const valueMap = new Map(this.#value?.map((v) => [v.id, v]) || []);
|
|
2486
|
-
const list = submissions.length > 0 ? submissions : (value || []);
|
|
2487
|
-
// 3. First pass: Enrich submissions with calculated scores.
|
|
2488
|
-
const enrichedSubmissions = list.map((submission) => {
|
|
2489
|
-
const v = valueMap.get(submission.id);
|
|
2490
|
-
// Use nullish coalescing (??) for cleaner fallback logic.
|
|
2491
|
-
const totalPoints = v?.['adj_microFlow_scoreSheetTotalPoints'] ??
|
|
2492
|
-
submission?.['adj_microFlow_scoreSheetTotalPoints'] ??
|
|
2493
|
-
0;
|
|
2494
|
-
// Simplify calculation: remove unnecessary try-catch. Division by zero in JS results
|
|
2495
|
-
// in Infinity, not an error. The check for totalPossibleScore > 0 handles this.
|
|
2496
|
-
const pointsAwarded = totalPossibleScore > 0
|
|
2497
|
-
? (totalPoints / totalPossibleScore) * maxPointsAwarded
|
|
2498
|
-
: 0;
|
|
2499
|
-
const pricePointCalculation = (Number(submission['adjudicationPricePreferenceCalculation'] ?? 0)) + pointsAwarded;
|
|
2500
|
-
return {
|
|
2501
|
-
...submission,
|
|
2502
|
-
...v,
|
|
2503
|
-
adj_microFlow_pointsAwarded: pointsAwarded,
|
|
2504
|
-
adj_microFlow_pricePointCalculation: pricePointCalculation,
|
|
2505
|
-
};
|
|
2506
|
-
});
|
|
2507
|
-
// 4. Define keys to process to avoid repetition (DRY principle).
|
|
2508
|
-
const keysToColor = ['adj_microFlow_pricePointCalculation'];
|
|
2509
|
-
// 5. Correctly build the number sets from the *newly enriched* data.
|
|
2510
|
-
const numberSets = new Map();
|
|
2511
|
-
for (const key of keysToColor) {
|
|
2512
|
-
const values = enrichedSubmissions.map((s) => Number(s[key] ?? 0));
|
|
2513
|
-
numberSets.set(key, values);
|
|
2514
|
-
}
|
|
2515
|
-
// 6. Second pass: Add colors and shades based on the complete dataset.
|
|
2516
|
-
return enrichedSubmissions.map((submission) => {
|
|
2517
|
-
const colColors = {};
|
|
2518
|
-
const backgroundShades = {
|
|
2519
|
-
...(submission.backgroundShades ?? {}),
|
|
2520
|
-
};
|
|
2521
|
-
for (const key of keysToColor) {
|
|
2522
|
-
const scoreValue = Number(submission[key] ?? 0);
|
|
2523
|
-
const allScores = numberSets.get(key) || [];
|
|
2524
|
-
const color = this.#getColorString(scoreValue, allScores);
|
|
2525
|
-
colColors[key] = color;
|
|
2526
|
-
backgroundShades[key] = this.#getScoreShade(color);
|
|
2527
|
-
}
|
|
2528
|
-
backgroundShades['adjudicationPricePreferenceCalculation'] = '';
|
|
2529
|
-
return {
|
|
2530
|
-
...submission,
|
|
2531
|
-
colColors,
|
|
2532
|
-
backgroundShades,
|
|
2533
|
-
};
|
|
2534
|
-
});
|
|
2535
|
-
}
|
|
2536
|
-
#getScoreShade(rgbColor) {
|
|
2537
|
-
if (!rgbColor)
|
|
2538
|
-
return '';
|
|
2539
|
-
return rgbColor.replace('rgb', 'rgba').replace(')', `, 0.1)`);
|
|
2540
|
-
}
|
|
2541
|
-
#getColorString(target, numbers) {
|
|
2542
|
-
return getColorForNumber(target, numbers, true);
|
|
2543
|
-
}
|
|
2544
|
-
openPointAssignmentDialog(row, groupedScoreSheet, scoreSheetGroups) {
|
|
2545
|
-
this.#dialog
|
|
2546
|
-
.open(PointAssignmentDialogComponent, {
|
|
2547
|
-
height: 'fit-content',
|
|
2548
|
-
data: {
|
|
2549
|
-
row,
|
|
2550
|
-
groupedScoreSheet,
|
|
2551
|
-
scoreSheetGroups,
|
|
2552
|
-
},
|
|
2553
|
-
autoFocus: false,
|
|
2554
|
-
disableClose: true,
|
|
2555
|
-
})
|
|
2556
|
-
.afterClosed()
|
|
2557
|
-
.pipe(take(1), switchMap((result) => {
|
|
2558
|
-
if (!result)
|
|
2559
|
-
return of(null);
|
|
2560
|
-
// Update the value with the new point assignments
|
|
2561
|
-
const assignment = Object.values(result).reduce((acc, curr) => {
|
|
2562
|
-
acc = {
|
|
2563
|
-
...acc,
|
|
2564
|
-
...curr,
|
|
2565
|
-
};
|
|
2566
|
-
return acc;
|
|
2567
|
-
}, {});
|
|
2568
|
-
row['adj_microFlow_assignedScore'] = assignment;
|
|
2569
|
-
const alreadyInValue = this.#value?.find((v) => v.id === row.id);
|
|
2570
|
-
let newValue;
|
|
2571
|
-
if (!alreadyInValue) {
|
|
2572
|
-
newValue = [
|
|
2573
|
-
...(this.#value || []),
|
|
2574
|
-
{
|
|
2575
|
-
...row,
|
|
2576
|
-
adj_microFlow_assignedScore: assignment,
|
|
2577
|
-
adj_microFlow_scoreSheetTotalPoints: Object.values(assignment).reduce((acc, curr) => acc + curr, 0),
|
|
2578
|
-
},
|
|
2579
|
-
];
|
|
2580
|
-
}
|
|
2581
|
-
else {
|
|
2582
|
-
newValue =
|
|
2583
|
-
this.#value?.map((v) => {
|
|
2584
|
-
if (v.id === row.id) {
|
|
2585
|
-
return {
|
|
2586
|
-
...v,
|
|
2587
|
-
adj_microFlow_scoreSheetTotalPoints: Object.values(assignment).reduce((acc, curr) => acc + curr, 0),
|
|
2588
|
-
adj_microFlow_assignedScore: assignment,
|
|
2589
|
-
};
|
|
2590
|
-
}
|
|
2591
|
-
return v;
|
|
2592
|
-
}) || [];
|
|
2593
|
-
}
|
|
2594
|
-
return of(newValue);
|
|
2595
|
-
}), tap((newValue) => {
|
|
2596
|
-
if (!newValue)
|
|
2597
|
-
return;
|
|
2598
|
-
this.supplierSelection.emit(newValue);
|
|
2599
|
-
}), takeUntilDestroyed(this.#destroyRef))
|
|
2600
|
-
.subscribe();
|
|
2601
|
-
}
|
|
2602
|
-
appointASupplier(row) {
|
|
2603
|
-
if (this.inputConfig()?.readonly || this.inputConfig()?.disabled) {
|
|
2604
|
-
return;
|
|
2605
|
-
}
|
|
2606
|
-
if (row['adj_microFlow_supplierAppointed']) {
|
|
2607
|
-
row['adj_microFlow_supplierAppointed'] = false;
|
|
2608
|
-
}
|
|
2609
|
-
else {
|
|
2610
|
-
row['adj_microFlow_supplierAppointed'] = true;
|
|
2611
|
-
}
|
|
2612
|
-
const alreadyInValue = this.#value?.find((v) => v.id === row.id);
|
|
2613
|
-
let newValue;
|
|
2614
|
-
if (!alreadyInValue) {
|
|
2615
|
-
const otherRows = this.#value?.map((v) => ({
|
|
2616
|
-
...v,
|
|
2617
|
-
adj_microFlow_supplierAppointed: false,
|
|
2618
|
-
}));
|
|
2619
|
-
newValue = [...(otherRows || []), row];
|
|
2620
|
-
}
|
|
2621
|
-
else {
|
|
2622
|
-
newValue =
|
|
2623
|
-
this.#value?.map((v) => {
|
|
2624
|
-
if (v.id === row.id) {
|
|
2625
|
-
return {
|
|
2626
|
-
...v,
|
|
2627
|
-
adj_microFlow_supplierAppointed: row['adj_microFlow_supplierAppointed'],
|
|
2628
|
-
};
|
|
2629
|
-
}
|
|
2630
|
-
return {
|
|
2631
|
-
...v,
|
|
2632
|
-
adj_microFlow_supplierAppointed: false,
|
|
2633
|
-
};
|
|
2634
|
-
}) || [];
|
|
2635
|
-
}
|
|
2636
|
-
if (newValue) {
|
|
2637
|
-
this.supplierSelection.emit(newValue);
|
|
2638
|
-
}
|
|
2639
|
-
}
|
|
2640
|
-
static { this.ɵfac = function SupplierSelectionComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SupplierSelectionComponent)(); }; }
|
|
2641
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SupplierSelectionComponent, selectors: [["lib-supplier-selection"]], inputs: { inputConfig: [1, "inputConfig"], value: [1, "value"] }, outputs: { supplierSelection: "supplierSelection" }, decls: 2, vars: 3, consts: [[2, "display", "flex", "justify-content", "center", "align-items", "center", "padding", "24px", "width", "100%"], [1, "info-card", "error-card"], [1, "info-title"], ["mat-raised-button", "", "color", "primary", 3, "click"], [1, "info-card"], ["mat-raised-button", "", "color", "primary", 1, "load-button", 3, "click"], ["mat-table", "", 3, "dataSource"], [3, "matColumnDef"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], [1, "smallIcon"], ["mat-header-cell", "", "style", "padding:4px", 4, "matHeaderCellDef"], ["mat-cell", "", "mat-ripple", "", "class", "table-cell", 3, "price-preference-cell", "border-bottom-color", "background", "click", 4, "matCellDef"], ["mat-header-cell", "", 2, "padding", "4px"], ["mat-cell", "", "mat-ripple", "", 1, "table-cell", 3, "click"], [2, "display", "flex", "align-items", "center"], ["matTooltipPosition", "before", "mat-icon-button", "", 3, "click", "matTooltip"], ["mat-flat-button", "", "color", "primary"], ["mat-stroked-button", ""], ["mat-flat-button", "", "color", "primary", 3, "click"], ["mat-stroked-button", "", 3, "click"], [1, "main-submission-text"], [2, "font-size", "1em", "height", "16px", "width", "16px"], [1, "secondary-text"], ["mat-header-row", ""], ["mat-row", ""]], template: function SupplierSelectionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2642
|
-
i0.ɵɵconditionalCreate(0, SupplierSelectionComponent_Conditional_0_Template, 3, 1);
|
|
2643
|
-
i0.ɵɵpipe(1, "async");
|
|
2644
|
-
} if (rf & 2) {
|
|
2645
|
-
let tmp_0_0;
|
|
2646
|
-
i0.ɵɵconditional((tmp_0_0 = i0.ɵɵpipeBind1(1, 1, ctx.vm$)) ? 0 : -1, tmp_0_0);
|
|
2647
|
-
} }, dependencies: [FormsModule,
|
|
2648
|
-
MatButtonModule, i2$1.MatButton, i2$1.MatIconButton, MatDialogModule,
|
|
2649
|
-
MatIconModule, i3.MatIcon, MatProgressSpinnerModule, i4.MatProgressSpinner, MatRippleModule, i7.MatRipple, 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, MatTooltipModule, i5$2.MatTooltip, AsyncPipe,
|
|
2650
|
-
DecimalPipe,
|
|
2651
|
-
DaysAgoPipe], styles: [".number[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}.number-cell[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text[_ngcontent-%COMP%]{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.mat-column-adj_microFlow_review[_ngcontent-%COMP%]{max-width:18px;text-align:center}.mat-column-nameOfBidder[_ngcontent-%COMP%]{max-width:90px}.mat-column-actions[_ngcontent-%COMP%]{padding:0;max-width:80px}.mat-column-status[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:.875em}[_nghost-%COMP%] .notes-card[_ngcontent-%COMP%]{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.table-cell[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.mat-column-adjudicationPricePreferenceCalculation[_ngcontent-%COMP%], .mat-column-adj_microFlow_scoreSheetTotalPoints[_ngcontent-%COMP%], .mat-column-adj_microFlow_pointsAwarded[_ngcontent-%COMP%], .mat-column-adj_microFlow_pricePointCalculation[_ngcontent-%COMP%]{max-width:18px;text-align:center}.mat-column-adj_microFlow_supplierAppointed[_ngcontent-%COMP%]{max-width:50px;text-align:center}.mat-column-actions[_ngcontent-%COMP%]{max-width:14px;text-align:center}.ngx-t-forms-point-assignment-menu[_ngcontent-%COMP%]{width:fit-content!important;max-width:400px!important}.point-assignment-menu[_ngcontent-%COMP%]{padding-left:28px;padding-right:28px}"], changeDetection: 0 }); }
|
|
2652
|
-
}
|
|
2653
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SupplierSelectionComponent, [{
|
|
2654
|
-
type: Component,
|
|
2655
|
-
args: [{ selector: 'lib-supplier-selection', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
2656
|
-
AsyncPipe,
|
|
2657
|
-
DecimalPipe,
|
|
2658
|
-
FormsModule,
|
|
2659
|
-
MatButtonModule,
|
|
2660
|
-
MatDialogModule,
|
|
2661
|
-
MatIconModule,
|
|
2662
|
-
MatProgressSpinnerModule,
|
|
2663
|
-
MatRippleModule,
|
|
2664
|
-
MatTableModule,
|
|
2665
|
-
MatTooltipModule,
|
|
2666
|
-
DaysAgoPipe,
|
|
2667
|
-
], template: "@if (vm$ | async; as vm) {\r\n @if (vm.loading) {\r\n <div style=\"display: flex; justify-content: center; align-items: center; padding:24px;width: 100%;\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n } @else if (vm.error) {\r\n <div class=\"info-card error-card\">\r\n <h5 class=\"info-title\">\u274C Failed to load data</h5>\r\n <p>{{ vm.error }}</p>\r\n <button mat-raised-button color=\"primary\" (click)=\"loadMicroSubmissions()\">\r\n Try Again\r\n </button>\r\n </div>\r\n } @else {\r\n\r\n @if (vm.submissions.length === 0) {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\u2139\uFE0F There are no submissions to display.</h5>\r\n <ul>\r\n <li>This can happen if <strong>no one has responded</strong> yet, or if <strong>none of the submission were\r\n compliant </strong>.</li>\r\n <li>If you are expecting to see submissions, try clicking the <strong>Refresh</strong> button.</li>\r\n </ul>\r\n <button mat-raised-button color=\"primary\" (click)=\"loadMicroSubmissions()\" class=\"load-button\">\r\n Refresh\r\n </button>\r\n </div>\r\n } @else {\r\n\r\n @if (!value || value.length === 0) {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\uD83D\uDCDD How to Appoint</h5>\r\n <ol>\r\n <li>\r\n <strong>View Response:</strong> Click the <strong>Preview</strong> (<mat-icon\r\n class=\"smallIcon\">preview</mat-icon>) icon to see the full submission.\r\n </li>\r\n <li>\r\n <strong>Appoint:</strong> Click the <strong>Appoint</strong> button to appoint the supplier.\r\n </li>\r\n\r\n </ol>\r\n </div>\r\n }\r\n <table mat-table [dataSource]=\"vm.submissions\">\r\n @for (col of vm.displayColumns; track col.formControlName) {\r\n <ng-container [matColumnDef]=\"col.formControlName\">\r\n <th mat-header-cell *matHeaderCellDef style=\"padding:4px\">\r\n {{ col.label }}\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\" mat-ripple class=\"table-cell\" (click)=\"$event.stopPropagation()\"\r\n [class.price-preference-cell]=\"true\" [style.border-bottom-color]=\"row.colColors[col.formControlName]\"\r\n [style.background]=\"row.backgroundShades?.[col.formControlName]\">\r\n @if (col.formControlName === 'actions') {\r\n <span style=\"display: flex; align-items: center;\">\r\n <button matTooltipPosition=\"before\"\r\n [matTooltip]=\"`View and review **` + row[vm.columnMapping.respondentNameKey]+ `** 's' Submission`\"\r\n (click)=\"viewMicroSubmission(row)\" mat-icon-button>\r\n <mat-icon>preview</mat-icon>\r\n </button>\r\n </span>\r\n } @else if (col.formControlName === 'adj_microFlow_supplierAppointed') {\r\n @if (row[col.formControlName] === true) {\r\n <button (click)=\"appointASupplier(row)\" mat-flat-button color=\"primary\">\r\n <mat-icon>\r\n check_circle\r\n </mat-icon>\r\n Appointed\r\n </button>\r\n } @else {\r\n <button (click)=\"appointASupplier(row)\" mat-stroked-button>\r\n Appoint\r\n </button>\r\n }\r\n } @else {\r\n @switch (col?.type) {\r\n @case ('daysAgo') {\r\n {{ row[col.formControlName] | daysAgo }}\r\n }\r\n @case ('number') {\r\n {{ (row[col.formControlName] | number:'0.0-0' ) || 'N/A' }}\r\n }\r\n @default {\r\n @if ($index === 0) {\r\n <span class=\"main-submission-text\">\r\n <mat-icon style=\"font-size: 1em;height:16px;width:16px\">domain</mat-icon>\r\n <strong>\r\n {{ row[col.formControlName] }}\r\n </strong>\r\n </span>\r\n <span class=\"secondary-text\">\r\n <mat-icon>fingerprint</mat-icon>\r\n {{ row[vm.columnMapping.respondentCodeKey] }}\r\n <mat-icon>more_time</mat-icon>\r\n {{ row[vm.columnMapping.responseDateKey ||''] | daysAgo }}\r\n </span>\r\n } @else {\r\n {{ row[col.formControlName] }}\r\n }\r\n }\r\n }\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"vm.displayCols\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: vm.displayCols\"></tr>\r\n </table>\r\n }\r\n }\r\n}\r\n", styles: [".number{display:flex;justify-content:space-between;align-items:center}li{font-size:.75em}ol,ul{margin-top:8px}.number-cell{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text mat-icon{font-size:.875em;width:14px;height:14px}.mat-column-adj_microFlow_review{max-width:18px;text-align:center}.mat-column-nameOfBidder{max-width:90px}.mat-column-actions{padding:0;max-width:80px}.mat-column-status{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text{display:flex;align-items:center;gap:8px;font-size:.875em}:host .notes-card{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon{font-size:.875em;width:14px;height:14px}.table-cell{padding-left:4px;padding-right:4px}.mat-column-adjudicationPricePreferenceCalculation,.mat-column-adj_microFlow_scoreSheetTotalPoints,.mat-column-adj_microFlow_pointsAwarded,.mat-column-adj_microFlow_pricePointCalculation{max-width:18px;text-align:center}.mat-column-adj_microFlow_supplierAppointed{max-width:50px;text-align:center}.mat-column-actions{max-width:14px;text-align:center}.ngx-t-forms-point-assignment-menu{width:fit-content!important;max-width:400px!important}.point-assignment-menu{padding-left:28px;padding-right:28px}\n"] }]
|
|
2668
|
-
}], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: false }] }], supplierSelection: [{ type: i0.Output, args: ["supplierSelection"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] }); })();
|
|
2669
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SupplierSelectionComponent, { className: "SupplierSelectionComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/supplier-selection/supplier-selection.component.ts", lineNumber: 94 }); })();
|
|
2670
|
-
|
|
2671
|
-
function WorkflowAdjudicationReactiveInputComponent_Case_0_Template(rf, ctx) { if (rf & 1) {
|
|
2672
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
2673
|
-
i0.ɵɵelementStart(0, "lib-points-creation", 1);
|
|
2674
|
-
i0.ɵɵlistener("pointsChange", function WorkflowAdjudicationReactiveInputComponent_Case_0_Template_lib_points_creation_pointsChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.setValue($event)); });
|
|
2675
|
-
i0.ɵɵelementEnd();
|
|
2676
|
-
} if (rf & 2) {
|
|
2677
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2678
|
-
i0.ɵɵproperty("inputConfig", ctx_r1.inputConfig())("value", ctx_r1.value);
|
|
2679
|
-
} }
|
|
2680
|
-
function WorkflowAdjudicationReactiveInputComponent_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
2681
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
2682
|
-
i0.ɵɵelementStart(0, "lib-submission-review", 2);
|
|
2683
|
-
i0.ɵɵlistener("reviewChange", function WorkflowAdjudicationReactiveInputComponent_Case_1_Template_lib_submission_review_reviewChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.setValue($event)); });
|
|
2684
|
-
i0.ɵɵelementEnd();
|
|
2685
|
-
} if (rf & 2) {
|
|
2686
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2687
|
-
i0.ɵɵproperty("inputConfig", ctx_r1.inputConfig())("value", ctx_r1.value);
|
|
2688
|
-
} }
|
|
2689
|
-
function WorkflowAdjudicationReactiveInputComponent_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
2690
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
2691
|
-
i0.ɵɵelementStart(0, "lib-supplier-selection", 3);
|
|
2692
|
-
i0.ɵɵlistener("supplierSelection", function WorkflowAdjudicationReactiveInputComponent_Case_2_Template_lib_supplier_selection_supplierSelection_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.setValue($event)); });
|
|
2693
|
-
i0.ɵɵelementEnd();
|
|
2694
|
-
} if (rf & 2) {
|
|
2695
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2696
|
-
i0.ɵɵproperty("inputConfig", ctx_r1.inputConfig())("value", ctx_r1.value);
|
|
2697
|
-
} }
|
|
2698
|
-
function WorkflowAdjudicationReactiveInputComponent_Case_3_Template(rf, ctx) { if (rf & 1) {
|
|
2699
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
2700
|
-
i0.ɵɵelementStart(0, "lib-point-assignment", 1);
|
|
2701
|
-
i0.ɵɵlistener("pointsChange", function WorkflowAdjudicationReactiveInputComponent_Case_3_Template_lib_point_assignment_pointsChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.setValue($event)); });
|
|
2702
|
-
i0.ɵɵelementEnd();
|
|
2703
|
-
} if (rf & 2) {
|
|
2704
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2705
|
-
i0.ɵɵproperty("inputConfig", ctx_r1.inputConfig())("value", ctx_r1.value);
|
|
2706
|
-
} }
|
|
2707
|
-
function WorkflowAdjudicationReactiveInputComponent_Case_4_Template(rf, ctx) { if (rf & 1) {
|
|
2708
|
-
i0.ɵɵelementStart(0, "h6");
|
|
2709
|
-
i0.ɵɵtext(1);
|
|
2710
|
-
i0.ɵɵpipe(2, "titlecase");
|
|
2711
|
-
i0.ɵɵelementEnd();
|
|
2712
|
-
} if (rf & 2) {
|
|
2713
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2714
|
-
i0.ɵɵadvance();
|
|
2715
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.inputConfig().adjudicationStep), " is not implemented yet.\n");
|
|
2716
|
-
} }
|
|
2717
|
-
const customInputConfig = {
|
|
2718
|
-
controlType: 'lib-workflow-adjudication-reactive-input',
|
|
2719
|
-
nextId: 0,
|
|
2720
|
-
};
|
|
2721
|
-
class WorkflowAdjudicationReactiveInputComponent extends BaseCustomInput {
|
|
2722
|
-
get empty() {
|
|
2723
|
-
return this.value === null || this.value === undefined || Object.keys(this.value).length === 0;
|
|
2724
|
-
}
|
|
2725
|
-
get shouldLabelFloat() {
|
|
2726
|
-
return this.focused || !this.empty;
|
|
2727
|
-
}
|
|
2728
|
-
constructor() {
|
|
2729
|
-
super(inject(NgControl, { self: true, optional: true }), inject(ElementRef), customInputConfig);
|
|
2730
|
-
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
2731
|
-
this.editorMode = input(false, ...(ngDevMode ? [{ debugName: "editorMode" }] : /* istanbul ignore next */ []));
|
|
2732
|
-
this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
|
|
2733
|
-
this.adjudicationSteps = AdjudicationSteps;
|
|
2734
|
-
}
|
|
2735
|
-
setValue(value) {
|
|
2736
|
-
this.value = value;
|
|
2737
|
-
this.onChange(value);
|
|
2738
|
-
this.onTouched();
|
|
2739
|
-
}
|
|
2740
|
-
static { this.ɵfac = function WorkflowAdjudicationReactiveInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WorkflowAdjudicationReactiveInputComponent)(); }; }
|
|
2741
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkflowAdjudicationReactiveInputComponent, selectors: [["lib-workflow-adjudication-reactive-input"]], hostVars: 3, hostBindings: function WorkflowAdjudicationReactiveInputComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
2742
|
-
i0.ɵɵdomProperty("id", ctx.id);
|
|
2743
|
-
i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
|
|
2744
|
-
} }, inputs: { inputConfig: [1, "inputConfig"], editorMode: [1, "editorMode"], formBuilderFunctions: [1, "formBuilderFunctions"] }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: WorkflowAdjudicationReactiveInputComponent }]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 1, consts: [[3, "inputConfig", "value"], [3, "pointsChange", "inputConfig", "value"], [3, "reviewChange", "inputConfig", "value"], [3, "supplierSelection", "inputConfig", "value"]], template: function WorkflowAdjudicationReactiveInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2745
|
-
i0.ɵɵconditionalCreate(0, WorkflowAdjudicationReactiveInputComponent_Case_0_Template, 1, 2, "lib-points-creation", 0)(1, WorkflowAdjudicationReactiveInputComponent_Case_1_Template, 1, 2, "lib-submission-review", 0)(2, WorkflowAdjudicationReactiveInputComponent_Case_2_Template, 1, 2, "lib-supplier-selection", 0)(3, WorkflowAdjudicationReactiveInputComponent_Case_3_Template, 1, 2, "lib-point-assignment", 0)(4, WorkflowAdjudicationReactiveInputComponent_Case_4_Template, 3, 3, "h6");
|
|
2746
|
-
} if (rf & 2) {
|
|
2747
|
-
let tmp_0_0;
|
|
2748
|
-
i0.ɵɵconditional((tmp_0_0 = ctx.inputConfig().adjudicationStep) === ctx.adjudicationSteps.ScoreCreation ? 0 : tmp_0_0 === ctx.adjudicationSteps.SubMissionReview ? 1 : tmp_0_0 === ctx.adjudicationSteps.SupplierSelection ? 2 : tmp_0_0 === ctx.adjudicationSteps.PointAssignment ? 3 : 4);
|
|
2749
|
-
} }, dependencies: [PointsCreationComponent,
|
|
2750
|
-
SubmissionReviewComponent,
|
|
2751
|
-
SupplierSelectionComponent,
|
|
2752
|
-
PointAssignmentComponent,
|
|
2753
|
-
TitleCasePipe], styles: [".input-add[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:4px}mat-hint[_ngcontent-%COMP%]{text-align:start}.glass[_ngcontent-%COMP%]{background:#ffffff40!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.mat-column-totalPoints[_ngcontent-%COMP%]{width:100px!important;max-width:100px!important}.mat-column-pointType[_ngcontent-%COMP%]{width:180px!important;max-width:180px!important}.mat-column-actions[_ngcontent-%COMP%]{width:78px!important;max-width:78px!important}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
|
|
2754
|
-
}
|
|
2755
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkflowAdjudicationReactiveInputComponent, [{
|
|
2756
|
-
type: Component,
|
|
2757
|
-
args: [{ selector: 'lib-workflow-adjudication-reactive-input', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
|
|
2758
|
-
'[class.floating]': 'shouldLabelFloat',
|
|
2759
|
-
'[id]': 'id',
|
|
2760
|
-
}, imports: [
|
|
2761
|
-
TitleCasePipe,
|
|
2762
|
-
PointsCreationComponent,
|
|
2763
|
-
SubmissionReviewComponent,
|
|
2764
|
-
SupplierSelectionComponent,
|
|
2765
|
-
PointAssignmentComponent,
|
|
2766
|
-
], providers: [{ provide: MatFormFieldControl, useExisting: WorkflowAdjudicationReactiveInputComponent }], template: "@switch (inputConfig().adjudicationStep) {\r\n@case (adjudicationSteps.ScoreCreation) {\r\n<lib-points-creation [inputConfig]=\"inputConfig()\" [value]=\"value\" (pointsChange)=\"setValue($event)\">\r\n</lib-points-creation>\r\n}\r\n@case (adjudicationSteps.SubMissionReview) {\r\n<lib-submission-review [inputConfig]=\"inputConfig()\" [value]=\"value\"\r\n (reviewChange)=\"setValue($event)\"></lib-submission-review>\r\n}\r\n@case (adjudicationSteps.SupplierSelection) {\r\n<lib-supplier-selection [inputConfig]=\"inputConfig()\" [value]=\"value\"\r\n (supplierSelection)=\"setValue($event)\"></lib-supplier-selection>\r\n}\r\n@case (adjudicationSteps.PointAssignment) {\r\n<lib-point-assignment [inputConfig]=\"inputConfig()\" [value]=\"value\"\r\n (pointsChange)=\"setValue($event)\"></lib-point-assignment>\r\n}\r\n@default {\r\n<h6>\r\n {{ inputConfig().adjudicationStep | titlecase }} is not implemented yet.\r\n</h6>\r\n}\r\n}\r\n", styles: [".input-add{width:100%}th,td{padding:4px}mat-hint{text-align:start}.glass{background:#ffffff40!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.mat-column-totalPoints{width:100px!important;max-width:100px!important}.mat-column-pointType{width:180px!important;max-width:180px!important}.mat-column-actions{width:78px!important;max-width:78px!important}li{font-size:.75em}ol{margin-top:8px}\n"] }]
|
|
2767
|
-
}], () => [], { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], editorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorMode", required: false }] }], formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }] }); })();
|
|
2768
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkflowAdjudicationReactiveInputComponent, { className: "WorkflowAdjudicationReactiveInputComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/workflow-adjudication-reactive-input/workflow-adjudication-reactive-input.component.ts", lineNumber: 56 }); })();
|
|
2769
|
-
|
|
2770
|
-
function WorkflowAdjudicationComponent_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
2771
|
-
i0.ɵɵelementStart(0, "mat-hint", 4);
|
|
2772
|
-
i0.ɵɵtext(1);
|
|
2773
|
-
i0.ɵɵelementEnd();
|
|
2774
|
-
} if (rf & 2) {
|
|
2775
|
-
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
2776
|
-
i0.ɵɵadvance();
|
|
2777
|
-
i0.ɵɵtextInterpolate1(" ", inputConfig_r1.temporaryHint || inputConfig_r1.hintLabel, " ");
|
|
2778
|
-
} }
|
|
2779
|
-
function WorkflowAdjudicationComponent_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
2780
|
-
i0.ɵɵelementStart(0, "mat-error", 5);
|
|
2781
|
-
i0.ɵɵtext(1);
|
|
2782
|
-
i0.ɵɵelementEnd();
|
|
2783
|
-
} if (rf & 2) {
|
|
2784
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
2785
|
-
i0.ɵɵadvance();
|
|
2786
|
-
i0.ɵɵtextInterpolate(ctx_r1.errorMessage());
|
|
2787
|
-
} }
|
|
2788
|
-
function WorkflowAdjudicationComponent_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
2789
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
2790
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
2791
|
-
i0.ɵɵlistener("click", function WorkflowAdjudicationComponent_Conditional_1_Conditional_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const inputConfig_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(inputConfig_r1.canReload.emit()); });
|
|
2792
|
-
i0.ɵɵelementStart(1, "mat-icon", 13);
|
|
2793
|
-
i0.ɵɵtext(2, "sync");
|
|
2794
|
-
i0.ɵɵelementEnd()();
|
|
2795
|
-
} }
|
|
2796
|
-
function WorkflowAdjudicationComponent_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
2797
|
-
i0.ɵɵelementStart(0, "mat-icon", 7);
|
|
2798
|
-
i0.ɵɵtext(1);
|
|
2799
|
-
i0.ɵɵelementEnd();
|
|
2800
|
-
} if (rf & 2) {
|
|
2801
|
-
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
2802
|
-
i0.ɵɵadvance();
|
|
2803
|
-
i0.ɵɵtextInterpolate(inputConfig_r1.prefixIcon);
|
|
2804
|
-
} }
|
|
2805
|
-
function WorkflowAdjudicationComponent_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
2806
|
-
i0.ɵɵelementStart(0, "mat-icon", 8);
|
|
2807
|
-
i0.ɵɵtext(1);
|
|
2808
|
-
i0.ɵɵelementEnd();
|
|
2809
|
-
} if (rf & 2) {
|
|
2810
|
-
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
2811
|
-
i0.ɵɵadvance();
|
|
2812
|
-
i0.ɵɵtextInterpolate(inputConfig_r1.suffixIcon);
|
|
2813
|
-
} }
|
|
2814
|
-
function WorkflowAdjudicationComponent_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
2815
|
-
i0.ɵɵelementStart(0, "span", 9);
|
|
2816
|
-
i0.ɵɵtext(1);
|
|
2817
|
-
i0.ɵɵelementEnd();
|
|
2818
|
-
} if (rf & 2) {
|
|
2819
|
-
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
2820
|
-
i0.ɵɵadvance();
|
|
2821
|
-
i0.ɵɵtextInterpolate(inputConfig_r1.prefixText);
|
|
2822
|
-
} }
|
|
2823
|
-
function WorkflowAdjudicationComponent_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
2824
|
-
i0.ɵɵelementStart(0, "span", 10);
|
|
2825
|
-
i0.ɵɵtext(1);
|
|
2826
|
-
i0.ɵɵelementEnd();
|
|
2827
|
-
} if (rf & 2) {
|
|
2828
|
-
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
2829
|
-
i0.ɵɵadvance();
|
|
2830
|
-
i0.ɵɵtextInterpolate(inputConfig_r1.suffixText);
|
|
2831
|
-
} }
|
|
2832
|
-
function WorkflowAdjudicationComponent_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
2833
|
-
i0.ɵɵelementStart(0, "mat-hint", 11);
|
|
2834
|
-
i0.ɵɵtext(1);
|
|
2835
|
-
i0.ɵɵelementEnd();
|
|
2836
|
-
} if (rf & 2) {
|
|
2837
|
-
let tmp_3_0;
|
|
2838
|
-
const inputConfig_r1 = i0.ɵɵnextContext();
|
|
2839
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2840
|
-
i0.ɵɵadvance();
|
|
2841
|
-
i0.ɵɵtextInterpolate1(" ", (((tmp_3_0 = ctx_r1.formGroup().controls[inputConfig_r1.id]) == null ? null : tmp_3_0.value == null ? null : tmp_3_0.value.length) || 0) + "/" + inputConfig_r1.maxLength, " ");
|
|
2842
|
-
} }
|
|
2843
|
-
function WorkflowAdjudicationComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2844
|
-
i0.ɵɵelementStart(0, "mat-form-field", 1)(1, "mat-label");
|
|
2845
|
-
i0.ɵɵtext(2);
|
|
2846
|
-
i0.ɵɵelement(3, "lib-t-form-input-status", 2);
|
|
2847
|
-
i0.ɵɵelementEnd();
|
|
2848
|
-
i0.ɵɵelement(4, "lib-workflow-adjudication-reactive-input", 3);
|
|
2849
|
-
i0.ɵɵconditionalCreate(5, WorkflowAdjudicationComponent_Conditional_1_Conditional_5_Template, 2, 1, "mat-hint", 4);
|
|
2850
|
-
i0.ɵɵconditionalCreate(6, WorkflowAdjudicationComponent_Conditional_1_Conditional_6_Template, 2, 1, "mat-error", 5);
|
|
2851
|
-
i0.ɵɵconditionalCreate(7, WorkflowAdjudicationComponent_Conditional_1_Conditional_7_Template, 3, 0, "button", 6);
|
|
2852
|
-
i0.ɵɵconditionalCreate(8, WorkflowAdjudicationComponent_Conditional_1_Conditional_8_Template, 2, 1, "mat-icon", 7);
|
|
2853
|
-
i0.ɵɵconditionalCreate(9, WorkflowAdjudicationComponent_Conditional_1_Conditional_9_Template, 2, 1, "mat-icon", 8);
|
|
2854
|
-
i0.ɵɵconditionalCreate(10, WorkflowAdjudicationComponent_Conditional_1_Conditional_10_Template, 2, 1, "span", 9);
|
|
2855
|
-
i0.ɵɵconditionalCreate(11, WorkflowAdjudicationComponent_Conditional_1_Conditional_11_Template, 2, 1, "span", 10);
|
|
2856
|
-
i0.ɵɵconditionalCreate(12, WorkflowAdjudicationComponent_Conditional_1_Conditional_12_Template, 2, 1, "mat-hint", 11);
|
|
2857
|
-
i0.ɵɵelementEnd();
|
|
2858
|
-
} if (rf & 2) {
|
|
2859
|
-
const inputConfig_r1 = ctx;
|
|
2860
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2861
|
-
i0.ɵɵproperty("appearance", inputConfig_r1.appearance || "fill")("floatLabel", "always");
|
|
2862
|
-
i0.ɵɵadvance(2);
|
|
2863
|
-
i0.ɵɵtextInterpolate1(" ", inputConfig_r1.label, " ");
|
|
2864
|
-
i0.ɵɵadvance();
|
|
2865
|
-
i0.ɵɵproperty("inputConfig", inputConfig_r1);
|
|
2866
|
-
i0.ɵɵadvance();
|
|
2867
|
-
i0.ɵɵproperty("inputConfig", inputConfig_r1)("formControlName", inputConfig_r1.id)("required", inputConfig_r1.required)("formGroup", ctx_r1.formGroup())("editorMode", ctx_r1.editorMode())("formBuilderFunctions", ctx_r1.formBuilderFunctions());
|
|
2868
|
-
i0.ɵɵadvance();
|
|
2869
|
-
i0.ɵɵconditional(inputConfig_r1.hintLabel || inputConfig_r1.temporaryHint ? 5 : -1);
|
|
2870
|
-
i0.ɵɵadvance();
|
|
2871
|
-
i0.ɵɵconditional(!!ctx_r1.errorMessage() ? 6 : -1);
|
|
2872
|
-
i0.ɵɵadvance();
|
|
2873
|
-
i0.ɵɵconditional((inputConfig_r1.canReload == null ? null : inputConfig_r1.canReload.canReload) ? 7 : -1);
|
|
2874
|
-
i0.ɵɵadvance();
|
|
2875
|
-
i0.ɵɵconditional(inputConfig_r1.prefixIcon ? 8 : -1);
|
|
2876
|
-
i0.ɵɵadvance();
|
|
2877
|
-
i0.ɵɵconditional(inputConfig_r1.suffixIcon && inputConfig_r1.id !== "password" ? 9 : -1);
|
|
2878
|
-
i0.ɵɵadvance();
|
|
2879
|
-
i0.ɵɵconditional(inputConfig_r1.prefixText ? 10 : -1);
|
|
2880
|
-
i0.ɵɵadvance();
|
|
2881
|
-
i0.ɵɵconditional(inputConfig_r1.suffixText ? 11 : -1);
|
|
2882
|
-
i0.ɵɵadvance();
|
|
2883
|
-
i0.ɵɵconditional(inputConfig_r1.maxLength && ctx_r1.formGroup() ? 12 : -1);
|
|
2884
|
-
} }
|
|
2885
|
-
/** Wraps a workflow-adjudication reactive control inside a `mat-form-field`. */
|
|
2886
|
-
class WorkflowAdjudicationComponent {
|
|
2887
|
-
constructor() {
|
|
2888
|
-
this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
|
|
2889
|
-
this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
|
|
2890
|
-
this.editorMode = input(false, ...(ngDevMode ? [{ debugName: "editorMode" }] : /* istanbul ignore next */ []));
|
|
2891
|
-
this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
|
|
2892
|
-
this.reload = output();
|
|
2893
|
-
this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
2894
|
-
}
|
|
2895
|
-
static { this.ɵfac = function WorkflowAdjudicationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WorkflowAdjudicationComponent)(); }; }
|
|
2896
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkflowAdjudicationComponent, selectors: [["lib-workflow-adjudication"]], inputs: { inputConfig: [1, "inputConfig"], formGroup: [1, "formGroup"], editorMode: [1, "editorMode"], formBuilderFunctions: [1, "formBuilderFunctions"] }, outputs: { reload: "reload" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["subscriptSizing", "dynamic", 3, "appearance", "floatLabel"], [3, "inputConfig"], [3, "inputConfig", "formControlName", "required", "formGroup", "editorMode", "formBuilderFunctions"], [1, "inputHint"], ["matTooltipClass", "errorToolTip", 1, "oneLineTextEllipsis"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px"], ["matPrefix", ""], ["matSuffix", ""], ["matPrefix", "", 2, "top", "0"], ["matSuffix", "", 2, "padding-left", "5px"], ["align", "end"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 2, "margin-right", "4px", 3, "click"], [2, "color", "var(--mat-sys-primary)"]], template: function WorkflowAdjudicationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2897
|
-
i0.ɵɵelementStart(0, "form", 0);
|
|
2898
|
-
i0.ɵɵconditionalCreate(1, WorkflowAdjudicationComponent_Conditional_1_Template, 13, 18, "mat-form-field", 1);
|
|
2899
|
-
i0.ɵɵelementEnd();
|
|
2900
|
-
} if (rf & 2) {
|
|
2901
|
-
let tmp_1_0;
|
|
2902
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup());
|
|
2903
|
-
i0.ɵɵadvance();
|
|
2904
|
-
i0.ɵɵconditional((tmp_1_0 = ctx.inputConfig()) ? 1 : -1, tmp_1_0);
|
|
2905
|
-
} }, dependencies: [ReactiveFormsModule, i1.ɵNgNoValidate, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.FormGroupDirective, i1.FormControlName, MatFormFieldModule, i2$2.MatFormField, i2$2.MatLabel, i2$2.MatHint, i2$2.MatError, i2$2.MatPrefix, i2$2.MatSuffix, MatIconModule, i3.MatIcon, MatButtonModule, i2$1.MatIconButton, MatTooltipModule, i5$2.MatTooltip, TFormInputStatusComponent,
|
|
2906
|
-
WorkflowAdjudicationReactiveInputComponent], 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 }); }
|
|
2907
|
-
}
|
|
2908
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkflowAdjudicationComponent, [{
|
|
2909
|
-
type: Component,
|
|
2910
|
-
args: [{ selector: 'lib-workflow-adjudication', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
2911
|
-
ReactiveFormsModule,
|
|
2912
|
-
MatFormFieldModule,
|
|
2913
|
-
MatIconModule,
|
|
2914
|
-
MatButtonModule,
|
|
2915
|
-
MatTooltipModule,
|
|
2916
|
-
TFormInputStatusComponent,
|
|
2917
|
-
WorkflowAdjudicationReactiveInputComponent,
|
|
2918
|
-
], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field\r\n [appearance]=\"inputConfig.appearance || 'fill'\"\r\n [floatLabel]=\"'always'\"\r\n subscriptSizing=\"dynamic\"\r\n >\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-workflow-adjudication-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n [formGroup]=\"formGroup()\"\r\n [editorMode]=\"editorMode()\"\r\n [formBuilderFunctions]=\"formBuilderFunctions()\"\r\n ></lib-workflow-adjudication-reactive-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
|
|
2919
|
-
}], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], editorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorMode", required: false }] }], formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }], reload: [{ type: i0.Output, args: ["reload"] }] }); })();
|
|
2920
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkflowAdjudicationComponent, { className: "WorkflowAdjudicationComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/workflow-adjudication.component.ts", lineNumber: 28 }); })();
|
|
2921
|
-
|
|
2922
|
-
export { WorkflowAdjudicationComponent };
|
|
2923
|
-
//# sourceMappingURL=ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map
|