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,253 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, DestroyRef, output, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
3
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
|
-
import { NgControl } from '@angular/forms';
|
|
5
|
-
import * as i2 from '@angular/material/form-field';
|
|
6
|
-
import { MatFormFieldModule, MatFormFieldControl } from '@angular/material/form-field';
|
|
7
|
-
import * as i6 from '@angular/material/list';
|
|
8
|
-
import { MatListModule } from '@angular/material/list';
|
|
9
|
-
import * as i8$1 from '@angular/material/select';
|
|
10
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
11
|
-
import * as i8 from '@angular/material/toolbar';
|
|
12
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
13
|
-
import { Subject, take, tap, catchError, of } from 'rxjs';
|
|
14
|
-
import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
|
|
15
|
-
|
|
16
|
-
const _forTrack0 = ($index, $item) => $item.id;
|
|
17
|
-
const _forTrack1 = ($index, $item) => $item.label;
|
|
18
|
-
function ConfigMscoaAdditionalInputsComponent_Conditional_0_For_4_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
-
i0.ɵɵelementStart(0, "mat-option", 6);
|
|
20
|
-
i0.ɵɵtext(1);
|
|
21
|
-
i0.ɵɵelementEnd();
|
|
22
|
-
} if (rf & 2) {
|
|
23
|
-
const segment_r4 = ctx.$implicit;
|
|
24
|
-
i0.ɵɵproperty("value", segment_r4.value);
|
|
25
|
-
i0.ɵɵadvance();
|
|
26
|
-
i0.ɵɵtextInterpolate(segment_r4.label);
|
|
27
|
-
} }
|
|
28
|
-
function ConfigMscoaAdditionalInputsComponent_Conditional_0_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
30
|
-
i0.ɵɵelementStart(0, "mat-form-field", 4);
|
|
31
|
-
i0.ɵɵlistener("mouseover", function ConfigMscoaAdditionalInputsComponent_Conditional_0_For_4_Template_mat_form_field_mouseover_0_listener() { const ɵ$index_7_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.hovered.set(ɵ$index_7_r2)); })("mouseleave", function ConfigMscoaAdditionalInputsComponent_Conditional_0_For_4_Template_mat_form_field_mouseleave_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.hovered.set(null)); });
|
|
32
|
-
i0.ɵɵelementStart(1, "mat-label");
|
|
33
|
-
i0.ɵɵtext(2);
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
i0.ɵɵelementStart(3, "mat-select", 5);
|
|
36
|
-
i0.ɵɵlistener("selectionChange", function ConfigMscoaAdditionalInputsComponent_Conditional_0_For_4_Template_mat_select_selectionChange_3_listener($event) { const ɵ$index_7_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.inputSegmentChanged($event, ɵ$index_7_r2)); });
|
|
37
|
-
i0.ɵɵrepeaterCreate(4, ConfigMscoaAdditionalInputsComponent_Conditional_0_For_4_For_5_Template, 2, 2, "mat-option", 6, _forTrack1);
|
|
38
|
-
i0.ɵɵelementEnd();
|
|
39
|
-
i0.ɵɵelementStart(6, "mat-hint");
|
|
40
|
-
i0.ɵɵtext(7, "Link formula to an input value");
|
|
41
|
-
i0.ɵɵelementEnd()();
|
|
42
|
-
} if (rf & 2) {
|
|
43
|
-
const input_r5 = ctx.$implicit;
|
|
44
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
45
|
-
i0.ɵɵadvance(2);
|
|
46
|
-
i0.ɵɵtextInterpolate(input_r5.label);
|
|
47
|
-
i0.ɵɵadvance();
|
|
48
|
-
i0.ɵɵproperty("disabled", ctx_r2.disabled)("value", input_r5.segment);
|
|
49
|
-
i0.ɵɵadvance();
|
|
50
|
-
i0.ɵɵrepeater(ctx_r2.limitInputTo());
|
|
51
|
-
} }
|
|
52
|
-
function ConfigMscoaAdditionalInputsComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
53
|
-
i0.ɵɵelementStart(0, "mat-list", 0)(1, "mat-toolbar", 2);
|
|
54
|
-
i0.ɵɵtext(2, " Additional inputs configuration ");
|
|
55
|
-
i0.ɵɵelementEnd();
|
|
56
|
-
i0.ɵɵrepeaterCreate(3, ConfigMscoaAdditionalInputsComponent_Conditional_0_For_4_Template, 8, 3, "mat-form-field", 3, _forTrack0);
|
|
57
|
-
i0.ɵɵelementEnd();
|
|
58
|
-
} if (rf & 2) {
|
|
59
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
60
|
-
i0.ɵɵadvance(3);
|
|
61
|
-
i0.ɵɵrepeater(ctx_r2.inputs());
|
|
62
|
-
} }
|
|
63
|
-
function ConfigMscoaAdditionalInputsComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
-
i0.ɵɵelement(0, "lib-empty-state", 1);
|
|
65
|
-
} }
|
|
66
|
-
/**
|
|
67
|
-
* Internal editor that links each configured form input to an MSCOA
|
|
68
|
-
* account-segment, implementing `MatFormFieldControl<ConfiguredMscoaInput[]>`
|
|
69
|
-
* for the dynamic-data-edit configuration surface.
|
|
70
|
-
*
|
|
71
|
-
* Rendered by `t-dynamic-data-edit`, which supplies the surrounding field label,
|
|
72
|
-
* hint, and validation errors — so this component owns only the per-input
|
|
73
|
-
* segment selectors and the empty-state hint.
|
|
74
|
-
*
|
|
75
|
-
* NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /
|
|
76
|
-
* `required` / `placeholder` / `id` members, `@Input()` decorators, the
|
|
77
|
-
* `focused` / `touched` / `stateChanges` members, and the `useExisting`
|
|
78
|
-
* provider. These are framework wiring, not defects — the CLAUDE.md bans on
|
|
79
|
-
* `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.
|
|
80
|
-
*/
|
|
81
|
-
class ConfigMscoaAdditionalInputsComponent {
|
|
82
|
-
constructor() {
|
|
83
|
-
// ---- MatFormFieldControl wiring (framework-mandated plain members) -------
|
|
84
|
-
/** Emits whenever a piece of `MatFormFieldControl` state changes. */
|
|
85
|
-
this.stateChanges = new Subject();
|
|
86
|
-
this.controlType = 'lib-config-mscoa-additional-inputs';
|
|
87
|
-
this.id = `app-config-mscoa-additional-inputs-${ConfigMscoaAdditionalInputsComponent.nextId++}`;
|
|
88
|
-
this.placeholder = '';
|
|
89
|
-
this.focused = false;
|
|
90
|
-
this.touched = false;
|
|
91
|
-
this.describedBy = '';
|
|
92
|
-
this.autofilled = undefined;
|
|
93
|
-
this.userAriaDescribedBy = undefined;
|
|
94
|
-
this.disableAutomaticLabeling = undefined;
|
|
95
|
-
this.ngControl = inject(NgControl, { self: true, optional: true });
|
|
96
|
-
this.#destroyRef = inject(DestroyRef);
|
|
97
|
-
// ---- Public input/output contract ---------------------------------------
|
|
98
|
-
/** Whether all segment selectors are inert. */
|
|
99
|
-
this.disabled = false;
|
|
100
|
-
/** Whether a value is required (drives the MFC error state). */
|
|
101
|
-
this.required = false;
|
|
102
|
-
/** Validation errors surfaced by the parent for error-state derivation. */
|
|
103
|
-
this.errors = [];
|
|
104
|
-
/** Data context; the add-input affordance is gated on `mapToData?.id`. */
|
|
105
|
-
this.mapToData = undefined;
|
|
106
|
-
/** Emits the full configured-input list whenever a segment changes. */
|
|
107
|
-
this.valueChanged = output();
|
|
108
|
-
this.#mscoaInitiated = false;
|
|
109
|
-
this.#accountTreeKeys = signal([], ...(ngDevMode ? [{ debugName: "#accountTreeKeys" }] : /* istanbul ignore next */ []));
|
|
110
|
-
this.#value = signal([], ...(ngDevMode ? [{ debugName: "#value" }] : /* istanbul ignore next */ []));
|
|
111
|
-
/** Currently hovered list row index, for hover affordances. */
|
|
112
|
-
this.hovered = signal(null, ...(ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []));
|
|
113
|
-
/**
|
|
114
|
-
* Segment options offered per input: every account-tree key plus a trailing
|
|
115
|
-
* synthetic "None" entry that clears the binding.
|
|
116
|
-
*/
|
|
117
|
-
this.limitInputTo = computed(() => [
|
|
118
|
-
...this.#accountTreeKeys().map((key) => ({ value: key, label: key })),
|
|
119
|
-
{ value: undefined, label: 'None' },
|
|
120
|
-
], ...(ngDevMode ? [{ debugName: "limitInputTo" }] : /* istanbul ignore next */ []));
|
|
121
|
-
/** Configured inputs to render. */
|
|
122
|
-
this.inputs = this.#value.asReadonly();
|
|
123
|
-
this.onTouched = () => { };
|
|
124
|
-
}
|
|
125
|
-
static { this.nextId = 0; }
|
|
126
|
-
#destroyRef;
|
|
127
|
-
/**
|
|
128
|
-
* One-shot stream of the MSCOA tree. The first emitted response's
|
|
129
|
-
* `accountTreeKeys` populate the per-input segment options; later
|
|
130
|
-
* assignments are ignored (the stream is consumed once).
|
|
131
|
-
*/
|
|
132
|
-
set getMscoaTree(options$) {
|
|
133
|
-
if (!options$ || this.#mscoaInitiated) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
this.#mscoaInitiated = true;
|
|
137
|
-
options$
|
|
138
|
-
.pipe(take(1), tap((options) => this.#accountTreeKeys.set(options?.accountTreeKeys ?? [])), catchError(() => of(undefined)), takeUntilDestroyed(this.#destroyRef))
|
|
139
|
-
.subscribe();
|
|
140
|
-
}
|
|
141
|
-
#mscoaInitiated;
|
|
142
|
-
#accountTreeKeys;
|
|
143
|
-
#value;
|
|
144
|
-
/**
|
|
145
|
-
* Whether the empty-state hint may render.
|
|
146
|
-
*
|
|
147
|
-
* A plain getter (not a `computed()`) because `mapToData` is a framework-style
|
|
148
|
-
* mutable `@Input` rather than a signal — OnPush re-evaluates this binding
|
|
149
|
-
* each change-detection pass.
|
|
150
|
-
*/
|
|
151
|
-
get canAddInputs() {
|
|
152
|
-
return !!this.mapToData?.id;
|
|
153
|
-
}
|
|
154
|
-
/** Current MatFormFieldControl value (the configured-input list). */
|
|
155
|
-
get value() {
|
|
156
|
-
return this.#value();
|
|
157
|
-
}
|
|
158
|
-
set value(val) {
|
|
159
|
-
this.#value.set(val ?? []);
|
|
160
|
-
this.stateChanges.next();
|
|
161
|
-
}
|
|
162
|
-
// ---- MatFormFieldControl framework getters ------------------------------
|
|
163
|
-
get empty() {
|
|
164
|
-
return this.#value().length === 0;
|
|
165
|
-
}
|
|
166
|
-
get shouldLabelFloat() {
|
|
167
|
-
return this.focused || !this.empty;
|
|
168
|
-
}
|
|
169
|
-
get errorState() {
|
|
170
|
-
const requiredUnset = this.empty && this.required;
|
|
171
|
-
const ngControlError = this.ngControl?.errors != null;
|
|
172
|
-
const externalError = (this.errors?.length ?? 0) > 0 && this.touched;
|
|
173
|
-
return requiredUnset || ngControlError || externalError;
|
|
174
|
-
}
|
|
175
|
-
setDescribedByIds(ids) {
|
|
176
|
-
this.describedBy = ids.join(' ');
|
|
177
|
-
this.stateChanges.next();
|
|
178
|
-
}
|
|
179
|
-
onContainerClick() {
|
|
180
|
-
this.markAsTouched();
|
|
181
|
-
this.stateChanges.next();
|
|
182
|
-
}
|
|
183
|
-
markAsTouched() {
|
|
184
|
-
if (!this.touched) {
|
|
185
|
-
this.touched = true;
|
|
186
|
-
this.onTouched();
|
|
187
|
-
this.stateChanges.next();
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
// ---- Behaviour ----------------------------------------------------------
|
|
191
|
-
/**
|
|
192
|
-
* Assigns the chosen account-segment to the input at `index` and emits the
|
|
193
|
-
* updated list immediately. Selecting "None" (`undefined`) clears the binding.
|
|
194
|
-
*/
|
|
195
|
-
inputSegmentChanged(event, index) {
|
|
196
|
-
const detailValue = event.detail?.value ?? event.value;
|
|
197
|
-
const current = this.#value();
|
|
198
|
-
const item = current[index];
|
|
199
|
-
if (!item) {
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
const next = current.map((input, i) => i === index
|
|
203
|
-
? { ...input, segment: detailValue === 'None' ? undefined : detailValue }
|
|
204
|
-
: input);
|
|
205
|
-
this.#value.set(next);
|
|
206
|
-
this.markAsTouched();
|
|
207
|
-
this.stateChanges.next();
|
|
208
|
-
this.valueChanged.emit(next);
|
|
209
|
-
}
|
|
210
|
-
static { this.ɵfac = function ConfigMscoaAdditionalInputsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ConfigMscoaAdditionalInputsComponent)(); }; }
|
|
211
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfigMscoaAdditionalInputsComponent, selectors: [["lib-config-mscoa-additional-inputs"]], hostAttrs: [1, "lib-config-mscoa-additional-inputs"], hostVars: 2, hostBindings: function ConfigMscoaAdditionalInputsComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
212
|
-
i0.ɵɵdomProperty("id", ctx.id);
|
|
213
|
-
i0.ɵɵattribute("aria-describedby", ctx.describedBy);
|
|
214
|
-
} }, inputs: { disabled: "disabled", required: "required", errors: "errors", mapToData: "mapToData", getMscoaTree: "getMscoaTree", value: "value" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([
|
|
215
|
-
{ provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent },
|
|
216
|
-
])], decls: 2, vars: 1, consts: [[1, "lib-config-mscoa-additional-inputs__list"], ["icon", "info", "message", "No input configuration available."], [1, "lib-config-mscoa-additional-inputs__heading"], ["appearance", "outline", "subscriptSizing", "dynamic", 1, "lib-config-mscoa-additional-inputs__row"], ["appearance", "outline", "subscriptSizing", "dynamic", 1, "lib-config-mscoa-additional-inputs__row", 3, "mouseover", "mouseleave"], ["matNativeControl", "", "placeholder", "select segment", 3, "selectionChange", "disabled", "value"], [3, "value"]], template: function ConfigMscoaAdditionalInputsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
217
|
-
i0.ɵɵconditionalCreate(0, ConfigMscoaAdditionalInputsComponent_Conditional_0_Template, 5, 0, "mat-list", 0)(1, ConfigMscoaAdditionalInputsComponent_Conditional_1_Template, 1, 0, "lib-empty-state", 1);
|
|
218
|
-
} if (rf & 2) {
|
|
219
|
-
i0.ɵɵconditional(ctx.inputs().length > 0 ? 0 : ctx.canAddInputs ? 1 : -1);
|
|
220
|
-
} }, dependencies: [MatListModule, i6.MatList, MatToolbarModule, i8.MatToolbar, MatFormFieldModule, i2.MatFormField, i2.MatLabel, i2.MatHint, MatSelectModule, i8$1.MatSelect, i8$1.MatOption, EmptyStateComponent], styles: ["[_nghost-%COMP%]{display:block}.lib-config-mscoa-additional-inputs__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:0}.lib-config-mscoa-additional-inputs__row[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 }); }
|
|
221
|
-
}
|
|
222
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfigMscoaAdditionalInputsComponent, [{
|
|
223
|
-
type: Component,
|
|
224
|
-
args: [{ selector: 'lib-config-mscoa-additional-inputs', imports: [
|
|
225
|
-
MatListModule,
|
|
226
|
-
MatToolbarModule,
|
|
227
|
-
MatFormFieldModule,
|
|
228
|
-
MatSelectModule,
|
|
229
|
-
EmptyStateComponent,
|
|
230
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, providers: [
|
|
231
|
-
{ provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent },
|
|
232
|
-
], host: {
|
|
233
|
-
'class': 'lib-config-mscoa-additional-inputs',
|
|
234
|
-
'[id]': 'id',
|
|
235
|
-
'[attr.aria-describedby]': 'describedBy',
|
|
236
|
-
}, template: "@if (inputs().length > 0) {\n <mat-list class=\"lib-config-mscoa-additional-inputs__list\">\n <mat-toolbar class=\"lib-config-mscoa-additional-inputs__heading\">\n Additional inputs configuration\n </mat-toolbar>\n @for (input of inputs(); track input.id; let i = $index) {\n <mat-form-field\n class=\"lib-config-mscoa-additional-inputs__row\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\"\n (mouseover)=\"hovered.set(i)\"\n (mouseleave)=\"hovered.set(null)\">\n <mat-label>{{ input.label }}</mat-label>\n <mat-select\n matNativeControl\n [disabled]=\"disabled\"\n [value]=\"input.segment\"\n placeholder=\"select segment\"\n (selectionChange)=\"inputSegmentChanged($event, i)\">\n @for (segment of limitInputTo(); track segment.label) {\n <mat-option [value]=\"segment.value\">{{ segment.label }}</mat-option>\n }\n </mat-select>\n <mat-hint>Link formula to an input value</mat-hint>\n </mat-form-field>\n }\n </mat-list>\n} @else if (canAddInputs) {\n <lib-empty-state\n icon=\"info\"\n message=\"No input configuration available.\" />\n}\n", styles: [":host{display:block}.lib-config-mscoa-additional-inputs__list{display:flex;flex-direction:column;gap:.75rem;padding:0}.lib-config-mscoa-additional-inputs__row{width:100%}\n"] }]
|
|
237
|
-
}], null, { disabled: [{
|
|
238
|
-
type: Input
|
|
239
|
-
}], required: [{
|
|
240
|
-
type: Input
|
|
241
|
-
}], errors: [{
|
|
242
|
-
type: Input
|
|
243
|
-
}], mapToData: [{
|
|
244
|
-
type: Input
|
|
245
|
-
}], getMscoaTree: [{
|
|
246
|
-
type: Input
|
|
247
|
-
}], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }], value: [{
|
|
248
|
-
type: Input
|
|
249
|
-
}] }); })();
|
|
250
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfigMscoaAdditionalInputsComponent, { className: "ConfigMscoaAdditionalInputsComponent", filePath: "lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.ts", lineNumber: 78 }); })();
|
|
251
|
-
|
|
252
|
-
export { ConfigMscoaAdditionalInputsComponent };
|
|
253
|
-
//# sourceMappingURL=ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.ts"],"sourcesContent":["@if (inputs().length > 0) {\n <mat-list class=\"lib-config-mscoa-additional-inputs__list\">\n <mat-toolbar class=\"lib-config-mscoa-additional-inputs__heading\">\n Additional inputs configuration\n </mat-toolbar>\n @for (input of inputs(); track input.id; let i = $index) {\n <mat-form-field\n class=\"lib-config-mscoa-additional-inputs__row\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\"\n (mouseover)=\"hovered.set(i)\"\n (mouseleave)=\"hovered.set(null)\">\n <mat-label>{{ input.label }}</mat-label>\n <mat-select\n matNativeControl\n [disabled]=\"disabled\"\n [value]=\"input.segment\"\n placeholder=\"select segment\"\n (selectionChange)=\"inputSegmentChanged($event, i)\">\n @for (segment of limitInputTo(); track segment.label) {\n <mat-option [value]=\"segment.value\">{{ segment.label }}</mat-option>\n }\n </mat-select>\n <mat-hint>Link formula to an input value</mat-hint>\n </mat-form-field>\n }\n </mat-list>\n} @else if (canAddInputs) {\n <lib-empty-state\n icon=\"info\"\n message=\"No input configuration available.\" />\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Input,\n ViewEncapsulation,\n computed,\n inject,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';\nimport { MatListModule } from '@angular/material/list';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { Subject, catchError, of, take, tap, type Observable } from 'rxjs';\n\nimport type { FormColumnInputs, IGetTreeResponse } from 'ngx-t-forms-types';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\n\n/**\n * A configured form input paired with the MSCOA account-segment it links to.\n *\n * `segment` is `undefined` when the user selects \"None\" (i.e. the input is not\n * bound to any account segment).\n */\nexport interface ConfiguredMscoaInput extends FormColumnInputs {\n /** Selected account-segment key. `undefined` when the user picks \"None\". */\n segment: string | undefined;\n}\n\n/** A selectable account-segment option (plus the synthetic \"None\" entry). */\ninterface SegmentOption {\n readonly value: string | undefined;\n readonly label: string;\n}\n\n/**\n * Internal editor that links each configured form input to an MSCOA\n * account-segment, implementing `MatFormFieldControl<ConfiguredMscoaInput[]>`\n * for the dynamic-data-edit configuration surface.\n *\n * Rendered by `t-dynamic-data-edit`, which supplies the surrounding field label,\n * hint, and validation errors — so this component owns only the per-input\n * segment selectors and the empty-state hint.\n *\n * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /\n * `required` / `placeholder` / `id` members, `@Input()` decorators, the\n * `focused` / `touched` / `stateChanges` members, and the `useExisting`\n * provider. These are framework wiring, not defects — the CLAUDE.md bans on\n * `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.\n */\n@Component({\n selector: 'lib-config-mscoa-additional-inputs',\n imports: [\n MatListModule,\n MatToolbarModule,\n MatFormFieldModule,\n MatSelectModule,\n EmptyStateComponent,\n ],\n templateUrl: './config-mscoa-additional-inputs.component.html',\n styleUrls: ['./config-mscoa-additional-inputs.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n { provide: MatFormFieldControl, useExisting: ConfigMscoaAdditionalInputsComponent },\n ],\n host: {\n 'class': 'lib-config-mscoa-additional-inputs',\n '[id]': 'id',\n '[attr.aria-describedby]': 'describedBy',\n },\n})\nexport class ConfigMscoaAdditionalInputsComponent\n implements MatFormFieldControl<ConfiguredMscoaInput[]>\n{\n static nextId = 0;\n\n // ---- MatFormFieldControl wiring (framework-mandated plain members) -------\n\n /** Emits whenever a piece of `MatFormFieldControl` state changes. */\n readonly stateChanges = new Subject<void>();\n readonly controlType = 'lib-config-mscoa-additional-inputs';\n\n id = `app-config-mscoa-additional-inputs-${ConfigMscoaAdditionalInputsComponent.nextId++}`;\n placeholder = '';\n focused = false;\n touched = false;\n describedBy = '';\n autofilled: boolean | undefined = undefined;\n userAriaDescribedBy: string | undefined = undefined;\n disableAutomaticLabeling: boolean | undefined = undefined;\n\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n readonly #destroyRef = inject(DestroyRef);\n\n // ---- Public input/output contract ---------------------------------------\n\n /** Whether all segment selectors are inert. */\n @Input() disabled = false;\n\n /** Whether a value is required (drives the MFC error state). */\n @Input() required = false;\n\n /** Validation errors surfaced by the parent for error-state derivation. */\n @Input() errors: IConfigElementError[] | undefined = [];\n\n /** Data context; the add-input affordance is gated on `mapToData?.id`. */\n @Input() mapToData: FormColumnInputs | undefined = undefined;\n\n /**\n * One-shot stream of the MSCOA tree. The first emitted response's\n * `accountTreeKeys` populate the per-input segment options; later\n * assignments are ignored (the stream is consumed once).\n */\n @Input() set getMscoaTree(options$: Observable<IGetTreeResponse | undefined>) {\n if (!options$ || this.#mscoaInitiated) {\n return;\n }\n this.#mscoaInitiated = true;\n options$\n .pipe(\n take(1),\n tap((options) => this.#accountTreeKeys.set(options?.accountTreeKeys ?? [])),\n catchError(() => of(undefined)),\n takeUntilDestroyed(this.#destroyRef),\n )\n .subscribe();\n }\n\n /** Emits the full configured-input list whenever a segment changes. */\n readonly valueChanged = output<ConfiguredMscoaInput[]>();\n\n #mscoaInitiated = false;\n readonly #accountTreeKeys = signal<string[]>([]);\n readonly #value = signal<ConfiguredMscoaInput[]>([]);\n\n /** Currently hovered list row index, for hover affordances. */\n protected readonly hovered = signal<number | null>(null);\n\n /**\n * Segment options offered per input: every account-tree key plus a trailing\n * synthetic \"None\" entry that clears the binding.\n */\n protected readonly limitInputTo = computed<SegmentOption[]>(() => [\n ...this.#accountTreeKeys().map((key) => ({ value: key as string | undefined, label: key })),\n { value: undefined, label: 'None' },\n ]);\n\n /**\n * Whether the empty-state hint may render.\n *\n * A plain getter (not a `computed()`) because `mapToData` is a framework-style\n * mutable `@Input` rather than a signal — OnPush re-evaluates this binding\n * each change-detection pass.\n */\n protected get canAddInputs(): boolean {\n return !!this.mapToData?.id;\n }\n\n /** Configured inputs to render. */\n protected readonly inputs = this.#value.asReadonly();\n\n /** Current MatFormFieldControl value (the configured-input list). */\n @Input()\n get value(): ConfiguredMscoaInput[] {\n return this.#value();\n }\n set value(val: ConfiguredMscoaInput[]) {\n this.#value.set(val ?? []);\n this.stateChanges.next();\n }\n\n // ---- MatFormFieldControl framework getters ------------------------------\n\n get empty(): boolean {\n return this.#value().length === 0;\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get errorState(): boolean {\n const requiredUnset = this.empty && this.required;\n const ngControlError = this.ngControl?.errors != null;\n const externalError = (this.errors?.length ?? 0) > 0 && this.touched;\n return requiredUnset || ngControlError || externalError;\n }\n\n setDescribedByIds(ids: string[]): void {\n this.describedBy = ids.join(' ');\n this.stateChanges.next();\n }\n\n onContainerClick(): void {\n this.markAsTouched();\n this.stateChanges.next();\n }\n\n onTouched: () => void = () => {};\n\n markAsTouched(): void {\n if (!this.touched) {\n this.touched = true;\n this.onTouched();\n this.stateChanges.next();\n }\n }\n\n // ---- Behaviour ----------------------------------------------------------\n\n /**\n * Assigns the chosen account-segment to the input at `index` and emits the\n * updated list immediately. Selecting \"None\" (`undefined`) clears the binding.\n */\n inputSegmentChanged(\n event: { detail?: { value: string }; value?: string },\n index: number,\n ): void {\n const detailValue = event.detail?.value ?? event.value;\n const current = this.#value();\n const item = current[index];\n if (!item) {\n return;\n }\n const next = current.map((input, i) =>\n i === index\n ? { ...input, segment: detailValue === 'None' ? undefined : detailValue }\n : input,\n );\n this.#value.set(next);\n this.markAsTouched();\n this.stateChanges.next();\n this.valueChanged.emit(next);\n }\n}\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;IAoBY,EAAA,CAAA,cAAA,C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AE,mBAAmB,EAAE,WAAW,sCAAsC,EAAE;iBACpF,EAAA,IAAA,EACK;AACJ,oBAAA,OAAO,EAAE,oCAAoC;AAC7C,oBAAA,MAAM,EAAE,IAAI;AACZ,oBAAA,yBAAyB,EAAE,aAAa;AACzC,iBAAA,EAAA,QAAA,EAAA,0sCAAA,EAAA,MAAA,EAAA,CAAA,8KAAA,CAAA,EAAA;;kBA6BA;;kBAGA;;kBAGA;;kBAGA;;kBAOA;;kBAiDA;;kFA5FU,oCAAoC,EAAA,EAAA,SAAA,EAAA,sCAAA,EAAA,QAAA,EAAA,wHAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, input, output, inject, ElementRef, computed, Input, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { NgControl } from '@angular/forms';
|
|
4
|
-
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
5
|
-
import { Subject } from 'rxjs';
|
|
6
|
-
import * as i2 from '@angular/material/button';
|
|
7
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
8
|
-
import * as i3 from '@angular/material/card';
|
|
9
|
-
import { MatCardModule } from '@angular/material/card';
|
|
10
|
-
import * as i3$1 from '@angular/material/icon';
|
|
11
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
-
import * as i6 from '@angular/material/list';
|
|
13
|
-
import { MatListModule } from '@angular/material/list';
|
|
14
|
-
import * as i5 from '@angular/material/tooltip';
|
|
15
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
16
|
-
import { DataSources } from 'ngx-t-forms-types';
|
|
17
|
-
import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs';
|
|
18
|
-
import { MatChipListEditorComponent } from './ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs';
|
|
19
|
-
import { PipelineGeneratorComponent } from './ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs';
|
|
20
|
-
import { RequiredInputsComponent } from './ngx-t-forms-required-inputs.component-BMmNxeE-.mjs';
|
|
21
|
-
import { RestApiCallSetupComponent } from './ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Internal editor element for configuring a report's data sources (API calls and
|
|
25
|
-
* MongoDB pipelines). It is a real `MatFormFieldControl`, rendered by
|
|
26
|
-
* `t-dynamic-data-edit` inside a `<mat-form-field>` — so the parent owns the
|
|
27
|
-
* surrounding label, hint, and validation errors, and this component owns only
|
|
28
|
-
* the source list, the inline editor card, and the add affordance.
|
|
29
|
-
*
|
|
30
|
-
* NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /
|
|
31
|
-
* `required` / `placeholder` / `id` members, `@Input()` decorators, the
|
|
32
|
-
* `focused` / `touched` / `stateChanges` members, and the `useExisting`
|
|
33
|
-
* provider. These are framework wiring, not defects — the CLAUDE.md bans on
|
|
34
|
-
* `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.
|
|
35
|
-
*/
|
|
36
|
-
class DataSourcePickerComponent {
|
|
37
|
-
constructor() {
|
|
38
|
-
/** Emits whenever a piece of `MatFormFieldControl` state changes. */
|
|
39
|
-
this.stateChanges = new Subject();
|
|
40
|
-
this.controlType = 'lib-data-source-picker';
|
|
41
|
-
this.id = `lib-data-source-picker-${DataSourcePickerComponent.nextId++}`;
|
|
42
|
-
this.placeholder = '';
|
|
43
|
-
this.focused = false;
|
|
44
|
-
this.touched = false;
|
|
45
|
-
this.required = false;
|
|
46
|
-
this.describedBy = '';
|
|
47
|
-
this.autofilled = false;
|
|
48
|
-
this.userAriaDescribedBy = undefined;
|
|
49
|
-
this.disableAutomaticLabeling = undefined;
|
|
50
|
-
/** Validation errors surfaced by the parent for error-state derivation. */
|
|
51
|
-
this.errors = [];
|
|
52
|
-
this.#disabled = false;
|
|
53
|
-
// Mirror of the plain MFC `value` member, so the template + computeds react.
|
|
54
|
-
this.#value = signal(undefined, ...(ngDevMode ? [{ debugName: "#value" }] : /* istanbul ignore next */ []));
|
|
55
|
-
// Mirror of the plain `editorConfig` member, so the template reacts.
|
|
56
|
-
this.#editorConfig = signal(undefined, ...(ngDevMode ? [{ debugName: "#editorConfig" }] : /* istanbul ignore next */ []));
|
|
57
|
-
/** All available form inputs the user can map a required input to. */
|
|
58
|
-
this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
|
|
59
|
-
/** Emits the mutated data-source list whenever the user adds or removes a source. */
|
|
60
|
-
this.valueChange = output();
|
|
61
|
-
this.ngControl = inject(NgControl, { self: true, optional: true });
|
|
62
|
-
this.#elementRef = inject(ElementRef);
|
|
63
|
-
/** Source-type enum, exposed to the template. */
|
|
64
|
-
this.dataSources = DataSources;
|
|
65
|
-
/** The selectable source types in the chip selector. */
|
|
66
|
-
this.dataSourceOptions = [
|
|
67
|
-
{ label: 'API', value: DataSources.Api },
|
|
68
|
-
{ label: 'MongoDB', value: DataSources.MongoDb },
|
|
69
|
-
];
|
|
70
|
-
/** The in-edit draft, or `undefined` when the editor card is closed. */
|
|
71
|
-
this.draft = signal(undefined, ...(ngDevMode ? [{ debugName: "draft" }] : /* istanbul ignore next */ []));
|
|
72
|
-
/** Decorated rows for the configured-source list. */
|
|
73
|
-
this.rows = computed(() => (this.#value() ?? []).map((source, index) => ({
|
|
74
|
-
source,
|
|
75
|
-
name: this.#name(source, index),
|
|
76
|
-
icon: source.source === DataSources.Api ? 'api' : 'storage',
|
|
77
|
-
endpoint: this.#endpoint(source),
|
|
78
|
-
isApi: source.source === DataSources.Api,
|
|
79
|
-
})), ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
80
|
-
/** Whether any data source is configured. */
|
|
81
|
-
this.hasSources = computed(() => (this.#value() ?? []).length > 0, ...(ngDevMode ? [{ debugName: "hasSources" }] : /* istanbul ignore next */ []));
|
|
82
|
-
/** The `minimumInputRequired` list of the draft's API config, or `undefined`. */
|
|
83
|
-
this.draftMinimumInputRequired = computed(() => {
|
|
84
|
-
const config = this.draft()?.config;
|
|
85
|
-
if (!config || !this.#isApiConfig(config)) {
|
|
86
|
-
return undefined;
|
|
87
|
-
}
|
|
88
|
-
return config.backEndConfig?.minimumInputRequired;
|
|
89
|
-
}, ...(ngDevMode ? [{ debugName: "draftMinimumInputRequired" }] : /* istanbul ignore next */ []));
|
|
90
|
-
this.onTouched = () => { };
|
|
91
|
-
}
|
|
92
|
-
static { this.nextId = 0; }
|
|
93
|
-
#disabled;
|
|
94
|
-
/** Whether the control is inert. */
|
|
95
|
-
get disabled() {
|
|
96
|
-
return this.#disabled;
|
|
97
|
-
}
|
|
98
|
-
set disabled(value) {
|
|
99
|
-
this.#disabled = value;
|
|
100
|
-
this.stateChanges.next();
|
|
101
|
-
}
|
|
102
|
-
// Mirror of the plain MFC `value` member, so the template + computeds react.
|
|
103
|
-
#value;
|
|
104
|
-
/** Current list of configured data sources. */
|
|
105
|
-
get value() {
|
|
106
|
-
return this.#value();
|
|
107
|
-
}
|
|
108
|
-
set value(value) {
|
|
109
|
-
if (this.#value() === value) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
this.#value.set(value);
|
|
113
|
-
this.stateChanges.next();
|
|
114
|
-
}
|
|
115
|
-
// Mirror of the plain `editorConfig` member, so the template reacts.
|
|
116
|
-
#editorConfig;
|
|
117
|
-
/** Editor configuration supplying postman / workflow option providers. */
|
|
118
|
-
get editorConfig() {
|
|
119
|
-
return this.#editorConfig();
|
|
120
|
-
}
|
|
121
|
-
set editorConfig(config) {
|
|
122
|
-
this.#editorConfig.set(config);
|
|
123
|
-
}
|
|
124
|
-
#elementRef;
|
|
125
|
-
// ---- MatFormFieldControl getters (read during the framework's CD) --------
|
|
126
|
-
get empty() {
|
|
127
|
-
return (this.#value() ?? []).length === 0;
|
|
128
|
-
}
|
|
129
|
-
get shouldLabelFloat() {
|
|
130
|
-
return this.focused || !this.empty;
|
|
131
|
-
}
|
|
132
|
-
get errorState() {
|
|
133
|
-
const requiredUnset = this.empty && this.required;
|
|
134
|
-
const ngControlError = this.ngControl?.errors != null;
|
|
135
|
-
const externalError = (this.errors?.length ?? 0) > 0 && this.touched;
|
|
136
|
-
return requiredUnset || ngControlError || externalError;
|
|
137
|
-
}
|
|
138
|
-
setDescribedByIds(ids) {
|
|
139
|
-
this.describedBy = ids.join(' ');
|
|
140
|
-
const el = this.#elementRef.nativeElement;
|
|
141
|
-
const control = el.querySelector('.lib-data-source-picker__list');
|
|
142
|
-
control?.setAttribute('aria-describedby', this.describedBy);
|
|
143
|
-
this.stateChanges.next();
|
|
144
|
-
}
|
|
145
|
-
onContainerClick() {
|
|
146
|
-
this.markAsTouched();
|
|
147
|
-
if (!this.focused) {
|
|
148
|
-
this.focused = true;
|
|
149
|
-
}
|
|
150
|
-
this.stateChanges.next();
|
|
151
|
-
}
|
|
152
|
-
markAsTouched() {
|
|
153
|
-
if (!this.touched) {
|
|
154
|
-
this.touched = true;
|
|
155
|
-
this.onTouched();
|
|
156
|
-
this.stateChanges.next();
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
// ---- Draft editing -------------------------------------------------------
|
|
160
|
-
/** Open the editor card with an empty draft. */
|
|
161
|
-
startEditing() {
|
|
162
|
-
this.draft.set({});
|
|
163
|
-
}
|
|
164
|
-
/** Discard the draft and close the editor card. */
|
|
165
|
-
cancelEditing() {
|
|
166
|
-
this.draft.set(undefined);
|
|
167
|
-
}
|
|
168
|
-
/** Set the draft's source type. Child chip editor emits an unknown payload. */
|
|
169
|
-
sourceTypeChanged(source) {
|
|
170
|
-
this.draft.update((current) => current ? { ...current, source: source } : current);
|
|
171
|
-
}
|
|
172
|
-
/** Set the draft's source config (API setup or pipeline). */
|
|
173
|
-
sourceConfigChanged(config) {
|
|
174
|
-
this.draft.update((current) => (current ? { ...current, config } : current));
|
|
175
|
-
}
|
|
176
|
-
/** Merge the required-input list into the draft's API config. */
|
|
177
|
-
minimumInputRequiredValueChanged(value) {
|
|
178
|
-
this.draft.update((current) => {
|
|
179
|
-
if (!current?.config || !this.#isApiConfig(current.config)) {
|
|
180
|
-
return current;
|
|
181
|
-
}
|
|
182
|
-
const config = {
|
|
183
|
-
...current.config,
|
|
184
|
-
backEndConfig: { ...current.config.backEndConfig, minimumInputRequired: value },
|
|
185
|
-
};
|
|
186
|
-
return { ...current, config };
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
/** Commit the draft as a new source (assigning a fresh id) and emit. */
|
|
190
|
-
saveNewSource() {
|
|
191
|
-
const current = this.draft();
|
|
192
|
-
if (!current) {
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
const data = { ...current, id: crypto.randomUUID() };
|
|
196
|
-
const next = [...(this.#value() ?? []), data];
|
|
197
|
-
this.value = next;
|
|
198
|
-
this.draft.set(undefined);
|
|
199
|
-
this.markAsTouched();
|
|
200
|
-
this.valueChange.emit(next);
|
|
201
|
-
}
|
|
202
|
-
/** Remove a configured source by id and emit. */
|
|
203
|
-
removeSource(source) {
|
|
204
|
-
const current = this.#value();
|
|
205
|
-
if (!current) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
const next = current.filter((item) => item.id !== source.id);
|
|
209
|
-
this.value = next;
|
|
210
|
-
this.markAsTouched();
|
|
211
|
-
this.valueChange.emit(next);
|
|
212
|
-
}
|
|
213
|
-
#name(value, index) {
|
|
214
|
-
if (this.#isApiConfig(value.config) && value.config.name) {
|
|
215
|
-
return value.config.name;
|
|
216
|
-
}
|
|
217
|
-
return value.source === DataSources.Api ? `API ${index + 1}` : `MongoDB ${index + 1}`;
|
|
218
|
-
}
|
|
219
|
-
#endpoint(value) {
|
|
220
|
-
if (this.#isApiConfig(value.config)) {
|
|
221
|
-
return value.config.httpEndPoint ?? '';
|
|
222
|
-
}
|
|
223
|
-
return value.config.workflowId ?? '';
|
|
224
|
-
}
|
|
225
|
-
#isApiConfig(config) {
|
|
226
|
-
return config?.source === DataSources.Api;
|
|
227
|
-
}
|
|
228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DataSourcePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
229
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DataSourcePickerComponent, isStandalone: true, selector: "lib-data-source-picker", inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, editorConfig: { classPropertyName: "editorConfig", publicName: "editorConfig", isSignal: false, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.id": "id", "class.lib-data-source-picker--focused": "focused", "class.lib-data-source-picker--disabled": "disabled" }, classAttribute: "lib-data-source-picker" }, providers: [{ provide: MatFormFieldControl, useExisting: DataSourcePickerComponent }], ngImport: i0, template: "<div class=\"lib-data-source-picker__list\">\n @if (hasSources()) {\n <mat-list class=\"lib-data-source-picker__sources\">\n @for (row of rows(); track row.source.id) {\n <mat-list-item\n class=\"lib-data-source-picker__source\"\n matTooltipPosition=\"before\"\n [matTooltip]=\"row.source.source + ' ' + row.endpoint\">\n <mat-icon\n matListItemIcon\n class=\"lib-data-source-picker__icon\"\n [class.lib-data-source-picker__icon--api]=\"row.isApi\">\n {{ row.icon }}\n </mat-icon>\n <span matListItemTitle class=\"lib-data-source-picker__name\">{{ row.name }}</span>\n <span matListItemLine class=\"lib-data-source-picker__endpoint\">{{ row.endpoint }}</span>\n <button\n matListItemMeta\n mat-icon-button\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + row.name\"\n [disabled]=\"disabled\"\n (click)=\"removeSource(row.source)\">\n <mat-icon>delete</mat-icon>\n </button>\n </mat-list-item>\n }\n </mat-list>\n } @else {\n <lib-empty-state icon=\"storage\" message=\"No data sources configured. Add one to get started.\" />\n }\n</div>\n\n@if (draft(); as draft) {\n <mat-card appearance=\"outlined\" class=\"lib-data-source-picker__editor\">\n <mat-card-content>\n <label [attr.for]=\"id + '-type'\" class=\"lib-data-source-picker__label\">Select source type</label>\n <lib-mat-chip-list-editor\n [id]=\"id + '-type'\"\n [value]=\"draft.source\"\n [options]=\"dataSourceOptions\"\n (valueChange)=\"sourceTypeChanged($event)\" />\n\n @if (draft.source !== undefined) {\n @switch (draft.source) {\n @case (dataSources.Api) {\n <label [attr.for]=\"id + '-api'\" class=\"lib-data-source-picker__label\">Select API</label>\n <lib-rest-api-call-setup\n [id]=\"id + '-api'\"\n [postmanCollectionConfig]=\"editorConfig?.postmanCollectionConfig\"\n [httpGetDataFunction]=\"editorConfig?.httpGetDataFunction\"\n [value]=\"$any(draft.config)\"\n (valueChanged)=\"sourceConfigChanged($event)\" />\n\n @if (draftMinimumInputRequired(); as minimumInputRequired) {\n <lib-required-inputs\n [id]=\"id + '-required-inputs'\"\n [formInputs]=\"formInputs() || []\"\n [value]=\"minimumInputRequired\"\n [errors]=\"[]\"\n (valueChanged)=\"minimumInputRequiredValueChanged($event)\" />\n }\n }\n @case (dataSources.MongoDb) {\n <label [attr.for]=\"id + '-pipeline'\" class=\"lib-data-source-picker__label\">Add a MongoDB pipeline</label>\n <lib-pipeline-generator\n [id]=\"id + '-pipeline'\"\n [value]=\"$any(draft.config)\"\n [getWorkflowOptions]=\"editorConfig?.getWorkflowOptions\"\n (valueChanged)=\"sourceConfigChanged($event)\" />\n }\n }\n }\n </mat-card-content>\n\n <mat-card-actions class=\"lib-data-source-picker__actions\">\n <button mat-flat-button color=\"primary\" type=\"button\" (click)=\"saveNewSource()\">Save source</button>\n <span class=\"lib-data-source-picker__spacer\"></span>\n <button mat-button color=\"warn\" type=\"button\" (click)=\"cancelEditing()\">Cancel</button>\n </mat-card-actions>\n </mat-card>\n} @else {\n <button\n mat-stroked-button\n color=\"primary\"\n type=\"button\"\n class=\"lib-data-source-picker__add\"\n [disabled]=\"disabled\"\n (click)=\"startEditing()\">\n <mat-icon>add</mat-icon>\n Add data source\n </button>\n}\n", styles: [":host{display:block}.lib-data-source-picker__list{display:block}.lib-data-source-picker__sources{padding:0}.lib-data-source-picker__source{border-radius:var(--lib-forms-radius-sm, 8px)}.lib-data-source-picker__icon{color:var(--lib-forms-on-surface-variant)}.lib-data-source-picker__icon--api{color:var(--lib-forms-primary)}.lib-data-source-picker__name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-data-source-picker__endpoint{color:var(--lib-forms-on-surface-variant);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-data-source-picker__editor{margin-top:1.5rem;background:var(--lib-forms-surface)}.lib-data-source-picker__label{display:block;margin-top:.75rem;margin-bottom:.5rem;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-data-source-picker__actions{display:flex;align-items:center;margin-top:1.5rem}.lib-data-source-picker__spacer{flex:1 1 auto}.lib-data-source-picker__add{width:100%;margin-top:1.5rem}:host(.lib-data-source-picker--disabled){opacity:.55;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i6.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i6.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i6.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }, { kind: "component", type: MatChipListEditorComponent, selector: "lib-mat-chip-list-editor", inputs: ["disabled", "multiple", "required", "errors", "value", "options"], outputs: ["valueChange"] }, { kind: "component", type: PipelineGeneratorComponent, selector: "lib-pipeline-generator", inputs: ["disabled", "value", "getWorkflowOptions", "userName", "errors"], outputs: ["valueChanged"] }, { kind: "component", type: RequiredInputsComponent, selector: "lib-required-inputs", inputs: ["value", "formInputs", "disabled", "errors", "id"], outputs: ["valueChanged"] }, { kind: "component", type: RestApiCallSetupComponent, selector: "lib-rest-api-call-setup", inputs: ["id", "postmanCollectionConfig", "httpGetDataFunction", "disabled", "value", "errors"], outputs: ["valueChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
230
|
-
}
|
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DataSourcePickerComponent, decorators: [{
|
|
232
|
-
type: Component,
|
|
233
|
-
args: [{ selector: 'lib-data-source-picker', imports: [
|
|
234
|
-
MatButtonModule,
|
|
235
|
-
MatCardModule,
|
|
236
|
-
MatIconModule,
|
|
237
|
-
MatListModule,
|
|
238
|
-
MatTooltipModule,
|
|
239
|
-
EmptyStateComponent,
|
|
240
|
-
MatChipListEditorComponent,
|
|
241
|
-
PipelineGeneratorComponent,
|
|
242
|
-
RequiredInputsComponent,
|
|
243
|
-
RestApiCallSetupComponent,
|
|
244
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, providers: [{ provide: MatFormFieldControl, useExisting: DataSourcePickerComponent }], host: {
|
|
245
|
-
'class': 'lib-data-source-picker',
|
|
246
|
-
'[attr.id]': 'id',
|
|
247
|
-
'[class.lib-data-source-picker--focused]': 'focused',
|
|
248
|
-
'[class.lib-data-source-picker--disabled]': 'disabled',
|
|
249
|
-
}, template: "<div class=\"lib-data-source-picker__list\">\n @if (hasSources()) {\n <mat-list class=\"lib-data-source-picker__sources\">\n @for (row of rows(); track row.source.id) {\n <mat-list-item\n class=\"lib-data-source-picker__source\"\n matTooltipPosition=\"before\"\n [matTooltip]=\"row.source.source + ' ' + row.endpoint\">\n <mat-icon\n matListItemIcon\n class=\"lib-data-source-picker__icon\"\n [class.lib-data-source-picker__icon--api]=\"row.isApi\">\n {{ row.icon }}\n </mat-icon>\n <span matListItemTitle class=\"lib-data-source-picker__name\">{{ row.name }}</span>\n <span matListItemLine class=\"lib-data-source-picker__endpoint\">{{ row.endpoint }}</span>\n <button\n matListItemMeta\n mat-icon-button\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + row.name\"\n [disabled]=\"disabled\"\n (click)=\"removeSource(row.source)\">\n <mat-icon>delete</mat-icon>\n </button>\n </mat-list-item>\n }\n </mat-list>\n } @else {\n <lib-empty-state icon=\"storage\" message=\"No data sources configured. Add one to get started.\" />\n }\n</div>\n\n@if (draft(); as draft) {\n <mat-card appearance=\"outlined\" class=\"lib-data-source-picker__editor\">\n <mat-card-content>\n <label [attr.for]=\"id + '-type'\" class=\"lib-data-source-picker__label\">Select source type</label>\n <lib-mat-chip-list-editor\n [id]=\"id + '-type'\"\n [value]=\"draft.source\"\n [options]=\"dataSourceOptions\"\n (valueChange)=\"sourceTypeChanged($event)\" />\n\n @if (draft.source !== undefined) {\n @switch (draft.source) {\n @case (dataSources.Api) {\n <label [attr.for]=\"id + '-api'\" class=\"lib-data-source-picker__label\">Select API</label>\n <lib-rest-api-call-setup\n [id]=\"id + '-api'\"\n [postmanCollectionConfig]=\"editorConfig?.postmanCollectionConfig\"\n [httpGetDataFunction]=\"editorConfig?.httpGetDataFunction\"\n [value]=\"$any(draft.config)\"\n (valueChanged)=\"sourceConfigChanged($event)\" />\n\n @if (draftMinimumInputRequired(); as minimumInputRequired) {\n <lib-required-inputs\n [id]=\"id + '-required-inputs'\"\n [formInputs]=\"formInputs() || []\"\n [value]=\"minimumInputRequired\"\n [errors]=\"[]\"\n (valueChanged)=\"minimumInputRequiredValueChanged($event)\" />\n }\n }\n @case (dataSources.MongoDb) {\n <label [attr.for]=\"id + '-pipeline'\" class=\"lib-data-source-picker__label\">Add a MongoDB pipeline</label>\n <lib-pipeline-generator\n [id]=\"id + '-pipeline'\"\n [value]=\"$any(draft.config)\"\n [getWorkflowOptions]=\"editorConfig?.getWorkflowOptions\"\n (valueChanged)=\"sourceConfigChanged($event)\" />\n }\n }\n }\n </mat-card-content>\n\n <mat-card-actions class=\"lib-data-source-picker__actions\">\n <button mat-flat-button color=\"primary\" type=\"button\" (click)=\"saveNewSource()\">Save source</button>\n <span class=\"lib-data-source-picker__spacer\"></span>\n <button mat-button color=\"warn\" type=\"button\" (click)=\"cancelEditing()\">Cancel</button>\n </mat-card-actions>\n </mat-card>\n} @else {\n <button\n mat-stroked-button\n color=\"primary\"\n type=\"button\"\n class=\"lib-data-source-picker__add\"\n [disabled]=\"disabled\"\n (click)=\"startEditing()\">\n <mat-icon>add</mat-icon>\n Add data source\n </button>\n}\n", styles: [":host{display:block}.lib-data-source-picker__list{display:block}.lib-data-source-picker__sources{padding:0}.lib-data-source-picker__source{border-radius:var(--lib-forms-radius-sm, 8px)}.lib-data-source-picker__icon{color:var(--lib-forms-on-surface-variant)}.lib-data-source-picker__icon--api{color:var(--lib-forms-primary)}.lib-data-source-picker__name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-data-source-picker__endpoint{color:var(--lib-forms-on-surface-variant);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-data-source-picker__editor{margin-top:1.5rem;background:var(--lib-forms-surface)}.lib-data-source-picker__label{display:block;margin-top:.75rem;margin-bottom:.5rem;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-data-source-picker__actions{display:flex;align-items:center;margin-top:1.5rem}.lib-data-source-picker__spacer{flex:1 1 auto}.lib-data-source-picker__add{width:100%;margin-top:1.5rem}:host(.lib-data-source-picker--disabled){opacity:.55;pointer-events:none}\n"] }]
|
|
250
|
-
}], propDecorators: { errors: [{
|
|
251
|
-
type: Input
|
|
252
|
-
}], disabled: [{
|
|
253
|
-
type: Input
|
|
254
|
-
}], value: [{
|
|
255
|
-
type: Input
|
|
256
|
-
}], editorConfig: [{
|
|
257
|
-
type: Input
|
|
258
|
-
}], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
259
|
-
|
|
260
|
-
export { DataSourcePickerComponent };
|
|
261
|
-
//# sourceMappingURL=ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map
|