ngx-t-forms 3.0.0 → 3.1.1
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-api-endpoint-config.component-CZm3Z_7B.mjs +411 -0
- package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs +643 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs → ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs} +4 -4
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs +513 -0
- package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs} +4 -4
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs +261 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs +166 -0
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs +373 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs +1259 -0
- package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs +417 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-02HnmInT.mjs} +25 -11
- package/fesm2022/ngx-t-forms-editor-js-input.component-02HnmInT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs +86 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
- package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-D-BhLdx6.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs.map → ngx-t-forms-geo-location.component-D-BhLdx6.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs +159 -0
- package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs +2 -0
- package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-s1ryJQy4.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map → ngx-t-forms-input-custom.component-s1ryJQy4.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs +190 -0
- package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs} +2 -3
- package/fesm2022/ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs} +5 -5
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs} +3 -3
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs +447 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs +905 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs} +2738 -415
- package/fesm2022/ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs +85 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs +748 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs} +4 -4
- package/fesm2022/ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs +272 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs +699 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
- package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs → ngx-t-forms-section-report.component-DhSaf85h.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-DhSaf85h.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-D5HFzh35.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-D5HFzh35.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs +169 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
- package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs +574 -0
- package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/styles/_editor-mixins.scss +117 -117
- package/styles/_signature-pad.scss +26 -26
- package/styles/_tokens.scss +148 -148
- package/types/ngx-t-forms.d.ts +110 -6
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
- package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
- package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
- package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
- package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs +0 -2
- package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
- package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
- package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
- package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
- package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs +0 -444
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
- package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
- package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
- package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.ts"],"sourcesContent":["<!--\n The card clips to its radius; the inner element is the ONLY scroll region. Without\n that split a table wider than the editor panel was simply cut off, taking the row\n actions with it — unreachable, with nothing to indicate they were there.\n-->\n<div class=\"lib-record-list-manager__table\">\n <div class=\"lib-record-list-manager__scroll\">\n <table mat-table [dataSource]=\"dataSource\" class=\"lib-record-list-manager__grid\">\n @for (col of tableColumns(); track col.value) {\n <!--\n `stickyEnd` pins the actions column to the right edge, so edit and delete\n stay reachable however far the table is scrolled. Material's own mechanism\n rather than hand-rolled `position: sticky`, which it already handles\n correctly across the table's collapsed borders.\n -->\n <ng-container [matColumnDef]=\"col.value\" [stickyEnd]=\"isActionsColumn(col.value)\">\n <th mat-header-cell *matHeaderCellDef scope=\"col\">{{ 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 class=\"lib-record-list-manager__action\"\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 class=\"lib-record-list-manager__action\"\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 <!--\n Truncated rather than allowed to widen the column: one long value in\n one row should not push every other column out of view. The full text\n stays reachable on hover and to assistive tech.\n -->\n <span class=\"lib-record-list-manager__cell-text\" [title]=\"cellText(row, col.value)\">\n {{ cellText(row, col.value) }}\n </span>\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 </div>\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 visibleSections(); 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","import { CdkPortalOutletAttachedRef, ComponentPortal, PortalModule } from '@angular/cdk/portal';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n Component,\n ComponentRef,\n DestroyRef,\n ElementRef,\n Input,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatDividerModule } from '@angular/material/divider';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTableDataSource, MatTableModule } from '@angular/material/table';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport type {\n ElementEditorConfigSectionInterface,\n ElementEditorInnerSectionElementInterface,\n FormColumnInputs,\n} from 'ngx-t-forms-types';\nimport { Subject, Subscription } from 'rxjs';\nimport { _isEqual } from '../../../../shared/functions/isEqual';\nimport { assignDeepPropertyToObject } from '../../../../shared/functions/assignDeepPropertyToObject';\nimport { safeReturnDeepProperty } from '../../../../shared/functions/getDeepObject';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport type { TDynamicDataEditComponent } from '../../t-dynamic-data-edit.component';\nimport { NESTED_EDITOR_COMPONENT } from '../../nested-editor.token';\nimport { testAgainstItem } from '../../functions/testData';\n\n/** Row shape held by the record list. Heterogeneous wrapper-defined records. */\ntype RecordListRow = Record<string, unknown> & { id?: string };\n\n/** Table column descriptor (label header + the row key it renders). */\ninterface RecordColumn {\n readonly label: string;\n readonly value: string;\n}\n\n/** Synthetic column key for the per-row edit/delete action cell. */\nconst ACTIONS_COLUMN = 'actions';\n\n/**\n * Internal record-list manager. Implements `MatFormFieldControl<unknown[]>` and is\n * embedded by `t-dynamic-data-edit` for `RecordListManager` editor types.\n *\n * Owns only its content (table + edit panel). The parent `mat-form-field` renders\n * the label, hint, and validation errors, so this component adds neither a header\n * nor an inline error list.\n *\n * Per-record editing is delegated to a dynamically-attached `TDynamicDataEditComponent`\n * portal per inner-section element; the portal's `valueChange` output is patched back\n * into the in-edit buffer via the element's `deepBind` path.\n *\n * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /\n * `required` / `placeholder` / `id` members, `@Input()` decorators, the\n * `focused` / `touched` / `stateChanges` members, and the `useExisting` provider.\n * These are framework wiring, not defects — the CLAUDE.md bans on `@Input()` /\n * `useExisting` do not apply to MatFormFieldControl integration.\n *\n * @internal Not exported via public-api.ts.\n */\n@Component({\n selector: 'lib-record-list-manager',\n templateUrl: './record-list-manager.component.html',\n styleUrl: './record-list-manager.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n imports: [\n MatButtonModule,\n MatCardModule,\n MatDividerModule,\n MatExpansionModule,\n MatIconModule,\n MatProgressSpinnerModule,\n MatTableModule,\n MatTooltipModule,\n PortalModule,\n EmptyStateComponent,\n ],\n providers: [{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }],\n host: {\n 'class': 'lib-record-list-manager',\n '[id]': 'id',\n '[attr.aria-describedby]': 'describedBy',\n '[class.lib-record-list-manager--floating]': 'shouldLabelFloat',\n },\n})\nexport class RecordListManagerComponent implements MatFormFieldControl<unknown[]> {\n static nextId = 0;\n\n // --- MatFormFieldControl wiring (plain mutable members, framework-mandated) ---\n readonly stateChanges = new Subject<void>();\n readonly controlType = 'lib-record-list-manager';\n\n focused = false;\n touched = false;\n autofilled = false;\n id = `lib-record-list-manager-${RecordListManagerComponent.nextId++}`;\n describedBy = '';\n\n /** Optional wrapper-supplied mapping payload (shape determined by wrapper). */\n @Input() mapToData: unknown;\n\n /** Validation errors surfaced by the parent for error-state derivation. */\n @Input() errors: IConfigElementError[] | undefined = [];\n\n #disabled = false;\n @Input()\n get disabled(): boolean {\n return this.#disabled;\n }\n set disabled(value: boolean) {\n this.#disabled = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n\n #required = false;\n @Input()\n get required(): boolean {\n return this.#required;\n }\n set required(value: boolean) {\n this.#required = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n\n #placeholder = '';\n @Input()\n get placeholder(): string {\n return this.#placeholder;\n }\n set placeholder(value: string) {\n this.#placeholder = value;\n this.stateChanges.next();\n }\n\n /**\n * Record rows held by the table. Parent passes heterogeneous payloads\n * (`{}` initial / arrays / null); non-array writes coerce to an empty list.\n */\n @Input()\n get value(): RecordListRow[] {\n return this.#rows();\n }\n set value(val: unknown) {\n const next = Array.isArray(val) ? (val as RecordListRow[]) : [];\n this.#rows.set(next);\n this.onChange(next);\n this.stateChanges.next();\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get empty(): boolean {\n return this.#rows().length === 0;\n }\n\n get errorState(): boolean {\n const requiredUnset = this.empty && this.#required && this.touched;\n const ngControlError = this.ngControl?.errors != null;\n const externalError = (this.errors?.length ?? 0) > 0;\n return requiredUnset || ngControlError || externalError;\n }\n\n // --- DI ---\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n readonly #elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly #destroyRef = inject(DestroyRef);\n /** The component portalled per record — injected to avoid a circular import. */\n readonly #nestedEditor = inject(NESTED_EDITOR_COMPONENT);\n\n constructor() {\n if (this.ngControl != null) {\n this.ngControl.valueAccessor = this;\n }\n this.#destroyRef.onDestroy(() => {\n this.stateChanges.complete();\n this.#teardownPortalSubscriptions();\n });\n }\n\n // --- ControlValueAccessor ---\n onChange: (_: unknown) => void = () => {\n /* noop until registered */\n };\n onTouched: () => void = () => {\n /* noop until registered */\n };\n\n writeValue(value: unknown): void {\n this.#rows.set(Array.isArray(value) ? (value as RecordListRow[]) : []);\n this.stateChanges.next();\n }\n\n registerOnChange(fn: (_: unknown) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n\n setDescribedByIds(ids: string[]): void {\n this.describedBy = ids.join(' ');\n this.#elementRef.nativeElement.setAttribute('aria-describedby', this.describedBy);\n this.stateChanges.next();\n }\n\n onContainerClick(): void {\n this.markAsTouched();\n if (!this.focused) {\n this.focused = true;\n this.stateChanges.next();\n }\n }\n\n markAsTouched(): void {\n if (!this.touched) {\n this.touched = true;\n this.onTouched();\n this.stateChanges.next();\n }\n }\n\n // --- Internal reactive state (signal-first) ---\n\n /** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */\n readonly #rows = signal<RecordListRow[]>([]);\n\n /** Table data source whose `.data` mirrors `#rows()`. */\n readonly dataSource = new MatTableDataSource<RecordListRow>([]);\n\n /** Row currently being edited, or `null` when no edit is in progress. */\n readonly #inEdit = signal<RecordListRow | null>(null);\n\n /** Inner editor sections derived from the active editor config. */\n readonly #sections = signal<readonly ElementEditorConfigSectionInterface[]>([]);\n\n /** Lazily-built portals keyed by inner-section element id. */\n readonly #portals = signal<Readonly<Record<string, ComponentPortal<TDynamicDataEditComponent>>>>(\n {},\n );\n\n /** Active per-element portal output subscriptions, keyed by element id. */\n readonly #portalSubscriptions = new Map<string, Subscription>();\n\n /** Form input definitions forwarded into the dynamic editor portals. */\n readonly formInputs = input<Array<FormColumnInputs>>([]);\n\n /** Editor configuration for this record-list element. */\n readonly editorConfig = input<ElementEditorInnerSectionElementInterface | undefined>(undefined);\n\n /** Emits whenever the record list value changes. */\n readonly valueChange = output<RecordListRow[]>();\n\n // --- Template-facing derived state ---\n\n protected readonly inEditRow = this.#inEdit.asReadonly();\n protected readonly portals = this.#portals.asReadonly();\n\n /**\n * Inner sections with each element list narrowed to the elements whose\n * `additionalTest` entries ALL pass against the record being edited — the same\n * rule `isElementApplicable` applies to top-level editor elements.\n *\n * An element without `additionalTest` always shows. When a section hides nothing,\n * the original section object is returned, and when no section hides anything the\n * original array is returned, so consumers that never configured a test (the\n * reports / dashboard chart config, for one) get object-identical output and\n * behave exactly as before.\n */\n protected readonly visibleSections = computed<readonly ElementEditorConfigSectionInterface[]>(\n () => {\n const record = this.#inEdit();\n const sections = this.#sections();\n let narrowed = false;\n const next = sections.map((section) => {\n const elements = section.elements.filter((element) =>\n (element.additionalTest ?? []).every((test) => testAgainstItem(test, record)),\n );\n if (elements.length === section.elements.length) {\n return section;\n }\n narrowed = true;\n return { ...section, elements };\n });\n return narrowed ? next : sections;\n },\n );\n\n protected readonly tableColumns = computed<readonly RecordColumn[]>(() => [\n ...(this.editorConfig()?.options ?? []).map((opt) => ({\n label: String(opt.label),\n value: String(opt.value),\n })),\n { label: ' ', value: ACTIONS_COLUMN },\n ]);\n\n protected readonly displayedColumns = computed<readonly string[]>(() =>\n this.tableColumns().map((c) => c.value),\n );\n\n protected readonly rowCount = computed<number>(() => this.#rows().length);\n\n protected readonly isActionsColumn = (column: string): boolean => column === ACTIONS_COLUMN;\n\n /**\n * A cell's text. Rows are heterogeneous wrapper-defined records, so a column may\n * hold anything; this renders it as one line and an absent value as an empty cell\n * rather than the string `undefined`.\n *\n * Also the `title` for the cell, which is what makes truncation safe — the full\n * value stays readable on hover instead of being lost to the ellipsis.\n *\n * @param row - The record being rendered.\n * @param column - The row key this column shows.\n * @returns The cell's display text, or `''` when the record has no such value.\n */\n protected cellText(row: RecordListRow, column: string): string {\n const value = row[column];\n return value == null ? '' : String(value);\n }\n\n /**\n * Whether the in-edit record may be saved: every `required` inner element must\n * resolve to a non-empty value via its `deepBind` path.\n *\n * Only currently-visible elements are considered — a `required` element hidden by\n * its own `additionalTest` cannot be filled in, so counting it would leave the\n * save button permanently disabled.\n */\n protected readonly canSaveRecord = computed<boolean>(() => {\n const editing = this.#inEdit();\n if (!editing || !this.editorConfig()) {\n return false;\n }\n for (const section of this.visibleSections()) {\n for (const element of section.elements) {\n if (!element.required) {\n continue;\n }\n const { value } = safeReturnDeepProperty(editing, element.deepBind ?? []);\n if (value == null || value === '') {\n return false;\n }\n }\n }\n return true;\n });\n\n // --- Effects (framework-state sync, not signal writes within) ---\n\n /** Mirror the rows signal into the Material table data source. */\n protected readonly tableSync = effect(() => {\n this.dataSource.data = this.#rows();\n });\n\n /**\n * Rebuild the inner-section list and portal map whenever the editor config\n * changes. Portals are recreated per config so a stale `ComponentPortal`\n * (already attached) is never re-used.\n */\n protected readonly configSync = effect(() => {\n const next = this.editorConfig()?.secondaryElementEditorConfig ?? [];\n if (_isEqual(this.#sections(), next)) {\n return;\n }\n this.#teardownPortalSubscriptions();\n this.#sections.set(next);\n const portals: Record<string, ComponentPortal<TDynamicDataEditComponent>> = {};\n for (const section of next) {\n for (const element of section.elements) {\n portals[element.id] = new ComponentPortal(this.#nestedEditor);\n }\n }\n this.#portals.set(portals);\n });\n\n // --- Record actions ---\n\n addNewItem(): void {\n this.#inEdit.set({});\n }\n\n editItem(row: RecordListRow): void {\n this.#inEdit.set(row);\n }\n\n cancelEdit(): void {\n this.#inEdit.set(null);\n }\n\n saveRecord(): void {\n const editing = this.#inEdit();\n if (!editing) {\n return;\n }\n let next: RecordListRow[];\n if (editing.id != null) {\n next = this.value.map((item) => (item.id === editing.id ? editing : item));\n } else {\n next = [...this.value, { ...editing, id: crypto.randomUUID() }];\n }\n this.value = next;\n this.#inEdit.set(null);\n this.valueChange.emit(this.value);\n }\n\n removeItem(item: RecordListRow): void {\n this.value = this.value.filter((row) => row.id !== item.id);\n if (this.#inEdit()?.id === item.id) {\n this.#inEdit.set(null);\n }\n this.valueChange.emit(this.value);\n }\n\n /**\n * Wire a freshly-attached per-record editor portal: push the current inputs in,\n * and patch the in-edit buffer whenever the inner editor emits a value. The\n * subscription is keyed by element id and torn down on config change / destroy.\n *\n * This also runs on RE-attach, because an element hidden by `additionalTest` has\n * its portal outlet destroyed and a brand-new one created when it comes back:\n *\n * - Double-attach cannot happen. `CdkPortalOutlet.ngOnDestroy` disposes the outlet,\n * which detaches the portal and nulls its `_attachedHost`, so the same\n * `ComponentPortal` instance is legitimately re-attachable to the new outlet.\n * Only the outlet is marked disposed, and that one is gone.\n * - Double-subscribe cannot happen either. The previous subscription for this\n * element id is unsubscribed below before the new one replaces it, and it would\n * in any case have completed already: `outputToObservable` completes when the\n * emitting component is destroyed, which also unregisters the\n * `takeUntilDestroyed` hook rather than accumulating one per attach.\n */\n onPortalAttached(\n portalRef: CdkPortalOutletAttachedRef,\n element: ElementEditorInnerSectionElementInterface,\n ): void {\n const componentRef = portalRef as ComponentRef<TDynamicDataEditComponent>;\n componentRef.setInput('formInputs', this.formInputs());\n componentRef.setInput('editorConfig', element);\n componentRef.setInput('data', this.#inEdit());\n\n this.#portalSubscriptions.get(element.id)?.unsubscribe();\n const sub = outputToObservable(componentRef.instance.valueChange)\n .pipe(takeUntilDestroyed(this.#destroyRef))\n .subscribe((event: unknown) => {\n const current = this.#inEdit();\n const draft = (current ? structuredClone(current) : {}) as RecordListRow;\n this.#applyClearOnChange(draft, element, current, event);\n const patched = assignDeepPropertyToObject(\n draft,\n element.deepBind ?? [],\n event,\n ) as RecordListRow;\n this.#inEdit.set(patched);\n componentRef.setInput('data', patched);\n componentRef.changeDetectorRef.markForCheck();\n });\n this.#portalSubscriptions.set(element.id, sub);\n }\n\n /**\n * Blanks the paths an element declares in `clearOnChange`, so choosing one of a\n * pair of mutually exclusive settings drops the other one.\n *\n * Guarded, unlike the top-level editors: it fires only when the element's own\n * bound value moves AWAY from a value the record already carried. The nested\n * editor emits once shortly after every attach — replaying the stored value, or\n * `defaultValue` when the bound key is absent — so an unguarded clear would wipe\n * sibling fields merely because an administrator opened an existing record, and\n * again every time a hidden element was re-shown. Elements without\n * `clearOnChange` are untouched.\n */\n #applyClearOnChange(\n draft: RecordListRow,\n element: ElementEditorInnerSectionElementInterface,\n current: RecordListRow | null,\n nextValue: unknown,\n ): void {\n const paths = element.clearOnChange;\n if (!paths || paths.length === 0) {\n return;\n }\n const { value: previousValue } = safeReturnDeepProperty(current, element.deepBind ?? []);\n // Never set before: this is the first explicit choice, not a change away from\n // something, so there is nothing the administrator asked to discard.\n if (previousValue === undefined || previousValue === '') {\n return;\n }\n if (_isEqual(previousValue, nextValue)) {\n return;\n }\n for (const path of paths) {\n assignDeepPropertyToObject(draft, path, undefined);\n }\n }\n\n #teardownPortalSubscriptions(): void {\n this.#portalSubscriptions.forEach((sub) => sub.unsubscribe());\n this.#portalSubscriptions.clear();\n }\n}\n"],"names":["i2","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBU,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAkD;IAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAe;IAAA,EAAA,CAAA,YAAA,EAAK;;;IAApB,EAAA,CAAA,SAAA,EAAe;IAAf,EAAA,CAAA,iBAAA,CAAA,MAAA,CAAA,KAAA,CAAe;;;;IAG7D,EAAA,CAAA,cAAA,CAAA,CAAA,EAAA,QAAA,EAAA,EAAA,CAQC;AADC,IAAA,EAAA,CAAA,UAAA,CAAA,OAAA,EAAA,SAAA,oFAAA,GAAA,EAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,SAAA,CAAA,CAAA,MAAA,MAAA,GAAA,E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AAgB;oBAChB,YAAY;oBACZ,mBAAmB;iBACpB,EAAA,SAAA,EACU,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,0BAA4B,EAAE,CAAC,EAAA,IAAA,EAChF;AACJ,oBAAA,OAAO,EAAE,yBAAyB;AAClC,oBAAA,MAAM,EAAE,IAAI;AACZ,oBAAA,yBAAyB,EAAE,aAAa;AACxC,oBAAA,2CAA2C,EAAE,kBAAkB;AAChE,iBAAA,EAAA,QAAA,EAAA,ivKAAA,EAAA,MAAA,EAAA,CAAA,ojFAAA,CAAA,EAAA;;kBAgBA;;kBAGA;;kBAGA;;kBAUA;;kBAUA;;kBAaA;;kFArDU,0BAA0B,EAAA,EAAA,SAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,kGAAA,EAAA,UAAA,EAAA,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.html"],"sourcesContent":["import { CdkPortalOutletAttachedRef, ComponentPortal, PortalModule } from '@angular/cdk/portal';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n Component,\n ComponentRef,\n DestroyRef,\n ElementRef,\n Input,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatDividerModule } from '@angular/material/divider';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTableDataSource, MatTableModule } from '@angular/material/table';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport type {\n ElementEditorConfigSectionInterface,\n ElementEditorInnerSectionElementInterface,\n FormColumnInputs,\n} from 'ngx-t-forms-types';\nimport { Subject, Subscription } from 'rxjs';\nimport { _isEqual } from '../../../../shared/functions/isEqual';\nimport { assignDeepPropertyToObject } from '../../../../shared/functions/assignDeepPropertyToObject';\nimport { safeReturnDeepProperty } from '../../../../shared/functions/getDeepObject';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport type { TDynamicDataEditComponent } from '../../t-dynamic-data-edit.component';\nimport { NESTED_EDITOR_COMPONENT } from '../../nested-editor.token';\nimport { testAgainstItem } from '../../functions/testData';\n\n/** Row shape held by the record list. Heterogeneous wrapper-defined records. */\ntype RecordListRow = Record<string, unknown> & { id?: string };\n\n/** Table column descriptor (label header + the row key it renders). */\ninterface RecordColumn {\n readonly label: string;\n readonly value: string;\n}\n\n/** Synthetic column key for the per-row edit/delete action cell. */\nconst ACTIONS_COLUMN = 'actions';\n\n/**\n * Internal record-list manager. Implements `MatFormFieldControl<unknown[]>` and is\n * embedded by `t-dynamic-data-edit` for `RecordListManager` editor types.\n *\n * Owns only its content (table + edit panel). The parent `mat-form-field` renders\n * the label, hint, and validation errors, so this component adds neither a header\n * nor an inline error list.\n *\n * Per-record editing is delegated to a dynamically-attached `TDynamicDataEditComponent`\n * portal per inner-section element; the portal's `valueChange` output is patched back\n * into the in-edit buffer via the element's `deepBind` path.\n *\n * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /\n * `required` / `placeholder` / `id` members, `@Input()` decorators, the\n * `focused` / `touched` / `stateChanges` members, and the `useExisting` provider.\n * These are framework wiring, not defects — the CLAUDE.md bans on `@Input()` /\n * `useExisting` do not apply to MatFormFieldControl integration.\n *\n * @internal Not exported via public-api.ts.\n */\n@Component({\n selector: 'lib-record-list-manager',\n templateUrl: './record-list-manager.component.html',\n styleUrl: './record-list-manager.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n imports: [\n MatButtonModule,\n MatCardModule,\n MatDividerModule,\n MatExpansionModule,\n MatIconModule,\n MatProgressSpinnerModule,\n MatTableModule,\n MatTooltipModule,\n PortalModule,\n EmptyStateComponent,\n ],\n providers: [{ provide: MatFormFieldControl, useExisting: RecordListManagerComponent }],\n host: {\n 'class': 'lib-record-list-manager',\n '[id]': 'id',\n '[attr.aria-describedby]': 'describedBy',\n '[class.lib-record-list-manager--floating]': 'shouldLabelFloat',\n },\n})\nexport class RecordListManagerComponent implements MatFormFieldControl<unknown[]> {\n static nextId = 0;\n\n // --- MatFormFieldControl wiring (plain mutable members, framework-mandated) ---\n readonly stateChanges = new Subject<void>();\n readonly controlType = 'lib-record-list-manager';\n\n focused = false;\n touched = false;\n autofilled = false;\n id = `lib-record-list-manager-${RecordListManagerComponent.nextId++}`;\n describedBy = '';\n\n /** Optional wrapper-supplied mapping payload (shape determined by wrapper). */\n @Input() mapToData: unknown;\n\n /** Validation errors surfaced by the parent for error-state derivation. */\n @Input() errors: IConfigElementError[] | undefined = [];\n\n #disabled = false;\n @Input()\n get disabled(): boolean {\n return this.#disabled;\n }\n set disabled(value: boolean) {\n this.#disabled = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n\n #required = false;\n @Input()\n get required(): boolean {\n return this.#required;\n }\n set required(value: boolean) {\n this.#required = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n\n #placeholder = '';\n @Input()\n get placeholder(): string {\n return this.#placeholder;\n }\n set placeholder(value: string) {\n this.#placeholder = value;\n this.stateChanges.next();\n }\n\n /**\n * Record rows held by the table. Parent passes heterogeneous payloads\n * (`{}` initial / arrays / null); non-array writes coerce to an empty list.\n */\n @Input()\n get value(): RecordListRow[] {\n return this.#rows();\n }\n set value(val: unknown) {\n const next = Array.isArray(val) ? (val as RecordListRow[]) : [];\n this.#rows.set(next);\n this.onChange(next);\n this.stateChanges.next();\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get empty(): boolean {\n return this.#rows().length === 0;\n }\n\n get errorState(): boolean {\n const requiredUnset = this.empty && this.#required && this.touched;\n const ngControlError = this.ngControl?.errors != null;\n const externalError = (this.errors?.length ?? 0) > 0;\n return requiredUnset || ngControlError || externalError;\n }\n\n // --- DI ---\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n readonly #elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly #destroyRef = inject(DestroyRef);\n /** The component portalled per record — injected to avoid a circular import. */\n readonly #nestedEditor = inject(NESTED_EDITOR_COMPONENT);\n\n constructor() {\n if (this.ngControl != null) {\n this.ngControl.valueAccessor = this;\n }\n this.#destroyRef.onDestroy(() => {\n this.stateChanges.complete();\n this.#teardownPortalSubscriptions();\n });\n }\n\n // --- ControlValueAccessor ---\n onChange: (_: unknown) => void = () => {\n /* noop until registered */\n };\n onTouched: () => void = () => {\n /* noop until registered */\n };\n\n writeValue(value: unknown): void {\n this.#rows.set(Array.isArray(value) ? (value as RecordListRow[]) : []);\n this.stateChanges.next();\n }\n\n registerOnChange(fn: (_: unknown) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n\n setDescribedByIds(ids: string[]): void {\n this.describedBy = ids.join(' ');\n this.#elementRef.nativeElement.setAttribute('aria-describedby', this.describedBy);\n this.stateChanges.next();\n }\n\n onContainerClick(): void {\n this.markAsTouched();\n if (!this.focused) {\n this.focused = true;\n this.stateChanges.next();\n }\n }\n\n markAsTouched(): void {\n if (!this.touched) {\n this.touched = true;\n this.onTouched();\n this.stateChanges.next();\n }\n }\n\n // --- Internal reactive state (signal-first) ---\n\n /** Backing rows; the `MatTableDataSource` is kept in sync via an effect. */\n readonly #rows = signal<RecordListRow[]>([]);\n\n /** Table data source whose `.data` mirrors `#rows()`. */\n readonly dataSource = new MatTableDataSource<RecordListRow>([]);\n\n /** Row currently being edited, or `null` when no edit is in progress. */\n readonly #inEdit = signal<RecordListRow | null>(null);\n\n /** Inner editor sections derived from the active editor config. */\n readonly #sections = signal<readonly ElementEditorConfigSectionInterface[]>([]);\n\n /** Lazily-built portals keyed by inner-section element id. */\n readonly #portals = signal<Readonly<Record<string, ComponentPortal<TDynamicDataEditComponent>>>>(\n {},\n );\n\n /** Active per-element portal output subscriptions, keyed by element id. */\n readonly #portalSubscriptions = new Map<string, Subscription>();\n\n /** Form input definitions forwarded into the dynamic editor portals. */\n readonly formInputs = input<Array<FormColumnInputs>>([]);\n\n /** Editor configuration for this record-list element. */\n readonly editorConfig = input<ElementEditorInnerSectionElementInterface | undefined>(undefined);\n\n /** Emits whenever the record list value changes. */\n readonly valueChange = output<RecordListRow[]>();\n\n // --- Template-facing derived state ---\n\n protected readonly inEditRow = this.#inEdit.asReadonly();\n protected readonly portals = this.#portals.asReadonly();\n\n /**\n * Inner sections with each element list narrowed to the elements whose\n * `additionalTest` entries ALL pass against the record being edited — the same\n * rule `isElementApplicable` applies to top-level editor elements.\n *\n * An element without `additionalTest` always shows. When a section hides nothing,\n * the original section object is returned, and when no section hides anything the\n * original array is returned, so consumers that never configured a test (the\n * reports / dashboard chart config, for one) get object-identical output and\n * behave exactly as before.\n */\n protected readonly visibleSections = computed<readonly ElementEditorConfigSectionInterface[]>(\n () => {\n const record = this.#inEdit();\n const sections = this.#sections();\n let narrowed = false;\n const next = sections.map((section) => {\n const elements = section.elements.filter((element) =>\n (element.additionalTest ?? []).every((test) => testAgainstItem(test, record)),\n );\n if (elements.length === section.elements.length) {\n return section;\n }\n narrowed = true;\n return { ...section, elements };\n });\n return narrowed ? next : sections;\n },\n );\n\n protected readonly tableColumns = computed<readonly RecordColumn[]>(() => [\n ...(this.editorConfig()?.options ?? []).map((opt) => ({\n label: String(opt.label),\n value: String(opt.value),\n })),\n { label: ' ', value: ACTIONS_COLUMN },\n ]);\n\n protected readonly displayedColumns = computed<readonly string[]>(() =>\n this.tableColumns().map((c) => c.value),\n );\n\n protected readonly rowCount = computed<number>(() => this.#rows().length);\n\n protected readonly isActionsColumn = (column: string): boolean => column === ACTIONS_COLUMN;\n\n /**\n * A cell's text. Rows are heterogeneous wrapper-defined records, so a column may\n * hold anything; this renders it as one line and an absent value as an empty cell\n * rather than the string `undefined`.\n *\n * Also the `title` for the cell, which is what makes truncation safe — the full\n * value stays readable on hover instead of being lost to the ellipsis.\n *\n * @param row - The record being rendered.\n * @param column - The row key this column shows.\n * @returns The cell's display text, or `''` when the record has no such value.\n */\n protected cellText(row: RecordListRow, column: string): string {\n const value = row[column];\n return value == null ? '' : String(value);\n }\n\n /**\n * Whether the in-edit record may be saved: every `required` inner element must\n * resolve to a non-empty value via its `deepBind` path.\n *\n * Only currently-visible elements are considered — a `required` element hidden by\n * its own `additionalTest` cannot be filled in, so counting it would leave the\n * save button permanently disabled.\n */\n protected readonly canSaveRecord = computed<boolean>(() => {\n const editing = this.#inEdit();\n if (!editing || !this.editorConfig()) {\n return false;\n }\n for (const section of this.visibleSections()) {\n for (const element of section.elements) {\n if (!element.required) {\n continue;\n }\n const { value } = safeReturnDeepProperty(editing, element.deepBind ?? []);\n if (value == null || value === '') {\n return false;\n }\n }\n }\n return true;\n });\n\n // --- Effects (framework-state sync, not signal writes within) ---\n\n /** Mirror the rows signal into the Material table data source. */\n protected readonly tableSync = effect(() => {\n this.dataSource.data = this.#rows();\n });\n\n /**\n * Rebuild the inner-section list and portal map whenever the editor config\n * changes. Portals are recreated per config so a stale `ComponentPortal`\n * (already attached) is never re-used.\n */\n protected readonly configSync = effect(() => {\n const next = this.editorConfig()?.secondaryElementEditorConfig ?? [];\n if (_isEqual(this.#sections(), next)) {\n return;\n }\n this.#teardownPortalSubscriptions();\n this.#sections.set(next);\n const portals: Record<string, ComponentPortal<TDynamicDataEditComponent>> = {};\n for (const section of next) {\n for (const element of section.elements) {\n portals[element.id] = new ComponentPortal(this.#nestedEditor);\n }\n }\n this.#portals.set(portals);\n });\n\n // --- Record actions ---\n\n addNewItem(): void {\n this.#inEdit.set({});\n }\n\n editItem(row: RecordListRow): void {\n this.#inEdit.set(row);\n }\n\n cancelEdit(): void {\n this.#inEdit.set(null);\n }\n\n saveRecord(): void {\n const editing = this.#inEdit();\n if (!editing) {\n return;\n }\n let next: RecordListRow[];\n if (editing.id != null) {\n next = this.value.map((item) => (item.id === editing.id ? editing : item));\n } else {\n next = [...this.value, { ...editing, id: crypto.randomUUID() }];\n }\n this.value = next;\n this.#inEdit.set(null);\n this.valueChange.emit(this.value);\n }\n\n removeItem(item: RecordListRow): void {\n this.value = this.value.filter((row) => row.id !== item.id);\n if (this.#inEdit()?.id === item.id) {\n this.#inEdit.set(null);\n }\n this.valueChange.emit(this.value);\n }\n\n /**\n * Wire a freshly-attached per-record editor portal: push the current inputs in,\n * and patch the in-edit buffer whenever the inner editor emits a value. The\n * subscription is keyed by element id and torn down on config change / destroy.\n *\n * This also runs on RE-attach, because an element hidden by `additionalTest` has\n * its portal outlet destroyed and a brand-new one created when it comes back:\n *\n * - Double-attach cannot happen. `CdkPortalOutlet.ngOnDestroy` disposes the outlet,\n * which detaches the portal and nulls its `_attachedHost`, so the same\n * `ComponentPortal` instance is legitimately re-attachable to the new outlet.\n * Only the outlet is marked disposed, and that one is gone.\n * - Double-subscribe cannot happen either. The previous subscription for this\n * element id is unsubscribed below before the new one replaces it, and it would\n * in any case have completed already: `outputToObservable` completes when the\n * emitting component is destroyed, which also unregisters the\n * `takeUntilDestroyed` hook rather than accumulating one per attach.\n */\n onPortalAttached(\n portalRef: CdkPortalOutletAttachedRef,\n element: ElementEditorInnerSectionElementInterface,\n ): void {\n const componentRef = portalRef as ComponentRef<TDynamicDataEditComponent>;\n componentRef.setInput('formInputs', this.formInputs());\n componentRef.setInput('editorConfig', element);\n componentRef.setInput('data', this.#inEdit());\n\n this.#portalSubscriptions.get(element.id)?.unsubscribe();\n const sub = outputToObservable(componentRef.instance.valueChange)\n .pipe(takeUntilDestroyed(this.#destroyRef))\n .subscribe((event: unknown) => {\n const current = this.#inEdit();\n const draft = (current ? structuredClone(current) : {}) as RecordListRow;\n this.#applyClearOnChange(draft, element, current, event);\n const patched = assignDeepPropertyToObject(\n draft,\n element.deepBind ?? [],\n event,\n ) as RecordListRow;\n this.#inEdit.set(patched);\n componentRef.setInput('data', patched);\n componentRef.changeDetectorRef.markForCheck();\n });\n this.#portalSubscriptions.set(element.id, sub);\n }\n\n /**\n * Blanks the paths an element declares in `clearOnChange`, so choosing one of a\n * pair of mutually exclusive settings drops the other one.\n *\n * Guarded, unlike the top-level editors: it fires only when the element's own\n * bound value moves AWAY from a value the record already carried. The nested\n * editor emits once shortly after every attach — replaying the stored value, or\n * `defaultValue` when the bound key is absent — so an unguarded clear would wipe\n * sibling fields merely because an administrator opened an existing record, and\n * again every time a hidden element was re-shown. Elements without\n * `clearOnChange` are untouched.\n */\n #applyClearOnChange(\n draft: RecordListRow,\n element: ElementEditorInnerSectionElementInterface,\n current: RecordListRow | null,\n nextValue: unknown,\n ): void {\n const paths = element.clearOnChange;\n if (!paths || paths.length === 0) {\n return;\n }\n const { value: previousValue } = safeReturnDeepProperty(current, element.deepBind ?? []);\n // Never set before: this is the first explicit choice, not a change away from\n // something, so there is nothing the administrator asked to discard.\n if (previousValue === undefined || previousValue === '') {\n return;\n }\n if (_isEqual(previousValue, nextValue)) {\n return;\n }\n for (const path of paths) {\n assignDeepPropertyToObject(draft, path, undefined);\n }\n }\n\n #teardownPortalSubscriptions(): void {\n this.#portalSubscriptions.forEach((sub) => sub.unsubscribe());\n this.#portalSubscriptions.clear();\n }\n}\n","<!--\n The card clips to its radius; the inner element is the ONLY scroll region. Without\n that split a table wider than the editor panel was simply cut off, taking the row\n actions with it — unreachable, with nothing to indicate they were there.\n-->\n<div class=\"lib-record-list-manager__table\">\n <div class=\"lib-record-list-manager__scroll\">\n <table mat-table [dataSource]=\"dataSource\" class=\"lib-record-list-manager__grid\">\n @for (col of tableColumns(); track col.value) {\n <!--\n `stickyEnd` pins the actions column to the right edge, so edit and delete\n stay reachable however far the table is scrolled. Material's own mechanism\n rather than hand-rolled `position: sticky`, which it already handles\n correctly across the table's collapsed borders.\n -->\n <ng-container [matColumnDef]=\"col.value\" [stickyEnd]=\"isActionsColumn(col.value)\">\n <th mat-header-cell *matHeaderCellDef scope=\"col\">{{ 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 class=\"lib-record-list-manager__action\"\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 class=\"lib-record-list-manager__action\"\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 <!--\n Truncated rather than allowed to widen the column: one long value in\n one row should not push every other column out of view. The full text\n stays reachable on hover and to assistive tech.\n -->\n <span class=\"lib-record-list-manager__cell-text\" [title]=\"cellText(row, col.value)\">\n {{ cellText(row, col.value) }}\n </span>\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 </div>\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 visibleSections(); 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"],"names":["i1","i4","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoDA;AACA,MAAM,cAAc,GAAG,SAAS;AAEhC;;;;;;;;;;;;;;;;;;;AAmBG;MA2BU,0BAA0B,CAAA;aAC9B,IAAA,CAAA,MAAM,GAAG,C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BAAA,EAAA,YAAA,EAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAChB,YAAY,+BACZ,mBAAmB,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,sBAAA,EAAA,CAAA,MAAA,CAAAC,EAAA,CAAA,eAAA,CAAA,CAAA,EAAA,CAAA,CAAA;;4FAUV,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBA1BtC,SAAS;+BACE,yBAAyB,EAAA,eAAA,EAGlB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,QAAQ,EAAA,OAAA,EAChC;wBACP,eAAe;wBACf,aAAa;wBACb,gBAAgB;wBAChB,kBAAkB;wBAClB,aAAa;wBACb,wBAAwB;wBACxB,cAAc;wBACd,gBAAgB;wBAChB,YAAY;wBACZ,mBAAmB;qBACpB,EAAA,SAAA,EACU,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,0BAA4B,EAAE,CAAC,EAAA,IAAA,EAChF;AACJ,wBAAA,OAAO,EAAE,yBAAyB;AAClC,wBAAA,MAAM,EAAE,IAAI;AACZ,wBAAA,yBAAyB,EAAE,aAAa;AACxC,wBAAA,2CAA2C,EAAE,kBAAkB;AAChE,qBAAA,EAAA,QAAA,EAAA,ivKAAA,EAAA,MAAA,EAAA,CAAA,ojFAAA,CAAA,EAAA;;sBAgBA;;sBAGA;;sBAGA;;sBAUA;;sBAUA;;sBAaA;;;;;"}
|
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, linkedSignal, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/material/button';
|
|
4
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
-
import * as i2$1 from '@angular/material/form-field';
|
|
6
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
7
|
-
import * as i3 from '@angular/material/icon';
|
|
8
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
-
import * as i2$2 from '@angular/material/input';
|
|
10
|
-
import { MatInputModule } from '@angular/material/input';
|
|
11
|
-
import * as i6 from '@angular/material/list';
|
|
12
|
-
import { MatListModule } from '@angular/material/list';
|
|
13
|
-
import * as i7 from '@angular/material/core';
|
|
14
|
-
import { MatRippleModule } from '@angular/material/core';
|
|
15
|
-
import * as i8 from '@angular/material/select';
|
|
16
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
17
|
-
import * as i1 from '@angular/forms';
|
|
18
|
-
import { FormsModule } from '@angular/forms';
|
|
19
|
-
import { MinInputTypes, ElementTypes, InputDataTypes } from 'ngx-t-forms-types';
|
|
20
|
-
import { g as getInputIcon } from './ngx-t-forms-getInputIcon-B4ADgevZ.mjs';
|
|
21
|
-
import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Internal editor element for configuring a form's required (minimum) inputs.
|
|
25
|
-
* Child of `t-dynamic-data-edit`, which supplies the field label, hint, and
|
|
26
|
-
* validation errors — so this component owns only the chip row + edit content.
|
|
27
|
-
*
|
|
28
|
-
* Each required input can be handled three ways: a literal default value, a
|
|
29
|
-
* single-input map (`MapTo`), or a multi-input filter (`MapDocFilter`).
|
|
30
|
-
* Re-selecting the active handling method, chip, or a mapped input toggles it
|
|
31
|
-
* off again.
|
|
32
|
-
*/
|
|
33
|
-
class RequiredInputsComponent {
|
|
34
|
-
constructor() {
|
|
35
|
-
/** Handling-method enum, exposed to the template. */
|
|
36
|
-
this.minInputTypes = MinInputTypes;
|
|
37
|
-
/**
|
|
38
|
-
* Required-input descriptors to render. Heterogeneous wrapper binding — the
|
|
39
|
-
* parent feeds whatever the editor config holds; narrowing here would force
|
|
40
|
-
* wrapper changes.
|
|
41
|
-
*/
|
|
42
|
-
this.value = input([], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
43
|
-
/** All available form inputs the user can map a required input to. */
|
|
44
|
-
this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
|
|
45
|
-
/** Disable user interaction. */
|
|
46
|
-
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
47
|
-
/**
|
|
48
|
-
* Validation errors passed down by the parent editor. Retained on the contract
|
|
49
|
-
* but not rendered here — `t-dynamic-data-edit` owns error display.
|
|
50
|
-
*/
|
|
51
|
-
this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
52
|
-
/** Optional id attribute supplied by the parent editor (used to disambiguate). */
|
|
53
|
-
this.id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
54
|
-
/** Emits the mutated required-input list whenever the user changes a mapping. */
|
|
55
|
-
this.valueChanged = output();
|
|
56
|
-
/**
|
|
57
|
-
* Local, immutable working copy of `value`. Tracks the bound value (the parent
|
|
58
|
-
* re-feeds it after each emit) but stays locally overridable; mutations always
|
|
59
|
-
* produce a new array, and entries are cloned so the parent's array is never
|
|
60
|
-
* mutated in place.
|
|
61
|
-
*/
|
|
62
|
-
this.#workingValue = linkedSignal(() => this.value().map((item) => ({ ...item })), ...(ngDevMode ? [{ debugName: "#workingValue" }] : /* istanbul ignore next */ []));
|
|
63
|
-
/** Name of the required input currently open in the edit panel; `''` when none. */
|
|
64
|
-
this.activeInput = signal('', ...(ngDevMode ? [{ debugName: "activeInput" }] : /* istanbul ignore next */ []));
|
|
65
|
-
/** The chip row: one entry per required input, with derived link/active state. */
|
|
66
|
-
this.chips = computed(() => {
|
|
67
|
-
const active = this.activeInput();
|
|
68
|
-
return this.#workingValue().map((item) => ({
|
|
69
|
-
name: item.name,
|
|
70
|
-
linked: this.#isLinked(item),
|
|
71
|
-
active: item.name === active,
|
|
72
|
-
}));
|
|
73
|
-
}, ...(ngDevMode ? [{ debugName: "chips" }] : /* istanbul ignore next */ []));
|
|
74
|
-
/** The required input currently being edited, or `undefined` when none is active. */
|
|
75
|
-
this.inEdit = computed(() => {
|
|
76
|
-
const active = this.activeInput();
|
|
77
|
-
if (!active) {
|
|
78
|
-
return undefined;
|
|
79
|
-
}
|
|
80
|
-
return this.#workingValue().find((item) => item.name === active);
|
|
81
|
-
}, ...(ngDevMode ? [{ debugName: "inEdit" }] : /* istanbul ignore next */ []));
|
|
82
|
-
/** Handling method of the input in edit; `null` keeps the `mat-select` empty. */
|
|
83
|
-
this.activeType = computed(() => {
|
|
84
|
-
const type = this.inEdit()?.type;
|
|
85
|
-
return type === MinInputTypes.Default ||
|
|
86
|
-
type === MinInputTypes.MapTo ||
|
|
87
|
-
type === MinInputTypes.MapDocFilter
|
|
88
|
-
? type
|
|
89
|
-
: null;
|
|
90
|
-
}, ...(ngDevMode ? [{ debugName: "activeType" }] : /* istanbul ignore next */ []));
|
|
91
|
-
/** Whether the edit panel should show the mappable-input list. */
|
|
92
|
-
this.showMapList = computed(() => {
|
|
93
|
-
const type = this.activeType();
|
|
94
|
-
return type === MinInputTypes.MapTo || type === MinInputTypes.MapDocFilter;
|
|
95
|
-
}, ...(ngDevMode ? [{ debugName: "showMapList" }] : /* istanbul ignore next */ []));
|
|
96
|
-
/**
|
|
97
|
-
* The list of mappable form inputs for the input in edit. Single-select
|
|
98
|
-
* (`MapTo`) collapses to the chosen input once one is picked; multi-select
|
|
99
|
-
* (`MapDocFilter`) always shows the full list with each chosen input flagged.
|
|
100
|
-
*/
|
|
101
|
-
this.mapTargets = computed(() => {
|
|
102
|
-
const edit = this.inEdit();
|
|
103
|
-
if (!edit) {
|
|
104
|
-
return [];
|
|
105
|
-
}
|
|
106
|
-
const all = this.formInputs().map((item) => this.#toTarget(item, edit));
|
|
107
|
-
if (edit.type === MinInputTypes.MapTo) {
|
|
108
|
-
const selected = all.find((target) => target.selected);
|
|
109
|
-
return selected ? [selected] : all;
|
|
110
|
-
}
|
|
111
|
-
return all;
|
|
112
|
-
}, ...(ngDevMode ? [{ debugName: "mapTargets" }] : /* istanbul ignore next */ []));
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Local, immutable working copy of `value`. Tracks the bound value (the parent
|
|
116
|
-
* re-feeds it after each emit) but stays locally overridable; mutations always
|
|
117
|
-
* produce a new array, and entries are cloned so the parent's array is never
|
|
118
|
-
* mutated in place.
|
|
119
|
-
*/
|
|
120
|
-
#workingValue;
|
|
121
|
-
/** Toggle the edit panel for a required input. Re-selecting the active one closes it. */
|
|
122
|
-
toggleActive(name) {
|
|
123
|
-
if (this.disabled()) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
this.activeInput.update((current) => (current === name ? '' : name));
|
|
127
|
-
}
|
|
128
|
-
/** Close the edit panel without changing anything. */
|
|
129
|
-
close() {
|
|
130
|
-
this.activeInput.set('');
|
|
131
|
-
}
|
|
132
|
-
/** Choose (or, when re-selected, clear) the handling method for the input in edit. */
|
|
133
|
-
selectType(type) {
|
|
134
|
-
this.#patchActive((current) => {
|
|
135
|
-
if (current.type === type) {
|
|
136
|
-
return { ...current, type: undefined, mapTo: undefined, defaultValue: undefined };
|
|
137
|
-
}
|
|
138
|
-
return {
|
|
139
|
-
...current,
|
|
140
|
-
type,
|
|
141
|
-
mapTo: type === MinInputTypes.MapDocFilter ? [] : undefined,
|
|
142
|
-
defaultValue: type === MinInputTypes.Default ? current.defaultValue : undefined,
|
|
143
|
-
};
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
/** Update the literal default value of the input in edit. */
|
|
147
|
-
setDefaultValue(value) {
|
|
148
|
-
this.#patchActive((current) => ({ ...current, defaultValue: value }));
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Map (or, when re-selected, unmap) a form input to the input in edit. `MapTo`
|
|
152
|
-
* holds a single mapping; `MapDocFilter` accumulates a list.
|
|
153
|
-
*/
|
|
154
|
-
toggleMap(target) {
|
|
155
|
-
if (this.disabled() || !target.mappable) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
const mapping = this.#toMapping(target);
|
|
159
|
-
this.#patchActive((current) => {
|
|
160
|
-
if (current.type === MinInputTypes.MapTo) {
|
|
161
|
-
const existing = this.#asSingle(current.mapTo);
|
|
162
|
-
const sameSelected = existing?.formControlName === mapping.formControlName;
|
|
163
|
-
return { ...current, mapTo: sameSelected ? undefined : mapping };
|
|
164
|
-
}
|
|
165
|
-
if (current.type === MinInputTypes.MapDocFilter) {
|
|
166
|
-
const list = this.#asList(current.mapTo);
|
|
167
|
-
const has = list.some((m) => m.formControlName === mapping.formControlName);
|
|
168
|
-
return {
|
|
169
|
-
...current,
|
|
170
|
-
mapTo: has
|
|
171
|
-
? list.filter((m) => m.formControlName !== mapping.formControlName)
|
|
172
|
-
: [...list, mapping],
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
return current;
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
/** Replace the active entry via `patch` and emit the new list. */
|
|
179
|
-
#patchActive(patch) {
|
|
180
|
-
const active = this.activeInput();
|
|
181
|
-
let changed = false;
|
|
182
|
-
const next = this.#workingValue().map((item) => {
|
|
183
|
-
if (item.name !== active) {
|
|
184
|
-
return item;
|
|
185
|
-
}
|
|
186
|
-
changed = true;
|
|
187
|
-
return patch(item);
|
|
188
|
-
});
|
|
189
|
-
if (!changed) {
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
this.#workingValue.set(next);
|
|
193
|
-
this.valueChanged.emit([...next]);
|
|
194
|
-
}
|
|
195
|
-
#isLinked(item) {
|
|
196
|
-
if (item.type === MinInputTypes.Default) {
|
|
197
|
-
return !!item.defaultValue;
|
|
198
|
-
}
|
|
199
|
-
if (item.type === MinInputTypes.MapTo) {
|
|
200
|
-
return !!this.#asSingle(item.mapTo);
|
|
201
|
-
}
|
|
202
|
-
if (item.type === MinInputTypes.MapDocFilter) {
|
|
203
|
-
return this.#asList(item.mapTo).length > 0;
|
|
204
|
-
}
|
|
205
|
-
return false;
|
|
206
|
-
}
|
|
207
|
-
#toTarget(item, edit) {
|
|
208
|
-
const mappable = item.element !== ElementTypes.SectionTitle;
|
|
209
|
-
const selected = this.#isMapped(edit, item.formControlName);
|
|
210
|
-
return {
|
|
211
|
-
id: item.id,
|
|
212
|
-
label: item.label,
|
|
213
|
-
icon: getInputIcon(item.element),
|
|
214
|
-
formControlName: item.formControlName,
|
|
215
|
-
dataType: item.dataType ?? '',
|
|
216
|
-
selected,
|
|
217
|
-
mappable,
|
|
218
|
-
ariaLabel: `${item.label}.${mappable ? '' : ' Not mappable.'}`,
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
#isMapped(edit, formControlName) {
|
|
222
|
-
if (edit.type === MinInputTypes.MapTo) {
|
|
223
|
-
return this.#asSingle(edit.mapTo)?.formControlName === formControlName;
|
|
224
|
-
}
|
|
225
|
-
if (edit.type === MinInputTypes.MapDocFilter) {
|
|
226
|
-
return this.#asList(edit.mapTo).some((m) => m.formControlName === formControlName);
|
|
227
|
-
}
|
|
228
|
-
return false;
|
|
229
|
-
}
|
|
230
|
-
#toMapping(target) {
|
|
231
|
-
const source = this.formInputs().find((item) => item.id === target.id);
|
|
232
|
-
return {
|
|
233
|
-
formControlName: target.formControlName,
|
|
234
|
-
dataType: source?.dataType ?? InputDataTypes.String,
|
|
235
|
-
element: source?.element ?? ElementTypes.Input,
|
|
236
|
-
inputId: target.id,
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
#asSingle(mapTo) {
|
|
240
|
-
if (!mapTo || Array.isArray(mapTo)) {
|
|
241
|
-
return undefined;
|
|
242
|
-
}
|
|
243
|
-
// `Array.isArray` does not narrow a `readonly[]` out of the union, so assert
|
|
244
|
-
// the remaining single-mapping shape after the guard.
|
|
245
|
-
return mapTo;
|
|
246
|
-
}
|
|
247
|
-
#asList(mapTo) {
|
|
248
|
-
return Array.isArray(mapTo) ? mapTo : [];
|
|
249
|
-
}
|
|
250
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: RequiredInputsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
251
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: RequiredInputsComponent, isStandalone: true, selector: "lib-required-inputs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "attr.id": "id()" }, classAttribute: "lib-required-inputs" }, ngImport: i0, template: "@if (chips().length) {\n<div class=\"lib-required-inputs__chips\" role=\"list\" aria-label=\"Required inputs\">\n @for (chip of chips(); track chip.name) {\n <button\n type=\"button\"\n role=\"listitem\"\n class=\"lib-required-inputs__chip\"\n [class.lib-required-inputs__chip--linked]=\"chip.linked\"\n [class.lib-required-inputs__chip--active]=\"chip.active\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"chip.active\"\n [attr.aria-label]=\"chip.name + (chip.linked ? ', linked' : ', not linked')\"\n (click)=\"toggleActive(chip.name)\">\n <span class=\"lib-required-inputs__chip-label\">{{ chip.name }}</span>\n <mat-icon class=\"lib-required-inputs__chip-icon\" aria-hidden=\"true\">\n {{ chip.linked ? 'link' : 'link_off' }}\n </mat-icon>\n </button>\n }\n</div>\n} @else {\n<lib-empty-state icon=\"link_off\" message=\"No required inputs to configure.\" />\n}\n\n@if (inEdit(); as edit) {\n<div class=\"lib-required-inputs__panel\">\n <mat-form-field\n class=\"lib-required-inputs__field\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Input handling method</mat-label>\n <mat-select\n [value]=\"activeType()\"\n [disabled]=\"disabled()\"\n (selectionChange)=\"selectType($event.value)\">\n <mat-option [value]=\"minInputTypes.Default\">Default value</mat-option>\n <mat-option [value]=\"minInputTypes.MapTo\">Map to a form input</mat-option>\n <mat-option [value]=\"minInputTypes.MapDocFilter\">Filter by an input value</mat-option>\n </mat-select>\n <mat-hint>Choose how this required input is resolved</mat-hint>\n </mat-form-field>\n\n @if (activeType() === minInputTypes.Default) {\n <mat-form-field\n class=\"lib-required-inputs__field\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Default value</mat-label>\n <input\n matInput\n [ngModel]=\"edit.defaultValue\"\n [disabled]=\"disabled()\"\n (ngModelChange)=\"setDefaultValue($event)\"\n placeholder=\"Enter a default value\" />\n <mat-hint>Used when no value is supplied at runtime</mat-hint>\n </mat-form-field>\n }\n\n @if (showMapList()) {\n <p class=\"lib-required-inputs__list-label\">\n Link <strong>{{ activeInput() }}</strong> to a form input\n </p>\n\n @if (mapTargets().length) {\n <mat-nav-list class=\"lib-required-inputs__list\">\n {{mapTargets().length}}\n @for (target of mapTargets(); track target.id) {\n <mat-list-item\n class=\"lib-required-inputs__item\"\n matRipple\n role=\"button\"\n [disabled]=\"disabled() || !target.mappable\"\n [activated]=\"target.selected\"\n [attr.aria-pressed]=\"target.selected\"\n [attr.aria-label]=\"target.ariaLabel\"\n (click)=\"toggleMap(target); $event.stopPropagation()\">\n <mat-icon\n matListItemAvatar\n class=\"lib-required-inputs__avatar\"\n aria-hidden=\"true\">\n {{ target.icon }}\n </mat-icon>\n <span matListItemTitle class=\"lib-required-inputs__item-title\">{{ target.label }}</span>\n <span matListItemLine class=\"lib-required-inputs__item-meta\">\n <span>{{ target.formControlName }}</span>\n @if (target.dataType) {\n <span>{{ target.dataType }}</span>\n }\n </span>\n <mat-icon\n matListItemMeta\n class=\"lib-required-inputs__indicator\"\n [class.lib-required-inputs__indicator--on]=\"target.selected\"\n aria-hidden=\"true\">\n {{ target.selected ? 'check_circle' : 'radio_button_unchecked' }}\n </mat-icon>\n </mat-list-item>\n }\n </mat-nav-list>\n } @else {\n <lib-empty-state icon=\"add_link\" message=\"Add form inputs before mapping this input.\" />\n }\n }\n\n <div class=\"lib-required-inputs__actions\">\n <button type=\"button\" mat-flat-button color=\"primary\" (click)=\"close()\">Done</button>\n </div>\n</div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;flex-direction:column;gap:1.5rem;color:var(--lib-forms-on-surface)}.lib-required-inputs__chips{display:flex;flex-wrap:wrap;gap:.5rem}.lib-required-inputs__chip{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .625rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);border-radius:var(--lib-forms-radius-pill, 6px);font-size:.8125rem;color:var(--lib-forms-on-surface);cursor:pointer;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 30%,transparent);background:var(--lib-forms-surface);transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),border-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-required-inputs__chip:hover:not(:disabled){border-color:var(--lib-forms-primary)}.lib-required-inputs__chip:focus-visible{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-required-inputs__chip:disabled{opacity:.55;pointer-events:none}.lib-required-inputs__chip--linked{background:color-mix(in srgb,var(--lib-forms-primary) 14%,transparent);border-color:color-mix(in srgb,var(--lib-forms-primary) 30%,transparent)}.lib-required-inputs__chip--active{border-color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 22%,transparent)}.lib-required-inputs__chip-icon{width:1rem;height:1rem;font-size:1rem;color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__chip--linked .lib-required-inputs__chip-icon,.lib-required-inputs__chip--active .lib-required-inputs__chip-icon{color:var(--lib-forms-primary)}.lib-required-inputs__panel{display:flex;flex-direction:column;gap:1.5rem}.lib-required-inputs__field{width:100%}.lib-required-inputs__list-label{margin:0;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__list-label strong{color:var(--lib-forms-primary)}.lib-required-inputs__list{width:100%;box-sizing:border-box;max-height:65vh;overflow:auto;padding:.5rem;background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 12%,transparent);border-radius:var(--lib-forms-radius-lg, 12px)}.lib-required-inputs__item{min-height:3rem;height:fit-content;margin-bottom:.25rem;border-radius:var(--lib-forms-radius-sm, 8px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-required-inputs__item:last-child{margin-bottom:0}.lib-required-inputs__item:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-required-inputs__item:focus-visible{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-required-inputs__item.mdc-list-item--activated{background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}mat-icon.lib-required-inputs__avatar{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:var(--lib-forms-radius-sm, 8px);font-size:1.5rem;line-height:1;background:var(--lib-forms-surface-container-high);color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__item-title{font-size:.9375rem;font-weight:600}.lib-required-inputs__item-meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.75rem;color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__indicator{color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__indicator--on{color:var(--lib-forms-primary)}.lib-required-inputs__actions{display:flex;justify-content:flex-end;gap:.75rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6.MatListItemAvatar, selector: "[matListItemAvatar]" }, { kind: "directive", type: i6.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i6.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "ngmodule", type: MatRippleModule }, { kind: "directive", type: i7.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
252
|
-
}
|
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: RequiredInputsComponent, decorators: [{
|
|
254
|
-
type: Component,
|
|
255
|
-
args: [{ selector: 'lib-required-inputs', imports: [
|
|
256
|
-
FormsModule,
|
|
257
|
-
MatButtonModule,
|
|
258
|
-
MatFormFieldModule,
|
|
259
|
-
MatIconModule,
|
|
260
|
-
MatInputModule,
|
|
261
|
-
MatListModule,
|
|
262
|
-
MatRippleModule,
|
|
263
|
-
MatSelectModule,
|
|
264
|
-
EmptyStateComponent,
|
|
265
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
|
|
266
|
-
'class': 'lib-required-inputs',
|
|
267
|
-
'[attr.id]': 'id()',
|
|
268
|
-
}, template: "@if (chips().length) {\n<div class=\"lib-required-inputs__chips\" role=\"list\" aria-label=\"Required inputs\">\n @for (chip of chips(); track chip.name) {\n <button\n type=\"button\"\n role=\"listitem\"\n class=\"lib-required-inputs__chip\"\n [class.lib-required-inputs__chip--linked]=\"chip.linked\"\n [class.lib-required-inputs__chip--active]=\"chip.active\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"chip.active\"\n [attr.aria-label]=\"chip.name + (chip.linked ? ', linked' : ', not linked')\"\n (click)=\"toggleActive(chip.name)\">\n <span class=\"lib-required-inputs__chip-label\">{{ chip.name }}</span>\n <mat-icon class=\"lib-required-inputs__chip-icon\" aria-hidden=\"true\">\n {{ chip.linked ? 'link' : 'link_off' }}\n </mat-icon>\n </button>\n }\n</div>\n} @else {\n<lib-empty-state icon=\"link_off\" message=\"No required inputs to configure.\" />\n}\n\n@if (inEdit(); as edit) {\n<div class=\"lib-required-inputs__panel\">\n <mat-form-field\n class=\"lib-required-inputs__field\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Input handling method</mat-label>\n <mat-select\n [value]=\"activeType()\"\n [disabled]=\"disabled()\"\n (selectionChange)=\"selectType($event.value)\">\n <mat-option [value]=\"minInputTypes.Default\">Default value</mat-option>\n <mat-option [value]=\"minInputTypes.MapTo\">Map to a form input</mat-option>\n <mat-option [value]=\"minInputTypes.MapDocFilter\">Filter by an input value</mat-option>\n </mat-select>\n <mat-hint>Choose how this required input is resolved</mat-hint>\n </mat-form-field>\n\n @if (activeType() === minInputTypes.Default) {\n <mat-form-field\n class=\"lib-required-inputs__field\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Default value</mat-label>\n <input\n matInput\n [ngModel]=\"edit.defaultValue\"\n [disabled]=\"disabled()\"\n (ngModelChange)=\"setDefaultValue($event)\"\n placeholder=\"Enter a default value\" />\n <mat-hint>Used when no value is supplied at runtime</mat-hint>\n </mat-form-field>\n }\n\n @if (showMapList()) {\n <p class=\"lib-required-inputs__list-label\">\n Link <strong>{{ activeInput() }}</strong> to a form input\n </p>\n\n @if (mapTargets().length) {\n <mat-nav-list class=\"lib-required-inputs__list\">\n {{mapTargets().length}}\n @for (target of mapTargets(); track target.id) {\n <mat-list-item\n class=\"lib-required-inputs__item\"\n matRipple\n role=\"button\"\n [disabled]=\"disabled() || !target.mappable\"\n [activated]=\"target.selected\"\n [attr.aria-pressed]=\"target.selected\"\n [attr.aria-label]=\"target.ariaLabel\"\n (click)=\"toggleMap(target); $event.stopPropagation()\">\n <mat-icon\n matListItemAvatar\n class=\"lib-required-inputs__avatar\"\n aria-hidden=\"true\">\n {{ target.icon }}\n </mat-icon>\n <span matListItemTitle class=\"lib-required-inputs__item-title\">{{ target.label }}</span>\n <span matListItemLine class=\"lib-required-inputs__item-meta\">\n <span>{{ target.formControlName }}</span>\n @if (target.dataType) {\n <span>{{ target.dataType }}</span>\n }\n </span>\n <mat-icon\n matListItemMeta\n class=\"lib-required-inputs__indicator\"\n [class.lib-required-inputs__indicator--on]=\"target.selected\"\n aria-hidden=\"true\">\n {{ target.selected ? 'check_circle' : 'radio_button_unchecked' }}\n </mat-icon>\n </mat-list-item>\n }\n </mat-nav-list>\n } @else {\n <lib-empty-state icon=\"add_link\" message=\"Add form inputs before mapping this input.\" />\n }\n }\n\n <div class=\"lib-required-inputs__actions\">\n <button type=\"button\" mat-flat-button color=\"primary\" (click)=\"close()\">Done</button>\n </div>\n</div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;flex-direction:column;gap:1.5rem;color:var(--lib-forms-on-surface)}.lib-required-inputs__chips{display:flex;flex-wrap:wrap;gap:.5rem}.lib-required-inputs__chip{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .625rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);border-radius:var(--lib-forms-radius-pill, 6px);font-size:.8125rem;color:var(--lib-forms-on-surface);cursor:pointer;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 30%,transparent);background:var(--lib-forms-surface);transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing),border-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-required-inputs__chip:hover:not(:disabled){border-color:var(--lib-forms-primary)}.lib-required-inputs__chip:focus-visible{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-required-inputs__chip:disabled{opacity:.55;pointer-events:none}.lib-required-inputs__chip--linked{background:color-mix(in srgb,var(--lib-forms-primary) 14%,transparent);border-color:color-mix(in srgb,var(--lib-forms-primary) 30%,transparent)}.lib-required-inputs__chip--active{border-color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 22%,transparent)}.lib-required-inputs__chip-icon{width:1rem;height:1rem;font-size:1rem;color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__chip--linked .lib-required-inputs__chip-icon,.lib-required-inputs__chip--active .lib-required-inputs__chip-icon{color:var(--lib-forms-primary)}.lib-required-inputs__panel{display:flex;flex-direction:column;gap:1.5rem}.lib-required-inputs__field{width:100%}.lib-required-inputs__list-label{margin:0;font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__list-label strong{color:var(--lib-forms-primary)}.lib-required-inputs__list{width:100%;box-sizing:border-box;max-height:65vh;overflow:auto;padding:.5rem;background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 12%,transparent);border-radius:var(--lib-forms-radius-lg, 12px)}.lib-required-inputs__item{min-height:3rem;height:fit-content;margin-bottom:.25rem;border-radius:var(--lib-forms-radius-sm, 8px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover) var(--lib-forms-easing)}.lib-required-inputs__item:last-child{margin-bottom:0}.lib-required-inputs__item:hover{background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.lib-required-inputs__item:focus-visible{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.lib-required-inputs__item.mdc-list-item--activated{background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}mat-icon.lib-required-inputs__avatar{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:var(--lib-forms-radius-sm, 8px);font-size:1.5rem;line-height:1;background:var(--lib-forms-surface-container-high);color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__item-title{font-size:.9375rem;font-weight:600}.lib-required-inputs__item-meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.75rem;color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__indicator{color:var(--lib-forms-on-surface-variant)}.lib-required-inputs__indicator--on{color:var(--lib-forms-primary)}.lib-required-inputs__actions{display:flex;justify-content:flex-end;gap:.75rem}\n"] }]
|
|
269
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
|
|
270
|
-
|
|
271
|
-
export { RequiredInputsComponent };
|
|
272
|
-
//# sourceMappingURL=ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-required-inputs.component-BMmNxeE-.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/required-inputs/required-inputs.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/required-inputs/required-inputs.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n linkedSignal,\n output,\n signal,\n} from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatListModule } from '@angular/material/list';\nimport { MatRippleModule } from '@angular/material/core';\nimport { MatSelectModule } from '@angular/material/select';\nimport { FormsModule } from '@angular/forms';\nimport {\n ElementTypes,\n FormColumnInputs,\n InputDataTypes,\n MinInputMapInput,\n MinInputTypes,\n MinimumInputRequiredInterface,\n} from 'ngx-t-forms-types';\nimport { getInputIcon } from '../../../../shared/functions/getInputIcon';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\n/** A required input decorated with the derived view-model fields the chip row renders. */\ninterface RequiredInputChip {\n readonly name: string;\n readonly linked: boolean;\n readonly active: boolean;\n}\n\n/** A mappable form input decorated with the derived view-model fields the list renders. */\ninterface MapTarget {\n readonly id: string;\n readonly label: string;\n readonly icon: string;\n readonly formControlName: string;\n readonly dataType: string;\n readonly selected: boolean;\n readonly mappable: boolean;\n readonly ariaLabel: string;\n}\n\n/**\n * Internal editor element for configuring a form's required (minimum) inputs.\n * Child of `t-dynamic-data-edit`, which supplies the field label, hint, and\n * validation errors — so this component owns only the chip row + edit content.\n *\n * Each required input can be handled three ways: a literal default value, a\n * single-input map (`MapTo`), or a multi-input filter (`MapDocFilter`).\n * Re-selecting the active handling method, chip, or a mapped input toggles it\n * off again.\n */\n@Component({\n selector: 'lib-required-inputs',\n imports: [\n FormsModule,\n MatButtonModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n MatListModule,\n MatRippleModule,\n MatSelectModule,\n EmptyStateComponent,\n ],\n templateUrl: './required-inputs.component.html',\n styleUrl: './required-inputs.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-required-inputs',\n '[attr.id]': 'id()',\n },\n})\nexport class RequiredInputsComponent {\n /** Handling-method enum, exposed to the template. */\n protected readonly minInputTypes = MinInputTypes;\n\n /**\n * Required-input descriptors to render. Heterogeneous wrapper binding — the\n * parent feeds whatever the editor config holds; narrowing here would force\n * wrapper changes.\n */\n readonly value = input<readonly MinimumInputRequiredInterface[]>([]);\n\n /** All available form inputs the user can map a required input to. */\n readonly formInputs = input<readonly FormColumnInputs[]>([]);\n\n /** Disable user interaction. */\n readonly disabled = input<boolean>(false);\n\n /**\n * Validation errors passed down by the parent editor. Retained on the contract\n * but not rendered here — `t-dynamic-data-edit` owns error display.\n */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Optional id attribute supplied by the parent editor (used to disambiguate). */\n readonly id = input<string | undefined>(undefined);\n\n /** Emits the mutated required-input list whenever the user changes a mapping. */\n readonly valueChanged = output<MinimumInputRequiredInterface[]>();\n\n /**\n * Local, immutable working copy of `value`. Tracks the bound value (the parent\n * re-feeds it after each emit) but stays locally overridable; mutations always\n * produce a new array, and entries are cloned so the parent's array is never\n * mutated in place.\n */\n readonly #workingValue = linkedSignal<readonly MinimumInputRequiredInterface[]>(() =>\n this.value().map((item) => ({ ...item })),\n );\n\n /** Name of the required input currently open in the edit panel; `''` when none. */\n protected readonly activeInput = signal<string>('');\n\n /** The chip row: one entry per required input, with derived link/active state. */\n protected readonly chips = computed<readonly RequiredInputChip[]>(() => {\n const active = this.activeInput();\n return this.#workingValue().map((item) => ({\n name: item.name,\n linked: this.#isLinked(item),\n active: item.name === active,\n }));\n });\n\n /** The required input currently being edited, or `undefined` when none is active. */\n protected readonly inEdit = computed<MinimumInputRequiredInterface | undefined>(() => {\n const active = this.activeInput();\n if (!active) {\n return undefined;\n }\n return this.#workingValue().find((item) => item.name === active);\n });\n\n /** Handling method of the input in edit; `null` keeps the `mat-select` empty. */\n protected readonly activeType = computed<MinInputTypes | null>(() => {\n const type = this.inEdit()?.type;\n return type === MinInputTypes.Default ||\n type === MinInputTypes.MapTo ||\n type === MinInputTypes.MapDocFilter\n ? type\n : null;\n });\n\n /** Whether the edit panel should show the mappable-input list. */\n protected readonly showMapList = computed<boolean>(() => {\n const type = this.activeType();\n return type === MinInputTypes.MapTo || type === MinInputTypes.MapDocFilter;\n });\n\n /**\n * The list of mappable form inputs for the input in edit. Single-select\n * (`MapTo`) collapses to the chosen input once one is picked; multi-select\n * (`MapDocFilter`) always shows the full list with each chosen input flagged.\n */\n protected readonly mapTargets = computed<readonly MapTarget[]>(() => {\n const edit = this.inEdit();\n if (!edit) {\n return [];\n }\n const all = this.formInputs().map((item) => this.#toTarget(item, edit));\n if (edit.type === MinInputTypes.MapTo) {\n const selected = all.find((target) => target.selected);\n return selected ? [selected] : all;\n }\n return all;\n });\n\n /** Toggle the edit panel for a required input. Re-selecting the active one closes it. */\n protected toggleActive(name: string): void {\n if (this.disabled()) {\n return;\n }\n this.activeInput.update((current) => (current === name ? '' : name));\n }\n\n /** Close the edit panel without changing anything. */\n protected close(): void {\n this.activeInput.set('');\n }\n\n /** Choose (or, when re-selected, clear) the handling method for the input in edit. */\n protected selectType(type: MinInputTypes): void {\n this.#patchActive((current) => {\n if (current.type === type) {\n return { ...current, type: undefined, mapTo: undefined, defaultValue: undefined };\n }\n return {\n ...current,\n type,\n mapTo: type === MinInputTypes.MapDocFilter ? [] : undefined,\n defaultValue: type === MinInputTypes.Default ? current.defaultValue : undefined,\n };\n });\n }\n\n /** Update the literal default value of the input in edit. */\n protected setDefaultValue(value: string): void {\n this.#patchActive((current) => ({ ...current, defaultValue: value }));\n }\n\n /**\n * Map (or, when re-selected, unmap) a form input to the input in edit. `MapTo`\n * holds a single mapping; `MapDocFilter` accumulates a list.\n */\n protected toggleMap(target: MapTarget): void {\n if (this.disabled() || !target.mappable) {\n return;\n }\n const mapping = this.#toMapping(target);\n this.#patchActive((current) => {\n if (current.type === MinInputTypes.MapTo) {\n const existing = this.#asSingle(current.mapTo);\n const sameSelected = existing?.formControlName === mapping.formControlName;\n return { ...current, mapTo: sameSelected ? undefined : mapping };\n }\n if (current.type === MinInputTypes.MapDocFilter) {\n const list = this.#asList(current.mapTo);\n const has = list.some((m) => m.formControlName === mapping.formControlName);\n return {\n ...current,\n mapTo: has\n ? list.filter((m) => m.formControlName !== mapping.formControlName)\n : [...list, mapping],\n };\n }\n return current;\n });\n }\n\n /** Replace the active entry via `patch` and emit the new list. */\n #patchActive(\n patch: (current: MinimumInputRequiredInterface) => MinimumInputRequiredInterface,\n ): void {\n const active = this.activeInput();\n let changed = false;\n const next = this.#workingValue().map((item) => {\n if (item.name !== active) {\n return item;\n }\n changed = true;\n return patch(item);\n });\n if (!changed) {\n return;\n }\n this.#workingValue.set(next);\n this.valueChanged.emit([...next]);\n }\n\n #isLinked(item: MinimumInputRequiredInterface): boolean {\n if (item.type === MinInputTypes.Default) {\n return !!item.defaultValue;\n }\n if (item.type === MinInputTypes.MapTo) {\n return !!this.#asSingle(item.mapTo);\n }\n if (item.type === MinInputTypes.MapDocFilter) {\n return this.#asList(item.mapTo).length > 0;\n }\n return false;\n }\n\n #toTarget(item: FormColumnInputs, edit: MinimumInputRequiredInterface): MapTarget {\n const mappable = item.element !== ElementTypes.SectionTitle;\n const selected = this.#isMapped(edit, item.formControlName);\n return {\n id: item.id,\n label: item.label,\n icon: getInputIcon(item.element),\n formControlName: item.formControlName,\n dataType: item.dataType ?? '',\n selected,\n mappable,\n ariaLabel: `${item.label}.${mappable ? '' : ' Not mappable.'}`,\n };\n }\n\n #isMapped(edit: MinimumInputRequiredInterface, formControlName: string): boolean {\n if (edit.type === MinInputTypes.MapTo) {\n return this.#asSingle(edit.mapTo)?.formControlName === formControlName;\n }\n if (edit.type === MinInputTypes.MapDocFilter) {\n return this.#asList(edit.mapTo).some((m) => m.formControlName === formControlName);\n }\n return false;\n }\n\n #toMapping(target: MapTarget): MinInputMapInput {\n const source = this.formInputs().find((item) => item.id === target.id);\n return {\n formControlName: target.formControlName,\n dataType: source?.dataType ?? InputDataTypes.String,\n element: source?.element ?? ElementTypes.Input,\n inputId: target.id,\n };\n }\n\n #asSingle(\n mapTo: MinInputMapInput | readonly MinInputMapInput[] | undefined,\n ): MinInputMapInput | undefined {\n if (!mapTo || Array.isArray(mapTo)) {\n return undefined;\n }\n // `Array.isArray` does not narrow a `readonly[]` out of the union, so assert\n // the remaining single-mapping shape after the guard.\n return mapTo as MinInputMapInput;\n }\n\n #asList(\n mapTo: MinInputMapInput | readonly MinInputMapInput[] | undefined,\n ): readonly MinInputMapInput[] {\n return Array.isArray(mapTo) ? mapTo : [];\n }\n}\n","@if (chips().length) {\n<div class=\"lib-required-inputs__chips\" role=\"list\" aria-label=\"Required inputs\">\n @for (chip of chips(); track chip.name) {\n <button\n type=\"button\"\n role=\"listitem\"\n class=\"lib-required-inputs__chip\"\n [class.lib-required-inputs__chip--linked]=\"chip.linked\"\n [class.lib-required-inputs__chip--active]=\"chip.active\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"chip.active\"\n [attr.aria-label]=\"chip.name + (chip.linked ? ', linked' : ', not linked')\"\n (click)=\"toggleActive(chip.name)\">\n <span class=\"lib-required-inputs__chip-label\">{{ chip.name }}</span>\n <mat-icon class=\"lib-required-inputs__chip-icon\" aria-hidden=\"true\">\n {{ chip.linked ? 'link' : 'link_off' }}\n </mat-icon>\n </button>\n }\n</div>\n} @else {\n<lib-empty-state icon=\"link_off\" message=\"No required inputs to configure.\" />\n}\n\n@if (inEdit(); as edit) {\n<div class=\"lib-required-inputs__panel\">\n <mat-form-field\n class=\"lib-required-inputs__field\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Input handling method</mat-label>\n <mat-select\n [value]=\"activeType()\"\n [disabled]=\"disabled()\"\n (selectionChange)=\"selectType($event.value)\">\n <mat-option [value]=\"minInputTypes.Default\">Default value</mat-option>\n <mat-option [value]=\"minInputTypes.MapTo\">Map to a form input</mat-option>\n <mat-option [value]=\"minInputTypes.MapDocFilter\">Filter by an input value</mat-option>\n </mat-select>\n <mat-hint>Choose how this required input is resolved</mat-hint>\n </mat-form-field>\n\n @if (activeType() === minInputTypes.Default) {\n <mat-form-field\n class=\"lib-required-inputs__field\"\n appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Default value</mat-label>\n <input\n matInput\n [ngModel]=\"edit.defaultValue\"\n [disabled]=\"disabled()\"\n (ngModelChange)=\"setDefaultValue($event)\"\n placeholder=\"Enter a default value\" />\n <mat-hint>Used when no value is supplied at runtime</mat-hint>\n </mat-form-field>\n }\n\n @if (showMapList()) {\n <p class=\"lib-required-inputs__list-label\">\n Link <strong>{{ activeInput() }}</strong> to a form input\n </p>\n\n @if (mapTargets().length) {\n <mat-nav-list class=\"lib-required-inputs__list\">\n {{mapTargets().length}}\n @for (target of mapTargets(); track target.id) {\n <mat-list-item\n class=\"lib-required-inputs__item\"\n matRipple\n role=\"button\"\n [disabled]=\"disabled() || !target.mappable\"\n [activated]=\"target.selected\"\n [attr.aria-pressed]=\"target.selected\"\n [attr.aria-label]=\"target.ariaLabel\"\n (click)=\"toggleMap(target); $event.stopPropagation()\">\n <mat-icon\n matListItemAvatar\n class=\"lib-required-inputs__avatar\"\n aria-hidden=\"true\">\n {{ target.icon }}\n </mat-icon>\n <span matListItemTitle class=\"lib-required-inputs__item-title\">{{ target.label }}</span>\n <span matListItemLine class=\"lib-required-inputs__item-meta\">\n <span>{{ target.formControlName }}</span>\n @if (target.dataType) {\n <span>{{ target.dataType }}</span>\n }\n </span>\n <mat-icon\n matListItemMeta\n class=\"lib-required-inputs__indicator\"\n [class.lib-required-inputs__indicator--on]=\"target.selected\"\n aria-hidden=\"true\">\n {{ target.selected ? 'check_circle' : 'radio_button_unchecked' }}\n </mat-icon>\n </mat-list-item>\n }\n </mat-nav-list>\n } @else {\n <lib-empty-state icon=\"add_link\" message=\"Add form inputs before mapping this input.\" />\n }\n }\n\n <div class=\"lib-required-inputs__actions\">\n <button type=\"button\" mat-flat-button color=\"primary\" (click)=\"close()\">Done</button>\n </div>\n</div>\n}\n"],"names":["i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiDA;;;;;;;;;AASG;MAuBU,uBAAuB,CAAA;AAtBpC,IAAA,WAAA,GAAA;;QAwBqB,IAAA,CAAA,aAAa,GAAG,aAAa;AAEhD;;;;AAIG;AACM,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAA2C,EAAE,4EAAC;;AAG3D,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAA8B,EAAE,iFAAC;;AAGnD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAEzC;;;AAGG;AACM,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAoC,EAAE,6EAAC;;AAGrD,QAAA,IAAA,CAAA,EAAE,GAAG,KAAK,CAAqB,SAAS,yEAAC;;QAGzC,IAAA,CAAA,YAAY,GAAG,MAAM,EAAmC;AAEjE;;;;;AAKG;QACM,IAAA,CAAA,aAAa,GAAG,YAAY,CAA2C,MAC9E,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,eAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAC1C;;AAGkB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAS,EAAE,kFAAC;;AAGhC,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAA+B,MAAK;AACrE,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE;AACjC,YAAA,OAAO,IAAI,C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