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,936 +0,0 @@
|
|
|
1
|
-
import { AsyncPipe } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, DestroyRef, ChangeDetectorRef, viewChild, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
|
-
import * as i1 from '@angular/forms';
|
|
6
|
-
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
7
|
-
import * as i1$1 from '@angular/cdk/drag-drop';
|
|
8
|
-
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
9
|
-
import * as i2 from '@angular/material/button';
|
|
10
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
-
import * as i3 from '@angular/material/card';
|
|
12
|
-
import { MatCardModule } from '@angular/material/card';
|
|
13
|
-
import * as i3$1 from '@angular/material/icon';
|
|
14
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
-
import * as i2$1 from '@angular/material/input';
|
|
16
|
-
import { MatInputModule } from '@angular/material/input';
|
|
17
|
-
import * as i6 from '@angular/material/menu';
|
|
18
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
19
|
-
import * as i4 from '@angular/material/progress-spinner';
|
|
20
|
-
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
21
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
22
|
-
import * as i4$1 from '@angular/material/stepper';
|
|
23
|
-
import { MatStepperModule } from '@angular/material/stepper';
|
|
24
|
-
import * as i8 from '@angular/material/toolbar';
|
|
25
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
26
|
-
import * as i5 from '@angular/material/tooltip';
|
|
27
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
28
|
-
import { take, filter, tap, map, Subject, timer, takeUntil } from 'rxjs';
|
|
29
|
-
import * as i7 from 'ngx-ui-tour-md-menu';
|
|
30
|
-
import { TourMatMenu } from 'ngx-ui-tour-md-menu';
|
|
31
|
-
import { ElementTypes, validateFormColumnInputs } from 'ngx-t-forms-types';
|
|
32
|
-
import { c as TFormEngine, F as FormsStoreService, d as TourManagerService, e as getSubmissionStatusFn } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
|
|
33
|
-
|
|
34
|
-
const _c0 = ["stepper"];
|
|
35
|
-
const FormSectionStepperComponent_Defer_19_DepsFn = () => [i2.MatButton, i4.MatProgressSpinner, i8.MatToolbar, AsyncPipe];
|
|
36
|
-
const FormSectionStepperComponent_For_8_Conditional_0_Defer_4_DepsFn = () => [i1.NgControlStatusGroup, i1.FormGroupDirective, i1$1.CdkDropList, i1$1.CdkDrag, i2.MatButton, i2.MatIconButton, i3.MatCard, i3.MatCardActions, i3$1.MatIcon, i6.MatMenuTrigger, i4.MatProgressSpinner, i4$1.MatStepperNext, i4$1.MatStepperPrevious, i5.MatTooltip, import('./ngx-t-forms-index-BPNBX_ve.mjs').then(m => m.TFormInputComponent), import('./ngx-t-forms-section-report.component-yGAjX7Gb.mjs').then(m => m.SectionReportComponent), i7.TourAnchorMatMenuDirective, AsyncPipe];
|
|
37
|
-
const _c1 = (a0, a1) => ({ sectionId: a0, columns: a1 });
|
|
38
|
-
const _forTrack0 = ($index, $item) => $item.sectionId;
|
|
39
|
-
const _forTrack1 = ($index, $item) => $item.id;
|
|
40
|
-
function FormSectionStepperComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
-
i0.ɵɵelementStart(0, "div", 6);
|
|
42
|
-
i0.ɵɵelement(1, "mat-spinner", 14);
|
|
43
|
-
i0.ɵɵelementEnd();
|
|
44
|
-
} }
|
|
45
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
-
i0.ɵɵelementStart(0, "mat-icon", 27);
|
|
47
|
-
i0.ɵɵtext(1);
|
|
48
|
-
i0.ɵɵelementEnd();
|
|
49
|
-
} if (rf & 2) {
|
|
50
|
-
const step_r2 = i0.ɵɵnextContext(3).$implicit;
|
|
51
|
-
i0.ɵɵclassProp("error", step_r2.sectionIsInvalid);
|
|
52
|
-
i0.ɵɵattribute("aria-label", step_r2.sectionIsInvalid ? "Section has errors" : "Section completed");
|
|
53
|
-
i0.ɵɵadvance();
|
|
54
|
-
i0.ɵɵtextInterpolate1(" ", step_r2.sectionIsInvalid ? "error" : "check_circle", " ");
|
|
55
|
-
} }
|
|
56
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
58
|
-
i0.ɵɵelementStart(0, "span", 23)(1, "button", 28);
|
|
59
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_9_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const step_r2 = i0.ɵɵnextContext(3).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.startTour(step_r2.sectionId)); });
|
|
60
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
61
|
-
i0.ɵɵtext(3, "tour");
|
|
62
|
-
i0.ɵɵelementEnd()()();
|
|
63
|
-
} }
|
|
64
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
66
|
-
i0.ɵɵelementStart(0, "button", 29);
|
|
67
|
-
i0.ɵɵlistener("mouseover", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_11_Template_button_mouseover_0_listener() { i0.ɵɵrestoreView(_r5); const step_r2 = i0.ɵɵnextContext(3).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.overId = step_r2.sectionId); })("mouseout", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_11_Template_button_mouseout_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.overId = null); })("click", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const step_r2 = i0.ɵɵnextContext(3).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.deleteSection(step_r2.sectionId)); });
|
|
68
|
-
i0.ɵɵelementStart(1, "div", 30);
|
|
69
|
-
i0.ɵɵelement(2, "mat-progress-spinner", 31);
|
|
70
|
-
i0.ɵɵtext(3);
|
|
71
|
-
i0.ɵɵelementEnd()();
|
|
72
|
-
} if (rf & 2) {
|
|
73
|
-
const step_r2 = i0.ɵɵnextContext(3).$implicit;
|
|
74
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
75
|
-
i0.ɵɵattribute("aria-label", ctx_r2.overId === step_r2.sectionId ? "Cancel section deletion" : "Section deleting in " + ctx_r2.inputWillBeRemovedIn(step_r2.sectionId) + " seconds");
|
|
76
|
-
i0.ɵɵadvance(2);
|
|
77
|
-
i0.ɵɵproperty("value", (ctx_r2.inputWillBeRemovedIn(step_r2.sectionId) || 0) / 5 * 100);
|
|
78
|
-
i0.ɵɵadvance();
|
|
79
|
-
i0.ɵɵtextInterpolate2(" ", ctx_r2.overId === step_r2.sectionId ? "Click to cancel" : "Deleting in", " ", ctx_r2.inputWillBeRemovedIn(step_r2.sectionId), " ");
|
|
80
|
-
} }
|
|
81
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
83
|
-
i0.ɵɵelementStart(0, "button", 32);
|
|
84
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const step_r2 = i0.ɵɵnextContext(3).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.refreshASection(step_r2.sectionId)); });
|
|
85
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
86
|
-
i0.ɵɵtext(2, "sync");
|
|
87
|
-
i0.ɵɵelementEnd()();
|
|
88
|
-
} }
|
|
89
|
-
function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
90
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
91
|
-
i0.ɵɵelementStart(0, "div", 17)(1, "button", 18);
|
|
92
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template_button_click_1_listener($event) { return $event.stopPropagation(); });
|
|
93
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
94
|
-
i0.ɵɵtext(3, "drag_indicator");
|
|
95
|
-
i0.ɵɵelementEnd()();
|
|
96
|
-
i0.ɵɵelementStart(4, "span", 19)(5, "input", 20);
|
|
97
|
-
i0.ɵɵlistener("input", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template_input_input_5_listener($event) { i0.ɵɵrestoreView(_r1); const step_r2 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleInput($event, step_r2.sectionId)); })("keydown.space", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template_input_keydown_space_5_listener($event) { i0.ɵɵrestoreView(_r1); const step_r2 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onSpaceKey($event, step_r2.sectionId)); });
|
|
98
|
-
i0.ɵɵelementEnd();
|
|
99
|
-
i0.ɵɵelementStart(6, "mat-icon", 21);
|
|
100
|
-
i0.ɵɵtext(7, "edit");
|
|
101
|
-
i0.ɵɵelementEnd()();
|
|
102
|
-
i0.ɵɵconditionalCreate(8, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_8_Template, 2, 4, "mat-icon", 22);
|
|
103
|
-
i0.ɵɵconditionalCreate(9, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_9_Template, 4, 0, "span", 23);
|
|
104
|
-
i0.ɵɵelement(10, "span", 10);
|
|
105
|
-
i0.ɵɵconditionalCreate(11, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_11_Template, 4, 4, "button", 24);
|
|
106
|
-
i0.ɵɵconditionalCreate(12, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Conditional_12_Template, 3, 0, "button", 25);
|
|
107
|
-
i0.ɵɵelementStart(13, "button", 26);
|
|
108
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template_button_click_13_listener($event) { return $event.stopPropagation(); });
|
|
109
|
-
i0.ɵɵelementStart(14, "mat-icon");
|
|
110
|
-
i0.ɵɵtext(15, "more_horiz");
|
|
111
|
-
i0.ɵɵelementEnd()()();
|
|
112
|
-
} if (rf & 2) {
|
|
113
|
-
const step_r2 = i0.ɵɵnextContext(2).$implicit;
|
|
114
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
115
|
-
const sectionMenu_r7 = i0.ɵɵreference(22);
|
|
116
|
-
i0.ɵɵattribute("aria-label", "Section " + step_r2.label);
|
|
117
|
-
i0.ɵɵadvance(5);
|
|
118
|
-
i0.ɵɵproperty("value", step_r2.label);
|
|
119
|
-
i0.ɵɵadvance(3);
|
|
120
|
-
i0.ɵɵconditional(step_r2.sectionIsSeen ? 8 : -1);
|
|
121
|
-
i0.ɵɵadvance();
|
|
122
|
-
i0.ɵɵconditional((step_r2 == null ? null : step_r2.activeSectionHasTour) && !!step_r2.isActive ? 9 : -1);
|
|
123
|
-
i0.ɵɵadvance(2);
|
|
124
|
-
i0.ɵɵconditional(!!ctx_r2.inputWillBeRemovedIn(step_r2.sectionId) ? 11 : -1);
|
|
125
|
-
i0.ɵɵadvance();
|
|
126
|
-
i0.ɵɵconditional(ctx_r2.engine.canRefreshSection(step_r2.sectionId) && step_r2.isActive ? 12 : -1);
|
|
127
|
-
i0.ɵɵadvance();
|
|
128
|
-
i0.ɵɵproperty("matMenuTriggerData", i0.ɵɵpureFunction2(8, _c1, step_r2.sectionId, step_r2.columns))("matMenuTriggerFor", sectionMenu_r7);
|
|
129
|
-
} }
|
|
130
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
131
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
132
|
-
i0.ɵɵelementStart(0, "lib-t-form-input", 46);
|
|
133
|
-
i0.ɵɵlistener("valueChange", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_2_Template_lib_t_form_input_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r11); const col_r10 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.engine.updateValue(col_r10.id, $event)); });
|
|
134
|
-
i0.ɵɵelementEnd();
|
|
135
|
-
} if (rf & 2) {
|
|
136
|
-
const col_r10 = i0.ɵɵnextContext().$implicit;
|
|
137
|
-
const step_r2 = i0.ɵɵnextContext(4).$implicit;
|
|
138
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
139
|
-
i0.ɵɵproperty("editorMode", true)("tourAnchor", col_r10.id)("formBuilderFunctions", ctx_r2.formBuilderFunctions)("inputConfig", col_r10)("formGroup", step_r2.sectionForm);
|
|
140
|
-
i0.ɵɵattribute("aria-label", (col_r10 == null ? null : col_r10.label) || "");
|
|
141
|
-
} }
|
|
142
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_3_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
143
|
-
i0.ɵɵelementStart(0, "li", 48);
|
|
144
|
-
i0.ɵɵtext(1);
|
|
145
|
-
i0.ɵɵelementEnd();
|
|
146
|
-
} if (rf & 2) {
|
|
147
|
-
const error_r12 = ctx.$implicit;
|
|
148
|
-
i0.ɵɵadvance();
|
|
149
|
-
i0.ɵɵtextInterpolate(error_r12.message);
|
|
150
|
-
} }
|
|
151
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
152
|
-
i0.ɵɵelementStart(0, "div", 45)(1, "ul", 47);
|
|
153
|
-
i0.ɵɵrepeaterCreate(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_3_For_3_Template, 2, 1, "li", 48, i0.ɵɵrepeaterTrackByIndex);
|
|
154
|
-
i0.ɵɵelementEnd()();
|
|
155
|
-
} if (rf & 2) {
|
|
156
|
-
const col_r10 = i0.ɵɵnextContext().$implicit;
|
|
157
|
-
i0.ɵɵadvance(2);
|
|
158
|
-
i0.ɵɵrepeater(col_r10.inputConfigErrors);
|
|
159
|
-
} }
|
|
160
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
161
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
162
|
-
i0.ɵɵelementStart(0, "button", 56);
|
|
163
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const col_r10 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.saveInputDefaultValue(col_r10)); });
|
|
164
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
165
|
-
i0.ɵɵtext(2, "bookmark_add");
|
|
166
|
-
i0.ɵɵelementEnd()();
|
|
167
|
-
} if (rf & 2) {
|
|
168
|
-
const col_r10 = i0.ɵɵnextContext(2).$implicit;
|
|
169
|
-
i0.ɵɵproperty("matTooltip", "Save current value as the default for " + col_r10.label);
|
|
170
|
-
} }
|
|
171
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
172
|
-
const _r15 = i0.ɵɵgetCurrentView();
|
|
173
|
-
i0.ɵɵelementStart(0, "button", 57);
|
|
174
|
-
i0.ɵɵlistener("mouseover", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_12_Template_button_mouseover_0_listener() { i0.ɵɵrestoreView(_r15); const col_r10 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.overId = col_r10.id); })("mouseout", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_12_Template_button_mouseout_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r2 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r2.overId = null); })("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const col_r10 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.removeInput(col_r10)); });
|
|
175
|
-
i0.ɵɵelementStart(1, "div", 30);
|
|
176
|
-
i0.ɵɵelement(2, "mat-progress-spinner", 31);
|
|
177
|
-
i0.ɵɵtext(3);
|
|
178
|
-
i0.ɵɵelementEnd()();
|
|
179
|
-
} if (rf & 2) {
|
|
180
|
-
const col_r10 = i0.ɵɵnextContext(2).$implicit;
|
|
181
|
-
const ctx_r2 = i0.ɵɵnextContext(5);
|
|
182
|
-
i0.ɵɵadvance(2);
|
|
183
|
-
i0.ɵɵproperty("value", (ctx_r2.inputWillBeRemovedIn(col_r10.id) || 0) / 5 * 100);
|
|
184
|
-
i0.ɵɵadvance();
|
|
185
|
-
i0.ɵɵtextInterpolate2(" ", ctx_r2.overId === col_r10.id ? "Click to cancel" : "Deleting in", " ", ctx_r2.inputWillBeRemovedIn(col_r10.id), " ");
|
|
186
|
-
} }
|
|
187
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
188
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
189
|
-
i0.ɵɵelementStart(0, "button", 58);
|
|
190
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const col_r10 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.removeInput(col_r10)); });
|
|
191
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
192
|
-
i0.ɵɵtext(2, "delete");
|
|
193
|
-
i0.ɵɵelementEnd()();
|
|
194
|
-
} if (rf & 2) {
|
|
195
|
-
const col_r10 = i0.ɵɵnextContext(2).$implicit;
|
|
196
|
-
i0.ɵɵproperty("matTooltip", "Delete " + col_r10.label + " input");
|
|
197
|
-
} }
|
|
198
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_14_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
199
|
-
const _r18 = i0.ɵɵgetCurrentView();
|
|
200
|
-
i0.ɵɵelementStart(0, "button", 61);
|
|
201
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_14_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const col_r10 = i0.ɵɵnextContext(3).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.engine.toggleMultipleInput(col_r10.id, true)); });
|
|
202
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
203
|
-
i0.ɵɵtext(2, "table_rows");
|
|
204
|
-
i0.ɵɵelementEnd();
|
|
205
|
-
i0.ɵɵtext(3, " Row Entry Form ");
|
|
206
|
-
i0.ɵɵelementEnd();
|
|
207
|
-
} }
|
|
208
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
209
|
-
const _r17 = i0.ɵɵgetCurrentView();
|
|
210
|
-
i0.ɵɵconditionalCreate(0, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_14_Conditional_0_Template, 4, 0, "button", 59);
|
|
211
|
-
i0.ɵɵelementStart(1, "button", 60);
|
|
212
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_14_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r17); const col_r10 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.addColAndOpen(col_r10)); });
|
|
213
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
214
|
-
i0.ɵɵtext(3, "view_column");
|
|
215
|
-
i0.ɵɵelementEnd();
|
|
216
|
-
i0.ɵɵtext(4, " Add Column ");
|
|
217
|
-
i0.ɵɵelementEnd();
|
|
218
|
-
} if (rf & 2) {
|
|
219
|
-
const col_r10 = i0.ɵɵnextContext(2).$implicit;
|
|
220
|
-
i0.ɵɵconditional(!col_r10.formIsOpen ? 0 : -1);
|
|
221
|
-
i0.ɵɵadvance();
|
|
222
|
-
i0.ɵɵproperty("disabled", col_r10.systemDefault);
|
|
223
|
-
} }
|
|
224
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
225
|
-
const _r19 = i0.ɵɵgetCurrentView();
|
|
226
|
-
i0.ɵɵelementStart(0, "button", 62);
|
|
227
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_15_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const col_r10 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.addInputToScoaSelection(col_r10.sectionId, col_r10.id)); });
|
|
228
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
229
|
-
i0.ɵɵtext(2, "add");
|
|
230
|
-
i0.ɵɵelementEnd();
|
|
231
|
-
i0.ɵɵtext(3, " Add Form Input ");
|
|
232
|
-
i0.ɵɵelementEnd();
|
|
233
|
-
} }
|
|
234
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
235
|
-
const _r13 = i0.ɵɵgetCurrentView();
|
|
236
|
-
i0.ɵɵelementStart(0, "mat-card-actions")(1, "button", 49);
|
|
237
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r13); const col_r10 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.editInput(col_r10)); });
|
|
238
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
239
|
-
i0.ɵɵtext(3, "edit");
|
|
240
|
-
i0.ɵɵelementEnd()();
|
|
241
|
-
i0.ɵɵconditionalCreate(4, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_4_Template, 3, 1, "button", 50);
|
|
242
|
-
i0.ɵɵelementStart(5, "button", 51)(6, "mat-icon");
|
|
243
|
-
i0.ɵɵtext(7, "drive_file_move");
|
|
244
|
-
i0.ɵɵelementEnd()();
|
|
245
|
-
i0.ɵɵelementStart(8, "button", 52);
|
|
246
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r13); const col_r10 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.cloneCopyFormInput(col_r10.id)); });
|
|
247
|
-
i0.ɵɵelementStart(9, "mat-icon");
|
|
248
|
-
i0.ɵɵtext(10, "file_copy");
|
|
249
|
-
i0.ɵɵelementEnd()();
|
|
250
|
-
i0.ɵɵelement(11, "span", 10);
|
|
251
|
-
i0.ɵɵconditionalCreate(12, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_12_Template, 4, 3, "button", 53)(13, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_13_Template, 3, 1, "button", 54);
|
|
252
|
-
i0.ɵɵconditionalCreate(14, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_14_Template, 5, 2);
|
|
253
|
-
i0.ɵɵconditionalCreate(15, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Conditional_15_Template, 4, 0, "button", 55);
|
|
254
|
-
i0.ɵɵelementEnd();
|
|
255
|
-
} if (rf & 2) {
|
|
256
|
-
const col_r10 = i0.ɵɵnextContext().$implicit;
|
|
257
|
-
const ctx_r2 = i0.ɵɵnextContext(5);
|
|
258
|
-
const moveInput_r20 = i0.ɵɵreference(39);
|
|
259
|
-
i0.ɵɵadvance();
|
|
260
|
-
i0.ɵɵproperty("matTooltip", "Edit " + col_r10.label + " input");
|
|
261
|
-
i0.ɵɵadvance(3);
|
|
262
|
-
i0.ɵɵconditional(ctx_r2.canSaveDefaultValue(col_r10) ? 4 : -1);
|
|
263
|
-
i0.ɵɵadvance();
|
|
264
|
-
i0.ɵɵproperty("matTooltip", "Move this input to another section")("matMenuTriggerFor", moveInput_r20)("matMenuTriggerData", col_r10);
|
|
265
|
-
i0.ɵɵadvance(3);
|
|
266
|
-
i0.ɵɵproperty("matTooltip", "Clone form input");
|
|
267
|
-
i0.ɵɵadvance(4);
|
|
268
|
-
i0.ɵɵconditional(!!ctx_r2.inputWillBeRemovedIn(col_r10.id) ? 12 : col_r10.systemDefault !== true ? 13 : -1);
|
|
269
|
-
i0.ɵɵadvance(2);
|
|
270
|
-
i0.ɵɵconditional(ctx_r2.activeInput === col_r10.id && col_r10.element === "multipleInput" ? 14 : -1);
|
|
271
|
-
i0.ɵɵadvance();
|
|
272
|
-
i0.ɵɵconditional(ctx_r2.activeInput === col_r10.id && col_r10.element === "mscoaSelection" ? 15 : -1);
|
|
273
|
-
} }
|
|
274
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
275
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
276
|
-
i0.ɵɵelementStart(0, "mat-card", 43);
|
|
277
|
-
i0.ɵɵpipe(1, "async");
|
|
278
|
-
i0.ɵɵlistener("cdkDragStarted", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template_mat_card_cdkDragStarted_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.dragging = true); })("cdkDragReleased", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template_mat_card_cdkDragReleased_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.dragging = false); })("mouseover", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template_mat_card_mouseover_0_listener() { const col_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.activeInput = col_r10.id); })("focusin", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template_mat_card_focusin_0_listener() { const col_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.activeInput = col_r10.id); });
|
|
279
|
-
i0.ɵɵconditionalCreate(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_2_Template, 1, 6, "lib-t-form-input", 44);
|
|
280
|
-
i0.ɵɵconditionalCreate(3, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_3_Template, 4, 0, "div", 45);
|
|
281
|
-
i0.ɵɵconditionalCreate(4, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Conditional_4_Template, 16, 9, "mat-card-actions");
|
|
282
|
-
i0.ɵɵelementEnd();
|
|
283
|
-
} if (rf & 2) {
|
|
284
|
-
const col_r10 = ctx.$implicit;
|
|
285
|
-
const step_r2 = i0.ɵɵnextContext(4).$implicit;
|
|
286
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
287
|
-
i0.ɵɵclassMap("box inputCard col-md-" + (ctx_r2.dragging ? "12" : col_r10.colSize));
|
|
288
|
-
i0.ɵɵclassProp("inEditCol", i0.ɵɵpipeBind1(1, 7, ctx_r2.selectInputInEditId$) === col_r10.id);
|
|
289
|
-
i0.ɵɵadvance(2);
|
|
290
|
-
i0.ɵɵconditional(step_r2.sectionForm ? 2 : -1);
|
|
291
|
-
i0.ɵɵadvance();
|
|
292
|
-
i0.ɵɵconditional(col_r10.inputConfigErrors.length > 0 ? 3 : -1);
|
|
293
|
-
i0.ɵɵadvance();
|
|
294
|
-
i0.ɵɵconditional(ctx_r2.activeInput === col_r10.id ? 4 : -1);
|
|
295
|
-
} }
|
|
296
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
297
|
-
const _r21 = i0.ɵɵgetCurrentView();
|
|
298
|
-
i0.ɵɵelementStart(0, "section", 41)(1, "p", 63);
|
|
299
|
-
i0.ɵɵtext(2, "This section has no fields yet.");
|
|
300
|
-
i0.ɵɵelementEnd();
|
|
301
|
-
i0.ɵɵelementStart(3, "p", 64);
|
|
302
|
-
i0.ɵɵtext(4, "Add a field to start collecting information.");
|
|
303
|
-
i0.ɵɵelementEnd();
|
|
304
|
-
i0.ɵɵelementStart(5, "div", 65)(6, "button", 66);
|
|
305
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Conditional_4_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r21); const step_r2 = i0.ɵɵnextContext(4).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.addNewInput(step_r2.sectionId)); });
|
|
306
|
-
i0.ɵɵelementStart(7, "mat-icon");
|
|
307
|
-
i0.ɵɵtext(8, "add");
|
|
308
|
-
i0.ɵɵelementEnd();
|
|
309
|
-
i0.ɵɵtext(9, " Add field ");
|
|
310
|
-
i0.ɵɵelementEnd()()();
|
|
311
|
-
} }
|
|
312
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
313
|
-
const _r22 = i0.ɵɵgetCurrentView();
|
|
314
|
-
i0.ɵɵelementStart(0, "div", 42)(1, "button", 67);
|
|
315
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Conditional_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r22); const step_r2 = i0.ɵɵnextContext(4).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.addNewInput(step_r2.sectionId)); });
|
|
316
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
317
|
-
i0.ɵɵtext(3, "add");
|
|
318
|
-
i0.ɵɵelementEnd();
|
|
319
|
-
i0.ɵɵtext(4, " Add field ");
|
|
320
|
-
i0.ɵɵelementEnd()();
|
|
321
|
-
} }
|
|
322
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
323
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
324
|
-
i0.ɵɵelementStart(0, "div", 39, 4);
|
|
325
|
-
i0.ɵɵlistener("cdkDropListDropped", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Template_div_cdkDropListDropped_0_listener($event) { i0.ɵɵrestoreView(_r8); const step_r2 = i0.ɵɵnextContext(3).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.dropItems($event, step_r2.sectionId)); });
|
|
326
|
-
i0.ɵɵrepeaterCreate(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_For_3_Template, 5, 9, "mat-card", 40, _forTrack1);
|
|
327
|
-
i0.ɵɵelementEnd();
|
|
328
|
-
i0.ɵɵconditionalCreate(4, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Conditional_4_Template, 10, 0, "section", 41)(5, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Conditional_5_Template, 5, 0, "div", 42);
|
|
329
|
-
} if (rf & 2) {
|
|
330
|
-
const step_r2 = i0.ɵɵnextContext(3).$implicit;
|
|
331
|
-
i0.ɵɵproperty("cdkDropListData", step_r2.columns);
|
|
332
|
-
i0.ɵɵadvance(2);
|
|
333
|
-
i0.ɵɵrepeater(step_r2.columns);
|
|
334
|
-
i0.ɵɵadvance(2);
|
|
335
|
-
i0.ɵɵconditional(step_r2.columns.length === 0 ? 4 : 5);
|
|
336
|
-
} }
|
|
337
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
338
|
-
i0.ɵɵelement(0, "lib-section-report", 34);
|
|
339
|
-
} if (rf & 2) {
|
|
340
|
-
const step_r2 = i0.ɵɵnextContext(3).$implicit;
|
|
341
|
-
i0.ɵɵproperty("sectionId", step_r2.sectionId);
|
|
342
|
-
} }
|
|
343
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
344
|
-
i0.ɵɵelementStart(0, "button", 36);
|
|
345
|
-
i0.ɵɵtext(1, " Back ");
|
|
346
|
-
i0.ɵɵelementEnd();
|
|
347
|
-
} if (rf & 2) {
|
|
348
|
-
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
349
|
-
i0.ɵɵattribute("aria-label", "Go back to " + ctx_r2.getPreviousStepLabel());
|
|
350
|
-
} }
|
|
351
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
352
|
-
i0.ɵɵelementStart(0, "button", 37);
|
|
353
|
-
i0.ɵɵtext(1, " Next ");
|
|
354
|
-
i0.ɵɵelementEnd();
|
|
355
|
-
} if (rf & 2) {
|
|
356
|
-
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
357
|
-
i0.ɵɵattribute("aria-label", "Continue to " + ctx_r2.getNextStepLabel());
|
|
358
|
-
} }
|
|
359
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
360
|
-
const _r23 = i0.ɵɵgetCurrentView();
|
|
361
|
-
i0.ɵɵelementStart(0, "button", 68);
|
|
362
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); i0.ɵɵnextContext(4); const stepper_r24 = i0.ɵɵreference(4); return i0.ɵɵresetView(stepper_r24.reset()); });
|
|
363
|
-
i0.ɵɵtext(1, "Reset");
|
|
364
|
-
i0.ɵɵelementEnd();
|
|
365
|
-
} }
|
|
366
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Template(rf, ctx) { if (rf & 1) {
|
|
367
|
-
i0.ɵɵelementStart(0, "div", 33);
|
|
368
|
-
i0.ɵɵconditionalCreate(1, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_1_Template, 6, 2)(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_2_Template, 1, 1, "lib-section-report", 34);
|
|
369
|
-
i0.ɵɵelementStart(3, "div", 35);
|
|
370
|
-
i0.ɵɵconditionalCreate(4, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_4_Template, 2, 1, "button", 36);
|
|
371
|
-
i0.ɵɵconditionalCreate(5, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_5_Template, 2, 1, "button", 37);
|
|
372
|
-
i0.ɵɵconditionalCreate(6, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Conditional_6_Template, 2, 0, "button", 38);
|
|
373
|
-
i0.ɵɵelementEnd()();
|
|
374
|
-
} if (rf & 2) {
|
|
375
|
-
const ctx_r24 = i0.ɵɵnextContext(2);
|
|
376
|
-
const step_r2 = ctx_r24.$implicit;
|
|
377
|
-
const ɵ$index_12_r26 = ctx_r24.$index;
|
|
378
|
-
const ɵ$count_12_r27 = ctx_r24.$count;
|
|
379
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
380
|
-
i0.ɵɵadvance();
|
|
381
|
-
i0.ɵɵconditional(!ctx_r2.openSectionReports[step_r2.sectionId] ? 1 : 2);
|
|
382
|
-
i0.ɵɵadvance(3);
|
|
383
|
-
i0.ɵɵconditional(!(ɵ$index_12_r26 === 0) ? 4 : -1);
|
|
384
|
-
i0.ɵɵadvance();
|
|
385
|
-
i0.ɵɵconditional(!(ɵ$index_12_r26 === ɵ$count_12_r27 - 1) ? 5 : -1);
|
|
386
|
-
i0.ɵɵadvance();
|
|
387
|
-
i0.ɵɵconditional(ɵ$index_12_r26 === ɵ$count_12_r27 - 1 ? 6 : -1);
|
|
388
|
-
} }
|
|
389
|
-
function FormSectionStepperComponent_For_8_Conditional_0_DeferPlaceholder_3_Template(rf, ctx) { if (rf & 1) {
|
|
390
|
-
i0.ɵɵelementStart(0, "div", 69);
|
|
391
|
-
i0.ɵɵelement(1, "mat-spinner", 70);
|
|
392
|
-
i0.ɵɵelementEnd();
|
|
393
|
-
} }
|
|
394
|
-
function FormSectionStepperComponent_For_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
395
|
-
i0.ɵɵelementStart(0, "mat-step", 15);
|
|
396
|
-
i0.ɵɵtemplate(1, FormSectionStepperComponent_For_8_Conditional_0_ng_template_1_Template, 16, 11, "ng-template", 16);
|
|
397
|
-
i0.ɵɵdomTemplate(2, FormSectionStepperComponent_For_8_Conditional_0_Defer_2_Template, 7, 4)(3, FormSectionStepperComponent_For_8_Conditional_0_DeferPlaceholder_3_Template, 2, 0);
|
|
398
|
-
i0.ɵɵdefer(4, 2, FormSectionStepperComponent_For_8_Conditional_0_Defer_4_DepsFn, null, 3);
|
|
399
|
-
i0.ɵɵdeferOnViewport(0, -1);
|
|
400
|
-
i0.ɵɵdeferPrefetchOnIdle();
|
|
401
|
-
i0.ɵɵelementEnd();
|
|
402
|
-
} if (rf & 2) {
|
|
403
|
-
const ctx_r24 = i0.ɵɵnextContext();
|
|
404
|
-
const step_r2 = ctx_r24.$implicit;
|
|
405
|
-
const $index_r28 = ctx_r24.$index;
|
|
406
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
407
|
-
i0.ɵɵproperty("stepControl", step_r2.sectionForm || ctx_r2.getPlaceHolerForSection(step_r2.sectionId))("completed", step_r2.sectionIsSeen && !step_r2.sectionIsInvalid)("editable", ctx_r2.isEditable)("errorMessage", step_r2.sectionFormErrorMessage || "")("state", ctx_r2.getStepState(step_r2, $index_r28))("hasError", !(step_r2.sectionForm == null ? null : step_r2.sectionForm.valid) && !!(step_r2.sectionForm == null ? null : step_r2.sectionForm.touched));
|
|
408
|
-
} }
|
|
409
|
-
function FormSectionStepperComponent_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
410
|
-
i0.ɵɵconditionalCreate(0, FormSectionStepperComponent_For_8_Conditional_0_Template, 6, 6, "mat-step", 15);
|
|
411
|
-
} if (rf & 2) {
|
|
412
|
-
const step_r2 = ctx.$implicit;
|
|
413
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
414
|
-
i0.ɵɵconditional(step_r2.sectionForm || ctx_r2.getPlaceHolerForSection(step_r2.sectionId) ? 0 : -1);
|
|
415
|
-
} }
|
|
416
|
-
function FormSectionStepperComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
417
|
-
i0.ɵɵelementStart(0, "section", 8)(1, "p", 63);
|
|
418
|
-
i0.ɵɵtext(2, "A form section groups related fields together.");
|
|
419
|
-
i0.ɵɵelementEnd();
|
|
420
|
-
i0.ɵɵelementStart(3, "p", 64);
|
|
421
|
-
i0.ɵɵtext(4, "Click ");
|
|
422
|
-
i0.ɵɵelementStart(5, "strong");
|
|
423
|
-
i0.ɵɵtext(6, "\"Add Section\"");
|
|
424
|
-
i0.ɵɵelementEnd();
|
|
425
|
-
i0.ɵɵtext(7, " below to create your first section.");
|
|
426
|
-
i0.ɵɵelementEnd()();
|
|
427
|
-
} }
|
|
428
|
-
function FormSectionStepperComponent_Defer_17_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
429
|
-
i0.ɵɵelement(0, "mat-spinner", 74);
|
|
430
|
-
} }
|
|
431
|
-
function FormSectionStepperComponent_Defer_17_Template(rf, ctx) { if (rf & 1) {
|
|
432
|
-
i0.ɵɵelementStart(0, "footer")(1, "mat-toolbar", 71)(2, "span", 72);
|
|
433
|
-
i0.ɵɵtext(3);
|
|
434
|
-
i0.ɵɵpipe(4, "async");
|
|
435
|
-
i0.ɵɵelementEnd();
|
|
436
|
-
i0.ɵɵelementStart(5, "button", 73)(6, "span");
|
|
437
|
-
i0.ɵɵtext(7);
|
|
438
|
-
i0.ɵɵelementEnd();
|
|
439
|
-
i0.ɵɵconditionalCreate(8, FormSectionStepperComponent_Defer_17_Conditional_8_Template, 1, 0, "mat-spinner", 74);
|
|
440
|
-
i0.ɵɵelementEnd()()();
|
|
441
|
-
} if (rf & 2) {
|
|
442
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
443
|
-
i0.ɵɵadvance(3);
|
|
444
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ctx_r2.getSubmissionStatus$), " ");
|
|
445
|
-
i0.ɵɵadvance(2);
|
|
446
|
-
i0.ɵɵproperty("disabled", true);
|
|
447
|
-
i0.ɵɵadvance(2);
|
|
448
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.engine.formSubmissionMessage(), " ");
|
|
449
|
-
i0.ɵɵadvance();
|
|
450
|
-
i0.ɵɵconditional(ctx_r2.engine.submittingForm ? 8 : -1);
|
|
451
|
-
} }
|
|
452
|
-
function FormSectionStepperComponent_DeferPlaceholder_18_Template(rf, ctx) { if (rf & 1) {
|
|
453
|
-
i0.ɵɵelementStart(0, "footer");
|
|
454
|
-
i0.ɵɵelement(1, "div", 75);
|
|
455
|
-
i0.ɵɵelementEnd();
|
|
456
|
-
} }
|
|
457
|
-
function FormSectionStepperComponent_ng_template_23_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
458
|
-
const _r30 = i0.ɵɵgetCurrentView();
|
|
459
|
-
i0.ɵɵelementStart(0, "button", 77);
|
|
460
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_ng_template_23_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); const sectionId_r31 = i0.ɵɵnextContext().sectionId; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.deleteSection(sectionId_r31, false)); });
|
|
461
|
-
i0.ɵɵelementStart(1, "mat-icon", 78);
|
|
462
|
-
i0.ɵɵtext(2, "delete");
|
|
463
|
-
i0.ɵɵelementEnd();
|
|
464
|
-
i0.ɵɵelementStart(3, "span", 78);
|
|
465
|
-
i0.ɵɵtext(4, "Delete section");
|
|
466
|
-
i0.ɵɵelementEnd()();
|
|
467
|
-
i0.ɵɵelementStart(5, "button", 79);
|
|
468
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_ng_template_23_Conditional_0_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r30); const sectionId_r31 = i0.ɵɵnextContext().sectionId; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.deleteSection(sectionId_r31, true)); });
|
|
469
|
-
i0.ɵɵelementStart(6, "mat-icon", 78);
|
|
470
|
-
i0.ɵɵtext(7, "delete_sweep");
|
|
471
|
-
i0.ɵɵelementEnd();
|
|
472
|
-
i0.ɵɵelementStart(8, "span", 78);
|
|
473
|
-
i0.ɵɵtext(9, "Delete section inputs");
|
|
474
|
-
i0.ɵɵelementEnd()();
|
|
475
|
-
} }
|
|
476
|
-
function FormSectionStepperComponent_ng_template_23_Template(rf, ctx) { if (rf & 1) {
|
|
477
|
-
const _r29 = i0.ɵɵgetCurrentView();
|
|
478
|
-
i0.ɵɵconditionalCreate(0, FormSectionStepperComponent_ng_template_23_Conditional_0_Template, 10, 0);
|
|
479
|
-
i0.ɵɵelementStart(1, "button", 76);
|
|
480
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_ng_template_23_Template_button_click_1_listener() { const sectionId_r31 = i0.ɵɵrestoreView(_r29).sectionId; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleSectionReports(sectionId_r31)); });
|
|
481
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
482
|
-
i0.ɵɵtext(3, "leaderboard");
|
|
483
|
-
i0.ɵɵelementEnd();
|
|
484
|
-
i0.ɵɵtext(4);
|
|
485
|
-
i0.ɵɵelementEnd();
|
|
486
|
-
} if (rf & 2) {
|
|
487
|
-
const sectionId_r31 = ctx.sectionId;
|
|
488
|
-
const columns_r32 = ctx.columns;
|
|
489
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
490
|
-
i0.ɵɵconditional(ctx_r2.sectionIncludesDefault(columns_r32) === false ? 0 : -1);
|
|
491
|
-
i0.ɵɵadvance(4);
|
|
492
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.openSectionReports[sectionId_r31] ? "Close report" : "Section report");
|
|
493
|
-
} }
|
|
494
|
-
function FormSectionStepperComponent_ng_template_40_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
495
|
-
const _r33 = i0.ɵɵgetCurrentView();
|
|
496
|
-
i0.ɵɵelementStart(0, "button", 81);
|
|
497
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_ng_template_40_For_1_Template_button_click_0_listener() { const section_r34 = i0.ɵɵrestoreView(_r33).$implicit; const id_r35 = i0.ɵɵnextContext().id; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.moveInputToSection(id_r35, section_r34.sectionId)); });
|
|
498
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
|
499
|
-
i0.ɵɵtext(2, "folder");
|
|
500
|
-
i0.ɵɵelementEnd();
|
|
501
|
-
i0.ɵɵtext(3);
|
|
502
|
-
i0.ɵɵelementEnd();
|
|
503
|
-
} if (rf & 2) {
|
|
504
|
-
const section_r34 = ctx.$implicit;
|
|
505
|
-
const sectionId_r36 = i0.ɵɵnextContext().sectionId;
|
|
506
|
-
i0.ɵɵproperty("disabled", section_r34.sectionId === sectionId_r36);
|
|
507
|
-
i0.ɵɵadvance(3);
|
|
508
|
-
i0.ɵɵtextInterpolate1(" ", section_r34.label || "Untitled section", " ");
|
|
509
|
-
} }
|
|
510
|
-
function FormSectionStepperComponent_ng_template_40_Template(rf, ctx) { if (rf & 1) {
|
|
511
|
-
i0.ɵɵrepeaterCreate(0, FormSectionStepperComponent_ng_template_40_For_1_Template, 4, 2, "button", 80, _forTrack0);
|
|
512
|
-
} if (rf & 2) {
|
|
513
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
514
|
-
i0.ɵɵrepeater(ctx_r2.selectFormStepsComputed);
|
|
515
|
-
} }
|
|
516
|
-
class FormSectionStepperComponent {
|
|
517
|
-
constructor() {
|
|
518
|
-
/**
|
|
519
|
-
* Runtime form engine, held by composition (SIGNAL_FORMS Phase 0, D-025).
|
|
520
|
-
* Provided per-component instance; replaces the former `extends` of the tower.
|
|
521
|
-
*/
|
|
522
|
-
this.engine = inject(TFormEngine);
|
|
523
|
-
this.#destroyRef = inject(DestroyRef);
|
|
524
|
-
this.#store = inject(FormsStoreService);
|
|
525
|
-
this.#ref = inject(ChangeDetectorRef);
|
|
526
|
-
this.#snackBar = inject(MatSnackBar);
|
|
527
|
-
this.#tourManagerService = inject(TourManagerService);
|
|
528
|
-
this.stepper = viewChild('stepper', ...(ngDevMode ? [{ debugName: "stepper" }] : /* istanbul ignore next */ []));
|
|
529
|
-
this.loadingForm$ = this.#store.selectors.selectLoadingForm$;
|
|
530
|
-
this.selectInputInEditId$ = this.#store.selectors.selectInputInEditId$;
|
|
531
|
-
this.isEditable = true;
|
|
532
|
-
this.dragging = false;
|
|
533
|
-
this.mouseOverSection = null;
|
|
534
|
-
this.overId = null;
|
|
535
|
-
this.openSectionReports = {};
|
|
536
|
-
this.countdownSeconds = {};
|
|
537
|
-
// CDK drag-drop generics retained loose because the template's `<mat-step [stepControl]>`/
|
|
538
|
-
// `<div cdkDropList [cdkDropListData]>` bindings pass `ITowerFormSteps[]` / `ITowerStepColumn[]`
|
|
539
|
-
// which structurally differ from the store-action payload types (`FormSlideInterface[]` / `FormColumnInputs[]`).
|
|
540
|
-
// The downstream store actions accept the looser `<any, any, unknown>` shape so this is type-safe at the call boundary.
|
|
541
|
-
// Phase-4 TODO: tighten once FormBuilderFunctions.reorderItems generics are typed upstream.
|
|
542
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
543
|
-
this.drop = (event) => this.#store.actionsFormBuilder.handleSectionDragDrop(event);
|
|
544
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
545
|
-
this.dropItems = (event, sectionId) => this.#store.actionsFormBuilder.handleInputDragDrop(event, sectionId);
|
|
546
|
-
this.formDeleteSection = (sectionId) => this.#store.actionsFormBuilder.formDeleteSection(sectionId);
|
|
547
|
-
this.formDeleteSectionInputs = (sectionId) => this.#store.actionsFormBuilder.formDeleteSectionInputs(sectionId);
|
|
548
|
-
this.addMultipleFormInput = (sectionId, multipleInputId) => this.#store.actionsFormBuilder.addMultipleFormInput(sectionId, multipleInputId);
|
|
549
|
-
this.moveInputToSection = (inputId, targetSectionId) => this.#store.actionsFormBuilder.moveInputToSection(inputId, targetSectionId);
|
|
550
|
-
this.reorderMultipleInputItems = (
|
|
551
|
-
// Mirrors `FormBuilderFunctions.reorderItems` (now generic over the row
|
|
552
|
-
// shape). The lib-internal store action requires symmetric container data,
|
|
553
|
-
// so we narrow the second slot to `FormColumnInputs[]` at the boundary.
|
|
554
|
-
event, multipleInputId) => this.#store.actionsFormBuilder.reorderMultipleInputItems(event, multipleInputId);
|
|
555
|
-
this.cloneCopyFormInput = (inputId) => this.#store.actionsFormBuilder.cloneCopyFormInput(inputId);
|
|
556
|
-
this.multipleInputToggleLabel = (item) => this.#store.actionsFormBuilder.multipleInputToggleLabel(item);
|
|
557
|
-
this.editInput = (item) => this.#store.actionsFormBuilder.editInput(item);
|
|
558
|
-
/**
|
|
559
|
-
* Element types whose live value does not round-trip through `prepPopulateForm`
|
|
560
|
-
* as a single static default `value`, so they are excluded from one-click
|
|
561
|
-
* default saving:
|
|
562
|
-
* - DateRangePicker keeps separate start/end controls.
|
|
563
|
-
* - MscoaSelection hydrates per-segment controls.
|
|
564
|
-
* - SectionTitle has no value.
|
|
565
|
-
*
|
|
566
|
-
* MultipleInput IS supported: its rows are captured in `formControlName` shape
|
|
567
|
-
* via {@link saveInputDefaultValue} and `prepPopulateForm` re-hydrates them.
|
|
568
|
-
* The generic "Default value" text editor would otherwise clobber the array on
|
|
569
|
-
* subsequent edits — `elementConfigurationChangedFn` guards against that.
|
|
570
|
-
*/
|
|
571
|
-
this.#nonDefaultableElements = new Set([
|
|
572
|
-
ElementTypes.DateRangePicker,
|
|
573
|
-
ElementTypes.MscoaSelection,
|
|
574
|
-
ElementTypes.SectionTitle,
|
|
575
|
-
]);
|
|
576
|
-
/** Live form control backing this input in the editor preview, if any. */
|
|
577
|
-
this.#liveInputControl = (col) => this.engine.mainForm?.get([col.sectionId, col.id]) ?? null;
|
|
578
|
-
/**
|
|
579
|
-
* True for any input whose value can be persisted as a default in a shape that
|
|
580
|
-
* re-hydrates on load. Intentionally not gated on the value being present or
|
|
581
|
-
* valid — saving an empty value is how a previously-saved default is cleared.
|
|
582
|
-
* Composite inputs (date-range, MSCOA, section title) are excluded because
|
|
583
|
-
* their value does not round-trip as a single default `value`.
|
|
584
|
-
*/
|
|
585
|
-
this.canSaveDefaultValue = (col) => {
|
|
586
|
-
if (!col.formControlName || this.#nonDefaultableElements.has(col.element))
|
|
587
|
-
return false;
|
|
588
|
-
return !!this.#liveInputControl(col);
|
|
589
|
-
};
|
|
590
|
-
/**
|
|
591
|
-
* Saves the input's current live value as its default value (or clears the
|
|
592
|
-
* default when the value is empty). The value is read in `formControlName`
|
|
593
|
-
* shape (via the tower's `getFormValueNames`) — the same shape
|
|
594
|
-
* `prepPopulateForm` consumes — so the persisted default re-hydrates correctly
|
|
595
|
-
* when the form is loaded later, including MultipleInput row arrays. Limited to
|
|
596
|
-
* the inputs allowed by {@link canSaveDefaultValue}.
|
|
597
|
-
*/
|
|
598
|
-
this.saveInputDefaultValue = (col) => {
|
|
599
|
-
if (!col.formControlName)
|
|
600
|
-
return;
|
|
601
|
-
const value = this.engine.getFormValueNames()[col.formControlName];
|
|
602
|
-
// eslint-disable-next-line no-console
|
|
603
|
-
console.log('[dv-debug] saveInputDefaultValue capture', {
|
|
604
|
-
inputId: col.id,
|
|
605
|
-
element: col.element,
|
|
606
|
-
formControlName: col.formControlName,
|
|
607
|
-
capturedValue: value,
|
|
608
|
-
liveControlValue: this.#liveInputControl(col)?.value,
|
|
609
|
-
});
|
|
610
|
-
this.#store.actionsFormBuilder.saveInputDefaultValue(col.id, value);
|
|
611
|
-
};
|
|
612
|
-
this.addMultipleInputValueCalculationFunction = (item, multipleInputId) => this.#store.actionsFormBuilder.addMultipleInputValueCalculationFunction(item, multipleInputId);
|
|
613
|
-
this.setActiveSection = ($event) => this.setMatActiveStepper($event.selectedIndex);
|
|
614
|
-
this.addInputToScoaSelection = (sectionId, scoaInputId) => this.#store.actionsFormBuilder.addInputToScoaSelection(sectionId, scoaInputId);
|
|
615
|
-
this.addNewInput = (sectionId) => this.#store.actionsFormBuilder.saveInput(sectionId);
|
|
616
|
-
this.addSection = () => this.#store.actionsFormBuilder.handleAddSection();
|
|
617
|
-
this.setMatActiveStepper = (index) => {
|
|
618
|
-
setTimeout(() => {
|
|
619
|
-
const stepper = this.stepper();
|
|
620
|
-
if (stepper === undefined)
|
|
621
|
-
return;
|
|
622
|
-
stepper.selectedIndex = index;
|
|
623
|
-
}, 0);
|
|
624
|
-
};
|
|
625
|
-
this.handleInput = (event, sectionId) => {
|
|
626
|
-
const inputValue = event.target.value;
|
|
627
|
-
this.#store.actionsFormBuilder?.stepTitleChangeStep(sectionId, inputValue);
|
|
628
|
-
event.stopPropagation();
|
|
629
|
-
event.preventDefault();
|
|
630
|
-
};
|
|
631
|
-
this.inputWillBeRemovedIn = (id) => this.countdownSeconds[id]?.count;
|
|
632
|
-
// Template binds `step.sectionForm || getPlaceHolerForSection(...)` to `<mat-step [stepControl]>`
|
|
633
|
-
// which requires a non-undefined AbstractControl; the placeholder is always present at render time
|
|
634
|
-
// (created by the store ahead of the @if(step.sectionForm || ...) guard). Phase-4 TODO: tighten store
|
|
635
|
-
// contract to guarantee placeholder presence and make this non-nullable.
|
|
636
|
-
this.getPlaceHolerForSection = (sectionId) => this.#store.sectionPlaceholder[sectionId];
|
|
637
|
-
this.formDeleteInput = (item) => this.#store.actionsFormBuilder.formDeleteInput(item);
|
|
638
|
-
this.toggleSectionReports = (sectionId) => (this.openSectionReports[sectionId] = !this.openSectionReports[sectionId]);
|
|
639
|
-
this.refreshASection = (sectionId) => {
|
|
640
|
-
this.engine.refreshSection(sectionId)
|
|
641
|
-
.pipe(take(1), takeUntilDestroyed(this.#destroyRef))
|
|
642
|
-
.subscribe();
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
#destroyRef;
|
|
646
|
-
#store;
|
|
647
|
-
#ref;
|
|
648
|
-
#snackBar;
|
|
649
|
-
#tourManagerService;
|
|
650
|
-
ngOnDestroy() {
|
|
651
|
-
this.#store.deregisterFormChangeFn();
|
|
652
|
-
// The per-component TFormEngine is torn down automatically by Angular when
|
|
653
|
-
// this component is destroyed (component-provided service ngOnDestroy).
|
|
654
|
-
}
|
|
655
|
-
ngOnInit() {
|
|
656
|
-
this.#store.registerFormChangeFn(this.engine.initialize);
|
|
657
|
-
this.engine.registerFormInputConfigChangeFn((inputId, config) => {
|
|
658
|
-
this.#store.actions.updateFormInputConfigFromTower({ inputId, config });
|
|
659
|
-
});
|
|
660
|
-
this.#store.selectors.selectFormInEdit$
|
|
661
|
-
.pipe(take(1), filter(form => form !== null && form !== undefined), tap(form => this.engine.initialize(form.form)), takeUntilDestroyed(this.#destroyRef))
|
|
662
|
-
.subscribe();
|
|
663
|
-
}
|
|
664
|
-
/**
|
|
665
|
-
* Handles the key down event and reverts the last form change on Ctrl+Z.
|
|
666
|
-
* @param event The keyboard event object.
|
|
667
|
-
*/
|
|
668
|
-
onKeyDown(event) {
|
|
669
|
-
if (event.ctrlKey && event.key === 'z') {
|
|
670
|
-
this.engine.revertBackHistory();
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
get formBuilderFunctions() {
|
|
674
|
-
const fns = {
|
|
675
|
-
getLatestAccountTree: () => this.engine.NGX_T_FORMS_CONFIG.formBuilder.getScoaTree(),
|
|
676
|
-
getSCOAAccount: (SCOAAccount) => this.engine.NGX_T_FORMS_CONFIG.formBuilder.getSCOAAccount(SCOAAccount),
|
|
677
|
-
multipleInputToggleForm: this.engine.toggleMultipleInput.bind(this.engine),
|
|
678
|
-
multipleInputSaveForm: this.engine.saveMultipleInputForm.bind(this.engine),
|
|
679
|
-
editInput: this.editInput.bind(this),
|
|
680
|
-
deleteInput: this.formDeleteInput.bind(this),
|
|
681
|
-
addFunction: this.addMultipleInputValueCalculationFunction.bind(this),
|
|
682
|
-
// Pre-existing node_modules duplication (ngx-t-forms-typings ships its own @angular/cdk copy).
|
|
683
|
-
// CdkDragDrop types are nominally distinct due to private `_changeDetectorRef`. Cast at the boundary.
|
|
684
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Phase-4 TODO: deduplicate @angular/cdk peer dep in typings package.
|
|
685
|
-
reorderItems: this.reorderMultipleInputItems.bind(this),
|
|
686
|
-
multipleInputToggleLabel: this.multipleInputToggleLabel.bind(this),
|
|
687
|
-
multipleInputEditRow: this.engine.multipleInputEditRow.bind(this.engine),
|
|
688
|
-
multipleInputDuplicateRow: this.engine.multipleInputDuplicateRow.bind(this.engine),
|
|
689
|
-
};
|
|
690
|
-
return fns;
|
|
691
|
-
}
|
|
692
|
-
getPreviousStepLabel() {
|
|
693
|
-
const stepper = this.stepper();
|
|
694
|
-
if (stepper === undefined)
|
|
695
|
-
return '';
|
|
696
|
-
const currentIndex = stepper.selectedIndex;
|
|
697
|
-
if (currentIndex > 0) {
|
|
698
|
-
return this.engine.selectFormSteps()?.[currentIndex - 1]?.label;
|
|
699
|
-
}
|
|
700
|
-
return '';
|
|
701
|
-
}
|
|
702
|
-
getNextStepLabel() {
|
|
703
|
-
const stepper = this.stepper();
|
|
704
|
-
if (stepper === undefined)
|
|
705
|
-
return '';
|
|
706
|
-
const currentIndex = stepper.selectedIndex;
|
|
707
|
-
const steps = this.engine.selectFormSteps();
|
|
708
|
-
if (!steps)
|
|
709
|
-
return '';
|
|
710
|
-
if (currentIndex < steps.length - 1) {
|
|
711
|
-
return steps[currentIndex + 1]?.label;
|
|
712
|
-
}
|
|
713
|
-
return '';
|
|
714
|
-
}
|
|
715
|
-
getStepState(step, index) {
|
|
716
|
-
const activeStep = this.stepper()?.selectedIndex === index;
|
|
717
|
-
if (activeStep)
|
|
718
|
-
return 'edit';
|
|
719
|
-
if (step.sectionForm?.touched && !step.sectionForm?.valid)
|
|
720
|
-
return 'error';
|
|
721
|
-
if (step.sectionForm?.valid)
|
|
722
|
-
return 'done';
|
|
723
|
-
return 'number';
|
|
724
|
-
}
|
|
725
|
-
get getSubmissionStatus$() {
|
|
726
|
-
const progress = this.engine.formProgress() || 0;
|
|
727
|
-
const steps = this.engine.selectFormSteps();
|
|
728
|
-
return this.loadingForm$.pipe(map(loading => getSubmissionStatusFn(this.stepper(), this.engine.mainForm, progress, steps, loading)));
|
|
729
|
-
}
|
|
730
|
-
/**
|
|
731
|
-
* Element types whose live value does not round-trip through `prepPopulateForm`
|
|
732
|
-
* as a single static default `value`, so they are excluded from one-click
|
|
733
|
-
* default saving:
|
|
734
|
-
* - DateRangePicker keeps separate start/end controls.
|
|
735
|
-
* - MscoaSelection hydrates per-segment controls.
|
|
736
|
-
* - SectionTitle has no value.
|
|
737
|
-
*
|
|
738
|
-
* MultipleInput IS supported: its rows are captured in `formControlName` shape
|
|
739
|
-
* via {@link saveInputDefaultValue} and `prepPopulateForm` re-hydrates them.
|
|
740
|
-
* The generic "Default value" text editor would otherwise clobber the array on
|
|
741
|
-
* subsequent edits — `elementConfigurationChangedFn` guards against that.
|
|
742
|
-
*/
|
|
743
|
-
#nonDefaultableElements;
|
|
744
|
-
/** Live form control backing this input in the editor preview, if any. */
|
|
745
|
-
#liveInputControl;
|
|
746
|
-
get selectFormStepsComputed() {
|
|
747
|
-
return this.engine.selectFormSteps().map(step => ({
|
|
748
|
-
...step,
|
|
749
|
-
columns: step.columns.map(col => ({
|
|
750
|
-
...col,
|
|
751
|
-
inputConfigErrors: validateFormColumnInputs(col),
|
|
752
|
-
})),
|
|
753
|
-
}));
|
|
754
|
-
}
|
|
755
|
-
stopDeletion(id) {
|
|
756
|
-
if (this.countdownSeconds[id]) {
|
|
757
|
-
this.countdownSeconds[id]?.stop$.next();
|
|
758
|
-
delete this.countdownSeconds[id];
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
removeInput(item) {
|
|
762
|
-
if (this.countdownSeconds[item.id]) {
|
|
763
|
-
this.stopDeletion(item.id);
|
|
764
|
-
return;
|
|
765
|
-
}
|
|
766
|
-
this.countdownSeconds[item.id] = {
|
|
767
|
-
count: 5,
|
|
768
|
-
stop$: new Subject(),
|
|
769
|
-
deleteInputs: false,
|
|
770
|
-
};
|
|
771
|
-
const countdown$ = timer(0, 1000).pipe(tap(secondsElapsed => {
|
|
772
|
-
const data = this.countdownSeconds[item.id];
|
|
773
|
-
if (!data) {
|
|
774
|
-
return;
|
|
775
|
-
}
|
|
776
|
-
const remainingTime = 5 - secondsElapsed;
|
|
777
|
-
if (remainingTime <= 0) {
|
|
778
|
-
this.formDeleteInput(item);
|
|
779
|
-
this.stopDeletion(item.id);
|
|
780
|
-
}
|
|
781
|
-
else {
|
|
782
|
-
data.count = remainingTime;
|
|
783
|
-
}
|
|
784
|
-
}), takeUntil(this.countdownSeconds[item.id]?.stop$), takeUntilDestroyed(this.#destroyRef));
|
|
785
|
-
countdown$?.subscribe({ complete: () => { } });
|
|
786
|
-
}
|
|
787
|
-
deleteSection(sectionId, deleteInputs = false) {
|
|
788
|
-
if (!sectionId) {
|
|
789
|
-
return;
|
|
790
|
-
}
|
|
791
|
-
if (this.countdownSeconds[sectionId]) {
|
|
792
|
-
this.stopDeletion(sectionId);
|
|
793
|
-
return;
|
|
794
|
-
}
|
|
795
|
-
this.countdownSeconds[sectionId] = {
|
|
796
|
-
count: 5,
|
|
797
|
-
stop$: new Subject(),
|
|
798
|
-
deleteInputs: deleteInputs,
|
|
799
|
-
};
|
|
800
|
-
const countdown$ = timer(0, 1000).pipe(tap(secondsElapsed => {
|
|
801
|
-
const data = this.countdownSeconds[sectionId];
|
|
802
|
-
if (!data) {
|
|
803
|
-
return;
|
|
804
|
-
}
|
|
805
|
-
const remainingTime = 5 - secondsElapsed;
|
|
806
|
-
if (remainingTime <= 0) {
|
|
807
|
-
if (data.deleteInputs) {
|
|
808
|
-
this.formDeleteSectionInputs(sectionId);
|
|
809
|
-
}
|
|
810
|
-
else {
|
|
811
|
-
this.formDeleteSection(sectionId);
|
|
812
|
-
}
|
|
813
|
-
this.stopDeletion(sectionId);
|
|
814
|
-
}
|
|
815
|
-
else {
|
|
816
|
-
data.count = remainingTime;
|
|
817
|
-
}
|
|
818
|
-
}), takeUntil(this.countdownSeconds[sectionId]?.stop$), takeUntilDestroyed(this.#destroyRef));
|
|
819
|
-
countdown$?.subscribe({ complete: () => { } });
|
|
820
|
-
}
|
|
821
|
-
refresh() {
|
|
822
|
-
this.#ref.markForCheck();
|
|
823
|
-
this.#ref.detectChanges();
|
|
824
|
-
}
|
|
825
|
-
sectionIncludesDefault(columns) {
|
|
826
|
-
return columns.some(col => col.systemDefault);
|
|
827
|
-
}
|
|
828
|
-
startTour(sectionId) {
|
|
829
|
-
const tourOptions = this.engine.selectAllFormTours().filter(step => step.sectionId === sectionId);
|
|
830
|
-
this.#tourManagerService.startTourByOption(tourOptions);
|
|
831
|
-
}
|
|
832
|
-
onSpaceKey(event, sectionId) {
|
|
833
|
-
const inputValue = event.target.value;
|
|
834
|
-
this.#store.actionsFormBuilder?.stepTitleChangeStep(sectionId, inputValue + ' ');
|
|
835
|
-
event.stopPropagation();
|
|
836
|
-
event.preventDefault();
|
|
837
|
-
}
|
|
838
|
-
addColAndOpen(col) {
|
|
839
|
-
this.addMultipleFormInput(col.sectionId, col.id);
|
|
840
|
-
if (!col.formIsOpen) {
|
|
841
|
-
this.engine.toggleMultipleInput(col.id, true);
|
|
842
|
-
}
|
|
843
|
-
this.#snackBar.open('✨Input field successfully added to the row entry form. Open the form to configure it further.', 'OK', { duration: 3000 });
|
|
844
|
-
}
|
|
845
|
-
static { this.ɵfac = function FormSectionStepperComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormSectionStepperComponent)(); }; }
|
|
846
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormSectionStepperComponent, selectors: [["lib-form-section-stepper"]], viewQuery: function FormSectionStepperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
847
|
-
i0.ɵɵviewQuerySignal(ctx.stepper, _c0, 5);
|
|
848
|
-
} if (rf & 2) {
|
|
849
|
-
i0.ɵɵqueryAdvance();
|
|
850
|
-
} }, features: [i0.ɵɵProvidersFeature([TFormEngine])], decls: 41, vars: 11, consts: [["stepper", "", "formSections", "cdkDropList"], ["sectionMenu", "matMenu"], ["sectionType", "matMenu"], ["moveInput", "matMenu"], ["InputList", "cdkDropList"], ["appearance", "raised", 1, "mainCard"], ["role", "status", "aria-live", "polite", 1, "loading-container"], ["orientation", "vertical", "aria-label", "Form sections stepper", "cdkDropList", "", 1, "form-stepper", 3, "cdkDropListDropped", "selectionChange", "linear", "animationDuration", "cdkDropListData"], [1, "empty-state-section", "add-section-hint"], [1, "sticky-actions"], [1, "spacer"], ["color", "accent", "mat-flat-button", "", "aria-label", "Add new section", 3, "click"], ["matMenuContent", ""], ["mat-menu-item", ""], ["diameter", "48", "aria-label", "Loading form"], [3, "stepControl", "completed", "editable", "errorMessage", "state", "hasError"], ["matStepLabel", ""], ["cdkDrag", "", 1, "step-label-container"], ["cdkDragHandle", "", "type", "button", "matTooltip", "Drag to reorder section", "aria-label", "Drag to reorder section", "mat-icon-button", "", 1, "section-drag-handle", 3, "click"], [1, "step-label-text"], ["matInput", "", "placeholder", "Untitled section \u2014 click to name", "aria-label", "Section title", 1, "section-title-input", 3, "input", "keydown.space", "value"], ["aria-hidden", "true", 1, "section-title-edit-hint"], [1, "section-status-icon", 3, "error"], [1, "tour-trigger"], ["color", "warn", "mat-stroked-button", "", 1, "countdown-button"], ["mat-icon-button", "", "matTooltip", "Click to refresh this section.", 1, "input-sync-button"], ["mat-icon-button", "", "aria-label", "Section options menu", 3, "click", "matMenuTriggerData", "matMenuTriggerFor"], [1, "section-status-icon"], ["tourAnchor", "Form-Tour-trigger", "matTooltip", "Start section tour", "mat-icon-button", "", "aria-label", "Start section tour", 3, "click"], ["color", "warn", "mat-stroked-button", "", 1, "countdown-button", 3, "mouseover", "mouseout", "click"], [1, "delete-countdown"], ["color", "primary", 1, "cancelProgress", 3, "value"], ["mat-icon-button", "", "matTooltip", "Click to refresh this section.", 1, "input-sync-button", 3, "click"], [1, "step-content"], [3, "sectionId"], [1, "step-actions"], ["mat-button", "", "matStepperPrevious", "", "type", "button", 1, "navigation-button"], ["mat-flat-button", "", "matStepperNext", "", "color", "primary", "type", "button", "matTooltip", "Continue to next section", 1, "navigation-button"], ["mat-button", "", "aria-label", "Reset form"], ["cdkDropList", "", 1, "row", "form-section", 3, "cdkDropListDropped", "cdkDropListData"], ["cdkDrag", "", 3, "inEditCol", "class"], [1, "empty-state-section"], [1, "section-add-field"], ["cdkDrag", "", 3, "cdkDragStarted", "cdkDragReleased", "mouseover", "focusin"], [3, "editorMode", "tourAnchor", "formBuilderFunctions", "inputConfig", "formGroup"], [1, "error"], [3, "valueChange", "editorMode", "tourAnchor", "formBuilderFunctions", "inputConfig", "formGroup"], [1, "error-list"], [1, "error-item"], ["color", "primary", "mat-icon-button", "", "aria-label", "Edit input", 3, "click", "matTooltip"], ["color", "primary", "mat-icon-button", "", "aria-label", "Save current value as default", 3, "matTooltip"], ["mat-icon-button", "", "aria-label", "Move input to another section", 3, "matTooltip", "matMenuTriggerFor", "matMenuTriggerData"], ["mat-icon-button", "", "aria-label", "Clone input", 3, "click", "matTooltip"], ["color", "warn", "mat-stroked-button", ""], ["color", "warn", "mat-icon-button", "", "aria-label", "Delete input", 3, "matTooltip"], ["matTooltip", "Extend SCOA Segments with additional inputs", "color", "accent", "mat-flat-button", ""], ["color", "primary", "mat-icon-button", "", "aria-label", "Save current value as default", 3, "click", "matTooltip"], ["color", "warn", "mat-stroked-button", "", 3, "mouseover", "mouseout", "click"], ["color", "warn", "mat-icon-button", "", "aria-label", "Delete input", 3, "click", "matTooltip"], ["matTooltip", "Open the row entry form \u2014 configure each column's input type here", "mat-button", ""], ["matTooltip", "Add a new column field to this table", "color", "accent", "mat-stroked-button", "", 3, "click", "disabled"], ["matTooltip", "Open the row entry form \u2014 configure each column's input type here", "mat-button", "", 3, "click"], ["matTooltip", "Extend SCOA Segments with additional inputs", "color", "accent", "mat-flat-button", "", 3, "click"], [1, "empty-state-text"], [1, "empty-state-hint"], [1, "empty-state-actions"], ["matTooltip", "Add a field to this section", "color", "primary", "mat-flat-button", "", 3, "click"], ["matTooltip", "Add another field to this section", "mat-stroked-button", "", "aria-label", "Add field to this section", 1, "add-field-button", 3, "click"], ["mat-button", "", "aria-label", "Reset form", 3, "click"], [1, "step-placeholder"], ["diameter", "24", "aria-label", "Loading step content"], ["role", "toolbar", "aria-label", "Form submission actions", 1, "submission-toolbar"], ["role", "status", 1, "submission-status"], ["mat-raised-button", "", "color", "primary", "aria-label", "Submit form", 3, "disabled"], ["diameter", "10"], [1, "submission-toolbar-placeholder"], ["mat-menu-item", "", 3, "click"], ["matTooltip", "Deletes this section and all its inputs", "matTooltipPosition", "right", "mat-menu-item", "", 3, "click"], [2, "color", "var(--mat-sys-error, #b3261e)"], ["matTooltip", "Deletes all inputs in this section", "matTooltipPosition", "right", "mat-menu-item", "", 3, "click"], ["mat-menu-item", "", 3, "disabled"], ["mat-menu-item", "", 3, "click", "disabled"]], template: function FormSectionStepperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
851
|
-
i0.ɵɵelementStart(0, "mat-card", 5);
|
|
852
|
-
i0.ɵɵconditionalCreate(1, FormSectionStepperComponent_Conditional_1_Template, 2, 0, "div", 6);
|
|
853
|
-
i0.ɵɵpipe(2, "async");
|
|
854
|
-
i0.ɵɵelementStart(3, "mat-stepper", 7, 0);
|
|
855
|
-
i0.ɵɵpipe(6, "async");
|
|
856
|
-
i0.ɵɵlistener("cdkDropListDropped", function FormSectionStepperComponent_Template_mat_stepper_cdkDropListDropped_3_listener($event) { return ctx.drop($event); })("selectionChange", function FormSectionStepperComponent_Template_mat_stepper_selectionChange_3_listener($event) { return ctx.engine.handleStepChange($event); });
|
|
857
|
-
i0.ɵɵrepeaterCreate(7, FormSectionStepperComponent_For_8_Template, 1, 1, null, null, _forTrack0);
|
|
858
|
-
i0.ɵɵelementEnd();
|
|
859
|
-
i0.ɵɵconditionalCreate(9, FormSectionStepperComponent_Conditional_9_Template, 8, 0, "section", 8);
|
|
860
|
-
i0.ɵɵelementStart(10, "mat-card-actions", 9);
|
|
861
|
-
i0.ɵɵelement(11, "span", 10);
|
|
862
|
-
i0.ɵɵelementStart(12, "button", 11);
|
|
863
|
-
i0.ɵɵlistener("click", function FormSectionStepperComponent_Template_button_click_12_listener() { return ctx.addSection(); });
|
|
864
|
-
i0.ɵɵelementStart(13, "mat-icon");
|
|
865
|
-
i0.ɵɵtext(14, "add");
|
|
866
|
-
i0.ɵɵelementEnd();
|
|
867
|
-
i0.ɵɵtext(15, " Add Section ");
|
|
868
|
-
i0.ɵɵelementEnd();
|
|
869
|
-
i0.ɵɵelement(16, "span", 10);
|
|
870
|
-
i0.ɵɵelementEnd();
|
|
871
|
-
i0.ɵɵdomTemplate(17, FormSectionStepperComponent_Defer_17_Template, 9, 6)(18, FormSectionStepperComponent_DeferPlaceholder_18_Template, 2, 0);
|
|
872
|
-
i0.ɵɵdefer(19, 17, FormSectionStepperComponent_Defer_19_DepsFn, null, 18);
|
|
873
|
-
i0.ɵɵdeferOnIdle();
|
|
874
|
-
i0.ɵɵdeferPrefetchOnViewport(0, -1);
|
|
875
|
-
i0.ɵɵelementEnd();
|
|
876
|
-
i0.ɵɵelementStart(21, "mat-menu", null, 1);
|
|
877
|
-
i0.ɵɵtemplate(23, FormSectionStepperComponent_ng_template_23_Template, 5, 2, "ng-template", 12);
|
|
878
|
-
i0.ɵɵelementEnd();
|
|
879
|
-
i0.ɵɵelementStart(24, "mat-menu", null, 2)(26, "button", 13)(27, "mat-icon");
|
|
880
|
-
i0.ɵɵtext(28, "visibility");
|
|
881
|
-
i0.ɵɵelementEnd();
|
|
882
|
-
i0.ɵɵtext(29, " view only");
|
|
883
|
-
i0.ɵɵelementEnd();
|
|
884
|
-
i0.ɵɵelementStart(30, "button", 13)(31, "mat-icon");
|
|
885
|
-
i0.ɵɵtext(32, "visibility_off");
|
|
886
|
-
i0.ɵɵelementEnd();
|
|
887
|
-
i0.ɵɵtext(33, " system");
|
|
888
|
-
i0.ɵɵelementEnd();
|
|
889
|
-
i0.ɵɵelementStart(34, "button", 13)(35, "mat-icon");
|
|
890
|
-
i0.ɵɵtext(36, "edit");
|
|
891
|
-
i0.ɵɵelementEnd();
|
|
892
|
-
i0.ɵɵtext(37, " user edit");
|
|
893
|
-
i0.ɵɵelementEnd()();
|
|
894
|
-
i0.ɵɵelementStart(38, "mat-menu", null, 3);
|
|
895
|
-
i0.ɵɵtemplate(40, FormSectionStepperComponent_ng_template_40_Template, 2, 0, "ng-template", 12);
|
|
896
|
-
i0.ɵɵelementEnd();
|
|
897
|
-
} if (rf & 2) {
|
|
898
|
-
i0.ɵɵadvance();
|
|
899
|
-
i0.ɵɵconditional(i0.ɵɵpipeBind1(2, 7, ctx.loadingForm$) ? 1 : -1);
|
|
900
|
-
i0.ɵɵadvance(2);
|
|
901
|
-
i0.ɵɵstyleProp("display", i0.ɵɵpipeBind1(6, 9, ctx.loadingForm$) ? "none" : "block");
|
|
902
|
-
i0.ɵɵproperty("linear", !ctx.isEditable)("animationDuration", "300")("cdkDropListData", ctx.selectFormStepsComputed);
|
|
903
|
-
i0.ɵɵadvance(4);
|
|
904
|
-
i0.ɵɵrepeater(ctx.selectFormStepsComputed);
|
|
905
|
-
i0.ɵɵadvance(2);
|
|
906
|
-
i0.ɵɵconditional(ctx.engine.selectFormSteps().length === 0 ? 9 : -1);
|
|
907
|
-
} }, dependencies: [ReactiveFormsModule,
|
|
908
|
-
FormsModule,
|
|
909
|
-
DragDropModule, i1$1.CdkDropList, i1$1.CdkDrag, i1$1.CdkDragHandle, MatButtonModule, i2.MatButton, i2.MatIconButton, MatCardModule, i3.MatCard, i3.MatCardActions, MatIconModule, i3$1.MatIcon, MatInputModule, i2$1.MatInput, MatMenuModule, i6.MatMenu, i6.MatMenuItem, i6.MatMenuContent, i6.MatMenuTrigger, MatProgressSpinnerModule, i4.MatProgressSpinner, MatStepperModule, i4$1.MatStep, i4$1.MatStepLabel, i4$1.MatStepper, MatToolbarModule,
|
|
910
|
-
MatTooltipModule, i5.MatTooltip, i7.TourAnchorMatMenuDirective, AsyncPipe], styles: [".mainCard[_ngcontent-%COMP%]{margin:0 auto;min-height:45vh;box-shadow:var(--lib-forms-shadow-resting);max-width:768px;padding:2rem;border-radius:12px;background:var(--lib-forms-surface-container-low)}.loading-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:1.5rem;min-height:12rem}[_nghost-%COMP%] .inEditCol[_ngcontent-%COMP%]{box-shadow:var(--mdc-elevated-card-container-elevation);border:1px solid var(--lib-forms-primary)}.inputCard[_ngcontent-%COMP%]{box-shadow:none}[_nghost-%COMP%] .cancelProgress[_ngcontent-%COMP%]{height:24px;width:24px}.delete-countdown[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;padding:.5rem}[_nghost-%COMP%] .numbers[_ngcontent-%COMP%]{position:absolute;right:0}mat-vertical-stepper[_ngcontent-%COMP%]{margin:.5rem}.form-section[_ngcontent-%COMP%]{min-height:60px}.box[_ngcontent-%COMP%]{padding:.5rem;cursor:move;box-sizing:border-box}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border:none;border-radius:8px;box-shadow:var(--lib-forms-shadow-floating)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border:none}.form-section.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.step-label-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.section-drag-handle[_ngcontent-%COMP%]{flex:none;cursor:grab;color:var(--lib-forms-on-surface-variant);max-width:0;margin-right:-.5rem;opacity:0;overflow:hidden;transition:max-width var(--lib-forms-duration-hover) var(--lib-forms-easing),margin-right var(--lib-forms-duration-hover) var(--lib-forms-easing),opacity var(--lib-forms-duration-hover) var(--lib-forms-easing)}.section-drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing}.step-label-container[_ngcontent-%COMP%]:hover .section-drag-handle[_ngcontent-%COMP%], .section-drag-handle[_ngcontent-%COMP%]:focus-visible{max-width:3rem;margin-right:0;opacity:.7}.step-label-text[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;flex:1 1 auto;min-width:0}.section-title-edit-hint[_ngcontent-%COMP%]{flex:none;font-size:1rem;width:1rem;height:1rem;margin-left:.5rem;color:var(--lib-forms-on-surface-variant);opacity:0;transition:opacity var(--lib-forms-duration-hover) var(--lib-forms-easing)}.step-label-text[_ngcontent-%COMP%]:hover .section-title-edit-hint[_ngcontent-%COMP%], .section-title-input[_ngcontent-%COMP%]:focus ~ .section-title-edit-hint[_ngcontent-%COMP%]{opacity:.5}.section-status-icon[_ngcontent-%COMP%]{flex:none;color:var(--sem-emerald)}.section-status-icon.error[_ngcontent-%COMP%]{color:var(--sem-error)}.input-sync-button[_ngcontent-%COMP%]{margin-right:.5rem}.input-sync-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--lib-forms-primary)}.section-title-input[_ngcontent-%COMP%]{border:none;border-bottom:1px solid transparent;background-color:transparent;font-size:.9375rem;font-weight:600;color:var(--lib-forms-on-surface);padding:.5rem 0;outline:none;width:100%;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing)}.section-title-input[_ngcontent-%COMP%]::placeholder{color:var(--lib-forms-on-surface-variant);font-weight:400;opacity:.6}.section-title-input[_ngcontent-%COMP%]:hover{border-bottom-color:var(--lib-forms-outline-variant)}.section-title-input[_ngcontent-%COMP%]:focus{border-bottom-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.inputElement[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.headerToolbar[_ngcontent-%COMP%]{position:sticky;top:0;min-width:100%;background:var(--mdc-elevated-card-container-color)} mat-step-header .mat-step-label{width:100%}.error[_ngcontent-%COMP%]{color:var(--sem-error);display:flex;align-items:center}.error-list[_ngcontent-%COMP%]{padding-left:1.75rem;margin:.25rem 0}.error-item[_ngcontent-%COMP%]{color:var(--sem-error);font-size:.75rem}.empty-state-section[_ngcontent-%COMP%]{text-align:center;padding:1rem 1.5rem}.empty-state-text[_ngcontent-%COMP%]{font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0 0 .5rem}.empty-state-hint[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.empty-state-actions[_ngcontent-%COMP%]{margin-top:1rem}.add-section-hint[_ngcontent-%COMP%]{padding-top:1.5rem}.section-add-field[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:1rem 0 .5rem}.add-field-button[_ngcontent-%COMP%]{border:1px dashed color-mix(in srgb,var(--lib-forms-outline) 30%,transparent);color:var(--lib-forms-on-surface-variant);transition:border-color var(--lib-forms-duration) var(--lib-forms-easing),color var(--lib-forms-duration) var(--lib-forms-easing),background var(--lib-forms-duration) var(--lib-forms-easing)}.add-field-button[_ngcontent-%COMP%]:hover{border-color:var(--lib-forms-primary);color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.step-placeholder[_ngcontent-%COMP%]{padding:3.125rem;display:flex;justify-content:center;align-items:center;text-align:center}.step-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;margin-top:1.5rem;padding-top:1rem}.navigation-button[_ngcontent-%COMP%]{min-height:2.25rem}.sticky-actions[_ngcontent-%COMP%]{position:sticky;bottom:0;background:var(--mat-sys-surface-container, var(--mdc-elevated-card-container-color))}.submission-toolbar[_ngcontent-%COMP%]{z-index:1000;background:color-mix(in srgb,var(--lib-forms-surface) 95%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:var(--mat-divider-width) solid var(--mat-divider-color);padding:1rem 1.5rem;display:flex;justify-content:flex-end;align-items:center;gap:1rem}@media(prefers-color-scheme:dark){.submission-toolbar[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--mat-sys-surface) 95%,transparent)}}.submission-status[_ngcontent-%COMP%]{font-size:.75rem;opacity:.87;display:flex;align-items:center}"], changeDetection: 0 }); }
|
|
911
|
-
}
|
|
912
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadataAsync(FormSectionStepperComponent, () => [import('./ngx-t-forms-index-BPNBX_ve.mjs').then(m => m.TFormInputComponent), import('./ngx-t-forms-section-report.component-yGAjX7Gb.mjs').then(m => m.SectionReportComponent)], (TFormInputComponent, SectionReportComponent) => { i0.ɵsetClassMetadata(FormSectionStepperComponent, [{
|
|
913
|
-
type: Component,
|
|
914
|
-
args: [{ selector: 'lib-form-section-stepper', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
|
|
915
|
-
AsyncPipe,
|
|
916
|
-
ReactiveFormsModule,
|
|
917
|
-
FormsModule,
|
|
918
|
-
DragDropModule,
|
|
919
|
-
MatButtonModule,
|
|
920
|
-
MatCardModule,
|
|
921
|
-
MatIconModule,
|
|
922
|
-
MatInputModule,
|
|
923
|
-
MatMenuModule,
|
|
924
|
-
MatProgressSpinnerModule,
|
|
925
|
-
MatStepperModule,
|
|
926
|
-
MatToolbarModule,
|
|
927
|
-
MatTooltipModule,
|
|
928
|
-
TFormInputComponent,
|
|
929
|
-
SectionReportComponent,
|
|
930
|
-
...TourMatMenu,
|
|
931
|
-
], providers: [TFormEngine], template: "<mat-card class=\"mainCard\" appearance=\"raised\">\r\n\r\n @if (loadingForm$ | async) {\r\n <div class=\"loading-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-spinner diameter=\"48\" aria-label=\"Loading form\" />\r\n </div>\r\n }\r\n <mat-stepper [style.display]=\"(loadingForm$ | async) ? 'none' : 'block'\" #stepper class=\"form-stepper\"\r\n orientation=\"vertical\" [linear]=\"!isEditable\" aria-label=\"Form sections stepper\" [animationDuration]=\"'300'\"\r\n cdkDropList #formSections=\"cdkDropList\" [cdkDropListData]=\"selectFormStepsComputed\"\r\n (cdkDropListDropped)=\"drop($event)\" (selectionChange)=\"engine.handleStepChange($event)\">\r\n\r\n @for (step of selectFormStepsComputed; track step.sectionId) {\r\n @if (step.sectionForm || getPlaceHolerForSection(step.sectionId)) {\r\n <mat-step [stepControl]=\"step.sectionForm || getPlaceHolerForSection(step.sectionId)\"\r\n [completed]=\"step.sectionIsSeen && !step.sectionIsInvalid\" [editable]=\"isEditable\"\r\n [errorMessage]=\"step.sectionFormErrorMessage||''\" [state]=\"getStepState(step,$index)\"\r\n [hasError]=\"!step.sectionForm?.valid && !!step.sectionForm?.touched\">\r\n <ng-template matStepLabel>\r\n <div cdkDrag class=\"step-label-container\" [attr.aria-label]=\"'Section ' + step.label\">\r\n <button cdkDragHandle type=\"button\" class=\"section-drag-handle\" (click)=\"$event.stopPropagation()\"\r\n matTooltip=\"Drag to reorder section\" aria-label=\"Drag to reorder section\" mat-icon-button>\r\n <mat-icon>drag_indicator</mat-icon>\r\n </button>\r\n <span class=\"step-label-text\">\r\n <input (input)=\"handleInput($event, step.sectionId)\" class=\"section-title-input\" matInput\r\n (keydown.space)=\"onSpaceKey($event, step.sectionId)\" placeholder=\"Untitled section \u2014 click to name\"\r\n [value]=\"step.label\" aria-label=\"Section title\">\r\n <mat-icon class=\"section-title-edit-hint\" aria-hidden=\"true\">edit</mat-icon>\r\n </span>\r\n @if (step.sectionIsSeen) {\r\n <mat-icon class=\"section-status-icon\" [class.error]=\"step.sectionIsInvalid\"\r\n [attr.aria-label]=\"step.sectionIsInvalid ? 'Section has errors' : 'Section completed'\">\r\n {{ step.sectionIsInvalid ? 'error' : 'check_circle' }}\r\n </mat-icon>\r\n }\r\n @if ((step)?.activeSectionHasTour && !!step.isActive) {\r\n <span class=\"tour-trigger\">\r\n <button tourAnchor=\"Form-Tour-trigger\" (click)=\"startTour(step.sectionId)\" matTooltip=\"Start section tour\"\r\n mat-icon-button aria-label=\"Start section tour\">\r\n <mat-icon>tour</mat-icon>\r\n </button>\r\n </span>\r\n }\r\n <span class=\"spacer\"></span>\r\n\r\n @if (!!inputWillBeRemovedIn(step.sectionId)) {\r\n <button\r\n (mouseover)=\"overId = step.sectionId\" (mouseout)=\"overId = null\"\r\n (click)=\"deleteSection(step.sectionId)\" color=\"warn\" mat-stroked-button class=\"countdown-button\"\r\n [attr.aria-label]=\"overId === step.sectionId ? 'Cancel section deletion' : 'Section deleting in ' + inputWillBeRemovedIn(step.sectionId) + ' seconds'\">\r\n <div class=\"delete-countdown\">\r\n <mat-progress-spinner color=\"primary\" class=\"cancelProgress\"\r\n [value]=\"((inputWillBeRemovedIn(step.sectionId)||0)/5)*100\">\r\n </mat-progress-spinner>\r\n {{ overId === step.sectionId ? 'Click to cancel' : 'Deleting in' }}\r\n {{ inputWillBeRemovedIn(step.sectionId) }}\r\n </div>\r\n </button>\r\n }\r\n\r\n @if(engine.canRefreshSection(step.sectionId)&& step.isActive){\r\n <button mat-icon-button\r\n class=\"input-sync-button\"\r\n matTooltip=\"Click to refresh this section.\"\r\n (click)=\"refreshASection(step.sectionId)\" >\r\n <mat-icon>sync</mat-icon>\r\n </button>\r\n }\r\n <button (click)=\"$event.stopPropagation()\"\r\n [matMenuTriggerData]=\"{ sectionId: step.sectionId, columns: step.columns }\" [matMenuTriggerFor]=\"sectionMenu\"\r\n mat-icon-button aria-label=\"Section options menu\">\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n </div>\r\n </ng-template>\r\n\r\n @defer (on viewport; prefetch on idle) {\r\n <div class=\"step-content\">\r\n @if (!openSectionReports[step.sectionId]) {\r\n <div (cdkDropListDropped)=\"dropItems($event,step.sectionId)\" [cdkDropListData]=\"step.columns\" cdkDropList\r\n #InputList=\"cdkDropList\" class=\"row form-section\">\r\n @for (col of step.columns; track col.id) {\r\n <mat-card cdkDrag (cdkDragStarted)=\"dragging = true\" (cdkDragReleased)=\"dragging = false\"\r\n [class.inEditCol]=\"(selectInputInEditId$ | async) === col.id\"\r\n [class]=\"'box inputCard col-md-' + (dragging ? '12' : col.colSize)\" (mouseover)=\"activeInput = col.id\"\r\n (focusin)=\"activeInput = col.id\">\r\n @if (step.sectionForm) {\r\n <lib-t-form-input [editorMode]=\"true\" [tourAnchor]=\"col.id\" (valueChange)=\"engine.updateValue(col.id,$event)\"\r\n [formBuilderFunctions]=\"formBuilderFunctions\" [inputConfig]=\"col\" [formGroup]=\"step.sectionForm\"\r\n [attr.aria-label]=\"col?.label || ''\">\r\n </lib-t-form-input>\r\n }\r\n\r\n\r\n\r\n @if (col.inputConfigErrors.length > 0) {\r\n <div class=\"error\">\r\n <ul class=\"error-list\">\r\n @for (error of col.inputConfigErrors; track $index) {\r\n <li class=\"error-item\">{{ error.message }}</li>\r\n }\r\n </ul>\r\n\r\n </div>\r\n }\r\n @if (activeInput === col.id) {\r\n <mat-card-actions>\r\n\r\n <button color=\"primary\" [matTooltip]=\"'Edit ' + col.label + ' input'\" (click)=\"editInput(col)\"\r\n mat-icon-button aria-label=\"Edit input\">\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n\r\n @if (canSaveDefaultValue(col)) {\r\n <button color=\"primary\" [matTooltip]=\"'Save current value as the default for ' + col.label\"\r\n (click)=\"saveInputDefaultValue(col)\" mat-icon-button aria-label=\"Save current value as default\">\r\n <mat-icon>bookmark_add</mat-icon>\r\n </button>\r\n }\r\n\r\n <button [matTooltip]=\"'Move this input to another section'\" [matMenuTriggerFor]=\"moveInput\"\r\n [matMenuTriggerData]=\"col\" mat-icon-button aria-label=\"Move input to another section\">\r\n <mat-icon>drive_file_move</mat-icon>\r\n </button>\r\n\r\n <button [matTooltip]=\"'Clone form input'\" (click)=\"cloneCopyFormInput(col.id)\" mat-icon-button\r\n aria-label=\"Clone input\">\r\n <mat-icon>file_copy</mat-icon>\r\n </button>\r\n\r\n <span class=\"spacer\"></span>\r\n\r\n\r\n\r\n @if (!!inputWillBeRemovedIn(col.id)) {\r\n <button (mouseover)=\"overId = col.id\" (mouseout)=\"overId = null\" (click)=\"removeInput(col)\" color=\"warn\"\r\n mat-stroked-button>\r\n <div class=\"delete-countdown\">\r\n <mat-progress-spinner color=\"primary\" class=\"cancelProgress\"\r\n [value]=\"((inputWillBeRemovedIn(col.id)||0)/5)*100\">\r\n </mat-progress-spinner>\r\n\r\n {{ overId === col.id ? 'Click to cancel' : 'Deleting in' }} {{ inputWillBeRemovedIn(col.id) }}\r\n </div>\r\n\r\n </button>\r\n\r\n } @else if (col.systemDefault !== true) {\r\n <button color=\"warn\" [matTooltip]=\"'Delete ' + col.label + ' input'\" (click)=\"removeInput(col)\"\r\n mat-icon-button aria-label=\"Delete input\">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n }\r\n\r\n\r\n @if (activeInput === col.id && col.element ==='multipleInput') {\r\n @if (!col.formIsOpen) {\r\n <button matTooltip=\"Open the row entry form \u2014 configure each column's input type here\"\r\n (click)=\"engine.toggleMultipleInput(col.id, true)\" mat-button>\r\n <mat-icon>table_rows</mat-icon>\r\n Row Entry Form\r\n </button>\r\n }\r\n <button \r\n [disabled]=\"col.systemDefault\"\r\n matTooltip=\"Add a new column field to this table\" (click)=\"\r\n addColAndOpen(col)\"\r\n color=\"accent\" mat-stroked-button>\r\n <mat-icon>view_column</mat-icon>\r\n Add Column\r\n </button>\r\n }\r\n @if (activeInput === col.id && col.element === 'mscoaSelection') {\r\n <button matTooltip=\"Extend SCOA Segments with additional inputs\"\r\n (click)=\"addInputToScoaSelection(col.sectionId, col.id)\" color=\"accent\" mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add Form Input\r\n </button>\r\n }\r\n\r\n </mat-card-actions>\r\n }\r\n </mat-card>\r\n }\r\n </div>\r\n @if (step.columns.length === 0) {\r\n <section class=\"empty-state-section\">\r\n <p class=\"empty-state-text\">This section has no fields yet.</p>\r\n <p class=\"empty-state-hint\">Add a field to start collecting information.</p>\r\n <div class=\"empty-state-actions\">\r\n <button matTooltip=\"Add a field to this section\" (click)=\"addNewInput(step.sectionId)\" color=\"primary\"\r\n mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add field\r\n </button>\r\n </div>\r\n </section>\r\n } @else {\r\n <div class=\"section-add-field\">\r\n <button class=\"add-field-button\" matTooltip=\"Add another field to this section\"\r\n (click)=\"addNewInput(step.sectionId)\" mat-stroked-button aria-label=\"Add field to this section\">\r\n <mat-icon>add</mat-icon>\r\n Add field\r\n </button>\r\n </div>\r\n }\r\n\r\n\r\n } @else {\r\n <lib-section-report [sectionId]=\"step.sectionId\"></lib-section-report>\r\n }\r\n <div class=\"step-actions\">\r\n @if (!$first) {\r\n <button mat-button matStepperPrevious type=\"button\" class=\"navigation-button\"\r\n [attr.aria-label]=\"'Go back to ' + getPreviousStepLabel()\">\r\n\r\n Back\r\n </button>\r\n }\r\n @if (!$last) {\r\n <button mat-flat-button matStepperNext color=\"primary\" type=\"button\" class=\"navigation-button\"\r\n matTooltip=\"Continue to next section\" [attr.aria-label]=\"'Continue to ' + getNextStepLabel()\">\r\n Next\r\n </button>\r\n }\r\n @if ($last) {\r\n <button mat-button (click)=\"stepper.reset()\" aria-label=\"Reset form\">Reset</button>\r\n }\r\n\r\n </div>\r\n </div>\r\n } @placeholder {\r\n <div class=\"step-placeholder\">\r\n <mat-spinner diameter=\"24\" aria-label=\"Loading step content\" />\r\n </div>\r\n }\r\n\r\n </mat-step>\r\n }\r\n }\r\n </mat-stepper>\r\n @if (engine.selectFormSteps().length === 0) {\r\n <section class=\"empty-state-section add-section-hint\">\r\n <p class=\"empty-state-text\">A form section groups related fields together.</p>\r\n <p class=\"empty-state-hint\">Click <strong>\"Add Section\"</strong> below to create your first section.</p>\r\n </section>\r\n }\r\n <mat-card-actions class=\"sticky-actions\">\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"addSection()\" color=\"accent\" mat-flat-button aria-label=\"Add new section\">\r\n <mat-icon>add</mat-icon>\r\n Add Section\r\n </button>\r\n <span class=\"spacer\"></span>\r\n </mat-card-actions>\r\n <!-- Defer the footer toolbar until after the main form is loaded -->\r\n @defer (on idle; prefetch on viewport) {\r\n <footer><mat-toolbar class=\"submission-toolbar\" role=\"toolbar\" aria-label=\"Form submission actions\">\r\n <span class=\"submission-status\" role=\"status\">\r\n {{ getSubmissionStatus$ | async }}\r\n </span>\r\n <button mat-raised-button color=\"primary\" [disabled]=\"true\" aria-label=\"Submit form\">\r\n <span>\r\n {{ engine.formSubmissionMessage()}}\r\n </span>\r\n @if (engine.submittingForm) {\r\n <mat-spinner diameter=\"10\"></mat-spinner>\r\n }\r\n\r\n </button>\r\n </mat-toolbar>\r\n </footer>\r\n } @placeholder {\r\n <!-- Simple placeholder for the footer that maintains layout -->\r\n <footer>\r\n <div class=\"submission-toolbar-placeholder\"></div>\r\n </footer>\r\n }\r\n\r\n</mat-card>\r\n<mat-menu #sectionMenu=\"matMenu\">\r\n <ng-template matMenuContent let-sectionId=\"sectionId\" let-columns=\"columns\">\r\n <!-- <button mat-menu-item [matMenuTriggerFor]=\"sectionType\">\r\n <mat-icon> disabled_visible</mat-icon>\r\n Set visibility type</button> -->\r\n @if (sectionIncludesDefault(columns) === false) {\r\n <button (click)=\"deleteSection(sectionId, false)\" matTooltip=\"Deletes this section and all its inputs\"\r\n matTooltipPosition=\"right\" mat-menu-item>\r\n <mat-icon style=\"color: var(--mat-sys-error, #b3261e)\">delete</mat-icon>\r\n <span style=\"color: var(--mat-sys-error, #b3261e)\">Delete section</span>\r\n </button>\r\n <button (click)=\"deleteSection(sectionId, true)\" matTooltip=\"Deletes all inputs in this section\"\r\n matTooltipPosition=\"right\" mat-menu-item>\r\n <mat-icon style=\"color: var(--mat-sys-error, #b3261e)\">delete_sweep</mat-icon>\r\n <span style=\"color: var(--mat-sys-error, #b3261e)\">Delete section inputs</span>\r\n </button>\r\n }\r\n\r\n <button (click)=\"toggleSectionReports(sectionId)\" mat-menu-item>\r\n <mat-icon>leaderboard</mat-icon>\r\n {{ openSectionReports[sectionId] ? 'Close report' : 'Section report' }}</button>\r\n </ng-template>\r\n</mat-menu>\r\n<mat-menu #sectionType=\"matMenu\">\r\n <button mat-menu-item>\r\n <mat-icon>visibility</mat-icon>\r\n view only</button>\r\n <button mat-menu-item>\r\n <mat-icon>visibility_off</mat-icon>\r\n system</button>\r\n <button mat-menu-item>\r\n <mat-icon>edit</mat-icon>\r\n user edit</button>\r\n</mat-menu>\r\n<mat-menu #moveInput=\"matMenu\">\r\n <ng-template matMenuContent let-id=\"id\" let-sectionId=\"sectionId\">\r\n @for (section of ( selectFormStepsComputed); track section.sectionId) {\r\n <button [disabled]=\"section.sectionId === sectionId\" (click)=\"moveInputToSection(id,section.sectionId)\"\r\n mat-menu-item>\r\n <mat-icon>folder</mat-icon>\r\n {{section.label || 'Untitled section'}}\r\n </button>\r\n }\r\n\r\n </ng-template>\r\n</mat-menu>\r\n\r\n", styles: [".mainCard{margin:0 auto;min-height:45vh;box-shadow:var(--lib-forms-shadow-resting);max-width:768px;padding:2rem;border-radius:12px;background:var(--lib-forms-surface-container-low)}.loading-container{display:flex;justify-content:center;align-items:center;padding:1.5rem;min-height:12rem}:host .inEditCol{box-shadow:var(--mdc-elevated-card-container-elevation);border:1px solid var(--lib-forms-primary)}.inputCard{box-shadow:none}:host .cancelProgress{height:24px;width:24px}.delete-countdown{display:flex;align-items:center;gap:.25rem;padding:.5rem}:host .numbers{position:absolute;right:0}mat-vertical-stepper{margin:.5rem}.form-section{min-height:60px}.box{padding:.5rem;cursor:move;box-sizing:border-box}.cdk-drag-preview{box-sizing:border-box;border:none;border-radius:8px;box-shadow:var(--lib-forms-shadow-floating)}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.box:last-child{border:none}.form-section.cdk-drop-list-dragging .box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.step-label-container{display:flex;align-items:center;gap:.5rem;width:100%}.spacer{flex:1 1 auto}.section-drag-handle{flex:none;cursor:grab;color:var(--lib-forms-on-surface-variant);max-width:0;margin-right:-.5rem;opacity:0;overflow:hidden;transition:max-width var(--lib-forms-duration-hover) var(--lib-forms-easing),margin-right var(--lib-forms-duration-hover) var(--lib-forms-easing),opacity var(--lib-forms-duration-hover) var(--lib-forms-easing)}.section-drag-handle:active{cursor:grabbing}.step-label-container:hover .section-drag-handle,.section-drag-handle:focus-visible{max-width:3rem;margin-right:0;opacity:.7}.step-label-text{position:relative;display:flex;align-items:center;flex:1 1 auto;min-width:0}.section-title-edit-hint{flex:none;font-size:1rem;width:1rem;height:1rem;margin-left:.5rem;color:var(--lib-forms-on-surface-variant);opacity:0;transition:opacity var(--lib-forms-duration-hover) var(--lib-forms-easing)}.step-label-text:hover .section-title-edit-hint,.section-title-input:focus~.section-title-edit-hint{opacity:.5}.section-status-icon{flex:none;color:var(--sem-emerald)}.section-status-icon.error{color:var(--sem-error)}.input-sync-button{margin-right:.5rem}.input-sync-button mat-icon{color:var(--lib-forms-primary)}.section-title-input{border:none;border-bottom:1px solid transparent;background-color:transparent;font-size:.9375rem;font-weight:600;color:var(--lib-forms-on-surface);padding:.5rem 0;outline:none;width:100%;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing)}.section-title-input::placeholder{color:var(--lib-forms-on-surface-variant);font-weight:400;opacity:.6}.section-title-input:hover{border-bottom-color:var(--lib-forms-outline-variant)}.section-title-input:focus{border-bottom-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.inputElement:focus{box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.headerToolbar{position:sticky;top:0;min-width:100%;background:var(--mdc-elevated-card-container-color)}::ng-deep mat-step-header .mat-step-label{width:100%}.error{color:var(--sem-error);display:flex;align-items:center}.error-list{padding-left:1.75rem;margin:.25rem 0}.error-item{color:var(--sem-error);font-size:.75rem}.empty-state-section{text-align:center;padding:1rem 1.5rem}.empty-state-text{font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0 0 .5rem}.empty-state-hint{font-size:.8125rem;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.empty-state-actions{margin-top:1rem}.add-section-hint{padding-top:1.5rem}.section-add-field{display:flex;justify-content:center;padding:1rem 0 .5rem}.add-field-button{border:1px dashed color-mix(in srgb,var(--lib-forms-outline) 30%,transparent);color:var(--lib-forms-on-surface-variant);transition:border-color var(--lib-forms-duration) var(--lib-forms-easing),color var(--lib-forms-duration) var(--lib-forms-easing),background var(--lib-forms-duration) var(--lib-forms-easing)}.add-field-button:hover{border-color:var(--lib-forms-primary);color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.step-placeholder{padding:3.125rem;display:flex;justify-content:center;align-items:center;text-align:center}.step-actions{display:flex;gap:.75rem;margin-top:1.5rem;padding-top:1rem}.navigation-button{min-height:2.25rem}.sticky-actions{position:sticky;bottom:0;background:var(--mat-sys-surface-container, var(--mdc-elevated-card-container-color))}.submission-toolbar{z-index:1000;background:color-mix(in srgb,var(--lib-forms-surface) 95%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:var(--mat-divider-width) solid var(--mat-divider-color);padding:1rem 1.5rem;display:flex;justify-content:flex-end;align-items:center;gap:1rem}@media(prefers-color-scheme:dark){.submission-toolbar{background:color-mix(in srgb,var(--mat-sys-surface) 95%,transparent)}}.submission-status{font-size:.75rem;opacity:.87;display:flex;align-items:center}\n"] }]
|
|
932
|
-
}], null, { stepper: [{ type: i0.ViewChild, args: ['stepper', { isSignal: true }] }] }); }); })();
|
|
933
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormSectionStepperComponent, { className: "FormSectionStepperComponent", filePath: "lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.ts", lineNumber: 79 }); })();
|
|
934
|
-
|
|
935
|
-
export { FormSectionStepperComponent };
|
|
936
|
-
//# sourceMappingURL=ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map
|