ngx-t-forms 2.0.36 → 2.0.37
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-VektEtrf.mjs → ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs.map → ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs → ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs.map → ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs → ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs.map → ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs → ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs.map → ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs → ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs.map → ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs → ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs.map → ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs → ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs.map → ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs → ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs.map → ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-document-picker.component-BNQ1a96s.mjs → ngx-t-forms-document-picker.component-f-hz6Vef.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-document-picker.component-BNQ1a96s.mjs.map → ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-editor-input-element.component-C12fnCTM.mjs → ngx-t-forms-editor-input-element.component-D38U94oj.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-editor-input-element.component-C12fnCTM.mjs.map → ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-editor-js-input.component-cxob42pE.mjs → ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-editor-js-input.component-cxob42pE.mjs.map → ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs → ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs.map → ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-input-selector.component-xIalL_cs.mjs → ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-xIalL_cs.mjs.map → ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-CU1d8rGd.mjs → ngx-t-forms-form-json-view.component-D9rU9vxT.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-CU1d8rGd.mjs.map → ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs → ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs.map → ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs → ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs.map → ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-geo-location.component-ChmvJCGu.mjs → ngx-t-forms-geo-location.component-CMbBSXe0.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-geo-location.component-ChmvJCGu.mjs.map → ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs → ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs.map → ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-index-D-7ZX0w7.mjs → ngx-t-forms-index-CPNvE4PP.mjs} +2 -2
- package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-pUshbxSM.mjs → ngx-t-forms-input-custom.component-uNVdF9aA.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-pUshbxSM.mjs.map → ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-input-editor.component-CxXMETLl.mjs → ngx-t-forms-input-editor.component-BWoKhlI3.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-input-editor.component-CxXMETLl.mjs.map → ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs → ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs.map → ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs → ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs.map → ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs → ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs.map → ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs → ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs.map → ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs → ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs.map → ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-ngx-t-forms-CJGAj18J.mjs → ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs} +147 -67
- package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs → ngx-t-forms-paginated-selection-table-DHwojPhn.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs.map → ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs → ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs.map → ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs → ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs.map → ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs → ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs.map → ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-required-inputs.component-ByBeNLXu.mjs → ngx-t-forms-required-inputs.component-C-E3fQu6.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-required-inputs.component-ByBeNLXu.mjs.map → ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs → ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs.map → ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-section-report.component-mUpSxbaB.mjs → ngx-t-forms-section-report.component-D6jakGa5.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-mUpSxbaB.mjs.map → ngx-t-forms-section-report.component-D6jakGa5.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-select-input-element.component-c7IgHdXA.mjs → ngx-t-forms-select-input-element.component-CwqIck0h.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map → ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs → ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs.map → ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs → ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs.map → ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs → ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map → ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-DgIVRSvF.mjs → ngx-t-forms-validators-config.component-B3K9nLxx.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-validators-config.component-DgIVRSvF.mjs.map → ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs → ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs.map → ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +1 -1
- package/types/ngx-t-forms.d.ts +11 -12
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs +0 -261
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs +0 -225
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs +0 -1011
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs +0 -136
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs +0 -253
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs +0 -419
- package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs +0 -231
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs +0 -333
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs +0 -543
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs +0 -1217
- package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs +0 -447
- package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs +0 -251
- package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs +0 -447
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs +0 -163
- package/fesm2022/ngx-t-forms-form-input-selector.component-BysF2WY-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs +0 -28
- package/fesm2022/ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs +0 -936
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs +0 -816
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs +0 -329
- package/fesm2022/ngx-t-forms-geo-location.component-DfmFok8a.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs +0 -360
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-D-7ZX0w7.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-DHloq32-.mjs +0 -2
- package/fesm2022/ngx-t-forms-index-DHloq32-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs +0 -128
- package/fesm2022/ngx-t-forms-input-custom.component-Cv6jfrPf.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs +0 -512
- package/fesm2022/ngx-t-forms-input-editor.component-BKV6ZJx9.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs +0 -132
- package/fesm2022/ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs +0 -109
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs +0 -114
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs +0 -69
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs +0 -200
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs +0 -850
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs +0 -107
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs +0 -1665
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-CJGAj18J.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs +0 -27352
- package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs +0 -1024
- package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs +0 -234
- package/fesm2022/ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs +0 -1126
- package/fesm2022/ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs +0 -545
- package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs +0 -451
- package/fesm2022/ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs +0 -625
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs +0 -248
- package/fesm2022/ngx-t-forms-section-report.component-CQR27H3a.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs +0 -408
- package/fesm2022/ngx-t-forms-select-input-element.component-CLs5UkmC.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs +0 -275
- package/fesm2022/ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs +0 -341
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs +0 -233
- package/fesm2022/ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs +0 -305
- package/fesm2022/ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs +0 -1105
- package/fesm2022/ngx-t-forms-validators-config.component-DjLB40z-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs +0 -2923
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs.map +0 -1
|
@@ -1,1105 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, inject, ElementRef, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
3
|
-
import { v4 } from 'uuid';
|
|
4
|
-
import { CalculationFunctions, InputDataTypes, InputTypes } from 'ngx-t-forms-types';
|
|
5
|
-
import * as i3$3 from '@angular/common';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
import { NgControl } from '@angular/forms';
|
|
8
|
-
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
9
|
-
import * as i3 from '@angular/material/icon';
|
|
10
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
11
|
-
import * as i4 from '@angular/material/chips';
|
|
12
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
13
|
-
import * as i3$1 from '@angular/material/card';
|
|
14
|
-
import { MatCardModule } from '@angular/material/card';
|
|
15
|
-
import * as i8 from '@angular/material/toolbar';
|
|
16
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
17
|
-
import * as i1 from '@angular/material/button';
|
|
18
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
19
|
-
import * as i3$2 from '@angular/material/button-toggle';
|
|
20
|
-
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
21
|
-
import * as i1$1 from '@angular/material/slide-toggle';
|
|
22
|
-
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
23
|
-
import * as i5 from '@angular/material/tooltip';
|
|
24
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
25
|
-
import { Subject } from 'rxjs';
|
|
26
|
-
import { P as PREDICATE_OPERATORS, r as referencedTokens, p as parseConditions, f as evaluatePredicate, h as emptyCondition, s as serializeConditions, i as deriveObservedInputs } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
|
|
27
|
-
|
|
28
|
-
function _forTrack0($index, $item) { return this.trackValidator($item); }
|
|
29
|
-
const _forTrack1 = ($index, $item) => $item.value;
|
|
30
|
-
const _forTrack2 = ($index, $item) => $item.variable;
|
|
31
|
-
function ValidatorsConfigComponent_For_13_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
-
i0.ɵɵelementStart(0, "mat-icon", 10);
|
|
33
|
-
i0.ɵɵtext(1, "check_circle");
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
} }
|
|
36
|
-
function ValidatorsConfigComponent_For_13_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
38
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
39
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_For_13_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const validator_r2 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.remove(validator_r2)); });
|
|
40
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
41
|
-
i0.ɵɵtext(2, "cancel");
|
|
42
|
-
i0.ɵɵelementEnd()();
|
|
43
|
-
} if (rf & 2) {
|
|
44
|
-
i0.ɵɵattribute("aria-label", "remove validator");
|
|
45
|
-
} }
|
|
46
|
-
function ValidatorsConfigComponent_For_13_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
48
|
-
i0.ɵɵelementStart(0, "mat-chip-option", 8);
|
|
49
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_For_13_Template_mat_chip_option_click_0_listener() { const validator_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.editV(validator_r2)); });
|
|
50
|
-
i0.ɵɵelementStart(1, "span", 9);
|
|
51
|
-
i0.ɵɵtext(2);
|
|
52
|
-
i0.ɵɵpipe(3, "titlecase");
|
|
53
|
-
i0.ɵɵelementEnd();
|
|
54
|
-
i0.ɵɵconditionalCreate(4, ValidatorsConfigComponent_For_13_Conditional_4_Template, 2, 0, "mat-icon", 10)(5, ValidatorsConfigComponent_For_13_Conditional_5_Template, 3, 1, "button", 11);
|
|
55
|
-
i0.ɵɵelementEnd();
|
|
56
|
-
} if (rf & 2) {
|
|
57
|
-
const validator_r2 = ctx.$implicit;
|
|
58
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
59
|
-
i0.ɵɵproperty("selected", ctx_r2.isEditing(validator_r2));
|
|
60
|
-
i0.ɵɵadvance(2);
|
|
61
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ctx_r2.validatorLabel(validator_r2)), " ");
|
|
62
|
-
i0.ɵɵadvance(2);
|
|
63
|
-
i0.ɵɵconditional(ctx_r2.isEditing(validator_r2) ? 4 : 5);
|
|
64
|
-
} }
|
|
65
|
-
function ValidatorsConfigComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
66
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
67
|
-
i0.ɵɵelementStart(0, "mat-chip-option", 13);
|
|
68
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_14_Template_mat_chip_option_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.addValidator()); });
|
|
69
|
-
i0.ɵɵtext(1, " Add rule ");
|
|
70
|
-
i0.ɵɵelementStart(2, "mat-icon", 10);
|
|
71
|
-
i0.ɵɵtext(3, "add");
|
|
72
|
-
i0.ɵɵelementEnd()();
|
|
73
|
-
} if (rf & 2) {
|
|
74
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
75
|
-
i0.ɵɵproperty("selectable", false)("disabled", ctx_r2.disabled);
|
|
76
|
-
} }
|
|
77
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
79
|
-
i0.ɵɵelementStart(0, "div", 19)(1, "mat-button-toggle-group", 34);
|
|
80
|
-
i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Conditional_8_Template_mat_button_toggle_group_change_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.setConnector($event.value)); });
|
|
81
|
-
i0.ɵɵelementStart(2, "mat-button-toggle", 35);
|
|
82
|
-
i0.ɵɵtext(3, "All");
|
|
83
|
-
i0.ɵɵelementEnd();
|
|
84
|
-
i0.ɵɵelementStart(4, "mat-button-toggle", 36);
|
|
85
|
-
i0.ɵɵtext(5, "Any");
|
|
86
|
-
i0.ɵɵelementEnd()();
|
|
87
|
-
i0.ɵɵelementStart(6, "span", 37);
|
|
88
|
-
i0.ɵɵtext(7, "of these match");
|
|
89
|
-
i0.ɵɵelementEnd()();
|
|
90
|
-
} if (rf & 2) {
|
|
91
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
92
|
-
i0.ɵɵadvance();
|
|
93
|
-
i0.ɵɵproperty("value", ctx_r2.group().connector);
|
|
94
|
-
} }
|
|
95
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_9_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
96
|
-
i0.ɵɵelementStart(0, "p", 39)(1, "mat-icon", 40);
|
|
97
|
-
i0.ɵɵtext(2, "error_outline");
|
|
98
|
-
i0.ɵɵelementEnd();
|
|
99
|
-
i0.ɵɵelementStart(3, "span");
|
|
100
|
-
i0.ɵɵtext(4);
|
|
101
|
-
i0.ɵɵelementEnd()();
|
|
102
|
-
} if (rf & 2) {
|
|
103
|
-
i0.ɵɵadvance(4);
|
|
104
|
-
i0.ɵɵtextInterpolate(ctx);
|
|
105
|
-
} }
|
|
106
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
107
|
-
i0.ɵɵelementStart(0, "p", 25);
|
|
108
|
-
i0.ɵɵtext(1, " True means the entry is invalid. Reference a field by its name; comparisons use ");
|
|
109
|
-
i0.ɵɵelementStart(2, "code");
|
|
110
|
-
i0.ɵɵtext(3, "===");
|
|
111
|
-
i0.ɵɵelementEnd();
|
|
112
|
-
i0.ɵɵtext(4, ", ");
|
|
113
|
-
i0.ɵɵelementStart(5, "code");
|
|
114
|
-
i0.ɵɵtext(6, ">");
|
|
115
|
-
i0.ɵɵelementEnd();
|
|
116
|
-
i0.ɵɵtext(7, ", ");
|
|
117
|
-
i0.ɵɵelementStart(8, "code");
|
|
118
|
-
i0.ɵɵtext(9, "includes");
|
|
119
|
-
i0.ɵɵelementEnd();
|
|
120
|
-
i0.ɵɵtext(10, " \u2026 ");
|
|
121
|
-
i0.ɵɵelementEnd();
|
|
122
|
-
} }
|
|
123
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
124
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
125
|
-
i0.ɵɵelementStart(0, "label", 15)(1, "span", 16);
|
|
126
|
-
i0.ɵɵtext(2, "Expression");
|
|
127
|
-
i0.ɵɵelementEnd();
|
|
128
|
-
i0.ɵɵelementStart(3, "textarea", 38);
|
|
129
|
-
i0.ɵɵlistener("input", function ValidatorsConfigComponent_Conditional_15_Conditional_9_Template_textarea_input_3_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onTextChange($event, "expression")); });
|
|
130
|
-
i0.ɵɵelementEnd()();
|
|
131
|
-
i0.ɵɵconditionalCreate(4, ValidatorsConfigComponent_Conditional_15_Conditional_9_Conditional_4_Template, 5, 1, "p", 39)(5, ValidatorsConfigComponent_Conditional_15_Conditional_9_Conditional_5_Template, 11, 0, "p", 25);
|
|
132
|
-
} if (rf & 2) {
|
|
133
|
-
let tmp_4_0;
|
|
134
|
-
const draft_r9 = i0.ɵɵnextContext();
|
|
135
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
136
|
-
i0.ɵɵadvance(3);
|
|
137
|
-
i0.ɵɵproperty("value", draft_r9.expression);
|
|
138
|
-
i0.ɵɵadvance();
|
|
139
|
-
i0.ɵɵconditional((tmp_4_0 = ctx_r2.syntaxError()) ? 4 : 5, tmp_4_0);
|
|
140
|
-
} }
|
|
141
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
142
|
-
i0.ɵɵelementStart(0, "p", 25);
|
|
143
|
-
i0.ɵɵtext(1, " No fields available yet \u2014 switch to Advanced to type an expression. ");
|
|
144
|
-
i0.ɵɵelementEnd();
|
|
145
|
-
} }
|
|
146
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
147
|
-
i0.ɵɵelementStart(0, "div", 42)(1, "span");
|
|
148
|
-
i0.ɵɵtext(2);
|
|
149
|
-
i0.ɵɵelementEnd()();
|
|
150
|
-
} if (rf & 2) {
|
|
151
|
-
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
152
|
-
i0.ɵɵadvance(2);
|
|
153
|
-
i0.ɵɵtextInterpolate(ctx_r2.group().connector === "&&" ? "AND" : "OR");
|
|
154
|
-
} }
|
|
155
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_9_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
156
|
-
i0.ɵɵelementStart(0, "option", 50);
|
|
157
|
-
i0.ɵɵtext(1);
|
|
158
|
-
i0.ɵɵelementEnd();
|
|
159
|
-
} if (rf & 2) {
|
|
160
|
-
const f_r13 = ctx.$implicit;
|
|
161
|
-
const cond_r14 = i0.ɵɵnextContext(2).$implicit;
|
|
162
|
-
i0.ɵɵproperty("value", f_r13.variable)("selected", f_r13.variable === cond_r14.field);
|
|
163
|
-
i0.ɵɵadvance();
|
|
164
|
-
i0.ɵɵtextInterpolate2(" ", f_r13.label, "", f_r13.isSelf ? " (this field)" : "", " ");
|
|
165
|
-
} }
|
|
166
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
167
|
-
i0.ɵɵelementStart(0, "optgroup", 47);
|
|
168
|
-
i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_9_For_2_Template, 2, 4, "option", 50, _forTrack2);
|
|
169
|
-
i0.ɵɵelementEnd();
|
|
170
|
-
} if (rf & 2) {
|
|
171
|
-
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
172
|
-
i0.ɵɵadvance();
|
|
173
|
-
i0.ɵɵrepeater(ctx_r2.directFields());
|
|
174
|
-
} }
|
|
175
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
176
|
-
i0.ɵɵelementStart(0, "option", 50);
|
|
177
|
-
i0.ɵɵtext(1);
|
|
178
|
-
i0.ɵɵelementEnd();
|
|
179
|
-
} if (rf & 2) {
|
|
180
|
-
const f_r15 = ctx.$implicit;
|
|
181
|
-
const cond_r14 = i0.ɵɵnextContext(2).$implicit;
|
|
182
|
-
i0.ɵɵproperty("value", f_r15.variable)("selected", f_r15.variable === cond_r14.field);
|
|
183
|
-
i0.ɵɵadvance();
|
|
184
|
-
i0.ɵɵtextInterpolate(f_r15.label);
|
|
185
|
-
} }
|
|
186
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
187
|
-
i0.ɵɵelementStart(0, "optgroup", 48);
|
|
188
|
-
i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_10_For_2_Template, 2, 3, "option", 50, _forTrack2);
|
|
189
|
-
i0.ɵɵelementEnd();
|
|
190
|
-
} if (rf & 2) {
|
|
191
|
-
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
192
|
-
i0.ɵɵadvance();
|
|
193
|
-
i0.ɵɵrepeater(ctx_r2.listFields());
|
|
194
|
-
} }
|
|
195
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_For_17_Template(rf, ctx) { if (rf & 1) {
|
|
196
|
-
i0.ɵɵelementStart(0, "option", 50);
|
|
197
|
-
i0.ɵɵtext(1);
|
|
198
|
-
i0.ɵɵelementEnd();
|
|
199
|
-
} if (rf & 2) {
|
|
200
|
-
const op_r16 = ctx.$implicit;
|
|
201
|
-
const cond_r14 = i0.ɵɵnextContext().$implicit;
|
|
202
|
-
i0.ɵɵproperty("value", op_r16.value)("selected", op_r16.value === cond_r14.operator);
|
|
203
|
-
i0.ɵɵadvance();
|
|
204
|
-
i0.ɵɵtextInterpolate(op_r16.label);
|
|
205
|
-
} }
|
|
206
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
-
i0.ɵɵelementStart(0, "option", 50);
|
|
208
|
-
i0.ɵɵtext(1);
|
|
209
|
-
i0.ɵɵelementEnd();
|
|
210
|
-
} if (rf & 2) {
|
|
211
|
-
const f_r18 = ctx.$implicit;
|
|
212
|
-
const cond_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
213
|
-
i0.ɵɵproperty("value", f_r18.variable)("selected", f_r18.variable === cond_r14.value);
|
|
214
|
-
i0.ɵɵadvance();
|
|
215
|
-
i0.ɵɵtextInterpolate2(" ", f_r18.label, "", f_r18.isSelf ? " (this field)" : "", " ");
|
|
216
|
-
} }
|
|
217
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
218
|
-
i0.ɵɵelementStart(0, "optgroup", 47);
|
|
219
|
-
i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_3_For_2_Template, 2, 4, "option", 50, _forTrack2);
|
|
220
|
-
i0.ɵɵelementEnd();
|
|
221
|
-
} if (rf & 2) {
|
|
222
|
-
const ctx_r2 = i0.ɵɵnextContext(5);
|
|
223
|
-
i0.ɵɵadvance();
|
|
224
|
-
i0.ɵɵrepeater(ctx_r2.directFields());
|
|
225
|
-
} }
|
|
226
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_4_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
227
|
-
i0.ɵɵelementStart(0, "option", 50);
|
|
228
|
-
i0.ɵɵtext(1);
|
|
229
|
-
i0.ɵɵelementEnd();
|
|
230
|
-
} if (rf & 2) {
|
|
231
|
-
const f_r19 = ctx.$implicit;
|
|
232
|
-
const cond_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
233
|
-
i0.ɵɵproperty("value", f_r19.variable)("selected", f_r19.variable === cond_r14.value);
|
|
234
|
-
i0.ɵɵadvance();
|
|
235
|
-
i0.ɵɵtextInterpolate(f_r19.label);
|
|
236
|
-
} }
|
|
237
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
-
i0.ɵɵelementStart(0, "optgroup", 48);
|
|
239
|
-
i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_4_For_2_Template, 2, 3, "option", 50, _forTrack2);
|
|
240
|
-
i0.ɵɵelementEnd();
|
|
241
|
-
} if (rf & 2) {
|
|
242
|
-
const ctx_r2 = i0.ɵɵnextContext(5);
|
|
243
|
-
i0.ɵɵadvance();
|
|
244
|
-
i0.ɵɵrepeater(ctx_r2.listFields());
|
|
245
|
-
} }
|
|
246
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
247
|
-
const _r17 = i0.ɵɵgetCurrentView();
|
|
248
|
-
i0.ɵɵelementStart(0, "select", 45);
|
|
249
|
-
i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Template_select_change_0_listener($event) { i0.ɵɵrestoreView(_r17); const $index_r12 = i0.ɵɵnextContext().$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.updateCondition($index_r12, { value: ctx_r2.inputValue($event) })); });
|
|
250
|
-
i0.ɵɵelementStart(1, "option", 46);
|
|
251
|
-
i0.ɵɵtext(2, "Choose a field");
|
|
252
|
-
i0.ɵɵelementEnd();
|
|
253
|
-
i0.ɵɵconditionalCreate(3, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_3_Template, 3, 0, "optgroup", 47);
|
|
254
|
-
i0.ɵɵconditionalCreate(4, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_4_Template, 3, 0, "optgroup", 48);
|
|
255
|
-
i0.ɵɵelementEnd();
|
|
256
|
-
} if (rf & 2) {
|
|
257
|
-
const cond_r14 = i0.ɵɵnextContext().$implicit;
|
|
258
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
259
|
-
i0.ɵɵclassProp("lib-validators-config__control--invalid", !cond_r14.value);
|
|
260
|
-
i0.ɵɵadvance();
|
|
261
|
-
i0.ɵɵproperty("selected", !cond_r14.value);
|
|
262
|
-
i0.ɵɵadvance(2);
|
|
263
|
-
i0.ɵɵconditional(ctx_r2.directFields().length ? 3 : -1);
|
|
264
|
-
i0.ɵɵadvance();
|
|
265
|
-
i0.ɵɵconditional(ctx_r2.listFields().length ? 4 : -1);
|
|
266
|
-
} }
|
|
267
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
268
|
-
const _r20 = i0.ɵɵgetCurrentView();
|
|
269
|
-
i0.ɵɵelementStart(0, "input", 56);
|
|
270
|
-
i0.ɵɵlistener("input", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_23_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r20); const $index_r12 = i0.ɵɵnextContext().$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.updateCondition($index_r12, { value: ctx_r2.inputValue($event) })); });
|
|
271
|
-
i0.ɵɵelementEnd();
|
|
272
|
-
} if (rf & 2) {
|
|
273
|
-
const cond_r14 = i0.ɵɵnextContext().$implicit;
|
|
274
|
-
i0.ɵɵclassProp("lib-validators-config__control--invalid", !cond_r14.value);
|
|
275
|
-
i0.ɵɵproperty("value", cond_r14.value);
|
|
276
|
-
} }
|
|
277
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
278
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
279
|
-
i0.ɵɵconditionalCreate(0, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_0_Template, 3, 1, "div", 42);
|
|
280
|
-
i0.ɵɵelementStart(1, "div", 43)(2, "div", 44)(3, "label", 15)(4, "span", 16);
|
|
281
|
-
i0.ɵɵtext(5, "Field");
|
|
282
|
-
i0.ɵɵelementEnd();
|
|
283
|
-
i0.ɵɵelementStart(6, "select", 45);
|
|
284
|
-
i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template_select_change_6_listener($event) { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.updateCondition($index_r12, { field: ctx_r2.inputValue($event) })); });
|
|
285
|
-
i0.ɵɵelementStart(7, "option", 46);
|
|
286
|
-
i0.ɵɵtext(8, "Choose a field");
|
|
287
|
-
i0.ɵɵelementEnd();
|
|
288
|
-
i0.ɵɵconditionalCreate(9, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_9_Template, 3, 0, "optgroup", 47);
|
|
289
|
-
i0.ɵɵconditionalCreate(10, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_10_Template, 3, 0, "optgroup", 48);
|
|
290
|
-
i0.ɵɵelementEnd()();
|
|
291
|
-
i0.ɵɵelementStart(11, "div", 49)(12, "label", 15)(13, "span", 16);
|
|
292
|
-
i0.ɵɵtext(14, "Condition");
|
|
293
|
-
i0.ɵɵelementEnd();
|
|
294
|
-
i0.ɵɵelementStart(15, "select", 45);
|
|
295
|
-
i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template_select_change_15_listener($event) { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.updateCondition($index_r12, { operator: ctx_r2.inputValue($event) })); });
|
|
296
|
-
i0.ɵɵrepeaterCreate(16, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_For_17_Template, 2, 3, "option", 50, _forTrack1);
|
|
297
|
-
i0.ɵɵelementEnd()();
|
|
298
|
-
i0.ɵɵelementStart(18, "div", 15)(19, "span", 16);
|
|
299
|
-
i0.ɵɵtext(20);
|
|
300
|
-
i0.ɵɵelementEnd();
|
|
301
|
-
i0.ɵɵelementStart(21, "div", 51);
|
|
302
|
-
i0.ɵɵconditionalCreate(22, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Template, 5, 5, "select", 52)(23, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_23_Template, 1, 3, "input", 53);
|
|
303
|
-
i0.ɵɵelementStart(24, "button", 54);
|
|
304
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template_button_click_24_listener() { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.toggleCompareTo($index_r12)); });
|
|
305
|
-
i0.ɵɵelementStart(25, "mat-icon");
|
|
306
|
-
i0.ɵɵtext(26);
|
|
307
|
-
i0.ɵɵelementEnd()()()()()();
|
|
308
|
-
i0.ɵɵelementStart(27, "button", 55);
|
|
309
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template_button_click_27_listener() { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.removeCondition($index_r12)); });
|
|
310
|
-
i0.ɵɵelementStart(28, "mat-icon");
|
|
311
|
-
i0.ɵɵtext(29, "close");
|
|
312
|
-
i0.ɵɵelementEnd()()();
|
|
313
|
-
} if (rf & 2) {
|
|
314
|
-
const cond_r14 = ctx.$implicit;
|
|
315
|
-
const ɵ$index_111_r21 = ctx.$index;
|
|
316
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
317
|
-
i0.ɵɵconditional(!(ɵ$index_111_r21 === 0) ? 0 : -1);
|
|
318
|
-
i0.ɵɵadvance(6);
|
|
319
|
-
i0.ɵɵclassProp("lib-validators-config__control--invalid", !cond_r14.field);
|
|
320
|
-
i0.ɵɵadvance();
|
|
321
|
-
i0.ɵɵproperty("selected", !cond_r14.field);
|
|
322
|
-
i0.ɵɵadvance(2);
|
|
323
|
-
i0.ɵɵconditional(ctx_r2.directFields().length ? 9 : -1);
|
|
324
|
-
i0.ɵɵadvance();
|
|
325
|
-
i0.ɵɵconditional(ctx_r2.listFields().length ? 10 : -1);
|
|
326
|
-
i0.ɵɵadvance(6);
|
|
327
|
-
i0.ɵɵrepeater(ctx_r2.operators);
|
|
328
|
-
i0.ɵɵadvance(4);
|
|
329
|
-
i0.ɵɵtextInterpolate1(" ", cond_r14.compareTo === "field" ? "Other field" : "Value", " ");
|
|
330
|
-
i0.ɵɵadvance(2);
|
|
331
|
-
i0.ɵɵconditional(cond_r14.compareTo === "field" ? 22 : 23);
|
|
332
|
-
i0.ɵɵadvance(2);
|
|
333
|
-
i0.ɵɵproperty("matTooltip", cond_r14.compareTo === "field" ? "Compare to a typed value" : "Compare to another field");
|
|
334
|
-
i0.ɵɵattribute("aria-label", cond_r14.compareTo === "field" ? "Compare to a typed value" : "Compare to another field");
|
|
335
|
-
i0.ɵɵadvance(2);
|
|
336
|
-
i0.ɵɵtextInterpolate(cond_r14.compareTo === "field" ? "edit" : "link");
|
|
337
|
-
} }
|
|
338
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
339
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
340
|
-
i0.ɵɵconditionalCreate(0, ValidatorsConfigComponent_Conditional_15_Conditional_10_Conditional_0_Template, 2, 0, "p", 25);
|
|
341
|
-
i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template, 30, 11, null, null, i0.ɵɵrepeaterTrackByIndex);
|
|
342
|
-
i0.ɵɵelementStart(3, "button", 41);
|
|
343
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.addCondition()); });
|
|
344
|
-
i0.ɵɵelementStart(4, "mat-icon");
|
|
345
|
-
i0.ɵɵtext(5, "add");
|
|
346
|
-
i0.ɵɵelementEnd();
|
|
347
|
-
i0.ɵɵtext(6, " Add condition ");
|
|
348
|
-
i0.ɵɵelementEnd();
|
|
349
|
-
} if (rf & 2) {
|
|
350
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
351
|
-
i0.ɵɵconditional(ctx_r2.fieldOptions().length === 0 ? 0 : -1);
|
|
352
|
-
i0.ɵɵadvance();
|
|
353
|
-
i0.ɵɵrepeater(ctx_r2.group().conditions);
|
|
354
|
-
} }
|
|
355
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
356
|
-
i0.ɵɵelementStart(0, "span", 60);
|
|
357
|
-
i0.ɵɵtext(1, "optional");
|
|
358
|
-
i0.ɵɵelementEnd();
|
|
359
|
-
} }
|
|
360
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
361
|
-
const _r22 = i0.ɵɵgetCurrentView();
|
|
362
|
-
i0.ɵɵelementStart(0, "button", 63);
|
|
363
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_For_6_Template_button_click_0_listener() { const agg_r23 = i0.ɵɵrestoreView(_r22).$implicit; const f_r24 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.setFunction(f_r24.variable, agg_r23.value)); });
|
|
364
|
-
i0.ɵɵtext(1);
|
|
365
|
-
i0.ɵɵelementEnd();
|
|
366
|
-
} if (rf & 2) {
|
|
367
|
-
const agg_r23 = ctx.$implicit;
|
|
368
|
-
const f_r24 = i0.ɵɵnextContext().$implicit;
|
|
369
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
370
|
-
i0.ɵɵclassProp("lib-validators-config__agg-chip--on", ctx_r2.currentFunction(f_r24.variable) === agg_r23.value);
|
|
371
|
-
i0.ɵɵadvance();
|
|
372
|
-
i0.ɵɵtextInterpolate1(" ", agg_r23.label, " ");
|
|
373
|
-
} }
|
|
374
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
375
|
-
i0.ɵɵelementStart(0, "div", 58)(1, "span", 59);
|
|
376
|
-
i0.ɵɵtext(2);
|
|
377
|
-
i0.ɵɵconditionalCreate(3, ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_Conditional_3_Template, 2, 0, "span", 60);
|
|
378
|
-
i0.ɵɵelementEnd();
|
|
379
|
-
i0.ɵɵelementStart(4, "div", 61);
|
|
380
|
-
i0.ɵɵrepeaterCreate(5, ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_For_6_Template, 2, 3, "button", 62, _forTrack1);
|
|
381
|
-
i0.ɵɵelementEnd()();
|
|
382
|
-
} if (rf & 2) {
|
|
383
|
-
const f_r24 = ctx.$implicit;
|
|
384
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
385
|
-
i0.ɵɵclassProp("lib-validators-config__list-row--unset", ctx_r2.isAggregateRequired(f_r24.variable) && !ctx_r2.currentFunction(f_r24.variable));
|
|
386
|
-
i0.ɵɵadvance(2);
|
|
387
|
-
i0.ɵɵtextInterpolate1(" ", f_r24.label, " ");
|
|
388
|
-
i0.ɵɵadvance();
|
|
389
|
-
i0.ɵɵconditional(!ctx_r2.isAggregateRequired(f_r24.variable) ? 3 : -1);
|
|
390
|
-
i0.ɵɵadvance();
|
|
391
|
-
i0.ɵɵattribute("aria-label", "Combine " + f_r24.label);
|
|
392
|
-
i0.ɵɵadvance();
|
|
393
|
-
i0.ɵɵrepeater(ctx_r2.aggregatesFor(f_r24));
|
|
394
|
-
} }
|
|
395
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
396
|
-
i0.ɵɵelementStart(0, "div", 20)(1, "span", 16);
|
|
397
|
-
i0.ɵɵtext(2, "Combine each list");
|
|
398
|
-
i0.ɵɵelementEnd();
|
|
399
|
-
i0.ɵɵelementStart(3, "p", 25);
|
|
400
|
-
i0.ɵɵtext(4, " A list field has many rows. Choose how to reduce it to one value when comparing against a single field or value \u2014 optional when comparing two lists. ");
|
|
401
|
-
i0.ɵɵelementEnd();
|
|
402
|
-
i0.ɵɵrepeaterCreate(5, ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_Template, 7, 5, "div", 57, _forTrack2);
|
|
403
|
-
i0.ɵɵelementEnd();
|
|
404
|
-
} if (rf & 2) {
|
|
405
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
406
|
-
i0.ɵɵadvance(5);
|
|
407
|
-
i0.ɵɵrepeater(ctx_r2.referencedListFields());
|
|
408
|
-
} }
|
|
409
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
410
|
-
i0.ɵɵelementStart(0, "div", 21)(1, "span", 16);
|
|
411
|
-
i0.ɵɵtext(2, "Generated");
|
|
412
|
-
i0.ɵɵelementEnd();
|
|
413
|
-
i0.ɵɵelementStart(3, "code");
|
|
414
|
-
i0.ɵɵtext(4);
|
|
415
|
-
i0.ɵɵelementEnd()();
|
|
416
|
-
} if (rf & 2) {
|
|
417
|
-
const draft_r9 = i0.ɵɵnextContext();
|
|
418
|
-
i0.ɵɵadvance(4);
|
|
419
|
-
i0.ɵɵtextInterpolate(draft_r9.expression);
|
|
420
|
-
} }
|
|
421
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
422
|
-
i0.ɵɵtext(0, " Shown as a warning \u2014 the form can still be submitted. ");
|
|
423
|
-
} }
|
|
424
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
425
|
-
i0.ɵɵtext(0, " Blocks submission until the entry is fixed. ");
|
|
426
|
-
} }
|
|
427
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
428
|
-
const _r25 = i0.ɵɵgetCurrentView();
|
|
429
|
-
i0.ɵɵelementStart(0, "button", 64);
|
|
430
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_21_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.useGuided()); });
|
|
431
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
432
|
-
i0.ɵɵtext(2, "view_module");
|
|
433
|
-
i0.ɵɵelementEnd();
|
|
434
|
-
i0.ɵɵtext(3, " Guided ");
|
|
435
|
-
i0.ɵɵelementEnd();
|
|
436
|
-
} if (rf & 2) {
|
|
437
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
438
|
-
i0.ɵɵproperty("disabled", !ctx_r2.canUseGuided())("matTooltip", ctx_r2.canUseGuided() ? "" : "This expression is too advanced for the guided builder");
|
|
439
|
-
} }
|
|
440
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
441
|
-
const _r26 = i0.ɵɵgetCurrentView();
|
|
442
|
-
i0.ɵɵelementStart(0, "button", 41);
|
|
443
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_22_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.useRaw()); });
|
|
444
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
445
|
-
i0.ɵɵtext(2, "code");
|
|
446
|
-
i0.ɵɵelementEnd();
|
|
447
|
-
i0.ɵɵtext(3, " Advanced ");
|
|
448
|
-
i0.ɵɵelementEnd();
|
|
449
|
-
} }
|
|
450
|
-
function ValidatorsConfigComponent_Conditional_15_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
451
|
-
i0.ɵɵelementStart(0, "p", 29)(1, "mat-icon", 65);
|
|
452
|
-
i0.ɵɵtext(2, "info");
|
|
453
|
-
i0.ɵɵelementEnd();
|
|
454
|
-
i0.ɵɵelementStart(3, "span");
|
|
455
|
-
i0.ɵɵtext(4);
|
|
456
|
-
i0.ɵɵelementEnd()();
|
|
457
|
-
} if (rf & 2) {
|
|
458
|
-
i0.ɵɵadvance(4);
|
|
459
|
-
i0.ɵɵtextInterpolate(ctx);
|
|
460
|
-
} }
|
|
461
|
-
function ValidatorsConfigComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
462
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
463
|
-
i0.ɵɵelementStart(0, "mat-card", 14);
|
|
464
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Template_mat_card_click_0_listener($event) { return $event.stopPropagation(); });
|
|
465
|
-
i0.ɵɵelementStart(1, "label", 15)(2, "span", 16);
|
|
466
|
-
i0.ɵɵtext(3, "Error message");
|
|
467
|
-
i0.ɵɵelementEnd();
|
|
468
|
-
i0.ɵɵelementStart(4, "textarea", 17);
|
|
469
|
-
i0.ɵɵlistener("input", function ValidatorsConfigComponent_Conditional_15_Template_textarea_input_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onTextChange($event, "message")); });
|
|
470
|
-
i0.ɵɵelementEnd()();
|
|
471
|
-
i0.ɵɵelementStart(5, "div", 18)(6, "span", 16);
|
|
472
|
-
i0.ɵɵtext(7, "Show this error when");
|
|
473
|
-
i0.ɵɵelementEnd();
|
|
474
|
-
i0.ɵɵconditionalCreate(8, ValidatorsConfigComponent_Conditional_15_Conditional_8_Template, 8, 1, "div", 19);
|
|
475
|
-
i0.ɵɵelementEnd();
|
|
476
|
-
i0.ɵɵconditionalCreate(9, ValidatorsConfigComponent_Conditional_15_Conditional_9_Template, 6, 2)(10, ValidatorsConfigComponent_Conditional_15_Conditional_10_Template, 7, 1);
|
|
477
|
-
i0.ɵɵconditionalCreate(11, ValidatorsConfigComponent_Conditional_15_Conditional_11_Template, 7, 0, "div", 20);
|
|
478
|
-
i0.ɵɵconditionalCreate(12, ValidatorsConfigComponent_Conditional_15_Conditional_12_Template, 5, 1, "div", 21);
|
|
479
|
-
i0.ɵɵelementStart(13, "div", 22)(14, "mat-slide-toggle", 23);
|
|
480
|
-
i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Template_mat_slide_toggle_change_14_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.setCanOverride($event.checked)); });
|
|
481
|
-
i0.ɵɵelementStart(15, "span", 24);
|
|
482
|
-
i0.ɵɵtext(16, "Users can override this rule");
|
|
483
|
-
i0.ɵɵelementEnd()();
|
|
484
|
-
i0.ɵɵelementStart(17, "span", 25);
|
|
485
|
-
i0.ɵɵconditionalCreate(18, ValidatorsConfigComponent_Conditional_15_Conditional_18_Template, 1, 0)(19, ValidatorsConfigComponent_Conditional_15_Conditional_19_Template, 1, 0);
|
|
486
|
-
i0.ɵɵelementEnd()();
|
|
487
|
-
i0.ɵɵelementStart(20, "div", 26);
|
|
488
|
-
i0.ɵɵconditionalCreate(21, ValidatorsConfigComponent_Conditional_15_Conditional_21_Template, 4, 2, "button", 27)(22, ValidatorsConfigComponent_Conditional_15_Conditional_22_Template, 4, 0, "button", 28);
|
|
489
|
-
i0.ɵɵelementEnd();
|
|
490
|
-
i0.ɵɵconditionalCreate(23, ValidatorsConfigComponent_Conditional_15_Conditional_23_Template, 5, 1, "p", 29);
|
|
491
|
-
i0.ɵɵelementStart(24, "mat-toolbar", 30);
|
|
492
|
-
i0.ɵɵelement(25, "span", 31);
|
|
493
|
-
i0.ɵɵelementStart(26, "button", 32);
|
|
494
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.closeEditor()); });
|
|
495
|
-
i0.ɵɵtext(27, "Close");
|
|
496
|
-
i0.ɵɵelementEnd();
|
|
497
|
-
i0.ɵɵelementStart(28, "button", 33);
|
|
498
|
-
i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Template_button_click_28_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.saveVariable()); });
|
|
499
|
-
i0.ɵɵtext(29, " Save rule ");
|
|
500
|
-
i0.ɵɵelementEnd()()();
|
|
501
|
-
} if (rf & 2) {
|
|
502
|
-
let tmp_10_0;
|
|
503
|
-
const draft_r9 = ctx;
|
|
504
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
505
|
-
i0.ɵɵadvance(4);
|
|
506
|
-
i0.ɵɵproperty("value", draft_r9.message);
|
|
507
|
-
i0.ɵɵadvance(4);
|
|
508
|
-
i0.ɵɵconditional(!ctx_r2.raw() && ctx_r2.group().conditions.length > 1 ? 8 : -1);
|
|
509
|
-
i0.ɵɵadvance();
|
|
510
|
-
i0.ɵɵconditional(ctx_r2.raw() ? 9 : 10);
|
|
511
|
-
i0.ɵɵadvance(2);
|
|
512
|
-
i0.ɵɵconditional(ctx_r2.referencedListFields().length ? 11 : -1);
|
|
513
|
-
i0.ɵɵadvance();
|
|
514
|
-
i0.ɵɵconditional(draft_r9.expression ? 12 : -1);
|
|
515
|
-
i0.ɵɵadvance(2);
|
|
516
|
-
i0.ɵɵproperty("checked", draft_r9.canOverride);
|
|
517
|
-
i0.ɵɵadvance(4);
|
|
518
|
-
i0.ɵɵconditional(draft_r9.canOverride ? 18 : 19);
|
|
519
|
-
i0.ɵɵadvance(3);
|
|
520
|
-
i0.ɵɵconditional(ctx_r2.raw() ? 21 : 22);
|
|
521
|
-
i0.ɵɵadvance(2);
|
|
522
|
-
i0.ɵɵconditional((tmp_10_0 = ctx_r2.saveHint()) ? 23 : -1, tmp_10_0);
|
|
523
|
-
i0.ɵɵadvance(5);
|
|
524
|
-
i0.ɵɵproperty("disabled", !ctx_r2.canSave());
|
|
525
|
-
} }
|
|
526
|
-
/**
|
|
527
|
-
* Internal editor implementing `MatFormFieldControl<FormControlCustomValidatorsInterface[]>`
|
|
528
|
-
* for authoring a form input's custom validators.
|
|
529
|
-
*
|
|
530
|
-
* Rendered by `t-dynamic-data-edit` inside its `<mat-form-field>`, which supplies
|
|
531
|
-
* the surrounding field label, hint, and validation errors — so this component
|
|
532
|
-
* owns only the validator chip list and the inline draft editor.
|
|
533
|
-
*
|
|
534
|
-
* ### Authoring model
|
|
535
|
-
* A validator's `expression` is evaluated by the shared predicate DSL where
|
|
536
|
-
* **`true` means the field is invalid** (the error message is then shown). The
|
|
537
|
-
* editor captures that condition through a **guided builder** — `field operator
|
|
538
|
-
* value` rows joined by All/Any — that serialises to the expression string and
|
|
539
|
-
* auto-derives `inputsObservedForChanges` from the fields it references. An
|
|
540
|
-
* **Advanced** raw editor is the escape hatch for expressions the builder cannot
|
|
541
|
-
* represent (grouping, mixed connectors, negation); these round-trip unchanged.
|
|
542
|
-
*
|
|
543
|
-
* The bound `value` may contain both string entries (legacy validator-name
|
|
544
|
-
* references such as `'required'`, which are read-only) and object entries
|
|
545
|
-
* ({@link FormControlCustomValidatorsInterface}, which are editable). Only object
|
|
546
|
-
* entries open the draft editor.
|
|
547
|
-
*
|
|
548
|
-
* NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /
|
|
549
|
-
* `required` / `placeholder` / `id` members, `@Input()` decorators, the
|
|
550
|
-
* `focused` / `touched` / `stateChanges` members, and the `useExisting`
|
|
551
|
-
* provider. These are framework wiring, not defects — the CLAUDE.md bans on
|
|
552
|
-
* `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.
|
|
553
|
-
*/
|
|
554
|
-
class ValidatorsConfigComponent {
|
|
555
|
-
constructor() {
|
|
556
|
-
/** Emits whenever a piece of `MatFormFieldControl` state changes. */
|
|
557
|
-
this.stateChanges = new Subject();
|
|
558
|
-
this.controlType = 'lib-validators-config';
|
|
559
|
-
this.id = `lib-validators-config-${ValidatorsConfigComponent.nextId++}`;
|
|
560
|
-
this.placeholder = '';
|
|
561
|
-
this.focused = false;
|
|
562
|
-
this.touched = false;
|
|
563
|
-
this.required = false;
|
|
564
|
-
this.describedBy = '';
|
|
565
|
-
this.autofilled = undefined;
|
|
566
|
-
this.userAriaDescribedBy = undefined;
|
|
567
|
-
this.disableAutomaticLabeling = undefined;
|
|
568
|
-
/** Whether the editor is inert. Kept as `@Input()` for the MFC contract. */
|
|
569
|
-
this.disabled = false;
|
|
570
|
-
/** Current validator list. Kept as `@Input()` for the MFC contract. */
|
|
571
|
-
this.value = [];
|
|
572
|
-
/** Validation errors surfaced by the parent for error-state derivation. */
|
|
573
|
-
this.errors = [];
|
|
574
|
-
/** Source input that owns this validator config (for multiple-input scopes). */
|
|
575
|
-
this.mapToData = input(undefined, ...(ngDevMode ? [{ debugName: "mapToData" }] : /* istanbul ignore next */ []));
|
|
576
|
-
/** Available form inputs offered as variables. */
|
|
577
|
-
this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
|
|
578
|
-
/** Emits the full validator list whenever it changes. */
|
|
579
|
-
this.valueChanged = output();
|
|
580
|
-
/** Operator choices shared with the array-access predicate builder. */
|
|
581
|
-
this.operators = PREDICATE_OPERATORS;
|
|
582
|
-
/** Aggregate choices for a list field, with non-technical labels. */
|
|
583
|
-
this.aggregates = [
|
|
584
|
-
{ value: CalculationFunctions.Sum, label: 'total' },
|
|
585
|
-
{ value: CalculationFunctions.Avg, label: 'average' },
|
|
586
|
-
{ value: CalculationFunctions.Min, label: 'lowest' },
|
|
587
|
-
{ value: CalculationFunctions.Max, label: 'highest' },
|
|
588
|
-
{ value: CalculationFunctions.Count, label: 'count' },
|
|
589
|
-
];
|
|
590
|
-
this.#elementRef = inject(ElementRef);
|
|
591
|
-
this.ngControl = inject(NgControl, { self: true, optional: true });
|
|
592
|
-
/** Draft currently open in the inline editor, or `null` when closed. */
|
|
593
|
-
this.#edit = signal(null, ...(ngDevMode ? [{ debugName: "#edit" }] : /* istanbul ignore next */ []));
|
|
594
|
-
/** Read-only view of the open draft for the template. */
|
|
595
|
-
this.edit = this.#edit.asReadonly();
|
|
596
|
-
/** Guided builder model mirroring the open draft's expression. */
|
|
597
|
-
this.#group = signal({ connector: '&&', conditions: [] }, ...(ngDevMode ? [{ debugName: "#group" }] : /* istanbul ignore next */ []));
|
|
598
|
-
this.group = this.#group.asReadonly();
|
|
599
|
-
/** Whether the draft is being edited as a raw expression instead of guided rows. */
|
|
600
|
-
this.#raw = signal(false, ...(ngDevMode ? [{ debugName: "#raw" }] : /* istanbul ignore next */ []));
|
|
601
|
-
this.raw = this.#raw.asReadonly();
|
|
602
|
-
/** Chosen aggregate per referenced list variable (keyed by variable name). */
|
|
603
|
-
this.#functions = signal({}, ...(ngDevMode ? [{ debugName: "#functions" }] : /* istanbul ignore next */ []));
|
|
604
|
-
/** Whether the validator being authored lives on a multiple-input sub-item. */
|
|
605
|
-
this.validatorOnList = computed(() => !!this.mapToData()?.multipleInputInEditId, ...(ngDevMode ? [{ debugName: "validatorOnList" }] : /* istanbul ignore next */ []));
|
|
606
|
-
/**
|
|
607
|
-
* Fields the builder can reference: every primary input plus every
|
|
608
|
-
* multiple-input column. A multiple column carries its row-array container
|
|
609
|
-
* (`parentInputId`); whether it must be aggregated is decided per condition
|
|
610
|
-
* (see {@link requiredAggregateVariables}), not by the field itself.
|
|
611
|
-
*/
|
|
612
|
-
this.fieldOptions = computed(() => {
|
|
613
|
-
const self = this.mapToData();
|
|
614
|
-
const selfId = self?.id;
|
|
615
|
-
const options = [];
|
|
616
|
-
for (const input of this.formInputs()) {
|
|
617
|
-
if (!input.formControlName)
|
|
618
|
-
continue;
|
|
619
|
-
const group = input.multipleInputInEditId;
|
|
620
|
-
options.push({
|
|
621
|
-
variable: input.formControlName,
|
|
622
|
-
label: input.label || input.formControlName,
|
|
623
|
-
isSelf: input.id === selfId,
|
|
624
|
-
isMultiple: !!group,
|
|
625
|
-
numeric: this.#isNumeric(input),
|
|
626
|
-
inputId: group ? input.id : (input.originalId ?? input.id),
|
|
627
|
-
parentInputId: group,
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
return options;
|
|
631
|
-
}, ...(ngDevMode ? [{ debugName: "fieldOptions" }] : /* istanbul ignore next */ []));
|
|
632
|
-
/** Primary (scalar) fields, for the first dropdown group. */
|
|
633
|
-
this.directFields = computed(() => this.fieldOptions().filter((f) => !f.isMultiple), ...(ngDevMode ? [{ debugName: "directFields" }] : /* istanbul ignore next */ []));
|
|
634
|
-
/** Multiple-input columns, for the second dropdown group. */
|
|
635
|
-
this.listFields = computed(() => this.fieldOptions().filter((f) => f.isMultiple), ...(ngDevMode ? [{ debugName: "listFields" }] : /* istanbul ignore next */ []));
|
|
636
|
-
/** Field option keyed by its expression variable, for operand lookups. */
|
|
637
|
-
this.#fieldByVariable = computed(() => new Map(this.fieldOptions().map((f) => [f.variable, f])), ...(ngDevMode ? [{ debugName: "#fieldByVariable" }] : /* istanbul ignore next */ []));
|
|
638
|
-
/** Multiple-input columns actually referenced by the current expression. */
|
|
639
|
-
this.referencedListFields = computed(() => {
|
|
640
|
-
const tokens = referencedTokens(this.#edit()?.expression ?? '');
|
|
641
|
-
return this.listFields().filter((f) => tokens.has(f.variable));
|
|
642
|
-
}, ...(ngDevMode ? [{ debugName: "referencedListFields" }] : /* istanbul ignore next */ []));
|
|
643
|
-
/**
|
|
644
|
-
* Multiple-input variables that MUST be aggregated: a list column compared
|
|
645
|
-
* against a non-list operand (a primary field or a typed value) has to be
|
|
646
|
-
* reduced to a single value. A list-vs-list comparison leaves the aggregate
|
|
647
|
-
* optional (the columns are row-aligned). In raw mode operand pairing cannot
|
|
648
|
-
* be analysed, so every referenced list column is treated as required.
|
|
649
|
-
*/
|
|
650
|
-
this.requiredAggregateVariables = computed(() => {
|
|
651
|
-
if (this.#raw()) {
|
|
652
|
-
return new Set(this.referencedListFields().map((f) => f.variable));
|
|
653
|
-
}
|
|
654
|
-
const byVariable = this.#fieldByVariable();
|
|
655
|
-
const required = new Set();
|
|
656
|
-
for (const cond of this.#group().conditions) {
|
|
657
|
-
const left = byVariable.get(cond.field);
|
|
658
|
-
const right = cond.compareTo === 'field' ? byVariable.get(cond.value) : undefined;
|
|
659
|
-
const leftMultiple = !!left?.isMultiple;
|
|
660
|
-
const rightMultiple = !!right?.isMultiple;
|
|
661
|
-
if (leftMultiple && !rightMultiple)
|
|
662
|
-
required.add(cond.field);
|
|
663
|
-
if (rightMultiple && !leftMultiple && right)
|
|
664
|
-
required.add(right.variable);
|
|
665
|
-
}
|
|
666
|
-
return required;
|
|
667
|
-
}, ...(ngDevMode ? [{ debugName: "requiredAggregateVariables" }] : /* istanbul ignore next */ []));
|
|
668
|
-
/** Whether every list column that MUST be aggregated has an aggregate chosen. */
|
|
669
|
-
this.aggregatesResolved = computed(() => {
|
|
670
|
-
const functions = this.#functions();
|
|
671
|
-
const required = this.requiredAggregateVariables();
|
|
672
|
-
return [...required].every((variable) => !!functions[variable]);
|
|
673
|
-
}, ...(ngDevMode ? [{ debugName: "aggregatesResolved" }] : /* istanbul ignore next */ []));
|
|
674
|
-
/** Whether the guided builder has at least one condition and all are complete. */
|
|
675
|
-
this.conditionsComplete = computed(() => {
|
|
676
|
-
if (this.#raw())
|
|
677
|
-
return true; // raw mode is gated by syntaxError + non-empty
|
|
678
|
-
const conditions = this.#group().conditions;
|
|
679
|
-
return conditions.length > 0 && conditions.every((c) => this.isConditionComplete(c));
|
|
680
|
-
}, ...(ngDevMode ? [{ debugName: "conditionsComplete" }] : /* istanbul ignore next */ []));
|
|
681
|
-
/** Whether the current draft expression can be edited in the guided builder. */
|
|
682
|
-
this.canUseGuided = computed(() => parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet()) !== null, ...(ngDevMode ? [{ debugName: "canUseGuided" }] : /* istanbul ignore next */ []));
|
|
683
|
-
/** Human-readable syntax error for the raw editor, or `null` when valid/empty. */
|
|
684
|
-
this.syntaxError = computed(() => {
|
|
685
|
-
const expression = this.#edit()?.expression ?? '';
|
|
686
|
-
if (expression.trim() === '')
|
|
687
|
-
return null;
|
|
688
|
-
try {
|
|
689
|
-
evaluatePredicate(expression, {});
|
|
690
|
-
return null;
|
|
691
|
-
}
|
|
692
|
-
catch (error) {
|
|
693
|
-
return error instanceof Error ? error.message : 'The expression syntax is invalid.';
|
|
694
|
-
}
|
|
695
|
-
}, ...(ngDevMode ? [{ debugName: "syntaxError" }] : /* istanbul ignore next */ []));
|
|
696
|
-
/** Whether the open draft can be saved (message, a complete/valid rule, aggregates chosen). */
|
|
697
|
-
this.canSave = computed(() => {
|
|
698
|
-
const draft = this.#edit();
|
|
699
|
-
return (!!draft &&
|
|
700
|
-
!!draft.message &&
|
|
701
|
-
!!draft.expression &&
|
|
702
|
-
this.syntaxError() === null &&
|
|
703
|
-
this.conditionsComplete() &&
|
|
704
|
-
this.aggregatesResolved());
|
|
705
|
-
}, ...(ngDevMode ? [{ debugName: "canSave" }] : /* istanbul ignore next */ []));
|
|
706
|
-
/** A one-line reason the rule cannot be saved yet, or `null` when it can. */
|
|
707
|
-
this.saveHint = computed(() => {
|
|
708
|
-
const draft = this.#edit();
|
|
709
|
-
if (!draft)
|
|
710
|
-
return null;
|
|
711
|
-
if (!draft.message)
|
|
712
|
-
return 'Add an error message.';
|
|
713
|
-
if (!this.#raw() && !this.conditionsComplete()) {
|
|
714
|
-
return 'Finish every condition — choose a field, a condition and a value.';
|
|
715
|
-
}
|
|
716
|
-
if (!draft.expression)
|
|
717
|
-
return 'Add at least one condition.';
|
|
718
|
-
if (this.#raw() && this.syntaxError() !== null)
|
|
719
|
-
return this.syntaxError();
|
|
720
|
-
if (!this.aggregatesResolved())
|
|
721
|
-
return 'Choose how to combine each list field.';
|
|
722
|
-
return null;
|
|
723
|
-
}, ...(ngDevMode ? [{ debugName: "saveHint" }] : /* istanbul ignore next */ []));
|
|
724
|
-
this.onTouched = () => { };
|
|
725
|
-
}
|
|
726
|
-
static { this.nextId = 0; }
|
|
727
|
-
#elementRef;
|
|
728
|
-
/** Draft currently open in the inline editor, or `null` when closed. */
|
|
729
|
-
#edit;
|
|
730
|
-
/** Guided builder model mirroring the open draft's expression. */
|
|
731
|
-
#group;
|
|
732
|
-
/** Whether the draft is being edited as a raw expression instead of guided rows. */
|
|
733
|
-
#raw;
|
|
734
|
-
/** Chosen aggregate per referenced list variable (keyed by variable name). */
|
|
735
|
-
#functions;
|
|
736
|
-
/** Field option keyed by its expression variable, for operand lookups. */
|
|
737
|
-
#fieldByVariable;
|
|
738
|
-
/** Aggregates offered for a field: numeric columns get all, others only count. */
|
|
739
|
-
aggregatesFor(field) {
|
|
740
|
-
return field.numeric
|
|
741
|
-
? this.aggregates
|
|
742
|
-
: this.aggregates.filter((a) => a.value === CalculationFunctions.Count);
|
|
743
|
-
}
|
|
744
|
-
/** Whether a referenced list column is required to have an aggregate. */
|
|
745
|
-
isAggregateRequired(variable) {
|
|
746
|
-
return this.requiredAggregateVariables().has(variable);
|
|
747
|
-
}
|
|
748
|
-
/**
|
|
749
|
-
* Whether a guided condition is fully specified (field, operator and a value
|
|
750
|
-
* all set). Incomplete conditions are otherwise silently dropped on save, so
|
|
751
|
-
* this gates {@link canSave}.
|
|
752
|
-
*/
|
|
753
|
-
isConditionComplete(condition) {
|
|
754
|
-
return (condition.field.trim() !== '' &&
|
|
755
|
-
condition.operator.trim() !== '' &&
|
|
756
|
-
condition.value.trim() !== '');
|
|
757
|
-
}
|
|
758
|
-
// MatFormFieldControl reads these as plain getters during its own change
|
|
759
|
-
// detection, so they stay getters rather than `computed()` signals.
|
|
760
|
-
get empty() {
|
|
761
|
-
return this.value.length === 0;
|
|
762
|
-
}
|
|
763
|
-
get shouldLabelFloat() {
|
|
764
|
-
return this.focused || !this.empty;
|
|
765
|
-
}
|
|
766
|
-
get errorState() {
|
|
767
|
-
const ngControlError = this.ngControl?.errors != null;
|
|
768
|
-
const externalError = (this.errors?.length ?? 0) > 0 && this.touched;
|
|
769
|
-
const requiredUnset = this.empty && this.required;
|
|
770
|
-
return requiredUnset || ngControlError || externalError;
|
|
771
|
-
}
|
|
772
|
-
setDescribedByIds(ids) {
|
|
773
|
-
this.describedBy = ids.join(' ');
|
|
774
|
-
const el = this.#elementRef.nativeElement;
|
|
775
|
-
const controlElement = el.querySelector('.lib-validators-config__list');
|
|
776
|
-
controlElement?.setAttribute('aria-describedby', this.describedBy);
|
|
777
|
-
this.stateChanges.next();
|
|
778
|
-
}
|
|
779
|
-
onContainerClick() {
|
|
780
|
-
this.markAsTouched();
|
|
781
|
-
this.stateChanges.next();
|
|
782
|
-
}
|
|
783
|
-
markAsTouched() {
|
|
784
|
-
if (!this.touched) {
|
|
785
|
-
this.touched = true;
|
|
786
|
-
this.onTouched();
|
|
787
|
-
this.stateChanges.next();
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
/** Tear down the MFC state stream so subscribers do not leak. */
|
|
791
|
-
ngOnDestroy() {
|
|
792
|
-
this.stateChanges.complete();
|
|
793
|
-
}
|
|
794
|
-
/** `@for` track key: object validators by id, string validators by value. */
|
|
795
|
-
trackValidator(validator) {
|
|
796
|
-
return typeof validator === 'string' ? validator : validator.id;
|
|
797
|
-
}
|
|
798
|
-
/** Resolve the label shown on a validator chip. */
|
|
799
|
-
validatorLabel(validator) {
|
|
800
|
-
return typeof validator === 'string' ? validator : validator.message;
|
|
801
|
-
}
|
|
802
|
-
/** Whether a validator chip is the one currently being edited. */
|
|
803
|
-
isEditing(validator) {
|
|
804
|
-
if (typeof validator === 'string') {
|
|
805
|
-
return false;
|
|
806
|
-
}
|
|
807
|
-
return this.#edit()?.id === validator.id;
|
|
808
|
-
}
|
|
809
|
-
/**
|
|
810
|
-
* Open a validator for editing. String entries are read-only legacy
|
|
811
|
-
* references and are ignored. Editing the open validator again closes it.
|
|
812
|
-
* The draft is a clone, so edits only land in `value` on Save.
|
|
813
|
-
*
|
|
814
|
-
* DEFECT FIX (discard semantics): the editor is an inline panel with an
|
|
815
|
-
* explicit Close/Save toolbar, not a transient overlay that vanishes on an
|
|
816
|
-
* outside click. Opening a different validator (or {@link addValidator})
|
|
817
|
-
* deliberately replaces the open draft — an explicit, documented discard,
|
|
818
|
-
* never a silent loss mid-edit.
|
|
819
|
-
*/
|
|
820
|
-
editV(validator) {
|
|
821
|
-
if (typeof validator === 'string') {
|
|
822
|
-
return;
|
|
823
|
-
}
|
|
824
|
-
if (this.#edit()?.id === validator.id) {
|
|
825
|
-
this.#edit.set(null);
|
|
826
|
-
return;
|
|
827
|
-
}
|
|
828
|
-
this.#edit.set(this.#cloneValidator(validator));
|
|
829
|
-
this.#initBuilderFromDraft();
|
|
830
|
-
}
|
|
831
|
-
/** Begin a brand-new validator draft (id assigned on save). */
|
|
832
|
-
addValidator() {
|
|
833
|
-
this.#edit.set(this.#emptyDraft());
|
|
834
|
-
this.#initBuilderFromDraft();
|
|
835
|
-
}
|
|
836
|
-
/** Discard the open draft without persisting it. */
|
|
837
|
-
closeEditor() {
|
|
838
|
-
this.#edit.set(null);
|
|
839
|
-
}
|
|
840
|
-
/** Remove a validator (string or object) from the list and emit. */
|
|
841
|
-
remove(validator) {
|
|
842
|
-
const next = this.value.filter((item) => !this.#sameValidator(item, validator));
|
|
843
|
-
this.#commit(next);
|
|
844
|
-
if (this.isEditing(validator)) {
|
|
845
|
-
this.#edit.set(null);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
/** Update the draft's message, or replace its raw expression as the user types. */
|
|
849
|
-
onTextChange(event, key) {
|
|
850
|
-
const value = event.target.value;
|
|
851
|
-
if (key === 'expression') {
|
|
852
|
-
this.#syncExpression(value);
|
|
853
|
-
return;
|
|
854
|
-
}
|
|
855
|
-
this.#edit.update((draft) => {
|
|
856
|
-
const base = draft ?? this.#emptyDraft();
|
|
857
|
-
return { ...base, message: value };
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
/** Toggle whether users may override (warn instead of block) this validator. */
|
|
861
|
-
setCanOverride(checked) {
|
|
862
|
-
this.#edit.update((draft) => (draft ? { ...draft, canOverride: checked } : draft));
|
|
863
|
-
}
|
|
864
|
-
/**
|
|
865
|
-
* Persist the open draft. A new draft (no id) is appended with a fresh uuid;
|
|
866
|
-
* an existing draft (has id) replaces the matching entry. Emits the new list.
|
|
867
|
-
*/
|
|
868
|
-
saveVariable() {
|
|
869
|
-
const draft = this.#edit();
|
|
870
|
-
if (!draft || !draft.message || !draft.expression) {
|
|
871
|
-
return;
|
|
872
|
-
}
|
|
873
|
-
if (draft.id !== undefined) {
|
|
874
|
-
const id = draft.id;
|
|
875
|
-
const saved = { ...draft, id };
|
|
876
|
-
this.#commit(this.value.map((item) => typeof item !== 'string' && item.id === id ? saved : item));
|
|
877
|
-
}
|
|
878
|
-
else {
|
|
879
|
-
const saved = { ...draft, id: v4() };
|
|
880
|
-
this.#commit([...this.value, saved]);
|
|
881
|
-
}
|
|
882
|
-
this.#edit.set(null);
|
|
883
|
-
}
|
|
884
|
-
// ---- guided condition builder ------------------------------------------
|
|
885
|
-
/** Switch the All/Any connector joining the conditions. */
|
|
886
|
-
setConnector(connector) {
|
|
887
|
-
this.#applyGroup({ ...this.#group(), connector });
|
|
888
|
-
}
|
|
889
|
-
/** Append a fresh condition, defaulting its field to the owning input. */
|
|
890
|
-
addCondition() {
|
|
891
|
-
const fallback = this.directFields().find((f) => f.isSelf) ??
|
|
892
|
-
this.directFields()[0] ??
|
|
893
|
-
this.fieldOptions()[0];
|
|
894
|
-
const group = this.#group();
|
|
895
|
-
this.#applyGroup({
|
|
896
|
-
...group,
|
|
897
|
-
conditions: [...group.conditions, emptyCondition(fallback?.variable ?? '')],
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
/** Apply a partial change to the condition at `index`. */
|
|
901
|
-
updateCondition(index, patch) {
|
|
902
|
-
const group = this.#group();
|
|
903
|
-
const conditions = group.conditions.map((c, i) => (i === index ? { ...c, ...patch } : c));
|
|
904
|
-
this.#applyGroup({ ...group, conditions });
|
|
905
|
-
}
|
|
906
|
-
/** Flip a condition between comparing to a typed value and another field. */
|
|
907
|
-
toggleCompareTo(index) {
|
|
908
|
-
const condition = this.#group().conditions[index];
|
|
909
|
-
if (!condition)
|
|
910
|
-
return;
|
|
911
|
-
if (condition.compareTo === 'value') {
|
|
912
|
-
const field = this.fieldOptions().find((f) => f.variable !== condition.field);
|
|
913
|
-
this.updateCondition(index, { compareTo: 'field', value: field?.variable ?? '' });
|
|
914
|
-
}
|
|
915
|
-
else {
|
|
916
|
-
this.updateCondition(index, { compareTo: 'value', value: '' });
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
/** Remove the condition at `index`. */
|
|
920
|
-
removeCondition(index) {
|
|
921
|
-
const group = this.#group();
|
|
922
|
-
this.#applyGroup({ ...group, conditions: group.conditions.filter((_, i) => i !== index) });
|
|
923
|
-
}
|
|
924
|
-
/**
|
|
925
|
-
* Choose (or clear, by re-clicking) the aggregate that reduces a referenced
|
|
926
|
-
* list field to a single value.
|
|
927
|
-
*/
|
|
928
|
-
setFunction(variable, fn) {
|
|
929
|
-
this.#functions.update((current) => {
|
|
930
|
-
const next = { ...current };
|
|
931
|
-
if (next[variable] === fn) {
|
|
932
|
-
delete next[variable];
|
|
933
|
-
}
|
|
934
|
-
else {
|
|
935
|
-
next[variable] = fn;
|
|
936
|
-
}
|
|
937
|
-
return next;
|
|
938
|
-
});
|
|
939
|
-
// The expression text is unchanged, but the observed deps now carry the
|
|
940
|
-
// aggregate — re-sync so inputsObservedForChanges reflects the choice.
|
|
941
|
-
this.#syncExpression(this.#edit()?.expression ?? '');
|
|
942
|
-
}
|
|
943
|
-
/** The aggregate currently chosen for a list variable, if any. */
|
|
944
|
-
currentFunction(variable) {
|
|
945
|
-
return this.#functions()[variable];
|
|
946
|
-
}
|
|
947
|
-
/** Switch to the raw expression editor. */
|
|
948
|
-
useRaw() {
|
|
949
|
-
this.#raw.set(true);
|
|
950
|
-
}
|
|
951
|
-
/** Switch back to the guided builder, reparsing the current expression. */
|
|
952
|
-
useGuided() {
|
|
953
|
-
if (!this.canUseGuided())
|
|
954
|
-
return;
|
|
955
|
-
this.#initGroupFromExpression();
|
|
956
|
-
this.#raw.set(false);
|
|
957
|
-
}
|
|
958
|
-
/** Read the value-event target as a string. */
|
|
959
|
-
inputValue(event) {
|
|
960
|
-
return event.target.value;
|
|
961
|
-
}
|
|
962
|
-
// ---- internal ----------------------------------------------------------
|
|
963
|
-
#emptyDraft() {
|
|
964
|
-
return {
|
|
965
|
-
message: '',
|
|
966
|
-
expression: '',
|
|
967
|
-
canOverride: false,
|
|
968
|
-
inputsObservedForChanges: [],
|
|
969
|
-
};
|
|
970
|
-
}
|
|
971
|
-
#cloneValidator(validator) {
|
|
972
|
-
return {
|
|
973
|
-
...validator,
|
|
974
|
-
inputsObservedForChanges: validator.inputsObservedForChanges.map((i) => ({ ...i })),
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
#sameValidator(item, target) {
|
|
978
|
-
if (typeof item === 'string' || typeof target === 'string') {
|
|
979
|
-
return item === target;
|
|
980
|
-
}
|
|
981
|
-
return item.id === target.id;
|
|
982
|
-
}
|
|
983
|
-
/** Set of field variable names the builder recognises (for parsing). */
|
|
984
|
-
#fieldNameSet() {
|
|
985
|
-
return new Set(this.fieldOptions().map((f) => f.variable));
|
|
986
|
-
}
|
|
987
|
-
/** Whether an input carries a numeric data type. */
|
|
988
|
-
#isNumeric(input) {
|
|
989
|
-
return input.dataType === InputDataTypes.Number || input.type === InputTypes.Number;
|
|
990
|
-
}
|
|
991
|
-
/** Recover the per-variable aggregate choices from a draft's observed inputs. */
|
|
992
|
-
#functionsFromDraft() {
|
|
993
|
-
const map = {};
|
|
994
|
-
for (const observed of this.#edit()?.inputsObservedForChanges ?? []) {
|
|
995
|
-
if (observed.function)
|
|
996
|
-
map[observed.variable] = observed.function;
|
|
997
|
-
}
|
|
998
|
-
return map;
|
|
999
|
-
}
|
|
1000
|
-
/** Seed the builder state when a draft opens: guided if parseable, else raw. */
|
|
1001
|
-
#initBuilderFromDraft() {
|
|
1002
|
-
this.#functions.set(this.#functionsFromDraft());
|
|
1003
|
-
const parsed = parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet());
|
|
1004
|
-
if (parsed) {
|
|
1005
|
-
this.#group.set(parsed);
|
|
1006
|
-
this.#raw.set(false);
|
|
1007
|
-
}
|
|
1008
|
-
else {
|
|
1009
|
-
this.#raw.set(true);
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
/** Reparse the current draft expression into the guided model. */
|
|
1013
|
-
#initGroupFromExpression() {
|
|
1014
|
-
const parsed = parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet());
|
|
1015
|
-
if (parsed) {
|
|
1016
|
-
this.#group.set(parsed);
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
/** Store a builder change: update the model, then serialise into the draft. */
|
|
1020
|
-
#applyGroup(next) {
|
|
1021
|
-
this.#group.set(next);
|
|
1022
|
-
this.#syncExpression(serializeConditions(next));
|
|
1023
|
-
}
|
|
1024
|
-
/** Write an expression onto the draft and re-derive its observed-input deps. */
|
|
1025
|
-
#syncExpression(expression) {
|
|
1026
|
-
const fields = this.fieldOptions();
|
|
1027
|
-
const functions = this.#functions();
|
|
1028
|
-
this.#edit.update((draft) => {
|
|
1029
|
-
const base = draft ?? this.#emptyDraft();
|
|
1030
|
-
return {
|
|
1031
|
-
...base,
|
|
1032
|
-
expression,
|
|
1033
|
-
inputsObservedForChanges: deriveObservedInputs(expression, fields, functions),
|
|
1034
|
-
};
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
/** Single mutation path: store the new list and notify the parent. */
|
|
1038
|
-
#commit(next) {
|
|
1039
|
-
this.value = next;
|
|
1040
|
-
this.markAsTouched();
|
|
1041
|
-
this.stateChanges.next();
|
|
1042
|
-
this.valueChanged.emit([...next]);
|
|
1043
|
-
}
|
|
1044
|
-
static { this.ɵfac = function ValidatorsConfigComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ValidatorsConfigComponent)(); }; }
|
|
1045
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ValidatorsConfigComponent, selectors: [["lib-validators-config"]], hostAttrs: [1, "lib-validators-config"], hostVars: 1, hostBindings: function ValidatorsConfigComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
1046
|
-
i0.ɵɵattribute("id", ctx.id);
|
|
1047
|
-
} }, inputs: { disabled: "disabled", value: "value", errors: "errors", mapToData: [1, "mapToData"], formInputs: [1, "formInputs"] }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent }])], decls: 16, vars: 3, consts: [[1, "lib-validators-config__list"], [1, "lib-validators-config__title"], [1, "lib-validators-config__hint"], [1, "lib-validators-config__hint-icon"], ["aria-label", "Validation rules", 3, "disabled"], [1, "lib-validators-config__chip", 3, "selected"], ["matTooltip", "Add a new validation rule", 1, "lib-validators-config__add", 3, "selectable", "disabled"], [1, "lib-validators-config__editor"], [1, "lib-validators-config__chip", 3, "click", "selected"], [1, "lib-validators-config__chip-label"], ["matChipTrailingIcon", ""], ["matChipRemove", ""], ["matChipRemove", "", 3, "click"], ["matTooltip", "Add a new validation rule", 1, "lib-validators-config__add", 3, "click", "selectable", "disabled"], [1, "lib-validators-config__editor", 3, "click"], [1, "lib-validators-config__field"], [1, "lib-validators-config__f-label"], ["rows", "2", "placeholder", "e.g. End date must be after the start date", 1, "lib-validators-config__control", "lib-validators-config__textarea", 3, "input", "value"], [1, "lib-validators-config__condition-head"], [1, "lib-validators-config__match"], [1, "lib-validators-config__lists"], [1, "lib-validators-config__preview"], [1, "lib-validators-config__override"], ["name", "canOverride", 3, "change", "checked"], [1, "lib-validators-config__toggle-label"], [1, "lib-validators-config__sub-hint"], [1, "lib-validators-config__foot"], ["type", "button", 1, "lib-validators-config__link", 3, "disabled", "matTooltip"], ["type", "button", 1, "lib-validators-config__link"], [1, "lib-validators-config__save-hint"], [1, "lib-validators-config__toolbar"], [1, "lib-validators-config__spacer"], ["mat-button", "", 3, "click"], ["mat-raised-button", "", "color", "accent", 3, "click", "disabled"], ["hideSingleSelectionIndicator", "", "aria-label", "Combine conditions", 1, "lib-validators-config__seg", 3, "change", "value"], ["value", "&&"], ["value", "||"], [1, "lib-validators-config__muted"], ["rows", "2", "placeholder", "e.g. endDate < startDate", 1, "lib-validators-config__control", "lib-validators-config__textarea", "lib-validators-config__mono", 3, "input", "value"], [1, "lib-validators-config__error"], [1, "lib-validators-config__error-icon"], ["type", "button", 1, "lib-validators-config__link", 3, "click"], ["aria-hidden", "true", 1, "lib-validators-config__connector"], [1, "lib-validators-config__cond"], [1, "lib-validators-config__cond-body"], [1, "lib-validators-config__control", 3, "change"], ["value", "", "disabled", "", 3, "selected"], ["label", "Fields"], ["label", "List fields (totalled)"], [1, "lib-validators-config__cond-pair"], [3, "value", "selected"], [1, "lib-validators-config__value"], [1, "lib-validators-config__control", 3, "lib-validators-config__control--invalid"], ["placeholder", "e.g. 18", 1, "lib-validators-config__control", 3, "lib-validators-config__control--invalid", "value"], ["type", "button", 1, "lib-validators-config__value-toggle", 3, "click", "matTooltip"], ["type", "button", "mat-icon-button", "", "matTooltip", "Remove condition", "aria-label", "Remove condition", 1, "lib-validators-config__cond-remove", 3, "click"], ["placeholder", "e.g. 18", 1, "lib-validators-config__control", 3, "input", "value"], [1, "lib-validators-config__list-row", 3, "lib-validators-config__list-row--unset"], [1, "lib-validators-config__list-row"], [1, "lib-validators-config__list-name"], [1, "lib-validators-config__list-optional"], ["role", "group", 1, "lib-validators-config__agg"], ["type", "button", 1, "lib-validators-config__agg-chip", 3, "lib-validators-config__agg-chip--on"], ["type", "button", 1, "lib-validators-config__agg-chip", 3, "click"], ["type", "button", 1, "lib-validators-config__link", 3, "click", "disabled", "matTooltip"], [1, "lib-validators-config__save-hint-icon"]], template: function ValidatorsConfigComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1048
|
-
i0.ɵɵelementStart(0, "section", 0)(1, "h5", 1);
|
|
1049
|
-
i0.ɵɵtext(2, "Validation rules");
|
|
1050
|
-
i0.ɵɵelementEnd();
|
|
1051
|
-
i0.ɵɵelementStart(3, "p", 2)(4, "mat-icon", 3);
|
|
1052
|
-
i0.ɵɵtext(5, "lightbulb");
|
|
1053
|
-
i0.ɵɵelementEnd();
|
|
1054
|
-
i0.ɵɵelementStart(6, "span");
|
|
1055
|
-
i0.ɵɵtext(7, "Each rule shows its message when its condition is true \u2014 describe when the entry is ");
|
|
1056
|
-
i0.ɵɵelementStart(8, "strong");
|
|
1057
|
-
i0.ɵɵtext(9, "wrong");
|
|
1058
|
-
i0.ɵɵelementEnd();
|
|
1059
|
-
i0.ɵɵtext(10, ".");
|
|
1060
|
-
i0.ɵɵelementEnd()();
|
|
1061
|
-
i0.ɵɵelementStart(11, "mat-chip-listbox", 4);
|
|
1062
|
-
i0.ɵɵrepeaterCreate(12, ValidatorsConfigComponent_For_13_Template, 6, 5, "mat-chip-option", 5, _forTrack0, true);
|
|
1063
|
-
i0.ɵɵconditionalCreate(14, ValidatorsConfigComponent_Conditional_14_Template, 4, 2, "mat-chip-option", 6);
|
|
1064
|
-
i0.ɵɵelementEnd()();
|
|
1065
|
-
i0.ɵɵconditionalCreate(15, ValidatorsConfigComponent_Conditional_15_Template, 30, 10, "mat-card", 7);
|
|
1066
|
-
} if (rf & 2) {
|
|
1067
|
-
let tmp_3_0;
|
|
1068
|
-
i0.ɵɵadvance(11);
|
|
1069
|
-
i0.ɵɵproperty("disabled", ctx.disabled);
|
|
1070
|
-
i0.ɵɵadvance();
|
|
1071
|
-
i0.ɵɵrepeater(ctx.value);
|
|
1072
|
-
i0.ɵɵadvance(2);
|
|
1073
|
-
i0.ɵɵconditional(!ctx.edit() ? 14 : -1);
|
|
1074
|
-
i0.ɵɵadvance();
|
|
1075
|
-
i0.ɵɵconditional((tmp_3_0 = ctx.edit()) ? 15 : -1, tmp_3_0);
|
|
1076
|
-
} }, dependencies: [CommonModule,
|
|
1077
|
-
MatIconModule, i3.MatIcon, MatChipsModule, i4.MatChipListbox, i4.MatChipOption, i4.MatChipRemove, i4.MatChipTrailingIcon, MatCardModule, i3$1.MatCard, MatToolbarModule, i8.MatToolbar, MatButtonModule, i1.MatButton, i1.MatIconButton, MatButtonToggleModule, i3$2.MatButtonToggleGroup, i3$2.MatButtonToggle, MatSlideToggleModule, i1$1.MatSlideToggle, MatTooltipModule, i5.MatTooltip, i3$3.TitleCasePipe], styles: ["@charset \"UTF-8\";[_nghost-%COMP%]{display:block}.lib-validators-config__title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:.9375rem;font-weight:500;letter-spacing:-.01em;color:var(--lib-forms-on-surface)}.lib-validators-config__hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;margin:0 0 1.25rem;font-size:.8125rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__hint-icon[_ngcontent-%COMP%]{flex:none;font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-validators-config__chip[_ngcontent-%COMP%]{height:fit-content;padding:.5rem;cursor:pointer}.lib-validators-config__chip-label[_ngcontent-%COMP%]{white-space:normal}.lib-validators-config__add[_ngcontent-%COMP%]{cursor:pointer}.lib-validators-config__editor[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem;margin-top:1.25rem;padding:1.5rem;background:var(--lib-forms-surface-container-low);border-radius:var(--lib-forms-radius-lg, 16px);box-shadow:var(--lib-forms-shadow-edge)}.lib-validators-config__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:0}.lib-validators-config__f-label[_ngcontent-%COMP%]{font-size:.625rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__control[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;min-width:0;height:2.125rem;padding:.375rem .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, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}select.lib-validators-config__control[_ngcontent-%COMP%]{cursor:pointer}.lib-validators-config__textarea[_ngcontent-%COMP%]{height:auto;min-height:2.75rem;line-height:1.45;resize:vertical}.lib-validators-config__mono[_ngcontent-%COMP%]{font-family:var(--lib-forms-font-mono, monospace)}.lib-validators-config__control[_ngcontent-%COMP%]:hover{border-color:var(--lib-forms-outline)}.lib-validators-config__control[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 1px var(--lib-forms-primary)}.lib-validators-config__control--invalid[_ngcontent-%COMP%]:not(:focus){border-color:var(--sem-warning, var(--lib-forms-outline));background:var(--sem-warning-surface, var(--lib-forms-surface-container-lowest))}.lib-validators-config__condition-head[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem}.lib-validators-config__match[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap}.lib-validators-config__match[_ngcontent-%COMP%] .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}.lib-validators-config__match[_ngcontent-%COMP%] .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)}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle+.mat-button-toggle{border-left:none}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle-button{height:auto}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle-label-content{padding:.25rem .75rem;line-height:1.5;font-size:.75rem;font-weight:600}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle-checked{background:var(--lib-forms-surface);color:var(--lib-forms-primary);box-shadow:var(--lib-forms-shadow-edge)}.lib-validators-config__match[_ngcontent-%COMP%] .mat-pseudo-checkbox{display:none}.lib-validators-config__muted[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__connector[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:-.375rem 0}.lib-validators-config__connector[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:.0625rem .5rem;font-size:.625rem;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-validators-config__cond[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;align-items:start;gap:.375rem;padding:.75rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md)}.lib-validators-config__cond-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;min-width:0}.lib-validators-config__cond-pair[_ngcontent-%COMP%]{display:grid;grid-template-columns:8.5rem 1fr;gap:.5rem;min-width:0}.lib-validators-config__value[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;min-width:0}.lib-validators-config__value-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.125rem;height:2.125rem;padding:0;color:var(--lib-forms-on-surface-variant);background:transparent;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm);cursor:pointer;transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__value-toggle[_ngcontent-%COMP%]:hover{color:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-validators-config__value-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-validators-config__cond-remove[_ngcontent-%COMP%]{width:2rem;height:2rem;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;align-self:flex-start;gap:.25rem;height:1.875rem;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, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__link[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--lib-forms-primary-container)}.lib-validators-config__link[_ngcontent-%COMP%]:disabled{color:var(--lib-forms-on-surface-variant);cursor:default;opacity:.6}.lib-validators-config__link[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-validators-config__lists[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md)}.lib-validators-config__list-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.lib-validators-config__list-name[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:500;color:var(--lib-forms-on-surface)}.lib-validators-config__list-row--unset[_ngcontent-%COMP%] .lib-validators-config__list-name[_ngcontent-%COMP%]:after{content:\" \\2014 pick one\";font-weight:400;color:var(--sem-warning, var(--lib-forms-on-surface-variant))}.lib-validators-config__list-optional[_ngcontent-%COMP%]{margin-left:.375rem;font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__agg[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.25rem}.lib-validators-config__agg-chip[_ngcontent-%COMP%]{padding:.1875rem .5rem;font:inherit;font-size:.75rem;font-weight:500;color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-pill, 999px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),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-validators-config__agg-chip[_ngcontent-%COMP%]:hover{border-color:var(--lib-forms-primary);color:var(--lib-forms-primary)}.lib-validators-config__agg-chip--on[_ngcontent-%COMP%]{color:var(--lib-forms-on-primary, var(--mat-sys-on-primary));background:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-validators-config__preview[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:.5rem;padding:.5rem .625rem;background:var(--lib-forms-surface-container-lowest);border:1px dashed var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm)}.lib-validators-config__preview[_ngcontent-%COMP%] .lib-validators-config__f-label[_ngcontent-%COMP%]{flex:none}.lib-validators-config__preview[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-family:var(--lib-forms-font-mono, monospace);font-size:.75rem;color:var(--lib-forms-on-surface-variant);word-break:break-word}.lib-validators-config__sub-hint[_ngcontent-%COMP%]{margin:0;font-size:.75rem;line-height:1.45;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__sub-hint[_ngcontent-%COMP%] code[_ngcontent-%COMP%], .lib-validators-config__error[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-family:var(--lib-forms-font-mono, monospace);padding:.0625rem .25rem;background:var(--lib-forms-surface-container-high);border-radius:var(--lib-forms-radius-sm)}.lib-validators-config__error[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.375rem;margin:0;font-size:.75rem;line-height:1.45;color:var(--sem-error, var(--mat-sys-error))}.lib-validators-config__error-icon[_ngcontent-%COMP%]{flex:none;font-size:1rem;width:1rem;height:1rem}.lib-validators-config__override[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.lib-validators-config__toggle-label[_ngcontent-%COMP%]{margin-left:.5rem;font-size:.8125rem}.lib-validators-config__foot[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:-.5rem}.lib-validators-config__save-hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.375rem;margin:0;font-size:.75rem;line-height:1.45;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__save-hint-icon[_ngcontent-%COMP%]{flex:none;font-size:1rem;width:1rem;height:1rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-validators-config__toolbar[_ngcontent-%COMP%]{background:transparent;padding:0}.lib-validators-config__spacer[_ngcontent-%COMP%]{flex:1 1 auto}"], changeDetection: 0 }); }
|
|
1078
|
-
}
|
|
1079
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ValidatorsConfigComponent, [{
|
|
1080
|
-
type: Component,
|
|
1081
|
-
args: [{ selector: 'lib-validators-config', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
|
|
1082
|
-
CommonModule,
|
|
1083
|
-
MatIconModule,
|
|
1084
|
-
MatChipsModule,
|
|
1085
|
-
MatCardModule,
|
|
1086
|
-
MatToolbarModule,
|
|
1087
|
-
MatButtonModule,
|
|
1088
|
-
MatButtonToggleModule,
|
|
1089
|
-
MatSlideToggleModule,
|
|
1090
|
-
MatTooltipModule,
|
|
1091
|
-
], providers: [{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent }], host: {
|
|
1092
|
-
'class': 'lib-validators-config',
|
|
1093
|
-
'[attr.id]': 'id',
|
|
1094
|
-
}, template: "<section class=\"lib-validators-config__list\">\n <h5 class=\"lib-validators-config__title\">Validation rules</h5>\n\n <p class=\"lib-validators-config__hint\">\n <mat-icon class=\"lib-validators-config__hint-icon\">lightbulb</mat-icon>\n <span>Each rule shows its message when its condition is true \u2014 describe when the entry is\n <strong>wrong</strong>.</span>\n </p>\n\n <mat-chip-listbox [disabled]=\"disabled\" aria-label=\"Validation rules\">\n @for (validator of value; track trackValidator(validator)) {\n <mat-chip-option\n class=\"lib-validators-config__chip\"\n [selected]=\"isEditing(validator)\"\n (click)=\"editV(validator)\"\n >\n <span class=\"lib-validators-config__chip-label\">\n {{ validatorLabel(validator) | titlecase }}\n </span>\n\n @if (isEditing(validator)) {\n <mat-icon matChipTrailingIcon>check_circle</mat-icon>\n } @else {\n <button matChipRemove [attr.aria-label]=\"'remove validator'\" (click)=\"remove(validator)\">\n <mat-icon>cancel</mat-icon>\n </button>\n }\n </mat-chip-option>\n }\n\n @if (!edit()) {\n <mat-chip-option\n class=\"lib-validators-config__add\"\n matTooltip=\"Add a new validation rule\"\n [selectable]=\"false\"\n [disabled]=\"disabled\"\n (click)=\"addValidator()\"\n >\n Add rule\n <mat-icon matChipTrailingIcon>add</mat-icon>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n</section>\n\n@if (edit(); as draft) {\n<mat-card class=\"lib-validators-config__editor\" (click)=\"$event.stopPropagation()\">\n <label class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">Error message</span>\n <textarea\n class=\"lib-validators-config__control lib-validators-config__textarea\"\n rows=\"2\"\n [value]=\"draft.message\"\n (input)=\"onTextChange($event, 'message')\"\n placeholder=\"e.g. End date must be after the start date\"\n ></textarea>\n </label>\n\n <div class=\"lib-validators-config__condition-head\">\n <span class=\"lib-validators-config__f-label\">Show this error when</span>\n @if (!raw() && group().conditions.length > 1) {\n <div class=\"lib-validators-config__match\">\n <mat-button-toggle-group\n class=\"lib-validators-config__seg\"\n [value]=\"group().connector\"\n hideSingleSelectionIndicator\n (change)=\"setConnector($event.value)\"\n aria-label=\"Combine conditions\"\n >\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-validators-config__muted\">of these match</span>\n </div>\n }\n </div>\n\n @if (raw()) {\n <label class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">Expression</span>\n <textarea\n class=\"lib-validators-config__control lib-validators-config__textarea lib-validators-config__mono\"\n rows=\"2\"\n [value]=\"draft.expression\"\n (input)=\"onTextChange($event, 'expression')\"\n placeholder='e.g. endDate < startDate'\n ></textarea>\n </label>\n @if (syntaxError(); as error) {\n <p class=\"lib-validators-config__error\">\n <mat-icon class=\"lib-validators-config__error-icon\">error_outline</mat-icon>\n <span>{{ error }}</span>\n </p>\n } @else {\n <p class=\"lib-validators-config__sub-hint\">\n True means the entry is invalid. Reference a field by its name; comparisons use\n <code>===</code>, <code>></code>, <code>includes</code> \u2026\n </p>\n }\n } @else {\n @if (fieldOptions().length === 0) {\n <p class=\"lib-validators-config__sub-hint\">\n No fields available yet \u2014 switch to Advanced to type an expression.\n </p>\n }\n @for (cond of group().conditions; track $index; let first = $first) {\n @if (!first) {\n <div class=\"lib-validators-config__connector\" aria-hidden=\"true\">\n <span>{{ group().connector === '&&' ? 'AND' : 'OR' }}</span>\n </div>\n }\n <div class=\"lib-validators-config__cond\">\n <div class=\"lib-validators-config__cond-body\">\n <label class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">Field</span>\n <select\n class=\"lib-validators-config__control\"\n [class.lib-validators-config__control--invalid]=\"!cond.field\"\n (change)=\"updateCondition($index, { field: inputValue($event) })\"\n >\n <option value=\"\" disabled [selected]=\"!cond.field\">Choose a field</option>\n @if (directFields().length) {\n <optgroup label=\"Fields\">\n @for (f of directFields(); track f.variable) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.field\">\n {{ f.label }}{{ f.isSelf ? ' (this field)' : '' }}\n </option>\n }\n </optgroup>\n }\n @if (listFields().length) {\n <optgroup label=\"List fields (totalled)\">\n @for (f of listFields(); track f.variable) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.field\">{{ f.label }}</option>\n }\n </optgroup>\n }\n </select>\n </label>\n\n <div class=\"lib-validators-config__cond-pair\">\n <label class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">Condition</span>\n <select\n class=\"lib-validators-config__control\"\n (change)=\"updateCondition($index, { operator: inputValue($event) })\"\n >\n @for (op of operators; track op.value) {\n <option [value]=\"op.value\" [selected]=\"op.value === cond.operator\">{{ op.label }}</option>\n }\n </select>\n </label>\n\n <div class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">\n {{ cond.compareTo === 'field' ? 'Other field' : 'Value' }}\n </span>\n <div class=\"lib-validators-config__value\">\n @if (cond.compareTo === 'field') {\n <select\n class=\"lib-validators-config__control\"\n [class.lib-validators-config__control--invalid]=\"!cond.value\"\n (change)=\"updateCondition($index, { value: inputValue($event) })\"\n >\n <option value=\"\" disabled [selected]=\"!cond.value\">Choose a field</option>\n @if (directFields().length) {\n <optgroup label=\"Fields\">\n @for (f of directFields(); track f.variable) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.value\">\n {{ f.label }}{{ f.isSelf ? ' (this field)' : '' }}\n </option>\n }\n </optgroup>\n }\n @if (listFields().length) {\n <optgroup label=\"List fields (totalled)\">\n @for (f of listFields(); track f.variable) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.value\">{{ f.label }}</option>\n }\n </optgroup>\n }\n </select>\n } @else {\n <input\n class=\"lib-validators-config__control\"\n [class.lib-validators-config__control--invalid]=\"!cond.value\"\n [value]=\"cond.value\"\n (input)=\"updateCondition($index, { value: inputValue($event) })\"\n placeholder=\"e.g. 18\"\n />\n }\n <button\n type=\"button\"\n class=\"lib-validators-config__value-toggle\"\n (click)=\"toggleCompareTo($index)\"\n [attr.aria-label]=\"\n cond.compareTo === 'field' ? 'Compare to a typed value' : 'Compare to another field'\n \"\n [matTooltip]=\"\n cond.compareTo === 'field' ? 'Compare to a typed value' : 'Compare to another field'\n \"\n >\n <mat-icon>{{ cond.compareTo === 'field' ? 'edit' : 'link' }}</mat-icon>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <button\n type=\"button\"\n class=\"lib-validators-config__cond-remove\"\n mat-icon-button\n (click)=\"removeCondition($index)\"\n matTooltip=\"Remove condition\"\n aria-label=\"Remove condition\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n }\n\n <button type=\"button\" class=\"lib-validators-config__link\" (click)=\"addCondition()\">\n <mat-icon>add</mat-icon> Add condition\n </button>\n }\n\n @if (referencedListFields().length) {\n <div class=\"lib-validators-config__lists\">\n <span class=\"lib-validators-config__f-label\">Combine each list</span>\n <p class=\"lib-validators-config__sub-hint\">\n A list field has many rows. Choose how to reduce it to one value when comparing against a\n single field or value \u2014 optional when comparing two lists.\n </p>\n @for (f of referencedListFields(); track f.variable) {\n <div\n class=\"lib-validators-config__list-row\"\n [class.lib-validators-config__list-row--unset]=\"\n isAggregateRequired(f.variable) && !currentFunction(f.variable)\n \"\n >\n <span class=\"lib-validators-config__list-name\">\n {{ f.label }}\n @if (!isAggregateRequired(f.variable)) {\n <span class=\"lib-validators-config__list-optional\">optional</span>\n }\n </span>\n <div class=\"lib-validators-config__agg\" role=\"group\" [attr.aria-label]=\"'Combine ' + f.label\">\n @for (agg of aggregatesFor(f); track agg.value) {\n <button\n type=\"button\"\n class=\"lib-validators-config__agg-chip\"\n [class.lib-validators-config__agg-chip--on]=\"currentFunction(f.variable) === agg.value\"\n (click)=\"setFunction(f.variable, agg.value)\"\n >\n {{ agg.label }}\n </button>\n }\n </div>\n </div>\n }\n </div>\n }\n\n @if (draft.expression) {\n <div class=\"lib-validators-config__preview\">\n <span class=\"lib-validators-config__f-label\">Generated</span>\n <code>{{ draft.expression }}</code>\n </div>\n }\n\n <div class=\"lib-validators-config__override\">\n <mat-slide-toggle\n name=\"canOverride\"\n [checked]=\"draft.canOverride\"\n (change)=\"setCanOverride($event.checked)\"\n >\n <span class=\"lib-validators-config__toggle-label\">Users can override this rule</span>\n </mat-slide-toggle>\n <span class=\"lib-validators-config__sub-hint\">\n @if (draft.canOverride) { Shown as a warning \u2014 the form can still be submitted. } @else { Blocks\n submission until the entry is fixed. }\n </span>\n </div>\n\n <div class=\"lib-validators-config__foot\">\n @if (raw()) {\n <button\n type=\"button\"\n class=\"lib-validators-config__link\"\n [disabled]=\"!canUseGuided()\"\n [matTooltip]=\"canUseGuided() ? '' : 'This expression is too advanced for the guided builder'\"\n (click)=\"useGuided()\"\n >\n <mat-icon>view_module</mat-icon> Guided\n </button>\n } @else {\n <button type=\"button\" class=\"lib-validators-config__link\" (click)=\"useRaw()\">\n <mat-icon>code</mat-icon> Advanced\n </button>\n }\n </div>\n\n @if (saveHint(); as hint) {\n <p class=\"lib-validators-config__save-hint\">\n <mat-icon class=\"lib-validators-config__save-hint-icon\">info</mat-icon>\n <span>{{ hint }}</span>\n </p>\n }\n\n <mat-toolbar class=\"lib-validators-config__toolbar\">\n <span class=\"lib-validators-config__spacer\"></span>\n <button mat-button (click)=\"closeEditor()\">Close</button>\n <button mat-raised-button color=\"accent\" [disabled]=\"!canSave()\" (click)=\"saveVariable()\">\n Save rule\n </button>\n </mat-toolbar>\n</mat-card>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block}.lib-validators-config__title{margin:0 0 .5rem;font-size:.9375rem;font-weight:500;letter-spacing:-.01em;color:var(--lib-forms-on-surface)}.lib-validators-config__hint{display:flex;align-items:flex-start;gap:.5rem;margin:0 0 1.25rem;font-size:.8125rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__hint-icon{flex:none;font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-validators-config__chip{height:fit-content;padding:.5rem;cursor:pointer}.lib-validators-config__chip-label{white-space:normal}.lib-validators-config__add{cursor:pointer}.lib-validators-config__editor{display:flex;flex-direction:column;gap:1.25rem;margin-top:1.25rem;padding:1.5rem;background:var(--lib-forms-surface-container-low);border-radius:var(--lib-forms-radius-lg, 16px);box-shadow:var(--lib-forms-shadow-edge)}.lib-validators-config__field{display:flex;flex-direction:column;gap:.25rem;min-width:0}.lib-validators-config__f-label{font-size:.625rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__control{box-sizing:border-box;width:100%;min-width:0;height:2.125rem;padding:.375rem .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, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}select.lib-validators-config__control{cursor:pointer}.lib-validators-config__textarea{height:auto;min-height:2.75rem;line-height:1.45;resize:vertical}.lib-validators-config__mono{font-family:var(--lib-forms-font-mono, monospace)}.lib-validators-config__control:hover{border-color:var(--lib-forms-outline)}.lib-validators-config__control:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 1px var(--lib-forms-primary)}.lib-validators-config__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-validators-config__condition-head{display:flex;flex-direction:column;gap:.625rem}.lib-validators-config__match{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap}.lib-validators-config__match ::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}.lib-validators-config__match ::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)}.lib-validators-config__match ::ng-deep .mat-button-toggle+.mat-button-toggle{border-left:none}.lib-validators-config__match ::ng-deep .mat-button-toggle-button{height:auto}.lib-validators-config__match ::ng-deep .mat-button-toggle-label-content{padding:.25rem .75rem;line-height:1.5;font-size:.75rem;font-weight:600}.lib-validators-config__match ::ng-deep .mat-button-toggle-checked{background:var(--lib-forms-surface);color:var(--lib-forms-primary);box-shadow:var(--lib-forms-shadow-edge)}.lib-validators-config__match ::ng-deep .mat-pseudo-checkbox{display:none}.lib-validators-config__muted{font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__connector{display:flex;justify-content:center;margin:-.375rem 0}.lib-validators-config__connector span{padding:.0625rem .5rem;font-size:.625rem;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-validators-config__cond{display:grid;grid-template-columns:1fr auto;align-items:start;gap:.375rem;padding:.75rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md)}.lib-validators-config__cond-body{display:flex;flex-direction:column;gap:.625rem;min-width:0}.lib-validators-config__cond-pair{display:grid;grid-template-columns:8.5rem 1fr;gap:.5rem;min-width:0}.lib-validators-config__value{display:flex;align-items:center;gap:.25rem;min-width:0}.lib-validators-config__value-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.125rem;height:2.125rem;padding:0;color:var(--lib-forms-on-surface-variant);background:transparent;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm);cursor:pointer;transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__value-toggle:hover{color:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-validators-config__value-toggle mat-icon{font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-validators-config__cond-remove{width:2rem;height:2rem;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__link{display:inline-flex;align-items:center;align-self:flex-start;gap:.25rem;height:1.875rem;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, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__link:hover:not(:disabled){background:var(--lib-forms-primary-container)}.lib-validators-config__link:disabled{color:var(--lib-forms-on-surface-variant);cursor:default;opacity:.6}.lib-validators-config__link mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-validators-config__lists{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md)}.lib-validators-config__list-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.lib-validators-config__list-name{font-size:.8125rem;font-weight:500;color:var(--lib-forms-on-surface)}.lib-validators-config__list-row--unset .lib-validators-config__list-name:after{content:\" \\2014 pick one\";font-weight:400;color:var(--sem-warning, var(--lib-forms-on-surface-variant))}.lib-validators-config__list-optional{margin-left:.375rem;font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__agg{display:inline-flex;flex-wrap:wrap;gap:.25rem}.lib-validators-config__agg-chip{padding:.1875rem .5rem;font:inherit;font-size:.75rem;font-weight:500;color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-pill, 999px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),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-validators-config__agg-chip:hover{border-color:var(--lib-forms-primary);color:var(--lib-forms-primary)}.lib-validators-config__agg-chip--on{color:var(--lib-forms-on-primary, var(--mat-sys-on-primary));background:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-validators-config__preview{display:flex;align-items:baseline;gap:.5rem;padding:.5rem .625rem;background:var(--lib-forms-surface-container-lowest);border:1px dashed var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm)}.lib-validators-config__preview .lib-validators-config__f-label{flex:none}.lib-validators-config__preview code{font-family:var(--lib-forms-font-mono, monospace);font-size:.75rem;color:var(--lib-forms-on-surface-variant);word-break:break-word}.lib-validators-config__sub-hint{margin:0;font-size:.75rem;line-height:1.45;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__sub-hint code,.lib-validators-config__error code{font-family:var(--lib-forms-font-mono, monospace);padding:.0625rem .25rem;background:var(--lib-forms-surface-container-high);border-radius:var(--lib-forms-radius-sm)}.lib-validators-config__error{display:flex;align-items:flex-start;gap:.375rem;margin:0;font-size:.75rem;line-height:1.45;color:var(--sem-error, var(--mat-sys-error))}.lib-validators-config__error-icon{flex:none;font-size:1rem;width:1rem;height:1rem}.lib-validators-config__override{display:flex;flex-direction:column;gap:.5rem}.lib-validators-config__toggle-label{margin-left:.5rem;font-size:.8125rem}.lib-validators-config__foot{display:flex;justify-content:flex-end;margin-top:-.5rem}.lib-validators-config__save-hint{display:flex;align-items:flex-start;gap:.375rem;margin:0;font-size:.75rem;line-height:1.45;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__save-hint-icon{flex:none;font-size:1rem;width:1rem;height:1rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-validators-config__toolbar{background:transparent;padding:0}.lib-validators-config__spacer{flex:1 1 auto}\n"] }]
|
|
1095
|
-
}], null, { disabled: [{
|
|
1096
|
-
type: Input
|
|
1097
|
-
}], value: [{
|
|
1098
|
-
type: Input
|
|
1099
|
-
}], errors: [{
|
|
1100
|
-
type: Input
|
|
1101
|
-
}], mapToData: [{ type: i0.Input, args: [{ isSignal: true, alias: "mapToData", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] }); })();
|
|
1102
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ValidatorsConfigComponent, { className: "ValidatorsConfigComponent", filePath: "lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.ts", lineNumber: 123 }); })();
|
|
1103
|
-
|
|
1104
|
-
export { ValidatorsConfigComponent };
|
|
1105
|
-
//# sourceMappingURL=ngx-t-forms-validators-config.component-DjLB40z-.mjs.map
|