ngx-t-forms 3.1.7 → 3.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{ngx-t-forms-api-endpoint-config.component-CCwUtGOH.mjs → ngx-t-forms-api-endpoint-config.component-BbS1dY0l.mjs} +10 -10
- package/fesm2022/ngx-t-forms-api-endpoint-config.component-BbS1dY0l.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-BUCFidjW.mjs → ngx-t-forms-auto-complete-input-element.component-B8eluIrh.mjs} +9 -9
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-BUCFidjW.mjs.map → ngx-t-forms-auto-complete-input-element.component-B8eluIrh.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-autofillToken-D-BYfzxR.mjs +189 -0
- package/fesm2022/ngx-t-forms-autofillToken-D-BYfzxR.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C92Y7CW_.mjs → ngx-t-forms-basic-input-input-element.component-SSLXyCz9.mjs} +16 -8
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-SSLXyCz9.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-Cn_rxXMX.mjs +603 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-Cn_rxXMX.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CWJMjBoK.mjs → ngx-t-forms-chip-options-creator-editor.component-CGm5tgsp.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CWJMjBoK.mjs.map → ngx-t-forms-chip-options-creator-editor.component-CGm5tgsp.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-clamp-probe.directive-DMUdeVrM.mjs +99 -0
- package/fesm2022/ngx-t-forms-clamp-probe.directive-DMUdeVrM.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-conditional-display-config.component-zauBVptA.mjs → ngx-t-forms-conditional-display-config.component-DIMIWTKj.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-conditional-display-config.component-zauBVptA.mjs.map → ngx-t-forms-conditional-display-config.component-DIMIWTKj.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-C096Ib2V.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-DKb3E9gA.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-C096Ib2V.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-DKb3E9gA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-data-source-picker.component-WkSQqjd-.mjs → ngx-t-forms-data-source-picker.component-BG_sr5VH.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-data-source-picker.component-WkSQqjd-.mjs.map → ngx-t-forms-data-source-picker.component-BG_sr5VH.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-Dtzq25sw.mjs → ngx-t-forms-date-picker-input-element.component-vUlUuzJ0.mjs} +10 -10
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-vUlUuzJ0.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-W8KV-zoC.mjs → ngx-t-forms-date-range-picker-input-element.component-YVE_s-7Y.mjs} +7 -7
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-YVE_s-7Y.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-date-time-picker-input-element.component-CQXZDwAo.mjs → ngx-t-forms-date-time-picker-input-element.component-BlOS8NdF.mjs} +11 -10
- package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-BlOS8NdF.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-u2UUPdAo.mjs +623 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-u2UUPdAo.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-picker.component-CvATcveO.mjs → ngx-t-forms-document-picker.component-DOYyRgh4.mjs} +44 -262
- package/fesm2022/ngx-t-forms-document-picker.component-DOYyRgh4.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-editor-input-element.component-BqofP5-4.mjs → ngx-t-forms-editor-input-element.component-BvZPNjQX.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-editor-input-element.component-BqofP5-4.mjs.map → ngx-t-forms-editor-input-element.component-BvZPNjQX.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BAQx2BLX.mjs → ngx-t-forms-file-upload-input-element.component-CONELqoi.mjs} +10 -10
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BAQx2BLX.mjs.map → ngx-t-forms-file-upload-input-element.component-CONELqoi.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-copy-lint.component-TCSe-27-.mjs +248 -0
- package/fesm2022/ngx-t-forms-form-copy-lint.component-TCSe-27-.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-M6O7-j2Q.mjs → ngx-t-forms-form-input-selector.component-Bdkuzw0R.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-M6O7-j2Q.mjs.map → ngx-t-forms-form-input-selector.component-Bdkuzw0R.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-Dd-EMosV.mjs → ngx-t-forms-form-json-view.component-CDcbgWgN.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-Dd-EMosV.mjs.map → ngx-t-forms-form-json-view.component-CDcbgWgN.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-B1dYMlCC.mjs → ngx-t-forms-form-section-stepper.component-CqLSI8zP.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-B1dYMlCC.mjs.map → ngx-t-forms-form-section-stepper.component-CqLSI8zP.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-S2qfSAT-.mjs → ngx-t-forms-forms-builder-menu.component-DFCVe_Fq.mjs} +185 -15
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DFCVe_Fq.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs +187 -0
- package/fesm2022/ngx-t-forms-forms-native-date-adapter-h6fClNMS.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-geo-location.component-whY7YIMk.mjs → ngx-t-forms-geo-location.component-DA3ATrvw.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-geo-location.component-whY7YIMk.mjs.map → ngx-t-forms-geo-location.component-DA3ATrvw.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-header-template-editor.component-BLn_-jPM.mjs → ngx-t-forms-header-template-editor.component-B9Cj8dOI.mjs} +13 -5
- package/fesm2022/ngx-t-forms-header-template-editor.component-B9Cj8dOI.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D05NKiWm.mjs → ngx-t-forms-image-capture-input-element.component-C9oz_ZjA.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-D05NKiWm.mjs.map → ngx-t-forms-image-capture-input-element.component-C9oz_ZjA.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-index-CSXX8RTm.mjs +2 -0
- package/fesm2022/ngx-t-forms-index-CSXX8RTm.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-CGz6j56m.mjs → ngx-t-forms-input-custom.component-CqIr5wpy.mjs} +148 -27
- package/fesm2022/ngx-t-forms-input-custom.component-CqIr5wpy.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-DxrkUbed.mjs → ngx-t-forms-input-editor.component-DU2sgo4i.mjs} +9 -9
- package/fesm2022/{ngx-t-forms-input-editor.component-DxrkUbed.mjs.map → ngx-t-forms-input-editor.component-DU2sgo4i.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-Cu_L5CRA.mjs → ngx-t-forms-map-mat-options-keys-WfFq_0tS.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-Cu_L5CRA.mjs.map → ngx-t-forms-map-mat-options-keys-WfFq_0tS.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-B98Hv4M1.mjs → ngx-t-forms-mat-chip-list-editor.component-CKnvqeix.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-B98Hv4M1.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CKnvqeix.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSnHK6ZR.mjs → ngx-t-forms-missing-form-configs.component-B5dDbmpj.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSnHK6ZR.mjs.map → ngx-t-forms-missing-form-configs.component-B5dDbmpj.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-97tHCSyK.mjs +37 -0
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-97tHCSyK.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-config.component-CBqzX9H7.mjs → ngx-t-forms-mscoa-config.component-BtLd7F2n.mjs} +10 -10
- package/fesm2022/{ngx-t-forms-mscoa-config.component-CBqzX9H7.mjs.map → ngx-t-forms-mscoa-config.component-BtLd7F2n.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs → ngx-t-forms-mscoa-error-display.component-Bmt1vboD.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map → ngx-t-forms-mscoa-error-display.component-Bmt1vboD.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cr1HXTjG.mjs → ngx-t-forms-mscoa-segment-config.component-DrzpixbK.mjs} +9 -9
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cr1HXTjG.mjs.map → ngx-t-forms-mscoa-segment-config.component-DrzpixbK.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs → ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-ddpips7E.mjs +3592 -0
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-ddpips7E.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs → ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs} +17432 -6875
- package/fesm2022/ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-B7TyhJnh.mjs +596 -0
- package/fesm2022/ngx-t-forms-paginated-selection-table-B7TyhJnh.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-Dx0pI0A1.mjs → ngx-t-forms-payload-template-editor.component-DVL4aBuG.mjs} +13 -5
- package/fesm2022/ngx-t-forms-payload-template-editor.component-DVL4aBuG.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-VySkMHQI.mjs → ngx-t-forms-pipeline-generator.component-DpqipW6G.mjs} +15 -15
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-VySkMHQI.mjs.map → ngx-t-forms-pipeline-generator.component-DpqipW6G.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-quill-input.component-BLaPFcJE.mjs → ngx-t-forms-quill-input.component-x9CHGOJy.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-quill-input.component-BLaPFcJE.mjs.map → ngx-t-forms-quill-input.component-x9CHGOJy.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-record-list-manager.component-qlizX9F4.mjs → ngx-t-forms-record-list-manager.component-BGg86NER.mjs} +7 -7
- package/fesm2022/{ngx-t-forms-record-list-manager.component-qlizX9F4.mjs.map → ngx-t-forms-record-list-manager.component-BGg86NER.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-CI9nLVXe.mjs +281 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-CI9nLVXe.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CLYe2Lf_.mjs → ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CLYe2Lf_.mjs.map → ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-section-report.component-foLHlD-I.mjs → ngx-t-forms-section-report.component-BS2CV_xl.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-section-report.component-foLHlD-I.mjs.map → ngx-t-forms-section-report.component-BS2CV_xl.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-select-input-element.component-C5qjqCXW.mjs +281 -0
- package/fesm2022/ngx-t-forms-select-input-element.component-C5qjqCXW.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-D4luMX5c.mjs → ngx-t-forms-selection-options-editor.component-B6sYvtcj.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-D4luMX5c.mjs.map → ngx-t-forms-selection-options-editor.component-B6sYvtcj.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs → ngx-t-forms-t-workflow-picker.component-xDbl63v1.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map → ngx-t-forms-t-workflow-picker.component-xDbl63v1.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-ri0r0ujE.mjs +161 -0
- package/fesm2022/ngx-t-forms-textarea-input-element.component-ri0r0ujE.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CXUqCipx.mjs +124 -0
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CXUqCipx.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-token-text-input.component-BAjGepTM.mjs → ngx-t-forms-token-text-input.component-BWmoGQfi.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-token-text-input.component-BAjGepTM.mjs.map → ngx-t-forms-token-text-input.component-BWmoGQfi.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-DVB88bgW.mjs → ngx-t-forms-validators-config.component-DEm9M5s9.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-validators-config.component-DVB88bgW.mjs.map → ngx-t-forms-validators-config.component-DEm9M5s9.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-LoF_fpHu.mjs → ngx-t-forms-workflow-adjudication.component-BOC9Z40E.mjs} +96 -35
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-BOC9Z40E.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/types/ngx-t-forms.d.ts +2864 -168
- package/fesm2022/ngx-t-forms-api-endpoint-config.component-CCwUtGOH.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-basic-input-input-element.component-C92Y7CW_.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-33ZARq4R.mjs +0 -603
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-33ZARq4R.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-picker-input-element.component-Dtzq25sw.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-W8KV-zoC.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-date-time-picker-input-element.component-CQXZDwAo.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-3LcpNBQI.mjs +0 -373
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-3LcpNBQI.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-picker.component-CvATcveO.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-S2qfSAT-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-header-template-editor.component-BLn_-jPM.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-BnK4nGDh.mjs +0 -2
- package/fesm2022/ngx-t-forms-index-BnK4nGDh.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-custom.component-CGz6j56m.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-BUj7wGyx.mjs +0 -38
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-BUj7wGyx.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CfZLcuuu.mjs +0 -2336
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CfZLcuuu.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-Dt4iPwb-.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs +0 -555
- package/fesm2022/ngx-t-forms-paginated-selection-table-lMTD1N6B.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-Dx0pI0A1.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-DY37Qrnj.mjs +0 -271
- package/fesm2022/ngx-t-forms-required-inputs.component-DY37Qrnj.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-select-input-element.component-CvrNfvXa.mjs +0 -160
- package/fesm2022/ngx-t-forms-select-input-element.component-CvrNfvXa.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-textarea-input-element.component-BWyxWDvp.mjs +0 -95
- package/fesm2022/ngx-t-forms-textarea-input-element.component-BWyxWDvp.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CpYC2ivQ.mjs +0 -93
- package/fesm2022/ngx-t-forms-toggle-input-element.component-CpYC2ivQ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-LoF_fpHu.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, DestroyRef, computed, linkedSignal, signal, ViewEncapsulation, ChangeDetectionStrategy, Component, input, output } from '@angular/core';
|
|
3
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
|
-
import * as
|
|
4
|
+
import * as i1$1 from '@angular/material/button';
|
|
5
5
|
import { MatButtonModule } from '@angular/material/button';
|
|
6
6
|
import * as i1 from '@angular/material/dialog';
|
|
7
7
|
import { MAT_DIALOG_DATA, MatDialogModule, MatDialog } from '@angular/material/dialog';
|
|
@@ -9,16 +9,16 @@ import * as i3 from '@angular/material/icon';
|
|
|
9
9
|
import { MatIconModule } from '@angular/material/icon';
|
|
10
10
|
import * as i5$1 from '@angular/material/tooltip';
|
|
11
11
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
12
|
-
import { N as NGX_T_FORMS_CONFIG_TOKEN, A as ApiValueAccessRulesComponent, E as EmptyStateComponent,
|
|
12
|
+
import { N as NGX_T_FORMS_CONFIG_TOKEN, A as ApiValueAccessRulesComponent, E as EmptyStateComponent, o as ErrorListComponent } from './ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs';
|
|
13
13
|
import * as i4 from '@angular/material/progress-spinner';
|
|
14
14
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
15
15
|
import * as i5 from '@angular/material/tabs';
|
|
16
16
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
17
17
|
import { take } from 'rxjs';
|
|
18
|
-
import { HeaderTemplateEditorComponent } from './ngx-t-forms-header-template-editor.component-
|
|
19
|
-
import { PayloadTemplateEditorComponent } from './ngx-t-forms-payload-template-editor.component-
|
|
20
|
-
import { RequiredInputsComponent } from './ngx-t-forms-required-inputs.component-
|
|
21
|
-
import { m as methodColorOf, s as sendsBody, b as bodyModeOf, p as paramCountOf, h as headerCountOf, a as payloadDefaultOf, c as minInputsOf, r as readinessOf, w as waitsForLabels, d as docsHtmlOf, e as deriveConfiguredRequest, f as dependencyLabels, R as RestApiCallSetupComponent } from './ngx-t-forms-rest-api-call-setup.component-
|
|
18
|
+
import { HeaderTemplateEditorComponent } from './ngx-t-forms-header-template-editor.component-B9Cj8dOI.mjs';
|
|
19
|
+
import { PayloadTemplateEditorComponent } from './ngx-t-forms-payload-template-editor.component-DVL4aBuG.mjs';
|
|
20
|
+
import { RequiredInputsComponent } from './ngx-t-forms-required-inputs.component-CI9nLVXe.mjs';
|
|
21
|
+
import { m as methodColorOf, s as sendsBody, b as bodyModeOf, p as paramCountOf, h as headerCountOf, a as payloadDefaultOf, c as minInputsOf, r as readinessOf, w as waitsForLabels, d as docsHtmlOf, e as deriveConfiguredRequest, f as dependencyLabels, R as RestApiCallSetupComponent } from './ngx-t-forms-rest-api-call-setup.component-B4LzPwxg.mjs';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Full-screen editor for one `matOptions.fetch.<slot>` API configuration,
|
|
@@ -190,7 +190,7 @@ class ApiEndpointConfigDialogComponent {
|
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ApiEndpointConfigDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
193
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ApiEndpointConfigDialogComponent, isStandalone: true, selector: "lib-api-endpoint-config-dialog", host: { classAttribute: "lib-api-endpoint-config-dialog" }, ngImport: i0, template: "<header class=\"aed__header\">\n <div class=\"aed__heading\">\n <h2 class=\"aed__title\">API call setup</h2>\n <p class=\"aed__subtitle\">{{ kindLabel() }}</p>\n </div>\n <button\n mat-icon-button\n mat-dialog-close\n class=\"aed__close\"\n aria-label=\"Close API call setup\">\n <mat-icon aria-hidden=\"true\">close</mat-icon>\n </button>\n</header>\n\n@if (hasEndpoint()) {\n <!-- Request bar \u2014 the Postman-style anchor: method, endpoint, change affordance. -->\n <div class=\"aed__request-bar\">\n <span class=\"aed__method\" [style.color]=\"methodColor()\">{{ config()?.httpMethod }}</span>\n <div class=\"aed__request-id\">\n <span class=\"aed__request-name\">{{ config()?.name }}</span>\n <span class=\"aed__request-url\" [matTooltip]=\"config()?.httpEndPoint ?? ''\">\n {{ config()?.httpEndPoint }}\n </span>\n </div>\n <button\n mat-stroked-button\n class=\"aed__change\"\n [disabled]=\"data.disabled()\"\n (click)=\"selectedTab.set(Tab.Endpoint)\">\n <mat-icon aria-hidden=\"true\">swap_horiz</mat-icon>\n Change endpoint\n </button>\n </div>\n} @else {\n <!-- First-run guide: the whole flow in one glance. -->\n <ol class=\"aed__steps\" aria-label=\"Setup steps\">\n <li class=\"aed__step aed__step--active\"><span class=\"aed__step-n\">1</span>Pick an endpoint</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">2</span>Bind request inputs</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">3</span>Map the response</li>\n </ol>\n}\n\n<mat-dialog-content class=\"aed__content\">\n <div class=\"aed__tabs-shell\">\n <mat-tab-group\n class=\"aed__tabs\"\n [mat-stretch-tabs]=\"false\"\n animationDuration=\"150ms\"\n [selectedIndex]=\"selectedTab()\"\n (selectedIndexChange)=\"selectedTab.set($event)\">\n\n <mat-tab label=\"Endpoint\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Choose which API this field calls. Endpoints come from your organisation's Postman\n collection \u2014 pick one and its method, URL, parameters and headers are captured for you.\n </p>\n <lib-rest-api-call-setup\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [httpGetDataFunction]=\"data.httpGetDataFunction()\"\n [disabled]=\"data.disabled()\"\n [value]=\"config()\"\n [errors]=\"data.errors() || []\"\n (valueChanged)=\"onEndpointChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Params\n @if (paramCount() > 0) {\n <span class=\"aed__count\">{{ paramCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Query parameters sent on the URL \u2014 one <code>\"name\": \"value\"</code> pair each. Type\n <code>$</code> to bind a value to a live form field; the request then waits for that\n field at fill time. Everything else is sent as a fixed value.\n </p>\n <lib-header-template-editor\n kind=\"query\"\n [value]=\"config()?.queryTemplate\"\n [defaultTemplate]=\"queryDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.queryChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Headers\n @if (headerCount() > 0) {\n <span class=\"aed__count\">{{ headerCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Headers sent with the request \u2014 the endpoint's own headers are prefilled. Type\n <code>$</code> to swap any value for a live form field; everything else is sent as a\n fixed value.\n </p>\n <lib-header-template-editor\n [value]=\"config()?.headerTemplate\"\n [defaultTemplate]=\"headerDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.headersChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint() || !sendsBody()\">\n <ng-template mat-tab-label>\n Body\n @if (hasEndpoint() && !sendsBody()) {\n <span class=\"aed__na\">n/a</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The request body, built from live form values. Map fields one by one, or author a JSON\n template when the payload is nested (type <code>$</code> to insert a field) \u2014\n switching modes never discards the other. <strong>Run API call</strong> sends exactly\n this body, with defaults filled in.\n </p>\n <div class=\"aed__mode\" role=\"group\" aria-label=\"Request body mechanism\">\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'mappedInputs'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('mappedInputs')\">\n Map inputs\n </button>\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'template'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('template')\">\n JSON template\n </button>\n </div>\n\n @if (bodyMode() === 'template') {\n <lib-payload-template-editor\n [value]=\"config()?.backEndConfig?.payloadTemplate\"\n [defaultTemplate]=\"payloadDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.payloadChanged($event)\" />\n } @else {\n <lib-required-inputs\n [value]=\"minInputs()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.minInputsChanged($event)\" />\n }\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>{{ responseLabel() }}</ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Where in the response the data lives. Walk the sample below and pick the values this\n field should read. The sample starts as the endpoint's saved Postman example \u2014 press\n <strong>Run API call</strong> (top right) to replace it with a live response built from\n this configuration.\n </p>\n <lib-api-value-access-rules\n [value]=\"$any(config()?.valueAccessRules) || []\"\n [formInputs]=\"$any(data.formInputs())\"\n [mapToData]=\"config()?._id\"\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [liveResponse]=\"liveResponse()\"\n [showSync]=\"false\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.rulesChanged($event)\" />\n </section>\n </mat-tab>\n\n @if (docsHtml(); as documentation) {\n <!-- Last tab, conditionally present \u2014 earlier tab indices stay stable. -->\n <mat-tab label=\"Docs\" [disabled]=\"!hasEndpoint()\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The endpoint's documentation, as written in your organisation's Postman collection.\n </p>\n <!-- docsHtmlOf() escapes everything first; Angular sanitizes the binding again. -->\n <div class=\"aed__docs\" [innerHTML]=\"documentation\"></div>\n </section>\n </mat-tab>\n }\n\n </mat-tab-group>\n\n @if (hasEndpoint()) {\n <!-- Postman's Send, for the builder: runs the CONFIGURED request to\n refresh the sample response the mapping tree walks. Rendered AFTER the\n tab group so it stacks above Material's tab header and stays clickable. -->\n <button\n mat-flat-button\n class=\"aed__run\"\n [disabled]=\"running()\"\n [matTooltip]=\"runTooltip()\"\n [attr.aria-busy]=\"running()\"\n (click)=\"runApiCall()\">\n @if (running()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon aria-hidden=\"true\">play_arrow</mat-icon>\n }\n {{ running() ? 'Running\u2026' : 'Run API call' }}\n </button>\n }\n </div>\n</mat-dialog-content>\n\n<footer class=\"aed__footer\">\n <div class=\"aed__status\">\n <div class=\"aed__chips\">\n @for (item of readiness(); track item.label) {\n <span class=\"aed__chip\" [attr.data-state]=\"item.state\">\n <!-- Glyph + colour + border style: state is never colour-only. -->\n {{ item.state === 'done' ? '\u2713 ' : item.state === 'pending' ? '\u2022 ' : '' }}{{ item.label }}\n </span>\n }\n </div>\n @if (hasEndpoint()) {\n @if (waitsFor().length > 0) {\n <p class=\"aed__waits\">\n Waits for {{ waitsFor().join(', ') }} before fetching \u2014 the same gate the form applies\n at fill time.\n </p>\n } @else {\n <p class=\"aed__waits\">Fetches as soon as the form loads \u2014 no live fields are bound.</p>\n }\n @if (runError(); as err) {\n <p class=\"aed__run-note aed__run-note--error\">Run failed: {{ err }}</p>\n } @else if (lastRunTime(); as time) {\n <p class=\"aed__run-note\">\n Fresh response \u00B7 {{ time }}@if (runUnresolved().length > 0) {\n \u2014 sent without live values: {{ runUnresolved().join(', ') }}\n }\n </p>\n }\n }\n </div>\n <button mat-flat-button mat-dialog-close class=\"aed__done\">Done</button>\n</footer>\n", styles: [":host{display:flex;flex-direction:column;min-height:0;height:100%}.aed__header{display:flex;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem .75rem}.aed__heading{flex:1;min-width:0}.aed__title{margin:0;font-size:1.125rem;font-weight:600;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.aed__subtitle{margin:.125rem 0 0;font-size:.6875rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--mat-sys-primary)}.aed__close{flex-shrink:0}.aed__request-bar{display:flex;align-items:center;gap:.875rem;margin:0 1.5rem .75rem;padding:.625rem .875rem;border:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 12%,transparent);border-radius:10px;background:color-mix(in srgb,var(--mat-sys-on-surface) 3%,transparent)}.aed__method{flex-shrink:0;font-size:.75rem;font-weight:800;letter-spacing:.06em}.aed__request-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.aed__request-name{font-size:.875rem;font-weight:600;color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aed__request-url{font-family:monospace;font-size:.75rem;color:var(--mat-sys-on-surface-variant);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aed__change{flex-shrink:0}.aed__steps{display:flex;flex-wrap:wrap;gap:1.5rem;margin:0 1.5rem .75rem;padding:.75rem .875rem;list-style:none;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent);border-radius:10px}.aed__step{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant)}.aed__step--active{color:var(--mat-sys-on-surface);font-weight:600}.aed__step-n{display:inline-flex;align-items:center;justify-content:center;width:1.375rem;height:1.375rem;border-radius:999px;font-size:.6875rem;font-weight:700;color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__step--active .aed__step-n{color:var(--mat-sys-on-primary);background:var(--mat-sys-primary)}.aed__content{flex:1;min-height:0;padding:0 1.5rem}.aed__tabs-shell{position:relative}.aed__run{position:absolute;top:.3rem;right:0;z-index:10}.aed__run:active:not(:disabled){transform:scale(.97);transition-duration:0s}.aed__run-note{margin:0;font-size:.75rem;color:var(--mat-sys-primary)}.aed__run-note--error{color:var(--mat-sys-error)}.aed__tabs{min-height:min(42vh,28rem)}.aed__pane{display:flex;flex-direction:column;gap:1rem;padding:1rem .25rem 1.25rem}.aed__hint{margin:0;font-size:.8125rem;line-height:1.5;color:var(--mat-sys-on-surface-variant);max-width:72ch}.aed__count{display:inline-flex;align-items:center;justify-content:center;min-width:1.125rem;height:1.125rem;margin-left:.375rem;padding:0 .25rem;border-radius:999px;font-size:.625rem;font-weight:700;color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 14%,transparent)}.aed__na{margin-left:.375rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.aed__mode{display:flex;gap:.5rem}.aed__mode-chip{border:none;border-radius:6px;padding:.35rem .9rem;font:inherit;font-size:.8125rem;color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 6%,transparent);cursor:pointer;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}.aed__mode-chip:focus-visible{outline:2px solid var(--mat-sys-primary);outline-offset:2px}.aed__mode-chip:disabled{cursor:default;opacity:.5}.aed__mode-chip--active{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent);font-weight:600}.aed__footer{display:flex;align-items:center;gap:1rem;padding:.875rem 1.5rem 1.25rem;border-top:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 10%,transparent)}.aed__status{flex:1;min-width:0;display:flex;flex-direction:column;gap:.375rem}.aed__chips{display:flex;flex-wrap:wrap;gap:.5rem}.aed__chip{border-radius:6px;padding:.2rem .6rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aed__chip[data-state=done]{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.aed__chip[data-state=pending]{color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__chip[data-state=skip]{color:var(--mat-sys-on-surface-variant);background:transparent;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent)}.aed__waits{margin:0;font-size:.75rem;color:var(--mat-sys-on-surface-variant)}.aed__done{flex-shrink:0}.aed__docs{margin:0;font-size:.8438rem;line-height:1.6;color:var(--mat-sys-on-surface);overflow-wrap:anywhere;max-width:76ch}.aed__docs ::ng-deep>:first-child{margin-top:0}.aed__docs ::ng-deep>:last-child{margin-bottom:0}.aed__docs ::ng-deep p,.aed__docs ::ng-deep ul,.aed__docs ::ng-deep ol,.aed__docs ::ng-deep blockquote{margin:0 0 1rem}.aed__docs ::ng-deep h3,.aed__docs ::ng-deep h4,.aed__docs ::ng-deep h5,.aed__docs ::ng-deep h6{margin:1.5rem 0 .75rem;font-weight:500;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.aed__docs ::ng-deep h3{font-size:1.0625rem}.aed__docs ::ng-deep h4{font-size:.9375rem}.aed__docs ::ng-deep h5,.aed__docs ::ng-deep h6{font-size:.8438rem}.aed__docs ::ng-deep ul,.aed__docs ::ng-deep ol{padding-left:1.25rem}.aed__docs ::ng-deep li{margin:.375rem 0}.aed__docs ::ng-deep strong{font-weight:600}.aed__docs ::ng-deep code{font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.9em;padding:.125rem .375rem;border-radius:.25rem;background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__docs ::ng-deep pre{margin:0 0 1rem;padding:1rem 1.25rem;border-radius:.5rem;background:color-mix(in srgb,var(--mat-sys-on-surface) 6%,transparent);overflow-x:auto}.aed__docs ::ng-deep pre code{padding:0;background:transparent}.aed__docs ::ng-deep blockquote{padding-left:1rem;color:var(--mat-sys-on-surface-variant);border-left:2px solid color-mix(in srgb,var(--mat-sys-on-surface) 20%,transparent)}.aed__docs ::ng-deep a{color:var(--mat-sys-primary);text-decoration:underline;text-underline-offset:.125em}.aed__docs ::ng-deep hr{margin:1.5rem 0;border:none}@media(prefers-reduced-motion:reduce){.aed__mode-chip,.aed__run{transition:none}.aed__run:active:not(:disabled){transform:none}}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i5.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i5.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i5.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: ApiValueAccessRulesComponent, selector: "lib-api-value-access-rules", inputs: ["disabled", "multipleBind", "errors", "value", "formInputs", "mapToData", "postmanCollectionConfig", "liveResponse", "showSync"], outputs: ["valueChanged", "reload"] }, { kind: "component", type: HeaderTemplateEditorComponent, selector: "lib-header-template-editor", inputs: ["kind", "value", "defaultTemplate", "formInputs", "disabled", "showHint", "errors", "id"], outputs: ["valueChanged"] }, { kind: "component", type: PayloadTemplateEditorComponent, selector: "lib-payload-template-editor", inputs: ["value", "defaultTemplate", "formInputs", "disabled", "showHint", "errors", "id"], outputs: ["valueChanged"] }, { kind: "component", type: RequiredInputsComponent, selector: "lib-required-inputs", inputs: ["value", "formInputs", "disabled", "errors", "id"], outputs: ["valueChanged"] }, { kind: "component", type: RestApiCallSetupComponent, selector: "lib-rest-api-call-setup", inputs: ["id", "postmanCollectionConfig", "httpGetDataFunction", "disabled", "value", "errors"], outputs: ["valueChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
193
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ApiEndpointConfigDialogComponent, isStandalone: true, selector: "lib-api-endpoint-config-dialog", host: { classAttribute: "lib-api-endpoint-config-dialog" }, ngImport: i0, template: "<header class=\"aed__header\">\n <div class=\"aed__heading\">\n <h2 class=\"aed__title\">API call setup</h2>\n <p class=\"aed__subtitle\">{{ kindLabel() }}</p>\n </div>\n <button\n mat-icon-button\n mat-dialog-close\n class=\"aed__close\"\n aria-label=\"Close API call setup\">\n <mat-icon aria-hidden=\"true\">close</mat-icon>\n </button>\n</header>\n\n@if (hasEndpoint()) {\n <!-- Request bar \u2014 the Postman-style anchor: method, endpoint, change affordance. -->\n <div class=\"aed__request-bar\">\n <span class=\"aed__method\" [style.color]=\"methodColor()\">{{ config()?.httpMethod }}</span>\n <div class=\"aed__request-id\">\n <span class=\"aed__request-name\">{{ config()?.name }}</span>\n <span class=\"aed__request-url\" [matTooltip]=\"config()?.httpEndPoint ?? ''\">\n {{ config()?.httpEndPoint }}\n </span>\n </div>\n <button\n mat-stroked-button\n class=\"aed__change\"\n [disabled]=\"data.disabled()\"\n (click)=\"selectedTab.set(Tab.Endpoint)\">\n <mat-icon aria-hidden=\"true\">swap_horiz</mat-icon>\n Change endpoint\n </button>\n </div>\n} @else {\n <!-- First-run guide: the whole flow in one glance. -->\n <ol class=\"aed__steps\" aria-label=\"Setup steps\">\n <li class=\"aed__step aed__step--active\"><span class=\"aed__step-n\">1</span>Pick an endpoint</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">2</span>Bind request inputs</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">3</span>Map the response</li>\n </ol>\n}\n\n<mat-dialog-content class=\"aed__content\">\n <div class=\"aed__tabs-shell\">\n <mat-tab-group\n class=\"aed__tabs\"\n [mat-stretch-tabs]=\"false\"\n animationDuration=\"150ms\"\n [selectedIndex]=\"selectedTab()\"\n (selectedIndexChange)=\"selectedTab.set($event)\">\n\n <mat-tab label=\"Endpoint\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Choose which API this field calls. Endpoints come from your organisation's Postman\n collection \u2014 pick one and its method, URL, parameters and headers are captured for you.\n </p>\n <lib-rest-api-call-setup\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [httpGetDataFunction]=\"data.httpGetDataFunction()\"\n [disabled]=\"data.disabled()\"\n [value]=\"config()\"\n [errors]=\"data.errors() || []\"\n (valueChanged)=\"onEndpointChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Params\n @if (paramCount() > 0) {\n <span class=\"aed__count\">{{ paramCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Query parameters sent on the URL \u2014 one <code>\"name\": \"value\"</code> pair each. Type\n <code>$</code> to bind a value to a live form field; the request then waits for that\n field at fill time. Everything else is sent as a fixed value.\n </p>\n <lib-header-template-editor\n kind=\"query\"\n [value]=\"config()?.queryTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"queryDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.queryChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Headers\n @if (headerCount() > 0) {\n <span class=\"aed__count\">{{ headerCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Headers sent with the request \u2014 the endpoint's own headers are prefilled. Type\n <code>$</code> to swap any value for a live form field; everything else is sent as a\n fixed value.\n </p>\n <lib-header-template-editor\n [value]=\"config()?.headerTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"headerDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.headersChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint() || !sendsBody()\">\n <ng-template mat-tab-label>\n Body\n @if (hasEndpoint() && !sendsBody()) {\n <span class=\"aed__na\">n/a</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The request body, built from live form values. Map fields one by one, or author a JSON\n template when the payload is nested (type <code>$</code> to insert a field) \u2014\n switching modes never discards the other. <strong>Run API call</strong> sends exactly\n this body, with defaults filled in.\n </p>\n <div class=\"aed__mode\" role=\"group\" aria-label=\"Request body mechanism\">\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'mappedInputs'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('mappedInputs')\">\n Map inputs\n </button>\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'template'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('template')\">\n JSON template\n </button>\n </div>\n\n @if (bodyMode() === 'template') {\n <lib-payload-template-editor\n [value]=\"config()?.backEndConfig?.payloadTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"payloadDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.payloadChanged($event)\" />\n } @else {\n <lib-required-inputs\n [value]=\"minInputs()\"\n [offerSearch]=\"data.kind === 'options'\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.minInputsChanged($event)\" />\n }\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>{{ responseLabel() }}</ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Where in the response the data lives. Walk the sample below and pick the values this\n field should read. The sample starts as the endpoint's saved Postman example \u2014 press\n <strong>Run API call</strong> (top right) to replace it with a live response built from\n this configuration.\n </p>\n <lib-api-value-access-rules\n [value]=\"$any(config()?.valueAccessRules) || []\"\n [formInputs]=\"$any(data.formInputs())\"\n [mapToData]=\"config()?._id\"\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [liveResponse]=\"liveResponse()\"\n [showSync]=\"false\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.rulesChanged($event)\" />\n </section>\n </mat-tab>\n\n @if (docsHtml(); as documentation) {\n <!-- Last tab, conditionally present \u2014 earlier tab indices stay stable. -->\n <mat-tab label=\"Docs\" [disabled]=\"!hasEndpoint()\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The endpoint's documentation, as written in your organisation's Postman collection.\n </p>\n <!-- docsHtmlOf() escapes everything first; Angular sanitizes the binding again. -->\n <div class=\"aed__docs\" [innerHTML]=\"documentation\"></div>\n </section>\n </mat-tab>\n }\n\n </mat-tab-group>\n\n @if (hasEndpoint()) {\n <!-- Postman's Send, for the builder: runs the CONFIGURED request to\n refresh the sample response the mapping tree walks. Rendered AFTER the\n tab group so it stacks above Material's tab header and stays clickable. -->\n <button\n mat-flat-button\n class=\"aed__run\"\n [disabled]=\"running()\"\n [matTooltip]=\"runTooltip()\"\n [attr.aria-busy]=\"running()\"\n (click)=\"runApiCall()\">\n @if (running()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon aria-hidden=\"true\">play_arrow</mat-icon>\n }\n {{ running() ? 'Running\u2026' : 'Run API call' }}\n </button>\n }\n </div>\n</mat-dialog-content>\n\n<footer class=\"aed__footer\">\n <div class=\"aed__status\">\n <div class=\"aed__chips\">\n @for (item of readiness(); track item.label) {\n <span class=\"aed__chip\" [attr.data-state]=\"item.state\">\n <!-- Glyph + colour + border style: state is never colour-only. -->\n {{ item.state === 'done' ? '\u2713 ' : item.state === 'pending' ? '\u2022 ' : '' }}{{ item.label }}\n </span>\n }\n </div>\n @if (hasEndpoint()) {\n @if (waitsFor().length > 0) {\n <p class=\"aed__waits\">\n Waits for {{ waitsFor().join(', ') }} before fetching \u2014 the same gate the form applies\n at fill time.\n </p>\n } @else {\n <p class=\"aed__waits\">Fetches as soon as the form loads \u2014 no live fields are bound.</p>\n }\n @if (runError(); as err) {\n <p class=\"aed__run-note aed__run-note--error\">Run failed: {{ err }}</p>\n } @else if (lastRunTime(); as time) {\n <p class=\"aed__run-note\">\n Fresh response \u00B7 {{ time }}@if (runUnresolved().length > 0) {\n \u2014 sent without live values: {{ runUnresolved().join(', ') }}\n }\n </p>\n }\n }\n </div>\n <button mat-flat-button mat-dialog-close class=\"aed__done\">Done</button>\n</footer>\n", styles: [":host{display:flex;flex-direction:column;min-height:0;height:100%}.aed__header{display:flex;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem .75rem}.aed__heading{flex:1;min-width:0}.aed__title{margin:0;font-size:1.125rem;font-weight:600;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.aed__subtitle{margin:.125rem 0 0;font-size:.6875rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--mat-sys-primary)}.aed__close{flex-shrink:0}.aed__request-bar{display:flex;align-items:center;gap:.875rem;margin:0 1.5rem .75rem;padding:.625rem .875rem;border:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 12%,transparent);border-radius:10px;background:color-mix(in srgb,var(--mat-sys-on-surface) 3%,transparent)}.aed__method{flex-shrink:0;font-size:.75rem;font-weight:800;letter-spacing:.06em}.aed__request-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.aed__request-name{font-size:.875rem;font-weight:600;color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aed__request-url{font-family:monospace;font-size:.75rem;color:var(--mat-sys-on-surface-variant);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aed__change{flex-shrink:0}.aed__steps{display:flex;flex-wrap:wrap;gap:1.5rem;margin:0 1.5rem .75rem;padding:.75rem .875rem;list-style:none;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent);border-radius:10px}.aed__step{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant)}.aed__step--active{color:var(--mat-sys-on-surface);font-weight:600}.aed__step-n{display:inline-flex;align-items:center;justify-content:center;width:1.375rem;height:1.375rem;border-radius:999px;font-size:.6875rem;font-weight:700;color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__step--active .aed__step-n{color:var(--mat-sys-on-primary);background:var(--mat-sys-primary)}.aed__content{flex:1;min-height:0;padding:0 1.5rem}.aed__tabs-shell{position:relative}.aed__run{position:absolute;top:.3rem;right:0;z-index:10}.aed__run:active:not(:disabled){transform:scale(.97);transition-duration:0s}.aed__run-note{margin:0;font-size:.75rem;color:var(--mat-sys-primary)}.aed__run-note--error{color:var(--mat-sys-error)}.aed__tabs{min-height:min(42vh,28rem)}.aed__pane{display:flex;flex-direction:column;gap:1rem;padding:1rem .25rem 1.25rem}.aed__hint{margin:0;font-size:.8125rem;line-height:1.5;color:var(--mat-sys-on-surface-variant);max-width:72ch}.aed__count{display:inline-flex;align-items:center;justify-content:center;min-width:1.125rem;height:1.125rem;margin-left:.375rem;padding:0 .25rem;border-radius:999px;font-size:.625rem;font-weight:700;color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 14%,transparent)}.aed__na{margin-left:.375rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.aed__mode{display:flex;gap:.5rem}.aed__mode-chip{border:none;border-radius:6px;padding:.35rem .9rem;font:inherit;font-size:.8125rem;color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 6%,transparent);cursor:pointer;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}.aed__mode-chip:focus-visible{outline:2px solid var(--mat-sys-primary);outline-offset:2px}.aed__mode-chip:disabled{cursor:default;opacity:.5}.aed__mode-chip--active{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent);font-weight:600}.aed__footer{display:flex;align-items:center;gap:1rem;padding:.875rem 1.5rem 1.25rem;border-top:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 10%,transparent)}.aed__status{flex:1;min-width:0;display:flex;flex-direction:column;gap:.375rem}.aed__chips{display:flex;flex-wrap:wrap;gap:.5rem}.aed__chip{border-radius:6px;padding:.2rem .6rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aed__chip[data-state=done]{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.aed__chip[data-state=pending]{color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__chip[data-state=skip]{color:var(--mat-sys-on-surface-variant);background:transparent;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent)}.aed__waits{margin:0;font-size:.75rem;color:var(--mat-sys-on-surface-variant)}.aed__done{flex-shrink:0}.aed__docs{margin:0;font-size:.8438rem;line-height:1.6;color:var(--mat-sys-on-surface);overflow-wrap:anywhere;max-width:76ch}.aed__docs ::ng-deep>:first-child{margin-top:0}.aed__docs ::ng-deep>:last-child{margin-bottom:0}.aed__docs ::ng-deep p,.aed__docs ::ng-deep ul,.aed__docs ::ng-deep ol,.aed__docs ::ng-deep blockquote{margin:0 0 1rem}.aed__docs ::ng-deep h3,.aed__docs ::ng-deep h4,.aed__docs ::ng-deep h5,.aed__docs ::ng-deep h6{margin:1.5rem 0 .75rem;font-weight:500;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.aed__docs ::ng-deep h3{font-size:1.0625rem}.aed__docs ::ng-deep h4{font-size:.9375rem}.aed__docs ::ng-deep h5,.aed__docs ::ng-deep h6{font-size:.8438rem}.aed__docs ::ng-deep ul,.aed__docs ::ng-deep ol{padding-left:1.25rem}.aed__docs ::ng-deep li{margin:.375rem 0}.aed__docs ::ng-deep strong{font-weight:600}.aed__docs ::ng-deep code{font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.9em;padding:.125rem .375rem;border-radius:.25rem;background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__docs ::ng-deep pre{margin:0 0 1rem;padding:1rem 1.25rem;border-radius:.5rem;background:color-mix(in srgb,var(--mat-sys-on-surface) 6%,transparent);overflow-x:auto}.aed__docs ::ng-deep pre code{padding:0;background:transparent}.aed__docs ::ng-deep blockquote{padding-left:1rem;color:var(--mat-sys-on-surface-variant);border-left:2px solid color-mix(in srgb,var(--mat-sys-on-surface) 20%,transparent)}.aed__docs ::ng-deep a{color:var(--mat-sys-primary);text-decoration:underline;text-underline-offset:.125em}.aed__docs ::ng-deep hr{margin:1.5rem 0;border:none}@media(prefers-reduced-motion:reduce){.aed__mode-chip,.aed__run{transition:none}.aed__run:active:not(:disabled){transform:none}}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i5.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i5.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i5.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: ApiValueAccessRulesComponent, selector: "lib-api-value-access-rules", inputs: ["disabled", "multipleBind", "errors", "value", "formInputs", "mapToData", "postmanCollectionConfig", "liveResponse", "showSync"], outputs: ["valueChanged", "reload"] }, { kind: "component", type: HeaderTemplateEditorComponent, selector: "lib-header-template-editor", inputs: ["kind", "value", "defaultTemplate", "formInputs", "disabled", "showHint", "offerSearch", "errors", "id"], outputs: ["valueChanged"] }, { kind: "component", type: PayloadTemplateEditorComponent, selector: "lib-payload-template-editor", inputs: ["value", "defaultTemplate", "formInputs", "disabled", "showHint", "offerSearch", "errors", "id"], outputs: ["valueChanged"] }, { kind: "component", type: RequiredInputsComponent, selector: "lib-required-inputs", inputs: ["value", "formInputs", "disabled", "offerSearch", "errors", "id"], outputs: ["valueChanged"] }, { kind: "component", type: RestApiCallSetupComponent, selector: "lib-rest-api-call-setup", inputs: ["id", "postmanCollectionConfig", "httpGetDataFunction", "disabled", "value", "errors"], outputs: ["valueChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
194
194
|
}
|
|
195
195
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ApiEndpointConfigDialogComponent, decorators: [{
|
|
196
196
|
type: Component,
|
|
@@ -206,7 +206,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
206
206
|
PayloadTemplateEditorComponent,
|
|
207
207
|
RequiredInputsComponent,
|
|
208
208
|
RestApiCallSetupComponent,
|
|
209
|
-
], template: "<header class=\"aed__header\">\n <div class=\"aed__heading\">\n <h2 class=\"aed__title\">API call setup</h2>\n <p class=\"aed__subtitle\">{{ kindLabel() }}</p>\n </div>\n <button\n mat-icon-button\n mat-dialog-close\n class=\"aed__close\"\n aria-label=\"Close API call setup\">\n <mat-icon aria-hidden=\"true\">close</mat-icon>\n </button>\n</header>\n\n@if (hasEndpoint()) {\n <!-- Request bar \u2014 the Postman-style anchor: method, endpoint, change affordance. -->\n <div class=\"aed__request-bar\">\n <span class=\"aed__method\" [style.color]=\"methodColor()\">{{ config()?.httpMethod }}</span>\n <div class=\"aed__request-id\">\n <span class=\"aed__request-name\">{{ config()?.name }}</span>\n <span class=\"aed__request-url\" [matTooltip]=\"config()?.httpEndPoint ?? ''\">\n {{ config()?.httpEndPoint }}\n </span>\n </div>\n <button\n mat-stroked-button\n class=\"aed__change\"\n [disabled]=\"data.disabled()\"\n (click)=\"selectedTab.set(Tab.Endpoint)\">\n <mat-icon aria-hidden=\"true\">swap_horiz</mat-icon>\n Change endpoint\n </button>\n </div>\n} @else {\n <!-- First-run guide: the whole flow in one glance. -->\n <ol class=\"aed__steps\" aria-label=\"Setup steps\">\n <li class=\"aed__step aed__step--active\"><span class=\"aed__step-n\">1</span>Pick an endpoint</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">2</span>Bind request inputs</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">3</span>Map the response</li>\n </ol>\n}\n\n<mat-dialog-content class=\"aed__content\">\n <div class=\"aed__tabs-shell\">\n <mat-tab-group\n class=\"aed__tabs\"\n [mat-stretch-tabs]=\"false\"\n animationDuration=\"150ms\"\n [selectedIndex]=\"selectedTab()\"\n (selectedIndexChange)=\"selectedTab.set($event)\">\n\n <mat-tab label=\"Endpoint\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Choose which API this field calls. Endpoints come from your organisation's Postman\n collection \u2014 pick one and its method, URL, parameters and headers are captured for you.\n </p>\n <lib-rest-api-call-setup\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [httpGetDataFunction]=\"data.httpGetDataFunction()\"\n [disabled]=\"data.disabled()\"\n [value]=\"config()\"\n [errors]=\"data.errors() || []\"\n (valueChanged)=\"onEndpointChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Params\n @if (paramCount() > 0) {\n <span class=\"aed__count\">{{ paramCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Query parameters sent on the URL \u2014 one <code>\"name\": \"value\"</code> pair each. Type\n <code>$</code> to bind a value to a live form field; the request then waits for that\n field at fill time. Everything else is sent as a fixed value.\n </p>\n <lib-header-template-editor\n kind=\"query\"\n [value]=\"config()?.queryTemplate\"\n [defaultTemplate]=\"queryDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.queryChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Headers\n @if (headerCount() > 0) {\n <span class=\"aed__count\">{{ headerCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Headers sent with the request \u2014 the endpoint's own headers are prefilled. Type\n <code>$</code> to swap any value for a live form field; everything else is sent as a\n fixed value.\n </p>\n <lib-header-template-editor\n [value]=\"config()?.headerTemplate\"\n [defaultTemplate]=\"headerDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.headersChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint() || !sendsBody()\">\n <ng-template mat-tab-label>\n Body\n @if (hasEndpoint() && !sendsBody()) {\n <span class=\"aed__na\">n/a</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The request body, built from live form values. Map fields one by one, or author a JSON\n template when the payload is nested (type <code>$</code> to insert a field) \u2014\n switching modes never discards the other. <strong>Run API call</strong> sends exactly\n this body, with defaults filled in.\n </p>\n <div class=\"aed__mode\" role=\"group\" aria-label=\"Request body mechanism\">\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'mappedInputs'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('mappedInputs')\">\n Map inputs\n </button>\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'template'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('template')\">\n JSON template\n </button>\n </div>\n\n @if (bodyMode() === 'template') {\n <lib-payload-template-editor\n [value]=\"config()?.backEndConfig?.payloadTemplate\"\n [defaultTemplate]=\"payloadDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.payloadChanged($event)\" />\n } @else {\n <lib-required-inputs\n [value]=\"minInputs()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.minInputsChanged($event)\" />\n }\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>{{ responseLabel() }}</ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Where in the response the data lives. Walk the sample below and pick the values this\n field should read. The sample starts as the endpoint's saved Postman example \u2014 press\n <strong>Run API call</strong> (top right) to replace it with a live response built from\n this configuration.\n </p>\n <lib-api-value-access-rules\n [value]=\"$any(config()?.valueAccessRules) || []\"\n [formInputs]=\"$any(data.formInputs())\"\n [mapToData]=\"config()?._id\"\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [liveResponse]=\"liveResponse()\"\n [showSync]=\"false\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.rulesChanged($event)\" />\n </section>\n </mat-tab>\n\n @if (docsHtml(); as documentation) {\n <!-- Last tab, conditionally present \u2014 earlier tab indices stay stable. -->\n <mat-tab label=\"Docs\" [disabled]=\"!hasEndpoint()\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The endpoint's documentation, as written in your organisation's Postman collection.\n </p>\n <!-- docsHtmlOf() escapes everything first; Angular sanitizes the binding again. -->\n <div class=\"aed__docs\" [innerHTML]=\"documentation\"></div>\n </section>\n </mat-tab>\n }\n\n </mat-tab-group>\n\n @if (hasEndpoint()) {\n <!-- Postman's Send, for the builder: runs the CONFIGURED request to\n refresh the sample response the mapping tree walks. Rendered AFTER the\n tab group so it stacks above Material's tab header and stays clickable. -->\n <button\n mat-flat-button\n class=\"aed__run\"\n [disabled]=\"running()\"\n [matTooltip]=\"runTooltip()\"\n [attr.aria-busy]=\"running()\"\n (click)=\"runApiCall()\">\n @if (running()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon aria-hidden=\"true\">play_arrow</mat-icon>\n }\n {{ running() ? 'Running\u2026' : 'Run API call' }}\n </button>\n }\n </div>\n</mat-dialog-content>\n\n<footer class=\"aed__footer\">\n <div class=\"aed__status\">\n <div class=\"aed__chips\">\n @for (item of readiness(); track item.label) {\n <span class=\"aed__chip\" [attr.data-state]=\"item.state\">\n <!-- Glyph + colour + border style: state is never colour-only. -->\n {{ item.state === 'done' ? '\u2713 ' : item.state === 'pending' ? '\u2022 ' : '' }}{{ item.label }}\n </span>\n }\n </div>\n @if (hasEndpoint()) {\n @if (waitsFor().length > 0) {\n <p class=\"aed__waits\">\n Waits for {{ waitsFor().join(', ') }} before fetching \u2014 the same gate the form applies\n at fill time.\n </p>\n } @else {\n <p class=\"aed__waits\">Fetches as soon as the form loads \u2014 no live fields are bound.</p>\n }\n @if (runError(); as err) {\n <p class=\"aed__run-note aed__run-note--error\">Run failed: {{ err }}</p>\n } @else if (lastRunTime(); as time) {\n <p class=\"aed__run-note\">\n Fresh response \u00B7 {{ time }}@if (runUnresolved().length > 0) {\n \u2014 sent without live values: {{ runUnresolved().join(', ') }}\n }\n </p>\n }\n }\n </div>\n <button mat-flat-button mat-dialog-close class=\"aed__done\">Done</button>\n</footer>\n", styles: [":host{display:flex;flex-direction:column;min-height:0;height:100%}.aed__header{display:flex;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem .75rem}.aed__heading{flex:1;min-width:0}.aed__title{margin:0;font-size:1.125rem;font-weight:600;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.aed__subtitle{margin:.125rem 0 0;font-size:.6875rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--mat-sys-primary)}.aed__close{flex-shrink:0}.aed__request-bar{display:flex;align-items:center;gap:.875rem;margin:0 1.5rem .75rem;padding:.625rem .875rem;border:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 12%,transparent);border-radius:10px;background:color-mix(in srgb,var(--mat-sys-on-surface) 3%,transparent)}.aed__method{flex-shrink:0;font-size:.75rem;font-weight:800;letter-spacing:.06em}.aed__request-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.aed__request-name{font-size:.875rem;font-weight:600;color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aed__request-url{font-family:monospace;font-size:.75rem;color:var(--mat-sys-on-surface-variant);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aed__change{flex-shrink:0}.aed__steps{display:flex;flex-wrap:wrap;gap:1.5rem;margin:0 1.5rem .75rem;padding:.75rem .875rem;list-style:none;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent);border-radius:10px}.aed__step{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant)}.aed__step--active{color:var(--mat-sys-on-surface);font-weight:600}.aed__step-n{display:inline-flex;align-items:center;justify-content:center;width:1.375rem;height:1.375rem;border-radius:999px;font-size:.6875rem;font-weight:700;color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__step--active .aed__step-n{color:var(--mat-sys-on-primary);background:var(--mat-sys-primary)}.aed__content{flex:1;min-height:0;padding:0 1.5rem}.aed__tabs-shell{position:relative}.aed__run{position:absolute;top:.3rem;right:0;z-index:10}.aed__run:active:not(:disabled){transform:scale(.97);transition-duration:0s}.aed__run-note{margin:0;font-size:.75rem;color:var(--mat-sys-primary)}.aed__run-note--error{color:var(--mat-sys-error)}.aed__tabs{min-height:min(42vh,28rem)}.aed__pane{display:flex;flex-direction:column;gap:1rem;padding:1rem .25rem 1.25rem}.aed__hint{margin:0;font-size:.8125rem;line-height:1.5;color:var(--mat-sys-on-surface-variant);max-width:72ch}.aed__count{display:inline-flex;align-items:center;justify-content:center;min-width:1.125rem;height:1.125rem;margin-left:.375rem;padding:0 .25rem;border-radius:999px;font-size:.625rem;font-weight:700;color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 14%,transparent)}.aed__na{margin-left:.375rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.aed__mode{display:flex;gap:.5rem}.aed__mode-chip{border:none;border-radius:6px;padding:.35rem .9rem;font:inherit;font-size:.8125rem;color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 6%,transparent);cursor:pointer;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}.aed__mode-chip:focus-visible{outline:2px solid var(--mat-sys-primary);outline-offset:2px}.aed__mode-chip:disabled{cursor:default;opacity:.5}.aed__mode-chip--active{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent);font-weight:600}.aed__footer{display:flex;align-items:center;gap:1rem;padding:.875rem 1.5rem 1.25rem;border-top:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 10%,transparent)}.aed__status{flex:1;min-width:0;display:flex;flex-direction:column;gap:.375rem}.aed__chips{display:flex;flex-wrap:wrap;gap:.5rem}.aed__chip{border-radius:6px;padding:.2rem .6rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aed__chip[data-state=done]{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.aed__chip[data-state=pending]{color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__chip[data-state=skip]{color:var(--mat-sys-on-surface-variant);background:transparent;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent)}.aed__waits{margin:0;font-size:.75rem;color:var(--mat-sys-on-surface-variant)}.aed__done{flex-shrink:0}.aed__docs{margin:0;font-size:.8438rem;line-height:1.6;color:var(--mat-sys-on-surface);overflow-wrap:anywhere;max-width:76ch}.aed__docs ::ng-deep>:first-child{margin-top:0}.aed__docs ::ng-deep>:last-child{margin-bottom:0}.aed__docs ::ng-deep p,.aed__docs ::ng-deep ul,.aed__docs ::ng-deep ol,.aed__docs ::ng-deep blockquote{margin:0 0 1rem}.aed__docs ::ng-deep h3,.aed__docs ::ng-deep h4,.aed__docs ::ng-deep h5,.aed__docs ::ng-deep h6{margin:1.5rem 0 .75rem;font-weight:500;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.aed__docs ::ng-deep h3{font-size:1.0625rem}.aed__docs ::ng-deep h4{font-size:.9375rem}.aed__docs ::ng-deep h5,.aed__docs ::ng-deep h6{font-size:.8438rem}.aed__docs ::ng-deep ul,.aed__docs ::ng-deep ol{padding-left:1.25rem}.aed__docs ::ng-deep li{margin:.375rem 0}.aed__docs ::ng-deep strong{font-weight:600}.aed__docs ::ng-deep code{font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.9em;padding:.125rem .375rem;border-radius:.25rem;background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__docs ::ng-deep pre{margin:0 0 1rem;padding:1rem 1.25rem;border-radius:.5rem;background:color-mix(in srgb,var(--mat-sys-on-surface) 6%,transparent);overflow-x:auto}.aed__docs ::ng-deep pre code{padding:0;background:transparent}.aed__docs ::ng-deep blockquote{padding-left:1rem;color:var(--mat-sys-on-surface-variant);border-left:2px solid color-mix(in srgb,var(--mat-sys-on-surface) 20%,transparent)}.aed__docs ::ng-deep a{color:var(--mat-sys-primary);text-decoration:underline;text-underline-offset:.125em}.aed__docs ::ng-deep hr{margin:1.5rem 0;border:none}@media(prefers-reduced-motion:reduce){.aed__mode-chip,.aed__run{transition:none}.aed__run:active:not(:disabled){transform:none}}\n"] }]
|
|
209
|
+
], template: "<header class=\"aed__header\">\n <div class=\"aed__heading\">\n <h2 class=\"aed__title\">API call setup</h2>\n <p class=\"aed__subtitle\">{{ kindLabel() }}</p>\n </div>\n <button\n mat-icon-button\n mat-dialog-close\n class=\"aed__close\"\n aria-label=\"Close API call setup\">\n <mat-icon aria-hidden=\"true\">close</mat-icon>\n </button>\n</header>\n\n@if (hasEndpoint()) {\n <!-- Request bar \u2014 the Postman-style anchor: method, endpoint, change affordance. -->\n <div class=\"aed__request-bar\">\n <span class=\"aed__method\" [style.color]=\"methodColor()\">{{ config()?.httpMethod }}</span>\n <div class=\"aed__request-id\">\n <span class=\"aed__request-name\">{{ config()?.name }}</span>\n <span class=\"aed__request-url\" [matTooltip]=\"config()?.httpEndPoint ?? ''\">\n {{ config()?.httpEndPoint }}\n </span>\n </div>\n <button\n mat-stroked-button\n class=\"aed__change\"\n [disabled]=\"data.disabled()\"\n (click)=\"selectedTab.set(Tab.Endpoint)\">\n <mat-icon aria-hidden=\"true\">swap_horiz</mat-icon>\n Change endpoint\n </button>\n </div>\n} @else {\n <!-- First-run guide: the whole flow in one glance. -->\n <ol class=\"aed__steps\" aria-label=\"Setup steps\">\n <li class=\"aed__step aed__step--active\"><span class=\"aed__step-n\">1</span>Pick an endpoint</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">2</span>Bind request inputs</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">3</span>Map the response</li>\n </ol>\n}\n\n<mat-dialog-content class=\"aed__content\">\n <div class=\"aed__tabs-shell\">\n <mat-tab-group\n class=\"aed__tabs\"\n [mat-stretch-tabs]=\"false\"\n animationDuration=\"150ms\"\n [selectedIndex]=\"selectedTab()\"\n (selectedIndexChange)=\"selectedTab.set($event)\">\n\n <mat-tab label=\"Endpoint\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Choose which API this field calls. Endpoints come from your organisation's Postman\n collection \u2014 pick one and its method, URL, parameters and headers are captured for you.\n </p>\n <lib-rest-api-call-setup\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [httpGetDataFunction]=\"data.httpGetDataFunction()\"\n [disabled]=\"data.disabled()\"\n [value]=\"config()\"\n [errors]=\"data.errors() || []\"\n (valueChanged)=\"onEndpointChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Params\n @if (paramCount() > 0) {\n <span class=\"aed__count\">{{ paramCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Query parameters sent on the URL \u2014 one <code>\"name\": \"value\"</code> pair each. Type\n <code>$</code> to bind a value to a live form field; the request then waits for that\n field at fill time. Everything else is sent as a fixed value.\n </p>\n <lib-header-template-editor\n kind=\"query\"\n [value]=\"config()?.queryTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"queryDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.queryChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Headers\n @if (headerCount() > 0) {\n <span class=\"aed__count\">{{ headerCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Headers sent with the request \u2014 the endpoint's own headers are prefilled. Type\n <code>$</code> to swap any value for a live form field; everything else is sent as a\n fixed value.\n </p>\n <lib-header-template-editor\n [value]=\"config()?.headerTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"headerDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.headersChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint() || !sendsBody()\">\n <ng-template mat-tab-label>\n Body\n @if (hasEndpoint() && !sendsBody()) {\n <span class=\"aed__na\">n/a</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The request body, built from live form values. Map fields one by one, or author a JSON\n template when the payload is nested (type <code>$</code> to insert a field) \u2014\n switching modes never discards the other. <strong>Run API call</strong> sends exactly\n this body, with defaults filled in.\n </p>\n <div class=\"aed__mode\" role=\"group\" aria-label=\"Request body mechanism\">\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'mappedInputs'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('mappedInputs')\">\n Map inputs\n </button>\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'template'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('template')\">\n JSON template\n </button>\n </div>\n\n @if (bodyMode() === 'template') {\n <lib-payload-template-editor\n [value]=\"config()?.backEndConfig?.payloadTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"payloadDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.payloadChanged($event)\" />\n } @else {\n <lib-required-inputs\n [value]=\"minInputs()\"\n [offerSearch]=\"data.kind === 'options'\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.minInputsChanged($event)\" />\n }\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>{{ responseLabel() }}</ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Where in the response the data lives. Walk the sample below and pick the values this\n field should read. The sample starts as the endpoint's saved Postman example \u2014 press\n <strong>Run API call</strong> (top right) to replace it with a live response built from\n this configuration.\n </p>\n <lib-api-value-access-rules\n [value]=\"$any(config()?.valueAccessRules) || []\"\n [formInputs]=\"$any(data.formInputs())\"\n [mapToData]=\"config()?._id\"\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [liveResponse]=\"liveResponse()\"\n [showSync]=\"false\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.rulesChanged($event)\" />\n </section>\n </mat-tab>\n\n @if (docsHtml(); as documentation) {\n <!-- Last tab, conditionally present \u2014 earlier tab indices stay stable. -->\n <mat-tab label=\"Docs\" [disabled]=\"!hasEndpoint()\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The endpoint's documentation, as written in your organisation's Postman collection.\n </p>\n <!-- docsHtmlOf() escapes everything first; Angular sanitizes the binding again. -->\n <div class=\"aed__docs\" [innerHTML]=\"documentation\"></div>\n </section>\n </mat-tab>\n }\n\n </mat-tab-group>\n\n @if (hasEndpoint()) {\n <!-- Postman's Send, for the builder: runs the CONFIGURED request to\n refresh the sample response the mapping tree walks. Rendered AFTER the\n tab group so it stacks above Material's tab header and stays clickable. -->\n <button\n mat-flat-button\n class=\"aed__run\"\n [disabled]=\"running()\"\n [matTooltip]=\"runTooltip()\"\n [attr.aria-busy]=\"running()\"\n (click)=\"runApiCall()\">\n @if (running()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon aria-hidden=\"true\">play_arrow</mat-icon>\n }\n {{ running() ? 'Running\u2026' : 'Run API call' }}\n </button>\n }\n </div>\n</mat-dialog-content>\n\n<footer class=\"aed__footer\">\n <div class=\"aed__status\">\n <div class=\"aed__chips\">\n @for (item of readiness(); track item.label) {\n <span class=\"aed__chip\" [attr.data-state]=\"item.state\">\n <!-- Glyph + colour + border style: state is never colour-only. -->\n {{ item.state === 'done' ? '\u2713 ' : item.state === 'pending' ? '\u2022 ' : '' }}{{ item.label }}\n </span>\n }\n </div>\n @if (hasEndpoint()) {\n @if (waitsFor().length > 0) {\n <p class=\"aed__waits\">\n Waits for {{ waitsFor().join(', ') }} before fetching \u2014 the same gate the form applies\n at fill time.\n </p>\n } @else {\n <p class=\"aed__waits\">Fetches as soon as the form loads \u2014 no live fields are bound.</p>\n }\n @if (runError(); as err) {\n <p class=\"aed__run-note aed__run-note--error\">Run failed: {{ err }}</p>\n } @else if (lastRunTime(); as time) {\n <p class=\"aed__run-note\">\n Fresh response \u00B7 {{ time }}@if (runUnresolved().length > 0) {\n \u2014 sent without live values: {{ runUnresolved().join(', ') }}\n }\n </p>\n }\n }\n </div>\n <button mat-flat-button mat-dialog-close class=\"aed__done\">Done</button>\n</footer>\n", styles: [":host{display:flex;flex-direction:column;min-height:0;height:100%}.aed__header{display:flex;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem .75rem}.aed__heading{flex:1;min-width:0}.aed__title{margin:0;font-size:1.125rem;font-weight:600;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.aed__subtitle{margin:.125rem 0 0;font-size:.6875rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--mat-sys-primary)}.aed__close{flex-shrink:0}.aed__request-bar{display:flex;align-items:center;gap:.875rem;margin:0 1.5rem .75rem;padding:.625rem .875rem;border:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 12%,transparent);border-radius:10px;background:color-mix(in srgb,var(--mat-sys-on-surface) 3%,transparent)}.aed__method{flex-shrink:0;font-size:.75rem;font-weight:800;letter-spacing:.06em}.aed__request-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.aed__request-name{font-size:.875rem;font-weight:600;color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aed__request-url{font-family:monospace;font-size:.75rem;color:var(--mat-sys-on-surface-variant);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aed__change{flex-shrink:0}.aed__steps{display:flex;flex-wrap:wrap;gap:1.5rem;margin:0 1.5rem .75rem;padding:.75rem .875rem;list-style:none;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent);border-radius:10px}.aed__step{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant)}.aed__step--active{color:var(--mat-sys-on-surface);font-weight:600}.aed__step-n{display:inline-flex;align-items:center;justify-content:center;width:1.375rem;height:1.375rem;border-radius:999px;font-size:.6875rem;font-weight:700;color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__step--active .aed__step-n{color:var(--mat-sys-on-primary);background:var(--mat-sys-primary)}.aed__content{flex:1;min-height:0;padding:0 1.5rem}.aed__tabs-shell{position:relative}.aed__run{position:absolute;top:.3rem;right:0;z-index:10}.aed__run:active:not(:disabled){transform:scale(.97);transition-duration:0s}.aed__run-note{margin:0;font-size:.75rem;color:var(--mat-sys-primary)}.aed__run-note--error{color:var(--mat-sys-error)}.aed__tabs{min-height:min(42vh,28rem)}.aed__pane{display:flex;flex-direction:column;gap:1rem;padding:1rem .25rem 1.25rem}.aed__hint{margin:0;font-size:.8125rem;line-height:1.5;color:var(--mat-sys-on-surface-variant);max-width:72ch}.aed__count{display:inline-flex;align-items:center;justify-content:center;min-width:1.125rem;height:1.125rem;margin-left:.375rem;padding:0 .25rem;border-radius:999px;font-size:.625rem;font-weight:700;color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 14%,transparent)}.aed__na{margin-left:.375rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant)}.aed__mode{display:flex;gap:.5rem}.aed__mode-chip{border:none;border-radius:6px;padding:.35rem .9rem;font:inherit;font-size:.8125rem;color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 6%,transparent);cursor:pointer;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}.aed__mode-chip:focus-visible{outline:2px solid var(--mat-sys-primary);outline-offset:2px}.aed__mode-chip:disabled{cursor:default;opacity:.5}.aed__mode-chip--active{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent);font-weight:600}.aed__footer{display:flex;align-items:center;gap:1rem;padding:.875rem 1.5rem 1.25rem;border-top:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 10%,transparent)}.aed__status{flex:1;min-width:0;display:flex;flex-direction:column;gap:.375rem}.aed__chips{display:flex;flex-wrap:wrap;gap:.5rem}.aed__chip{border-radius:6px;padding:.2rem .6rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aed__chip[data-state=done]{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.aed__chip[data-state=pending]{color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__chip[data-state=skip]{color:var(--mat-sys-on-surface-variant);background:transparent;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent)}.aed__waits{margin:0;font-size:.75rem;color:var(--mat-sys-on-surface-variant)}.aed__done{flex-shrink:0}.aed__docs{margin:0;font-size:.8438rem;line-height:1.6;color:var(--mat-sys-on-surface);overflow-wrap:anywhere;max-width:76ch}.aed__docs ::ng-deep>:first-child{margin-top:0}.aed__docs ::ng-deep>:last-child{margin-bottom:0}.aed__docs ::ng-deep p,.aed__docs ::ng-deep ul,.aed__docs ::ng-deep ol,.aed__docs ::ng-deep blockquote{margin:0 0 1rem}.aed__docs ::ng-deep h3,.aed__docs ::ng-deep h4,.aed__docs ::ng-deep h5,.aed__docs ::ng-deep h6{margin:1.5rem 0 .75rem;font-weight:500;letter-spacing:-.01em;color:var(--mat-sys-on-surface)}.aed__docs ::ng-deep h3{font-size:1.0625rem}.aed__docs ::ng-deep h4{font-size:.9375rem}.aed__docs ::ng-deep h5,.aed__docs ::ng-deep h6{font-size:.8438rem}.aed__docs ::ng-deep ul,.aed__docs ::ng-deep ol{padding-left:1.25rem}.aed__docs ::ng-deep li{margin:.375rem 0}.aed__docs ::ng-deep strong{font-weight:600}.aed__docs ::ng-deep code{font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.9em;padding:.125rem .375rem;border-radius:.25rem;background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aed__docs ::ng-deep pre{margin:0 0 1rem;padding:1rem 1.25rem;border-radius:.5rem;background:color-mix(in srgb,var(--mat-sys-on-surface) 6%,transparent);overflow-x:auto}.aed__docs ::ng-deep pre code{padding:0;background:transparent}.aed__docs ::ng-deep blockquote{padding-left:1rem;color:var(--mat-sys-on-surface-variant);border-left:2px solid color-mix(in srgb,var(--mat-sys-on-surface) 20%,transparent)}.aed__docs ::ng-deep a{color:var(--mat-sys-primary);text-decoration:underline;text-underline-offset:.125em}.aed__docs ::ng-deep hr{margin:1.5rem 0;border:none}@media(prefers-reduced-motion:reduce){.aed__mode-chip,.aed__run{transition:none}.aed__run:active:not(:disabled){transform:none}}\n"] }]
|
|
210
210
|
}] });
|
|
211
211
|
/** The map itself when it carries entries; `undefined` otherwise. */
|
|
212
212
|
function nonEmpty(map) {
|
|
@@ -396,7 +396,7 @@ class ApiEndpointConfigComponent {
|
|
|
396
396
|
this.#patch({ backEndConfig: { ...current.backEndConfig, ...partial } });
|
|
397
397
|
}
|
|
398
398
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ApiEndpointConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
399
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ApiEndpointConfigComponent, isStandalone: true, selector: "lib-api-endpoint-config", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, kind: { classPropertyName: "kind", publicName: "kind", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, postmanCollectionConfig: { classPropertyName: "postmanCollectionConfig", publicName: "postmanCollectionConfig", isSignal: true, isRequired: false, transformFunction: null }, httpGetDataFunction: { classPropertyName: "httpGetDataFunction", publicName: "httpGetDataFunction", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { classAttribute: "lib-api-endpoint-config" }, ngImport: i0, template: "<div class=\"aec\">\n @if (!hasEndpoint()) {\n <!-- INVITE \u2014 nothing configured yet; the dialog is where setup happens. -->\n <div class=\"aec-invite\">\n <lib-empty-state icon=\"cloud_sync\" [message]=\"inviteMessage()\" />\n <button\n mat-flat-button\n class=\"aec-invite__cta\"\n [disabled]=\"!postmanCollectionConfig() || disabled()\"\n [matTooltip]=\"postmanCollectionConfig() ? '' : 'Configure a Postman collection first'\"\n (click)=\"openDialog()\">\n <mat-icon aria-hidden=\"true\">cloud_sync</mat-icon>\n Set up API call\n </button>\n </div>\n } @else {\n <!-- SUMMARY \u2014 what is configured, at a glance; editing happens in the dialog. -->\n <div class=\"aec-summary\">\n <div class=\"aec-summary__endpoint\">\n <span class=\"aec-summary__method\" [style.color]=\"methodColor()\">\n {{ config()?.httpMethod }}\n </span>\n <div class=\"aec-summary__id\">\n <p class=\"aec-summary__name\">{{ config()?.name }}</p>\n <p class=\"aec-summary__url\" [matTooltip]=\"config()?.httpEndPoint ?? ''\">\n {{ config()?.httpEndPoint }}\n </p>\n </div>\n </div>\n\n <div class=\"aec__chips\">\n @for (item of summaryChips(); track item.label) {\n <span class=\"aec__chip\" [attr.data-state]=\"item.state\">\n <!-- Glyph + colour + border style: state is never colour-only. -->\n {{ item.state === 'done' ? '\u2713 ' : item.state === 'pending' ? '\u2022 ' : '' }}{{ item.label }}\n </span>\n }\n </div>\n\n @if (waitsFor().length > 0) {\n <p class=\"aec__waits\">\n Waits for {{ waitsFor().join(', ') }} before fetching \u2014 the same gate the\n form applies at fill time.\n </p>\n } @else {\n <p class=\"aec__waits\">Fetches as soon as the form loads \u2014 no live fields are bound.</p>\n }\n\n <div class=\"aec-summary__actions\">\n <button mat-flat-button (click)=\"openDialog()\">\n <mat-icon aria-hidden=\"true\">tune</mat-icon>\n {{ disabled() ? 'View setup' : 'Configure' }}\n </button>\n <button\n mat-button\n [disabled]=\"disabled()\"\n matTooltip=\"Remove this API call and start over\"\n (click)=\"clearConfig()\">\n Clear\n </button>\n </div>\n </div>\n }\n\n <lib-error-list [errors]=\"errors() || []\" />\n</div>\n", styles: [".aec{display:flex;flex-direction:column;gap:1rem}.aec-invite{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem}.aec-invite__cta{align-self:stretch}.aec-summary{display:flex;flex-direction:column;gap:.875rem;padding:.875rem 1rem;border:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 12%,transparent);border-radius:10px;background:color-mix(in srgb,var(--mat-sys-on-surface) 3%,transparent)}.aec-summary__endpoint{display:flex;align-items:center;gap:.75rem;min-width:0}.aec-summary__method{flex-shrink:0;font-size:.75rem;font-weight:800;letter-spacing:.06em}.aec-summary__id{flex:1;min-width:0}.aec-summary__name{margin:0;font-size:.875rem;font-weight:600;color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aec-summary__url{margin:.125rem 0 0;font-family:monospace;font-size:.6875rem;color:var(--mat-sys-on-surface-variant);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aec-summary__actions{display:flex;align-items:center;gap:.5rem}.aec__chips{display:flex;flex-wrap:wrap;gap:.5rem}.aec__chip{border-radius:6px;padding:.2rem .6rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aec__chip[data-state=done]{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.aec__chip[data-state=pending]{color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aec__chip[data-state=skip]{color:var(--mat-sys-on-surface-variant);background:transparent;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent)}.aec__waits{margin:0;font-size:.75rem;color:var(--mat-sys-on-surface-variant);max-width:60ch}\n"], dependencies: [{ kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }, { kind: "component", type: ErrorListComponent, selector: "lib-error-list", inputs: ["errors"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type:
|
|
399
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ApiEndpointConfigComponent, isStandalone: true, selector: "lib-api-endpoint-config", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, kind: { classPropertyName: "kind", publicName: "kind", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, postmanCollectionConfig: { classPropertyName: "postmanCollectionConfig", publicName: "postmanCollectionConfig", isSignal: true, isRequired: false, transformFunction: null }, httpGetDataFunction: { classPropertyName: "httpGetDataFunction", publicName: "httpGetDataFunction", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { classAttribute: "lib-api-endpoint-config" }, ngImport: i0, template: "<div class=\"aec\">\n @if (!hasEndpoint()) {\n <!-- INVITE \u2014 nothing configured yet; the dialog is where setup happens. -->\n <div class=\"aec-invite\">\n <lib-empty-state icon=\"cloud_sync\" [message]=\"inviteMessage()\" />\n <button\n mat-flat-button\n class=\"aec-invite__cta\"\n [disabled]=\"!postmanCollectionConfig() || disabled()\"\n [matTooltip]=\"postmanCollectionConfig() ? '' : 'Configure a Postman collection first'\"\n (click)=\"openDialog()\">\n <mat-icon aria-hidden=\"true\">cloud_sync</mat-icon>\n Set up API call\n </button>\n </div>\n } @else {\n <!-- SUMMARY \u2014 what is configured, at a glance; editing happens in the dialog. -->\n <div class=\"aec-summary\">\n <div class=\"aec-summary__endpoint\">\n <span class=\"aec-summary__method\" [style.color]=\"methodColor()\">\n {{ config()?.httpMethod }}\n </span>\n <div class=\"aec-summary__id\">\n <p class=\"aec-summary__name\">{{ config()?.name }}</p>\n <p class=\"aec-summary__url\" [matTooltip]=\"config()?.httpEndPoint ?? ''\">\n {{ config()?.httpEndPoint }}\n </p>\n </div>\n </div>\n\n <div class=\"aec__chips\">\n @for (item of summaryChips(); track item.label) {\n <span class=\"aec__chip\" [attr.data-state]=\"item.state\">\n <!-- Glyph + colour + border style: state is never colour-only. -->\n {{ item.state === 'done' ? '\u2713 ' : item.state === 'pending' ? '\u2022 ' : '' }}{{ item.label }}\n </span>\n }\n </div>\n\n @if (waitsFor().length > 0) {\n <p class=\"aec__waits\">\n Waits for {{ waitsFor().join(', ') }} before fetching \u2014 the same gate the\n form applies at fill time.\n </p>\n } @else {\n <p class=\"aec__waits\">Fetches as soon as the form loads \u2014 no live fields are bound.</p>\n }\n\n <div class=\"aec-summary__actions\">\n <button mat-flat-button (click)=\"openDialog()\">\n <mat-icon aria-hidden=\"true\">tune</mat-icon>\n {{ disabled() ? 'View setup' : 'Configure' }}\n </button>\n <button\n mat-button\n [disabled]=\"disabled()\"\n matTooltip=\"Remove this API call and start over\"\n (click)=\"clearConfig()\">\n Clear\n </button>\n </div>\n </div>\n }\n\n <lib-error-list [errors]=\"errors() || []\" />\n</div>\n", styles: [".aec{display:flex;flex-direction:column;gap:1rem}.aec-invite{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem}.aec-invite__cta{align-self:stretch}.aec-summary{display:flex;flex-direction:column;gap:.875rem;padding:.875rem 1rem;border:1px solid color-mix(in srgb,var(--mat-sys-on-surface) 12%,transparent);border-radius:10px;background:color-mix(in srgb,var(--mat-sys-on-surface) 3%,transparent)}.aec-summary__endpoint{display:flex;align-items:center;gap:.75rem;min-width:0}.aec-summary__method{flex-shrink:0;font-size:.75rem;font-weight:800;letter-spacing:.06em}.aec-summary__id{flex:1;min-width:0}.aec-summary__name{margin:0;font-size:.875rem;font-weight:600;color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aec-summary__url{margin:.125rem 0 0;font-family:monospace;font-size:.6875rem;color:var(--mat-sys-on-surface-variant);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aec-summary__actions{display:flex;align-items:center;gap:.5rem}.aec__chips{display:flex;flex-wrap:wrap;gap:.5rem}.aec__chip{border-radius:6px;padding:.2rem .6rem;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aec__chip[data-state=done]{color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary) 12%,transparent)}.aec__chip[data-state=pending]{color:var(--mat-sys-on-surface-variant);background:color-mix(in srgb,var(--mat-sys-on-surface) 8%,transparent)}.aec__chip[data-state=skip]{color:var(--mat-sys-on-surface-variant);background:transparent;border:1px dashed color-mix(in srgb,var(--mat-sys-on-surface) 25%,transparent)}.aec__waits{margin:0;font-size:.75rem;color:var(--mat-sys-on-surface-variant);max-width:60ch}\n"], dependencies: [{ kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }, { kind: "component", type: ErrorListComponent, selector: "lib-error-list", inputs: ["errors"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
400
400
|
}
|
|
401
401
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ApiEndpointConfigComponent, decorators: [{
|
|
402
402
|
type: Component,
|
|
@@ -410,4 +410,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
410
410
|
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], kind: [{ type: i0.Input, args: [{ isSignal: true, alias: "kind", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], postmanCollectionConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "postmanCollectionConfig", required: false }] }], httpGetDataFunction: [{ type: i0.Input, args: [{ isSignal: true, alias: "httpGetDataFunction", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
|
|
411
411
|
|
|
412
412
|
export { ApiEndpointConfigComponent };
|
|
413
|
-
//# sourceMappingURL=ngx-t-forms-api-endpoint-config.component-
|
|
413
|
+
//# sourceMappingURL=ngx-t-forms-api-endpoint-config.component-BbS1dY0l.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-api-endpoint-config.component-BbS1dY0l.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/api-endpoint-config/api-endpoint-config-dialog.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/api-endpoint-config/api-endpoint-config-dialog.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/api-endpoint-config/api-endpoint-config.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/api-endpoint-config/api-endpoint-config.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ViewEncapsulation,\n computed,\n inject,\n linkedSignal,\n signal,\n} from '@angular/core';\nimport type { Signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { take } from 'rxjs';\nimport type { Observable } from 'rxjs';\n\nimport type {\n APIDataFetchingConfigurationInterface,\n FormColumnInputs,\n HeaderTemplate,\n IPostmanCollectionConfig,\n MinimumInputRequiredInterface,\n PayloadTemplate,\n QueryTemplate,\n RequestBodyMode,\n TreeNode,\n} from 'ngx-t-forms-types';\n\nimport { NGX_T_FORMS_CONFIG_TOKEN } from '../../../../injection-tokens';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { ApiValueAccessRulesComponent } from '../api-value-access-rules/api-value-access-rules.component';\nimport { HeaderTemplateEditorComponent } from '../header-template-editor/header-template-editor.component';\nimport { PayloadTemplateEditorComponent } from '../payload-template-editor/payload-template-editor.component';\nimport { RequiredInputsComponent } from '../required-inputs/required-inputs.component';\nimport { RestApiCallSetupComponent } from '../rest-api-call-setup/rest-api-call-setup.component';\nimport {\n bodyModeOf,\n dependencyLabels,\n deriveConfiguredRequest,\n docsHtmlOf,\n headerCountOf,\n methodColorOf,\n minInputsOf,\n paramCountOf,\n payloadDefaultOf,\n readinessOf,\n sendsBody,\n waitsForLabels,\n} from './api-endpoint-config.logic';\n\n/**\n * Everything the editor dialog needs from its opener. Signals keep the dialog\n * live against the host's state (autoSave merges the parent hands back flow\n * straight into the open dialog), and the callbacks keep the HOST the single\n * owner of every mutation — the dialog itself never patches the config.\n */\nexport interface ApiEndpointDialogContext {\n /** Which slot is being configured — copy only; behaviour is identical. */\n kind: 'value' | 'options';\n /** The live fetch-slot configuration. */\n config: Signal<APIDataFetchingConfigurationInterface | undefined>;\n /** All form inputs, offered as bindings by the hosted editors. */\n formInputs: Signal<readonly FormColumnInputs[]>;\n /** Postman collection behind the endpoint picker + response mapping. */\n postmanCollectionConfig: Signal<IPostmanCollectionConfig | undefined>;\n /** Optional HTTP GET hook, forwarded to the endpoint picker (parity). */\n httpGetDataFunction: Signal<\n ((url: string, options: Record<string, unknown>) => Observable<unknown>) | undefined\n >;\n /** Disables every hosted editor (the dialog stays viewable read-only). */\n disabled: Signal<boolean>;\n /** Validation errors surfaced by the parent editor. */\n errors: Signal<IConfigElementError[] | undefined>;\n endpointChanged(cfg: APIDataFetchingConfigurationInterface | undefined): void;\n queryChanged(template: QueryTemplate): void;\n headersChanged(template: HeaderTemplate): void;\n bodyModeChanged(mode: RequestBodyMode): void;\n minInputsChanged(minInputs: MinimumInputRequiredInterface[]): void;\n payloadChanged(template: PayloadTemplate): void;\n rulesChanged(rules: TreeNode[] | Record<string, TreeNode[] | string> | string): void;\n}\n\n/** Tab order — fixed, so indices are meaningful across the template. */\nexport const enum ApiDialogTab {\n Endpoint = 0,\n Params = 1,\n Headers = 2,\n Body = 3,\n Response = 4,\n}\n\n/**\n * Full-screen editor for one `matOptions.fetch.<slot>` API configuration,\n * arranged the way request tools like Postman arrange theirs so the mental\n * model transfers: a method + URL bar on top, then Params · Headers · Body ·\n * Response tabs, with a readiness rail in the footer.\n *\n * Opened by {@link ApiEndpointConfigComponent}, which passes an\n * {@link ApiEndpointDialogContext} and remains the single owner of every\n * mutation — this dialog only renders state and forwards edits. First-time\n * users land on a three-step guide and the Endpoint tab; picking an endpoint\n * advances to the next step that needs them — Body for a body-bearing method,\n * otherwise straight to the response mapping.\n *\n * Internal editor; not part of the public API.\n */\n@Component({\n selector: 'lib-api-endpoint-config-dialog',\n templateUrl: './api-endpoint-config-dialog.component.html',\n styleUrl: './api-endpoint-config-dialog.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { class: 'lib-api-endpoint-config-dialog' },\n imports: [\n MatDialogModule,\n MatButtonModule,\n MatIconModule,\n MatProgressSpinnerModule,\n MatTabsModule,\n MatTooltipModule,\n ApiValueAccessRulesComponent,\n HeaderTemplateEditorComponent,\n PayloadTemplateEditorComponent,\n RequiredInputsComponent,\n RestApiCallSetupComponent,\n ],\n})\nexport class ApiEndpointConfigDialogComponent {\n /** The opener-supplied context; see {@link ApiEndpointDialogContext}. */\n protected readonly data = inject(MAT_DIALOG_DATA) as ApiEndpointDialogContext;\n\n readonly #formsConfig = inject(NGX_T_FORMS_CONFIG_TOKEN);\n readonly #destroyRef = inject(DestroyRef);\n\n /** The live configuration, read through the opener's signal. */\n protected readonly config = computed(() => this.data.config());\n\n /** True once the slot carries a usable endpoint. */\n protected readonly hasEndpoint = computed<boolean>(() => Boolean(this.config()?.httpEndPoint));\n\n /** Token colour for the request bar's method badge. */\n protected readonly methodColor = computed<string>(() => methodColorOf(this.config()));\n\n /** POST/PUT carry a body; the Body tab is disabled otherwise. */\n protected readonly sendsBody = computed<boolean>(() => sendsBody(this.config()));\n\n /** Active body mechanism — unset means mapped inputs (runtime parity). */\n protected readonly bodyMode = computed<RequestBodyMode>(() => bodyModeOf(this.config()));\n\n /** Query parameter count for the Params tab badge. */\n protected readonly paramCount = computed<number>(() => paramCountOf(this.config()));\n\n /** Header count for the Headers tab badge. */\n protected readonly headerCount = computed<number>(() => headerCountOf(this.config()));\n\n /** Editor default for the query panel: the endpoint's captured params. */\n protected readonly queryDefault = computed<QueryTemplate | undefined>(() =>\n nonEmpty(this.config()?.capturedQuery),\n );\n\n /** Editor default for the header panel: the endpoint's captured headers. */\n protected readonly headerDefault = computed<HeaderTemplate | undefined>(() =>\n nonEmpty(this.config()?.capturedHeaders),\n );\n\n /** Editor default for template mode, derived from the captured body/mapping. */\n protected readonly payloadDefault = computed<PayloadTemplate>(() =>\n payloadDefaultOf(this.config()),\n );\n\n /** The configured minimum-input mapping. */\n protected readonly minInputs = computed<MinimumInputRequiredInterface[]>(() =>\n minInputsOf(this.config()),\n );\n\n /** The readiness rail shown in the footer. */\n protected readonly readiness = computed(() => readinessOf(this.config(), this.data.kind));\n\n /** Friendly labels of the live fields the fetch waits for at fill time. */\n protected readonly waitsFor = computed<readonly string[]>(() =>\n waitsForLabels(this.config(), this.data.formInputs()),\n );\n\n /** Copy for the header subtitle, per slot kind. */\n protected readonly kindLabel = computed<string>(() =>\n this.data.kind === 'options' ? 'Options data source' : 'Field value data source',\n );\n\n /** Label of the last tab — mapping copy differs per slot kind. */\n protected readonly responseLabel = computed<string>(() =>\n this.data.kind === 'options' ? 'Options mapping' : 'Response',\n );\n\n /**\n * The endpoint's Postman documentation, rendered from its markdown to safe,\n * pre-escaped HTML (see {@link docsHtmlOf}) — Angular's `[innerHTML]`\n * sanitizer still runs over it as a second layer. The Docs tab exists only\n * when the request actually carries a description.\n */\n protected readonly docsHtml = computed<string | undefined>(() => {\n const captured = this.config()?.capturedDocs;\n return captured?.trim() ? docsHtmlOf(captured) : undefined;\n });\n\n /**\n * Active tab index. A `linkedSignal` (per the library decision tree — follows\n * a source, the user overrides locally): the user's tab choice sticks while\n * an endpoint exists, and losing the endpoint (cleared while the dialog is\n * open) snaps the selection back to the Endpoint tab — every other tab is\n * disabled then, so nothing else is honest to show. No `effect()` writes.\n */\n protected readonly selectedTab = linkedSignal<boolean, number>({\n source: this.hasEndpoint,\n computation: (has, previous) =>\n has ? previous?.value ?? ApiDialogTab.Endpoint : ApiDialogTab.Endpoint,\n });\n\n /** Exposes the enum to the template. */\n protected readonly Tab = {\n Endpoint: ApiDialogTab.Endpoint as number,\n Params: ApiDialogTab.Params as number,\n Headers: ApiDialogTab.Headers as number,\n Body: ApiDialogTab.Body as number,\n Response: ApiDialogTab.Response as number,\n };\n\n /**\n * Forwards an endpoint selection (or clear) to the opener and, on a fresh\n * pick, advances to the next step that actually needs the author:\n * - a body-bearing endpoint (POST/PUT) lands on **Body** — the one thing\n * that must be configured before the fetch is meaningful;\n * - anything else (GET) skips straight to the **Response / Options mapping**\n * tab, since params/headers arrive pre-captured from Postman.\n */\n protected onEndpointChanged(cfg: APIDataFetchingConfigurationInterface | undefined): void {\n this.data.endpointChanged(cfg);\n if (!cfg?.httpEndPoint) return;\n this.selectedTab.set(sendsBody(cfg) ? ApiDialogTab.Body : ApiDialogTab.Response);\n }\n\n /** Body-mode chip handler — forwards to the opener, discards nothing. */\n protected setBodyMode(mode: RequestBodyMode): void {\n if (this.bodyMode() === mode) return;\n this.data.bodyModeChanged(mode);\n }\n\n // ── Run API call — refresh the sample response from the CONFIGURED request ──\n\n readonly #running = signal<boolean>(false);\n readonly #liveResponse = signal<object | undefined>(undefined);\n readonly #lastRunTime = signal<string | undefined>(undefined);\n readonly #runError = signal<string | undefined>(undefined);\n\n /** True while a test run is in flight. */\n protected readonly running = this.#running.asReadonly();\n\n /** The last run's response — overrides the Postman sample in the Response tab. */\n protected readonly liveResponse = this.#liveResponse.asReadonly();\n\n /** Wall-clock label of the last successful run (freshness note). */\n protected readonly lastRunTime = this.#lastRunTime.asReadonly();\n\n /** Human-readable failure of the last run, if any. */\n protected readonly runError = this.#runError.asReadonly();\n\n /** Labels of live-bound values a run sends empty (named, never silent). */\n protected readonly runUnresolved = computed<readonly string[]>(() => {\n const request = deriveConfiguredRequest(this.config());\n return request ? dependencyLabels(this.data.formInputs(), request.unresolved) : [];\n });\n\n /** Tooltip: what Run does, and exactly what it cannot know at build time. */\n protected readonly runTooltip = computed<string>(() => {\n const base =\n 'Sends this request exactly as configured — URL, params, headers and body — and refreshes the sample response.';\n const unresolved = this.runUnresolved();\n return unresolved.length > 0\n ? `${base} Values bound to live fields (${unresolved.join(', ')}) are sent empty.`\n : base;\n });\n\n /**\n * Runs the CONFIGURED request now and replaces the sample response with the\n * live result. This is the whole point of the old \"Data Sync\" mode, made\n * honest: the saved Postman example can be stale or payload-dependent, and\n * the request sent here is the one this dialog's tabs describe — no separate\n * hand-authored payload. Values bound to live form fields cannot be known at\n * build time; they are sent empty and named in the freshness note.\n */\n protected runApiCall(): void {\n if (this.#running()) return;\n const request = deriveConfiguredRequest(this.config());\n if (!request) return;\n\n const fb = this.#formsConfig.formBuilder;\n const req$: Observable<unknown> =\n request.method === 'GET'\n ? fb.httpGetDataFunction(request.url, request.options)\n : request.method === 'PUT' && fb.httpPutDataFunction\n ? fb.httpPutDataFunction(request.url, request.body, request.options)\n : fb.httpPostDataFunction(request.url, request.body, request.options);\n\n this.#running.set(true);\n this.#runError.set(undefined);\n req$.pipe(take(1), takeUntilDestroyed(this.#destroyRef)).subscribe({\n next: (response: unknown) => {\n this.#liveResponse.set((response ?? {}) as object);\n this.#lastRunTime.set(\n new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }),\n );\n this.#running.set(false);\n // The point of the run is the fresh response — land where it shows.\n this.selectedTab.set(ApiDialogTab.Response);\n },\n error: (err: { error?: { message?: string } | string; message?: string }) => {\n this.#running.set(false);\n const detail = typeof err?.error === 'string' ? err.error : err?.error?.message;\n this.#runError.set(detail || err?.message || 'The request failed.');\n },\n });\n }\n}\n\n/** The map itself when it carries entries; `undefined` otherwise. */\nfunction nonEmpty<T extends object>(map: T | undefined): T | undefined {\n return map && Object.keys(map).length > 0 ? map : undefined;\n}\n","<header class=\"aed__header\">\n <div class=\"aed__heading\">\n <h2 class=\"aed__title\">API call setup</h2>\n <p class=\"aed__subtitle\">{{ kindLabel() }}</p>\n </div>\n <button\n mat-icon-button\n mat-dialog-close\n class=\"aed__close\"\n aria-label=\"Close API call setup\">\n <mat-icon aria-hidden=\"true\">close</mat-icon>\n </button>\n</header>\n\n@if (hasEndpoint()) {\n <!-- Request bar — the Postman-style anchor: method, endpoint, change affordance. -->\n <div class=\"aed__request-bar\">\n <span class=\"aed__method\" [style.color]=\"methodColor()\">{{ config()?.httpMethod }}</span>\n <div class=\"aed__request-id\">\n <span class=\"aed__request-name\">{{ config()?.name }}</span>\n <span class=\"aed__request-url\" [matTooltip]=\"config()?.httpEndPoint ?? ''\">\n {{ config()?.httpEndPoint }}\n </span>\n </div>\n <button\n mat-stroked-button\n class=\"aed__change\"\n [disabled]=\"data.disabled()\"\n (click)=\"selectedTab.set(Tab.Endpoint)\">\n <mat-icon aria-hidden=\"true\">swap_horiz</mat-icon>\n Change endpoint\n </button>\n </div>\n} @else {\n <!-- First-run guide: the whole flow in one glance. -->\n <ol class=\"aed__steps\" aria-label=\"Setup steps\">\n <li class=\"aed__step aed__step--active\"><span class=\"aed__step-n\">1</span>Pick an endpoint</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">2</span>Bind request inputs</li>\n <li class=\"aed__step\"><span class=\"aed__step-n\">3</span>Map the response</li>\n </ol>\n}\n\n<mat-dialog-content class=\"aed__content\">\n <div class=\"aed__tabs-shell\">\n <mat-tab-group\n class=\"aed__tabs\"\n [mat-stretch-tabs]=\"false\"\n animationDuration=\"150ms\"\n [selectedIndex]=\"selectedTab()\"\n (selectedIndexChange)=\"selectedTab.set($event)\">\n\n <mat-tab label=\"Endpoint\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Choose which API this field calls. Endpoints come from your organisation's Postman\n collection — pick one and its method, URL, parameters and headers are captured for you.\n </p>\n <lib-rest-api-call-setup\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [httpGetDataFunction]=\"data.httpGetDataFunction()\"\n [disabled]=\"data.disabled()\"\n [value]=\"config()\"\n [errors]=\"data.errors() || []\"\n (valueChanged)=\"onEndpointChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Params\n @if (paramCount() > 0) {\n <span class=\"aed__count\">{{ paramCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Query parameters sent on the URL — one <code>\"name\": \"value\"</code> pair each. Type\n <code>$</code> to bind a value to a live form field; the request then waits for that\n field at fill time. Everything else is sent as a fixed value.\n </p>\n <lib-header-template-editor\n kind=\"query\"\n [value]=\"config()?.queryTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"queryDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.queryChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>\n Headers\n @if (headerCount() > 0) {\n <span class=\"aed__count\">{{ headerCount() }}</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Headers sent with the request — the endpoint's own headers are prefilled. Type\n <code>$</code> to swap any value for a live form field; everything else is sent as a\n fixed value.\n </p>\n <lib-header-template-editor\n [value]=\"config()?.headerTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"headerDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.headersChanged($event)\" />\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint() || !sendsBody()\">\n <ng-template mat-tab-label>\n Body\n @if (hasEndpoint() && !sendsBody()) {\n <span class=\"aed__na\">n/a</span>\n }\n </ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The request body, built from live form values. Map fields one by one, or author a JSON\n template when the payload is nested (type <code>$</code> to insert a field) —\n switching modes never discards the other. <strong>Run API call</strong> sends exactly\n this body, with defaults filled in.\n </p>\n <div class=\"aed__mode\" role=\"group\" aria-label=\"Request body mechanism\">\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'mappedInputs'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('mappedInputs')\">\n Map inputs\n </button>\n <button\n type=\"button\"\n class=\"aed__mode-chip\"\n [class.aed__mode-chip--active]=\"bodyMode() === 'template'\"\n [disabled]=\"data.disabled()\"\n (click)=\"setBodyMode('template')\">\n JSON template\n </button>\n </div>\n\n @if (bodyMode() === 'template') {\n <lib-payload-template-editor\n [value]=\"config()?.backEndConfig?.payloadTemplate\"\n [offerSearch]=\"data.kind === 'options'\"\n [defaultTemplate]=\"payloadDefault()\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n [showHint]=\"false\"\n (valueChanged)=\"data.payloadChanged($event)\" />\n } @else {\n <lib-required-inputs\n [value]=\"minInputs()\"\n [offerSearch]=\"data.kind === 'options'\"\n [formInputs]=\"data.formInputs()\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.minInputsChanged($event)\" />\n }\n </section>\n </mat-tab>\n\n <mat-tab [disabled]=\"!hasEndpoint()\">\n <ng-template mat-tab-label>{{ responseLabel() }}</ng-template>\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n Where in the response the data lives. Walk the sample below and pick the values this\n field should read. The sample starts as the endpoint's saved Postman example — press\n <strong>Run API call</strong> (top right) to replace it with a live response built from\n this configuration.\n </p>\n <lib-api-value-access-rules\n [value]=\"$any(config()?.valueAccessRules) || []\"\n [formInputs]=\"$any(data.formInputs())\"\n [mapToData]=\"config()?._id\"\n [postmanCollectionConfig]=\"data.postmanCollectionConfig()\"\n [liveResponse]=\"liveResponse()\"\n [showSync]=\"false\"\n [disabled]=\"data.disabled()\"\n (valueChanged)=\"data.rulesChanged($event)\" />\n </section>\n </mat-tab>\n\n @if (docsHtml(); as documentation) {\n <!-- Last tab, conditionally present — earlier tab indices stay stable. -->\n <mat-tab label=\"Docs\" [disabled]=\"!hasEndpoint()\">\n <section class=\"aed__pane\">\n <p class=\"aed__hint\">\n The endpoint's documentation, as written in your organisation's Postman collection.\n </p>\n <!-- docsHtmlOf() escapes everything first; Angular sanitizes the binding again. -->\n <div class=\"aed__docs\" [innerHTML]=\"documentation\"></div>\n </section>\n </mat-tab>\n }\n\n </mat-tab-group>\n\n @if (hasEndpoint()) {\n <!-- Postman's Send, for the builder: runs the CONFIGURED request to\n refresh the sample response the mapping tree walks. Rendered AFTER the\n tab group so it stacks above Material's tab header and stays clickable. -->\n <button\n mat-flat-button\n class=\"aed__run\"\n [disabled]=\"running()\"\n [matTooltip]=\"runTooltip()\"\n [attr.aria-busy]=\"running()\"\n (click)=\"runApiCall()\">\n @if (running()) {\n <mat-spinner diameter=\"16\" />\n } @else {\n <mat-icon aria-hidden=\"true\">play_arrow</mat-icon>\n }\n {{ running() ? 'Running…' : 'Run API call' }}\n </button>\n }\n </div>\n</mat-dialog-content>\n\n<footer class=\"aed__footer\">\n <div class=\"aed__status\">\n <div class=\"aed__chips\">\n @for (item of readiness(); track item.label) {\n <span class=\"aed__chip\" [attr.data-state]=\"item.state\">\n <!-- Glyph + colour + border style: state is never colour-only. -->\n {{ item.state === 'done' ? '✓ ' : item.state === 'pending' ? '• ' : '' }}{{ item.label }}\n </span>\n }\n </div>\n @if (hasEndpoint()) {\n @if (waitsFor().length > 0) {\n <p class=\"aed__waits\">\n Waits for {{ waitsFor().join(', ') }} before fetching — the same gate the form applies\n at fill time.\n </p>\n } @else {\n <p class=\"aed__waits\">Fetches as soon as the form loads — no live fields are bound.</p>\n }\n @if (runError(); as err) {\n <p class=\"aed__run-note aed__run-note--error\">Run failed: {{ err }}</p>\n } @else if (lastRunTime(); as time) {\n <p class=\"aed__run-note\">\n Fresh response · {{ time }}@if (runUnresolved().length > 0) {\n — sent without live values: {{ runUnresolved().join(', ') }}\n }\n </p>\n }\n }\n </div>\n <button mat-flat-button mat-dialog-close class=\"aed__done\">Done</button>\n</footer>\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ViewEncapsulation,\n computed,\n inject,\n input,\n linkedSignal,\n output,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialog, type MatDialogRef } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport type { Observable } from 'rxjs';\n\nimport type {\n APIDataFetchingConfigurationInterface,\n FormColumnInputs,\n HeaderTemplate,\n IPostmanCollectionConfig,\n MinimumInputRequiredInterface,\n PayloadTemplate,\n QueryTemplate,\n RequestBodyMode,\n TreeNode,\n} from 'ngx-t-forms-types';\n\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport { ErrorListComponent } from '../_shared/error-list/error-list.component';\nimport {\n ApiEndpointConfigDialogComponent,\n type ApiEndpointDialogContext,\n} from './api-endpoint-config-dialog.component';\nimport {\n type ReadinessItem,\n headerCountOf,\n methodColorOf,\n paramCountOf,\n readinessOf,\n waitsForLabels,\n} from './api-endpoint-config.logic';\n\n/**\n * Entry point for a whole `matOptions.fetch.<slot>` API configuration.\n *\n * The element editor's sidebar is too narrow to author a request in, so this\n * component renders only the CURRENT STATE — an invitation card before an\n * endpoint is picked, a summary card (method, endpoint, per-area status chips,\n * the waits-for line) after — and opens the Postman-style\n * {@link ApiEndpointConfigDialogComponent} for the actual editing. It remains\n * the single owner of every mutation: the dialog reads live state through\n * signals and forwards edits back into the patch methods here, so autoSave\n * merge-back behaves exactly as it did when the editors were inline.\n *\n * Emits the COMPLETE fetch config on every change. Selecting a new endpoint\n * REPLACES the slot (the legacy per-row `clearOnChange` semantics); editing a\n * slice merges over the current value.\n *\n * Internal editor consumed by `t-dynamic-data-edit`; not part of the public API.\n *\n * @example\n * <lib-api-endpoint-config [value]=\"fetchConfig()\" [formInputs]=\"inputs()\"\n * [postmanCollectionConfig]=\"postman()\" (valueChanged)=\"onConfig($event)\" />\n */\n@Component({\n selector: 'lib-api-endpoint-config',\n templateUrl: './api-endpoint-config.component.html',\n styleUrl: './api-endpoint-config.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { class: 'lib-api-endpoint-config' },\n imports: [\n EmptyStateComponent,\n ErrorListComponent,\n MatButtonModule,\n MatIconModule,\n MatTooltipModule,\n ],\n})\nexport class ApiEndpointConfigComponent {\n readonly #dialog = inject(MatDialog);\n readonly #destroyRef = inject(DestroyRef);\n\n /** Current fetch-slot configuration (`undefined` until an endpoint is picked). */\n readonly value = input<APIDataFetchingConfigurationInterface | undefined>(undefined);\n\n /** Which slot is being configured — copy only; behaviour is identical. */\n readonly kind = input<'value' | 'options'>('value');\n\n /** All form inputs, offered as bindings by the hosted editors. */\n readonly formInputs = input<readonly FormColumnInputs[]>([]);\n\n /** Postman collection behind the endpoint picker + response mapping. */\n readonly postmanCollectionConfig = input<IPostmanCollectionConfig | undefined>(undefined);\n\n /** Optional HTTP GET hook, forwarded to the endpoint picker (parity). */\n readonly httpGetDataFunction = input<\n ((url: string, options: Record<string, unknown>) => Observable<unknown>) | undefined\n >(undefined);\n\n /** Disables editing; the dialog stays openable for read-only review. */\n readonly disabled = input<boolean>(false);\n\n /** Validation errors surfaced by the parent editor. */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Optional id supplied by the parent editor. */\n readonly id = input<string | undefined>(undefined);\n\n /** Emits the complete fetch config on every change (`undefined` on clear). */\n readonly valueChanged = output<APIDataFetchingConfigurationInterface | undefined>();\n\n /**\n * The configuration being edited: follows the parent `value`, and local\n * patches override it until the parent hands a new value down (autoSave\n * merge-back). `linkedSignal` per the library decision tree — a source the\n * user can override locally.\n */\n protected readonly config = linkedSignal<APIDataFetchingConfigurationInterface | undefined>(\n () => this.value(),\n );\n\n /** True once the slot carries a usable endpoint. */\n protected readonly hasEndpoint = computed<boolean>(() => Boolean(this.config()?.httpEndPoint));\n\n /** Token colour for the summary card's method badge. */\n protected readonly methodColor = computed<string>(() => methodColorOf(this.config()));\n\n /**\n * Summary chips: request-area counts (Params, Headers) followed by the\n * readiness rail's Body / mapping entries — one glance answers \"what is\n * configured, what still needs me\".\n */\n protected readonly summaryChips = computed<readonly ReadinessItem[]>(() => {\n const cfg = this.config();\n const params = paramCountOf(cfg);\n const headers = headerCountOf(cfg);\n const chips: ReadinessItem[] = [\n { label: params > 0 ? `Params · ${params}` : 'Params', state: params > 0 ? 'done' : 'skip' },\n { label: headers > 0 ? `Headers · ${headers}` : 'Headers', state: headers > 0 ? 'done' : 'skip' },\n ];\n for (const item of readinessOf(cfg, this.kind())) {\n if (item.label !== 'Endpoint') chips.push(item);\n }\n return chips;\n });\n\n /** Friendly labels of the live fields the fetch waits for at fill time. */\n protected readonly waitsFor = computed<readonly string[]>(() =>\n waitsForLabels(this.config(), this.formInputs()),\n );\n\n /** Invitation copy, adapted to whether a Postman collection is available. */\n protected readonly inviteMessage = computed<string>(() =>\n this.postmanCollectionConfig()\n ? 'No API connected yet. Pick an endpoint, bind its request to live form fields, and map the response — all in one guided setup.'\n : 'No Postman collection configured. Add a collection id and API key to pick an endpoint.',\n );\n\n /** The open editor dialog, if any — guards against double-opening. */\n #dialogRef: MatDialogRef<ApiEndpointConfigDialogComponent> | null = null;\n\n constructor() {\n this.#destroyRef.onDestroy(() => this.#dialogRef?.close());\n }\n\n /**\n * Opens the Postman-style editor dialog. The dialog reads live state through\n * the context's signals and forwards every edit back into this component's\n * patch methods, so the emit semantics are identical to the old inline\n * editors. Opening while `disabled` is allowed — the hosted editors render\n * read-only, which is how a locked configuration is reviewed.\n */\n protected openDialog(): void {\n if (this.#dialogRef) return;\n\n const context: ApiEndpointDialogContext = {\n kind: this.kind(),\n config: this.config.asReadonly(),\n formInputs: this.formInputs,\n postmanCollectionConfig: this.postmanCollectionConfig,\n httpGetDataFunction: this.httpGetDataFunction,\n disabled: this.disabled,\n errors: this.errors,\n endpointChanged: (cfg) => this.onEndpointChanged(cfg),\n queryChanged: (template) => this.onQueryChanged(template),\n headersChanged: (template) => this.onHeadersChanged(template),\n bodyModeChanged: (mode) => this.setBodyMode(mode),\n minInputsChanged: (minInputs) => this.onMinInputsChanged(minInputs),\n payloadChanged: (template) => this.onPayloadChanged(template),\n rulesChanged: (rules) => this.onRulesChanged(rules),\n };\n\n this.#dialogRef = this.#dialog.open(ApiEndpointConfigDialogComponent, {\n data: context,\n width: 'min(1080px, 96vw)',\n maxWidth: '96vw',\n maxHeight: '92vh',\n autoFocus: 'first-tabbable',\n panelClass: 'lib-api-endpoint-dialog-panel',\n });\n this.#dialogRef\n .afterClosed()\n .pipe(takeUntilDestroyed(this.#destroyRef))\n .subscribe(() => (this.#dialogRef = null));\n }\n\n /** Clears the configured endpoint (and with it the whole slot). */\n protected clearConfig(): void {\n this.onEndpointChanged(undefined);\n }\n\n /**\n * A fresh endpoint selection (or a clear) REPLACES the whole slot — sub-config\n * authored against the previous endpoint must not survive the switch, which is\n * exactly what the legacy `ApiCall` row's `clearOnChange` guaranteed.\n */\n protected onEndpointChanged(cfg: APIDataFetchingConfigurationInterface | undefined): void {\n this.config.set(cfg);\n this.valueChanged.emit(cfg);\n }\n\n protected onQueryChanged(template: QueryTemplate): void {\n this.#patch({ queryTemplate: template });\n }\n\n protected onHeadersChanged(template: HeaderTemplate): void {\n this.#patch({ headerTemplate: template });\n }\n\n /**\n * Mode toggles never discard either body configuration — `requestBodyMode`\n * alone decides which one the runtime uses (the historical clear-on-toggle\n * destroyed authored work; see the runtime contract on RequestBodyMode).\n */\n protected setBodyMode(mode: RequestBodyMode): void {\n if ((this.config()?.backEndConfig?.requestBodyMode === 'template' ? 'template' : 'mappedInputs') === mode) {\n return;\n }\n this.#patchBackEnd({ requestBodyMode: mode });\n }\n\n protected onMinInputsChanged(minInputs: MinimumInputRequiredInterface[]): void {\n this.#patchBackEnd({ minimumInputRequired: minInputs });\n }\n\n protected onPayloadChanged(template: PayloadTemplate): void {\n this.#patchBackEnd({ payloadTemplate: template });\n }\n\n protected onRulesChanged(rules: TreeNode[] | Record<string, TreeNode[] | string> | string): void {\n this.#patch({\n valueAccessRules: rules as APIDataFetchingConfigurationInterface['valueAccessRules'],\n });\n }\n\n #patch(partial: Partial<APIDataFetchingConfigurationInterface>): void {\n const current = this.config();\n if (!current) return;\n const next: APIDataFetchingConfigurationInterface = { ...current, ...partial };\n this.config.set(next);\n this.valueChanged.emit(next);\n }\n\n #patchBackEnd(\n partial: Partial<APIDataFetchingConfigurationInterface['backEndConfig']>,\n ): void {\n const current = this.config();\n if (!current) return;\n this.#patch({ backEndConfig: { ...current.backEndConfig, ...partial } });\n }\n}\n","<div class=\"aec\">\n @if (!hasEndpoint()) {\n <!-- INVITE — nothing configured yet; the dialog is where setup happens. -->\n <div class=\"aec-invite\">\n <lib-empty-state icon=\"cloud_sync\" [message]=\"inviteMessage()\" />\n <button\n mat-flat-button\n class=\"aec-invite__cta\"\n [disabled]=\"!postmanCollectionConfig() || disabled()\"\n [matTooltip]=\"postmanCollectionConfig() ? '' : 'Configure a Postman collection first'\"\n (click)=\"openDialog()\">\n <mat-icon aria-hidden=\"true\">cloud_sync</mat-icon>\n Set up API call\n </button>\n </div>\n } @else {\n <!-- SUMMARY — what is configured, at a glance; editing happens in the dialog. -->\n <div class=\"aec-summary\">\n <div class=\"aec-summary__endpoint\">\n <span class=\"aec-summary__method\" [style.color]=\"methodColor()\">\n {{ config()?.httpMethod }}\n </span>\n <div class=\"aec-summary__id\">\n <p class=\"aec-summary__name\">{{ config()?.name }}</p>\n <p class=\"aec-summary__url\" [matTooltip]=\"config()?.httpEndPoint ?? ''\">\n {{ config()?.httpEndPoint }}\n </p>\n </div>\n </div>\n\n <div class=\"aec__chips\">\n @for (item of summaryChips(); track item.label) {\n <span class=\"aec__chip\" [attr.data-state]=\"item.state\">\n <!-- Glyph + colour + border style: state is never colour-only. -->\n {{ item.state === 'done' ? '✓ ' : item.state === 'pending' ? '• ' : '' }}{{ item.label }}\n </span>\n }\n </div>\n\n @if (waitsFor().length > 0) {\n <p class=\"aec__waits\">\n Waits for {{ waitsFor().join(', ') }} before fetching — the same gate the\n form applies at fill time.\n </p>\n } @else {\n <p class=\"aec__waits\">Fetches as soon as the form loads — no live fields are bound.</p>\n }\n\n <div class=\"aec-summary__actions\">\n <button mat-flat-button (click)=\"openDialog()\">\n <mat-icon aria-hidden=\"true\">tune</mat-icon>\n {{ disabled() ? 'View setup' : 'Configure' }}\n </button>\n <button\n mat-button\n [disabled]=\"disabled()\"\n matTooltip=\"Remove this API call and start over\"\n (click)=\"clearConfig()\">\n Clear\n </button>\n </div>\n </div>\n }\n\n <lib-error-list [errors]=\"errors() || []\" />\n</div>\n"],"names":["i2","i6","i1","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgGA;;;;;;;;;;;;;;AAcG;MAsBU,gCAAgC,CAAA;AArB7C,IAAA,WAAA,GAAA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AA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACb,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAG,IAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,oBAAA,EAAA,4BAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,qBAAA,EAAA,yBAAA,EAAA,YAAA,EAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAGP,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAftC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,EAAA,eAAA,EAGlB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC,EAAE,KAAK,EAAE,yBAAyB,EAAE,EAAA,OAAA,EACjC;wBACP,mBAAmB;wBACnB,kBAAkB;wBAClB,eAAe;wBACf,aAAa;wBACb,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,89EAAA,EAAA,MAAA,EAAA,CAAA,6rDAAA,CAAA,EAAA;;;;;"}
|
|
@@ -2,23 +2,23 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { inject, ElementRef, input, DestroyRef, ViewEncapsulation, ChangeDetectionStrategy, Component, output, computed } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
4
|
import { NgControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import * as i2
|
|
5
|
+
import * as i2 from '@angular/material/form-field';
|
|
6
6
|
import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
|
|
7
7
|
import * as i3 from '@angular/material/icon';
|
|
8
8
|
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i1$1 from '@angular/material/button';
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import * as i5$1 from '@angular/material/tooltip';
|
|
12
12
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
13
|
import * as i5 from '@angular/material/autocomplete';
|
|
14
14
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
15
15
|
import { MatOptionModule } from '@angular/material/core';
|
|
16
|
-
import { B as BaseCustomInput,
|
|
16
|
+
import { B as BaseCustomInput, a9 as getInputErrorMessage, aa as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-C1kZpYIM.mjs';
|
|
17
17
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
18
|
-
import * as
|
|
18
|
+
import * as i4 from '@angular/material/input';
|
|
19
19
|
import { MatInputModule } from '@angular/material/input';
|
|
20
20
|
import { Subject, merge, map, switchMap, of, delay } from 'rxjs';
|
|
21
|
-
import * as
|
|
21
|
+
import * as i5$2 from '@angular/material/select';
|
|
22
22
|
|
|
23
23
|
const customInputConfig = {
|
|
24
24
|
controlType: 'lib-auto-complet-reactive-input',
|
|
@@ -73,7 +73,7 @@ class AutoCompletReactiveInputComponent extends BaseCustomInput {
|
|
|
73
73
|
this.#typedValue.next(target?.value ?? '');
|
|
74
74
|
}
|
|
75
75
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AutoCompletReactiveInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: AutoCompletReactiveInputComponent, isStandalone: true, selector: "lib-auto-complet-reactive-input", inputs: { auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: true, transformFunction: null }, inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: AutoCompletReactiveInputComponent }], usesInheritance: true, ngImport: i0, template: "<input [readonly]=\"inputConfig().readonly || inputConfig().disabled\" [pattern]=\"inputConfig().pattern || ''\"\r\n [required]=\"!!inputConfig().required\" [attr.maxlength]=\"inputConfig().maxLength\"\r\n [attr.minlength]=\"inputConfig().minLength\"\r\n [type]=\"inputConfig().type || 'text'\"\r\n (input)=\"onInputChange($event)\"\r\n [value]=\"value\"\r\n\r\n [min]=\"inputConfig().min\" [max]=\"inputConfig().max\" autocomplete=\"on\"\r\n [matAutocomplete]=\"auto()\"\r\n matInput />\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "directive", type: i5.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type:
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: AutoCompletReactiveInputComponent, isStandalone: true, selector: "lib-auto-complet-reactive-input", inputs: { auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: true, transformFunction: null }, inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: AutoCompletReactiveInputComponent }], usesInheritance: true, ngImport: i0, template: "<input [readonly]=\"inputConfig().readonly || inputConfig().disabled\" [pattern]=\"inputConfig().pattern || ''\"\r\n [required]=\"!!inputConfig().required\" [attr.maxlength]=\"inputConfig().maxLength\"\r\n [attr.minlength]=\"inputConfig().minLength\"\r\n [type]=\"inputConfig().type || 'text'\"\r\n (input)=\"onInputChange($event)\"\r\n [value]=\"value\"\r\n\r\n [min]=\"inputConfig().min\" [max]=\"inputConfig().max\" autocomplete=\"on\"\r\n [matAutocomplete]=\"auto()\"\r\n matInput />\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "directive", type: i5.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
77
77
|
}
|
|
78
78
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AutoCompletReactiveInputComponent, decorators: [{
|
|
79
79
|
type: Component,
|
|
@@ -100,7 +100,7 @@ class AutoCompleteInputElementComponent {
|
|
|
100
100
|
this.options = computed(() => this.inputConfig().matOptions?.options ?? [], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
101
101
|
}
|
|
102
102
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AutoCompleteInputElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
103
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AutoCompleteInputElementComponent, isStandalone: true, selector: "lib-auto-complete-input-element", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-auto-complet-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n [auto]=\"auto\"\r\n ></lib-auto-complet-reactive-input>\r\n\r\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\">\r\n @for (option of options(); track option.id) {\r\n <mat-option [value]=\"option.value\">{{ option.label }}</mat-option>\r\n }\r\n </mat-autocomplete>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint [matTooltip]=\"inputConfig.hintLabel || ''\" class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"
|
|
103
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AutoCompleteInputElementComponent, isStandalone: true, selector: "lib-auto-complete-input-element", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-auto-complet-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n [auto]=\"auto\"\r\n ></lib-auto-complet-reactive-input>\r\n\r\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\">\r\n @for (option of options(); track option.id) {\r\n <mat-option [value]=\"option.value\">{{ option.label }}</mat-option>\r\n }\r\n </mat-autocomplete>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint [matTooltip]=\"inputConfig.hintLabel || ''\" class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"padding: 0 12px;\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding: 0 12px;\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%!important}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i5.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i5$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatOptionModule }, { kind: "component", type: AutoCompletReactiveInputComponent, selector: "lib-auto-complet-reactive-input", inputs: ["auto", "inputConfig"] }, { kind: "component", type: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
104
104
|
}
|
|
105
105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AutoCompleteInputElementComponent, decorators: [{
|
|
106
106
|
type: Component,
|
|
@@ -114,8 +114,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
114
114
|
MatOptionModule,
|
|
115
115
|
AutoCompletReactiveInputComponent,
|
|
116
116
|
TFormInputStatusComponent,
|
|
117
|
-
], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-auto-complet-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n [auto]=\"auto\"\r\n ></lib-auto-complet-reactive-input>\r\n\r\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\">\r\n @for (option of options(); track option.id) {\r\n <mat-option [value]=\"option.value\">{{ option.label }}</mat-option>\r\n }\r\n </mat-autocomplete>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint [matTooltip]=\"inputConfig.hintLabel || ''\" class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"
|
|
117
|
+
], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-auto-complet-reactive-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n [auto]=\"auto\"\r\n ></lib-auto-complet-reactive-input>\r\n\r\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\">\r\n @for (option of options(); track option.id) {\r\n <mat-option [value]=\"option.value\">{{ option.label }}</mat-option>\r\n }\r\n </mat-autocomplete>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint [matTooltip]=\"inputConfig.hintLabel || ''\" class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"padding: 0 12px;\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding: 0 12px;\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%!important}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
|
|
118
118
|
}], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
|
|
119
119
|
|
|
120
120
|
export { AutoCompleteInputElementComponent };
|
|
121
|
-
//# sourceMappingURL=ngx-t-forms-auto-complete-input-element.component-
|
|
121
|
+
//# sourceMappingURL=ngx-t-forms-auto-complete-input-element.component-B8eluIrh.mjs.map
|