ngx-t-forms 2.0.37 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +261 -0
- package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +225 -0
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +1011 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +136 -0
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +253 -0
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +419 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +231 -0
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +333 -0
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +543 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +1259 -0
- package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +1996 -0
- package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +581 -0
- package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-editor-input-element.component-D38U94oj.mjs → ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs} +138 -15
- package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs +539 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +585 -0
- package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +447 -0
- package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +163 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs → ngx-t-forms-form-json-view.component-r64GKVhI.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map → ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +28 -0
- package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +291 -0
- package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +936 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +816 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs → ngx-t-forms-geo-location.component-D2fIbagr.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map → ngx-t-forms-geo-location.component-D2fIbagr.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +329 -0
- package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +360 -0
- package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-index-CPNvE4PP.mjs → ngx-t-forms-index-6YIhS6cm.mjs} +2 -2
- package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +2 -0
- package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +128 -0
- package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs → ngx-t-forms-input-custom.component-Dcoze7U3.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map → ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +512 -0
- package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs → ngx-t-forms-input-editor.component-B6UKwV4i.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map → ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +132 -0
- package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +268 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs +167 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +241 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +180 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +114 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +69 -0
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +200 -0
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +850 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +107 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +1665 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs} +13 -13
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs} +826 -120
- package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +28237 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +1024 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +234 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +1126 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +639 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs +446 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +451 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +625 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +72 -0
- package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs → ngx-t-forms-section-report.component-BYMcaRE5.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs.map → ngx-t-forms-section-report.component-BYMcaRE5.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +248 -0
- package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +408 -0
- package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +275 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +366 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs +263 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +233 -0
- package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +305 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +1105 -0
- package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs → ngx-t-forms-validators-config.component-CoGSFor3.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map → ngx-t-forms-validators-config.component-CoGSFor3.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +2923 -0
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs → ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs} +17 -17
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/types/ngx-t-forms.d.ts +7 -0
- package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs +0 -704
- package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs +0 -240
- package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs +0 -66
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs +0 -358
- package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map +0 -1
|
@@ -0,0 +1,816 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ChangeDetectionStrategy, Component, computed, signal, DestroyRef } from '@angular/core';
|
|
3
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
|
+
import * as i1$2 from '@angular/material/badge';
|
|
5
|
+
import { MatBadgeModule } from '@angular/material/badge';
|
|
6
|
+
import * as i2 from '@angular/material/button';
|
|
7
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
8
|
+
import * as i3 from '@angular/material/icon';
|
|
9
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
10
|
+
import * as i6$1 from '@angular/material/menu';
|
|
11
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
12
|
+
import * as i5 from '@angular/material/tooltip';
|
|
13
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
14
|
+
import * as i3$1 from '@angular/material/card';
|
|
15
|
+
import { MatCardModule } from '@angular/material/card';
|
|
16
|
+
import * as i8 from '@angular/material/toolbar';
|
|
17
|
+
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
18
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
19
|
+
import * as i4 from '@angular/material/progress-spinner';
|
|
20
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
21
|
+
import * as i2$1 from '@angular/material/form-field';
|
|
22
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
23
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
24
|
+
import * as i1$1 from '@angular/material/dialog';
|
|
25
|
+
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
26
|
+
import * as i1 from '@angular/cdk/clipboard';
|
|
27
|
+
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
28
|
+
import { AsyncPipe, TitleCasePipe } from '@angular/common';
|
|
29
|
+
import { F as FormsStoreService, g as getAvatar, D as DaysAgoPipe, N as NGX_T_FORMS_CONFIG_TOKEN, t as testAgainstItem, a as assignDeepPropertyToObject, T as TDynamicDataEditComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
|
|
30
|
+
import * as i5$1 from '@angular/material/expansion';
|
|
31
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
32
|
+
import { ElementEditorTypes, SpecialElementKeys, validateApiDataFetchingConfiguration } from 'ngx-t-forms-types';
|
|
33
|
+
import * as i6 from '@angular/material/list';
|
|
34
|
+
import { take } from 'rxjs';
|
|
35
|
+
|
|
36
|
+
const _forTrack0$2 = ($index, $item) => $item._id;
|
|
37
|
+
function SelectFormTemplateComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
39
|
+
i0.ɵɵelement(1, "mat-spinner", 10);
|
|
40
|
+
i0.ɵɵelementStart(2, "span", 11);
|
|
41
|
+
i0.ɵɵtext(3, "Loading form templates...");
|
|
42
|
+
i0.ɵɵelementEnd()();
|
|
43
|
+
} }
|
|
44
|
+
function SelectFormTemplateComponent_Conditional_13_For_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
45
|
+
i0.ɵɵelementStart(0, "span", 19)(1, "mat-icon", 22);
|
|
46
|
+
i0.ɵɵtext(2, "error");
|
|
47
|
+
i0.ɵɵelementEnd();
|
|
48
|
+
i0.ɵɵelementStart(3, "small");
|
|
49
|
+
i0.ɵɵtext(4);
|
|
50
|
+
i0.ɵɵelementEnd()();
|
|
51
|
+
i0.ɵɵelementStart(5, "span", 21);
|
|
52
|
+
i0.ɵɵtext(6, "\u2022");
|
|
53
|
+
i0.ɵɵelementEnd();
|
|
54
|
+
} if (rf & 2) {
|
|
55
|
+
const form_r2 = i0.ɵɵnextContext().$implicit;
|
|
56
|
+
i0.ɵɵadvance(4);
|
|
57
|
+
i0.ɵɵtextInterpolate(form_r2.errors.length);
|
|
58
|
+
} }
|
|
59
|
+
function SelectFormTemplateComponent_Conditional_13_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
61
|
+
i0.ɵɵelementStart(0, "li")(1, "button", 14);
|
|
62
|
+
i0.ɵɵlistener("click", function SelectFormTemplateComponent_Conditional_13_For_2_Template_button_click_1_listener() { const form_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.selectForm(form_r2)); });
|
|
63
|
+
i0.ɵɵelement(2, "img", 15);
|
|
64
|
+
i0.ɵɵelementStart(3, "div", 16)(4, "span", 17);
|
|
65
|
+
i0.ɵɵtext(5);
|
|
66
|
+
i0.ɵɵpipe(6, "titlecase");
|
|
67
|
+
i0.ɵɵelementEnd();
|
|
68
|
+
i0.ɵɵelementStart(7, "div", 18);
|
|
69
|
+
i0.ɵɵconditionalCreate(8, SelectFormTemplateComponent_Conditional_13_For_2_Conditional_8_Template, 7, 1);
|
|
70
|
+
i0.ɵɵelementStart(9, "span", 19)(10, "mat-icon", 20);
|
|
71
|
+
i0.ɵɵtext(11, "add_circle_outline");
|
|
72
|
+
i0.ɵɵelementEnd();
|
|
73
|
+
i0.ɵɵelementStart(12, "small");
|
|
74
|
+
i0.ɵɵtext(13);
|
|
75
|
+
i0.ɵɵpipe(14, "daysAgo");
|
|
76
|
+
i0.ɵɵelementEnd()();
|
|
77
|
+
i0.ɵɵelementStart(15, "span", 21);
|
|
78
|
+
i0.ɵɵtext(16, "\u2022");
|
|
79
|
+
i0.ɵɵelementEnd();
|
|
80
|
+
i0.ɵɵelementStart(17, "span", 19)(18, "mat-icon", 20);
|
|
81
|
+
i0.ɵɵtext(19, "update");
|
|
82
|
+
i0.ɵɵelementEnd();
|
|
83
|
+
i0.ɵɵelementStart(20, "small");
|
|
84
|
+
i0.ɵɵtext(21);
|
|
85
|
+
i0.ɵɵpipe(22, "daysAgo");
|
|
86
|
+
i0.ɵɵelementEnd()()()()()();
|
|
87
|
+
} if (rf & 2) {
|
|
88
|
+
const form_r2 = ctx.$implicit;
|
|
89
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
90
|
+
i0.ɵɵadvance();
|
|
91
|
+
i0.ɵɵproperty("matTooltip", "Click to select this template");
|
|
92
|
+
i0.ɵɵattribute("aria-label", "Select template: " + form_r2.formTitle);
|
|
93
|
+
i0.ɵɵadvance();
|
|
94
|
+
i0.ɵɵclassProp("form-avatar--error", form_r2.errors.length > 0);
|
|
95
|
+
i0.ɵɵproperty("src", ctx_r2.getFormAvatar(form_r2.formTitle), i0.ɵɵsanitizeUrl)("alt", "");
|
|
96
|
+
i0.ɵɵadvance(3);
|
|
97
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 10, form_r2.formTitle));
|
|
98
|
+
i0.ɵɵadvance(3);
|
|
99
|
+
i0.ɵɵconditional(form_r2.errors.length > 0 ? 8 : -1);
|
|
100
|
+
i0.ɵɵadvance(5);
|
|
101
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 12, form_r2.createdAt));
|
|
102
|
+
i0.ɵɵadvance(8);
|
|
103
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 14, form_r2.updatedAt));
|
|
104
|
+
} }
|
|
105
|
+
function SelectFormTemplateComponent_Conditional_13_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
106
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "mat-icon", 23);
|
|
107
|
+
i0.ɵɵtext(2, "folder_off");
|
|
108
|
+
i0.ɵɵelementEnd();
|
|
109
|
+
i0.ɵɵelementStart(3, "p");
|
|
110
|
+
i0.ɵɵtext(4, "No form templates available.");
|
|
111
|
+
i0.ɵɵelementEnd()();
|
|
112
|
+
} }
|
|
113
|
+
function SelectFormTemplateComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
114
|
+
i0.ɵɵelementStart(0, "ul", 12);
|
|
115
|
+
i0.ɵɵrepeaterCreate(1, SelectFormTemplateComponent_Conditional_13_For_2_Template, 23, 16, "li", null, _forTrack0$2);
|
|
116
|
+
i0.ɵɵpipe(3, "async");
|
|
117
|
+
i0.ɵɵelementEnd();
|
|
118
|
+
i0.ɵɵconditionalCreate(4, SelectFormTemplateComponent_Conditional_13_Conditional_4_Template, 5, 0, "div", 13);
|
|
119
|
+
i0.ɵɵpipe(5, "async");
|
|
120
|
+
} if (rf & 2) {
|
|
121
|
+
let tmp_2_0;
|
|
122
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
123
|
+
i0.ɵɵadvance();
|
|
124
|
+
i0.ɵɵrepeater(i0.ɵɵpipeBind1(3, 1, ctx_r2.selectForms$));
|
|
125
|
+
i0.ɵɵadvance(3);
|
|
126
|
+
i0.ɵɵconditional(((tmp_2_0 = i0.ɵɵpipeBind1(5, 3, ctx_r2.selectForms$)) == null ? null : tmp_2_0.length) === 0 ? 4 : -1);
|
|
127
|
+
} }
|
|
128
|
+
class SelectFormTemplateComponent {
|
|
129
|
+
constructor() {
|
|
130
|
+
this.#store = inject(FormsStoreService);
|
|
131
|
+
this.#dialogRef = inject((MatDialogRef));
|
|
132
|
+
// TODO(phase-3): MAT_DIALOG_DATA payload shape is not typed by callers; keep `unknown` here.
|
|
133
|
+
this.data = inject(MAT_DIALOG_DATA);
|
|
134
|
+
this.selectForms$ = this.#store.selectors.selectForms$;
|
|
135
|
+
this.selectLoadingForms$ = this.#store.selectors.selectLoadingForms$;
|
|
136
|
+
}
|
|
137
|
+
#store;
|
|
138
|
+
#dialogRef;
|
|
139
|
+
ngOnInit() {
|
|
140
|
+
this.#store.effects.loadForms$();
|
|
141
|
+
}
|
|
142
|
+
close() {
|
|
143
|
+
this.#dialogRef.close();
|
|
144
|
+
}
|
|
145
|
+
selectForm(form) {
|
|
146
|
+
this.#store.actionsFormBuilder.applyFormTemplate(form);
|
|
147
|
+
this.#dialogRef.close(form);
|
|
148
|
+
}
|
|
149
|
+
getFormAvatar(formTitle) {
|
|
150
|
+
return getAvatar(formTitle);
|
|
151
|
+
}
|
|
152
|
+
static { this.ɵfac = function SelectFormTemplateComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectFormTemplateComponent)(); }; }
|
|
153
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFormTemplateComponent, selectors: [["lib-select-form-template"]], decls: 17, vars: 3, consts: [[1, "template-select-dialog"], [1, "dialog-header"], ["aria-hidden", "true", 1, "header-icon"], [1, "header-text"], [1, "header-title"], [1, "header-subtitle"], [1, "dialog-content"], [1, "loading-state"], [1, "dialog-actions"], ["mat-button", "", "aria-label", "Close dialog", 3, "click"], ["diameter", "40", "aria-label", "Loading form templates"], [1, "loading-text"], ["aria-label", "Available form templates", 1, "form-template-list"], [1, "empty-state"], ["type", "button", 1, "form-list-item", 3, "click", "matTooltip"], ["aria-hidden", "true", 1, "form-avatar", 3, "src", "alt"], [1, "form-item-content"], [1, "form-title"], [1, "form-metadata"], [1, "metadata-item"], ["aria-hidden", "true"], ["aria-hidden", "true", 1, "metadata-divider"], ["color", "warn", "aria-hidden", "true"], ["aria-hidden", "true", 1, "empty-state-icon"]], template: function SelectFormTemplateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
154
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "header", 1)(2, "div", 2)(3, "mat-icon");
|
|
155
|
+
i0.ɵɵtext(4, "description");
|
|
156
|
+
i0.ɵɵelementEnd()();
|
|
157
|
+
i0.ɵɵelementStart(5, "div", 3)(6, "h1", 4);
|
|
158
|
+
i0.ɵɵtext(7, "Choose a Form Template");
|
|
159
|
+
i0.ɵɵelementEnd();
|
|
160
|
+
i0.ɵɵelementStart(8, "p", 5);
|
|
161
|
+
i0.ɵɵtext(9, " Select a pre-built form template to start with. You can customize and save it as your own form after copying it to the editor. ");
|
|
162
|
+
i0.ɵɵelementEnd()()();
|
|
163
|
+
i0.ɵɵelementStart(10, "section", 6);
|
|
164
|
+
i0.ɵɵconditionalCreate(11, SelectFormTemplateComponent_Conditional_11_Template, 4, 0, "div", 7);
|
|
165
|
+
i0.ɵɵpipe(12, "async");
|
|
166
|
+
i0.ɵɵconditionalBranchCreate(13, SelectFormTemplateComponent_Conditional_13_Template, 6, 5);
|
|
167
|
+
i0.ɵɵelementEnd();
|
|
168
|
+
i0.ɵɵelementStart(14, "footer", 8)(15, "button", 9);
|
|
169
|
+
i0.ɵɵlistener("click", function SelectFormTemplateComponent_Template_button_click_15_listener() { return ctx.close(); });
|
|
170
|
+
i0.ɵɵtext(16, " Close ");
|
|
171
|
+
i0.ɵɵelementEnd()()();
|
|
172
|
+
} if (rf & 2) {
|
|
173
|
+
i0.ɵɵadvance(11);
|
|
174
|
+
i0.ɵɵconditional(i0.ɵɵpipeBind1(12, 1, ctx.selectLoadingForms$) ? 11 : 13);
|
|
175
|
+
} }, dependencies: [MatButtonModule, i2.MatButton, MatIconModule, i3.MatIcon, MatProgressSpinnerModule, i4.MatProgressSpinner, MatTooltipModule, i5.MatTooltip, AsyncPipe,
|
|
176
|
+
TitleCasePipe,
|
|
177
|
+
DaysAgoPipe], styles: ["@charset \"UTF-8\";.template-select-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:28rem;max-width:36rem;max-height:calc(100vh - 24px);background:var(--mat-sys-surface, var(--mat-app-surface));overflow:hidden}.dialog-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;flex-shrink:0}.header-icon[_ngcontent-%COMP%]{width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.5rem;width:1.5rem;height:1.5rem;color:var(--lib-forms-primary)}.header-text[_ngcontent-%COMP%]{flex:1;min-width:0}.header-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;color:var(--lib-forms-on-surface);margin:0;line-height:1.3}.header-subtitle[_ngcontent-%COMP%]{font-size:.875rem;color:var(--lib-forms-on-surface-variant);line-height:1.4;margin-top:.25rem;margin-bottom:0}.dialog-content[_ngcontent-%COMP%]{padding:1rem 1.5rem 1.5rem;overflow-y:auto;max-height:70vh;flex:1;min-height:0}.loading-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem;gap:1rem;min-height:12rem}.loading-text[_ngcontent-%COMP%]{font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.form-template-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.form-list-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:1rem;width:100%;padding:.5rem 1.25rem;min-height:2.25rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:8px;background:var(--mat-sys-surface-container, var(--mat-app-surface-container-low));color:var(--lib-forms-on-surface);font-size:.875rem;text-align:left;cursor:pointer;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing);box-shadow:0 2px 8px #00000014}.form-list-item[_ngcontent-%COMP%]:hover{border-color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.form-list-item[_ngcontent-%COMP%]:focus-visible{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.form-list-item[_ngcontent-%COMP%]:active{background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}@media(prefers-color-scheme:dark){.form-list-item[_ngcontent-%COMP%]{box-shadow:0 1px 3px #0000004d}}.form-avatar[_ngcontent-%COMP%]{width:2.5rem;height:2.5rem;border-radius:6px;object-fit:cover;flex-shrink:0;display:block}.form-avatar.form-avatar--error[_ngcontent-%COMP%]{outline:2px solid var(--sem-error);outline-offset:2px}.form-item-content[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}.form-title[_ngcontent-%COMP%]{font-weight:600;font-size:.9375rem}.form-metadata[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem;font-size:.75rem;color:var(--lib-forms-on-surface-variant);line-height:1.35}.form-metadata[_ngcontent-%COMP%] .metadata-divider[_ngcontent-%COMP%]{margin:0 .25rem;opacity:.7}.form-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}.form-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:.875rem;width:.875rem;height:.875rem}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem;background:var(--mat-sys-surface-container, var(--mat-app-surface-container-low));border-radius:8px;text-align:center}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0}.empty-state-icon[_ngcontent-%COMP%]{font-size:2rem;width:2rem;height:2rem;color:var(--lib-forms-on-surface-variant);opacity:.7}.dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;padding:1rem 1.5rem 1.25rem;flex-shrink:0;border-top:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent)}"], changeDetection: 0 }); }
|
|
178
|
+
}
|
|
179
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFormTemplateComponent, [{
|
|
180
|
+
type: Component,
|
|
181
|
+
args: [{ selector: 'lib-select-form-template', imports: [
|
|
182
|
+
AsyncPipe,
|
|
183
|
+
TitleCasePipe,
|
|
184
|
+
MatButtonModule,
|
|
185
|
+
MatIconModule,
|
|
186
|
+
MatProgressSpinnerModule,
|
|
187
|
+
MatTooltipModule,
|
|
188
|
+
DaysAgoPipe,
|
|
189
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"template-select-dialog\">\r\n <!-- Header: icon + title + subtitle per design rule \u00A74 -->\r\n <header class=\"dialog-header\">\r\n <div class=\"header-icon\" aria-hidden=\"true\">\r\n <mat-icon>description</mat-icon>\r\n </div>\r\n <div class=\"header-text\">\r\n <h1 class=\"header-title\">Choose a Form Template</h1>\r\n <p class=\"header-subtitle\">\r\n Select a pre-built form template to start with. You can customize and save it as your own form after copying it to the editor.\r\n </p>\r\n </div>\r\n </header>\r\n\r\n <section class=\"dialog-content\">\r\n @if (selectLoadingForms$ | async) {\r\n <div class=\"loading-state\">\r\n <mat-spinner diameter=\"40\" aria-label=\"Loading form templates\"></mat-spinner>\r\n <span class=\"loading-text\">Loading form templates...</span>\r\n </div>\r\n } @else {\r\n <ul class=\"form-template-list\" aria-label=\"Available form templates\">\r\n @for (form of selectForms$ | async; track form._id) {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"form-list-item\"\r\n (click)=\"selectForm(form)\"\r\n [matTooltip]=\"'Click to select this template'\"\r\n [attr.aria-label]=\"'Select template: ' + form.formTitle\">\r\n <img\r\n class=\"form-avatar\"\r\n [class.form-avatar--error]=\"form.errors.length > 0\"\r\n [src]=\"getFormAvatar(form.formTitle)\"\r\n [alt]=\"''\"\r\n aria-hidden=\"true\">\r\n <div class=\"form-item-content\">\r\n <span class=\"form-title\">{{ form.formTitle | titlecase }}</span>\r\n <div class=\"form-metadata\">\r\n @if (form.errors.length > 0) {\r\n <span class=\"metadata-item\">\r\n <mat-icon color=\"warn\" aria-hidden=\"true\">error</mat-icon>\r\n <small>{{ form.errors.length }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">\u2022</span>\r\n }\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">add_circle_outline</mat-icon>\r\n <small>{{ form.createdAt | daysAgo }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">\u2022</span>\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">update</mat-icon>\r\n <small>{{ form.updatedAt | daysAgo }}</small>\r\n </span>\r\n </div>\r\n </div>\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if ((selectForms$ | async)?.length === 0) {\r\n <div class=\"empty-state\">\r\n <mat-icon class=\"empty-state-icon\" aria-hidden=\"true\">folder_off</mat-icon>\r\n <p>No form templates available.</p>\r\n </div>\r\n }\r\n }\r\n </section>\r\n\r\n <footer class=\"dialog-actions\">\r\n <button mat-button (click)=\"close()\" aria-label=\"Close dialog\">\r\n Close\r\n </button>\r\n </footer>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.template-select-dialog{display:flex;flex-direction:column;min-width:28rem;max-width:36rem;max-height:calc(100vh - 24px);background:var(--mat-sys-surface, var(--mat-app-surface));overflow:hidden}.dialog-header{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;flex-shrink:0}.header-icon{width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-icon mat-icon{font-size:1.5rem;width:1.5rem;height:1.5rem;color:var(--lib-forms-primary)}.header-text{flex:1;min-width:0}.header-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;color:var(--lib-forms-on-surface);margin:0;line-height:1.3}.header-subtitle{font-size:.875rem;color:var(--lib-forms-on-surface-variant);line-height:1.4;margin-top:.25rem;margin-bottom:0}.dialog-content{padding:1rem 1.5rem 1.5rem;overflow-y:auto;max-height:70vh;flex:1;min-height:0}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem;gap:1rem;min-height:12rem}.loading-text{font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.form-template-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.form-list-item{display:flex;align-items:flex-start;gap:1rem;width:100%;padding:.5rem 1.25rem;min-height:2.25rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:8px;background:var(--mat-sys-surface-container, var(--mat-app-surface-container-low));color:var(--lib-forms-on-surface);font-size:.875rem;text-align:left;cursor:pointer;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing);box-shadow:0 2px 8px #00000014}.form-list-item:hover{border-color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.form-list-item:focus-visible{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.form-list-item:active{background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}@media(prefers-color-scheme:dark){.form-list-item{box-shadow:0 1px 3px #0000004d}}.form-avatar{width:2.5rem;height:2.5rem;border-radius:6px;object-fit:cover;flex-shrink:0;display:block}.form-avatar.form-avatar--error{outline:2px solid var(--sem-error);outline-offset:2px}.form-item-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}.form-title{font-weight:600;font-size:.9375rem}.form-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem;font-size:.75rem;color:var(--lib-forms-on-surface-variant);line-height:1.35}.form-metadata .metadata-divider{margin:0 .25rem;opacity:.7}.form-metadata .metadata-item{display:inline-flex;align-items:center;gap:.25rem}.form-metadata .metadata-item mat-icon{font-size:.875rem;width:.875rem;height:.875rem}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem;background:var(--mat-sys-surface-container, var(--mat-app-surface-container-low));border-radius:8px;text-align:center}.empty-state p{font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0}.empty-state-icon{font-size:2rem;width:2rem;height:2rem;color:var(--lib-forms-on-surface-variant);opacity:.7}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;padding:1rem 1.5rem 1.25rem;flex-shrink:0;border-top:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent)}\n"] }]
|
|
190
|
+
}], null, null); })();
|
|
191
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFormTemplateComponent, { className: "SelectFormTemplateComponent", filePath: "lib/components/form-builder/elements/select-form-template/select-form-template.component.ts", lineNumber: 30 }); })();
|
|
192
|
+
|
|
193
|
+
function SubmissionAPIListItemConfig(environment) {
|
|
194
|
+
return [
|
|
195
|
+
{
|
|
196
|
+
id: '16140923-0542-4d5d-9b63-186c1e91b1a7',
|
|
197
|
+
name: SpecialElementKeys.MatOptionsApiCall,
|
|
198
|
+
editType: ElementEditorTypes.ApiCall,
|
|
199
|
+
required: true,
|
|
200
|
+
postmanCollectionConfig: {
|
|
201
|
+
collectionUrl: environment['POSTMAN_COLLECTION_URL'],
|
|
202
|
+
collectionKey: environment['POSTMAN_COLLECTION_KEY']
|
|
203
|
+
},
|
|
204
|
+
hint: `APIs are loaded from Postman collection. Configure required headers, payload format, and response mapping before use. Ensure API is documented in Postman.`,
|
|
205
|
+
deepBind: ['data'],
|
|
206
|
+
label: 'Select form submission api',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: SpecialElementKeys.Default,
|
|
210
|
+
deepBind: [
|
|
211
|
+
'data',
|
|
212
|
+
'backEndConfig',
|
|
213
|
+
'minimumInputRequired',
|
|
214
|
+
],
|
|
215
|
+
additionalTest: [
|
|
216
|
+
{
|
|
217
|
+
testType: 'exists',
|
|
218
|
+
deepBind: [
|
|
219
|
+
'data',
|
|
220
|
+
'backEndConfig',
|
|
221
|
+
'minimumInputRequired',
|
|
222
|
+
],
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
hint: `These are payload fields that are required to be filled in order to fetch data from the selected source`,
|
|
226
|
+
editType: ElementEditorTypes.RequiredInputs,
|
|
227
|
+
label: 'Set up required inputs',
|
|
228
|
+
id: "2d0f1e18-897b-4c28-97bc-3078be09f8ee"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
name: SpecialElementKeys.Default,
|
|
232
|
+
deepBind: ['data', 'projectFormData'],
|
|
233
|
+
editType: ElementEditorTypes.FormPayloadProjection,
|
|
234
|
+
label: 'Project form data',
|
|
235
|
+
defaultValue: `data:{$formValue}`,
|
|
236
|
+
hint: 'Choose how the submitted form is shaped before it is sent — sent flat, or wrapped under one or more keys.',
|
|
237
|
+
id: "$2d0f1e18-897b-4c28-97bc-3078be09f8ee"
|
|
238
|
+
},
|
|
239
|
+
];
|
|
240
|
+
}
|
|
241
|
+
const SubmissionAPIOtherConfig = [
|
|
242
|
+
{
|
|
243
|
+
id: "7acaa5d1-fb37-4dc0-9f1a-53b6f36534e0",
|
|
244
|
+
name: SpecialElementKeys.Default,
|
|
245
|
+
deepBind: ['submissionHandle', 'submissionMessage'],
|
|
246
|
+
editType: ElementEditorTypes.Input,
|
|
247
|
+
label: "Submission Message",
|
|
248
|
+
hint: "Message shown to the user after successful form submission.",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: "5636c16c-be58-48d9-b701-81fe05573a39",
|
|
252
|
+
name: SpecialElementKeys.Default,
|
|
253
|
+
deepBind: ['submissionHandle', 'innerComponentShowSubmitButton'],
|
|
254
|
+
editType: ElementEditorTypes.Toggle,
|
|
255
|
+
label: "Show submit button in inner component form",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
id: "c9103faa-eeba-4cf3-b3d0-f25fd05ccb3c",
|
|
259
|
+
name: SpecialElementKeys.Default,
|
|
260
|
+
deepBind: ['systemDefault'],
|
|
261
|
+
editType: ElementEditorTypes.Toggle,
|
|
262
|
+
label: "Is system default",
|
|
263
|
+
}
|
|
264
|
+
];
|
|
265
|
+
const SubmissionDialogConfig = [
|
|
266
|
+
{
|
|
267
|
+
titleIcon: 'send',
|
|
268
|
+
id: '44023662-7343-4c93-999d-fc03c54438c3',
|
|
269
|
+
title: 'Form Submission Endpoint',
|
|
270
|
+
description: `Choose where to send your form data after submission. Connect to your database, data pipeline, or
|
|
271
|
+
third-party service.`,
|
|
272
|
+
primaryKey: 'submissionAPI',
|
|
273
|
+
sectionLabel: 'Submission Endpoints',
|
|
274
|
+
emptyMessage: 'No submission endpoints configured. Add one to send form data.',
|
|
275
|
+
elements: SubmissionAPIOtherConfig
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
titleIcon: 'rule',
|
|
279
|
+
title: 'Data Validation Rules',
|
|
280
|
+
description: `Define validation rules to ensure data quality before form submission.
|
|
281
|
+
<br>
|
|
282
|
+
<strong>Note:</strong> All validation endpoints must return a boolean value -
|
|
283
|
+
<code>true</code> indicates valid data that will be submitted.`,
|
|
284
|
+
primaryKey: 'canSubmitAPI',
|
|
285
|
+
sectionLabel: 'Validation Endpoints',
|
|
286
|
+
emptyMessage: 'No validation endpoints configured. Add one to validate data before submission.',
|
|
287
|
+
id: 'acac6045-5b13-4c8d-a7ee-da194ebbad41',
|
|
288
|
+
}
|
|
289
|
+
];
|
|
290
|
+
|
|
291
|
+
const _c0 = () => [];
|
|
292
|
+
const _forTrack0$1 = ($index, $item) => $item.id;
|
|
293
|
+
const _forTrack1 = ($index, $item) => $item._id;
|
|
294
|
+
function FormSubmissionsConfigComponent_For_16_Conditional_8_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
295
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
296
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "lib-t-dynamic-data-edit", 23);
|
|
297
|
+
i0.ɵɵlistener("valueChange", function FormSubmissionsConfigComponent_For_16_Conditional_8_For_2_Template_lib_t_dynamic_data_edit_valueChange_1_listener($event) { const edit_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.formInputChange($event, edit_r2)); })("blur", function FormSubmissionsConfigComponent_For_16_Conditional_8_For_2_Template_lib_t_dynamic_data_edit_blur_1_listener($event) { const edit_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.elementBlur($event, edit_r2)); });
|
|
298
|
+
i0.ɵɵelementEnd()();
|
|
299
|
+
} if (rf & 2) {
|
|
300
|
+
const edit_r2 = ctx.$implicit;
|
|
301
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
302
|
+
i0.ɵɵadvance();
|
|
303
|
+
i0.ɵɵproperty("editorConfig", edit_r2)("data", ctx_r2.form())("validationErrors", ctx_r2.errorsFor(edit_r2))("formInputs", ctx_r2.formInputs() || i0.ɵɵpureFunction0(4, _c0));
|
|
304
|
+
} }
|
|
305
|
+
function FormSubmissionsConfigComponent_For_16_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
306
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
307
|
+
i0.ɵɵrepeaterCreate(1, FormSubmissionsConfigComponent_For_16_Conditional_8_For_2_Template, 2, 5, "div", 22, _forTrack0$1);
|
|
308
|
+
i0.ɵɵelementEnd();
|
|
309
|
+
} if (rf & 2) {
|
|
310
|
+
const panel_r4 = i0.ɵɵnextContext().$implicit;
|
|
311
|
+
i0.ɵɵadvance();
|
|
312
|
+
i0.ɵɵrepeater((panel_r4 == null ? null : panel_r4.elements) || i0.ɵɵpureFunction0(0, _c0));
|
|
313
|
+
} }
|
|
314
|
+
function FormSubmissionsConfigComponent_For_16_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
315
|
+
i0.ɵɵelementStart(0, "div", 24)(1, "mat-icon", 25);
|
|
316
|
+
i0.ɵɵtext(2, "add_link");
|
|
317
|
+
i0.ɵɵelementEnd();
|
|
318
|
+
i0.ɵɵelementStart(3, "p");
|
|
319
|
+
i0.ɵɵtext(4);
|
|
320
|
+
i0.ɵɵelementEnd()();
|
|
321
|
+
} if (rf & 2) {
|
|
322
|
+
const panel_r4 = i0.ɵɵnextContext().$implicit;
|
|
323
|
+
i0.ɵɵclassProp("empty-state--error", panel_r4.error);
|
|
324
|
+
i0.ɵɵadvance(4);
|
|
325
|
+
i0.ɵɵtextInterpolate(panel_r4.emptyMessage);
|
|
326
|
+
} }
|
|
327
|
+
function FormSubmissionsConfigComponent_For_16_For_14_Template(rf, ctx) { if (rf & 1) {
|
|
328
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
329
|
+
i0.ɵɵelementStart(0, "div", 26)(1, "span", 27);
|
|
330
|
+
i0.ɵɵtext(2);
|
|
331
|
+
i0.ɵɵelementEnd();
|
|
332
|
+
i0.ɵɵelementStart(3, "div", 28)(4, "span", 29);
|
|
333
|
+
i0.ɵɵtext(5);
|
|
334
|
+
i0.ɵɵelementEnd();
|
|
335
|
+
i0.ɵɵelementStart(6, "span", 30);
|
|
336
|
+
i0.ɵɵtext(7);
|
|
337
|
+
i0.ɵɵelementEnd()();
|
|
338
|
+
i0.ɵɵelementStart(8, "div", 31)(9, "button", 32);
|
|
339
|
+
i0.ɵɵlistener("click", function FormSubmissionsConfigComponent_For_16_For_14_Template_button_click_9_listener() { const api_r6 = i0.ɵɵrestoreView(_r5).$implicit; const panel_r4 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.editSubmitApi(api_r6, panel_r4.primaryKey)); });
|
|
340
|
+
i0.ɵɵelementStart(10, "mat-icon");
|
|
341
|
+
i0.ɵɵtext(11, "edit");
|
|
342
|
+
i0.ɵɵelementEnd()();
|
|
343
|
+
i0.ɵɵelementStart(12, "button", 33);
|
|
344
|
+
i0.ɵɵlistener("click", function FormSubmissionsConfigComponent_For_16_For_14_Template_button_click_12_listener($event) { return $event.stopPropagation(); });
|
|
345
|
+
i0.ɵɵelementStart(13, "mat-icon");
|
|
346
|
+
i0.ɵɵtext(14, "content_copy");
|
|
347
|
+
i0.ɵɵelementEnd()();
|
|
348
|
+
i0.ɵɵelementStart(15, "button", 34);
|
|
349
|
+
i0.ɵɵlistener("click", function FormSubmissionsConfigComponent_For_16_For_14_Template_button_click_15_listener() { const api_r6 = i0.ɵɵrestoreView(_r5).$implicit; const panel_r4 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.removeSubmissionApi(api_r6, panel_r4.primaryKey)); });
|
|
350
|
+
i0.ɵɵelementStart(16, "mat-icon");
|
|
351
|
+
i0.ɵɵtext(17, "delete");
|
|
352
|
+
i0.ɵɵelementEnd()()()();
|
|
353
|
+
i0.ɵɵelement(18, "mat-divider");
|
|
354
|
+
} if (rf & 2) {
|
|
355
|
+
let tmp_20_0;
|
|
356
|
+
const api_r6 = ctx.$implicit;
|
|
357
|
+
const panel_r4 = i0.ɵɵnextContext().$implicit;
|
|
358
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
359
|
+
i0.ɵɵclassProp("api-list-item--active", ctx_r2.keyInEdit() === panel_r4.primaryKey && ((tmp_20_0 = ctx_r2.dataPlaceholder()) == null ? null : tmp_20_0.data == null ? null : tmp_20_0.data._id) === api_r6._id);
|
|
360
|
+
i0.ɵɵadvance();
|
|
361
|
+
i0.ɵɵclassProp("api-method-tag--post", api_r6.httpMethod === "POST");
|
|
362
|
+
i0.ɵɵadvance();
|
|
363
|
+
i0.ɵɵtextInterpolate1(" ", api_r6.httpMethod, " ");
|
|
364
|
+
i0.ɵɵadvance(3);
|
|
365
|
+
i0.ɵɵtextInterpolate(api_r6.name);
|
|
366
|
+
i0.ɵɵadvance();
|
|
367
|
+
i0.ɵɵproperty("matTooltip", api_r6.httpEndPoint);
|
|
368
|
+
i0.ɵɵadvance();
|
|
369
|
+
i0.ɵɵtextInterpolate1(" ", api_r6.httpEndPoint, " ");
|
|
370
|
+
i0.ɵɵadvance(2);
|
|
371
|
+
i0.ɵɵattribute("aria-label", "Edit endpoint " + api_r6.name);
|
|
372
|
+
i0.ɵɵadvance(3);
|
|
373
|
+
i0.ɵɵproperty("cdkCopyToClipboard", api_r6.httpEndPoint || "");
|
|
374
|
+
i0.ɵɵattribute("aria-label", "Copy endpoint URL");
|
|
375
|
+
i0.ɵɵadvance(3);
|
|
376
|
+
i0.ɵɵattribute("aria-label", "Remove endpoint " + api_r6.name);
|
|
377
|
+
} }
|
|
378
|
+
function FormSubmissionsConfigComponent_For_16_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
379
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
380
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "button", 35);
|
|
381
|
+
i0.ɵɵlistener("click", function FormSubmissionsConfigComponent_For_16_Conditional_15_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r7); const panel_r4 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.addNewSubmitApi(panel_r4.primaryKey)); });
|
|
382
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
383
|
+
i0.ɵɵtext(3, "add");
|
|
384
|
+
i0.ɵɵelementEnd();
|
|
385
|
+
i0.ɵɵtext(4, " Add new endpoint ");
|
|
386
|
+
i0.ɵɵelementEnd()();
|
|
387
|
+
} }
|
|
388
|
+
function FormSubmissionsConfigComponent_For_16_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
389
|
+
i0.ɵɵelementStart(0, "mat-error", 20);
|
|
390
|
+
i0.ɵɵtext(1);
|
|
391
|
+
i0.ɵɵelementEnd();
|
|
392
|
+
} if (rf & 2) {
|
|
393
|
+
const panel_r4 = i0.ɵɵnextContext().$implicit;
|
|
394
|
+
i0.ɵɵadvance();
|
|
395
|
+
i0.ɵɵtextInterpolate(panel_r4.error);
|
|
396
|
+
} }
|
|
397
|
+
function FormSubmissionsConfigComponent_For_16_Conditional_17_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
398
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
399
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "lib-t-dynamic-data-edit", 23);
|
|
400
|
+
i0.ɵɵlistener("valueChange", function FormSubmissionsConfigComponent_For_16_Conditional_17_For_4_Template_lib_t_dynamic_data_edit_valueChange_1_listener($event) { const element_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.elementConfigurationChanged($event, element_r10)); })("blur", function FormSubmissionsConfigComponent_For_16_Conditional_17_For_4_Template_lib_t_dynamic_data_edit_blur_1_listener($event) { const element_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.elementBlur($event, element_r10)); });
|
|
401
|
+
i0.ɵɵelementEnd()();
|
|
402
|
+
} if (rf & 2) {
|
|
403
|
+
const element_r10 = ctx.$implicit;
|
|
404
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
405
|
+
i0.ɵɵadvance();
|
|
406
|
+
i0.ɵɵproperty("editorConfig", element_r10)("data", ctx_r2.dataPlaceholder())("validationErrors", ctx_r2.validationErrors(element_r10))("formInputs", ctx_r2.formInputs() || i0.ɵɵpureFunction0(4, _c0));
|
|
407
|
+
} }
|
|
408
|
+
function FormSubmissionsConfigComponent_For_16_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
409
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
410
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "h4", 36);
|
|
411
|
+
i0.ɵɵtext(2);
|
|
412
|
+
i0.ɵɵelementEnd();
|
|
413
|
+
i0.ɵɵrepeaterCreate(3, FormSubmissionsConfigComponent_For_16_Conditional_17_For_4_Template, 2, 5, "div", 22, _forTrack0$1);
|
|
414
|
+
i0.ɵɵelement(5, "mat-divider");
|
|
415
|
+
i0.ɵɵelementStart(6, "div", 37)(7, "button", 38);
|
|
416
|
+
i0.ɵɵlistener("click", function FormSubmissionsConfigComponent_For_16_Conditional_17_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.saveSubmitApi()); });
|
|
417
|
+
i0.ɵɵtext(8);
|
|
418
|
+
i0.ɵɵelementEnd();
|
|
419
|
+
i0.ɵɵelementStart(9, "button", 39);
|
|
420
|
+
i0.ɵɵlistener("click", function FormSubmissionsConfigComponent_For_16_Conditional_17_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.cancelSubmitApi()); });
|
|
421
|
+
i0.ɵɵtext(10, "Cancel");
|
|
422
|
+
i0.ɵɵelementEnd()()();
|
|
423
|
+
} if (rf & 2) {
|
|
424
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
425
|
+
i0.ɵɵadvance(2);
|
|
426
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.isEditingExisting() ? "Edit endpoint" : "New endpoint", " ");
|
|
427
|
+
i0.ɵɵadvance();
|
|
428
|
+
i0.ɵɵrepeater(ctx_r2.submissionApiElements());
|
|
429
|
+
i0.ɵɵadvance(5);
|
|
430
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.isEditingExisting() ? "Update" : "Save", " ");
|
|
431
|
+
} }
|
|
432
|
+
function FormSubmissionsConfigComponent_For_16_Template(rf, ctx) { if (rf & 1) {
|
|
433
|
+
i0.ɵɵelementStart(0, "mat-expansion-panel", 9)(1, "mat-expansion-panel-header", 10)(2, "mat-panel-title", 11)(3, "mat-icon", 12);
|
|
434
|
+
i0.ɵɵtext(4);
|
|
435
|
+
i0.ɵɵelementEnd();
|
|
436
|
+
i0.ɵɵtext(5);
|
|
437
|
+
i0.ɵɵelementEnd()();
|
|
438
|
+
i0.ɵɵelementStart(6, "div", 13);
|
|
439
|
+
i0.ɵɵelement(7, "p", 14);
|
|
440
|
+
i0.ɵɵconditionalCreate(8, FormSubmissionsConfigComponent_For_16_Conditional_8_Template, 3, 1, "div", 15);
|
|
441
|
+
i0.ɵɵelementStart(9, "div", 16)(10, "h3", 17);
|
|
442
|
+
i0.ɵɵtext(11);
|
|
443
|
+
i0.ɵɵelementEnd();
|
|
444
|
+
i0.ɵɵconditionalCreate(12, FormSubmissionsConfigComponent_For_16_Conditional_12_Template, 5, 3, "div", 18);
|
|
445
|
+
i0.ɵɵrepeaterCreate(13, FormSubmissionsConfigComponent_For_16_For_14_Template, 19, 12, null, null, _forTrack1);
|
|
446
|
+
i0.ɵɵconditionalCreate(15, FormSubmissionsConfigComponent_For_16_Conditional_15_Template, 5, 0, "div", 19);
|
|
447
|
+
i0.ɵɵconditionalCreate(16, FormSubmissionsConfigComponent_For_16_Conditional_16_Template, 2, 1, "mat-error", 20);
|
|
448
|
+
i0.ɵɵelementEnd();
|
|
449
|
+
i0.ɵɵconditionalCreate(17, FormSubmissionsConfigComponent_For_16_Conditional_17_Template, 11, 2, "div", 21);
|
|
450
|
+
i0.ɵɵelementEnd()();
|
|
451
|
+
} if (rf & 2) {
|
|
452
|
+
const panel_r4 = ctx.$implicit;
|
|
453
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
454
|
+
i0.ɵɵproperty("expanded", true);
|
|
455
|
+
i0.ɵɵadvance(3);
|
|
456
|
+
i0.ɵɵproperty("color", "primary");
|
|
457
|
+
i0.ɵɵadvance();
|
|
458
|
+
i0.ɵɵtextInterpolate(panel_r4.titleIcon);
|
|
459
|
+
i0.ɵɵadvance();
|
|
460
|
+
i0.ɵɵtextInterpolate1(" ", panel_r4.title, " ");
|
|
461
|
+
i0.ɵɵadvance(2);
|
|
462
|
+
i0.ɵɵproperty("innerHTML", panel_r4.description, i0.ɵɵsanitizeHtml);
|
|
463
|
+
i0.ɵɵadvance();
|
|
464
|
+
i0.ɵɵconditional(((panel_r4 == null ? null : panel_r4.elements) || i0.ɵɵpureFunction0(13, _c0)).length > 0 ? 8 : -1);
|
|
465
|
+
i0.ɵɵadvance(2);
|
|
466
|
+
i0.ɵɵclassProp("api-section-header--error", panel_r4.error);
|
|
467
|
+
i0.ɵɵadvance();
|
|
468
|
+
i0.ɵɵtextInterpolate1(" ", panel_r4.sectionLabel, " ");
|
|
469
|
+
i0.ɵɵadvance();
|
|
470
|
+
i0.ɵɵconditional(panel_r4.apis.length === 0 ? 12 : -1);
|
|
471
|
+
i0.ɵɵadvance();
|
|
472
|
+
i0.ɵɵrepeater(panel_r4.apis);
|
|
473
|
+
i0.ɵɵadvance(2);
|
|
474
|
+
i0.ɵɵconditional(ctx_r2.keyInEdit() !== panel_r4.primaryKey ? 15 : -1);
|
|
475
|
+
i0.ɵɵadvance();
|
|
476
|
+
i0.ɵɵconditional(panel_r4.error ? 16 : -1);
|
|
477
|
+
i0.ɵɵadvance();
|
|
478
|
+
i0.ɵɵconditional(ctx_r2.keyInEdit() === panel_r4.primaryKey ? 17 : -1);
|
|
479
|
+
} }
|
|
480
|
+
class FormSubmissionsConfigComponent {
|
|
481
|
+
constructor() {
|
|
482
|
+
// TODO: NGX_T_FORMS_CONFIG should be #private; kept accessible due to template/getter usage.
|
|
483
|
+
this.NGX_T_FORMS_CONFIG = inject(NGX_T_FORMS_CONFIG_TOKEN);
|
|
484
|
+
this.#data = inject(MAT_DIALOG_DATA);
|
|
485
|
+
this.store = this.#data.store;
|
|
486
|
+
this.#matDialog = inject(MatDialog);
|
|
487
|
+
this.form = computed(() => this.store.signalSelectors.selectFormInEdit()?.form, ...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
|
|
488
|
+
this.formInputs = this.store.formBuilderSignalSelectors.getAllFormInputs;
|
|
489
|
+
this.formValidationError = this.store.formBuilderSignalSelectors.formErrors;
|
|
490
|
+
/** The endpoint currently open in the inline editor (one panel at a time). */
|
|
491
|
+
this.keyInEdit = signal(undefined, ...(ngDevMode ? [{ debugName: "keyInEdit" }] : /* istanbul ignore next */ []));
|
|
492
|
+
/** Draft endpoint being added or edited; `undefined` when the editor is closed. */
|
|
493
|
+
this.dataPlaceholder = signal(undefined, ...(ngDevMode ? [{ debugName: "dataPlaceholder" }] : /* istanbul ignore next */ []));
|
|
494
|
+
/** True when the inline editor is updating an existing endpoint rather than adding one. */
|
|
495
|
+
this.isEditingExisting = computed(() => this.dataPlaceholder()?.data?._id != null, ...(ngDevMode ? [{ debugName: "isEditingExisting" }] : /* istanbul ignore next */ []));
|
|
496
|
+
/**
|
|
497
|
+
* Panels enriched with their live endpoint list and required-state error.
|
|
498
|
+
* Driven entirely from {@link SubmissionDialogConfig}, so adding a panel is a
|
|
499
|
+
* config-only change — no template branching on `primaryKey`.
|
|
500
|
+
*/
|
|
501
|
+
this.panels = computed(() => {
|
|
502
|
+
const form = this.form();
|
|
503
|
+
return SubmissionDialogConfig.map((panel) => {
|
|
504
|
+
const apis = form?.submissionHandle?.[panel.primaryKey] ?? [];
|
|
505
|
+
const error = panel.primaryKey === 'submissionAPI' && apis.length === 0
|
|
506
|
+
? 'At least one submission API is required'
|
|
507
|
+
: undefined;
|
|
508
|
+
return { ...panel, apis, error };
|
|
509
|
+
});
|
|
510
|
+
}, ...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
|
|
511
|
+
/** Editor elements for the inline endpoint form, gated by their `additionalTest`. */
|
|
512
|
+
this.submissionApiElements = computed(() => {
|
|
513
|
+
const placeholder = this.dataPlaceholder() ?? { data: {} };
|
|
514
|
+
return SubmissionAPIListItemConfig(this.NGX_T_FORMS_CONFIG).filter((el) => !el.additionalTest ||
|
|
515
|
+
el.additionalTest.every((test) => testAgainstItem(test, placeholder)));
|
|
516
|
+
}, ...(ngDevMode ? [{ debugName: "submissionApiElements" }] : /* istanbul ignore next */ []));
|
|
517
|
+
/** Validation errors for the draft endpoint, computed once per change. */
|
|
518
|
+
this.#placeholderErrors = computed(() => validateApiDataFetchingConfiguration(this.dataPlaceholder() ?? {}).map((error) => ({
|
|
519
|
+
message: error.message,
|
|
520
|
+
key: 'data.' + error.key,
|
|
521
|
+
})), ...(ngDevMode ? [{ debugName: "#placeholderErrors" }] : /* istanbul ignore next */ []));
|
|
522
|
+
}
|
|
523
|
+
#data;
|
|
524
|
+
#matDialog;
|
|
525
|
+
/** Validation errors for the draft endpoint, computed once per change. */
|
|
526
|
+
#placeholderErrors;
|
|
527
|
+
/** Store-level validation errors bound to a given panel element. */
|
|
528
|
+
errorsFor(element) {
|
|
529
|
+
const bind = element.deepBind?.join('.');
|
|
530
|
+
return this.formValidationError()?.filter((error) => error.key === bind) ?? [];
|
|
531
|
+
}
|
|
532
|
+
/** Draft-endpoint validation errors bound to a given inline-editor element. */
|
|
533
|
+
validationErrors(element) {
|
|
534
|
+
const bind = element.deepBind?.join('.');
|
|
535
|
+
return this.#placeholderErrors().filter((error) => error.key === bind);
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Event payload types from `lib-t-dynamic-data-edit` are heterogeneous (per
|
|
539
|
+
* element kind). Until that emission contract is narrowed via a discriminated
|
|
540
|
+
* union, accept `unknown` and forward through; element-level handlers narrow.
|
|
541
|
+
*/
|
|
542
|
+
elementBlur(_event, _element) {
|
|
543
|
+
// intentional no-op
|
|
544
|
+
}
|
|
545
|
+
formInputChange(value, ele) {
|
|
546
|
+
this.store.actionsFormBuilder.formInputChange(ele, value);
|
|
547
|
+
}
|
|
548
|
+
elementConfigurationChanged(value, ele) {
|
|
549
|
+
const applyTo = { ...this.dataPlaceholder() };
|
|
550
|
+
if (ele.clearOnChange) {
|
|
551
|
+
ele.clearOnChange.forEach((clear) => {
|
|
552
|
+
assignDeepPropertyToObject(applyTo, clear, undefined);
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
if (ele.deepBind) {
|
|
556
|
+
assignDeepPropertyToObject(applyTo, ele.deepBind, value);
|
|
557
|
+
}
|
|
558
|
+
// Placeholder shape is dynamic — `applyTo` is built from a partial spread plus
|
|
559
|
+
// deep-bind assignments. The data field is known to be the API configuration
|
|
560
|
+
// type by contract with the element editor.
|
|
561
|
+
this.dataPlaceholder.set({ ...applyTo });
|
|
562
|
+
}
|
|
563
|
+
addNewSubmitApi(key) {
|
|
564
|
+
this.dataPlaceholder.set({ data: {} });
|
|
565
|
+
this.keyInEdit.set(key);
|
|
566
|
+
}
|
|
567
|
+
editSubmitApi(api, key) {
|
|
568
|
+
this.dataPlaceholder.set({ data: { ...api } });
|
|
569
|
+
this.keyInEdit.set(key);
|
|
570
|
+
}
|
|
571
|
+
saveSubmitApi() {
|
|
572
|
+
this.store.actionsFormBuilder.saveSubmitApi(this.dataPlaceholder(), this.keyInEdit());
|
|
573
|
+
this.#closeEditor();
|
|
574
|
+
}
|
|
575
|
+
removeSubmissionApi(api, key) {
|
|
576
|
+
this.store.actionsFormBuilder.removeSubmissionApi(api, key);
|
|
577
|
+
this.#closeEditor();
|
|
578
|
+
}
|
|
579
|
+
cancelSubmitApi() {
|
|
580
|
+
this.#closeEditor();
|
|
581
|
+
}
|
|
582
|
+
close() {
|
|
583
|
+
this.#matDialog.closeAll();
|
|
584
|
+
}
|
|
585
|
+
#closeEditor() {
|
|
586
|
+
this.dataPlaceholder.set(undefined);
|
|
587
|
+
this.keyInEdit.set(undefined);
|
|
588
|
+
}
|
|
589
|
+
static { this.ɵfac = function FormSubmissionsConfigComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormSubmissionsConfigComponent)(); }; }
|
|
590
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormSubmissionsConfigComponent, selectors: [["lib-form-submissions-config"]], decls: 17, vars: 1, consts: [[1, "submissions-dialog"], [1, "dialog-header"], ["aria-hidden", "true", 1, "header-icon"], [1, "header-text"], [1, "header-title"], [1, "header-subtitle"], ["mat-icon-button", "", "mat-dialog-close", "", 1, "header-close"], [1, "dialog-content"], ["multi", ""], [1, "config-panel", 3, "expanded"], [1, "panel-header"], [1, "panel-title"], [1, "panel-icon", 3, "color"], [1, "panel-content"], [1, "panel-description", 3, "innerHTML"], [1, "edit-section"], [1, "api-section"], [1, "api-section-header"], [1, "empty-state", 3, "empty-state--error"], [1, "api-actions"], [1, "panel-error"], [1, "edit-section", "edit-section--inline"], [1, "edit-field"], [3, "valueChange", "blur", "editorConfig", "data", "validationErrors", "formInputs"], [1, "empty-state"], [1, "empty-state-icon"], [1, "api-list-item"], [1, "api-method-tag"], [1, "api-details"], [1, "api-name"], ["matTooltipPosition", "above", 1, "api-endpoint", 3, "matTooltip"], [1, "api-item-actions"], ["mat-icon-button", "", "matTooltip", "Edit endpoint", 1, "api-edit-btn", 3, "click"], ["mat-icon-button", "", "matTooltip", "Copy URL", 1, "api-copy-btn", 3, "click", "cdkCopyToClipboard"], ["mat-icon-button", "", "matTooltip", "Remove endpoint", 1, "api-remove-btn", 3, "click"], ["mat-stroked-button", "", "color", "primary", 1, "add-endpoint-btn", 3, "click"], [1, "inline-edit-title"], [1, "inline-edit-actions"], ["mat-flat-button", "", "color", "primary", 3, "click"], ["mat-button", "", "color", "warn", 3, "click"]], template: function FormSubmissionsConfigComponent_Template(rf, ctx) { if (rf & 1) {
|
|
591
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "header", 1)(2, "div", 2)(3, "mat-icon");
|
|
592
|
+
i0.ɵɵtext(4, "settings");
|
|
593
|
+
i0.ɵɵelementEnd()();
|
|
594
|
+
i0.ɵɵelementStart(5, "div", 3)(6, "h1", 4);
|
|
595
|
+
i0.ɵɵtext(7, "Form Submission Configuration");
|
|
596
|
+
i0.ɵɵelementEnd();
|
|
597
|
+
i0.ɵɵelementStart(8, "p", 5);
|
|
598
|
+
i0.ɵɵtext(9, "Configure how your form is submitted and validated before submission.");
|
|
599
|
+
i0.ɵɵelementEnd()();
|
|
600
|
+
i0.ɵɵelementStart(10, "button", 6)(11, "mat-icon");
|
|
601
|
+
i0.ɵɵtext(12, "close");
|
|
602
|
+
i0.ɵɵelementEnd()()();
|
|
603
|
+
i0.ɵɵelementStart(13, "section", 7)(14, "mat-accordion", 8);
|
|
604
|
+
i0.ɵɵrepeaterCreate(15, FormSubmissionsConfigComponent_For_16_Template, 18, 14, "mat-expansion-panel", 9, _forTrack0$1);
|
|
605
|
+
i0.ɵɵelementEnd()()();
|
|
606
|
+
} if (rf & 2) {
|
|
607
|
+
i0.ɵɵadvance(10);
|
|
608
|
+
i0.ɵɵattribute("aria-label", "Close dialog");
|
|
609
|
+
i0.ɵɵadvance(5);
|
|
610
|
+
i0.ɵɵrepeater(ctx.panels());
|
|
611
|
+
} }, dependencies: [ClipboardModule, i1.CdkCopyToClipboard, MatButtonModule, i2.MatButton, i2.MatIconButton, MatDialogModule, i1$1.MatDialogClose, MatDividerModule, i6.MatDivider, MatExpansionModule, i5$1.MatAccordion, i5$1.MatExpansionPanel, i5$1.MatExpansionPanelHeader, i5$1.MatExpansionPanelTitle, MatFormFieldModule, i2$1.MatError, MatIconModule, i3.MatIcon, MatTooltipModule, i5.MatTooltip, TDynamicDataEditComponent], styles: ["@charset \"UTF-8\";.submissions-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:28rem;max-width:36rem;max-height:calc(100vh - 24px);background:var(--mat-sys-surface, var(--mat-app-surface));border:1px solid var(--mat-sys-outline-variant, var(--mat-divider-color));overflow:hidden}.dialog-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;flex-shrink:0}.header-icon[_ngcontent-%COMP%]{width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.5rem;width:1.5rem;height:1.5rem;color:var(--lib-forms-primary)}.header-text[_ngcontent-%COMP%]{flex:1;min-width:0}.header-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;color:var(--lib-forms-on-surface);margin:0;line-height:1.3}.header-subtitle[_ngcontent-%COMP%]{font-size:.875rem;color:var(--lib-forms-on-surface-variant);line-height:1.4;margin-top:.25rem;margin-bottom:0}.header-close[_ngcontent-%COMP%]{margin-top:-.5rem;margin-right:-.5rem}.dialog-content[_ngcontent-%COMP%]{padding:1rem 1.5rem 1.5rem;overflow-y:auto;max-height:70vh;flex:1;min-height:0}.config-panel[_ngcontent-%COMP%]{border-radius:12px;box-shadow:0 2px 8px #00000014;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);overflow:hidden;margin-bottom:1rem}.config-panel[_ngcontent-%COMP%]:last-child{margin-bottom:0}.panel-header[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--lib-forms-primary) 4%,transparent);border-bottom:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.panel-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;font-weight:600}.panel-icon[_ngcontent-%COMP%]{margin-right:0;font-size:1.25rem;width:1.25rem;height:1.25rem}.panel-content[_ngcontent-%COMP%]{padding:1.25rem;display:flex;flex-direction:column;gap:1rem;background:var(--mat-sys-surface-container, var(--mat-sys-surface))}.panel-description[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--lib-forms-on-surface-variant);line-height:1.35;margin:0 0 1rem}.edit-section[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container-high, var(--mat-sys-surface-container));border-radius:8px;padding:1rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.edit-section--inline[_ngcontent-%COMP%]{margin-top:.5rem}.inline-edit-title[_ngcontent-%COMP%]{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.edit-field[_ngcontent-%COMP%]{margin-bottom:1rem}.edit-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.api-section[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container-high, var(--mat-sys-surface-container));border-radius:8px;padding:1rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.api-section-header[_ngcontent-%COMP%]{font-size:.75rem;font-weight:500;letter-spacing:.04em;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem;padding-left:.25rem}.api-section-header--error[_ngcontent-%COMP%]{color:var(--lib-forms-error)}.empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;background:var(--lib-forms-surface-container-highest);border-radius:8px;font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;flex:1}.empty-state--error[_ngcontent-%COMP%]{color:var(--lib-forms-error)}.empty-state-icon[_ngcontent-%COMP%]{font-size:1.25rem;width:1.25rem;height:1.25rem;opacity:.8}.api-list-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:.5rem;min-height:2.75rem;border-radius:8px;transition:background .3s cubic-bezier(.16,1,.3,1)}.api-list-item--active[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--lib-forms-primary) 8%,transparent)}.api-method-tag[_ngcontent-%COMP%]{flex-shrink:0;padding:.25rem .5rem;font-size:.75rem;font-weight:600;border-radius:6px;text-align:center;min-width:3rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);color:var(--lib-forms-primary)}.api-method-tag--post[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--sem-success) 12%,transparent);color:var(--sem-success)}.api-details[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.api-name[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:var(--lib-forms-on-surface);line-height:1.3}.api-endpoint[_ngcontent-%COMP%]{font-size:.75rem;color:var(--lib-forms-on-surface-variant);opacity:.85;line-height:1.3;max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:help}.api-item-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.api-edit-btn[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%], .api-copy-btn[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%], .api-remove-btn[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:var(--lib-forms-primary)}.api-remove-btn[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:var(--lib-forms-error)}.api-actions[_ngcontent-%COMP%]{margin-top:1rem}.add-endpoint-btn[_ngcontent-%COMP%]{width:100%;border-style:dashed;padding:.5rem .875rem;font-size:.8125rem}.add-endpoint-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.25rem;width:1.25rem;height:1.25rem;margin-right:.5rem}.panel-error[_ngcontent-%COMP%]{margin-top:.5rem;font-size:.75rem}.inline-edit-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.75rem;padding-top:1rem;margin-top:.5rem}@media(prefers-color-scheme:dark){.config-panel[_ngcontent-%COMP%]{box-shadow:0 1px 3px #0000004d}}"], changeDetection: 0 }); }
|
|
612
|
+
}
|
|
613
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormSubmissionsConfigComponent, [{
|
|
614
|
+
type: Component,
|
|
615
|
+
args: [{ selector: 'lib-form-submissions-config', imports: [
|
|
616
|
+
ClipboardModule,
|
|
617
|
+
MatButtonModule,
|
|
618
|
+
MatDialogModule,
|
|
619
|
+
MatDividerModule,
|
|
620
|
+
MatExpansionModule,
|
|
621
|
+
MatFormFieldModule,
|
|
622
|
+
MatIconModule,
|
|
623
|
+
MatTooltipModule,
|
|
624
|
+
TDynamicDataEditComponent,
|
|
625
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"submissions-dialog\">\r\n <!-- Header: icon + title + subtitle per design rule \u00A74 -->\r\n <header class=\"dialog-header\">\r\n <div class=\"header-icon\" aria-hidden=\"true\">\r\n <mat-icon>settings</mat-icon>\r\n </div>\r\n <div class=\"header-text\">\r\n <h1 class=\"header-title\">Form Submission Configuration</h1>\r\n <p class=\"header-subtitle\">Configure how your form is submitted and validated before submission.</p>\r\n </div>\r\n <button mat-icon-button mat-dialog-close [attr.aria-label]=\"'Close dialog'\" class=\"header-close\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </header>\r\n\r\n <section class=\"dialog-content\">\r\n <mat-accordion multi>\r\n @for (panel of panels(); track panel.id) {\r\n <mat-expansion-panel [expanded]=\"true\" class=\"config-panel\">\r\n <mat-expansion-panel-header class=\"panel-header\">\r\n <mat-panel-title class=\"panel-title\">\r\n <mat-icon class=\"panel-icon\" [color]=\"'primary'\">{{ panel.titleIcon }}</mat-icon>\r\n {{ panel.title }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div class=\"panel-content\">\r\n <p class=\"panel-description\" [innerHTML]=\"panel.description\"></p>\r\n\r\n <!-- Dynamic form elements (submission message, toggles, etc.) -->\r\n @if ((panel?.elements || []).length > 0) {\r\n <div class=\"edit-section\">\r\n @for (edit of (panel?.elements || []); track edit.id) {\r\n <div class=\"edit-field\">\r\n <lib-t-dynamic-data-edit\r\n [editorConfig]=\"edit\"\r\n [data]=\"form()\"\r\n [validationErrors]=\"errorsFor(edit)\"\r\n (valueChange)=\"formInputChange($event, edit)\"\r\n [formInputs]=\"(formInputs()) || []\"\r\n (blur)=\"elementBlur($event, edit)\">\r\n </lib-t-dynamic-data-edit>\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n <!-- API endpoints list -->\r\n <div class=\"api-section\">\r\n <h3 class=\"api-section-header\" [class.api-section-header--error]=\"panel.error\">\r\n {{ panel.sectionLabel }}\r\n </h3>\r\n\r\n @if (panel.apis.length === 0) {\r\n <div class=\"empty-state\" [class.empty-state--error]=\"panel.error\">\r\n <mat-icon class=\"empty-state-icon\">add_link</mat-icon>\r\n <p>{{ panel.emptyMessage }}</p>\r\n </div>\r\n }\r\n\r\n @for (api of panel.apis; track api._id) {\r\n <div\r\n class=\"api-list-item\"\r\n [class.api-list-item--active]=\"keyInEdit() === panel.primaryKey && dataPlaceholder()?.data?._id === api._id\">\r\n <span class=\"api-method-tag\" [class.api-method-tag--post]=\"api.httpMethod === 'POST'\">\r\n {{ api.httpMethod }}\r\n </span>\r\n <div class=\"api-details\">\r\n <span class=\"api-name\">{{ api.name }}</span>\r\n <span class=\"api-endpoint\" [matTooltip]=\"api.httpEndPoint\" matTooltipPosition=\"above\">\r\n {{ api.httpEndPoint }}\r\n </span>\r\n </div>\r\n <div class=\"api-item-actions\">\r\n <button\r\n (click)=\"editSubmitApi(api, panel.primaryKey)\"\r\n mat-icon-button\r\n matTooltip=\"Edit endpoint\"\r\n [attr.aria-label]=\"'Edit endpoint ' + api.name\"\r\n class=\"api-edit-btn\">\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n [cdkCopyToClipboard]=\"api.httpEndPoint || ''\"\r\n mat-icon-button\r\n matTooltip=\"Copy URL\"\r\n [attr.aria-label]=\"'Copy endpoint URL'\"\r\n class=\"api-copy-btn\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n <button\r\n (click)=\"removeSubmissionApi(api, panel.primaryKey)\"\r\n mat-icon-button\r\n matTooltip=\"Remove endpoint\"\r\n [attr.aria-label]=\"'Remove endpoint ' + api.name\"\r\n class=\"api-remove-btn\">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n }\r\n\r\n @if (keyInEdit() !== panel.primaryKey) {\r\n <div class=\"api-actions\">\r\n <button\r\n (click)=\"addNewSubmitApi(panel.primaryKey)\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n class=\"add-endpoint-btn\">\r\n <mat-icon>add</mat-icon>\r\n Add new endpoint\r\n </button>\r\n </div>\r\n }\r\n\r\n @if (panel.error) {\r\n <mat-error class=\"panel-error\">{{ panel.error }}</mat-error>\r\n }\r\n </div>\r\n\r\n <!-- Inline edit form for new/editing endpoint -->\r\n @if (keyInEdit() === panel.primaryKey) {\r\n <div class=\"edit-section edit-section--inline\">\r\n <h4 class=\"inline-edit-title\">\r\n {{ isEditingExisting() ? 'Edit endpoint' : 'New endpoint' }}\r\n </h4>\r\n @for (element of submissionApiElements(); track element.id) {\r\n <div class=\"edit-field\">\r\n <lib-t-dynamic-data-edit\r\n [editorConfig]=\"element\"\r\n [data]=\"dataPlaceholder()\"\r\n [validationErrors]=\"validationErrors(element)\"\r\n (valueChange)=\"elementConfigurationChanged($event, element)\"\r\n [formInputs]=\"(formInputs()) || []\"\r\n (blur)=\"elementBlur($event, element)\">\r\n </lib-t-dynamic-data-edit>\r\n </div>\r\n }\r\n <mat-divider></mat-divider>\r\n <div class=\"inline-edit-actions\">\r\n <button mat-flat-button (click)=\"saveSubmitApi()\" color=\"primary\">\r\n {{ isEditingExisting() ? 'Update' : 'Save' }}\r\n </button>\r\n <button mat-button (click)=\"cancelSubmitApi()\" color=\"warn\">Cancel</button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n </mat-accordion>\r\n </section>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.submissions-dialog{display:flex;flex-direction:column;min-width:28rem;max-width:36rem;max-height:calc(100vh - 24px);background:var(--mat-sys-surface, var(--mat-app-surface));border:1px solid var(--mat-sys-outline-variant, var(--mat-divider-color));overflow:hidden}.dialog-header{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;flex-shrink:0}.header-icon{width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-icon mat-icon{font-size:1.5rem;width:1.5rem;height:1.5rem;color:var(--lib-forms-primary)}.header-text{flex:1;min-width:0}.header-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;color:var(--lib-forms-on-surface);margin:0;line-height:1.3}.header-subtitle{font-size:.875rem;color:var(--lib-forms-on-surface-variant);line-height:1.4;margin-top:.25rem;margin-bottom:0}.header-close{margin-top:-.5rem;margin-right:-.5rem}.dialog-content{padding:1rem 1.5rem 1.5rem;overflow-y:auto;max-height:70vh;flex:1;min-height:0}.config-panel{border-radius:12px;box-shadow:0 2px 8px #00000014;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);overflow:hidden;margin-bottom:1rem}.config-panel:last-child{margin-bottom:0}.panel-header{background:color-mix(in srgb,var(--lib-forms-primary) 4%,transparent);border-bottom:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.panel-title{display:flex;align-items:center;gap:.75rem;font-weight:600}.panel-icon{margin-right:0;font-size:1.25rem;width:1.25rem;height:1.25rem}.panel-content{padding:1.25rem;display:flex;flex-direction:column;gap:1rem;background:var(--mat-sys-surface-container, var(--mat-sys-surface))}.panel-description{font-size:.8125rem;color:var(--lib-forms-on-surface-variant);line-height:1.35;margin:0 0 1rem}.edit-section{background:var(--mat-sys-surface-container-high, var(--mat-sys-surface-container));border-radius:8px;padding:1rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.edit-section--inline{margin-top:.5rem}.inline-edit-title{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.edit-field{margin-bottom:1rem}.edit-field:last-child{margin-bottom:0}.api-section{background:var(--mat-sys-surface-container-high, var(--mat-sys-surface-container));border-radius:8px;padding:1rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.api-section-header{font-size:.75rem;font-weight:500;letter-spacing:.04em;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem;padding-left:.25rem}.api-section-header--error{color:var(--lib-forms-error)}.empty-state{display:flex;align-items:center;gap:.5rem;padding:1rem;background:var(--lib-forms-surface-container-highest);border-radius:8px;font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.empty-state p{margin:0;flex:1}.empty-state--error{color:var(--lib-forms-error)}.empty-state-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;opacity:.8}.api-list-item{display:flex;align-items:center;gap:1rem;padding:.5rem;min-height:2.75rem;border-radius:8px;transition:background .3s cubic-bezier(.16,1,.3,1)}.api-list-item--active{background:color-mix(in srgb,var(--lib-forms-primary) 8%,transparent)}.api-method-tag{flex-shrink:0;padding:.25rem .5rem;font-size:.75rem;font-weight:600;border-radius:6px;text-align:center;min-width:3rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);color:var(--lib-forms-primary)}.api-method-tag--post{background:color-mix(in srgb,var(--sem-success) 12%,transparent);color:var(--sem-success)}.api-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.api-name{font-size:.875rem;font-weight:600;color:var(--lib-forms-on-surface);line-height:1.3}.api-endpoint{font-size:.75rem;color:var(--lib-forms-on-surface-variant);opacity:.85;line-height:1.3;max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:help}.api-item-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.api-edit-btn:hover mat-icon,.api-copy-btn:hover mat-icon,.api-remove-btn:hover mat-icon{color:var(--lib-forms-primary)}.api-remove-btn:hover mat-icon{color:var(--lib-forms-error)}.api-actions{margin-top:1rem}.add-endpoint-btn{width:100%;border-style:dashed;padding:.5rem .875rem;font-size:.8125rem}.add-endpoint-btn mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;margin-right:.5rem}.panel-error{margin-top:.5rem;font-size:.75rem}.inline-edit-actions{display:flex;justify-content:flex-end;gap:.75rem;padding-top:1rem;margin-top:.5rem}@media(prefers-color-scheme:dark){.config-panel{box-shadow:0 1px 3px #0000004d}}\n"] }]
|
|
626
|
+
}], null, null); })();
|
|
627
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormSubmissionsConfigComponent, { className: "FormSubmissionsConfigComponent", filePath: "lib/components/form-builder/elements/form-submissions-config/form-submissions-config.component.ts", lineNumber: 46 }); })();
|
|
628
|
+
|
|
629
|
+
const FormsBuilderMenuComponent_Conditional_16_Defer_3_DepsFn = () => [i2.MatButton, i3.MatIcon, i5.MatTooltip, i3$1.MatCard, i3$1.MatCardActions, i3$1.MatCardContent, i8.MatToolbar, i6.MatDivider, import('@angular/cdk/drag-drop').then(m => m.CdkDrag), i1.CdkCopyToClipboard, import('./ngx-t-forms-form-json-view.component-z0nQxpqB.mjs').then(m => m.FormJsonViewComponent)];
|
|
630
|
+
const _forTrack0 = ($index, $item) => $item.label;
|
|
631
|
+
function FormsBuilderMenuComponent_For_9_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
632
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
633
|
+
i0.ɵɵtext(1);
|
|
634
|
+
i0.ɵɵelementEnd();
|
|
635
|
+
i0.ɵɵelementStart(2, "div", 6)(3, "mat-error")(4, "small");
|
|
636
|
+
i0.ɵɵtext(5, " Invalid configurations ");
|
|
637
|
+
i0.ɵɵelementEnd()()();
|
|
638
|
+
} if (rf & 2) {
|
|
639
|
+
const item_r2 = i0.ɵɵnextContext().$implicit;
|
|
640
|
+
i0.ɵɵadvance();
|
|
641
|
+
i0.ɵɵtextInterpolate1(" ", item_r2.label, " ");
|
|
642
|
+
} }
|
|
643
|
+
function FormsBuilderMenuComponent_For_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
644
|
+
i0.ɵɵtext(0);
|
|
645
|
+
} if (rf & 2) {
|
|
646
|
+
const item_r2 = i0.ɵɵnextContext().$implicit;
|
|
647
|
+
i0.ɵɵtextInterpolate1(" ", item_r2.label, " ");
|
|
648
|
+
} }
|
|
649
|
+
function FormsBuilderMenuComponent_For_9_Template(rf, ctx) { if (rf & 1) {
|
|
650
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
651
|
+
i0.ɵɵelementStart(0, "button", 5);
|
|
652
|
+
i0.ɵɵlistener("click", function FormsBuilderMenuComponent_For_9_Template_button_click_0_listener() { const item_r2 = i0.ɵɵrestoreView(_r1).$implicit; return i0.ɵɵresetView(item_r2 == null ? null : item_r2.action()); });
|
|
653
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
654
|
+
i0.ɵɵtext(2);
|
|
655
|
+
i0.ɵɵelementEnd();
|
|
656
|
+
i0.ɵɵelementStart(3, "span");
|
|
657
|
+
i0.ɵɵconditionalCreate(4, FormsBuilderMenuComponent_For_9_Conditional_4_Template, 6, 1)(5, FormsBuilderMenuComponent_For_9_Conditional_5_Template, 1, 1);
|
|
658
|
+
i0.ɵɵelementEnd()();
|
|
659
|
+
i0.ɵɵelement(6, "mat-divider");
|
|
660
|
+
} if (rf & 2) {
|
|
661
|
+
const item_r2 = ctx.$implicit;
|
|
662
|
+
i0.ɵɵproperty("matTooltip", item_r2.hint);
|
|
663
|
+
i0.ɵɵadvance(2);
|
|
664
|
+
i0.ɵɵtextInterpolate(item_r2.icon);
|
|
665
|
+
i0.ɵɵadvance(2);
|
|
666
|
+
i0.ɵɵconditional(item_r2.errors ? 4 : 5);
|
|
667
|
+
} }
|
|
668
|
+
function FormsBuilderMenuComponent_Conditional_16_Defer_1_Template(rf, ctx) { if (rf & 1) {
|
|
669
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
670
|
+
i0.ɵɵelementStart(0, "mat-card", 7)(1, "mat-toolbar", 8)(2, "span");
|
|
671
|
+
i0.ɵɵtext(3, " Json Form Value ");
|
|
672
|
+
i0.ɵɵelementEnd();
|
|
673
|
+
i0.ɵɵelement(4, "span", 9);
|
|
674
|
+
i0.ɵɵelementStart(5, "mat-icon", 10);
|
|
675
|
+
i0.ɵɵtext(6, " drag_indicator ");
|
|
676
|
+
i0.ɵɵelementEnd()();
|
|
677
|
+
i0.ɵɵelement(7, "mat-divider", 11);
|
|
678
|
+
i0.ɵɵelementStart(8, "mat-card-content", 12);
|
|
679
|
+
i0.ɵɵelement(9, "lib-form-json-view");
|
|
680
|
+
i0.ɵɵelementEnd();
|
|
681
|
+
i0.ɵɵelementStart(10, "mat-card-actions");
|
|
682
|
+
i0.ɵɵelement(11, "span", 9);
|
|
683
|
+
i0.ɵɵelementStart(12, "button", 13);
|
|
684
|
+
i0.ɵɵlistener("click", function FormsBuilderMenuComponent_Conditional_16_Defer_1_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r3); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.toggleJson()); });
|
|
685
|
+
i0.ɵɵtext(13, " Close ");
|
|
686
|
+
i0.ɵɵelementEnd();
|
|
687
|
+
i0.ɵɵelementStart(14, "button", 14);
|
|
688
|
+
i0.ɵɵtext(15, " Copy ");
|
|
689
|
+
i0.ɵɵelementEnd()()();
|
|
690
|
+
} if (rf & 2) {
|
|
691
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
692
|
+
i0.ɵɵadvance(14);
|
|
693
|
+
i0.ɵɵproperty("cdkCopyToClipboard", ctx_r3.formCopy() || "");
|
|
694
|
+
} }
|
|
695
|
+
function FormsBuilderMenuComponent_Conditional_16_DeferPlaceholder_2_Template(rf, ctx) { if (rf & 1) {
|
|
696
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
697
|
+
i0.ɵɵelement(1, "mat-spinner", 16);
|
|
698
|
+
i0.ɵɵelementEnd();
|
|
699
|
+
} }
|
|
700
|
+
function FormsBuilderMenuComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
701
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
702
|
+
i0.ɵɵdomTemplate(1, FormsBuilderMenuComponent_Conditional_16_Defer_1_Template, 16, 1)(2, FormsBuilderMenuComponent_Conditional_16_DeferPlaceholder_2_Template, 2, 0);
|
|
703
|
+
i0.ɵɵdefer(3, 1, FormsBuilderMenuComponent_Conditional_16_Defer_3_DepsFn, null, 2);
|
|
704
|
+
i0.ɵɵdeferOnViewport(0, -1);
|
|
705
|
+
i0.ɵɵelementEnd();
|
|
706
|
+
} }
|
|
707
|
+
class FormsBuilderMenuComponent {
|
|
708
|
+
constructor() {
|
|
709
|
+
this.#store = inject(FormsStoreService);
|
|
710
|
+
this.#destroyRef = inject(DestroyRef);
|
|
711
|
+
this.snackBar = inject(MatSnackBar);
|
|
712
|
+
this.dialog = inject(MatDialog);
|
|
713
|
+
this.showJson = false;
|
|
714
|
+
this.form = computed(() => this.#store.signalSelectors.selectFormInEdit()?.form, ...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
|
|
715
|
+
this.formCopy = computed(() => JSON.stringify(this.form() || {}), ...(ngDevMode ? [{ debugName: "formCopy" }] : /* istanbul ignore next */ []));
|
|
716
|
+
this.errors = this.#store.formBuilderSignalSelectors.formErrors;
|
|
717
|
+
this.configHasErrors = computed(() => this.errors().some((error) => error.key.split('.')?.[0] === 'submissionHandle'), ...(ngDevMode ? [{ debugName: "configHasErrors" }] : /* istanbul ignore next */ []));
|
|
718
|
+
this.items = computed(() => [
|
|
719
|
+
{
|
|
720
|
+
label: 'Templates',
|
|
721
|
+
icon: 'content_copy',
|
|
722
|
+
hint: 'Select a form to apply as a template',
|
|
723
|
+
action: () => this.openDialog(),
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
label: 'Submission Config',
|
|
727
|
+
hint: 'Setup form submission api and other configurations',
|
|
728
|
+
icon: 'api',
|
|
729
|
+
errors: this.configHasErrors(),
|
|
730
|
+
action: () => this.openFormSubmissionDialog(),
|
|
731
|
+
},
|
|
732
|
+
], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
733
|
+
this.applyFormTemplate = (form) => this.#store.actionsFormBuilder.applyFormTemplate(form);
|
|
734
|
+
}
|
|
735
|
+
#store;
|
|
736
|
+
#destroyRef;
|
|
737
|
+
openDialog() {
|
|
738
|
+
const dialogRef = this.dialog.open(SelectFormTemplateComponent);
|
|
739
|
+
dialogRef
|
|
740
|
+
.afterClosed()
|
|
741
|
+
.pipe(take(1), takeUntilDestroyed(this.#destroyRef))
|
|
742
|
+
.subscribe((form) => {
|
|
743
|
+
if (form) {
|
|
744
|
+
this.applyFormTemplate(form);
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
openFormSubmissionDialog() {
|
|
749
|
+
const dialogRef = this.dialog.open(FormSubmissionsConfigComponent, {
|
|
750
|
+
data: { store: this.#store },
|
|
751
|
+
});
|
|
752
|
+
dialogRef
|
|
753
|
+
.afterClosed()
|
|
754
|
+
.pipe(take(1), takeUntilDestroyed(this.#destroyRef))
|
|
755
|
+
.subscribe(() => {
|
|
756
|
+
// no-op
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
toggleJson() {
|
|
760
|
+
this.showJson = !this.showJson;
|
|
761
|
+
}
|
|
762
|
+
static { this.ɵfac = function FormsBuilderMenuComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormsBuilderMenuComponent)(); }; }
|
|
763
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormsBuilderMenuComponent, selectors: [["lib-forms-builder-menu"]], decls: 17, vars: 6, consts: [["configMenu", "matMenu"], ["matBadgeColor", "warn", "mat-flat-button", "", 3, "matBadge", "matTooltip", "matBadgeHidden", "matMenuTriggerFor"], ["mat-subheader", "", 2, "padding-left", "16px"], ["mat-menu-item", "", 3, "click", "matTooltip"], [1, "DragBoundary"], ["matTooltipPosition", "right", "mat-menu-item", "", 2, "padding-top", "4px", "padding-bottom", "4px", 3, "click", "matTooltip"], [2, "line-height", "normal"], ["cdkDragBoundary", "DragBoundary", "cdkDrag", "", 1, "menuCard"], [2, "background", "var(--mat-sidenav-content-background-color)", "color", "var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary))"], [1, "spacer"], ["cdkDragHandle", "", 2, "margin", "8px", "color", "var(--mat-divider-color, var(--mat-app-outline))"], [2, "margin-bottom", "12px"], [2, "overflow-y", "auto", "max-height", "calc(100vh - 150px)"], ["mat-flat-button", "", 3, "click"], ["color", "primary", "matTooltip", "Copy json to clipboard", "mat-flat-button", "", 3, "cdkCopyToClipboard"], [2, "padding", "50px", "display", "flex", "justify-content", "center", "align-items", "center", "text-align", "center"], ["diameter", "20"]], template: function FormsBuilderMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
764
|
+
i0.ɵɵelementStart(0, "button", 1);
|
|
765
|
+
i0.ɵɵtext(1, " Config ");
|
|
766
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
767
|
+
i0.ɵɵtext(3, " settings_suggest ");
|
|
768
|
+
i0.ɵɵelementEnd()();
|
|
769
|
+
i0.ɵɵelementStart(4, "mat-menu", null, 0)(6, "div", 2);
|
|
770
|
+
i0.ɵɵtext(7, "Form edit options");
|
|
771
|
+
i0.ɵɵelementEnd();
|
|
772
|
+
i0.ɵɵrepeaterCreate(8, FormsBuilderMenuComponent_For_9_Template, 7, 3, null, null, _forTrack0);
|
|
773
|
+
i0.ɵɵelementStart(10, "button", 3);
|
|
774
|
+
i0.ɵɵlistener("click", function FormsBuilderMenuComponent_Template_button_click_10_listener() { return ctx.toggleJson(); });
|
|
775
|
+
i0.ɵɵelementStart(11, "mat-icon");
|
|
776
|
+
i0.ɵɵtext(12, "data_object");
|
|
777
|
+
i0.ɵɵelementEnd();
|
|
778
|
+
i0.ɵɵelementStart(13, "span")(14, "div");
|
|
779
|
+
i0.ɵɵtext(15, " Show json ");
|
|
780
|
+
i0.ɵɵelementEnd()()()();
|
|
781
|
+
i0.ɵɵconditionalCreate(16, FormsBuilderMenuComponent_Conditional_16_Template, 5, 0, "div", 4);
|
|
782
|
+
} if (rf & 2) {
|
|
783
|
+
const configMenu_r5 = i0.ɵɵreference(5);
|
|
784
|
+
i0.ɵɵproperty("matBadge", "!")("matTooltip", ctx.configHasErrors() === false ? "\nClick to view form configuration\n" : "Click to fix or add missing form configurations")("matBadgeHidden", !!ctx.configHasErrors() === false)("matMenuTriggerFor", configMenu_r5);
|
|
785
|
+
i0.ɵɵadvance(8);
|
|
786
|
+
i0.ɵɵrepeater(ctx.items());
|
|
787
|
+
i0.ɵɵadvance(2);
|
|
788
|
+
i0.ɵɵproperty("matTooltip", ctx.showJson ? "Hide json" : "Show json");
|
|
789
|
+
i0.ɵɵadvance(6);
|
|
790
|
+
i0.ɵɵconditional(ctx.showJson ? 16 : -1);
|
|
791
|
+
} }, dependencies: [MatBadgeModule, i1$2.MatBadge, MatButtonModule, i2.MatButton, MatIconModule, i3.MatIcon, MatMenuModule, i6$1.MatMenu, i6$1.MatMenuItem, i6$1.MatMenuTrigger, MatTooltipModule, i5.MatTooltip, MatCardModule,
|
|
792
|
+
MatToolbarModule,
|
|
793
|
+
MatDividerModule, i6.MatDivider, MatProgressSpinnerModule, i4.MatProgressSpinner, MatFormFieldModule, i2$1.MatError, ClipboardModule], styles: [".menuCard[_ngcontent-%COMP%]{width:fit-content;margin:0;resize:horizontal;z-index:2}.DragBoundary[_ngcontent-%COMP%]{position:absolute;left:0;top:74px;width:100%;height:calc(100% - 74px)}"], changeDetection: 0 }); }
|
|
794
|
+
}
|
|
795
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadataAsync(FormsBuilderMenuComponent, () => [import('@angular/cdk/drag-drop').then(m => m.CdkDrag), import('./ngx-t-forms-form-json-view.component-z0nQxpqB.mjs').then(m => m.FormJsonViewComponent)], (CdkDrag, FormJsonViewComponent) => { i0.ɵsetClassMetadata(FormsBuilderMenuComponent, [{
|
|
796
|
+
type: Component,
|
|
797
|
+
args: [{ selector: 'lib-forms-builder-menu', imports: [
|
|
798
|
+
MatBadgeModule,
|
|
799
|
+
MatButtonModule,
|
|
800
|
+
MatIconModule,
|
|
801
|
+
MatMenuModule,
|
|
802
|
+
MatTooltipModule,
|
|
803
|
+
MatCardModule,
|
|
804
|
+
MatToolbarModule,
|
|
805
|
+
MatDividerModule,
|
|
806
|
+
MatProgressSpinnerModule,
|
|
807
|
+
MatFormFieldModule,
|
|
808
|
+
CdkDrag,
|
|
809
|
+
ClipboardModule,
|
|
810
|
+
FormJsonViewComponent,
|
|
811
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button [matBadge]=\"'!'\" matBadgeColor=\"warn\" [matTooltip]=\"configHasErrors() === false?'\nClick to view form configuration\n':'Click to fix or add missing form configurations'\" [matBadgeHidden]=\"!!(configHasErrors()) === false\"\n [matMenuTriggerFor]=\"configMenu\" mat-flat-button>\n Config\n <mat-icon>\n settings_suggest\n </mat-icon>\n</button>\n\n<mat-menu #configMenu=\"matMenu\">\n\n\n <div mat-subheader style=\"padding-left: 16px;\">Form edit options</div>\n @for (item of items(); track item.label) {\n <button [matTooltip]=\"item.hint\" matTooltipPosition=\"right\" style=\"padding-top:4px;padding-bottom:4px\"\n (click)=\"item?.action()\" mat-menu-item>\n <mat-icon>{{item.icon}}</mat-icon>\n\n <span>\n @if (item.errors) {\n <div style=\"line-height: normal;\">\n {{item.label}}\n </div>\n <div style=\"line-height: normal;\">\n\n <mat-error>\n <small>\n Invalid configurations\n </small>\n\n </mat-error>\n </div>\n }@else {\n\n {{item.label}}\n\n }\n\n\n </span>\n\n </button>\n <mat-divider></mat-divider>\n }\n <button [matTooltip]=\"showJson?'Hide json':'Show json'\" (click)=\"toggleJson()\" mat-menu-item>\n <mat-icon>data_object</mat-icon>\n\n <span>\n <div>\n Show json\n </div>\n\n\n\n </span>\n </button>\n\n</mat-menu>\n\n@if (showJson) {\n<div class=\"DragBoundary\">\n @defer (on viewport) {\n <mat-card cdkDragBoundary=\"DragBoundary\" cdkDrag class=\"menuCard\">\n <mat-toolbar\n style=\"background: var(--mat-sidenav-content-background-color);color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary))\">\n <span>\n Json Form Value\n </span>\n <span class=\"spacer\"></span>\n\n <mat-icon cdkDragHandle style=\"\n margin:8px;\n color:var(--mat-divider-color, var(--mat-app-outline))\">\n drag_indicator\n </mat-icon>\n </mat-toolbar>\n <mat-divider style=\"margin-bottom: 12px;\"></mat-divider>\n\n\n <mat-card-content style=\" overflow-y: auto;\n max-height: calc(100vh - 150px);\">\n <lib-form-json-view></lib-form-json-view>\n </mat-card-content>\n <mat-card-actions>\n <span class=\"spacer\"></span>\n <button (click)=\"toggleJson()\" mat-flat-button>\n Close\n </button>\n <button color=\"primary\" [cdkCopyToClipboard]=\"(formCopy())||''\" matTooltip=\"Copy json to clipboard\"\n mat-flat-button>\n Copy\n </button>\n\n </mat-card-actions>\n\n\n </mat-card>\n }@placeholder {\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\n <mat-spinner diameter=\"20\" />\n </div>\n\n }\n</div>\n}\n", styles: [".menuCard{width:fit-content;margin:0;resize:horizontal;z-index:2}.DragBoundary{position:absolute;left:0;top:74px;width:100%;height:calc(100% - 74px)}\n"] }]
|
|
812
|
+
}], null, null); }); })();
|
|
813
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormsBuilderMenuComponent, { className: "FormsBuilderMenuComponent", filePath: "lib/components/form-builder/elements/forms-builder-menu/forms-builder-menu.component.ts", lineNumber: 55 }); })();
|
|
814
|
+
|
|
815
|
+
export { FormsBuilderMenuComponent };
|
|
816
|
+
//# sourceMappingURL=ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map
|