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,741 @@
1
+ import { AutocapitalizeOptions, ElementTypes, InputDataTypes, InputTypes } from "../formInput";
2
+ import { InputFileType } from "../formInput/FileUploadInputInterface";
3
+ import { MSCOA_INPUT_DEFAULT_MAT_OPTIONS } from "../formInput/MscoaInput";
4
+ import { RichTextEditorType } from "../formInput/RichTextEditorInput";
5
+ import { LabelPosition } from "../formInput/ToggleInputInterface";
6
+ import { AllFormInputPrimaryKeys, FormInputKeys, SpecialElementKeys } from "./FormInputKeys";
7
+ export function defaultInputs() {
8
+ return Object.keys(ElementTypes);
9
+ }
10
+ export const DefaultInputConfig = {
11
+ [ElementTypes.Input]: {
12
+ label: 'Input',
13
+ illustration: '/assets/formInput.svg',
14
+ disabled: false,
15
+ requiredProperties: [
16
+ AllFormInputPrimaryKeys.Label,
17
+ AllFormInputPrimaryKeys.Appearance,
18
+ AllFormInputPrimaryKeys.DataType,
19
+ AllFormInputPrimaryKeys.FormControlName,
20
+ AllFormInputPrimaryKeys.DataType,
21
+ AllFormInputPrimaryKeys.Type,
22
+ ],
23
+ properties: [
24
+ AllFormInputPrimaryKeys.Label,
25
+ AllFormInputPrimaryKeys.Appearance,
26
+ AllFormInputPrimaryKeys.Value,
27
+ AllFormInputPrimaryKeys.FormControlName,
28
+ AllFormInputPrimaryKeys.DataType,
29
+ AllFormInputPrimaryKeys.Type,
30
+ AllFormInputPrimaryKeys.Validators,
31
+ AllFormInputPrimaryKeys.HintLabel,
32
+ AllFormInputPrimaryKeys.MatOptions,
33
+ ],
34
+ elementTemplate: {
35
+ element: ElementTypes.Input,
36
+ dataType: InputDataTypes.String,
37
+ appearance: 'outline',
38
+ isCalculatedField: false,
39
+ required: true,
40
+ onlySetTempErrorOnTouch: false,
41
+ type: InputTypes.Text,
42
+ colSize: 12,
43
+ validators: [],
44
+ },
45
+ },
46
+ [ElementTypes.Location]: {
47
+ label: 'Location',
48
+ illustration: '/assets/locationInput.svg',
49
+ disabled: false,
50
+ requiredProperties: [
51
+ AllFormInputPrimaryKeys.Label,
52
+ AllFormInputPrimaryKeys.Appearance,
53
+ AllFormInputPrimaryKeys.FormControlName,
54
+ AllFormInputPrimaryKeys.Required,
55
+ ],
56
+ properties: [
57
+ AllFormInputPrimaryKeys.Label,
58
+ AllFormInputPrimaryKeys.Appearance,
59
+ AllFormInputPrimaryKeys.FormControlName,
60
+ AllFormInputPrimaryKeys.Validators, // Assuming Validators is also needed here
61
+ ],
62
+ elementTemplate: {
63
+ element: ElementTypes.Location,
64
+ required: true,
65
+ onlySetTempErrorOnTouch: false,
66
+ appearance: 'outline',
67
+ isCalculatedField: false,
68
+ colSize: 4,
69
+ dataType: InputDataTypes.Object,
70
+ validators: [],
71
+ },
72
+ },
73
+ [ElementTypes.AutoCompleteInput]: {
74
+ label: 'autoCompleteInput',
75
+ illustration: '/assets/autoComplete.svg',
76
+ disabled: false,
77
+ requiredProperties: [
78
+ AllFormInputPrimaryKeys.Label,
79
+ AllFormInputPrimaryKeys.Appearance,
80
+ AllFormInputPrimaryKeys.FormControlName,
81
+ AllFormInputPrimaryKeys.DataType,
82
+ AllFormInputPrimaryKeys.Type,
83
+ AllFormInputPrimaryKeys.Required, // Assuming Required refers to a key needing conversion
84
+ ],
85
+ properties: [
86
+ AllFormInputPrimaryKeys.Label,
87
+ AllFormInputPrimaryKeys.Appearance,
88
+ AllFormInputPrimaryKeys.FormControlName,
89
+ AllFormInputPrimaryKeys.Validators,
90
+ AllFormInputPrimaryKeys.DataType,
91
+ AllFormInputPrimaryKeys.HintLabel,
92
+ AllFormInputPrimaryKeys.Type,
93
+ AllFormInputPrimaryKeys.Value,
94
+ AllFormInputPrimaryKeys.MatOptions,
95
+ ],
96
+ elementTemplate: {
97
+ element: ElementTypes.AutoCompleteInput,
98
+ appearance: 'outline',
99
+ isCalculatedField: false,
100
+ required: true,
101
+ onlySetTempErrorOnTouch: false,
102
+ type: InputTypes.Text,
103
+ colSize: 12,
104
+ validators: [],
105
+ dataType: InputDataTypes.String,
106
+ },
107
+ },
108
+ [ElementTypes.Toggle]: {
109
+ label: 'toggle',
110
+ illustration: '/assets/toggle.svg',
111
+ disabled: false,
112
+ requiredProperties: [
113
+ AllFormInputPrimaryKeys.Label,
114
+ AllFormInputPrimaryKeys.Appearance,
115
+ AllFormInputPrimaryKeys.FormControlName,
116
+ AllFormInputPrimaryKeys.LabelPosition,
117
+ AllFormInputPrimaryKeys.Required,
118
+ ],
119
+ properties: [
120
+ AllFormInputPrimaryKeys.Label,
121
+ AllFormInputPrimaryKeys.Appearance,
122
+ AllFormInputPrimaryKeys.FormControlName,
123
+ AllFormInputPrimaryKeys.Validators,
124
+ AllFormInputPrimaryKeys.Required,
125
+ AllFormInputPrimaryKeys.ColSize,
126
+ AllFormInputPrimaryKeys.Value,
127
+ AllFormInputPrimaryKeys.LabelPosition,
128
+ AllFormInputPrimaryKeys.HintLabel,
129
+ ],
130
+ elementTemplate: {
131
+ element: ElementTypes.Toggle,
132
+ labelPosition: LabelPosition.After,
133
+ appearance: 'outline',
134
+ isCalculatedField: false,
135
+ value: false,
136
+ required: true,
137
+ onlySetTempErrorOnTouch: false,
138
+ colSize: 12,
139
+ validators: [],
140
+ dataType: InputDataTypes.Boolean,
141
+ },
142
+ },
143
+ [ElementTypes.Select]: {
144
+ label: 'select',
145
+ illustration: '/assets/select.svg',
146
+ disabled: false,
147
+ requiredProperties: [
148
+ AllFormInputPrimaryKeys.Label,
149
+ AllFormInputPrimaryKeys.Appearance,
150
+ AllFormInputPrimaryKeys.DataType,
151
+ AllFormInputPrimaryKeys.FormControlName,
152
+ AllFormInputPrimaryKeys.MatOptions,
153
+ ],
154
+ properties: [
155
+ AllFormInputPrimaryKeys.Label,
156
+ AllFormInputPrimaryKeys.Appearance,
157
+ AllFormInputPrimaryKeys.FormControlName,
158
+ AllFormInputPrimaryKeys.Validators,
159
+ AllFormInputPrimaryKeys.Required,
160
+ AllFormInputPrimaryKeys.ColSize,
161
+ AllFormInputPrimaryKeys.Value,
162
+ AllFormInputPrimaryKeys.MatOptions,
163
+ AllFormInputPrimaryKeys.HintLabel,
164
+ FormInputKeys.SuffixIcon,
165
+ FormInputKeys.PrefixIcon,
166
+ FormInputKeys.PrefixText,
167
+ FormInputKeys.SuffixText,
168
+ AllFormInputPrimaryKeys.DataType,
169
+ SpecialElementKeys.MatOptionsApiCall
170
+ ],
171
+ elementTemplate: {
172
+ element: ElementTypes.Select,
173
+ required: true,
174
+ onlySetTempErrorOnTouch: false,
175
+ colSize: 12,
176
+ validators: [],
177
+ appearance: 'outline',
178
+ isCalculatedField: false,
179
+ dataType: InputDataTypes.String,
180
+ },
181
+ },
182
+ [ElementTypes.IconSelect]: {
183
+ label: 'iconSelect',
184
+ illustration: '/assets/iconselection.svg',
185
+ disabled: true,
186
+ requiredProperties: [
187
+ AllFormInputPrimaryKeys.Label,
188
+ AllFormInputPrimaryKeys.Appearance,
189
+ AllFormInputPrimaryKeys.FormControlName,
190
+ AllFormInputPrimaryKeys.Required,
191
+ ],
192
+ properties: [
193
+ AllFormInputPrimaryKeys.Label,
194
+ AllFormInputPrimaryKeys.Appearance,
195
+ AllFormInputPrimaryKeys.FormControlName,
196
+ AllFormInputPrimaryKeys.Validators,
197
+ AllFormInputPrimaryKeys.Required,
198
+ AllFormInputPrimaryKeys.ColSize,
199
+ AllFormInputPrimaryKeys.Value,
200
+ AllFormInputPrimaryKeys.HintLabel,
201
+ ],
202
+ elementTemplate: {
203
+ element: ElementTypes.IconSelect,
204
+ dataType: InputDataTypes.String,
205
+ required: true,
206
+ onlySetTempErrorOnTouch: false,
207
+ colSize: 12,
208
+ validators: [],
209
+ appearance: 'outline',
210
+ isCalculatedField: false,
211
+ },
212
+ },
213
+ [ElementTypes.Textarea]: {
214
+ label: 'textarea',
215
+ illustration: '/assets/textarea.svg',
216
+ disabled: false,
217
+ requiredProperties: [
218
+ AllFormInputPrimaryKeys.Label,
219
+ AllFormInputPrimaryKeys.Appearance,
220
+ AllFormInputPrimaryKeys.FormControlName,
221
+ AllFormInputPrimaryKeys.Required,
222
+ ],
223
+ properties: [
224
+ AllFormInputPrimaryKeys.Label,
225
+ AllFormInputPrimaryKeys.Appearance,
226
+ AllFormInputPrimaryKeys.FormControlName,
227
+ AllFormInputPrimaryKeys.Validators,
228
+ AllFormInputPrimaryKeys.Required,
229
+ AllFormInputPrimaryKeys.ColSize,
230
+ AllFormInputPrimaryKeys.Value,
231
+ AllFormInputPrimaryKeys.MaxLength,
232
+ AllFormInputPrimaryKeys.MinLength,
233
+ AllFormInputPrimaryKeys.HintLabel,
234
+ FormInputKeys.SuffixIcon,
235
+ FormInputKeys.PrefixIcon,
236
+ FormInputKeys.PrefixText,
237
+ FormInputKeys.SuffixText,
238
+ AllFormInputPrimaryKeys.Rows,
239
+ AllFormInputPrimaryKeys.Spellcheck,
240
+ AllFormInputPrimaryKeys.Autocapitalize,
241
+ FormInputKeys.Autocomplete,
242
+ FormInputKeys.Placeholder,
243
+ AllFormInputPrimaryKeys.Wrap,
244
+ ],
245
+ elementTemplate: {
246
+ element: ElementTypes.Textarea,
247
+ required: true,
248
+ onlySetTempErrorOnTouch: false,
249
+ appearance: 'outline',
250
+ isCalculatedField: false,
251
+ maxLength: 150,
252
+ minLength: 5,
253
+ colSize: 12,
254
+ dataType: InputDataTypes.String,
255
+ validators: [],
256
+ rows: 4,
257
+ spellcheck: true,
258
+ wrap: 'hard',
259
+ autocapitalize: AutocapitalizeOptions.Words,
260
+ },
261
+ },
262
+ [ElementTypes.DatePicker]: {
263
+ label: 'datePicker',
264
+ illustration: '/assets/datePicker.svg',
265
+ disabled: false,
266
+ requiredProperties: [
267
+ AllFormInputPrimaryKeys.Label,
268
+ AllFormInputPrimaryKeys.Appearance,
269
+ AllFormInputPrimaryKeys.FormControlName,
270
+ AllFormInputPrimaryKeys.Required,
271
+ AllFormInputPrimaryKeys.Type,
272
+ ],
273
+ properties: [
274
+ AllFormInputPrimaryKeys.Label,
275
+ AllFormInputPrimaryKeys.Appearance,
276
+ AllFormInputPrimaryKeys.FormControlName,
277
+ AllFormInputPrimaryKeys.Validators,
278
+ AllFormInputPrimaryKeys.Required,
279
+ AllFormInputPrimaryKeys.ColSize,
280
+ AllFormInputPrimaryKeys.Value,
281
+ AllFormInputPrimaryKeys.Type,
282
+ AllFormInputPrimaryKeys.Min,
283
+ AllFormInputPrimaryKeys.Max,
284
+ AllFormInputPrimaryKeys.HintLabel,
285
+ FormInputKeys.SuffixIcon,
286
+ FormInputKeys.PrefixIcon,
287
+ FormInputKeys.PrefixText,
288
+ FormInputKeys.SuffixText,
289
+ ],
290
+ elementTemplate: {
291
+ element: ElementTypes.DatePicker,
292
+ dataType: InputDataTypes.Date,
293
+ appearance: 'outline',
294
+ isCalculatedField: false,
295
+ required: true,
296
+ onlySetTempErrorOnTouch: false,
297
+ colSize: 12,
298
+ validators: [],
299
+ },
300
+ },
301
+ [ElementTypes.DateRangePicker]: {
302
+ label: 'dateRangePicker',
303
+ illustration: '/assets/dateRange.svg',
304
+ disabled: false,
305
+ requiredProperties: [
306
+ AllFormInputPrimaryKeys.Label,
307
+ AllFormInputPrimaryKeys.Appearance,
308
+ AllFormInputPrimaryKeys.FormControlName,
309
+ AllFormInputPrimaryKeys.Required,
310
+ AllFormInputPrimaryKeys.StartDateControl,
311
+ AllFormInputPrimaryKeys.EndDateControl,
312
+ ],
313
+ properties: [
314
+ AllFormInputPrimaryKeys.Label,
315
+ AllFormInputPrimaryKeys.Appearance,
316
+ AllFormInputPrimaryKeys.FormControlName,
317
+ AllFormInputPrimaryKeys.Validators,
318
+ AllFormInputPrimaryKeys.Required,
319
+ AllFormInputPrimaryKeys.ColSize,
320
+ AllFormInputPrimaryKeys.Value,
321
+ AllFormInputPrimaryKeys.StartDateControl,
322
+ FormInputKeys.StartMinDate,
323
+ FormInputKeys.StartMaxDate,
324
+ AllFormInputPrimaryKeys.EndDateControl,
325
+ FormInputKeys.EndMinDate,
326
+ FormInputKeys.EndMaxDate,
327
+ AllFormInputPrimaryKeys.HintLabel,
328
+ FormInputKeys.SuffixIcon,
329
+ FormInputKeys.PrefixIcon,
330
+ FormInputKeys.PrefixText,
331
+ FormInputKeys.SuffixText,
332
+ ],
333
+ elementTemplate: {
334
+ element: ElementTypes.DateRangePicker,
335
+ dataType: InputDataTypes.Date,
336
+ appearance: 'outline',
337
+ isCalculatedField: false,
338
+ required: true,
339
+ onlySetTempErrorOnTouch: false,
340
+ colSize: 12,
341
+ validators: [],
342
+ },
343
+ },
344
+ /* {
345
+ label: 'checkList',
346
+ illustration: '/assets/checklist.svg',
347
+ },*/
348
+ /*{
349
+ label: 'radio',
350
+ illustration: '/assets/radio.svg',
351
+ },*/
352
+ [ElementTypes.FileUpload]: {
353
+ label: 'fileUpload',
354
+ illustration: '/assets/upload.svg',
355
+ disabled: false,
356
+ requiredProperties: [
357
+ AllFormInputPrimaryKeys.Label,
358
+ AllFormInputPrimaryKeys.Appearance,
359
+ AllFormInputPrimaryKeys.FormControlName,
360
+ AllFormInputPrimaryKeys.Required,
361
+ AllFormInputPrimaryKeys.FileType,
362
+ FormInputKeys.Accept,
363
+ ],
364
+ properties: [
365
+ AllFormInputPrimaryKeys.Label,
366
+ AllFormInputPrimaryKeys.Appearance,
367
+ AllFormInputPrimaryKeys.FormControlName,
368
+ AllFormInputPrimaryKeys.Validators,
369
+ AllFormInputPrimaryKeys.Required,
370
+ AllFormInputPrimaryKeys.Value,
371
+ AllFormInputPrimaryKeys.FileType,
372
+ FormInputKeys.Accept,
373
+ ],
374
+ elementTemplate: {
375
+ element: ElementTypes.FileUpload,
376
+ appearance: 'outline',
377
+ isCalculatedField: false,
378
+ dataType: InputDataTypes.Object,
379
+ required: true,
380
+ onlySetTempErrorOnTouch: false,
381
+ colSize: 12,
382
+ fileType: InputFileType.Image,
383
+ singleSelect: true,
384
+ validators: [],
385
+ accept: 'image/gif, image/jpeg, image/png',
386
+ label: "",
387
+ formControlName: "",
388
+ },
389
+ },
390
+ [ElementTypes.Signature]: {
391
+ label: 'signature',
392
+ illustration: '/assets/signature.svg',
393
+ disabled: false,
394
+ requiredProperties: [
395
+ AllFormInputPrimaryKeys.Label,
396
+ AllFormInputPrimaryKeys.Appearance,
397
+ AllFormInputPrimaryKeys.FormControlName,
398
+ AllFormInputPrimaryKeys.Required,
399
+ ],
400
+ properties: [
401
+ AllFormInputPrimaryKeys.Label,
402
+ AllFormInputPrimaryKeys.Appearance,
403
+ AllFormInputPrimaryKeys.FormControlName,
404
+ AllFormInputPrimaryKeys.Validators,
405
+ AllFormInputPrimaryKeys.Required,
406
+ AllFormInputPrimaryKeys.Value,
407
+ ],
408
+ elementTemplate: {
409
+ element: ElementTypes.Signature,
410
+ appearance: 'outline',
411
+ isCalculatedField: false,
412
+ dataType: InputDataTypes.String,
413
+ required: true,
414
+ onlySetTempErrorOnTouch: false,
415
+ colSize: 12,
416
+ validators: [],
417
+ },
418
+ },
419
+ // [ElementTypes.QrCodeScanner]: {
420
+ // label: 'qrcodeScanner',
421
+ // illustration: '/assets/qrCodeScanner.svg',
422
+ // disabled: false,
423
+ // requiredProperties: [
424
+ // AllFormInputPrimaryKeys.Label,
425
+ // AllFormInputPrimaryKeys.Appearance,
426
+ // AllFormInputPrimaryKeys.FormControlName,
427
+ // AllFormInputPrimaryKeys.Required,
428
+ // ],
429
+ // properties: [
430
+ // AllFormInputPrimaryKeys.Label,
431
+ // AllFormInputPrimaryKeys.Appearance,
432
+ // AllFormInputPrimaryKeys.FormControlName,
433
+ // AllFormInputPrimaryKeys.Validators,
434
+ // AllFormInputPrimaryKeys.Required,
435
+ // AllFormInputPrimaryKeys.Value,
436
+ // ],
437
+ // elementTemplate: {
438
+ // element: ElementTypes.QrCodeScanner,
439
+ // appearance: 'outline',
440
+ // isCalculatedField: false,
441
+ // dataType: InputDataTypes.String,
442
+ // required: true,
443
+ // onlySetTempErrorOnTouch: false,
444
+ // colSize: 12,
445
+ // validators: [],
446
+ // },
447
+ // },
448
+ // [ElementTypes.QrCodeGenerator]: {
449
+ // label: 'QRCodeGenerator',
450
+ // illustration: '/assets/qrCodeGenerator.svg',
451
+ // disabled: false,
452
+ // requiredProperties: [
453
+ // AllFormInputPrimaryKeys.Label,
454
+ // AllFormInputPrimaryKeys.Appearance,
455
+ // AllFormInputPrimaryKeys.FormControlName,
456
+ // AllFormInputPrimaryKeys.Required,
457
+ // // AllFormInputPrimaryKeys.FormValueFromInputSelector,
458
+ // ],
459
+ // properties: [
460
+ // AllFormInputPrimaryKeys.Label,
461
+ // AllFormInputPrimaryKeys.Appearance,
462
+ // AllFormInputPrimaryKeys.FormControlName,
463
+ // AllFormInputPrimaryKeys.Validators,
464
+ // AllFormInputPrimaryKeys.Required,
465
+ // AllFormInputPrimaryKeys.Value,
466
+ // // FormInputKeys.FormValueFromInputSelector,
467
+ // ],
468
+ // elementTemplate: {
469
+ // element: ElementTypes.QrCodeGenerator,
470
+ // appearance: 'outline',
471
+ // isCalculatedField: false,
472
+ // dataType: InputDataTypes.String,
473
+ // required: true,
474
+ // onlySetTempErrorOnTouch: false,
475
+ // colSize: 4,
476
+ // validators: [],
477
+ // },
478
+ // },
479
+ [ElementTypes.ImageCapture]: {
480
+ label: 'imageCapture',
481
+ illustration: '/assets/captureImage.svg',
482
+ disabled: false,
483
+ requiredProperties: [
484
+ AllFormInputPrimaryKeys.Label,
485
+ AllFormInputPrimaryKeys.Appearance,
486
+ AllFormInputPrimaryKeys.FormControlName,
487
+ AllFormInputPrimaryKeys.Required,
488
+ ],
489
+ properties: [
490
+ AllFormInputPrimaryKeys.Label,
491
+ AllFormInputPrimaryKeys.Appearance,
492
+ AllFormInputPrimaryKeys.FormControlName,
493
+ AllFormInputPrimaryKeys.Validators,
494
+ AllFormInputPrimaryKeys.Required,
495
+ AllFormInputPrimaryKeys.Value,
496
+ ],
497
+ elementTemplate: {
498
+ element: ElementTypes.ImageCapture,
499
+ appearance: 'outline',
500
+ isCalculatedField: false,
501
+ dataType: InputDataTypes.Object,
502
+ required: true,
503
+ onlySetTempErrorOnTouch: false,
504
+ colSize: 12,
505
+ validators: [],
506
+ },
507
+ },
508
+ // [ElementTypes.OcrInput]: {
509
+ // label: 'OCRInput',
510
+ // illustration: '/assets/captureImage.svg',
511
+ // disabled: false,
512
+ // requiredProperties: [
513
+ // AllFormInputPrimaryKeys.Label,
514
+ // AllFormInputPrimaryKeys.Appearance,
515
+ // AllFormInputPrimaryKeys.FormControlName,
516
+ // AllFormInputPrimaryKeys.Required,
517
+ // ],
518
+ // properties: [
519
+ // AllFormInputPrimaryKeys.Label,
520
+ // AllFormInputPrimaryKeys.Appearance,
521
+ // AllFormInputPrimaryKeys.FormControlName,
522
+ // AllFormInputPrimaryKeys.Validators,
523
+ // AllFormInputPrimaryKeys.Required,
524
+ // AllFormInputPrimaryKeys.Value,
525
+ // ],
526
+ // elementTemplate: {
527
+ // element: ElementTypes.OcrInput,
528
+ // appearance: 'outline',
529
+ // isCalculatedField: false,
530
+ // dataType: InputDataTypes.Object,
531
+ // required: true,
532
+ // onlySetTempErrorOnTouch: false,
533
+ // colSize: 4,
534
+ // validators: [],
535
+ // },
536
+ // },
537
+ [ElementTypes.SectionTitle]: {
538
+ label: 'sectionTitle',
539
+ illustration: '/assets/sectionTitle.svg',
540
+ disabled: false,
541
+ requiredProperties: [
542
+ AllFormInputPrimaryKeys.Label,
543
+ AllFormInputPrimaryKeys.Appearance,
544
+ ],
545
+ properties: [
546
+ AllFormInputPrimaryKeys.Label,
547
+ AllFormInputPrimaryKeys.Appearance,
548
+ AllFormInputPrimaryKeys.HintLabel,
549
+ ],
550
+ elementTemplate: {
551
+ element: ElementTypes.SectionTitle,
552
+ dataType: InputDataTypes.String,
553
+ colSize: 12,
554
+ },
555
+ },
556
+ [ElementTypes.TableSelection]: {
557
+ label: 'Table selection',
558
+ illustration: '/assets/tableSelect.svg',
559
+ disabled: false,
560
+ requiredProperties: [
561
+ AllFormInputPrimaryKeys.Label,
562
+ AllFormInputPrimaryKeys.Appearance,
563
+ AllFormInputPrimaryKeys.FormControlName,
564
+ AllFormInputPrimaryKeys.Required,
565
+ ],
566
+ properties: [
567
+ AllFormInputPrimaryKeys.Label,
568
+ AllFormInputPrimaryKeys.Appearance,
569
+ AllFormInputPrimaryKeys.FormControlName,
570
+ AllFormInputPrimaryKeys.Validators,
571
+ AllFormInputPrimaryKeys.Required,
572
+ AllFormInputPrimaryKeys.MatOptions,
573
+ AllFormInputPrimaryKeys.Value,
574
+ AllFormInputPrimaryKeys.HintLabel,
575
+ FormInputKeys.SelectUpto,
576
+ FormInputKeys.TableConfig,
577
+ ],
578
+ elementTemplate: {
579
+ element: ElementTypes.TableSelection,
580
+ appearance: 'outline',
581
+ isCalculatedField: false,
582
+ required: true,
583
+ onlySetTempErrorOnTouch: false,
584
+ colSize: 12,
585
+ selectUpto: 2,
586
+ validators: [],
587
+ tableConfig: {
588
+ displayedColumnsInOrder: [],
589
+ columnsConfig: {}
590
+ },
591
+ dataType: InputDataTypes.Array,
592
+ },
593
+ },
594
+ // [ElementTypes.MatrixTable]: {
595
+ // label: 'Comparison Table',
596
+ // illustration: '/assets/matrix.svg',
597
+ // disabled: false,
598
+ // requiredProperties: [
599
+ // AllFormInputPrimaryKeys.Label,
600
+ // AllFormInputPrimaryKeys.Appearance,
601
+ // AllFormInputPrimaryKeys.FormControlName,
602
+ // AllFormInputPrimaryKeys.Required,
603
+ // ],
604
+ // properties: [
605
+ // AllFormInputPrimaryKeys.Label,
606
+ // AllFormInputPrimaryKeys.Appearance,
607
+ // AllFormInputPrimaryKeys.FormControlName,
608
+ // AllFormInputPrimaryKeys.Validators,
609
+ // AllFormInputPrimaryKeys.Required,
610
+ // AllFormInputPrimaryKeys.MatOptions,
611
+ // AllFormInputPrimaryKeys.Value,
612
+ // AllFormInputPrimaryKeys.HintLabel,
613
+ // FormInputKeys.TableConfig,
614
+ // //FormInputKeys.FormInputSelector,
615
+ // ],
616
+ // elementTemplate: {
617
+ // element: ElementTypes.MatrixTable,
618
+ // appearance: 'outline',
619
+ // isCalculatedField: false,
620
+ // required: true,
621
+ // onlySetTempErrorOnTouch: false,
622
+ // colSize: 12,
623
+ // validators: [],
624
+ // tableConfig: {
625
+ // displayedColumnsInOrder: [],
626
+ // columnsConfig: {}
627
+ // },
628
+ // dataType: InputDataTypes.Array,
629
+ // } as any,
630
+ // },
631
+ [ElementTypes.MultipleInput]: {
632
+ label: 'Item list',
633
+ illustration: '/assets/multipleInputsInOne.svg',
634
+ disabled: false,
635
+ requiredProperties: [
636
+ AllFormInputPrimaryKeys.Label,
637
+ AllFormInputPrimaryKeys.Appearance,
638
+ AllFormInputPrimaryKeys.FormControlName,
639
+ AllFormInputPrimaryKeys.FormInputs,
640
+ AllFormInputPrimaryKeys.HandleLabel,
641
+ ],
642
+ properties: [
643
+ AllFormInputPrimaryKeys.Label,
644
+ AllFormInputPrimaryKeys.Appearance,
645
+ AllFormInputPrimaryKeys.FormControlName,
646
+ AllFormInputPrimaryKeys.Validators,
647
+ AllFormInputPrimaryKeys.Required,
648
+ AllFormInputPrimaryKeys.HintLabel,
649
+ AllFormInputPrimaryKeys.FormInputs,
650
+ AllFormInputPrimaryKeys.HandleLabel,
651
+ ],
652
+ elementTemplate: {
653
+ element: ElementTypes.MultipleInput,
654
+ appearance: 'outline',
655
+ isCalculatedField: false,
656
+ required: true,
657
+ onlySetTempErrorOnTouch: false,
658
+ colSize: 12,
659
+ dataType: InputDataTypes.Array,
660
+ validators: [],
661
+ handleLabel: "Add to list",
662
+ formInputs: [],
663
+ calculateListFunctions: [],
664
+ },
665
+ },
666
+ [ElementTypes.Editor]: {
667
+ label: 'Rich text editor',
668
+ illustration: '/assets/textEditor.svg',
669
+ disabled: false,
670
+ requiredProperties: [
671
+ AllFormInputPrimaryKeys.Label,
672
+ AllFormInputPrimaryKeys.Appearance,
673
+ AllFormInputPrimaryKeys.FormControlName,
674
+ AllFormInputPrimaryKeys.Required,
675
+ AllFormInputPrimaryKeys.RichTextEditorLibrary
676
+ ],
677
+ properties: [
678
+ AllFormInputPrimaryKeys.Label,
679
+ AllFormInputPrimaryKeys.Appearance,
680
+ AllFormInputPrimaryKeys.FormControlName,
681
+ AllFormInputPrimaryKeys.Validators,
682
+ AllFormInputPrimaryKeys.Required,
683
+ AllFormInputPrimaryKeys.Value,
684
+ AllFormInputPrimaryKeys.HintLabel,
685
+ AllFormInputPrimaryKeys.RichTextEditorLibrary
686
+ ],
687
+ elementTemplate: {
688
+ element: ElementTypes.Editor,
689
+ required: true,
690
+ onlySetTempErrorOnTouch: false,
691
+ dataType: InputDataTypes.String,
692
+ colSize: 12,
693
+ validators: [],
694
+ appearance: 'outline',
695
+ isCalculatedField: false,
696
+ richTextEditorLibrary: RichTextEditorType.EditorJS,
697
+ },
698
+ },
699
+ [ElementTypes.MscoaSelection]: {
700
+ label: 'MSCOA Account Selection',
701
+ illustration: '/assets/captureImage.svg',
702
+ disabled: false,
703
+ requiredProperties: [AllFormInputPrimaryKeys.Label,
704
+ AllFormInputPrimaryKeys.Appearance,
705
+ AllFormInputPrimaryKeys.FormControlName,
706
+ AllFormInputPrimaryKeys.Required,
707
+ ],
708
+ properties: [
709
+ AllFormInputPrimaryKeys.Label,
710
+ AllFormInputPrimaryKeys.Appearance,
711
+ AllFormInputPrimaryKeys.FormControlName,
712
+ AllFormInputPrimaryKeys.Validators,
713
+ AllFormInputPrimaryKeys.Required,
714
+ AllFormInputPrimaryKeys.HintLabel,
715
+ SpecialElementKeys.ShowAllMcoaSegments,
716
+ AllFormInputPrimaryKeys.TourContent,
717
+ AllFormInputPrimaryKeys.MatOptions,
718
+ AllFormInputPrimaryKeys.MscoaConfig
719
+ ],
720
+ elementTemplate: {
721
+ element: ElementTypes.MscoaSelection,
722
+ appearance: 'outline',
723
+ isCalculatedField: false,
724
+ required: true,
725
+ onlySetTempErrorOnTouch: false,
726
+ colSize: 12,
727
+ validators: [],
728
+ matOptions: MSCOA_INPUT_DEFAULT_MAT_OPTIONS,
729
+ mscoaConfig: {
730
+ showAllSegments: false,
731
+ segments: [],
732
+ inputs: []
733
+ },
734
+ dataType: InputDataTypes.Object
735
+ },
736
+ }
737
+ /*{
738
+ label: 'mutipleInput',
739
+ illustration: '/assets/multipleInputs.svg',
740
+ },*/
741
+ };