ngx-t-forms-types 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/dist/Configs/currencies.d.ts +6 -0
- package/dist/Configs/currencies.js +1083 -0
- package/dist/Configs/datePipes.d.ts +4 -0
- package/dist/Configs/datePipes.js +16 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/interfaces/Form/ArrayFunctions.d.ts +9 -0
- package/dist/interfaces/Form/ArrayFunctions.js +7 -0
- package/dist/interfaces/Form/CustomeConfigInter.d.ts +10 -0
- package/dist/interfaces/Form/CustomeConfigInter.js +1 -0
- package/dist/interfaces/Form/FileUploadFn.d.ts +11 -0
- package/dist/interfaces/Form/FileUploadFn.js +1 -0
- package/dist/interfaces/Form/FormInClassUtils.d.ts +52 -0
- package/dist/interfaces/Form/FormInClassUtils.js +1 -0
- package/dist/interfaces/Form/IFormsInitStateInterface.d.ts +51 -0
- package/dist/interfaces/Form/IFormsInitStateInterface.js +14 -0
- package/dist/interfaces/Form/PrePopulateDataInterface.d.ts +4 -0
- package/dist/interfaces/Form/PrePopulateDataInterface.js +1 -0
- package/dist/interfaces/Form/formChangeHistory.d.ts +5 -0
- package/dist/interfaces/Form/formChangeHistory.js +1 -0
- package/dist/interfaces/Form/formInterface.d.ts +19 -0
- package/dist/interfaces/Form/formInterface.js +1 -0
- package/dist/interfaces/Form/formSubmissionHandleInterface.d.ts +7 -0
- package/dist/interfaces/Form/formSubmissionHandleInterface.js +1 -0
- package/dist/interfaces/Form/index.d.ts +12 -0
- package/dist/interfaces/Form/index.js +2 -0
- package/dist/interfaces/FormBuilder/DefaultEelement.d.ts +3 -0
- package/dist/interfaces/FormBuilder/DefaultEelement.js +741 -0
- package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.d.ts +143 -0
- package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.js +1 -0
- package/dist/interfaces/FormBuilder/ElementEditorTypes.d.ts +31 -0
- package/dist/interfaces/FormBuilder/ElementEditorTypes.js +40 -0
- package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.d.ts +20 -0
- package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.js +1 -0
- package/dist/interfaces/FormBuilder/FormInputKeys.d.ts +86 -0
- package/dist/interfaces/FormBuilder/FormInputKeys.js +90 -0
- package/dist/interfaces/FormBuilder/elementEditor.d.ts +82 -0
- package/dist/interfaces/FormBuilder/elementEditor.js +34 -0
- package/dist/interfaces/FormBuilder/index.d.ts +10 -0
- package/dist/interfaces/FormBuilder/index.js +6 -0
- package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.d.ts +3 -0
- package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.js +644 -0
- package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.d.ts +1 -0
- package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.js +37 -0
- package/dist/interfaces/FormBuilder/postmanCollection.d.ts +126 -0
- package/dist/interfaces/FormBuilder/postmanCollection.js +1 -0
- package/dist/interfaces/FormBuilder/workflowSelectionConfig.d.ts +7 -0
- package/dist/interfaces/FormBuilder/workflowSelectionConfig.js +1 -0
- package/dist/interfaces/FormSlide/accessTree.d.ts +23 -0
- package/dist/interfaces/FormSlide/accessTree.js +1 -0
- package/dist/interfaces/FormSlide/controlValidation.d.ts +12 -0
- package/dist/interfaces/FormSlide/controlValidation.js +1 -0
- package/dist/interfaces/FormSlide/formSlideInterface.d.ts +22 -0
- package/dist/interfaces/FormSlide/formSlideInterface.js +7 -0
- package/dist/interfaces/FormSlide/index.d.ts +4 -0
- package/dist/interfaces/FormSlide/index.js +2 -0
- package/dist/interfaces/Tower/ITowerFormSteps.d.ts +14 -0
- package/dist/interfaces/Tower/ITowerFormSteps.js +1 -0
- package/dist/interfaces/Tower/index.d.ts +2 -0
- package/dist/interfaces/Tower/index.js +1 -0
- package/dist/interfaces/environment/IStoreFunctions.d.ts +58 -0
- package/dist/interfaces/environment/IStoreFunctions.js +1 -0
- package/dist/interfaces/environment/environment.d.ts +6 -0
- package/dist/interfaces/environment/environment.js +1 -0
- package/dist/interfaces/environment/index.d.ts +2 -0
- package/dist/interfaces/environment/index.js +1 -0
- package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.d.ts +54 -0
- package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.js +7 -0
- package/dist/interfaces/formInput/BasicFormInputInterface.d.ts +141 -0
- package/dist/interfaces/formInput/BasicFormInputInterface.js +99 -0
- package/dist/interfaces/formInput/ConditionalInputRule.d.ts +7 -0
- package/dist/interfaces/formInput/ConditionalInputRule.js +1 -0
- package/dist/interfaces/formInput/DateRangePickerInput.d.ts +9 -0
- package/dist/interfaces/formInput/DateRangePickerInput.js +1 -0
- package/dist/interfaces/formInput/FileUploadInputInterface.d.ts +49 -0
- package/dist/interfaces/formInput/FileUploadInputInterface.js +40 -0
- package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.d.ts +10 -0
- package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.js +1 -0
- package/dist/interfaces/formInput/FormInputBasicOptionInterface.d.ts +4 -0
- package/dist/interfaces/formInput/FormInputBasicOptionInterface.js +1 -0
- package/dist/interfaces/formInput/FormSectionTitleDescription.d.ts +6 -0
- package/dist/interfaces/formInput/FormSectionTitleDescription.js +1 -0
- package/dist/interfaces/formInput/IMscoaAccount.d.ts +84 -0
- package/dist/interfaces/formInput/IMscoaAccount.js +1 -0
- package/dist/interfaces/formInput/MatDataOptionsInterface.d.ts +14 -0
- package/dist/interfaces/formInput/MatDataOptionsInterface.js +1 -0
- package/dist/interfaces/formInput/MatrixInputInterface.d.ts +8 -0
- package/dist/interfaces/formInput/MatrixInputInterface.js +1 -0
- package/dist/interfaces/formInput/MinimumInputRequiredInterface.d.ts +33 -0
- package/dist/interfaces/formInput/MinimumInputRequiredInterface.js +18 -0
- package/dist/interfaces/formInput/MscoaInput.d.ts +16 -0
- package/dist/interfaces/formInput/MscoaInput.js +19 -0
- package/dist/interfaces/formInput/MultipleInterface.d.ts +15 -0
- package/dist/interfaces/formInput/MultipleInterface.js +1 -0
- package/dist/interfaces/formInput/RichTextEditorInput.d.ts +8 -0
- package/dist/interfaces/formInput/RichTextEditorInput.js +5 -0
- package/dist/interfaces/formInput/TableConfigurationsInterface.d.ts +17 -0
- package/dist/interfaces/formInput/TableConfigurationsInterface.js +1 -0
- package/dist/interfaces/formInput/TableSelectionInput.d.ts +6 -0
- package/dist/interfaces/formInput/TableSelectionInput.js +1 -0
- package/dist/interfaces/formInput/TextAreaInput.d.ts +5 -0
- package/dist/interfaces/formInput/TextAreaInput.js +1 -0
- package/dist/interfaces/formInput/ToggleInputInterface.d.ts +8 -0
- package/dist/interfaces/formInput/ToggleInputInterface.js +5 -0
- package/dist/interfaces/formInput/calculatedFieldRules.d.ts +7 -0
- package/dist/interfaces/formInput/calculatedFieldRules.js +1 -0
- package/dist/interfaces/formInput/calculationVariableInterface.d.ts +21 -0
- package/dist/interfaces/formInput/calculationVariableInterface.js +7 -0
- package/dist/interfaces/formInput/index.d.ts +22 -0
- package/dist/interfaces/formInput/index.js +7 -0
- package/dist/interfaces/formInput/schema.d.ts +9 -0
- package/dist/interfaces/formInput/schema.js +1 -0
- package/dist/interfaces/formInput/userSignature.d.ts +7 -0
- package/dist/interfaces/formInput/userSignature.js +1 -0
- package/dist/interfaces/pipeline-builder/index.d.ts +2 -0
- package/dist/interfaces/pipeline-builder/index.js +2 -0
- package/dist/interfaces/pipeline-builder/pipelineStages.d.ts +47 -0
- package/dist/interfaces/pipeline-builder/pipelineStages.js +30 -0
- package/dist/interfaces/upgradeFunctions/interfaces/init-form.d.ts +268 -0
- package/dist/interfaces/upgradeFunctions/interfaces/init-form.js +6 -0
- package/dist/schemas/CalculatedFieldRulesSchema.d.ts +6 -0
- package/dist/schemas/CalculatedFieldRulesSchema.js +27 -0
- package/dist/schemas/FormInputSchema.d.ts +15 -0
- package/dist/schemas/FormInputSchema.js +197 -0
- package/dist/schemas/FormSchema.d.ts +26 -0
- package/dist/schemas/FormSchema.js +134 -0
- package/dist/schemas/MatOptionsSchema.d.ts +8 -0
- package/dist/schemas/MatOptionsSchema.js +54 -0
- package/dist/schemas/MscoaConfigSchema.d.ts +8 -0
- package/dist/schemas/MscoaConfigSchema.js +22 -0
- package/dist/schemas/customValidationSchema.d.ts +2 -0
- package/dist/schemas/customValidationSchema.js +8 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +4 -0
- package/dist/schemas/tests/FormInputValidator.spec.d.ts +1 -0
- package/dist/schemas/tests/FormInputValidator.spec.js +68 -0
- package/dist/schemas/tests/MOCK_DATA.d.ts +49 -0
- package/dist/schemas/tests/MOCK_DATA.js +59 -0
- package/package.json +61 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export interface IPostmanCollectionConfig {
|
|
2
|
+
collectionUrl: string;
|
|
3
|
+
collectionKey: string;
|
|
4
|
+
}
|
|
5
|
+
export interface Info {
|
|
6
|
+
_postman_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
schema: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
lastUpdatedBy: string;
|
|
13
|
+
uid: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ProtocolProfileBehavior {
|
|
16
|
+
disableBodyPruning: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface Raw {
|
|
19
|
+
language: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Option {
|
|
22
|
+
raw: Raw;
|
|
23
|
+
}
|
|
24
|
+
export interface Body {
|
|
25
|
+
mode: string;
|
|
26
|
+
raw: string;
|
|
27
|
+
options: Option;
|
|
28
|
+
}
|
|
29
|
+
export interface Url {
|
|
30
|
+
raw: string;
|
|
31
|
+
host: string[];
|
|
32
|
+
path: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface Request {
|
|
35
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
36
|
+
header: any[];
|
|
37
|
+
body: Body;
|
|
38
|
+
url: Url;
|
|
39
|
+
description: string;
|
|
40
|
+
}
|
|
41
|
+
export interface Raw {
|
|
42
|
+
language: string;
|
|
43
|
+
}
|
|
44
|
+
export interface Option {
|
|
45
|
+
raw: Raw;
|
|
46
|
+
}
|
|
47
|
+
export interface Body {
|
|
48
|
+
mode: string;
|
|
49
|
+
raw: string;
|
|
50
|
+
options: Option;
|
|
51
|
+
}
|
|
52
|
+
export interface Url {
|
|
53
|
+
raw: string;
|
|
54
|
+
protocol: string;
|
|
55
|
+
host: string[];
|
|
56
|
+
port: string;
|
|
57
|
+
path: string[];
|
|
58
|
+
}
|
|
59
|
+
export interface OriginalRequest {
|
|
60
|
+
method: string;
|
|
61
|
+
header: any[];
|
|
62
|
+
body: Body;
|
|
63
|
+
url: Url;
|
|
64
|
+
}
|
|
65
|
+
export interface Header {
|
|
66
|
+
key: string;
|
|
67
|
+
value: string;
|
|
68
|
+
}
|
|
69
|
+
export interface Response {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
originalRequest: OriginalRequest;
|
|
73
|
+
status: string;
|
|
74
|
+
code: number;
|
|
75
|
+
_postman_previewlanguage: string;
|
|
76
|
+
header: Header[];
|
|
77
|
+
cookie: any[];
|
|
78
|
+
responseTime?: any;
|
|
79
|
+
body: string;
|
|
80
|
+
uid: string;
|
|
81
|
+
}
|
|
82
|
+
export interface IFolderItem {
|
|
83
|
+
name: string;
|
|
84
|
+
id: string;
|
|
85
|
+
protocolProfileBehavior: ProtocolProfileBehavior;
|
|
86
|
+
request?: Request;
|
|
87
|
+
response?: Response[];
|
|
88
|
+
uid: string;
|
|
89
|
+
item: IFolderItem[];
|
|
90
|
+
description?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface Bearer {
|
|
93
|
+
key: string;
|
|
94
|
+
value: string;
|
|
95
|
+
type: string;
|
|
96
|
+
}
|
|
97
|
+
export interface Auth {
|
|
98
|
+
type: string;
|
|
99
|
+
bearer: Bearer[];
|
|
100
|
+
}
|
|
101
|
+
export interface Package {
|
|
102
|
+
}
|
|
103
|
+
export interface Script {
|
|
104
|
+
id: string;
|
|
105
|
+
type: string;
|
|
106
|
+
packages: Package;
|
|
107
|
+
exec: string[];
|
|
108
|
+
}
|
|
109
|
+
export interface Event {
|
|
110
|
+
listen: string;
|
|
111
|
+
script: Script;
|
|
112
|
+
}
|
|
113
|
+
export interface Variable {
|
|
114
|
+
key: string;
|
|
115
|
+
value: string;
|
|
116
|
+
}
|
|
117
|
+
export interface IPostmanCollection {
|
|
118
|
+
info: Info;
|
|
119
|
+
item: IFolderItem[];
|
|
120
|
+
auth: Auth;
|
|
121
|
+
event: Event[];
|
|
122
|
+
variable: Variable[];
|
|
123
|
+
}
|
|
124
|
+
export interface IGetPostmanCollections {
|
|
125
|
+
collection: IPostmanCollection;
|
|
126
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface TreeNode {
|
|
2
|
+
key: string;
|
|
3
|
+
value: any;
|
|
4
|
+
name: string;
|
|
5
|
+
children?: TreeNode[];
|
|
6
|
+
inEdit?: boolean;
|
|
7
|
+
path: string[];
|
|
8
|
+
keyIsArrayIndex?: boolean;
|
|
9
|
+
functions: {
|
|
10
|
+
function: "filter" | "find";
|
|
11
|
+
id: string;
|
|
12
|
+
expression: string;
|
|
13
|
+
inEdit?: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export interface FlatNode {
|
|
17
|
+
expandable: boolean;
|
|
18
|
+
key: string;
|
|
19
|
+
value: any;
|
|
20
|
+
level: number;
|
|
21
|
+
path: string[];
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ControlValidation {
|
|
2
|
+
formControlName: string;
|
|
3
|
+
value: any;
|
|
4
|
+
message: string;
|
|
5
|
+
label: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface FormValidationReasons {
|
|
8
|
+
validationMessage: string;
|
|
9
|
+
comment: string;
|
|
10
|
+
formControlName: string;
|
|
11
|
+
attachment: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FormColumnInputs } from "../formInput/BasicFormInputInterface";
|
|
2
|
+
export declare enum FormSubmissionStatus {
|
|
3
|
+
SUBMITTING = "submitting",
|
|
4
|
+
UPLOADING = "uploading",
|
|
5
|
+
VALIDATING = "validating",
|
|
6
|
+
FAILED = "failed"
|
|
7
|
+
}
|
|
8
|
+
export interface FormSlideInterface {
|
|
9
|
+
sectionId: string;
|
|
10
|
+
label: string;
|
|
11
|
+
columns: Array<FormColumnInputs>;
|
|
12
|
+
inEdit?: boolean;
|
|
13
|
+
sectionIsSeen?: boolean;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FormSlideExtended extends FormSlideInterface {
|
|
17
|
+
inputConfigErrors: Array<{
|
|
18
|
+
key: string;
|
|
19
|
+
message: string;
|
|
20
|
+
}>;
|
|
21
|
+
inputClasses: Array<any>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var FormSubmissionStatus;
|
|
2
|
+
(function (FormSubmissionStatus) {
|
|
3
|
+
FormSubmissionStatus["SUBMITTING"] = "submitting";
|
|
4
|
+
FormSubmissionStatus["UPLOADING"] = "uploading";
|
|
5
|
+
FormSubmissionStatus["VALIDATING"] = "validating";
|
|
6
|
+
FormSubmissionStatus["FAILED"] = "failed";
|
|
7
|
+
})(FormSubmissionStatus || (FormSubmissionStatus = {}));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FlatNode } from "./accessTree";
|
|
2
|
+
import { ControlValidation, FormValidationReasons } from "./controlValidation";
|
|
3
|
+
import { FormSlideExtended, FormSlideInterface, FormSubmissionStatus } from "./formSlideInterface";
|
|
4
|
+
export { ControlValidation, FormValidationReasons, FormSlideInterface, FormSlideExtended, FormSubmissionStatus, FlatNode };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormColumnInputs } from '../formInput/BasicFormInputInterface';
|
|
3
|
+
export interface ITowerFormSteps {
|
|
4
|
+
label: string;
|
|
5
|
+
sectionId: string;
|
|
6
|
+
sectionForm: FormGroup<any> | null;
|
|
7
|
+
sectionIsInvalid: boolean | undefined;
|
|
8
|
+
sectionIsSeen: boolean | undefined;
|
|
9
|
+
sectionFormErrorMessage: string;
|
|
10
|
+
activeSectionHasTour: boolean;
|
|
11
|
+
tourOptions: (string | undefined)[];
|
|
12
|
+
columns: FormColumnInputs[];
|
|
13
|
+
isActive: boolean | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { DatabaseFormInterface, FileUploadFn, FormInterface } from "../Form";
|
|
3
|
+
import { IWorkflowOption } from "../FormBuilder";
|
|
4
|
+
import { IGetTreeResponse } from "../formInput";
|
|
5
|
+
import { FormListSection } from "../Form/IFormsInitStateInterface";
|
|
6
|
+
import { IUserSignature } from "../formInput/userSignature";
|
|
7
|
+
import { PointGroup } from "signature_pad";
|
|
8
|
+
export interface DialogConfig {
|
|
9
|
+
title: string;
|
|
10
|
+
message: string;
|
|
11
|
+
noText: string;
|
|
12
|
+
yesText: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ActionButton {
|
|
15
|
+
icon: string;
|
|
16
|
+
color: string;
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface IStoreFunctions {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
formsCloseButton: ActionButton;
|
|
22
|
+
formBuilderCloseButton: ActionButton;
|
|
23
|
+
createForm: (form: FormInterface) => Observable<DatabaseFormInterface>;
|
|
24
|
+
updateForm: (form: FormInterface) => Observable<DatabaseFormInterface>;
|
|
25
|
+
archiveForm: (formId: string) => Observable<{
|
|
26
|
+
message: string;
|
|
27
|
+
}>;
|
|
28
|
+
unArchiveForm: (formId: string) => Observable<{
|
|
29
|
+
message: string;
|
|
30
|
+
}>;
|
|
31
|
+
deleteForm: (formId: string) => Observable<{
|
|
32
|
+
message: string;
|
|
33
|
+
}>;
|
|
34
|
+
getForm: (formId: string) => Observable<DatabaseFormInterface | null>;
|
|
35
|
+
loadForms: () => Observable<DatabaseFormInterface[]>;
|
|
36
|
+
loadArchivedForms: () => Observable<DatabaseFormInterface[]>;
|
|
37
|
+
toastSuccess: (message: string) => void;
|
|
38
|
+
toastError: (message: string) => void;
|
|
39
|
+
workflows: () => Observable<IWorkflowOption[]>;
|
|
40
|
+
getScoaTree: () => Observable<IGetTreeResponse>;
|
|
41
|
+
getSCOAAccount(SCOAAccount: string): Observable<any>;
|
|
42
|
+
editForm: (formId: string) => void;
|
|
43
|
+
addNewForm: () => void;
|
|
44
|
+
saveFormData: (formId: string, data: {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}) => Observable<void>;
|
|
47
|
+
setListSection: (section: FormListSection) => void;
|
|
48
|
+
runMongoDbPipeLine: (pipeline: any, workflowId: string) => Observable<{
|
|
49
|
+
results: any;
|
|
50
|
+
message: string;
|
|
51
|
+
}>;
|
|
52
|
+
fileUpload: FileUploadFn;
|
|
53
|
+
formSubmittedSuccessfully: (formId: string) => void;
|
|
54
|
+
getUserSignature: () => Observable<IUserSignature>;
|
|
55
|
+
saveUserSignature: (signature: PointGroup[]) => Observable<void>;
|
|
56
|
+
httpPostDataFunction: (url: string, data: any, options?: any) => Observable<any>;
|
|
57
|
+
httpGetDataFunction: (url: string, options?: any) => Observable<any>;
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { HttpContext, HttpHeaders, HttpParams } from "@angular/common/http";
|
|
2
|
+
import { TreeNode } from "../FormSlide/accessTree";
|
|
3
|
+
import { FormInputBasicOptionInterface } from "./FormInputBasicOptionInterface";
|
|
4
|
+
import { MinimumInputRequiredInterface } from "./MinimumInputRequiredInterface";
|
|
5
|
+
export declare enum DataSources {
|
|
6
|
+
Local = "local",
|
|
7
|
+
Api = "api",
|
|
8
|
+
MongoDb = "mongoPipeline",
|
|
9
|
+
CustomOptions = "customOptions"
|
|
10
|
+
}
|
|
11
|
+
export interface DataFetchingBaseConfig {
|
|
12
|
+
valueAccessRules?: FormInputBasicOptionInterface | TreeNode[];
|
|
13
|
+
source: DataSources;
|
|
14
|
+
projectFormData?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface APIDataFetchingConfigurationInterface extends DataFetchingBaseConfig {
|
|
17
|
+
_id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
httpEndPoint: string;
|
|
20
|
+
inputSourceId?: string;
|
|
21
|
+
httpMethod: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
22
|
+
postFormData: boolean;
|
|
23
|
+
httpHeaderOptions?: {
|
|
24
|
+
headers?: HttpHeaders | {
|
|
25
|
+
[header: string]: string | string[];
|
|
26
|
+
};
|
|
27
|
+
context?: HttpContext;
|
|
28
|
+
observe?: 'body';
|
|
29
|
+
params?: HttpParams | {
|
|
30
|
+
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
31
|
+
};
|
|
32
|
+
reportProgress?: boolean;
|
|
33
|
+
responseType?: 'json';
|
|
34
|
+
withCredentials?: boolean;
|
|
35
|
+
transferCache?: {
|
|
36
|
+
includeHeaders?: string[];
|
|
37
|
+
} | boolean;
|
|
38
|
+
};
|
|
39
|
+
backEndConfig: {
|
|
40
|
+
minimumInputRequired: MinimumInputRequiredInterface[];
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface MongoDbPipeLineConfigInterface extends DataFetchingBaseConfig {
|
|
44
|
+
workflowId: string;
|
|
45
|
+
pipeline: any[];
|
|
46
|
+
}
|
|
47
|
+
export interface InputAPIDataId {
|
|
48
|
+
id: string;
|
|
49
|
+
dataFor: string;
|
|
50
|
+
}
|
|
51
|
+
export interface inputDataFunctionResponse {
|
|
52
|
+
resultsId: InputAPIDataId[];
|
|
53
|
+
inputData: any[];
|
|
54
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { MatFormFieldAppearance } from "@angular/material/form-field";
|
|
2
|
+
import { IFileUploadInput, IMatrixInput, IMscoaInput, IMultiple, ITableSelectionInput, IToggleInput } from ".";
|
|
3
|
+
import { ConditionalInputRule } from "./ConditionalInputRule";
|
|
4
|
+
import { IDateRangePickerInput } from "./DateRangePickerInput";
|
|
5
|
+
import { FormControlCustomValidatorsInterface } from "./FormControlCustomValidatorsInterface";
|
|
6
|
+
import { MatDataOptionsInterface } from "./MatDataOptionsInterface";
|
|
7
|
+
import { ITextareaProperties } from "./TextAreaInput";
|
|
8
|
+
import { CalculatedFieldRules } from "./calculatedFieldRules";
|
|
9
|
+
import { IRichTextEditor } from "./RichTextEditorInput";
|
|
10
|
+
export type FormColumnInputs = IBasicFormInput & ITableSelectionInput & IFileUploadInput & IDateRangePickerInput & ITextareaProperties & IToggleInput & IMatrixInput & IMultiple & IMscoaInput & IRichTextEditor;
|
|
11
|
+
export declare enum ElementTypes {
|
|
12
|
+
Input = "input",
|
|
13
|
+
Location = "location",
|
|
14
|
+
AutoCompleteInput = "autoCompleteInput",
|
|
15
|
+
Toggle = "toggle",
|
|
16
|
+
Select = "select",
|
|
17
|
+
IconSelect = "iconSelect",
|
|
18
|
+
Textarea = "textarea",
|
|
19
|
+
DatePicker = "datePicker",
|
|
20
|
+
DateRangePicker = "dateRangePicker",
|
|
21
|
+
FileUpload = "fileUpload",
|
|
22
|
+
Signature = "signature",
|
|
23
|
+
ImageCapture = "imageCapture",
|
|
24
|
+
SectionTitle = "sectionTitle",
|
|
25
|
+
TableSelection = "tableSelection",
|
|
26
|
+
MultipleInput = "multipleInput",
|
|
27
|
+
Editor = "editor",
|
|
28
|
+
MscoaSelection = "mscoaSelection"
|
|
29
|
+
}
|
|
30
|
+
export declare enum InputTypes {
|
|
31
|
+
Text = "text",
|
|
32
|
+
Number = "number",
|
|
33
|
+
Color = "color",
|
|
34
|
+
Date = "date",
|
|
35
|
+
Email = "email",
|
|
36
|
+
Password = "password",
|
|
37
|
+
Tel = "tel",
|
|
38
|
+
Url = "url",
|
|
39
|
+
DateTimeLocal = "datetime-local",
|
|
40
|
+
Month = "month",
|
|
41
|
+
Week = "week",
|
|
42
|
+
Time = "time",
|
|
43
|
+
Search = "search"
|
|
44
|
+
}
|
|
45
|
+
export declare enum InputDataTypes {
|
|
46
|
+
String = "string",
|
|
47
|
+
Number = "number",
|
|
48
|
+
Boolean = "boolean",
|
|
49
|
+
Array = "array",
|
|
50
|
+
Object = "object",
|
|
51
|
+
NumberOrString = "numberOrString",
|
|
52
|
+
Date = "date"
|
|
53
|
+
}
|
|
54
|
+
export declare enum InputViewTypes {
|
|
55
|
+
ViewOnly = "view-Only"
|
|
56
|
+
}
|
|
57
|
+
export declare enum MaxMinCustomScripts {
|
|
58
|
+
IServeBudgetPeriods = "IServePeriods",
|
|
59
|
+
IServeDateLimiter = "IServeDateLimiter"
|
|
60
|
+
}
|
|
61
|
+
export declare enum InputPipeTypes {
|
|
62
|
+
Date = "date",
|
|
63
|
+
Currency = "currency",
|
|
64
|
+
Percent = "percent",
|
|
65
|
+
Custom = "custom",
|
|
66
|
+
Time = "time",
|
|
67
|
+
Number = "number",
|
|
68
|
+
UpperCase = "upperCase",
|
|
69
|
+
LowerCase = "lowerCase",
|
|
70
|
+
TitleCase = "titleCase",
|
|
71
|
+
Trim = "trim",
|
|
72
|
+
Decimal = "decimal",
|
|
73
|
+
Integer = "integer",
|
|
74
|
+
CustomPipe = "customPipe"
|
|
75
|
+
}
|
|
76
|
+
export declare enum AutocapitalizeOptions {
|
|
77
|
+
None = "none",
|
|
78
|
+
Sentences = "sentences",
|
|
79
|
+
Words = "words",
|
|
80
|
+
Characters = "characters"
|
|
81
|
+
}
|
|
82
|
+
export declare enum AutocompleteOptions {
|
|
83
|
+
On = "on",
|
|
84
|
+
Off = "off"
|
|
85
|
+
}
|
|
86
|
+
export interface IFormElementTemplate {
|
|
87
|
+
element: ElementTypes;
|
|
88
|
+
dataType: InputDataTypes;
|
|
89
|
+
appearance: MatFormFieldAppearance;
|
|
90
|
+
type?: InputTypes;
|
|
91
|
+
required: boolean;
|
|
92
|
+
colSize: number;
|
|
93
|
+
onlySetTempErrorOnTouch: boolean;
|
|
94
|
+
isCalculatedField: boolean;
|
|
95
|
+
matOptions?: MatDataOptionsInterface;
|
|
96
|
+
validators: Array<FormControlCustomValidatorsInterface | string>;
|
|
97
|
+
}
|
|
98
|
+
export declare enum maxMinCustomScripts {
|
|
99
|
+
IServeBudgetPeriods = "IServePeriods",
|
|
100
|
+
IServeDateLimiter = "IServeDateLimitter"
|
|
101
|
+
}
|
|
102
|
+
export interface IBasicFormInput extends IFormElementTemplate {
|
|
103
|
+
label: string;
|
|
104
|
+
readonly formControlName: string;
|
|
105
|
+
readonly?: boolean;
|
|
106
|
+
id: string;
|
|
107
|
+
sectionId: string;
|
|
108
|
+
pipe?: {
|
|
109
|
+
pipeType: InputPipeTypes;
|
|
110
|
+
param: string;
|
|
111
|
+
};
|
|
112
|
+
hintLabel?: string;
|
|
113
|
+
temporaryHint?: string;
|
|
114
|
+
valueUpdatedAt?: Date;
|
|
115
|
+
status?: Record<string, string>;
|
|
116
|
+
min?: number | string | Date | MaxMinCustomScripts;
|
|
117
|
+
max?: number | string | Date | MaxMinCustomScripts;
|
|
118
|
+
tourContent?: string;
|
|
119
|
+
viewType?: InputViewTypes;
|
|
120
|
+
maxLength?: number;
|
|
121
|
+
minLength?: number;
|
|
122
|
+
placeholder?: string;
|
|
123
|
+
pattern?: string;
|
|
124
|
+
spellcheck?: boolean;
|
|
125
|
+
autocapitalize?: AutocapitalizeOptions;
|
|
126
|
+
autocomplete?: AutocompleteOptions;
|
|
127
|
+
multipleInputInEditId?: string;
|
|
128
|
+
suffixText?: string;
|
|
129
|
+
prefixText?: string;
|
|
130
|
+
prefixIcon?: string;
|
|
131
|
+
suffixIcon?: string;
|
|
132
|
+
disabled?: boolean;
|
|
133
|
+
script?: Record<string, unknown>;
|
|
134
|
+
conditionalInputConfig?: ConditionalInputRule[];
|
|
135
|
+
calculatedFieldRules?: CalculatedFieldRules;
|
|
136
|
+
value?: number | string | boolean | Date | File | {
|
|
137
|
+
[key: string]: any;
|
|
138
|
+
} | Array<{
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
}>;
|
|
141
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export var ElementTypes;
|
|
2
|
+
(function (ElementTypes) {
|
|
3
|
+
ElementTypes["Input"] = "input";
|
|
4
|
+
ElementTypes["Location"] = "location";
|
|
5
|
+
ElementTypes["AutoCompleteInput"] = "autoCompleteInput";
|
|
6
|
+
ElementTypes["Toggle"] = "toggle";
|
|
7
|
+
ElementTypes["Select"] = "select";
|
|
8
|
+
ElementTypes["IconSelect"] = "iconSelect";
|
|
9
|
+
ElementTypes["Textarea"] = "textarea";
|
|
10
|
+
ElementTypes["DatePicker"] = "datePicker";
|
|
11
|
+
ElementTypes["DateRangePicker"] = "dateRangePicker";
|
|
12
|
+
ElementTypes["FileUpload"] = "fileUpload";
|
|
13
|
+
ElementTypes["Signature"] = "signature";
|
|
14
|
+
// QrCodeScanner = 'qrCodeScanner',
|
|
15
|
+
// QrCodeGenerator = 'qrCodeGenerator',
|
|
16
|
+
ElementTypes["ImageCapture"] = "imageCapture";
|
|
17
|
+
// OcrInput = 'ocrInput',
|
|
18
|
+
ElementTypes["SectionTitle"] = "sectionTitle";
|
|
19
|
+
ElementTypes["TableSelection"] = "tableSelection";
|
|
20
|
+
// MatrixTable = 'matrixTable',
|
|
21
|
+
ElementTypes["MultipleInput"] = "multipleInput";
|
|
22
|
+
ElementTypes["Editor"] = "editor";
|
|
23
|
+
ElementTypes["MscoaSelection"] = "mscoaSelection";
|
|
24
|
+
// Add other types as needed
|
|
25
|
+
})(ElementTypes || (ElementTypes = {}));
|
|
26
|
+
export var InputTypes;
|
|
27
|
+
(function (InputTypes) {
|
|
28
|
+
InputTypes["Text"] = "text";
|
|
29
|
+
InputTypes["Number"] = "number";
|
|
30
|
+
InputTypes["Color"] = "color";
|
|
31
|
+
InputTypes["Date"] = "date";
|
|
32
|
+
InputTypes["Email"] = "email";
|
|
33
|
+
// File = 'file',
|
|
34
|
+
InputTypes["Password"] = "password";
|
|
35
|
+
InputTypes["Tel"] = "tel";
|
|
36
|
+
// Image = 'image',
|
|
37
|
+
InputTypes["Url"] = "url";
|
|
38
|
+
InputTypes["DateTimeLocal"] = "datetime-local";
|
|
39
|
+
InputTypes["Month"] = "month";
|
|
40
|
+
InputTypes["Week"] = "week";
|
|
41
|
+
InputTypes["Time"] = "time";
|
|
42
|
+
// Range = 'range',
|
|
43
|
+
InputTypes["Search"] = "search";
|
|
44
|
+
// Checkbox = 'checkbox',
|
|
45
|
+
// Radio = 'radio',
|
|
46
|
+
})(InputTypes || (InputTypes = {}));
|
|
47
|
+
export var InputDataTypes;
|
|
48
|
+
(function (InputDataTypes) {
|
|
49
|
+
InputDataTypes["String"] = "string";
|
|
50
|
+
InputDataTypes["Number"] = "number";
|
|
51
|
+
InputDataTypes["Boolean"] = "boolean";
|
|
52
|
+
InputDataTypes["Array"] = "array";
|
|
53
|
+
InputDataTypes["Object"] = "object";
|
|
54
|
+
InputDataTypes["NumberOrString"] = "numberOrString";
|
|
55
|
+
InputDataTypes["Date"] = "date";
|
|
56
|
+
})(InputDataTypes || (InputDataTypes = {}));
|
|
57
|
+
export var InputViewTypes;
|
|
58
|
+
(function (InputViewTypes) {
|
|
59
|
+
InputViewTypes["ViewOnly"] = "view-Only";
|
|
60
|
+
})(InputViewTypes || (InputViewTypes = {}));
|
|
61
|
+
export var MaxMinCustomScripts;
|
|
62
|
+
(function (MaxMinCustomScripts) {
|
|
63
|
+
MaxMinCustomScripts["IServeBudgetPeriods"] = "IServePeriods";
|
|
64
|
+
MaxMinCustomScripts["IServeDateLimiter"] = "IServeDateLimiter";
|
|
65
|
+
})(MaxMinCustomScripts || (MaxMinCustomScripts = {}));
|
|
66
|
+
export var InputPipeTypes;
|
|
67
|
+
(function (InputPipeTypes) {
|
|
68
|
+
InputPipeTypes["Date"] = "date";
|
|
69
|
+
InputPipeTypes["Currency"] = "currency";
|
|
70
|
+
InputPipeTypes["Percent"] = "percent";
|
|
71
|
+
InputPipeTypes["Custom"] = "custom";
|
|
72
|
+
InputPipeTypes["Time"] = "time";
|
|
73
|
+
InputPipeTypes["Number"] = "number";
|
|
74
|
+
InputPipeTypes["UpperCase"] = "upperCase";
|
|
75
|
+
InputPipeTypes["LowerCase"] = "lowerCase";
|
|
76
|
+
InputPipeTypes["TitleCase"] = "titleCase";
|
|
77
|
+
InputPipeTypes["Trim"] = "trim";
|
|
78
|
+
InputPipeTypes["Decimal"] = "decimal";
|
|
79
|
+
InputPipeTypes["Integer"] = "integer";
|
|
80
|
+
InputPipeTypes["CustomPipe"] = "customPipe";
|
|
81
|
+
// Add other types as needed
|
|
82
|
+
})(InputPipeTypes || (InputPipeTypes = {}));
|
|
83
|
+
export var AutocapitalizeOptions;
|
|
84
|
+
(function (AutocapitalizeOptions) {
|
|
85
|
+
AutocapitalizeOptions["None"] = "none";
|
|
86
|
+
AutocapitalizeOptions["Sentences"] = "sentences";
|
|
87
|
+
AutocapitalizeOptions["Words"] = "words";
|
|
88
|
+
AutocapitalizeOptions["Characters"] = "characters";
|
|
89
|
+
})(AutocapitalizeOptions || (AutocapitalizeOptions = {}));
|
|
90
|
+
export var AutocompleteOptions;
|
|
91
|
+
(function (AutocompleteOptions) {
|
|
92
|
+
AutocompleteOptions["On"] = "on";
|
|
93
|
+
AutocompleteOptions["Off"] = "off";
|
|
94
|
+
})(AutocompleteOptions || (AutocompleteOptions = {}));
|
|
95
|
+
export var maxMinCustomScripts;
|
|
96
|
+
(function (maxMinCustomScripts) {
|
|
97
|
+
maxMinCustomScripts["IServeBudgetPeriods"] = "IServePeriods";
|
|
98
|
+
maxMinCustomScripts["IServeDateLimiter"] = "IServeDateLimitter";
|
|
99
|
+
})(maxMinCustomScripts || (maxMinCustomScripts = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBasicFormInput } from "./BasicFormInputInterface";
|
|
2
|
+
export interface IDateRangePickerInput extends IBasicFormInput {
|
|
3
|
+
endDateControl?: string;
|
|
4
|
+
startDateControl?: string;
|
|
5
|
+
startMinDate?: Date;
|
|
6
|
+
endMaxDate?: Date;
|
|
7
|
+
startMaxDate?: Date;
|
|
8
|
+
endMinDate?: Date;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|