ngx-t-forms 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/fesm2022/ngx-t-forms-api-value-access-rules.component-4ZPgovTx.mjs +436 -0
- package/fesm2022/ngx-t-forms-api-value-access-rules.component-4ZPgovTx.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-tCsyuHd3.mjs +311 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-tCsyuHd3.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-C8jU6DUH.mjs +208 -0
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-C8jU6DUH.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-convertPostmanCollectionToTree-DktdVBeQ.mjs +29 -0
- package/fesm2022/ngx-t-forms-convertPostmanCollectionToTree-DktdVBeQ.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-6eGpxdN5.mjs +132 -0
- package/fesm2022/ngx-t-forms-form-input-selector.component-6eGpxdN5.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-json-view.component-DwEXL85v.mjs +22 -0
- package/fesm2022/ngx-t-forms-form-json-view.component-DwEXL85v.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-B5gtKLLC.mjs +220 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-B5gtKLLC.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-Bo1CKQsC.mjs +347 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-Bo1CKQsC.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-getInputIllustration-GCSKx5e5.mjs +9 -0
- package/fesm2022/ngx-t-forms-getInputIllustration-GCSKx5e5.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-input-editor.component-C1kH_GDD.mjs +126 -0
- package/fesm2022/ngx-t-forms-input-editor.component-C1kH_GDD.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DY7Tsn5l.mjs +88 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DY7Tsn5l.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-Dgd5gyUu.mjs +108 -0
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-Dgd5gyUu.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-ClM2gqVq.mjs +153 -0
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-ClM2gqVq.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DubPFwTw.mjs +32 -0
- package/fesm2022/ngx-t-forms-missing-form-configs.component-DubPFwTw.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-DtmVJG6v.mjs +230 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-DtmVJG6v.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-B-w5W1gG.mjs +9292 -0
- package/fesm2022/ngx-t-forms-ngx-t-forms-B-w5W1gG.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-DieETx2I.mjs +776 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-DieETx2I.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-Bi1wJdw3.mjs +188 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-Bi1wJdw3.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Cd59pfG7.mjs +292 -0
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Cd59pfG7.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-section-report.component-CBXHr1qQ.mjs +156 -0
- package/fesm2022/ngx-t-forms-section-report.component-CBXHr1qQ.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-DBlBUGkw.mjs +143 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-DBlBUGkw.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-validators-config.component-gtr6Ohn3.mjs +216 -0
- package/fesm2022/ngx-t-forms-validators-config.component-gtr6Ohn3.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +2 -0
- package/fesm2022/ngx-t-forms.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/dialog-template/dialog-template.component.d.ts +10 -0
- package/lib/components/form-builder/elements/default-element/default-element.component.d.ts +12 -0
- package/lib/components/form-builder/elements/form-json-view/form-json-view.component.d.ts +9 -0
- package/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.d.ts +146 -0
- package/lib/components/form-builder/elements/form-submissions-config/config.d.ts +18 -0
- package/lib/components/form-builder/elements/form-submissions-config/form-submissions-config.component.d.ts +61 -0
- package/lib/components/form-builder/elements/forms-builder-menu/forms-builder-menu.component.d.ts +35 -0
- package/lib/components/form-builder/elements/input-editor/input-editor.component.d.ts +18 -0
- package/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.d.ts +42 -0
- package/lib/components/form-builder/elements/missing-form-configs/missing-form-configs.component.d.ts +12 -0
- package/lib/components/form-builder/elements/section-report/section-report.component.d.ts +23 -0
- package/lib/components/form-builder/elements/select-form-template/select-form-template.component.d.ts +17 -0
- package/lib/components/form-builder/form-builder.component.d.ts +29 -0
- package/lib/components/forms/forms.component.d.ts +44 -0
- package/lib/components/forms/functions/cloneCopyFormInput.d.ts +3 -0
- package/lib/components/forms/functions/elementBlur.d.ts +2 -0
- package/lib/components/forms/functions/elementConfigurationChanged.d.ts +2 -0
- package/lib/components/forms/functions/findFormInput.d.ts +2 -0
- package/lib/components/forms/functions/formHttpSubmissions.d.ts +6 -0
- package/lib/components/forms/functions/selectInputTemplate.d.ts +3 -0
- package/lib/components/forms/store/Form-actions-formBuilder.d.ts +34 -0
- package/lib/components/forms/store/Form-selectors-FormBuilder.d.ts +42 -0
- package/lib/components/forms/store/Forms-Actions.d.ts +75 -0
- package/lib/components/forms/store/Forms-Effects.d.ts +14 -0
- package/lib/components/forms/store/Forms-selectors.d.ts +24 -0
- package/lib/components/forms/store/forms-store.service.d.ts +246 -0
- package/lib/components/index.d.ts +11 -0
- package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/api-value-access-rules.component.d.ts +59 -0
- package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/elements/data-tree/data-tree.component.d.ts +60 -0
- package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/functions/convertDataToTree.d.ts +57 -0
- package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/functions/extractNodeFromTree.d.ts +3 -0
- package/lib/components/t-dynamic-data-edit/elements/calculated-field-rules/calculated-field-rules.component.d.ts +92 -0
- package/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.d.ts +73 -0
- package/lib/components/t-dynamic-data-edit/elements/form-input-selector/form-input-selector.component.d.ts +48 -0
- package/lib/components/t-dynamic-data-edit/elements/json-editor/json-editor.component.d.ts +26 -0
- package/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.d.ts +43 -0
- package/lib/components/t-dynamic-data-edit/elements/mat-slider-editor/mat-slider-editor.component.d.ts +44 -0
- package/lib/components/t-dynamic-data-edit/elements/mat-slider-toggle-editor/mat-slider-toggle-editor.component.d.ts +48 -0
- package/lib/components/t-dynamic-data-edit/elements/mscoa-segment-config/mscoa-segment-config.component.d.ts +75 -0
- package/lib/components/t-dynamic-data-edit/elements/pipeline-generator/elements/aggregate-stage-editor/aggregate-stage-editor.component.d.ts +33 -0
- package/lib/components/t-dynamic-data-edit/elements/pipeline-generator/pipeline-generator.component.d.ts +92 -0
- package/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/convertPostmanCollectionToTree.d.ts +4 -0
- package/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/filterCollectionItems.d.ts +3 -0
- package/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/methodColors.d.ts +1 -0
- package/lib/components/t-dynamic-data-edit/elements/postman-collections/postman-collections.component.d.ts +28 -0
- package/lib/components/t-dynamic-data-edit/elements/required-inputs/required-inputs.component.d.ts +57 -0
- package/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.d.ts +46 -0
- package/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.d.ts +48 -0
- package/lib/components/t-dynamic-data-edit/elements/t-workflow-picker/t-workflow-picker.component.d.ts +19 -0
- package/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.d.ts +60 -0
- package/lib/components/t-dynamic-data-edit/functions/testData.d.ts +2 -0
- package/lib/components/t-dynamic-data-edit/t-dynamic-data-edit.component.d.ts +48 -0
- package/lib/components/t-dynamic-data-view/t-dynamic-data-view.component.d.ts +14 -0
- package/lib/components/t-form-input/elements/Geo-location-form-input/elements/geo-location-form-input/geo-location-form-input.component.d.ts +18 -0
- package/lib/components/t-form-input/elements/Geo-location-form-input/functions/getGeoLocation.d.ts +2 -0
- package/lib/components/t-form-input/elements/Geo-location-form-input/geo-location.component.d.ts +16 -0
- package/lib/components/t-form-input/elements/auto-complete-input-element/auto-complete-input-element.component.d.ts +14 -0
- package/lib/components/t-form-input/elements/basic-input-input-element/basic-input-input-element.component.d.ts +17 -0
- package/lib/components/t-form-input/elements/basic-input-input-element/core/input-custom/input-custom.component.d.ts +17 -0
- package/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.d.ts +14 -0
- package/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.d.ts +14 -0
- package/lib/components/t-form-input/elements/editor-input-element/core/editor-js-input/editor-js-input.component.d.ts +18 -0
- package/lib/components/t-form-input/elements/editor-input-element/core/form-input-rich-text-editor/config.d.ts +9 -0
- package/lib/components/t-form-input/elements/editor-input-element/core/form-input-rich-text-editor/form-input-rich-text-editor.component.d.ts +14 -0
- package/lib/components/t-form-input/elements/editor-input-element/core/form-input-rich-text-editor/sync-editor/sync-editor.component.d.ts +10 -0
- package/lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.d.ts +14 -0
- package/lib/components/t-form-input/elements/file-upload-input-element/core/file-uploader/camera-functions.d.ts +3 -0
- package/lib/components/t-form-input/elements/file-upload-input-element/core/file-uploader/file-uploader.component.d.ts +30 -0
- package/lib/components/t-form-input/elements/file-upload-input-element/file-upload-input-element.component.d.ts +14 -0
- package/lib/components/t-form-input/elements/image-capture-input-element/core/camera-capture/camera-capture.component.d.ts +28 -0
- package/lib/components/t-form-input/elements/image-capture-input-element/image-capture-input-element.component.d.ts +13 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/account-value/account-value.component.d.ts +37 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/mscoa-chart.component.d.ts +93 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-computation/mscoa-computation.component.d.ts +62 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-reactive-form-field/mscoa-reactive-form-field.component.d.ts +21 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-account-table/scoa-account-table.component.d.ts +83 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-input/scoa-input.component.d.ts +27 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/mscoa-form-input.component.d.ts +16 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/store/accountConstants.d.ts +5 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-actions.d.ts +19 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-component-store.service.d.ts +61 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-effects.d.ts +8 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-selectors.d.ts +32 -0
- package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table/multiple-input-table.component.d.ts +37 -0
- package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-edit/multiple-input-table-edit.component.d.ts +52 -0
- package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-view/multiple-input-table-view.component.d.ts +39 -0
- package/lib/components/t-form-input/elements/multiple-input-input-element/functions/getListCalculated.d.ts +2 -0
- package/lib/components/t-form-input/elements/multiple-input-input-element/multiple-input-input-element.component.d.ts +16 -0
- package/lib/components/t-form-input/elements/section-title/section-title.component.d.ts +7 -0
- package/lib/components/t-form-input/elements/select-input-element/select-input-element.component.d.ts +23 -0
- package/lib/components/t-form-input/elements/select-table-input/elements/input-table/input-table.component.d.ts +29 -0
- package/lib/components/t-form-input/elements/select-table-input/select-table-input.component.d.ts +13 -0
- package/lib/components/t-form-input/elements/signature-input-element/config/signature.d.ts +2 -0
- package/lib/components/t-form-input/elements/signature-input-element/core/signature-pad-input/signature-pad-input.component.d.ts +40 -0
- package/lib/components/t-form-input/elements/signature-input-element/signature-input-element.component.d.ts +13 -0
- package/lib/components/t-form-input/elements/textarea-input-element/textarea-input-element.component.d.ts +13 -0
- package/lib/components/t-form-input/elements/toggle-input-element/core/toggle/toggle.component.d.ts +15 -0
- package/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.d.ts +13 -0
- package/lib/components/t-form-input/t-form-input.component.d.ts +24 -0
- package/lib/components/t-form-input-status/t-form-input-status.component.d.ts +10 -0
- package/lib/components/user-form-stepper/user-form-stepper.component.d.ts +23 -0
- package/lib/injection-tokens/index.d.ts +14 -0
- package/lib/ngx-t-forms.component.d.ts +5 -0
- package/lib/ngx-t-forms.service.d.ts +6 -0
- package/lib/services/core/t-form-builder/functions/addFormInputToForm.d.ts +8 -0
- package/lib/services/core/t-form-builder/functions/addMultipleInputFunction.d.ts +2 -0
- package/lib/services/core/t-form-builder/functions/addNewSection.d.ts +2 -0
- package/lib/services/core/t-form-builder/functions/deleteSection.d.ts +2 -0
- package/lib/services/core/t-form-builder/functions/formCanSave.d.ts +3 -0
- package/lib/services/core/t-form-builder/functions/inputElementEditorConfigs.d.ts +91 -0
- package/lib/services/core/t-form-builder/functions/moveFormInput.d.ts +4 -0
- package/lib/services/core/t-form-builder/functions/moveInputToDiffSection.d.ts +2 -0
- package/lib/services/core/t-form-builder/functions/multipleInputToggleLabel.d.ts +2 -0
- package/lib/services/core/t-form-builder/functions/removeItem.d.ts +7 -0
- package/lib/services/core/t-form-builder/functions/sectionDrop.d.ts +3 -0
- package/lib/services/core/t-form-builder/functions/stepTitleChangeStep.d.ts +14 -0
- package/lib/services/core/t-form-controller/function/calculateInputValue.d.ts +11 -0
- package/lib/services/core/t-form-controller/function/getApiDataFetching.d.ts +4 -0
- package/lib/services/core/t-form-controller/function/postApiDataFetching.d.ts +16 -0
- package/lib/services/core/t-form-controller/function/validateMinInputForPostRequest.d.ts +8 -0
- package/lib/services/core/t-form-environment-injection/functions/provideNgxTforms.d.ts +3 -0
- package/lib/services/core/t-form-section-controller/Functions/commonFormOperations.d.ts +21 -0
- package/lib/services/core/t-form-section-controller/Functions/errorResolver.d.ts +7 -0
- package/lib/services/core/t-form-section-controller/Functions/formGenerator.d.ts +29 -0
- package/lib/services/core/t-form-section-controller/Functions/getValueFromPathMap.d.ts +6 -0
- package/lib/services/core/t-form-tower-controller/form-tower-controller.service.d.ts +99 -0
- package/lib/services/core/t-form-tower-controller/functions/allFormInputs.d.ts +3 -0
- package/lib/services/core/t-form-tower-controller/functions/createEmptyForm.d.ts +2 -0
- package/lib/services/core/t-form-tower-controller/functions/extractInitFunctions.d.ts +8 -0
- package/lib/services/core/t-form-tower-controller/functions/getAllFunctionTypes.d.ts +12 -0
- package/lib/services/core/t-form-tower-controller/functions/getFormValue.d.ts +3 -0
- package/lib/services/core/t-form-tower-controller/functions/getSubmissionStatus.d.ts +7 -0
- package/lib/services/core/t-form-tower-controller/functions/handleStepChange.d.ts +3 -0
- package/lib/services/core/t-form-tower-controller/functions/multipleInputRowIDControllInput.d.ts +2 -0
- package/lib/services/core/t-form-tower-controller/functions/prePoPulateForm.d.ts +85 -0
- package/lib/services/core/t-form-tower-controller/functions/saveMultipleInputForm.d.ts +10 -0
- package/lib/services/core/t-form-tower-controller/functions/selectFormSteps.d.ts +4 -0
- package/lib/services/core/t-form-tower-controller/functions/setControlTempErrors.d.ts +3 -0
- package/lib/services/core/t-form-tower-controller/functions/setInputAsTouchedAndDirty.d.ts +2 -0
- package/lib/services/core/t-form-tower-controller/functions/setInputError.d.ts +5 -0
- package/lib/services/core/t-form-tower-controller/functions/setInputStatus.d.ts +3 -0
- package/lib/services/core/t-form-tower-controller/functions/setSectionAsSeen.d.ts +3 -0
- package/lib/services/core/t-form-tower-controller/functions/startTowerFormChangesEventListener.d.ts +10 -0
- package/lib/services/core/t-form-tower-controller/functions/toggleMultipleInput.d.ts +5 -0
- package/lib/services/core/t-form-tower-controller/functions/updateChangeHistory.d.ts +2 -0
- package/lib/services/core/t-form-tower-controller/functions/updateFormInputConfig.d.ts +6 -0
- package/lib/services/core/t-form-tower-controller/functions/updateValue.d.ts +2 -0
- package/lib/services/core/t-input-controller/functions/baseCustomInput.d.ts +104 -0
- package/lib/services/core/t-input-controller/functions/colorCoding.d.ts +24 -0
- package/lib/services/core/t-input-controller/functions/configureCols.d.ts +5 -0
- package/lib/services/core/t-input-controller/functions/generateInputSecret.d.ts +2 -0
- package/lib/services/core/t-input-controller/functions/inputErrorMessage.d.ts +3 -0
- package/lib/services/hhtpResources/Pipeline/pipeline.service.d.ts +80 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/shared/functions/assignDeepPropertyToObject.d.ts +1 -0
- package/lib/shared/functions/camelize.d.ts +6 -0
- package/lib/shared/functions/daysAgoTransform.d.ts +1 -0
- package/lib/shared/functions/enryption.d.ts +9 -0
- package/lib/shared/functions/evaluateArrayAccessRules.d.ts +14 -0
- package/lib/shared/functions/getAvatar.d.ts +1 -0
- package/lib/shared/functions/getDeepObject.d.ts +138 -0
- package/lib/shared/functions/getInputIllustration.d.ts +2 -0
- package/lib/shared/functions/isEqual.d.ts +12 -0
- package/lib/shared/functions/migrationCheck.d.ts +3 -0
- package/lib/shared/functions/replaceUrlVariables.d.ts +2 -0
- package/lib/shared/functions/searchArray.d.ts +1 -0
- package/lib/shared/functions/textIconsForUserHints.d.ts +20 -0
- package/lib/shared/index.d.ts +6 -0
- package/lib/shared/modules/mat-modules.module.d.ts +50 -0
- package/lib/shared/pipes/date/days-ago.pipe.d.ts +7 -0
- package/package.json +67 -0
- package/public-api.d.ts +6 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { StepperSelectionEvent, StepState } from '@angular/cdk/stepper';
|
|
4
|
+
import { MatStepper } from '@angular/material/stepper';
|
|
5
|
+
import { FormTowerControllerService } from '../../../../services/core/t-form-tower-controller/form-tower-controller.service';
|
|
6
|
+
import { FormBuilderFunctions, FormColumnInputs, IMultipleInputCal } from 'ngx-t-forms-types';
|
|
7
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class FormSectionStepperComponent extends FormTowerControllerService implements OnInit {
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
private store;
|
|
12
|
+
loadingForm$: Observable<boolean>;
|
|
13
|
+
isEditable: boolean;
|
|
14
|
+
stepper: MatStepper | undefined;
|
|
15
|
+
get formBuilderFunctions(): FormBuilderFunctions;
|
|
16
|
+
getPreviousStepLabel(): string | undefined;
|
|
17
|
+
getNextStepLabel(): string | undefined;
|
|
18
|
+
getStepState(step: any, index: number): StepState;
|
|
19
|
+
activeInput: string | undefined;
|
|
20
|
+
get getSubmissionStatus$(): Observable<string>;
|
|
21
|
+
dragging: boolean;
|
|
22
|
+
drop: (event: any) => void;
|
|
23
|
+
dropItems: (event: any, sectionId: string) => void;
|
|
24
|
+
formDeleteSection: (sectionId: string) => void;
|
|
25
|
+
addMultipleFormInput: (sectionId: string, multipleInputId: string) => void;
|
|
26
|
+
moveInputToSection: (inputId: string, targetSectionId: string) => void;
|
|
27
|
+
reorderMultipleInputItems: (event: CdkDragDrop<FormColumnInputs[], any, any>, multipleInputId: string) => void;
|
|
28
|
+
cloneCopyFormInput: (inputId: string) => void;
|
|
29
|
+
multipleInputToggleLabel: (item: FormColumnInputs) => void;
|
|
30
|
+
editInput: (item: FormColumnInputs) => void;
|
|
31
|
+
addMultipleInputValueCalculationFunction: (item: IMultipleInputCal, multipleInputId: string | undefined) => void;
|
|
32
|
+
setActiveSection: ($event: StepperSelectionEvent) => number;
|
|
33
|
+
addNewInput: (sectionId: string) => void;
|
|
34
|
+
addSection: () => void;
|
|
35
|
+
setMatActiveStepper: (index: number) => number;
|
|
36
|
+
mouseOverSection: string | null;
|
|
37
|
+
handleInput: (event: Event, sectionId: string) => void;
|
|
38
|
+
get selectFormStepsComputed(): {
|
|
39
|
+
columns: {
|
|
40
|
+
inputConfigErrors: {
|
|
41
|
+
key: string;
|
|
42
|
+
message: string;
|
|
43
|
+
}[];
|
|
44
|
+
label: string;
|
|
45
|
+
formControlName: string;
|
|
46
|
+
readonly?: boolean;
|
|
47
|
+
id: string;
|
|
48
|
+
sectionId: string;
|
|
49
|
+
pipe?: {
|
|
50
|
+
pipeType: import("ngx-t-forms-types").InputPipeTypes;
|
|
51
|
+
param: string;
|
|
52
|
+
};
|
|
53
|
+
hintLabel?: string;
|
|
54
|
+
temporaryHint?: string;
|
|
55
|
+
valueUpdatedAt?: Date;
|
|
56
|
+
status?: Record<string, string>;
|
|
57
|
+
min?: number | string | Date | import("ngx-t-forms-types/dist/interfaces/formInput/BasicFormInputInterface").MaxMinCustomScripts;
|
|
58
|
+
max?: number | string | Date | import("ngx-t-forms-types/dist/interfaces/formInput/BasicFormInputInterface").MaxMinCustomScripts;
|
|
59
|
+
tourContent?: string;
|
|
60
|
+
viewType?: import("ngx-t-forms-types/dist/interfaces/formInput/BasicFormInputInterface").InputViewTypes;
|
|
61
|
+
maxLength?: number;
|
|
62
|
+
minLength?: number;
|
|
63
|
+
placeholder?: string;
|
|
64
|
+
pattern?: string;
|
|
65
|
+
spellcheck?: boolean;
|
|
66
|
+
autocapitalize?: import("ngx-t-forms-types").AutocapitalizeOptions;
|
|
67
|
+
autocomplete?: import("ngx-t-forms-types").AutocompleteOptions;
|
|
68
|
+
multipleInputInEditId?: string;
|
|
69
|
+
suffixText?: string;
|
|
70
|
+
prefixText?: string;
|
|
71
|
+
prefixIcon?: string;
|
|
72
|
+
suffixIcon?: string;
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
script?: Record<string, unknown>;
|
|
75
|
+
conditionalInputConfig?: import("ngx-t-forms-types/dist/interfaces/formInput/ConditionalInputRule").ConditionalInputRule[];
|
|
76
|
+
calculatedFieldRules?: import("ngx-t-forms-types").CalculatedFieldRules;
|
|
77
|
+
value?: number | string | boolean | Date | File | {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
} | Array<{
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
}>;
|
|
82
|
+
element: import("ngx-t-forms-types").ElementTypes;
|
|
83
|
+
dataType: import("ngx-t-forms-types").InputDataTypes;
|
|
84
|
+
appearance: import("@angular/material/form-field").MatFormFieldAppearance;
|
|
85
|
+
type?: import("ngx-t-forms-types").InputTypes;
|
|
86
|
+
required: boolean;
|
|
87
|
+
colSize: number;
|
|
88
|
+
onlySetTempErrorOnTouch: boolean;
|
|
89
|
+
isCalculatedField: boolean;
|
|
90
|
+
matOptions?: import("ngx-t-forms-types").MatDataOptionsInterface;
|
|
91
|
+
validators: Array<import("ngx-t-forms-types").FormControlCustomValidatorsInterface | string>;
|
|
92
|
+
selectUpto?: number;
|
|
93
|
+
tableConfig?: import("ngx-t-forms-types").TableConfigurationsInterface;
|
|
94
|
+
fileType?: import("ngx-t-forms-types").InputFileType;
|
|
95
|
+
singleSelect?: boolean;
|
|
96
|
+
accept?: string;
|
|
97
|
+
endDateControl?: string;
|
|
98
|
+
startDateControl?: string;
|
|
99
|
+
startMinDate?: Date;
|
|
100
|
+
endMaxDate?: Date;
|
|
101
|
+
startMaxDate?: Date;
|
|
102
|
+
endMinDate?: Date;
|
|
103
|
+
rows?: number;
|
|
104
|
+
wrap?: "hard" | "soft";
|
|
105
|
+
labelPosition?: import("ngx-t-forms-types/dist/interfaces/formInput/ToggleInputInterface").LabelPosition;
|
|
106
|
+
matrixTableConfig?: {
|
|
107
|
+
dataSource: string;
|
|
108
|
+
};
|
|
109
|
+
handleLabel: string;
|
|
110
|
+
formIsOpen?: boolean;
|
|
111
|
+
originalId?: string;
|
|
112
|
+
showAsLabel?: boolean;
|
|
113
|
+
formInputs?: Array<FormColumnInputs>;
|
|
114
|
+
calculateListFunctions: Array<IMultipleInputCal>;
|
|
115
|
+
groupBy?: string[];
|
|
116
|
+
mscoaConfig: import("ngx-t-forms-types").IMscoaInputConfig;
|
|
117
|
+
richTextEditorLibrary: import("ngx-t-forms-types/dist/interfaces/formInput/RichTextEditorInput").RichTextEditorType;
|
|
118
|
+
}[];
|
|
119
|
+
label: string;
|
|
120
|
+
sectionId: string;
|
|
121
|
+
sectionForm: import("@angular/forms").FormGroup<any> | null;
|
|
122
|
+
sectionIsInvalid: boolean | undefined;
|
|
123
|
+
sectionIsSeen: boolean | undefined;
|
|
124
|
+
sectionFormErrorMessage: string;
|
|
125
|
+
activeSectionHasTour: boolean;
|
|
126
|
+
tourOptions: (string | undefined)[];
|
|
127
|
+
isActive: boolean | undefined;
|
|
128
|
+
}[];
|
|
129
|
+
overId: string | null;
|
|
130
|
+
countdownSeconds: {
|
|
131
|
+
[key: string]: {
|
|
132
|
+
count: number | null;
|
|
133
|
+
stop$: Subject<void>;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
stopDeletion(id: string): void;
|
|
137
|
+
inputWillBeRemovedIn: (id: string) => number | null | undefined;
|
|
138
|
+
removeInput(item: FormColumnInputs): void;
|
|
139
|
+
deleteSection(sectionId: string | null): void;
|
|
140
|
+
getPlaceHolerForSection: (sectionId: string) => any;
|
|
141
|
+
formDeleteInput: (item: FormColumnInputs) => void;
|
|
142
|
+
openSectionReports: Record<string, boolean>;
|
|
143
|
+
toggleSectionReports: (sectionId: string) => boolean;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionStepperComponent, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionStepperComponent, "app-form-section-stepper", never, {}, {}, never, never, true, never>;
|
|
146
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementEditorInnerSectionElementInterface, NgxTFormsConfig } from "ngx-t-forms-types";
|
|
2
|
+
export declare function SubmissionAPIListItemConfig(environment: NgxTFormsConfig): ElementEditorInnerSectionElementInterface[];
|
|
3
|
+
export declare const SubmissionAPIOtherConfig: ElementEditorInnerSectionElementInterface[];
|
|
4
|
+
export declare const SubmissionDialogConfig: ({
|
|
5
|
+
titleIcon: string;
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
primaryKey: string;
|
|
10
|
+
elements: ElementEditorInnerSectionElementInterface[];
|
|
11
|
+
} | {
|
|
12
|
+
titleIcon: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
primaryKey: string;
|
|
16
|
+
id: string;
|
|
17
|
+
elements?: undefined;
|
|
18
|
+
})[];
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { FormsStoreService } from '../../../forms/store/forms-store.service';
|
|
3
|
+
import { APIDataFetchingConfigurationInterface, ElementEditorInnerSectionElementInterface } from 'ngx-t-forms-types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormSubmissionsConfigComponent {
|
|
6
|
+
NGX_T_FORMS_CONFIG: import("ngx-t-forms-types").NgxTFormsConfig;
|
|
7
|
+
panels: import("@angular/core").Signal<({
|
|
8
|
+
error: string | undefined;
|
|
9
|
+
titleIcon: string;
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
primaryKey: string;
|
|
14
|
+
elements: ElementEditorInnerSectionElementInterface[];
|
|
15
|
+
} | {
|
|
16
|
+
error: string | undefined;
|
|
17
|
+
titleIcon: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
primaryKey: string;
|
|
21
|
+
id: string;
|
|
22
|
+
elements?: undefined;
|
|
23
|
+
})[]>;
|
|
24
|
+
private getPanelError;
|
|
25
|
+
_data: any;
|
|
26
|
+
store: FormsStoreService;
|
|
27
|
+
form: import("@angular/core").Signal<import("ngx-t-forms-types").FormInterface | undefined>;
|
|
28
|
+
formInputs: import("@angular/core").Signal<import("ngx-t-forms-types").FormColumnInputs[]>;
|
|
29
|
+
getFormApis(key: any): import("@angular/core").Signal<APIDataFetchingConfigurationInterface[]>;
|
|
30
|
+
constructor();
|
|
31
|
+
dataPlaceholder: undefined | {
|
|
32
|
+
data: APIDataFetchingConfigurationInterface;
|
|
33
|
+
};
|
|
34
|
+
keyInEdit: 'submissionAPI' | 'canSubmitAPI' | undefined;
|
|
35
|
+
get submissionApiListItemConfigElements(): ElementEditorInnerSectionElementInterface[];
|
|
36
|
+
formValidationError: import("@angular/core").Signal<{
|
|
37
|
+
key: string;
|
|
38
|
+
message: string;
|
|
39
|
+
}[]>;
|
|
40
|
+
readonly computedErrors: (element: ElementEditorInnerSectionElementInterface) => import("@angular/core").Signal<{
|
|
41
|
+
key: string;
|
|
42
|
+
message: string;
|
|
43
|
+
}[]>;
|
|
44
|
+
validationErrors(element: ElementEditorInnerSectionElementInterface): {
|
|
45
|
+
key: string;
|
|
46
|
+
message: string;
|
|
47
|
+
}[];
|
|
48
|
+
elementBlur(event: any, element: ElementEditorInnerSectionElementInterface): void;
|
|
49
|
+
inputChange(event: any, element: ElementEditorInnerSectionElementInterface): void;
|
|
50
|
+
passFormChanges(event: any, element: ElementEditorInnerSectionElementInterface): void;
|
|
51
|
+
formInputChange: (value: any, ele: ElementEditorInnerSectionElementInterface) => void;
|
|
52
|
+
elementConfigurationChanged(value: any, ele: ElementEditorInnerSectionElementInterface): void;
|
|
53
|
+
addNewSubmitApi(submision: string): void;
|
|
54
|
+
saveSubmitApi(): void;
|
|
55
|
+
removeSubmissionApi(api: APIDataFetchingConfigurationInterface): void;
|
|
56
|
+
cancelSubmitApi(): void;
|
|
57
|
+
matDialog: MatDialog;
|
|
58
|
+
close(): void;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmissionsConfigComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSubmissionsConfigComponent, "app-form-submissions-config", never, {}, {}, never, never, true, never>;
|
|
61
|
+
}
|
package/lib/components/form-builder/elements/forms-builder-menu/forms-builder-menu.component.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { FormsStoreService } from '../../../forms/store/forms-store.service';
|
|
3
|
+
import { FormInterface } from 'ngx-t-forms-types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormsBuilderMenuComponent {
|
|
6
|
+
private store;
|
|
7
|
+
form: import("@angular/core").Signal<FormInterface | undefined>;
|
|
8
|
+
showJson: boolean;
|
|
9
|
+
constructor(store: FormsStoreService);
|
|
10
|
+
items: import("@angular/core").Signal<({
|
|
11
|
+
label: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
hint: string;
|
|
14
|
+
action: () => void;
|
|
15
|
+
errors?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
label: string;
|
|
18
|
+
hint: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
errors: boolean;
|
|
21
|
+
action: () => void;
|
|
22
|
+
})[]>;
|
|
23
|
+
formCopy: import("@angular/core").Signal<string>;
|
|
24
|
+
readonly dialog: MatDialog;
|
|
25
|
+
openDialog(): void;
|
|
26
|
+
applyFormTemplate: (form: FormInterface) => void;
|
|
27
|
+
openFormSubmissionDialog(): void;
|
|
28
|
+
errors: import("@angular/core").Signal<{
|
|
29
|
+
key: string;
|
|
30
|
+
message: string;
|
|
31
|
+
}[]>;
|
|
32
|
+
configHasErrors: import("@angular/core").Signal<boolean>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormsBuilderMenuComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormsBuilderMenuComponent, "app-forms-builder-menu", never, {}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormsStoreService } from '../../../forms/store/forms-store.service';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InputEditorComponent {
|
|
5
|
+
private store;
|
|
6
|
+
defaultInputs: import("ngx-t-forms-types").DefaultInputConfigInterface;
|
|
7
|
+
inputInEdit$: Observable<import("ngx-t-forms-types").FormColumnInputs | undefined>;
|
|
8
|
+
defaultInputInEdit$: Observable<any>;
|
|
9
|
+
constructor(store: FormsStoreService);
|
|
10
|
+
saveInput: () => void;
|
|
11
|
+
closeEditor: () => import("rxjs").Subscription;
|
|
12
|
+
get validationErrors$(): Observable<{
|
|
13
|
+
key: string;
|
|
14
|
+
message: string;
|
|
15
|
+
}[] | null>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputEditorComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputEditorComponent, "app-input-editor", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ElementEditorInnerSectionElementInterface } from 'ngx-t-forms-types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InputElementEditorComponent {
|
|
4
|
+
private store;
|
|
5
|
+
inputElementEditorConfigs$: import("rxjs").Observable<{
|
|
6
|
+
editorSections: {
|
|
7
|
+
elements: ElementEditorInnerSectionElementInterface[];
|
|
8
|
+
hasErrors: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
showItemValue?: keyof import("ngx-t-forms-types").FormColumnInputs;
|
|
11
|
+
id: string;
|
|
12
|
+
additionalTest?: import("ngx-t-forms-types").ConfigurationValidTestInterface[];
|
|
13
|
+
}[];
|
|
14
|
+
title?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
}>;
|
|
17
|
+
inputElementEditorConfigs: import("@angular/core").Signal<{
|
|
18
|
+
editorSections: {
|
|
19
|
+
elements: ElementEditorInnerSectionElementInterface[];
|
|
20
|
+
hasErrors: boolean;
|
|
21
|
+
label: string;
|
|
22
|
+
showItemValue?: keyof import("ngx-t-forms-types").FormColumnInputs;
|
|
23
|
+
id: string;
|
|
24
|
+
additionalTest?: import("ngx-t-forms-types").ConfigurationValidTestInterface[];
|
|
25
|
+
}[];
|
|
26
|
+
title?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
} | undefined>;
|
|
29
|
+
inputInEdit$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs | undefined>;
|
|
30
|
+
inputInEdit: import("@angular/core").Signal<import("ngx-t-forms-types").FormColumnInputs | undefined>;
|
|
31
|
+
defaultInputInEdit$: import("rxjs").Observable<any>;
|
|
32
|
+
defaultInputInEdit: import("@angular/core").Signal<any>;
|
|
33
|
+
formInputs$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs[]>;
|
|
34
|
+
formInputs: import("@angular/core").Signal<import("ngx-t-forms-types").FormColumnInputs[] | undefined>;
|
|
35
|
+
elementConfigurationChanged: (value: any, ele: ElementEditorInnerSectionElementInterface) => void;
|
|
36
|
+
clearInputInEdit: () => void;
|
|
37
|
+
elementBlur: (event: any, element: ElementEditorInnerSectionElementInterface) => void;
|
|
38
|
+
inputInEditValidationErrors$: import("rxjs").Observable<import("ngx-t-forms-types").ValidationError[]>;
|
|
39
|
+
inputInEditValidationErrors: import("@angular/core").Signal<import("ngx-t-forms-types").ValidationError[] | undefined>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputElementEditorComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputElementEditorComponent, "app-input-element-editor", never, {}, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormsStoreService } from '../../../forms/store/forms-store.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MissingFormConfigsComponent {
|
|
4
|
+
private store;
|
|
5
|
+
errors: import("@angular/core").Signal<string[]>;
|
|
6
|
+
missingConfigs: import("@angular/core").Signal<string[]>;
|
|
7
|
+
constructor(store: FormsStoreService);
|
|
8
|
+
hideDetails: boolean;
|
|
9
|
+
showAllErrors: boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MissingFormConfigsComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MissingFormConfigsComponent, "app-missing-form-configs", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MatSort } from '@angular/material/sort';
|
|
2
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
3
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
4
|
+
import { FormSlideInterface } from 'ngx-t-forms-types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SectionReportComponent {
|
|
7
|
+
sectionId: string;
|
|
8
|
+
sort: MatSort;
|
|
9
|
+
paginator: MatPaginator;
|
|
10
|
+
displayedColumns: string[];
|
|
11
|
+
dataSource: MatTableDataSource<any, MatPaginator>;
|
|
12
|
+
private store;
|
|
13
|
+
selectFormInEdit$: import("rxjs").Observable<import("ngx-t-forms-types").DatabaseFormInterface | null>;
|
|
14
|
+
selectFormInEdit: import("@angular/core").Signal<import("ngx-t-forms-types").DatabaseFormInterface | null | undefined>;
|
|
15
|
+
constructor();
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
section: import("@angular/core").Signal<FormSlideInterface | null>;
|
|
18
|
+
sectionData: import("@angular/core").Signal<any[]>;
|
|
19
|
+
updateTableData(data: FormSlideInterface | null): any[];
|
|
20
|
+
applyFilter(event: Event): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionReportComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionReportComponent, "app-section-report", never, { "sectionId": { "alias": "sectionId"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { FormsStoreService } from '../../../forms/store/forms-store.service';
|
|
3
|
+
import { FormInterface } from 'ngx-t-forms-types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SelectFormTemplateComponent {
|
|
6
|
+
private store;
|
|
7
|
+
selectForms$: import("rxjs").Observable<import("ngx-t-forms-types").LocalFormStateSelectorInterface[]>;
|
|
8
|
+
selectLoadingForms$: import("rxjs").Observable<boolean>;
|
|
9
|
+
readonly dialogRef: MatDialogRef<any, any>;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
constructor(store: FormsStoreService);
|
|
12
|
+
close(): void;
|
|
13
|
+
selectForm(form: FormInterface): void;
|
|
14
|
+
getFormAvatar(formTitle: string): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFormTemplateComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectFormTemplateComponent, "lib-select-form-template", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormBuilderComponent implements OnDestroy, OnInit {
|
|
5
|
+
subscription$: Subscription;
|
|
6
|
+
private store;
|
|
7
|
+
private route;
|
|
8
|
+
selectLoadingForm: import("@angular/core").Signal<boolean>;
|
|
9
|
+
selectFormBuilderIsBusy: import("@angular/core").Signal<boolean>;
|
|
10
|
+
selectFormUpdated: import("@angular/core").Signal<string | Date | null>;
|
|
11
|
+
canSaveForm: import("@angular/core").Signal<boolean>;
|
|
12
|
+
isNewForm: import("@angular/core").Signal<boolean>;
|
|
13
|
+
set formId(value: string);
|
|
14
|
+
selectHasFormId: import("@angular/core").Signal<boolean>;
|
|
15
|
+
hasMissingConfigs: import("@angular/core").Signal<boolean>;
|
|
16
|
+
elementEditorOpen: import("@angular/core").Signal<boolean | null>;
|
|
17
|
+
constructor();
|
|
18
|
+
readonly NGX_T_FORMS_CONFIG: import("ngx-t-forms-types").NgxTFormsConfig;
|
|
19
|
+
readonly closeButton: import("ngx-t-forms-types").ActionButton;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
saveForm: () => void;
|
|
23
|
+
_title: string;
|
|
24
|
+
set titleValue(value: string);
|
|
25
|
+
initiatedTitle: boolean;
|
|
26
|
+
get titleValue(): string | undefined;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBuilderComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormBuilderComponent, "app-form-builder", never, { "formId": { "alias": "formId"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormsStoreService } from './store/forms-store.service';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { FormListSection, LocalFormStateSelectorInterface } from "ngx-t-forms-types";
|
|
5
|
+
import { Observable, Subscription } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FormsComponent implements OnInit, OnDestroy {
|
|
8
|
+
private route;
|
|
9
|
+
private store;
|
|
10
|
+
private document;
|
|
11
|
+
subscription$: Subscription;
|
|
12
|
+
selectFormsList$: Observable<LocalFormStateSelectorInterface[]>;
|
|
13
|
+
selectLoadingForms$: Observable<boolean>;
|
|
14
|
+
selectErrors$: Observable<any>;
|
|
15
|
+
selectFormListSection$: Observable<FormListSection>;
|
|
16
|
+
NGX_T_FORMS_CONFIG: import("ngx-t-forms-types").NgxTFormsConfig;
|
|
17
|
+
closeButton: import("ngx-t-forms-types").ActionButton;
|
|
18
|
+
constructor(route: ActivatedRoute, store: FormsStoreService, document: Document);
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
get formListSections(): {
|
|
21
|
+
value: FormListSection;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
viewportWidth: number;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
labels: {
|
|
27
|
+
label: string;
|
|
28
|
+
formControlName: string;
|
|
29
|
+
}[];
|
|
30
|
+
activeForm: string | null;
|
|
31
|
+
getCols(): 1 | 2 | 4 | 3;
|
|
32
|
+
getFormAvatar(formTitle: string): string;
|
|
33
|
+
archive(form: LocalFormStateSelectorInterface, event: Event): Promise<void>;
|
|
34
|
+
unarchive(form: LocalFormStateSelectorInterface, event: Event): Promise<void>;
|
|
35
|
+
delete(form: LocalFormStateSelectorInterface, event: Event): Promise<void>;
|
|
36
|
+
loadForms(): void;
|
|
37
|
+
router: Router;
|
|
38
|
+
activatedRoute: ActivatedRoute;
|
|
39
|
+
setSection(value: FormListSection): void;
|
|
40
|
+
editForm(form: LocalFormStateSelectorInterface): void;
|
|
41
|
+
addNewForm(): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormsComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormsComponent, "app-forms", never, {}, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { InClassFormUtilsInterface, FormInterface } from 'ngx-t-forms-types';
|
|
3
|
+
export type FileUploadFn = (file: string, fileName: string, fileType: string) => Observable<{
|
|
4
|
+
url: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const formHttpSubmissions: (form: FormInterface, formData: any, passData: any, Utils: InClassFormUtilsInterface) => Observable<any>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FormsStoreService } from "./forms-store.service";
|
|
2
|
+
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
3
|
+
import { FormColumnInputs } from 'ngx-t-forms-types';
|
|
4
|
+
import { APIDataFetchingConfigurationInterface, ElementTypes, IMultipleInputCal } from 'ngx-t-forms-types';
|
|
5
|
+
import { FormInterface } from 'ngx-t-forms-types';
|
|
6
|
+
import { ElementEditorInnerSectionElementInterface } from 'ngx-t-forms-types';
|
|
7
|
+
export declare function formBuilderStoreActions(store: FormsStoreService): {
|
|
8
|
+
handelSaveForm: () => void;
|
|
9
|
+
setFormTitle: (title: string) => void;
|
|
10
|
+
handleSectionDragDrop: (event: CdkDragDrop<any, any, any>) => void;
|
|
11
|
+
handleInputDragDrop: (event: CdkDragDrop<any, any, any>, sectionId: string) => void;
|
|
12
|
+
handleAddSection: () => void;
|
|
13
|
+
stepTitleChangeStep: (sectionId: string, title: string) => void;
|
|
14
|
+
formDeleteInput: (item: FormColumnInputs) => void;
|
|
15
|
+
multipleInputToggleLabel: (item: FormColumnInputs) => void;
|
|
16
|
+
editInput: (item: FormColumnInputs) => void;
|
|
17
|
+
addMultipleInputValueCalculationFunction: (item: IMultipleInputCal, multipleInputId: string | undefined) => void;
|
|
18
|
+
formDeleteSection: (sectionId: string) => void;
|
|
19
|
+
moveInputToSection: (inputId: string, targetSectionId: string) => void;
|
|
20
|
+
reorderMultipleInputItems: (event: CdkDragDrop<FormColumnInputs[], any, any>, multipleInputId: string) => void;
|
|
21
|
+
cloneCopyFormInput: (inputId: string) => void;
|
|
22
|
+
saveInput: (sectionId: string) => void;
|
|
23
|
+
applyFormTemplate: (form: FormInterface) => void;
|
|
24
|
+
selectInputTemplate: (inputId: string, element: ElementTypes) => void;
|
|
25
|
+
formInputChange: (ele: ElementEditorInnerSectionElementInterface, value: any) => void;
|
|
26
|
+
saveSubmitApi: (dataPlaceholder: undefined | {
|
|
27
|
+
data: APIDataFetchingConfigurationInterface;
|
|
28
|
+
}, keyInEdit: "submissionAPI" | "canSubmitAPI" | undefined) => void;
|
|
29
|
+
removeSubmissionApi: (api: APIDataFetchingConfigurationInterface, keyInEdit: "submissionAPI" | "canSubmitAPI" | undefined) => void;
|
|
30
|
+
elementConfigurationChanged: (inputId: string, value: any, ele: ElementEditorInnerSectionElementInterface) => void;
|
|
31
|
+
elementBlur: (inputId: string, event: any, element: ElementEditorInnerSectionElementInterface) => void;
|
|
32
|
+
addMultipleFormInput: (sectionId: string, multipleInputInEditId: string) => void;
|
|
33
|
+
clearInputInEdit: (inputId: string) => void;
|
|
34
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FormsStoreService } from "./forms-store.service";
|
|
2
|
+
export declare function formsFormBuilderStoreSelectors(store: FormsStoreService): {
|
|
3
|
+
selectFormSlides$: import("rxjs").Observable<import("ngx-t-forms-types").FormSlideInterface[]>;
|
|
4
|
+
missingConfig$: import("rxjs").Observable<string[]>;
|
|
5
|
+
canSaveForm$: import("rxjs").Observable<boolean>;
|
|
6
|
+
isNewForm$: import("rxjs").Observable<boolean>;
|
|
7
|
+
hasMissingConfigs$: import("rxjs").Observable<boolean>;
|
|
8
|
+
formErrors$: import("rxjs").Observable<{
|
|
9
|
+
key: string;
|
|
10
|
+
message: string;
|
|
11
|
+
}[]>;
|
|
12
|
+
formValidationErrorsMessages$: import("rxjs").Observable<string[]>;
|
|
13
|
+
inputInEdit$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs | undefined>;
|
|
14
|
+
defaultInputInEdit$: import("rxjs").Observable<any>;
|
|
15
|
+
inputInEditValidationErrors$: import("rxjs").Observable<import("ngx-t-forms-types").ValidationError[]>;
|
|
16
|
+
selectFormTitle$: import("rxjs").Observable<string | undefined>;
|
|
17
|
+
getAllFormInputs$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs[]>;
|
|
18
|
+
inputElementEditorConfigs$: import("rxjs").Observable<{
|
|
19
|
+
editorSections: {
|
|
20
|
+
elements: import("ngx-t-forms-types").ElementEditorInnerSectionElementInterface[];
|
|
21
|
+
hasErrors: boolean;
|
|
22
|
+
label: string;
|
|
23
|
+
showItemValue?: keyof import("ngx-t-forms-types").FormColumnInputs;
|
|
24
|
+
id: string;
|
|
25
|
+
additionalTest?: import("ngx-t-forms-types").ConfigurationValidTestInterface[];
|
|
26
|
+
}[];
|
|
27
|
+
title?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
}>;
|
|
30
|
+
selectFormSlideSections$: import("rxjs").Observable<{
|
|
31
|
+
inputConfigErrors: {
|
|
32
|
+
key: string;
|
|
33
|
+
message: string;
|
|
34
|
+
}[];
|
|
35
|
+
sectionId: string;
|
|
36
|
+
label: string;
|
|
37
|
+
columns: Array<import("ngx-t-forms-types").FormColumnInputs>;
|
|
38
|
+
inEdit?: boolean;
|
|
39
|
+
sectionIsSeen?: boolean;
|
|
40
|
+
isActive?: boolean;
|
|
41
|
+
}[]>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot } from "@angular/router";
|
|
2
|
+
import { DatabaseFormInterface, FormInterface } from 'ngx-t-forms-types';
|
|
3
|
+
import { FormListSection, FormStateErrors } from 'ngx-t-forms-types';
|
|
4
|
+
import { FormsStoreService } from "./forms-store.service";
|
|
5
|
+
export declare function formsStoreActions(store: FormsStoreService): {
|
|
6
|
+
loadFormListSuccess: (observableOrValue: {
|
|
7
|
+
forms: DatabaseFormInterface[];
|
|
8
|
+
} | import("rxjs").Observable<{
|
|
9
|
+
forms: DatabaseFormInterface[];
|
|
10
|
+
}>) => import("rxjs").Subscription;
|
|
11
|
+
toggleFormBuilderBusy: () => void;
|
|
12
|
+
toggleLoadingForm: () => void;
|
|
13
|
+
toggleLoadingForms: (observableOrValue: {
|
|
14
|
+
loadingForms: boolean;
|
|
15
|
+
} | import("rxjs").Observable<{
|
|
16
|
+
loadingForms: boolean;
|
|
17
|
+
}>) => import("rxjs").Subscription;
|
|
18
|
+
loadFormSuccess: (observableOrValue: {
|
|
19
|
+
form: DatabaseFormInterface;
|
|
20
|
+
} | import("rxjs").Observable<{
|
|
21
|
+
form: DatabaseFormInterface;
|
|
22
|
+
}>) => import("rxjs").Subscription;
|
|
23
|
+
toggleFormBusy: (observableOrValue: {
|
|
24
|
+
formId: string;
|
|
25
|
+
} | import("rxjs").Observable<{
|
|
26
|
+
formId: string;
|
|
27
|
+
}>) => import("rxjs").Subscription;
|
|
28
|
+
archivedSuccess: (observableOrValue: {
|
|
29
|
+
formId: string;
|
|
30
|
+
} | import("rxjs").Observable<{
|
|
31
|
+
formId: string;
|
|
32
|
+
}>) => import("rxjs").Subscription;
|
|
33
|
+
setFormId: (observableOrValue: {
|
|
34
|
+
formId: string;
|
|
35
|
+
} | import("rxjs").Observable<{
|
|
36
|
+
formId: string;
|
|
37
|
+
}>) => import("rxjs").Subscription;
|
|
38
|
+
setError: (observableOrValue: {
|
|
39
|
+
error: string | undefined;
|
|
40
|
+
type: FormStateErrors;
|
|
41
|
+
} | import("rxjs").Observable<{
|
|
42
|
+
error: string | undefined;
|
|
43
|
+
type: FormStateErrors;
|
|
44
|
+
}>) => import("rxjs").Subscription;
|
|
45
|
+
handleListSectionChange: (observableOrValue: {
|
|
46
|
+
listSection: FormListSection;
|
|
47
|
+
} | import("rxjs").Observable<{
|
|
48
|
+
listSection: FormListSection;
|
|
49
|
+
}>) => import("rxjs").Subscription;
|
|
50
|
+
handleRouterStateChange: (observableOrValue: {
|
|
51
|
+
routerState: ActivatedRouteSnapshot | null;
|
|
52
|
+
} | import("rxjs").Observable<{
|
|
53
|
+
routerState: ActivatedRouteSnapshot | null;
|
|
54
|
+
}>) => import("rxjs").Subscription;
|
|
55
|
+
handleSetSubmittingForm: (observableOrValue: {
|
|
56
|
+
submittingForm: boolean;
|
|
57
|
+
} | import("rxjs").Observable<{
|
|
58
|
+
submittingForm: boolean;
|
|
59
|
+
}>) => import("rxjs").Subscription;
|
|
60
|
+
setFormInitialValues: (observableOrValue: {
|
|
61
|
+
initialFormValues: Record<string, any>;
|
|
62
|
+
} | import("rxjs").Observable<{
|
|
63
|
+
initialFormValues: Record<string, any>;
|
|
64
|
+
}>) => import("rxjs").Subscription;
|
|
65
|
+
handleEditorUpdateFormInEdit: (observableOrValue: {
|
|
66
|
+
form: FormInterface;
|
|
67
|
+
} | import("rxjs").Observable<{
|
|
68
|
+
form: FormInterface;
|
|
69
|
+
}>) => import("rxjs").Subscription;
|
|
70
|
+
setInputInEditId: (observableOrValue: {
|
|
71
|
+
inputInEdit: string | null;
|
|
72
|
+
} | import("rxjs").Observable<{
|
|
73
|
+
inputInEdit: string | null;
|
|
74
|
+
}>) => import("rxjs").Subscription;
|
|
75
|
+
};
|