@axelor/aos-mobile-intervention 8.1.0

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 (271) hide show
  1. package/README.md +46 -0
  2. package/lib/api/client-and-prospect-api.d.ts +4 -0
  3. package/lib/api/client-and-prospect-api.js +57 -0
  4. package/lib/api/client-and-prospect-api.js.map +1 -0
  5. package/lib/api/contract-api.d.ts +5 -0
  6. package/lib/api/contract-api.js +45 -0
  7. package/lib/api/contract-api.js.map +1 -0
  8. package/lib/api/equipment-api.d.ts +43 -0
  9. package/lib/api/equipment-api.js +212 -0
  10. package/lib/api/equipment-api.js.map +1 -0
  11. package/lib/api/equipment-family-api.d.ts +4 -0
  12. package/lib/api/equipment-family-api.js +28 -0
  13. package/lib/api/equipment-family-api.js.map +1 -0
  14. package/lib/api/equipment-line-api.d.ts +4 -0
  15. package/lib/api/equipment-line-api.js +38 -0
  16. package/lib/api/equipment-line-api.js.map +1 -0
  17. package/lib/api/equipment-picture-api.d.ts +14 -0
  18. package/lib/api/equipment-picture-api.js +56 -0
  19. package/lib/api/equipment-picture-api.js.map +1 -0
  20. package/lib/api/index.d.ts +9 -0
  21. package/lib/api/index.js +27 -0
  22. package/lib/api/index.js.map +1 -0
  23. package/lib/api/intervention-api.d.ts +34 -0
  24. package/lib/api/intervention-api.js +149 -0
  25. package/lib/api/intervention-api.js.map +1 -0
  26. package/lib/api/intervention-note-api.d.ts +19 -0
  27. package/lib/api/intervention-note-api.js +79 -0
  28. package/lib/api/intervention-note-api.js.map +1 -0
  29. package/lib/api/question-api.d.ts +14 -0
  30. package/lib/api/question-api.js +78 -0
  31. package/lib/api/question-api.js.map +1 -0
  32. package/lib/components/atoms/EquipmentCard/EquipmentCard.d.ts +11 -0
  33. package/lib/components/atoms/EquipmentCard/EquipmentCard.js +65 -0
  34. package/lib/components/atoms/EquipmentCard/EquipmentCard.js.map +1 -0
  35. package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.d.ts +12 -0
  36. package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.js +42 -0
  37. package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.js.map +1 -0
  38. package/lib/components/atoms/InterventionCard/InterventionCard.d.ts +15 -0
  39. package/lib/components/atoms/InterventionCard/InterventionCard.js +97 -0
  40. package/lib/components/atoms/InterventionCard/InterventionCard.js.map +1 -0
  41. package/lib/components/atoms/NoteCard/NoteCard.d.ts +12 -0
  42. package/lib/components/atoms/NoteCard/NoteCard.js +65 -0
  43. package/lib/components/atoms/NoteCard/NoteCard.js.map +1 -0
  44. package/lib/components/atoms/PictureCard/PictureCard.d.ts +10 -0
  45. package/lib/components/atoms/PictureCard/PictureCard.js +71 -0
  46. package/lib/components/atoms/PictureCard/PictureCard.js.map +1 -0
  47. package/lib/components/atoms/QuestionCard/QuestionCard.d.ts +10 -0
  48. package/lib/components/atoms/QuestionCard/QuestionCard.js +67 -0
  49. package/lib/components/atoms/QuestionCard/QuestionCard.js.map +1 -0
  50. package/lib/components/atoms/index.d.ts +6 -0
  51. package/lib/components/atoms/index.js +24 -0
  52. package/lib/components/atoms/index.js.map +1 -0
  53. package/lib/components/index.d.ts +5 -0
  54. package/lib/components/index.js +23 -0
  55. package/lib/components/index.js.map +1 -0
  56. package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.d.ts +9 -0
  57. package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.js +32 -0
  58. package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.js.map +1 -0
  59. package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.d.ts +19 -0
  60. package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.js +77 -0
  61. package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.js.map +1 -0
  62. package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.d.ts +3 -0
  63. package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.js +48 -0
  64. package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.js.map +1 -0
  65. package/lib/components/molecules/GtCard/GtCard.d.ts +11 -0
  66. package/lib/components/molecules/GtCard/GtCard.js +76 -0
  67. package/lib/components/molecules/GtCard/GtCard.js.map +1 -0
  68. package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.d.ts +19 -0
  69. package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.js +52 -0
  70. package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.js.map +1 -0
  71. package/lib/components/molecules/InterventionHeader/InterventionHeader.d.ts +6 -0
  72. package/lib/components/molecules/InterventionHeader/InterventionHeader.js +52 -0
  73. package/lib/components/molecules/InterventionHeader/InterventionHeader.js.map +1 -0
  74. package/lib/components/molecules/NoteDetailCard/NoteDetailCard.d.ts +19 -0
  75. package/lib/components/molecules/NoteDetailCard/NoteDetailCard.js +68 -0
  76. package/lib/components/molecules/NoteDetailCard/NoteDetailCard.js.map +1 -0
  77. package/lib/components/molecules/PicturesRow/PicturesRow.d.ts +10 -0
  78. package/lib/components/molecules/PicturesRow/PicturesRow.js +36 -0
  79. package/lib/components/molecules/PicturesRow/PicturesRow.js.map +1 -0
  80. package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.d.ts +9 -0
  81. package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.js +31 -0
  82. package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.js.map +1 -0
  83. package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.d.ts +7 -0
  84. package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.js +36 -0
  85. package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.js.map +1 -0
  86. package/lib/components/molecules/QuestionList/QuestionList.d.ts +9 -0
  87. package/lib/components/molecules/QuestionList/QuestionList.js +29 -0
  88. package/lib/components/molecules/QuestionList/QuestionList.js.map +1 -0
  89. package/lib/components/molecules/QuestionMeasure/QuestionMeasure.d.ts +9 -0
  90. package/lib/components/molecules/QuestionMeasure/QuestionMeasure.js +39 -0
  91. package/lib/components/molecules/QuestionMeasure/QuestionMeasure.js.map +1 -0
  92. package/lib/components/molecules/index.d.ts +12 -0
  93. package/lib/components/molecules/index.js +30 -0
  94. package/lib/components/molecules/index.js.map +1 -0
  95. package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.d.ts +4 -0
  96. package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.js +32 -0
  97. package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.js.map +1 -0
  98. package/lib/components/organisms/ContractSearchBar/ContractSearchBar.d.ts +4 -0
  99. package/lib/components/organisms/ContractSearchBar/ContractSearchBar.js +35 -0
  100. package/lib/components/organisms/ContractSearchBar/ContractSearchBar.js.map +1 -0
  101. package/lib/components/organisms/DropdownCards/DropdownCards.d.ts +6 -0
  102. package/lib/components/organisms/DropdownCards/DropdownCards.js +45 -0
  103. package/lib/components/organisms/DropdownCards/DropdownCards.js.map +1 -0
  104. package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.d.ts +4 -0
  105. package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.js +35 -0
  106. package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.js.map +1 -0
  107. package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.d.ts +5 -0
  108. package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.js +50 -0
  109. package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.js.map +1 -0
  110. package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.d.ts +8 -0
  111. package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.js +32 -0
  112. package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.js.map +1 -0
  113. package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.d.ts +4 -0
  114. package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.js +36 -0
  115. package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.js.map +1 -0
  116. package/lib/components/organisms/TypePicker/TypePicker.d.ts +4 -0
  117. package/lib/components/organisms/TypePicker/TypePicker.js +29 -0
  118. package/lib/components/organisms/TypePicker/TypePicker.js.map +1 -0
  119. package/lib/components/organisms/index.d.ts +8 -0
  120. package/lib/components/organisms/index.js +26 -0
  121. package/lib/components/organisms/index.js.map +1 -0
  122. package/lib/components/pages/EquipmentView/EquipmentView.d.ts +3 -0
  123. package/lib/components/pages/EquipmentView/EquipmentView.js +161 -0
  124. package/lib/components/pages/EquipmentView/EquipmentView.js.map +1 -0
  125. package/lib/components/pages/GeneralInformationView/GeneralInformationView.d.ts +3 -0
  126. package/lib/components/pages/GeneralInformationView/GeneralInformationView.js +94 -0
  127. package/lib/components/pages/GeneralInformationView/GeneralInformationView.js.map +1 -0
  128. package/lib/components/pages/HistoryView/HistoryView.d.ts +3 -0
  129. package/lib/components/pages/HistoryView/HistoryView.js +33 -0
  130. package/lib/components/pages/HistoryView/HistoryView.js.map +1 -0
  131. package/lib/components/pages/NoteView/NoteView.d.ts +3 -0
  132. package/lib/components/pages/NoteView/NoteView.js +47 -0
  133. package/lib/components/pages/NoteView/NoteView.js.map +1 -0
  134. package/lib/components/pages/SurveyView/SurveyView.d.ts +7 -0
  135. package/lib/components/pages/SurveyView/SurveyView.js +60 -0
  136. package/lib/components/pages/SurveyView/SurveyView.js.map +1 -0
  137. package/lib/components/pages/index.d.ts +5 -0
  138. package/lib/components/pages/index.js +23 -0
  139. package/lib/components/pages/index.js.map +1 -0
  140. package/lib/components/templates/InterventionsListView/InterventionsListView.d.ts +7 -0
  141. package/lib/components/templates/InterventionsListView/InterventionsListView.js +73 -0
  142. package/lib/components/templates/InterventionsListView/InterventionsListView.js.map +1 -0
  143. package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.d.ts +7 -0
  144. package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.js +70 -0
  145. package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.js.map +1 -0
  146. package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.d.ts +7 -0
  147. package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.js +76 -0
  148. package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.js.map +1 -0
  149. package/lib/components/templates/index.d.ts +3 -0
  150. package/lib/components/templates/index.js +21 -0
  151. package/lib/components/templates/index.js.map +1 -0
  152. package/lib/features/asyncFunctions-index.d.ts +9 -0
  153. package/lib/features/asyncFunctions-index.js +27 -0
  154. package/lib/features/asyncFunctions-index.js.map +1 -0
  155. package/lib/features/clientAndProspectSlice.d.ts +7 -0
  156. package/lib/features/clientAndProspectSlice.js +49 -0
  157. package/lib/features/clientAndProspectSlice.js.map +1 -0
  158. package/lib/features/contractSlice.d.ts +7 -0
  159. package/lib/features/contractSlice.js +49 -0
  160. package/lib/features/contractSlice.js.map +1 -0
  161. package/lib/features/equipmentFamilySlice.d.ts +7 -0
  162. package/lib/features/equipmentFamilySlice.js +49 -0
  163. package/lib/features/equipmentFamilySlice.js.map +1 -0
  164. package/lib/features/equipmentLineSlice.d.ts +7 -0
  165. package/lib/features/equipmentLineSlice.js +49 -0
  166. package/lib/features/equipmentLineSlice.js.map +1 -0
  167. package/lib/features/equipmentPictureSlice.d.ts +37 -0
  168. package/lib/features/equipmentPictureSlice.js +67 -0
  169. package/lib/features/equipmentPictureSlice.js.map +1 -0
  170. package/lib/features/equipmentSlice.d.ts +34 -0
  171. package/lib/features/equipmentSlice.js +205 -0
  172. package/lib/features/equipmentSlice.js.map +1 -0
  173. package/lib/features/index.d.ts +9 -0
  174. package/lib/features/index.js +27 -0
  175. package/lib/features/index.js.map +1 -0
  176. package/lib/features/interventionNoteSlice.d.ts +16 -0
  177. package/lib/features/interventionNoteSlice.js +114 -0
  178. package/lib/features/interventionNoteSlice.js.map +1 -0
  179. package/lib/features/interventionSlice.d.ts +21 -0
  180. package/lib/features/interventionSlice.js +140 -0
  181. package/lib/features/interventionSlice.js.map +1 -0
  182. package/lib/features/questionSlice.d.ts +14 -0
  183. package/lib/features/questionSlice.js +104 -0
  184. package/lib/features/questionSlice.js.map +1 -0
  185. package/lib/hooks/use-intervention-header-actions.d.ts +1 -0
  186. package/lib/hooks/use-intervention-header-actions.js +141 -0
  187. package/lib/hooks/use-intervention-header-actions.js.map +1 -0
  188. package/lib/i18n/en.json +106 -0
  189. package/lib/i18n/fr.json +106 -0
  190. package/lib/index.d.ts +7 -0
  191. package/lib/index.js +94 -0
  192. package/lib/index.js.map +1 -0
  193. package/lib/models/forms.d.ts +2 -0
  194. package/lib/models/forms.js +333 -0
  195. package/lib/models/forms.js.map +1 -0
  196. package/lib/models/index.d.ts +5 -0
  197. package/lib/models/index.js +23 -0
  198. package/lib/models/index.js.map +1 -0
  199. package/lib/models/objectFields.d.ts +2 -0
  200. package/lib/models/objectFields.js +143 -0
  201. package/lib/models/objectFields.js.map +1 -0
  202. package/lib/models/searchFields.d.ts +2 -0
  203. package/lib/models/searchFields.js +33 -0
  204. package/lib/models/searchFields.js.map +1 -0
  205. package/lib/models/sortFields.d.ts +2 -0
  206. package/lib/models/sortFields.js +28 -0
  207. package/lib/models/sortFields.js.map +1 -0
  208. package/lib/models/typeObjects.d.ts +2 -0
  209. package/lib/models/typeObjects.js +205 -0
  210. package/lib/models/typeObjects.js.map +1 -0
  211. package/lib/screens/equipment/CustomerParkScreen.d.ts +3 -0
  212. package/lib/screens/equipment/CustomerParkScreen.js +56 -0
  213. package/lib/screens/equipment/CustomerParkScreen.js.map +1 -0
  214. package/lib/screens/equipment/EquipmentFormView.d.ts +6 -0
  215. package/lib/screens/equipment/EquipmentFormView.js +104 -0
  216. package/lib/screens/equipment/EquipmentFormView.js.map +1 -0
  217. package/lib/screens/equipment/EquipmentInterventionListScreen.d.ts +3 -0
  218. package/lib/screens/equipment/EquipmentInterventionListScreen.js +43 -0
  219. package/lib/screens/equipment/EquipmentInterventionListScreen.js.map +1 -0
  220. package/lib/screens/equipment/EquipmentLineListScreen.d.ts +3 -0
  221. package/lib/screens/equipment/EquipmentLineListScreen.js +37 -0
  222. package/lib/screens/equipment/EquipmentLineListScreen.js.map +1 -0
  223. package/lib/screens/equipment/EquipmentPictureScreen.d.ts +3 -0
  224. package/lib/screens/equipment/EquipmentPictureScreen.js +113 -0
  225. package/lib/screens/equipment/EquipmentPictureScreen.js.map +1 -0
  226. package/lib/screens/equipment/index.d.ts +45 -0
  227. package/lib/screens/equipment/index.js +61 -0
  228. package/lib/screens/equipment/index.js.map +1 -0
  229. package/lib/screens/intervention/ActiveInterventionScreen.d.ts +3 -0
  230. package/lib/screens/intervention/ActiveInterventionScreen.js +72 -0
  231. package/lib/screens/intervention/ActiveInterventionScreen.js.map +1 -0
  232. package/lib/screens/intervention/DayInterventionsScreen.d.ts +3 -0
  233. package/lib/screens/intervention/DayInterventionsScreen.js +33 -0
  234. package/lib/screens/intervention/DayInterventionsScreen.js.map +1 -0
  235. package/lib/screens/intervention/InterventionDetailsScreen.d.ts +7 -0
  236. package/lib/screens/intervention/InterventionDetailsScreen.js +83 -0
  237. package/lib/screens/intervention/InterventionDetailsScreen.js.map +1 -0
  238. package/lib/screens/intervention/InterventionNoteFormScreen.d.ts +6 -0
  239. package/lib/screens/intervention/InterventionNoteFormScreen.js +81 -0
  240. package/lib/screens/intervention/InterventionNoteFormScreen.js.map +1 -0
  241. package/lib/screens/intervention/InterventionQuestionFormScreen.d.ts +6 -0
  242. package/lib/screens/intervention/InterventionQuestionFormScreen.js +114 -0
  243. package/lib/screens/intervention/InterventionQuestionFormScreen.js.map +1 -0
  244. package/lib/screens/intervention/InterventionsHistoryScreen.d.ts +3 -0
  245. package/lib/screens/intervention/InterventionsHistoryScreen.js +29 -0
  246. package/lib/screens/intervention/InterventionsHistoryScreen.js.map +1 -0
  247. package/lib/screens/intervention/PlannedInterventionsScreen.d.ts +3 -0
  248. package/lib/screens/intervention/PlannedInterventionsScreen.js +29 -0
  249. package/lib/screens/intervention/PlannedInterventionsScreen.js.map +1 -0
  250. package/lib/screens/intervention/index.d.ts +79 -0
  251. package/lib/screens/intervention/index.js +89 -0
  252. package/lib/screens/intervention/index.js.map +1 -0
  253. package/lib/types/equipment.d.ts +7 -0
  254. package/lib/types/equipment.js +25 -0
  255. package/lib/types/equipment.js.map +1 -0
  256. package/lib/types/index.d.ts +3 -0
  257. package/lib/types/index.js +21 -0
  258. package/lib/types/index.js.map +1 -0
  259. package/lib/types/intervention.d.ts +4 -0
  260. package/lib/types/intervention.js +38 -0
  261. package/lib/types/intervention.js.map +1 -0
  262. package/lib/types/question.d.ts +4 -0
  263. package/lib/types/question.js +44 -0
  264. package/lib/types/question.js.map +1 -0
  265. package/lib/utils/form-types.d.ts +9 -0
  266. package/lib/utils/form-types.js +19 -0
  267. package/lib/utils/form-types.js.map +1 -0
  268. package/lib/utils/index.d.ts +1 -0
  269. package/lib/utils/index.js +19 -0
  270. package/lib/utils/index.js.map +1 -0
  271. package/package.json +47 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GtCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/GtCard/GtCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,cAAc,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAEhE,MAAM,gCAAgC,GAAG,EAAE,GAAG,CAAC,CAAC;AAWhD,MAAM,MAAM,GAAG,CAAC,EACd,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAS,E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AA,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAClD;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACvB;QAAA,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CACzE;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,KAAK,CAAC,EAAE,CACxB,UAAU,CAAC,MAAM,CAAC;IAChB,MAAM,EAAE;QACN,eAAe,EAAE,CAAC;QAClB,eAAe,EAAE,KAAK;KACvB;CACF,CAAC,CAAC;AAEL,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,KAAK,EAAE,KAAK;QACZ,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,CAAC;KAChB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,EAAE;KACf;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface InterventionContent {
3
+ statusSelect: number;
4
+ sequence: string;
5
+ deliveredPartner: any;
6
+ planifStartDateTime: string;
7
+ interventionType: any;
8
+ address: any;
9
+ assignedTo: any;
10
+ contact: any;
11
+ }
12
+ interface InterventionDetailCardProps {
13
+ style?: any;
14
+ intervention: InterventionContent;
15
+ isCopyCard?: boolean;
16
+ onPress: () => void;
17
+ }
18
+ declare const InterventionDetailCard: ({ style, intervention, isCopyCard, onPress, }: InterventionDetailCardProps) => React.JSX.Element;
19
+ export default InterventionDetailCard;
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useMemo } from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { linkingProvider, useTranslator } from '@axelor/aos-mobile-core';
21
+ import { InfoButton, useThemeColor } from '@axelor/aos-mobile-ui';
22
+ import { InterventionCard } from '../../atoms';
23
+ const InterventionDetailCard = ({ style, intervention, isCopyCard, onPress, }) => {
24
+ const I18n = useTranslator();
25
+ const Colors = useThemeColor();
26
+ const address = useMemo(() => intervention?.address?.fullName, [intervention?.address?.fullName]);
27
+ const phone = useMemo(() => intervention?.contact?.mobilePhone || intervention?.contact?.fixedPhone, [intervention?.contact?.mobilePhone, intervention?.contact?.fixedPhone]);
28
+ return (<View style={[styles.container, style]}>
29
+ <InterventionCard style={styles.cardContainer} {...intervention} isCopyCard={isCopyCard} onPress={onPress}/>
30
+ {(address || phone) && (<View style={styles.flexOne}>
31
+ {address && (<InfoButton style={styles.flexOne} iconName={'geo-alt-fill'} iconColor={Colors.secondaryColor_dark.background} indication={I18n.t('Intervention_OpenMap')} onPress={() => linkingProvider.openMapApp(address)}/>)}
32
+ {phone && (<InfoButton style={styles.flexOne} iconName={'telephone-fill'} iconColor={Colors.secondaryColor_dark.background} indication={I18n.t('Intervention_OpenPhone')} onPress={() => linkingProvider.openCallApp(phone)}/>)}
33
+ </View>)}
34
+ </View>);
35
+ };
36
+ const styles = StyleSheet.create({
37
+ container: {
38
+ width: '96%',
39
+ flexDirection: 'row',
40
+ alignSelf: 'center',
41
+ marginVertical: 2,
42
+ },
43
+ cardContainer: {
44
+ flex: 6,
45
+ margin: 2,
46
+ },
47
+ flexOne: {
48
+ flex: 1,
49
+ },
50
+ });
51
+ export default InterventionDetailCard;
52
+ //# sourceMappingURL=InterventionDetailCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterventionDetailCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/InterventionDetailCard/InterventionDetailCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAoB7C,MAAM,sBAAsB,GAAG,CAAC,EAC9B,KAAK,EACL,YAAY,EACZ,UAAU,EACV,OAAO,GACqB,EAAE,EAAE;IAChC,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,OAAO,GAAG,OAAO,CACrB,GAAG,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EACrC,CAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,CAAC,CAClC,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CACH,YAAY,EAAE,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,OAAO,EAAE,UAAU,EACzE,CAAC,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,CAAC,CACxE,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,M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AK;QACZ,aAAa,EAAE,KAAK;QACpB,SAAS,EAAE,QAAQ;QACnB,cAAc,EAAE,CAAC;KAClB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;QACP,MAAM,EAAE,CAAC;KACV;IACD,OAAO,EAAE;QACP,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface InterventionHeaderProps {
3
+ intervention: any;
4
+ }
5
+ declare const InterventionHeader: ({ intervention }: InterventionHeaderProps) => React.JSX.Element;
6
+ export default InterventionHeader;
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { DateDisplay, useTypes, useTypeHelpers } from '@axelor/aos-mobile-core';
21
+ import { Badge, LabelText, Text } from '@axelor/aos-mobile-ui';
22
+ const InterventionHeader = ({ intervention }) => {
23
+ const { Intervention } = useTypes();
24
+ const { getItemColor, getItemTitle } = useTypeHelpers();
25
+ return (<View style={styles.container}>
26
+ <View style={styles.rowContainer}>
27
+ <Text writingType="title">{intervention.sequence}</Text>
28
+ <Badge title={getItemTitle(Intervention?.statusSelect, intervention.statusSelect)} color={getItemColor(Intervention?.statusSelect, intervention.statusSelect)}/>
29
+ </View>
30
+ <View style={styles.rowContainer}>
31
+ <LabelText iconName="tools" size={16} title={intervention.interventionType.name} textStyle={styles.labelText}/>
32
+ <DateDisplay date={intervention.planifStartDateTime} size={16}/>
33
+ </View>
34
+ <LabelText iconName="person-fill" size={16} title={intervention.deliveredPartner.fullName} textStyle={styles.labelText}/>
35
+ </View>);
36
+ };
37
+ const styles = StyleSheet.create({
38
+ container: {
39
+ marginHorizontal: 24,
40
+ marginBottom: 5,
41
+ },
42
+ rowContainer: {
43
+ flexDirection: 'row',
44
+ justifyContent: 'space-between',
45
+ marginBottom: 3,
46
+ },
47
+ labelText: {
48
+ fontSize: 16,
49
+ },
50
+ });
51
+ export default InterventionHeader;
52
+ //# sourceMappingURL=InterventionHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterventionHeader.js","sourceRoot":"","sources":["../../../../src/components/molecules/InterventionHeader/InterventionHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAM7D,MAAM,kBAAkB,GAAG,CAAC,EAAC,YAAY,EAA0B,EAAE,EAAE;IACrE,MAAM,EAAC,YAAY,EAAC,GAAG,QAAQ,EAAE,CAAC;IAClC,MAAM,EAAC,YAAY,EAAE,YAAY,EAAC,GAAG,cAAc,EAAE,CAAC;IAEtD,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAC5B;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC/B;QAAA,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,YAAY,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@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface NoteContent {
3
+ id: number;
4
+ partner: any;
5
+ metaFile: any;
6
+ description: string;
7
+ createdOn: string;
8
+ updatedOn: string;
9
+ createdBy: any;
10
+ updatedBy: any;
11
+ }
12
+ interface NoteDetailCardProps {
13
+ style?: any;
14
+ note: NoteContent;
15
+ canDelete?: boolean;
16
+ canEdit?: boolean;
17
+ }
18
+ declare const NoteDetailCard: ({ style, note, canDelete, canEdit, }: NoteDetailCardProps) => React.JSX.Element;
19
+ export default NoteDetailCard;
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { openFileInExternalApp, useDispatch, useNavigation, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
21
+ import { InfoButton, useThemeColor } from '@axelor/aos-mobile-ui';
22
+ import { NoteCard } from '../../atoms';
23
+ import { deleteInterventionNote } from '../../../features/interventionNoteSlice';
24
+ const NoteDetailCard = ({ style, note, canDelete = true, canEdit = true, }) => {
25
+ const I18n = useTranslator();
26
+ const Colors = useThemeColor();
27
+ const dispatch = useDispatch();
28
+ const navigation = useNavigation();
29
+ const { baseUrl, token, jsessionId } = useSelector((state) => state.auth);
30
+ const handleOpenFile = async () => {
31
+ await openFileInExternalApp({
32
+ fileName: note.metaFile?.fileName,
33
+ id: note.metaFile?.id,
34
+ isMetaFile: true,
35
+ }, { baseUrl: baseUrl, token: token, jsessionId: jsessionId }, I18n);
36
+ };
37
+ return (<View style={[styles.container, style]}>
38
+ <NoteCard style={styles.cardContainer} {...note}/>
39
+ {note.metaFile && (<InfoButton style={styles.flexOne} iconName="arrows-angle-expand" iconColor={Colors.secondaryColor_dark.background} onPress={handleOpenFile} indication={I18n.t('Intervention_OpenFile')}/>)}
40
+ <View style={styles.flexOne}>
41
+ <InfoButton style={styles.flexOne} iconName={canEdit ? 'pencil-fill' : 'file-earmark-text'} iconColor={Colors.secondaryColor_dark.background} onPress={() => navigation.navigate('InterventionNoteFormScreen', {
42
+ noteId: note.id,
43
+ })} indication={I18n.t('Intervention_Edit')}/>
44
+ {canDelete && (<InfoButton style={styles.flexOne} iconName="trash3-fill" iconColor={Colors.errorColor.background} onPress={() => dispatch(deleteInterventionNote({
45
+ interventionNoteId: note.id,
46
+ deliveredPartnerId: note.partner.id,
47
+ }))} indication={I18n.t('Intervention_Delete')}/>)}
48
+ </View>
49
+ </View>);
50
+ };
51
+ const styles = StyleSheet.create({
52
+ container: {
53
+ flex: 1,
54
+ width: '96%',
55
+ flexDirection: 'row',
56
+ alignSelf: 'center',
57
+ marginVertical: 2,
58
+ },
59
+ cardContainer: {
60
+ flex: 6,
61
+ margin: 2,
62
+ },
63
+ flexOne: {
64
+ flex: 1,
65
+ },
66
+ });
67
+ export default NoteDetailCard;
68
+ //# sourceMappingURL=NoteDetailCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoteDetailCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/NoteDetailCard/NoteDetailCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,WAAW,EACX,aA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ACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,KAAK;QACZ,aAAa,EAAE,KAAK;QACpB,SAAS,EAAE,QAAQ;QACnB,cAAc,EAAE,CAAC;KAClB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;QACP,MAAM,EAAE,CAAC;KACV;IACD,OAAO,EAAE;QACP,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface PicturesRowProps {
3
+ style?: any;
4
+ item: any;
5
+ handleDelete: (itemId: number) => void;
6
+ selectedImageId: any;
7
+ onSelectImage: (itemId: any) => void;
8
+ }
9
+ declare const PicturesRow: ({ style, item, handleDelete, selectedImageId, onSelectImage, }: PicturesRowProps) => React.JSX.Element;
10
+ export default PicturesRow;
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { PictureCard } from '../../atoms';
21
+ const PicturesRow = ({ style, item, handleDelete, selectedImageId, onSelectImage, }) => {
22
+ const renderImage = picture => (<PictureCard style={style} item={picture.pictureFile} handleDelete={() => handleDelete(picture.id)} showDeleteIcon={selectedImageId === picture.pictureFile.id} onSelectImage={onSelectImage}/>);
23
+ return (<View style={styles.rowContainer}>
24
+ {item.item1 && renderImage(item.item1)}
25
+ {item.item2 && renderImage(item.item2)}
26
+ </View>);
27
+ };
28
+ const styles = StyleSheet.create({
29
+ rowContainer: {
30
+ flexDirection: 'row',
31
+ justifyContent: 'space-between',
32
+ margin: 10,
33
+ },
34
+ });
35
+ export default PicturesRow;
36
+ //# sourceMappingURL=PicturesRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PicturesRow.js","sourceRoot":"","sources":["../../../../src/components/molecules/PicturesRow/PicturesRow.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAUxC,MAAM,WAAW,GAAG,CAAC,EACnB,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,eAAe,EACf,aAAa,GACI,EAAE,EAAE;IACrB,MAAM,WAAW,GAAG,OAAO,CAAC,EAAE,CAAC,CAC7B,CAAC,WAAW,CACV,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAC1B,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAC7C,cAAc,CAAC,CAAC,eAAe,KAAK,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,CAC3D,aAAa,CAAC,CAAC,aAAa,CAAC,EAC7B,CACH,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC/B;MAAA,CAAC,IAAI,CAAC,KAAK,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CACtC;MAAA,CAAC,IAAI,CAAC,KAAK,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CACxC;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,YAAY,EAAE;QACZ,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface QuestionAdvancedMonitoringProps {
3
+ defaultValue?: string;
4
+ onChange?: (any: any) => void;
5
+ readonly?: boolean;
6
+ required?: boolean;
7
+ }
8
+ declare const QuestionAdvancedMonitoring: ({ defaultValue, onChange, readonly, required, }: QuestionAdvancedMonitoringProps) => React.JSX.Element;
9
+ export default QuestionAdvancedMonitoring;
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useMemo } from 'react';
19
+ import { useTypes, useTypeHelpers } from '@axelor/aos-mobile-core';
20
+ import { Picker } from '@axelor/aos-mobile-ui';
21
+ const QuestionAdvancedMonitoringAux = ({ defaultValue = null, onChange = () => { }, readonly = false, required = false, }) => {
22
+ const { InterventionQuestion } = useTypes();
23
+ const { getSelectionItems } = useTypeHelpers();
24
+ const advancedMonitoringAnswerList = useMemo(() => getSelectionItems(InterventionQuestion?.advancedMonitoringAnswer), [InterventionQuestion?.advancedMonitoringAnswer, getSelectionItems]);
25
+ return (<Picker defaultValue={defaultValue} listItems={advancedMonitoringAnswerList} labelField="title" valueField="key" emptyValue={false} onValueChange={onChange} required={required} readonly={readonly} isScrollViewContainer={true}/>);
26
+ };
27
+ const QuestionAdvancedMonitoring = ({ defaultValue = null, onChange = () => { }, readonly = false, required = false, }) => {
28
+ return (<QuestionAdvancedMonitoringAux defaultValue={defaultValue} onChange={onChange} readonly={readonly} required={required}/>);
29
+ };
30
+ export default QuestionAdvancedMonitoring;
31
+ //# sourceMappingURL=QuestionAdvancedMonitoring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionAdvancedMonitoring.js","sourceRoot":"","sources":["../../../../src/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAS7C,MAAM,6BAA6B,GAAG,CAAC,EACrC,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,GACgB,EAAE,EAAE;IACpC,MAAM,EAAC,oBAAoB,EAAC,GAAG,QAAQ,EAAE,CAAC;IAC1C,MAAM,EAAC,iBAAiB,EAAC,GAAG,cAAc,EAAE,CAAC;IAE7C,MAAM,4BAA4B,GAAG,OAAO,CAC1C,GAAG,EAAE,CAAC,iBAAiB,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,EACvE,CAAC,oBAAoB,EAAE,wBAAwB,EAAE,iBAAiB,CAAC,CACpE,CAAC;IAEF,OAAO,CACL,CAAC,MAAM,CACL,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,SAAS,CAAC,CAAC,4BAA4B,CAAC,CACxC,UAAU,CAAC,OAAO,CAClB,UAAU,CAAC,KAAK,CAChB,UAAU,CAAC,CAAC,KAAK,CAAC,CAClB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,qBAAqB,CAAC,CAAC,IAAI,CAAC,EAC5B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,EAClC,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,GACgB,EAAE,EAAE;IACpC,OAAO,CACL,CAAC,6BAA6B,CAC5B,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface QuestionCheckboxProps {
3
+ defaultValue?: boolean;
4
+ onChange?: (any: any) => void;
5
+ }
6
+ declare const QuestionCheckbox: ({ defaultValue, onChange, }: QuestionCheckboxProps) => React.JSX.Element;
7
+ export default QuestionCheckbox;
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { StyleSheet } from 'react-native';
20
+ import { useSelector } from '@axelor/aos-mobile-core';
21
+ import { Checkbox } from '@axelor/aos-mobile-ui';
22
+ const QuestionCheckboxAux = ({ defaultValue = null, onChange = () => { }, }) => {
23
+ const { question } = useSelector((state) => state.intervention_question);
24
+ return (<Checkbox style={styles.container} title={question.checkboxName} isDefaultChecked={defaultValue} onChange={onChange}/>);
25
+ };
26
+ const styles = StyleSheet.create({
27
+ container: {
28
+ width: '90%',
29
+ alignSelf: 'center',
30
+ },
31
+ });
32
+ const QuestionCheckbox = ({ defaultValue = null, onChange = () => { }, }) => {
33
+ return (<QuestionCheckboxAux defaultValue={defaultValue} onChange={onChange}/>);
34
+ };
35
+ export default QuestionCheckbox;
36
+ //# sourceMappingURL=QuestionCheckbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionCheckbox.js","sourceRoot":"","sources":["../../../../src/components/molecules/QuestionCheckbox/QuestionCheckbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAO/C,MAAM,mBAAmB,GAAG,CAAC,EAC3B,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,GACG,EAAE,EAAE;IAC1B,MAAM,EAAC,QAAQ,EAAC,GAAG,WAAW,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAE5E,OAAO,CACL,CAAC,QAAQ,CACP,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CACxB,KAAK,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAC7B,gBAAgB,CAAC,CAAC,YAAY,CAAC,CAC/B,QAAQ,CAAC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,EACxB,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,GACG,EAAE,EAAE;IAC1B,OAAO,CACL,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAAG,CACxE,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface QuestionListProps {
3
+ defaultValue?: string;
4
+ onChange?: (any: any) => void;
5
+ readonly?: boolean;
6
+ required?: boolean;
7
+ }
8
+ declare const QuestionList: ({ defaultValue, onChange, readonly, required, }: QuestionListProps) => React.JSX.Element;
9
+ export default QuestionList;
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { useSelector } from '@axelor/aos-mobile-core';
20
+ import { Picker } from '@axelor/aos-mobile-ui';
21
+ const QuestionListAux = ({ defaultValue = null, onChange = () => { }, readonly = false, required = false, }) => {
22
+ const { question } = useSelector((state) => state.intervention_question);
23
+ return (<Picker defaultValue={defaultValue} listItems={question.answerValueList} labelField="name" valueField="id" emptyValue={false} onValueChange={onChange} required={required} readonly={readonly} isValueItem={true} isScrollViewContainer={true}/>);
24
+ };
25
+ const QuestionList = ({ defaultValue = null, onChange = () => { }, readonly = false, required = false, }) => {
26
+ return (<QuestionListAux defaultValue={defaultValue} onChange={onChange} readonly={readonly} required={required}/>);
27
+ };
28
+ export default QuestionList;
29
+ //# sourceMappingURL=QuestionList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionList.js","sourceRoot":"","sources":["../../../../src/components/molecules/QuestionList/QuestionList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAS7C,MAAM,eAAe,GAAG,CAAC,EACvB,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,GACE,EAAE,EAAE;IACtB,MAAM,EAAC,QAAQ,EAAC,GAAG,WAAW,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAE5E,OAAO,CACL,CAAC,MAAM,CACL,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,SAAS,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CACpC,UAAU,CAAC,MAAM,CACjB,UAAU,CAAC,IAAI,CACf,UAAU,CAAC,CAAC,KAAK,CAAC,CAClB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,WAAW,CAAC,CAAC,IAAI,CAAC,CAClB,qBAAqB,CAAC,CAAC,IAAI,CAAC,EAC5B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,EACpB,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,GACE,EAAE,EAAE;IACtB,OAAO,CACL,CAAC,eAAe,CACd,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface QuestionMeasureProps {
3
+ defaultValue?: string;
4
+ onChange?: (any: any) => void;
5
+ readonly?: boolean;
6
+ required?: boolean;
7
+ }
8
+ declare const QuestionMeasure: ({ defaultValue, onChange, readonly, required, }: QuestionMeasureProps) => React.JSX.Element;
9
+ export default QuestionMeasure;
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React from 'react';
19
+ import { StyleSheet } from 'react-native';
20
+ import { useSelector, useTranslator } from '@axelor/aos-mobile-core';
21
+ import { FormIncrementInput } from '@axelor/aos-mobile-ui';
22
+ const QuestionMeasureAux = ({ defaultValue = null, onChange = () => { }, readonly = false, required = false, }) => {
23
+ const I18n = useTranslator();
24
+ const { question } = useSelector((state) => state.intervention_question);
25
+ return (<FormIncrementInput style={styles.container} title={I18n.t('Intervention_DesiredUnit', {
26
+ unit: question?.desiredUnit?.name,
27
+ })} defaultValue={defaultValue?.toString()} decimalSpacer={I18n.t('Base_DecimalSpacer')} thousandSpacer={I18n.t('Base_ThousandSpacer')} readOnly={readonly} required={required} onChange={onChange}/>);
28
+ };
29
+ const styles = StyleSheet.create({
30
+ container: {
31
+ width: '90%',
32
+ alignSelf: 'center',
33
+ },
34
+ });
35
+ const QuestionMeasure = ({ defaultValue = null, onChange = () => { }, readonly = false, required = false, }) => {
36
+ return (<QuestionMeasureAux defaultValue={defaultValue} readonly={readonly} required={required} onChange={onChange}/>);
37
+ };
38
+ export default QuestionMeasure;
39
+ //# sourceMappingURL=QuestionMeasure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionMeasure.js","sourceRoot":"","sources":["../../../../src/components/molecules/QuestionMeasure/QuestionMeasure.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AASzD,MAAM,kBAAkB,GAAG,CAAC,EAC1B,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAA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AC,CAAC,QAAQ,CAAC,EACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ export { default as DropdownGeneralView } from './DropdownGeneralView/DropdownGeneralView';
2
+ export { default as EquipmentActionCard } from './EquipmentActionCard/EquipmentActionCard';
3
+ export { default as EquipmentDetailsHeader } from './EquipmentDetailsHeader/EquipmentDetailsHeader';
4
+ export { default as GtCard } from './GtCard/GtCard';
5
+ export { default as InterventionDetailCard } from './InterventionDetailCard/InterventionDetailCard';
6
+ export { default as InterventionHeader } from './InterventionHeader/InterventionHeader';
7
+ export { default as NoteDetailCard } from './NoteDetailCard/NoteDetailCard';
8
+ export { default as PicturesRow } from './PicturesRow/PicturesRow';
9
+ export { default as QuestionAdvancedMonitoring } from './QuestionAdvancedMonitoring/QuestionAdvancedMonitoring';
10
+ export { default as QuestionCheckbox } from './QuestionCheckbox/QuestionCheckbox';
11
+ export { default as QuestionList } from './QuestionList/QuestionList';
12
+ export { default as QuestionMeasure } from './QuestionMeasure/QuestionMeasure';
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { default as DropdownGeneralView } from './DropdownGeneralView/DropdownGeneralView';
19
+ export { default as EquipmentActionCard } from './EquipmentActionCard/EquipmentActionCard';
20
+ export { default as EquipmentDetailsHeader } from './EquipmentDetailsHeader/EquipmentDetailsHeader';
21
+ export { default as GtCard } from './GtCard/GtCard';
22
+ export { default as InterventionDetailCard } from './InterventionDetailCard/InterventionDetailCard';
23
+ export { default as InterventionHeader } from './InterventionHeader/InterventionHeader';
24
+ export { default as NoteDetailCard } from './NoteDetailCard/NoteDetailCard';
25
+ export { default as PicturesRow } from './PicturesRow/PicturesRow';
26
+ export { default as QuestionAdvancedMonitoring } from './QuestionAdvancedMonitoring/QuestionAdvancedMonitoring';
27
+ export { default as QuestionCheckbox } from './QuestionCheckbox/QuestionCheckbox';
28
+ export { default as QuestionList } from './QuestionList/QuestionList';
29
+ export { default as QuestionMeasure } from './QuestionMeasure/QuestionMeasure';
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/molecules/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CustomComponentProps } from '../../../utils';
3
+ declare const ClientProspectSearchBar: ({ style, title, defaultValue, onChange, readonly, required, showDetailsPopup, navigate, oneFilter, showTitle, }: CustomComponentProps) => React.JSX.Element;
4
+ export default ClientProspectSearchBar;
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useCallback } from 'react';
19
+ import { displayItemFullname, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
20
+ import { AutoCompleteSearch } from '@axelor/aos-mobile-ui';
21
+ import { searchClientAndProspect } from '../../../features/clientAndProspectSlice';
22
+ const ClientProspectSearchBar = ({ style = null, title = 'Intervention_Customer', defaultValue = null, onChange = () => { }, readonly = false, required = false, showDetailsPopup = true, navigate = false, oneFilter = false, showTitle = false, }) => {
23
+ const I18n = useTranslator();
24
+ const dispatch = useDispatch();
25
+ const { loadingList, moreLoading, isListEnd, clientAndProspectList } = useSelector((state) => state.intervention_clientAndProspect);
26
+ const searchClientAndProspectAPI = useCallback(({ page = 0, searchValue }) => {
27
+ dispatch(searchClientAndProspect({ page, searchValue }));
28
+ }, [dispatch]);
29
+ return (<AutoCompleteSearch title={showTitle && I18n.t(title)} objectList={clientAndProspectList} value={defaultValue} required={required} readonly={readonly} onChangeValue={onChange} fetchData={searchClientAndProspectAPI} displayValue={displayItemFullname} placeholder={I18n.t(title)} showDetailsPopup={showDetailsPopup} loadingList={loadingList} moreLoading={moreLoading} isListEnd={isListEnd} navigate={navigate} oneFilter={oneFilter} style={style}/>);
30
+ };
31
+ export default ClientProspectSearchBar;
32
+ //# sourceMappingURL=ClientProspectSearchBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientProspectSearchBar.js","sourceRoot":"","sources":["../../../../src/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AAGjF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,KAAK,GAAG,IAAI,EACZ,KAAK,GAAG,uBAAuB,EAC/B,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,gBAAgB,GAAG,IAAI,EACvB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,GACI,EAAE,EAAE;IACzB,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,qBAAqB,EAAC,GAChE,WAAW,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAEpE,MAAM,0BAA0B,GAAG,WAAW,CAC5C,CAAC,EAAC,IAAI,GAAG,CAAC,EAAE,WAAW,EAAC,EAAE,EAAE;QAC1B,QAAQ,CAAE,uBAA+B,CAAC,EAAC,IAAI,EAAE,WAAW,EAAC,CAAC,CAAC,CAAC;IAClE,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,CAAC,kBAAkB,CACjB,KAAK,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAClC,UAAU,CAAC,CAAC,qBAAqB,CAAC,CAClC,KAAK,CAAC,CAAC,YAAY,CAAC,CACpB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,aAAa,CAAC,CAAC,QAAQ,CAAC,CACxB,SAAS,CAAC,CAAC,0BAA0B,CAAC,CACtC,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAClC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAC3B,gBAAgB,CAAC,CAAC,gBAAgB,CAAC,CACnC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,KAAK,CAAC,CAAC,KAAK,CAAC,EACb,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CustomComponentProps } from '../../../utils';
3
+ declare const ContractSearchBar: ({ style, title, defaultValue, onChange, readonly, required, showDetailsPopup, navigate, oneFilter, showTitle, customerId, }: CustomComponentProps) => React.JSX.Element;
4
+ export default ContractSearchBar;