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,545 +0,0 @@
|
|
|
1
|
-
import * as i4 from '@angular/cdk/portal';
|
|
2
|
-
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
3
|
-
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
4
|
-
import * as i0 from '@angular/core';
|
|
5
|
-
import { inject, ElementRef, DestroyRef, signal, input, output, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
6
|
-
import { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
|
-
import { NgControl } from '@angular/forms';
|
|
8
|
-
import * as i1 from '@angular/material/button';
|
|
9
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
10
|
-
import { MatCardModule } from '@angular/material/card';
|
|
11
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
12
|
-
import * as i5 from '@angular/material/expansion';
|
|
13
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
14
|
-
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
15
|
-
import * as i3 from '@angular/material/icon';
|
|
16
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
-
import * as i4$1 from '@angular/material/progress-spinner';
|
|
18
|
-
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
19
|
-
import * as i5$1 from '@angular/material/table';
|
|
20
|
-
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
21
|
-
import * as i5$2 from '@angular/material/tooltip';
|
|
22
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
23
|
-
import { Subject } from 'rxjs';
|
|
24
|
-
import { m as NESTED_EDITOR_COMPONENT, n as safeReturnDeepProperty, _ as _isEqual, a as assignDeepPropertyToObject, E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
|
|
25
|
-
|
|
26
|
-
const RecordListManagerComponent_Conditional_7_For_3_For_7_Defer_3_DepsFn = () => [i4.CdkPortalOutlet];
|
|
27
|
-
const _forTrack0 = ($index, $item) => $item.value;
|
|
28
|
-
const _forTrack1 = ($index, $item) => $item.id;
|
|
29
|
-
function RecordListManagerComponent_For_3_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "th", 10);
|
|
31
|
-
i0.ɵɵtext(1);
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
} if (rf & 2) {
|
|
34
|
-
const col_r1 = i0.ɵɵnextContext().$implicit;
|
|
35
|
-
i0.ɵɵadvance();
|
|
36
|
-
i0.ɵɵtextInterpolate(col_r1.label);
|
|
37
|
-
} }
|
|
38
|
-
function RecordListManagerComponent_For_3_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
40
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
41
|
-
i0.ɵɵlistener("click", function RecordListManagerComponent_For_3_td_2_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const row_r3 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.editItem(row_r3)); });
|
|
42
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
43
|
-
i0.ɵɵtext(2, "edit");
|
|
44
|
-
i0.ɵɵelementEnd()();
|
|
45
|
-
i0.ɵɵelementStart(3, "button", 13);
|
|
46
|
-
i0.ɵɵlistener("click", function RecordListManagerComponent_For_3_td_2_Conditional_1_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r2); const row_r3 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.removeItem(row_r3)); });
|
|
47
|
-
i0.ɵɵelementStart(4, "mat-icon");
|
|
48
|
-
i0.ɵɵtext(5, "delete");
|
|
49
|
-
i0.ɵɵelementEnd()();
|
|
50
|
-
} if (rf & 2) {
|
|
51
|
-
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
52
|
-
i0.ɵɵproperty("disabled", ctx_r3.disabled);
|
|
53
|
-
i0.ɵɵadvance(3);
|
|
54
|
-
i0.ɵɵproperty("disabled", ctx_r3.disabled);
|
|
55
|
-
} }
|
|
56
|
-
function RecordListManagerComponent_For_3_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
-
i0.ɵɵtext(0);
|
|
58
|
-
} if (rf & 2) {
|
|
59
|
-
const row_r3 = i0.ɵɵnextContext().$implicit;
|
|
60
|
-
const col_r1 = i0.ɵɵnextContext().$implicit;
|
|
61
|
-
i0.ɵɵtextInterpolate1(" ", row_r3[col_r1.value], " ");
|
|
62
|
-
} }
|
|
63
|
-
function RecordListManagerComponent_For_3_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
-
i0.ɵɵelementStart(0, "td", 11);
|
|
65
|
-
i0.ɵɵconditionalCreate(1, RecordListManagerComponent_For_3_td_2_Conditional_1_Template, 6, 2)(2, RecordListManagerComponent_For_3_td_2_Conditional_2_Template, 1, 1);
|
|
66
|
-
i0.ɵɵelementEnd();
|
|
67
|
-
} if (rf & 2) {
|
|
68
|
-
const col_r1 = i0.ɵɵnextContext().$implicit;
|
|
69
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
70
|
-
i0.ɵɵadvance();
|
|
71
|
-
i0.ɵɵconditional(ctx_r3.isActionsColumn(col_r1.value) ? 1 : 2);
|
|
72
|
-
} }
|
|
73
|
-
function RecordListManagerComponent_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
74
|
-
i0.ɵɵelementContainerStart(0, 2);
|
|
75
|
-
i0.ɵɵtemplate(1, RecordListManagerComponent_For_3_th_1_Template, 2, 1, "th", 8)(2, RecordListManagerComponent_For_3_td_2_Template, 3, 1, "td", 9);
|
|
76
|
-
i0.ɵɵelementContainerEnd();
|
|
77
|
-
} if (rf & 2) {
|
|
78
|
-
const col_r1 = ctx.$implicit;
|
|
79
|
-
i0.ɵɵproperty("matColumnDef", col_r1.value);
|
|
80
|
-
} }
|
|
81
|
-
function RecordListManagerComponent_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
-
i0.ɵɵelement(0, "tr", 14);
|
|
83
|
-
} }
|
|
84
|
-
function RecordListManagerComponent_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
85
|
-
i0.ɵɵelement(0, "tr", 15);
|
|
86
|
-
} }
|
|
87
|
-
function RecordListManagerComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
88
|
-
i0.ɵɵelement(0, "lib-empty-state", 5);
|
|
89
|
-
} }
|
|
90
|
-
function RecordListManagerComponent_Conditional_7_For_3_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
91
|
-
i0.ɵɵelementStart(0, "span", 21);
|
|
92
|
-
i0.ɵɵtext(1);
|
|
93
|
-
i0.ɵɵelementEnd();
|
|
94
|
-
} if (rf & 2) {
|
|
95
|
-
const section_r6 = i0.ɵɵnextContext().$implicit;
|
|
96
|
-
const editing_r7 = i0.ɵɵnextContext();
|
|
97
|
-
i0.ɵɵadvance();
|
|
98
|
-
i0.ɵɵtextInterpolate1(" ", editing_r7[section_r6.showItemValue], " ");
|
|
99
|
-
} }
|
|
100
|
-
function RecordListManagerComponent_Conditional_7_For_3_For_7_Defer_1_ng_template_0_Template(rf, ctx) { }
|
|
101
|
-
function RecordListManagerComponent_Conditional_7_For_3_For_7_Defer_1_Template(rf, ctx) { if (rf & 1) {
|
|
102
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
103
|
-
i0.ɵɵtemplate(0, RecordListManagerComponent_Conditional_7_For_3_For_7_Defer_1_ng_template_0_Template, 0, 0, "ng-template", 23);
|
|
104
|
-
i0.ɵɵlistener("attached", function RecordListManagerComponent_Conditional_7_For_3_For_7_Defer_1_Template_ng_template_attached_0_listener($event) { i0.ɵɵrestoreView(_r8); const element_r9 = i0.ɵɵnextContext().$implicit; const ctx_r3 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r3.onPortalAttached($event, element_r9)); });
|
|
105
|
-
} if (rf & 2) {
|
|
106
|
-
const element_r9 = i0.ɵɵnextContext().$implicit;
|
|
107
|
-
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
108
|
-
i0.ɵɵproperty("cdkPortalOutlet", ctx_r3.portals()[element_r9.id]);
|
|
109
|
-
} }
|
|
110
|
-
function RecordListManagerComponent_Conditional_7_For_3_For_7_DeferPlaceholder_2_Template(rf, ctx) { if (rf & 1) {
|
|
111
|
-
i0.ɵɵelementStart(0, "div", 24);
|
|
112
|
-
i0.ɵɵelement(1, "mat-spinner", 25);
|
|
113
|
-
i0.ɵɵelementEnd();
|
|
114
|
-
} }
|
|
115
|
-
function RecordListManagerComponent_Conditional_7_For_3_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
-
i0.ɵɵelementStart(0, "div", 22);
|
|
117
|
-
i0.ɵɵdomTemplate(1, RecordListManagerComponent_Conditional_7_For_3_For_7_Defer_1_Template, 1, 1)(2, RecordListManagerComponent_Conditional_7_For_3_For_7_DeferPlaceholder_2_Template, 2, 0);
|
|
118
|
-
i0.ɵɵdefer(3, 1, RecordListManagerComponent_Conditional_7_For_3_For_7_Defer_3_DepsFn, null, 2);
|
|
119
|
-
i0.ɵɵdeferOnViewport(0, -1);
|
|
120
|
-
i0.ɵɵelementEnd();
|
|
121
|
-
} }
|
|
122
|
-
function RecordListManagerComponent_Conditional_7_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
123
|
-
i0.ɵɵelementStart(0, "mat-expansion-panel")(1, "mat-expansion-panel-header")(2, "mat-panel-title", 20)(3, "span");
|
|
124
|
-
i0.ɵɵtext(4);
|
|
125
|
-
i0.ɵɵelementEnd();
|
|
126
|
-
i0.ɵɵconditionalCreate(5, RecordListManagerComponent_Conditional_7_For_3_Conditional_5_Template, 2, 1, "span", 21);
|
|
127
|
-
i0.ɵɵelementEnd()();
|
|
128
|
-
i0.ɵɵrepeaterCreate(6, RecordListManagerComponent_Conditional_7_For_3_For_7_Template, 5, 0, "div", 22, _forTrack1);
|
|
129
|
-
i0.ɵɵelementEnd();
|
|
130
|
-
} if (rf & 2) {
|
|
131
|
-
const section_r6 = ctx.$implicit;
|
|
132
|
-
const editing_r7 = i0.ɵɵnextContext();
|
|
133
|
-
i0.ɵɵadvance(4);
|
|
134
|
-
i0.ɵɵtextInterpolate(section_r6.label);
|
|
135
|
-
i0.ɵɵadvance();
|
|
136
|
-
i0.ɵɵconditional(section_r6.showItemValue && editing_r7[section_r6.showItemValue] != null ? 5 : -1);
|
|
137
|
-
i0.ɵɵadvance();
|
|
138
|
-
i0.ɵɵrepeater(section_r6.elements);
|
|
139
|
-
} }
|
|
140
|
-
function RecordListManagerComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
141
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
142
|
-
i0.ɵɵelementStart(0, "div", 6)(1, "mat-accordion", 16);
|
|
143
|
-
i0.ɵɵrepeaterCreate(2, RecordListManagerComponent_Conditional_7_For_3_Template, 8, 2, "mat-expansion-panel", null, _forTrack1);
|
|
144
|
-
i0.ɵɵelementEnd();
|
|
145
|
-
i0.ɵɵelementStart(4, "div", 17)(5, "button", 18);
|
|
146
|
-
i0.ɵɵlistener("click", function RecordListManagerComponent_Conditional_7_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.cancelEdit()); });
|
|
147
|
-
i0.ɵɵtext(6, "Cancel");
|
|
148
|
-
i0.ɵɵelementEnd();
|
|
149
|
-
i0.ɵɵelementStart(7, "button", 19);
|
|
150
|
-
i0.ɵɵlistener("click", function RecordListManagerComponent_Conditional_7_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.saveRecord()); });
|
|
151
|
-
i0.ɵɵtext(8);
|
|
152
|
-
i0.ɵɵelementStart(9, "mat-icon");
|
|
153
|
-
i0.ɵɵtext(10, "save");
|
|
154
|
-
i0.ɵɵelementEnd()()()();
|
|
155
|
-
} if (rf & 2) {
|
|
156
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
157
|
-
i0.ɵɵadvance(2);
|
|
158
|
-
i0.ɵɵrepeater(ctx_r3.sections());
|
|
159
|
-
i0.ɵɵadvance(5);
|
|
160
|
-
i0.ɵɵproperty("disabled", !ctx_r3.canSaveRecord());
|
|
161
|
-
i0.ɵɵadvance();
|
|
162
|
-
i0.ɵɵtextInterpolate1(" ", ctx.id ? "Update" : "Save new", " record ");
|
|
163
|
-
} }
|
|
164
|
-
function RecordListManagerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
165
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
166
|
-
i0.ɵɵelementStart(0, "div", 7)(1, "span", 26);
|
|
167
|
-
i0.ɵɵtext(2);
|
|
168
|
-
i0.ɵɵelementEnd();
|
|
169
|
-
i0.ɵɵelementStart(3, "button", 27);
|
|
170
|
-
i0.ɵɵlistener("click", function RecordListManagerComponent_Conditional_8_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r10); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.addNewItem()); });
|
|
171
|
-
i0.ɵɵelementStart(4, "mat-icon");
|
|
172
|
-
i0.ɵɵtext(5, "add");
|
|
173
|
-
i0.ɵɵelementEnd();
|
|
174
|
-
i0.ɵɵtext(6, " Add Record ");
|
|
175
|
-
i0.ɵɵelementEnd()();
|
|
176
|
-
} if (rf & 2) {
|
|
177
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
178
|
-
i0.ɵɵadvance(2);
|
|
179
|
-
i0.ɵɵtextInterpolate1("Records (", ctx_r3.rowCount(), ")");
|
|
180
|
-
i0.ɵɵadvance();
|
|
181
|
-
i0.ɵɵproperty("disabled", ctx_r3.disabled);
|
|
182
|
-
} }
|
|
183
|
-
/** Synthetic column key for the per-row edit/delete action cell. */
|
|
184
|
-
const ACTIONS_COLUMN = 'actions';
|
|
185
|
-
/**
|
|
186
|
-
* Internal record-list manager. Implements `MatFormFieldControl<unknown[]>` and is
|
|
187
|
-
* embedded by `t-dynamic-data-edit` for `RecordListManager` editor types.
|
|
188
|
-
*
|
|
189
|
-
* Owns only its content (table + edit panel). The parent `mat-form-field` renders
|
|
190
|
-
* the label, hint, and validation errors, so this component adds neither a header
|
|
191
|
-
* nor an inline error list.
|
|
192
|
-
*
|
|
193
|
-
* Per-record editing is delegated to a dynamically-attached `TDynamicDataEditComponent`
|
|
194
|
-
* portal per inner-section element; the portal's `valueChange` output is patched back
|
|
195
|
-
* into the in-edit buffer via the element's `deepBind` path.
|
|
196
|
-
*
|
|
197
|
-
* NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /
|
|
198
|
-
* `required` / `placeholder` / `id` members, `@Input()` decorators, the
|
|
199
|
-
* `focused` / `touched` / `stateChanges` members, and the `useExisting` provider.
|
|
200
|
-
* These are framework wiring, not defects — the CLAUDE.md bans on `@Input()` /
|
|
201
|
-
* `useExisting` do not apply to MatFormFieldControl integration.
|
|
202
|
-
*
|
|
203
|
-
* @internal Not exported via public-api.ts.
|
|
204
|
-
*/
|
|
205
|
-
class RecordListManagerComponent {
|
|
206
|
-
static { this.nextId = 0; }
|
|
207
|
-
#disabled;
|
|
208
|
-
get disabled() {
|
|
209
|
-
return this.#disabled;
|
|
210
|
-
}
|
|
211
|
-
set disabled(value) {
|
|
212
|
-
this.#disabled = coerceBooleanProperty(value);
|
|
213
|
-
this.stateChanges.next();
|
|
214
|
-
}
|
|
215
|
-
#required;
|
|
216
|
-
get required() {
|
|
217
|
-
return this.#required;
|
|
218
|
-
}
|
|
219
|
-
set required(value) {
|
|
220
|
-
this.#required = coerceBooleanProperty(value);
|
|
221
|
-
this.stateChanges.next();
|
|
222
|
-
}
|
|
223
|
-
#placeholder;
|
|
224
|
-
get placeholder() {
|
|
225
|
-
return this.#placeholder;
|
|
226
|
-
}
|
|
227
|
-
set placeholder(value) {
|
|
228
|
-
this.#placeholder = value;
|
|
229
|
-
this.stateChanges.next();
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Record rows held by the table. Parent passes heterogeneous payloads
|
|
233
|
-
* (`{}` initial / arrays / null); non-array writes coerce to an empty list.
|
|
234
|
-
*/
|
|
235
|
-
get value() {
|
|
236
|
-
return this.#rows();
|
|
237
|
-
}
|
|
238
|
-
set value(val) {
|
|
239
|
-
const next = Array.isArray(val) ? val : [];
|
|
240
|
-
this.#rows.set(next);
|
|
241
|
-
this.onChange(next);
|
|
242
|
-
this.stateChanges.next();
|
|
243
|
-
}
|
|
244
|
-
get shouldLabelFloat() {
|
|
245
|
-
return this.focused || !this.empty;
|
|
246
|
-
}
|
|
247
|
-
get empty() {
|
|
248
|
-
return this.#rows().length === 0;
|
|
249
|
-
}
|
|
250
|
-
get errorState() {
|
|
251
|
-
const requiredUnset = this.empty && this.#required && this.touched;
|
|
252
|
-
const ngControlError = this.ngControl?.errors != null;
|
|
253
|
-
const externalError = (this.errors?.length ?? 0) > 0;
|
|
254
|
-
return requiredUnset || ngControlError || externalError;
|
|
255
|
-
}
|
|
256
|
-
#elementRef;
|
|
257
|
-
#destroyRef;
|
|
258
|
-
/** The component portalled per record — injected to avoid a circular import. */
|
|
259
|
-
#nestedEditor;
|
|
260
|
-
constructor() {
|
|
261
|
-
// --- MatFormFieldControl wiring (plain mutable members, framework-mandated) ---
|
|
262
|
-
this.stateChanges = new Subject();
|
|
263
|
-
this.controlType = 'lib-record-list-manager';
|
|
264
|
-
this.focused = false;
|
|
265
|
-
this.touched = false;
|
|
266
|
-
this.autofilled = false;
|
|
267
|
-
this.id = `lib-record-list-manager-${RecordListManagerComponent.nextId++}`;
|
|
268
|
-
this.describedBy = '';
|
|
269
|
-
/** Validation errors surfaced by the parent for error-state derivation. */
|
|
270
|
-
this.errors = [];
|
|
271
|
-
this.#disabled = false;
|
|
272
|
-
this.#required = false;
|
|
273
|
-
this.#placeholder = '';
|
|
274
|
-
// --- DI ---
|
|
275
|
-
this.ngControl = inject(NgControl, { self: true, optional: true });
|
|
276
|
-
this.#elementRef = inject(ElementRef);
|
|
277
|
-
this.#destroyRef = inject(DestroyRef);
|
|
278
|
-
/** The component portalled per record — injected to avoid a circular import. */
|
|
279
|
-
this.#nestedEditor = inject(NESTED_EDITOR_COMPONENT);
|
|
280
|
-
// --- ControlValueAccessor ---
|
|
281
|
-
this.onChange = () => {
|
|
282
|
-
/* noop until registered */
|
|
283
|
-
};
|
|
284
|
-
this.onTouched = () => {
|
|
285
|
-
/* noop until registered */
|
|
286
|
-
};
|
|
287
|
-
// --- Internal reactive state (signal-first) ---
|
|
288
|
-
/** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */
|
|
289
|
-
this.#rows = signal([], ...(ngDevMode ? [{ debugName: "#rows" }] : /* istanbul ignore next */ []));
|
|
290
|
-
/** Table data source whose `.data` mirrors `#rows()`. */
|
|
291
|
-
this.dataSource = new MatTableDataSource([]);
|
|
292
|
-
/** Row currently being edited, or `null` when no edit is in progress. */
|
|
293
|
-
this.#inEdit = signal(null, ...(ngDevMode ? [{ debugName: "#inEdit" }] : /* istanbul ignore next */ []));
|
|
294
|
-
/** Inner editor sections derived from the active editor config. */
|
|
295
|
-
this.#sections = signal([], ...(ngDevMode ? [{ debugName: "#sections" }] : /* istanbul ignore next */ []));
|
|
296
|
-
/** Lazily-built portals keyed by inner-section element id. */
|
|
297
|
-
this.#portals = signal({}, ...(ngDevMode ? [{ debugName: "#portals" }] : /* istanbul ignore next */ []));
|
|
298
|
-
/** Active per-element portal output subscriptions, keyed by element id. */
|
|
299
|
-
this.#portalSubscriptions = new Map();
|
|
300
|
-
/** Form input definitions forwarded into the dynamic editor portals. */
|
|
301
|
-
this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
|
|
302
|
-
/** Editor configuration for this record-list element. */
|
|
303
|
-
this.editorConfig = input(undefined, ...(ngDevMode ? [{ debugName: "editorConfig" }] : /* istanbul ignore next */ []));
|
|
304
|
-
/** Emits whenever the record list value changes. */
|
|
305
|
-
this.valueChange = output();
|
|
306
|
-
// --- Template-facing derived state ---
|
|
307
|
-
this.inEditRow = this.#inEdit.asReadonly();
|
|
308
|
-
this.sections = this.#sections.asReadonly();
|
|
309
|
-
this.portals = this.#portals.asReadonly();
|
|
310
|
-
this.tableColumns = computed(() => [
|
|
311
|
-
...(this.editorConfig()?.options ?? []).map((opt) => ({
|
|
312
|
-
label: String(opt.label),
|
|
313
|
-
value: String(opt.value),
|
|
314
|
-
})),
|
|
315
|
-
{ label: ' ', value: ACTIONS_COLUMN },
|
|
316
|
-
], ...(ngDevMode ? [{ debugName: "tableColumns" }] : /* istanbul ignore next */ []));
|
|
317
|
-
this.displayedColumns = computed(() => this.tableColumns().map((c) => c.value), ...(ngDevMode ? [{ debugName: "displayedColumns" }] : /* istanbul ignore next */ []));
|
|
318
|
-
this.rowCount = computed(() => this.#rows().length, ...(ngDevMode ? [{ debugName: "rowCount" }] : /* istanbul ignore next */ []));
|
|
319
|
-
this.isActionsColumn = (column) => column === ACTIONS_COLUMN;
|
|
320
|
-
/**
|
|
321
|
-
* Whether the in-edit record may be saved: every `required` inner element must
|
|
322
|
-
* resolve to a non-empty value via its `deepBind` path.
|
|
323
|
-
*/
|
|
324
|
-
this.canSaveRecord = computed(() => {
|
|
325
|
-
const editing = this.#inEdit();
|
|
326
|
-
if (!editing || !this.editorConfig()) {
|
|
327
|
-
return false;
|
|
328
|
-
}
|
|
329
|
-
for (const section of this.#sections()) {
|
|
330
|
-
for (const element of section.elements) {
|
|
331
|
-
if (!element.required) {
|
|
332
|
-
continue;
|
|
333
|
-
}
|
|
334
|
-
const { value } = safeReturnDeepProperty(editing, element.deepBind ?? []);
|
|
335
|
-
if (value == null || value === '') {
|
|
336
|
-
return false;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
return true;
|
|
341
|
-
}, ...(ngDevMode ? [{ debugName: "canSaveRecord" }] : /* istanbul ignore next */ []));
|
|
342
|
-
// --- Effects (framework-state sync, not signal writes within) ---
|
|
343
|
-
/** Mirror the rows signal into the Material table data source. */
|
|
344
|
-
this.tableSync = effect(() => {
|
|
345
|
-
this.dataSource.data = this.#rows();
|
|
346
|
-
}, ...(ngDevMode ? [{ debugName: "tableSync" }] : /* istanbul ignore next */ []));
|
|
347
|
-
/**
|
|
348
|
-
* Rebuild the inner-section list and portal map whenever the editor config
|
|
349
|
-
* changes. Portals are recreated per config so a stale `ComponentPortal`
|
|
350
|
-
* (already attached) is never re-used.
|
|
351
|
-
*/
|
|
352
|
-
this.configSync = effect(() => {
|
|
353
|
-
const next = this.editorConfig()?.secondaryElementEditorConfig ?? [];
|
|
354
|
-
if (_isEqual(this.#sections(), next)) {
|
|
355
|
-
return;
|
|
356
|
-
}
|
|
357
|
-
this.#teardownPortalSubscriptions();
|
|
358
|
-
this.#sections.set(next);
|
|
359
|
-
const portals = {};
|
|
360
|
-
for (const section of next) {
|
|
361
|
-
for (const element of section.elements) {
|
|
362
|
-
portals[element.id] = new ComponentPortal(this.#nestedEditor);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
this.#portals.set(portals);
|
|
366
|
-
}, ...(ngDevMode ? [{ debugName: "configSync" }] : /* istanbul ignore next */ []));
|
|
367
|
-
if (this.ngControl != null) {
|
|
368
|
-
this.ngControl.valueAccessor = this;
|
|
369
|
-
}
|
|
370
|
-
this.#destroyRef.onDestroy(() => {
|
|
371
|
-
this.stateChanges.complete();
|
|
372
|
-
this.#teardownPortalSubscriptions();
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
writeValue(value) {
|
|
376
|
-
this.#rows.set(Array.isArray(value) ? value : []);
|
|
377
|
-
this.stateChanges.next();
|
|
378
|
-
}
|
|
379
|
-
registerOnChange(fn) {
|
|
380
|
-
this.onChange = fn;
|
|
381
|
-
}
|
|
382
|
-
registerOnTouched(fn) {
|
|
383
|
-
this.onTouched = fn;
|
|
384
|
-
}
|
|
385
|
-
setDisabledState(isDisabled) {
|
|
386
|
-
this.disabled = isDisabled;
|
|
387
|
-
}
|
|
388
|
-
setDescribedByIds(ids) {
|
|
389
|
-
this.describedBy = ids.join(' ');
|
|
390
|
-
this.#elementRef.nativeElement.setAttribute('aria-describedby', this.describedBy);
|
|
391
|
-
this.stateChanges.next();
|
|
392
|
-
}
|
|
393
|
-
onContainerClick() {
|
|
394
|
-
this.markAsTouched();
|
|
395
|
-
if (!this.focused) {
|
|
396
|
-
this.focused = true;
|
|
397
|
-
this.stateChanges.next();
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
markAsTouched() {
|
|
401
|
-
if (!this.touched) {
|
|
402
|
-
this.touched = true;
|
|
403
|
-
this.onTouched();
|
|
404
|
-
this.stateChanges.next();
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
// --- Internal reactive state (signal-first) ---
|
|
408
|
-
/** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */
|
|
409
|
-
#rows;
|
|
410
|
-
/** Row currently being edited, or `null` when no edit is in progress. */
|
|
411
|
-
#inEdit;
|
|
412
|
-
/** Inner editor sections derived from the active editor config. */
|
|
413
|
-
#sections;
|
|
414
|
-
/** Lazily-built portals keyed by inner-section element id. */
|
|
415
|
-
#portals;
|
|
416
|
-
/** Active per-element portal output subscriptions, keyed by element id. */
|
|
417
|
-
#portalSubscriptions;
|
|
418
|
-
// --- Record actions ---
|
|
419
|
-
addNewItem() {
|
|
420
|
-
this.#inEdit.set({});
|
|
421
|
-
}
|
|
422
|
-
editItem(row) {
|
|
423
|
-
this.#inEdit.set(row);
|
|
424
|
-
}
|
|
425
|
-
cancelEdit() {
|
|
426
|
-
this.#inEdit.set(null);
|
|
427
|
-
}
|
|
428
|
-
saveRecord() {
|
|
429
|
-
const editing = this.#inEdit();
|
|
430
|
-
if (!editing) {
|
|
431
|
-
return;
|
|
432
|
-
}
|
|
433
|
-
let next;
|
|
434
|
-
if (editing.id != null) {
|
|
435
|
-
next = this.value.map((item) => (item.id === editing.id ? editing : item));
|
|
436
|
-
}
|
|
437
|
-
else {
|
|
438
|
-
next = [...this.value, { ...editing, id: crypto.randomUUID() }];
|
|
439
|
-
}
|
|
440
|
-
this.value = next;
|
|
441
|
-
this.#inEdit.set(null);
|
|
442
|
-
this.valueChange.emit(this.value);
|
|
443
|
-
}
|
|
444
|
-
removeItem(item) {
|
|
445
|
-
this.value = this.value.filter((row) => row.id !== item.id);
|
|
446
|
-
if (this.#inEdit()?.id === item.id) {
|
|
447
|
-
this.#inEdit.set(null);
|
|
448
|
-
}
|
|
449
|
-
this.valueChange.emit(this.value);
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* Wire a freshly-attached per-record editor portal: push the current inputs in,
|
|
453
|
-
* and patch the in-edit buffer whenever the inner editor emits a value. The
|
|
454
|
-
* subscription is keyed by element id and torn down on config change / destroy.
|
|
455
|
-
*/
|
|
456
|
-
onPortalAttached(portalRef, element) {
|
|
457
|
-
const componentRef = portalRef;
|
|
458
|
-
componentRef.setInput('formInputs', this.formInputs());
|
|
459
|
-
componentRef.setInput('editorConfig', element);
|
|
460
|
-
componentRef.setInput('data', this.#inEdit());
|
|
461
|
-
this.#portalSubscriptions.get(element.id)?.unsubscribe();
|
|
462
|
-
const sub = outputToObservable(componentRef.instance.valueChange)
|
|
463
|
-
.pipe(takeUntilDestroyed(this.#destroyRef))
|
|
464
|
-
.subscribe((event) => {
|
|
465
|
-
const current = this.#inEdit();
|
|
466
|
-
const draft = (current ? structuredClone(current) : {});
|
|
467
|
-
const patched = assignDeepPropertyToObject(draft, element.deepBind ?? [], event);
|
|
468
|
-
this.#inEdit.set(patched);
|
|
469
|
-
componentRef.setInput('data', patched);
|
|
470
|
-
componentRef.changeDetectorRef.markForCheck();
|
|
471
|
-
});
|
|
472
|
-
this.#portalSubscriptions.set(element.id, sub);
|
|
473
|
-
}
|
|
474
|
-
#teardownPortalSubscriptions() {
|
|
475
|
-
this.#portalSubscriptions.forEach((sub) => sub.unsubscribe());
|
|
476
|
-
this.#portalSubscriptions.clear();
|
|
477
|
-
}
|
|
478
|
-
static { this.ɵfac = function RecordListManagerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RecordListManagerComponent)(); }; }
|
|
479
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RecordListManagerComponent, selectors: [["lib-record-list-manager"]], hostAttrs: [1, "lib-record-list-manager"], hostVars: 4, hostBindings: function RecordListManagerComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
480
|
-
i0.ɵɵdomProperty("id", ctx.id);
|
|
481
|
-
i0.ɵɵattribute("aria-describedby", ctx.describedBy);
|
|
482
|
-
i0.ɵɵclassProp("lib-record-list-manager--floating", ctx.shouldLabelFloat);
|
|
483
|
-
} }, inputs: { mapToData: "mapToData", errors: "errors", disabled: "disabled", required: "required", placeholder: "placeholder", value: "value", formInputs: [1, "formInputs"], editorConfig: [1, "editorConfig"] }, outputs: { valueChange: "valueChange" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }])], decls: 9, vars: 5, consts: [[1, "lib-record-list-manager__table"], ["mat-table", "", 1, "lib-record-list-manager__grid", 3, "dataSource"], [3, "matColumnDef"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", "class", "lib-record-list-manager__row", 4, "matRowDef", "matRowDefColumns"], ["icon", "inbox", "message", "No records yet. Use Add Record to get started."], [1, "lib-record-list-manager__editor"], [1, "lib-record-list-manager__actions", "lib-record-list-manager__actions--list"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", "class", "lib-record-list-manager__cell", 4, "matCellDef"], ["mat-header-cell", ""], ["mat-cell", "", 1, "lib-record-list-manager__cell"], ["type", "button", "mat-icon-button", "", "matTooltip", "Edit", "aria-label", "Edit record", 3, "click", "disabled"], ["type", "button", "mat-icon-button", "", "color", "warn", "matTooltip", "Delete", "aria-label", "Delete record", 3, "click", "disabled"], ["mat-header-row", ""], ["mat-row", "", 1, "lib-record-list-manager__row"], ["togglePosition", "after", 1, "lib-record-list-manager__sections"], [1, "lib-record-list-manager__actions"], ["type", "button", "mat-button", "", "color", "primary", 3, "click"], ["type", "button", "mat-stroked-button", "", "color", "primary", 3, "click", "disabled"], [1, "lib-record-list-manager__section-title"], [1, "lib-record-list-manager__section-value"], [1, "lib-record-list-manager__field"], [3, "attached", "cdkPortalOutlet"], [1, "lib-record-list-manager__loading"], ["diameter", "18"], [1, "lib-record-list-manager__count"], ["type", "button", "mat-stroked-button", "", "color", "primary", "matTooltip", "Add a new record", "aria-label", "Add a new record", 3, "click", "disabled"]], template: function RecordListManagerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
484
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "table", 1);
|
|
485
|
-
i0.ɵɵrepeaterCreate(2, RecordListManagerComponent_For_3_Template, 3, 1, "ng-container", 2, _forTrack0);
|
|
486
|
-
i0.ɵɵtemplate(4, RecordListManagerComponent_tr_4_Template, 1, 0, "tr", 3)(5, RecordListManagerComponent_tr_5_Template, 1, 0, "tr", 4);
|
|
487
|
-
i0.ɵɵelementEnd();
|
|
488
|
-
i0.ɵɵconditionalCreate(6, RecordListManagerComponent_Conditional_6_Template, 1, 0, "lib-empty-state", 5);
|
|
489
|
-
i0.ɵɵelementEnd();
|
|
490
|
-
i0.ɵɵconditionalCreate(7, RecordListManagerComponent_Conditional_7_Template, 11, 2, "div", 6)(8, RecordListManagerComponent_Conditional_8_Template, 7, 2, "div", 7);
|
|
491
|
-
} if (rf & 2) {
|
|
492
|
-
let tmp_5_0;
|
|
493
|
-
i0.ɵɵadvance();
|
|
494
|
-
i0.ɵɵproperty("dataSource", ctx.dataSource);
|
|
495
|
-
i0.ɵɵadvance();
|
|
496
|
-
i0.ɵɵrepeater(ctx.tableColumns());
|
|
497
|
-
i0.ɵɵadvance(2);
|
|
498
|
-
i0.ɵɵproperty("matHeaderRowDef", ctx.displayedColumns());
|
|
499
|
-
i0.ɵɵadvance();
|
|
500
|
-
i0.ɵɵproperty("matRowDefColumns", ctx.displayedColumns());
|
|
501
|
-
i0.ɵɵadvance();
|
|
502
|
-
i0.ɵɵconditional(ctx.rowCount() === 0 ? 6 : -1);
|
|
503
|
-
i0.ɵɵadvance();
|
|
504
|
-
i0.ɵɵconditional((tmp_5_0 = ctx.inEditRow()) ? 7 : 8, tmp_5_0);
|
|
505
|
-
} }, dependencies: [MatButtonModule, i1.MatButton, i1.MatIconButton, MatCardModule,
|
|
506
|
-
MatDividerModule,
|
|
507
|
-
MatExpansionModule, i5.MatAccordion, i5.MatExpansionPanel, i5.MatExpansionPanelHeader, i5.MatExpansionPanelTitle, MatIconModule, i3.MatIcon, MatProgressSpinnerModule, i4$1.MatProgressSpinner, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatTooltipModule, i5$2.MatTooltip, PortalModule,
|
|
508
|
-
EmptyStateComponent], styles: ["[_nghost-%COMP%]{display:block}.lib-record-list-manager__table[_ngcontent-%COMP%]{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting);overflow:hidden}.lib-record-list-manager__grid[_ngcontent-%COMP%]{width:100%;background:transparent}.lib-record-list-manager__row[_ngcontent-%COMP%]{transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-record-list-manager__row[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-record-list-manager__cell[_ngcontent-%COMP%]{color:var(--lib-forms-on-surface)}.mat-column-actions[_ngcontent-%COMP%]{width:6rem;max-width:6rem;padding-right:.5rem;text-align:right;white-space:nowrap}.lib-record-list-manager__editor[_ngcontent-%COMP%]{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.5rem}.lib-record-list-manager__sections[_ngcontent-%COMP%]{display:block}.lib-record-list-manager__section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;width:100%}.lib-record-list-manager__section-value[_ngcontent-%COMP%]{margin-left:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-record-list-manager__field[_ngcontent-%COMP%]{padding:.5rem 0 1.5rem}.lib-record-list-manager__loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem}.lib-record-list-manager__actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.lib-record-list-manager__actions--list[_ngcontent-%COMP%]{margin-top:1.5rem}.lib-record-list-manager__count[_ngcontent-%COMP%]{margin-right:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}"], changeDetection: 0 }); }
|
|
509
|
-
}
|
|
510
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RecordListManagerComponent, [{
|
|
511
|
-
type: Component,
|
|
512
|
-
args: [{ selector: 'lib-record-list-manager', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
|
|
513
|
-
MatButtonModule,
|
|
514
|
-
MatCardModule,
|
|
515
|
-
MatDividerModule,
|
|
516
|
-
MatExpansionModule,
|
|
517
|
-
MatIconModule,
|
|
518
|
-
MatProgressSpinnerModule,
|
|
519
|
-
MatTableModule,
|
|
520
|
-
MatTooltipModule,
|
|
521
|
-
PortalModule,
|
|
522
|
-
EmptyStateComponent,
|
|
523
|
-
], providers: [{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }], host: {
|
|
524
|
-
'class': 'lib-record-list-manager',
|
|
525
|
-
'[id]': 'id',
|
|
526
|
-
'[attr.aria-describedby]': 'describedBy',
|
|
527
|
-
'[class.lib-record-list-manager--floating]': 'shouldLabelFloat',
|
|
528
|
-
}, template: "<div class=\"lib-record-list-manager__table\">\n <table mat-table [dataSource]=\"dataSource\" class=\"lib-record-list-manager__grid\">\n @for (col of tableColumns(); track col.value) {\n <ng-container [matColumnDef]=\"col.value\">\n <th mat-header-cell *matHeaderCellDef>{{ col.label }}</th>\n <td mat-cell *matCellDef=\"let row\" class=\"lib-record-list-manager__cell\">\n @if (isActionsColumn(col.value)) {\n <button\n type=\"button\"\n mat-icon-button\n matTooltip=\"Edit\"\n aria-label=\"Edit record\"\n [disabled]=\"disabled\"\n (click)=\"editItem(row)\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button\n type=\"button\"\n mat-icon-button\n color=\"warn\"\n matTooltip=\"Delete\"\n aria-label=\"Delete record\"\n [disabled]=\"disabled\"\n (click)=\"removeItem(row)\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n } @else {\n {{ row[col.value] }}\n }\n </td>\n </ng-container>\n }\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns()\"></tr>\n <tr\n mat-row\n *matRowDef=\"let row; columns: displayedColumns()\"\n class=\"lib-record-list-manager__row\"\n ></tr>\n </table>\n\n @if (rowCount() === 0) {\n <lib-empty-state\n icon=\"inbox\"\n message=\"No records yet. Use Add Record to get started.\"\n ></lib-empty-state>\n }\n</div>\n\n@if (inEditRow(); as editing) {\n <div class=\"lib-record-list-manager__editor\">\n <mat-accordion class=\"lib-record-list-manager__sections\" togglePosition=\"after\">\n @for (section of sections(); track section.id) {\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title class=\"lib-record-list-manager__section-title\">\n <span>{{ section.label }}</span>\n @if (section.showItemValue && editing[section.showItemValue] != null) {\n <span class=\"lib-record-list-manager__section-value\">\n {{ editing[section.showItemValue] }}\n </span>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n @for (element of section.elements; track element.id) {\n <div class=\"lib-record-list-manager__field\">\n @defer (on viewport) {\n <ng-template\n [cdkPortalOutlet]=\"portals()[element.id]\"\n (attached)=\"onPortalAttached($event, element)\"\n ></ng-template>\n } @placeholder {\n <div class=\"lib-record-list-manager__loading\">\n <mat-spinner diameter=\"18\"></mat-spinner>\n </div>\n }\n </div>\n }\n </mat-expansion-panel>\n }\n </mat-accordion>\n\n <div class=\"lib-record-list-manager__actions\">\n <button type=\"button\" mat-button color=\"primary\" (click)=\"cancelEdit()\">Cancel</button>\n <button\n type=\"button\"\n mat-stroked-button\n color=\"primary\"\n [disabled]=\"!canSaveRecord()\"\n (click)=\"saveRecord()\"\n >\n {{ editing.id ? 'Update' : 'Save new' }} record\n <mat-icon>save</mat-icon>\n </button>\n </div>\n </div>\n} @else {\n <div class=\"lib-record-list-manager__actions lib-record-list-manager__actions--list\">\n <span class=\"lib-record-list-manager__count\">Records ({{ rowCount() }})</span>\n <button\n type=\"button\"\n mat-stroked-button\n color=\"primary\"\n matTooltip=\"Add a new record\"\n aria-label=\"Add a new record\"\n [disabled]=\"disabled\"\n (click)=\"addNewItem()\"\n >\n <mat-icon>add</mat-icon>\n Add Record\n </button>\n </div>\n}\n", styles: [":host{display:block}.lib-record-list-manager__table{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting);overflow:hidden}.lib-record-list-manager__grid{width:100%;background:transparent}.lib-record-list-manager__row{transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-record-list-manager__row:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-record-list-manager__cell{color:var(--lib-forms-on-surface)}.mat-column-actions{width:6rem;max-width:6rem;padding-right:.5rem;text-align:right;white-space:nowrap}.lib-record-list-manager__editor{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.5rem}.lib-record-list-manager__sections{display:block}.lib-record-list-manager__section-title{display:flex;align-items:center;gap:.75rem;width:100%}.lib-record-list-manager__section-value{margin-left:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-record-list-manager__field{padding:.5rem 0 1.5rem}.lib-record-list-manager__loading{display:flex;align-items:center;justify-content:center;padding:2rem}.lib-record-list-manager__actions{display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.lib-record-list-manager__actions--list{margin-top:1.5rem}.lib-record-list-manager__count{margin-right:auto;font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}\n"] }]
|
|
529
|
-
}], () => [], { mapToData: [{
|
|
530
|
-
type: Input
|
|
531
|
-
}], errors: [{
|
|
532
|
-
type: Input
|
|
533
|
-
}], disabled: [{
|
|
534
|
-
type: Input
|
|
535
|
-
}], required: [{
|
|
536
|
-
type: Input
|
|
537
|
-
}], placeholder: [{
|
|
538
|
-
type: Input
|
|
539
|
-
}], value: [{
|
|
540
|
-
type: Input
|
|
541
|
-
}], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], editorConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorConfig", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] }); })();
|
|
542
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RecordListManagerComponent, { className: "RecordListManagerComponent", filePath: "lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.ts", lineNumber: 101 }); })();
|
|
543
|
-
|
|
544
|
-
export { RecordListManagerComponent };
|
|
545
|
-
//# sourceMappingURL=ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs.map
|