@arquimedes.co/eureka-forms 1.9.83-test → 1.9.85-test

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 (217) hide show
  1. package/dist/@Types/@Types.d.ts +2 -0
  2. package/dist/@Types/@Types.js +1 -0
  3. package/dist/@Types/AYFFormStep.d.ts +19 -0
  4. package/dist/@Types/AYFFormStep.js +1 -0
  5. package/dist/@Types/CBRFormStep.d.ts +74 -0
  6. package/dist/@Types/CBRFormStep.js +1 -0
  7. package/dist/@Types/Form.d.ts +65 -0
  8. package/dist/@Types/Form.js +1 -0
  9. package/dist/@Types/FormStep.d.ts +138 -0
  10. package/dist/@Types/FormStep.js +1 -0
  11. package/dist/@Types/GenericFormSteps.d.ts +60 -0
  12. package/dist/@Types/GenericFormSteps.js +1 -0
  13. package/dist/@Types/Organization.d.ts +17 -0
  14. package/dist/@Types/Organization.js +1 -0
  15. package/dist/@Types/index.d.ts +1 -0
  16. package/dist/@Types/index.js +1 -0
  17. package/dist/App.d.ts +62 -0
  18. package/dist/App.js +470 -0
  19. package/dist/App.module.css +34 -0
  20. package/dist/AxiosAPI.d.ts +2 -0
  21. package/dist/AxiosAPI.js +8 -0
  22. package/dist/AxiosWidget.d.ts +2 -0
  23. package/dist/AxiosWidget.js +8 -0
  24. package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +8 -0
  25. package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +379 -0
  26. package/dist/FormComponents/Form/ColumnForm/ColumnForm.module.css +51 -0
  27. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.d.ts +12 -0
  28. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.js +31 -0
  29. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.module.css +64 -0
  30. package/dist/FormComponents/Form/Form.d.ts +42 -0
  31. package/dist/FormComponents/Form/Form.js +147 -0
  32. package/dist/FormComponents/Form/Form.module.css +39 -0
  33. package/dist/FormComponents/Form/StepperForm/StepperForm.d.ts +4 -0
  34. package/dist/FormComponents/Form/StepperForm/StepperForm.js +6 -0
  35. package/dist/FormComponents/Form/StepperForm/StepperForm.module.css +0 -0
  36. package/dist/FormComponents/Section/MaterialSection/MaterialSection.d.ts +4 -0
  37. package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +42 -0
  38. package/dist/FormComponents/Section/MaterialSection/MaterialSection.module.css +8 -0
  39. package/dist/FormComponents/Section/Section.d.ts +39 -0
  40. package/dist/FormComponents/Section/Section.js +23 -0
  41. package/dist/FormComponents/Step/@Construction/CBRElementStep/CBRElementStep.d.ts +8 -0
  42. package/dist/FormComponents/Step/@Construction/CBRElementStep/CBRElementStep.js +139 -0
  43. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +9 -0
  44. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +23 -0
  45. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +8 -0
  46. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +49 -0
  47. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.module.css +60 -0
  48. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +11 -0
  49. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +121 -0
  50. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +34 -0
  51. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +8 -0
  52. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.js +138 -0
  53. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.module.css +54 -0
  54. package/dist/FormComponents/Step/AYFStepMapper.d.ts +12 -0
  55. package/dist/FormComponents/Step/AYFStepMapper.js +170 -0
  56. package/dist/FormComponents/Step/CBRStepMapper.d.ts +13 -0
  57. package/dist/FormComponents/Step/CBRStepMapper.js +202 -0
  58. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.d.ts +9 -0
  59. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.js +35 -0
  60. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +4 -0
  61. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +65 -0
  62. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +37 -0
  63. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +9 -0
  64. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.js +35 -0
  65. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +4 -0
  66. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +121 -0
  67. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +25 -0
  68. package/dist/FormComponents/Step/CollapsibleStep/CollapsibleStep.d.ts +9 -0
  69. package/dist/FormComponents/Step/CollapsibleStep/CollapsibleStep.js +37 -0
  70. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +4 -0
  71. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +75 -0
  72. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +62 -0
  73. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.d.ts +11 -0
  74. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.js +23 -0
  75. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +4 -0
  76. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +48 -0
  77. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +9 -0
  78. package/dist/FormComponents/Step/EntityValueStep/EntityValuePickerStep.d.ts +15 -0
  79. package/dist/FormComponents/Step/EntityValueStep/EntityValuePickerStep.js +35 -0
  80. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +4 -0
  81. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +203 -0
  82. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +25 -0
  83. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.d.ts +9 -0
  84. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.js +23 -0
  85. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +13 -0
  86. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +123 -0
  87. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +60 -0
  88. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +16 -0
  89. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +272 -0
  90. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +59 -0
  91. package/dist/FormComponents/Step/MapperStep/MapperStep.d.ts +16 -0
  92. package/dist/FormComponents/Step/MapperStep/MapperStep.js +35 -0
  93. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +10 -0
  94. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.js +29 -0
  95. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.module.css +60 -0
  96. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.d.ts +13 -0
  97. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.js +33 -0
  98. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.module.css +60 -0
  99. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +15 -0
  100. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.js +275 -0
  101. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +42 -0
  102. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +4 -0
  103. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.js +71 -0
  104. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.module.css +30 -0
  105. package/dist/FormComponents/Step/RatingStep/RatingStep.d.ts +9 -0
  106. package/dist/FormComponents/Step/RatingStep/RatingStep.js +23 -0
  107. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +4 -0
  108. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +104 -0
  109. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +25 -0
  110. package/dist/FormComponents/Step/SelectorStep/SelectorStep.d.ts +9 -0
  111. package/dist/FormComponents/Step/SelectorStep/SelectorStep.js +35 -0
  112. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +4 -0
  113. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +11 -0
  114. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +7 -0
  115. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.d.ts +9 -0
  116. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.js +35 -0
  117. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +10 -0
  118. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +241 -0
  119. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.module.css +9 -0
  120. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.d.ts +33 -0
  121. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.js +23 -0
  122. package/dist/FormComponents/Step/Step.d.ts +11 -0
  123. package/dist/FormComponents/Step/Step.js +108 -0
  124. package/dist/FormComponents/Step/StepFunctions.d.ts +5 -0
  125. package/dist/FormComponents/Step/StepFunctions.js +65 -0
  126. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +96 -0
  127. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +13 -0
  128. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +213 -0
  129. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +93 -0
  130. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.d.ts +10 -0
  131. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.js +23 -0
  132. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +4 -0
  133. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +76 -0
  134. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +9 -0
  135. package/dist/FormComponents/Step/TextInputStep/TextInputStep.d.ts +13 -0
  136. package/dist/FormComponents/Step/TextInputStep/TextInputStep.js +23 -0
  137. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +4 -0
  138. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +20 -0
  139. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +19 -0
  140. package/dist/FormComponents/Step/TitleStep/TitleStep.d.ts +9 -0
  141. package/dist/FormComponents/Step/TitleStep/TitleStep.js +35 -0
  142. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.d.ts +4 -0
  143. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.js +88 -0
  144. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.module.css +83 -0
  145. package/dist/FormComponents/Term/Term.d.ts +15 -0
  146. package/dist/FormComponents/Term/Term.js +23 -0
  147. package/dist/Icons/Construction/LeakIcon.d.ts +3 -0
  148. package/dist/Icons/Construction/LeakIcon.js +16 -0
  149. package/dist/Icons/Construction/ProjectIcon.d.ts +3 -0
  150. package/dist/Icons/Construction/ProjectIcon.js +16 -0
  151. package/dist/Icons/Construction/PropertyIcon.d.ts +3 -0
  152. package/dist/Icons/Construction/PropertyIcon.js +16 -0
  153. package/dist/Icons/Construction/SpaceIcon.d.ts +3 -0
  154. package/dist/Icons/Construction/SpaceIcon.js +16 -0
  155. package/dist/Icons/DocumentIcon.d.ts +3 -0
  156. package/dist/Icons/DocumentIcon.js +16 -0
  157. package/dist/Icons/Entities/GenericEntityIcon.d.ts +2 -0
  158. package/dist/Icons/Entities/GenericEntityIcon.js +17 -0
  159. package/dist/Icons/Entities/HandshakeIcon.d.ts +2 -0
  160. package/dist/Icons/Entities/HandshakeIcon.js +17 -0
  161. package/dist/Widget.d.ts +1 -0
  162. package/dist/Widget.js +61 -0
  163. package/dist/constants/AYFFormStepTypes.d.ts +9 -0
  164. package/dist/constants/AYFFormStepTypes.js +10 -0
  165. package/dist/constants/CBRFormStepTypes.d.ts +21 -0
  166. package/dist/constants/CBRFormStepTypes.js +22 -0
  167. package/dist/constants/Files/FileExtensions.d.ts +3 -0
  168. package/dist/constants/Files/FileExtensions.js +68 -0
  169. package/dist/constants/Files/FileMaxSize.d.ts +2 -0
  170. package/dist/constants/Files/FileMaxSize.js +2 -0
  171. package/dist/constants/FormStepTypes.d.ts +46 -0
  172. package/dist/constants/FormStepTypes.js +54 -0
  173. package/dist/constants/IconTypes.d.ts +10 -0
  174. package/dist/constants/IconTypes.js +11 -0
  175. package/dist/constants/InternalFormStyle.d.ts +3 -0
  176. package/dist/constants/InternalFormStyle.js +16 -0
  177. package/dist/constants/MaterialClassNameSeed.d.ts +1 -0
  178. package/dist/constants/MaterialClassNameSeed.js +1 -0
  179. package/dist/controllers/FileService.d.ts +5 -0
  180. package/dist/controllers/FileService.js +92 -0
  181. package/dist/index.d.ts +1 -0
  182. package/dist/index.js +29 -0
  183. package/dist/index.lib.d.ts +7 -0
  184. package/dist/index.lib.js +5 -0
  185. package/dist/index.module.css +14 -0
  186. package/dist/shared/InputIcon/InputIcon.d.ts +7 -0
  187. package/dist/shared/InputIcon/InputIcon.js +81 -0
  188. package/dist/shared/Loader/Loader.d.ts +18 -0
  189. package/dist/shared/Loader/Loader.js +26 -0
  190. package/dist/shared/Loader/Loader.module.css +12 -0
  191. package/dist/shared/Navbar/Navbar.d.ts +9 -0
  192. package/dist/shared/Navbar/Navbar.js +18 -0
  193. package/dist/shared/Navbar/Navbar.module.css +18 -0
  194. package/dist/shared/Rating/Rating.d.ts +16 -0
  195. package/dist/shared/Rating/Rating.js +41 -0
  196. package/dist/shared/Rating/Rating.module.css +32 -0
  197. package/dist/shared/Rating/Ratings/LikeRating.d.ts +4 -0
  198. package/dist/shared/Rating/Ratings/LikeRating.js +43 -0
  199. package/dist/shared/Rating/Ratings/SatisfactionRating.d.ts +4 -0
  200. package/dist/shared/Rating/Ratings/SatisfactionRating.js +61 -0
  201. package/dist/shared/Rating/Ratings/ScaleRating.d.ts +4 -0
  202. package/dist/shared/Rating/Ratings/ScaleRating.js +63 -0
  203. package/dist/shared/RoundedButton/RoundedButton.d.ts +30 -0
  204. package/dist/shared/RoundedButton/RoundedButton.js +45 -0
  205. package/dist/shared/RoundedCheckBox/RoundedCheckBox.d.ts +24 -0
  206. package/dist/shared/RoundedCheckBox/RoundedCheckBox.js +101 -0
  207. package/dist/shared/RoundedDatePicker/RoundedDatePicker.d.ts +48 -0
  208. package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +348 -0
  209. package/dist/shared/RoundedSelect/RoundedSelect.d.ts +68 -0
  210. package/dist/shared/RoundedSelect/RoundedSelect.js +214 -0
  211. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.d.ts +66 -0
  212. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.js +234 -0
  213. package/dist/shared/RoundedTextField/RoundedTextField.d.ts +45 -0
  214. package/dist/shared/RoundedTextField/RoundedTextField.js +175 -0
  215. package/dist/utils/CbrFunctions.d.ts +8 -0
  216. package/dist/utils/CbrFunctions.js +53 -0
  217. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export type { Organization } from './Organization';
2
+ export type { Form } from './Form';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import AYFFormStepTypes from '../constants/AYFFormStepTypes';
2
+ import { GDatePicker, GSmartSelect, GTextInput } from './GenericFormSteps';
3
+ export type AYFFormStep = AYFListStep | AYFBillNumStep | AYFYearStep | AYFCutOffDateStep | AYFCityStep;
4
+ export interface AYFListStep extends Omit<GSmartSelect, 'searchable'> {
5
+ type: AYFFormStepTypes.AYF_START_MONTH | AYFFormStepTypes.AYF_END_MONTH;
6
+ }
7
+ export interface AYFBillNumStep extends GTextInput {
8
+ type: AYFFormStepTypes.AYF_BILL_NUM;
9
+ }
10
+ export interface AYFYearStep extends GTextInput {
11
+ type: AYFFormStepTypes.AYF_YEAR;
12
+ }
13
+ export interface AYFCutOffDateStep extends GDatePicker {
14
+ type: AYFFormStepTypes.AYF_CUT_OFF_DATE;
15
+ }
16
+ export interface AYFCityStep extends GSmartSelect {
17
+ type: AYFFormStepTypes.AYF_ICA_CITY;
18
+ idNitStep: string;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,74 @@
1
+ import Types from '../constants/CBRFormStepTypes';
2
+ import { GSmartSelect, GTextArea, GTextInput, GBaseStep } from './GenericFormSteps';
3
+ export type CBRFormStep = CBRFirstNameStep | CBRMiddleNameStep | CBRLastNameStep | CBRSecondLastNameStep | PostVentaStep | CBRProjectStep | CBRDocStep | CBRCelStep | CBRPhoneStep | CBRDocTypeStep | CBREmailStep | CBRRequesterTypeStep | CBRPropertyStep | CBRSpaceTypeStep | CBRElementStep | CBRCommentStep | CBRIncidentsStep;
4
+ export interface PostVentaStep extends GBaseStep {
5
+ type: Types.CBR_POSTVENTA;
6
+ }
7
+ export interface CBRProjectStep extends GSmartSelect {
8
+ type: Types.CBR_PROYECTO | Types.CBR_MACRO_PROYECTO;
9
+ steps: string[];
10
+ /** Only has maxSize if level === 0 */
11
+ maxSize: number;
12
+ }
13
+ export interface CBRDocTypeStep extends Omit<GSmartSelect, 'showIcon'> {
14
+ type: Types.CBR_TIPO_DOC;
15
+ }
16
+ export interface CBRRequesterTypeStep extends GSmartSelect {
17
+ type: Types.CBR_TIPO_SOLICITANTE;
18
+ }
19
+ export interface CBRPropertyStep extends GSmartSelect {
20
+ type: Types.CBR_INMUEBLE;
21
+ validation?: {
22
+ maxDays: number;
23
+ message: string;
24
+ };
25
+ }
26
+ export interface CBRSpaceTypeStep extends GSmartSelect {
27
+ type: Types.CBR_TIPO_ESPACIO;
28
+ }
29
+ export interface CBRFirstNameStep extends GTextInput {
30
+ type: Types.CBR_FIRST_NAME;
31
+ }
32
+ export interface CBRMiddleNameStep extends GTextInput {
33
+ type: Types.CBR_MIDDLE_NAME;
34
+ }
35
+ export interface CBRLastNameStep extends GTextInput {
36
+ type: Types.CBR_LAST_NAME;
37
+ }
38
+ export interface CBRSecondLastNameStep extends GTextInput {
39
+ type: Types.CBR_SECOND_LAST_NAME;
40
+ }
41
+ export interface CBRDocStep extends GTextInput {
42
+ type: Types.CBR_DOC;
43
+ showIcon: boolean;
44
+ }
45
+ export interface CBRCelStep extends GTextInput {
46
+ type: Types.CBR_CEL;
47
+ }
48
+ export interface CBRPhoneStep extends GTextInput {
49
+ type: Types.CBR_PHONE;
50
+ }
51
+ export interface CBREmailStep extends GTextInput {
52
+ type: Types.CBR_EMAIL;
53
+ }
54
+ export interface CBRElementStep extends GSmartSelect {
55
+ type: Types.CBR_LOCATIVAS;
56
+ subStep: string | null;
57
+ }
58
+ export interface CBRCommentStep extends Omit<GTextArea, 'hasTextEditor'> {
59
+ type: Types.CBR_COMENTARIO;
60
+ }
61
+ export interface CBRIncidentsStep extends GBaseStep {
62
+ type: Types.CBR_INCIDENCIAS;
63
+ label: string;
64
+ description: string | null;
65
+ addBtnLabel: string;
66
+ required: boolean;
67
+ unitLabel: string;
68
+ spaceStep: Omit<CBRSpaceTypeStep, 'id' | 'type'>;
69
+ elementStep: IncidentElementStep;
70
+ commentStep: Omit<CBRCommentStep, 'id' | 'type'>;
71
+ }
72
+ export interface IncidentElementStep extends Omit<CBRElementStep, 'id' | 'subStep' | 'type'> {
73
+ subStep?: IncidentElementStep;
74
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,65 @@
1
+ import { FormStyleTypes, FormTypes } from '../constants/FormStepTypes';
2
+ import { FormStep } from './FormStep';
3
+ export interface Form {
4
+ apiKey?: string;
5
+ name?: string;
6
+ sections: Record<string, Section>;
7
+ steps: Record<string, FormStep>;
8
+ size: FormSize;
9
+ firstSection: string;
10
+ type?: FormTypes;
11
+ hasCaptcha?: boolean;
12
+ isStandAlone?: boolean;
13
+ style?: FormStyle;
14
+ classifiers?: Record<string, Classifier>;
15
+ terms?: Term[];
16
+ }
17
+ export interface FormSize {
18
+ blockNum: 1 | 2 | 3 | 4;
19
+ blockSize: number;
20
+ spacingSize: number;
21
+ }
22
+ export interface Term {
23
+ id: string;
24
+ message: string;
25
+ clickEffect?: TermDialog | TermLink;
26
+ }
27
+ interface TermDialog {
28
+ type: 'DIALOG';
29
+ title: string;
30
+ text: string;
31
+ }
32
+ interface TermLink {
33
+ type: 'LINK';
34
+ url: string;
35
+ }
36
+ export interface Classifier {
37
+ _id: string;
38
+ name: string;
39
+ clientName?: string;
40
+ children: string[];
41
+ }
42
+ export type FormStyle = MaterialStyle;
43
+ export type StyleKeys = keyof Omit<FormStyle, 'type'>;
44
+ export interface MaterialStyle {
45
+ type: FormStyleTypes.MATERIAL;
46
+ standAloneBackgroundColor: string;
47
+ backgroundColor: string;
48
+ primaryColor: string;
49
+ secondaryColor: string;
50
+ errorColor: string;
51
+ primaryContrastColor: string;
52
+ secondaryContrastColor: string;
53
+ textColor: string;
54
+ outlineColor: string;
55
+ stepBackgroundColor: string;
56
+ descriptionTextColor: string;
57
+ }
58
+ export interface Section {
59
+ id: string;
60
+ name: string;
61
+ title?: string;
62
+ steps: string[];
63
+ nextSection: string | null;
64
+ }
65
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,138 @@
1
+ import Types, { ClassifierOptionTypes, OptionTypes, RatingTypes, MapperStyleTypes, EntityValueOptionTypes } from '../constants/FormStepTypes';
2
+ import * as GSteps from './GenericFormSteps';
3
+ export type FormStep = Title | Rating | CheckBox | TextArea | TextInput | DatePicker | FileUpload | Separator | FormSelector | ClassifierSelector | Collapsible | EntityValuePicker | Mapper;
4
+ export interface Title extends GSteps.GBaseStep {
5
+ type: Types.TITLE;
6
+ title: string;
7
+ description: string | null;
8
+ }
9
+ export interface CheckBox extends GSteps.GCheckBox {
10
+ type: Types.CHECKBOX;
11
+ steps: string[];
12
+ }
13
+ export interface Rating extends GSteps.GBaseStep {
14
+ type: Types.RATING;
15
+ label: string;
16
+ description: string;
17
+ required: boolean;
18
+ ratingType: RatingTypes;
19
+ nestedSteps: string[][] | null;
20
+ }
21
+ export interface FileUpload extends GSteps.GBaseStep {
22
+ type: Types.FILEUPLOAD;
23
+ label: string;
24
+ description: string | null;
25
+ required: boolean;
26
+ value: string[];
27
+ }
28
+ export interface Separator extends GSteps.GSeparator {
29
+ type: Types.SEPARATOR;
30
+ }
31
+ export interface TextArea extends GSteps.GTextArea {
32
+ type: Types.TEXTAREA;
33
+ }
34
+ export interface TextInput extends GSteps.GTextInput {
35
+ type: Types.TEXTINPUT;
36
+ }
37
+ export interface DatePicker extends GSteps.GDatePicker {
38
+ type: Types.DATEPICKER;
39
+ }
40
+ export interface Collapsible extends GSteps.GBaseStep {
41
+ type: Types.COLLAPSIBLE;
42
+ label: string;
43
+ steps: string[];
44
+ }
45
+ export interface FormSelector extends GSteps.GBaseStep {
46
+ type: Types.SELECTOR;
47
+ label: string;
48
+ description: string;
49
+ required: boolean;
50
+ searchable: boolean;
51
+ options: FormSelectorOption[];
52
+ size: 1 | 2 | 3 | 4;
53
+ maxSize: number;
54
+ }
55
+ export type FormSelectorOption = DefaultFormSelectorOption | NestedStepOption | AddSectionOption;
56
+ interface DefaultFormSelectorOption {
57
+ label: string;
58
+ value: string;
59
+ type: OptionTypes.DEFAULT;
60
+ }
61
+ export interface NestedStepOption {
62
+ label: string;
63
+ value: string;
64
+ type: OptionTypes.NESTED;
65
+ steps: string[];
66
+ }
67
+ interface AddSectionOption {
68
+ label: string;
69
+ value: string;
70
+ type: OptionTypes.ADD_SECTION;
71
+ idSection: string;
72
+ }
73
+ export interface ClassifierSelector extends GSteps.GBaseStep {
74
+ type: Types.CLASSIFIER_SELECTOR;
75
+ idClassifier: string | null;
76
+ label: string;
77
+ description: string;
78
+ searchable: boolean;
79
+ options: Record<string, FormClassifierSelectorOption>;
80
+ required: boolean;
81
+ size: 1 | 2 | 3 | 4;
82
+ maxSize: number;
83
+ }
84
+ export type FormClassifierSelectorOption = NestedStepClassifierOption | HideValueOption;
85
+ interface NestedStepClassifierOption {
86
+ type: ClassifierOptionTypes.NESTED;
87
+ idClassifier: string;
88
+ steps: string[];
89
+ }
90
+ interface HideValueOption {
91
+ type: ClassifierOptionTypes.HIDE;
92
+ idClassifier: String;
93
+ }
94
+ export interface EntityValuePicker extends GSteps.GSmartSelect {
95
+ type: Types.ENTITYVALUEPICKER;
96
+ idEntity: string;
97
+ icon: string | null;
98
+ filters: {
99
+ idProperty: string;
100
+ idStep?: string;
101
+ value?: string;
102
+ required?: boolean;
103
+ }[];
104
+ path: {
105
+ idEntity: string;
106
+ idStep?: string;
107
+ idEntityValue?: string;
108
+ }[];
109
+ options: Record<string, FormEntityValuePickerOption>;
110
+ maxSize: number;
111
+ }
112
+ export type FormEntityValuePickerOption = NestedEntityValuePickerOption | HideFormEntityValuePickerOption;
113
+ interface NestedEntityValuePickerOption {
114
+ type: EntityValueOptionTypes.NESTED;
115
+ idEntityValue: string;
116
+ steps: string[];
117
+ }
118
+ interface HideFormEntityValuePickerOption {
119
+ type: EntityValueOptionTypes.HIDE;
120
+ idEntityValue: String;
121
+ }
122
+ export interface Mapper extends GSteps.GBaseStep {
123
+ type: Types.MAPPER;
124
+ style: {
125
+ type: MapperStyleTypes;
126
+ size?: number;
127
+ };
128
+ label: string;
129
+ description: string | null;
130
+ addBtnLabel: string;
131
+ rootSteps: string[];
132
+ steps: Record<string, FormStep>;
133
+ required: boolean;
134
+ unitLabel: string;
135
+ creatable?: boolean;
136
+ deletable?: boolean;
137
+ }
138
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,60 @@
1
+ export interface GBaseStep {
2
+ id: string;
3
+ type: string;
4
+ editable?: boolean;
5
+ partial?: boolean;
6
+ dependencies?: string[];
7
+ }
8
+ export interface GTitle extends GBaseStep {
9
+ title: string;
10
+ description: string | null;
11
+ }
12
+ export interface GCheckBox extends GBaseStep {
13
+ label: string;
14
+ description: string | null;
15
+ required: boolean;
16
+ size: 1 | 2 | 3 | 4;
17
+ }
18
+ export interface GSeparator extends GBaseStep {
19
+ transparent: boolean;
20
+ }
21
+ export interface GTextArea extends GBaseStep {
22
+ label: string;
23
+ description: string | null;
24
+ required: boolean;
25
+ hasTextEditor: boolean;
26
+ }
27
+ export interface GTextInput extends GBaseStep {
28
+ label: string;
29
+ description: string | null;
30
+ validation?: {
31
+ message: string;
32
+ value: string;
33
+ type: 'EMAIL' | 'OTHER';
34
+ };
35
+ required: boolean;
36
+ showIcon?: boolean;
37
+ size: 1 | 2 | 3 | 4;
38
+ }
39
+ export interface GDatePicker extends GBaseStep {
40
+ label: string;
41
+ description: string | null;
42
+ pickTime: boolean;
43
+ required: boolean;
44
+ size: 1 | 2 | 3 | 4;
45
+ }
46
+ export interface GAgentPicker extends GBaseStep {
47
+ label: string;
48
+ description: string | null;
49
+ required: boolean;
50
+ multiple: boolean;
51
+ size: 1 | 2 | 3 | 4;
52
+ }
53
+ export interface GSmartSelect extends GBaseStep {
54
+ label: string;
55
+ description: string | null;
56
+ showIcon: boolean;
57
+ required: boolean;
58
+ searchable: boolean;
59
+ size: 1 | 2 | 3 | 4;
60
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ export interface Organization {
2
+ /** The Organization's id */
3
+ idOrganization: string;
4
+ /** The Organization's name */
5
+ name: string;
6
+ /** The organization Logo url */
7
+ logoUrl: string;
8
+ /** The organization Favicon url */
9
+ iconUrl?: string;
10
+ mainCity?: string;
11
+ styles?: {
12
+ primaryColor: string;
13
+ secondaryColor: string;
14
+ contrastColor: string;
15
+ navbarColor?: string;
16
+ };
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './@Types';
@@ -0,0 +1 @@
1
+ export * from './@Types';
package/dist/App.d.ts ADDED
@@ -0,0 +1,62 @@
1
+ import { ReactNode } from 'react';
2
+ import { Classifier, Form } from './@Types/Form';
3
+ import { FormStep } from './@Types/FormStep';
4
+ export interface AppProps {
5
+ /** If the app is currently a widget */
6
+ isWidget?: boolean;
7
+ /** The apikey of the Form */
8
+ apiKey?: string;
9
+ /** The domain of the form's organization */
10
+ domain?: string;
11
+ /** The form to display, (used for postviews) */
12
+ formData?: Form;
13
+ /** If the widget is usedInternally */
14
+ internal?: boolean;
15
+ /** If the widget is a postview (view what the user filled)*/
16
+ postview?: boolean;
17
+ /** If postview should only show steps with values*/
18
+ partial?: boolean;
19
+ /** If the widget is a preview (view from admin)*/
20
+ preview?: boolean;
21
+ /** If the form can be edited (For entities) */
22
+ editable?: boolean;
23
+ /** The custom send label to display */
24
+ sendLabel?: string;
25
+ /** The data to fill the form with */
26
+ valuesData?: Record<string, unknown>;
27
+ /** Custom steps to display */
28
+ customSteps?: Record<string, CustomStep>;
29
+ /** Custom steps to display */
30
+ customStepProps?: Record<string, any>;
31
+ /** Classifiers dict */
32
+ classifiers?: Record<string, Classifier>;
33
+ /** Custom function to call on send */
34
+ customSend?: (values: any, reload: Function) => Promise<void>;
35
+ /** Custom submit buttons */
36
+ customSubmit?: JSX.Element;
37
+ /** Function to call on postview to fetch the download url of a file */
38
+ fetchDownloadUrl?: (S3Key: string, fileName: string) => Promise<string>;
39
+ /** Function to call after the confimation dialog has been closed */
40
+ handleConfirmed?: Function;
41
+ }
42
+ export interface CustomStep {
43
+ componentProps?: Record<string, any>;
44
+ component: ReactNode;
45
+ calcValue?: (step: any, value: any) => any;
46
+ /** Function to change custom steps nested step ids to the generated ones. */
47
+ calcRecursiveData?: (step: any, ids: Record<string, string>) => void;
48
+ calcDependencyValue?: (step: any, value: any) => any;
49
+ }
50
+ declare function App({ apiKey, domain, preview, partial, formData, postview, editable, isWidget, internal, valuesData, customSend, customSteps, classifiers, handleConfirmed, customStepProps, ...others }: AppProps): JSX.Element;
51
+ export default App;
52
+ export declare enum SIZES {
53
+ SMALL = "SMALL",
54
+ MEDIUM = "MEDIUM",
55
+ LARGE = "LARGE"
56
+ }
57
+ export declare const SizesToNum: {
58
+ LARGE: number;
59
+ MEDIUM: number;
60
+ SMALL: number;
61
+ };
62
+ export declare const mapOriginalValue: (step: FormStep, value: any, form?: Form) => any;