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.
Files changed (139) hide show
  1. package/dist/Configs/currencies.d.ts +6 -0
  2. package/dist/Configs/currencies.js +1083 -0
  3. package/dist/Configs/datePipes.d.ts +4 -0
  4. package/dist/Configs/datePipes.js +16 -0
  5. package/dist/index.d.ts +8 -0
  6. package/dist/index.js +8 -0
  7. package/dist/interfaces/Form/ArrayFunctions.d.ts +9 -0
  8. package/dist/interfaces/Form/ArrayFunctions.js +7 -0
  9. package/dist/interfaces/Form/CustomeConfigInter.d.ts +10 -0
  10. package/dist/interfaces/Form/CustomeConfigInter.js +1 -0
  11. package/dist/interfaces/Form/FileUploadFn.d.ts +11 -0
  12. package/dist/interfaces/Form/FileUploadFn.js +1 -0
  13. package/dist/interfaces/Form/FormInClassUtils.d.ts +52 -0
  14. package/dist/interfaces/Form/FormInClassUtils.js +1 -0
  15. package/dist/interfaces/Form/IFormsInitStateInterface.d.ts +51 -0
  16. package/dist/interfaces/Form/IFormsInitStateInterface.js +14 -0
  17. package/dist/interfaces/Form/PrePopulateDataInterface.d.ts +4 -0
  18. package/dist/interfaces/Form/PrePopulateDataInterface.js +1 -0
  19. package/dist/interfaces/Form/formChangeHistory.d.ts +5 -0
  20. package/dist/interfaces/Form/formChangeHistory.js +1 -0
  21. package/dist/interfaces/Form/formInterface.d.ts +19 -0
  22. package/dist/interfaces/Form/formInterface.js +1 -0
  23. package/dist/interfaces/Form/formSubmissionHandleInterface.d.ts +7 -0
  24. package/dist/interfaces/Form/formSubmissionHandleInterface.js +1 -0
  25. package/dist/interfaces/Form/index.d.ts +12 -0
  26. package/dist/interfaces/Form/index.js +2 -0
  27. package/dist/interfaces/FormBuilder/DefaultEelement.d.ts +3 -0
  28. package/dist/interfaces/FormBuilder/DefaultEelement.js +741 -0
  29. package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.d.ts +143 -0
  30. package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.js +1 -0
  31. package/dist/interfaces/FormBuilder/ElementEditorTypes.d.ts +31 -0
  32. package/dist/interfaces/FormBuilder/ElementEditorTypes.js +40 -0
  33. package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.d.ts +20 -0
  34. package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.js +1 -0
  35. package/dist/interfaces/FormBuilder/FormInputKeys.d.ts +86 -0
  36. package/dist/interfaces/FormBuilder/FormInputKeys.js +90 -0
  37. package/dist/interfaces/FormBuilder/elementEditor.d.ts +82 -0
  38. package/dist/interfaces/FormBuilder/elementEditor.js +34 -0
  39. package/dist/interfaces/FormBuilder/index.d.ts +10 -0
  40. package/dist/interfaces/FormBuilder/index.js +6 -0
  41. package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.d.ts +3 -0
  42. package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.js +644 -0
  43. package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.d.ts +1 -0
  44. package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.js +37 -0
  45. package/dist/interfaces/FormBuilder/postmanCollection.d.ts +126 -0
  46. package/dist/interfaces/FormBuilder/postmanCollection.js +1 -0
  47. package/dist/interfaces/FormBuilder/workflowSelectionConfig.d.ts +7 -0
  48. package/dist/interfaces/FormBuilder/workflowSelectionConfig.js +1 -0
  49. package/dist/interfaces/FormSlide/accessTree.d.ts +23 -0
  50. package/dist/interfaces/FormSlide/accessTree.js +1 -0
  51. package/dist/interfaces/FormSlide/controlValidation.d.ts +12 -0
  52. package/dist/interfaces/FormSlide/controlValidation.js +1 -0
  53. package/dist/interfaces/FormSlide/formSlideInterface.d.ts +22 -0
  54. package/dist/interfaces/FormSlide/formSlideInterface.js +7 -0
  55. package/dist/interfaces/FormSlide/index.d.ts +4 -0
  56. package/dist/interfaces/FormSlide/index.js +2 -0
  57. package/dist/interfaces/Tower/ITowerFormSteps.d.ts +14 -0
  58. package/dist/interfaces/Tower/ITowerFormSteps.js +1 -0
  59. package/dist/interfaces/Tower/index.d.ts +2 -0
  60. package/dist/interfaces/Tower/index.js +1 -0
  61. package/dist/interfaces/environment/IStoreFunctions.d.ts +58 -0
  62. package/dist/interfaces/environment/IStoreFunctions.js +1 -0
  63. package/dist/interfaces/environment/environment.d.ts +6 -0
  64. package/dist/interfaces/environment/environment.js +1 -0
  65. package/dist/interfaces/environment/index.d.ts +2 -0
  66. package/dist/interfaces/environment/index.js +1 -0
  67. package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.d.ts +54 -0
  68. package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.js +7 -0
  69. package/dist/interfaces/formInput/BasicFormInputInterface.d.ts +141 -0
  70. package/dist/interfaces/formInput/BasicFormInputInterface.js +99 -0
  71. package/dist/interfaces/formInput/ConditionalInputRule.d.ts +7 -0
  72. package/dist/interfaces/formInput/ConditionalInputRule.js +1 -0
  73. package/dist/interfaces/formInput/DateRangePickerInput.d.ts +9 -0
  74. package/dist/interfaces/formInput/DateRangePickerInput.js +1 -0
  75. package/dist/interfaces/formInput/FileUploadInputInterface.d.ts +49 -0
  76. package/dist/interfaces/formInput/FileUploadInputInterface.js +40 -0
  77. package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.d.ts +10 -0
  78. package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.js +1 -0
  79. package/dist/interfaces/formInput/FormInputBasicOptionInterface.d.ts +4 -0
  80. package/dist/interfaces/formInput/FormInputBasicOptionInterface.js +1 -0
  81. package/dist/interfaces/formInput/FormSectionTitleDescription.d.ts +6 -0
  82. package/dist/interfaces/formInput/FormSectionTitleDescription.js +1 -0
  83. package/dist/interfaces/formInput/IMscoaAccount.d.ts +84 -0
  84. package/dist/interfaces/formInput/IMscoaAccount.js +1 -0
  85. package/dist/interfaces/formInput/MatDataOptionsInterface.d.ts +14 -0
  86. package/dist/interfaces/formInput/MatDataOptionsInterface.js +1 -0
  87. package/dist/interfaces/formInput/MatrixInputInterface.d.ts +8 -0
  88. package/dist/interfaces/formInput/MatrixInputInterface.js +1 -0
  89. package/dist/interfaces/formInput/MinimumInputRequiredInterface.d.ts +33 -0
  90. package/dist/interfaces/formInput/MinimumInputRequiredInterface.js +18 -0
  91. package/dist/interfaces/formInput/MscoaInput.d.ts +16 -0
  92. package/dist/interfaces/formInput/MscoaInput.js +19 -0
  93. package/dist/interfaces/formInput/MultipleInterface.d.ts +15 -0
  94. package/dist/interfaces/formInput/MultipleInterface.js +1 -0
  95. package/dist/interfaces/formInput/RichTextEditorInput.d.ts +8 -0
  96. package/dist/interfaces/formInput/RichTextEditorInput.js +5 -0
  97. package/dist/interfaces/formInput/TableConfigurationsInterface.d.ts +17 -0
  98. package/dist/interfaces/formInput/TableConfigurationsInterface.js +1 -0
  99. package/dist/interfaces/formInput/TableSelectionInput.d.ts +6 -0
  100. package/dist/interfaces/formInput/TableSelectionInput.js +1 -0
  101. package/dist/interfaces/formInput/TextAreaInput.d.ts +5 -0
  102. package/dist/interfaces/formInput/TextAreaInput.js +1 -0
  103. package/dist/interfaces/formInput/ToggleInputInterface.d.ts +8 -0
  104. package/dist/interfaces/formInput/ToggleInputInterface.js +5 -0
  105. package/dist/interfaces/formInput/calculatedFieldRules.d.ts +7 -0
  106. package/dist/interfaces/formInput/calculatedFieldRules.js +1 -0
  107. package/dist/interfaces/formInput/calculationVariableInterface.d.ts +21 -0
  108. package/dist/interfaces/formInput/calculationVariableInterface.js +7 -0
  109. package/dist/interfaces/formInput/index.d.ts +22 -0
  110. package/dist/interfaces/formInput/index.js +7 -0
  111. package/dist/interfaces/formInput/schema.d.ts +9 -0
  112. package/dist/interfaces/formInput/schema.js +1 -0
  113. package/dist/interfaces/formInput/userSignature.d.ts +7 -0
  114. package/dist/interfaces/formInput/userSignature.js +1 -0
  115. package/dist/interfaces/pipeline-builder/index.d.ts +2 -0
  116. package/dist/interfaces/pipeline-builder/index.js +2 -0
  117. package/dist/interfaces/pipeline-builder/pipelineStages.d.ts +47 -0
  118. package/dist/interfaces/pipeline-builder/pipelineStages.js +30 -0
  119. package/dist/interfaces/upgradeFunctions/interfaces/init-form.d.ts +268 -0
  120. package/dist/interfaces/upgradeFunctions/interfaces/init-form.js +6 -0
  121. package/dist/schemas/CalculatedFieldRulesSchema.d.ts +6 -0
  122. package/dist/schemas/CalculatedFieldRulesSchema.js +27 -0
  123. package/dist/schemas/FormInputSchema.d.ts +15 -0
  124. package/dist/schemas/FormInputSchema.js +197 -0
  125. package/dist/schemas/FormSchema.d.ts +26 -0
  126. package/dist/schemas/FormSchema.js +134 -0
  127. package/dist/schemas/MatOptionsSchema.d.ts +8 -0
  128. package/dist/schemas/MatOptionsSchema.js +54 -0
  129. package/dist/schemas/MscoaConfigSchema.d.ts +8 -0
  130. package/dist/schemas/MscoaConfigSchema.js +22 -0
  131. package/dist/schemas/customValidationSchema.d.ts +2 -0
  132. package/dist/schemas/customValidationSchema.js +8 -0
  133. package/dist/schemas/index.d.ts +4 -0
  134. package/dist/schemas/index.js +4 -0
  135. package/dist/schemas/tests/FormInputValidator.spec.d.ts +1 -0
  136. package/dist/schemas/tests/FormInputValidator.spec.js +68 -0
  137. package/dist/schemas/tests/MOCK_DATA.d.ts +49 -0
  138. package/dist/schemas/tests/MOCK_DATA.js +59 -0
  139. package/package.json +61 -0
@@ -0,0 +1,143 @@
1
+ import { ElementTypes, IToggleInput, ITextareaProperties, IDateRangePickerInput, IFileUploadInput, IMultiple, ITableSelectionInput } from "../formInput";
2
+ import { IFormElementTemplate } from "../formInput/BasicFormInputInterface";
3
+ import { IMscoaFormInput } from "../formInput/MscoaInput";
4
+ import { IRichTextEditor } from "../formInput/RichTextEditorInput";
5
+ import { AllFormInputPrimaryKeys, FormInputKeys, SpecialElementKeys } from "./FormInputKeys";
6
+ export interface DefaultInputConfigInterface {
7
+ [ElementTypes.Input]: {
8
+ label: string;
9
+ disabled: boolean;
10
+ illustration: string;
11
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
12
+ elementTemplate: IFormElementTemplate;
13
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
14
+ };
15
+ [ElementTypes.Location]: {
16
+ label: string;
17
+ disabled: boolean;
18
+ illustration: string;
19
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
20
+ elementTemplate: IFormElementTemplate;
21
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
22
+ };
23
+ [ElementTypes.AutoCompleteInput]: {
24
+ label: string;
25
+ disabled: boolean;
26
+ illustration: string;
27
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
28
+ elementTemplate: IFormElementTemplate;
29
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
30
+ };
31
+ [ElementTypes.Toggle]: {
32
+ label: string;
33
+ disabled: boolean;
34
+ illustration: string;
35
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
36
+ elementTemplate: IToggleInput;
37
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
38
+ };
39
+ [ElementTypes.Select]: {
40
+ label: string;
41
+ disabled: boolean;
42
+ illustration: string;
43
+ properties: Array<FormInputKeys | SpecialElementKeys | AllFormInputPrimaryKeys>;
44
+ elementTemplate: IFormElementTemplate;
45
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
46
+ };
47
+ [ElementTypes.IconSelect]: {
48
+ label: string;
49
+ illustration: string;
50
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
51
+ elementTemplate: IFormElementTemplate;
52
+ disabled: boolean;
53
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
54
+ };
55
+ [ElementTypes.Textarea]: {
56
+ label: string;
57
+ disabled: boolean;
58
+ illustration: string;
59
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
60
+ elementTemplate: ITextareaProperties;
61
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
62
+ };
63
+ [ElementTypes.DatePicker]: {
64
+ label: string;
65
+ disabled: boolean;
66
+ illustration: string;
67
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
68
+ elementTemplate: IFormElementTemplate;
69
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
70
+ };
71
+ [ElementTypes.DateRangePicker]: {
72
+ label: string;
73
+ disabled: boolean;
74
+ illustration: string;
75
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
76
+ elementTemplate: IDateRangePickerInput;
77
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
78
+ };
79
+ [ElementTypes.FileUpload]: {
80
+ label: string;
81
+ disabled: boolean;
82
+ illustration: string;
83
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
84
+ elementTemplate: IFileUploadInput;
85
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
86
+ };
87
+ [ElementTypes.Signature]: {
88
+ label: string;
89
+ disabled: boolean;
90
+ illustration: string;
91
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
92
+ elementTemplate: IFormElementTemplate;
93
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
94
+ };
95
+ [ElementTypes.ImageCapture]: {
96
+ label: string;
97
+ disabled: boolean;
98
+ illustration: string;
99
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
100
+ elementTemplate: IFormElementTemplate;
101
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
102
+ };
103
+ [ElementTypes.SectionTitle]: {
104
+ label: string;
105
+ disabled: boolean;
106
+ illustration: string;
107
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
108
+ elementTemplate: IFormElementTemplate;
109
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
110
+ };
111
+ [ElementTypes.TableSelection]: {
112
+ label: string;
113
+ disabled: boolean;
114
+ illustration: string;
115
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
116
+ elementTemplate: ITableSelectionInput;
117
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
118
+ };
119
+ [ElementTypes.MultipleInput]: {
120
+ label: string;
121
+ disabled: boolean;
122
+ illustration: string;
123
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
124
+ elementTemplate: IMultiple;
125
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
126
+ };
127
+ [ElementTypes.Editor]: {
128
+ label: string;
129
+ disabled: boolean;
130
+ illustration: string;
131
+ properties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
132
+ elementTemplate: IRichTextEditor;
133
+ requiredProperties: Array<FormInputKeys | AllFormInputPrimaryKeys>;
134
+ };
135
+ [ElementTypes.MscoaSelection]: {
136
+ label: string;
137
+ disabled: boolean;
138
+ illustration: string;
139
+ properties: Array<FormInputKeys | SpecialElementKeys | AllFormInputPrimaryKeys>;
140
+ elementTemplate: IMscoaFormInput;
141
+ requiredProperties: Array<FormInputKeys | SpecialElementKeys | AllFormInputPrimaryKeys>;
142
+ };
143
+ }
@@ -0,0 +1 @@
1
+ import { ElementTypes } from "../formInput";
@@ -0,0 +1,31 @@
1
+ declare enum EditType {
2
+ Input = "input",
3
+ Toggle = "toggle",
4
+ ChipSelect = "chipSelect",
5
+ OptionSelect = "optionSelect",
6
+ Range = "range",
7
+ MinMaxValue = "minMaxValue",
8
+ DocumentPropertyPicker = "documentPropertyPicker",
9
+ ManualDocumentPropertyPicker = "manualDocumentPropertyPicker",
10
+ FormInputSelector = "formInputSelector",
11
+ SelectAForm = "selectAForm",
12
+ WorkflowPicker = "workflowPicker",
13
+ WorkflowStepPicker = "workflowStepPicker",
14
+ WorkflowDocumentListLabels = "workflowDocumentListLabels",
15
+ DecisionGateSettings = "decisionGateSettings",
16
+ EscalateTask = "escalateTask",
17
+ AddMembers = "addMembers",
18
+ MultipleInputConfigurations = "multipleInputConfigurations",
19
+ TableConfigSetup = "tableConfigSetup",
20
+ SelectionOptions = "selectionOptions",
21
+ ApiValueAccessRules = "apiValueAccessRules",
22
+ RequiredInputs = "requiredInputs",
23
+ ChartAxis = "chartAxis",
24
+ Series = "series",
25
+ MongoPipelineBuilder = "mongoPipelineBuilder",
26
+ ApiCall = "apiCall",
27
+ ConfigMscoaSegments = "configMscoaSegments",
28
+ ConfigMscoaAdditionalInputs = "configMscoaAdditionalInputs",
29
+ Validators = "validators",
30
+ CalculatedFieldRules = "calculatedFieldRules"
31
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var EditType;
3
+ (function (EditType) {
4
+ // Basic Input Types
5
+ EditType["Input"] = "input";
6
+ EditType["Toggle"] = "toggle";
7
+ EditType["ChipSelect"] = "chipSelect";
8
+ EditType["OptionSelect"] = "optionSelect";
9
+ EditType["Range"] = "range";
10
+ EditType["MinMaxValue"] = "minMaxValue";
11
+ // Document/Form Pickers
12
+ EditType["DocumentPropertyPicker"] = "documentPropertyPicker";
13
+ EditType["ManualDocumentPropertyPicker"] = "manualDocumentPropertyPicker";
14
+ EditType["FormInputSelector"] = "formInputSelector";
15
+ EditType["SelectAForm"] = "selectAForm";
16
+ // Workflow Related
17
+ EditType["WorkflowPicker"] = "workflowPicker";
18
+ EditType["WorkflowStepPicker"] = "workflowStepPicker";
19
+ EditType["WorkflowDocumentListLabels"] = "workflowDocumentListLabels";
20
+ EditType["DecisionGateSettings"] = "decisionGateSettings";
21
+ EditType["EscalateTask"] = "escalateTask";
22
+ EditType["AddMembers"] = "addMembers";
23
+ // Multiple Configurations
24
+ EditType["MultipleInputConfigurations"] = "multipleInputConfigurations";
25
+ EditType["TableConfigSetup"] = "tableConfigSetup";
26
+ EditType["SelectionOptions"] = "selectionOptions";
27
+ EditType["ApiValueAccessRules"] = "apiValueAccessRules";
28
+ EditType["RequiredInputs"] = "requiredInputs";
29
+ // Chart/Report Related
30
+ EditType["ChartAxis"] = "chartAxis";
31
+ EditType["Series"] = "series";
32
+ EditType["MongoPipelineBuilder"] = "mongoPipelineBuilder";
33
+ EditType["ApiCall"] = "apiCall";
34
+ // MSCOA Related
35
+ EditType["ConfigMscoaSegments"] = "configMscoaSegments";
36
+ EditType["ConfigMscoaAdditionalInputs"] = "configMscoaAdditionalInputs";
37
+ // Validation/Rules
38
+ EditType["Validators"] = "validators";
39
+ EditType["CalculatedFieldRules"] = "calculatedFieldRules";
40
+ })(EditType || (EditType = {}));
@@ -0,0 +1,20 @@
1
+ import { Observable } from "rxjs";
2
+ import { IGetTreeResponse, IMultipleInputCal } from "../formInput";
3
+ import { FormColumnInputs } from "../formInput/BasicFormInputInterface";
4
+ import { IMSCOAAccount } from "../formInput/IMscoaAccount";
5
+ import { CdkDragDrop } from "@angular/cdk/drag-drop";
6
+ export interface FormBuilderFunctions {
7
+ multipleInputToggleLabel: (item: FormColumnInputs) => void;
8
+ multipleInputToggleForm: (inputId: string, open: boolean) => void;
9
+ multipleInputSaveForm: (inputId: string) => void;
10
+ multipleInputEditRow: (inputId: string, rowId: string) => void;
11
+ multipleInputDuplicateRow: (inputId: string, rowId: string) => void;
12
+ editInput: (item: FormColumnInputs) => void;
13
+ deleteInput: (item: FormColumnInputs) => void;
14
+ addFunction: (item: IMultipleInputCal, multipleInputId: string | undefined) => void;
15
+ getLatestAccountTree: () => Observable<IGetTreeResponse>;
16
+ getSCOAAccount: (SCOAAccount: string) => Observable<{
17
+ accounts: IMSCOAAccount[];
18
+ }>;
19
+ reorderItems: (event: CdkDragDrop<FormColumnInputs[], any, any>, multipleInputId: string) => void;
20
+ }
@@ -0,0 +1,86 @@
1
+ export declare enum SpecialElementKeys {
2
+ FormValueFromInputSelector = "formValueFromInputSelector",
3
+ FormInputSelector = "formInputSelector",
4
+ MatOptionsApiCall = "matOptionsApiCall",
5
+ MatOptionsRequiredInputs = "matOptionsRequiredInputs",
6
+ MatOptionsApiValueAccessRules = "matOptionsApiValueAccessRules",
7
+ DefaultCalculatedFieldRules = "defaultCalculatedFieldRules",
8
+ MatOptionsItemType = "matOptionsItemType",
9
+ MatOptionsSelectionOptions = "matOptionsSelectionOptions",
10
+ DefaultValuePipe = "defaultValuePipe",
11
+ DefaultCurrencySelect = "defaultCurrencySelect",
12
+ DefaultDecimalNumberInput = "defaultDecimalNumberInput",
13
+ Default = "default",
14
+ ShowAllMcoaSegments = "showAllMcoaSegments"
15
+ }
16
+ export declare enum FormInputKeys {
17
+ Placeholder = "placeholder",
18
+ Pattern = "pattern",
19
+ Autocomplete = "autocomplete",
20
+ SuffixText = "suffixText",
21
+ PrefixText = "prefixText",
22
+ PrefixIcon = "prefixIcon",
23
+ SuffixIcon = "suffixIcon",
24
+ Disabled = "disabled",
25
+ ConditionalInputConfig = "conditionalInputConfig",
26
+ SelectUpto = "selectUpto",
27
+ TableConfig = "tableConfig",
28
+ Accept = "accept",
29
+ StartMinDate = "startMinDate",
30
+ EndMaxDate = "endMaxDate",
31
+ StartMaxDate = "startMaxDate",
32
+ EndMinDate = "endMinDate",
33
+ MatrixTableConfig = "matrixTableConfig",
34
+ ShowTotalsOf = "showTotalsOf",
35
+ GroupBy = "groupBy"
36
+ }
37
+ export declare enum AllFormInputPrimaryKeys {
38
+ Id = "id",
39
+ SectionId = "sectionId",
40
+ Accept = "accept",
41
+ Element = "element",
42
+ ColSize = "colSize",
43
+ Label = "label",
44
+ FormControlName = "formControlName",
45
+ Appearance = "appearance",
46
+ Required = "required",
47
+ StartDateControl = "startDateControl",
48
+ EndDateControl = "endDateControl",
49
+ Type = "type",
50
+ FileType = "fileType",
51
+ SingleSelect = "singleSelect",
52
+ LabelPosition = "labelPosition",
53
+ Min = "min",
54
+ Max = "max",
55
+ MinLength = "minLength",
56
+ MaxLength = "maxLength",
57
+ HandleLabel = "handleLabel",
58
+ MscoaConfig = "mscoaConfig",
59
+ Value = "value",
60
+ DataType = "dataType",
61
+ Readonly = "readonly",
62
+ IServeInputWithRequisitionItems = "iServeInputWithRequisitionItems",
63
+ CalculatedFieldRules = "calculatedFieldRules",
64
+ MatOptions = "matOptions",
65
+ HintLabel = "hintLabel",
66
+ TourContent = "tourContent",
67
+ Spellcheck = "spellcheck",
68
+ Pipe = "pipe",
69
+ Script = "script",
70
+ Validators = "validators",
71
+ FormInputs = "formInputs",
72
+ CalculateListFunctions = "calculateListFunctions",
73
+ MultipleInputInEditId = "multipleInputInEditId",
74
+ ShowAsLabel = "showAsLabel",
75
+ Autocapitalize = "autocapitalize",
76
+ Rows = "rows",
77
+ Wrap = "wrap",
78
+ RichTextEditorLibrary = "richTextEditorLibrary",
79
+ OnlySetTempErrorOnTouch = "onlySetTempErrorOnTouch",
80
+ IsCalculatedField = "isCalculatedField",
81
+ TemporaryHint = "temporaryHint",
82
+ ValueUpdatedAt = "valueUpdatedAt",
83
+ Status = "status",
84
+ ViewType = "viewType",
85
+ FormIsOpen = "formIsOpen"
86
+ }
@@ -0,0 +1,90 @@
1
+ export var SpecialElementKeys;
2
+ (function (SpecialElementKeys) {
3
+ SpecialElementKeys["FormValueFromInputSelector"] = "formValueFromInputSelector";
4
+ SpecialElementKeys["FormInputSelector"] = "formInputSelector";
5
+ SpecialElementKeys["MatOptionsApiCall"] = "matOptionsApiCall";
6
+ SpecialElementKeys["MatOptionsRequiredInputs"] = "matOptionsRequiredInputs";
7
+ SpecialElementKeys["MatOptionsApiValueAccessRules"] = "matOptionsApiValueAccessRules";
8
+ SpecialElementKeys["DefaultCalculatedFieldRules"] = "defaultCalculatedFieldRules";
9
+ SpecialElementKeys["MatOptionsItemType"] = "matOptionsItemType";
10
+ SpecialElementKeys["MatOptionsSelectionOptions"] = "matOptionsSelectionOptions";
11
+ SpecialElementKeys["DefaultValuePipe"] = "defaultValuePipe";
12
+ SpecialElementKeys["DefaultCurrencySelect"] = "defaultCurrencySelect";
13
+ SpecialElementKeys["DefaultDecimalNumberInput"] = "defaultDecimalNumberInput";
14
+ SpecialElementKeys["Default"] = "default";
15
+ SpecialElementKeys["ShowAllMcoaSegments"] = "showAllMcoaSegments";
16
+ })(SpecialElementKeys || (SpecialElementKeys = {}));
17
+ export var FormInputKeys;
18
+ (function (FormInputKeys) {
19
+ FormInputKeys["Placeholder"] = "placeholder";
20
+ FormInputKeys["Pattern"] = "pattern";
21
+ FormInputKeys["Autocomplete"] = "autocomplete";
22
+ FormInputKeys["SuffixText"] = "suffixText";
23
+ FormInputKeys["PrefixText"] = "prefixText";
24
+ FormInputKeys["PrefixIcon"] = "prefixIcon";
25
+ FormInputKeys["SuffixIcon"] = "suffixIcon";
26
+ FormInputKeys["Disabled"] = "disabled";
27
+ FormInputKeys["ConditionalInputConfig"] = "conditionalInputConfig";
28
+ FormInputKeys["SelectUpto"] = "selectUpto";
29
+ FormInputKeys["TableConfig"] = "tableConfig";
30
+ FormInputKeys["Accept"] = "accept";
31
+ FormInputKeys["StartMinDate"] = "startMinDate";
32
+ FormInputKeys["EndMaxDate"] = "endMaxDate";
33
+ FormInputKeys["StartMaxDate"] = "startMaxDate";
34
+ FormInputKeys["EndMinDate"] = "endMinDate";
35
+ FormInputKeys["MatrixTableConfig"] = "matrixTableConfig";
36
+ FormInputKeys["ShowTotalsOf"] = "showTotalsOf";
37
+ FormInputKeys["GroupBy"] = "groupBy";
38
+ //
39
+ })(FormInputKeys || (FormInputKeys = {}));
40
+ export var AllFormInputPrimaryKeys;
41
+ (function (AllFormInputPrimaryKeys) {
42
+ AllFormInputPrimaryKeys["Id"] = "id";
43
+ AllFormInputPrimaryKeys["SectionId"] = "sectionId";
44
+ AllFormInputPrimaryKeys["Accept"] = "accept";
45
+ AllFormInputPrimaryKeys["Element"] = "element";
46
+ AllFormInputPrimaryKeys["ColSize"] = "colSize";
47
+ AllFormInputPrimaryKeys["Label"] = "label";
48
+ AllFormInputPrimaryKeys["FormControlName"] = "formControlName";
49
+ AllFormInputPrimaryKeys["Appearance"] = "appearance";
50
+ AllFormInputPrimaryKeys["Required"] = "required";
51
+ AllFormInputPrimaryKeys["StartDateControl"] = "startDateControl";
52
+ AllFormInputPrimaryKeys["EndDateControl"] = "endDateControl";
53
+ AllFormInputPrimaryKeys["Type"] = "type";
54
+ AllFormInputPrimaryKeys["FileType"] = "fileType";
55
+ AllFormInputPrimaryKeys["SingleSelect"] = "singleSelect";
56
+ AllFormInputPrimaryKeys["LabelPosition"] = "labelPosition";
57
+ AllFormInputPrimaryKeys["Min"] = "min";
58
+ AllFormInputPrimaryKeys["Max"] = "max";
59
+ AllFormInputPrimaryKeys["MinLength"] = "minLength";
60
+ AllFormInputPrimaryKeys["MaxLength"] = "maxLength";
61
+ AllFormInputPrimaryKeys["HandleLabel"] = "handleLabel";
62
+ AllFormInputPrimaryKeys["MscoaConfig"] = "mscoaConfig";
63
+ AllFormInputPrimaryKeys["Value"] = "value";
64
+ AllFormInputPrimaryKeys["DataType"] = "dataType";
65
+ AllFormInputPrimaryKeys["Readonly"] = "readonly";
66
+ AllFormInputPrimaryKeys["IServeInputWithRequisitionItems"] = "iServeInputWithRequisitionItems";
67
+ AllFormInputPrimaryKeys["CalculatedFieldRules"] = "calculatedFieldRules";
68
+ AllFormInputPrimaryKeys["MatOptions"] = "matOptions";
69
+ AllFormInputPrimaryKeys["HintLabel"] = "hintLabel";
70
+ AllFormInputPrimaryKeys["TourContent"] = "tourContent";
71
+ AllFormInputPrimaryKeys["Spellcheck"] = "spellcheck";
72
+ AllFormInputPrimaryKeys["Pipe"] = "pipe";
73
+ AllFormInputPrimaryKeys["Script"] = "script";
74
+ AllFormInputPrimaryKeys["Validators"] = "validators";
75
+ AllFormInputPrimaryKeys["FormInputs"] = "formInputs";
76
+ AllFormInputPrimaryKeys["CalculateListFunctions"] = "calculateListFunctions";
77
+ AllFormInputPrimaryKeys["MultipleInputInEditId"] = "multipleInputInEditId";
78
+ AllFormInputPrimaryKeys["ShowAsLabel"] = "showAsLabel";
79
+ AllFormInputPrimaryKeys["Autocapitalize"] = "autocapitalize";
80
+ AllFormInputPrimaryKeys["Rows"] = "rows";
81
+ AllFormInputPrimaryKeys["Wrap"] = "wrap";
82
+ AllFormInputPrimaryKeys["RichTextEditorLibrary"] = "richTextEditorLibrary";
83
+ AllFormInputPrimaryKeys["OnlySetTempErrorOnTouch"] = "onlySetTempErrorOnTouch";
84
+ AllFormInputPrimaryKeys["IsCalculatedField"] = "isCalculatedField";
85
+ AllFormInputPrimaryKeys["TemporaryHint"] = "temporaryHint";
86
+ AllFormInputPrimaryKeys["ValueUpdatedAt"] = "valueUpdatedAt";
87
+ AllFormInputPrimaryKeys["Status"] = "status";
88
+ AllFormInputPrimaryKeys["ViewType"] = "viewType";
89
+ AllFormInputPrimaryKeys["FormIsOpen"] = "formIsOpen";
90
+ })(AllFormInputPrimaryKeys || (AllFormInputPrimaryKeys = {}));
@@ -0,0 +1,82 @@
1
+ import { Observable } from "rxjs";
2
+ import { AllFormInputPrimaryKeys, FormInputKeys, SpecialElementKeys } from "./FormInputKeys";
3
+ import { IPostmanCollectionConfig } from "./postmanCollection";
4
+ import { IWorkflowOption } from "./workflowSelectionConfig";
5
+ import { IGetTreeResponse } from "../formInput";
6
+ import { FormColumnInputs } from "../Form";
7
+ import { ValidationError } from "../formInput/schema";
8
+ export declare enum ElementEditorTypes {
9
+ Input = "input",
10
+ Toggle = "toggle",// Note the typo here; check if it should be 'toggle'
11
+ Range = "range",
12
+ ChipSelect = "chipSelect",
13
+ OptionSelect = "optionSelect",
14
+ SelectionOptions = "selectionOptions",
15
+ ApiCall = "apiCall",
16
+ TableConfigSetup = "tableConfigSetup",
17
+ ApiValueAccessRules = "apiValueAccessRules",
18
+ RequiredInputs = "requiredInputs",
19
+ ConditionalInputConfig = "conditionalInputConfig",
20
+ CalculatedFieldRules = "calculatedFieldRules",
21
+ FormInputSelector = "formInputSelector",
22
+ Validators = "validators",
23
+ MatrixTable = "matrixTable",
24
+ RichTextEditor = "richTextEditor",
25
+ ConfigMscoaSegments = "configMscoaSegments",
26
+ ConfigMscoaAdditionalInputs = "configMscoaAdditionalInputs",
27
+ MongoPipelineBuilder = "mongoPipelineBuilder",
28
+ default = "default"
29
+ }
30
+ export interface ElementEditorConfigInterface {
31
+ editorSections: Array<ElementEditorConfigSectionInterface>;
32
+ title?: string;
33
+ description?: string;
34
+ }
35
+ export interface ElementEditorConfigSectionInterface {
36
+ label: string;
37
+ showItemValue?: keyof FormColumnInputs;
38
+ id: string;
39
+ additionalTest?: ConfigurationValidTestInterface[];
40
+ elements: Array<ElementEditorInnerSectionElementInterface>;
41
+ }
42
+ export interface ConfigurationValidTestInterface {
43
+ expression?: string;
44
+ deepBind?: string[];
45
+ testType?: 'exists' | 'equalTo';
46
+ valueMatch?: any;
47
+ }
48
+ export declare enum BlurHandleTypes {
49
+ PrePopulateFormControl = "prePopulateFormControl",
50
+ CleanFormControl = "cleanFormControl"
51
+ }
52
+ export interface ElementEditorInnerSectionElementInterface {
53
+ id: string;
54
+ name: FormInputKeys | SpecialElementKeys | AllFormInputPrimaryKeys;
55
+ hint?: string;
56
+ editType: ElementEditorTypes;
57
+ deepBind: Array<string>;
58
+ limitTo?: number;
59
+ additionalTest?: ConfigurationValidTestInterface[];
60
+ disabled?: ConfigurationValidTestInterface[];
61
+ fetchOptions?: string[];
62
+ clearOnChange?: string[][];
63
+ blurHandle?: BlurHandleTypes;
64
+ label: string;
65
+ required?: boolean;
66
+ readonly?: boolean;
67
+ templateOptions?: Array<any>;
68
+ placeholder?: string;
69
+ options?: Array<{
70
+ label: string;
71
+ value: string;
72
+ }>;
73
+ computedErrors?: ValidationError[];
74
+ min?: number;
75
+ max?: number;
76
+ step?: number;
77
+ format?: (value: any) => number;
78
+ postmanCollectionConfig?: IPostmanCollectionConfig;
79
+ httpGetDataFunction?: (url: string, options: any) => Observable<any>;
80
+ getWorkflowOptions?: Observable<IWorkflowOption[]> | undefined;
81
+ getMscoaTree?: Observable<IGetTreeResponse> | undefined;
82
+ }
@@ -0,0 +1,34 @@
1
+ export var ElementEditorTypes;
2
+ (function (ElementEditorTypes) {
3
+ ElementEditorTypes["Input"] = "input";
4
+ ElementEditorTypes["Toggle"] = "toggle";
5
+ ElementEditorTypes["Range"] = "range";
6
+ ElementEditorTypes["ChipSelect"] = "chipSelect";
7
+ ElementEditorTypes["OptionSelect"] = "optionSelect";
8
+ ElementEditorTypes["SelectionOptions"] = "selectionOptions";
9
+ ElementEditorTypes["ApiCall"] = "apiCall";
10
+ ElementEditorTypes["TableConfigSetup"] = "tableConfigSetup";
11
+ ElementEditorTypes["ApiValueAccessRules"] = "apiValueAccessRules";
12
+ ElementEditorTypes["RequiredInputs"] = "requiredInputs";
13
+ ElementEditorTypes["ConditionalInputConfig"] = "conditionalInputConfig";
14
+ ElementEditorTypes["CalculatedFieldRules"] = "calculatedFieldRules";
15
+ ElementEditorTypes["FormInputSelector"] = "formInputSelector";
16
+ ElementEditorTypes["Validators"] = "validators";
17
+ ElementEditorTypes["MatrixTable"] = "matrixTable";
18
+ ElementEditorTypes["RichTextEditor"] = "richTextEditor";
19
+ ElementEditorTypes["ConfigMscoaSegments"] = "configMscoaSegments";
20
+ ElementEditorTypes["ConfigMscoaAdditionalInputs"] = "configMscoaAdditionalInputs";
21
+ ElementEditorTypes["MongoPipelineBuilder"] = "mongoPipelineBuilder";
22
+ ElementEditorTypes["default"] = "default";
23
+ })(ElementEditorTypes || (ElementEditorTypes = {}));
24
+ // interface TStringExpressionValidationTest{
25
+ // expression: string;
26
+ // }
27
+ // interface TDeepBindExpressionValidationTest{
28
+ // deepBind: string[];
29
+ // }
30
+ export var BlurHandleTypes;
31
+ (function (BlurHandleTypes) {
32
+ BlurHandleTypes["PrePopulateFormControl"] = "prePopulateFormControl";
33
+ BlurHandleTypes["CleanFormControl"] = "cleanFormControl";
34
+ })(BlurHandleTypes || (BlurHandleTypes = {}));
@@ -0,0 +1,10 @@
1
+ import { DefaultInputConfig, defaultInputs } from "./DefaultEelement";
2
+ import { DefaultInputConfigInterface } from "./DefaultInputConfigInterface";
3
+ import { getElementEditorConfig } from "./inputConfig/ElementEditConfig";
4
+ import { AllFormInputPrimaryKeys, FormInputKeys, SpecialElementKeys } from "./FormInputKeys";
5
+ import { BlurHandleTypes, ConfigurationValidTestInterface, ElementEditorInnerSectionElementInterface, ElementEditorTypes } from "./elementEditor";
6
+ import { IWorkflowOption } from "./workflowSelectionConfig";
7
+ import { FormBuilderFunctions } from "./FormBuilderCallBackFunctions";
8
+ import { IGetPostmanCollections, IPostmanCollectionConfig } from "./postmanCollection";
9
+ import { DataSources } from "../formInput/APIDataFetchingConfigurationInterface";
10
+ export { DefaultInputConfigInterface, BlurHandleTypes, FormInputKeys, ElementEditorTypes, ConfigurationValidTestInterface, ElementEditorInnerSectionElementInterface, SpecialElementKeys, AllFormInputPrimaryKeys, DefaultInputConfig, defaultInputs, getElementEditorConfig, IWorkflowOption, FormBuilderFunctions, IGetPostmanCollections, IPostmanCollectionConfig, DataSources };
@@ -0,0 +1,6 @@
1
+ import { DefaultInputConfig, defaultInputs } from "./DefaultEelement";
2
+ import { getElementEditorConfig } from "./inputConfig/ElementEditConfig";
3
+ import { AllFormInputPrimaryKeys, FormInputKeys, SpecialElementKeys } from "./FormInputKeys";
4
+ import { BlurHandleTypes, ElementEditorTypes } from "./elementEditor";
5
+ import { DataSources } from "../formInput/APIDataFetchingConfigurationInterface";
6
+ export { BlurHandleTypes, FormInputKeys, ElementEditorTypes, SpecialElementKeys, AllFormInputPrimaryKeys, DefaultInputConfig, defaultInputs, getElementEditorConfig, DataSources };
@@ -0,0 +1,3 @@
1
+ import { ElementEditorConfigInterface } from "../elementEditor";
2
+ export declare var ElementConfig: ElementEditorConfigInterface;
3
+ export declare const getElementEditorConfig: ElementEditorConfigInterface;