@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,45 @@
1
+ /// <reference types="react" />
2
+ import CustomerParkScreen from './CustomerParkScreen';
3
+ import EquipmentFormView from './EquipmentFormView';
4
+ declare const _default: {
5
+ CustomerParkScreen: {
6
+ title: string;
7
+ component: ({}: {}) => import("react").JSX.Element;
8
+ options: {
9
+ shadedHeader: boolean;
10
+ };
11
+ isUsableOnShortcut: boolean;
12
+ };
13
+ EquipmentFormView: {
14
+ title: string;
15
+ actionID: string;
16
+ component: ({ navigation, route }: {
17
+ navigation: any;
18
+ route: any;
19
+ }) => import("react").JSX.Element;
20
+ };
21
+ EquipmentLineListScreen: {
22
+ title: string;
23
+ component: ({}: {}) => import("react").JSX.Element;
24
+ options: {
25
+ shadedHeader: boolean;
26
+ };
27
+ };
28
+ EquipmentPictureScreen: {
29
+ title: string;
30
+ component: ({}: {}) => import("react").JSX.Element;
31
+ options: {
32
+ shadedHeader: boolean;
33
+ };
34
+ };
35
+ EquipmentInterventionListScreen: {
36
+ title: string;
37
+ component: ({}: {}) => import("react").JSX.Element;
38
+ options: {
39
+ shadedHeader: boolean;
40
+ };
41
+ };
42
+ };
43
+ export default _default;
44
+ export { CustomerParkScreen };
45
+ export { EquipmentFormView };
@@ -0,0 +1,61 @@
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 CustomerParkScreen from './CustomerParkScreen';
19
+ import EquipmentFormView from './EquipmentFormView';
20
+ import EquipmentInterventionListScreen from './EquipmentInterventionListScreen';
21
+ import EquipmentLineListScreen from './EquipmentLineListScreen';
22
+ import EquipmentPictureScreen from './EquipmentPictureScreen';
23
+ export default {
24
+ CustomerParkScreen: {
25
+ title: 'Intervention_CustomerPark',
26
+ component: CustomerParkScreen,
27
+ options: {
28
+ shadedHeader: false,
29
+ },
30
+ isUsableOnShortcut: true,
31
+ },
32
+ EquipmentFormView: {
33
+ title: 'Intervention_Equipment',
34
+ actionID: 'intervention_equipment_form',
35
+ component: EquipmentFormView,
36
+ },
37
+ EquipmentLineListScreen: {
38
+ title: 'Intervention_EquipmentLine',
39
+ component: EquipmentLineListScreen,
40
+ options: {
41
+ shadedHeader: false,
42
+ },
43
+ },
44
+ EquipmentPictureScreen: {
45
+ title: 'Intervention_Equipment',
46
+ component: EquipmentPictureScreen,
47
+ options: {
48
+ shadedHeader: false,
49
+ },
50
+ },
51
+ EquipmentInterventionListScreen: {
52
+ title: 'Intervention_Equipment',
53
+ component: EquipmentInterventionListScreen,
54
+ options: {
55
+ shadedHeader: false,
56
+ },
57
+ },
58
+ };
59
+ export { CustomerParkScreen };
60
+ export { EquipmentFormView };
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/screens/equipment/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,+BAA+B,MAAM,mCAAmC,CAAC;AAChF,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,eAAe;IACb,kBAAkB,EAAE;QAClB,KAAK,EAAE,2BAA2B;QAClC,SAAS,EAAE,kBAAkB;QAC7B,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;QACD,kBAAkB,EAAE,IAAI;KACzB;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,wBAAwB;QAC/B,QAAQ,EAAE,6BAA6B;QACvC,SAAS,EAAE,iBAAiB;KAC7B;IACD,uBAAuB,EAAE;QACvB,KAAK,EAAE,4BAA4B;QACnC,SAAS,EAAE,uBAAuB;QAClC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,sBAAsB,EAAE;QACtB,KAAK,EAAE,wBAAwB;QAC/B,SAAS,EAAE,sBAAsB;QACjC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,+BAA+B,EAAE;QAC/B,KAAK,EAAE,wBAAwB;QAC/B,SAAS,EAAE,+BAA+B;QAC1C,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;CACF,CAAC;AAEF,OAAO,EAAC,kBAAkB,EAAC,CAAC;AAC5B,OAAO,EAAC,iBAAiB,EAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ActiveInterventionScreen: ({}: {}) => React.JSX.Element;
3
+ export default ActiveInterventionScreen;
@@ -0,0 +1,72 @@
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, { useEffect } from 'react';
19
+ import { ActivityIndicator, StyleSheet } from 'react-native';
20
+ import { isEmpty, useDispatch, useIsFocused, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
21
+ import { Label, Screen, useThemeColor } from '@axelor/aos-mobile-ui';
22
+ import { fetchActiveIntervention, fetchInterventionById, } from '../../features/interventionSlice';
23
+ import InterventionDetailsScreen from './InterventionDetailsScreen';
24
+ const LoadingComponent = () => {
25
+ const Colors = useThemeColor();
26
+ return (<ActivityIndicator style={styles.activityIndicator} size="large" color={Colors.inverseColor.background}/>);
27
+ };
28
+ const ActiveInterventionScreen = ({}) => {
29
+ const I18n = useTranslator();
30
+ const isFocused = useIsFocused();
31
+ const dispatch = useDispatch();
32
+ const { userId } = useSelector((state) => state.auth);
33
+ const { loadingActiveIntervention, activeIntervention, intervention } = useSelector((state) => state.intervention_intervention);
34
+ useEffect(() => {
35
+ isFocused && dispatch(fetchActiveIntervention({ userId }));
36
+ }, [dispatch, isFocused, userId]);
37
+ useEffect(() => {
38
+ if (activeIntervention?.id != null) {
39
+ dispatch(fetchInterventionById({ interventionId: activeIntervention.id }));
40
+ }
41
+ }, [activeIntervention?.id, dispatch]);
42
+ if (!isEmpty(activeIntervention)) {
43
+ if (activeIntervention.id !== intervention?.id) {
44
+ return <LoadingComponent />;
45
+ }
46
+ else {
47
+ return (<InterventionDetailsScreen interventionId={activeIntervention?.id}/>);
48
+ }
49
+ }
50
+ else if (loadingActiveIntervention) {
51
+ return <LoadingComponent />;
52
+ }
53
+ else {
54
+ return (<Screen removeSpaceOnTop={true}>
55
+ <Label style={styles.label} message={I18n.t('Intervention_NoActiveIntervention')} type="success"/>
56
+ </Screen>);
57
+ }
58
+ };
59
+ const styles = StyleSheet.create({
60
+ activityIndicator: {
61
+ width: '100%',
62
+ height: '100%',
63
+ alignSelf: 'center',
64
+ },
65
+ label: {
66
+ width: '90%',
67
+ alignSelf: 'center',
68
+ marginTop: 30,
69
+ },
70
+ });
71
+ export default ActiveInterventionScreen;
72
+ //# sourceMappingURL=ActiveInterventionScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActiveInterventionScreen.js","sourceRoot":"","sources":["../../../src/screens/intervention/ActiveInterventionScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC3D,OAAO,EACL,OAAO,EACP,WAAW,EACX,YAAY,EACZ,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACnE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AAEpE,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC5B,MAAM,M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gBAAgB,CAAC,AAAD,EAAG,CAAC;SAC7B;aAAM;YACL,OAAO,CACL,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC,kBAAkB,EAAE,EAAE,CAAC,EAAG,CACtE,CAAC;SACH;KACF;SAAM,IAAI,yBAAyB,EAAE;QACpC,OAAO,CAAC,gBAAgB,CAAC,AAAD,EAAG,CAAC;KAC7B;SAAM;QACL,OAAO,CACL,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAC7B;QAAA,CAAC,KAAK,CACJ,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACpB,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CACrD,IAAI,CAAC,SAAS,EAElB;MAAA,EAAE,MAAM,CAAC,CACV,CAAC;KACH;AACH,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE;QACjB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,QAAQ;KACpB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,QAAQ;QACnB,SAAS,EAAE,EAAE;KACd;CACF,CAAC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const DayInterventionsScreen: ({}: {}) => React.JSX.Element;
3
+ export default DayInterventionsScreen;
@@ -0,0 +1,33 @@
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 { useTypes } from '@axelor/aos-mobile-core';
20
+ import { Screen } from '@axelor/aos-mobile-ui';
21
+ import { InterventionsListView } from '../../components';
22
+ const DayInterventionsScreen = ({}) => {
23
+ const { Intervention } = useTypes();
24
+ return (<Screen removeSpaceOnTop={true}>
25
+ <InterventionsListView statusList={[
26
+ Intervention?.statusSelect.Planned,
27
+ Intervention?.statusSelect.Started,
28
+ Intervention?.statusSelect.Suspended,
29
+ ]} defaultDate={new Date()}/>
30
+ </Screen>);
31
+ };
32
+ export default DayInterventionsScreen;
33
+ //# sourceMappingURL=DayInterventionsScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DayInterventionsScreen.js","sourceRoot":"","sources":["../../../src/screens/intervention/DayInterventionsScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;AAEvD,MAAM,sBAAsB,GAAG,CAAC,EAAE,EAAE,EAAE;IACpC,MAAM,EAAC,YAAY,EAAC,GAAG,QAAQ,EAAE,CAAC;IAElC,OAAO,CACL,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAC7B;MAAA,CAAC,qBAAqB,CACpB,UAAU,CAAC,CAAC;YACV,YAAY,EAAE,YAAY,CAAC,OAAO;YAClC,YAAY,EAAE,YAAY,CAAC,OAAO;YAClC,YAAY,EAAE,YAAY,CAAC,SAAS;SACrC,CAAC,CACF,WAAW,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,EAE5B;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface InterventionDetailsScreenProps {
3
+ route?: any;
4
+ interventionId?: number;
5
+ }
6
+ declare const InterventionDetailsScreen: ({ route, interventionId, }: InterventionDetailsScreenProps) => React.JSX.Element;
7
+ export default InterventionDetailsScreen;
@@ -0,0 +1,83 @@
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, { useEffect, useMemo, useState } from 'react';
19
+ import { useDispatch, useSelector, useTypes } from '@axelor/aos-mobile-core';
20
+ import { BottomBar, Screen, useThemeColor } from '@axelor/aos-mobile-ui';
21
+ import { EquipmentView, GeneralInformationView, HistoryView, NoteView, SurveyView, } from '../../components';
22
+ import { fetchInterventionById } from '../../features/interventionSlice';
23
+ import { fetchRange } from '../../features/questionSlice';
24
+ import { fetchNumberInterventionEquipment } from '../../features/equipmentSlice';
25
+ const InterventionDetailsScreen = ({ route, interventionId, }) => {
26
+ const _interventionId = route?.params?.interventionId || interventionId;
27
+ const Colors = useThemeColor();
28
+ const dispatch = useDispatch();
29
+ const { Intervention } = useTypes();
30
+ const [selectedRangeId, setSelectedRangeId] = useState(null);
31
+ const { intervention } = useSelector((state) => state.intervention_intervention);
32
+ const { totalNumberInterventionEquipment } = useSelector((state) => state.intervention_equipment);
33
+ const idsInterventionEquipement = useMemo(() => intervention?.equipmentSet?.map(equipment => equipment.id), [intervention]);
34
+ useEffect(() => {
35
+ dispatch(fetchInterventionById({ interventionId: _interventionId }));
36
+ }, [_interventionId, dispatch]);
37
+ useEffect(() => {
38
+ intervention?.id &&
39
+ dispatch(fetchRange({ interventionId: intervention?.id })).then(res => setSelectedRangeId(res.payload[0].id));
40
+ }, [dispatch, intervention?.id]);
41
+ useEffect(() => {
42
+ dispatch(fetchNumberInterventionEquipment({
43
+ idsInterventionEquipement,
44
+ }));
45
+ }, [dispatch, idsInterventionEquipement]);
46
+ const bottomBarItems = [
47
+ {
48
+ iconName: 'house',
49
+ viewComponent: <GeneralInformationView />,
50
+ color: Colors.secondaryColor_dark,
51
+ },
52
+ {
53
+ iconName: 'card-checklist',
54
+ viewComponent: (<SurveyView selectedRangeId={selectedRangeId} onChangeRangeId={setSelectedRangeId}/>),
55
+ color: Colors.progressColor,
56
+ disabled: intervention.statusSelect < Intervention?.statusSelect.Started,
57
+ },
58
+ {
59
+ iconName: 'cart3',
60
+ viewComponent: <EquipmentView />,
61
+ color: Colors.infoColor,
62
+ indicator: totalNumberInterventionEquipment,
63
+ },
64
+ {
65
+ iconName: 'chat-text',
66
+ viewComponent: <NoteView />,
67
+ color: Colors.plannedColor,
68
+ },
69
+ {
70
+ iconName: 'clock-history',
71
+ viewComponent: <HistoryView />,
72
+ color: Colors.successColor,
73
+ },
74
+ ];
75
+ if (intervention?.id !== _interventionId) {
76
+ return null;
77
+ }
78
+ return (<Screen removeSpaceOnTop={true}>
79
+ <BottomBar items={bottomBarItems}/>
80
+ </Screen>);
81
+ };
82
+ export default InterventionDetailsScreen;
83
+ //# sourceMappingURL=InterventionDetailsScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterventionDetailsScreen.js","sourceRoot":"","sources":["../../../src/screens/intervention/InterventionDetailsScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO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AAS,EAAE,gCAAgC;SAC5C;QACD;YACE,QAAQ,EAAE,WAAW;YACrB,aAAa,EAAE,CAAC,QAAQ,CAAC,AAAD,EAAG;YAC3B,KAAK,EAAE,MAAM,CAAC,YAAY;SAC3B;QACD;YACE,QAAQ,EAAE,eAAe;YACzB,aAAa,EAAE,CAAC,WAAW,CAAC,AAAD,EAAG;YAC9B,KAAK,EAAE,MAAM,CAAC,YAAY;SAC3B;KACF,CAAC;IAEF,IAAI,YAAY,EAAE,EAAE,KAAK,eAAe,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAC7B;MAAA,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,EACnC;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const InterventionNoteFormScreen: ({ route, navigation }: {
3
+ route: any;
4
+ navigation: any;
5
+ }) => React.JSX.Element;
6
+ export default InterventionNoteFormScreen;
@@ -0,0 +1,81 @@
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, useEffect, useMemo } from 'react';
19
+ import { StyleSheet } from 'react-native';
20
+ import { FormView, useDispatch, useSelector } from '@axelor/aos-mobile-core';
21
+ import { HeaderContainer, Screen } from '@axelor/aos-mobile-ui';
22
+ import { InterventionHeader } from '../../components';
23
+ import { createInterventionNote, fetchInterventionNoteById, updateInterventionNote, } from '../../features/interventionNoteSlice';
24
+ const InterventionNoteFormScreen = ({ route, navigation }) => {
25
+ const noteId = route?.params?.noteId;
26
+ const dispatch = useDispatch();
27
+ const { intervention } = useSelector((state) => state.intervention_intervention);
28
+ const { interventionNote } = useSelector((state) => state.intervention_interventionNote);
29
+ useEffect(() => {
30
+ noteId &&
31
+ dispatch(fetchInterventionNoteById({ interventionNoteId: noteId }));
32
+ }, [dispatch, noteId]);
33
+ const defaultValue = useMemo(() => (noteId ? interventionNote : null), [interventionNote, noteId]);
34
+ const creationDefaultValue = useMemo(() => ({
35
+ partner: intervention?.deliveredPartner,
36
+ }), [intervention?.deliveredPartner]);
37
+ const interventionNoteAPI = useCallback(objectState => {
38
+ const sliceFunction = noteId
39
+ ? updateInterventionNote
40
+ : createInterventionNote;
41
+ dispatch(sliceFunction({
42
+ interventionNote: objectState,
43
+ deliveredPartnerId: intervention?.deliveredPartner?.id,
44
+ })).then(() => navigation.pop());
45
+ }, [dispatch, intervention?.deliveredPartner, navigation, noteId]);
46
+ if (noteId && noteId !== interventionNote.id) {
47
+ return null;
48
+ }
49
+ return (<Screen removeSpaceOnTop={true}>
50
+ <HeaderContainer style={styles.headerContainer} expandableFilter={false} fixedItems={<InterventionHeader intervention={intervention}/>}/>
51
+ <FormView formKey="intervention_interventionNote" defaultValue={defaultValue} creationDefaultValue={creationDefaultValue} defaultEditMode={noteId == null} actions={[
52
+ {
53
+ key: 'create-interventionNote',
54
+ type: 'create',
55
+ needValidation: true,
56
+ needRequiredFields: true,
57
+ hideIf: () => noteId,
58
+ customAction: ({ objectState }) => {
59
+ interventionNoteAPI(objectState);
60
+ },
61
+ },
62
+ {
63
+ key: 'update-interventionNote',
64
+ type: 'update',
65
+ needValidation: true,
66
+ needRequiredFields: true,
67
+ hideIf: () => !noteId,
68
+ customAction: ({ objectState }) => {
69
+ interventionNoteAPI(objectState);
70
+ },
71
+ },
72
+ ]}/>
73
+ </Screen>);
74
+ };
75
+ const styles = StyleSheet.create({
76
+ headerContainer: {
77
+ marginBottom: 10,
78
+ },
79
+ });
80
+ export default InterventionNoteFormScreen;
81
+ //# sourceMappingURL=InterventionNoteFormScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterventionNoteFormScreen.js","sourceRoot":"","sources":["../../../src/screens/intervention/InterventionNoteFormScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAC,eAAe,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAE9C,MAAM,0BAA0B,GAAG,CAAC,EAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAE;IACzD,MAAM,MAAM,GAAG,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACrC,MAAM,QAAQ,GAAQ,WAAW,EAAE,CAAC;IAEpC,MAAM,EAAC,YAAY,EAAC,GAAG,WAAW,CAChC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAChD,CAAC;IACF,MAAM,EAAC,gBAAgB,EAAC,GAAG,WAAW,CACpC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,6BAA6B,CACpD,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM;YACJ,QAAQ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C,YAAY,CAAC,CAAC,YAAY,CAAC,EAAG,CAAC,EAEjE;MAAA,CAAC,QAAQ,CACP,OAAO,CAAC,+BAA+B,CACvC,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,oBAAoB,CAAC,CAAC,oBAAoB,CAAC,CAC3C,eAAe,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC,CAChC,OAAO,CAAC,CAAC;YACP;gBACE,GAAG,EAAE,yBAAyB;gBAC9B,IAAI,EAAE,QAAQ;gBACd,cAAc,EAAE,IAAI;gBACpB,kBAAkB,EAAE,IAAI;gBACxB,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM;gBACpB,YAAY,EAAE,CAAC,EAAC,WAAW,EAAC,EAAE,EAAE;oBAC9B,mBAAmB,CAAC,WAAW,CAAC,CAAC;gBACnC,CAAC;aACF;YACD;gBACE,GAAG,EAAE,yBAAyB;gBAC9B,IAAI,EAAE,QAAQ;gBACd,cAAc,EAAE,IAAI;gBACpB,kBAAkB,EAAE,IAAI;gBACxB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM;gBACrB,YAAY,EAAE,CAAC,EAAC,WAAW,EAAC,EAAE,EAAE;oBAC9B,mBAAmB,CAAC,WAAW,CAAC,CAAC;gBACnC,CAAC;aACF;SACF,CAAC,EAEN;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,eAAe,EAAE;QACf,YAAY,EAAE,EAAE;KACjB;CACF,CAAC,CAAC;AAEH,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const InterventionQuestionFormScreen: ({ route, navigation }: {
3
+ route: any;
4
+ navigation: any;
5
+ }) => React.JSX.Element;
6
+ export default InterventionQuestionFormScreen;
@@ -0,0 +1,114 @@
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, useEffect, useMemo, useState } from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { FormView, useDispatch, useSelector, useTranslator, useTypes, useTypeHelpers, } from '@axelor/aos-mobile-core';
21
+ import { Badge, HeaderContainer, Screen, Text, useThemeColor, InfoBubble, } from '@axelor/aos-mobile-ui';
22
+ import { InterventionHeader } from '../../components';
23
+ import { fetchQuestionById, updateQuestion } from '../../features/questionSlice';
24
+ import { Question as QuestionType } from '../../types';
25
+ const InterventionQuestionFormScreen = ({ route, navigation }) => {
26
+ const Colors = useThemeColor();
27
+ const I18n = useTranslator();
28
+ const dispatch = useDispatch();
29
+ const { InterventionQuestion } = useTypes();
30
+ const { getItemColor, getItemTitle } = useTypeHelpers();
31
+ const rangeId = route?.params?.rangeId;
32
+ const [questionId] = useState(route?.params?.questionId);
33
+ const { intervention } = useSelector((state) => state.intervention_intervention);
34
+ const { question, questionlist } = useSelector((state) => state.intervention_question);
35
+ const questionStatus = useMemo(() => QuestionType.getStatus(question, questionlist.find(q => q.id === question.conditionalInterventionQuestion?.id)), [question, questionlist]);
36
+ const questionBadge = useMemo(() => {
37
+ if (questionStatus === InterventionQuestion?.statusSelect.Required ||
38
+ questionStatus === InterventionQuestion?.statusSelect.Conditional) {
39
+ return {
40
+ title: getItemTitle(InterventionQuestion?.statusSelect, questionStatus),
41
+ color: getItemColor(InterventionQuestion?.statusSelect, questionStatus),
42
+ };
43
+ }
44
+ else {
45
+ return null;
46
+ }
47
+ }, [
48
+ InterventionQuestion?.statusSelect,
49
+ getItemColor,
50
+ getItemTitle,
51
+ questionStatus,
52
+ ]);
53
+ useEffect(() => {
54
+ dispatch(fetchQuestionById({ questionId }));
55
+ }, [dispatch, questionId]);
56
+ const updateQuestionAPI = useCallback(objectState => {
57
+ dispatch(updateQuestion({
58
+ question: objectState,
59
+ interventionId: intervention?.id,
60
+ rangeId: rangeId,
61
+ }));
62
+ navigation.pop();
63
+ }, [dispatch, intervention?.id, navigation, rangeId]);
64
+ return (<Screen removeSpaceOnTop={true}>
65
+ <HeaderContainer style={styles.headerContainer} expandableFilter={false} fixedItems={<InterventionHeader intervention={intervention}/>}/>
66
+ <View style={styles.questionContainer}>
67
+ <View style={styles.questionTitleContainer}>
68
+ <Text writingType="title" style={styles.questionTitle}>
69
+ {question.title}
70
+ </Text>
71
+ {questionBadge && (<Badge style={styles.badge} title={questionBadge.title} color={questionBadge.color}/>)}
72
+ {question.isPrivate && (<InfoBubble coloredBubble={false} iconName="lock" badgeColor={Colors.secondaryColor_dark} indication={I18n.t('Intervention_PrivateQuestion')} position="left"/>)}
73
+ </View>
74
+ {question.indication && (<Text writingType="details">{question.indication}</Text>)}
75
+ </View>
76
+ <FormView formKey="intervention_interventionQuestion" defaultValue={question} actions={[
77
+ {
78
+ key: 'save-interventionQuestion',
79
+ type: 'update',
80
+ needValidation: true,
81
+ needRequiredFields: true,
82
+ hideIf: () => question.answerTypeSelect ===
83
+ InterventionQuestion?.answerTypeSelect.Indication,
84
+ customAction: ({ objectState }) => {
85
+ updateQuestionAPI(objectState);
86
+ },
87
+ },
88
+ ]}/>
89
+ </Screen>);
90
+ };
91
+ const styles = StyleSheet.create({
92
+ headerContainer: {
93
+ marginBottom: 10,
94
+ },
95
+ questionContainer: {
96
+ width: '90%',
97
+ alignSelf: 'center',
98
+ marginBottom: 10,
99
+ },
100
+ questionTitleContainer: {
101
+ flexDirection: 'row',
102
+ justifyContent: 'space-between',
103
+ alignItems: 'center',
104
+ },
105
+ questionTitle: {
106
+ flex: 4,
107
+ },
108
+ badge: {
109
+ width: null,
110
+ paddingHorizontal: 5,
111
+ },
112
+ });
113
+ export default InterventionQuestionFormScreen;
114
+ //# sourceMappingURL=InterventionQuestionFormScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterventionQuestionFormScreen.js","sourceRoot":"","sources":["../../../src/screens/intervention/InterventionQuestionFormScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,QAAQ,EACR,WAAW,EACX,WAAW,EACX,aAAa,EACb,QAAQ,EACR,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,EACL,eAAe,EACf,MAAM,EACN,IAAI,EACJ,aAAa,EACb,UAAU,GACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAC,QAAQ,IAAI,YAAY,EAAC,MAAM,aAAa,CAAC;AAErD,MAAM,8BAA8B,GAAG,CAAC,EAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAE;IAC7D,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAC,oBAAoB,EAAC,GAAG,QAAQ,EAAE,CAAC;IAC1C,MAAM,EAAC,YAAY,EAAE,YAAY,EAAC,GAAG,cAAc,EAAE,CAAC;IAEtD,MAAM,OAAO,GAAG,KAA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BAAiB,EAAE,CAAC;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,8BAA8B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const InterventionsHistoryScreen: ({}: {}) => React.JSX.Element;
3
+ export default InterventionsHistoryScreen;
@@ -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 { useTypes } from '@axelor/aos-mobile-core';
20
+ import { Screen } from '@axelor/aos-mobile-ui';
21
+ import { InterventionsListView } from '../../components';
22
+ const InterventionsHistoryScreen = ({}) => {
23
+ const { Intervention } = useTypes();
24
+ return (<Screen removeSpaceOnTop={true}>
25
+ <InterventionsListView statusList={[Intervention?.statusSelect.Finished]}/>
26
+ </Screen>);
27
+ };
28
+ export default InterventionsHistoryScreen;
29
+ //# sourceMappingURL=InterventionsHistoryScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterventionsHistoryScreen.js","sourceRoot":"","sources":["../../../src/screens/intervention/InterventionsHistoryScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;AAEvD,MAAM,0BAA0B,GAAG,CAAC,EAAE,EAAE,EAAE;IACxC,MAAM,EAAC,YAAY,EAAC,GAAG,QAAQ,EAAE,CAAC;IAElC,OAAO,CACL,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAC7B;MAAA,CAAC,qBAAqB,CACpB,UAAU,CAAC,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC,EAEtD;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PlannedInterventionsScreen: ({}: {}) => React.JSX.Element;
3
+ export default PlannedInterventionsScreen;
@@ -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 { useTypes } from '@axelor/aos-mobile-core';
20
+ import { Screen } from '@axelor/aos-mobile-ui';
21
+ import { InterventionsListView } from '../../components';
22
+ const PlannedInterventionsScreen = ({}) => {
23
+ const { Intervention } = useTypes();
24
+ return (<Screen removeSpaceOnTop={true}>
25
+ <InterventionsListView statusList={[Intervention?.statusSelect.Planned]}/>
26
+ </Screen>);
27
+ };
28
+ export default PlannedInterventionsScreen;
29
+ //# sourceMappingURL=PlannedInterventionsScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlannedInterventionsScreen.js","sourceRoot":"","sources":["../../../src/screens/intervention/PlannedInterventionsScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;AAEvD,MAAM,0BAA0B,GAAG,CAAC,EAAE,EAAE,EAAE;IACxC,MAAM,EAAC,YAAY,EAAC,GAAG,QAAQ,EAAE,CAAC;IAElC,OAAO,CACL,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAC7B;MAAA,CAAC,qBAAqB,CACpB,UAAU,CAAC,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,EAErD;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}