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,14 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { FormsStoreService } from "./forms-store.service";
|
|
3
|
+
import { FormInterface } from "ngx-t-forms-types";
|
|
4
|
+
import { FormListSection } from "ngx-t-forms-types";
|
|
5
|
+
export declare function formsStoreEffects(store: FormsStoreService): {
|
|
6
|
+
createForm$: (observableOrValue: FormInterface | Observable<FormInterface>) => import("rxjs").Subscription;
|
|
7
|
+
loadForms$: (observableOrValue?: void | Observable<void> | undefined) => import("rxjs").Subscription;
|
|
8
|
+
loadForm$: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
9
|
+
updateForm$: (observableOrValue: FormInterface | Observable<FormInterface>) => import("rxjs").Subscription;
|
|
10
|
+
archiveForm$: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
11
|
+
setListSection$: (observableOrValue: FormListSection | Observable<FormListSection>) => import("rxjs").Subscription;
|
|
12
|
+
unArchiveForm$: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
13
|
+
deleteForm$: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LocalFormStateSelectorInterface } from "ngx-t-forms-types";
|
|
2
|
+
import { FormsStoreService } from "./forms-store.service";
|
|
3
|
+
export declare function formsStoreSelectors(store: FormsStoreService): {
|
|
4
|
+
state$: import("rxjs").Observable<import("ngx-t-forms-types").IFormsInitStateInterface>;
|
|
5
|
+
selectForms$: import("rxjs").Observable<LocalFormStateSelectorInterface[]>;
|
|
6
|
+
selectFormInEdit$: import("rxjs").Observable<import("ngx-t-forms-types").DatabaseFormInterface | null>;
|
|
7
|
+
selectFormBuilderIsBusy$: import("rxjs").Observable<boolean>;
|
|
8
|
+
selectLoadingForm$: import("rxjs").Observable<boolean>;
|
|
9
|
+
selectLoadingForms$: import("rxjs").Observable<boolean>;
|
|
10
|
+
selectFormId$: import("rxjs").Observable<string | null>;
|
|
11
|
+
selectErrors$: import("rxjs").Observable<{
|
|
12
|
+
ArchiveForm: string | undefined;
|
|
13
|
+
CreateForm: string | undefined;
|
|
14
|
+
UpdateForm: string | undefined;
|
|
15
|
+
GetForm: string | undefined;
|
|
16
|
+
LoadForms: string | undefined;
|
|
17
|
+
} | null>;
|
|
18
|
+
selectFormListSection$: import("rxjs").Observable<import("ngx-t-forms-types").FormListSection>;
|
|
19
|
+
selectFormUpdated$: import("rxjs").Observable<string | Date | null>;
|
|
20
|
+
selectRouterState$: import("rxjs").Observable<import("@angular/router").ActivatedRouteSnapshot | null>;
|
|
21
|
+
selectSubmittingForm$: import("rxjs").Observable<boolean>;
|
|
22
|
+
selectFormInitialValues$: import("rxjs").Observable<Record<string, any> | null>;
|
|
23
|
+
selectInputInEditId$: import("rxjs").Observable<string | null>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
2
|
+
import { FormListSection, IFormsInitStateInterface, InClassFormUtilsInterface } from "ngx-t-forms-types";
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { DatabaseFormInterface, FormInterface, NgxTFormsConfig } from "ngx-t-forms-types";
|
|
5
|
+
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import { IWorkflowOption } from "ngx-t-forms-types";
|
|
7
|
+
import { IGetTreeResponse } from "ngx-t-forms-types";
|
|
8
|
+
import { FileUploadFn } from '../functions/formHttpSubmissions';
|
|
9
|
+
import { IUserSignature } from "ngx-t-forms-types";
|
|
10
|
+
import { PointGroup } from 'signature_pad';
|
|
11
|
+
import { AbstractControl } from '@angular/forms';
|
|
12
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
13
|
+
import { HintType } from '../../../shared/functions/textIconsForUserHints';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export interface ActionButton {
|
|
16
|
+
icon: string;
|
|
17
|
+
color: string;
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface IStoreFunctions {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
formsCloseButton: ActionButton;
|
|
23
|
+
formBuilderCloseButton: ActionButton;
|
|
24
|
+
createForm: (form: FormInterface) => Observable<DatabaseFormInterface>;
|
|
25
|
+
updateForm: (form: FormInterface) => Observable<DatabaseFormInterface>;
|
|
26
|
+
archiveForm: (formId: string) => Observable<{
|
|
27
|
+
message: string;
|
|
28
|
+
}>;
|
|
29
|
+
unArchiveForm: (formId: string) => Observable<{
|
|
30
|
+
message: string;
|
|
31
|
+
}>;
|
|
32
|
+
deleteForm: (formId: string) => Observable<{
|
|
33
|
+
message: string;
|
|
34
|
+
}>;
|
|
35
|
+
getForm: (formId: string) => Observable<DatabaseFormInterface | null>;
|
|
36
|
+
loadForms: () => Observable<DatabaseFormInterface[]>;
|
|
37
|
+
loadArchivedForms: () => Observable<DatabaseFormInterface[]>;
|
|
38
|
+
toastSuccess: (message: string) => void;
|
|
39
|
+
toastError: (message: string) => void;
|
|
40
|
+
workflows: () => Observable<IWorkflowOption[]>;
|
|
41
|
+
getScoaTree: () => Observable<IGetTreeResponse>;
|
|
42
|
+
getSCOAAccount(SCOAAccount: string): Observable<any>;
|
|
43
|
+
editForm: (formId: string) => void;
|
|
44
|
+
addNewForm: () => void;
|
|
45
|
+
saveFormData: (formId: string, data: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}) => Observable<void>;
|
|
48
|
+
setListSection: (section: FormListSection) => void;
|
|
49
|
+
runMongoDbPipeLine: (pipeline: any, workflowId: string) => Observable<{
|
|
50
|
+
results: any;
|
|
51
|
+
message: string;
|
|
52
|
+
}>;
|
|
53
|
+
fileUpload: FileUploadFn;
|
|
54
|
+
formSubmittedSuccessfully: (formId: string) => void;
|
|
55
|
+
getUserSignature: () => Observable<IUserSignature>;
|
|
56
|
+
saveUserSignature: (signature: PointGroup[]) => Observable<void>;
|
|
57
|
+
}
|
|
58
|
+
export declare const initialUIState: IFormsInitStateInterface;
|
|
59
|
+
export declare class FormsStoreService extends ComponentStore<IFormsInitStateInterface> {
|
|
60
|
+
httpClient: HttpClient;
|
|
61
|
+
snackBar: MatSnackBar;
|
|
62
|
+
sectionPlaceholder: Record<string, AbstractControl>;
|
|
63
|
+
readonly NGX_T_FORMS_CONFIG: NgxTFormsConfig;
|
|
64
|
+
constructor();
|
|
65
|
+
utils: InClassFormUtilsInterface;
|
|
66
|
+
showMessage(message: string, type: HintType): void;
|
|
67
|
+
private setupDevTools;
|
|
68
|
+
get resourceFunctions(): IStoreFunctions | null;
|
|
69
|
+
readonly selectors: {
|
|
70
|
+
state$: Observable<IFormsInitStateInterface>;
|
|
71
|
+
selectForms$: Observable<import("ngx-t-forms-types").LocalFormStateSelectorInterface[]>;
|
|
72
|
+
selectFormInEdit$: Observable<DatabaseFormInterface | null>;
|
|
73
|
+
selectFormBuilderIsBusy$: Observable<boolean>;
|
|
74
|
+
selectLoadingForm$: Observable<boolean>;
|
|
75
|
+
selectLoadingForms$: Observable<boolean>;
|
|
76
|
+
selectFormId$: Observable<string | null>;
|
|
77
|
+
selectErrors$: Observable<{
|
|
78
|
+
ArchiveForm: string | undefined;
|
|
79
|
+
CreateForm: string | undefined;
|
|
80
|
+
UpdateForm: string | undefined;
|
|
81
|
+
GetForm: string | undefined;
|
|
82
|
+
LoadForms: string | undefined;
|
|
83
|
+
} | null>;
|
|
84
|
+
selectFormListSection$: Observable<FormListSection>;
|
|
85
|
+
selectFormUpdated$: Observable<string | Date | null>;
|
|
86
|
+
selectRouterState$: Observable<import("@angular/router").ActivatedRouteSnapshot | null>;
|
|
87
|
+
selectSubmittingForm$: Observable<boolean>;
|
|
88
|
+
selectFormInitialValues$: Observable<Record<string, any> | null>;
|
|
89
|
+
selectInputInEditId$: Observable<string | null>;
|
|
90
|
+
};
|
|
91
|
+
readonly formBuilderSelectors: {
|
|
92
|
+
selectFormSlides$: Observable<import("ngx-t-forms-types").FormSlideInterface[]>;
|
|
93
|
+
missingConfig$: Observable<string[]>;
|
|
94
|
+
canSaveForm$: Observable<boolean>;
|
|
95
|
+
isNewForm$: Observable<boolean>;
|
|
96
|
+
hasMissingConfigs$: Observable<boolean>;
|
|
97
|
+
formErrors$: Observable<{
|
|
98
|
+
key: string;
|
|
99
|
+
message: string;
|
|
100
|
+
}[]>;
|
|
101
|
+
formValidationErrorsMessages$: Observable<string[]>;
|
|
102
|
+
inputInEdit$: Observable<import("ngx-t-forms-types").FormColumnInputs | undefined>;
|
|
103
|
+
defaultInputInEdit$: Observable<any>;
|
|
104
|
+
inputInEditValidationErrors$: Observable<import("ngx-t-forms-types").ValidationError[]>;
|
|
105
|
+
selectFormTitle$: Observable<string | undefined>;
|
|
106
|
+
getAllFormInputs$: Observable<import("ngx-t-forms-types").FormColumnInputs[]>;
|
|
107
|
+
inputElementEditorConfigs$: Observable<{
|
|
108
|
+
editorSections: {
|
|
109
|
+
elements: import("ngx-t-forms-types").ElementEditorInnerSectionElementInterface[];
|
|
110
|
+
hasErrors: boolean;
|
|
111
|
+
label: string;
|
|
112
|
+
showItemValue?: keyof import("ngx-t-forms-types").FormColumnInputs;
|
|
113
|
+
id: string;
|
|
114
|
+
additionalTest?: import("ngx-t-forms-types").ConfigurationValidTestInterface[];
|
|
115
|
+
}[];
|
|
116
|
+
title?: string;
|
|
117
|
+
description?: string;
|
|
118
|
+
}>;
|
|
119
|
+
selectFormSlideSections$: Observable<{
|
|
120
|
+
inputConfigErrors: {
|
|
121
|
+
key: string;
|
|
122
|
+
message: string;
|
|
123
|
+
}[];
|
|
124
|
+
sectionId: string;
|
|
125
|
+
label: string;
|
|
126
|
+
columns: Array<import("ngx-t-forms-types").FormColumnInputs>;
|
|
127
|
+
inEdit?: boolean;
|
|
128
|
+
sectionIsSeen?: boolean;
|
|
129
|
+
isActive?: boolean;
|
|
130
|
+
}[]>;
|
|
131
|
+
};
|
|
132
|
+
readonly actions: {
|
|
133
|
+
loadFormListSuccess: (observableOrValue: {
|
|
134
|
+
forms: DatabaseFormInterface[];
|
|
135
|
+
} | Observable<{
|
|
136
|
+
forms: DatabaseFormInterface[];
|
|
137
|
+
}>) => import("rxjs").Subscription;
|
|
138
|
+
toggleFormBuilderBusy: () => void;
|
|
139
|
+
toggleLoadingForm: () => void;
|
|
140
|
+
toggleLoadingForms: (observableOrValue: {
|
|
141
|
+
loadingForms: boolean;
|
|
142
|
+
} | Observable<{
|
|
143
|
+
loadingForms: boolean;
|
|
144
|
+
}>) => import("rxjs").Subscription;
|
|
145
|
+
loadFormSuccess: (observableOrValue: {
|
|
146
|
+
form: DatabaseFormInterface;
|
|
147
|
+
} | Observable<{
|
|
148
|
+
form: DatabaseFormInterface;
|
|
149
|
+
}>) => import("rxjs").Subscription;
|
|
150
|
+
toggleFormBusy: (observableOrValue: {
|
|
151
|
+
formId: string;
|
|
152
|
+
} | Observable<{
|
|
153
|
+
formId: string;
|
|
154
|
+
}>) => import("rxjs").Subscription;
|
|
155
|
+
archivedSuccess: (observableOrValue: {
|
|
156
|
+
formId: string;
|
|
157
|
+
} | Observable<{
|
|
158
|
+
formId: string;
|
|
159
|
+
}>) => import("rxjs").Subscription;
|
|
160
|
+
setFormId: (observableOrValue: {
|
|
161
|
+
formId: string;
|
|
162
|
+
} | Observable<{
|
|
163
|
+
formId: string;
|
|
164
|
+
}>) => import("rxjs").Subscription;
|
|
165
|
+
setError: (observableOrValue: {
|
|
166
|
+
error: string | undefined;
|
|
167
|
+
type: import("ngx-t-forms-types").FormStateErrors;
|
|
168
|
+
} | Observable<{
|
|
169
|
+
error: string | undefined;
|
|
170
|
+
type: import("ngx-t-forms-types").FormStateErrors;
|
|
171
|
+
}>) => import("rxjs").Subscription;
|
|
172
|
+
handleListSectionChange: (observableOrValue: {
|
|
173
|
+
listSection: FormListSection;
|
|
174
|
+
} | Observable<{
|
|
175
|
+
listSection: FormListSection;
|
|
176
|
+
}>) => import("rxjs").Subscription;
|
|
177
|
+
handleRouterStateChange: (observableOrValue: {
|
|
178
|
+
routerState: import("@angular/router").ActivatedRouteSnapshot | null;
|
|
179
|
+
} | Observable<{
|
|
180
|
+
routerState: import("@angular/router").ActivatedRouteSnapshot | null;
|
|
181
|
+
}>) => import("rxjs").Subscription;
|
|
182
|
+
handleSetSubmittingForm: (observableOrValue: {
|
|
183
|
+
submittingForm: boolean;
|
|
184
|
+
} | Observable<{
|
|
185
|
+
submittingForm: boolean;
|
|
186
|
+
}>) => import("rxjs").Subscription;
|
|
187
|
+
setFormInitialValues: (observableOrValue: {
|
|
188
|
+
initialFormValues: Record<string, any>;
|
|
189
|
+
} | Observable<{
|
|
190
|
+
initialFormValues: Record<string, any>;
|
|
191
|
+
}>) => import("rxjs").Subscription;
|
|
192
|
+
handleEditorUpdateFormInEdit: (observableOrValue: {
|
|
193
|
+
form: FormInterface;
|
|
194
|
+
} | Observable<{
|
|
195
|
+
form: FormInterface;
|
|
196
|
+
}>) => import("rxjs").Subscription;
|
|
197
|
+
setInputInEditId: (observableOrValue: {
|
|
198
|
+
inputInEdit: string | null;
|
|
199
|
+
} | Observable<{
|
|
200
|
+
inputInEdit: string | null;
|
|
201
|
+
}>) => import("rxjs").Subscription;
|
|
202
|
+
};
|
|
203
|
+
readonly actionsFormBuilder: {
|
|
204
|
+
handelSaveForm: () => void;
|
|
205
|
+
setFormTitle: (title: string) => void;
|
|
206
|
+
handleSectionDragDrop: (event: import("@angular/cdk/drag-drop").CdkDragDrop<any, any, any>) => void;
|
|
207
|
+
handleInputDragDrop: (event: import("@angular/cdk/drag-drop").CdkDragDrop<any, any, any>, sectionId: string) => void;
|
|
208
|
+
handleAddSection: () => void;
|
|
209
|
+
stepTitleChangeStep: (sectionId: string, title: string) => void;
|
|
210
|
+
formDeleteInput: (item: import("ngx-t-forms-types").FormColumnInputs) => void;
|
|
211
|
+
multipleInputToggleLabel: (item: import("ngx-t-forms-types").FormColumnInputs) => void;
|
|
212
|
+
editInput: (item: import("ngx-t-forms-types").FormColumnInputs) => void;
|
|
213
|
+
addMultipleInputValueCalculationFunction: (item: import("ngx-t-forms-types").IMultipleInputCal, multipleInputId: string | undefined) => void;
|
|
214
|
+
formDeleteSection: (sectionId: string) => void;
|
|
215
|
+
moveInputToSection: (inputId: string, targetSectionId: string) => void;
|
|
216
|
+
reorderMultipleInputItems: (event: import("@angular/cdk/drag-drop").CdkDragDrop<import("ngx-t-forms-types").FormColumnInputs[], any, any>, multipleInputId: string) => void;
|
|
217
|
+
cloneCopyFormInput: (inputId: string) => void;
|
|
218
|
+
saveInput: (sectionId: string) => void;
|
|
219
|
+
applyFormTemplate: (form: FormInterface) => void;
|
|
220
|
+
selectInputTemplate: (inputId: string, element: import("ngx-t-forms-types").ElementTypes) => void;
|
|
221
|
+
formInputChange: (ele: import("ngx-t-forms-types").ElementEditorInnerSectionElementInterface, value: any) => void;
|
|
222
|
+
saveSubmitApi: (dataPlaceholder: undefined | {
|
|
223
|
+
data: import("ngx-t-forms-types").APIDataFetchingConfigurationInterface;
|
|
224
|
+
}, keyInEdit: "submissionAPI" | "canSubmitAPI" | undefined) => void;
|
|
225
|
+
removeSubmissionApi: (api: import("ngx-t-forms-types").APIDataFetchingConfigurationInterface, keyInEdit: "submissionAPI" | "canSubmitAPI" | undefined) => void;
|
|
226
|
+
elementConfigurationChanged: (inputId: string, value: any, ele: import("ngx-t-forms-types").ElementEditorInnerSectionElementInterface) => void;
|
|
227
|
+
elementBlur: (inputId: string, event: any, element: import("ngx-t-forms-types").ElementEditorInnerSectionElementInterface) => void;
|
|
228
|
+
addMultipleFormInput: (sectionId: string, multipleInputInEditId: string) => void;
|
|
229
|
+
clearInputInEdit: (inputId: string) => void;
|
|
230
|
+
};
|
|
231
|
+
readonly effects: {
|
|
232
|
+
createForm$: (observableOrValue: FormInterface | Observable<FormInterface>) => import("rxjs").Subscription;
|
|
233
|
+
loadForms$: (observableOrValue?: void | Observable<void> | undefined) => import("rxjs").Subscription;
|
|
234
|
+
loadForm$: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
235
|
+
updateForm$: (observableOrValue: FormInterface | Observable<FormInterface>) => import("rxjs").Subscription;
|
|
236
|
+
archiveForm$: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
237
|
+
setListSection$: (observableOrValue: FormListSection | Observable<FormListSection>) => import("rxjs").Subscription;
|
|
238
|
+
unArchiveForm$: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
239
|
+
deleteForm$: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
240
|
+
};
|
|
241
|
+
refreshExternalFormStates?: (form: FormInterface) => void;
|
|
242
|
+
registerFormChangeFn(fn: (form: FormInterface) => void): void;
|
|
243
|
+
createFormPlaceHolderFormGroups(form: FormInterface): void;
|
|
244
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormsStoreService, never>;
|
|
245
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormsStoreService>;
|
|
246
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DialogTemplateComponent } from "./dialog-template/dialog-template.component";
|
|
2
|
+
import { FormBuilderComponent } from "./form-builder/form-builder.component";
|
|
3
|
+
import { FormsComponent } from "./forms/forms.component";
|
|
4
|
+
import { TDynamicDataEditComponent } from "./t-dynamic-data-edit/t-dynamic-data-edit.component";
|
|
5
|
+
import { TDynamicDataViewComponent } from "./t-dynamic-data-view/t-dynamic-data-view.component";
|
|
6
|
+
import { SyncEditorComponent } from "./t-form-input/elements/editor-input-element/core/form-input-rich-text-editor/sync-editor/sync-editor.component";
|
|
7
|
+
import { MscoaFormInputComponent } from "./t-form-input/elements/mscoa-form-input/mscoa-form-input.component";
|
|
8
|
+
import { SignatureInputElementComponent } from "./t-form-input/elements/signature-input-element/signature-input-element.component";
|
|
9
|
+
import { TFormInputComponent } from "./t-form-input/t-form-input.component";
|
|
10
|
+
import { UserFormStepperComponent } from "./user-form-stepper/user-form-stepper.component";
|
|
11
|
+
export { FormsComponent, FormBuilderComponent, MscoaFormInputComponent, UserFormStepperComponent, TFormInputComponent, SyncEditorComponent, TDynamicDataEditComponent, TDynamicDataViewComponent, DialogTemplateComponent, SignatureInputElementComponent };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { TreeNode } from "ngx-t-forms-types";
|
|
3
|
+
import { FormColumnInputs } from 'ngx-t-forms-types';
|
|
4
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { NgControl } from '@angular/forms';
|
|
7
|
+
import { IConfigElementError } from '../../t-dynamic-data-edit.component';
|
|
8
|
+
import { IFolderItem, IPostmanCollectionConfig } from "ngx-t-forms-types";
|
|
9
|
+
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class ApiValueAccessRulesComponent implements MatFormFieldControl<TreeNode[] | string | {
|
|
12
|
+
[key: string]: TreeNode[] | string;
|
|
13
|
+
}> {
|
|
14
|
+
ngControl: NgControl;
|
|
15
|
+
private _elementRef;
|
|
16
|
+
private readonly httpClient;
|
|
17
|
+
static nextId: number;
|
|
18
|
+
stateChanges: Subject<void>;
|
|
19
|
+
id: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
constructor(ngControl: NgControl, _elementRef: ElementRef<HTMLElement>, httpClient: HttpClient);
|
|
22
|
+
focused: boolean;
|
|
23
|
+
get empty(): boolean;
|
|
24
|
+
get shouldLabelFloat(): boolean;
|
|
25
|
+
required: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
get errorState(): boolean;
|
|
28
|
+
controlType?: string | undefined;
|
|
29
|
+
autofilled?: boolean | undefined;
|
|
30
|
+
userAriaDescribedBy?: string | undefined;
|
|
31
|
+
disableAutomaticLabeling?: boolean | undefined;
|
|
32
|
+
setDescribedByIds(ids: string[]): void;
|
|
33
|
+
onContainerClick(event: MouseEvent): void;
|
|
34
|
+
touched: boolean;
|
|
35
|
+
onTouched: () => void;
|
|
36
|
+
markAsTouched(): void;
|
|
37
|
+
multipleBind: string[] | undefined;
|
|
38
|
+
errors: IConfigElementError[] | undefined;
|
|
39
|
+
value: TreeNode[] | string | {
|
|
40
|
+
[key: string]: TreeNode[] | string;
|
|
41
|
+
};
|
|
42
|
+
mapToData: any;
|
|
43
|
+
formInputs: FormColumnInputs[];
|
|
44
|
+
valueChanged: EventEmitter<any>;
|
|
45
|
+
reload: EventEmitter<any>;
|
|
46
|
+
_postManCollectionConfig: IPostmanCollectionConfig | undefined;
|
|
47
|
+
set postmanCollectionConfig(postmanCollectionConfig: IPostmanCollectionConfig | undefined);
|
|
48
|
+
get postmanCollectionConfig(): IPostmanCollectionConfig | undefined;
|
|
49
|
+
get computedValue(): any;
|
|
50
|
+
pathChanged(path: TreeNode[] | string, control?: string): void;
|
|
51
|
+
private isValidConfig;
|
|
52
|
+
error: HttpErrorResponse | undefined;
|
|
53
|
+
loading: boolean;
|
|
54
|
+
postManFolderItems: IFolderItem[];
|
|
55
|
+
private initializePostmanService;
|
|
56
|
+
get postmanResponseBody(): any;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiValueAccessRulesComponent, [{ optional: true; self: true; }, null, null]>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApiValueAccessRulesComponent, "app-api-value-access-rules", never, { "multipleBind": { "alias": "multipleBind"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "value": { "alias": "value"; "required": false; }; "mapToData": { "alias": "mapToData"; "required": false; }; "formInputs": { "alias": "formInputs"; "required": false; }; "postmanCollectionConfig": { "alias": "postmanCollectionConfig"; "required": false; }; }, { "valueChanged": "valueChanged"; "reload": "reload"; }, never, never, true, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { TreeComponent } from '../../functions/convertDataToTree';
|
|
3
|
+
import { FlatNode, TreeNode } from 'ngx-t-forms-types';
|
|
4
|
+
import { FormColumnInputs } from 'ngx-t-forms-types';
|
|
5
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DataTreeComponent implements OnInit, OnChanges {
|
|
8
|
+
treeClass: TreeComponent;
|
|
9
|
+
data: any;
|
|
10
|
+
value: TreeNode[] | string;
|
|
11
|
+
formInputs: FormColumnInputs[];
|
|
12
|
+
pathChanged: EventEmitter<string | TreeNode[]>;
|
|
13
|
+
constructor();
|
|
14
|
+
_data: any;
|
|
15
|
+
_value: TreeNode[] | string;
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
textareaElementRef: ElementRef;
|
|
19
|
+
showSuggestions: boolean;
|
|
20
|
+
suggestions: string[];
|
|
21
|
+
filteredSuggestions: string[];
|
|
22
|
+
cursorPosition: number;
|
|
23
|
+
valueChangedSetPath(newPath: TreeNode[] | string): void;
|
|
24
|
+
onTextChange(event: Event): Promise<void>;
|
|
25
|
+
functionChanged(event: MatSelectChange): void;
|
|
26
|
+
addNewFunction(): void;
|
|
27
|
+
editFunction(id: string): void;
|
|
28
|
+
selectSuggestionInput(suggestion: string): void;
|
|
29
|
+
onFocus(event: FocusEvent): void;
|
|
30
|
+
nodeIsChecked(node: FlatNode): boolean;
|
|
31
|
+
hasANodeInEdit(): boolean;
|
|
32
|
+
showNode(node: FlatNode): boolean;
|
|
33
|
+
onSearchChange(event: Event): void;
|
|
34
|
+
methods: {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[];
|
|
38
|
+
getMethods(): any[];
|
|
39
|
+
getNodeValueColor(v: any): "#c56100" | "mediumblue" | "forestgreen" | "#005959" | "currentcolor";
|
|
40
|
+
setupPath(node: TreeNode): void;
|
|
41
|
+
trackByFn(index: number, node: TreeNode): string;
|
|
42
|
+
showValue: boolean;
|
|
43
|
+
optionsSearch: string;
|
|
44
|
+
getAllInputs(): any[];
|
|
45
|
+
getValueVariables(): string[];
|
|
46
|
+
saveNodeInEdit(): void;
|
|
47
|
+
closeEdit(): void;
|
|
48
|
+
reset(): void;
|
|
49
|
+
getFunctionInEdit(): {
|
|
50
|
+
function: "filter" | "find";
|
|
51
|
+
id: string;
|
|
52
|
+
expression: string;
|
|
53
|
+
inEdit?: boolean;
|
|
54
|
+
} | undefined;
|
|
55
|
+
get getValue(): any;
|
|
56
|
+
removeFunction(id: string): void;
|
|
57
|
+
update(node: any): void;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTreeComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTreeComponent, "app-data-tree", never, { "data": { "alias": "data"; "required": false; }; "value": { "alias": "value"; "required": false; }; "formInputs": { "alias": "formInputs"; "required": false; }; }, { "pathChanged": "pathChanged"; }, never, never, true, never>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
2
|
+
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
|
|
3
|
+
import { TreeNode, FlatNode } from 'ngx-t-forms-types';
|
|
4
|
+
export interface ObjectTreeNode {
|
|
5
|
+
name: string;
|
|
6
|
+
children?: ObjectTreeNode[];
|
|
7
|
+
path: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface ObjectTreeFlatNode {
|
|
10
|
+
expandable: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
level: number;
|
|
13
|
+
path: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare function convertToTree(obj: any, parentPath?: string[]): TreeNode[];
|
|
16
|
+
export declare class TreeComponent {
|
|
17
|
+
activePath: TreeNode[];
|
|
18
|
+
pathInEdit: TreeNode | null;
|
|
19
|
+
get activeLevel(): number;
|
|
20
|
+
private _transformer;
|
|
21
|
+
setupPath(node: TreeNode): void;
|
|
22
|
+
updateStateFromPath(path: TreeNode[]): void;
|
|
23
|
+
selectNode(node: FlatNode): TreeNode[] | undefined;
|
|
24
|
+
saveNodeInEdit(): {
|
|
25
|
+
children: undefined;
|
|
26
|
+
value: undefined;
|
|
27
|
+
key: string;
|
|
28
|
+
name: string;
|
|
29
|
+
inEdit?: boolean;
|
|
30
|
+
path: string[];
|
|
31
|
+
keyIsArrayIndex?: boolean;
|
|
32
|
+
functions: {
|
|
33
|
+
function: "filter" | "find";
|
|
34
|
+
id: string;
|
|
35
|
+
expression: string;
|
|
36
|
+
inEdit?: boolean;
|
|
37
|
+
}[];
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
resetNode(): void;
|
|
40
|
+
removeFunction(id: string): void;
|
|
41
|
+
closeEdit(): void;
|
|
42
|
+
nodeIsExpandable(node: TreeNode): boolean;
|
|
43
|
+
showNode(node: FlatNode): boolean;
|
|
44
|
+
hasANodeInEdit(): boolean;
|
|
45
|
+
nodeIsChecked(node: FlatNode): boolean;
|
|
46
|
+
treeControl: FlatTreeControl<FlatNode, FlatNode>;
|
|
47
|
+
treeFlattener: MatTreeFlattener<TreeNode, FlatNode, FlatNode>;
|
|
48
|
+
dataSource: MatTreeFlatDataSource<TreeNode, FlatNode, FlatNode>;
|
|
49
|
+
private dynamicObject;
|
|
50
|
+
constructor();
|
|
51
|
+
computeTreeData(dynamicObject: any): void;
|
|
52
|
+
assignDataSourceData(tree: TreeNode[]): void;
|
|
53
|
+
hasChild: (_: number, node: FlatNode) => boolean;
|
|
54
|
+
getValue(): any;
|
|
55
|
+
addNewFunction(): void;
|
|
56
|
+
functionChanged(value: string): void;
|
|
57
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { CalculatedFieldRules, TableConfigurationsInterface } from 'ngx-t-forms-types';
|
|
3
|
+
import { FormColumnInputs } from 'ngx-t-forms-types';
|
|
4
|
+
import { NgControl } from '@angular/forms';
|
|
5
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
6
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
import { IConfigElementError } from '../../t-dynamic-data-edit.component';
|
|
9
|
+
import { CalculationFunctions, calculationVariableInterface } from "ngx-t-forms-types";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class CalculatedFieldRulesComponent implements OnInit, MatFormFieldControl<CalculatedFieldRules | undefined> {
|
|
12
|
+
ngControl: NgControl;
|
|
13
|
+
private _elementRef;
|
|
14
|
+
static nextId: number;
|
|
15
|
+
stateChanges: Subject<void>;
|
|
16
|
+
id: string;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
constructor(ngControl: NgControl, _elementRef: ElementRef<HTMLElement>);
|
|
19
|
+
focused: boolean;
|
|
20
|
+
get empty(): boolean;
|
|
21
|
+
get shouldLabelFloat(): boolean;
|
|
22
|
+
required: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
get errorState(): boolean;
|
|
25
|
+
controlType?: string | undefined;
|
|
26
|
+
autofilled?: boolean | undefined;
|
|
27
|
+
userAriaDescribedBy?: string | undefined;
|
|
28
|
+
disableAutomaticLabeling?: boolean | undefined;
|
|
29
|
+
setDescribedByIds(ids: string[]): void;
|
|
30
|
+
onContainerClick(event: MouseEvent): void;
|
|
31
|
+
touched: boolean;
|
|
32
|
+
onTouched: () => void;
|
|
33
|
+
markAsTouched(): void;
|
|
34
|
+
mapToData: FormColumnInputs | undefined;
|
|
35
|
+
_value: CalculatedFieldRules;
|
|
36
|
+
set value(value: CalculatedFieldRules);
|
|
37
|
+
get value(): CalculatedFieldRules;
|
|
38
|
+
formInputs: Array<FormColumnInputs>;
|
|
39
|
+
errors: IConfigElementError[] | undefined;
|
|
40
|
+
valueChange2dWithPath: EventEmitter<any>;
|
|
41
|
+
valueChanged: EventEmitter<any>;
|
|
42
|
+
get allCalculationFunction(): CalculationFunctions[];
|
|
43
|
+
ngOnInit(): void;
|
|
44
|
+
applyColTo(): any;
|
|
45
|
+
get numberInputs(): FormColumnInputs[];
|
|
46
|
+
get tableMode(): Boolean;
|
|
47
|
+
get tableConfig(): TableConfigurationsInterface | undefined;
|
|
48
|
+
inputIsInItemList(v: FormColumnInputs): any;
|
|
49
|
+
selectedVariableIsTable(): boolean;
|
|
50
|
+
selectedInputVariable(): any;
|
|
51
|
+
checkIfInputCanBeLinkedToCalVariable(currentInput: FormColumnInputs | undefined, inputToDisable: {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
formControlName: any;
|
|
54
|
+
}): boolean | undefined;
|
|
55
|
+
valueChangedPost(event: any): void;
|
|
56
|
+
activeVariable: any;
|
|
57
|
+
addVariable(): void;
|
|
58
|
+
linkFormulaSource(event: MatSelectChange): void;
|
|
59
|
+
showVariableConfig: boolean;
|
|
60
|
+
bindInput(inputId: string): void;
|
|
61
|
+
formulaChanged(event: any): void;
|
|
62
|
+
bindTableCol(event: {
|
|
63
|
+
stopPropagation: () => void;
|
|
64
|
+
}, col: string): void;
|
|
65
|
+
tableFunctionToCol(event: {
|
|
66
|
+
stopPropagation: () => void;
|
|
67
|
+
}, col: string | number | any): void;
|
|
68
|
+
filterValuesByThisCol(event: {
|
|
69
|
+
stopPropagation: () => void;
|
|
70
|
+
}, col: string): void;
|
|
71
|
+
unlick(event: {
|
|
72
|
+
stopPropagation: () => void;
|
|
73
|
+
}): void;
|
|
74
|
+
unlinkTableFunctionToCol(event: {
|
|
75
|
+
stopPropagation: () => void;
|
|
76
|
+
}): void;
|
|
77
|
+
unlinkTableFilter(event: {
|
|
78
|
+
stopPropagation: () => void;
|
|
79
|
+
}): void;
|
|
80
|
+
functions: {
|
|
81
|
+
value: string;
|
|
82
|
+
label: string;
|
|
83
|
+
}[];
|
|
84
|
+
attachFunction(event: {
|
|
85
|
+
stopPropagation: () => void;
|
|
86
|
+
}, value: any): void;
|
|
87
|
+
saveNewVariable(event: any): void;
|
|
88
|
+
remove(variable: calculationVariableInterface): void;
|
|
89
|
+
cancelVariableConfig(event: any): void;
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculatedFieldRulesComponent, [{ optional: true; self: true; }, null]>;
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalculatedFieldRulesComponent, "app-calculated-field-rules", never, { "mapToData": { "alias": "mapToData"; "required": false; }; "value": { "alias": "value"; "required": false; }; "formInputs": { "alias": "formInputs"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; }, { "valueChange2dWithPath": "valueChange2dWithPath"; "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
92
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { FormColumnInputs } from 'ngx-t-forms-types';
|
|
5
|
+
import { IGetTreeResponse } from 'ngx-t-forms-types';
|
|
6
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
7
|
+
import { NgControl } from '@angular/forms';
|
|
8
|
+
import { IConfigElementError } from '../../t-dynamic-data-edit.component';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
interface ConfiguredMscoaInput extends FormColumnInputs {
|
|
11
|
+
segment: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class ConfigMscoaAdditionalInputsComponent implements OnInit, MatFormFieldControl<ConfiguredMscoaInput[]> {
|
|
14
|
+
ngControl: NgControl;
|
|
15
|
+
private _elementRef;
|
|
16
|
+
static nextId: number;
|
|
17
|
+
stateChanges: Subject<void>;
|
|
18
|
+
id: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
constructor(ngControl: NgControl, _elementRef: ElementRef<HTMLElement>);
|
|
21
|
+
focused: boolean;
|
|
22
|
+
get empty(): boolean;
|
|
23
|
+
get shouldLabelFloat(): boolean;
|
|
24
|
+
required: boolean;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
get errorState(): boolean;
|
|
27
|
+
controlType?: string | undefined;
|
|
28
|
+
autofilled?: boolean | undefined;
|
|
29
|
+
userAriaDescribedBy?: string | undefined;
|
|
30
|
+
disableAutomaticLabeling?: boolean | undefined;
|
|
31
|
+
setDescribedByIds(ids: string[]): void;
|
|
32
|
+
onContainerClick(event: MouseEvent): void;
|
|
33
|
+
touched: boolean;
|
|
34
|
+
onTouched: () => void;
|
|
35
|
+
markAsTouched(): void;
|
|
36
|
+
mscoaInitiated: boolean;
|
|
37
|
+
errors: IConfigElementError[] | undefined;
|
|
38
|
+
set getMscoaTree(options$: Observable<IGetTreeResponse> | undefined);
|
|
39
|
+
mapToData: FormColumnInputs | undefined;
|
|
40
|
+
set value(val: ConfiguredMscoaInput[]);
|
|
41
|
+
get value(): ConfiguredMscoaInput[];
|
|
42
|
+
_inputInEdit: BehaviorSubject<ConfiguredMscoaInput | null>;
|
|
43
|
+
inputInEdit: ConfiguredMscoaInput | undefined;
|
|
44
|
+
valueChanged: EventEmitter<ConfiguredMscoaInput[]>;
|
|
45
|
+
private _value;
|
|
46
|
+
editingIndex: number | null;
|
|
47
|
+
isAddingNew: boolean;
|
|
48
|
+
accountTreeKeys: string[];
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
hovered: null | number;
|
|
51
|
+
startAddNew(): void;
|
|
52
|
+
startEdit(index: number): void;
|
|
53
|
+
removeInput(index: number): void;
|
|
54
|
+
cancelEdit(): void;
|
|
55
|
+
saveSegment(): void;
|
|
56
|
+
hoveredIndex: number | null;
|
|
57
|
+
removeSegment(index: number): void;
|
|
58
|
+
parentId: string | undefined;
|
|
59
|
+
openElementEditor(): Promise<void>;
|
|
60
|
+
inputSegmentChanged($event: any, i: number): void;
|
|
61
|
+
readonly dialog: MatDialog;
|
|
62
|
+
openFormDialog(): void;
|
|
63
|
+
get limitInputTo(): ({
|
|
64
|
+
value: string;
|
|
65
|
+
label: string;
|
|
66
|
+
} | {
|
|
67
|
+
value: undefined;
|
|
68
|
+
label: string;
|
|
69
|
+
})[];
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigMscoaAdditionalInputsComponent, [{ optional: true; self: true; }, null]>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigMscoaAdditionalInputsComponent, "app-config-mscoa-additional-inputs", never, { "errors": { "alias": "errors"; "required": false; }; "getMscoaTree": { "alias": "getMscoaTree"; "required": false; }; "mapToData": { "alias": "mapToData"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
72
|
+
}
|
|
73
|
+
export {};
|