ngx-t-forms 2.0.37 → 3.0.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-7g5cpVfB.mjs +261 -0
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +225 -0
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +1011 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +136 -0
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +253 -0
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +419 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +231 -0
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +333 -0
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +543 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +1259 -0
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +1996 -0
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +581 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-editor-input-element.component-D38U94oj.mjs → ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs} +138 -15
- package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs +539 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +585 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +447 -0
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +163 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs → ngx-t-forms-form-json-view.component-r64GKVhI.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map → ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +28 -0
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +291 -0
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +936 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +816 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs → ngx-t-forms-geo-location.component-D2fIbagr.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map → ngx-t-forms-geo-location.component-D2fIbagr.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +329 -0
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +360 -0
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-index-CPNvE4PP.mjs → ngx-t-forms-index-6YIhS6cm.mjs} +2 -2
- package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +2 -0
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +128 -0
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs → ngx-t-forms-input-custom.component-Dcoze7U3.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map → ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +512 -0
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs → ngx-t-forms-input-editor.component-B6UKwV4i.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map → ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +132 -0
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +268 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs +167 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +241 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +180 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +114 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +69 -0
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +200 -0
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +850 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +107 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +1665 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs} +13 -13
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs} +826 -120
- package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +28237 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +1024 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +234 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +1126 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +639 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs +446 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +451 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +625 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +72 -0
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs → ngx-t-forms-section-report.component-BYMcaRE5.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs.map → ngx-t-forms-section-report.component-BYMcaRE5.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +248 -0
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +408 -0
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +275 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +366 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs +263 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +233 -0
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +305 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +1105 -0
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs → ngx-t-forms-validators-config.component-CoGSFor3.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map → ngx-t-forms-validators-config.component-CoGSFor3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +2923 -0
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs → ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs} +17 -17
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/types/ngx-t-forms.d.ts +7 -0
- package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs +0 -704
- package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs +0 -240
- package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs +0 -66
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs +0 -358
- package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map +0 -1
package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs}
RENAMED
|
@@ -12,13 +12,13 @@ import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
|
12
12
|
import { v4 } from 'uuid';
|
|
13
13
|
import * as i3 from '@angular/common';
|
|
14
14
|
import { TitleCasePipe, LowerCasePipe, UpperCasePipe, DecimalPipe, CurrencyPipe, DatePipe, DOCUMENT, isPlatformBrowser, CommonModule, NgComponentOutlet, AsyncPipe, JsonPipe } from '@angular/common';
|
|
15
|
-
import * as i1$
|
|
15
|
+
import * as i1$2 from '@angular/cdk/drag-drop';
|
|
16
16
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
17
17
|
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
18
18
|
import * as i7$1 from '@angular/router';
|
|
19
19
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
20
20
|
import { s } from '@hashbrownai/core';
|
|
21
|
-
import * as
|
|
21
|
+
import * as i2 from '@angular/material/button';
|
|
22
22
|
import { MatButtonModule } from '@angular/material/button';
|
|
23
23
|
import * as i3$1 from '@angular/material/icon';
|
|
24
24
|
import { MatIconModule } from '@angular/material/icon';
|
|
@@ -30,15 +30,15 @@ import * as i4 from '@angular/material/progress-spinner';
|
|
|
30
30
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
31
31
|
import * as i8 from '@angular/material/toolbar';
|
|
32
32
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
33
|
-
import * as i2 from '@angular/material/form-field';
|
|
33
|
+
import * as i2$1 from '@angular/material/form-field';
|
|
34
34
|
import { MatFormFieldModule, MatFormFieldControl } from '@angular/material/form-field';
|
|
35
|
-
import * as i2$
|
|
35
|
+
import * as i2$2 from '@angular/material/input';
|
|
36
36
|
import { MatInputModule } from '@angular/material/input';
|
|
37
37
|
import * as i5 from '@angular/material/tooltip';
|
|
38
38
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
39
39
|
import * as i7 from '@angular/material/core';
|
|
40
40
|
import { MatRippleModule, MatNativeDateModule } from '@angular/material/core';
|
|
41
|
-
import * as i1$
|
|
41
|
+
import * as i1$3 from '@angular/material/dialog';
|
|
42
42
|
import { MAT_DIALOG_DATA, MatDialogModule, MatDialog, MatDialogRef, MatDialogActions } from '@angular/material/dialog';
|
|
43
43
|
import * as i4$1 from '@angular/material/stepper';
|
|
44
44
|
import { MatStepperModule } from '@angular/material/stepper';
|
|
@@ -48,18 +48,18 @@ import * as i8$1 from '@angular/material/select';
|
|
|
48
48
|
import { MatSelectModule } from '@angular/material/select';
|
|
49
49
|
import * as i3$2 from '@angular/material/card';
|
|
50
50
|
import { MatCardModule } from '@angular/material/card';
|
|
51
|
-
import * as i1$
|
|
51
|
+
import * as i1$4 from '@angular/material/tree';
|
|
52
52
|
import { MatTreeFlattener, MatTreeFlatDataSource, MatTreeModule } from '@angular/material/tree';
|
|
53
53
|
import { FlatTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
54
54
|
import * as i5$1 from '@angular/material/table';
|
|
55
55
|
import { MatTableModule, MatTableDataSource } from '@angular/material/table';
|
|
56
56
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
57
|
-
import * as i3$
|
|
57
|
+
import * as i3$4 from '@angular/material/checkbox';
|
|
58
58
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
59
59
|
import { MatDividerModule } from '@angular/material/divider';
|
|
60
60
|
import * as i5$2 from '@angular/material/expansion';
|
|
61
61
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
62
|
-
import * as i10
|
|
62
|
+
import * as i10 from '@angular/material/sidenav';
|
|
63
63
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
64
64
|
import _ from 'lodash';
|
|
65
65
|
import { CdkAccordionModule } from '@angular/cdk/accordion';
|
|
@@ -71,22 +71,22 @@ import { CdkStepperModule } from '@angular/cdk/stepper';
|
|
|
71
71
|
import { CdkTableModule } from '@angular/cdk/table';
|
|
72
72
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
73
73
|
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
|
|
74
|
-
import * as i3$
|
|
74
|
+
import * as i3$5 from '@angular/material/button-toggle';
|
|
75
75
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
76
76
|
import * as i4$3 from '@angular/material/chips';
|
|
77
77
|
import { MatChipsModule } from '@angular/material/chips';
|
|
78
78
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
79
79
|
import { MatGridListModule } from '@angular/material/grid-list';
|
|
80
|
-
import * as
|
|
80
|
+
import * as i3$3 from '@angular/material/paginator';
|
|
81
81
|
import { MatPaginatorModule, MatPaginator } from '@angular/material/paginator';
|
|
82
82
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
83
83
|
import { MatRadioModule } from '@angular/material/radio';
|
|
84
84
|
import { MatSliderModule } from '@angular/material/slider';
|
|
85
85
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
86
|
-
import * as
|
|
86
|
+
import * as i2$3 from '@angular/material/sort';
|
|
87
87
|
import { MatSortModule, MatSort } from '@angular/material/sort';
|
|
88
88
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
89
|
-
import * as i2$
|
|
89
|
+
import * as i2$4 from '@angular/cdk/overlay';
|
|
90
90
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
91
91
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
92
92
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
@@ -2563,6 +2563,191 @@ function applyRounding(value, decimals, mode = 'ROUND') {
|
|
|
2563
2563
|
return math.divide(scaledValue, scale);
|
|
2564
2564
|
}
|
|
2565
2565
|
|
|
2566
|
+
/**
|
|
2567
|
+
* Reads a dot-notated document path, e.g. `form.amount`.
|
|
2568
|
+
*
|
|
2569
|
+
* Documents come back in their stored shape — form values nested under `form` —
|
|
2570
|
+
* rather than being flattened onto the row, so a column named `reference` can never
|
|
2571
|
+
* be shadowed by a form field of the same name.
|
|
2572
|
+
*
|
|
2573
|
+
* @param doc - The document to read from.
|
|
2574
|
+
* @param path - Dot-notated path. An empty path returns `undefined`.
|
|
2575
|
+
* @returns The value at the path, or `undefined` if any segment is missing.
|
|
2576
|
+
*/
|
|
2577
|
+
function readDocumentPath(doc, path) {
|
|
2578
|
+
if (!path)
|
|
2579
|
+
return undefined;
|
|
2580
|
+
return path.split('.').reduce((value, segment) => {
|
|
2581
|
+
if (value == null || typeof value !== 'object')
|
|
2582
|
+
return undefined;
|
|
2583
|
+
return value[segment];
|
|
2584
|
+
}, doc);
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
/** Path used when the picker has no configured primary identifier key. */
|
|
2588
|
+
const DEFAULT_IDENTIFIER_PATH = '_id';
|
|
2589
|
+
/**
|
|
2590
|
+
* Resolves the document path a picker's identifiers are read from.
|
|
2591
|
+
*
|
|
2592
|
+
* @param primaryIdentifierKey - Configured key, as the builder's key mapper stores it.
|
|
2593
|
+
* @returns A dot-notated path, defaulting to `_id`.
|
|
2594
|
+
*/
|
|
2595
|
+
function resolveIdentifierPath(primaryIdentifierKey) {
|
|
2596
|
+
if (!primaryIdentifierKey || primaryIdentifierKey.length === 0) {
|
|
2597
|
+
return DEFAULT_IDENTIFIER_PATH;
|
|
2598
|
+
}
|
|
2599
|
+
const segments = primaryIdentifierKey
|
|
2600
|
+
.map(node => (node?.key == null ? '' : String(node.key)))
|
|
2601
|
+
.filter(segment => segment !== '');
|
|
2602
|
+
return segments.length > 0 ? segments.join('.') : DEFAULT_IDENTIFIER_PATH;
|
|
2603
|
+
}
|
|
2604
|
+
/**
|
|
2605
|
+
* Reads a document's identifier as a string.
|
|
2606
|
+
*
|
|
2607
|
+
* Identifiers arrive as `ObjectId`, string or number depending on the source, so they
|
|
2608
|
+
* are normalised once here — comparing them ad hoc at each call site is what made
|
|
2609
|
+
* selection matching depend on loose equality.
|
|
2610
|
+
*
|
|
2611
|
+
* @param doc - The document to read.
|
|
2612
|
+
* @param identifierPath - Path resolved by {@link resolveIdentifierPath}.
|
|
2613
|
+
*/
|
|
2614
|
+
function readDocumentId(doc, identifierPath) {
|
|
2615
|
+
const raw = readDocumentPath(doc, identifierPath);
|
|
2616
|
+
if (raw == null || raw === '')
|
|
2617
|
+
return undefined;
|
|
2618
|
+
return String(raw);
|
|
2619
|
+
}
|
|
2620
|
+
/**
|
|
2621
|
+
* Describes a document as the reference stored on the form control.
|
|
2622
|
+
*
|
|
2623
|
+
* @param doc - The document, in its stored shape.
|
|
2624
|
+
* @param input - Workflow, identifier path and the column to label by.
|
|
2625
|
+
* @returns The reference, or `undefined` when the document carries no identifier.
|
|
2626
|
+
*/
|
|
2627
|
+
function toDocumentReference(doc, input) {
|
|
2628
|
+
const id = readDocumentId(doc, input.identifierPath);
|
|
2629
|
+
if (!id)
|
|
2630
|
+
return undefined;
|
|
2631
|
+
const reference = readDocumentPath(doc, 'reference');
|
|
2632
|
+
const label = input.labelColumn ? readDocumentPath(doc, input.labelColumn.path) : undefined;
|
|
2633
|
+
return {
|
|
2634
|
+
id,
|
|
2635
|
+
workflowId: input.workflowId,
|
|
2636
|
+
...(reference == null || reference === '' ? {} : { reference: String(reference) }),
|
|
2637
|
+
...(label == null || label === '' ? {} : { label: String(label) }),
|
|
2638
|
+
};
|
|
2639
|
+
}
|
|
2640
|
+
/** `true` when a stored entry carries the fields a reference must have. */
|
|
2641
|
+
function isDocumentReference(value) {
|
|
2642
|
+
if (value == null || typeof value !== 'object')
|
|
2643
|
+
return false;
|
|
2644
|
+
const candidate = value;
|
|
2645
|
+
return typeof candidate.id === 'string' && candidate.id !== '';
|
|
2646
|
+
}
|
|
2647
|
+
/**
|
|
2648
|
+
* Reads a form-control value back into document references.
|
|
2649
|
+
*
|
|
2650
|
+
* Accepts a single reference or an array of them; anything else is counted as
|
|
2651
|
+
* unreadable so the picker can say so instead of rendering an empty selection.
|
|
2652
|
+
*
|
|
2653
|
+
* @param value - The current form-control value.
|
|
2654
|
+
*/
|
|
2655
|
+
function readDocumentReferences(value) {
|
|
2656
|
+
if (value == null || value === '') {
|
|
2657
|
+
return { references: [], unreadable: 0 };
|
|
2658
|
+
}
|
|
2659
|
+
const entries = Array.isArray(value) ? value : [value];
|
|
2660
|
+
const references = [];
|
|
2661
|
+
let unreadable = 0;
|
|
2662
|
+
for (const entry of entries) {
|
|
2663
|
+
if (isDocumentReference(entry)) {
|
|
2664
|
+
references.push(entry);
|
|
2665
|
+
}
|
|
2666
|
+
else {
|
|
2667
|
+
unreadable += 1;
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
return { references, unreadable };
|
|
2671
|
+
}
|
|
2672
|
+
/**
|
|
2673
|
+
* The identifier of a value that is a complete stored document link, or `undefined`
|
|
2674
|
+
* when it is not one.
|
|
2675
|
+
*
|
|
2676
|
+
* Stricter than {@link isDocumentReference} on purpose. That predicate answers "can the
|
|
2677
|
+
* picker render this chip?", where a lone `id` is enough. This one answers "is some
|
|
2678
|
+
* other input looking at a stored document link?", and gets that wrong at the cost of
|
|
2679
|
+
* mangling an unrelated object-valued field — so it insists on the `workflowId` a
|
|
2680
|
+
* picker always stamps alongside the identifier.
|
|
2681
|
+
*/
|
|
2682
|
+
function narrowableIdentifier(value) {
|
|
2683
|
+
if (value == null || typeof value !== 'object' || Array.isArray(value))
|
|
2684
|
+
return undefined;
|
|
2685
|
+
const candidate = value;
|
|
2686
|
+
if (typeof candidate.workflowId !== 'string' || candidate.workflowId === '')
|
|
2687
|
+
return undefined;
|
|
2688
|
+
if (typeof candidate.id === 'string' && candidate.id !== '')
|
|
2689
|
+
return candidate.id;
|
|
2690
|
+
if (typeof candidate.id === 'number' && !Number.isNaN(candidate.id))
|
|
2691
|
+
return candidate.id;
|
|
2692
|
+
return undefined;
|
|
2693
|
+
}
|
|
2694
|
+
/**
|
|
2695
|
+
* Narrows a stored document-picker value to the identifier(s) the rest of the form
|
|
2696
|
+
* consumes.
|
|
2697
|
+
*
|
|
2698
|
+
* A picker stores whole {@link IDocumentReference} objects so it can redraw its chips
|
|
2699
|
+
* without re-fetching anything. That is the right thing to persist and the wrong thing
|
|
2700
|
+
* to hand to any other input that reads the field *as a value* — an API payload mapped
|
|
2701
|
+
* to a picker would send `{ reference: { id, workflowId, … } }` where the endpoint
|
|
2702
|
+
* declared a string. The identifier is {@link IDocumentReference.id}, which
|
|
2703
|
+
* {@link toDocumentReference} read from the picker's configured `primaryIdentifierKey`:
|
|
2704
|
+
* the narrowing therefore returns the field the administrator nominated, not a guess
|
|
2705
|
+
* made here. Point a picker at the wrong key and this returns the wrong value —
|
|
2706
|
+
* that knob is the contract.
|
|
2707
|
+
*
|
|
2708
|
+
* Cardinality is preserved, so a multi-select picker never silently collapses to its
|
|
2709
|
+
* first link.
|
|
2710
|
+
*
|
|
2711
|
+
* @param value - The current value of a document-picker form control.
|
|
2712
|
+
* @returns The identifier for a single link, the identifier list for a multi-select
|
|
2713
|
+
* value, or `undefined` when the value holds no complete reference — including the
|
|
2714
|
+
* empty cases, so a consumer's "dependency not supplied yet" gate still reads it as
|
|
2715
|
+
* unmet, and mixed/foreign shapes, which the caller should pass through untouched
|
|
2716
|
+
* rather than blank.
|
|
2717
|
+
*/
|
|
2718
|
+
function readDocumentIdentifier(value) {
|
|
2719
|
+
if (Array.isArray(value)) {
|
|
2720
|
+
// All-or-nothing: a partially readable array is a shape this does not model
|
|
2721
|
+
// (a MultipleInput row array, say), and half-narrowing it would corrupt it.
|
|
2722
|
+
const entries = value;
|
|
2723
|
+
if (entries.length === 0)
|
|
2724
|
+
return undefined;
|
|
2725
|
+
const identifiers = [];
|
|
2726
|
+
for (const entry of entries) {
|
|
2727
|
+
const identifier = narrowableIdentifier(entry);
|
|
2728
|
+
if (identifier === undefined)
|
|
2729
|
+
return undefined;
|
|
2730
|
+
identifiers.push(identifier);
|
|
2731
|
+
}
|
|
2732
|
+
return identifiers;
|
|
2733
|
+
}
|
|
2734
|
+
return narrowableIdentifier(value);
|
|
2735
|
+
}
|
|
2736
|
+
/**
|
|
2737
|
+
* Produces the value written back to the form control.
|
|
2738
|
+
*
|
|
2739
|
+
* @param references - Currently selected references, in selection order.
|
|
2740
|
+
* @param allowMultiple - Whether the input accepts more than one document.
|
|
2741
|
+
* @returns An array when multi-select, a single reference when not, and `null` when
|
|
2742
|
+
* nothing is selected — so a cleared picker reads as empty to validators.
|
|
2743
|
+
*/
|
|
2744
|
+
function writeDocumentValue(references, allowMultiple) {
|
|
2745
|
+
if (allowMultiple) {
|
|
2746
|
+
return references.length > 0 ? [...references] : null;
|
|
2747
|
+
}
|
|
2748
|
+
return references[0] ?? null;
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2566
2751
|
function compileInputValidators(input, getFormValue) {
|
|
2567
2752
|
const isRequired = !!input.required;
|
|
2568
2753
|
let inputValidators = input.validators ? [...input.validators] : [];
|
|
@@ -2688,6 +2873,14 @@ function createCustomValidator(config, formValue) {
|
|
|
2688
2873
|
};
|
|
2689
2874
|
}
|
|
2690
2875
|
// Rewritten to avoid potential recursion issues
|
|
2876
|
+
//
|
|
2877
|
+
// Observed values are narrowed by `readDocumentIdentifier` before they enter the
|
|
2878
|
+
// scope: a document picker stores whole reference objects for its chips, and an
|
|
2879
|
+
// authored expression compares the variable against a scalar. This must stay in
|
|
2880
|
+
// step with `buildValidationScope` in the tower's build-manual-validation builder —
|
|
2881
|
+
// both evaluators run the SAME expression against the same variable (formGenerator
|
|
2882
|
+
// compiles this one at control construction, the tower adds the other), so a
|
|
2883
|
+
// variable that means different things in the two produces flapping errors.
|
|
2691
2884
|
const getValidationScopeFromFormValue = (inputsObservedForChanges, formData) => {
|
|
2692
2885
|
// Create a new object directly instead of using reduce with spread operator
|
|
2693
2886
|
const result = {};
|
|
@@ -2706,7 +2899,8 @@ const getValidationScopeFromFormValue = (inputsObservedForChanges, formData) =>
|
|
|
2706
2899
|
: 0;
|
|
2707
2900
|
}
|
|
2708
2901
|
else {
|
|
2709
|
-
|
|
2902
|
+
const raw = formData[inputId];
|
|
2903
|
+
result[variable] = readDocumentIdentifier(raw) ?? raw;
|
|
2710
2904
|
}
|
|
2711
2905
|
}
|
|
2712
2906
|
return result;
|
|
@@ -3821,6 +4015,124 @@ const multipleInputRowIDControlInput = (value, multipleInputInEditId) => ({
|
|
|
3821
4015
|
multipleInputInEditId
|
|
3822
4016
|
});
|
|
3823
4017
|
|
|
4018
|
+
/**
|
|
4019
|
+
* @file Guarantees every `MultipleInput` row carries a row id — and *only* when
|
|
4020
|
+
* the incoming data lacks one.
|
|
4021
|
+
*
|
|
4022
|
+
* A MultipleInput stores its rows in the composite-keyed shape
|
|
4023
|
+
* `saveMultipleInputForm` produces:
|
|
4024
|
+
*
|
|
4025
|
+
* ```
|
|
4026
|
+
* { "<inputId>.id": "<uuid>", "<inputId>.<childId>": <value>, … }
|
|
4027
|
+
* ```
|
|
4028
|
+
*
|
|
4029
|
+
* The `"<inputId>.id"` entry is the row's identity — `multipleInputEditRow`,
|
|
4030
|
+
* `updateExistingRow`, the delete/copy actions and the per-row override store
|
|
4031
|
+
* (`#rowOverrides`) all locate a row by it. A row that reaches the control
|
|
4032
|
+
* without one is unreachable: it cannot be edited, deleted or motivated, and a
|
|
4033
|
+
* later save silently appends a duplicate instead of updating it.
|
|
4034
|
+
*
|
|
4035
|
+
* Rows authored through the UI always get an id (`addNewRow` mints one), but the
|
|
4036
|
+
* three *ingress* paths do not control their payload:
|
|
4037
|
+
*
|
|
4038
|
+
* | Ingress | Entry point |
|
|
4039
|
+
* |---|---|
|
|
4040
|
+
* | API fetch | `buildValueApiResource` → `multipleFormInputMapValueToInputsId` |
|
|
4041
|
+
* | Another form input | `buildInputSourcedValue` (`InputSourcedValue`) |
|
|
4042
|
+
* | Preloaded / imported data | `prepPopulateForm`, `initializeFormValues` → `updateValue` |
|
|
4043
|
+
*
|
|
4044
|
+
* ## Never re-stamp
|
|
4045
|
+
*
|
|
4046
|
+
* A row that already carries an id keeps it, byte for byte. Minting over an
|
|
4047
|
+
* existing id is itself a bug: these paths re-run on every form re-init, every
|
|
4048
|
+
* resource reload and every source change, so re-stamping would hand the same
|
|
4049
|
+
* logical row a different identity each pass — breaking edit/delete targeting,
|
|
4050
|
+
* orphaning its `#rowOverrides` entry, and making the row look "new" to the
|
|
4051
|
+
* backend on every save. An id is minted **only** where none exists, which also
|
|
4052
|
+
* makes this pass idempotent: running it across layers (the API mapper, then
|
|
4053
|
+
* `updateValue`) touches nothing the first pass already settled.
|
|
4054
|
+
*/
|
|
4055
|
+
/**
|
|
4056
|
+
* The composite control name a MultipleInput row stores its identifier under.
|
|
4057
|
+
*
|
|
4058
|
+
* @param inputId - The MultipleInput's id.
|
|
4059
|
+
* @returns The row-identity key (e.g. `'lines.id'`).
|
|
4060
|
+
*/
|
|
4061
|
+
const multipleInputRowIdKey = (inputId) => `${inputId}.id`;
|
|
4062
|
+
/** Narrows a row to the `Record` shape the composite keys live on. */
|
|
4063
|
+
const isRowObject = (row) => !!row && typeof row === 'object' && !Array.isArray(row);
|
|
4064
|
+
/**
|
|
4065
|
+
* Whether a candidate already identifies a row.
|
|
4066
|
+
*
|
|
4067
|
+
* Deliberately permissive — any non-nullish value that is not a blank string
|
|
4068
|
+
* counts, so a numeric or otherwise non-string backend id is preserved verbatim
|
|
4069
|
+
* rather than replaced with a UUID.
|
|
4070
|
+
*
|
|
4071
|
+
* The two rejected cases are the ones the rest of the engine already reads as
|
|
4072
|
+
* "no row": `null`/`undefined` (what `multipleFormInputMapValueToInputsId`
|
|
4073
|
+
* writes when the response carried no id) and `''` (what `prepPopulateForm`
|
|
4074
|
+
* writes for a nullish seed id, and what `saveMultipleInputForm` tests with a
|
|
4075
|
+
* bare truthiness check before deciding update-vs-append).
|
|
4076
|
+
*/
|
|
4077
|
+
const hasUsableId = (candidate) => {
|
|
4078
|
+
if (candidate === undefined || candidate === null)
|
|
4079
|
+
return false;
|
|
4080
|
+
return !(typeof candidate === 'string' && candidate.trim().length === 0);
|
|
4081
|
+
};
|
|
4082
|
+
/**
|
|
4083
|
+
* Returns `value` with a row id guaranteed on every MultipleInput row that
|
|
4084
|
+
* lacks one. Rows that already have an id are returned untouched.
|
|
4085
|
+
*
|
|
4086
|
+
* Per row, in order:
|
|
4087
|
+
* 1. A usable `"<inputId>.id"` → **kept exactly as-is**, never regenerated.
|
|
4088
|
+
* 2. Otherwise a usable bare `id` → adopted under the composite key. Covers
|
|
4089
|
+
* mappers that copied the backend identifier without prefixing it, so the row
|
|
4090
|
+
* keeps the identity the source system knows it by instead of being handed a
|
|
4091
|
+
* fresh UUID on every reload.
|
|
4092
|
+
* 3. Otherwise → a freshly minted UUID.
|
|
4093
|
+
*
|
|
4094
|
+
* A no-op returns the original array reference, so an already-valid payload
|
|
4095
|
+
* allocates nothing and produces no downstream change.
|
|
4096
|
+
*
|
|
4097
|
+
* @param input - The target column input. Anything other than a
|
|
4098
|
+
* {@link ElementTypes.MultipleInput} is returned untouched — the guard lives
|
|
4099
|
+
* here so callers on generic value paths cannot mis-apply row ids to, say, an
|
|
4100
|
+
* array-valued multi-select.
|
|
4101
|
+
* @param value - The candidate value. Non-arrays are returned untouched.
|
|
4102
|
+
* @param uuidFn - Row-id generator. Defaults to `uuid`'s v4, matching
|
|
4103
|
+
* `saveMultipleInputForm`'s `addNewRow`.
|
|
4104
|
+
* @returns The value with row ids guaranteed, or the input value unchanged.
|
|
4105
|
+
*
|
|
4106
|
+
* @example
|
|
4107
|
+
* ```ts
|
|
4108
|
+
* ensureMultipleInputRowIds(linesInput, [{ 'lines.amt': 100 }]);
|
|
4109
|
+
* // → [{ 'lines.amt': 100, 'lines.id': '6f9a…' }]
|
|
4110
|
+
*
|
|
4111
|
+
* ensureMultipleInputRowIds(linesInput, [{ 'lines.id': 'r0', 'lines.amt': 100 }]);
|
|
4112
|
+
* // → unchanged, same array reference
|
|
4113
|
+
* ```
|
|
4114
|
+
*/
|
|
4115
|
+
function ensureMultipleInputRowIds(input, value, uuidFn = v4) {
|
|
4116
|
+
if (input?.element !== ElementTypes.MultipleInput)
|
|
4117
|
+
return value;
|
|
4118
|
+
if (!Array.isArray(value))
|
|
4119
|
+
return value;
|
|
4120
|
+
const key = multipleInputRowIdKey(input.id);
|
|
4121
|
+
let changed = false;
|
|
4122
|
+
const rows = value.map((row) => {
|
|
4123
|
+
// A non-object row cannot carry a composite key. Left untouched rather than
|
|
4124
|
+
// dropped — the payload is malformed upstream and discarding it would hide
|
|
4125
|
+
// the data loss from the user.
|
|
4126
|
+
if (!isRowObject(row))
|
|
4127
|
+
return row;
|
|
4128
|
+
if (hasUsableId(row[key]))
|
|
4129
|
+
return row;
|
|
4130
|
+
changed = true;
|
|
4131
|
+
return { ...row, [key]: hasUsableId(row['id']) ? row['id'] : uuidFn() };
|
|
4132
|
+
});
|
|
4133
|
+
return changed ? rows : value;
|
|
4134
|
+
}
|
|
4135
|
+
|
|
3824
4136
|
/**
|
|
3825
4137
|
* Function types that can prepopulate values when the multiple input form opens.
|
|
3826
4138
|
* Includes InputSourcedValue (sources from other form inputs) and API-based fetchers.
|
|
@@ -3985,14 +4297,30 @@ const multipleInputDuplicateRow = (self, mainForm, inputId, rowId) => {
|
|
|
3985
4297
|
self.setInputTemporaryError(inputId, 'Failed to find section group');
|
|
3986
4298
|
return false;
|
|
3987
4299
|
}
|
|
3988
|
-
|
|
3989
|
-
|
|
4300
|
+
const rowIdKey = multipleInputRowIdKey(inputId);
|
|
4301
|
+
// Clear any identity left over from a prior edit first: when the sub-form was
|
|
4302
|
+
// already open, `toggleMultipleInput` reuses the existing controls, so the
|
|
4303
|
+
// previously-edited row's id would still be sitting in this one.
|
|
4304
|
+
sectionGroup.controls[rowIdKey]?.setValue(undefined);
|
|
4305
|
+
const row = sectionGroup.controls[inputId]?.value?.find((row) => row[rowIdKey] === rowId);
|
|
3990
4306
|
if (!row) {
|
|
3991
4307
|
self.setInputTemporaryError(inputId, "Could not find row to duplicate");
|
|
3992
4308
|
return false;
|
|
3993
4309
|
}
|
|
3994
|
-
|
|
3995
|
-
|
|
4310
|
+
// Copy the source row's FIELD values into the open sub-form — never its
|
|
4311
|
+
// identity. `saveMultipleInputForm` branches on the row-id control: an
|
|
4312
|
+
// identified row takes `updateExistingRow` and would overwrite the very row
|
|
4313
|
+
// being duplicated, instead of `addNewRow` minting a fresh id for the copy.
|
|
4314
|
+
//
|
|
4315
|
+
// The previous form of this loop spread the whole row (carrying
|
|
4316
|
+
// `${inputId}.id`) and added a bare `id: undefined` that matches no control.
|
|
4317
|
+
// It reached the right outcome only because the row-id pseudo-input is absent
|
|
4318
|
+
// from the definition, so the projection effect skips it — the write landed in
|
|
4319
|
+
// `#model` and change history but never on the control. Relying on that is
|
|
4320
|
+
// fragile; copy only what belongs to the duplicate.
|
|
4321
|
+
Object.entries(row).forEach(([key, value]) => {
|
|
4322
|
+
if (key === rowIdKey)
|
|
4323
|
+
return;
|
|
3996
4324
|
self.updateValue(key, value);
|
|
3997
4325
|
});
|
|
3998
4326
|
return true;
|
|
@@ -4239,33 +4567,40 @@ const prepPopulateForm = (form, initValue) => {
|
|
|
4239
4567
|
rawSeed,
|
|
4240
4568
|
seedRowsLen: seedRows.length,
|
|
4241
4569
|
});
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
};
|
|
4253
|
-
}
|
|
4254
|
-
if (!inputId) {
|
|
4255
|
-
// eslint-disable-next-line no-console
|
|
4256
|
-
console.warn('[dv-debug] prepPopulateForm DROPPED row key (no formControlName match)', {
|
|
4257
|
-
inputId: column.id,
|
|
4258
|
-
rowKey: key,
|
|
4259
|
-
knownFormControlNames: column.formInputs?.map(i => i.formControlName),
|
|
4260
|
-
});
|
|
4261
|
-
return acc;
|
|
4262
|
-
}
|
|
4570
|
+
// Seeded rows keep whatever `id` the payload carried —
|
|
4571
|
+
// `''` when the key was present but empty, absent
|
|
4572
|
+
// entirely when the source never wrote one. Either way
|
|
4573
|
+
// the row would be unreachable by edit/delete/override,
|
|
4574
|
+
// so the identity pass mints one before the row array
|
|
4575
|
+
// becomes the column's seed value.
|
|
4576
|
+
const seededRows = ensureMultipleInputRowIds(column, seedRows.map((item) => {
|
|
4577
|
+
return Object.entries(item).reduce((acc, [key, value]) => {
|
|
4578
|
+
const inputId = column.formInputs?.find(input => input.formControlName === key)?.id;
|
|
4579
|
+
if (key === 'id') {
|
|
4263
4580
|
return {
|
|
4264
4581
|
...acc,
|
|
4265
|
-
[`${column.id}
|
|
4582
|
+
[`${column.id}.id`]: value ?? ''
|
|
4266
4583
|
};
|
|
4267
|
-
}
|
|
4268
|
-
|
|
4584
|
+
}
|
|
4585
|
+
if (!inputId) {
|
|
4586
|
+
// eslint-disable-next-line no-console
|
|
4587
|
+
console.warn('[dv-debug] prepPopulateForm DROPPED row key (no formControlName match)', {
|
|
4588
|
+
inputId: column.id,
|
|
4589
|
+
rowKey: key,
|
|
4590
|
+
knownFormControlNames: column.formInputs?.map(i => i.formControlName),
|
|
4591
|
+
});
|
|
4592
|
+
return acc;
|
|
4593
|
+
}
|
|
4594
|
+
return {
|
|
4595
|
+
...acc,
|
|
4596
|
+
[`${column.id}.${inputId}`]: value ?? ''
|
|
4597
|
+
};
|
|
4598
|
+
}, {});
|
|
4599
|
+
}));
|
|
4600
|
+
const newM = {
|
|
4601
|
+
...column,
|
|
4602
|
+
formIsOpen: column.formIsOpen ?? false,
|
|
4603
|
+
value: seededRows
|
|
4269
4604
|
};
|
|
4270
4605
|
// eslint-disable-next-line no-console
|
|
4271
4606
|
console.log('[dv-debug] prepPopulateForm MultipleInput → remapped value', {
|
|
@@ -5219,7 +5554,6 @@ const SIBLING_INTERSECTION_DEFAULTS = {
|
|
|
5219
5554
|
},
|
|
5220
5555
|
workflowPickerConfig: {
|
|
5221
5556
|
workflowId: "",
|
|
5222
|
-
documentSourceType: "default",
|
|
5223
5557
|
},
|
|
5224
5558
|
handleLabel: "",
|
|
5225
5559
|
calculateListFunctions: [],
|
|
@@ -6162,7 +6496,15 @@ const buildInputSourcedValue = (input, ctx) => {
|
|
|
6162
6496
|
// computation: identity — the sourced value IS the signal value.
|
|
6163
6497
|
// linkedSignal resets to this computation whenever source changes,
|
|
6164
6498
|
// replicating the old re-clobber semantics of getInputSourcedValue.
|
|
6165
|
-
|
|
6499
|
+
//
|
|
6500
|
+
// The one adjustment: a MultipleInput sourcing its rows from another
|
|
6501
|
+
// input inherits that input's row shape verbatim, which may carry rows
|
|
6502
|
+
// with no `"<inputId>.id"` (the source is not necessarily a MultipleInput,
|
|
6503
|
+
// and even when it is, the ids belong to the SOURCE input's key space).
|
|
6504
|
+
// Such rows are unreachable by edit/delete/override, so the identity pass
|
|
6505
|
+
// stamps any that are missing. Idempotent, and runs only when `source`
|
|
6506
|
+
// produces a new value — never on a plain re-read.
|
|
6507
|
+
computation: (v) => ensureMultipleInputRowIds(input, v),
|
|
6166
6508
|
}));
|
|
6167
6509
|
return { kind: 'sourced', signal: sig };
|
|
6168
6510
|
};
|
|
@@ -6631,7 +6973,24 @@ function applyValueAccessRules$1(input, fetchCfg, rawData) {
|
|
|
6631
6973
|
(Array.isArray(valueAccessRules) && valueAccessRules.length === 0)
|
|
6632
6974
|
? rawData
|
|
6633
6975
|
: getValueFromValueAccessor(valueAccessRules, rawData);
|
|
6634
|
-
return
|
|
6976
|
+
return mapRowsForInput(input, extracted);
|
|
6977
|
+
}
|
|
6978
|
+
/**
|
|
6979
|
+
* Remaps an extracted API payload into the input's internal value shape and,
|
|
6980
|
+
* for a MultipleInput, guarantees a row id on any row that arrived without one.
|
|
6981
|
+
*
|
|
6982
|
+
* The mapper preserves whatever `id` the response carried, which is `undefined`
|
|
6983
|
+
* whenever the endpoint (or its `valueAccessRules` projection) omits one — an
|
|
6984
|
+
* id-less row is unreachable by edit/delete/override. Rows the endpoint DID
|
|
6985
|
+
* identify keep that id untouched, so a reload does not re-key rows the backend
|
|
6986
|
+
* already knows.
|
|
6987
|
+
*
|
|
6988
|
+
* @param input - The column-input config for the target field.
|
|
6989
|
+
* @param extracted - The response after `valueAccessRules` extraction.
|
|
6990
|
+
* @returns The value ready for the signal graph.
|
|
6991
|
+
*/
|
|
6992
|
+
function mapRowsForInput(input, extracted) {
|
|
6993
|
+
return ensureMultipleInputRowIds(input, multipleFormInputMapValueToInputsId(input, extracted));
|
|
6635
6994
|
}
|
|
6636
6995
|
/**
|
|
6637
6996
|
* Extracts the typed `APIDataFetchingConfigurationInterface` from the input's
|
|
@@ -6729,7 +7088,7 @@ function buildValuePostMethodApiWithAllDefaultParams(input, ctx) {
|
|
|
6729
7088
|
const extracted = !valueAccessRules
|
|
6730
7089
|
? rawData
|
|
6731
7090
|
: getValueFromValueAccessor(valueAccessRules, rawData);
|
|
6732
|
-
const result =
|
|
7091
|
+
const result = mapRowsForInput(input, extracted);
|
|
6733
7092
|
ctx.utils.setTemporaryHint(input.id, 'Data fetched successfully', HintType.SUCCESS);
|
|
6734
7093
|
return result;
|
|
6735
7094
|
}
|
|
@@ -6853,7 +7212,7 @@ function buildValuePostMethodApi(input, ctx) {
|
|
|
6853
7212
|
const extracted = !valueAccessRules
|
|
6854
7213
|
? rawData
|
|
6855
7214
|
: getValueFromValueAccessor(valueAccessRules, rawData);
|
|
6856
|
-
const result =
|
|
7215
|
+
const result = mapRowsForInput(input, extracted);
|
|
6857
7216
|
ctx.utils.setTemporaryHint(input.id, 'Data fetched successfully', HintType.SUCCESS);
|
|
6858
7217
|
return result;
|
|
6859
7218
|
}
|
|
@@ -7745,6 +8104,141 @@ const buildManualValidation = (input, ctx) => {
|
|
|
7745
8104
|
return { kind: 'validation', errorFn };
|
|
7746
8105
|
};
|
|
7747
8106
|
|
|
8107
|
+
/**
|
|
8108
|
+
* @file Auto-computed value detection — the single, configuration-only answer to
|
|
8109
|
+
* "does the tower own this input's value?" — plus the read-only stamping helpers
|
|
8110
|
+
* built on top of it.
|
|
8111
|
+
*
|
|
8112
|
+
* An input is **auto-computed** when its configuration activates any
|
|
8113
|
+
* {@link VALUE_PRODUCING_TYPES} function type: the value is calculated from a
|
|
8114
|
+
* formula ({@link FunctionTypes.ValueCalculation}), fetched from an API
|
|
8115
|
+
* (`Value*MethodAPI*`), or mirrored from another input
|
|
8116
|
+
* ({@link FunctionTypes.InputSourcedValue}). Such a value cannot be meaningfully
|
|
8117
|
+
* typed over — the derived signal re-publishes on its next evaluation and the
|
|
8118
|
+
* projection effect patches the FormControl straight back — so the field is
|
|
8119
|
+
* rendered **read-only**.
|
|
8120
|
+
*
|
|
8121
|
+
* Detection is deliberately *config-driven* (`getAllFunctionTypes`) rather than
|
|
8122
|
+
* `#derived`-map driven: the stamp must be applied to the definition **before**
|
|
8123
|
+
* the signal graph is built, and the same predicate must be usable from the
|
|
8124
|
+
* component layer, which never sees the engine's private map.
|
|
8125
|
+
*
|
|
8126
|
+
* Pure module: no signals, no Angular runtime, no import-time side effects.
|
|
8127
|
+
*/
|
|
8128
|
+
/**
|
|
8129
|
+
* The {@link FunctionTypes} that PRODUCE an input value (as opposed to its
|
|
8130
|
+
* options or its validation).
|
|
8131
|
+
*
|
|
8132
|
+
* Listed in the engine's `value()` / `readDep` merge-precedence order — this is
|
|
8133
|
+
* the single source of truth for the engine's `#readDep` (where the order *is*
|
|
8134
|
+
* the precedence) and `#isInputDerived` (where it is a membership test), and for
|
|
8135
|
+
* {@link isAutoComputedValue} (where it is the read-only trigger).
|
|
8136
|
+
*/
|
|
8137
|
+
const VALUE_PRODUCING_TYPES = [
|
|
8138
|
+
FunctionTypes.ValueCalculation,
|
|
8139
|
+
FunctionTypes.InputSourcedValue,
|
|
8140
|
+
FunctionTypes.ValueGetMethodAPI,
|
|
8141
|
+
FunctionTypes.ValuePostMethodAPI,
|
|
8142
|
+
FunctionTypes.ValuePostMethodAPIWithAllDefaultParams,
|
|
8143
|
+
];
|
|
8144
|
+
/**
|
|
8145
|
+
* Whether `input`'s configuration hands ownership of its value to the tower —
|
|
8146
|
+
* i.e. the value is calculated, fetched from an API, or sourced from another
|
|
8147
|
+
* input.
|
|
8148
|
+
*
|
|
8149
|
+
* `SectionTitle` carries no value and is never auto-computed. Detection is
|
|
8150
|
+
* total: `getAllFunctionTypes` swallows malformed configuration and returns an
|
|
8151
|
+
* empty map, so a broken fetch slot reports `false` rather than throwing.
|
|
8152
|
+
*
|
|
8153
|
+
* @param input - The column-input configuration to classify.
|
|
8154
|
+
* @returns `true` when the tower computes this input's value.
|
|
8155
|
+
*/
|
|
8156
|
+
function isAutoComputedValue(input) {
|
|
8157
|
+
if (!input || input.element === ElementTypes.SectionTitle)
|
|
8158
|
+
return false;
|
|
8159
|
+
const types = getAllFunctionTypes(input);
|
|
8160
|
+
return VALUE_PRODUCING_TYPES.some((type) => types[type] === true);
|
|
8161
|
+
}
|
|
8162
|
+
/**
|
|
8163
|
+
* Returns `input` marked `readonly` when its value is auto-computed, and the
|
|
8164
|
+
* **same reference** otherwise.
|
|
8165
|
+
*
|
|
8166
|
+
* Identity preservation matters: the returned config is fed to
|
|
8167
|
+
* `NgComponentOutlet` inputs and to `_isEqual`-guarded editor configs, both of
|
|
8168
|
+
* which treat a new object as a change. An already-`readonly` input is likewise
|
|
8169
|
+
* returned untouched.
|
|
8170
|
+
*
|
|
8171
|
+
* @param input - The column-input configuration to stamp.
|
|
8172
|
+
* @returns The input, read-only when auto-computed.
|
|
8173
|
+
*/
|
|
8174
|
+
function applyAutoComputedReadonly(input) {
|
|
8175
|
+
if (input.readonly === true)
|
|
8176
|
+
return input;
|
|
8177
|
+
return isAutoComputedValue(input) ? { ...input, readonly: true } : input;
|
|
8178
|
+
}
|
|
8179
|
+
/**
|
|
8180
|
+
* Maps `items` through `project`, returning the original array reference when no
|
|
8181
|
+
* element changed identity.
|
|
8182
|
+
*/
|
|
8183
|
+
function mapPreservingIdentity(items, project) {
|
|
8184
|
+
let changed = false;
|
|
8185
|
+
const next = items.map((item) => {
|
|
8186
|
+
const projected = project(item);
|
|
8187
|
+
if (projected !== item)
|
|
8188
|
+
changed = true;
|
|
8189
|
+
return projected;
|
|
8190
|
+
});
|
|
8191
|
+
return changed ? next : items;
|
|
8192
|
+
}
|
|
8193
|
+
/**
|
|
8194
|
+
* Stamps a single column and the composite children that render as inputs in
|
|
8195
|
+
* their own right — a `MultipleInput`'s per-row `formInputs` and an
|
|
8196
|
+
* `MscoaSelection`'s `mscoaConfig.inputs` — neither of which appears as a
|
|
8197
|
+
* top-level column.
|
|
8198
|
+
*/
|
|
8199
|
+
function markColumn(column) {
|
|
8200
|
+
let next = applyAutoComputedReadonly(column);
|
|
8201
|
+
const rowInputs = next.formInputs;
|
|
8202
|
+
if (rowInputs) {
|
|
8203
|
+
const stampedRowInputs = mapPreservingIdentity(rowInputs, applyAutoComputedReadonly);
|
|
8204
|
+
if (stampedRowInputs !== rowInputs)
|
|
8205
|
+
next = { ...next, formInputs: stampedRowInputs };
|
|
8206
|
+
}
|
|
8207
|
+
const mscoaConfig = next.mscoaConfig;
|
|
8208
|
+
const innerInputs = mscoaConfig?.inputs;
|
|
8209
|
+
if (mscoaConfig && innerInputs) {
|
|
8210
|
+
const stampedInnerInputs = mapPreservingIdentity(innerInputs, applyAutoComputedReadonly);
|
|
8211
|
+
if (stampedInnerInputs !== innerInputs) {
|
|
8212
|
+
next = { ...next, mscoaConfig: { ...mscoaConfig, inputs: stampedInnerInputs } };
|
|
8213
|
+
}
|
|
8214
|
+
}
|
|
8215
|
+
return next;
|
|
8216
|
+
}
|
|
8217
|
+
/**
|
|
8218
|
+
* Returns `form` with every auto-computed input marked `readonly`, walking each
|
|
8219
|
+
* slide's columns plus the composite children described in {@link markColumn}.
|
|
8220
|
+
*
|
|
8221
|
+
* Slides, columns and the form itself keep their original references when
|
|
8222
|
+
* nothing beneath them changed, so a definition without a single auto-computed
|
|
8223
|
+
* input is returned verbatim.
|
|
8224
|
+
*
|
|
8225
|
+
* @param form - The (already prepopulated) form definition.
|
|
8226
|
+
* @returns The definition with auto-computed inputs stamped read-only.
|
|
8227
|
+
*/
|
|
8228
|
+
function markAutoComputedInputsReadonly(form) {
|
|
8229
|
+
let formChanged = false;
|
|
8230
|
+
const slides = form.slides.map((slide) => {
|
|
8231
|
+
if (!slide.columns)
|
|
8232
|
+
return slide;
|
|
8233
|
+
const columns = mapPreservingIdentity(slide.columns, markColumn);
|
|
8234
|
+
if (columns === slide.columns)
|
|
8235
|
+
return slide;
|
|
8236
|
+
formChanged = true;
|
|
8237
|
+
return { ...slide, columns };
|
|
8238
|
+
});
|
|
8239
|
+
return formChanged ? { ...form, slides } : form;
|
|
8240
|
+
}
|
|
8241
|
+
|
|
7748
8242
|
/** Reads the inner column definitions of a MultipleInput input. */
|
|
7749
8243
|
function childInputsOf(input) {
|
|
7750
8244
|
return input.formInputs ?? [];
|
|
@@ -8001,19 +8495,6 @@ function resolveMscoaSuggestion(input, intent, currentValue, deps) {
|
|
|
8001
8495
|
*/
|
|
8002
8496
|
/** Returns the `inputId` portion of a `#derived` Map key (`${inputId}:${functionType}`). */
|
|
8003
8497
|
const idOf = (key) => key.slice(0, key.indexOf(':'));
|
|
8004
|
-
/**
|
|
8005
|
-
* The {@link FunctionTypes} that PRODUCE an input value (as opposed to options
|
|
8006
|
-
* or validation). Listed in `value()`/`readDep` merge-precedence order — the
|
|
8007
|
-
* single source of truth for both `#readDep` (where order is precedence) and
|
|
8008
|
-
* `#isInputDerived` (where it is a membership test).
|
|
8009
|
-
*/
|
|
8010
|
-
const VALUE_PRODUCING_TYPES = [
|
|
8011
|
-
FunctionTypes.ValueCalculation,
|
|
8012
|
-
FunctionTypes.InputSourcedValue,
|
|
8013
|
-
FunctionTypes.ValueGetMethodAPI,
|
|
8014
|
-
FunctionTypes.ValuePostMethodAPI,
|
|
8015
|
-
FunctionTypes.ValuePostMethodAPIWithAllDefaultParams,
|
|
8016
|
-
];
|
|
8017
8498
|
/**
|
|
8018
8499
|
* The {@link FunctionTypes} that resolve an input's selectable OPTIONS (as
|
|
8019
8500
|
* opposed to its value or validation). Used by the editable-schema reporting
|
|
@@ -8416,7 +8897,13 @@ class FormTowerControllerService {
|
|
|
8416
8897
|
// 1. Clean prior state (also destroys prior resources/effects).
|
|
8417
8898
|
this.clearFormState();
|
|
8418
8899
|
// 2/3. Prepopulate + system inputs.
|
|
8419
|
-
|
|
8900
|
+
//
|
|
8901
|
+
// `markAutoComputedInputsReadonly` runs on the prepopulated copy, before the
|
|
8902
|
+
// `#derived` graph exists, so the read-only stamp is already on the very
|
|
8903
|
+
// first definition the UI renders. It is config-driven (getAllFunctionTypes),
|
|
8904
|
+
// which is exactly the same predicate `#buildDerivedForInput` dispatches on —
|
|
8905
|
+
// an input is read-only iff the tower is about to own its value.
|
|
8906
|
+
this.#definition.set(markAutoComputedInputsReadonly({ ...(prepPopulateForm(form, this._initialFormValue)) }));
|
|
8420
8907
|
await loadSystemInputs(this);
|
|
8421
8908
|
this.setFirstStepAsActive();
|
|
8422
8909
|
// 4. Build the FormGroup carrier.
|
|
@@ -8518,6 +9005,13 @@ class FormTowerControllerService {
|
|
|
8518
9005
|
* `linkedSignal.set(value)` (transient override; reset on next source change).
|
|
8519
9006
|
* - **All other inputs** → writes `#model[inputId]`.
|
|
8520
9007
|
*
|
|
9008
|
+
* A **MultipleInput** row array is passed through
|
|
9009
|
+
* {@link FormTowerControllerService.#withRowIds} first, so no row can enter the
|
|
9010
|
+
* tower without an id (see {@link ensureMultipleInputRowIds}). This is the
|
|
9011
|
+
* choke point for every non-derived ingress: prefill/import
|
|
9012
|
+
* ({@link FormTowerControllerService.initializeFormValues}), accepted
|
|
9013
|
+
* suggestions, row deletes from the table view, and direct consumer writes.
|
|
9014
|
+
*
|
|
8521
9015
|
* Appends the change to history IMPERATIVELY (HAZARD 4). The projection effect
|
|
8522
9016
|
* patches the FormControl from the signal graph — this does NOT touch the
|
|
8523
9017
|
* FormGroup directly (no `valueChanges` feedback loop).
|
|
@@ -8527,14 +9021,15 @@ class FormTowerControllerService {
|
|
|
8527
9021
|
*/
|
|
8528
9022
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I-1 parity-frozen signature.
|
|
8529
9023
|
this.updateValue = (inputId, value) => {
|
|
9024
|
+
const next = this.#withRowIds(inputId, value);
|
|
8530
9025
|
const sourced = this.#derived.get(`${inputId}:${FunctionTypes.InputSourcedValue}`);
|
|
8531
9026
|
if (sourced && sourced.kind === 'sourced') {
|
|
8532
|
-
sourced.signal.set(
|
|
9027
|
+
sourced.signal.set(next);
|
|
8533
9028
|
}
|
|
8534
9029
|
else {
|
|
8535
|
-
this.#model.update(m => ({ ...m, [inputId]:
|
|
9030
|
+
this.#model.update(m => ({ ...m, [inputId]: next }));
|
|
8536
9031
|
}
|
|
8537
|
-
this.#appendHistory({ [inputId]:
|
|
9032
|
+
this.#appendHistory({ [inputId]: next });
|
|
8538
9033
|
};
|
|
8539
9034
|
/**
|
|
8540
9035
|
* Apply an external values record onto the form (user prefill / import row).
|
|
@@ -9268,6 +9763,11 @@ class FormTowerControllerService {
|
|
|
9268
9763
|
* and `#derived` ONLY — never the merged {@link FormTowerControllerService.value}
|
|
9269
9764
|
* computed — and returns `undefined` for the self-edge (Blueprint §2.3, HAZARD 5).
|
|
9270
9765
|
*
|
|
9766
|
+
* The raw graph value passes through {@link FormTowerControllerService.#narrowDependencyValue}
|
|
9767
|
+
* before it is handed out, so a dependency stored in a display-oriented shape is
|
|
9768
|
+
* seen by consumers as the scalar they map. That narrowing is scoped to this
|
|
9769
|
+
* reader alone — see the note there for why the merged value must not get it.
|
|
9770
|
+
*
|
|
9271
9771
|
* @param selfId - The input that owns the builder requesting the read.
|
|
9272
9772
|
* @param inputId - The dependency input to read.
|
|
9273
9773
|
* @returns The dependency value, or `undefined` (self-edge / absent).
|
|
@@ -9275,6 +9775,17 @@ class FormTowerControllerService {
|
|
|
9275
9775
|
#readDep(selfId, inputId) {
|
|
9276
9776
|
if (inputId === selfId)
|
|
9277
9777
|
return undefined;
|
|
9778
|
+
return this.#narrowDependencyValue(this.#rawDep(inputId));
|
|
9779
|
+
}
|
|
9780
|
+
/**
|
|
9781
|
+
* The unadapted signal-graph value for `inputId` — the raw resolution half of
|
|
9782
|
+
* {@link FormTowerControllerService.#readDep}, split out so the read order stays
|
|
9783
|
+
* one thing and the cross-input narrowing stays another.
|
|
9784
|
+
*
|
|
9785
|
+
* @param inputId - The dependency input to read.
|
|
9786
|
+
* @returns The stored value, or `undefined` when absent / the resource errored.
|
|
9787
|
+
*/
|
|
9788
|
+
#rawDep(inputId) {
|
|
9278
9789
|
// A derived value/sourced/resource for inputId wins over the raw #model
|
|
9279
9790
|
// entry (matches the value() merge precedence).
|
|
9280
9791
|
for (const t of VALUE_PRODUCING_TYPES) {
|
|
@@ -9295,6 +9806,43 @@ class FormTowerControllerService {
|
|
|
9295
9806
|
}
|
|
9296
9807
|
return this.#model()[inputId];
|
|
9297
9808
|
}
|
|
9809
|
+
/**
|
|
9810
|
+
* Narrows a dependency value that is stored in a display shape down to the scalar
|
|
9811
|
+
* a consuming input actually maps.
|
|
9812
|
+
*
|
|
9813
|
+
* Today that means one shape: a document picker stores whole
|
|
9814
|
+
* `IDocumentReference` objects (`{ id, workflowId, reference, label }`) so it can
|
|
9815
|
+
* redraw its chips offline. Everything downstream wants the identifier —
|
|
9816
|
+
* `returnMappedData` copies the dependency straight into the POST body, a
|
|
9817
|
+
* `{{inputId}}` template token substitutes it raw, `validateMinInput` compares
|
|
9818
|
+
* `typeof value` against the mapping's declared `dataType`, and a MathJS variable
|
|
9819
|
+
* needs a number. Handed the object, those either ship `{"reference": {…}}` to an
|
|
9820
|
+
* endpoint that declared a string, or reject the field as the wrong type and leave
|
|
9821
|
+
* the fetch idle. {@link readDocumentIdentifier} returns the value at the picker's
|
|
9822
|
+
* configured `primaryIdentifierKey`, which is the field the administrator nominated
|
|
9823
|
+
* as this input's real value.
|
|
9824
|
+
*
|
|
9825
|
+
* **Scoped to the dependency read, never to {@link FormTowerControllerService.value}.**
|
|
9826
|
+
* The merged value feeds the FormGroup projection, `saveFormData` and the submission
|
|
9827
|
+
* payload, all of which must keep the stored reference whole — the picker reads its
|
|
9828
|
+
* own chips back out of it, and the backend persists the link, not the identifier.
|
|
9829
|
+
*
|
|
9830
|
+
* The test is structural rather than a lookup of the source input's `element`,
|
|
9831
|
+
* because reading the definition index here would make it a reactive dependency of
|
|
9832
|
+
* every `params` computed and every missing-dependency effect — and those effects
|
|
9833
|
+
* write hints onto the definition, which would close a feedback loop (the same
|
|
9834
|
+
* hazard `describeDep` is `untracked` for). A shape that does not read cleanly as a
|
|
9835
|
+
* reference is passed through untouched: turning a wrong payload into a missing one
|
|
9836
|
+
* would hide the misconfiguration instead of surfacing it.
|
|
9837
|
+
*
|
|
9838
|
+
* @param value - The raw dependency value from the signal graph.
|
|
9839
|
+
* @returns The narrowed identifier, or `value` unchanged.
|
|
9840
|
+
*/
|
|
9841
|
+
#narrowDependencyValue(value) {
|
|
9842
|
+
if (value === undefined || value === null || value === '')
|
|
9843
|
+
return value;
|
|
9844
|
+
return readDocumentIdentifier(value) ?? value;
|
|
9845
|
+
}
|
|
9298
9846
|
/**
|
|
9299
9847
|
* Reactive busy stream. Declared as a field initializer AFTER
|
|
9300
9848
|
* {@link FormTowerControllerService.isBusyComputed} so the textual ordering of
|
|
@@ -9635,6 +10183,26 @@ class FormTowerControllerService {
|
|
|
9635
10183
|
* Rebuilds automatically when the definition/system inputs change.
|
|
9636
10184
|
*/
|
|
9637
10185
|
#inputById;
|
|
10186
|
+
/**
|
|
10187
|
+
* Guarantees row ids on a value bound for a MultipleInput; every other input
|
|
10188
|
+
* is returned untouched.
|
|
10189
|
+
*
|
|
10190
|
+
* The definition lookup is `untracked` so a write can never take a reactive
|
|
10191
|
+
* dependency on the definition signal — `updateValue` is called from
|
|
10192
|
+
* `valueChanges` bridges and effects-adjacent code paths, and a tracked read
|
|
10193
|
+
* here would couple those writers to every definition patch (hint/error
|
|
10194
|
+
* stamping included).
|
|
10195
|
+
*
|
|
10196
|
+
* @param inputId - The input being written.
|
|
10197
|
+
* @param value - The candidate value.
|
|
10198
|
+
* @returns The value, with MultipleInput row ids guaranteed.
|
|
10199
|
+
*/
|
|
10200
|
+
#withRowIds(inputId, value) {
|
|
10201
|
+
if (!Array.isArray(value))
|
|
10202
|
+
return value;
|
|
10203
|
+
const input = untracked(() => this.#inputById().get(inputId));
|
|
10204
|
+
return ensureMultipleInputRowIds(input, value);
|
|
10205
|
+
}
|
|
9638
10206
|
/** True iff `inputId` owns a derived (value-producing) `#derived` entry — replaces `_isInputValueOwnedByTower`. */
|
|
9639
10207
|
#isInputDerived(inputId) {
|
|
9640
10208
|
for (const t of VALUE_PRODUCING_TYPES) {
|
|
@@ -12520,29 +13088,40 @@ function formBuilderStoreActions(store) {
|
|
|
12520
13088
|
const elementConfigurationChanged = (inputId, value, ele) => {
|
|
12521
13089
|
const form = store.formInEditSnapshot();
|
|
12522
13090
|
const isWorkflowPickerConfigWkIdChange = ele.deepBind.join('.') === 'workflowPickerConfig.workflowId';
|
|
12523
|
-
const
|
|
12524
|
-
//
|
|
12525
|
-
//
|
|
12526
|
-
//
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
13091
|
+
const { queryDocuments, getWorkflowSteps } = store.NGX_T_FORMS_CONFIG.formBuilder;
|
|
13092
|
+
// Choosing a workflow is the only edit that needs a round trip: it captures a
|
|
13093
|
+
// sample document so the primary-identifier mapper has keys to offer, and the
|
|
13094
|
+
// workflow's steps so the "Limit to workflow steps" chips have options. Both
|
|
13095
|
+
// are best-effort — a workflow with no transactions yet, or a host that cannot
|
|
13096
|
+
// answer, must still let the administrator save the workflow id.
|
|
13097
|
+
const shouldFetchWorkflowMeta = isWorkflowPickerConfigWkIdChange && typeof queryDocuments === 'function';
|
|
13098
|
+
const meta$ = shouldFetchWorkflowMeta
|
|
13099
|
+
? forkJoin({
|
|
13100
|
+
page: queryDocuments({
|
|
13101
|
+
workflowId: value,
|
|
13102
|
+
itemsPerPage: 10,
|
|
13103
|
+
sort: { createdAt: -1 },
|
|
13104
|
+
filter: {},
|
|
13105
|
+
}).pipe(catchError$1(() => of(undefined))),
|
|
13106
|
+
steps: typeof getWorkflowSteps === 'function'
|
|
13107
|
+
? getWorkflowSteps(value).pipe(catchError$1(() => of([])))
|
|
13108
|
+
: of([]),
|
|
13109
|
+
}).pipe(map$1(({ page, steps }) => ({
|
|
13110
|
+
sampleDocument: (page?.items ?? []).reduce((acc, curr) => ({ ...acc, ...deepMerge(curr, curr) }), {}),
|
|
13111
|
+
availableSteps: steps.map(step => ({ label: step.label, value: step.stepId })),
|
|
13112
|
+
})))
|
|
12530
13113
|
: of(undefined);
|
|
12531
|
-
store.subscribeBound(
|
|
13114
|
+
store.subscribeBound(meta$, (meta) => {
|
|
12532
13115
|
if (!form)
|
|
12533
13116
|
return;
|
|
12534
13117
|
let newForm;
|
|
12535
|
-
if (
|
|
12536
|
-
const sampleDocument = documents?.formValues.reduce((acc, curr) => {
|
|
12537
|
-
return {
|
|
12538
|
-
...deepMerge(curr, curr)
|
|
12539
|
-
};
|
|
12540
|
-
}, {});
|
|
13118
|
+
if (shouldFetchWorkflowMeta) {
|
|
12541
13119
|
newForm = elementConfigurationChangedFn(form.form, inputId, {
|
|
12542
13120
|
...ele,
|
|
12543
13121
|
deepBind: ['workflowPickerConfig']
|
|
12544
13122
|
}, {
|
|
12545
|
-
sampleDocument,
|
|
13123
|
+
sampleDocument: meta?.sampleDocument,
|
|
13124
|
+
availableSteps: meta?.availableSteps ?? [],
|
|
12546
13125
|
workflowId: value
|
|
12547
13126
|
});
|
|
12548
13127
|
}
|
|
@@ -12795,7 +13374,7 @@ class FormsStoreService {
|
|
|
12795
13374
|
/**
|
|
12796
13375
|
* Subscribes to a one-shot async source and tears the subscription down with
|
|
12797
13376
|
* this store's lifecycle. Used by the one genuinely-async builder command
|
|
12798
|
-
* (`elementConfigurationChanged` → `
|
|
13377
|
+
* (`elementConfigurationChanged` → `queryDocuments`).
|
|
12799
13378
|
*/
|
|
12800
13379
|
subscribeBound(source$, next) {
|
|
12801
13380
|
source$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe(next);
|
|
@@ -13560,6 +14139,91 @@ function withRouterFormId() {
|
|
|
13560
14139
|
return { kind: 5 /* NgxTFormsFeatureKind.RouterFormId */, providers: [ROUTER_FORM_ID_PROVIDER] };
|
|
13561
14140
|
}
|
|
13562
14141
|
|
|
14142
|
+
/**
|
|
14143
|
+
* @public
|
|
14144
|
+
*
|
|
14145
|
+
* Token binding the {@link DocumentRepository} abstraction used by the document
|
|
14146
|
+
* picker. `provideNgxTForms` binds the default host-backed implementation;
|
|
14147
|
+
* consumers may substitute their own with `useClass` (or `useValue` for a mock).
|
|
14148
|
+
*/
|
|
14149
|
+
const DOCUMENT_REPOSITORY = new InjectionToken('DOCUMENT_REPOSITORY');
|
|
14150
|
+
|
|
14151
|
+
/**
|
|
14152
|
+
* @public
|
|
14153
|
+
*
|
|
14154
|
+
* The document picker's only I/O boundary. Every page the picker renders — browsing,
|
|
14155
|
+
* searching, and hydrating an existing selection — goes through {@link query} with
|
|
14156
|
+
* the same request shape, so paging, sorting, filtering and search can never drift
|
|
14157
|
+
* apart per call site.
|
|
14158
|
+
*
|
|
14159
|
+
* The default implementation delegates to the host's `queryDocuments` contract and is
|
|
14160
|
+
* bound by `provideNgxTForms`. Consumers may substitute their own by binding
|
|
14161
|
+
* {@link DOCUMENT_REPOSITORY} with `useClass` (or `useValue` for a mock).
|
|
14162
|
+
*/
|
|
14163
|
+
class DocumentRepository {
|
|
14164
|
+
}
|
|
14165
|
+
|
|
14166
|
+
/** Sort applied when the picker has no explicit preference. Index-backed server-side. */
|
|
14167
|
+
const DEFAULT_DOCUMENT_SORT = { path: 'updatedAt', direction: -1 };
|
|
14168
|
+
/** Page size the picker opens with. */
|
|
14169
|
+
const DEFAULT_DOCUMENT_PAGE_SIZE = 10;
|
|
14170
|
+
/**
|
|
14171
|
+
* Raised when a document picker cannot run because its host or its builder
|
|
14172
|
+
* configuration is incomplete — a distinct condition from a query that ran and
|
|
14173
|
+
* returned nothing, which the UI must present differently.
|
|
14174
|
+
*/
|
|
14175
|
+
class DocumentPickerConfigurationError extends Error {
|
|
14176
|
+
constructor(message) {
|
|
14177
|
+
super(message);
|
|
14178
|
+
this.name = 'DocumentPickerConfigurationError';
|
|
14179
|
+
}
|
|
14180
|
+
}
|
|
14181
|
+
|
|
14182
|
+
/**
|
|
14183
|
+
* Default {@link DocumentRepository}, delegating to the host functions supplied on
|
|
14184
|
+
* `NgxTFormsConfig.formBuilder`.
|
|
14185
|
+
*
|
|
14186
|
+
* The contract declares these functions as required, so a missing one is a host
|
|
14187
|
+
* integration error rather than a runtime condition to degrade around: it surfaces as
|
|
14188
|
+
* a {@link DocumentPickerConfigurationError} the picker can name on screen, instead of
|
|
14189
|
+
* an empty list indistinguishable from a workflow with no transactions.
|
|
14190
|
+
*
|
|
14191
|
+
* @internal Not exported via public-api.ts — consumers bind {@link DOCUMENT_REPOSITORY}.
|
|
14192
|
+
*/
|
|
14193
|
+
class StoreDocumentRepository extends DocumentRepository {
|
|
14194
|
+
#config = inject(NGX_T_FORMS_CONFIG_TOKEN);
|
|
14195
|
+
query(request) {
|
|
14196
|
+
const queryDocuments = this.#config?.formBuilder?.queryDocuments;
|
|
14197
|
+
if (typeof queryDocuments !== 'function') {
|
|
14198
|
+
return this.#missing('queryDocuments');
|
|
14199
|
+
}
|
|
14200
|
+
return queryDocuments(request).pipe(take(1));
|
|
14201
|
+
}
|
|
14202
|
+
getColumns(workflowId) {
|
|
14203
|
+
const getWorkflowCols = this.#config?.formBuilder?.getWorkflowCols;
|
|
14204
|
+
if (typeof getWorkflowCols !== 'function') {
|
|
14205
|
+
return this.#missing('getWorkflowCols');
|
|
14206
|
+
}
|
|
14207
|
+
return getWorkflowCols(workflowId).pipe(take(1));
|
|
14208
|
+
}
|
|
14209
|
+
getSteps(workflowId) {
|
|
14210
|
+
const getWorkflowSteps = this.#config?.formBuilder?.getWorkflowSteps;
|
|
14211
|
+
if (typeof getWorkflowSteps !== 'function') {
|
|
14212
|
+
return this.#missing('getWorkflowSteps');
|
|
14213
|
+
}
|
|
14214
|
+
return getWorkflowSteps(workflowId).pipe(take(1));
|
|
14215
|
+
}
|
|
14216
|
+
/** Fails loudly and specifically, naming the function the host has to supply. */
|
|
14217
|
+
#missing(fnName) {
|
|
14218
|
+
return throwError(() => new DocumentPickerConfigurationError(`The document picker needs "${fnName}" on NgxTFormsConfig.formBuilder, but the host did not supply it.`));
|
|
14219
|
+
}
|
|
14220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: StoreDocumentRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14221
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: StoreDocumentRepository }); }
|
|
14222
|
+
}
|
|
14223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: StoreDocumentRepository, decorators: [{
|
|
14224
|
+
type: Injectable
|
|
14225
|
+
}] });
|
|
14226
|
+
|
|
13563
14227
|
/**
|
|
13564
14228
|
* Registers ngx-t-forms with the application injector.
|
|
13565
14229
|
*
|
|
@@ -13583,6 +14247,9 @@ function provideNgxTForms(config, ...features) {
|
|
|
13583
14247
|
// Route-driven form-id loading, shipped on by default (parity, D-B2/§5.5).
|
|
13584
14248
|
// Router-safe: resolves to EMPTY when no ActivatedRoute is present.
|
|
13585
14249
|
ROUTER_FORM_ID_PROVIDER,
|
|
14250
|
+
// The document picker is a built-in input, so its repository ships bound by
|
|
14251
|
+
// default. Consumers override it by binding DOCUMENT_REPOSITORY after this.
|
|
14252
|
+
{ provide: DOCUMENT_REPOSITORY, useClass: StoreDocumentRepository },
|
|
13586
14253
|
...features.flatMap(f => f.providers),
|
|
13587
14254
|
]);
|
|
13588
14255
|
}
|
|
@@ -14256,7 +14923,7 @@ class FormsComponent {
|
|
|
14256
14923
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14257
14924
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormsComponent, isStandalone: true, selector: "lib-forms, app-forms", providers: [
|
|
14258
14925
|
FormsStoreService,
|
|
14259
|
-
], ngImport: i0, template: "<header style=\"position: fixed;left: 0px;top:0px;width:100%;z-index: 1;\">\r\n <mat-toolbar class=\"forms-toolbar\" color=\"primary\">\r\n @if (closeButton) {\r\n <button mat-mini-fab class=\"close-button\" (click)=\"closeButton.onClick()\" aria-label=\"Close\">\r\n <mat-icon>{{ closeButton.icon }}</mat-icon>\r\n </button>\r\n }\r\n <span class=\"spacer\"></span>\r\n\r\n <div class=\"section-switcher\" role=\"tablist\">\r\n @for (section of formListSections; track section.value) {\r\n @if(section.value === (selectFormListSection$ | async)){\r\n <button \r\n mat-raised-button (click)=\"setSection(section.value)\">\r\n {{ section.label }}\r\n </button>\r\n } @else{\r\n <button \r\n\r\n role=\"tab\" \r\n mat-button (click)=\"setSection(section.value)\">\r\n {{ section.label }}\r\n </button>\r\n }\r\n\r\n }\r\n </div>\r\n <span class=\"spacer\"></span>\r\n <button mat-flat-button color=\"primary\" (click)=\"addNewForm()\" class=\"add-form-button\" aria-label=\"Create new form\">\r\n <mat-icon>add</mat-icon>\r\n <span>Add Form</span>\r\n </button>\r\n\r\n\r\n </mat-toolbar>\r\n</header>\r\n<div class=\"forms-wrapper\">\r\n\r\n <br>\r\n <div class=\"content-container\">\r\n <div class=\"search-container\">\r\n\r\n\r\n <mat-form-field appearance=\"outline\" class=\"search-field toolbar-search\" subscriptSizing=\"dynamic\">\r\n <mat-label>Search forms</mat-label>\r\n <input matInput type=\"search \" [(ngModel)]=\"searchQuery\" placeholder=\"Type to filter by form name...\"\r\n aria-label=\"Search forms by name\" autocomplete=\"off\" />\r\n <mat-icon matPrefix aria-hidden=\"true\">search</mat-icon>\r\n @if (searchQuery.trim()) {\r\n <button mat-icon-button matSuffix (click)=\"clearSearch()\" aria-label=\"Clear search\" type=\"button\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n }\r\n </mat-form-field>\r\n\r\n\r\n </div>\r\n\r\n @if ((selectErrors$ | async)?.['LoadForms']) {\r\n <div class=\"error-container mat-elevation-z2\" role=\"alert\">\r\n <div class=\"error-content\">\r\n <mat-icon class=\"error-icon\" color=\"warn\">error_outline</mat-icon>\r\n <span class=\"error-message\">{{ (selectErrors$ | async)?.['LoadForms'] }}</span>\r\n <button mat-icon-button class=\"refresh-button\" (click)=\"loadForms()\" aria-label=\"Retry loading forms\">\r\n <mat-icon>refresh</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (selectLoadingForms$ | async) {\r\n <div class=\"loading-container\">\r\n <mat-spinner diameter=\"48\"></mat-spinner>\r\n <span class=\"loading-text\">Loading forms...</span>\r\n </div>\r\n } @else {\r\n @if (selectFilteredGroupedForms$ | async; as groups) {\r\n <div class=\"form-sections\">\r\n <section class=\"form-section\" aria-labelledby=\"local-forms-heading\">\r\n <div class=\"section-header\">\r\n <h2 id=\"local-forms-heading\" class=\"section-title\">Local Forms</h2>\r\n <span class=\"section-subtitle\">Forms created by you</span>\r\n </div>\r\n <ng-container [ngTemplateOutlet]=\"formListOptions\"\r\n [ngTemplateOutletContext]=\"{ forms: groups['custom'], hasActiveSearch: (selectHasActiveSearch$ | async) }\"></ng-container>\r\n </section>\r\n\r\n <section class=\"form-section\" aria-labelledby=\"global-forms-heading\">\r\n <div class=\"section-header\">\r\n <h2 id=\"global-forms-heading\" class=\"section-title\">Global Forms</h2>\r\n <span class=\"section-subtitle\">Standard system templates</span>\r\n </div>\r\n <ng-container [ngTemplateOutlet]=\"formListOptions\"\r\n [ngTemplateOutletContext]=\"{ forms: groups['system'], hasActiveSearch: (selectHasActiveSearch$ | async) }\"></ng-container>\r\n </section>\r\n </div>\r\n }\r\n }\r\n </div>\r\n</div>\r\n\r\n<ng-template #formListOptions let-forms=\"forms\" let-hasActiveSearch=\"hasActiveSearch\">\r\n @if ((forms)?.length === 0) {\r\n <div class=\"empty-container\">\r\n <img src=\"https://res.cloudinary.com/glick/image/upload/v1738529610/ngx-t-forms/Blank_canvas-cuate_v7rpe0.svg\"\r\n alt=\"\" class=\"empty-illustration\" />\r\n <p class=\"empty-message\">\r\n @if (hasActiveSearch) {\r\n <strong>No forms match your search.</strong>\r\n <br />\r\n <span class=\"empty-hint\">Try a different search term.</span>\r\n } @else {\r\n <strong>No forms available.</strong>\r\n }\r\n </p>\r\n </div>\r\n }\r\n\r\n <mat-nav-list class=\"forms-list\">\r\n @for (form of forms ?? []; track form._id) {\r\n <mat-list-item (click)=\"editForm(form)\" [disabled]=\"form.busy\" [class.archived]=\"form.archived\"\r\n [class.has-errors]=\"form.errors.length > 0\" [class.elevated]=\"activeForm === form._id\"\r\n (mouseover)=\"activeForm = form._id\" (mouseleave)=\"activeForm = null\" class=\"form-list-item\"\r\n [attr.aria-busy]=\"form.busy\">\r\n @if (form.busy) {\r\n <mat-spinner matListItemAvatar [diameter]=\"48\" class=\"form-item-spinner\"></mat-spinner>\r\n }\r\n\r\n <img [class.error]=\"form.errors.length > 0\" matListItemAvatar [src]=\"getFormAvatar(form.formTitle)\"\r\n [alt]=\"'Form preview: ' + form.formTitle\" />\r\n <div matListItemTitle class=\"form-item-content\" [class.has-errors]=\"form.errors.length > 0\">\r\n <div class=\"form-title-row\">\r\n <span class=\"form-title\">{{ form.formTitle | titlecase }}</span>\r\n\r\n </div>\r\n <div class=\"form-metadata\">\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">add_circle_outline</mat-icon>\r\n <small>Created {{ form.createdAt | daysAgo }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">\u00B7</span>\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">update</mat-icon>\r\n <small>Updated {{ form.updatedAt | daysAgo }}</small>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <span class=\"form-actions\" matListItemMeta>\r\n @if (form.errors.length > 0) {\r\n <span class=\"error-badge\" [matTooltip]=\"form.errors.length + ' error(s) found in this form'\">\r\n <mat-icon>error</mat-icon>\r\n <span>{{ form.errors.length }}</span>\r\n </span>\r\n }\r\n <button mat-icon-button [matMenuTriggerFor]=\"formActionsMenu\" [matMenuTriggerData]=\"{ form: form }\"\r\n class=\"form-actions-trigger\" aria-label=\"Form actions\" (click)=\"$event.stopPropagation()\">\r\n <mat-icon>more_vert</mat-icon>\r\n </button>\r\n </span>\r\n </mat-list-item>\r\n }\r\n </mat-nav-list>\r\n</ng-template>\r\n\r\n<mat-menu #formActionsMenu=\"matMenu\" xPosition=\"before\">\r\n <ng-template matMenuContent let-form=\"form\">\r\n @if (!form.archived) {\r\n <button mat-menu-item (click)=\"archive(form, $event)\" aria-label=\"Archive form\">\r\n <mat-icon>archive</mat-icon>\r\n <span>Archive</span>\r\n </button>\r\n } @else {\r\n <button mat-menu-item (click)=\"unarchive(form, $event)\" aria-label=\"Restore form\">\r\n <mat-icon>unarchive</mat-icon>\r\n <span>Restore</span>\r\n </button>\r\n <button mat-menu-item class=\"menu-item-destructive\" (click)=\"delete(form, $event)\"\r\n aria-label=\"Permanently delete form\">\r\n <mat-icon>delete_forever</mat-icon>\r\n <span>Delete permanently</span>\r\n </button>\r\n }\r\n </ng-template>\r\n</mat-menu>", styles: [":host{display:block}.search-container{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;width:100%;max-width:85rem;margin-top:4em;margin-bottom:12px}.forms-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;height:fit-content;min-height:3.25rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.toolbar-search{flex:1 1 12rem;min-width:10rem;max-width:28rem}.toolbar-search .mat-mdc-form-field-flex{align-items:center}.toolbar-search .mat-mdc-form-field-infix{padding-top:.5rem;padding-bottom:.5rem;min-height:2.25rem}.section-switcher{display:flex;gap:.5rem;align-items:center}.section-preset{padding:.4rem .75rem;min-height:2.25rem;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--lib-forms-outline);border-radius:6px;font-size:.8125rem;font-weight:500;background:var(--lib-forms-surface);color:var(--lib-forms-on-surface-variant);cursor:pointer;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),color var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.section-preset:hover{border-color:var(--lib-forms-primary);color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.section-preset:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.section-active{border-color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);color:var(--lib-forms-primary);font-weight:600}.add-form-button .mat-icon{margin-right:.35rem;font-size:1.25rem;height:1.25rem;width:1.25rem}.close-button{flex-shrink:0}.search-field{width:100%;font-size:.875rem}.search-field .mat-mdc-form-field-subscript-wrapper{display:none}.search-field .mat-mdc-text-field-wrapper{background:var(--lib-forms-surface-container-high);border-radius:8px;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing)}.search-field .mat-mdc-form-field-focus-overlay{background:transparent}.search-field input{min-height:2.25rem}.search-field input::placeholder{color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 60%,transparent)}.search-field .mat-icon[matPrefix]{color:var(--lib-forms-on-surface-variant)}.search-field .mat-mdc-form-field-focus-overlay{display:none}.search-field .mdc-notched-outline__leading,.search-field .mdc-notched-outline__notch,.search-field .mdc-notched-outline__trailing{border-color:color-mix(in srgb,var(--lib-forms-outline) 15%,transparent)}.search-field:hover .mdc-notched-outline__leading,.search-field:hover .mdc-notched-outline__notch,.search-field:hover .mdc-notched-outline__trailing{border-color:var(--lib-forms-outline)}.search-field.mat-focused .mdc-notched-outline__leading,.search-field.mat-focused .mdc-notched-outline__notch,.search-field.mat-focused .mdc-notched-outline__trailing{border-color:var(--lib-forms-primary);border-width:2px}.search-field.mat-focused .mdc-notched-outline{box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.search-field button[matSuffix]{color:var(--lib-forms-on-surface-variant);transition:color var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.search-field button[matSuffix]:hover{color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.empty-hint{font-weight:400;font-size:.8125rem;opacity:.9}.content-container{max-width:90rem;margin:0 auto;padding:1rem 1.25rem;background:var(--lib-forms-surface);min-height:12rem}.forms-list{background:none;box-shadow:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));grid-auto-rows:min-content;gap:.75rem;padding:.5rem 0;width:100%}:host .form-list-item{margin:0;border-radius:12px;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing);background:var(--lib-forms-surface-container);min-height:3.25rem;min-width:0;height:auto;cursor:pointer}:host .form-list-item:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}:host .form-list-item.elevated{box-shadow:0 2px 8px #00000014;border-color:color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}@media(prefers-color-scheme:dark){:host .form-list-item.elevated{box-shadow:0 1px 3px #0000004d}}:host .form-list-item.has-errors{border-color:var(--sem-error)}:host .form-list-item:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.form-item-spinner{position:absolute;margin-left:.75rem}.form-item-content{padding:.5rem .75rem .5rem 0;min-width:0;flex:1}.form-item-content.has-errors .form-title{color:var(--sem-error)}.form-title-row{display:flex;align-items:flex-start;gap:.5rem;flex-wrap:wrap;margin-bottom:.25rem}.form-title{margin-bottom:0;font-weight:500;font-size:.9375rem;flex:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;line-height:1.4}.error-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:color-mix(in srgb,var(--sem-error) 15%,transparent);border-radius:8px;font-size:.8125rem;font-weight:600;color:var(--sem-error);flex-shrink:0}.error-badge mat-icon{font-size:1rem;height:1rem;width:1rem}.form-metadata{color:var(--lib-forms-on-surface-variant);font-size:.8125rem;line-height:1.35;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.25rem}.form-metadata .metadata-divider{margin:0 .25rem;color:var(--lib-forms-outline-variant);font-weight:600}.form-metadata .metadata-item{display:inline-flex;align-items:center;gap:.25rem}.form-metadata .metadata-item mat-icon{font-size:.875rem;height:1rem;width:1rem;opacity:.8}.form-actions{opacity:.7;transition:opacity var(--lib-forms-duration-hover) var(--lib-forms-easing)}.form-list-item:hover .form-actions,.form-list-item:focus-within .form-actions{opacity:1}.form-actions-trigger{min-width:2.5rem;min-height:2.5rem}:host ::ng-deep .form-list-item .mat-mdc-list-item-content{padding:0 1rem!important;min-height:3.25rem!important;align-items:center!important;overflow:visible!important}:host ::ng-deep .form-list-item .mdc-list-item__primary-text{overflow:visible!important;white-space:normal!important}:host ::ng-deep .menu-item-destructive{color:var(--sem-error)!important}:host ::ng-deep .menu-item-destructive .mat-icon{color:inherit}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:3rem 1.5rem}.loading-text{font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.error-container{background:color-mix(in srgb,var(--sem-error) 8%,transparent);border-radius:8px;border-left:4px solid var(--sem-error);padding:1rem 1.25rem;margin:1rem 0;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.error-content{display:flex;align-items:center;gap:.75rem}.error-icon{flex-shrink:0;font-size:1.5rem;height:1.5rem;width:1.5rem}.error-message{flex-grow:1;color:var(--sem-error);font-size:.875rem;line-height:1.5;margin:0}.refresh-button{flex-shrink:0;color:var(--sem-error);opacity:.8;transition:opacity var(--lib-forms-duration-hover) var(--lib-forms-easing)}.refresh-button:hover{opacity:1;background:color-mix(in srgb,var(--sem-error) 12%,transparent)}.archived{opacity:.6}.archived:hover{opacity:1}.empty-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:1.5rem 1.25rem;margin:1rem auto;max-width:28rem;background:var(--lib-forms-surface-container);border-radius:12px;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);box-shadow:0 2px 8px #00000014}@media(prefers-color-scheme:dark){.empty-container{box-shadow:0 1px 3px #0000004d}}.empty-illustration{width:12rem;height:auto;object-fit:contain}.empty-message{font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0;line-height:1.4;text-align:center}.form-list-item img.error{border:2px solid var(--sem-error);border-radius:6px}.form-sections{display:flex;flex-direction:column;gap:1.5rem}.form-section{display:flex;flex-direction:column;gap:.75rem}.section-header{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;padding:.5rem 0;border-bottom:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.section-title{margin:0;font-weight:600;font-size:.9375rem;color:var(--lib-forms-on-surface);letter-spacing:-.01em}.section-subtitle{font-size:.8125rem;color:var(--lib-forms-on-surface-variant);line-height:1.35}@media screen and (max-width:599px){.forms-list{grid-template-columns:1fr;padding:.25rem 0}.content-container{padding:.75rem 1rem}.forms-toolbar{padding:.5rem 1rem;gap:.5rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: i1$2.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { 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.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { 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.MatListItemAvatar, selector: "[matListItemAvatar]" }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i6.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6$1.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: DaysAgoPipe, name: "daysAgo" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14926
|
+
], ngImport: i0, template: "<header style=\"position: fixed;left: 0px;top:0px;width:100%;z-index: 1;\">\r\n <mat-toolbar class=\"forms-toolbar\" color=\"primary\">\r\n @if (closeButton) {\r\n <button mat-mini-fab class=\"close-button\" (click)=\"closeButton.onClick()\" aria-label=\"Close\">\r\n <mat-icon>{{ closeButton.icon }}</mat-icon>\r\n </button>\r\n }\r\n <span class=\"spacer\"></span>\r\n\r\n <div class=\"section-switcher\" role=\"tablist\">\r\n @for (section of formListSections; track section.value) {\r\n @if(section.value === (selectFormListSection$ | async)){\r\n <button \r\n mat-raised-button (click)=\"setSection(section.value)\">\r\n {{ section.label }}\r\n </button>\r\n } @else{\r\n <button \r\n\r\n role=\"tab\" \r\n mat-button (click)=\"setSection(section.value)\">\r\n {{ section.label }}\r\n </button>\r\n }\r\n\r\n }\r\n </div>\r\n <span class=\"spacer\"></span>\r\n <button mat-flat-button color=\"primary\" (click)=\"addNewForm()\" class=\"add-form-button\" aria-label=\"Create new form\">\r\n <mat-icon>add</mat-icon>\r\n <span>Add Form</span>\r\n </button>\r\n\r\n\r\n </mat-toolbar>\r\n</header>\r\n<div class=\"forms-wrapper\">\r\n\r\n <br>\r\n <div class=\"content-container\">\r\n <div class=\"search-container\">\r\n\r\n\r\n <mat-form-field appearance=\"outline\" class=\"search-field toolbar-search\" subscriptSizing=\"dynamic\">\r\n <mat-label>Search forms</mat-label>\r\n <input matInput type=\"search \" [(ngModel)]=\"searchQuery\" placeholder=\"Type to filter by form name...\"\r\n aria-label=\"Search forms by name\" autocomplete=\"off\" />\r\n <mat-icon matPrefix aria-hidden=\"true\">search</mat-icon>\r\n @if (searchQuery.trim()) {\r\n <button mat-icon-button matSuffix (click)=\"clearSearch()\" aria-label=\"Clear search\" type=\"button\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n }\r\n </mat-form-field>\r\n\r\n\r\n </div>\r\n\r\n @if ((selectErrors$ | async)?.['LoadForms']) {\r\n <div class=\"error-container mat-elevation-z2\" role=\"alert\">\r\n <div class=\"error-content\">\r\n <mat-icon class=\"error-icon\" color=\"warn\">error_outline</mat-icon>\r\n <span class=\"error-message\">{{ (selectErrors$ | async)?.['LoadForms'] }}</span>\r\n <button mat-icon-button class=\"refresh-button\" (click)=\"loadForms()\" aria-label=\"Retry loading forms\">\r\n <mat-icon>refresh</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (selectLoadingForms$ | async) {\r\n <div class=\"loading-container\">\r\n <mat-spinner diameter=\"48\"></mat-spinner>\r\n <span class=\"loading-text\">Loading forms...</span>\r\n </div>\r\n } @else {\r\n @if (selectFilteredGroupedForms$ | async; as groups) {\r\n <div class=\"form-sections\">\r\n <section class=\"form-section\" aria-labelledby=\"local-forms-heading\">\r\n <div class=\"section-header\">\r\n <h2 id=\"local-forms-heading\" class=\"section-title\">Local Forms</h2>\r\n <span class=\"section-subtitle\">Forms created by you</span>\r\n </div>\r\n <ng-container [ngTemplateOutlet]=\"formListOptions\"\r\n [ngTemplateOutletContext]=\"{ forms: groups['custom'], hasActiveSearch: (selectHasActiveSearch$ | async) }\"></ng-container>\r\n </section>\r\n\r\n <section class=\"form-section\" aria-labelledby=\"global-forms-heading\">\r\n <div class=\"section-header\">\r\n <h2 id=\"global-forms-heading\" class=\"section-title\">Global Forms</h2>\r\n <span class=\"section-subtitle\">Standard system templates</span>\r\n </div>\r\n <ng-container [ngTemplateOutlet]=\"formListOptions\"\r\n [ngTemplateOutletContext]=\"{ forms: groups['system'], hasActiveSearch: (selectHasActiveSearch$ | async) }\"></ng-container>\r\n </section>\r\n </div>\r\n }\r\n }\r\n </div>\r\n</div>\r\n\r\n<ng-template #formListOptions let-forms=\"forms\" let-hasActiveSearch=\"hasActiveSearch\">\r\n @if ((forms)?.length === 0) {\r\n <div class=\"empty-container\">\r\n <img src=\"https://res.cloudinary.com/glick/image/upload/v1738529610/ngx-t-forms/Blank_canvas-cuate_v7rpe0.svg\"\r\n alt=\"\" class=\"empty-illustration\" />\r\n <p class=\"empty-message\">\r\n @if (hasActiveSearch) {\r\n <strong>No forms match your search.</strong>\r\n <br />\r\n <span class=\"empty-hint\">Try a different search term.</span>\r\n } @else {\r\n <strong>No forms available.</strong>\r\n }\r\n </p>\r\n </div>\r\n }\r\n\r\n <mat-nav-list class=\"forms-list\">\r\n @for (form of forms ?? []; track form._id) {\r\n <mat-list-item (click)=\"editForm(form)\" [disabled]=\"form.busy\" [class.archived]=\"form.archived\"\r\n [class.has-errors]=\"form.errors.length > 0\" [class.elevated]=\"activeForm === form._id\"\r\n (mouseover)=\"activeForm = form._id\" (mouseleave)=\"activeForm = null\" class=\"form-list-item\"\r\n [attr.aria-busy]=\"form.busy\">\r\n @if (form.busy) {\r\n <mat-spinner matListItemAvatar [diameter]=\"48\" class=\"form-item-spinner\"></mat-spinner>\r\n }\r\n\r\n <img [class.error]=\"form.errors.length > 0\" matListItemAvatar [src]=\"getFormAvatar(form.formTitle)\"\r\n [alt]=\"'Form preview: ' + form.formTitle\" />\r\n <div matListItemTitle class=\"form-item-content\" [class.has-errors]=\"form.errors.length > 0\">\r\n <div class=\"form-title-row\">\r\n <span class=\"form-title\">{{ form.formTitle | titlecase }}</span>\r\n\r\n </div>\r\n <div class=\"form-metadata\">\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">add_circle_outline</mat-icon>\r\n <small>Created {{ form.createdAt | daysAgo }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">\u00B7</span>\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">update</mat-icon>\r\n <small>Updated {{ form.updatedAt | daysAgo }}</small>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <span class=\"form-actions\" matListItemMeta>\r\n @if (form.errors.length > 0) {\r\n <span class=\"error-badge\" [matTooltip]=\"form.errors.length + ' error(s) found in this form'\">\r\n <mat-icon>error</mat-icon>\r\n <span>{{ form.errors.length }}</span>\r\n </span>\r\n }\r\n <button mat-icon-button [matMenuTriggerFor]=\"formActionsMenu\" [matMenuTriggerData]=\"{ form: form }\"\r\n class=\"form-actions-trigger\" aria-label=\"Form actions\" (click)=\"$event.stopPropagation()\">\r\n <mat-icon>more_vert</mat-icon>\r\n </button>\r\n </span>\r\n </mat-list-item>\r\n }\r\n </mat-nav-list>\r\n</ng-template>\r\n\r\n<mat-menu #formActionsMenu=\"matMenu\" xPosition=\"before\">\r\n <ng-template matMenuContent let-form=\"form\">\r\n @if (!form.archived) {\r\n <button mat-menu-item (click)=\"archive(form, $event)\" aria-label=\"Archive form\">\r\n <mat-icon>archive</mat-icon>\r\n <span>Archive</span>\r\n </button>\r\n } @else {\r\n <button mat-menu-item (click)=\"unarchive(form, $event)\" aria-label=\"Restore form\">\r\n <mat-icon>unarchive</mat-icon>\r\n <span>Restore</span>\r\n </button>\r\n <button mat-menu-item class=\"menu-item-destructive\" (click)=\"delete(form, $event)\"\r\n aria-label=\"Permanently delete form\">\r\n <mat-icon>delete_forever</mat-icon>\r\n <span>Delete permanently</span>\r\n </button>\r\n }\r\n </ng-template>\r\n</mat-menu>", styles: [":host{display:block}.search-container{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;width:100%;max-width:85rem;margin-top:4em;margin-bottom:12px}.forms-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;height:fit-content;min-height:3.25rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.toolbar-search{flex:1 1 12rem;min-width:10rem;max-width:28rem}.toolbar-search .mat-mdc-form-field-flex{align-items:center}.toolbar-search .mat-mdc-form-field-infix{padding-top:.5rem;padding-bottom:.5rem;min-height:2.25rem}.section-switcher{display:flex;gap:.5rem;align-items:center}.section-preset{padding:.4rem .75rem;min-height:2.25rem;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--lib-forms-outline);border-radius:6px;font-size:.8125rem;font-weight:500;background:var(--lib-forms-surface);color:var(--lib-forms-on-surface-variant);cursor:pointer;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),color var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.section-preset:hover{border-color:var(--lib-forms-primary);color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.section-preset:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.section-active{border-color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);color:var(--lib-forms-primary);font-weight:600}.add-form-button .mat-icon{margin-right:.35rem;font-size:1.25rem;height:1.25rem;width:1.25rem}.close-button{flex-shrink:0}.search-field{width:100%;font-size:.875rem}.search-field .mat-mdc-form-field-subscript-wrapper{display:none}.search-field .mat-mdc-text-field-wrapper{background:var(--lib-forms-surface-container-high);border-radius:8px;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing)}.search-field .mat-mdc-form-field-focus-overlay{background:transparent}.search-field input{min-height:2.25rem}.search-field input::placeholder{color:color-mix(in srgb,var(--lib-forms-on-surface-variant) 60%,transparent)}.search-field .mat-icon[matPrefix]{color:var(--lib-forms-on-surface-variant)}.search-field .mat-mdc-form-field-focus-overlay{display:none}.search-field .mdc-notched-outline__leading,.search-field .mdc-notched-outline__notch,.search-field .mdc-notched-outline__trailing{border-color:color-mix(in srgb,var(--lib-forms-outline) 15%,transparent)}.search-field:hover .mdc-notched-outline__leading,.search-field:hover .mdc-notched-outline__notch,.search-field:hover .mdc-notched-outline__trailing{border-color:var(--lib-forms-outline)}.search-field.mat-focused .mdc-notched-outline__leading,.search-field.mat-focused .mdc-notched-outline__notch,.search-field.mat-focused .mdc-notched-outline__trailing{border-color:var(--lib-forms-primary);border-width:2px}.search-field.mat-focused .mdc-notched-outline{box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.search-field button[matSuffix]{color:var(--lib-forms-on-surface-variant);transition:color var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.search-field button[matSuffix]:hover{color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.empty-hint{font-weight:400;font-size:.8125rem;opacity:.9}.content-container{max-width:90rem;margin:0 auto;padding:1rem 1.25rem;background:var(--lib-forms-surface);min-height:12rem}.forms-list{background:none;box-shadow:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));grid-auto-rows:min-content;gap:.75rem;padding:.5rem 0;width:100%}:host .form-list-item{margin:0;border-radius:12px;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing);background:var(--lib-forms-surface-container);min-height:3.25rem;min-width:0;height:auto;cursor:pointer}:host .form-list-item:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}:host .form-list-item.elevated{box-shadow:0 2px 8px #00000014;border-color:color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}@media(prefers-color-scheme:dark){:host .form-list-item.elevated{box-shadow:0 1px 3px #0000004d}}:host .form-list-item.has-errors{border-color:var(--sem-error)}:host .form-list-item:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.form-item-spinner{position:absolute;margin-left:.75rem}.form-item-content{padding:.5rem .75rem .5rem 0;min-width:0;flex:1}.form-item-content.has-errors .form-title{color:var(--sem-error)}.form-title-row{display:flex;align-items:flex-start;gap:.5rem;flex-wrap:wrap;margin-bottom:.25rem}.form-title{margin-bottom:0;font-weight:500;font-size:.9375rem;flex:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;line-height:1.4}.error-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:color-mix(in srgb,var(--sem-error) 15%,transparent);border-radius:8px;font-size:.8125rem;font-weight:600;color:var(--sem-error);flex-shrink:0}.error-badge mat-icon{font-size:1rem;height:1rem;width:1rem}.form-metadata{color:var(--lib-forms-on-surface-variant);font-size:.8125rem;line-height:1.35;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.25rem}.form-metadata .metadata-divider{margin:0 .25rem;color:var(--lib-forms-outline-variant);font-weight:600}.form-metadata .metadata-item{display:inline-flex;align-items:center;gap:.25rem}.form-metadata .metadata-item mat-icon{font-size:.875rem;height:1rem;width:1rem;opacity:.8}.form-actions{opacity:.7;transition:opacity var(--lib-forms-duration-hover) var(--lib-forms-easing)}.form-list-item:hover .form-actions,.form-list-item:focus-within .form-actions{opacity:1}.form-actions-trigger{min-width:2.5rem;min-height:2.5rem}:host ::ng-deep .form-list-item .mat-mdc-list-item-content{padding:0 1rem!important;min-height:3.25rem!important;align-items:center!important;overflow:visible!important}:host ::ng-deep .form-list-item .mdc-list-item__primary-text{overflow:visible!important;white-space:normal!important}:host ::ng-deep .menu-item-destructive{color:var(--sem-error)!important}:host ::ng-deep .menu-item-destructive .mat-icon{color:inherit}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:3rem 1.5rem}.loading-text{font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.error-container{background:color-mix(in srgb,var(--sem-error) 8%,transparent);border-radius:8px;border-left:4px solid var(--sem-error);padding:1rem 1.25rem;margin:1rem 0;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.error-content{display:flex;align-items:center;gap:.75rem}.error-icon{flex-shrink:0;font-size:1.5rem;height:1.5rem;width:1.5rem}.error-message{flex-grow:1;color:var(--sem-error);font-size:.875rem;line-height:1.5;margin:0}.refresh-button{flex-shrink:0;color:var(--sem-error);opacity:.8;transition:opacity var(--lib-forms-duration-hover) var(--lib-forms-easing)}.refresh-button:hover{opacity:1;background:color-mix(in srgb,var(--sem-error) 12%,transparent)}.archived{opacity:.6}.archived:hover{opacity:1}.empty-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:1.5rem 1.25rem;margin:1rem auto;max-width:28rem;background:var(--lib-forms-surface-container);border-radius:12px;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);box-shadow:0 2px 8px #00000014}@media(prefers-color-scheme:dark){.empty-container{box-shadow:0 1px 3px #0000004d}}.empty-illustration{width:12rem;height:auto;object-fit:contain}.empty-message{font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0;line-height:1.4;text-align:center}.form-list-item img.error{border:2px solid var(--sem-error);border-radius:6px}.form-sections{display:flex;flex-direction:column;gap:1.5rem}.form-section{display:flex;flex-direction:column;gap:.75rem}.section-header{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;padding:.5rem 0;border-bottom:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.section-title{margin:0;font-weight:600;font-size:.9375rem;color:var(--lib-forms-on-surface);letter-spacing:-.01em}.section-subtitle{font-size:.8125rem;color:var(--lib-forms-on-surface-variant);line-height:1.35}@media screen and (max-width:599px){.forms-list{grid-template-columns:1fr;padding:.25rem 0}.content-container{padding:.75rem 1rem}.forms-toolbar{padding:.5rem 1rem;gap:.5rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { 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.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", 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: 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.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { 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.MatListItemAvatar, selector: "[matListItemAvatar]" }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i6.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6$1.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: DaysAgoPipe, name: "daysAgo" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14260
14927
|
}
|
|
14261
14928
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormsComponent, decorators: [{
|
|
14262
14929
|
type: Component,
|
|
@@ -14377,9 +15044,9 @@ class FormBuilderComponent {
|
|
|
14377
15044
|
this.#store.actionsFormBuilder.setFormTitle(value);
|
|
14378
15045
|
}
|
|
14379
15046
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormBuilderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14380
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormBuilderComponent, isStandalone: true, selector: "lib-form-builder, app-form-builder", inputs: { formId: { classPropertyName: "formId", publicName: "formId", isSignal: true, isRequired: false, transformFunction: null } }, providers: [FormsStoreService], ngImport: i0, template: "<header style=\"position:fixed;width:100%;left:0px;top:0px\">\r\n <mat-toolbar color=\"primary\">\r\n @if (closeButton) {\r\n <button mat-icon-button [style.color]=\"closeButton.color\" (click)=\"closeButton.onClick()\">\r\n <mat-icon>{{closeButton.icon}}</mat-icon>\r\n </button>\r\n }\r\n\r\n <!-- Navigation group -->\r\n <div class=\"nav-group\">\r\n <button mat-button routerLink=\"/\">Forms</button>\r\n <mat-icon>navigate_next</mat-icon>\r\n </div>\r\n\r\n <!-- Title input with optimized binding -->\r\n @if (selectHasFormId()) {\r\n <input [ngModel]=\"titleValue()\" (ngModelChange)=\"setTitleValue($event)\" class=\"section-title-input\" placeholder=\"Enter Form Title\">\r\n }\r\n\r\n <span class=\"spacer\"></span>\r\n\r\n @defer (on viewport) {\r\n <lib-forms-builder-menu />\r\n } @placeholder {\r\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"20\" />\r\n </div>\r\n\r\n }\r\n\r\n <span class=\"divider\">|</span>\r\n\r\n <!-- Persist to server: visible once local preview is in sync -->\r\n @if (!pendingExternalRefresh()) {\r\n <button mat-raised-button color=\"accent\" class=\"save-button\" [disabled]=\"!(canSaveForm())\" (click)=\"saveForm()\">\r\n <mat-icon style=\"width: 24px;\">cloud_upload</mat-icon>\r\n @if (selectFormBuilderIsBusy()) {\r\n <span class=\"save-text\">\r\n <span class=\"save-label\">{{(isNewForm()) ? 'Creating form...' : 'Saving changes...'}}</span>\r\n </span>\r\n } @else {\r\n <span class=\"save-text\">\r\n <span class=\"save-label\">{{(isNewForm()) ? 'Save New Form' : 'Save Changes'}}</span>\r\n @if (canSaveForm()) {\r\n <span class=\"save-sub\">Not saved to server yet</span>\r\n }\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <!-- Local sync: applies your changes to the builder preview \u00B7 does NOT save to server -->\r\n @if (pendingExternalRefresh()) {\r\n <button class=\"refresh-button\" matRipple matRippleColor=\"rgba(255,255,255,0.12)\" (click)=\"triggerRefreshNow()\">\r\n <span class=\"countdown-ring\">\r\n <mat-progress-spinner\r\n diameter=\"34\"\r\n mode=\"determinate\"\r\n [value]=\"refreshCountdown() * 20\">\r\n </mat-progress-spinner>\r\n <span class=\"countdown-number\">{{refreshCountdown()}}</span>\r\n </span>\r\n <span class=\"refresh-text\">\r\n <span class=\"refresh-label\">Apply Now</span>\r\n <span class=\"refresh-sub\">Preview updates in {{refreshCountdown()}}s</span>\r\n </span>\r\n <mat-icon class=\"refresh-chevron\">chevron_right</mat-icon>\r\n </button>\r\n }\r\n\r\n </mat-toolbar>\r\n</header>\r\n\r\n<!-- Main content with optimized loading -->\r\n@defer (on viewport) {\r\n<div class=\"container\">\r\n <div class=\"middle\">\r\n <br>\r\n @if (selectLoadingForm()) {\r\n <div class=\"loading-container\">\r\n <mat-spinner />\r\n </div>\r\n } @else {\r\n <lib-form-section-stepper />\r\n }\r\n <br>\r\n @if ((hasMissingConfigs()) && !(selectLoadingForm())) {\r\n <lib-missing-form-configs />\r\n }\r\n <!-- Updated time info -->\r\n @if (!(isNewForm())) {\r\n <div class=\"updated-time\">\r\n <mat-icon>update</mat-icon>\r\n <span>Updated {{ selectFormUpdated() }}</span>\r\n </div>\r\n }\r\n </div>\r\n\r\n @if (elementEditorOpen()) {\r\n <lib-input-editor style=\"max-width:480px;height:calc(100vh - 76px);\r\n position:sticky;\r\n top:76px;\r\n z-index:1\" cdkDrag cdkDragBoundary=\"container\" class=\"middle editor-container\" />\r\n }\r\n <!-- Missing fields section -->`\r\n\r\n\r\n</div>\r\n}@placeholder {\r\n<div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"50\" />\r\n</div>\r\n}", styles: [".container{display:flex;width:100%;height:calc(100% - 64px);padding-top:4em}.side{width:100px;background-color:var(--sem-error-surface)}.middle{flex-grow:1;height:calc(100vh - 68px);overflow:auto;background-color:none}.section-title-input{border:none;background-color:transparent;font-size:.8575em;font-weight:600;color:var(--lib-forms-on-primary);padding-top:12px;padding-bottom:12px;outline:none;width:100%;min-width:268px;transition:border-bottom-color .3s ease-in-out}.section-title-input:focus{border-bottom:1px solid var(--lib-forms-on-primary)}.missing-fields{position:fixed;bottom:0}.updated-time{display:flex;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));gap:8px;align-items:center;line-height:normal;font-size:.875em;bottom:0;position:absolute;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:8px;border-radius:4px}.nav-group{display:flex;align-items:center;gap:8px}.save-button{margin-left:8px;min-width:168px;height:44px}.save-button .save-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.save-button .save-text .save-label{font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap}.save-button .save-text .save-sub{font-size:10px;line-height:1;opacity:.78;white-space:nowrap}.refresh-button{margin-left:8px;background:var(--mat-fab-small-container-color, var(--mat-sys-tertiary-container));color:var(--mat-sys-on-tertiary-container);border:1.5px solid var(--mat-sys-outline-variant);border-radius:10px;padding:4px 14px 4px 6px;cursor:pointer;display:inline-flex;align-items:center;gap:12px;height:44px;width:fit-content;box-shadow:0 2px 12px color-mix(in srgb,var(--lib-forms-shadow-color) 18%,transparent);transition:box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing);outline:none;overflow:hidden;position:relative}.refresh-button:hover{box-shadow:0 4px 20px color-mix(in srgb,var(--lib-forms-shadow-color) 28%,transparent);transform:translateY(-1px)}.refresh-button:active{transform:translateY(0);box-shadow:0 1px 6px color-mix(in srgb,var(--lib-forms-shadow-color) 12%,transparent)}.refresh-button .countdown-ring{position:relative;width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.refresh-button .countdown-ring mat-progress-spinner{position:absolute;inset:0;--mdc-circular-progress-active-indicator-color: var(--mat-sys-on-tertiary-container);--mdc-circular-progress-track-color: color-mix(in srgb, var(--mat-sys-on-tertiary-container) 18%, transparent)}.refresh-button .countdown-ring .countdown-number{font-size:11px;font-weight:600;line-height:1;z-index:1;letter-spacing:-.3px;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-text{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.refresh-button .refresh-text .refresh-label{font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-text .refresh-sub{font-size:10px;line-height:1;opacity:.68;white-space:nowrap;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-chevron{font-size:18px;width:18px;height:18px;opacity:.65;flex-shrink:0;color:var(--mat-sys-on-tertiary-container)}.loading-container{display:flex;height:calc(100% - 150px);justify-content:center;align-items:center}.editor-container{max-width:500px}.divider{margin:0 8px;opacity:.5}app-missing-form-configs{position:absolute;bottom:0;right:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatRippleModule }, { kind: "directive", type: i7.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i7$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [import('./ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs').then(m => m.FormsBuilderMenuComponent)], () => [i3$1.MatIcon, i4.MatProgressSpinner, i1$3.CdkDrag, import('./ngx-t-forms-input-editor.component-BWoKhlI3.mjs').then(m => m.InputEditorComponent), import('./ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs').then(m => m.FormSectionStepperComponent), import('./ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs').then(m => m.MissingFormConfigsComponent)]] }); }
|
|
15047
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormBuilderComponent, isStandalone: true, selector: "lib-form-builder, app-form-builder", inputs: { formId: { classPropertyName: "formId", publicName: "formId", isSignal: true, isRequired: false, transformFunction: null } }, providers: [FormsStoreService], ngImport: i0, template: "<header style=\"position:fixed;width:100%;left:0px;top:0px\">\r\n <mat-toolbar color=\"primary\">\r\n @if (closeButton) {\r\n <button mat-icon-button [style.color]=\"closeButton.color\" (click)=\"closeButton.onClick()\">\r\n <mat-icon>{{closeButton.icon}}</mat-icon>\r\n </button>\r\n }\r\n\r\n <!-- Navigation group -->\r\n <div class=\"nav-group\">\r\n <button mat-button routerLink=\"/\">Forms</button>\r\n <mat-icon>navigate_next</mat-icon>\r\n </div>\r\n\r\n <!-- Title input with optimized binding -->\r\n @if (selectHasFormId()) {\r\n <input [ngModel]=\"titleValue()\" (ngModelChange)=\"setTitleValue($event)\" class=\"section-title-input\" placeholder=\"Enter Form Title\">\r\n }\r\n\r\n <span class=\"spacer\"></span>\r\n\r\n @defer (on viewport) {\r\n <lib-forms-builder-menu />\r\n } @placeholder {\r\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"20\" />\r\n </div>\r\n\r\n }\r\n\r\n <span class=\"divider\">|</span>\r\n\r\n <!-- Persist to server: visible once local preview is in sync -->\r\n @if (!pendingExternalRefresh()) {\r\n <button mat-raised-button color=\"accent\" class=\"save-button\" [disabled]=\"!(canSaveForm())\" (click)=\"saveForm()\">\r\n <mat-icon style=\"width: 24px;\">cloud_upload</mat-icon>\r\n @if (selectFormBuilderIsBusy()) {\r\n <span class=\"save-text\">\r\n <span class=\"save-label\">{{(isNewForm()) ? 'Creating form...' : 'Saving changes...'}}</span>\r\n </span>\r\n } @else {\r\n <span class=\"save-text\">\r\n <span class=\"save-label\">{{(isNewForm()) ? 'Save New Form' : 'Save Changes'}}</span>\r\n @if (canSaveForm()) {\r\n <span class=\"save-sub\">Not saved to server yet</span>\r\n }\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <!-- Local sync: applies your changes to the builder preview \u00B7 does NOT save to server -->\r\n @if (pendingExternalRefresh()) {\r\n <button class=\"refresh-button\" matRipple matRippleColor=\"rgba(255,255,255,0.12)\" (click)=\"triggerRefreshNow()\">\r\n <span class=\"countdown-ring\">\r\n <mat-progress-spinner\r\n diameter=\"34\"\r\n mode=\"determinate\"\r\n [value]=\"refreshCountdown() * 20\">\r\n </mat-progress-spinner>\r\n <span class=\"countdown-number\">{{refreshCountdown()}}</span>\r\n </span>\r\n <span class=\"refresh-text\">\r\n <span class=\"refresh-label\">Apply Now</span>\r\n <span class=\"refresh-sub\">Preview updates in {{refreshCountdown()}}s</span>\r\n </span>\r\n <mat-icon class=\"refresh-chevron\">chevron_right</mat-icon>\r\n </button>\r\n }\r\n\r\n </mat-toolbar>\r\n</header>\r\n\r\n<!-- Main content with optimized loading -->\r\n@defer (on viewport) {\r\n<div class=\"container\">\r\n <div class=\"middle\">\r\n <br>\r\n @if (selectLoadingForm()) {\r\n <div class=\"loading-container\">\r\n <mat-spinner />\r\n </div>\r\n } @else {\r\n <lib-form-section-stepper />\r\n }\r\n <br>\r\n @if ((hasMissingConfigs()) && !(selectLoadingForm())) {\r\n <lib-missing-form-configs />\r\n }\r\n <!-- Updated time info -->\r\n @if (!(isNewForm())) {\r\n <div class=\"updated-time\">\r\n <mat-icon>update</mat-icon>\r\n <span>Updated {{ selectFormUpdated() }}</span>\r\n </div>\r\n }\r\n </div>\r\n\r\n @if (elementEditorOpen()) {\r\n <lib-input-editor style=\"max-width:480px;height:calc(100vh - 76px);\r\n position:sticky;\r\n top:76px;\r\n z-index:1\" cdkDrag cdkDragBoundary=\"container\" class=\"middle editor-container\" />\r\n }\r\n <!-- Missing fields section -->`\r\n\r\n\r\n</div>\r\n}@placeholder {\r\n<div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"50\" />\r\n</div>\r\n}", styles: [".container{display:flex;width:100%;height:calc(100% - 64px);padding-top:4em}.side{width:100px;background-color:var(--sem-error-surface)}.middle{flex-grow:1;height:calc(100vh - 68px);overflow:auto;background-color:none}.section-title-input{border:none;background-color:transparent;font-size:.8575em;font-weight:600;color:var(--lib-forms-on-primary);padding-top:12px;padding-bottom:12px;outline:none;width:100%;min-width:268px;transition:border-bottom-color .3s ease-in-out}.section-title-input:focus{border-bottom:1px solid var(--lib-forms-on-primary)}.missing-fields{position:fixed;bottom:0}.updated-time{display:flex;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));gap:8px;align-items:center;line-height:normal;font-size:.875em;bottom:0;position:absolute;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:8px;border-radius:4px}.nav-group{display:flex;align-items:center;gap:8px}.save-button{margin-left:8px;min-width:168px;height:44px}.save-button .save-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.save-button .save-text .save-label{font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap}.save-button .save-text .save-sub{font-size:10px;line-height:1;opacity:.78;white-space:nowrap}.refresh-button{margin-left:8px;background:var(--mat-fab-small-container-color, var(--mat-sys-tertiary-container));color:var(--mat-sys-on-tertiary-container);border:1.5px solid var(--mat-sys-outline-variant);border-radius:10px;padding:4px 14px 4px 6px;cursor:pointer;display:inline-flex;align-items:center;gap:12px;height:44px;width:fit-content;box-shadow:0 2px 12px color-mix(in srgb,var(--lib-forms-shadow-color) 18%,transparent);transition:box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing);outline:none;overflow:hidden;position:relative}.refresh-button:hover{box-shadow:0 4px 20px color-mix(in srgb,var(--lib-forms-shadow-color) 28%,transparent);transform:translateY(-1px)}.refresh-button:active{transform:translateY(0);box-shadow:0 1px 6px color-mix(in srgb,var(--lib-forms-shadow-color) 12%,transparent)}.refresh-button .countdown-ring{position:relative;width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.refresh-button .countdown-ring mat-progress-spinner{position:absolute;inset:0;--mdc-circular-progress-active-indicator-color: var(--mat-sys-on-tertiary-container);--mdc-circular-progress-track-color: color-mix(in srgb, var(--mat-sys-on-tertiary-container) 18%, transparent)}.refresh-button .countdown-ring .countdown-number{font-size:11px;font-weight:600;line-height:1;z-index:1;letter-spacing:-.3px;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-text{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.refresh-button .refresh-text .refresh-label{font-size:13px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-text .refresh-sub{font-size:10px;line-height:1;opacity:.68;white-space:nowrap;color:var(--mat-sys-on-tertiary-container)}.refresh-button .refresh-chevron{font-size:18px;width:18px;height:18px;opacity:.65;flex-shrink:0;color:var(--mat-sys-on-tertiary-container)}.loading-container{display:flex;height:calc(100% - 150px);justify-content:center;align-items:center}.editor-container{max-width:500px}.divider{margin:0 8px;opacity:.5}app-missing-form-configs{position:absolute;bottom:0;right:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { 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: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatRippleModule }, { kind: "directive", type: i7.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i7$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [import('./ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs').then(m => m.FormsBuilderMenuComponent)], () => [i3$1.MatIcon, i4.MatProgressSpinner, i1$2.CdkDrag, import('./ngx-t-forms-input-editor.component-B6UKwV4i.mjs').then(m => m.InputEditorComponent), import('./ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs').then(m => m.FormSectionStepperComponent), import('./ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs').then(m => m.MissingFormConfigsComponent)]] }); }
|
|
14381
15048
|
}
|
|
14382
|
-
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: FormBuilderComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-forms-builder-menu.component-
|
|
15049
|
+
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: FormBuilderComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs').then(m => m.FormsBuilderMenuComponent), import('./ngx-t-forms-input-editor.component-B6UKwV4i.mjs').then(m => m.InputEditorComponent), import('./ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs').then(m => m.FormSectionStepperComponent), import('./ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs').then(m => m.MissingFormConfigsComponent)], resolveMetadata: (FormsBuilderMenuComponent, InputEditorComponent, FormSectionStepperComponent, MissingFormConfigsComponent) => ({ decorators: [{
|
|
14383
15050
|
type: Component,
|
|
14384
15051
|
args: [{ selector: 'lib-form-builder, app-form-builder', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
14385
15052
|
CommonModule,
|
|
@@ -14649,7 +15316,7 @@ class OverrideReasonsDialogComponent {
|
|
|
14649
15316
|
this.#data.controller.setOverrideAttachment(validatorId, attachment);
|
|
14650
15317
|
}
|
|
14651
15318
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: OverrideReasonsDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14652
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: OverrideReasonsDialogComponent, isStandalone: true, selector: "lib-override-reasons-dialog", host: { classAttribute: "lib-override-reasons-dialog" }, ngImport: i0, template: "<div mat-dialog-title class=\"ovd__header\">\n <span class=\"ovd__header-icon\" aria-hidden=\"true\">\n <mat-icon>flag</mat-icon>\n </span>\n <div class=\"ovd__header-text\">\n <span class=\"ovd__title\">Provide override reasons</span>\n <span class=\"ovd__subtitle\">\n @if (hasBlockingErrors) {\n Motivate each flagged item below. Submission also needs the remaining required fields fixed.\n } @else {\n Add a short reason for each flagged item to unlock submission.\n }\n </span>\n </div>\n</div>\n\n<mat-dialog-content class=\"ovd__content\">\n <ul class=\"ovd__list\">\n @for (err of errors; track err.validatorId) {\n <li class=\"ovd-item\" [class.ovd-item--done]=\"isMotivated(err.validatorId)\">\n <div class=\"ovd-item__head\">\n <div class=\"ovd-item__heading\">\n <p class=\"ovd-item__label\">{{ err.label | titlecase }}</p>\n <p class=\"ovd-item__message\">\n <mat-icon aria-hidden=\"true\">error</mat-icon>\n <span>{{ err.message }}</span>\n </p>\n </div>\n <span class=\"ovd-status\" [class.ovd-status--done]=\"isMotivated(err.validatorId)\">\n <mat-icon aria-hidden=\"true\">{{ isMotivated(err.validatorId) ? 'check_circle' : 'edit_note' }}</mat-icon>\n <span>{{ isMotivated(err.validatorId) ? 'Provided' : 'Needs reason' }}</span>\n </span>\n </div>\n\n <label class=\"ovd-field\">\n <span class=\"ovd-field__label\">Reason</span>\n <textarea\n class=\"ovd-field__input\"\n rows=\"3\"\n [attr.aria-label]=\"'Override reason for ' + err.label\"\n [value]=\"comment(err.validatorId)\"\n (input)=\"onComment(err.validatorId, $event)\"\n placeholder=\"Explain why this can be overridden\u2026\"></textarea>\n </label>\n\n @if (attachmentName(err.validatorId); as fileName) {\n <div class=\"ovd-attach ovd-attach--filled\">\n <mat-icon class=\"ovd-attach__icon\" aria-hidden=\"true\">description</mat-icon>\n <span class=\"ovd-attach__name\">{{ fileName }}</span>\n <button\n type=\"button\"\n class=\"ovd-attach__remove\"\n (click)=\"clearAttachment(err.validatorId)\"\n [attr.aria-label]=\"'Remove the supporting file for ' + err.label\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n } @else {\n <label class=\"ovd-attach ovd-attach--empty\">\n <mat-icon class=\"ovd-attach__icon\" aria-hidden=\"true\">attach_file</mat-icon>\n <span>Attach supporting file <span class=\"ovd-attach__optional\">\u00B7 optional</span></span>\n <input\n type=\"file\"\n hidden\n (change)=\"onAttachment(err.validatorId, $event)\"\n [attr.aria-label]=\"'Attach a supporting file for ' + err.label\" />\n </label>\n }\n </li>\n }\n </ul>\n</mat-dialog-content>\n\n<mat-dialog-actions class=\"ovd__actions\">\n <div class=\"ovd__progress\" role=\"status\" aria-live=\"polite\">\n <span class=\"ovd__progress-track\">\n <span\n class=\"ovd__progress-fill\"\n [class.ovd__progress-fill--done]=\"allMotivated()\"\n [style.width.%]=\"progressPct()\"></span>\n </span>\n <span class=\"ovd__progress-label\">{{ motivatedCount() }} of {{ total }} provided</span>\n </div>\n <span class=\"ovd__spacer\"></span>\n <button mat-flat-button color=\"primary\" mat-dialog-close class=\"ovd__done\">\n {{ allMotivated() ? 'Done' : 'Save & close' }}\n </button>\n</mat-dialog-actions>\n", styles: [":host{--ovd-radius-lg: 12px;--ovd-radius-sm: 8px;--ovd-radius-pill: 999px;--ovd-primary-04: color-mix(in srgb, var(--mat-sys-primary) 4%, transparent);--ovd-primary-06: color-mix(in srgb, var(--mat-sys-primary) 6%, transparent);--ovd-primary-12: color-mix(in srgb, var(--mat-sys-primary) 12%, transparent);--ovd-primary-25: color-mix(in srgb, var(--mat-sys-primary) 25%, transparent);--ovd-error-10: color-mix(in srgb, var(--mat-sys-error) 10%, transparent);--ovd-error-14: color-mix(in srgb, var(--mat-sys-error) 14%, transparent);--ovd-outline-12: color-mix(in srgb, var(--mat-sys-outline) 12%, transparent);--ovd-outline-15: color-mix(in srgb, var(--mat-sys-outline) 15%, transparent);--ovd-shadow: 0 2px 8px color-mix(in srgb, var(--mat-sys-shadow) 8%, transparent);display:block;min-width:min(28rem,88vw);max-width:36rem}.ovd__header{display:flex;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem 1rem;margin:0}.ovd__header:before{display:none}.ovd__header-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:var(--ovd-radius-sm);background:var(--ovd-primary-12);color:var(--mat-sys-primary)}.ovd__header-icon mat-icon{font-size:1.5rem;width:1.5rem;height:1.5rem}.ovd__header-text{display:flex;flex-direction:column;gap:.25rem;padding-top:.125rem}.ovd__title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;line-height:1.3;color:var(--mat-sys-on-surface)}.ovd__subtitle{font-size:.875rem;line-height:1.45;color:var(--mat-sys-on-surface-variant)}.ovd__content{max-height:65vh;padding:1rem 1.5rem .5rem}.ovd__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem}.ovd-item{display:flex;flex-direction:column;gap:1rem;padding:1.25rem;border:1px solid var(--ovd-outline-15);border-radius:var(--ovd-radius-lg);background:var(--mat-sys-surface-container-low, var(--mat-sys-surface));box-shadow:var(--ovd-shadow);transition:border-color .3s cubic-bezier(.16,1,.3,1),background .3s cubic-bezier(.16,1,.3,1)}.ovd-item--done{border-color:var(--ovd-primary-12);background:var(--mat-sys-surface-container, var(--mat-sys-surface))}.ovd-item__head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.ovd-item__heading{display:flex;flex-direction:column;gap:.25rem;min-width:0}.ovd-item__label{margin:0;font-size:.9375rem;font-weight:600;color:var(--mat-sys-on-surface)}.ovd-item__message{display:flex;align-items:center;gap:.375rem;margin:0;font-size:.8125rem;line-height:1.35;color:var(--mat-sys-error)}.ovd-item__message mat-icon{flex-shrink:0;font-size:1rem;width:1rem;height:1rem}.ovd-status{flex-shrink:0;display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:var(--ovd-radius-pill);background:var(--ovd-error-14);color:var(--mat-sys-error);font-size:.75rem;font-weight:600;white-space:nowrap;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}.ovd-status mat-icon{font-size:1rem;width:1rem;height:1rem}.ovd-status--done{background:var(--ovd-primary-12);color:var(--mat-sys-primary)}.ovd-field{display:flex;flex-direction:column;gap:.35rem}.ovd-field__label{font-size:.75rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.ovd-field__input{width:100%;box-sizing:border-box;padding:.5rem .75rem;font:inherit;font-size:.875rem;line-height:1.5;color:var(--mat-sys-on-surface);background:var(--mat-sys-surface);border:1px solid var(--mat-sys-outline);border-radius:var(--ovd-radius-sm);resize:vertical;transition:border-color .3s cubic-bezier(.16,1,.3,1),box-shadow .3s cubic-bezier(.16,1,.3,1)}.ovd-field__input::placeholder{color:color-mix(in srgb,var(--mat-sys-on-surface-variant) 60%,transparent)}.ovd-field__input:focus{outline:none;border-color:var(--mat-sys-primary);box-shadow:0 0 0 2px var(--ovd-primary-25)}.ovd-attach{display:inline-flex;align-items:center;gap:.5rem;align-self:flex-start;max-width:100%;font-size:.8125rem}.ovd-attach__icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem}.ovd-attach--empty{padding:.5rem .875rem;border:1px dashed var(--mat-sys-outline);border-radius:var(--ovd-radius-sm);color:var(--mat-sys-on-surface-variant);cursor:pointer;transition:border-color .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1),background .3s cubic-bezier(.16,1,.3,1)}.ovd-attach--empty:hover{border-color:var(--mat-sys-primary);color:var(--mat-sys-primary);background:var(--ovd-primary-06)}.ovd-attach__optional{color:color-mix(in srgb,var(--mat-sys-on-surface-variant) 70%,transparent)}.ovd-attach--filled{padding:.25rem .375rem .25rem .625rem;background:var(--ovd-primary-12);border-radius:var(--ovd-radius-sm);color:var(--mat-sys-on-surface)}.ovd-attach--filled .ovd-attach__icon{color:var(--mat-sys-primary)}.ovd-attach__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:16rem}.ovd-attach__remove{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:none;border-radius:4px;background:transparent;color:var(--mat-sys-on-surface-variant);cursor:pointer;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}.ovd-attach__remove:hover{background:var(--ovd-error-14);color:var(--mat-sys-error)}.ovd-attach__remove mat-icon{font-size:1rem;width:1rem;height:1rem}.ovd__actions{display:flex;align-items:center;gap:.75rem;padding:1rem 1.5rem 1.25rem}.ovd__progress{display:inline-flex;align-items:center;gap:.625rem;min-width:0}.ovd__progress-track{position:relative;width:3.5rem;height:.375rem;border-radius:var(--ovd-radius-pill);background:var(--ovd-outline-12);overflow:hidden}.ovd__progress-fill{position:absolute;inset:0 auto 0 0;height:100%;border-radius:var(--ovd-radius-pill);background:var(--mat-sys-error);transition:width .4s cubic-bezier(.16,1,.3,1),background .4s cubic-bezier(.16,1,.3,1)}.ovd__progress-fill--done{background:var(--mat-sys-primary)}.ovd__progress-label{font-size:.75rem;color:var(--mat-sys-on-surface-variant);white-space:nowrap}.ovd__spacer{flex:1 1 auto}@media(prefers-color-scheme:dark){:host{--ovd-shadow: 0 1px 3px color-mix(in srgb, var(--mat-sys-shadow) 30%, transparent)}}:host-context(.dark){--ovd-shadow: 0 1px 3px color-mix(in srgb, var(--mat-sys-shadow) 30%, transparent)}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$4.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15319
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: OverrideReasonsDialogComponent, isStandalone: true, selector: "lib-override-reasons-dialog", host: { classAttribute: "lib-override-reasons-dialog" }, ngImport: i0, template: "<div mat-dialog-title class=\"ovd__header\">\n <span class=\"ovd__header-icon\" aria-hidden=\"true\">\n <mat-icon>flag</mat-icon>\n </span>\n <div class=\"ovd__header-text\">\n <span class=\"ovd__title\">Provide override reasons</span>\n <span class=\"ovd__subtitle\">\n @if (hasBlockingErrors) {\n Motivate each flagged item below. Submission also needs the remaining required fields fixed.\n } @else {\n Add a short reason for each flagged item to unlock submission.\n }\n </span>\n </div>\n</div>\n\n<mat-dialog-content class=\"ovd__content\">\n <ul class=\"ovd__list\">\n @for (err of errors; track err.validatorId) {\n <li class=\"ovd-item\" [class.ovd-item--done]=\"isMotivated(err.validatorId)\">\n <div class=\"ovd-item__head\">\n <div class=\"ovd-item__heading\">\n <p class=\"ovd-item__label\">{{ err.label | titlecase }}</p>\n <p class=\"ovd-item__message\">\n <mat-icon aria-hidden=\"true\">error</mat-icon>\n <span>{{ err.message }}</span>\n </p>\n </div>\n <span class=\"ovd-status\" [class.ovd-status--done]=\"isMotivated(err.validatorId)\">\n <mat-icon aria-hidden=\"true\">{{ isMotivated(err.validatorId) ? 'check_circle' : 'edit_note' }}</mat-icon>\n <span>{{ isMotivated(err.validatorId) ? 'Provided' : 'Needs reason' }}</span>\n </span>\n </div>\n\n <label class=\"ovd-field\">\n <span class=\"ovd-field__label\">Reason</span>\n <textarea\n class=\"ovd-field__input\"\n rows=\"3\"\n [attr.aria-label]=\"'Override reason for ' + err.label\"\n [value]=\"comment(err.validatorId)\"\n (input)=\"onComment(err.validatorId, $event)\"\n placeholder=\"Explain why this can be overridden\u2026\"></textarea>\n </label>\n\n @if (attachmentName(err.validatorId); as fileName) {\n <div class=\"ovd-attach ovd-attach--filled\">\n <mat-icon class=\"ovd-attach__icon\" aria-hidden=\"true\">description</mat-icon>\n <span class=\"ovd-attach__name\">{{ fileName }}</span>\n <button\n type=\"button\"\n class=\"ovd-attach__remove\"\n (click)=\"clearAttachment(err.validatorId)\"\n [attr.aria-label]=\"'Remove the supporting file for ' + err.label\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n } @else {\n <label class=\"ovd-attach ovd-attach--empty\">\n <mat-icon class=\"ovd-attach__icon\" aria-hidden=\"true\">attach_file</mat-icon>\n <span>Attach supporting file <span class=\"ovd-attach__optional\">\u00B7 optional</span></span>\n <input\n type=\"file\"\n hidden\n (change)=\"onAttachment(err.validatorId, $event)\"\n [attr.aria-label]=\"'Attach a supporting file for ' + err.label\" />\n </label>\n }\n </li>\n }\n </ul>\n</mat-dialog-content>\n\n<mat-dialog-actions class=\"ovd__actions\">\n <div class=\"ovd__progress\" role=\"status\" aria-live=\"polite\">\n <span class=\"ovd__progress-track\">\n <span\n class=\"ovd__progress-fill\"\n [class.ovd__progress-fill--done]=\"allMotivated()\"\n [style.width.%]=\"progressPct()\"></span>\n </span>\n <span class=\"ovd__progress-label\">{{ motivatedCount() }} of {{ total }} provided</span>\n </div>\n <span class=\"ovd__spacer\"></span>\n <button mat-flat-button color=\"primary\" mat-dialog-close class=\"ovd__done\">\n {{ allMotivated() ? 'Done' : 'Save & close' }}\n </button>\n</mat-dialog-actions>\n", styles: [":host{--ovd-radius-lg: 12px;--ovd-radius-sm: 8px;--ovd-radius-pill: 999px;--ovd-primary-04: color-mix(in srgb, var(--mat-sys-primary) 4%, transparent);--ovd-primary-06: color-mix(in srgb, var(--mat-sys-primary) 6%, transparent);--ovd-primary-12: color-mix(in srgb, var(--mat-sys-primary) 12%, transparent);--ovd-primary-25: color-mix(in srgb, var(--mat-sys-primary) 25%, transparent);--ovd-error-10: color-mix(in srgb, var(--mat-sys-error) 10%, transparent);--ovd-error-14: color-mix(in srgb, var(--mat-sys-error) 14%, transparent);--ovd-outline-12: color-mix(in srgb, var(--mat-sys-outline) 12%, transparent);--ovd-outline-15: color-mix(in srgb, var(--mat-sys-outline) 15%, transparent);--ovd-shadow: 0 2px 8px color-mix(in srgb, var(--mat-sys-shadow) 8%, transparent);display:block;min-width:min(28rem,88vw);max-width:36rem}.ovd__header{display:flex;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem 1rem;margin:0}.ovd__header:before{display:none}.ovd__header-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:var(--ovd-radius-sm);background:var(--ovd-primary-12);color:var(--mat-sys-primary)}.ovd__header-icon mat-icon{font-size:1.5rem;width:1.5rem;height:1.5rem}.ovd__header-text{display:flex;flex-direction:column;gap:.25rem;padding-top:.125rem}.ovd__title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;line-height:1.3;color:var(--mat-sys-on-surface)}.ovd__subtitle{font-size:.875rem;line-height:1.45;color:var(--mat-sys-on-surface-variant)}.ovd__content{max-height:65vh;padding:1rem 1.5rem .5rem}.ovd__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem}.ovd-item{display:flex;flex-direction:column;gap:1rem;padding:1.25rem;border:1px solid var(--ovd-outline-15);border-radius:var(--ovd-radius-lg);background:var(--mat-sys-surface-container-low, var(--mat-sys-surface));box-shadow:var(--ovd-shadow);transition:border-color .3s cubic-bezier(.16,1,.3,1),background .3s cubic-bezier(.16,1,.3,1)}.ovd-item--done{border-color:var(--ovd-primary-12);background:var(--mat-sys-surface-container, var(--mat-sys-surface))}.ovd-item__head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.ovd-item__heading{display:flex;flex-direction:column;gap:.25rem;min-width:0}.ovd-item__label{margin:0;font-size:.9375rem;font-weight:600;color:var(--mat-sys-on-surface)}.ovd-item__message{display:flex;align-items:center;gap:.375rem;margin:0;font-size:.8125rem;line-height:1.35;color:var(--mat-sys-error)}.ovd-item__message mat-icon{flex-shrink:0;font-size:1rem;width:1rem;height:1rem}.ovd-status{flex-shrink:0;display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:var(--ovd-radius-pill);background:var(--ovd-error-14);color:var(--mat-sys-error);font-size:.75rem;font-weight:600;white-space:nowrap;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}.ovd-status mat-icon{font-size:1rem;width:1rem;height:1rem}.ovd-status--done{background:var(--ovd-primary-12);color:var(--mat-sys-primary)}.ovd-field{display:flex;flex-direction:column;gap:.35rem}.ovd-field__label{font-size:.75rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.ovd-field__input{width:100%;box-sizing:border-box;padding:.5rem .75rem;font:inherit;font-size:.875rem;line-height:1.5;color:var(--mat-sys-on-surface);background:var(--mat-sys-surface);border:1px solid var(--mat-sys-outline);border-radius:var(--ovd-radius-sm);resize:vertical;transition:border-color .3s cubic-bezier(.16,1,.3,1),box-shadow .3s cubic-bezier(.16,1,.3,1)}.ovd-field__input::placeholder{color:color-mix(in srgb,var(--mat-sys-on-surface-variant) 60%,transparent)}.ovd-field__input:focus{outline:none;border-color:var(--mat-sys-primary);box-shadow:0 0 0 2px var(--ovd-primary-25)}.ovd-attach{display:inline-flex;align-items:center;gap:.5rem;align-self:flex-start;max-width:100%;font-size:.8125rem}.ovd-attach__icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem}.ovd-attach--empty{padding:.5rem .875rem;border:1px dashed var(--mat-sys-outline);border-radius:var(--ovd-radius-sm);color:var(--mat-sys-on-surface-variant);cursor:pointer;transition:border-color .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1),background .3s cubic-bezier(.16,1,.3,1)}.ovd-attach--empty:hover{border-color:var(--mat-sys-primary);color:var(--mat-sys-primary);background:var(--ovd-primary-06)}.ovd-attach__optional{color:color-mix(in srgb,var(--mat-sys-on-surface-variant) 70%,transparent)}.ovd-attach--filled{padding:.25rem .375rem .25rem .625rem;background:var(--ovd-primary-12);border-radius:var(--ovd-radius-sm);color:var(--mat-sys-on-surface)}.ovd-attach--filled .ovd-attach__icon{color:var(--mat-sys-primary)}.ovd-attach__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:16rem}.ovd-attach__remove{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:none;border-radius:4px;background:transparent;color:var(--mat-sys-on-surface-variant);cursor:pointer;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}.ovd-attach__remove:hover{background:var(--ovd-error-14);color:var(--mat-sys-error)}.ovd-attach__remove mat-icon{font-size:1rem;width:1rem;height:1rem}.ovd__actions{display:flex;align-items:center;gap:.75rem;padding:1rem 1.5rem 1.25rem}.ovd__progress{display:inline-flex;align-items:center;gap:.625rem;min-width:0}.ovd__progress-track{position:relative;width:3.5rem;height:.375rem;border-radius:var(--ovd-radius-pill);background:var(--ovd-outline-12);overflow:hidden}.ovd__progress-fill{position:absolute;inset:0 auto 0 0;height:100%;border-radius:var(--ovd-radius-pill);background:var(--mat-sys-error);transition:width .4s cubic-bezier(.16,1,.3,1),background .4s cubic-bezier(.16,1,.3,1)}.ovd__progress-fill--done{background:var(--mat-sys-primary)}.ovd__progress-label{font-size:.75rem;color:var(--mat-sys-on-surface-variant);white-space:nowrap}.ovd__spacer{flex:1 1 auto}@media(prefers-color-scheme:dark){:host{--ovd-shadow: 0 1px 3px color-mix(in srgb, var(--mat-sys-shadow) 30%, transparent)}}:host-context(.dark){--ovd-shadow: 0 1px 3px color-mix(in srgb, var(--mat-sys-shadow) 30%, transparent)}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { 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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14653
15320
|
}
|
|
14654
15321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: OverrideReasonsDialogComponent, decorators: [{
|
|
14655
15322
|
type: Component,
|
|
@@ -14985,7 +15652,7 @@ class UserFormStepperComponent {
|
|
|
14985
15652
|
this.engine.refreshSection(sectionId).pipe(take(1), takeUntilDestroyed(this.#destroyRef)).subscribe();
|
|
14986
15653
|
}
|
|
14987
15654
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UserFormStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14988
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UserFormStepperComponent, isStandalone: true, selector: "lib-user-form-stepper", inputs: { formId: { classPropertyName: "formId", publicName: "formId", isSignal: true, isRequired: false, transformFunction: null }, initialValues: { classPropertyName: "initialValues", publicName: "initialValues", isSignal: true, isRequired: false, transformFunction: null }, globalSystemInputs: { classPropertyName: "globalSystemInputs", publicName: "globalSystemInputs", isSignal: true, isRequired: false, transformFunction: null }, passParamsOnSubmit: { classPropertyName: "passParamsOnSubmit", publicName: "passParamsOnSubmit", isSignal: true, isRequired: false, transformFunction: null }, showAiSuggestions: { classPropertyName: "showAiSuggestions", publicName: "showAiSuggestions", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown": "onKeyDown($event)" } }, providers: [TFormEngine], viewQueries: [{ propertyName: "stepper", first: true, predicate: ["stepper"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (loading()) {\r\n<div class=\"loading-container\">\r\n <mat-spinner diameter=\"48\" aria-label=\"Loading form\" />\r\n</div>\r\n}\r\n\r\n <mat-toolbar [tourAnchor]=\"'form-title'\" style=\" background: none;\r\n height: 28px;\">\r\n <span class=\"spacer\"></span>\r\n <span style=\"font-size: small;\">\r\n help\r\n </span>\r\n<button \r\n[matTooltip]=\"'Start guided tour for this form'\"\r\n mat-icon-button (click)=\"startTour()\">\r\n <mat-icon>\r\n help\r\n </mat-icon>\r\n</button>\r\n</mat-toolbar>\r\n\r\n@if (showAiSuggestions() && hasPendingSuggestions()) {\r\n<t-suggestion-review\r\n class=\"form-ai-suggestions\"\r\n [suggestions]=\"engine.stagedSuggestions()\"\r\n [schema]=\"engine.editableFormSchema()\"\r\n [previewValue]=\"engine.previewFormValue()\"\r\n (accept)=\"engine.acceptSuggestion($event)\"\r\n (reject)=\"engine.rejectSuggestion($event)\"\r\n (acceptAll)=\"engine.acceptAllSuggestions()\"\r\n (rejectAll)=\"engine.rejectAllSuggestions()\" />\r\n}\r\n\r\n<mat-stepper\r\n\r\n[style.display]=\"loading()?'none':'block'\" #stepper class=\"form-stepper\" orientation=\"vertical\"\r\n [linear]=\"!isEditable\" aria-label=\"Form sections stepper\" [animationDuration]=\"'300'\"\r\n (selectionChange)=\"engine.handleStepChange($event)\">\r\n\r\n @for (step of engine.selectFormSteps(); track step.sectionId) {\r\n @if (!!step.sectionForm ) {\r\n <mat-step [stepControl]=\"step.sectionForm\" [completed]=\"step.sectionIsSeen && !step.sectionIsInvalid\"\r\n\r\n [editable]=\"isEditable\" [errorMessage]=\"step.sectionFormErrorMessage||''\" [state]=\"getStepState(step,$index)\"\r\n [hasError]=\"!step.sectionForm.valid && !!step.sectionForm.touched\">\r\n <ng-template matStepLabel >\r\n <div [tourAnchor]=\"step.sectionId\" class=\"step-label-container\" [attr.aria-label]=\"'Section ' + step.label\">\r\n <span class=\"step-label-text\">{{step.label|titlecase}}</span>\r\n @if (step.sectionIsSeen) {\r\n <mat-icon [class.error]=\"step.sectionIsInvalid\"\r\n [attr.aria-label]=\"step.sectionIsInvalid ? 'Section has errors' : 'Section completed'\">\r\n {{step.sectionIsSeen}}\r\n </mat-icon>\r\n }\r\n @if(engine.canRefreshSection(step.sectionId) && step.isActive){\r\n <button mat-icon-button\r\n style=\"margin-right: 8px;\"\r\n matTooltip=\"Click to refresh this section.\"\r\n class=\"input-sync-button\"\r\n (click)=\"refreshASection(step.sectionId)\" >\r\n <mat-icon style=\"color:var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n \r\n </div>\r\n </ng-template>\r\n @if(!!step.isActive){\r\n @defer (on viewport; prefetch on idle) {\r\n <div [tourAnchor]=\"'content-'+step.sectionId\" class=\"step-content\">\r\n <div class=\"row form-section\">\r\n @for (col of step.columns; track col.id) {\r\n <div [class]=\"'col-md-'+col.colSize + ' box'\">\r\n <lib-t-form-input \r\n [tourAnchor]=\"col.id\" (valueChange)=\"engine.updateValue(col.id,$event)\" [editorMode]=\"false\"\r\n [formBuilderFunctions]=\"formBuilderFunctions\" [inputConfig]=\"col\" [formGroup]=\"step.sectionForm\"\r\n [attr.aria-label]=\"col?.label || ''\">\r\n </lib-t-form-input>\r\n </div>\r\n }\r\n </div>\r\n\r\n <div class=\"step-actions\">\r\n @if(!$first) {\r\n <button\r\n \r\n mat-button matStepperPrevious type=\"button\" class=\"navigation-button\"\r\n [attr.aria-label]=\"'Go back to ' + getPreviousStepLabel()\">\r\n\r\n Back\r\n </button>\r\n }\r\n @if (!$last) {\r\n <button\r\n \r\n mat-flat-button matStepperNext color=\"primary\" type=\"button\" class=\"navigation-button\"\r\n [attr.aria-label]=\"'Continue to ' + getNextStepLabel()\">\r\n Next\r\n </button>\r\n }\r\n @if (!!$last) {\r\n <button mat-button (click)=\"stepper.reset();engine.reset()\">Reset</button>\r\n }\r\n </div>\r\n </div>\r\n } @placeholder {\r\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"24\" />\r\n </div>\r\n }\r\n\r\n }\r\n\r\n </mat-step>\r\n }\r\n }\r\n</mat-stepper>\r\n\r\n<!-- Defer the footer toolbar until after the main form is loaded -->\r\n@defer (on idle; prefetch on viewport) {\r\n<footer>\r\n <mat-toolbar class=\"submission-toolbar\" role=\"toolbar\" aria-label=\"Form submission actions\">\r\n <span class=\"submission-status\" style=\"font-size: 0.625em\" role=\"status\">\r\n {{getSubmissionStatus}}\r\n </span>\r\n\r\n <!-- Override-reason gate: while overridable validations remain, submission is\r\n locked behind a motivation for each. The panel now lives in a dialog so\r\n the footer stays a single, calm action row. -->\r\n @if (overridableErrors.length > 0) {\r\n @if (pendingOverrideCount; as pending) {\r\n <button mat-flat-button color=\"warn\" type=\"button\" class=\"override-reason-button\"\r\n (click)=\"openOverrideDialog()\"\r\n [attr.aria-label]=\"'Provide override ' + (pending === 1 ? 'reason' : 'reasons')\r\n + ', ' + pending + ' still required'\">\r\n <mat-icon>flag</mat-icon>\r\n <span>Provide {{ pending }} {{ pending === 1 ? 'reason' : 'reasons' }}</span>\r\n </button>\r\n } @else {\r\n <button mat-stroked-button type=\"button\" class=\"override-reason-button override-reason-button--done\"\r\n (click)=\"openOverrideDialog()\"\r\n aria-label=\"Review or edit the provided override reasons\">\r\n <mat-icon>check_circle</mat-icon>\r\n <span>Reasons provided</span>\r\n </button>\r\n }\r\n }\r\n\r\n <button [tourAnchor]=\"'form-submit-button'\" \r\n style=\"min-width: fit-content;\"\r\n mat-raised-button color=\"primary\" [disabled]=\"!canSubmit || engine.submittingForm\" (click)=\"handleSubmit()\"\r\n aria-label=\"Submit form\">\r\n <span>\r\n {{ engine.formSubmissionMessage()}}\r\n </span>\r\n @if(engine.submittingForm){\r\n <mat-spinner diameter=\"10\"></mat-spinner>\r\n }\r\n\r\n </button>\r\n </mat-toolbar>\r\n</footer>\r\n} @placeholder {\r\n<!-- Simple placeholder for the footer that maintains layout -->\r\n<footer>\r\n <div class=\"submission-toolbar-placeholder\"></div>\r\n</footer>\r\n}", styles: [".form-stepper{min-height:400px}.form-ai-suggestions{display:block;margin:1.5rem 0 2rem}.step-label-container{display:flex;justify-content:space-between;align-items:center;width:100%;gap:16px}.step-error-message{font-size:.75em;opacity:.9;margin-left:16px}.form-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:8px;margin-bottom:24px}.step-actions{display:flex;gap:16px;margin-top:24px}.navigation-button{display:flex;align-items:center;gap:8px}.loading-container{display:flex;justify-content:center;padding:32px}footer{position:sticky;bottom:0}.submission-toolbar{z-index:1000;background:#ffffff0d;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:var(--mat-divider-width) solid var(--mat-divider-color);padding:8px 16px;display:flex;justify-content:flex-end;gap:16px}.submission-status{font-size:.75em;opacity:.87;display:flex;align-items:center;white-space:normal}.box{padding:8px 5px 5px}.tour-trigger{position:absolute;right:8px;font-size:.75em;opacity:.6}.tour-trigger:hover{opacity:1}.step-label-text{padding-top:8px;padding-bottom:8px;cursor:pointer}.override-reason-button{display:inline-flex;align-items:center;gap:.5rem;min-width:fit-content}.override-reason-button--done{color:var(--mat-sys-primary);border-color:color-mix(in srgb,var(--mat-sys-primary) 40%,transparent)}.override-reason-button--done mat-icon{color:var(--mat-sys-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatStepperModule }, { kind: "component", type: i4$1.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i4$1.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i4$1.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "aria-label", "headerPrefix", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { 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: TSuggestionReviewComponent, selector: "t-suggestion-review", inputs: ["suggestions", "schema", "previewValue"], outputs: ["accept", "reject", "acceptAll", "rejectAll"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7$2.TourAnchorMatMenuDirective, selector: "[tourAnchor]", inputs: ["tourAnchor"] }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i1$2.MatButton, i4$1.MatStepperNext, i4$1.MatStepperPrevious, Promise.resolve().then(function () { return tFormInput_component; }).then(m => m.TFormInputComponent), i1$1.NgControlStatusGroup, i1$1.FormGroupDirective, i7$2.TourAnchorMatMenuDirective], () => [i1$2.MatButton, i3$1.MatIcon, i4.MatProgressSpinner, i8.MatToolbar, i7$2.TourAnchorMatMenuDirective]] }); }
|
|
15655
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UserFormStepperComponent, isStandalone: true, selector: "lib-user-form-stepper", inputs: { formId: { classPropertyName: "formId", publicName: "formId", isSignal: true, isRequired: false, transformFunction: null }, initialValues: { classPropertyName: "initialValues", publicName: "initialValues", isSignal: true, isRequired: false, transformFunction: null }, globalSystemInputs: { classPropertyName: "globalSystemInputs", publicName: "globalSystemInputs", isSignal: true, isRequired: false, transformFunction: null }, passParamsOnSubmit: { classPropertyName: "passParamsOnSubmit", publicName: "passParamsOnSubmit", isSignal: true, isRequired: false, transformFunction: null }, showAiSuggestions: { classPropertyName: "showAiSuggestions", publicName: "showAiSuggestions", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown": "onKeyDown($event)" } }, providers: [TFormEngine], viewQueries: [{ propertyName: "stepper", first: true, predicate: ["stepper"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (loading()) {\r\n<div class=\"loading-container\">\r\n <mat-spinner diameter=\"48\" aria-label=\"Loading form\" />\r\n</div>\r\n}\r\n\r\n <mat-toolbar [tourAnchor]=\"'form-title'\" style=\" background: none;\r\n height: 28px;\">\r\n <span class=\"spacer\"></span>\r\n <span style=\"font-size: small;\">\r\n help\r\n </span>\r\n<button \r\n[matTooltip]=\"'Start guided tour for this form'\"\r\n mat-icon-button (click)=\"startTour()\">\r\n <mat-icon>\r\n help\r\n </mat-icon>\r\n</button>\r\n</mat-toolbar>\r\n\r\n@if (showAiSuggestions() && hasPendingSuggestions()) {\r\n<t-suggestion-review\r\n class=\"form-ai-suggestions\"\r\n [suggestions]=\"engine.stagedSuggestions()\"\r\n [schema]=\"engine.editableFormSchema()\"\r\n [previewValue]=\"engine.previewFormValue()\"\r\n (accept)=\"engine.acceptSuggestion($event)\"\r\n (reject)=\"engine.rejectSuggestion($event)\"\r\n (acceptAll)=\"engine.acceptAllSuggestions()\"\r\n (rejectAll)=\"engine.rejectAllSuggestions()\" />\r\n}\r\n\r\n<mat-stepper\r\n\r\n[style.display]=\"loading()?'none':'block'\" #stepper class=\"form-stepper\" orientation=\"vertical\"\r\n [linear]=\"!isEditable\" aria-label=\"Form sections stepper\" [animationDuration]=\"'300'\"\r\n (selectionChange)=\"engine.handleStepChange($event)\">\r\n\r\n @for (step of engine.selectFormSteps(); track step.sectionId) {\r\n @if (!!step.sectionForm ) {\r\n <mat-step [stepControl]=\"step.sectionForm\" [completed]=\"step.sectionIsSeen && !step.sectionIsInvalid\"\r\n\r\n [editable]=\"isEditable\" [errorMessage]=\"step.sectionFormErrorMessage||''\" [state]=\"getStepState(step,$index)\"\r\n [hasError]=\"!step.sectionForm.valid && !!step.sectionForm.touched\">\r\n <ng-template matStepLabel >\r\n <div [tourAnchor]=\"step.sectionId\" class=\"step-label-container\" [attr.aria-label]=\"'Section ' + step.label\">\r\n <span class=\"step-label-text\">{{step.label|titlecase}}</span>\r\n @if (step.sectionIsSeen) {\r\n <mat-icon [class.error]=\"step.sectionIsInvalid\"\r\n [attr.aria-label]=\"step.sectionIsInvalid ? 'Section has errors' : 'Section completed'\">\r\n {{step.sectionIsSeen}}\r\n </mat-icon>\r\n }\r\n @if(engine.canRefreshSection(step.sectionId) && step.isActive){\r\n <button mat-icon-button\r\n style=\"margin-right: 8px;\"\r\n matTooltip=\"Click to refresh this section.\"\r\n class=\"input-sync-button\"\r\n (click)=\"refreshASection(step.sectionId)\" >\r\n <mat-icon style=\"color:var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n \r\n </div>\r\n </ng-template>\r\n @if(!!step.isActive){\r\n @defer (on viewport; prefetch on idle) {\r\n <div [tourAnchor]=\"'content-'+step.sectionId\" class=\"step-content\">\r\n <div class=\"row form-section\">\r\n @for (col of step.columns; track col.id) {\r\n <div [class]=\"'col-md-'+col.colSize + ' box'\">\r\n <lib-t-form-input \r\n [tourAnchor]=\"col.id\" (valueChange)=\"engine.updateValue(col.id,$event)\" [editorMode]=\"false\"\r\n [formBuilderFunctions]=\"formBuilderFunctions\" [inputConfig]=\"col\" [formGroup]=\"step.sectionForm\"\r\n [attr.aria-label]=\"col?.label || ''\">\r\n </lib-t-form-input>\r\n </div>\r\n }\r\n </div>\r\n\r\n <div class=\"step-actions\">\r\n @if(!$first) {\r\n <button\r\n \r\n mat-button matStepperPrevious type=\"button\" class=\"navigation-button\"\r\n [attr.aria-label]=\"'Go back to ' + getPreviousStepLabel()\">\r\n\r\n Back\r\n </button>\r\n }\r\n @if (!$last) {\r\n <button\r\n \r\n mat-flat-button matStepperNext color=\"primary\" type=\"button\" class=\"navigation-button\"\r\n [attr.aria-label]=\"'Continue to ' + getNextStepLabel()\">\r\n Next\r\n </button>\r\n }\r\n @if (!!$last) {\r\n <button mat-button (click)=\"stepper.reset();engine.reset()\">Reset</button>\r\n }\r\n </div>\r\n </div>\r\n } @placeholder {\r\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\r\n <mat-spinner diameter=\"24\" />\r\n </div>\r\n }\r\n\r\n }\r\n\r\n </mat-step>\r\n }\r\n }\r\n</mat-stepper>\r\n\r\n<!-- Defer the footer toolbar until after the main form is loaded -->\r\n@defer (on idle; prefetch on viewport) {\r\n<footer>\r\n <mat-toolbar class=\"submission-toolbar\" role=\"toolbar\" aria-label=\"Form submission actions\">\r\n <span class=\"submission-status\" style=\"font-size: 0.625em\" role=\"status\">\r\n {{getSubmissionStatus}}\r\n </span>\r\n\r\n <!-- Override-reason gate: while overridable validations remain, submission is\r\n locked behind a motivation for each. The panel now lives in a dialog so\r\n the footer stays a single, calm action row. -->\r\n @if (overridableErrors.length > 0) {\r\n @if (pendingOverrideCount; as pending) {\r\n <button mat-flat-button color=\"warn\" type=\"button\" class=\"override-reason-button\"\r\n (click)=\"openOverrideDialog()\"\r\n [attr.aria-label]=\"'Provide override ' + (pending === 1 ? 'reason' : 'reasons')\r\n + ', ' + pending + ' still required'\">\r\n <mat-icon>flag</mat-icon>\r\n <span>Provide {{ pending }} {{ pending === 1 ? 'reason' : 'reasons' }}</span>\r\n </button>\r\n } @else {\r\n <button mat-stroked-button type=\"button\" class=\"override-reason-button override-reason-button--done\"\r\n (click)=\"openOverrideDialog()\"\r\n aria-label=\"Review or edit the provided override reasons\">\r\n <mat-icon>check_circle</mat-icon>\r\n <span>Reasons provided</span>\r\n </button>\r\n }\r\n }\r\n\r\n <button [tourAnchor]=\"'form-submit-button'\" \r\n style=\"min-width: fit-content;\"\r\n mat-raised-button color=\"primary\" [disabled]=\"!canSubmit || engine.submittingForm\" (click)=\"handleSubmit()\"\r\n aria-label=\"Submit form\">\r\n <span>\r\n {{ engine.formSubmissionMessage()}}\r\n </span>\r\n @if(engine.submittingForm){\r\n <mat-spinner diameter=\"10\"></mat-spinner>\r\n }\r\n\r\n </button>\r\n </mat-toolbar>\r\n</footer>\r\n} @placeholder {\r\n<!-- Simple placeholder for the footer that maintains layout -->\r\n<footer>\r\n <div class=\"submission-toolbar-placeholder\"></div>\r\n</footer>\r\n}", styles: [".form-stepper{min-height:400px}.form-ai-suggestions{display:block;margin:1.5rem 0 2rem}.step-label-container{display:flex;justify-content:space-between;align-items:center;width:100%;gap:16px}.step-error-message{font-size:.75em;opacity:.9;margin-left:16px}.form-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:8px;margin-bottom:24px}.step-actions{display:flex;gap:16px;margin-top:24px}.navigation-button{display:flex;align-items:center;gap:8px}.loading-container{display:flex;justify-content:center;padding:32px}footer{position:sticky;bottom:0}.submission-toolbar{z-index:1000;background:#ffffff0d;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:var(--mat-divider-width) solid var(--mat-divider-color);padding:8px 16px;display:flex;justify-content:flex-end;gap:16px}.submission-status{font-size:.75em;opacity:.87;display:flex;align-items:center;white-space:normal}.box{padding:8px 5px 5px}.tour-trigger{position:absolute;right:8px;font-size:.75em;opacity:.6}.tour-trigger:hover{opacity:1}.step-label-text{padding-top:8px;padding-bottom:8px;cursor:pointer}.override-reason-button{display:inline-flex;align-items:center;gap:.5rem;min-width:fit-content}.override-reason-button--done{color:var(--mat-sys-primary);border-color:color-mix(in srgb,var(--mat-sys-primary) 40%,transparent)}.override-reason-button--done mat-icon{color:var(--mat-sys-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatStepperModule }, { kind: "component", type: i4$1.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i4$1.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i4$1.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "aria-label", "headerPrefix", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { 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: TSuggestionReviewComponent, selector: "t-suggestion-review", inputs: ["suggestions", "schema", "previewValue"], outputs: ["accept", "reject", "acceptAll", "rejectAll"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7$2.TourAnchorMatMenuDirective, selector: "[tourAnchor]", inputs: ["tourAnchor"] }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i2.MatButton, i4$1.MatStepperNext, i4$1.MatStepperPrevious, Promise.resolve().then(function () { return tFormInput_component; }).then(m => m.TFormInputComponent), i1$1.NgControlStatusGroup, i1$1.FormGroupDirective, i7$2.TourAnchorMatMenuDirective], () => [i2.MatButton, i3$1.MatIcon, i4.MatProgressSpinner, i8.MatToolbar, i7$2.TourAnchorMatMenuDirective]] }); }
|
|
14989
15656
|
}
|
|
14990
15657
|
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: UserFormStepperComponent, resolveDeferredDeps: () => [Promise.resolve().then(function () { return tFormInput_component; }).then(m => m.TFormInputComponent)], resolveMetadata: TFormInputComponent => ({ decorators: [{
|
|
14991
15658
|
type: Component,
|
|
@@ -15384,9 +16051,9 @@ class TDynamicDataEditComponent {
|
|
|
15384
16051
|
}
|
|
15385
16052
|
}
|
|
15386
16053
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TDynamicDataEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15387
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TDynamicDataEditComponent, isStandalone: true, selector: "lib-t-dynamic-data-edit", inputs: { editorConfig: { classPropertyName: "editorConfig", publicName: "editorConfig", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, validationErrors: { classPropertyName: "validationErrors", publicName: "validationErrors", isSignal: true, isRequired: false, transformFunction: null }, mscoaSaveCustomInput: { classPropertyName: "mscoaSaveCustomInput", publicName: "mscoaSaveCustomInput", isSignal: true, isRequired: false, transformFunction: null }, mscoaEditInput: { classPropertyName: "mscoaEditInput", publicName: "mscoaEditInput", isSignal: true, isRequired: false, transformFunction: null }, mscoaDeleteInput: { classPropertyName: "mscoaDeleteInput", publicName: "mscoaDeleteInput", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", blur: "blur" }, providers: [{ provide: NESTED_EDITOR_COMPONENT, useValue: TDynamicDataEditComponent }], ngImport: i0, template: "@defer {\n@if (( vm$ |async); as vm) {\n\n @if (vm.isFormFieldControl) {\n <!-- Editor types that resolve to a MatFormFieldControl render inside the field. -->\n <mat-form-field appearance=\"outline\" [color]=\"((validationErrors())||[]).length>0 ? 'warn' : 'primary'\"\n [floatLabel]=\"'always'\" [subscriptSizing]=\"'dynamic'\" [hintLabel]=\"vm.editorConfigValue?.hint||''\">\n <mat-label> {{ (vm. editorConfigValue)?.label }} </mat-label>\n @switch ((vm. editorConfigValue)?.editType) {\n @default {\n <lib-input-custom\n [id]=\"((vm.editorConfigValue)?.id)\"\n [inputConfig]=\"$any(vm.inputConfig)\"\n [placeholder]=\"(vm. editorConfigValue)?.placeholder ||'Enter value'\"\n [required]=\"!!(vm. editorConfigValue)?.required\"\n [disabled]=\"!!(vm.disabled)\"\n [ngModel]=\"(vm.value)\"\n (blur)=\"elementBlur($event)\"\n (input)=\"inputChange($event)\" ></lib-input-custom>\n\n\n }\n @case ( elementEditorTypes.Toggle) {\n <lib-mat-slider-toggle-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [name]=\"((vm. editorConfigValue)?.name||'') \"\n [label]=\"((vm. editorConfigValue)?.label||'')\" [disabled]=\"(vm.disabled)||false\"\n (valueChange)=\"valueChanged(!!$event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n </lib-mat-slider-toggle-editor>\n\n }\n\n @case (elementEditorTypes.Range) {\n\n\n <lib-mat-slider-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [format]=\"( vm.editorConfigValue)?.format \" [formatLabel]=\" formatLabel\"\n [disabled]=\"(vm.disabled)||false\" [max]=\"( vm.editorConfigValue)?.max || 100\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [min]=\"( vm.editorConfigValue)?.min || 0\"\n (valueChange)=\"inputChange($event)\" [step]=\"( vm.editorConfigValue)?.step || 1\">\n\n\n </lib-mat-slider-editor>\n\n\n\n }\n\n @case (elementEditorTypes.OptionSelect) {\n\n <mat-select\n\n [value]=\"$any(vm.value)\" (selectionChange)=\"valueChanged($event.value)\"\n [disabled]=\"(vm.disabled)||false\">\n @for(option of ( vm.editorConfigValue)?.options || vm.dataOptions;track option.value){\n <mat-option [value]=\"option.value\">{{option.label}}</mat-option>\n }\n </mat-select>\n\n }\n\n @case (elementEditorTypes.RichTextEditor) {\n <lib-editor-js-input\n\n [id]=\"((vm.editorConfigValue)?.id)\"\n [value]=\"$any(vm.value)\" (valueChanged)=\"valueChanged($event)\"\n [disabled]=\"(vm.disabled)||false\" [inputConfig]=\"$any(data())\">\n </lib-editor-js-input>\n }\n\n @case (elementEditorTypes.MongoPipelineBuilder) {\n\n <lib-pipeline-generator [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\"></lib-pipeline-generator>\n\n }\n @case (elementEditorTypes.MapMatOptionsKeys) {\n <lib-map-mat-options-keys [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() || []\"\n [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-map-mat-options-keys>\n\n }\n\n @case(elementEditorTypes.CalculatedFieldRules){\n\n <lib-calculated-field-rules [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\"\n [mapToData]=\"vm.dataOptions\"></lib-calculated-field-rules>\n }\n\n @case(elementEditorTypes.Validators){\n\n <lib-validators-config [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\"\n [mapToData]=\"vm.dataOptions\">\n </lib-validators-config>\n\n }\n @case(elementEditorTypes.ConfigMscoaAdditionalInputs){\n\n <lib-config-mscoa-additional-inputs [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-config-mscoa-additional-inputs>\n\n }\n @case (elementEditorTypes.DataSourcePicker) {\n <lib-data-source-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\">\n </lib-data-source-picker>\n }\n @case (elementEditorTypes.ListLabelConfigEditor) {\n <lib-document-list-label-config-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [formInputs]=\"formInputs() ||[]\"\n [disabled]=\"(vm.disabled)||false\"\n [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\">\n\n </lib-document-list-label-config-editor>\n }\n @case(\n elementEditorTypes.WorkflowPicker\n ){\n <lib-t-workflow-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-t-workflow-picker>\n }\n @case (\n elementEditorTypes.RecordListManager\n ) {\n <lib-record-list-manager\n [id]=\"((vm.editorConfigValue)?.id)\"\n [editorConfig]=\"vm.editorConfigValue\" [disabled]=\"(vm.disabled)||false\"\n [formInputs]=\"formInputs() ||[]\" [mapToData]=\"vm.dataOptions\" (valueChange)=\"valueChanged($event)\"\n\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-record-list-manager>\n }\n }\n\n @if (vm.inputHasBlurFunction) {\n <button [matTooltip]=\"blurFunctionTooltip((vm.editorConfigValue)?.blurHandle)\"\n [disabled]=\"(vm.disabled)\" [color]=\"blurOff?'':'primary'\" (click)=\"blurOff=!blurOff\" matSuffix\n mat-icon-button>\n <mat-icon>{{\n blurOff?'blur_off':'blur_on'\n }}\n\n\n </mat-icon>\n </button>\n }\n </mat-form-field>\n } @else {\n <!-- Editor types backed by plain (signal-based) components render outside\n the field, since they are not MatFormFieldControls. They are wrapped to\n mirror the outline mat-form-field appearance: the fieldset draws the\n outline, its legend is the notched floating label, and the hint renders\n as a subscript below the box. -->\n <div class=\"non-control-editor\">\n <fieldset class=\"non-control-editor__field\">\n @if ((vm. editorConfigValue)?.label) {\n <legend class=\"non-control-editor__label\">{{ (vm. editorConfigValue)?.label }}</legend>\n }\n @switch ((vm. editorConfigValue)?.editType) {\n\n @case (elementEditorTypes.ChipSelect) {\n\n <lib-mat-chip-list-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [multiple]=\"!!vm.editorConfigValue?.multipleSelection\"\n [disabled]=\"(vm.disabled)||false\"\n [options]=\"(vm.editorConfigValue)?.options || vm.dataOptions\"\n [required]=\"!!( vm.editorConfigValue)?.required\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n (valueChange)=\" valueChanged($event)\"></lib-mat-chip-list-editor>\n\n\n }\n\n @case (elementEditorTypes.SelectionOptions) {\n\n <lib-selection-options-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [errors]=\"(validationErrors())||[]\" [disabled]=\"(vm.disabled)||false\"\n [options]=\"$any(vm.value) || []\" (valueChanged)=\"valueChanged($event)\"></lib-selection-options-editor>\n }\n\n @case (\n elementEditorTypes.ApiCall) {\n\n <lib-rest-api-call-setup\n [id]=\"((vm.editorConfigValue)?.id)\"\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\"\n [httpGetDataFunction]=\"(vm.editorConfigValue)?.httpGetDataFunction\" [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n\n </lib-rest-api-call-setup>\n\n }\n\n @case (elementEditorTypes.ApiValueAccessRules) {\n\n\n\n <lib-api-value-access-rules [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n [formInputs]=\"formInputs() ||[]\"\n\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-api-value-access-rules>\n\n }\n\n @case (elementEditorTypes.FormInputSelector)\n {\n\n <lib-form-input-selector [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [formInputs]=\"formInputs() ||[]\"\n [errors]=\"(validationErrors())||[]\" [value]=\"$any(vm.value) || []\" (change)=\"valueChanged($event)\">\n </lib-form-input-selector>\n }\n\n @case (\n elementEditorTypes.RequiredInputs\n ){\n\n <lib-required-inputs [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n </lib-required-inputs>\n }\n\n @case(elementEditorTypes.ConfigMscoaSegments){\n\n <lib-mscoa-segment-config [disabled]=\"(vm.disabled)||false\" [id]=\"((vm.editorConfigValue)?.id)\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [dataValue]=\"$any(vm.dataValue)\"\n [isCashSegmentConfig]=\"vm.editorConfigValue?.deepBind?.at(-1) === 'cashSegments'\"\n [saveCustomInput]=\"mscoaSaveCustomInput()\"\n [editSegmentInput]=\"mscoaEditInput()\"\n [deleteSegmentInput]=\"mscoaDeleteInput()\"\n [showAllSegments]=\"vm.dataOptions\" (valueChanged)=\"valueChanged($event)\"></lib-mscoa-segment-config>\n }\n @case (elementEditorTypes.ChipOptionsCreator) {\n <lib-chip-options-creator-editor [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n\n </lib-chip-options-creator-editor>\n\n }\n @case (elementEditorTypes.FormPayloadProjection) {\n <lib-form-payload-projection [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-form-payload-projection>\n\n }\n\n @case (elementEditorTypes.PayloadTemplate) {\n <lib-payload-template-editor [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [defaultTemplate]=\"$any((vm.editorConfigValue)?.defaultValue)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n [id]=\"((vm.editorConfigValue)?.id)\" (valueChanged)=\"valueChanged($event)\">\n </lib-payload-template-editor>\n\n }\n }\n </fieldset>\n\n @if ((vm. editorConfigValue)?.hint) {\n <small class=\"non-control-editor__hint\">{{ (vm. editorConfigValue)?.hint }}</small>\n }\n </div>\n }\n\n @if (!(vm.value) && (vm. editorConfigValue)?.required ) {\n <mat-error>\n {{ (vm. editorConfigValue)?.label }}'s is required\n </mat-error>}\n\n @for (error of (validationErrors())||[]; track $index) {\n <mat-error style=\" font-size: 0.75em;\n margin-left: 14px;\n \">\n\n {{error.message}}</mat-error>\n }\n\n}\n\n}@error {\n<mat-card>\n <mat-card-content>\n\n <span>\n Failed to load form inputs\n </span>\n </mat-card-content>\n</mat-card>\n}\n\n\n\n<!-- -\n `TableConfigSetup`\n- `ConditionalInputConfig`\n- `MatrixTable`-->\n", styles: [".showItemValue{opacity:.6}.non-control-editor{display:flex;flex-direction:column;width:100%}.non-control-editor__field{margin:0;min-width:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--mdc-outlined-text-field-container-shape, 4px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),box-shadow var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.non-control-editor__field:focus-within{border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.non-control-editor__label{padding:0 .25rem;margin-left:.5rem;font-size:.75rem;font-weight:400;line-height:1;color:var(--lib-forms-on-surface-variant)}.non-control-editor__hint{margin-top:.5rem;padding:0 .875rem;font-size:.75rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}mat-form-field{width:100%}mat-slider{width:100%}.range{display:flex;align-items:center}.elementInfo{display:flex;align-items:center;justify-content:center;padding:0;height:24px;width:24px}.infoIcon{font-size:1em;height:16px;width:16px}.toggle-label{margin-left:5px;align-items:center;display:flex;font-weight:500;line-height:normal;justify-content:space-between;color:var(--lib-forms-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$2.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [import('./ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs').then(m => m.SelectionOptionsEditorComponent), import('./ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs').then(m => m.FormInputSelectorComponent), import('./ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs').then(m => m.RestApiCallSetupComponent), Promise.resolve().then(function () { return apiValueAccessRules_component; }).then(m => m.ApiValueAccessRulesComponent), import('./ngx-t-forms-required-inputs.component-C-E3fQu6.mjs').then(m => m.RequiredInputsComponent), import('./ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs').then(m => m.PipelineGeneratorComponent), import('./ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs').then(m => m.CalculatedFieldRulesComponent), import('./ngx-t-forms-validators-config.component-B3K9nLxx.mjs').then(m => m.ValidatorsConfigComponent), import('./ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs').then(m => m.ConfigMscoaAdditionalInputsComponent), import('./ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs').then(m => m.MatSliderEditorComponent), import('./ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs').then(m => m.MscoaSegmentConfigComponent), import('./ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs').then(m => m.MatSliderToggleEditorComponent), import('./ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs').then(m => m.MatChipListEditorComponent), i2.MatFormField, i2.MatLabel, i2.MatError, i2.MatSuffix, i8$1.MatSelect, i8$1.MatOption, i1$2.MatIconButton, i3$1.MatIcon, i5.MatTooltip, import('./ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs').then(m => m.ChipOptionsCreatorEditorComponent), import('./ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs').then(m => m.DataSourcePickerComponent), import('./ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs').then(m => m.DocumentListLabelConfigEditorComponent), import('./ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs').then(m => m.TWorkflowPickerComponent), import('./ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs').then(m => m.EditorJsInputComponent), import('./ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs').then(m => m.RecordListManagerComponent), import('./ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs').then(m => m.FormPayloadProjectionComponent), import('./ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs').then(m => m.PayloadTemplateEditorComponent), import('./ngx-t-forms-input-custom.component-uNVdF9aA.mjs').then(m => m.InputCustomComponent), i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel, import('./ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs').then(m => m.MapMatOptionsKeys), import('@angular/common').then(m => m.AsyncPipe)]] }); }
|
|
16054
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TDynamicDataEditComponent, isStandalone: true, selector: "lib-t-dynamic-data-edit", inputs: { editorConfig: { classPropertyName: "editorConfig", publicName: "editorConfig", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, validationErrors: { classPropertyName: "validationErrors", publicName: "validationErrors", isSignal: true, isRequired: false, transformFunction: null }, mscoaSaveCustomInput: { classPropertyName: "mscoaSaveCustomInput", publicName: "mscoaSaveCustomInput", isSignal: true, isRequired: false, transformFunction: null }, mscoaEditInput: { classPropertyName: "mscoaEditInput", publicName: "mscoaEditInput", isSignal: true, isRequired: false, transformFunction: null }, mscoaDeleteInput: { classPropertyName: "mscoaDeleteInput", publicName: "mscoaDeleteInput", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", blur: "blur" }, providers: [{ provide: NESTED_EDITOR_COMPONENT, useValue: TDynamicDataEditComponent }], ngImport: i0, template: "@defer {\n@if (( vm$ |async); as vm) {\n\n @if (vm.isFormFieldControl) {\n <!-- Editor types that resolve to a MatFormFieldControl render inside the field. -->\n <mat-form-field appearance=\"outline\" [color]=\"((validationErrors())||[]).length>0 ? 'warn' : 'primary'\"\n [floatLabel]=\"'always'\" [subscriptSizing]=\"'dynamic'\" [hintLabel]=\"vm.editorConfigValue?.hint||''\">\n <mat-label> {{ (vm. editorConfigValue)?.label }} </mat-label>\n @switch ((vm. editorConfigValue)?.editType) {\n @default {\n <lib-input-custom\n [id]=\"((vm.editorConfigValue)?.id)\"\n [inputConfig]=\"$any(vm.inputConfig)\"\n [placeholder]=\"(vm. editorConfigValue)?.placeholder ||'Enter value'\"\n [required]=\"!!(vm. editorConfigValue)?.required\"\n [disabled]=\"!!(vm.disabled)\"\n [ngModel]=\"(vm.value)\"\n (blur)=\"elementBlur($event)\"\n (input)=\"inputChange($event)\" ></lib-input-custom>\n\n\n }\n @case ( elementEditorTypes.Toggle) {\n <lib-mat-slider-toggle-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [name]=\"((vm. editorConfigValue)?.name||'') \"\n [label]=\"((vm. editorConfigValue)?.label||'')\" [disabled]=\"(vm.disabled)||false\"\n (valueChange)=\"valueChanged(!!$event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n </lib-mat-slider-toggle-editor>\n\n }\n\n @case (elementEditorTypes.Range) {\n\n\n <lib-mat-slider-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [format]=\"( vm.editorConfigValue)?.format \" [formatLabel]=\" formatLabel\"\n [disabled]=\"(vm.disabled)||false\" [max]=\"( vm.editorConfigValue)?.max || 100\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [min]=\"( vm.editorConfigValue)?.min || 0\"\n (valueChange)=\"inputChange($event)\" [step]=\"( vm.editorConfigValue)?.step || 1\">\n\n\n </lib-mat-slider-editor>\n\n\n\n }\n\n @case (elementEditorTypes.OptionSelect) {\n\n <mat-select\n\n [value]=\"$any(vm.value)\" (selectionChange)=\"valueChanged($event.value)\"\n [disabled]=\"(vm.disabled)||false\">\n @for(option of ( vm.editorConfigValue)?.options || vm.dataOptions;track option.value){\n <mat-option [value]=\"option.value\">{{option.label}}</mat-option>\n }\n </mat-select>\n\n }\n\n @case (elementEditorTypes.RichTextEditor) {\n <lib-editor-js-input\n\n [id]=\"((vm.editorConfigValue)?.id)\"\n [value]=\"$any(vm.value)\" (valueChanged)=\"valueChanged($event)\"\n [disabled]=\"(vm.disabled)||false\" [inputConfig]=\"$any(data())\">\n </lib-editor-js-input>\n }\n\n @case (elementEditorTypes.MongoPipelineBuilder) {\n\n <lib-pipeline-generator [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\"></lib-pipeline-generator>\n\n }\n @case (elementEditorTypes.MapMatOptionsKeys) {\n <lib-map-mat-options-keys [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() || []\"\n [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-map-mat-options-keys>\n\n }\n\n @case(elementEditorTypes.CalculatedFieldRules){\n\n <lib-calculated-field-rules [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\"\n [mapToData]=\"vm.dataOptions\"></lib-calculated-field-rules>\n }\n\n @case(elementEditorTypes.Validators){\n\n <lib-validators-config [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\"\n [mapToData]=\"vm.dataOptions\">\n </lib-validators-config>\n\n }\n @case(elementEditorTypes.ConfigMscoaAdditionalInputs){\n\n <lib-config-mscoa-additional-inputs [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-config-mscoa-additional-inputs>\n\n }\n @case (elementEditorTypes.DataSourcePicker) {\n <lib-data-source-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\" [formInputs]=\"formInputs() ||[]\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\">\n </lib-data-source-picker>\n }\n @case (elementEditorTypes.ListLabelConfigEditor) {\n <lib-document-list-label-config-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [formInputs]=\"formInputs() ||[]\"\n [disabled]=\"(vm.disabled)||false\"\n [editorConfig]=\"vm. editorConfigValue\"\n (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [mapToData]=\"vm.dataOptions\"\n [errors]=\"(validationErrors())||[]\">\n\n </lib-document-list-label-config-editor>\n }\n @case(\n elementEditorTypes.WorkflowPicker\n ){\n <lib-t-workflow-picker [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [getWorkflowOptions]=\"getWorkflowOptions$\"\n (valueChanged)=\"valueChanged($event)\" [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-t-workflow-picker>\n }\n @case (\n elementEditorTypes.RecordListManager\n ) {\n <lib-record-list-manager\n [id]=\"((vm.editorConfigValue)?.id)\"\n [editorConfig]=\"vm.editorConfigValue\" [disabled]=\"(vm.disabled)||false\"\n [formInputs]=\"formInputs() ||[]\" [mapToData]=\"vm.dataOptions\" (valueChange)=\"valueChanged($event)\"\n\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\"></lib-record-list-manager>\n }\n }\n\n @if (vm.inputHasBlurFunction) {\n <button [matTooltip]=\"blurFunctionTooltip((vm.editorConfigValue)?.blurHandle)\"\n [disabled]=\"(vm.disabled)\" [color]=\"blurOff?'':'primary'\" (click)=\"blurOff=!blurOff\" matSuffix\n mat-icon-button>\n <mat-icon>{{\n blurOff?'blur_off':'blur_on'\n }}\n\n\n </mat-icon>\n </button>\n }\n </mat-form-field>\n } @else {\n <!-- Editor types backed by plain (signal-based) components render outside\n the field, since they are not MatFormFieldControls. They are wrapped to\n mirror the outline mat-form-field appearance: the fieldset draws the\n outline, its legend is the notched floating label, and the hint renders\n as a subscript below the box. -->\n <div class=\"non-control-editor\">\n <fieldset class=\"non-control-editor__field\">\n @if ((vm. editorConfigValue)?.label) {\n <legend class=\"non-control-editor__label\">{{ (vm. editorConfigValue)?.label }}</legend>\n }\n @switch ((vm. editorConfigValue)?.editType) {\n\n @case (elementEditorTypes.ChipSelect) {\n\n <lib-mat-chip-list-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [multiple]=\"!!vm.editorConfigValue?.multipleSelection\"\n [disabled]=\"(vm.disabled)||false\"\n [options]=\"(vm.editorConfigValue)?.options || vm.dataOptions\"\n [required]=\"!!( vm.editorConfigValue)?.required\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n (valueChange)=\" valueChanged($event)\"></lib-mat-chip-list-editor>\n\n\n }\n\n @case (elementEditorTypes.SelectionOptions) {\n\n <lib-selection-options-editor\n [id]=\"((vm.editorConfigValue)?.id)\"\n [errors]=\"(validationErrors())||[]\" [disabled]=\"(vm.disabled)||false\"\n [options]=\"$any(vm.value) || []\" (valueChanged)=\"valueChanged($event)\"></lib-selection-options-editor>\n }\n\n @case (\n elementEditorTypes.ApiCall) {\n\n <lib-rest-api-call-setup\n [id]=\"((vm.editorConfigValue)?.id)\"\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\"\n [httpGetDataFunction]=\"(vm.editorConfigValue)?.httpGetDataFunction\" [disabled]=\"(vm.disabled)||false\"\n [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n\n </lib-rest-api-call-setup>\n\n }\n\n @case (elementEditorTypes.ApiValueAccessRules) {\n\n\n\n <lib-api-value-access-rules [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\"\n [formInputs]=\"formInputs() ||[]\"\n\n [postmanCollectionConfig]=\"(vm.editorConfigValue)?.postmanCollectionConfig\" [mapToData]=\"vm.dataOptions\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-api-value-access-rules>\n\n }\n\n @case (elementEditorTypes.FormInputSelector)\n {\n\n <lib-form-input-selector [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" [formInputs]=\"formInputs() ||[]\"\n [errors]=\"(validationErrors())||[]\" [value]=\"$any(vm.value) || []\" (change)=\"valueChanged($event)\">\n </lib-form-input-selector>\n }\n\n @case (\n elementEditorTypes.RequiredInputs\n ){\n\n <lib-required-inputs [formInputs]=\"formInputs() ||[]\" [disabled]=\"(vm.disabled)||false\"\n [id]=\"((vm.editorConfigValue)?.label||'')+((vm.editorConfigValue)?.editType||'')\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" (valueChanged)=\"valueChanged($event)\">\n </lib-required-inputs>\n }\n\n @case(elementEditorTypes.ConfigMscoaSegments){\n\n <lib-mscoa-segment-config [disabled]=\"(vm.disabled)||false\" [id]=\"((vm.editorConfigValue)?.id)\" [value]=\"$any(vm.value)\"\n [errors]=\"(validationErrors())||[]\" [getMscoaTree]=\"getMscoaTree$\" [dataValue]=\"$any(vm.dataValue)\"\n [isCashSegmentConfig]=\"vm.editorConfigValue?.deepBind?.at(-1) === 'cashSegments'\"\n [saveCustomInput]=\"mscoaSaveCustomInput()\"\n [editSegmentInput]=\"mscoaEditInput()\"\n [deleteSegmentInput]=\"mscoaDeleteInput()\"\n [showAllSegments]=\"vm.dataOptions\" (valueChanged)=\"valueChanged($event)\"></lib-mscoa-segment-config>\n }\n @case (elementEditorTypes.ChipOptionsCreator) {\n <lib-chip-options-creator-editor [id]=\"((vm.editorConfigValue)?.id)\" [disabled]=\"(vm.disabled)||false\" (valueChange)=\"valueChanged($event)\"\n [value]=\"$any(vm.value)\" [errors]=\"(validationErrors())||[]\">\n\n </lib-chip-options-creator-editor>\n\n }\n @case (elementEditorTypes.FormPayloadProjection) {\n <lib-form-payload-projection [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n (valueChanged)=\"valueChanged($event)\">\n </lib-form-payload-projection>\n\n }\n\n @case (elementEditorTypes.PayloadTemplate) {\n <lib-payload-template-editor [disabled]=\"(vm.disabled)||false\" [value]=\"$any(vm.value)\"\n [defaultTemplate]=\"$any((vm.editorConfigValue)?.defaultValue)\"\n [formInputs]=\"formInputs() ||[]\" [errors]=\"(validationErrors())||[]\"\n [id]=\"((vm.editorConfigValue)?.id)\" (valueChanged)=\"valueChanged($event)\">\n </lib-payload-template-editor>\n\n }\n }\n </fieldset>\n\n @if ((vm. editorConfigValue)?.hint) {\n <small class=\"non-control-editor__hint\">{{ (vm. editorConfigValue)?.hint }}</small>\n }\n </div>\n }\n\n @if (!(vm.value) && (vm. editorConfigValue)?.required ) {\n <mat-error>\n {{ (vm. editorConfigValue)?.label }}'s is required\n </mat-error>}\n\n @for (error of (validationErrors())||[]; track $index) {\n <mat-error style=\" font-size: 0.75em;\n margin-left: 14px;\n \">\n\n {{error.message}}</mat-error>\n }\n\n}\n\n}@error {\n<mat-card>\n <mat-card-content>\n\n <span>\n Failed to load form inputs\n </span>\n </mat-card-content>\n</mat-card>\n}\n\n\n\n<!-- -\n `TableConfigSetup`\n- `ConditionalInputConfig`\n- `MatrixTable`-->\n", styles: [".showItemValue{opacity:.6}.non-control-editor{display:flex;flex-direction:column;width:100%}.non-control-editor__field{margin:0;min-width:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--mdc-outlined-text-field-container-shape, 4px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),box-shadow var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.non-control-editor__field:focus-within{border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.non-control-editor__label{padding:0 .25rem;margin-left:.5rem;font-size:.75rem;font-weight:400;line-height:1;color:var(--lib-forms-on-surface-variant)}.non-control-editor__hint{margin-top:.5rem;padding:0 .875rem;font-size:.75rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}mat-form-field{width:100%}mat-slider{width:100%}.range{display:flex;align-items:center}.elementInfo{display:flex;align-items:center;justify-content:center;padding:0;height:24px;width:24px}.infoIcon{font-size:1em;height:16px;width:16px}.toggle-label{margin-left:5px;align-items:center;display:flex;font-weight:500;line-height:normal;justify-content:space-between;color:var(--lib-forms-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$2.MatCardContent, selector: "mat-card-content" }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [import('./ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs').then(m => m.SelectionOptionsEditorComponent), import('./ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs').then(m => m.FormInputSelectorComponent), import('./ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs').then(m => m.RestApiCallSetupComponent), Promise.resolve().then(function () { return apiValueAccessRules_component; }).then(m => m.ApiValueAccessRulesComponent), import('./ngx-t-forms-required-inputs.component-BMmNxeE-.mjs').then(m => m.RequiredInputsComponent), import('./ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs').then(m => m.PipelineGeneratorComponent), import('./ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs').then(m => m.CalculatedFieldRulesComponent), import('./ngx-t-forms-validators-config.component-CoGSFor3.mjs').then(m => m.ValidatorsConfigComponent), import('./ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs').then(m => m.ConfigMscoaAdditionalInputsComponent), import('./ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs').then(m => m.MatSliderEditorComponent), import('./ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs').then(m => m.MscoaSegmentConfigComponent), import('./ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs').then(m => m.MatSliderToggleEditorComponent), import('./ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs').then(m => m.MatChipListEditorComponent), i2$1.MatFormField, i2$1.MatLabel, i2$1.MatError, i2$1.MatSuffix, i8$1.MatSelect, i8$1.MatOption, i2.MatIconButton, i3$1.MatIcon, i5.MatTooltip, import('./ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs').then(m => m.ChipOptionsCreatorEditorComponent), import('./ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs').then(m => m.DataSourcePickerComponent), import('./ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs').then(m => m.DocumentListLabelConfigEditorComponent), import('./ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs').then(m => m.TWorkflowPickerComponent), import('./ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs').then(function (n) { return n.e; }).then(m => m.EditorJsInputComponent), import('./ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs').then(m => m.RecordListManagerComponent), import('./ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs').then(m => m.FormPayloadProjectionComponent), import('./ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs').then(m => m.PayloadTemplateEditorComponent), import('./ngx-t-forms-input-custom.component-Dcoze7U3.mjs').then(m => m.InputCustomComponent), i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel, import('./ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs').then(m => m.MapMatOptionsKeys), import('@angular/common').then(m => m.AsyncPipe)]] }); }
|
|
15388
16055
|
}
|
|
15389
|
-
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: TDynamicDataEditComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-selection-options-editor.component-
|
|
16056
|
+
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: TDynamicDataEditComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs').then(m => m.SelectionOptionsEditorComponent), import('./ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs').then(m => m.FormInputSelectorComponent), import('./ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs').then(m => m.RestApiCallSetupComponent), Promise.resolve().then(function () { return apiValueAccessRules_component; }).then(m => m.ApiValueAccessRulesComponent), import('./ngx-t-forms-required-inputs.component-BMmNxeE-.mjs').then(m => m.RequiredInputsComponent), import('./ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs').then(m => m.PipelineGeneratorComponent), import('./ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs').then(m => m.CalculatedFieldRulesComponent), import('./ngx-t-forms-validators-config.component-CoGSFor3.mjs').then(m => m.ValidatorsConfigComponent), import('./ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs').then(m => m.ConfigMscoaAdditionalInputsComponent), import('./ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs').then(m => m.MatSliderEditorComponent), import('./ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs').then(m => m.MscoaSegmentConfigComponent), import('./ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs').then(m => m.MatSliderToggleEditorComponent), import('./ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs').then(m => m.MatChipListEditorComponent), import('./ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs').then(m => m.ChipOptionsCreatorEditorComponent), import('./ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs').then(m => m.DataSourcePickerComponent), import('./ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs').then(m => m.DocumentListLabelConfigEditorComponent), import('./ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs').then(m => m.TWorkflowPickerComponent), import('./ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs').then(function (n) { return n.e; }).then(m => m.EditorJsInputComponent), import('./ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs').then(m => m.RecordListManagerComponent), import('./ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs').then(m => m.FormPayloadProjectionComponent), import('./ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs').then(m => m.PayloadTemplateEditorComponent), import('./ngx-t-forms-input-custom.component-Dcoze7U3.mjs').then(m => m.InputCustomComponent), import('./ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs').then(m => m.MapMatOptionsKeys), import('@angular/common').then(m => m.AsyncPipe)], resolveMetadata: (SelectionOptionsEditorComponent, FormInputSelectorComponent, RestApiCallSetupComponent, ApiValueAccessRulesComponent, RequiredInputsComponent, PipelineGeneratorComponent, CalculatedFieldRulesComponent, ValidatorsConfigComponent, ConfigMscoaAdditionalInputsComponent, MatSliderEditorComponent, MscoaSegmentConfigComponent, MatSliderToggleEditorComponent, MatChipListEditorComponent, ChipOptionsCreatorEditorComponent, DataSourcePickerComponent, DocumentListLabelConfigEditorComponent, TWorkflowPickerComponent, EditorJsInputComponent, RecordListManagerComponent, FormPayloadProjectionComponent, PayloadTemplateEditorComponent, InputCustomComponent, MapMatOptionsKeys, AsyncPipe) => ({ decorators: [{
|
|
15390
16057
|
type: Component,
|
|
15391
16058
|
args: [{ selector: 'lib-t-dynamic-data-edit', imports: [
|
|
15392
16059
|
AsyncPipe,
|
|
@@ -15749,7 +16416,7 @@ class TDynamicDataViewComponent {
|
|
|
15749
16416
|
return new Array(Math.max(0, lvl)).fill(0);
|
|
15750
16417
|
}
|
|
15751
16418
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TDynamicDataViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15752
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TDynamicDataViewComponent, isStandalone: true, selector: "lib-t-dynamic-data-view", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mat-tree [dataSource]=\"treeClass.dataSource\" [treeControl]=\"treeClass.treeControl\" class=\"premium-tree\">\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node\" class=\"premium-node\">\r\n @for (i of getLevelArray(node); track $index) {\r\n <div class=\"guide-line\"></div>\r\n }\r\n\r\n <div class=\"node-wrapper\">\r\n <div class=\"icon-spacer\"></div>\r\n <span class=\"node-key\" [title]=\"node.key\">{{ formatKey(node.key) }}</span>\r\n <span class=\"leader-line\"></span>\r\n <span class=\"node-value\" [class]=\"getValueClass(node.value)\" [title]=\"getDisplayValue(node.value)\">\r\n {{ getDisplayValue(node.value) }}\r\n </span>\r\n </div>\r\n </mat-tree-node>\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: treeClass.hasChild\" class=\"premium-node parent-node\">\r\n @for (i of getLevelArray(node); track $index) {\r\n <div class=\"guide-line\"></div>\r\n }\r\n\r\n <div class=\"node-wrapper parent-wrapper\" (click)=\"treeClass.treeControl.toggle(node)\">\r\n <button mat-icon-button class=\"toggle-btn\" tabindex=\"-1\">\r\n <mat-icon class=\"toggle-icon\">\r\n {{ treeClass.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\r\n </mat-icon>\r\n </button>\r\n <span class=\"node-key parent-key\" [title]=\"node.key\">{{ formatKey(node.key) }}</span>\r\n </div>\r\n </mat-tree-node>\r\n\r\n</mat-tree>\r\n", styles: [".premium-tree{background:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.mat-tree-node.premium-node{min-height:26px!important;height:26px;padding:0;display:flex;align-items:center;border-radius:4px;transition:background-color .1s ease-in-out}.mat-tree-node.premium-node:hover{background-color:#80808014}.guide-line{width:20px;min-width:20px;height:100%;position:relative;flex-shrink:0}.guide-line:before{content:\"\";position:absolute;left:10px;top:0;bottom:0;border-left:1px dotted currentColor;opacity:.25}.node-wrapper{display:flex;align-items:center;width:100%;height:100%;padding-right:12px}.parent-wrapper{cursor:pointer}.icon-spacer,.toggle-btn{width:20px!important;height:20px!important;min-width:20px;margin-right:6px;display:flex;justify-content:center;align-items:center;padding:0!important}.toggle-icon{font-size:16px;width:16px;height:16px;line-height:16px;color:currentColor;opacity:.6}.node-key{font-size:12.5px;font-weight:500;white-space:nowrap;color:currentColor;opacity:.85}.parent-key{font-weight:600;opacity:1}.leader-line{flex:1;height:1px;background-image:linear-gradient(to right,currentColor 20%,transparent 0%);background-position:bottom;background-size:4px 1px;background-repeat:repeat-x;opacity:.15;margin:0 12px;position:relative;top:1px}.node-value{font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55%}.value-string{color:green}.value-number{color:#098658}.value-boolean{color:#00f}.value-null{color:gray;opacity:.7;font-style:italic}@media(prefers-color-scheme:dark){.value-string{color:#ce9178}.value-number{color:#b5cea8}.value-boolean{color:#569cd6}.value-null{color:gray}}\n"], dependencies: [{ kind: "ngmodule", type: MatTreeModule }, { kind: "directive", type: i1$
|
|
16419
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TDynamicDataViewComponent, isStandalone: true, selector: "lib-t-dynamic-data-view", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mat-tree [dataSource]=\"treeClass.dataSource\" [treeControl]=\"treeClass.treeControl\" class=\"premium-tree\">\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node\" class=\"premium-node\">\r\n @for (i of getLevelArray(node); track $index) {\r\n <div class=\"guide-line\"></div>\r\n }\r\n\r\n <div class=\"node-wrapper\">\r\n <div class=\"icon-spacer\"></div>\r\n <span class=\"node-key\" [title]=\"node.key\">{{ formatKey(node.key) }}</span>\r\n <span class=\"leader-line\"></span>\r\n <span class=\"node-value\" [class]=\"getValueClass(node.value)\" [title]=\"getDisplayValue(node.value)\">\r\n {{ getDisplayValue(node.value) }}\r\n </span>\r\n </div>\r\n </mat-tree-node>\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: treeClass.hasChild\" class=\"premium-node parent-node\">\r\n @for (i of getLevelArray(node); track $index) {\r\n <div class=\"guide-line\"></div>\r\n }\r\n\r\n <div class=\"node-wrapper parent-wrapper\" (click)=\"treeClass.treeControl.toggle(node)\">\r\n <button mat-icon-button class=\"toggle-btn\" tabindex=\"-1\">\r\n <mat-icon class=\"toggle-icon\">\r\n {{ treeClass.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\r\n </mat-icon>\r\n </button>\r\n <span class=\"node-key parent-key\" [title]=\"node.key\">{{ formatKey(node.key) }}</span>\r\n </div>\r\n </mat-tree-node>\r\n\r\n</mat-tree>\r\n", styles: [".premium-tree{background:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.mat-tree-node.premium-node{min-height:26px!important;height:26px;padding:0;display:flex;align-items:center;border-radius:4px;transition:background-color .1s ease-in-out}.mat-tree-node.premium-node:hover{background-color:#80808014}.guide-line{width:20px;min-width:20px;height:100%;position:relative;flex-shrink:0}.guide-line:before{content:\"\";position:absolute;left:10px;top:0;bottom:0;border-left:1px dotted currentColor;opacity:.25}.node-wrapper{display:flex;align-items:center;width:100%;height:100%;padding-right:12px}.parent-wrapper{cursor:pointer}.icon-spacer,.toggle-btn{width:20px!important;height:20px!important;min-width:20px;margin-right:6px;display:flex;justify-content:center;align-items:center;padding:0!important}.toggle-icon{font-size:16px;width:16px;height:16px;line-height:16px;color:currentColor;opacity:.6}.node-key{font-size:12.5px;font-weight:500;white-space:nowrap;color:currentColor;opacity:.85}.parent-key{font-weight:600;opacity:1}.leader-line{flex:1;height:1px;background-image:linear-gradient(to right,currentColor 20%,transparent 0%);background-position:bottom;background-size:4px 1px;background-repeat:repeat-x;opacity:.15;margin:0 12px;position:relative;top:1px}.node-value{font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55%}.value-string{color:green}.value-number{color:#098658}.value-boolean{color:#00f}.value-null{color:gray;opacity:.7;font-style:italic}@media(prefers-color-scheme:dark){.value-string{color:#ce9178}.value-number{color:#b5cea8}.value-boolean{color:#569cd6}.value-null{color:gray}}\n"], dependencies: [{ kind: "ngmodule", type: MatTreeModule }, { kind: "directive", type: i1$4.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "component", type: i1$4.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i1$4.MatTreeNode, selector: "mat-tree-node", inputs: ["tabIndex", "disabled"], outputs: ["activation", "expandedChange"], exportAs: ["matTreeNode"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15753
16420
|
}
|
|
15754
16421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TDynamicDataViewComponent, decorators: [{
|
|
15755
16422
|
type: Component,
|
|
@@ -15934,41 +16601,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
15934
16601
|
const ELEMENT_REGISTRY = {
|
|
15935
16602
|
[ElementTypes.Location]: {
|
|
15936
16603
|
builderAware: true,
|
|
15937
|
-
load: () => import('./ngx-t-forms-geo-location.component-
|
|
16604
|
+
load: () => import('./ngx-t-forms-geo-location.component-D2fIbagr.mjs').then(m => m.GeoLocationComponent),
|
|
15938
16605
|
},
|
|
15939
16606
|
[ElementTypes.AutoCompleteInput]: {
|
|
15940
|
-
load: () => import('./ngx-t-forms-auto-complete-input-element.component-
|
|
16607
|
+
load: () => import('./ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs').then(m => m.AutoCompleteInputElementComponent),
|
|
15941
16608
|
},
|
|
15942
16609
|
[ElementTypes.Toggle]: {
|
|
15943
|
-
load: () => import('./ngx-t-forms-toggle-input-element.component-
|
|
16610
|
+
load: () => import('./ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs').then(m => m.ToggleInputElementComponent),
|
|
15944
16611
|
},
|
|
15945
16612
|
[ElementTypes.Select]: {
|
|
15946
|
-
load: () => import('./ngx-t-forms-select-input-element.component-
|
|
16613
|
+
load: () => import('./ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs').then(m => m.SelectInputElementComponent),
|
|
15947
16614
|
},
|
|
15948
16615
|
[ElementTypes.Textarea]: {
|
|
15949
|
-
load: () => import('./ngx-t-forms-textarea-input-element.component-
|
|
16616
|
+
load: () => import('./ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs').then(m => m.TextareaInputElementComponent),
|
|
15950
16617
|
},
|
|
15951
16618
|
[ElementTypes.DateRangePicker]: {
|
|
15952
|
-
load: () => import('./ngx-t-forms-date-range-picker-input-element.component-
|
|
16619
|
+
load: () => import('./ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs').then(m => m.DateRangePickerInputElementComponent),
|
|
15953
16620
|
},
|
|
15954
16621
|
[ElementTypes.DatePicker]: {
|
|
15955
|
-
load: () => import('./ngx-t-forms-date-picker-input-element.component-
|
|
16622
|
+
load: () => import('./ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs').then(m => m.DatePickerInputElementComponent),
|
|
15956
16623
|
},
|
|
15957
16624
|
[ElementTypes.FileUpload]: {
|
|
15958
|
-
load: () => import('./ngx-t-forms-file-upload-input-element.component-
|
|
16625
|
+
load: () => import('./ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs').then(m => m.FileUploadInputElementComponent),
|
|
15959
16626
|
},
|
|
15960
16627
|
[ElementTypes.ImageCapture]: {
|
|
15961
|
-
load: () => import('./ngx-t-forms-image-capture-input-element.component-
|
|
16628
|
+
load: () => import('./ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs').then(m => m.ImageCaptureInputElementComponent),
|
|
15962
16629
|
},
|
|
15963
16630
|
[ElementTypes.Editor]: {
|
|
15964
|
-
load: () => import('./ngx-t-forms-editor-input-element.component-
|
|
16631
|
+
load: () => import('./ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs').then(m => m.EditorInputElementComponent),
|
|
15965
16632
|
},
|
|
15966
16633
|
[ElementTypes.Signature]: {
|
|
15967
16634
|
load: () => Promise.resolve().then(function () { return signatureInputElement_component; }).then(m => m.SignatureInputElementComponent),
|
|
15968
16635
|
},
|
|
15969
16636
|
[ElementTypes.MultipleInput]: {
|
|
15970
16637
|
builderAware: true,
|
|
15971
|
-
load: () => import('./ngx-t-forms-multiple-input-input-element.component-
|
|
16638
|
+
load: () => import('./ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs').then(m => m.MultipleInputInputElementComponent),
|
|
15972
16639
|
},
|
|
15973
16640
|
[ElementTypes.MscoaSelection]: {
|
|
15974
16641
|
builderAware: true,
|
|
@@ -15976,14 +16643,14 @@ const ELEMENT_REGISTRY = {
|
|
|
15976
16643
|
},
|
|
15977
16644
|
[ElementTypes.WorkflowDocumentPicker]: {
|
|
15978
16645
|
builderAware: true,
|
|
15979
|
-
load: () => import('./ngx-t-forms-document-picker.component-
|
|
16646
|
+
load: () => import('./ngx-t-forms-document-picker.component-BSG7k3IN.mjs').then(m => m.DocumentPickerComponent),
|
|
15980
16647
|
},
|
|
15981
16648
|
[ElementTypes.WorkflowAdjudication]: {
|
|
15982
16649
|
builderAware: true,
|
|
15983
|
-
load: () => import('./ngx-t-forms-workflow-adjudication.component-
|
|
16650
|
+
load: () => import('./ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs').then(m => m.WorkflowAdjudicationComponent),
|
|
15984
16651
|
},
|
|
15985
16652
|
[ElementTypes.PaginatedSelectionTable]: {
|
|
15986
|
-
load: () => import('./ngx-t-forms-paginated-selection-table-
|
|
16653
|
+
load: () => import('./ngx-t-forms-paginated-selection-table-DrXB22iY.mjs').then(m => m.PaginatedSelectionTable),
|
|
15987
16654
|
},
|
|
15988
16655
|
};
|
|
15989
16656
|
/**
|
|
@@ -15991,7 +16658,7 @@ const ELEMENT_REGISTRY = {
|
|
|
15991
16658
|
* `@default` switch branch (a basic input).
|
|
15992
16659
|
*/
|
|
15993
16660
|
const FALLBACK_ELEMENT = {
|
|
15994
|
-
load: () => import('./ngx-t-forms-basic-input-input-element.component-
|
|
16661
|
+
load: () => import('./ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs').then(m => m.BasicInputInputElementComponent),
|
|
15995
16662
|
};
|
|
15996
16663
|
/**
|
|
15997
16664
|
* Resolves the renderer entry for a given element type, falling back to the
|
|
@@ -16045,6 +16712,24 @@ class TFormInputComponent {
|
|
|
16045
16712
|
* map index signature uniform.
|
|
16046
16713
|
*/
|
|
16047
16714
|
#modelInputSetters;
|
|
16715
|
+
/**
|
|
16716
|
+
* The descriptor as the concrete renderer sees it: identical to
|
|
16717
|
+
* {@link TFormInputComponent.inputConfig} except that an input whose value the
|
|
16718
|
+
* tower computes for itself (calculation, value-API fetch, or another input's
|
|
16719
|
+
* value) is forced `readonly`.
|
|
16720
|
+
*
|
|
16721
|
+
* The tower already stamps its own definition on `initialize`, so for the
|
|
16722
|
+
* runtime form this is a no-op that returns the very same reference. It exists
|
|
16723
|
+
* because this host is the ONE gate every input passes through — including
|
|
16724
|
+
* MultipleInput sub-row fields, MSCOA inner inputs, and the builder-side
|
|
16725
|
+
* preview, none of which are rendered from the tower's stamped definition. No
|
|
16726
|
+
* renderer can therefore be handed an editable auto-computed field.
|
|
16727
|
+
*
|
|
16728
|
+
* Keyed on `inputConfig` alone (not folded into `elementInputs`) so a change to
|
|
16729
|
+
* `editorMode` / `formBuilderFunctions` cannot mint a new config object and
|
|
16730
|
+
* churn the outlet's inputs.
|
|
16731
|
+
*/
|
|
16732
|
+
#renderedInputConfig;
|
|
16048
16733
|
// Portal-style prop injection: when this component is rendered through a
|
|
16049
16734
|
// ComponentPortal, inputs may be supplied via the `'COMPONENT_PROPS'` string
|
|
16050
16735
|
// token. Signal inputs are read-only at runtime, so each prop is routed
|
|
@@ -16129,6 +16814,27 @@ class TFormInputComponent {
|
|
|
16129
16814
|
const entry = this.elementEntry();
|
|
16130
16815
|
return entry ? entry.load() : null;
|
|
16131
16816
|
}, ...(ngDevMode ? [{ debugName: "elementComponent" }] : /* istanbul ignore next */ []));
|
|
16817
|
+
/**
|
|
16818
|
+
* The descriptor as the concrete renderer sees it: identical to
|
|
16819
|
+
* {@link TFormInputComponent.inputConfig} except that an input whose value the
|
|
16820
|
+
* tower computes for itself (calculation, value-API fetch, or another input's
|
|
16821
|
+
* value) is forced `readonly`.
|
|
16822
|
+
*
|
|
16823
|
+
* The tower already stamps its own definition on `initialize`, so for the
|
|
16824
|
+
* runtime form this is a no-op that returns the very same reference. It exists
|
|
16825
|
+
* because this host is the ONE gate every input passes through — including
|
|
16826
|
+
* MultipleInput sub-row fields, MSCOA inner inputs, and the builder-side
|
|
16827
|
+
* preview, none of which are rendered from the tower's stamped definition. No
|
|
16828
|
+
* renderer can therefore be handed an editable auto-computed field.
|
|
16829
|
+
*
|
|
16830
|
+
* Keyed on `inputConfig` alone (not folded into `elementInputs`) so a change to
|
|
16831
|
+
* `editorMode` / `formBuilderFunctions` cannot mint a new config object and
|
|
16832
|
+
* churn the outlet's inputs.
|
|
16833
|
+
*/
|
|
16834
|
+
this.#renderedInputConfig = computed(() => {
|
|
16835
|
+
const inputConfig = this.inputConfig();
|
|
16836
|
+
return inputConfig ? applyAutoComputedReadonly(inputConfig) : undefined;
|
|
16837
|
+
}, ...(ngDevMode ? [{ debugName: "#renderedInputConfig" }] : /* istanbul ignore next */ []));
|
|
16132
16838
|
/**
|
|
16133
16839
|
* Inputs forwarded to the resolved renderer. Builder-aware renderers also
|
|
16134
16840
|
* receive `editorMode` and `formBuilderFunctions`; every other renderer gets
|
|
@@ -16137,7 +16843,7 @@ class TFormInputComponent {
|
|
|
16137
16843
|
*/
|
|
16138
16844
|
this.elementInputs = computed(() => {
|
|
16139
16845
|
const base = {
|
|
16140
|
-
inputConfig: this
|
|
16846
|
+
inputConfig: this.#renderedInputConfig(),
|
|
16141
16847
|
formGroup: this.formGroup(),
|
|
16142
16848
|
};
|
|
16143
16849
|
if (this.elementEntry()?.builderAware) {
|
|
@@ -16531,7 +17237,7 @@ class ScoaInputComponent {
|
|
|
16531
17237
|
return of();
|
|
16532
17238
|
}
|
|
16533
17239
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ScoaInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16534
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.12", type: ScoaInputComponent, isStandalone: true, selector: "lib-scoa-input", host: { classAttribute: "app-scoa-input" }, ngImport: i0, template: "<h2 mat-dialog-title style=\"font-weight: 500;\"> {{heading|titlecase}}</h2>\r\n<p style=\" padding-left: 28px;padding-right:24px;margin-top:0px\">\r\n {{subHeading}}\r\n</p>\r\n<mat-dialog-content>\r\n\r\n <ng-container>\r\n<!-- \r\n <lib-t-form-input \r\n [formGroup]=\"formGroup\" \r\n [inputConfig]=\"inputConfig\"></lib-t-form-input> \r\n -->\r\n\r\n \r\n\r\n \r\n\r\n </ng-container>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n <button mat-button mat-dialog-close>Close</button>\r\n <button mat-flat-button color=\"primary\" (click)=\"save({})\" cdkFocusInitial>Save</button>\r\n</mat-dialog-actions>", styles: [".minimal-input{width:100%;padding:8px;margin:4px 0;box-sizing:border-box;border:1px solid var(--lib-forms-outline-variant);border-radius:4px}.error-message{color:var(--sem-error);font-size:.75em}mat-form-field{width:100%;margin-top:20px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatModulesModule }, { kind: "component", type:
|
|
17240
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.12", type: ScoaInputComponent, isStandalone: true, selector: "lib-scoa-input", host: { classAttribute: "app-scoa-input" }, ngImport: i0, template: "<h2 mat-dialog-title style=\"font-weight: 500;\"> {{heading|titlecase}}</h2>\r\n<p style=\" padding-left: 28px;padding-right:24px;margin-top:0px\">\r\n {{subHeading}}\r\n</p>\r\n<mat-dialog-content>\r\n\r\n <ng-container>\r\n<!-- \r\n <lib-t-form-input \r\n [formGroup]=\"formGroup\" \r\n [inputConfig]=\"inputConfig\"></lib-t-form-input> \r\n -->\r\n\r\n \r\n\r\n \r\n\r\n </ng-container>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n <button mat-button mat-dialog-close>Close</button>\r\n <button mat-flat-button color=\"primary\" (click)=\"save({})\" cdkFocusInitial>Save</button>\r\n</mat-dialog-actions>", styles: [".minimal-input{width:100%;padding:8px;margin:4px 0;box-sizing:border-box;border:1px solid var(--lib-forms-outline-variant);border-radius:4px}.error-message{color:var(--sem-error);font-size:.75em}mat-form-field{width:100%;margin-top:20px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatModulesModule }, { 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: "directive", type: i1$3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "pipe", type: i3.TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16535
17241
|
}
|
|
16536
17242
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ScoaInputComponent, decorators: [{
|
|
16537
17243
|
type: Component,
|
|
@@ -16642,7 +17348,7 @@ class AccountValueComponent {
|
|
|
16642
17348
|
});
|
|
16643
17349
|
}
|
|
16644
17350
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AccountValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16645
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AccountValueComponent, isStandalone: true, selector: "lib-account-value", inputs: { mscoaAccount: { classPropertyName: "mscoaAccount", publicName: "mscoaAccount", isSignal: true, isRequired: false, transformFunction: null }, accountInputs: { classPropertyName: "accountInputs", publicName: "accountInputs", isSignal: true, isRequired: false, transformFunction: null }, userCanClearAccount: { classPropertyName: "userCanClearAccount", publicName: "userCanClearAccount", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clearSelectedAccount: "clearSelectedAccount", updateAccount: "updateAccount" }, ngImport: i0, template: "<div class=\"account-card\">\r\n <mat-toolbar class=\"compact-toolbar\">\r\n <span>Account Details</span>\r\n </mat-toolbar>\r\n <div class=\"account-grid\">\r\n @for (item of accountDetails(); track $index; let last = $last) {\r\n <div class=\"detail-item\" [class.full-width]=\"isLongText(item.value) || isLongDescription(item.value)\">\r\n <span class=\"label\">{{ item.label }}</span>\r\n <span class=\"value\">\r\n @if (item.input) {\r\n <button \r\n mat-button \r\n [color]=\"item.value ? 'primary' : ''\"\r\n [class.empty-state-btn]=\"!item.value\"\r\n (click)=\"openValueEdit(item)\"\r\n [attr.aria-label]=\"item.value ? 'Edit ' + item.label : 'Set ' + item.label\">\r\n <span class=\"btn-text\">{{ item.value || 'Set ' + item.label }}</span>\r\n @if (!item.value) {\r\n <mat-icon iconPositionEnd>edit</mat-icon>\r\n }\r\n </button>\r\n } @else {\r\n @if (isLongText(item.value)) {\r\n <span \r\n class=\"read-only-text long-value\" \r\n [matTooltip]=\"asString(item.value)\"\r\n [matTooltipPosition]=\"'above'\"\r\n [matTooltipShowDelay]=\"500\">\r\n {{ item.value || '-' }}\r\n </span>\r\n } @else if (isLongDescription(item.value)) {\r\n <span class=\"read-only-text long-description\">{{ item.value || '-' }}</span>\r\n } @else {\r\n <span class=\"read-only-text\">{{ item.value || '-' }}</span>\r\n }\r\n }\r\n </span>\r\n </div>\r\n }\r\n </div>\r\n</div>", styles: [".account-card{max-width:100%;margin:0;border-radius:6px;box-shadow:var(--mscoa-elevation-1, 0 1px 3px rgba(0, 0, 0, .12));overflow:hidden}mat-card-header{background-color:var(--lib-forms-surface-container);padding:var(--mscoa-spacing-md, 16px);border-bottom:2px solid var(--lib-forms-primary-container)}mat-card-title{font-size:1rem;font-weight:600;color:var(--lib-forms-on-surface);margin:0;letter-spacing:.5px}:host .compact-toolbar{min-height:40px;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px)}:host .compact-toolbar span{font-size:.8125rem;font-weight:600}.account-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);padding:var(--mscoa-spacing-sm, 8px);background:var(--lib-forms-surface)}.account-grid::-webkit-scrollbar{width:6px}.account-grid::-webkit-scrollbar-track{background:var(--lib-forms-surface-container);border-radius:3px}.account-grid::-webkit-scrollbar-thumb{background:var(--lib-forms-on-surface-variant);border-radius:3px;opacity:.5}.account-grid::-webkit-scrollbar-thumb:hover{opacity:.8;background:var(--lib-forms-primary)}.account-grid{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}.detail-item{display:flex;flex-direction:column;gap:2px;min-height:22px;padding:var(--mscoa-spacing-xs, 4px);border-bottom:1px solid var(--lib-forms-outline-variant)}.detail-item.full-width{grid-column:1/-1}.label{font-weight:600;font-size:.6875rem;color:var(--lib-forms-on-surface-variant);letter-spacing:.4px;line-height:1.3}.value{font-size:.75rem;color:var(--lib-forms-on-surface);font-weight:400;line-height:1.35;word-break:break-word}.read-only-text.long-value{font-family:Roboto Mono,monospace;font-size:.6875rem;background:var(--lib-forms-surface-container);padding:2px var(--mscoa-spacing-xs, 4px);border-radius:2px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal}.read-only-text.long-value:hover{overflow:visible;z-index:10;position:relative;background:var(--lib-forms-surface);box-shadow:var(--mscoa-elevation-4, 0 4px 12px rgba(0, 0, 0, .12));padding:var(--mscoa-spacing-xs, 4px)}.read-only-text{color:var(--lib-forms-on-surface);line-height:1.35;font-size:.75rem}.read-only-text.long-description{white-space:pre-wrap;max-height:72px;overflow-y:auto;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-xs, 4px);background:var(--lib-forms-surface-container);border-radius:3px;border-left:2px solid var(--lib-forms-primary-container);font-size:.6875rem;line-height:1.4}button[mat-flat-button]{transition:transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),color var(--lib-forms-duration-hover) var(--lib-forms-easing)}button[mat-flat-button].empty-state-btn{color:var(--lib-forms-on-surface-variant);border:1px dashed var(--lib-forms-outline-variant)}button[mat-flat-button].empty-state-btn:hover{background-color:var(--lib-forms-primary-container);border-color:var(--lib-forms-primary);color:var(--lib-forms-primary)}button[mat-flat-button]:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--mscoa-elevation-2, 0 2px 6px rgba(0, 0, 0, .12))}:host mat-toolbar{background:var(--lib-forms-surface-container);box-shadow:var(--mscoa-elevation-1, 0 1px 3px rgba(0, 0, 0, .12));border-radius:8px 8px 0 0}:host mat-toolbar span{font-size:.875rem;font-weight:600;color:var(--lib-forms-on-surface);letter-spacing:.5px}:host mat-toolbar button[mat-flat-button]{font-size:.8125rem;font-weight:500}.glass{background:#ffffff26;box-shadow:0 4px 30px #0000001a;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.2)}.odd{background:#ffffff80}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
17351
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AccountValueComponent, isStandalone: true, selector: "lib-account-value", inputs: { mscoaAccount: { classPropertyName: "mscoaAccount", publicName: "mscoaAccount", isSignal: true, isRequired: false, transformFunction: null }, accountInputs: { classPropertyName: "accountInputs", publicName: "accountInputs", isSignal: true, isRequired: false, transformFunction: null }, userCanClearAccount: { classPropertyName: "userCanClearAccount", publicName: "userCanClearAccount", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clearSelectedAccount: "clearSelectedAccount", updateAccount: "updateAccount" }, ngImport: i0, template: "<div class=\"account-card\">\r\n <mat-toolbar class=\"compact-toolbar\">\r\n <span>Account Details</span>\r\n </mat-toolbar>\r\n <div class=\"account-grid\">\r\n @for (item of accountDetails(); track $index; let last = $last) {\r\n <div class=\"detail-item\" [class.full-width]=\"isLongText(item.value) || isLongDescription(item.value)\">\r\n <span class=\"label\">{{ item.label }}</span>\r\n <span class=\"value\">\r\n @if (item.input) {\r\n <button \r\n mat-button \r\n [color]=\"item.value ? 'primary' : ''\"\r\n [class.empty-state-btn]=\"!item.value\"\r\n (click)=\"openValueEdit(item)\"\r\n [attr.aria-label]=\"item.value ? 'Edit ' + item.label : 'Set ' + item.label\">\r\n <span class=\"btn-text\">{{ item.value || 'Set ' + item.label }}</span>\r\n @if (!item.value) {\r\n <mat-icon iconPositionEnd>edit</mat-icon>\r\n }\r\n </button>\r\n } @else {\r\n @if (isLongText(item.value)) {\r\n <span \r\n class=\"read-only-text long-value\" \r\n [matTooltip]=\"asString(item.value)\"\r\n [matTooltipPosition]=\"'above'\"\r\n [matTooltipShowDelay]=\"500\">\r\n {{ item.value || '-' }}\r\n </span>\r\n } @else if (isLongDescription(item.value)) {\r\n <span class=\"read-only-text long-description\">{{ item.value || '-' }}</span>\r\n } @else {\r\n <span class=\"read-only-text\">{{ item.value || '-' }}</span>\r\n }\r\n }\r\n </span>\r\n </div>\r\n }\r\n </div>\r\n</div>", styles: [".account-card{max-width:100%;margin:0;border-radius:6px;box-shadow:var(--mscoa-elevation-1, 0 1px 3px rgba(0, 0, 0, .12));overflow:hidden}mat-card-header{background-color:var(--lib-forms-surface-container);padding:var(--mscoa-spacing-md, 16px);border-bottom:2px solid var(--lib-forms-primary-container)}mat-card-title{font-size:1rem;font-weight:600;color:var(--lib-forms-on-surface);margin:0;letter-spacing:.5px}:host .compact-toolbar{min-height:40px;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px)}:host .compact-toolbar span{font-size:.8125rem;font-weight:600}.account-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);padding:var(--mscoa-spacing-sm, 8px);background:var(--lib-forms-surface)}.account-grid::-webkit-scrollbar{width:6px}.account-grid::-webkit-scrollbar-track{background:var(--lib-forms-surface-container);border-radius:3px}.account-grid::-webkit-scrollbar-thumb{background:var(--lib-forms-on-surface-variant);border-radius:3px;opacity:.5}.account-grid::-webkit-scrollbar-thumb:hover{opacity:.8;background:var(--lib-forms-primary)}.account-grid{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}.detail-item{display:flex;flex-direction:column;gap:2px;min-height:22px;padding:var(--mscoa-spacing-xs, 4px);border-bottom:1px solid var(--lib-forms-outline-variant)}.detail-item.full-width{grid-column:1/-1}.label{font-weight:600;font-size:.6875rem;color:var(--lib-forms-on-surface-variant);letter-spacing:.4px;line-height:1.3}.value{font-size:.75rem;color:var(--lib-forms-on-surface);font-weight:400;line-height:1.35;word-break:break-word}.read-only-text.long-value{font-family:Roboto Mono,monospace;font-size:.6875rem;background:var(--lib-forms-surface-container);padding:2px var(--mscoa-spacing-xs, 4px);border-radius:2px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal}.read-only-text.long-value:hover{overflow:visible;z-index:10;position:relative;background:var(--lib-forms-surface);box-shadow:var(--mscoa-elevation-4, 0 4px 12px rgba(0, 0, 0, .12));padding:var(--mscoa-spacing-xs, 4px)}.read-only-text{color:var(--lib-forms-on-surface);line-height:1.35;font-size:.75rem}.read-only-text.long-description{white-space:pre-wrap;max-height:72px;overflow-y:auto;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-xs, 4px);background:var(--lib-forms-surface-container);border-radius:3px;border-left:2px solid var(--lib-forms-primary-container);font-size:.6875rem;line-height:1.4}button[mat-flat-button]{transition:transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),color var(--lib-forms-duration-hover) var(--lib-forms-easing)}button[mat-flat-button].empty-state-btn{color:var(--lib-forms-on-surface-variant);border:1px dashed var(--lib-forms-outline-variant)}button[mat-flat-button].empty-state-btn:hover{background-color:var(--lib-forms-primary-container);border-color:var(--lib-forms-primary);color:var(--lib-forms-primary)}button[mat-flat-button]:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--mscoa-elevation-2, 0 2px 6px rgba(0, 0, 0, .12))}:host mat-toolbar{background:var(--lib-forms-surface-container);box-shadow:var(--mscoa-elevation-1, 0 1px 3px rgba(0, 0, 0, .12));border-radius:8px 8px 0 0}:host mat-toolbar span{font-size:.875rem;font-weight:600;color:var(--lib-forms-on-surface);letter-spacing:.5px}:host mat-toolbar button[mat-flat-button]{font-size:.8125rem;font-weight:500}.glass{background:#ffffff26;box-shadow:0 4px 30px #0000001a;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.2)}.odd{background:#ffffff80}\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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16646
17352
|
}
|
|
16647
17353
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AccountValueComponent, decorators: [{
|
|
16648
17354
|
type: Component,
|
|
@@ -16755,7 +17461,7 @@ class ScoaAccountTableComponent {
|
|
|
16755
17461
|
this.minViewCol.set(SCOA_ACCOUNT_COLUMNS.map(h => h.key));
|
|
16756
17462
|
}
|
|
16757
17463
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ScoaAccountTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16758
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ScoaAccountTableComponent, isStandalone: true, selector: "lib-scoa-account-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, selectedAccount: { classPropertyName: "selectedAccount", publicName: "selectedAccount", isSignal: true, isRequired: false, transformFunction: null }, segment: { classPropertyName: "segment", publicName: "segment", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { accountSelected: "accountSelected" }, viewQueries: [{ propertyName: "sort", first: true, predicate: MatSort, descendants: true, isSignal: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }], ngImport: i0, template: "<div>\r\n <mat-toolbar class=\"search\" style=\"background:var(--mat-sys-surface-container) !important\">\r\n <span style=\"font-size:14px\">\r\n Select account from the options below:\r\n </span>\r\n\r\n\r\n <span class=\"spacer\"></span>\r\n\r\n <mat-menu #menu=\"matMenu\">\r\n <div style=\" padding-left: 16px;\r\n margin-top: 8px;\" mat-subheader>Account list headers</div>\r\n <br>\r\n\r\n <section style=\"padding-left: 16px; padding-right:16px\">\r\n <button style=\"width: 100%;\" (click)=\"toogleDetails()\" class=\"cols\" color=\"primary\" mat-flat-button>\r\n {{showMinMal() ? 'show all details' : 'Show less details'}}\r\n </button>\r\n </section>\r\n <p style=\"\r\n padding-left: 16px;\r\n padding-right:16px;\r\n\r\n font-size:14px\">Only selected headers will be shown.</p>\r\n @for (col of scoaAccountColumns(); track $index) {\r\n <button (click)=\"$event.stopPropagation()\" class=\"cols\" mat-menu-item>\r\n\r\n <mat-checkbox [checked]=\"colIsChecked(col.key)\" (change)=\"colDisplayChanged($event,col.key)\"\r\n class=\"cols\">\r\n {{col.label}}</mat-checkbox>\r\n </button>\r\n }\r\n </mat-menu>\r\n </mat-toolbar>\r\n\r\n @if (dataSource.filteredData.length === 0) {\r\n <div class=\"no-results\">\r\n No accounts match your search criteria.\r\n </div>\r\n }\r\n <div class=\"table-wrapper\" [hidden]=\"dataSource.filteredData.length === 0\">\r\n <div class=\"table-container\">\r\n <table mat-table [dataSource]=\"dataSource\" matSort>\r\n @for (column of scoaAccountColumns(); track column.key) {\r\n <ng-container [matColumnDef]=\"column.key\" [stickyEnd]=\"column.system\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>\r\n @if (column.system) {\r\n <button\r\n matTooltip=\"Show more or less columns\"\r\n mat-icon-button\r\n [matMenuTriggerFor]=\"menu\"\r\n [attr.aria-label]=\"'Column options'\">\r\n <mat-icon>view_column</mat-icon>\r\n </button>\r\n } @else {\r\n {{ column.label }}\r\n }\r\n </th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n @if (column.system) {\r\n <button\r\n mat-flat-button\r\n color=\"primary\"\r\n [attr.aria-label]=\"'Select account ' + (element.SCOAAccount || element.AccountNumber)\">\r\n Select\r\n </button>\r\n } @else {\r\n <span class=\"cell-content\">{{ element[column.key] }}</span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayColumns()\"></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; columns: displayColumns();\"\r\n class=\"account-row\"\r\n (click)=\"selectAccount(row)\"\r\n [class.deactivated-row]=\"rowIsActivated(row) === false\"\r\n [class.selected-row]=\"selectedAccount() && selectedAccount()?.SCOAid === row.SCOAid\"\r\n [attr.aria-label]=\"'Account row: ' + (row.SCOAAccount || row.AccountNumber)\"\r\n [attr.aria-selected]=\"selectedAccount() && selectedAccount()?.SCOAid === row.SCOAid\"\r\n role=\"row\">\r\n </tr>\r\n </table>\r\n </div>\r\n <mat-paginator [pageSizeOptions]=\"[5, 10, 20]\" [pageSize]=\"10\" showFirstLastButtons></mat-paginator>\r\n </div>\r\n</div>\r\n", styles: [".search-container{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:1rem}.mat-form-field{flex-grow:1;margin-right:1rem}.table-wrapper{margin-top:var(--mscoa-spacing-xs, 4px);width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrapper::-webkit-scrollbar{height:8px}.table-wrapper::-webkit-scrollbar-track{background:var(--lib-forms-surface-container);border-radius:4px}.table-wrapper::-webkit-scrollbar-thumb{background:var(--lib-forms-on-surface-variant);border-radius:4px}.table-wrapper{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}.table-container{background:var(--lib-forms-surface);box-shadow:var(--mscoa-elevation-1, 0 1px 3px rgba(0, 0, 0, .12));border-radius:8px;overflow:visible;width:100%;min-width:0}mat-table{width:100%;min-width:480px;background:transparent}mat-header-row{background:var(--lib-forms-surface-container);border-bottom:2px solid var(--lib-forms-outline-variant)}mat-header-row th{font-weight:600;color:var(--lib-forms-on-surface);font-size:.75rem;letter-spacing:.4px;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);line-height:1.3}.account-row{cursor:pointer;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);border-bottom:1px solid var(--lib-forms-outline-variant)}.account-row:hover:not(.deactivated-row):not(.selected-row){background-color:var(--lib-forms-primary-container)!important;box-shadow:inset 4px 0 0 var(--lib-forms-primary)}.account-row:active:not(.deactivated-row){background-color:var(--lib-forms-primary-container)!important}.account-row:focus-visible{outline:2px solid var(--sem-blue);outline-offset:-2px}.account-row td{padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);font-size:.8125rem;color:var(--lib-forms-on-surface);border-bottom:none;vertical-align:middle;line-height:1.35}.account-row td .cell-content{display:block;word-break:break-word;line-height:1.35}.selected-row{background-color:var(--lib-forms-primary)!important;color:var(--lib-forms-on-primary)!important;box-shadow:inset 4px 0 0 var(--lib-forms-primary-container),var(--mscoa-elevation-2, 0 2px 6px rgba(0, 0, 0, .12))}.selected-row td{color:var(--lib-forms-on-primary)!important;font-weight:500}.selected-row td .cell-content{color:var(--lib-forms-on-primary)!important}.selected-row button{background-color:var(--lib-forms-on-primary)!important;color:var(--lib-forms-primary)!important;font-weight:600}.selected-row button:hover{background-color:var(--lib-forms-primary-container)!important;transform:translateY(-1px);box-shadow:var(--mscoa-elevation-2, 0 2px 6px rgba(0, 0, 0, .12))}.deactivated-row{opacity:.5;cursor:not-allowed!important;background-color:var(--lib-forms-surface-container)!important}.deactivated-row:hover{background-color:var(--lib-forms-surface-container)!important;transform:none!important}.deactivated-row td{color:var(--lib-forms-on-surface-variant)!important}.no-results{text-align:center;padding:var(--mscoa-spacing-xl, 32px);color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container);border-radius:8px;margin:var(--mscoa-spacing-md, 16px)}.no-results mat-icon{font-size:3rem;height:3rem;width:3rem;margin-bottom:var(--mscoa-spacing-md, 16px);color:var(--lib-forms-on-surface-variant);opacity:.5}.cols{font-size:.875em;min-height:28px}mat-toolbar.search{background:var(--lib-forms-surface-container)!important;box-shadow:var(--mscoa-elevation-1, 0 1px 3px rgba(0, 0, 0, .12));border-radius:8px 8px 0 0;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);min-height:40px!important}mat-toolbar.search span{font-size:.8125rem;font-weight:500;color:var(--lib-forms-on-surface)}mat-paginator{background:var(--lib-forms-surface-container);border-top:1px solid var(--lib-forms-outline-variant);border-radius:0 0 8px 8px;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px)}mat-paginator ::ng-deep .mat-mdc-paginator-container{min-height:40px}th.mat-column-selection,td.mat-column-selection{position:sticky!important;right:0!important;background:var(--lib-forms-surface-container)!important;z-index:2;box-shadow:-4px 0 8px #0000000f;min-width:90px}mat-header-row th.mat-column-selection{background:var(--lib-forms-surface-container)!important}.account-row.selected-row td.mat-column-selection{background:var(--lib-forms-primary)!important}.account-row:hover:not(.deactivated-row):not(.selected-row) td.mat-column-selection{background:var(--lib-forms-primary-container)!important}button[mat-flat-button]{transition:transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing)}button[mat-flat-button]:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--mscoa-elevation-2, 0 2px 6px rgba(0, 0, 0, .12))}button[mat-flat-button]:active:not(:disabled){transform:translateY(0)}\n"], dependencies: [{ kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i5$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i11.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3$3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17464
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ScoaAccountTableComponent, isStandalone: true, selector: "lib-scoa-account-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, selectedAccount: { classPropertyName: "selectedAccount", publicName: "selectedAccount", isSignal: true, isRequired: false, transformFunction: null }, segment: { classPropertyName: "segment", publicName: "segment", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { accountSelected: "accountSelected" }, viewQueries: [{ propertyName: "sort", first: true, predicate: MatSort, descendants: true, isSignal: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }], ngImport: i0, template: "<div>\r\n <mat-toolbar class=\"search\" style=\"background:var(--mat-sys-surface-container) !important\">\r\n <span style=\"font-size:14px\">\r\n Select account from the options below:\r\n </span>\r\n\r\n\r\n <span class=\"spacer\"></span>\r\n\r\n <mat-menu #menu=\"matMenu\">\r\n <div style=\" padding-left: 16px;\r\n margin-top: 8px;\" mat-subheader>Account list headers</div>\r\n <br>\r\n\r\n <section style=\"padding-left: 16px; padding-right:16px\">\r\n <button style=\"width: 100%;\" (click)=\"toogleDetails()\" class=\"cols\" color=\"primary\" mat-flat-button>\r\n {{showMinMal() ? 'show all details' : 'Show less details'}}\r\n </button>\r\n </section>\r\n <p style=\"\r\n padding-left: 16px;\r\n padding-right:16px;\r\n\r\n font-size:14px\">Only selected headers will be shown.</p>\r\n @for (col of scoaAccountColumns(); track $index) {\r\n <button (click)=\"$event.stopPropagation()\" class=\"cols\" mat-menu-item>\r\n\r\n <mat-checkbox [checked]=\"colIsChecked(col.key)\" (change)=\"colDisplayChanged($event,col.key)\"\r\n class=\"cols\">\r\n {{col.label}}</mat-checkbox>\r\n </button>\r\n }\r\n </mat-menu>\r\n </mat-toolbar>\r\n\r\n @if (dataSource.filteredData.length === 0) {\r\n <div class=\"no-results\">\r\n No accounts match your search criteria.\r\n </div>\r\n }\r\n <div class=\"table-wrapper\" [hidden]=\"dataSource.filteredData.length === 0\">\r\n <div class=\"table-container\">\r\n <table mat-table [dataSource]=\"dataSource\" matSort>\r\n @for (column of scoaAccountColumns(); track column.key) {\r\n <ng-container [matColumnDef]=\"column.key\" [stickyEnd]=\"column.system\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>\r\n @if (column.system) {\r\n <button\r\n matTooltip=\"Show more or less columns\"\r\n mat-icon-button\r\n [matMenuTriggerFor]=\"menu\"\r\n [attr.aria-label]=\"'Column options'\">\r\n <mat-icon>view_column</mat-icon>\r\n </button>\r\n } @else {\r\n {{ column.label }}\r\n }\r\n </th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n @if (column.system) {\r\n <button\r\n mat-flat-button\r\n color=\"primary\"\r\n [attr.aria-label]=\"'Select account ' + (element.SCOAAccount || element.AccountNumber)\">\r\n Select\r\n </button>\r\n } @else {\r\n <span class=\"cell-content\">{{ element[column.key] }}</span>\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayColumns()\"></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; columns: displayColumns();\"\r\n class=\"account-row\"\r\n (click)=\"selectAccount(row)\"\r\n [class.deactivated-row]=\"rowIsActivated(row) === false\"\r\n [class.selected-row]=\"selectedAccount() && selectedAccount()?.SCOAid === row.SCOAid\"\r\n [attr.aria-label]=\"'Account row: ' + (row.SCOAAccount || row.AccountNumber)\"\r\n [attr.aria-selected]=\"selectedAccount() && selectedAccount()?.SCOAid === row.SCOAid\"\r\n role=\"row\">\r\n </tr>\r\n </table>\r\n </div>\r\n <mat-paginator [pageSizeOptions]=\"[5, 10, 20]\" [pageSize]=\"10\" showFirstLastButtons></mat-paginator>\r\n </div>\r\n</div>\r\n", styles: [".search-container{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:1rem}.mat-form-field{flex-grow:1;margin-right:1rem}.table-wrapper{margin-top:var(--mscoa-spacing-xs, 4px);width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrapper::-webkit-scrollbar{height:8px}.table-wrapper::-webkit-scrollbar-track{background:var(--lib-forms-surface-container);border-radius:4px}.table-wrapper::-webkit-scrollbar-thumb{background:var(--lib-forms-on-surface-variant);border-radius:4px}.table-wrapper{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}.table-container{background:var(--lib-forms-surface);box-shadow:var(--mscoa-elevation-1, 0 1px 3px rgba(0, 0, 0, .12));border-radius:8px;overflow:visible;width:100%;min-width:0}mat-table{width:100%;min-width:480px;background:transparent}mat-header-row{background:var(--lib-forms-surface-container);border-bottom:2px solid var(--lib-forms-outline-variant)}mat-header-row th{font-weight:600;color:var(--lib-forms-on-surface);font-size:.75rem;letter-spacing:.4px;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);line-height:1.3}.account-row{cursor:pointer;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);border-bottom:1px solid var(--lib-forms-outline-variant)}.account-row:hover:not(.deactivated-row):not(.selected-row){background-color:var(--lib-forms-primary-container)!important;box-shadow:inset 4px 0 0 var(--lib-forms-primary)}.account-row:active:not(.deactivated-row){background-color:var(--lib-forms-primary-container)!important}.account-row:focus-visible{outline:2px solid var(--sem-blue);outline-offset:-2px}.account-row td{padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);font-size:.8125rem;color:var(--lib-forms-on-surface);border-bottom:none;vertical-align:middle;line-height:1.35}.account-row td .cell-content{display:block;word-break:break-word;line-height:1.35}.selected-row{background-color:var(--lib-forms-primary)!important;color:var(--lib-forms-on-primary)!important;box-shadow:inset 4px 0 0 var(--lib-forms-primary-container),var(--mscoa-elevation-2, 0 2px 6px rgba(0, 0, 0, .12))}.selected-row td{color:var(--lib-forms-on-primary)!important;font-weight:500}.selected-row td .cell-content{color:var(--lib-forms-on-primary)!important}.selected-row button{background-color:var(--lib-forms-on-primary)!important;color:var(--lib-forms-primary)!important;font-weight:600}.selected-row button:hover{background-color:var(--lib-forms-primary-container)!important;transform:translateY(-1px);box-shadow:var(--mscoa-elevation-2, 0 2px 6px rgba(0, 0, 0, .12))}.deactivated-row{opacity:.5;cursor:not-allowed!important;background-color:var(--lib-forms-surface-container)!important}.deactivated-row:hover{background-color:var(--lib-forms-surface-container)!important;transform:none!important}.deactivated-row td{color:var(--lib-forms-on-surface-variant)!important}.no-results{text-align:center;padding:var(--mscoa-spacing-xl, 32px);color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container);border-radius:8px;margin:var(--mscoa-spacing-md, 16px)}.no-results mat-icon{font-size:3rem;height:3rem;width:3rem;margin-bottom:var(--mscoa-spacing-md, 16px);color:var(--lib-forms-on-surface-variant);opacity:.5}.cols{font-size:.875em;min-height:28px}mat-toolbar.search{background:var(--lib-forms-surface-container)!important;box-shadow:var(--mscoa-elevation-1, 0 1px 3px rgba(0, 0, 0, .12));border-radius:8px 8px 0 0;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);min-height:40px!important}mat-toolbar.search span{font-size:.8125rem;font-weight:500;color:var(--lib-forms-on-surface)}mat-paginator{background:var(--lib-forms-surface-container);border-top:1px solid var(--lib-forms-outline-variant);border-radius:0 0 8px 8px;padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px)}mat-paginator ::ng-deep .mat-mdc-paginator-container{min-height:40px}th.mat-column-selection,td.mat-column-selection{position:sticky!important;right:0!important;background:var(--lib-forms-surface-container)!important;z-index:2;box-shadow:-4px 0 8px #0000000f;min-width:90px}mat-header-row th.mat-column-selection{background:var(--lib-forms-surface-container)!important}.account-row.selected-row td.mat-column-selection{background:var(--lib-forms-primary)!important}.account-row:hover:not(.deactivated-row):not(.selected-row) td.mat-column-selection{background:var(--lib-forms-primary-container)!important}button[mat-flat-button]{transition:transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing)}button[mat-flat-button]:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--mscoa-elevation-2, 0 2px 6px rgba(0, 0, 0, .12))}button[mat-flat-button]:active:not(:disabled){transform:translateY(0)}\n"], dependencies: [{ kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i5$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i2$3.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i2$3.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i3$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3$4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { 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: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16759
17465
|
}
|
|
16760
17466
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ScoaAccountTableComponent, decorators: [{
|
|
16761
17467
|
type: Component,
|
|
@@ -17248,7 +17954,7 @@ class MscoaComputationComponent {
|
|
|
17248
17954
|
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
17249
17955
|
}
|
|
17250
17956
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MscoaComputationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17251
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaComputationComponent, isStandalone: true, selector: "lib-mscoa-computation", host: { listeners: { "keydown": "onKeydown($event)" } }, ngImport: i0, template: "<!-- Header Toolbar -->\r\n<mat-toolbar class=\"main-toolbar header-toolbar\" role=\"banner\">\r\n <span class=\"toolbar-title\">\r\n {{ (segment || 'No segment') | uppercase }} : {{ activeColumn | uppercase }} ACCOUNT\r\n </span>\r\n <span class=\"spacer\"></span>\r\n @if (selectedAccount()) {\r\n <button mat-flat-button (click)=\"clearSelectedAccount(); cancel()\" [attr.aria-label]=\"'Change account'\">\r\n <mat-icon>arrow_back</mat-icon>\r\n Change Account\r\n </button>\r\n }\r\n</mat-toolbar>\r\n\r\n<!-- Search Bar - Hidden when account selected -->\r\n@if (!selectedAccount()) {\r\n<mat-toolbar class=\"main-toolbar header-toolbar search-toolbar\" role=\"search\">\r\n <mat-form-field [subscriptSizing]=\"'dynamic'\" class=\"search-field\">\r\n <mat-label position=\"floating\">Search {{ segment || 'account' }} : {{ activeColumn || '' }} Account</mat-label>\r\n <input matInput [formControl]=\"accountSearchTextControl\"\r\n [placeholder]=\"('Search ' + segment + ' : ' + activeColumn + ' Account').toUpperCase()\"\r\n [attr.aria-label]=\"'Search for account'\" autocomplete=\"off\">\r\n <button mat-icon-button matSuffix (click)=\"clearSearch()\" [attr.aria-label]=\"'Clear search'\" type=\"button\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n</mat-toolbar>\r\n}\r\n\r\n<mat-divider></mat-divider>\r\n\r\n<!-- Account Details View -->\r\n@if (selectedAccount(); as account) {\r\n<div class=\"account-details-container\" role=\"region\" [attr.aria-label]=\"'Account details'\">\r\n <lib-account-value [accountInputs]=\"accountInputs\" [userCanClearAccount]=\"userCanClearAccount()\"\r\n [mscoaAccount]=\"account\" (updateAccount)=\"updateAccount($event)\"\r\n (clearSelectedAccount)=\"clearSelectedAccount()\">\r\n </lib-account-value>\r\n</div>\r\n} @else {\r\n<!-- Main Content Area with Drawer -->\r\n<mat-drawer-container class=\"drawer-container\" [attr.aria-label]=\"'Account selection interface'\">\r\n <!-- Account Table Drawer -->\r\n <mat-drawer #drawer class=\"account-drawer\" mode=\"side\" position=\"end\"\r\n [opened]=\"!searchingAccounts() && !!selectedTreeNode() && !accountSearchTextControl.value\">\r\n\r\n\r\n\r\n\r\n @if (searchingAccounts()) {\r\n <div class=\"loading-container skeleton-table\" role=\"status\" [attr.aria-live]=\"'polite'\">\r\n @for (item of [1,2,3,4,5]; track item) {\r\n <div class=\"skeleton-row\">\r\n <div class=\"skeleton-checkbox\"></div>\r\n <div class=\"skeleton-text short\"></div>\r\n <div class=\"skeleton-text medium\"></div>\r\n <div class=\"skeleton-text\"></div>\r\n </div>\r\n }\r\n </div>\r\n } @else if (hasError()) {\r\n <div class=\"error-container\" role=\"alert\" [attr.aria-live]=\"'assertive'\">\r\n <mat-icon class=\"error-icon\" aria-hidden=\"true\">error</mat-icon>\r\n <p class=\"error-message\">{{ errorMessage() }}</p>\r\n <button mat-flat-button color=\"primary\" (click)=\"retryLoadAccounts()\"\r\n [attr.aria-label]=\"'Retry loading accounts'\">\r\n <mat-icon aria-hidden=\"true\">refresh</mat-icon>\r\n Retry\r\n </button>\r\n </div>\r\n } @else if (searchAccounts().length === 0 && selectedTreeNode()) {\r\n <div class=\"empty-state\" role=\"status\" [attr.aria-live]=\"'polite'\">\r\n <mat-icon class=\"empty-icon\" aria-hidden=\"true\">info</mat-icon>\r\n <p class=\"empty-message\">No accounts found for this category.</p>\r\n </div>\r\n } @else {\r\n <lib-scoa-account-table [selectedAccount]=\"selectedAccount()\" [segment]=\"segment\"\r\n (accountSelected)=\"selectAccount($event)\" [data]=\"{\r\n accounts: searchAccounts(),\r\n account: currentAccountPath() || ''\r\n }\">\r\n </lib-scoa-account-table>\r\n }\r\n </mat-drawer>\r\n <!-- Tree Content Area -->\r\n <div class=\"tree-content\" role=\"main\">\r\n\r\n <!-- Search Results View -->\r\n @if (accountSearchTextControl.value) {\r\n <mat-nav-list class=\"search-results-list\" role=\"list\">\r\n <div mat-subheader class=\"search-results-header\">\r\n <mat-icon class=\"search-icon\">search</mat-icon>\r\n Search Results\r\n <span class=\"count-badge\" [attr.aria-label]=\"'Number of results'\">\r\n ({{ (searchedPaths$ | async)?.length || 0 }})\r\n </span>\r\n </div>\r\n\r\n @if ((searchedPaths$ | async)?.length === 0) {\r\n <!-- Empty Search Results -->\r\n <div class=\"empty-state\" role=\"status\" [attr.aria-live]=\"'polite'\">\r\n <mat-icon class=\"empty-icon\" aria-hidden=\"true\">search_off</mat-icon>\r\n <p class=\"empty-message\">\r\n No account found for the search\r\n <strong>{{ accountSearchTextControl.value }}</strong>.\r\n </p>\r\n <button mat-flat-button (click)=\"clearSearch()\"\r\n [attr.aria-label]=\"'Clear search and show all accounts'\">\r\n Clear Search\r\n </button>\r\n </div>\r\n } @else {\r\n <p class=\"search-results-hint\">Click a result to load accounts for that category.</p>\r\n <div class=\"search-results-grid\" role=\"list\">\r\n @for (searchedItem of (searchedPaths$ | async); track searchedItem.join(':')) {\r\n\r\n @defer (on viewport) {\r\n <div class=\"path-result-item\" role=\"listitem\" (click)=\"selectPath(searchedItem)\"\r\n [attr.aria-label]=\"'Load accounts for: ' + searchedItem.join(' > ') + '. Click to select.'\"\r\n tabindex=\"0\" (keydown.enter)=\"selectPath(searchedItem)\"\r\n (keydown.space)=\"selectPath(searchedItem); $event.preventDefault()\">\r\n <div class=\"breadcrumb-container\">\r\n @for (part of searchedItem; track $index; let last = $last) {\r\n <div class=\"crumb-segment\" [class.is-target]=\"last\">\r\n <span class=\"text-content\"\r\n [innerHTML]=\"accountSearchTextControl.value ? highlightSearchText(part, accountSearchTextControl.value) : part\">\r\n </span>\r\n @if (!last) {\r\n <mat-icon class=\"separator\" aria-hidden=\"true\">chevron_right</mat-icon>\r\n }\r\n </div>\r\n }\r\n </div>\r\n <span class=\"path-result-meta\">Load accounts</span>\r\n <mat-icon class=\"path-result-arrow\" aria-hidden=\"true\">arrow_forward</mat-icon>\r\n </div>\r\n }@placeholder {\r\n <div class=\"mat-spinner-container\">\r\n <mat-spinner diameter=\"16\" color=\"primary\" aria-label=\"Loading search result\"></mat-spinner>\r\n </div>\r\n\r\n }\r\n\r\n }\r\n </div>\r\n }\r\n </mat-nav-list>\r\n }\r\n\r\n <!-- Tree View -->\r\n @else {\r\n <!-- Breadcrumb: show current path when category selected (like file explorers) -->\r\n @if (selectedTreeNode()?.path?.length) {\r\n <div class=\"tree-breadcrumb\" role=\"navigation\"\r\n [attr.aria-label]=\"'Current category: ' + (selectedTreeNode()?.path ?? []).join(' > ')\">\r\n <span class=\"breadcrumb-label\">Category:</span>\r\n @for (part of (selectedTreeNode()?.path ?? []); track $index; let last = $last) {\r\n <span class=\"breadcrumb-part\" [class.is-current]=\"last\">{{ part }}</span>\r\n @if (!last) {\r\n <mat-icon class=\"breadcrumb-sep\" aria-hidden=\"true\">chevron_right</mat-icon>\r\n }\r\n }\r\n </div>\r\n }\r\n <!-- Compact Instructions - Collapsed by default -->\r\n @if (noneIsExpanded()) {\r\n <mat-expansion-panel [expanded]=\"false\" class=\"instructions-panel compact-instructions\"\r\n [attr.aria-label]=\"'How to use the account selector'\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <mat-icon class=\"instruction-icon\" aria-hidden=\"true\">info</mat-icon>\r\n <span>Quick tips</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"instructions-content\">\r\n <div class=\"instruction-item\">\r\n <mat-icon class=\"instruction-bullet\" aria-hidden=\"true\">folder_open</mat-icon>\r\n <span>Expand folders to browse</span>\r\n </div>\r\n <div class=\"instruction-item\">\r\n <mat-icon class=\"instruction-bullet\" aria-hidden=\"true\">check_box</mat-icon>\r\n <span>Check category to load accounts</span>\r\n </div>\r\n <div class=\"instruction-item\">\r\n <mat-icon class=\"instruction-bullet\" aria-hidden=\"true\">search</mat-icon>\r\n <span>Use search bar to find accounts</span>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n\r\n <!-- Account Tree -->\r\n <mat-tree [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" role=\"tree\"\r\n [attr.aria-label]=\"'Account category tree'\">\r\n\r\n <!-- Leaf Node (no children) -->\r\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding role=\"treeitem\"\r\n [attr.data-tree-path]=\"node.path?.join(':')\">\r\n <button class=\"toggle-button\" mat-icon-button disabled aria-hidden=\"true\">\r\n </button>\r\n <mat-checkbox (change)=\"selectNode(node)\"\r\n [disabled]=\"isActivePathOrParent(node.path) && searchingAccounts()\"\r\n [checked]=\"isActivePathOrParent(node.path)\"\r\n [attr.aria-label]=\"'Select ' + node.name + ' account category'\">\r\n @if (isActivePathOrParent(node.path) && searchingAccounts()) {\r\n <mat-spinner color=\"primary\" class=\"loading\"\r\n [attr.aria-label]=\"'Loading accounts for ' + node.name\">\r\n </mat-spinner>\r\n <span class=\"label selected\" [attr.aria-live]=\"'polite'\">\r\n Loading <strong>{{ node.name }}</strong> accounts...\r\n </span>\r\n } @else {\r\n <span class=\"label\" [class.selected]=\"isActivePathOrParent(node.path)\">\r\n {{ node.name }}\r\n </span>\r\n }\r\n </mat-checkbox>\r\n </mat-tree-node>\r\n\r\n <!-- Branch Node (has children) -->\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding role=\"treeitem\"\r\n [attr.data-tree-path]=\"node.path?.join(':')\" [attr.aria-expanded]=\"treeControl.isExpanded(node)\">\r\n <button class=\"toggle-button\" mat-icon-button\r\n [attr.aria-label]=\"(treeControl.isExpanded(node) ? 'Collapse' : 'Expand') + ' ' + node.name\"\r\n (click)=\"toggleNode(node)\" type=\"button\">\r\n <mat-icon class=\"mat-icon-rtl-mirror\">\r\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\r\n </mat-icon>\r\n </button>\r\n\r\n @if (isActivePathOrParent(node.path)) {\r\n <mat-checkbox (change)=\"selectNode(node)\" [disabled]=\"true\" [checked]=\"true\"\r\n [attr.aria-label]=\"'Selected: ' + node.name\">\r\n <span class=\"label selected\">\r\n {{ node.name }}\r\n </span>\r\n </mat-checkbox>\r\n } @else {\r\n <mat-checkbox (change)=\"selectNode(node)\" [checked]=\"false\"\r\n [attr.aria-label]=\"'Select ' + node.name + ' account category'\">\r\n <span class=\"label\">\r\n {{ node.name }}\r\n </span>\r\n </mat-checkbox>\r\n }\r\n </mat-tree-node>\r\n </mat-tree>\r\n }\r\n\r\n </div>\r\n</mat-drawer-container>\r\n}\r\n\r\n<mat-divider></mat-divider>\r\n\r\n<!-- Footer Actions -->\r\n<mat-dialog-actions style=\" background: var(--mscoa-surface-container) !important;\" align=\"end\">\r\n <button class=\"action-button close-button\" mat-button (click)=\"closeAndPassData(undefined)\"\r\n [attr.aria-label]=\"'Close dialog without saving'\" type=\"button\">\r\n\r\n Close\r\n </button>\r\n @if (userCanClearAccount() ) {\r\n <button class=\"action-button save-button\" mat-flat-button [disabled]=\"!saveSelection()\" (click)=\"saveAccount()\"\r\n [attr.aria-label]=\"saveSelection() ? 'Save account selection' : 'Save disabled - account unchanged or invalid'\"\r\n type=\"button\">\r\n <mat-icon aria-hidden=\"true\">save</mat-icon>\r\n Save\r\n </button>\r\n }\r\n\r\n</mat-dialog-actions>\r\n", styles: [":host{display:flex;flex-direction:column;max-height:98vh;overflow:hidden;min-height:0;--mscoa-primary: var(--lib-forms-primary);--mscoa-primary-light: var(--lib-forms-primary-container);--mscoa-primary-dark: var(--lib-forms-primary);--mscoa-success: var(--sem-success);--mscoa-error: var(--sem-error);--mscoa-warning: var(--sem-warning);--mscoa-info: var(--sem-info);--mscoa-surface: var(--lib-forms-surface);--mscoa-surface-container: var(--lib-forms-surface-container);--mscoa-text-primary: var(--lib-forms-on-surface);--mscoa-text-secondary: var(--lib-forms-on-surface-variant);--mscoa-divider: var(--lib-forms-outline-variant);--mscoa-spacing-xs: 4px;--mscoa-spacing-sm: 8px;--mscoa-spacing-md: 16px;--mscoa-spacing-lg: 24px;--mscoa-spacing-xl: 32px;--mscoa-elevation-1: 0 1px 3px rgba(0,0,0,.12);--mscoa-elevation-2: 0 2px 6px rgba(0,0,0,.12);--mscoa-elevation-4: 0 4px 12px rgba(0,0,0,.12);--mscoa-computation-spacing-xs: var(--mscoa-spacing-xs);--mscoa-computation-spacing-sm: var(--mscoa-spacing-sm);--mscoa-computation-spacing-md: var(--mscoa-spacing-md);--mscoa-computation-spacing-lg: var(--mscoa-spacing-lg);--mscoa-computation-toolbar-height: 56px;--mscoa-header-height: 56px;--mscoa-search-height: 56px;--mscoa-footer-height: 58px;--mscoa-divider-height: 1px;--mscoa-computation-selected-color: var(--mscoa-primary);--mscoa-computation-border-radius: 16px;--mscoa-computation-transition: var(--lib-forms-duration-hover) var(--lib-forms-easing)}mat-divider{flex-shrink:0}h4{margin-top:0;margin-bottom:0;padding-left:var(--mscoa-computation-spacing-md)}.label{font-size:.875em}:host .selected{color:var(--mscoa-primary);font-weight:600;background-color:transparent}.mat-tree-node.tree-node-selected,.mat-tree-node[aria-selected=true]{background:linear-gradient(90deg,var(--lib-forms-primary-container) 0%,transparent 100%)!important;box-shadow:inset 3px 0 0 var(--lib-forms-primary);border-radius:0 4px 4px 0}.mat-tree-node:hover:not(.tree-node-selected):not(:has(.selected)){background-color:#00000008;transition:background-color var(--mscoa-computation-transition)}mat-tree-node{transition:background-color var(--mscoa-computation-transition)}mat-tree-node:has(.selected){background:linear-gradient(90deg,var(--lib-forms-primary-container) 0%,transparent 100%)!important;box-shadow:inset 3px 0 0 var(--lib-forms-primary);border-radius:0 4px 4px 0}mat-tree-node:hover:not(:has(.selected)){background-color:#00000008}mat-tree-node mat-checkbox[checked=true] ::ng-deep .mdc-checkbox{background-color:var(--mscoa-primary)!important;border-color:var(--mscoa-primary)!important}.accountSeperator{margin-left:var(--mscoa-computation-spacing-xs);margin-right:var(--mscoa-computation-spacing-xs)}.loading{width:24px!important;height:24px!important;--mdc-circular-progress-size: 28px !important;--mdc-circular-progress-active-indicator-width: 24px !important;position:absolute;left:var(--mscoa-computation-spacing-sm);bottom:var(--mscoa-computation-spacing-sm)}.info{font-size:.875rem;opacity:.8;padding-left:var(--mscoa-computation-spacing-md);border-radius:4px;margin-top:10px;line-height:1.6;max-width:500px}.info strong{opacity:1}.toggle-button{height:28px;width:28px;padding:0;margin-right:var(--mscoa-computation-spacing-xs);margin-left:var(--mscoa-computation-spacing-xs)}.toggle-button:focus-visible{outline:2px solid var(--mscoa-computation-selected-color);outline-offset:2px;border-radius:4px}mat-tree{flex:1;min-height:280px;min-width:0;overflow:auto;padding:var(--mscoa-computation-spacing-md)!important;background:none}mat-tree::-webkit-scrollbar{width:8px;height:8px}mat-tree::-webkit-scrollbar-track{background:var(--mscoa-surface-container);border-radius:4px}mat-tree::-webkit-scrollbar-thumb{background:var(--mscoa-text-secondary);border-radius:4px;opacity:.5}mat-tree::-webkit-scrollbar-thumb:hover{opacity:.8;background:var(--mscoa-primary)}mat-tree{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}mat-tree-node{display:flex;align-items:flex-start;min-height:28px;padding-right:var(--mscoa-computation-spacing-md)!important;padding-top:2px!important;padding-bottom:2px!important;box-sizing:border-box;width:100%;transition:background-color var(--mscoa-computation-transition)}mat-tree-node:focus-visible{outline:2px solid var(--mscoa-computation-selected-color);outline-offset:-2px;border-radius:4px}mat-tree-node:hover:not(:has(.selected)){background-color:#0000000a}.mat-tree-node{display:flex;align-items:center;flex-wrap:nowrap;min-height:28px;padding:var(--mscoa-computation-spacing-xs) 0;box-sizing:border-box;transition:background-color var(--mscoa-computation-transition),border-color var(--mscoa-computation-transition);border-radius:4px;margin:1px 0}.mat-tree-node:hover:not(.tree-node-selected):not(:has(.selected)){background-color:#0000000a}.mat-tree-node button,.mat-tree-node mat-checkbox{flex-shrink:0;height:28px}.mat-tree-node mat-checkbox{display:flex;align-items:center;height:28px;min-height:fit-content;flex:1;min-width:0}.mat-tree-node .label{flex:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;overflow:visible}.header-toolbar{flex-shrink:0;background:var(--mscoa-surface-container)!important;box-shadow:var(--mscoa-elevation-2);border-bottom:1px solid var(--mscoa-divider)}.glass{background:#ffffff26;box-shadow:0 4px 30px #0000001a;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.2)}@media(prefers-reduced-motion:reduce){.glass{backdrop-filter:none;-webkit-backdrop-filter:none}}.main-toolbar{min-width:0;padding-top:var(--mscoa-computation-spacing-md);min-height:var(--mscoa-computation-toolbar-height);overflow:hidden}.main-toolbar .toolbar-title{font-size:18px;font-weight:500;color:var(--mscoa-text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-toolbar{flex-shrink:0;height:var(--mscoa-computation-toolbar-height);min-width:0;overflow:hidden}.search-toolbar .search-field{flex:1;width:100%;max-width:100%;min-width:0;border-radius:var(--mscoa-computation-border-radius);overflow:clip}.search-toolbar .search-field.search-disabled ::ng-deep .mat-mdc-text-field-wrapper{background-color:var(--mscoa-surface-container)!important;border:1px dashed var(--mscoa-divider)}.search-toolbar .search-field.search-disabled ::ng-deep .mat-mdc-form-field-label{color:var(--mscoa-text-secondary)!important}.search-toolbar .search-field.search-disabled ::ng-deep input{cursor:not-allowed;color:var(--mscoa-text-secondary)!important}.search-toolbar .search-field.search-disabled ::ng-deep button{opacity:.5;cursor:not-allowed}.search-toolbar .search-field.search-disabled ::ng-deep .mat-mdc-form-field-hint{color:var(--mscoa-text-secondary);font-size:.75rem}.tree-breadcrumb{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:var(--mscoa-spacing-xs, 4px);padding:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px);margin:0 var(--mscoa-spacing-md, 16px) var(--mscoa-spacing-sm, 8px);background:var(--mscoa-surface-container);border-radius:6px;border-left:3px solid var(--mscoa-primary);font-size:.8125rem;line-height:1.4;max-width:500px}.tree-breadcrumb .breadcrumb-label{color:var(--mscoa-text-secondary);font-weight:500;margin-right:var(--mscoa-spacing-xs, 4px)}.tree-breadcrumb .breadcrumb-part{color:var(--mscoa-text-primary)}.tree-breadcrumb .breadcrumb-part.is-current{font-weight:600;color:var(--mscoa-primary)}.tree-breadcrumb .breadcrumb-sep{font-size:16px;width:16px;height:16px;color:var(--mscoa-text-secondary);margin:0 var(--mscoa-spacing-xs, 4px)}.search-results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--mscoa-spacing-sm, 8px);overflow-y:auto;flex:1;min-height:0;padding:var(--mscoa-spacing-xs, 4px) 0}.search-results-grid::-webkit-scrollbar{width:6px}.search-results-grid::-webkit-scrollbar-track{background:var(--mscoa-surface-container);border-radius:3px}.search-results-grid::-webkit-scrollbar-thumb{background:var(--mscoa-text-secondary);border-radius:3px;opacity:.5}.search-results-grid::-webkit-scrollbar-thumb:hover{opacity:.8;background:var(--mscoa-primary)}.search-results-grid{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}.path-result-item{cursor:pointer;transition:background-color var(--mscoa-computation-transition);min-height:56px;padding:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px);padding-right:40px;border-radius:8px;border:1px solid var(--mscoa-divider);background:var(--mscoa-surface);display:flex;flex-direction:column;gap:4px;align-items:flex-start;position:relative}.path-result-item:hover,.path-result-item:focus-visible{background-color:var(--mat-sys-surface-container, rgba(0, 0, 0, .04));outline:none}.path-result-item:hover .breadcrumb-container,.path-result-item:focus-visible .breadcrumb-container{flex-wrap:wrap}.path-result-item:hover .breadcrumb-container .text-content,.path-result-item:focus-visible .breadcrumb-container .text-content{white-space:normal;max-width:none}.path-result-item:focus-visible{outline:2px solid var(--mscoa-computation-selected-color);outline-offset:-2px}.path-result-arrow{position:absolute;right:var(--mscoa-spacing-sm);top:50%;transform:translateY(-50%);font-size:18px;width:18px;height:18px;color:var(--mat-sys-on-surface-variant, var(--mscoa-text-secondary))}.breadcrumb-container{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;width:100%}.crumb-segment{display:flex;align-items:center;color:var(--mscoa-text-secondary);white-space:nowrap;overflow:hidden;max-width:100%}.crumb-segment .text-content{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:150px;vertical-align:middle}.crumb-segment .separator{font-size:1em;height:16px;width:16px;margin:0 var(--mscoa-computation-spacing-xs);color:var(--mscoa-divider);flex-shrink:0}.crumb-segment.is-target{color:var(--mscoa-text-primary);font-weight:500;flex-shrink:0}.crumb-segment.is-target .text-content{color:var(--mscoa-text-primary);max-width:none}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--mscoa-computation-spacing-lg);text-align:center;gap:var(--mscoa-computation-spacing-md)}.empty-state .empty-icon{font-size:48px;width:48px;height:48px;opacity:.5}.empty-state .empty-message{margin:0;font-size:14px}.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--mscoa-computation-spacing-lg);text-align:center;gap:var(--mscoa-computation-spacing-md)}.error-container .error-icon{font-size:48px;width:48px;height:48px;color:var(--mat-sys-error)}.error-container .error-message{margin:0;font-size:14px;color:var(--mat-sys-error)}mark{background-color:var(--sem-warning);color:inherit;padding:0;font-weight:500}.instructions-panel{flex-shrink:0;margin:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px);margin-bottom:var(--mscoa-spacing-xs, 4px);box-shadow:var(--mscoa-elevation-1);border-radius:6px;overflow:hidden;background:var(--mscoa-surface-container);transition:box-shadow var(--mscoa-computation-transition)}.instructions-panel.compact-instructions ::ng-deep .mat-expansion-panel-header{padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px)!important;min-height:40px!important;height:auto!important}.instructions-panel.compact-instructions ::ng-deep .mat-expansion-panel-body{padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px)!important}.instructions-panel:hover{box-shadow:var(--mscoa-elevation-2)}.instructions-panel ::ng-deep .mat-expansion-panel-header{padding:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px);background:var(--mscoa-surface-container)!important}.instructions-panel ::ng-deep .mat-expansion-panel-header:hover{background:var(--mscoa-surface)!important}.instructions-panel ::ng-deep .mat-expansion-panel-body{padding:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px)!important;background:var(--mscoa-surface)}.instructions-panel .instruction-icon{margin-right:var(--mscoa-spacing-xs, 4px);color:var(--mscoa-info);font-size:18px;width:18px;height:18px}.instructions-panel .instructions-content{padding:var(--mscoa-spacing-xs, 4px) 0;display:flex;flex-direction:column;gap:var(--mscoa-spacing-xs, 4px)}.instructions-panel .instruction-item{display:flex;align-items:center;gap:var(--mscoa-spacing-xs, 4px);font-size:.75rem;line-height:1.4;padding:var(--mscoa-spacing-xs, 4px);border-radius:4px;transition:background-color var(--mscoa-computation-transition)}.instructions-panel .instruction-item:hover{background-color:var(--mscoa-primary-light)}.instructions-panel .instruction-item .instruction-bullet{font-size:16px;width:16px;height:16px;color:var(--mscoa-primary);flex-shrink:0}.instructions-panel .instruction-item span{flex:1}.instructions-panel .instruction-item span strong{font-weight:600}.search-results-header{display:flex;align-items:center;gap:var(--mscoa-computation-spacing-sm)}.search-results-header .search-icon{margin-right:var(--mscoa-computation-spacing-sm)}.search-results-list{padding:var(--mscoa-computation-spacing-md);display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.search-results-hint{font-size:.75rem;color:var(--mscoa-text-secondary);margin:0 var(--mscoa-spacing-md, 16px) var(--mscoa-spacing-sm, 8px);padding:var(--mscoa-spacing-xs, 4px) 0}.path-result-meta{font-size:.6875rem;color:var(--mscoa-text-secondary);letter-spacing:.3px}.mat-mdc-subheader{position:sticky;top:0;z-index:10;background:var(--mat-sys-surface-container)}.count-badge{margin-left:auto;font-weight:400;opacity:.7;font-size:.9em}.drawer-container{flex:1;min-height:0;overflow:hidden;max-width:100%;background:var(--mat-sys-surface-container)!important;display:flex}.drawer-container ::ng-deep .mat-drawer-content{min-height:0;overflow:auto;height:calc(100vh - 220px);flex:1 1 30%;min-width:260px}.account-drawer{min-width:420px;max-width:min(700px,65vw)!important;width:520px!important;overflow:hidden;display:flex;flex-direction:column;background:var(--mat-sys-surface-container)!important;padding:var(--mscoa-computation-spacing-md)}.account-drawer app-scoa-account-table{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}.account-drawer .loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--mscoa-computation-spacing-lg);gap:var(--mscoa-computation-spacing-md)}.account-drawer .loading-container p{margin:0;font-size:.875rem}.skeleton-row{display:flex;align-items:center;padding:var(--mscoa-spacing-sm) var(--mscoa-spacing-md);gap:var(--mscoa-spacing-md);animation:skeleton-pulse 1.5s ease-in-out infinite}.skeleton-row .skeleton-checkbox{width:20px;height:20px;border-radius:4px;background:linear-gradient(90deg,var(--lib-forms-surface-container) 25%,var(--lib-forms-outline-variant) 50%,var(--lib-forms-surface-container) 75%);background-size:200% 100%}.skeleton-row .skeleton-text{flex:1;height:16px;border-radius:4px;background:linear-gradient(90deg,var(--lib-forms-surface-container) 25%,var(--lib-forms-outline-variant) 50%,var(--lib-forms-surface-container) 75%);background-size:200% 100%}.skeleton-row .skeleton-text.short{width:60%}.skeleton-row .skeleton-text.medium{width:80%}@keyframes skeleton-pulse{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-table .skeleton-row{border-bottom:1px solid var(--mscoa-divider)}.skeleton-table .skeleton-row:last-child{border-bottom:none}.account-details-container{flex:1;min-height:0;max-width:520px;margin:0 auto;width:100%;background:#ffffff1c;-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px);padding:var(--mscoa-spacing-xs, 4px);border:1px solid rgba(255,255,255,.3);border:1px solid var(--mscoa-divider);border-radius:8px;overflow-y:auto}.account-details-container::-webkit-scrollbar{width:6px}.account-details-container::-webkit-scrollbar-track{background:var(--mscoa-surface-container);border-radius:3px}.account-details-container::-webkit-scrollbar-thumb{background:var(--mscoa-text-secondary);border-radius:3px;opacity:.5}.account-details-container::-webkit-scrollbar-thumb:hover{opacity:.8;background:var(--mscoa-primary)}.account-details-container{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}.account-details-container ::ng-deep app-account-value{max-width:100%}.account-details-container ::ng-deep app-account-value mat-toolbar{background:var(--mat-sys-surface-container, var(--mscoa-surface-container))!important;box-shadow:var(--mscoa-elevation-1);margin-bottom:0;border-radius:8px 8px 0 0}.account-details-container ::ng-deep app-account-value .account-grid{gap:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);padding:var(--mscoa-spacing-sm, 8px);background:var(--mat-sys-surface, var(--mscoa-surface));border-radius:0 0 8px 8px;box-shadow:var(--mscoa-elevation-1)}.tree-content{min-height:280px;flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;padding-right:var(--mscoa-computation-spacing-sm)}.footer-toolbar{flex-shrink:0;height:fit-content;padding-top:var(--mscoa-computation-spacing-md)!important;padding-bottom:var(--mscoa-computation-spacing-md)!important;min-height:58px;box-shadow:0 -2px 8px #0000000d}.footer-toolbar .footer-actions{display:flex;width:100%;gap:var(--mscoa-computation-spacing-sm);flex-direction:column;min-height:58px}.footer-toolbar .footer-actions .action-button{width:100%;font-weight:500;transition:transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing)}.footer-toolbar .footer-actions .action-button:focus-visible{outline:2px solid var(--mscoa-computation-selected-color);outline-offset:2px}.footer-toolbar .footer-actions .action-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--mscoa-elevation-2)}.footer-toolbar .footer-actions .action-button:active:not(:disabled){transform:translateY(0)}.footer-toolbar .footer-actions .action-button[disabled]{opacity:.5;cursor:not-allowed}.footer-toolbar .footer-actions .save-button{background-color:var(--mscoa-primary)!important;color:var(--lib-forms-on-primary)!important}@media(min-width:768px){.footer-actions{flex-direction:row}.footer-actions .action-button{width:auto;min-width:120px}.drawer-container{display:flex}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3$3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i5$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "directive", type: i6.MatListSubheaderCssMatStyler, selector: "[mat-subheader], [matSubheader]" }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i10$1.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: i10$1.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatTreeModule }, { kind: "directive", type: i1$5.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i1$5.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { kind: "component", type: i1$5.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i1$5.MatTreeNode, selector: "mat-tree-node", inputs: ["tabIndex", "disabled"], outputs: ["activation", "expandedChange"], exportAs: ["matTreeNode"] }, { kind: "component", type: AccountValueComponent, selector: "lib-account-value", inputs: ["mscoaAccount", "accountInputs", "userCanClearAccount"], outputs: ["clearSelectedAccount", "updateAccount"] }, { kind: "component", type: ScoaAccountTableComponent, selector: "lib-scoa-account-table", inputs: ["data", "selectedAccount", "segment"], outputs: ["accountSelected"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: UpperCasePipe, name: "uppercase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i3$1.MatIcon]] }); }
|
|
17957
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaComputationComponent, isStandalone: true, selector: "lib-mscoa-computation", host: { listeners: { "keydown": "onKeydown($event)" } }, ngImport: i0, template: "<!-- Header Toolbar -->\r\n<mat-toolbar class=\"main-toolbar header-toolbar\" role=\"banner\">\r\n <span class=\"toolbar-title\">\r\n {{ (segment || 'No segment') | uppercase }} : {{ activeColumn | uppercase }} ACCOUNT\r\n </span>\r\n <span class=\"spacer\"></span>\r\n @if (selectedAccount()) {\r\n <button mat-flat-button (click)=\"clearSelectedAccount(); cancel()\" [attr.aria-label]=\"'Change account'\">\r\n <mat-icon>arrow_back</mat-icon>\r\n Change Account\r\n </button>\r\n }\r\n</mat-toolbar>\r\n\r\n<!-- Search Bar - Hidden when account selected -->\r\n@if (!selectedAccount()) {\r\n<mat-toolbar class=\"main-toolbar header-toolbar search-toolbar\" role=\"search\">\r\n <mat-form-field [subscriptSizing]=\"'dynamic'\" class=\"search-field\">\r\n <mat-label position=\"floating\">Search {{ segment || 'account' }} : {{ activeColumn || '' }} Account</mat-label>\r\n <input matInput [formControl]=\"accountSearchTextControl\"\r\n [placeholder]=\"('Search ' + segment + ' : ' + activeColumn + ' Account').toUpperCase()\"\r\n [attr.aria-label]=\"'Search for account'\" autocomplete=\"off\">\r\n <button mat-icon-button matSuffix (click)=\"clearSearch()\" [attr.aria-label]=\"'Clear search'\" type=\"button\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n</mat-toolbar>\r\n}\r\n\r\n<mat-divider></mat-divider>\r\n\r\n<!-- Account Details View -->\r\n@if (selectedAccount(); as account) {\r\n<div class=\"account-details-container\" role=\"region\" [attr.aria-label]=\"'Account details'\">\r\n <lib-account-value [accountInputs]=\"accountInputs\" [userCanClearAccount]=\"userCanClearAccount()\"\r\n [mscoaAccount]=\"account\" (updateAccount)=\"updateAccount($event)\"\r\n (clearSelectedAccount)=\"clearSelectedAccount()\">\r\n </lib-account-value>\r\n</div>\r\n} @else {\r\n<!-- Main Content Area with Drawer -->\r\n<mat-drawer-container class=\"drawer-container\" [attr.aria-label]=\"'Account selection interface'\">\r\n <!-- Account Table Drawer -->\r\n <mat-drawer #drawer class=\"account-drawer\" mode=\"side\" position=\"end\"\r\n [opened]=\"!searchingAccounts() && !!selectedTreeNode() && !accountSearchTextControl.value\">\r\n\r\n\r\n\r\n\r\n @if (searchingAccounts()) {\r\n <div class=\"loading-container skeleton-table\" role=\"status\" [attr.aria-live]=\"'polite'\">\r\n @for (item of [1,2,3,4,5]; track item) {\r\n <div class=\"skeleton-row\">\r\n <div class=\"skeleton-checkbox\"></div>\r\n <div class=\"skeleton-text short\"></div>\r\n <div class=\"skeleton-text medium\"></div>\r\n <div class=\"skeleton-text\"></div>\r\n </div>\r\n }\r\n </div>\r\n } @else if (hasError()) {\r\n <div class=\"error-container\" role=\"alert\" [attr.aria-live]=\"'assertive'\">\r\n <mat-icon class=\"error-icon\" aria-hidden=\"true\">error</mat-icon>\r\n <p class=\"error-message\">{{ errorMessage() }}</p>\r\n <button mat-flat-button color=\"primary\" (click)=\"retryLoadAccounts()\"\r\n [attr.aria-label]=\"'Retry loading accounts'\">\r\n <mat-icon aria-hidden=\"true\">refresh</mat-icon>\r\n Retry\r\n </button>\r\n </div>\r\n } @else if (searchAccounts().length === 0 && selectedTreeNode()) {\r\n <div class=\"empty-state\" role=\"status\" [attr.aria-live]=\"'polite'\">\r\n <mat-icon class=\"empty-icon\" aria-hidden=\"true\">info</mat-icon>\r\n <p class=\"empty-message\">No accounts found for this category.</p>\r\n </div>\r\n } @else {\r\n <lib-scoa-account-table [selectedAccount]=\"selectedAccount()\" [segment]=\"segment\"\r\n (accountSelected)=\"selectAccount($event)\" [data]=\"{\r\n accounts: searchAccounts(),\r\n account: currentAccountPath() || ''\r\n }\">\r\n </lib-scoa-account-table>\r\n }\r\n </mat-drawer>\r\n <!-- Tree Content Area -->\r\n <div class=\"tree-content\" role=\"main\">\r\n\r\n <!-- Search Results View -->\r\n @if (accountSearchTextControl.value) {\r\n <mat-nav-list class=\"search-results-list\" role=\"list\">\r\n <div mat-subheader class=\"search-results-header\">\r\n <mat-icon class=\"search-icon\">search</mat-icon>\r\n Search Results\r\n <span class=\"count-badge\" [attr.aria-label]=\"'Number of results'\">\r\n ({{ (searchedPaths$ | async)?.length || 0 }})\r\n </span>\r\n </div>\r\n\r\n @if ((searchedPaths$ | async)?.length === 0) {\r\n <!-- Empty Search Results -->\r\n <div class=\"empty-state\" role=\"status\" [attr.aria-live]=\"'polite'\">\r\n <mat-icon class=\"empty-icon\" aria-hidden=\"true\">search_off</mat-icon>\r\n <p class=\"empty-message\">\r\n No account found for the search\r\n <strong>{{ accountSearchTextControl.value }}</strong>.\r\n </p>\r\n <button mat-flat-button (click)=\"clearSearch()\"\r\n [attr.aria-label]=\"'Clear search and show all accounts'\">\r\n Clear Search\r\n </button>\r\n </div>\r\n } @else {\r\n <p class=\"search-results-hint\">Click a result to load accounts for that category.</p>\r\n <div class=\"search-results-grid\" role=\"list\">\r\n @for (searchedItem of (searchedPaths$ | async); track searchedItem.join(':')) {\r\n\r\n @defer (on viewport) {\r\n <div class=\"path-result-item\" role=\"listitem\" (click)=\"selectPath(searchedItem)\"\r\n [attr.aria-label]=\"'Load accounts for: ' + searchedItem.join(' > ') + '. Click to select.'\"\r\n tabindex=\"0\" (keydown.enter)=\"selectPath(searchedItem)\"\r\n (keydown.space)=\"selectPath(searchedItem); $event.preventDefault()\">\r\n <div class=\"breadcrumb-container\">\r\n @for (part of searchedItem; track $index; let last = $last) {\r\n <div class=\"crumb-segment\" [class.is-target]=\"last\">\r\n <span class=\"text-content\"\r\n [innerHTML]=\"accountSearchTextControl.value ? highlightSearchText(part, accountSearchTextControl.value) : part\">\r\n </span>\r\n @if (!last) {\r\n <mat-icon class=\"separator\" aria-hidden=\"true\">chevron_right</mat-icon>\r\n }\r\n </div>\r\n }\r\n </div>\r\n <span class=\"path-result-meta\">Load accounts</span>\r\n <mat-icon class=\"path-result-arrow\" aria-hidden=\"true\">arrow_forward</mat-icon>\r\n </div>\r\n }@placeholder {\r\n <div class=\"mat-spinner-container\">\r\n <mat-spinner diameter=\"16\" color=\"primary\" aria-label=\"Loading search result\"></mat-spinner>\r\n </div>\r\n\r\n }\r\n\r\n }\r\n </div>\r\n }\r\n </mat-nav-list>\r\n }\r\n\r\n <!-- Tree View -->\r\n @else {\r\n <!-- Breadcrumb: show current path when category selected (like file explorers) -->\r\n @if (selectedTreeNode()?.path?.length) {\r\n <div class=\"tree-breadcrumb\" role=\"navigation\"\r\n [attr.aria-label]=\"'Current category: ' + (selectedTreeNode()?.path ?? []).join(' > ')\">\r\n <span class=\"breadcrumb-label\">Category:</span>\r\n @for (part of (selectedTreeNode()?.path ?? []); track $index; let last = $last) {\r\n <span class=\"breadcrumb-part\" [class.is-current]=\"last\">{{ part }}</span>\r\n @if (!last) {\r\n <mat-icon class=\"breadcrumb-sep\" aria-hidden=\"true\">chevron_right</mat-icon>\r\n }\r\n }\r\n </div>\r\n }\r\n <!-- Compact Instructions - Collapsed by default -->\r\n @if (noneIsExpanded()) {\r\n <mat-expansion-panel [expanded]=\"false\" class=\"instructions-panel compact-instructions\"\r\n [attr.aria-label]=\"'How to use the account selector'\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <mat-icon class=\"instruction-icon\" aria-hidden=\"true\">info</mat-icon>\r\n <span>Quick tips</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"instructions-content\">\r\n <div class=\"instruction-item\">\r\n <mat-icon class=\"instruction-bullet\" aria-hidden=\"true\">folder_open</mat-icon>\r\n <span>Expand folders to browse</span>\r\n </div>\r\n <div class=\"instruction-item\">\r\n <mat-icon class=\"instruction-bullet\" aria-hidden=\"true\">check_box</mat-icon>\r\n <span>Check category to load accounts</span>\r\n </div>\r\n <div class=\"instruction-item\">\r\n <mat-icon class=\"instruction-bullet\" aria-hidden=\"true\">search</mat-icon>\r\n <span>Use search bar to find accounts</span>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n\r\n <!-- Account Tree -->\r\n <mat-tree [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" role=\"tree\"\r\n [attr.aria-label]=\"'Account category tree'\">\r\n\r\n <!-- Leaf Node (no children) -->\r\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding role=\"treeitem\"\r\n [attr.data-tree-path]=\"node.path?.join(':')\">\r\n <button class=\"toggle-button\" mat-icon-button disabled aria-hidden=\"true\">\r\n </button>\r\n <mat-checkbox (change)=\"selectNode(node)\"\r\n [disabled]=\"isActivePathOrParent(node.path) && searchingAccounts()\"\r\n [checked]=\"isActivePathOrParent(node.path)\"\r\n [attr.aria-label]=\"'Select ' + node.name + ' account category'\">\r\n @if (isActivePathOrParent(node.path) && searchingAccounts()) {\r\n <mat-spinner color=\"primary\" class=\"loading\"\r\n [attr.aria-label]=\"'Loading accounts for ' + node.name\">\r\n </mat-spinner>\r\n <span class=\"label selected\" [attr.aria-live]=\"'polite'\">\r\n Loading <strong>{{ node.name }}</strong> accounts...\r\n </span>\r\n } @else {\r\n <span class=\"label\" [class.selected]=\"isActivePathOrParent(node.path)\">\r\n {{ node.name }}\r\n </span>\r\n }\r\n </mat-checkbox>\r\n </mat-tree-node>\r\n\r\n <!-- Branch Node (has children) -->\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding role=\"treeitem\"\r\n [attr.data-tree-path]=\"node.path?.join(':')\" [attr.aria-expanded]=\"treeControl.isExpanded(node)\">\r\n <button class=\"toggle-button\" mat-icon-button\r\n [attr.aria-label]=\"(treeControl.isExpanded(node) ? 'Collapse' : 'Expand') + ' ' + node.name\"\r\n (click)=\"toggleNode(node)\" type=\"button\">\r\n <mat-icon class=\"mat-icon-rtl-mirror\">\r\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\r\n </mat-icon>\r\n </button>\r\n\r\n @if (isActivePathOrParent(node.path)) {\r\n <mat-checkbox (change)=\"selectNode(node)\" [disabled]=\"true\" [checked]=\"true\"\r\n [attr.aria-label]=\"'Selected: ' + node.name\">\r\n <span class=\"label selected\">\r\n {{ node.name }}\r\n </span>\r\n </mat-checkbox>\r\n } @else {\r\n <mat-checkbox (change)=\"selectNode(node)\" [checked]=\"false\"\r\n [attr.aria-label]=\"'Select ' + node.name + ' account category'\">\r\n <span class=\"label\">\r\n {{ node.name }}\r\n </span>\r\n </mat-checkbox>\r\n }\r\n </mat-tree-node>\r\n </mat-tree>\r\n }\r\n\r\n </div>\r\n</mat-drawer-container>\r\n}\r\n\r\n<mat-divider></mat-divider>\r\n\r\n<!-- Footer Actions -->\r\n<mat-dialog-actions style=\" background: var(--mscoa-surface-container) !important;\" align=\"end\">\r\n <button class=\"action-button close-button\" mat-button (click)=\"closeAndPassData(undefined)\"\r\n [attr.aria-label]=\"'Close dialog without saving'\" type=\"button\">\r\n\r\n Close\r\n </button>\r\n @if (userCanClearAccount() ) {\r\n <button class=\"action-button save-button\" mat-flat-button [disabled]=\"!saveSelection()\" (click)=\"saveAccount()\"\r\n [attr.aria-label]=\"saveSelection() ? 'Save account selection' : 'Save disabled - account unchanged or invalid'\"\r\n type=\"button\">\r\n <mat-icon aria-hidden=\"true\">save</mat-icon>\r\n Save\r\n </button>\r\n }\r\n\r\n</mat-dialog-actions>\r\n", styles: [":host{display:flex;flex-direction:column;max-height:98vh;overflow:hidden;min-height:0;--mscoa-primary: var(--lib-forms-primary);--mscoa-primary-light: var(--lib-forms-primary-container);--mscoa-primary-dark: var(--lib-forms-primary);--mscoa-success: var(--sem-success);--mscoa-error: var(--sem-error);--mscoa-warning: var(--sem-warning);--mscoa-info: var(--sem-info);--mscoa-surface: var(--lib-forms-surface);--mscoa-surface-container: var(--lib-forms-surface-container);--mscoa-text-primary: var(--lib-forms-on-surface);--mscoa-text-secondary: var(--lib-forms-on-surface-variant);--mscoa-divider: var(--lib-forms-outline-variant);--mscoa-spacing-xs: 4px;--mscoa-spacing-sm: 8px;--mscoa-spacing-md: 16px;--mscoa-spacing-lg: 24px;--mscoa-spacing-xl: 32px;--mscoa-elevation-1: 0 1px 3px rgba(0,0,0,.12);--mscoa-elevation-2: 0 2px 6px rgba(0,0,0,.12);--mscoa-elevation-4: 0 4px 12px rgba(0,0,0,.12);--mscoa-computation-spacing-xs: var(--mscoa-spacing-xs);--mscoa-computation-spacing-sm: var(--mscoa-spacing-sm);--mscoa-computation-spacing-md: var(--mscoa-spacing-md);--mscoa-computation-spacing-lg: var(--mscoa-spacing-lg);--mscoa-computation-toolbar-height: 56px;--mscoa-header-height: 56px;--mscoa-search-height: 56px;--mscoa-footer-height: 58px;--mscoa-divider-height: 1px;--mscoa-computation-selected-color: var(--mscoa-primary);--mscoa-computation-border-radius: 16px;--mscoa-computation-transition: var(--lib-forms-duration-hover) var(--lib-forms-easing)}mat-divider{flex-shrink:0}h4{margin-top:0;margin-bottom:0;padding-left:var(--mscoa-computation-spacing-md)}.label{font-size:.875em}:host .selected{color:var(--mscoa-primary);font-weight:600;background-color:transparent}.mat-tree-node.tree-node-selected,.mat-tree-node[aria-selected=true]{background:linear-gradient(90deg,var(--lib-forms-primary-container) 0%,transparent 100%)!important;box-shadow:inset 3px 0 0 var(--lib-forms-primary);border-radius:0 4px 4px 0}.mat-tree-node:hover:not(.tree-node-selected):not(:has(.selected)){background-color:#00000008;transition:background-color var(--mscoa-computation-transition)}mat-tree-node{transition:background-color var(--mscoa-computation-transition)}mat-tree-node:has(.selected){background:linear-gradient(90deg,var(--lib-forms-primary-container) 0%,transparent 100%)!important;box-shadow:inset 3px 0 0 var(--lib-forms-primary);border-radius:0 4px 4px 0}mat-tree-node:hover:not(:has(.selected)){background-color:#00000008}mat-tree-node mat-checkbox[checked=true] ::ng-deep .mdc-checkbox{background-color:var(--mscoa-primary)!important;border-color:var(--mscoa-primary)!important}.accountSeperator{margin-left:var(--mscoa-computation-spacing-xs);margin-right:var(--mscoa-computation-spacing-xs)}.loading{width:24px!important;height:24px!important;--mdc-circular-progress-size: 28px !important;--mdc-circular-progress-active-indicator-width: 24px !important;position:absolute;left:var(--mscoa-computation-spacing-sm);bottom:var(--mscoa-computation-spacing-sm)}.info{font-size:.875rem;opacity:.8;padding-left:var(--mscoa-computation-spacing-md);border-radius:4px;margin-top:10px;line-height:1.6;max-width:500px}.info strong{opacity:1}.toggle-button{height:28px;width:28px;padding:0;margin-right:var(--mscoa-computation-spacing-xs);margin-left:var(--mscoa-computation-spacing-xs)}.toggle-button:focus-visible{outline:2px solid var(--mscoa-computation-selected-color);outline-offset:2px;border-radius:4px}mat-tree{flex:1;min-height:280px;min-width:0;overflow:auto;padding:var(--mscoa-computation-spacing-md)!important;background:none}mat-tree::-webkit-scrollbar{width:8px;height:8px}mat-tree::-webkit-scrollbar-track{background:var(--mscoa-surface-container);border-radius:4px}mat-tree::-webkit-scrollbar-thumb{background:var(--mscoa-text-secondary);border-radius:4px;opacity:.5}mat-tree::-webkit-scrollbar-thumb:hover{opacity:.8;background:var(--mscoa-primary)}mat-tree{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}mat-tree-node{display:flex;align-items:flex-start;min-height:28px;padding-right:var(--mscoa-computation-spacing-md)!important;padding-top:2px!important;padding-bottom:2px!important;box-sizing:border-box;width:100%;transition:background-color var(--mscoa-computation-transition)}mat-tree-node:focus-visible{outline:2px solid var(--mscoa-computation-selected-color);outline-offset:-2px;border-radius:4px}mat-tree-node:hover:not(:has(.selected)){background-color:#0000000a}.mat-tree-node{display:flex;align-items:center;flex-wrap:nowrap;min-height:28px;padding:var(--mscoa-computation-spacing-xs) 0;box-sizing:border-box;transition:background-color var(--mscoa-computation-transition),border-color var(--mscoa-computation-transition);border-radius:4px;margin:1px 0}.mat-tree-node:hover:not(.tree-node-selected):not(:has(.selected)){background-color:#0000000a}.mat-tree-node button,.mat-tree-node mat-checkbox{flex-shrink:0;height:28px}.mat-tree-node mat-checkbox{display:flex;align-items:center;height:28px;min-height:fit-content;flex:1;min-width:0}.mat-tree-node .label{flex:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;overflow:visible}.header-toolbar{flex-shrink:0;background:var(--mscoa-surface-container)!important;box-shadow:var(--mscoa-elevation-2);border-bottom:1px solid var(--mscoa-divider)}.glass{background:#ffffff26;box-shadow:0 4px 30px #0000001a;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.2)}@media(prefers-reduced-motion:reduce){.glass{backdrop-filter:none;-webkit-backdrop-filter:none}}.main-toolbar{min-width:0;padding-top:var(--mscoa-computation-spacing-md);min-height:var(--mscoa-computation-toolbar-height);overflow:hidden}.main-toolbar .toolbar-title{font-size:18px;font-weight:500;color:var(--mscoa-text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-toolbar{flex-shrink:0;height:var(--mscoa-computation-toolbar-height);min-width:0;overflow:hidden}.search-toolbar .search-field{flex:1;width:100%;max-width:100%;min-width:0;border-radius:var(--mscoa-computation-border-radius);overflow:clip}.search-toolbar .search-field.search-disabled ::ng-deep .mat-mdc-text-field-wrapper{background-color:var(--mscoa-surface-container)!important;border:1px dashed var(--mscoa-divider)}.search-toolbar .search-field.search-disabled ::ng-deep .mat-mdc-form-field-label{color:var(--mscoa-text-secondary)!important}.search-toolbar .search-field.search-disabled ::ng-deep input{cursor:not-allowed;color:var(--mscoa-text-secondary)!important}.search-toolbar .search-field.search-disabled ::ng-deep button{opacity:.5;cursor:not-allowed}.search-toolbar .search-field.search-disabled ::ng-deep .mat-mdc-form-field-hint{color:var(--mscoa-text-secondary);font-size:.75rem}.tree-breadcrumb{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:var(--mscoa-spacing-xs, 4px);padding:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px);margin:0 var(--mscoa-spacing-md, 16px) var(--mscoa-spacing-sm, 8px);background:var(--mscoa-surface-container);border-radius:6px;border-left:3px solid var(--mscoa-primary);font-size:.8125rem;line-height:1.4;max-width:500px}.tree-breadcrumb .breadcrumb-label{color:var(--mscoa-text-secondary);font-weight:500;margin-right:var(--mscoa-spacing-xs, 4px)}.tree-breadcrumb .breadcrumb-part{color:var(--mscoa-text-primary)}.tree-breadcrumb .breadcrumb-part.is-current{font-weight:600;color:var(--mscoa-primary)}.tree-breadcrumb .breadcrumb-sep{font-size:16px;width:16px;height:16px;color:var(--mscoa-text-secondary);margin:0 var(--mscoa-spacing-xs, 4px)}.search-results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--mscoa-spacing-sm, 8px);overflow-y:auto;flex:1;min-height:0;padding:var(--mscoa-spacing-xs, 4px) 0}.search-results-grid::-webkit-scrollbar{width:6px}.search-results-grid::-webkit-scrollbar-track{background:var(--mscoa-surface-container);border-radius:3px}.search-results-grid::-webkit-scrollbar-thumb{background:var(--mscoa-text-secondary);border-radius:3px;opacity:.5}.search-results-grid::-webkit-scrollbar-thumb:hover{opacity:.8;background:var(--mscoa-primary)}.search-results-grid{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}.path-result-item{cursor:pointer;transition:background-color var(--mscoa-computation-transition);min-height:56px;padding:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px);padding-right:40px;border-radius:8px;border:1px solid var(--mscoa-divider);background:var(--mscoa-surface);display:flex;flex-direction:column;gap:4px;align-items:flex-start;position:relative}.path-result-item:hover,.path-result-item:focus-visible{background-color:var(--mat-sys-surface-container, rgba(0, 0, 0, .04));outline:none}.path-result-item:hover .breadcrumb-container,.path-result-item:focus-visible .breadcrumb-container{flex-wrap:wrap}.path-result-item:hover .breadcrumb-container .text-content,.path-result-item:focus-visible .breadcrumb-container .text-content{white-space:normal;max-width:none}.path-result-item:focus-visible{outline:2px solid var(--mscoa-computation-selected-color);outline-offset:-2px}.path-result-arrow{position:absolute;right:var(--mscoa-spacing-sm);top:50%;transform:translateY(-50%);font-size:18px;width:18px;height:18px;color:var(--mat-sys-on-surface-variant, var(--mscoa-text-secondary))}.breadcrumb-container{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;width:100%}.crumb-segment{display:flex;align-items:center;color:var(--mscoa-text-secondary);white-space:nowrap;overflow:hidden;max-width:100%}.crumb-segment .text-content{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:150px;vertical-align:middle}.crumb-segment .separator{font-size:1em;height:16px;width:16px;margin:0 var(--mscoa-computation-spacing-xs);color:var(--mscoa-divider);flex-shrink:0}.crumb-segment.is-target{color:var(--mscoa-text-primary);font-weight:500;flex-shrink:0}.crumb-segment.is-target .text-content{color:var(--mscoa-text-primary);max-width:none}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--mscoa-computation-spacing-lg);text-align:center;gap:var(--mscoa-computation-spacing-md)}.empty-state .empty-icon{font-size:48px;width:48px;height:48px;opacity:.5}.empty-state .empty-message{margin:0;font-size:14px}.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--mscoa-computation-spacing-lg);text-align:center;gap:var(--mscoa-computation-spacing-md)}.error-container .error-icon{font-size:48px;width:48px;height:48px;color:var(--mat-sys-error)}.error-container .error-message{margin:0;font-size:14px;color:var(--mat-sys-error)}mark{background-color:var(--sem-warning);color:inherit;padding:0;font-weight:500}.instructions-panel{flex-shrink:0;margin:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px);margin-bottom:var(--mscoa-spacing-xs, 4px);box-shadow:var(--mscoa-elevation-1);border-radius:6px;overflow:hidden;background:var(--mscoa-surface-container);transition:box-shadow var(--mscoa-computation-transition)}.instructions-panel.compact-instructions ::ng-deep .mat-expansion-panel-header{padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px)!important;min-height:40px!important;height:auto!important}.instructions-panel.compact-instructions ::ng-deep .mat-expansion-panel-body{padding:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px)!important}.instructions-panel:hover{box-shadow:var(--mscoa-elevation-2)}.instructions-panel ::ng-deep .mat-expansion-panel-header{padding:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px);background:var(--mscoa-surface-container)!important}.instructions-panel ::ng-deep .mat-expansion-panel-header:hover{background:var(--mscoa-surface)!important}.instructions-panel ::ng-deep .mat-expansion-panel-body{padding:var(--mscoa-spacing-sm, 8px) var(--mscoa-spacing-md, 16px)!important;background:var(--mscoa-surface)}.instructions-panel .instruction-icon{margin-right:var(--mscoa-spacing-xs, 4px);color:var(--mscoa-info);font-size:18px;width:18px;height:18px}.instructions-panel .instructions-content{padding:var(--mscoa-spacing-xs, 4px) 0;display:flex;flex-direction:column;gap:var(--mscoa-spacing-xs, 4px)}.instructions-panel .instruction-item{display:flex;align-items:center;gap:var(--mscoa-spacing-xs, 4px);font-size:.75rem;line-height:1.4;padding:var(--mscoa-spacing-xs, 4px);border-radius:4px;transition:background-color var(--mscoa-computation-transition)}.instructions-panel .instruction-item:hover{background-color:var(--mscoa-primary-light)}.instructions-panel .instruction-item .instruction-bullet{font-size:16px;width:16px;height:16px;color:var(--mscoa-primary);flex-shrink:0}.instructions-panel .instruction-item span{flex:1}.instructions-panel .instruction-item span strong{font-weight:600}.search-results-header{display:flex;align-items:center;gap:var(--mscoa-computation-spacing-sm)}.search-results-header .search-icon{margin-right:var(--mscoa-computation-spacing-sm)}.search-results-list{padding:var(--mscoa-computation-spacing-md);display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.search-results-hint{font-size:.75rem;color:var(--mscoa-text-secondary);margin:0 var(--mscoa-spacing-md, 16px) var(--mscoa-spacing-sm, 8px);padding:var(--mscoa-spacing-xs, 4px) 0}.path-result-meta{font-size:.6875rem;color:var(--mscoa-text-secondary);letter-spacing:.3px}.mat-mdc-subheader{position:sticky;top:0;z-index:10;background:var(--mat-sys-surface-container)}.count-badge{margin-left:auto;font-weight:400;opacity:.7;font-size:.9em}.drawer-container{flex:1;min-height:0;overflow:hidden;max-width:100%;background:var(--mat-sys-surface-container)!important;display:flex}.drawer-container ::ng-deep .mat-drawer-content{min-height:0;overflow:auto;height:calc(100vh - 220px);flex:1 1 30%;min-width:260px}.account-drawer{min-width:420px;max-width:min(700px,65vw)!important;width:520px!important;overflow:hidden;display:flex;flex-direction:column;background:var(--mat-sys-surface-container)!important;padding:var(--mscoa-computation-spacing-md)}.account-drawer app-scoa-account-table{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}.account-drawer .loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--mscoa-computation-spacing-lg);gap:var(--mscoa-computation-spacing-md)}.account-drawer .loading-container p{margin:0;font-size:.875rem}.skeleton-row{display:flex;align-items:center;padding:var(--mscoa-spacing-sm) var(--mscoa-spacing-md);gap:var(--mscoa-spacing-md);animation:skeleton-pulse 1.5s ease-in-out infinite}.skeleton-row .skeleton-checkbox{width:20px;height:20px;border-radius:4px;background:linear-gradient(90deg,var(--lib-forms-surface-container) 25%,var(--lib-forms-outline-variant) 50%,var(--lib-forms-surface-container) 75%);background-size:200% 100%}.skeleton-row .skeleton-text{flex:1;height:16px;border-radius:4px;background:linear-gradient(90deg,var(--lib-forms-surface-container) 25%,var(--lib-forms-outline-variant) 50%,var(--lib-forms-surface-container) 75%);background-size:200% 100%}.skeleton-row .skeleton-text.short{width:60%}.skeleton-row .skeleton-text.medium{width:80%}@keyframes skeleton-pulse{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-table .skeleton-row{border-bottom:1px solid var(--mscoa-divider)}.skeleton-table .skeleton-row:last-child{border-bottom:none}.account-details-container{flex:1;min-height:0;max-width:520px;margin:0 auto;width:100%;background:#ffffff1c;-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px);padding:var(--mscoa-spacing-xs, 4px);border:1px solid rgba(255,255,255,.3);border:1px solid var(--mscoa-divider);border-radius:8px;overflow-y:auto}.account-details-container::-webkit-scrollbar{width:6px}.account-details-container::-webkit-scrollbar-track{background:var(--mscoa-surface-container);border-radius:3px}.account-details-container::-webkit-scrollbar-thumb{background:var(--mscoa-text-secondary);border-radius:3px;opacity:.5}.account-details-container::-webkit-scrollbar-thumb:hover{opacity:.8;background:var(--mscoa-primary)}.account-details-container{scrollbar-width:thin;scrollbar-color:var(--lib-forms-on-surface-variant) var(--lib-forms-surface-container)}.account-details-container ::ng-deep app-account-value{max-width:100%}.account-details-container ::ng-deep app-account-value mat-toolbar{background:var(--mat-sys-surface-container, var(--mscoa-surface-container))!important;box-shadow:var(--mscoa-elevation-1);margin-bottom:0;border-radius:8px 8px 0 0}.account-details-container ::ng-deep app-account-value .account-grid{gap:var(--mscoa-spacing-xs, 4px) var(--mscoa-spacing-sm, 8px);padding:var(--mscoa-spacing-sm, 8px);background:var(--mat-sys-surface, var(--mscoa-surface));border-radius:0 0 8px 8px;box-shadow:var(--mscoa-elevation-1)}.tree-content{min-height:280px;flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;padding-right:var(--mscoa-computation-spacing-sm)}.footer-toolbar{flex-shrink:0;height:fit-content;padding-top:var(--mscoa-computation-spacing-md)!important;padding-bottom:var(--mscoa-computation-spacing-md)!important;min-height:58px;box-shadow:0 -2px 8px #0000000d}.footer-toolbar .footer-actions{display:flex;width:100%;gap:var(--mscoa-computation-spacing-sm);flex-direction:column;min-height:58px}.footer-toolbar .footer-actions .action-button{width:100%;font-weight:500;transition:transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing)}.footer-toolbar .footer-actions .action-button:focus-visible{outline:2px solid var(--mscoa-computation-selected-color);outline-offset:2px}.footer-toolbar .footer-actions .action-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--mscoa-elevation-2)}.footer-toolbar .footer-actions .action-button:active:not(:disabled){transform:translateY(0)}.footer-toolbar .footer-actions .action-button[disabled]{opacity:.5;cursor:not-allowed}.footer-toolbar .footer-actions .save-button{background-color:var(--mscoa-primary)!important;color:var(--lib-forms-on-primary)!important}@media(min-width:768px){.footer-actions{flex-direction:row}.footer-actions .action-button{width:auto;min-width:120px}.drawer-container{display:flex}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { 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: MatCheckboxModule }, { kind: "component", type: i3$4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i5$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "directive", type: i6.MatListSubheaderCssMatStyler, selector: "[mat-subheader], [matSubheader]" }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i10.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: i10.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatTreeModule }, { kind: "directive", type: i1$4.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i1$4.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { kind: "component", type: i1$4.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i1$4.MatTreeNode, selector: "mat-tree-node", inputs: ["tabIndex", "disabled"], outputs: ["activation", "expandedChange"], exportAs: ["matTreeNode"] }, { kind: "component", type: AccountValueComponent, selector: "lib-account-value", inputs: ["mscoaAccount", "accountInputs", "userCanClearAccount"], outputs: ["clearSelectedAccount", "updateAccount"] }, { kind: "component", type: ScoaAccountTableComponent, selector: "lib-scoa-account-table", inputs: ["data", "selectedAccount", "segment"], outputs: ["accountSelected"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: UpperCasePipe, name: "uppercase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i3$1.MatIcon]] }); }
|
|
17252
17958
|
}
|
|
17253
17959
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MscoaComputationComponent, decorators: [{
|
|
17254
17960
|
type: Component,
|
|
@@ -17563,7 +18269,7 @@ class MscoaChartInputMenuComponent {
|
|
|
17563
18269
|
this.hoverEnd.emit();
|
|
17564
18270
|
}
|
|
17565
18271
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MscoaChartInputMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17566
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaChartInputMenuComponent, isStandalone: true, selector: "lib-mscoa-chart-input-menu", inputs: { innerInput: { classPropertyName: "innerInput", publicName: "innerInput", isSignal: true, isRequired: true, transformFunction: null }, countdownSeconds: { classPropertyName: "countdownSeconds", publicName: "countdownSeconds", isSignal: true, isRequired: false, transformFunction: null }, hoveredId: { classPropertyName: "hoveredId", publicName: "hoveredId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { edit: "edit", delete: "delete", cancelDelete: "cancelDelete", hoverStart: "hoverStart", hoverEnd: "hoverEnd" }, ngImport: i0, template: "<button\r\n [matTooltip]=\"'Edit Input: ' + innerInput().label\"\r\n (click)=\"onEdit()\"\r\n mat-icon-button\r\n aria-label=\"Edit input\">\r\n <mat-icon>edit</mat-icon>\r\n</button>\r\n\r\n@if (isDeleting()) {\r\n <button\r\n (mouseenter)=\"onMouseEnter()\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n (click)=\"onDelete()\"\r\n color=\"warn\"\r\n mat-stroked-button\r\n [attr.aria-label]=\"isHovered() ? 'Cancel deletion' : 'Deleting in ' + countdownSeconds() + ' seconds'\">\r\n <div class=\"mscoa-chart-input-menu__delete-content\">\r\n <mat-progress-spinner\r\n class=\"mscoa-chart-input-menu__spinner\"\r\n color=\"primary\"\r\n [value]=\"progressValue()\"\r\n [diameter]=\"20\">\r\n </mat-progress-spinner>\r\n <span>\r\n {{ isHovered() ? 'Click to cancel' : 'Deleting in' }} {{ countdownSeconds() }}\r\n </span>\r\n </div>\r\n </button>\r\n} @else {\r\n <button\r\n [matTooltip]=\"'Delete input ' + innerInput().label\"\r\n (click)=\"onDelete()\"\r\n mat-icon-button\r\n aria-label=\"Delete input\">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n}\r\n", styles: [".mscoa-chart-input-menu__delete-content{display:flex;align-items:center;gap:var(--mscoa-chart-spacing-sm, 8px)}.mscoa-chart-input-menu__spinner{width:20px;height:20px}button:focus-visible{outline:2px solid var(--mat-sys-primary);outline-offset:2px}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
18272
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaChartInputMenuComponent, isStandalone: true, selector: "lib-mscoa-chart-input-menu", inputs: { innerInput: { classPropertyName: "innerInput", publicName: "innerInput", isSignal: true, isRequired: true, transformFunction: null }, countdownSeconds: { classPropertyName: "countdownSeconds", publicName: "countdownSeconds", isSignal: true, isRequired: false, transformFunction: null }, hoveredId: { classPropertyName: "hoveredId", publicName: "hoveredId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { edit: "edit", delete: "delete", cancelDelete: "cancelDelete", hoverStart: "hoverStart", hoverEnd: "hoverEnd" }, ngImport: i0, template: "<button\r\n [matTooltip]=\"'Edit Input: ' + innerInput().label\"\r\n (click)=\"onEdit()\"\r\n mat-icon-button\r\n aria-label=\"Edit input\">\r\n <mat-icon>edit</mat-icon>\r\n</button>\r\n\r\n@if (isDeleting()) {\r\n <button\r\n (mouseenter)=\"onMouseEnter()\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n (click)=\"onDelete()\"\r\n color=\"warn\"\r\n mat-stroked-button\r\n [attr.aria-label]=\"isHovered() ? 'Cancel deletion' : 'Deleting in ' + countdownSeconds() + ' seconds'\">\r\n <div class=\"mscoa-chart-input-menu__delete-content\">\r\n <mat-progress-spinner\r\n class=\"mscoa-chart-input-menu__spinner\"\r\n color=\"primary\"\r\n [value]=\"progressValue()\"\r\n [diameter]=\"20\">\r\n </mat-progress-spinner>\r\n <span>\r\n {{ isHovered() ? 'Click to cancel' : 'Deleting in' }} {{ countdownSeconds() }}\r\n </span>\r\n </div>\r\n </button>\r\n} @else {\r\n <button\r\n [matTooltip]=\"'Delete input ' + innerInput().label\"\r\n (click)=\"onDelete()\"\r\n mat-icon-button\r\n aria-label=\"Delete input\">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n}\r\n", styles: [".mscoa-chart-input-menu__delete-content{display:flex;align-items:center;gap:var(--mscoa-chart-spacing-sm, 8px)}.mscoa-chart-input-menu__spinner{width:20px;height:20px}button:focus-visible{outline:2px solid var(--mat-sys-primary);outline-offset:2px}\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: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17567
18273
|
}
|
|
17568
18274
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MscoaChartInputMenuComponent, decorators: [{
|
|
17569
18275
|
type: Component,
|
|
@@ -18742,9 +19448,9 @@ class MscoaChartComponent {
|
|
|
18742
19448
|
}
|
|
18743
19449
|
}
|
|
18744
19450
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MscoaChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18745
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaChartComponent, isStandalone: true, selector: "lib-mscoa-chart", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, editorMode: { classPropertyName: "editorMode", publicName: "editorMode", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: false, transformFunction: null }, formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onContainerClick: "onContainerClick", interaction: "interaction" }, ngImport: i0, template: "@if ((viewData$ | async); as viewData) {\r\n<section\r\n (click)=\"setAsTouched($event)\"\r\n class=\"mscoa-chart__container\"\r\n [class.mscoa-chart__container--touched]=\"touched()\"\r\n role=\"region\"\r\n [attr.aria-label]=\"'MSCOA Account Chart'\"\r\n [attr.aria-busy]=\"viewData.loading || viewData.validatingValue\">\r\n\r\n @if (viewData.loading) {\r\n <div class=\"mscoa-chart__loading-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-spinner [diameter]=\"40\"></mat-spinner>\r\n <span class=\"sr-only\">Loading account chart data...</span>\r\n </div>\r\n } @else {\r\n @defer () {\r\n @if (viewData.accountTreeKeys || viewData.cashAccountTreeKeys) {\r\n <div class=\"mscoa-chart__table-container\">\r\n @if (isDualAccountBasis) {\r\n <div class=\"dual-basis-container\" role=\"group\" aria-label=\"Dual accounting basis tables\">\r\n <div class=\"dual-basis-container__item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: ACCOUNTING_BASIS.ACCRUAL,\r\n canCollapse: true,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dual-basis-container__item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: ACCOUNTING_BASIS.CASH,\r\n canCollapse: true,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n } @else {\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: config()?.accountingBasis,\r\n canCollapse: false,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n }\r\n </div>\r\n }\r\n\r\n <ng-template\r\n #selectionTable\r\n let-accountingBasis=\"accountingBasis\"\r\n let-canCollapse=\"canCollapse\"\r\n let-viewData=\"viewData\">\r\n\r\n <div class=\"mscoa-chart-table\" role=\"group\" [attr.aria-label]=\"'Accounting basis: ' + (accountingBasis || 'Accrual')\">\r\n <!-- Toolbar -->\r\n <lib-mscoa-chart-toolbar\r\n [accountingBasis]=\"accountingBasis\"\r\n [canCollapse]=\"canCollapse\"\r\n [isExpanded]=\"getExpansionState(accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\"\r\n (toggleExpansion)=\"toggleDualBasisExpansion(accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\">\r\n </lib-mscoa-chart-toolbar>\r\n\r\n @if (shouldShowTable(isDualAccountBasis, getExpansionState(accountingBasis || ACCOUNTING_BASIS.ACCRUAL), accountingBasis)) {\r\n <div class=\"account-selection-table-wrapper\">\r\n <div\r\n class=\"account-selection-table-container\"\r\n [class.account-selection-table-container--accrual]=\"!accountingBasis || accountingBasis === ACCOUNTING_BASIS.ACCRUAL\"\r\n [class.account-selection-table-container--cash]=\"accountingBasis === ACCOUNTING_BASIS.CASH\"\r\n role=\"table\"\r\n [attr.aria-label]=\"'Account selection table for ' + (accountingBasis || 'Accrual') + ' basis'\">\r\n\r\n <table\r\n mat-table\r\n [dataSource]=\"accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashTableData : viewData.tableData\"\r\n [trackBy]=\"trackByRow\"\r\n class=\"table\"\r\n [attr.aria-label]=\"'Account selection table for ' + (accountingBasis || 'Accrual') + ' basis'\"\r\n [attr.aria-describedby]=\"'table-description-' + (accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\"\r\n role=\"table\">\r\n <span [id]=\"'table-description-' + (accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\" class=\"sr-only\">\r\n Use arrow keys to navigate between cells. Press Enter or Space to select an account.\r\n </span>\r\n\r\n @for (\r\n col of (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols);\r\n track trackByColumn($index, col);\r\n let i = $index\r\n ) {\r\n <ng-container [matColumnDef]=\"col\" [sticky]=\"i === 0\">\r\n <!-- Header Cell -->\r\n <th\r\n mat-header-cell\r\n *matHeaderCellDef\r\n [class.table__header-cell--segment]=\"isSegmentColumn(i)\"\r\n [class.table__header-cell--regular]=\"!isSegmentColumn(i)\"\r\n [style.width.%]=\"getColumnWidthPercent(isSegmentColumn(i), (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols).length)\"\r\n [style.min-width.px]=\"isSegmentColumn(i) ? 150 : 200\"\r\n [attr.aria-sort]=\"i === 0 ? 'none' : null\"\r\n [attr.scope]=\"'col'\"\r\n [attr.aria-label]=\"getHeaderText(col, i, accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashHasMultiSelect : viewData.hasMultiSelect) + ' column'\">\r\n {{ getHeaderText(col, i, accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashHasMultiSelect : viewData.hasMultiSelect) | titlecase | unCamelCase }}\r\n </th>\r\n\r\n <!-- Data Cell -->\r\n <td\r\n mat-cell\r\n *matCellDef=\"let row\"\r\n [class.table__cell--segment]=\"isSegmentColumn(i)\"\r\n [class.table__cell--regular]=\"!isSegmentColumn(i)\"\r\n [class.table__cell--active]=\"editSelection?.segment === row['segment'] && activeColumn === col\"\r\n [class.table__cell--business-error]=\"!isSegmentColumn(i) && getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-label]=\"'Cell for ' + row['segment'] + ' segment, ' + col + ' column'\"\r\n [attr.aria-selected]=\"!!row[col]\"\r\n [attr.aria-invalid]=\"!isSegmentColumn(i) && !!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.role]=\"'gridcell'\"\r\n [attr.tabindex]=\"isSegmentColumn(i) ? -1 : (row[col] ? 0 : -1)\">\r\n\r\n @if (isSegmentColumn(i)) {\r\n <!-- Segment Column -->\r\n <div class=\"segment-cell-content\">\r\n @if (editorMode() && row.innerInput?.id) {\r\n <button\r\n mat-icon-button\r\n [matMenuTriggerData]=\"{innerInput: row.innerInput}\"\r\n [matMenuTriggerFor]=\"inputMenu\"\r\n [matTooltip]=\"'Options for: ' + row.innerInput.label\"\r\n [attr.aria-label]=\"'Options menu for ' + row.innerInput.label\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon>more_vert</mat-icon>\r\n </button>\r\n }\r\n <span class=\"segment-cell-content__label\">{{ row['label'] }}</span>\r\n </div>\r\n } @else {\r\n <!-- Regular Column -->\r\n @if (row.innerInput?.id) {\r\n <!-- Custom-input row (peer of the segments): the value is entered inline via the\r\n input portal on the primary (debit) leg; other legs mirror it and render no\r\n control. `innerInput.id` is already the namespaced portal key, so it is looked\r\n up directly \u2014 prepending it again (getPortalKey) double-namespaces and misses. -->\r\n @if (col === COLUMNS.DEBIT && formGroup() && inputPortals[row.innerInput.id]) {\r\n <div class=\"portal-container\">\r\n <ng-template [cdkPortalOutlet]=\"inputPortals[row.innerInput.id]\"></ng-template>\r\n </div>\r\n }\r\n } @else {\r\n @if (row[col]) {\r\n <!-- Account Selected -->\r\n @if (getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment']); as cellError) {\r\n <div class=\"account-cell-wrapper\"\r\n [class.account-cell-wrapper--expandable]=\"isTextTruncated(row[col] | unCamelCase)\">\r\n <button\r\n [disabled]=\"row['singleSelect'] === true && col === COLUMNS.CREDIT\"\r\n (mousedown)=\"$event.preventDefault(); $event.stopPropagation(); selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n color=\"primary\"\r\n mat-button\r\n class=\"cell-button cell-button--selected cell-button--business-error\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase) + ' for ' + row['segment'] + ' segment, ' + col + ' column. Business error: ' + cellError.message\"\r\n [attr.aria-invalid]=\"true\"\r\n [attr.aria-pressed]=\"true\"\r\n [matTooltip]=\"cellError.message\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label selected-acount-label--tag selected-acount-label--business-error\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase)\">\r\n {{ row[col] | unCamelCase }}\r\n @if (shouldShowVatChip(row, col)) {\r\n <span\r\n class=\"vat-badge\"\r\n [attr.aria-label]=\"'VAT applicable to ' + col + ' column'\"\r\n [matTooltip]=\"'VAT is applicable to this ' + col + ' account selection'\">\r\n VAT\r\n </span>\r\n }\r\n </span>\r\n <mat-icon class=\"business-error-indicator\" aria-hidden=\"true\">error</mat-icon>\r\n </div>\r\n </button>\r\n </div>\r\n } @else {\r\n <div class=\"account-cell-wrapper\"\r\n [class.account-cell-wrapper--expandable]=\"isTextTruncated(row[col] | unCamelCase)\">\r\n <button\r\n [disabled]=\"(row['singleSelect'] === true && col === COLUMNS.CREDIT) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n (mousedown)=\"$event.preventDefault(); $event.stopPropagation(); selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n color=\"primary\"\r\n mat-button\r\n class=\"cell-button cell-button--selected\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase) + ' for ' + row['segment'] + ' segment, ' + col + ' column. Press Enter or Space to change'\"\r\n [attr.aria-invalid]=\"false\"\r\n [attr.aria-disabled]=\"(row['singleSelect'] === true && col === COLUMNS.CREDIT) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-pressed]=\"true\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label selected-acount-label--tag\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase)\">\r\n {{ row[col] | unCamelCase }}\r\n @if (shouldShowVatChip(row, col)) {\r\n <span\r\n class=\"vat-badge\"\r\n [attr.aria-label]=\"'VAT applicable to ' + col + ' column'\"\r\n [matTooltip]=\"'VAT is applicable to this ' + col + ' account selection'\">\r\n VAT\r\n </span>\r\n }\r\n </span>\r\n @if (showValidationSuccessIndicators) {\r\n <mat-icon class=\"validated-indicator\" aria-hidden=\"true\" [matTooltip]=\"'Validated'\">shield</mat-icon>\r\n } @else {\r\n <mat-icon class=\"success-indicator\" aria-hidden=\"true\">check_circle</mat-icon>\r\n }\r\n </div>\r\n </button>\r\n </div>\r\n }\r\n } @else {\r\n <!-- No Account Selected -->\r\n <div class=\"cell-button-wrapper\">\r\n <button\r\n [disabled]=\"selectionDisabled(row, col) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [color]=\"\"\r\n (click)=\"selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); $event.stopPropagation(); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n mat-button\r\n class=\"cell-button\"\r\n [class.cell-button--business-error]=\"!!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-label]=\"shouldShowAutoSelectedLabel(row, col) ? 'Auto selected for ' + row['segment'] + ' segment, ' + col + ' column' : 'Select account for ' + row['segment'] + ' segment, ' + col + ' column'\"\r\n [attr.aria-disabled]=\"selectionDisabled(row, col) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-describedby]=\"getValidationHint(row, col, accountingBasis || ACCOUNTING_BASIS.ACCRUAL) ? 'hint-' + row['segment'] + '-' + col : null\"\r\n [attr.aria-invalid]=\"hasError(touched(), inputConfig().required || false, !!row[col]) || !!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-required]=\"inputConfig().required && !row[col]\"\r\n [matTooltip]=\"getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])?.message\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label\"\r\n [class.selected-acount-label--error]=\"hasError(touched(), inputConfig().required || false, !!row[col])\"\r\n [class.selected-acount-label--business-error]=\"!!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\">\r\n {{ (shouldShowAutoSelectedLabel(row, col) ? 'auto selected' : 'Select account') | unCamelCase }}\r\n @if (inputConfig().required && !row[col]) {\r\n <span class=\"required-indicator\" aria-label=\"Required field\">*</span>\r\n }\r\n </span>\r\n @if (getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])) {\r\n <mat-icon class=\"business-error-indicator\" aria-hidden=\"true\">error</mat-icon>\r\n } @else if (shouldShowDropdownIcon(row, col)) {\r\n <mat-icon aria-hidden=\"true\">arrow_drop_down</mat-icon>\r\n }\r\n </div>\r\n </button>\r\n @if (getValidationHint(row, col, accountingBasis || ACCOUNTING_BASIS.ACCRUAL); as hint) {\r\n <span\r\n class=\"inline-hint\"\r\n [id]=\"'hint-' + row['segment'] + '-' + col\"\r\n role=\"tooltip\"\r\n aria-live=\"polite\">\r\n {{ hint }}\r\n </span>\r\n }\r\n </div>\r\n }\r\n }\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols)\"></tr>\r\n </table>\r\n </div>\r\n </div>\r\n\r\n <!-- Empty State -->\r\n @if ((accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashAccountTreeKeys : viewData.accountTreeKeys).length === 0) {\r\n <section class=\"empty-state\" role=\"status\" aria-live=\"polite\">\r\n <mat-icon aria-hidden=\"true\">info</mat-icon>\r\n <span>\r\n No account segments are currently configured.\r\n Please configure account segments to proceed.\r\n </span>\r\n </section>\r\n }\r\n\r\n <!-- Success Messages (Temporary) -->\r\n @if ((successMessage$ | async); as successMessages) {\r\n @if (getSuccessMessage(successMessages, accountingBasis || ACCOUNTING_BASIS.ACCRUAL); as msg) {\r\n <lib-mscoa-temporary-hint\r\n [message]=\"getSuccessMessage(successMessages, accountingBasis || ACCOUNTING_BASIS.ACCRUAL) ?? ''\"\r\n [type]=\"'info'\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-temporary-hint>\r\n }\r\n }\r\n\r\n <!-- Business Rule Errors (Temporary display, keeps error styling) -->\r\n @if ((viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL] || []).length > 0) {\r\n <lib-mscoa-error-display\r\n [errors]=\"viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL] || []\"\r\n type=\"error\"\r\n [context]=\"{ accountingBasis: accountingBasis || ACCOUNTING_BASIS.ACCRUAL }\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-error-display>\r\n }\r\n\r\n <!-- Temporary Contextual Hints -->\r\n @if (temporaryHintMessage) {\r\n <lib-mscoa-temporary-hint\r\n [message]=\"temporaryHintMessage\"\r\n [type]=\"temporaryHintType\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-temporary-hint>\r\n }\r\n\r\n <!-- Validation Hints (Context-Aware) -->\r\n @if (!touched() && inputConfig().required && !viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL]?.length && (!isDualAccountBasis || accountingBasis === ACCOUNTING_BASIS.ACCRUAL || !accountingBasis)) {\r\n <div class=\"validation-hints\" role=\"region\" aria-label=\"Validation guidance\">\r\n <p class=\"validation-hints__title\">Guidance:</p>\r\n <ul class=\"validation-hints__list\">\r\n <li>Account combinations are validated automatically. Select accounts that belong to compatible reporting categories.</li>\r\n <li>Required fields are marked with an asterisk (*). Complete all required selections to proceed.</li>\r\n <li>Some fields may be automatically populated based on your selections to ensure consistency.</li>\r\n </ul>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </ng-template>\r\n } @placeholder {\r\n <div class=\"loading-placeholder\" role=\"status\" aria-live=\"polite\">\r\n <p>Loading data...</p>\r\n </div>\r\n } @loading (minimum 100ms) {\r\n <div class=\"loading-spinner-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"40\"></mat-progress-spinner>\r\n <span class=\"sr-only\">Loading account chart...</span>\r\n </div>\r\n } @error {\r\n <div class=\"error-state\" role=\"alert\" aria-live=\"assertive\">\r\n <p>Error loading data. Please try again.</p>\r\n </div>\r\n }\r\n }\r\n</section>\r\n}\r\n\r\n<!-- Input Menu -->\r\n<mat-menu #inputMenu=\"matMenu\">\r\n <ng-template matMenuContent let-innerInput=\"innerInput\">\r\n <lib-mscoa-chart-input-menu\r\n [innerInput]=\"innerInput\"\r\n [countdownSeconds]=\"inputWillBeRemovedIn(innerInput.id)\"\r\n [hoveredId]=\"hoveredInputId\"\r\n (edit)=\"onInputMenuEdit($event)\"\r\n (delete)=\"onInputMenuDelete($event)\"\r\n (cancelDelete)=\"onInputMenuCancelDelete($event)\"\r\n (hoverStart)=\"onInputMenuHoverStart($event)\"\r\n (hoverEnd)=\"onInputMenuHoverEnd()\">\r\n </lib-mscoa-chart-input-menu>\r\n </ng-template>\r\n</mat-menu>\r\n", styles: ["@charset \"UTF-8\";:host{--mscoa-chart-spacing-xs: 4px;--mscoa-chart-spacing-sm: 8px;--mscoa-chart-spacing-md: 16px;--mscoa-chart-spacing-lg: 24px;--mscoa-chart-spacing-xl: 32px;--mscoa-chart-border-radius: 4px;--mscoa-chart-transition: var(--lib-forms-duration-hover) var(--lib-forms-easing);--mscoa-chart-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--mscoa-chart-font-size-base: 14px;--mscoa-chart-line-height: 1.5;display:block;font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height)}.mscoa-chart__container{padding:0;transition:background-color var(--mscoa-chart-transition);width:100%;max-width:100%;overflow-x:hidden;box-sizing:border-box}.mscoa-chart__loading-container{padding:var(--mscoa-chart-spacing-lg);display:flex;align-items:center;justify-content:center}.mscoa-chart__table-container{position:relative;width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;box-sizing:border-box}.dual-basis-container{display:flex;flex-direction:column;gap:var(--mscoa-chart-spacing-sm)}.dual-basis-container__item{flex:1}:host .single-base{gap:var(--mscoa-chart-spacing-sm);height:48px;font-size:.875em;font-weight:500;transition:background-color var(--mscoa-chart-transition)}:host .single-base--cash{background:var(--mat-sys-inverse-primary)}.account-selection-table-wrapper{position:relative;width:100%}.account-selection-table-container{border-radius:var(--mscoa-chart-border-radius);overflow-x:auto;overflow-y:visible;transition:border-color var(--mscoa-chart-transition);width:100%;max-width:100%;box-sizing:border-box;display:block}.account-selection-table-container--accrual{border:solid 1px var(--mat-sys-primary)}.account-selection-table-container--cash{border:solid 1px var(--mat-sys-inverse-primary)}.account-selection-table-container::-webkit-scrollbar{height:8px}.account-selection-table-container::-webkit-scrollbar-track{background:var(--lib-forms-surface-container-low);border-radius:4px}.account-selection-table-container::-webkit-scrollbar-thumb{background:var(--lib-forms-outline-variant);border-radius:4px}.account-selection-table-container::-webkit-scrollbar-thumb:hover{background:var(--lib-forms-outline)}.table{width:100%;table-layout:fixed;font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height);border-collapse:separate;border-spacing:0;display:table;box-sizing:border-box;max-width:100%}.table__header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.table__header-cell--segment{text-align:right;padding-right:var(--mscoa-chart-spacing-md);min-width:150px;max-width:200px}.table__header-cell--regular{padding-left:var(--mscoa-chart-spacing-lg);min-width:200px;max-width:none}.table__cell{overflow:visible;box-sizing:border-box;position:relative;vertical-align:top}.table__cell--segment{background:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container));text-align:right;font-weight:500;padding-right:var(--mscoa-chart-spacing-md);min-width:150px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;vertical-align:middle}.table__cell--regular{padding:0;min-width:200px;max-width:none;word-wrap:break-word;vertical-align:top;overflow:visible}.table__cell--active{background-color:var(--mat-sys-primary-container);transition:background-color var(--mscoa-chart-transition)}mat-header-cell{background:var(--mat-sys-surface-container);font-weight:600;font-size:var(--mscoa-chart-font-size-base);padding:var(--mscoa-chart-spacing-md)}.mscoa-chart-table{display:flex;flex-direction:column}.portal-container{width:100%}.account-cell-wrapper{position:relative;width:100%;max-width:100%;overflow:visible;z-index:1;min-height:38px;display:flex;flex-direction:column;gap:4px}.cell-button-wrapper{position:relative;width:100%;max-width:100%;overflow:hidden}.cell-button{height:fit-content;min-height:38px;width:100%;max-width:100%;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height);position:relative;overflow:visible;padding:8px}.cell-button:hover:not(:disabled){background-color:var(--mat-sys-surface-container);transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.cell-button:focus-visible{outline:3px solid var(--mat-sys-primary);outline-offset:2px;z-index:1}.cell-button:disabled{opacity:.6;cursor:not-allowed}.cell-button--selected{background-color:transparent}.cell-button--selected:hover:not(:disabled){background-color:var(--lib-forms-surface-container-low);border-color:var(--lib-forms-primary)}.cell-button.cell-button--selected{animation:fadeInSuccess var(--mscoa-chart-transition)}.cell-button.cell-button--business-error{border-color:var(--lib-forms-error)}.cell-button.cell-button--business-error .selected-acount-label--business-error{color:var(--mat-sys-error);border-color:var(--mat-sys-error)}.success-indicator{color:var(--sem-success);font-size:18px;width:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;height:18px;margin-left:var(--mscoa-chart-spacing-xs);animation:scaleIn var(--mscoa-chart-transition);flex-shrink:0}.validated-indicator{color:var(--lib-forms-primary);font-size:18px;width:18px;height:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;margin-left:var(--mscoa-chart-spacing-xs);flex-shrink:0;animation:validatedShieldIn .3s ease-out forwards}.business-error-indicator{color:var(--lib-forms-error);font-size:18px;width:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;height:18px;margin-left:var(--mscoa-chart-spacing-xs);flex-shrink:0}.required-indicator{color:var(--lib-forms-error);font-weight:600;margin-left:2px}.inline-hint{display:block;font-size:12px;color:var(--lib-forms-on-surface-variant);margin-top:var(--mscoa-chart-spacing-xs);padding:var(--mscoa-chart-spacing-xs) var(--mscoa-chart-spacing-sm);background-color:var(--lib-forms-surface-container-low);border-radius:var(--mscoa-chart-border-radius);line-height:1.4;max-width:100%;word-wrap:break-word}.content{padding:0;display:flex;gap:6px;width:100%;max-width:100%;overflow:visible;min-width:0;flex-wrap:wrap;align-items:center}.selected-acount-label{text-align:left;flex:1;font-weight:400;transition:color var(--mscoa-chart-transition)}.selected-acount-label--error,.selected-acount-label--business-error{color:var(--mat-sys-error);font-weight:500}.selected-acount-label--tag{display:inline-block;padding:4px 10px;background-color:var(--lib-forms-primary-container);color:var(--lib-forms-on-primary-container);border-radius:16px;font-size:13px;font-weight:500;line-height:1.5;border:1px solid var(--lib-forms-primary);box-shadow:0 1px 2px #0000001a;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);width:100%;max-width:100%;overflow:visible;white-space:normal;word-wrap:break-word;word-break:break-word;cursor:pointer;box-sizing:border-box;position:relative}.selected-acount-label--tag:hover{background-color:var(--sem-info-surface);box-shadow:0 2px 4px #1976d226}.segment-cell-content{display:flex;align-items:center;justify-content:flex-end;font-weight:500}.vat-badge{display:inline-flex;align-items:center;justify-content:center;height:16px;padding:2px 6px;border-radius:8px;font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;background-color:var(--sem-success-surface);color:var(--sem-warning);border:1px solid var(--lib-forms-outline-variant);box-shadow:none;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),border-color var(--lib-forms-duration-hover) var(--lib-forms-easing);flex-shrink:0;align-self:flex-start;margin-top:2px;line-height:1}.vat-badge:hover{background-color:var(--sem-warning-surface);border-color:var(--sem-warning)}.vat-chip-container{padding-left:var(--mscoa-chart-spacing-sm);padding-right:var(--mscoa-chart-spacing-sm);padding-bottom:var(--mscoa-chart-spacing-xs);margin-top:var(--mscoa-chart-spacing-xs)}.vat-chip{display:inline-flex;align-items:center;gap:4px;height:24px;padding:4px 8px;border-radius:12px;font-size:11px;font-weight:600;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing);box-shadow:0 1px 3px #0000001f}.vat-chip--applicable{background:linear-gradient(135deg,var(--sem-warning) 0%,var(--sem-warning) 100%);color:var(--lib-forms-on-primary);border:1px solid var(--sem-warning)}.vat-chip--applicable:hover{box-shadow:0 2px 6px #f57c004d;transform:translateY(-1px)}.vat-chip__icon{font-size:14px;width:14px;height:14px;opacity:.9}.vat-chip__text{font-size:11px;font-weight:600;letter-spacing:.3px}.info-box{display:flex;align-items:center;gap:var(--mscoa-chart-spacing-sm);padding:12px;background:var(--sem-info-surface);border-radius:var(--mscoa-chart-border-radius);margin-bottom:var(--mscoa-chart-spacing-md)}.info-icon{min-width:38px;margin:auto;margin-top:var(--mscoa-chart-spacing-sm)}.empty-state{padding:var(--mscoa-chart-spacing-md);text-align:center;display:flex;align-items:center;justify-content:center;gap:var(--mscoa-chart-spacing-sm);color:var(--mat-sys-on-surface-variant)}.validation-hints{margin-top:var(--mscoa-chart-spacing-md);padding:var(--mscoa-chart-spacing-md);background-color:var(--lib-forms-surface-container-low);border-radius:var(--mscoa-chart-border-radius);border-left:4px solid var(--lib-forms-primary);box-shadow:0 1px 3px #00000014}.validation-hints__title{font-weight:600;font-size:var(--mscoa-chart-font-size-base);margin:0 0 var(--mscoa-chart-spacing-sm) 0;color:var(--lib-forms-on-surface);display:flex;align-items:center;gap:var(--mscoa-chart-spacing-xs)}.validation-hints__title:before{content:\"\\1f4a1\";font-size:16px}.validation-hints__list{margin:0;padding-left:var(--mscoa-chart-spacing-md);color:var(--lib-forms-on-surface-variant);font-size:13px;line-height:1.6}.validation-hints__list li{margin-bottom:var(--mscoa-chart-spacing-sm);position:relative}.validation-hints__list li::marker{color:var(--lib-forms-primary)}.validation-hints__list li:last-child{margin-bottom:0}mat-error{font-size:.75em;margin-top:var(--mscoa-chart-spacing-xs)}mat-error ul{margin:0;padding-left:var(--mscoa-chart-spacing-md)}mat-error li{margin-bottom:var(--mscoa-chart-spacing-xs)}.loading-placeholder{padding:var(--mscoa-chart-spacing-md);color:var(--mat-sys-on-surface-variant)}.loading-spinner-container{display:flex;justify-content:center;align-items:center;height:256px}.error-state{padding:var(--mscoa-chart-spacing-md);color:var(--mat-sys-error)}mat-panel-description{font-size:.875em;line-height:1.4}:host .main-expanse-content{background:var(--mat-sys-surface-container)}@media(max-width:768px){.dual-basis-container{gap:var(--mscoa-chart-spacing-md)}.cell-button{min-height:44px;font-size:15px;max-width:300px}.content{padding:var(--mscoa-chart-spacing-md)}.validation-hints{font-size:13px;padding:var(--mscoa-chart-spacing-sm)}.inline-hint{font-size:11px}}.cell-button:focus-visible,button:focus-visible{outline:3px solid var(--mat-sys-primary);outline-offset:2px;outline-style:solid}@media(prefers-contrast:high){.cell-button{border:2px solid currentColor}.cell-button:focus-visible{outline-width:4px}.selected-acount-label--error{font-weight:600}}@media(prefers-reduced-motion:reduce){.cell-button,.success-indicator,.fade-in,.validated-indicator{animation:none;transition:none}}.table__cell--active{background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}@media(prefers-contrast:high){.table__cell--active{background-color:var(--mat-sys-primary);color:var(--mat-sys-on-primary)}}.table__cell--business-error{background-color:var(--lib-forms-error-container);border-left:3px solid var(--lib-forms-error)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInSuccess{0%{background-color:transparent}50%{background-color:var(--sem-success-surface)}to{background-color:var(--mat-sys-primary-container)}}@keyframes scaleIn{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes validatedShieldIn{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.1)}to{opacity:1;transform:scale(1)}}.fade-in{animation:fadeIn var(--mscoa-chart-transition)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.skeleton-loader{background:linear-gradient(90deg,var(--mat-sys-surface-container) 25%,var(--mat-sys-surface-container-high) 50%,var(--mat-sys-surface-container) 75%);background-size:200% 100%;animation:loading 1.5s ease-in-out infinite;border-radius:var(--mscoa-chart-border-radius)}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-row{height:48px;margin-bottom:var(--mscoa-chart-spacing-xs)}.skeleton-cell{height:100%;margin-right:var(--mscoa-chart-spacing-md)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: PortalModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i6$1.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "ngmodule", type: MatTableModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: MscoaChartInputMenuComponent, selector: "lib-mscoa-chart-input-menu", inputs: ["innerInput", "countdownSeconds", "hoveredId"], outputs: ["edit", "delete", "cancelDelete", "hoverStart", "hoverEnd"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i3.NgTemplateOutlet, i4$2.CdkPortalOutlet, i1$2.MatButton, i1$2.MatIconButton, i3$1.MatIcon, i6$1.MatMenuTrigger, 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, i5.MatTooltip, import('./ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs').then(m => m.MscoaChartToolbarComponent), import('./ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs').then(m => m.MscoaErrorDisplayComponent), import('./ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs').then(m => m.MscoaTemporaryHintComponent), i3.AsyncPipe, i3.TitleCasePipe, Promise.resolve().then(function () { return daysAgo_pipe; }).then(m => m.ConvertCamelCasePipe)]] }); }
|
|
19451
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaChartComponent, isStandalone: true, selector: "lib-mscoa-chart", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, editorMode: { classPropertyName: "editorMode", publicName: "editorMode", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: false, transformFunction: null }, formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onContainerClick: "onContainerClick", interaction: "interaction" }, ngImport: i0, template: "@if ((viewData$ | async); as viewData) {\r\n<section\r\n (click)=\"setAsTouched($event)\"\r\n class=\"mscoa-chart__container\"\r\n [class.mscoa-chart__container--touched]=\"touched()\"\r\n role=\"region\"\r\n [attr.aria-label]=\"'MSCOA Account Chart'\"\r\n [attr.aria-busy]=\"viewData.loading || viewData.validatingValue\">\r\n\r\n @if (viewData.loading) {\r\n <div class=\"mscoa-chart__loading-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-spinner [diameter]=\"40\"></mat-spinner>\r\n <span class=\"sr-only\">Loading account chart data...</span>\r\n </div>\r\n } @else {\r\n @defer () {\r\n @if (viewData.accountTreeKeys || viewData.cashAccountTreeKeys) {\r\n <div class=\"mscoa-chart__table-container\">\r\n @if (isDualAccountBasis) {\r\n <div class=\"dual-basis-container\" role=\"group\" aria-label=\"Dual accounting basis tables\">\r\n <div class=\"dual-basis-container__item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: ACCOUNTING_BASIS.ACCRUAL,\r\n canCollapse: true,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dual-basis-container__item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: ACCOUNTING_BASIS.CASH,\r\n canCollapse: true,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n } @else {\r\n <ng-container\r\n *ngTemplateOutlet=\"selectionTable;\r\n context: {\r\n accountingBasis: config()?.accountingBasis,\r\n canCollapse: false,\r\n viewData: viewData\r\n }\">\r\n </ng-container>\r\n }\r\n </div>\r\n }\r\n\r\n <ng-template\r\n #selectionTable\r\n let-accountingBasis=\"accountingBasis\"\r\n let-canCollapse=\"canCollapse\"\r\n let-viewData=\"viewData\">\r\n\r\n <div class=\"mscoa-chart-table\" role=\"group\" [attr.aria-label]=\"'Accounting basis: ' + (accountingBasis || 'Accrual')\">\r\n <!-- Toolbar -->\r\n <lib-mscoa-chart-toolbar\r\n [accountingBasis]=\"accountingBasis\"\r\n [canCollapse]=\"canCollapse\"\r\n [isExpanded]=\"getExpansionState(accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\"\r\n (toggleExpansion)=\"toggleDualBasisExpansion(accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\">\r\n </lib-mscoa-chart-toolbar>\r\n\r\n @if (shouldShowTable(isDualAccountBasis, getExpansionState(accountingBasis || ACCOUNTING_BASIS.ACCRUAL), accountingBasis)) {\r\n <div class=\"account-selection-table-wrapper\">\r\n <div\r\n class=\"account-selection-table-container\"\r\n [class.account-selection-table-container--accrual]=\"!accountingBasis || accountingBasis === ACCOUNTING_BASIS.ACCRUAL\"\r\n [class.account-selection-table-container--cash]=\"accountingBasis === ACCOUNTING_BASIS.CASH\"\r\n role=\"table\"\r\n [attr.aria-label]=\"'Account selection table for ' + (accountingBasis || 'Accrual') + ' basis'\">\r\n\r\n <table\r\n mat-table\r\n [dataSource]=\"accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashTableData : viewData.tableData\"\r\n [trackBy]=\"trackByRow\"\r\n class=\"table\"\r\n [attr.aria-label]=\"'Account selection table for ' + (accountingBasis || 'Accrual') + ' basis'\"\r\n [attr.aria-describedby]=\"'table-description-' + (accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\"\r\n role=\"table\">\r\n <span [id]=\"'table-description-' + (accountingBasis || ACCOUNTING_BASIS.ACCRUAL)\" class=\"sr-only\">\r\n Use arrow keys to navigate between cells. Press Enter or Space to select an account.\r\n </span>\r\n\r\n @for (\r\n col of (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols);\r\n track trackByColumn($index, col);\r\n let i = $index\r\n ) {\r\n <ng-container [matColumnDef]=\"col\" [sticky]=\"i === 0\">\r\n <!-- Header Cell -->\r\n <th\r\n mat-header-cell\r\n *matHeaderCellDef\r\n [class.table__header-cell--segment]=\"isSegmentColumn(i)\"\r\n [class.table__header-cell--regular]=\"!isSegmentColumn(i)\"\r\n [style.width.%]=\"getColumnWidthPercent(isSegmentColumn(i), (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols).length)\"\r\n [style.min-width.px]=\"isSegmentColumn(i) ? 150 : 200\"\r\n [attr.aria-sort]=\"i === 0 ? 'none' : null\"\r\n [attr.scope]=\"'col'\"\r\n [attr.aria-label]=\"getHeaderText(col, i, accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashHasMultiSelect : viewData.hasMultiSelect) + ' column'\">\r\n {{ getHeaderText(col, i, accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashHasMultiSelect : viewData.hasMultiSelect) | titlecase | unCamelCase }}\r\n </th>\r\n\r\n <!-- Data Cell -->\r\n <td\r\n mat-cell\r\n *matCellDef=\"let row\"\r\n [class.table__cell--segment]=\"isSegmentColumn(i)\"\r\n [class.table__cell--regular]=\"!isSegmentColumn(i)\"\r\n [class.table__cell--active]=\"editSelection?.segment === row['segment'] && activeColumn === col\"\r\n [class.table__cell--business-error]=\"!isSegmentColumn(i) && getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-label]=\"'Cell for ' + row['segment'] + ' segment, ' + col + ' column'\"\r\n [attr.aria-selected]=\"!!row[col]\"\r\n [attr.aria-invalid]=\"!isSegmentColumn(i) && !!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.role]=\"'gridcell'\"\r\n [attr.tabindex]=\"isSegmentColumn(i) ? -1 : (row[col] ? 0 : -1)\">\r\n\r\n @if (isSegmentColumn(i)) {\r\n <!-- Segment Column -->\r\n <div class=\"segment-cell-content\">\r\n @if (editorMode() && row.innerInput?.id) {\r\n <button\r\n mat-icon-button\r\n [matMenuTriggerData]=\"{innerInput: row.innerInput}\"\r\n [matMenuTriggerFor]=\"inputMenu\"\r\n [matTooltip]=\"'Options for: ' + row.innerInput.label\"\r\n [attr.aria-label]=\"'Options menu for ' + row.innerInput.label\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon>more_vert</mat-icon>\r\n </button>\r\n }\r\n <span class=\"segment-cell-content__label\">{{ row['label'] }}</span>\r\n </div>\r\n } @else {\r\n <!-- Regular Column -->\r\n @if (row.innerInput?.id) {\r\n <!-- Custom-input row (peer of the segments): the value is entered inline via the\r\n input portal on the primary (debit) leg; other legs mirror it and render no\r\n control. `innerInput.id` is already the namespaced portal key, so it is looked\r\n up directly \u2014 prepending it again (getPortalKey) double-namespaces and misses. -->\r\n @if (col === COLUMNS.DEBIT && formGroup() && inputPortals[row.innerInput.id]) {\r\n <div class=\"portal-container\">\r\n <ng-template [cdkPortalOutlet]=\"inputPortals[row.innerInput.id]\"></ng-template>\r\n </div>\r\n }\r\n } @else {\r\n @if (row[col]) {\r\n <!-- Account Selected -->\r\n @if (getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment']); as cellError) {\r\n <div class=\"account-cell-wrapper\"\r\n [class.account-cell-wrapper--expandable]=\"isTextTruncated(row[col] | unCamelCase)\">\r\n <button\r\n [disabled]=\"row['singleSelect'] === true && col === COLUMNS.CREDIT\"\r\n (mousedown)=\"$event.preventDefault(); $event.stopPropagation(); selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n color=\"primary\"\r\n mat-button\r\n class=\"cell-button cell-button--selected cell-button--business-error\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase) + ' for ' + row['segment'] + ' segment, ' + col + ' column. Business error: ' + cellError.message\"\r\n [attr.aria-invalid]=\"true\"\r\n [attr.aria-pressed]=\"true\"\r\n [matTooltip]=\"cellError.message\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label selected-acount-label--tag selected-acount-label--business-error\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase)\">\r\n {{ row[col] | unCamelCase }}\r\n @if (shouldShowVatChip(row, col)) {\r\n <span\r\n class=\"vat-badge\"\r\n [attr.aria-label]=\"'VAT applicable to ' + col + ' column'\"\r\n [matTooltip]=\"'VAT is applicable to this ' + col + ' account selection'\">\r\n VAT\r\n </span>\r\n }\r\n </span>\r\n <mat-icon class=\"business-error-indicator\" aria-hidden=\"true\">error</mat-icon>\r\n </div>\r\n </button>\r\n </div>\r\n } @else {\r\n <div class=\"account-cell-wrapper\"\r\n [class.account-cell-wrapper--expandable]=\"isTextTruncated(row[col] | unCamelCase)\">\r\n <button\r\n [disabled]=\"(row['singleSelect'] === true && col === COLUMNS.CREDIT) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n (mousedown)=\"$event.preventDefault(); $event.stopPropagation(); selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n color=\"primary\"\r\n mat-button\r\n class=\"cell-button cell-button--selected\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase) + ' for ' + row['segment'] + ' segment, ' + col + ' column. Press Enter or Space to change'\"\r\n [attr.aria-invalid]=\"false\"\r\n [attr.aria-disabled]=\"(row['singleSelect'] === true && col === COLUMNS.CREDIT) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-pressed]=\"true\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label selected-acount-label--tag\"\r\n [attr.aria-label]=\"'Selected account: ' + (row[col] | unCamelCase)\">\r\n {{ row[col] | unCamelCase }}\r\n @if (shouldShowVatChip(row, col)) {\r\n <span\r\n class=\"vat-badge\"\r\n [attr.aria-label]=\"'VAT applicable to ' + col + ' column'\"\r\n [matTooltip]=\"'VAT is applicable to this ' + col + ' account selection'\">\r\n VAT\r\n </span>\r\n }\r\n </span>\r\n @if (showValidationSuccessIndicators) {\r\n <mat-icon class=\"validated-indicator\" aria-hidden=\"true\" [matTooltip]=\"'Validated'\">shield</mat-icon>\r\n } @else {\r\n <mat-icon class=\"success-indicator\" aria-hidden=\"true\">check_circle</mat-icon>\r\n }\r\n </div>\r\n </button>\r\n </div>\r\n }\r\n } @else {\r\n <!-- No Account Selected -->\r\n <div class=\"cell-button-wrapper\">\r\n <button\r\n [disabled]=\"selectionDisabled(row, col) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [color]=\"\"\r\n (click)=\"selectAccount(row, col, accountingBasis === ACCOUNTING_BASIS.CASH); $event.stopPropagation(); setAsTouched($event)\"\r\n (keydown)=\"handleCellKeyDown($event, row, col, accountingBasis === ACCOUNTING_BASIS.CASH)\"\r\n mat-button\r\n class=\"cell-button\"\r\n [class.cell-button--business-error]=\"!!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-label]=\"shouldShowAutoSelectedLabel(row, col) ? 'Auto selected for ' + row['segment'] + ' segment, ' + col + ' column' : 'Select account for ' + row['segment'] + ' segment, ' + col + ' column'\"\r\n [attr.aria-disabled]=\"selectionDisabled(row, col) || isCellDisabledByBusinessErrors(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-describedby]=\"getValidationHint(row, col, accountingBasis || ACCOUNTING_BASIS.ACCRUAL) ? 'hint-' + row['segment'] + '-' + col : null\"\r\n [attr.aria-invalid]=\"hasError(touched(), inputConfig().required || false, !!row[col]) || !!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\"\r\n [attr.aria-required]=\"inputConfig().required && !row[col]\"\r\n [matTooltip]=\"getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])?.message\">\r\n <div class=\"content\">\r\n <span\r\n class=\"selected-acount-label\"\r\n [class.selected-acount-label--error]=\"hasError(touched(), inputConfig().required || false, !!row[col])\"\r\n [class.selected-acount-label--business-error]=\"!!getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])\">\r\n {{ (shouldShowAutoSelectedLabel(row, col) ? 'auto selected' : 'Select account') | unCamelCase }}\r\n @if (inputConfig().required && !row[col]) {\r\n <span class=\"required-indicator\" aria-label=\"Required field\">*</span>\r\n }\r\n </span>\r\n @if (getCellBusinessError(viewData.validationErrors, accountingBasis || ACCOUNTING_BASIS.ACCRUAL, col, row['segment'])) {\r\n <mat-icon class=\"business-error-indicator\" aria-hidden=\"true\">error</mat-icon>\r\n } @else if (shouldShowDropdownIcon(row, col)) {\r\n <mat-icon aria-hidden=\"true\">arrow_drop_down</mat-icon>\r\n }\r\n </div>\r\n </button>\r\n @if (getValidationHint(row, col, accountingBasis || ACCOUNTING_BASIS.ACCRUAL); as hint) {\r\n <span\r\n class=\"inline-hint\"\r\n [id]=\"'hint-' + row['segment'] + '-' + col\"\r\n role=\"tooltip\"\r\n aria-live=\"polite\">\r\n {{ hint }}\r\n </span>\r\n }\r\n </div>\r\n }\r\n }\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: (accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashCols : viewData.cols)\"></tr>\r\n </table>\r\n </div>\r\n </div>\r\n\r\n <!-- Empty State -->\r\n @if ((accountingBasis === ACCOUNTING_BASIS.CASH ? viewData.cashAccountTreeKeys : viewData.accountTreeKeys).length === 0) {\r\n <section class=\"empty-state\" role=\"status\" aria-live=\"polite\">\r\n <mat-icon aria-hidden=\"true\">info</mat-icon>\r\n <span>\r\n No account segments are currently configured.\r\n Please configure account segments to proceed.\r\n </span>\r\n </section>\r\n }\r\n\r\n <!-- Success Messages (Temporary) -->\r\n @if ((successMessage$ | async); as successMessages) {\r\n @if (getSuccessMessage(successMessages, accountingBasis || ACCOUNTING_BASIS.ACCRUAL); as msg) {\r\n <lib-mscoa-temporary-hint\r\n [message]=\"getSuccessMessage(successMessages, accountingBasis || ACCOUNTING_BASIS.ACCRUAL) ?? ''\"\r\n [type]=\"'info'\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-temporary-hint>\r\n }\r\n }\r\n\r\n <!-- Business Rule Errors (Temporary display, keeps error styling) -->\r\n @if ((viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL] || []).length > 0) {\r\n <lib-mscoa-error-display\r\n [errors]=\"viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL] || []\"\r\n type=\"error\"\r\n [context]=\"{ accountingBasis: accountingBasis || ACCOUNTING_BASIS.ACCRUAL }\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-error-display>\r\n }\r\n\r\n <!-- Temporary Contextual Hints -->\r\n @if (temporaryHintMessage) {\r\n <lib-mscoa-temporary-hint\r\n [message]=\"temporaryHintMessage\"\r\n [type]=\"temporaryHintType\"\r\n [duration]=\"6000\"\r\n [showDismiss]=\"true\">\r\n </lib-mscoa-temporary-hint>\r\n }\r\n\r\n <!-- Validation Hints (Context-Aware) -->\r\n @if (!touched() && inputConfig().required && !viewData.busnessRuleErrors[accountingBasis || ACCOUNTING_BASIS.ACCRUAL]?.length && (!isDualAccountBasis || accountingBasis === ACCOUNTING_BASIS.ACCRUAL || !accountingBasis)) {\r\n <div class=\"validation-hints\" role=\"region\" aria-label=\"Validation guidance\">\r\n <p class=\"validation-hints__title\">Guidance:</p>\r\n <ul class=\"validation-hints__list\">\r\n <li>Account combinations are validated automatically. Select accounts that belong to compatible reporting categories.</li>\r\n <li>Required fields are marked with an asterisk (*). Complete all required selections to proceed.</li>\r\n <li>Some fields may be automatically populated based on your selections to ensure consistency.</li>\r\n </ul>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </ng-template>\r\n } @placeholder {\r\n <div class=\"loading-placeholder\" role=\"status\" aria-live=\"polite\">\r\n <p>Loading data...</p>\r\n </div>\r\n } @loading (minimum 100ms) {\r\n <div class=\"loading-spinner-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"40\"></mat-progress-spinner>\r\n <span class=\"sr-only\">Loading account chart...</span>\r\n </div>\r\n } @error {\r\n <div class=\"error-state\" role=\"alert\" aria-live=\"assertive\">\r\n <p>Error loading data. Please try again.</p>\r\n </div>\r\n }\r\n }\r\n</section>\r\n}\r\n\r\n<!-- Input Menu -->\r\n<mat-menu #inputMenu=\"matMenu\">\r\n <ng-template matMenuContent let-innerInput=\"innerInput\">\r\n <lib-mscoa-chart-input-menu\r\n [innerInput]=\"innerInput\"\r\n [countdownSeconds]=\"inputWillBeRemovedIn(innerInput.id)\"\r\n [hoveredId]=\"hoveredInputId\"\r\n (edit)=\"onInputMenuEdit($event)\"\r\n (delete)=\"onInputMenuDelete($event)\"\r\n (cancelDelete)=\"onInputMenuCancelDelete($event)\"\r\n (hoverStart)=\"onInputMenuHoverStart($event)\"\r\n (hoverEnd)=\"onInputMenuHoverEnd()\">\r\n </lib-mscoa-chart-input-menu>\r\n </ng-template>\r\n</mat-menu>\r\n", styles: ["@charset \"UTF-8\";:host{--mscoa-chart-spacing-xs: 4px;--mscoa-chart-spacing-sm: 8px;--mscoa-chart-spacing-md: 16px;--mscoa-chart-spacing-lg: 24px;--mscoa-chart-spacing-xl: 32px;--mscoa-chart-border-radius: 4px;--mscoa-chart-transition: var(--lib-forms-duration-hover) var(--lib-forms-easing);--mscoa-chart-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--mscoa-chart-font-size-base: 14px;--mscoa-chart-line-height: 1.5;display:block;font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height)}.mscoa-chart__container{padding:0;transition:background-color var(--mscoa-chart-transition);width:100%;max-width:100%;overflow-x:hidden;box-sizing:border-box}.mscoa-chart__loading-container{padding:var(--mscoa-chart-spacing-lg);display:flex;align-items:center;justify-content:center}.mscoa-chart__table-container{position:relative;width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;box-sizing:border-box}.dual-basis-container{display:flex;flex-direction:column;gap:var(--mscoa-chart-spacing-sm)}.dual-basis-container__item{flex:1}:host .single-base{gap:var(--mscoa-chart-spacing-sm);height:48px;font-size:.875em;font-weight:500;transition:background-color var(--mscoa-chart-transition)}:host .single-base--cash{background:var(--mat-sys-inverse-primary)}.account-selection-table-wrapper{position:relative;width:100%}.account-selection-table-container{border-radius:var(--mscoa-chart-border-radius);overflow-x:auto;overflow-y:visible;transition:border-color var(--mscoa-chart-transition);width:100%;max-width:100%;box-sizing:border-box;display:block}.account-selection-table-container--accrual{border:solid 1px var(--mat-sys-primary)}.account-selection-table-container--cash{border:solid 1px var(--mat-sys-inverse-primary)}.account-selection-table-container::-webkit-scrollbar{height:8px}.account-selection-table-container::-webkit-scrollbar-track{background:var(--lib-forms-surface-container-low);border-radius:4px}.account-selection-table-container::-webkit-scrollbar-thumb{background:var(--lib-forms-outline-variant);border-radius:4px}.account-selection-table-container::-webkit-scrollbar-thumb:hover{background:var(--lib-forms-outline)}.table{width:100%;table-layout:fixed;font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height);border-collapse:separate;border-spacing:0;display:table;box-sizing:border-box;max-width:100%}.table__header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.table__header-cell--segment{text-align:right;padding-right:var(--mscoa-chart-spacing-md);min-width:150px;max-width:200px}.table__header-cell--regular{padding-left:var(--mscoa-chart-spacing-lg);min-width:200px;max-width:none}.table__cell{overflow:visible;box-sizing:border-box;position:relative;vertical-align:top}.table__cell--segment{background:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container));text-align:right;font-weight:500;padding-right:var(--mscoa-chart-spacing-md);min-width:150px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;vertical-align:middle}.table__cell--regular{padding:0;min-width:200px;max-width:none;word-wrap:break-word;vertical-align:top;overflow:visible}.table__cell--active{background-color:var(--mat-sys-primary-container);transition:background-color var(--mscoa-chart-transition)}mat-header-cell{background:var(--mat-sys-surface-container);font-weight:600;font-size:var(--mscoa-chart-font-size-base);padding:var(--mscoa-chart-spacing-md)}.mscoa-chart-table{display:flex;flex-direction:column}.portal-container{width:100%}.account-cell-wrapper{position:relative;width:100%;max-width:100%;overflow:visible;z-index:1;min-height:38px;display:flex;flex-direction:column;gap:4px}.cell-button-wrapper{position:relative;width:100%;max-width:100%;overflow:hidden}.cell-button{height:fit-content;min-height:38px;width:100%;max-width:100%;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);font-family:var(--mscoa-chart-font-family);font-size:var(--mscoa-chart-font-size-base);line-height:var(--mscoa-chart-line-height);position:relative;overflow:visible;padding:8px}.cell-button:hover:not(:disabled){background-color:var(--mat-sys-surface-container);transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.cell-button:focus-visible{outline:3px solid var(--mat-sys-primary);outline-offset:2px;z-index:1}.cell-button:disabled{opacity:.6;cursor:not-allowed}.cell-button--selected{background-color:transparent}.cell-button--selected:hover:not(:disabled){background-color:var(--lib-forms-surface-container-low);border-color:var(--lib-forms-primary)}.cell-button.cell-button--selected{animation:fadeInSuccess var(--mscoa-chart-transition)}.cell-button.cell-button--business-error{border-color:var(--lib-forms-error)}.cell-button.cell-button--business-error .selected-acount-label--business-error{color:var(--mat-sys-error);border-color:var(--mat-sys-error)}.success-indicator{color:var(--sem-success);font-size:18px;width:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;height:18px;margin-left:var(--mscoa-chart-spacing-xs);animation:scaleIn var(--mscoa-chart-transition);flex-shrink:0}.validated-indicator{color:var(--lib-forms-primary);font-size:18px;width:18px;height:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;margin-left:var(--mscoa-chart-spacing-xs);flex-shrink:0;animation:validatedShieldIn .3s ease-out forwards}.business-error-indicator{color:var(--lib-forms-error);font-size:18px;width:18px;right:-8px;top:-4px;background:var(--lib-forms-surface);border-radius:16px;position:absolute;height:18px;margin-left:var(--mscoa-chart-spacing-xs);flex-shrink:0}.required-indicator{color:var(--lib-forms-error);font-weight:600;margin-left:2px}.inline-hint{display:block;font-size:12px;color:var(--lib-forms-on-surface-variant);margin-top:var(--mscoa-chart-spacing-xs);padding:var(--mscoa-chart-spacing-xs) var(--mscoa-chart-spacing-sm);background-color:var(--lib-forms-surface-container-low);border-radius:var(--mscoa-chart-border-radius);line-height:1.4;max-width:100%;word-wrap:break-word}.content{padding:0;display:flex;gap:6px;width:100%;max-width:100%;overflow:visible;min-width:0;flex-wrap:wrap;align-items:center}.selected-acount-label{text-align:left;flex:1;font-weight:400;transition:color var(--mscoa-chart-transition)}.selected-acount-label--error,.selected-acount-label--business-error{color:var(--mat-sys-error);font-weight:500}.selected-acount-label--tag{display:inline-block;padding:4px 10px;background-color:var(--lib-forms-primary-container);color:var(--lib-forms-on-primary-container);border-radius:16px;font-size:13px;font-weight:500;line-height:1.5;border:1px solid var(--lib-forms-primary);box-shadow:0 1px 2px #0000001a;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing);width:100%;max-width:100%;overflow:visible;white-space:normal;word-wrap:break-word;word-break:break-word;cursor:pointer;box-sizing:border-box;position:relative}.selected-acount-label--tag:hover{background-color:var(--sem-info-surface);box-shadow:0 2px 4px #1976d226}.segment-cell-content{display:flex;align-items:center;justify-content:flex-end;font-weight:500}.vat-badge{display:inline-flex;align-items:center;justify-content:center;height:16px;padding:2px 6px;border-radius:8px;font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;background-color:var(--sem-success-surface);color:var(--sem-warning);border:1px solid var(--lib-forms-outline-variant);box-shadow:none;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),border-color var(--lib-forms-duration-hover) var(--lib-forms-easing);flex-shrink:0;align-self:flex-start;margin-top:2px;line-height:1}.vat-badge:hover{background-color:var(--sem-warning-surface);border-color:var(--sem-warning)}.vat-chip-container{padding-left:var(--mscoa-chart-spacing-sm);padding-right:var(--mscoa-chart-spacing-sm);padding-bottom:var(--mscoa-chart-spacing-xs);margin-top:var(--mscoa-chart-spacing-xs)}.vat-chip{display:inline-flex;align-items:center;gap:4px;height:24px;padding:4px 8px;border-radius:12px;font-size:11px;font-weight:600;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),transform var(--lib-forms-duration-hover) var(--lib-forms-easing);box-shadow:0 1px 3px #0000001f}.vat-chip--applicable{background:linear-gradient(135deg,var(--sem-warning) 0%,var(--sem-warning) 100%);color:var(--lib-forms-on-primary);border:1px solid var(--sem-warning)}.vat-chip--applicable:hover{box-shadow:0 2px 6px #f57c004d;transform:translateY(-1px)}.vat-chip__icon{font-size:14px;width:14px;height:14px;opacity:.9}.vat-chip__text{font-size:11px;font-weight:600;letter-spacing:.3px}.info-box{display:flex;align-items:center;gap:var(--mscoa-chart-spacing-sm);padding:12px;background:var(--sem-info-surface);border-radius:var(--mscoa-chart-border-radius);margin-bottom:var(--mscoa-chart-spacing-md)}.info-icon{min-width:38px;margin:auto;margin-top:var(--mscoa-chart-spacing-sm)}.empty-state{padding:var(--mscoa-chart-spacing-md);text-align:center;display:flex;align-items:center;justify-content:center;gap:var(--mscoa-chart-spacing-sm);color:var(--mat-sys-on-surface-variant)}.validation-hints{margin-top:var(--mscoa-chart-spacing-md);padding:var(--mscoa-chart-spacing-md);background-color:var(--lib-forms-surface-container-low);border-radius:var(--mscoa-chart-border-radius);border-left:4px solid var(--lib-forms-primary);box-shadow:0 1px 3px #00000014}.validation-hints__title{font-weight:600;font-size:var(--mscoa-chart-font-size-base);margin:0 0 var(--mscoa-chart-spacing-sm) 0;color:var(--lib-forms-on-surface);display:flex;align-items:center;gap:var(--mscoa-chart-spacing-xs)}.validation-hints__title:before{content:\"\\1f4a1\";font-size:16px}.validation-hints__list{margin:0;padding-left:var(--mscoa-chart-spacing-md);color:var(--lib-forms-on-surface-variant);font-size:13px;line-height:1.6}.validation-hints__list li{margin-bottom:var(--mscoa-chart-spacing-sm);position:relative}.validation-hints__list li::marker{color:var(--lib-forms-primary)}.validation-hints__list li:last-child{margin-bottom:0}mat-error{font-size:.75em;margin-top:var(--mscoa-chart-spacing-xs)}mat-error ul{margin:0;padding-left:var(--mscoa-chart-spacing-md)}mat-error li{margin-bottom:var(--mscoa-chart-spacing-xs)}.loading-placeholder{padding:var(--mscoa-chart-spacing-md);color:var(--mat-sys-on-surface-variant)}.loading-spinner-container{display:flex;justify-content:center;align-items:center;height:256px}.error-state{padding:var(--mscoa-chart-spacing-md);color:var(--mat-sys-error)}mat-panel-description{font-size:.875em;line-height:1.4}:host .main-expanse-content{background:var(--mat-sys-surface-container)}@media(max-width:768px){.dual-basis-container{gap:var(--mscoa-chart-spacing-md)}.cell-button{min-height:44px;font-size:15px;max-width:300px}.content{padding:var(--mscoa-chart-spacing-md)}.validation-hints{font-size:13px;padding:var(--mscoa-chart-spacing-sm)}.inline-hint{font-size:11px}}.cell-button:focus-visible,button:focus-visible{outline:3px solid var(--mat-sys-primary);outline-offset:2px;outline-style:solid}@media(prefers-contrast:high){.cell-button{border:2px solid currentColor}.cell-button:focus-visible{outline-width:4px}.selected-acount-label--error{font-weight:600}}@media(prefers-reduced-motion:reduce){.cell-button,.success-indicator,.fade-in,.validated-indicator{animation:none;transition:none}}.table__cell--active{background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}@media(prefers-contrast:high){.table__cell--active{background-color:var(--mat-sys-primary);color:var(--mat-sys-on-primary)}}.table__cell--business-error{background-color:var(--lib-forms-error-container);border-left:3px solid var(--lib-forms-error)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInSuccess{0%{background-color:transparent}50%{background-color:var(--sem-success-surface)}to{background-color:var(--mat-sys-primary-container)}}@keyframes scaleIn{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes validatedShieldIn{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.1)}to{opacity:1;transform:scale(1)}}.fade-in{animation:fadeIn var(--mscoa-chart-transition)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.skeleton-loader{background:linear-gradient(90deg,var(--mat-sys-surface-container) 25%,var(--mat-sys-surface-container-high) 50%,var(--mat-sys-surface-container) 75%);background-size:200% 100%;animation:loading 1.5s ease-in-out infinite;border-radius:var(--mscoa-chart-border-radius)}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-row{height:48px;margin-bottom:var(--mscoa-chart-spacing-xs)}.skeleton-cell{height:100%;margin-right:var(--mscoa-chart-spacing-md)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: PortalModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i6$1.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "ngmodule", type: MatTableModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: MscoaChartInputMenuComponent, selector: "lib-mscoa-chart-input-menu", inputs: ["innerInput", "countdownSeconds", "hoveredId"], outputs: ["edit", "delete", "cancelDelete", "hoverStart", "hoverEnd"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i3.NgTemplateOutlet, i4$2.CdkPortalOutlet, i2.MatButton, i2.MatIconButton, i3$1.MatIcon, i6$1.MatMenuTrigger, 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, i5.MatTooltip, import('./ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs').then(m => m.MscoaChartToolbarComponent), import('./ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs').then(m => m.MscoaErrorDisplayComponent), import('./ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs').then(m => m.MscoaTemporaryHintComponent), i3.AsyncPipe, i3.TitleCasePipe, Promise.resolve().then(function () { return daysAgo_pipe; }).then(m => m.ConvertCamelCasePipe)]] }); }
|
|
18746
19452
|
}
|
|
18747
|
-
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: MscoaChartComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-mscoa-chart-toolbar.component-
|
|
19453
|
+
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: MscoaChartComponent, resolveDeferredDeps: () => [import('./ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs').then(m => m.MscoaChartToolbarComponent), import('./ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs').then(m => m.MscoaErrorDisplayComponent), import('./ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs').then(m => m.MscoaTemporaryHintComponent), Promise.resolve().then(function () { return daysAgo_pipe; }).then(m => m.ConvertCamelCasePipe)], resolveMetadata: (MscoaChartToolbarComponent, MscoaErrorDisplayComponent, MscoaTemporaryHintComponent, ConvertCamelCasePipe) => ({ decorators: [{
|
|
18748
19454
|
type: Component,
|
|
18749
19455
|
args: [{ selector: 'lib-mscoa-chart', imports: [
|
|
18750
19456
|
CommonModule,
|
|
@@ -19412,7 +20118,7 @@ class MscoaFormInputComponent {
|
|
|
19412
20118
|
return getInputErrorMessage(this.inputConfig(), this.formGroup(), true);
|
|
19413
20119
|
}
|
|
19414
20120
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MscoaFormInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19415
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaFormInputComponent, isStandalone: true, selector: "lib-mscoa-form-input", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, editorMode: { classPropertyName: "editorMode", publicName: "editorMode", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null }, formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, 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 <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status\r\n [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n\r\n <lib-mscoa-reactive-form-field\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-mscoa-reactive-form-field>\r\n\r\n\r\n\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 || []).length > 0) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">\r\n <ul style=\" margin: 0px;\r\n padding-left: 16px;\">\r\n @for (err of errorMessage; track $index) {\r\n <li>\r\n {{ err }}\r\n </li>\r\n }\r\n </ul>\r\n\r\n </mat-error>\r\n }\r\n @if (inputConfig.canReload?.canReload) {\r\n <button 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()\" matSuffix>\r\n <mat-icon style=\"color:var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n <!-- Prefix Icon -->\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n <!-- Suffix Icon or Password Visibility Toggle -->\r\n @if (inputConfig.suffixIcon) {\r\n @if (inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n <!-- <button *ngIf=\"inputConfig.id === 'password'\" (click)=\"inputConfig.togglePasswordVisibility()\"\r\n mat-icon-button matSuffix>\r\n <mat-icon>{{ inputConfig.showPassword ? 'remove_red_eye' : 'eye_off' }}</mat-icon>\r\n </button> -->\r\n }\r\n\r\n <!-- Prefix & Suffix Text -->\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 <!-- Character Count Hint -->\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\r\n\r\n </mat-form-field>\r\n }\r\n\r\n\r\n\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"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
20121
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MscoaFormInputComponent, isStandalone: true, selector: "lib-mscoa-form-input", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, editorMode: { classPropertyName: "editorMode", publicName: "editorMode", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null }, formBuilderFunctions: { classPropertyName: "formBuilderFunctions", publicName: "formBuilderFunctions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, 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 <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status\r\n [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n\r\n <lib-mscoa-reactive-form-field\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-mscoa-reactive-form-field>\r\n\r\n\r\n\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 || []).length > 0) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">\r\n <ul style=\" margin: 0px;\r\n padding-left: 16px;\">\r\n @for (err of errorMessage; track $index) {\r\n <li>\r\n {{ err }}\r\n </li>\r\n }\r\n </ul>\r\n\r\n </mat-error>\r\n }\r\n @if (inputConfig.canReload?.canReload) {\r\n <button 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()\" matSuffix>\r\n <mat-icon style=\"color:var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n <!-- Prefix Icon -->\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n <!-- Suffix Icon or Password Visibility Toggle -->\r\n @if (inputConfig.suffixIcon) {\r\n @if (inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n <!-- <button *ngIf=\"inputConfig.id === 'password'\" (click)=\"inputConfig.togglePasswordVisibility()\"\r\n mat-icon-button matSuffix>\r\n <mat-icon>{{ inputConfig.showPassword ? 'remove_red_eye' : 'eye_off' }}</mat-icon>\r\n </button> -->\r\n }\r\n\r\n <!-- Prefix & Suffix Text -->\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 <!-- Character Count Hint -->\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\r\n\r\n </mat-form-field>\r\n }\r\n\r\n\r\n\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"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { 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: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }, { kind: "component", type: MscoaReactiveFormFieldComponent, selector: "lib-mscoa-reactive-form-field", inputs: ["formBuilderFunctions", "editorMode", "inputConfig"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19416
20122
|
}
|
|
19417
20123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MscoaFormInputComponent, decorators: [{
|
|
19418
20124
|
type: Component,
|
|
@@ -19846,7 +20552,7 @@ class SignaturePadInputComponent extends BaseCustomInput {
|
|
|
19846
20552
|
provide: MatFormFieldControl,
|
|
19847
20553
|
useExisting: SignaturePadInputComponent,
|
|
19848
20554
|
},
|
|
19849
|
-
], viewQueries: [{ propertyName: "signatureElement", first: true, predicate: ["signature"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"signature-field\" [class.signature-field--readonly]=\"inputConfig().readonly || inputConfig().disabled\">\n <!-- Drawing surface \u2014 the <canvas> is appended here imperatively at runtime. -->\n <div\n #signature\n class=\"signature-container\"\n [class.signature-container--preview]=\"canApplySignature\"\n ></div>\n\n <!-- Footer: trust note on the left, contextual actions on the right. -->\n <div class=\"signature-toolbar\">\n <span class=\"signature-trust\">\n <mat-icon class=\"signature-trust__icon\" aria-hidden=\"true\">verified_user</mat-icon>\n <span class=\"signature-trust__text\">\n <span class=\"signature-trust__title\">Signature</span>\n <span class=\"signature-trust__subtitle\">Secured & encrypted</span>\n </span>\n </span>\n\n <span class=\"spacer\"></span>\n\n @if (canSaveSignature) {\n <button\n type=\"button\"\n mat-button\n class=\"signature-action signature-action--save\"\n matTooltip=\"Save this signature for quick use in future documents\"\n (click)=\"saveUserSignature()\"\n >\n <mat-icon>bookmark_add</mat-icon>\n <span class=\"signature-action__label\">Save for future use</span>\n </button>\n }\n\n @if (!inputConfig().readonly && !inputConfig().disabled) {\n <button\n type=\"button\"\n mat-stroked-button\n class=\"signature-action signature-action--clear\"\n (click)=\"clearSignature()\"\n >\n <mat-icon>ink_eraser</mat-icon>\n <span class=\"signature-action__label\">Clear</span>\n </button>\n }\n </div>\n\n <!-- Prompt to re-use a previously saved signature. Floats over the faint preview. -->\n @if (canApplySignature && !inputConfig().disabled && !inputConfig().readonly) {\n <div class=\"signature-overlay\">\n <div class=\"signature-card\">\n <div class=\"signature-card__head\">\n <img\n class=\"signature-card__avatar\"\n [src]=\"getUserUrl()\"\n [attr.aria-label]=\"'Profile picture of ' + userStoredSignature?.userName\"\n alt=\"\"\n />\n <div class=\"signature-card__heading\">\n <span class=\"signature-card__title\">Found an existing signature</span>\n <div class=\"signature-card__meta\">\n <span class=\"signature-card__meta-item\">\n <mat-icon aria-hidden=\"true\">person</mat-icon>\n <span class=\"oneLineTextEllipsis\">{{ userStoredSignature?.userName }}</span>\n </span>\n <span class=\"signature-card__meta-item\">\n <mat-icon aria-hidden=\"true\">calendar_month</mat-icon>\n {{ userStoredSignature?.signatureDate | date: 'mediumDate' }}\n </span>\n </div>\n </div>\n </div>\n\n <p class=\"signature-card__description\">\n Apply your saved signature, or clear the pad to draw a new one.\n </p>\n\n <div class=\"signature-card__actions\">\n <button\n type=\"button\"\n mat-flat-button\n color=\"primary\"\n class=\"signature-card__apply\"\n (click)=\"saveSignature()\"\n [matTooltip]=\"'Apply your saved signature from ' + (userStoredSignature?.signatureDate | date: 'mediumDate')\"\n >\n <mat-icon>draw</mat-icon>\n <span>Apply signature</span>\n </button>\n </div>\n </div>\n </div>\n }\n\n <!-- Blocking progress overlay for async secure operations. -->\n @if (loading) {\n <div class=\"signature-loading\">\n <mat-spinner diameter=\"40\"></mat-spinner>\n <span class=\"signature-loading__text\">{{ loading }}</span>\n </div>\n }\n</div>\n", styles: [".signature-field{position:relative;display:flex;flex-direction:column;width:100%}.signature-container{position:relative;width:100%;overflow:hidden;border:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12));border-radius:12px 12px 0 0;background:var(--mat-sys-surface-container-high);transition:opacity .4s cubic-bezier(.16,1,.3,1),border-color .2s ease}.signature-container:focus-within{border-color:var(--mat-sys-primary)}.signature-container:after{content:\"\";position:absolute;left:1.5rem;right:1.5rem;bottom:2rem;border-bottom:1px dashed var(--mat-sys-outline);opacity:.35;pointer-events:none}.signature-container--preview{opacity:.28}.signature-field--readonly .signature-container{border-radius:12px}.signature-field--readonly .signature-container:after{display:none}.signature-toolbar{display:flex;align-items:center;gap:.75rem;padding:.625rem .875rem;border:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12));border-top:none;border-radius:0 0 12px 12px;background:var(--mat-sys-surface-container)}.signature-field--readonly .signature-toolbar{border-top:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12));border-radius:0 0 12px 12px;margin-top:-1px}.spacer{flex:1 1 auto}.signature-trust{display:inline-flex;align-items:center;gap:.625rem;min-width:0}.signature-trust__icon{flex-shrink:0;font-size:1.25rem;width:1.25rem;height:1.25rem;color:var(--mat-sys-primary);opacity:.9}.signature-trust__text{display:flex;flex-direction:column;line-height:1.25;min-width:0}.signature-trust__title{font-size:.8125rem;font-weight:600;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.signature-trust__subtitle{font-size:.6875rem;font-weight:500;letter-spacing:.02em;color:var(--mat-sys-on-surface-variant)}.signature-action{flex-shrink:0}.signature-action mat-icon{margin-right:.375rem}.signature-action--clear{--mdc-outlined-button-label-text-color: var(--mat-sys-on-surface-variant);--mdc-outlined-button-outline-color: var(--mat-sys-outline-variant)}.signature-overlay{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:1rem;pointer-events:none}.signature-card{pointer-events:auto;width:100%;max-width:22rem;padding:1.25rem;border:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12));border-radius:12px;background:var(--mat-sys-surface-container);box-shadow:0 8px 28px #00000029}.signature-card__head{display:flex;align-items:center;gap:.875rem}.signature-card__avatar{flex-shrink:0;width:2.75rem;height:2.75rem;border-radius:50%;object-fit:cover;border:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12))}.signature-card__heading{display:flex;flex-direction:column;gap:.25rem;min-width:0}.signature-card__title{font-size:.9375rem;font-weight:600;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.signature-card__meta{display:flex;flex-wrap:wrap;gap:.25rem .875rem}.signature-card__meta-item{display:inline-flex;align-items:center;gap:.375rem;min-width:0;font-size:.75rem;color:var(--mat-sys-on-surface-variant)}.signature-card__meta-item mat-icon{flex-shrink:0;font-size:.875rem;width:.875rem;height:.875rem;opacity:.75}.signature-card__description{margin:1rem 0 1.25rem;font-size:.8125rem;line-height:1.5;color:var(--mat-sys-on-surface-variant)}.signature-card__actions{display:flex;justify-content:flex-end}.signature-card__apply mat-icon{margin-right:.375rem}.signature-loading{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;border-radius:12px;background:color-mix(in srgb,var(--mat-sys-surface) 78%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.signature-loading__text{font-size:.8125rem;font-weight:500;color:var(--mat-sys-on-surface-variant)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
20555
|
+
], viewQueries: [{ propertyName: "signatureElement", first: true, predicate: ["signature"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"signature-field\" [class.signature-field--readonly]=\"inputConfig().readonly || inputConfig().disabled\">\n <!-- Drawing surface \u2014 the <canvas> is appended here imperatively at runtime. -->\n <div\n #signature\n class=\"signature-container\"\n [class.signature-container--preview]=\"canApplySignature\"\n ></div>\n\n <!-- Footer: trust note on the left, contextual actions on the right. -->\n <div class=\"signature-toolbar\">\n <span class=\"signature-trust\">\n <mat-icon class=\"signature-trust__icon\" aria-hidden=\"true\">verified_user</mat-icon>\n <span class=\"signature-trust__text\">\n <span class=\"signature-trust__title\">Signature</span>\n <span class=\"signature-trust__subtitle\">Secured & encrypted</span>\n </span>\n </span>\n\n <span class=\"spacer\"></span>\n\n @if (canSaveSignature) {\n <button\n type=\"button\"\n mat-button\n class=\"signature-action signature-action--save\"\n matTooltip=\"Save this signature for quick use in future documents\"\n (click)=\"saveUserSignature()\"\n >\n <mat-icon>bookmark_add</mat-icon>\n <span class=\"signature-action__label\">Save for future use</span>\n </button>\n }\n\n @if (!inputConfig().readonly && !inputConfig().disabled) {\n <button\n type=\"button\"\n mat-stroked-button\n class=\"signature-action signature-action--clear\"\n (click)=\"clearSignature()\"\n >\n <mat-icon>ink_eraser</mat-icon>\n <span class=\"signature-action__label\">Clear</span>\n </button>\n }\n </div>\n\n <!-- Prompt to re-use a previously saved signature. Floats over the faint preview. -->\n @if (canApplySignature && !inputConfig().disabled && !inputConfig().readonly) {\n <div class=\"signature-overlay\">\n <div class=\"signature-card\">\n <div class=\"signature-card__head\">\n <img\n class=\"signature-card__avatar\"\n [src]=\"getUserUrl()\"\n [attr.aria-label]=\"'Profile picture of ' + userStoredSignature?.userName\"\n alt=\"\"\n />\n <div class=\"signature-card__heading\">\n <span class=\"signature-card__title\">Found an existing signature</span>\n <div class=\"signature-card__meta\">\n <span class=\"signature-card__meta-item\">\n <mat-icon aria-hidden=\"true\">person</mat-icon>\n <span class=\"oneLineTextEllipsis\">{{ userStoredSignature?.userName }}</span>\n </span>\n <span class=\"signature-card__meta-item\">\n <mat-icon aria-hidden=\"true\">calendar_month</mat-icon>\n {{ userStoredSignature?.signatureDate | date: 'mediumDate' }}\n </span>\n </div>\n </div>\n </div>\n\n <p class=\"signature-card__description\">\n Apply your saved signature, or clear the pad to draw a new one.\n </p>\n\n <div class=\"signature-card__actions\">\n <button\n type=\"button\"\n mat-flat-button\n color=\"primary\"\n class=\"signature-card__apply\"\n (click)=\"saveSignature()\"\n [matTooltip]=\"'Apply your saved signature from ' + (userStoredSignature?.signatureDate | date: 'mediumDate')\"\n >\n <mat-icon>draw</mat-icon>\n <span>Apply signature</span>\n </button>\n </div>\n </div>\n </div>\n }\n\n <!-- Blocking progress overlay for async secure operations. -->\n @if (loading) {\n <div class=\"signature-loading\">\n <mat-spinner diameter=\"40\"></mat-spinner>\n <span class=\"signature-loading__text\">{{ loading }}</span>\n </div>\n }\n</div>\n", styles: [".signature-field{position:relative;display:flex;flex-direction:column;width:100%}.signature-container{position:relative;width:100%;overflow:hidden;border:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12));border-radius:12px 12px 0 0;background:var(--mat-sys-surface-container-high);transition:opacity .4s cubic-bezier(.16,1,.3,1),border-color .2s ease}.signature-container:focus-within{border-color:var(--mat-sys-primary)}.signature-container:after{content:\"\";position:absolute;left:1.5rem;right:1.5rem;bottom:2rem;border-bottom:1px dashed var(--mat-sys-outline);opacity:.35;pointer-events:none}.signature-container--preview{opacity:.28}.signature-field--readonly .signature-container{border-radius:12px}.signature-field--readonly .signature-container:after{display:none}.signature-toolbar{display:flex;align-items:center;gap:.75rem;padding:.625rem .875rem;border:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12));border-top:none;border-radius:0 0 12px 12px;background:var(--mat-sys-surface-container)}.signature-field--readonly .signature-toolbar{border-top:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12));border-radius:0 0 12px 12px;margin-top:-1px}.spacer{flex:1 1 auto}.signature-trust{display:inline-flex;align-items:center;gap:.625rem;min-width:0}.signature-trust__icon{flex-shrink:0;font-size:1.25rem;width:1.25rem;height:1.25rem;color:var(--mat-sys-primary);opacity:.9}.signature-trust__text{display:flex;flex-direction:column;line-height:1.25;min-width:0}.signature-trust__title{font-size:.8125rem;font-weight:600;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.signature-trust__subtitle{font-size:.6875rem;font-weight:500;letter-spacing:.02em;color:var(--mat-sys-on-surface-variant)}.signature-action{flex-shrink:0}.signature-action mat-icon{margin-right:.375rem}.signature-action--clear{--mdc-outlined-button-label-text-color: var(--mat-sys-on-surface-variant);--mdc-outlined-button-outline-color: var(--mat-sys-outline-variant)}.signature-overlay{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:1rem;pointer-events:none}.signature-card{pointer-events:auto;width:100%;max-width:22rem;padding:1.25rem;border:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12));border-radius:12px;background:var(--mat-sys-surface-container);box-shadow:0 8px 28px #00000029}.signature-card__head{display:flex;align-items:center;gap:.875rem}.signature-card__avatar{flex-shrink:0;width:2.75rem;height:2.75rem;border-radius:50%;object-fit:cover;border:1px solid var(--mat-sys-outline-variant, rgba(0, 0, 0, .12))}.signature-card__heading{display:flex;flex-direction:column;gap:.25rem;min-width:0}.signature-card__title{font-size:.9375rem;font-weight:600;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.signature-card__meta{display:flex;flex-wrap:wrap;gap:.25rem .875rem}.signature-card__meta-item{display:inline-flex;align-items:center;gap:.375rem;min-width:0;font-size:.75rem;color:var(--mat-sys-on-surface-variant)}.signature-card__meta-item mat-icon{flex-shrink:0;font-size:.875rem;width:.875rem;height:.875rem;opacity:.75}.signature-card__description{margin:1rem 0 1.25rem;font-size:.8125rem;line-height:1.5;color:var(--mat-sys-on-surface-variant)}.signature-card__actions{display:flex;justify-content:flex-end}.signature-card__apply mat-icon{margin-right:.375rem}.signature-loading{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;border-radius:12px;background:color-mix(in srgb,var(--mat-sys-surface) 78%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.signature-loading__text{font-size:.8125rem;font-weight:500;color:var(--mat-sys-on-surface-variant)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: i3.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19850
20556
|
}
|
|
19851
20557
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SignaturePadInputComponent, decorators: [{
|
|
19852
20558
|
type: Component,
|
|
@@ -19891,7 +20597,7 @@ class SignatureInputElementComponent {
|
|
|
19891
20597
|
this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
19892
20598
|
}
|
|
19893
20599
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SignatureInputElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19894
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SignatureInputElementComponent, isStandalone: true, selector: "lib-signature-input-element", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, 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-signature-pad-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-signature-pad-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"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
20600
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SignatureInputElementComponent, isStandalone: true, selector: "lib-signature-input-element", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, 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-signature-pad-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-signature-pad-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"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { 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: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }, { kind: "component", type: SignaturePadInputComponent, selector: "lib-signature-pad-input", inputs: ["inputConfig"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19895
20601
|
}
|
|
19896
20602
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SignatureInputElementComponent, decorators: [{
|
|
19897
20603
|
type: Component,
|
|
@@ -20828,7 +21534,7 @@ class DataTreeComponent {
|
|
|
20828
21534
|
setTimeout(() => textarea?.setSelectionRange(newCursorPosition, newCursorPosition), 0);
|
|
20829
21535
|
}
|
|
20830
21536
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DataTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20831
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DataTreeComponent, isStandalone: true, selector: "lib-data-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pathChanged: "pathChanged" }, host: { classAttribute: "lib-data-tree" }, viewQueries: [{ propertyName: "textareaElementRef", first: true, predicate: ["textarea"], descendants: true, isSignal: true }], ngImport: i0, template: "<mat-accordion multi class=\"surface\">\n <!-- 1 - Pick the data -->\n <mat-expansion-panel expanded>\n <mat-expansion-panel-header>\n <mat-panel-title>\n <mat-icon class=\"title-icon\">dataset_linked</mat-icon>\n <span class=\"panel-title\">1 · Pick your data</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"content\">\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">touch_app</mat-icon>\n <span>Tick a field to map it. Pick an array (<mat-icon class=\"inline-icon\">data_array</mat-icon>) to transform its items next.</span>\n </p>\n\n <mat-tree [dataSource]=\"treeClass.dataSource\" [treeControl]=\"treeClass.treeControl\" class=\"data-tree\">\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <span class=\"node-spacer\" aria-hidden=\"true\"></span>\n <mat-checkbox (change)=\"update(node)\" [checked]=\"nodeIsChecked(node)\" class=\"node-checkbox\"\n [matTooltip]=\"'Map field: ' + node.key\">\n <span class=\"node-key\">{{ node.key }}</span>\n <span class=\"node-value\" [style.color]=\"getNodeValueColor(node.value)\">{{ node.value }}</span>\n </mat-checkbox>\n </mat-tree-node>\n\n <mat-tree-node *matTreeNodeDef=\"let node; when: treeClass.hasChild\" matTreeNodePadding>\n <button class=\"node-toggle\" mat-icon-button matTreeNodeToggle [attr.aria-label]=\"'Toggle ' + node.key\">\n <mat-icon>{{ treeClass.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}</mat-icon>\n </button>\n <mat-checkbox (change)=\"update(node)\" [checked]=\"nodeIsChecked(node)\" [matTooltip]=\"'Select ' + node.key\">\n <span class=\"node-key\">{{ node.key }}</span>\n </mat-checkbox>\n </mat-tree-node>\n </mat-tree>\n </div>\n </mat-expansion-panel>\n\n <!-- 2 - Build the pipeline -->\n <mat-expansion-panel expanded>\n <mat-expansion-panel-header>\n <mat-panel-title>\n <mat-icon class=\"title-icon\">account_tree</mat-icon>\n <span class=\"panel-title\">2 · Transform your data</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"content\">\n @if (treeClass.activePath.length === 0) {\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">arrow_upward</mat-icon>\n <span>Select a field above to begin.</span>\n </p>\n } @else {\n <nav class=\"breadcrumb\" aria-label=\"Selected path\">\n @for (path of treeClass.activePath; track trackByPath($index, path); let isLast = $last) {\n <button type=\"button\" class=\"crumb\" [class.crumb-active]=\"path.inEdit\"\n [class.crumb-array]=\"path.keyIsArrayIndex\" [disabled]=\"!path.keyIsArrayIndex && !path.inEdit\"\n [matTooltip]=\"path.keyIsArrayIndex ? 'Transform this array' : path.key\" (click)=\"setupPath(path)\">\n <mat-icon>{{ path.keyIsArrayIndex ? 'data_array' : 'folder' }}</mat-icon>\n <span class=\"crumb-text\">{{ path.key }}</span>\n @if (path.functions.length > 0) { <span class=\"crumb-badge\">{{ path.functions.length }}</span> }\n </button>\n @if (!isLast) { <mat-icon class=\"crumb-sep\">chevron_right</mat-icon> }\n }\n </nav>\n\n @if (hasANodeInEdit()) {\n <div class=\"pipeline\" role=\"list\" aria-label=\"Transform pipeline\">\n <span class=\"stage stage-source\" role=\"listitem\">\n <mat-icon>database</mat-icon>\n <span class=\"stage-label\">Source</span>\n </span>\n\n @for (step of steps; track step.id; let i = $index) {\n <mat-icon class=\"flow-arrow\">chevron_right</mat-icon>\n <button class=\"stage stage-step\" role=\"listitem\" [class.stage-active]=\"step.inEdit\"\n [class.stage-empty]=\"!step.function\" (click)=\"editFunction(step.id)\"\n [matTooltip]=\"functionMeta(step.function)?.hint || 'Choose an operation'\">\n <mat-icon>{{ functionMeta(step.function)?.icon || 'help_outline' }}</mat-icon>\n <span class=\"stage-label\">{{ (step.function | titlecase) || 'Choose' }}</span>\n @if (stepRowCount(i); as n) {\n <span class=\"stage-count\">{{ n }} {{ n === 1 ? 'row' : 'rows' }}</span>\n }\n </button>\n }\n\n <mat-icon class=\"flow-arrow\">chevron_right</mat-icon>\n <button class=\"stage stage-add\" [matMenuTriggerFor]=\"addMenu\" matTooltip=\"Add a transform step\">\n <mat-icon>add</mat-icon>\n <span class=\"stage-label\">Add</span>\n </button>\n <mat-menu #addMenu=\"matMenu\">\n @for (option of functionOptions; track option.value) {\n <button mat-menu-item (click)=\"addStep(option.value)\">\n <mat-icon>{{ option.icon }}</mat-icon>\n <span>{{ option.label }}</span>\n <span class=\"menu-hint\">{{ option.hint }}</span>\n </button>\n }\n </mat-menu>\n </div>\n\n @if (getFunctionInEdit(); as fn) {\n <section class=\"editor\">\n <label class=\"f-field full\">\n <span class=\"f-label\">Operation</span>\n <select class=\"f-control\" [value]=\"fn.function\" (change)=\"functionChanged(inputValue($event))\">\n <option value=\"\" disabled>Choose what this step does</option>\n @for (option of functionOptions; track option.value) {\n <option [value]=\"option.value\">{{ option.label }}</option>\n }\n </select>\n </label>\n @if (fn.function && activeFunctionMeta(); as meta) {\n <p class=\"sub-hint\">{{ meta.hint }}</p>\n }\n\n @if (!fn.function) {\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">info</mat-icon>\n <span>Choose an operation to configure this step.</span>\n </p>\n } @else {\n @if (rawMode()) {\n <label class=\"f-field full\">\n <span class=\"f-label\">Expression</span>\n <textarea class=\"f-control f-textarea\" #textarea rows=\"2\" [value]=\"fn.expression\"\n (input)=\"onRawChange($event)\" (focus)=\"onFocus()\" placeholder=\"Type the raw expression\"></textarea>\n </label>\n <p class=\"sub-hint\">Type <code>$</code> to insert a field or operator.</p>\n\n @if (showSuggestions()) {\n <div class=\"suggestions\">\n <div class=\"suggestion-group\">\n <span class=\"field-label\">Operators</span>\n <div class=\"chip-row\">\n @for (method of getMethods(); track method.value) {\n <button mat-stroked-button class=\"ins-chip\" (click)=\"selectSuggestionInput(method.value)\">\n {{ method.value }}\n </button>\n }\n </div>\n </div>\n <div class=\"suggestion-group\">\n <span class=\"field-label\">Inputs</span>\n <div class=\"chip-row\">\n @for (input of getAllInputs(); track input.formControlName) {\n <button mat-stroked-button class=\"ins-chip\" (click)=\"selectSuggestionInput(input.formControlName)\">\n {{ input.label }}\n </button>\n }\n </div>\n </div>\n </div>\n }\n } @else {\n @switch (activeKind()) {\n @case ('predicate') {\n @if (predicate(); as p) {\n @if (p.conditions.length > 1) {\n <div class=\"match-row\">\n <span class=\"field-label\">Match</span>\n <mat-button-toggle-group class=\"seg\" [value]=\"p.connector\" hideSingleSelectionIndicator\n (change)=\"setConnector($event.value)\">\n <mat-button-toggle value=\"&&\">All</mat-button-toggle>\n <mat-button-toggle value=\"||\">Any</mat-button-toggle>\n </mat-button-toggle-group>\n <span class=\"muted\">of the conditions</span>\n </div>\n }\n @for (cond of p.conditions; track $index) {\n <div class=\"q-item\">\n <div class=\"q-stack\">\n <label class=\"f-field\">\n <span class=\"f-label\">Field</span>\n <select class=\"f-control\" [value]=\"cond.field\"\n (change)=\"updateCondition($index, { field: inputValue($event) })\">\n @for (f of fieldOptionsWith(cond.field); track f) { <option [value]=\"f\">{{ f }}</option> }\n </select>\n </label>\n <div class=\"q-pair q-pair-op\">\n <label class=\"f-field\">\n <span class=\"f-label\">Operator</span>\n <select class=\"f-control\" [value]=\"cond.operator\"\n (change)=\"updateCondition($index, { operator: inputValue($event) })\">\n @for (op of operators; track op.value) { <option [value]=\"op.value\">{{ op.label }}</option> }\n </select>\n </label>\n <label class=\"f-field\">\n <span class=\"f-label\">Value</span>\n <input class=\"f-control\" [value]=\"cond.value\" placeholder=\"active, 18, Durban\"\n (input)=\"updateCondition($index, { value: inputValue($event) })\">\n </label>\n </div>\n </div>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeCondition($index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n <button type=\"button\" class=\"link-btn\" (click)=\"addCondition()\">\n <mat-icon>add</mat-icon> Add condition\n </button>\n }\n }\n\n @case ('project') {\n @if (projection(); as proj) {\n <span class=\"field-label\">Keep fields</span>\n <div class=\"checklist\">\n @for (f of availableFields(); track f) {\n <mat-checkbox [checked]=\"fieldPicked(f)\" (change)=\"toggleField(f)\">{{ f }}</mat-checkbox>\n }\n <mat-checkbox [checked]=\"hasSpread()\" (change)=\"toggleSpread()\"\n matTooltip=\"Include every field\">everything (*)</mat-checkbox>\n </div>\n\n <div class=\"section-head\">\n <span class=\"field-label\">Mapped fields</span>\n <span class=\"section-actions\">\n <button type=\"button\" class=\"link-btn\" (click)=\"addRename()\"><mat-icon>add</mat-icon> Field</button>\n <button type=\"button\" class=\"link-btn\" (click)=\"addLiteral()\"><mat-icon>add</mat-icon> Constant</button>\n </span>\n </div>\n\n @for (r of renameItems(); track r.index) {\n <div class=\"map-row\">\n <label class=\"f-field\">\n <span class=\"f-label\">New name</span>\n <input class=\"f-control\" [value]=\"r.item.alias\"\n (input)=\"updateItem(r.index, { alias: inputValue($event) })\">\n </label>\n <div class=\"f-field\">\n <span class=\"f-label\">From path</span>\n <button type=\"button\" class=\"f-control f-picker\" [matMenuTriggerFor]=\"pathMenu\">\n <span class=\"f-picker-text\" [class.f-placeholder]=\"!r.item.path\">{{ r.item.path || 'Select a path' }}</span>\n <mat-icon>account_tree</mat-icon>\n </button>\n <mat-menu #pathMenu=\"matMenu\" class=\"path-menu\">\n @for (p of availableDeepPaths(); track p.path) {\n <button mat-menu-item class=\"path-item\" [style.padding-left.px]=\"12 + p.depth * 14\"\n (click)=\"updateItem(r.index, { path: p.path })\">\n <mat-icon class=\"path-icon\">{{ p.leaf ? 'chevron_right' : 'folder_open' }}</mat-icon>\n <span>{{ p.name }}</span>\n </button>\n } @empty {\n <button mat-menu-item disabled>No paths detected</button>\n }\n </mat-menu>\n </div>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeItem(r.index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n @for (l of literalItems(); track l.index) {\n <div class=\"map-row\">\n <label class=\"f-field\">\n <span class=\"f-label\">Field name</span>\n <input class=\"f-control\" [value]=\"l.item.alias\"\n (input)=\"updateItem(l.index, { alias: inputValue($event) })\">\n </label>\n <label class=\"f-field\">\n <span class=\"f-label\">Constant</span>\n <input class=\"f-control\" [value]=\"l.item.value\" placeholder='\"api\", 1, true'\n (input)=\"updateItem(l.index, { value: inputValue($event) })\">\n </label>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeItem(l.index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n }\n }\n\n @case ('sort') {\n @if (sort(); as s) {\n @for (key of s.keys; track $index) {\n <div class=\"q-item\">\n <div class=\"q-pair q-pair-sort\">\n <label class=\"f-field\">\n <span class=\"f-label\">Sort by</span>\n <select class=\"f-control\" [value]=\"key.field\"\n (change)=\"updateSortKey($index, { field: inputValue($event) })\">\n @for (f of fieldOptionsWith(key.field); track f) { <option [value]=\"f\">{{ f }}</option> }\n </select>\n </label>\n <mat-button-toggle-group class=\"seg seg-dir\" [value]=\"key.dir\" hideSingleSelectionIndicator\n (change)=\"updateSortKey($index, { dir: $event.value })\">\n <mat-button-toggle value=\"asc\" matTooltip=\"Ascending\"><mat-icon>arrow_upward</mat-icon></mat-button-toggle>\n <mat-button-toggle value=\"desc\" matTooltip=\"Descending\"><mat-icon>arrow_downward</mat-icon></mat-button-toggle>\n </mat-button-toggle-group>\n </div>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeSortKey($index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n <button type=\"button\" class=\"link-btn\" (click)=\"addSortKey()\">\n <mat-icon>add</mat-icon> Add sort key\n </button>\n }\n }\n\n @case ('slice') {\n @if (slice(); as sl) {\n <div class=\"field-grid\">\n <label class=\"f-field\">\n <span class=\"f-label\">Take</span>\n <select class=\"f-control\" [value]=\"sl.mode\" (change)=\"setSliceMode(inputValue($event))\">\n @for (mode of sliceModes; track mode.value) { <option [value]=\"mode.value\">{{ mode.label }}</option> }\n </select>\n </label>\n @switch (sl.mode) {\n @case ('range') {\n <label class=\"f-field\"><span class=\"f-label\">Start</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.a\" (input)=\"setSliceA($event)\"></label>\n <label class=\"f-field\"><span class=\"f-label\">End</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.b\" (input)=\"setSliceB($event)\"></label>\n }\n @case ('fromCount') {\n <label class=\"f-field\"><span class=\"f-label\">From index</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.a\" (input)=\"setSliceA($event)\"></label>\n <label class=\"f-field\"><span class=\"f-label\">Count</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.b\" (input)=\"setSliceB($event)\"></label>\n }\n @default {\n <label class=\"f-field\"><span class=\"f-label\">How many</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.b\" (input)=\"setSliceB($event)\"></label>\n }\n }\n </div>\n }\n }\n\n @case ('keys') {\n @if (keysModel(); as k) {\n <span class=\"field-label\">\n @if (isUnique(fn.function)) { Unique by — none = whole row } @else { Group by }\n </span>\n <div class=\"checklist\">\n @for (f of availableFields(); track f) {\n <mat-checkbox [checked]=\"keyPicked(f)\" (change)=\"toggleKey(f)\">{{ f }}</mat-checkbox>\n }\n </div>\n @if (availableFields().length === 0) {\n <p class=\"hint-line\"><mat-icon class=\"info-icon\">info</mat-icon>\n <span>No fields detected — use Advanced to type a key path.</span></p>\n }\n }\n }\n\n @case ('flatten') {\n @if (flatten(); as fl) {\n <label class=\"f-field full\">\n <span class=\"f-label\">Flatten</span>\n <select class=\"f-control\" [value]=\"fl.path\" (change)=\"setFlatten(inputValue($event))\">\n <option [value]=\"''\">nested arrays (one level)</option>\n @for (f of fieldOptionsWith(fl.path); track f) { <option [value]=\"f\">items in {{ f }}</option> }\n </select>\n </label>\n <p class=\"sub-hint\">Blank flattens one level; a field flat-maps that child array.</p>\n }\n }\n\n @case ('reduce') {\n @if (reduce(); as red) {\n @for (agg of red.aggs; track $index) {\n <div class=\"q-item\">\n <div class=\"q-stack\">\n @if (red.aggs.length > 1) {\n <label class=\"f-field\">\n <span class=\"f-label\">Output name</span>\n <input class=\"f-control\" [value]=\"agg.alias\"\n (input)=\"updateAgg($index, { alias: inputValue($event) })\">\n </label>\n }\n <div class=\"q-pair\">\n <label class=\"f-field\">\n <span class=\"f-label\">Aggregate</span>\n <select class=\"f-control\" [value]=\"agg.agg\"\n (change)=\"updateAgg($index, { agg: inputValue($event) })\">\n @for (a of aggregates; track a.value) { <option [value]=\"a.value\">{{ a.label }}</option> }\n </select>\n </label>\n @if (aggNeedsField(agg.agg)) {\n <label class=\"f-field\">\n <span class=\"f-label\">Field</span>\n <select class=\"f-control\" [value]=\"agg.field\"\n (change)=\"updateAgg($index, { field: inputValue($event) })\">\n @for (f of fieldOptionsWith(agg.field); track f) { <option [value]=\"f\">{{ f }}</option> }\n </select>\n </label>\n }\n </div>\n </div>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeAgg($index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n <button type=\"button\" class=\"link-btn\" (click)=\"addAgg()\">\n <mat-icon>add</mat-icon> Add aggregate\n </button>\n }\n }\n }\n }\n\n <div class=\"editor-foot\">\n <button type=\"button\" class=\"link-btn\" (click)=\"toggleRaw()\">\n @if (rawMode()) { <mat-icon>view_module</mat-icon> Guided }\n @else { <mat-icon>code</mat-icon> Advanced }\n </button>\n </div>\n }\n\n <div class=\"editor-actions\">\n <button mat-icon-button (click)=\"moveStep(fn.id, -1)\" matTooltip=\"Move earlier\"\n aria-label=\"Move step earlier\"><mat-icon>chevron_left</mat-icon></button>\n <button mat-icon-button (click)=\"moveStep(fn.id, 1)\" matTooltip=\"Move later\"\n aria-label=\"Move step later\"><mat-icon>chevron_right</mat-icon></button>\n <button mat-icon-button (click)=\"removeFunction(fn.id)\" matTooltip=\"Remove step\"\n aria-label=\"Remove step\"><mat-icon>delete_outline</mat-icon></button>\n <span class=\"spacer\"></span>\n <button mat-flat-button color=\"primary\" (click)=\"saveNodeInEdit()\">\n <mat-icon>check</mat-icon> Apply\n </button>\n </div>\n </section>\n }\n } @else {\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">data_array</mat-icon>\n <span>Click an array (<mat-icon class=\"inline-icon\">data_array</mat-icon>) in the path above to add steps.</span>\n </p>\n }\n }\n </div>\n </mat-expansion-panel>\n\n <!-- 3 - Preview -->\n <mat-expansion-panel expanded>\n <mat-expansion-panel-header>\n <mat-panel-title>\n <mat-icon class=\"title-icon\">preview</mat-icon>\n <span class=\"panel-title\">3 · Result preview</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"content\">\n @if (resultRowCount(); as n) {\n <span class=\"result-count\"><mat-icon>check_circle</mat-icon> {{ n }} {{ n === 1 ? 'result' : 'results' }}</span>\n }\n <div class=\"mapped-value\">\n <pre>{{ mappedValue | json }}</pre>\n </div>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n", styles: ["@charset \"UTF-8\";:host{display:block}.surface mat-expansion-panel{background:var(--mat-sys-surface-container-low, var(--lib-forms-surface-container-low))}:host ::ng-deep .mat-expansion-panel-header{height:44px;padding:0 .875rem}:host ::ng-deep .mat-expansion-panel-body{padding:0 .875rem .75rem}button mat-icon{vertical-align:middle}.panel-title{font-size:.875rem;font-weight:500;letter-spacing:-.01em}.title-icon{margin-right:.625rem;vertical-align:middle;color:var(--lib-forms-on-surface-variant)}.content{display:flex;flex-direction:column;gap:.875rem;padding:.5rem 0 .25rem}.hint-line{display:flex;align-items:center;gap:.5rem;margin:0;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.info-icon{color:var(--sem-info, var(--lib-forms-primary));flex:none}.inline-icon{font-size:1rem;width:1rem;height:1rem;vertical-align:text-bottom}.field-label{font-size:.625rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.muted{font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.data-tree{background:var(--lib-forms-surface-container-low);border-radius:var(--lib-forms-radius-md);padding:.5rem .75rem;min-width:fit-content}:host mat-tree-node{min-height:34px}.node-spacer{display:inline-block;width:36px}.node-toggle{color:var(--lib-forms-on-surface-variant)}.node-checkbox{width:100%}.node-key{font-weight:500;color:var(--lib-forms-on-surface);margin-right:.5rem}.node-value{font-family:var(--lib-forms-font-mono, monospace);padding:.0625rem .4375rem;background:var(--lib-forms-surface-container);border-radius:var(--lib-forms-radius-sm);font-size:.8125rem;white-space:nowrap}.breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:.125rem}.crumb{display:inline-flex;align-items:center;gap:.25rem;height:1.75rem;max-width:9rem;padding:0 .5rem;font:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-on-surface-variant);background:transparent;border:0;border-radius:var(--lib-forms-radius-pill);cursor:pointer;white-space:nowrap;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.crumb:hover:not(:disabled){background:var(--lib-forms-surface-container-high)}.crumb:disabled{cursor:default;opacity:.65}.crumb mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.crumb-text{overflow:hidden;text-overflow:ellipsis}.crumb-array{color:var(--lib-forms-primary)}.crumb-active,.crumb-active:hover:not(:disabled){background:var(--lib-forms-primary-container);color:var(--lib-forms-on-surface)}.crumb-badge{min-width:1.0625rem;padding:0 .3125rem;border-radius:var(--lib-forms-radius-pill);background:var(--lib-forms-primary);color:var(--lib-forms-on-primary, var(--mat-sys-on-primary));font-size:.625rem;line-height:1.0625rem;text-align:center}.crumb-sep{color:var(--lib-forms-outline);font-size:1rem;width:1rem;height:1rem}.pipeline{display:flex;align-items:stretch;flex-wrap:wrap;gap:.375rem}.stage{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.0625rem;min-width:4rem;padding:.375rem .5rem;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md);background:var(--lib-forms-surface-container-low);color:var(--lib-forms-on-surface);cursor:pointer;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.stage mat-icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.stage-source{cursor:default;color:var(--lib-forms-on-surface-variant);background:transparent;border-style:dashed}.stage-active{border-color:var(--lib-forms-primary);background:var(--lib-forms-primary-container)}.stage-empty{border-style:dashed;color:var(--lib-forms-on-surface-variant)}.stage-add{border-style:dashed;color:var(--lib-forms-primary);min-width:3.75rem}.stage-label{font-size:.75rem;font-weight:500}.stage-count{font-size:.625rem;color:var(--lib-forms-on-surface-variant)}.flow-arrow{align-self:center;color:var(--lib-forms-outline);font-size:1.125rem;width:1rem;height:1.125rem}.menu-hint{display:block;font-size:.6875rem;color:var(--lib-forms-on-surface-variant)}.editor{display:flex;flex-direction:column;gap:.75rem;padding:1.125rem;border-radius:var(--lib-forms-radius-lg);background:var(--lib-forms-surface-container-low);box-shadow:var(--mat-sys-level1, 0 1px 3px rgba(0, 0, 0, .12))}.full{width:100%}.f-field{display:flex;flex-direction:column;gap:.1875rem;min-width:0}.f-label{font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.f-control{box-sizing:border-box;width:100%;min-width:0;height:2rem;padding:.3125rem .5rem;font-family:inherit;font-size:.8125rem;line-height:1.25;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm);transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}select.f-control{cursor:pointer}.f-textarea{height:auto;min-height:3rem;line-height:1.4;resize:vertical}.f-control:hover{border-color:var(--lib-forms-outline)}.f-control:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 1px var(--lib-forms-primary)}.sub-hint{margin:-.25rem 0 0;font-size:.75rem;color:var(--lib-forms-on-surface-variant)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.25rem}.section-actions{display:flex;gap:.25rem}.map-row{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:.5rem;padding:.5rem .5rem .5rem .625rem;background:var(--lib-forms-surface-container);border-radius:var(--lib-forms-radius-sm)}.q-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.25rem;padding:.5rem .5rem .5rem .625rem;background:var(--lib-forms-surface-container);border-radius:var(--lib-forms-radius-sm)}.q-stack{display:flex;flex-direction:column;gap:.5rem;min-width:0}.q-pair{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;min-width:0}.q-pair-op{grid-template-columns:8rem 1fr}.q-pair-sort{grid-template-columns:1fr auto;align-items:end}.q-remove{color:var(--lib-forms-on-surface-variant)}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));gap:.5rem}.match-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.seg{--mat-standard-button-toggle-height: 34px;height:34px}.checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.125rem 1rem;padding:.25rem 0}.link-btn{display:inline-flex;align-items:center;align-self:flex-start;gap:.25rem;height:1.75rem;padding:0 .5rem;font:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-primary);background:transparent;border:0;border-radius:var(--lib-forms-radius-sm);cursor:pointer;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.link-btn:hover{background:var(--lib-forms-primary-container)}.link-btn mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.f-picker{display:flex;align-items:center;justify-content:space-between;gap:.25rem;text-align:left;cursor:pointer}.f-picker-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.f-placeholder{color:var(--lib-forms-on-surface-variant)}.f-picker mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem;color:var(--lib-forms-on-surface-variant)}.path-icon{margin-right:.25rem;font-size:1rem;width:1rem;height:1rem;color:var(--lib-forms-on-surface-variant)}.editor-foot{display:flex;justify-content:flex-end;margin-top:-.25rem}.editor-actions{display:flex;align-items:center;gap:.125rem;padding-top:.5rem}.spacer{flex:1}.suggestions{display:flex;gap:1rem;flex-wrap:wrap;padding:.75rem;border-radius:var(--lib-forms-radius-md);background:var(--sem-info-surface, var(--lib-forms-surface-container))}.suggestion-group{flex:1 1 10rem;display:flex;flex-direction:column;gap:.375rem}.chip-row{display:flex;flex-wrap:wrap;gap:.25rem}.ins-chip{font-size:.75rem}.result-count{display:inline-flex;align-items:center;gap:.375rem;font-size:.8125rem;font-weight:500;color:var(--sem-emerald, var(--lib-forms-method-get))}.result-count mat-icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mapped-value{padding:1rem 1.25rem;background:var(--lib-forms-on-surface);color:var(--lib-forms-surface);border-radius:var(--lib-forms-radius-md);overflow:auto}.mapped-value pre{margin:0;font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i3$4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3$4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3$3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i5$2.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatTreeModule }, { kind: "directive", type: i1$5.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i1$5.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { kind: "directive", type: i1$5.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { kind: "component", type: i1$5.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i1$5.MatTreeNode, selector: "mat-tree-node", inputs: ["tabIndex", "disabled"], outputs: ["activation", "expandedChange"], exportAs: ["matTreeNode"] }, { kind: "pipe", type: JsonPipe, name: "json" }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
21537
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DataTreeComponent, isStandalone: true, selector: "lib-data-tree", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pathChanged: "pathChanged" }, host: { classAttribute: "lib-data-tree" }, viewQueries: [{ propertyName: "textareaElementRef", first: true, predicate: ["textarea"], descendants: true, isSignal: true }], ngImport: i0, template: "<mat-accordion multi class=\"surface\">\n <!-- 1 - Pick the data -->\n <mat-expansion-panel expanded>\n <mat-expansion-panel-header>\n <mat-panel-title>\n <mat-icon class=\"title-icon\">dataset_linked</mat-icon>\n <span class=\"panel-title\">1 · Pick your data</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"content\">\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">touch_app</mat-icon>\n <span>Tick a field to map it. Pick an array (<mat-icon class=\"inline-icon\">data_array</mat-icon>) to transform its items next.</span>\n </p>\n\n <mat-tree [dataSource]=\"treeClass.dataSource\" [treeControl]=\"treeClass.treeControl\" class=\"data-tree\">\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <span class=\"node-spacer\" aria-hidden=\"true\"></span>\n <mat-checkbox (change)=\"update(node)\" [checked]=\"nodeIsChecked(node)\" class=\"node-checkbox\"\n [matTooltip]=\"'Map field: ' + node.key\">\n <span class=\"node-key\">{{ node.key }}</span>\n <span class=\"node-value\" [style.color]=\"getNodeValueColor(node.value)\">{{ node.value }}</span>\n </mat-checkbox>\n </mat-tree-node>\n\n <mat-tree-node *matTreeNodeDef=\"let node; when: treeClass.hasChild\" matTreeNodePadding>\n <button class=\"node-toggle\" mat-icon-button matTreeNodeToggle [attr.aria-label]=\"'Toggle ' + node.key\">\n <mat-icon>{{ treeClass.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}</mat-icon>\n </button>\n <mat-checkbox (change)=\"update(node)\" [checked]=\"nodeIsChecked(node)\" [matTooltip]=\"'Select ' + node.key\">\n <span class=\"node-key\">{{ node.key }}</span>\n </mat-checkbox>\n </mat-tree-node>\n </mat-tree>\n </div>\n </mat-expansion-panel>\n\n <!-- 2 - Build the pipeline -->\n <mat-expansion-panel expanded>\n <mat-expansion-panel-header>\n <mat-panel-title>\n <mat-icon class=\"title-icon\">account_tree</mat-icon>\n <span class=\"panel-title\">2 · Transform your data</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"content\">\n @if (treeClass.activePath.length === 0) {\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">arrow_upward</mat-icon>\n <span>Select a field above to begin.</span>\n </p>\n } @else {\n <nav class=\"breadcrumb\" aria-label=\"Selected path\">\n @for (path of treeClass.activePath; track trackByPath($index, path); let isLast = $last) {\n <button type=\"button\" class=\"crumb\" [class.crumb-active]=\"path.inEdit\"\n [class.crumb-array]=\"path.keyIsArrayIndex\" [disabled]=\"!path.keyIsArrayIndex && !path.inEdit\"\n [matTooltip]=\"path.keyIsArrayIndex ? 'Transform this array' : path.key\" (click)=\"setupPath(path)\">\n <mat-icon>{{ path.keyIsArrayIndex ? 'data_array' : 'folder' }}</mat-icon>\n <span class=\"crumb-text\">{{ path.key }}</span>\n @if (path.functions.length > 0) { <span class=\"crumb-badge\">{{ path.functions.length }}</span> }\n </button>\n @if (!isLast) { <mat-icon class=\"crumb-sep\">chevron_right</mat-icon> }\n }\n </nav>\n\n @if (hasANodeInEdit()) {\n <div class=\"pipeline\" role=\"list\" aria-label=\"Transform pipeline\">\n <span class=\"stage stage-source\" role=\"listitem\">\n <mat-icon>database</mat-icon>\n <span class=\"stage-label\">Source</span>\n </span>\n\n @for (step of steps; track step.id; let i = $index) {\n <mat-icon class=\"flow-arrow\">chevron_right</mat-icon>\n <button class=\"stage stage-step\" role=\"listitem\" [class.stage-active]=\"step.inEdit\"\n [class.stage-empty]=\"!step.function\" (click)=\"editFunction(step.id)\"\n [matTooltip]=\"functionMeta(step.function)?.hint || 'Choose an operation'\">\n <mat-icon>{{ functionMeta(step.function)?.icon || 'help_outline' }}</mat-icon>\n <span class=\"stage-label\">{{ (step.function | titlecase) || 'Choose' }}</span>\n @if (stepRowCount(i); as n) {\n <span class=\"stage-count\">{{ n }} {{ n === 1 ? 'row' : 'rows' }}</span>\n }\n </button>\n }\n\n <mat-icon class=\"flow-arrow\">chevron_right</mat-icon>\n <button class=\"stage stage-add\" [matMenuTriggerFor]=\"addMenu\" matTooltip=\"Add a transform step\">\n <mat-icon>add</mat-icon>\n <span class=\"stage-label\">Add</span>\n </button>\n <mat-menu #addMenu=\"matMenu\">\n @for (option of functionOptions; track option.value) {\n <button mat-menu-item (click)=\"addStep(option.value)\">\n <mat-icon>{{ option.icon }}</mat-icon>\n <span>{{ option.label }}</span>\n <span class=\"menu-hint\">{{ option.hint }}</span>\n </button>\n }\n </mat-menu>\n </div>\n\n @if (getFunctionInEdit(); as fn) {\n <section class=\"editor\">\n <label class=\"f-field full\">\n <span class=\"f-label\">Operation</span>\n <select class=\"f-control\" [value]=\"fn.function\" (change)=\"functionChanged(inputValue($event))\">\n <option value=\"\" disabled>Choose what this step does</option>\n @for (option of functionOptions; track option.value) {\n <option [value]=\"option.value\">{{ option.label }}</option>\n }\n </select>\n </label>\n @if (fn.function && activeFunctionMeta(); as meta) {\n <p class=\"sub-hint\">{{ meta.hint }}</p>\n }\n\n @if (!fn.function) {\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">info</mat-icon>\n <span>Choose an operation to configure this step.</span>\n </p>\n } @else {\n @if (rawMode()) {\n <label class=\"f-field full\">\n <span class=\"f-label\">Expression</span>\n <textarea class=\"f-control f-textarea\" #textarea rows=\"2\" [value]=\"fn.expression\"\n (input)=\"onRawChange($event)\" (focus)=\"onFocus()\" placeholder=\"Type the raw expression\"></textarea>\n </label>\n <p class=\"sub-hint\">Type <code>$</code> to insert a field or operator.</p>\n\n @if (showSuggestions()) {\n <div class=\"suggestions\">\n <div class=\"suggestion-group\">\n <span class=\"field-label\">Operators</span>\n <div class=\"chip-row\">\n @for (method of getMethods(); track method.value) {\n <button mat-stroked-button class=\"ins-chip\" (click)=\"selectSuggestionInput(method.value)\">\n {{ method.value }}\n </button>\n }\n </div>\n </div>\n <div class=\"suggestion-group\">\n <span class=\"field-label\">Inputs</span>\n <div class=\"chip-row\">\n @for (input of getAllInputs(); track input.formControlName) {\n <button mat-stroked-button class=\"ins-chip\" (click)=\"selectSuggestionInput(input.formControlName)\">\n {{ input.label }}\n </button>\n }\n </div>\n </div>\n </div>\n }\n } @else {\n @switch (activeKind()) {\n @case ('predicate') {\n @if (predicate(); as p) {\n @if (p.conditions.length > 1) {\n <div class=\"match-row\">\n <span class=\"field-label\">Match</span>\n <mat-button-toggle-group class=\"seg\" [value]=\"p.connector\" hideSingleSelectionIndicator\n (change)=\"setConnector($event.value)\">\n <mat-button-toggle value=\"&&\">All</mat-button-toggle>\n <mat-button-toggle value=\"||\">Any</mat-button-toggle>\n </mat-button-toggle-group>\n <span class=\"muted\">of the conditions</span>\n </div>\n }\n @for (cond of p.conditions; track $index) {\n <div class=\"q-item\">\n <div class=\"q-stack\">\n <label class=\"f-field\">\n <span class=\"f-label\">Field</span>\n <select class=\"f-control\" [value]=\"cond.field\"\n (change)=\"updateCondition($index, { field: inputValue($event) })\">\n @for (f of fieldOptionsWith(cond.field); track f) { <option [value]=\"f\">{{ f }}</option> }\n </select>\n </label>\n <div class=\"q-pair q-pair-op\">\n <label class=\"f-field\">\n <span class=\"f-label\">Operator</span>\n <select class=\"f-control\" [value]=\"cond.operator\"\n (change)=\"updateCondition($index, { operator: inputValue($event) })\">\n @for (op of operators; track op.value) { <option [value]=\"op.value\">{{ op.label }}</option> }\n </select>\n </label>\n <label class=\"f-field\">\n <span class=\"f-label\">Value</span>\n <input class=\"f-control\" [value]=\"cond.value\" placeholder=\"active, 18, Durban\"\n (input)=\"updateCondition($index, { value: inputValue($event) })\">\n </label>\n </div>\n </div>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeCondition($index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n <button type=\"button\" class=\"link-btn\" (click)=\"addCondition()\">\n <mat-icon>add</mat-icon> Add condition\n </button>\n }\n }\n\n @case ('project') {\n @if (projection(); as proj) {\n <span class=\"field-label\">Keep fields</span>\n <div class=\"checklist\">\n @for (f of availableFields(); track f) {\n <mat-checkbox [checked]=\"fieldPicked(f)\" (change)=\"toggleField(f)\">{{ f }}</mat-checkbox>\n }\n <mat-checkbox [checked]=\"hasSpread()\" (change)=\"toggleSpread()\"\n matTooltip=\"Include every field\">everything (*)</mat-checkbox>\n </div>\n\n <div class=\"section-head\">\n <span class=\"field-label\">Mapped fields</span>\n <span class=\"section-actions\">\n <button type=\"button\" class=\"link-btn\" (click)=\"addRename()\"><mat-icon>add</mat-icon> Field</button>\n <button type=\"button\" class=\"link-btn\" (click)=\"addLiteral()\"><mat-icon>add</mat-icon> Constant</button>\n </span>\n </div>\n\n @for (r of renameItems(); track r.index) {\n <div class=\"map-row\">\n <label class=\"f-field\">\n <span class=\"f-label\">New name</span>\n <input class=\"f-control\" [value]=\"r.item.alias\"\n (input)=\"updateItem(r.index, { alias: inputValue($event) })\">\n </label>\n <div class=\"f-field\">\n <span class=\"f-label\">From path</span>\n <button type=\"button\" class=\"f-control f-picker\" [matMenuTriggerFor]=\"pathMenu\">\n <span class=\"f-picker-text\" [class.f-placeholder]=\"!r.item.path\">{{ r.item.path || 'Select a path' }}</span>\n <mat-icon>account_tree</mat-icon>\n </button>\n <mat-menu #pathMenu=\"matMenu\" class=\"path-menu\">\n @for (p of availableDeepPaths(); track p.path) {\n <button mat-menu-item class=\"path-item\" [style.padding-left.px]=\"12 + p.depth * 14\"\n (click)=\"updateItem(r.index, { path: p.path })\">\n <mat-icon class=\"path-icon\">{{ p.leaf ? 'chevron_right' : 'folder_open' }}</mat-icon>\n <span>{{ p.name }}</span>\n </button>\n } @empty {\n <button mat-menu-item disabled>No paths detected</button>\n }\n </mat-menu>\n </div>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeItem(r.index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n @for (l of literalItems(); track l.index) {\n <div class=\"map-row\">\n <label class=\"f-field\">\n <span class=\"f-label\">Field name</span>\n <input class=\"f-control\" [value]=\"l.item.alias\"\n (input)=\"updateItem(l.index, { alias: inputValue($event) })\">\n </label>\n <label class=\"f-field\">\n <span class=\"f-label\">Constant</span>\n <input class=\"f-control\" [value]=\"l.item.value\" placeholder='\"api\", 1, true'\n (input)=\"updateItem(l.index, { value: inputValue($event) })\">\n </label>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeItem(l.index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n }\n }\n\n @case ('sort') {\n @if (sort(); as s) {\n @for (key of s.keys; track $index) {\n <div class=\"q-item\">\n <div class=\"q-pair q-pair-sort\">\n <label class=\"f-field\">\n <span class=\"f-label\">Sort by</span>\n <select class=\"f-control\" [value]=\"key.field\"\n (change)=\"updateSortKey($index, { field: inputValue($event) })\">\n @for (f of fieldOptionsWith(key.field); track f) { <option [value]=\"f\">{{ f }}</option> }\n </select>\n </label>\n <mat-button-toggle-group class=\"seg seg-dir\" [value]=\"key.dir\" hideSingleSelectionIndicator\n (change)=\"updateSortKey($index, { dir: $event.value })\">\n <mat-button-toggle value=\"asc\" matTooltip=\"Ascending\"><mat-icon>arrow_upward</mat-icon></mat-button-toggle>\n <mat-button-toggle value=\"desc\" matTooltip=\"Descending\"><mat-icon>arrow_downward</mat-icon></mat-button-toggle>\n </mat-button-toggle-group>\n </div>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeSortKey($index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n <button type=\"button\" class=\"link-btn\" (click)=\"addSortKey()\">\n <mat-icon>add</mat-icon> Add sort key\n </button>\n }\n }\n\n @case ('slice') {\n @if (slice(); as sl) {\n <div class=\"field-grid\">\n <label class=\"f-field\">\n <span class=\"f-label\">Take</span>\n <select class=\"f-control\" [value]=\"sl.mode\" (change)=\"setSliceMode(inputValue($event))\">\n @for (mode of sliceModes; track mode.value) { <option [value]=\"mode.value\">{{ mode.label }}</option> }\n </select>\n </label>\n @switch (sl.mode) {\n @case ('range') {\n <label class=\"f-field\"><span class=\"f-label\">Start</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.a\" (input)=\"setSliceA($event)\"></label>\n <label class=\"f-field\"><span class=\"f-label\">End</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.b\" (input)=\"setSliceB($event)\"></label>\n }\n @case ('fromCount') {\n <label class=\"f-field\"><span class=\"f-label\">From index</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.a\" (input)=\"setSliceA($event)\"></label>\n <label class=\"f-field\"><span class=\"f-label\">Count</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.b\" (input)=\"setSliceB($event)\"></label>\n }\n @default {\n <label class=\"f-field\"><span class=\"f-label\">How many</span>\n <input class=\"f-control\" type=\"number\" [value]=\"sl.b\" (input)=\"setSliceB($event)\"></label>\n }\n }\n </div>\n }\n }\n\n @case ('keys') {\n @if (keysModel(); as k) {\n <span class=\"field-label\">\n @if (isUnique(fn.function)) { Unique by — none = whole row } @else { Group by }\n </span>\n <div class=\"checklist\">\n @for (f of availableFields(); track f) {\n <mat-checkbox [checked]=\"keyPicked(f)\" (change)=\"toggleKey(f)\">{{ f }}</mat-checkbox>\n }\n </div>\n @if (availableFields().length === 0) {\n <p class=\"hint-line\"><mat-icon class=\"info-icon\">info</mat-icon>\n <span>No fields detected — use Advanced to type a key path.</span></p>\n }\n }\n }\n\n @case ('flatten') {\n @if (flatten(); as fl) {\n <label class=\"f-field full\">\n <span class=\"f-label\">Flatten</span>\n <select class=\"f-control\" [value]=\"fl.path\" (change)=\"setFlatten(inputValue($event))\">\n <option [value]=\"''\">nested arrays (one level)</option>\n @for (f of fieldOptionsWith(fl.path); track f) { <option [value]=\"f\">items in {{ f }}</option> }\n </select>\n </label>\n <p class=\"sub-hint\">Blank flattens one level; a field flat-maps that child array.</p>\n }\n }\n\n @case ('reduce') {\n @if (reduce(); as red) {\n @for (agg of red.aggs; track $index) {\n <div class=\"q-item\">\n <div class=\"q-stack\">\n @if (red.aggs.length > 1) {\n <label class=\"f-field\">\n <span class=\"f-label\">Output name</span>\n <input class=\"f-control\" [value]=\"agg.alias\"\n (input)=\"updateAgg($index, { alias: inputValue($event) })\">\n </label>\n }\n <div class=\"q-pair\">\n <label class=\"f-field\">\n <span class=\"f-label\">Aggregate</span>\n <select class=\"f-control\" [value]=\"agg.agg\"\n (change)=\"updateAgg($index, { agg: inputValue($event) })\">\n @for (a of aggregates; track a.value) { <option [value]=\"a.value\">{{ a.label }}</option> }\n </select>\n </label>\n @if (aggNeedsField(agg.agg)) {\n <label class=\"f-field\">\n <span class=\"f-label\">Field</span>\n <select class=\"f-control\" [value]=\"agg.field\"\n (change)=\"updateAgg($index, { field: inputValue($event) })\">\n @for (f of fieldOptionsWith(agg.field); track f) { <option [value]=\"f\">{{ f }}</option> }\n </select>\n </label>\n }\n </div>\n </div>\n <button mat-icon-button class=\"q-remove\" (click)=\"removeAgg($index)\"\n matTooltip=\"Remove\"><mat-icon>close</mat-icon></button>\n </div>\n }\n <button type=\"button\" class=\"link-btn\" (click)=\"addAgg()\">\n <mat-icon>add</mat-icon> Add aggregate\n </button>\n }\n }\n }\n }\n\n <div class=\"editor-foot\">\n <button type=\"button\" class=\"link-btn\" (click)=\"toggleRaw()\">\n @if (rawMode()) { <mat-icon>view_module</mat-icon> Guided }\n @else { <mat-icon>code</mat-icon> Advanced }\n </button>\n </div>\n }\n\n <div class=\"editor-actions\">\n <button mat-icon-button (click)=\"moveStep(fn.id, -1)\" matTooltip=\"Move earlier\"\n aria-label=\"Move step earlier\"><mat-icon>chevron_left</mat-icon></button>\n <button mat-icon-button (click)=\"moveStep(fn.id, 1)\" matTooltip=\"Move later\"\n aria-label=\"Move step later\"><mat-icon>chevron_right</mat-icon></button>\n <button mat-icon-button (click)=\"removeFunction(fn.id)\" matTooltip=\"Remove step\"\n aria-label=\"Remove step\"><mat-icon>delete_outline</mat-icon></button>\n <span class=\"spacer\"></span>\n <button mat-flat-button color=\"primary\" (click)=\"saveNodeInEdit()\">\n <mat-icon>check</mat-icon> Apply\n </button>\n </div>\n </section>\n }\n } @else {\n <p class=\"hint-line\">\n <mat-icon class=\"info-icon\">data_array</mat-icon>\n <span>Click an array (<mat-icon class=\"inline-icon\">data_array</mat-icon>) in the path above to add steps.</span>\n </p>\n }\n }\n </div>\n </mat-expansion-panel>\n\n <!-- 3 - Preview -->\n <mat-expansion-panel expanded>\n <mat-expansion-panel-header>\n <mat-panel-title>\n <mat-icon class=\"title-icon\">preview</mat-icon>\n <span class=\"panel-title\">3 · Result preview</span>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <div class=\"content\">\n @if (resultRowCount(); as n) {\n <span class=\"result-count\"><mat-icon>check_circle</mat-icon> {{ n }} {{ n === 1 ? 'result' : 'results' }}</span>\n }\n <div class=\"mapped-value\">\n <pre>{{ mappedValue | json }}</pre>\n </div>\n </div>\n </mat-expansion-panel>\n</mat-accordion>\n", styles: ["@charset \"UTF-8\";:host{display:block}.surface mat-expansion-panel{background:var(--mat-sys-surface-container-low, var(--lib-forms-surface-container-low))}:host ::ng-deep .mat-expansion-panel-header{height:44px;padding:0 .875rem}:host ::ng-deep .mat-expansion-panel-body{padding:0 .875rem .75rem}button mat-icon{vertical-align:middle}.panel-title{font-size:.875rem;font-weight:500;letter-spacing:-.01em}.title-icon{margin-right:.625rem;vertical-align:middle;color:var(--lib-forms-on-surface-variant)}.content{display:flex;flex-direction:column;gap:.875rem;padding:.5rem 0 .25rem}.hint-line{display:flex;align-items:center;gap:.5rem;margin:0;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.info-icon{color:var(--sem-info, var(--lib-forms-primary));flex:none}.inline-icon{font-size:1rem;width:1rem;height:1rem;vertical-align:text-bottom}.field-label{font-size:.625rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.muted{font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.data-tree{background:var(--lib-forms-surface-container-low);border-radius:var(--lib-forms-radius-md);padding:.5rem .75rem;min-width:fit-content}:host mat-tree-node{min-height:34px}.node-spacer{display:inline-block;width:36px}.node-toggle{color:var(--lib-forms-on-surface-variant)}.node-checkbox{width:100%}.node-key{font-weight:500;color:var(--lib-forms-on-surface);margin-right:.5rem}.node-value{font-family:var(--lib-forms-font-mono, monospace);padding:.0625rem .4375rem;background:var(--lib-forms-surface-container);border-radius:var(--lib-forms-radius-sm);font-size:.8125rem;white-space:nowrap}.breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:.125rem}.crumb{display:inline-flex;align-items:center;gap:.25rem;height:1.75rem;max-width:9rem;padding:0 .5rem;font:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-on-surface-variant);background:transparent;border:0;border-radius:var(--lib-forms-radius-pill);cursor:pointer;white-space:nowrap;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.crumb:hover:not(:disabled){background:var(--lib-forms-surface-container-high)}.crumb:disabled{cursor:default;opacity:.65}.crumb mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.crumb-text{overflow:hidden;text-overflow:ellipsis}.crumb-array{color:var(--lib-forms-primary)}.crumb-active,.crumb-active:hover:not(:disabled){background:var(--lib-forms-primary-container);color:var(--lib-forms-on-surface)}.crumb-badge{min-width:1.0625rem;padding:0 .3125rem;border-radius:var(--lib-forms-radius-pill);background:var(--lib-forms-primary);color:var(--lib-forms-on-primary, var(--mat-sys-on-primary));font-size:.625rem;line-height:1.0625rem;text-align:center}.crumb-sep{color:var(--lib-forms-outline);font-size:1rem;width:1rem;height:1rem}.pipeline{display:flex;align-items:stretch;flex-wrap:wrap;gap:.375rem}.stage{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.0625rem;min-width:4rem;padding:.375rem .5rem;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md);background:var(--lib-forms-surface-container-low);color:var(--lib-forms-on-surface);cursor:pointer;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.stage mat-icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.stage-source{cursor:default;color:var(--lib-forms-on-surface-variant);background:transparent;border-style:dashed}.stage-active{border-color:var(--lib-forms-primary);background:var(--lib-forms-primary-container)}.stage-empty{border-style:dashed;color:var(--lib-forms-on-surface-variant)}.stage-add{border-style:dashed;color:var(--lib-forms-primary);min-width:3.75rem}.stage-label{font-size:.75rem;font-weight:500}.stage-count{font-size:.625rem;color:var(--lib-forms-on-surface-variant)}.flow-arrow{align-self:center;color:var(--lib-forms-outline);font-size:1.125rem;width:1rem;height:1.125rem}.menu-hint{display:block;font-size:.6875rem;color:var(--lib-forms-on-surface-variant)}.editor{display:flex;flex-direction:column;gap:.75rem;padding:1.125rem;border-radius:var(--lib-forms-radius-lg);background:var(--lib-forms-surface-container-low);box-shadow:var(--mat-sys-level1, 0 1px 3px rgba(0, 0, 0, .12))}.full{width:100%}.f-field{display:flex;flex-direction:column;gap:.1875rem;min-width:0}.f-label{font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.f-control{box-sizing:border-box;width:100%;min-width:0;height:2rem;padding:.3125rem .5rem;font-family:inherit;font-size:.8125rem;line-height:1.25;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm);transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}select.f-control{cursor:pointer}.f-textarea{height:auto;min-height:3rem;line-height:1.4;resize:vertical}.f-control:hover{border-color:var(--lib-forms-outline)}.f-control:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 1px var(--lib-forms-primary)}.sub-hint{margin:-.25rem 0 0;font-size:.75rem;color:var(--lib-forms-on-surface-variant)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.25rem}.section-actions{display:flex;gap:.25rem}.map-row{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:.5rem;padding:.5rem .5rem .5rem .625rem;background:var(--lib-forms-surface-container);border-radius:var(--lib-forms-radius-sm)}.q-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.25rem;padding:.5rem .5rem .5rem .625rem;background:var(--lib-forms-surface-container);border-radius:var(--lib-forms-radius-sm)}.q-stack{display:flex;flex-direction:column;gap:.5rem;min-width:0}.q-pair{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;min-width:0}.q-pair-op{grid-template-columns:8rem 1fr}.q-pair-sort{grid-template-columns:1fr auto;align-items:end}.q-remove{color:var(--lib-forms-on-surface-variant)}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));gap:.5rem}.match-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.seg{--mat-standard-button-toggle-height: 34px;height:34px}.checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.125rem 1rem;padding:.25rem 0}.link-btn{display:inline-flex;align-items:center;align-self:flex-start;gap:.25rem;height:1.75rem;padding:0 .5rem;font:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-primary);background:transparent;border:0;border-radius:var(--lib-forms-radius-sm);cursor:pointer;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.link-btn:hover{background:var(--lib-forms-primary-container)}.link-btn mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.f-picker{display:flex;align-items:center;justify-content:space-between;gap:.25rem;text-align:left;cursor:pointer}.f-picker-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.f-placeholder{color:var(--lib-forms-on-surface-variant)}.f-picker mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem;color:var(--lib-forms-on-surface-variant)}.path-icon{margin-right:.25rem;font-size:1rem;width:1rem;height:1rem;color:var(--lib-forms-on-surface-variant)}.editor-foot{display:flex;justify-content:flex-end;margin-top:-.25rem}.editor-actions{display:flex;align-items:center;gap:.125rem;padding-top:.5rem}.spacer{flex:1}.suggestions{display:flex;gap:1rem;flex-wrap:wrap;padding:.75rem;border-radius:var(--lib-forms-radius-md);background:var(--sem-info-surface, var(--lib-forms-surface-container))}.suggestion-group{flex:1 1 10rem;display:flex;flex-direction:column;gap:.375rem}.chip-row{display:flex;flex-wrap:wrap;gap:.25rem}.ins-chip{font-size:.75rem}.result-count{display:inline-flex;align-items:center;gap:.375rem;font-size:.8125rem;font-weight:500;color:var(--sem-emerald, var(--lib-forms-method-get))}.result-count mat-icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mapped-value{padding:1rem 1.25rem;background:var(--lib-forms-on-surface);color:var(--lib-forms-surface);border-radius:var(--lib-forms-radius-md);overflow:auto}.mapped-value pre{margin:0;font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem}\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: MatButtonToggleModule }, { kind: "directive", type: i3$5.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3$5.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3$4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i5$2.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatTreeModule }, { kind: "directive", type: i1$4.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i1$4.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { kind: "directive", type: i1$4.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { kind: "component", type: i1$4.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i1$4.MatTreeNode, selector: "mat-tree-node", inputs: ["tabIndex", "disabled"], outputs: ["activation", "expandedChange"], exportAs: ["matTreeNode"] }, { kind: "pipe", type: JsonPipe, name: "json" }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
20832
21538
|
}
|
|
20833
21539
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DataTreeComponent, decorators: [{
|
|
20834
21540
|
type: Component,
|
|
@@ -21331,7 +22037,7 @@ class JsonEditorComponent {
|
|
|
21331
22037
|
return `Error at position ${position} near "${excerpt}"`;
|
|
21332
22038
|
}
|
|
21333
22039
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: JsonEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21334
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: JsonEditorComponent, isStandalone: true, selector: "lib-json-editor", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, bindings: { classPropertyName: "bindings", publicName: "bindings", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { classAttribute: "lib-json-editor" }, viewQueries: [{ propertyName: "backdrop", first: true, predicate: ["backdrop"], descendants: true, isSignal: true }, { propertyName: "gutter", first: true, predicate: ["gutter"], descendants: true, isSignal: true }, { propertyName: "textareaRef", first: true, predicate: ["editor"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (fullscreen()) {\n <div class=\"fullscreen-scrim\" (click)=\"toggleFullscreen()\" aria-hidden=\"true\"></div>\n}\n\n<div\n class=\"json-editor\"\n [class.json-editor--fullscreen]=\"fullscreen()\"\n [style.--lib-json-editor-height]=\"fullscreen() ? '100%' : height()\">\n\n <div class=\"editor-toolbar\">\n <span class=\"toolbar-label\">\n <mat-icon class=\"icon-sm\">code</mat-icon> JSON Editor\n </span>\n\n <div class=\"toolbar-actions\">\n @if (errorMessage(); as message) {\n <span class=\"status-indicator status-indicator--error\" [title]=\"message\">\n <mat-icon class=\"icon-sm\">error_outline</mat-icon> Invalid\n </span>\n } @else {\n <span class=\"status-indicator status-indicator--valid\">\n <mat-icon class=\"icon-sm\">check_circle</mat-icon> Valid\n </span>\n }\n <button\n mat-button\n type=\"button\"\n class=\"prettify-btn\"\n (click)=\"prettify()\"\n [disabled]=\"formatDisabled()\">\n Format JSON\n </button>\n <button\n type=\"button\"\n class=\"icon-btn\"\n (click)=\"toggleFullscreen()\"\n [attr.aria-label]=\"fullscreen() ? 'Exit full screen' : 'Expand to full screen'\"\n [title]=\"fullscreen() ? 'Exit full screen' : 'Expand to full screen'\">\n <mat-icon class=\"icon-sm\">{{ fullscreen() ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>\n </button>\n </div>\n </div>\n\n <div class=\"editor-container\">\n <div #gutter class=\"editor-gutter\" aria-hidden=\"true\">\n @for (n of lineNumbers(); track n) {\n <span class=\"gutter-line\">{{ n }}</span>\n }\n </div>\n\n <div class=\"editor-scroll\">\n <div #backdrop class=\"editor-backdrop\" aria-hidden=\"true\">\n <div class=\"highlights\" [innerHTML]=\"highlightedHtml()\"></div>\n </div>\n\n <textarea\n #editor\n class=\"editor-textarea\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n wrap=\"off\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (scroll)=\"onScroll($event)\"\n (keydown)=\"onKeydown($event)\"\n (click)=\"onEditorClick($event)\"\n (blur)=\"closeSuggestions()\"\n [placeholder]=\"bindings().length ? 'Paste JSON here\u2026 type $ to insert a field' : 'Paste JSON here...'\"></textarea>\n\n @if (showSuggestions() && bindings().length) {\n <div class=\"binding-menu\" role=\"listbox\" aria-label=\"Insert a field\">\n <div class=\"binding-menu__head\">Insert a field</div>\n @for (binding of filteredBindings(); track binding.insert; let i = $index) {\n <button\n type=\"button\"\n role=\"option\"\n [attr.aria-selected]=\"i === activeIndex()\"\n class=\"binding-option\"\n [class.binding-option--active]=\"i === activeIndex()\"\n (mousedown)=\"$event.preventDefault()\"\n (mouseenter)=\"activeIndex.set(i)\"\n (click)=\"insertBinding(binding)\">\n <mat-icon class=\"binding-icon\">{{ binding.icon || 'data_object' }}</mat-icon>\n <span class=\"binding-text\">\n <span class=\"binding-name\">{{ binding.label }}</span>\n @if (binding.detail) {\n <span class=\"binding-detail\">{{ binding.detail }}</span>\n }\n </span>\n </button>\n } @empty {\n <div class=\"binding-empty\">No fields match \u201C{{ bindingSearch() }}\u201D.</div>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Persistent error zone: always reserves space so the layout never jumps. -->\n <div\n class=\"editor-footer\"\n [class.editor-footer--active]=\"errorMessage() !== null\"\n [class.editor-footer--warn]=\"errorMessage() === null && unknownTokenCount() > 0\"\n role=\"status\">\n @if (errorMessage(); as message) {\n <mat-icon class=\"icon-sm\">warning</mat-icon>\n <span>{{ message }}</span>\n } @else if (unknownTokenCount() > 0) {\n <mat-icon class=\"icon-sm\">help_outline</mat-icon>\n <span>{{ unknownTokenCount() }}\n {{ unknownTokenCount() === 1 ? 'field reference is' : 'field references are' }}\n not recognised \u2014 click it to pick a real field.</span>\n }\n </div>\n\n</div>\n", styles: [":host{display:block}.json-editor{display:flex;flex-direction:column;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);overflow:hidden;background-color:var(--lib-forms-code-bg);font-family:Fira Code,Consolas,Monaco,Courier New,monospace;box-shadow:var(--lib-forms-shadow-resting)}.json-editor--disabled{opacity:.75}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.5rem 1rem;background-color:var(--lib-forms-code-surface)}.editor-toolbar .toolbar-label{display:inline-flex;align-items:center;gap:.5rem;font-weight:500;font-size:.8125rem;color:var(--lib-forms-code-fg)}.icon-sm{font-size:1.125rem;width:1.125rem;height:1.125rem}.toolbar-actions{display:inline-flex;align-items:center;gap:.75rem}.status-indicator{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem}.status-indicator--error{color:var(--lib-forms-code-error)}.status-indicator--valid{color:var(--lib-forms-code-number)}.prettify-btn{font-family:inherit;font-size:.75rem;color:var(--lib-forms-code-fg);background:color-mix(in srgb,var(--lib-forms-code-fg) 8%,transparent);border:1px solid color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent);border-radius:var(--lib-forms-radius-sm, 8px);padding:.25rem .75rem;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.prettify-btn:hover:not(:disabled){background:color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent)}.prettify-btn:disabled{opacity:.5;cursor:not-allowed}.editor-container{display:flex;width:100%;height:var(--lib-json-editor-height, 450px);background-color:var(--lib-forms-code-bg)}.editor-gutter{flex:0 0 auto;box-sizing:border-box;overflow:hidden;padding:1rem .5rem 1rem .75rem;text-align:right;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;color:color-mix(in srgb,var(--lib-forms-code-fg) 40%,transparent);background-color:var(--lib-forms-code-surface);border-right:1px solid var(--lib-forms-code-border);-webkit-user-select:none;user-select:none}.editor-gutter .gutter-line{display:block;height:1.5em;white-space:pre}.editor-scroll{position:relative;flex:1 1 auto;min-width:0;height:100%}.editor-textarea,.editor-backdrop{position:absolute;inset:0;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;letter-spacing:0;padding:1rem;margin:0;border:0;box-sizing:border-box;white-space:pre;word-wrap:normal;overflow:auto;tab-size:4}.editor-backdrop{z-index:1;pointer-events:none;overflow:hidden;background-color:transparent;color:var(--lib-forms-code-fg)}.editor-backdrop .highlights{white-space:pre;word-wrap:normal}.editor-textarea{z-index:2;color:transparent;background:transparent;caret-color:var(--lib-forms-code-fg);resize:none;outline:none}.editor-textarea::selection{background-color:color-mix(in srgb,var(--lib-forms-code-fg) 18%,transparent);color:transparent}.editor-textarea:disabled{cursor:not-allowed}.binding-menu{position:absolute;left:1rem;bottom:1rem;z-index:3;max-height:16rem;width:18rem;max-width:calc(100% - 2rem);overflow-y:auto;display:flex;flex-direction:column;padding:.375rem;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);background-color:var(--lib-forms-code-surface);box-shadow:var(--lib-forms-shadow-floating, var(--lib-forms-shadow-resting))}.binding-menu__head{padding:.35rem .6rem .5rem;font-size:.625rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--lib-forms-code-fg) 55%,transparent)}.binding-option{display:flex;align-items:center;gap:.6rem;padding:.45rem .6rem;border:0;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;text-align:left;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.binding-option--active{background:color-mix(in srgb,var(--lib-forms-primary, var(--lib-forms-code-key, var(--lib-forms-code-fg))) 16%,transparent)}.binding-option .binding-icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 70%,transparent)}.binding-option .binding-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}.binding-option .binding-name{font-family:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-code-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.binding-option .binding-detail{font-size:.6875rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 55%,transparent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.binding-empty{padding:.6rem;font-size:.75rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 60%,transparent)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;color:var(--lib-forms-code-fg);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.icon-btn:hover{background:color-mix(in srgb,var(--lib-forms-code-fg) 12%,transparent)}.fullscreen-scrim{position:fixed;inset:0;z-index:1199;background:color-mix(in srgb,var(--lib-forms-shadow-color) 55%,transparent);animation:json-editor-fade .2s var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.json-editor--fullscreen{position:fixed;inset:2.5rem;z-index:1200;margin:0;box-shadow:var(--lib-forms-shadow-floating, var(--lib-forms-shadow-resting))}.json-editor--fullscreen .editor-container{height:auto;flex:1 1 auto;min-height:0}@keyframes json-editor-fade{0%{opacity:0}to{opacity:1}}.editor-footer{display:flex;align-items:center;gap:.5rem;min-height:2.25rem;padding:.5rem 1rem;font-size:.8125rem;color:var(--lib-forms-code-error);background-color:transparent;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.editor-footer--active{background-color:color-mix(in srgb,var(--lib-forms-code-error) 12%,transparent)}.editor-footer--warn{color:var(--lib-forms-warning, var(--lib-forms-code-boolean));background-color:color-mix(in srgb,var(--lib-forms-warning, var(--lib-forms-code-boolean)) 12%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22040
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: JsonEditorComponent, isStandalone: true, selector: "lib-json-editor", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, bindings: { classPropertyName: "bindings", publicName: "bindings", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { classAttribute: "lib-json-editor" }, viewQueries: [{ propertyName: "backdrop", first: true, predicate: ["backdrop"], descendants: true, isSignal: true }, { propertyName: "gutter", first: true, predicate: ["gutter"], descendants: true, isSignal: true }, { propertyName: "textareaRef", first: true, predicate: ["editor"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (fullscreen()) {\n <div class=\"fullscreen-scrim\" (click)=\"toggleFullscreen()\" aria-hidden=\"true\"></div>\n}\n\n<div\n class=\"json-editor\"\n [class.json-editor--fullscreen]=\"fullscreen()\"\n [style.--lib-json-editor-height]=\"fullscreen() ? '100%' : height()\">\n\n <div class=\"editor-toolbar\">\n <span class=\"toolbar-label\">\n <mat-icon class=\"icon-sm\">code</mat-icon> JSON Editor\n </span>\n\n <div class=\"toolbar-actions\">\n @if (errorMessage(); as message) {\n <span class=\"status-indicator status-indicator--error\" [title]=\"message\">\n <mat-icon class=\"icon-sm\">error_outline</mat-icon> Invalid\n </span>\n } @else {\n <span class=\"status-indicator status-indicator--valid\">\n <mat-icon class=\"icon-sm\">check_circle</mat-icon> Valid\n </span>\n }\n <button\n mat-button\n type=\"button\"\n class=\"prettify-btn\"\n (click)=\"prettify()\"\n [disabled]=\"formatDisabled()\">\n Format JSON\n </button>\n <button\n type=\"button\"\n class=\"icon-btn\"\n (click)=\"toggleFullscreen()\"\n [attr.aria-label]=\"fullscreen() ? 'Exit full screen' : 'Expand to full screen'\"\n [title]=\"fullscreen() ? 'Exit full screen' : 'Expand to full screen'\">\n <mat-icon class=\"icon-sm\">{{ fullscreen() ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>\n </button>\n </div>\n </div>\n\n <div class=\"editor-container\">\n <div #gutter class=\"editor-gutter\" aria-hidden=\"true\">\n @for (n of lineNumbers(); track n) {\n <span class=\"gutter-line\">{{ n }}</span>\n }\n </div>\n\n <div class=\"editor-scroll\">\n <div #backdrop class=\"editor-backdrop\" aria-hidden=\"true\">\n <div class=\"highlights\" [innerHTML]=\"highlightedHtml()\"></div>\n </div>\n\n <textarea\n #editor\n class=\"editor-textarea\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n wrap=\"off\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (scroll)=\"onScroll($event)\"\n (keydown)=\"onKeydown($event)\"\n (click)=\"onEditorClick($event)\"\n (blur)=\"closeSuggestions()\"\n [placeholder]=\"bindings().length ? 'Paste JSON here\u2026 type $ to insert a field' : 'Paste JSON here...'\"></textarea>\n\n @if (showSuggestions() && bindings().length) {\n <div class=\"binding-menu\" role=\"listbox\" aria-label=\"Insert a field\">\n <div class=\"binding-menu__head\">Insert a field</div>\n @for (binding of filteredBindings(); track binding.insert; let i = $index) {\n <button\n type=\"button\"\n role=\"option\"\n [attr.aria-selected]=\"i === activeIndex()\"\n class=\"binding-option\"\n [class.binding-option--active]=\"i === activeIndex()\"\n (mousedown)=\"$event.preventDefault()\"\n (mouseenter)=\"activeIndex.set(i)\"\n (click)=\"insertBinding(binding)\">\n <mat-icon class=\"binding-icon\">{{ binding.icon || 'data_object' }}</mat-icon>\n <span class=\"binding-text\">\n <span class=\"binding-name\">{{ binding.label }}</span>\n @if (binding.detail) {\n <span class=\"binding-detail\">{{ binding.detail }}</span>\n }\n </span>\n </button>\n } @empty {\n <div class=\"binding-empty\">No fields match \u201C{{ bindingSearch() }}\u201D.</div>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Persistent error zone: always reserves space so the layout never jumps. -->\n <div\n class=\"editor-footer\"\n [class.editor-footer--active]=\"errorMessage() !== null\"\n [class.editor-footer--warn]=\"errorMessage() === null && unknownTokenCount() > 0\"\n role=\"status\">\n @if (errorMessage(); as message) {\n <mat-icon class=\"icon-sm\">warning</mat-icon>\n <span>{{ message }}</span>\n } @else if (unknownTokenCount() > 0) {\n <mat-icon class=\"icon-sm\">help_outline</mat-icon>\n <span>{{ unknownTokenCount() }}\n {{ unknownTokenCount() === 1 ? 'field reference is' : 'field references are' }}\n not recognised \u2014 click it to pick a real field.</span>\n }\n </div>\n\n</div>\n", styles: [":host{display:block}.json-editor{display:flex;flex-direction:column;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);overflow:hidden;background-color:var(--lib-forms-code-bg);font-family:Fira Code,Consolas,Monaco,Courier New,monospace;box-shadow:var(--lib-forms-shadow-resting)}.json-editor--disabled{opacity:.75}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.5rem 1rem;background-color:var(--lib-forms-code-surface)}.editor-toolbar .toolbar-label{display:inline-flex;align-items:center;gap:.5rem;font-weight:500;font-size:.8125rem;color:var(--lib-forms-code-fg)}.icon-sm{font-size:1.125rem;width:1.125rem;height:1.125rem}.toolbar-actions{display:inline-flex;align-items:center;gap:.75rem}.status-indicator{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem}.status-indicator--error{color:var(--lib-forms-code-error)}.status-indicator--valid{color:var(--lib-forms-code-number)}.prettify-btn{font-family:inherit;font-size:.75rem;color:var(--lib-forms-code-fg);background:color-mix(in srgb,var(--lib-forms-code-fg) 8%,transparent);border:1px solid color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent);border-radius:var(--lib-forms-radius-sm, 8px);padding:.25rem .75rem;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.prettify-btn:hover:not(:disabled){background:color-mix(in srgb,var(--lib-forms-code-fg) 16%,transparent)}.prettify-btn:disabled{opacity:.5;cursor:not-allowed}.editor-container{display:flex;width:100%;height:var(--lib-json-editor-height, 450px);background-color:var(--lib-forms-code-bg)}.editor-gutter{flex:0 0 auto;box-sizing:border-box;overflow:hidden;padding:1rem .5rem 1rem .75rem;text-align:right;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;color:color-mix(in srgb,var(--lib-forms-code-fg) 40%,transparent);background-color:var(--lib-forms-code-surface);border-right:1px solid var(--lib-forms-code-border);-webkit-user-select:none;user-select:none}.editor-gutter .gutter-line{display:block;height:1.5em;white-space:pre}.editor-scroll{position:relative;flex:1 1 auto;min-width:0;height:100%}.editor-textarea,.editor-backdrop{position:absolute;inset:0;font-family:Fira Code,Consolas,Monaco,Courier New,monospace;font-size:.875rem;line-height:1.5;letter-spacing:0;padding:1rem;margin:0;border:0;box-sizing:border-box;white-space:pre;word-wrap:normal;overflow:auto;tab-size:4}.editor-backdrop{z-index:1;pointer-events:none;overflow:hidden;background-color:transparent;color:var(--lib-forms-code-fg)}.editor-backdrop .highlights{white-space:pre;word-wrap:normal}.editor-textarea{z-index:2;color:transparent;background:transparent;caret-color:var(--lib-forms-code-fg);resize:none;outline:none}.editor-textarea::selection{background-color:color-mix(in srgb,var(--lib-forms-code-fg) 18%,transparent);color:transparent}.editor-textarea:disabled{cursor:not-allowed}.binding-menu{position:absolute;left:1rem;bottom:1rem;z-index:3;max-height:16rem;width:18rem;max-width:calc(100% - 2rem);overflow-y:auto;display:flex;flex-direction:column;padding:.375rem;border:1px solid var(--lib-forms-code-border);border-radius:var(--lib-forms-radius-lg, 12px);background-color:var(--lib-forms-code-surface);box-shadow:var(--lib-forms-shadow-floating, var(--lib-forms-shadow-resting))}.binding-menu__head{padding:.35rem .6rem .5rem;font-size:.625rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--lib-forms-code-fg) 55%,transparent)}.binding-option{display:flex;align-items:center;gap:.6rem;padding:.45rem .6rem;border:0;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;text-align:left;cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.binding-option--active{background:color-mix(in srgb,var(--lib-forms-primary, var(--lib-forms-code-key, var(--lib-forms-code-fg))) 16%,transparent)}.binding-option .binding-icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 70%,transparent)}.binding-option .binding-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}.binding-option .binding-name{font-family:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-code-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.binding-option .binding-detail{font-size:.6875rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 55%,transparent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.binding-empty{padding:.6rem;font-size:.75rem;color:color-mix(in srgb,var(--lib-forms-code-fg) 60%,transparent)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:var(--lib-forms-radius-sm, 8px);background:transparent;color:var(--lib-forms-code-fg);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.icon-btn:hover{background:color-mix(in srgb,var(--lib-forms-code-fg) 12%,transparent)}.fullscreen-scrim{position:fixed;inset:0;z-index:1199;background:color-mix(in srgb,var(--lib-forms-shadow-color) 55%,transparent);animation:json-editor-fade .2s var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.json-editor--fullscreen{position:fixed;inset:2.5rem;z-index:1200;margin:0;box-shadow:var(--lib-forms-shadow-floating, var(--lib-forms-shadow-resting))}.json-editor--fullscreen .editor-container{height:auto;flex:1 1 auto;min-height:0}@keyframes json-editor-fade{0%{opacity:0}to{opacity:1}}.editor-footer{display:flex;align-items:center;gap:.5rem;min-height:2.25rem;padding:.5rem 1rem;font-size:.8125rem;color:var(--lib-forms-code-error);background-color:transparent;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.editor-footer--active{background-color:color-mix(in srgb,var(--lib-forms-code-error) 12%,transparent)}.editor-footer--warn{color:var(--lib-forms-warning, var(--lib-forms-code-boolean));background-color:color-mix(in srgb,var(--lib-forms-warning, var(--lib-forms-code-boolean)) 12%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
21335
22041
|
}
|
|
21336
22042
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: JsonEditorComponent, decorators: [{
|
|
21337
22043
|
type: Component,
|
|
@@ -21635,7 +22341,7 @@ class ApiValueAccessRulesComponent {
|
|
|
21635
22341
|
}
|
|
21636
22342
|
}
|
|
21637
22343
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ApiValueAccessRulesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21638
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ApiValueAccessRulesComponent, isStandalone: true, selector: "lib-api-value-access-rules", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multipleBind: { classPropertyName: "multipleBind", publicName: "multipleBind", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, mapToData: { classPropertyName: "mapToData", publicName: "mapToData", isSignal: true, isRequired: false, transformFunction: null }, postmanCollectionConfig: { classPropertyName: "postmanCollectionConfig", publicName: "postmanCollectionConfig", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged", reload: "reload" }, host: { classAttribute: "lib-api-value-access-rules" }, ngImport: i0, template: "@if (hasErrors()) {\n <lib-error-list [errors]=\"errors()\" />\n}\n\n<div class=\"mode-toggle\">\n <mat-button-toggle-group name=\"valueAccessMode\" aria-label=\"Value access mode\" [value]=\"viewMode()\">\n <mat-button-toggle (click)=\"setViewMode('map')\" [checked]=\"viewMode() === 'map'\" value=\"map\">\n Value Mapping\n </mat-button-toggle>\n <mat-button-toggle (click)=\"setViewMode('sync')\" [checked]=\"viewMode() === 'sync'\" value=\"sync\">\n Data Sync\n </mat-button-toggle>\n </mat-button-toggle-group>\n</div>\n\n@if (error(); as err) {\n <lib-empty-state icon=\"error_outline\"\n [message]=\"err.error || err.message || 'Failed to load the collection.'\" />\n}\n\n@switch (viewMode()) {\n @case ('sync') {\n @if (parsedRequestBody(); as body) {\n <lib-json-editor (valueChange)=\"requestBodyChanged($event)\" [value]=\"body\" />\n } @else {\n <lib-empty-state icon=\"data_object\"\n message=\"No request body found in the selected API request.\" />\n }\n\n <div class=\"run-bar\">\n <p class=\"run-bar__hint\">Run the API call with the body above to load a live response.</p>\n <span class=\"run-bar__spacer\"></span>\n <button mat-stroked-button type=\"button\" [disabled]=\"loading()\" (click)=\"runApiCall()\"\n [attr.aria-busy]=\"loading()\" aria-label=\"Run API call\">\n @if (loading()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon>play_arrow</mat-icon>\n }\n <span>{{ loading() ? 'Running API\u2026' : 'Run API Call' }}</span>\n </button>\n </div>\n }\n\n @case ('map') {\n @if (multipleBind(); as controls) {\n @for (controlName of controls; track controlName) {\n <section class=\"mapping-section\">\n <label class=\"mapping-section__label\" [attr.for]=\"controlName\">\n Map <strong>{{ controlName }}</strong>\n </label>\n <lib-data-tree [formInputs]=\"formInputs()\" [data]=\"treeData()\"\n [value]=\"keyedValueFor(controlName)\"\n (pathChanged)=\"pathChanged($event, controlName)\" />\n </section>\n }\n } @else {\n <lib-data-tree [formInputs]=\"formInputs()\" [data]=\"treeData()\" [value]=\"singleValue()\"\n (pathChanged)=\"pathChanged($event)\" />\n }\n }\n}\n\n<!-- CDK overlay shown while disabled -->\n<ng-template cdkConnectedOverlay [cdkConnectedOverlayOpen]=\"disabled()\">\n <div class=\"disabled-overlay\" aria-hidden=\"true\"></div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative}.mode-toggle{display:flex;justify-content:center;margin-bottom:1.5rem}.mode-toggle ::ng-deep .mat-button-toggle-group{border:none;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-surface-container-high);padding:.25rem;gap:.25rem;box-shadow:none;overflow:hidden}.mode-toggle ::ng-deep .mat-button-toggle{border:none;background:transparent;border-radius:var(--lib-forms-radius-pill, 999px);color:var(--lib-forms-on-surface-variant);transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.mode-toggle ::ng-deep .mat-button-toggle+.mat-button-toggle{border-left:none}.mode-toggle ::ng-deep .mat-button-toggle-button{height:auto}.mode-toggle ::ng-deep .mat-button-toggle-label-content{padding:.375rem 1.125rem;line-height:1.5;font-size:.8125rem;font-weight:600}.mode-toggle ::ng-deep .mat-button-toggle-checked{background:var(--lib-forms-surface);color:var(--lib-forms-primary);box-shadow:var(--lib-forms-shadow-edge)}.mode-toggle ::ng-deep .mat-pseudo-checkbox{display:none}.run-bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.5rem;padding:1rem 1.25rem;background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.run-bar__hint{margin:0;font-size:.8125rem;line-height:1.4;color:var(--lib-forms-on-surface-variant)}.run-bar__spacer{flex:1 1 auto}.mapping-section{margin-bottom:1.5rem}.mapping-section:last-child{margin-bottom:0}.mapping-section__label{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;font-size:.75rem;font-weight:500;color:var(--lib-forms-on-surface-variant)}.mapping-section__label strong{padding:.125rem .5rem;border-radius:var(--lib-forms-radius-pill, 6px);background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);color:var(--lib-forms-on-surface);font-family:var(--lib-forms-font-mono, ui-monospace, monospace);font-weight:600;font-size:.75rem}.disabled-overlay{position:absolute;inset:0;background:color-mix(in srgb,var(--lib-forms-on-surface) 30%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);z-index:10}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$
|
|
22344
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ApiValueAccessRulesComponent, isStandalone: true, selector: "lib-api-value-access-rules", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multipleBind: { classPropertyName: "multipleBind", publicName: "multipleBind", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, mapToData: { classPropertyName: "mapToData", publicName: "mapToData", isSignal: true, isRequired: false, transformFunction: null }, postmanCollectionConfig: { classPropertyName: "postmanCollectionConfig", publicName: "postmanCollectionConfig", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged", reload: "reload" }, host: { classAttribute: "lib-api-value-access-rules" }, ngImport: i0, template: "@if (hasErrors()) {\n <lib-error-list [errors]=\"errors()\" />\n}\n\n<div class=\"mode-toggle\">\n <mat-button-toggle-group name=\"valueAccessMode\" aria-label=\"Value access mode\" [value]=\"viewMode()\">\n <mat-button-toggle (click)=\"setViewMode('map')\" [checked]=\"viewMode() === 'map'\" value=\"map\">\n Value Mapping\n </mat-button-toggle>\n <mat-button-toggle (click)=\"setViewMode('sync')\" [checked]=\"viewMode() === 'sync'\" value=\"sync\">\n Data Sync\n </mat-button-toggle>\n </mat-button-toggle-group>\n</div>\n\n@if (error(); as err) {\n <lib-empty-state icon=\"error_outline\"\n [message]=\"err.error || err.message || 'Failed to load the collection.'\" />\n}\n\n@switch (viewMode()) {\n @case ('sync') {\n @if (parsedRequestBody(); as body) {\n <lib-json-editor (valueChange)=\"requestBodyChanged($event)\" [value]=\"body\" />\n } @else {\n <lib-empty-state icon=\"data_object\"\n message=\"No request body found in the selected API request.\" />\n }\n\n <div class=\"run-bar\">\n <p class=\"run-bar__hint\">Run the API call with the body above to load a live response.</p>\n <span class=\"run-bar__spacer\"></span>\n <button mat-stroked-button type=\"button\" [disabled]=\"loading()\" (click)=\"runApiCall()\"\n [attr.aria-busy]=\"loading()\" aria-label=\"Run API call\">\n @if (loading()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon>play_arrow</mat-icon>\n }\n <span>{{ loading() ? 'Running API\u2026' : 'Run API Call' }}</span>\n </button>\n </div>\n }\n\n @case ('map') {\n @if (multipleBind(); as controls) {\n @for (controlName of controls; track controlName) {\n <section class=\"mapping-section\">\n <label class=\"mapping-section__label\" [attr.for]=\"controlName\">\n Map <strong>{{ controlName }}</strong>\n </label>\n <lib-data-tree [formInputs]=\"formInputs()\" [data]=\"treeData()\"\n [value]=\"keyedValueFor(controlName)\"\n (pathChanged)=\"pathChanged($event, controlName)\" />\n </section>\n }\n } @else {\n <lib-data-tree [formInputs]=\"formInputs()\" [data]=\"treeData()\" [value]=\"singleValue()\"\n (pathChanged)=\"pathChanged($event)\" />\n }\n }\n}\n\n<!-- CDK overlay shown while disabled -->\n<ng-template cdkConnectedOverlay [cdkConnectedOverlayOpen]=\"disabled()\">\n <div class=\"disabled-overlay\" aria-hidden=\"true\"></div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative}.mode-toggle{display:flex;justify-content:center;margin-bottom:1.5rem}.mode-toggle ::ng-deep .mat-button-toggle-group{border:none;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-surface-container-high);padding:.25rem;gap:.25rem;box-shadow:none;overflow:hidden}.mode-toggle ::ng-deep .mat-button-toggle{border:none;background:transparent;border-radius:var(--lib-forms-radius-pill, 999px);color:var(--lib-forms-on-surface-variant);transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.mode-toggle ::ng-deep .mat-button-toggle+.mat-button-toggle{border-left:none}.mode-toggle ::ng-deep .mat-button-toggle-button{height:auto}.mode-toggle ::ng-deep .mat-button-toggle-label-content{padding:.375rem 1.125rem;line-height:1.5;font-size:.8125rem;font-weight:600}.mode-toggle ::ng-deep .mat-button-toggle-checked{background:var(--lib-forms-surface);color:var(--lib-forms-primary);box-shadow:var(--lib-forms-shadow-edge)}.mode-toggle ::ng-deep .mat-pseudo-checkbox{display:none}.run-bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.5rem;padding:1rem 1.25rem;background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.run-bar__hint{margin:0;font-size:.8125rem;line-height:1.4;color:var(--lib-forms-on-surface-variant)}.run-bar__spacer{flex:1 1 auto}.mapping-section{margin-bottom:1.5rem}.mapping-section:last-child{margin-bottom:0}.mapping-section__label{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;font-size:.75rem;font-weight:500;color:var(--lib-forms-on-surface-variant)}.mapping-section__label strong{padding:.125rem .5rem;border-radius:var(--lib-forms-radius-pill, 6px);background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);color:var(--lib-forms-on-surface);font-family:var(--lib-forms-font-mono, ui-monospace, monospace);font-weight:600;font-size:.75rem}.disabled-overlay{position:absolute;inset:0;background:color-mix(in srgb,var(--lib-forms-on-surface) 30%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);z-index:10}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$4.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { 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: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i3$5.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3$5.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: DataTreeComponent, selector: "lib-data-tree", inputs: ["data", "value", "formInputs"], outputs: ["pathChanged"] }, { kind: "component", type: JsonEditorComponent, selector: "lib-json-editor", inputs: ["value", "height", "disabled", "bindings"], outputs: ["valueChange"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }, { kind: "component", type: ErrorListComponent, selector: "lib-error-list", inputs: ["errors"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
21639
22345
|
}
|
|
21640
22346
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ApiValueAccessRulesComponent, decorators: [{
|
|
21641
22347
|
type: Component,
|
|
@@ -22220,7 +22926,7 @@ class ValidationExpressioCreatorComponent {
|
|
|
22220
22926
|
}
|
|
22221
22927
|
}
|
|
22222
22928
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ValidationExpressioCreatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22223
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ValidationExpressioCreatorComponent, isStandalone: true, selector: "lib-validation-expressio-creator", inputs: { hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, expression: { classPropertyName: "expression", publicName: "expression", isSignal: true, isRequired: false, transformFunction: null }, valueAccessRules: { classPropertyName: "valueAccessRules", publicName: "valueAccessRules", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expressionChange: "expressionChange" }, host: { classAttribute: "lib-validation-expressio-creator" }, viewQueries: [{ propertyName: "textareaElementRef", first: true, predicate: ["textarea"], descendants: true, isSignal: true }], ngImport: i0, template: "<section class=\"lib-vec\">\n <div class=\"lib-vec__head\">\n <div class=\"lib-vec__heading\">\n <span class=\"lib-vec__f-label\">Condition expression</span>\n <p class=\"lib-vec__sub-hint\">{{ hint() }}</p>\n </div>\n\n @if (mode() === 'advanced') {\n <button type=\"button\" class=\"lib-vec__link\" [disabled]=\"!canUseGuided()\"\n [matTooltip]=\"canUseGuided() ? 'Build this with guided rows' : 'This expression is too advanced for the guided builder'\"\n (click)=\"useGuided()\">\n <mat-icon>view_module</mat-icon> Guided\n </button>\n } @else {\n <button type=\"button\" class=\"lib-vec__link\" matTooltip=\"Type the expression yourself\"\n (click)=\"useAdvanced()\">\n <mat-icon>code</mat-icon> Advanced\n </button>\n }\n </div>\n\n @if (mode() === 'guided') {\n @if (fieldOptions().length === 0) {\n <p class=\"lib-vec__sub-hint\">\n No fields available yet \u2014 switch to Advanced to type an expression.\n </p>\n } @else if (group().conditions.length === 0) {\n <p class=\"lib-vec__sub-hint lib-vec__sub-hint--lead\">\n <mat-icon class=\"lib-vec__lead-icon\">lightbulb</mat-icon>\n <span>Add a check below \u2014 this passes when it\u2019s true.</span>\n </p>\n } @else if (group().conditions.length > 1) {\n <div class=\"lib-vec__match\">\n <span class=\"lib-vec__muted\">Match</span>\n <mat-button-toggle-group class=\"lib-vec__seg\" [value]=\"group().connector\"\n hideSingleSelectionIndicator (change)=\"setConnector($event.value)\"\n aria-label=\"Combine conditions\">\n <mat-button-toggle value=\"&&\">All</mat-button-toggle>\n <mat-button-toggle value=\"||\">Any</mat-button-toggle>\n </mat-button-toggle-group>\n <span class=\"lib-vec__muted\">of the checks</span>\n </div>\n }\n\n @for (cond of group().conditions; track $index; let first = $first) {\n @if (!first) {\n <div class=\"lib-vec__connector\" aria-hidden=\"true\">\n <span>{{ group().connector === '&&' ? 'AND' : 'OR' }}</span>\n </div>\n }\n <div class=\"lib-vec__cond\" [class.lib-vec__cond--incomplete]=\"!cond.field || !cond.value\">\n <div class=\"lib-vec__cond-row\">\n <select class=\"lib-vec__control lib-vec__control--field\"\n [class.lib-vec__control--invalid]=\"!cond.field\"\n (change)=\"updateCondition($index, { field: inputValue($event) })\">\n <option value=\"\" disabled [selected]=\"!cond.field\">Choose a field</option>\n @for (group of fieldOptionGroups(); track $index) {\n @if (group.label) {\n <optgroup [label]=\"group.label\">\n @for (f of group.options; track $index) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.field\">\n {{ f.label }}\n </option>\n }\n </optgroup>\n } @else {\n @for (f of group.options; track $index) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.field\">\n {{ f.label }}\n </option>\n }\n }\n }\n </select>\n <button type=\"button\" class=\"lib-vec__icon-btn\"\n (click)=\"removeCondition($index)\" matTooltip=\"Remove check\" aria-label=\"Remove check\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <div class=\"lib-vec__cond-row lib-vec__cond-row--ops\">\n <select class=\"lib-vec__control\"\n (change)=\"updateCondition($index, { operator: inputValue($event) })\">\n @for (op of operators; track op.value) {\n <option [value]=\"op.value\" [selected]=\"op.value === cond.operator\">\n {{ op.label }}\n </option>\n }\n </select>\n\n @if (cond.compareTo === 'field') {\n <select class=\"lib-vec__control\"\n [class.lib-vec__control--invalid]=\"!cond.value\"\n (change)=\"updateCondition($index, { value: inputValue($event) })\">\n <option value=\"\" disabled [selected]=\"!cond.value\">Choose a field</option>\n @for (group of fieldOptionGroups(); track $index) {\n @if (group.label) {\n <optgroup [label]=\"group.label\">\n @for (f of group.options; track $index) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.value\">\n {{ f.label }}\n </option>\n }\n </optgroup>\n } @else {\n @for (f of group.options; track $index) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.value\">\n {{ f.label }}\n </option>\n }\n }\n }\n </select>\n } @else {\n <input class=\"lib-vec__control\"\n [class.lib-vec__control--invalid]=\"!cond.value\"\n [value]=\"cond.value\"\n (input)=\"updateCondition($index, { value: inputValue($event) })\"\n [placeholder]=\"'a value'\" />\n }\n\n <button type=\"button\" class=\"lib-vec__icon-btn\"\n [class.lib-vec__icon-btn--on]=\"cond.compareTo === 'field'\"\n (click)=\"toggleCompareTo($index)\"\n [attr.aria-label]=\"cond.compareTo === 'field' ? 'Compare to a typed value' : 'Compare to another field'\"\n [matTooltip]=\"cond.compareTo === 'field' ? 'Comparing to a field \u2014 switch to a typed value' : 'Compare to another field instead'\">\n <mat-icon>{{ cond.compareTo === 'field' ? 'link' : 'link_off' }}</mat-icon>\n </button>\n </div>\n </div>\n }\n\n <div class=\"lib-vec__foot\">\n <button type=\"button\" class=\"lib-vec__link\" [disabled]=\"fieldOptions().length === 0\"\n (click)=\"addCondition()\">\n <mat-icon>add</mat-icon> Add check\n </button>\n\n @if (expressionText()) {\n <span class=\"lib-vec__valid\" matTooltip=\"Generated expression: {{ expressionText() }}\">\n <mat-icon>check_circle</mat-icon> Ready\n </span>\n }\n </div>\n } @else {\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" style=\"width: 100%;\"\n floatLabel=\"always\" id=\"validationExpressionCreator\">\n <mat-label>Expression</mat-label>\n <textarea [formControl]=\"expressionControl\" matInput #textarea (focus)=\"onFocus()\"\n class=\"lib-vec__mono\"\n placeholder=\"Enter a validation string for the function\"></textarea>\n\n <mat-hint\n [style.color]=\"expressionControl.invalid && !showSuggestions() ? 'var(--mat-form-field-error-text-color, var(--mat-sys-error))' : ''\">\n @if (expressionControl.invalid && errorMessage !== null && !showSuggestions()) {\n {{ errorMessage }}\n } @else {\n {{ showSuggestions() ? 'Click a suggestion to apply it' : 'Enter a filter condition. Type $ for options' }}\n @if (showSuggestions()) {\n <section class=\"showSuggestionContainer\">\n <mat-divider></mat-divider>\n <div style=\"padding: 0px;margin-top:8px\" class=\"\">\n <div class=\"suggestion-container\">\n <div class=\"suggestion-column\">\n <div class=\"suggestion-heading\">\n Logical Operators\n </div>\n <div class=\"button-container\">\n @for (method of getMethods() | searchList:optionsSearch(); track method.value) {\n <button matTooltipPosition=\"left\" [matTooltip]=\"method.hint\" color=\"primary\" mat-button\n (click)=\"selectSuggestionInput(method.value)\" class=\"suggestion-button\">\n {{ method.label | titlecase }}\n </button>\n }\n </div>\n </div>\n <div class=\"suggestion-column\">\n <div class=\"suggestion-heading\">\n Add Input as a Variable\n </div>\n <div class=\"button-container\">\n @for (inp of allInputs() | searchList:optionsSearch(); track inp.formControlName) {\n <button mat-button matTooltipPosition=\"right\"\n [matTooltip]=\"'Add Variable - ' + inp.label\"\n (click)=\"selectSuggestionInput(inp.formControlName)\" class=\"suggestion-button\">\n {{ inp.label | titlecase }}\n </button>\n }\n </div>\n </div>\n </div>\n </div>\n </section>\n }\n }\n </mat-hint>\n </mat-form-field>\n }\n</section>\n\n@if (valueAccessOptions().length > 0) {\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" style=\"width: 100%;margin-top:12px\"\n floatLabel=\"always\" id=\"Value access options\">\n <mat-label>\n Form Fields for expression\n </mat-label>\n <mat-chip-grid #chipGrid aria-label=\"value access options\">\n @for (variable of valueAccessOptions(); track variable) {\n <mat-chip-option\n [selected]=\"variableInEdit() === variable\"\n (click)=\"toggleVariableInEdit(variable)\"\n [aria-description]=\"'press enter to edit ' + variable\">\n {{ variable }}\n </mat-chip-option>\n }\n <input placeholder=\"\" style=\"display: none;\" [matChipInputFor]=\"chipGrid\" />\n </mat-chip-grid>\n @if (variableInEdit(); as activeVariable) {\n <lib-api-value-access-rules\n [value]=\"getValueAccessRule(activeVariable)\"\n [errors]=\"[]\"\n [formInputs]=\"formInputs() || []\"\n [mapToData]=\"data()\"\n (valueChanged)=\"activeVariableChanged($event)\">\n </lib-api-value-access-rules>\n }\n <mat-hint>\n Click a field to define how to process its value. You can filter a list, count its items, or access specific\n data within a complex object.\n </mat-hint>\n </mat-form-field>\n}\n", styles: [".lib-vec{display:flex;flex-direction:column;gap:.625rem}.lib-vec__head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.lib-vec__heading{display:flex;flex-direction:column;gap:.125rem;min-width:0}.lib-vec__f-label{font-size:.625rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-vec__sub-hint{margin:0;font-size:.75rem;line-height:1.4;color:var(--lib-forms-on-surface-variant)}.lib-vec__sub-hint--lead{display:flex;align-items:center;gap:.375rem;padding:.4375rem .625rem;background:var(--lib-forms-surface-container-lowest);border:1px dashed var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm, 8px)}.lib-vec__lead-icon{flex:none;font-size:1rem;width:1rem;height:1rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-vec__match{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.lib-vec__muted{font-size:.75rem;color:var(--lib-forms-on-surface-variant)}.lib-vec__seg{--mat-standard-button-toggle-height: 28px;height:28px}.lib-vec__connector{display:flex;justify-content:center;margin:-.1875rem 0}.lib-vec__connector span{padding:.0625rem .5rem;font-size:.5625rem;font-weight:600;letter-spacing:.1em;color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container-high);border-radius:var(--lib-forms-radius-pill, 999px)}.lib-vec__cond{display:flex;flex-direction:column;gap:.375rem;padding:.5rem .5rem .5625rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md, 12px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-vec__cond:hover{border-color:var(--lib-forms-outline)}.lib-vec__cond--incomplete{border-color:var(--sem-warning, var(--lib-forms-outline-variant))}.lib-vec__cond-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.375rem;min-width:0}.lib-vec__cond-row--ops{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.lib-vec__control{box-sizing:border-box;width:100%;min-width:0;height:2rem;padding:.3125rem .5rem;font-family:inherit;font-size:.8125rem;line-height:1.2;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm, 8px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-vec__control--field{font-weight:500}select.lib-vec__control{cursor:pointer}.lib-vec__control:hover{border-color:var(--lib-forms-outline)}.lib-vec__control:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 1px var(--lib-forms-primary)}.lib-vec__control--invalid:not(:focus){border-color:var(--sem-warning, var(--lib-forms-outline));background:var(--sem-warning-surface, var(--lib-forms-surface-container-lowest))}.lib-vec__icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.875rem;height:1.875rem;padding:0;color:var(--lib-forms-on-surface-variant);background:transparent;border:1px solid transparent;border-radius:var(--lib-forms-radius-sm, 8px);cursor:pointer;transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-vec__icon-btn:hover{color:var(--lib-forms-primary);background:var(--lib-forms-primary-container)}.lib-vec__icon-btn--on{color:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-vec__icon-btn mat-icon{font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-vec__link{display:inline-flex;align-items:center;gap:.25rem;height:1.75rem;padding:0 .5rem;font:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-primary);background:transparent;border:0;border-radius:var(--lib-forms-radius-sm, 8px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-vec__head .lib-vec__link{flex:none}.lib-vec__link:hover:not(:disabled){background:var(--lib-forms-primary-container)}.lib-vec__link:disabled{color:var(--lib-forms-on-surface-variant);cursor:default;opacity:.6}.lib-vec__link mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-vec__foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.lib-vec__valid{display:inline-flex;align-items:center;gap:.25rem;font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--sem-success, var(--lib-forms-primary));cursor:default}.lib-vec__valid mat-icon{font-size:.9375rem;width:.9375rem;height:.9375rem}.lib-vec__mono{font-family:var(--lib-forms-font-mono, monospace)}:host ::ng-deep .mat-mdc-form-field-hint-wrapper{min-width:0}:host ::ng-deep .mat-mdc-form-field-hint{min-width:0;width:100%}.showSuggestionContainer{display:block;box-sizing:border-box;width:100%;max-width:100%;overflow:hidden}.suggestion-container{display:flex;flex-wrap:wrap;box-sizing:border-box;width:100%;gap:24px;max-height:220px;overflow-x:hidden;overflow-y:auto}.suggestion-column{flex:1 1 150px;min-width:0}.suggestion-heading{margin-bottom:12px;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;opacity:.7}.button-container{display:flex;flex-wrap:wrap;gap:4px}.suggestion-button{height:auto;min-width:0;max-width:100%;text-align:left;font-size:11px;line-height:normal;padding:4px 8px;border-radius:4px;overflow:hidden}.suggestion-button ::ng-deep .mdc-button__label{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.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: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i3$4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3$4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4$3.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i4$3.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled", "readonly", "matChipInputDisabledInteractive"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "component", type: i4$3.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { 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: ApiValueAccessRulesComponent, selector: "lib-api-value-access-rules", inputs: ["disabled", "multipleBind", "errors", "value", "formInputs", "mapToData", "postmanCollectionConfig"], outputs: ["valueChanged", "reload"] }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: SearchListPipe, name: "searchList" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22929
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ValidationExpressioCreatorComponent, isStandalone: true, selector: "lib-validation-expressio-creator", inputs: { hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, expression: { classPropertyName: "expression", publicName: "expression", isSignal: true, isRequired: false, transformFunction: null }, valueAccessRules: { classPropertyName: "valueAccessRules", publicName: "valueAccessRules", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expressionChange: "expressionChange" }, host: { classAttribute: "lib-validation-expressio-creator" }, viewQueries: [{ propertyName: "textareaElementRef", first: true, predicate: ["textarea"], descendants: true, isSignal: true }], ngImport: i0, template: "<section class=\"lib-vec\">\n <div class=\"lib-vec__head\">\n <div class=\"lib-vec__heading\">\n <span class=\"lib-vec__f-label\">Condition expression</span>\n <p class=\"lib-vec__sub-hint\">{{ hint() }}</p>\n </div>\n\n @if (mode() === 'advanced') {\n <button type=\"button\" class=\"lib-vec__link\" [disabled]=\"!canUseGuided()\"\n [matTooltip]=\"canUseGuided() ? 'Build this with guided rows' : 'This expression is too advanced for the guided builder'\"\n (click)=\"useGuided()\">\n <mat-icon>view_module</mat-icon> Guided\n </button>\n } @else {\n <button type=\"button\" class=\"lib-vec__link\" matTooltip=\"Type the expression yourself\"\n (click)=\"useAdvanced()\">\n <mat-icon>code</mat-icon> Advanced\n </button>\n }\n </div>\n\n @if (mode() === 'guided') {\n @if (fieldOptions().length === 0) {\n <p class=\"lib-vec__sub-hint\">\n No fields available yet \u2014 switch to Advanced to type an expression.\n </p>\n } @else if (group().conditions.length === 0) {\n <p class=\"lib-vec__sub-hint lib-vec__sub-hint--lead\">\n <mat-icon class=\"lib-vec__lead-icon\">lightbulb</mat-icon>\n <span>Add a check below \u2014 this passes when it\u2019s true.</span>\n </p>\n } @else if (group().conditions.length > 1) {\n <div class=\"lib-vec__match\">\n <span class=\"lib-vec__muted\">Match</span>\n <mat-button-toggle-group class=\"lib-vec__seg\" [value]=\"group().connector\"\n hideSingleSelectionIndicator (change)=\"setConnector($event.value)\"\n aria-label=\"Combine conditions\">\n <mat-button-toggle value=\"&&\">All</mat-button-toggle>\n <mat-button-toggle value=\"||\">Any</mat-button-toggle>\n </mat-button-toggle-group>\n <span class=\"lib-vec__muted\">of the checks</span>\n </div>\n }\n\n @for (cond of group().conditions; track $index; let first = $first) {\n @if (!first) {\n <div class=\"lib-vec__connector\" aria-hidden=\"true\">\n <span>{{ group().connector === '&&' ? 'AND' : 'OR' }}</span>\n </div>\n }\n <div class=\"lib-vec__cond\" [class.lib-vec__cond--incomplete]=\"!cond.field || !cond.value\">\n <div class=\"lib-vec__cond-row\">\n <select class=\"lib-vec__control lib-vec__control--field\"\n [class.lib-vec__control--invalid]=\"!cond.field\"\n (change)=\"updateCondition($index, { field: inputValue($event) })\">\n <option value=\"\" disabled [selected]=\"!cond.field\">Choose a field</option>\n @for (group of fieldOptionGroups(); track $index) {\n @if (group.label) {\n <optgroup [label]=\"group.label\">\n @for (f of group.options; track $index) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.field\">\n {{ f.label }}\n </option>\n }\n </optgroup>\n } @else {\n @for (f of group.options; track $index) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.field\">\n {{ f.label }}\n </option>\n }\n }\n }\n </select>\n <button type=\"button\" class=\"lib-vec__icon-btn\"\n (click)=\"removeCondition($index)\" matTooltip=\"Remove check\" aria-label=\"Remove check\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <div class=\"lib-vec__cond-row lib-vec__cond-row--ops\">\n <select class=\"lib-vec__control\"\n (change)=\"updateCondition($index, { operator: inputValue($event) })\">\n @for (op of operators; track op.value) {\n <option [value]=\"op.value\" [selected]=\"op.value === cond.operator\">\n {{ op.label }}\n </option>\n }\n </select>\n\n @if (cond.compareTo === 'field') {\n <select class=\"lib-vec__control\"\n [class.lib-vec__control--invalid]=\"!cond.value\"\n (change)=\"updateCondition($index, { value: inputValue($event) })\">\n <option value=\"\" disabled [selected]=\"!cond.value\">Choose a field</option>\n @for (group of fieldOptionGroups(); track $index) {\n @if (group.label) {\n <optgroup [label]=\"group.label\">\n @for (f of group.options; track $index) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.value\">\n {{ f.label }}\n </option>\n }\n </optgroup>\n } @else {\n @for (f of group.options; track $index) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.value\">\n {{ f.label }}\n </option>\n }\n }\n }\n </select>\n } @else {\n <input class=\"lib-vec__control\"\n [class.lib-vec__control--invalid]=\"!cond.value\"\n [value]=\"cond.value\"\n (input)=\"updateCondition($index, { value: inputValue($event) })\"\n [placeholder]=\"'a value'\" />\n }\n\n <button type=\"button\" class=\"lib-vec__icon-btn\"\n [class.lib-vec__icon-btn--on]=\"cond.compareTo === 'field'\"\n (click)=\"toggleCompareTo($index)\"\n [attr.aria-label]=\"cond.compareTo === 'field' ? 'Compare to a typed value' : 'Compare to another field'\"\n [matTooltip]=\"cond.compareTo === 'field' ? 'Comparing to a field \u2014 switch to a typed value' : 'Compare to another field instead'\">\n <mat-icon>{{ cond.compareTo === 'field' ? 'link' : 'link_off' }}</mat-icon>\n </button>\n </div>\n </div>\n }\n\n <div class=\"lib-vec__foot\">\n <button type=\"button\" class=\"lib-vec__link\" [disabled]=\"fieldOptions().length === 0\"\n (click)=\"addCondition()\">\n <mat-icon>add</mat-icon> Add check\n </button>\n\n @if (expressionText()) {\n <span class=\"lib-vec__valid\" matTooltip=\"Generated expression: {{ expressionText() }}\">\n <mat-icon>check_circle</mat-icon> Ready\n </span>\n }\n </div>\n } @else {\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" style=\"width: 100%;\"\n floatLabel=\"always\" id=\"validationExpressionCreator\">\n <mat-label>Expression</mat-label>\n <textarea [formControl]=\"expressionControl\" matInput #textarea (focus)=\"onFocus()\"\n class=\"lib-vec__mono\"\n placeholder=\"Enter a validation string for the function\"></textarea>\n\n <mat-hint\n [style.color]=\"expressionControl.invalid && !showSuggestions() ? 'var(--mat-form-field-error-text-color, var(--mat-sys-error))' : ''\">\n @if (expressionControl.invalid && errorMessage !== null && !showSuggestions()) {\n {{ errorMessage }}\n } @else {\n {{ showSuggestions() ? 'Click a suggestion to apply it' : 'Enter a filter condition. Type $ for options' }}\n @if (showSuggestions()) {\n <section class=\"showSuggestionContainer\">\n <mat-divider></mat-divider>\n <div style=\"padding: 0px;margin-top:8px\" class=\"\">\n <div class=\"suggestion-container\">\n <div class=\"suggestion-column\">\n <div class=\"suggestion-heading\">\n Logical Operators\n </div>\n <div class=\"button-container\">\n @for (method of getMethods() | searchList:optionsSearch(); track method.value) {\n <button matTooltipPosition=\"left\" [matTooltip]=\"method.hint\" color=\"primary\" mat-button\n (click)=\"selectSuggestionInput(method.value)\" class=\"suggestion-button\">\n {{ method.label | titlecase }}\n </button>\n }\n </div>\n </div>\n <div class=\"suggestion-column\">\n <div class=\"suggestion-heading\">\n Add Input as a Variable\n </div>\n <div class=\"button-container\">\n @for (inp of allInputs() | searchList:optionsSearch(); track inp.formControlName) {\n <button mat-button matTooltipPosition=\"right\"\n [matTooltip]=\"'Add Variable - ' + inp.label\"\n (click)=\"selectSuggestionInput(inp.formControlName)\" class=\"suggestion-button\">\n {{ inp.label | titlecase }}\n </button>\n }\n </div>\n </div>\n </div>\n </div>\n </section>\n }\n }\n </mat-hint>\n </mat-form-field>\n }\n</section>\n\n@if (valueAccessOptions().length > 0) {\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" style=\"width: 100%;margin-top:12px\"\n floatLabel=\"always\" id=\"Value access options\">\n <mat-label>\n Form Fields for expression\n </mat-label>\n <mat-chip-grid #chipGrid aria-label=\"value access options\">\n @for (variable of valueAccessOptions(); track variable) {\n <mat-chip-option\n [selected]=\"variableInEdit() === variable\"\n (click)=\"toggleVariableInEdit(variable)\"\n [aria-description]=\"'press enter to edit ' + variable\">\n {{ variable }}\n </mat-chip-option>\n }\n <input placeholder=\"\" style=\"display: none;\" [matChipInputFor]=\"chipGrid\" />\n </mat-chip-grid>\n @if (variableInEdit(); as activeVariable) {\n <lib-api-value-access-rules\n [value]=\"getValueAccessRule(activeVariable)\"\n [errors]=\"[]\"\n [formInputs]=\"formInputs() || []\"\n [mapToData]=\"data()\"\n (valueChanged)=\"activeVariableChanged($event)\">\n </lib-api-value-access-rules>\n }\n <mat-hint>\n Click a field to define how to process its value. You can filter a list, count its items, or access specific\n data within a complex object.\n </mat-hint>\n </mat-form-field>\n}\n", styles: [".lib-vec{display:flex;flex-direction:column;gap:.625rem}.lib-vec__head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.lib-vec__heading{display:flex;flex-direction:column;gap:.125rem;min-width:0}.lib-vec__f-label{font-size:.625rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-vec__sub-hint{margin:0;font-size:.75rem;line-height:1.4;color:var(--lib-forms-on-surface-variant)}.lib-vec__sub-hint--lead{display:flex;align-items:center;gap:.375rem;padding:.4375rem .625rem;background:var(--lib-forms-surface-container-lowest);border:1px dashed var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm, 8px)}.lib-vec__lead-icon{flex:none;font-size:1rem;width:1rem;height:1rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-vec__match{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.lib-vec__muted{font-size:.75rem;color:var(--lib-forms-on-surface-variant)}.lib-vec__seg{--mat-standard-button-toggle-height: 28px;height:28px}.lib-vec__connector{display:flex;justify-content:center;margin:-.1875rem 0}.lib-vec__connector span{padding:.0625rem .5rem;font-size:.5625rem;font-weight:600;letter-spacing:.1em;color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container-high);border-radius:var(--lib-forms-radius-pill, 999px)}.lib-vec__cond{display:flex;flex-direction:column;gap:.375rem;padding:.5rem .5rem .5625rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md, 12px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-vec__cond:hover{border-color:var(--lib-forms-outline)}.lib-vec__cond--incomplete{border-color:var(--sem-warning, var(--lib-forms-outline-variant))}.lib-vec__cond-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.375rem;min-width:0}.lib-vec__cond-row--ops{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.lib-vec__control{box-sizing:border-box;width:100%;min-width:0;height:2rem;padding:.3125rem .5rem;font-family:inherit;font-size:.8125rem;line-height:1.2;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm, 8px);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-vec__control--field{font-weight:500}select.lib-vec__control{cursor:pointer}.lib-vec__control:hover{border-color:var(--lib-forms-outline)}.lib-vec__control:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 1px var(--lib-forms-primary)}.lib-vec__control--invalid:not(:focus){border-color:var(--sem-warning, var(--lib-forms-outline));background:var(--sem-warning-surface, var(--lib-forms-surface-container-lowest))}.lib-vec__icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.875rem;height:1.875rem;padding:0;color:var(--lib-forms-on-surface-variant);background:transparent;border:1px solid transparent;border-radius:var(--lib-forms-radius-sm, 8px);cursor:pointer;transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-vec__icon-btn:hover{color:var(--lib-forms-primary);background:var(--lib-forms-primary-container)}.lib-vec__icon-btn--on{color:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-vec__icon-btn mat-icon{font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-vec__link{display:inline-flex;align-items:center;gap:.25rem;height:1.75rem;padding:0 .5rem;font:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-primary);background:transparent;border:0;border-radius:var(--lib-forms-radius-sm, 8px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-vec__head .lib-vec__link{flex:none}.lib-vec__link:hover:not(:disabled){background:var(--lib-forms-primary-container)}.lib-vec__link:disabled{color:var(--lib-forms-on-surface-variant);cursor:default;opacity:.6}.lib-vec__link mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-vec__foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.lib-vec__valid{display:inline-flex;align-items:center;gap:.25rem;font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--sem-success, var(--lib-forms-primary));cursor:default}.lib-vec__valid mat-icon{font-size:.9375rem;width:.9375rem;height:.9375rem}.lib-vec__mono{font-family:var(--lib-forms-font-mono, monospace)}:host ::ng-deep .mat-mdc-form-field-hint-wrapper{min-width:0}:host ::ng-deep .mat-mdc-form-field-hint{min-width:0;width:100%}.showSuggestionContainer{display:block;box-sizing:border-box;width:100%;max-width:100%;overflow:hidden}.suggestion-container{display:flex;flex-wrap:wrap;box-sizing:border-box;width:100%;gap:24px;max-height:220px;overflow-x:hidden;overflow-y:auto}.suggestion-column{flex:1 1 150px;min-width:0}.suggestion-heading{margin-bottom:12px;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;opacity:.7}.button-container{display:flex;flex-wrap:wrap;gap:4px}.suggestion-button{height:auto;min-width:0;max-width:100%;text-align:left;font-size:11px;line-height:normal;padding:4px 8px;border-radius:4px;overflow:hidden}.suggestion-button ::ng-deep .mdc-button__label{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { 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: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i3$5.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3$5.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4$3.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i4$3.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled", "readonly", "matChipInputDisabledInteractive"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "component", type: i4$3.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { 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: ApiValueAccessRulesComponent, selector: "lib-api-value-access-rules", inputs: ["disabled", "multipleBind", "errors", "value", "formInputs", "mapToData", "postmanCollectionConfig"], outputs: ["valueChanged", "reload"] }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: SearchListPipe, name: "searchList" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22224
22930
|
}
|
|
22225
22931
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ValidationExpressioCreatorComponent, decorators: [{
|
|
22226
22932
|
type: Component,
|
|
@@ -22270,7 +22976,7 @@ class DialogTemplateComponent {
|
|
|
22270
22976
|
this.dialogRef.close(true);
|
|
22271
22977
|
}
|
|
22272
22978
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DialogTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22273
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.12", type: DialogTemplateComponent, isStandalone: true, selector: "lib-dialog-template", ngImport: i0, template: "<h2 mat-dialog-title>\r\n {{data.title}}\r\n</h2>\r\n<mat-dialog-content>\r\n{{data.message}}\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions >\r\n <button \r\n color=\"warn\"\r\n mat-flat-button mat-dialog-close>\r\n {{data.noText}}\r\n </button>\r\n <span class=\"spacer\"></span>\r\n <button \r\n (click)=\"proceed()\"\r\n color=\"primary\"\r\n mat-raised-button mat-dialog-close cdkFocusInitial>\r\n {{data.yesText}}\r\n </button>\r\n</mat-dialog-actions>", styles: ["mat-dialog-content{max-width:368px}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$
|
|
22979
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.12", type: DialogTemplateComponent, isStandalone: true, selector: "lib-dialog-template", ngImport: i0, template: "<h2 mat-dialog-title>\r\n {{data.title}}\r\n</h2>\r\n<mat-dialog-content>\r\n{{data.message}}\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions >\r\n <button \r\n color=\"warn\"\r\n mat-flat-button mat-dialog-close>\r\n {{data.noText}}\r\n </button>\r\n <span class=\"spacer\"></span>\r\n <button \r\n (click)=\"proceed()\"\r\n color=\"primary\"\r\n mat-raised-button mat-dialog-close cdkFocusInitial>\r\n {{data.yesText}}\r\n </button>\r\n</mat-dialog-actions>", styles: ["mat-dialog-content{max-width:368px}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { 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: "ngmodule", type: A11yModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22274
22980
|
}
|
|
22275
22981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DialogTemplateComponent, decorators: [{
|
|
22276
22982
|
type: Component,
|
|
@@ -22359,5 +23065,5 @@ const getSignatureImage = async (inputConfig, value, secret) => {
|
|
|
22359
23065
|
* Generated bundle index. Do not edit.
|
|
22360
23066
|
*/
|
|
22361
23067
|
|
|
22362
|
-
export {
|
|
22363
|
-
//# sourceMappingURL=ngx-t-forms-ngx-t-forms-
|
|
23068
|
+
export { returnMappedPathValue as $, calculateListOveralFunctions as A, BaseCustomInput as B, readDocumentIdentifier as C, DaysAgoPipe as D, EmptyStateComponent as E, FormsStoreService as F, DOCUMENT_REPOSITORY as G, DEFAULT_DOCUMENT_PAGE_SIZE as H, DEFAULT_DOCUMENT_SORT as I, JsonEditorComponent as J, DocumentPickerConfigurationError as K, readDocumentPath as L, MscoaFormInputComponent as M, NGX_T_FORMS_CONFIG_TOKEN as N, readDocumentId as O, PREDICATE_OPERATORS as P, toDocumentReference as Q, FormatDataPipe as R, SignatureInputElementComponent as S, TDynamicDataEditComponent as T, UserFormStepperComponent as U, ValidationExpressioCreatorComponent as V, readDocumentReferences as W, writeDocumentValue as X, resolveIdentifierPath as Y, fuzzySearch as Z, _isEqual as _, assignDeepPropertyToObject as a, ACCOUNTING_BASIS as a0, getToolbarColor as a1, getToolbarBackground as a2, getToolbarIconColor as a3, FORM_ACTIONS_TOKEN as a4, FORM_CONFIG_TOKEN as a5, FORM_INPUTS_TOKEN as a6, FORM_ROUTE_SOURCE as a7, FORM_SLIDES_TOKEN as a8, FORM_SUGGESTION_REGISTRY as a9, returnDeepProperty as aA, sheetConsolodation as aB, textIconsForUserHints as aC, toSuggestionBatch as aD, validateExpressionSyntax as aE, validateObjectAgainstString as aF, withFormSuggestions as aG, withHttpPipeline as aH, withInputSecret as aI, withRouterFormId as aJ, formatData_pipe as aK, FormSuggestionRegistry as aa, FormSuggestionRegistryService as ab, FormTowerControllerService as ac, HttpPipelineRepository as ad, IMPORT_TOWER_INSTANCE_ID as ae, INPUT_SECRET_TOKEN as af, MSCOA_TREE_PROVIDER as ag, MULTIPLE_FORM_INPUT_TOKEN as ah, NgxTFormsComponent as ai, NgxTFormsService as aj, PIPELINE_REPOSITORY as ak, PipelineRepository as al, PropertyAccessError as am, TFormImportController as an, TSuggestionReviewComponent as ao, UTILS_OBJECT_TOKEN as ap, buildSuggestionSchema as aq, createFileFromBase64 as ar, formGenerator as as, getPipedValueFromDataType as at, getSampleValueForInput as au, getSectionElements as av, getUrl as aw, getValueFromValueAccessor as ax, initFormConfigToV2 as ay, provideNgxTForms as az, TDynamicDataViewComponent as b, TFormEngine as c, TourManagerService as d, getSubmissionStatusFn as e, evaluatePredicate as f, getAvatar as g, emptyCondition as h, deriveObservedInputs as i, TreeComponent as j, convertPostmanFolderItemsToTree as k, ErrorListComponent as l, NESTED_EDITOR_COMPONENT as m, safeReturnDeepProperty as n, DataTreeComponent as o, parseConditions as p, getInputErrorMessage as q, referencedTokens as r, serializeConditions as s, testAgainstItem as t, TFormInputStatusComponent as u, DialogTemplateComponent as v, FormBuilderComponent as w, FormsComponent as x, TFormInputComponent as y, getSignatureImage as z };
|
|
23069
|
+
//# sourceMappingURL=ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map
|