@axelor/aos-mobile-core 8.2.5 → 8.2.7

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 (352) hide show
  1. package/lib/api/anomaly-api.js +1 -1
  2. package/lib/api/app-config-api.js +1 -1
  3. package/lib/api/attached-files-api.js +1 -1
  4. package/lib/api/login-api.d.ts +11 -0
  5. package/lib/api/login-api.js +28 -16
  6. package/lib/api/login-api.js.map +1 -1
  7. package/lib/api/mail-message-api.js +1 -1
  8. package/lib/api/meta-module-api.js +1 -1
  9. package/lib/api/metafile-api.js +1 -1
  10. package/lib/api/model-api.js +1 -1
  11. package/lib/api/net-info-utils.js +1 -1
  12. package/lib/api/print-template-api.js +1 -1
  13. package/lib/api/traceback-api.js +1 -1
  14. package/lib/api/user-api.js +1 -1
  15. package/lib/apiProviders/Action/ActionApiProvider.js +1 -1
  16. package/lib/apiProviders/Action/ActionProvider.js +1 -1
  17. package/lib/apiProviders/Action/AosActionApi.js +1 -1
  18. package/lib/apiProviders/Action/GatewayActionApi.js +1 -1
  19. package/lib/apiProviders/Action/index.js +1 -1
  20. package/lib/apiProviders/Action/utils.js +1 -1
  21. package/lib/apiProviders/Model/AopModelApi.js +1 -1
  22. package/lib/apiProviders/Model/GatewayModelApi.js +1 -1
  23. package/lib/apiProviders/Model/ModelApiProvider.js +1 -1
  24. package/lib/apiProviders/Model/Provider.js +1 -1
  25. package/lib/apiProviders/Model/index.js +1 -1
  26. package/lib/apiProviders/Model/utils.d.ts +1 -1
  27. package/lib/apiProviders/Model/utils.js +1 -1
  28. package/lib/apiProviders/Standard/AxiosProvider.js +1 -1
  29. package/lib/apiProviders/Standard/ObjectFieldsProvider.js +1 -1
  30. package/lib/apiProviders/Standard/index.d.ts +1 -1
  31. package/lib/apiProviders/Standard/index.js +2 -2
  32. package/lib/apiProviders/Standard/index.js.map +1 -1
  33. package/lib/apiProviders/Standard/requests.helper.d.ts +7 -0
  34. package/lib/apiProviders/Standard/requests.helper.js +71 -1
  35. package/lib/apiProviders/Standard/requests.helper.js.map +1 -1
  36. package/lib/apiProviders/config.js +1 -1
  37. package/lib/apiProviders/index.d.ts +1 -0
  38. package/lib/apiProviders/index.js +2 -1
  39. package/lib/apiProviders/index.js.map +1 -1
  40. package/lib/apiProviders/middlewares/fieldParser.js +1 -1
  41. package/lib/apiProviders/middlewares/index.js +1 -1
  42. package/lib/apiProviders/middlewares/translation.js +1 -1
  43. package/lib/apiProviders/utils.js +1 -1
  44. package/lib/app/Application.js +1 -1
  45. package/lib/app/ContextedApplication.js +1 -1
  46. package/lib/app/ContextsProvider.js +1 -1
  47. package/lib/app/RootNavigator.js +1 -1
  48. package/lib/app/context.helper.js +1 -1
  49. package/lib/app/index.js +1 -1
  50. package/lib/app/module-generation.helper.js +1 -1
  51. package/lib/app/modules/ModuleProvider.js +1 -1
  52. package/lib/app/modules/hooks.js +1 -1
  53. package/lib/app/modules/index.js +1 -1
  54. package/lib/app/modules/types.js +1 -1
  55. package/lib/app/types.js +1 -1
  56. package/lib/auth/api/company-api.js +1 -1
  57. package/lib/auth/api/config-api.js +1 -1
  58. package/lib/auth/api/index.js +1 -1
  59. package/lib/auth/api/localization-api.js +1 -1
  60. package/lib/auth/api/user-api.js +1 -1
  61. package/lib/auth/components/index.js +1 -1
  62. package/lib/auth/components/molecules/DashboardsCard/DashboardsCard.js +1 -1
  63. package/lib/auth/components/molecules/NavigationToolsButton/NavigationToolsButton.js +1 -1
  64. package/lib/auth/components/molecules/ShortcutsCard/ShortcutsCard.js +1 -1
  65. package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.js +1 -1
  66. package/lib/auth/components/molecules/UserCard/UserCard.js +1 -1
  67. package/lib/auth/components/molecules/index.js +1 -1
  68. package/lib/auth/features/asyncFunctionsIndex.js +1 -1
  69. package/lib/auth/features/companySlice.js +1 -1
  70. package/lib/auth/features/configSlice.js +1 -1
  71. package/lib/auth/features/index.js +1 -1
  72. package/lib/auth/features/localizationSlice.js +1 -1
  73. package/lib/auth/features/userSlice.js +1 -1
  74. package/lib/auth/hooks/use-auth-headers.js +1 -1
  75. package/lib/auth/index.js +1 -1
  76. package/lib/auth/models/index.js +1 -1
  77. package/lib/auth/models/objectFields.js +1 -1
  78. package/lib/auth/screens/SettingsScreen.js +1 -1
  79. package/lib/auth/screens/UserScreen.js +1 -1
  80. package/lib/auth/screens/index.js +1 -1
  81. package/lib/components/external/Camera/Camera.js +1 -1
  82. package/lib/components/external/Camera/CaptureButton.js +1 -1
  83. package/lib/components/external/CodeHighlighter/CodeHighlighter.js +1 -1
  84. package/lib/components/external/CodeHighlighter/code-highlighter.helper.js +1 -1
  85. package/lib/components/external/PlanningView/AgendaItemDisplay.js +1 -1
  86. package/lib/components/external/PlanningView/DayDisplay.js +1 -1
  87. package/lib/components/external/PlanningView/MonthDisplay.js +1 -1
  88. package/lib/components/external/PlanningView/NavigationButton.js +1 -1
  89. package/lib/components/external/PlanningView/PlanningView.js +1 -1
  90. package/lib/components/external/PlanningView/agenda.helpers.js +1 -1
  91. package/lib/components/external/Scanner/Scanner.d.ts +1 -1
  92. package/lib/components/external/Scanner/Scanner.js +88 -39
  93. package/lib/components/external/Scanner/Scanner.js.map +1 -1
  94. package/lib/components/external/Scanner/intent.helpers.d.ts +11 -0
  95. package/lib/components/external/Scanner/intent.helpers.js +43 -0
  96. package/lib/components/external/Scanner/intent.helpers.js.map +1 -0
  97. package/lib/components/external/Scanner/path.helpers.d.ts +15 -0
  98. package/lib/components/external/Scanner/path.helpers.js +35 -0
  99. package/lib/components/external/Scanner/path.helpers.js.map +1 -0
  100. package/lib/components/external/Stopwatch/Stopwatch.js +1 -1
  101. package/lib/components/external/Timer/Timer.js +1 -1
  102. package/lib/components/external/Toast/Toast.js +1 -1
  103. package/lib/components/external/Toast/ToastProvider.js +1 -1
  104. package/lib/components/external/Toast/index.js +1 -1
  105. package/lib/components/external/WebView/WebView.js +1 -1
  106. package/lib/components/external/index.js +1 -1
  107. package/lib/components/index.js +1 -1
  108. package/lib/components/molecules/CameraButton/CameraButton.js +1 -1
  109. package/lib/components/molecules/DateDisplay/DateDisplay.js +1 -1
  110. package/lib/components/molecules/DatePicker/DatePicker.js +1 -1
  111. package/lib/components/molecules/FocusScreen/FocusScreen.js +1 -1
  112. package/lib/components/molecules/HeaderBand/HeaderBand.js +1 -1
  113. package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.js +1 -1
  114. package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.js +1 -1
  115. package/lib/components/molecules/MailMessageReadIcon/MailMessageReadIcon.js +1 -1
  116. package/lib/components/molecules/PeriodDisplay/PeriodDisplay.js +10 -4
  117. package/lib/components/molecules/PeriodDisplay/PeriodDisplay.js.map +1 -1
  118. package/lib/components/molecules/TrackItem/TrackItem.js +1 -1
  119. package/lib/components/molecules/UploadFileInput/UploadFileInput.js +1 -1
  120. package/lib/components/molecules/index.js +1 -1
  121. package/lib/components/organisms/AOSImage/AOSImage.js +1 -1
  122. package/lib/components/organisms/AOSImageBubble/AOSImageBubble.js +1 -1
  123. package/lib/components/organisms/AnomalyBubble/AnomalyBubble.js +1 -1
  124. package/lib/components/organisms/AnomalyList/AnomalyList.js +1 -1
  125. package/lib/components/organisms/DateInput/DateInput.js +1 -1
  126. package/lib/components/organisms/DateInput/date-input.helper.js +1 -1
  127. package/lib/components/organisms/HeaderBandList/HeaderBandList.js +1 -1
  128. package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js +1 -1
  129. package/lib/components/organisms/MailMessageCard/MailMessageCard.js +1 -1
  130. package/lib/components/organisms/MailMessageCommentCard/MailMessageCommentCard.js +1 -1
  131. package/lib/components/organisms/MailMessageNotificationCard/MailMessageNotificationCard.js +1 -1
  132. package/lib/components/organisms/PopupPrintTemplate/PopupPrintTemplate.js +1 -1
  133. package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js +1 -1
  134. package/lib/components/organisms/SignatureInput/PictureIcon.js +1 -1
  135. package/lib/components/organisms/SignatureInput/SignatureInput.js +1 -1
  136. package/lib/components/organisms/index.js +1 -1
  137. package/lib/components/pages/CustomFieldForm/CustomFieldForm.js +1 -1
  138. package/lib/components/pages/FormView/Alerts/ConfirmationPopup.js +1 -1
  139. package/lib/components/pages/FormView/Alerts/ConstraintsValidatorPopup.js +1 -1
  140. package/lib/components/pages/FormView/Alerts/index.js +1 -1
  141. package/lib/components/pages/FormView/Buttons/FloatingTools.js +1 -1
  142. package/lib/components/pages/FormView/Buttons/index.js +1 -1
  143. package/lib/components/pages/FormView/Components/Field.js +1 -1
  144. package/lib/components/pages/FormView/Components/Panel.js +1 -1
  145. package/lib/components/pages/FormView/Components/index.js +1 -1
  146. package/lib/components/pages/FormView/Custom/CustomButton.js +1 -1
  147. package/lib/components/pages/FormView/Custom/CustomPasswordInput.js +1 -1
  148. package/lib/components/pages/FormView/Custom/CustomPicker.js +1 -1
  149. package/lib/components/pages/FormView/Custom/CustomSearchBar.js +1 -1
  150. package/lib/components/pages/FormView/Custom/CustomTagList.js +1 -1
  151. package/lib/components/pages/FormView/Custom/index.js +1 -1
  152. package/lib/components/pages/FormView/FormView.js +1 -1
  153. package/lib/components/pages/index.js +1 -1
  154. package/lib/components/templates/AttachedFilesView/AttachedFilesView.js +1 -1
  155. package/lib/components/templates/GlobalToolBox/GlobalToolBox.js +1 -1
  156. package/lib/components/templates/MailMessageView/MailMessageView.js +1 -1
  157. package/lib/components/templates/PeriodInput/PeriodInput.d.ts +7 -4
  158. package/lib/components/templates/PeriodInput/PeriodInput.js +18 -5
  159. package/lib/components/templates/PeriodInput/PeriodInput.js.map +1 -1
  160. package/lib/components/templates/PopupApplicationInformation/PopupApplicationInformation.js +1 -1
  161. package/lib/components/templates/PopupMinimalRequiredVersion/PopupMinimalRequiredVersion.js +1 -1
  162. package/lib/components/templates/PrintTemplateSearchBar/PrintTemplateSearchBar.js +1 -1
  163. package/lib/components/templates/SearchListView/SearchListView.js +1 -1
  164. package/lib/components/templates/SearchTreeView/SearchTreeView.js +1 -1
  165. package/lib/components/templates/SingleSelectSearchListView/SingleSelectSearchListView.js +1 -1
  166. package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.js +1 -1
  167. package/lib/components/templates/UserSearchBar/UserSearchBar.js +1 -1
  168. package/lib/components/templates/index.js +1 -1
  169. package/lib/config/RouterProvider.js +1 -1
  170. package/lib/config/index.js +1 -1
  171. package/lib/config/routes.js +1 -1
  172. package/lib/dashboards/api.helpers.js +1 -1
  173. package/lib/dashboards/component/AOPChart/AOPChart.js +1 -1
  174. package/lib/dashboards/component/AOPChart/DynamicSearchForm.js +1 -1
  175. package/lib/dashboards/component/AOPChart/api.helpers.js +1 -1
  176. package/lib/dashboards/component/AOPChart/format.helpers.js +1 -1
  177. package/lib/dashboards/component/RefreshChart/RefreshChart.js +1 -1
  178. package/lib/dashboards/component/index.js +1 -1
  179. package/lib/dashboards/display.helpers.js +1 -1
  180. package/lib/dashboards/index.js +1 -1
  181. package/lib/dashboards/menu.helpers.js +1 -1
  182. package/lib/dashboards/view/DashboardScreen.js +1 -1
  183. package/lib/dashboards/view/DashboardView.js +1 -1
  184. package/lib/dashboards/view/index.js +1 -1
  185. package/lib/features/appConfigSlice.js +1 -1
  186. package/lib/features/attachedFilesSlice.js +1 -1
  187. package/lib/features/authSlice.js +4 -5
  188. package/lib/features/authSlice.js.map +1 -1
  189. package/lib/features/cameraScannerSlice.js +1 -1
  190. package/lib/features/cameraSlice.js +1 -1
  191. package/lib/features/formSlice.js +1 -1
  192. package/lib/features/index.js +1 -1
  193. package/lib/features/mailMessageSlice.js +1 -1
  194. package/lib/features/metaJsonFieldSlice.js +1 -1
  195. package/lib/features/metaModuleSlice.js +1 -1
  196. package/lib/features/metafileSlice.js +1 -1
  197. package/lib/features/onlineSlice.js +1 -1
  198. package/lib/features/permissionSlice.js +1 -1
  199. package/lib/features/printTemplateSlice.js +1 -1
  200. package/lib/features/scannerSlice.js +1 -1
  201. package/lib/features/userSlice.js +1 -1
  202. package/lib/forms/FormConfigsProvider.js +1 -1
  203. package/lib/forms/action.helpers.js +1 -1
  204. package/lib/forms/api.helpers.js +1 -1
  205. package/lib/forms/display.helpers.js +1 -1
  206. package/lib/forms/index.js +1 -1
  207. package/lib/forms/register.helpers.js +1 -1
  208. package/lib/forms/studio/api.helpers.js +1 -1
  209. package/lib/forms/studio/display.helpers.js +1 -1
  210. package/lib/forms/studio/formula.helpers.js +1 -1
  211. package/lib/forms/studio/index.js +1 -1
  212. package/lib/forms/studio/permission.helpers.js +1 -1
  213. package/lib/forms/types.js +1 -1
  214. package/lib/forms/validation.helpers.js +1 -1
  215. package/lib/header/HeaderActionsProvider.js +1 -1
  216. package/lib/header/HeaderBandContext.js +1 -1
  217. package/lib/header/header-band-context.helper.js +1 -1
  218. package/lib/header/hooks.js +1 -1
  219. package/lib/header/index.js +1 -1
  220. package/lib/header/types.js +1 -1
  221. package/lib/header/utils.js +1 -1
  222. package/lib/hooks/use-background-function.js +1 -1
  223. package/lib/hooks/use-effect-debugger.js +1 -1
  224. package/lib/hooks/use-header-registers.js +1 -1
  225. package/lib/hooks/use-navigation.js +1 -1
  226. package/lib/hooks/use-scan-activator.js +1 -1
  227. package/lib/hooks/use-storage-config.js +1 -1
  228. package/lib/i18n/api/translation.js +1 -1
  229. package/lib/i18n/component/Translator.js +1 -1
  230. package/lib/i18n/helpers/langages.js +1 -1
  231. package/lib/i18n/helpers/translations.js +1 -1
  232. package/lib/i18n/hooks/use-translator.js +1 -1
  233. package/lib/i18n/i18n.js +1 -1
  234. package/lib/i18n/index.js +1 -1
  235. package/lib/index.d.ts +1 -0
  236. package/lib/index.js +2 -1
  237. package/lib/index.js.map +1 -1
  238. package/lib/loader/ProcessProvider.js +1 -1
  239. package/lib/loader/ProcessStorage.js +1 -1
  240. package/lib/loader/components/atoms/ProcessCard/ProcessCard.js +1 -1
  241. package/lib/loader/components/atoms/index.js +1 -1
  242. package/lib/loader/components/index.js +1 -1
  243. package/lib/loader/components/organisms/LoaderPopup/LoaderPopup.js +1 -1
  244. package/lib/loader/components/organisms/index.js +1 -1
  245. package/lib/loader/helpers.js +1 -1
  246. package/lib/loader/hooks.js +1 -1
  247. package/lib/loader/index.js +1 -1
  248. package/lib/loader/types.js +1 -1
  249. package/lib/models/index.js +1 -1
  250. package/lib/models/objectFields.js +1 -1
  251. package/lib/models/searchFields.js +1 -1
  252. package/lib/models/sortFields.js +1 -1
  253. package/lib/navigator/ActiveScreenProvider.js +1 -1
  254. package/lib/navigator/NavigationInformationsProvider.js +1 -1
  255. package/lib/navigator/Navigator.js +4 -2
  256. package/lib/navigator/Navigator.js.map +1 -1
  257. package/lib/navigator/drawer/AuthMenuIconButton.js +1 -1
  258. package/lib/navigator/drawer/BackIcon.js +1 -1
  259. package/lib/navigator/drawer/DrawerContent.js +1 -1
  260. package/lib/navigator/drawer/DrawerToggleButton.js +1 -1
  261. package/lib/navigator/drawer/Header.js +1 -1
  262. package/lib/navigator/drawer/Menu.js +1 -1
  263. package/lib/navigator/drawer/MenuIconButton.js +1 -1
  264. package/lib/navigator/drawer/MenuItem.js +1 -1
  265. package/lib/navigator/drawer/MenuItemEntry.js +1 -1
  266. package/lib/navigator/drawer/MenuSeparator.js +1 -1
  267. package/lib/navigator/drawer/MenuTitle.js +1 -1
  268. package/lib/navigator/drawer/SubMenuItem.js +1 -1
  269. package/lib/navigator/drawer/SubMenuItemList.js +1 -1
  270. package/lib/navigator/index.js +1 -1
  271. package/lib/navigator/menu.helper.js +1 -1
  272. package/lib/navigator/module.helper.js +1 -1
  273. package/lib/permissions/api.helpers.js +1 -1
  274. package/lib/permissions/format.helpers.js +1 -1
  275. package/lib/permissions/hooks.js +1 -1
  276. package/lib/permissions/index.js +1 -1
  277. package/lib/permissions/type.helpers.js +1 -1
  278. package/lib/redux/hooks.js +1 -1
  279. package/lib/redux/store.js +1 -1
  280. package/lib/screens/AttachedFilesScreen.js +1 -1
  281. package/lib/screens/BarcodeDisplayScreen.js +1 -1
  282. package/lib/screens/ErrorScreen.js +1 -1
  283. package/lib/screens/JsonFieldScreen.js +1 -1
  284. package/lib/screens/LoginScreen.js +1 -1
  285. package/lib/screens/MailMessageScreen.js +1 -1
  286. package/lib/screens/ProcessListScreen.js +1 -1
  287. package/lib/screens/SessionManagementScreen.js +1 -1
  288. package/lib/screens/index.js +1 -1
  289. package/lib/selections/SelectionProvider.js +1 -1
  290. package/lib/selections/api.helpers.js +1 -1
  291. package/lib/selections/format.helpers.js +1 -1
  292. package/lib/selections/hooks.js +1 -1
  293. package/lib/selections/index.js +1 -1
  294. package/lib/selections/types.js +1 -1
  295. package/lib/sessions/SessionStorage.js +1 -1
  296. package/lib/sessions/components/alerts/PopupCreateSession.js +1 -1
  297. package/lib/sessions/components/alerts/PopupEditSession.js +1 -1
  298. package/lib/sessions/components/alerts/PopupSession.js +1 -1
  299. package/lib/sessions/components/alerts/index.js +1 -1
  300. package/lib/sessions/components/display/LogoImage.js +1 -1
  301. package/lib/sessions/components/display/SessionCard.js +1 -1
  302. package/lib/sessions/components/display/SessionListCard.js +1 -1
  303. package/lib/sessions/components/display/index.js +1 -1
  304. package/lib/sessions/components/error/ErrorText.js +1 -1
  305. package/lib/sessions/components/error/index.js +1 -1
  306. package/lib/sessions/components/index.js +1 -1
  307. package/lib/sessions/components/inputs/DefaultCheckbox.js +1 -1
  308. package/lib/sessions/components/inputs/PasswordInput.js +1 -1
  309. package/lib/sessions/components/inputs/SessionInputs.js +1 -1
  310. package/lib/sessions/components/inputs/SessionNameInput.js +1 -1
  311. package/lib/sessions/components/inputs/UrlInput.js +1 -1
  312. package/lib/sessions/components/inputs/UsernameInput.js +1 -1
  313. package/lib/sessions/components/inputs/index.js +1 -1
  314. package/lib/sessions/hook.js +1 -1
  315. package/lib/sessions/index.js +1 -1
  316. package/lib/sessions/type.js +1 -1
  317. package/lib/sessions/utils.js +1 -1
  318. package/lib/storage/Storage.js +1 -1
  319. package/lib/tools/ClipboardProvider.js +1 -1
  320. package/lib/tools/ContactProvider.js +1 -1
  321. package/lib/tools/FilePicker.js +1 -1
  322. package/lib/tools/FileViewer.js +1 -1
  323. package/lib/tools/LinkingProvider.js +1 -1
  324. package/lib/tools/contact.helper.js +1 -1
  325. package/lib/tools/index.js +1 -1
  326. package/lib/tools/linking.helper.js +1 -1
  327. package/lib/types/anomaly-type.js +1 -1
  328. package/lib/types/index.js +1 -1
  329. package/lib/types/mail-message-notification-type.js +1 -1
  330. package/lib/types/mail-message-type.js +1 -1
  331. package/lib/types/stopwatch-type.js +1 -1
  332. package/lib/utils/agenda.js +1 -1
  333. package/lib/utils/api.js +1 -1
  334. package/lib/utils/date.js +1 -1
  335. package/lib/utils/displayers.js +1 -1
  336. package/lib/utils/filter.js +1 -1
  337. package/lib/utils/formatters.js +1 -1
  338. package/lib/utils/image.js +1 -1
  339. package/lib/utils/index.d.ts +1 -0
  340. package/lib/utils/index.js +2 -1
  341. package/lib/utils/index.js.map +1 -1
  342. package/lib/utils/list.js +1 -1
  343. package/lib/utils/object.js +1 -1
  344. package/lib/utils/show-toast-message.js +1 -1
  345. package/lib/utils/string.js +1 -1
  346. package/lib/utils/time.js +1 -1
  347. package/lib/webViews/api.helpers.js +1 -1
  348. package/lib/webViews/display.helpers.js +1 -1
  349. package/lib/webViews/menu.helper.js +1 -1
  350. package/lib/webViews/view/WebViewScreen.js +1 -1
  351. package/lib/webViews/view/index.js +1 -1
  352. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,17 +1,20 @@
1
1
  import React from 'react';
2
2
  interface dateInputConfig {
3
+ dateInputMode?: 'date' | 'datetime' | 'time';
4
+ nullable?: boolean;
3
5
  date?: Date;
4
6
  onDateChange: (date: Date) => void;
5
7
  readonly?: boolean;
6
8
  required?: boolean;
7
9
  }
8
10
  interface PeriodInputProps {
11
+ style?: any;
12
+ horizontal?: boolean;
13
+ showTitle?: boolean;
9
14
  startDateConfig: dateInputConfig;
10
15
  endDateConfig: dateInputConfig;
11
- showTitle?: boolean;
12
- horizontal?: boolean;
13
- style?: any;
14
16
  defaultIntervalHours?: number;
17
+ onPeriodErrorChange?: (isPeriodError: boolean) => void;
15
18
  }
16
- declare const PeriodInput: ({ startDateConfig, endDateConfig, showTitle, horizontal, style, defaultIntervalHours, }: PeriodInputProps) => React.JSX.Element;
19
+ declare const PeriodInput: ({ style, horizontal, showTitle, startDateConfig, endDateConfig, defaultIntervalHours, onPeriodErrorChange, }: PeriodInputProps) => React.JSX.Element;
17
20
  export default PeriodInput;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -25,7 +25,7 @@ const DATE_INPUT_MODE = {
25
25
  startDate: 0,
26
26
  endDate: 1,
27
27
  };
28
- const PeriodInput = ({ startDateConfig, endDateConfig, showTitle = true, horizontal = true, style, defaultIntervalHours = null, }) => {
28
+ const PeriodInput = ({ style, horizontal = true, showTitle = true, startDateConfig, endDateConfig, defaultIntervalHours = null, onPeriodErrorChange, }) => {
29
29
  const I18n = useTranslator();
30
30
  const [startDate, setStartDate] = useState(startDateConfig.date);
31
31
  const [endDate, setEndDate] = useState(endDateConfig.date);
@@ -54,8 +54,20 @@ const PeriodInput = ({ startDateConfig, endDateConfig, showTitle = true, horizon
54
54
  }
55
55
  }, [startDate, endDate, interval, startDateConfig, endDateConfig]);
56
56
  useEffect(() => {
57
- setIsPeriodError(startDate && endDate && getStartOfDay(startDate) > getEndOfDay(endDate));
58
- }, [startDate, endDate]);
57
+ const _startDate = startDateConfig.dateInputMode === 'date'
58
+ ? getStartOfDay(startDate)
59
+ : startDate;
60
+ const _endDate = endDateConfig.dateInputMode === 'date' ? getEndOfDay(endDate) : endDate;
61
+ const isError = startDate && endDate && _startDate > _endDate;
62
+ setIsPeriodError(isError);
63
+ onPeriodErrorChange(isError);
64
+ }, [
65
+ startDate,
66
+ endDate,
67
+ startDateConfig.dateInputMode,
68
+ endDateConfig.dateInputMode,
69
+ onPeriodErrorChange,
70
+ ]);
59
71
  const styles = useMemo(() => {
60
72
  return getStyles(horizontal);
61
73
  }, [horizontal]);
@@ -100,7 +112,8 @@ const PeriodInput = ({ startDateConfig, endDateConfig, showTitle = true, horizon
100
112
  const translationKey = isStartDate ? 'Base_StartDate' : 'Base_EndDate';
101
113
  const date = isStartDate ? startDate : endDate;
102
114
  const dateConfig = isStartDate ? startDateConfig : endDateConfig;
103
- return (<DateInput style={styles.dateInput} title={showTitle && I18n.t(translationKey)} mode="date" nullable popup={horizontal} defaultDate={date} onDateChange={_date => handleDateChange(isStartDate, _date)} readonly={dateConfig.readonly} required={dateConfig.required}/>);
115
+ const nullable = dateConfig.nullable || dateConfig.nullable == null ? true : false;
116
+ return (<DateInput style={styles.dateInput} title={showTitle && I18n.t(translationKey)} mode={dateConfig.dateInputMode ?? 'date'} nullable={nullable} popup={horizontal} defaultDate={date} onDateChange={_date => handleDateChange(isStartDate, _date)} readonly={dateConfig.readonly} required={dateConfig.required}/>);
104
117
  }, [
105
118
  startDate,
106
119
  endDate,
@@ -1 +1 @@
1
- {"version":3,"file":"PeriodInput.js","sourceRoot":"","sources":["../../../../src/components/templates/PeriodInput/PeriodInput.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,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,SAAS,EAAE,KAAK,CAAC,CAAC,CACrC;MAAA,CAAC,KAAK,CACJ,IAAI,CAAC,OAAO,CACZ,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CACpC,OAAO,CAAC,CAAC,aAAa,CAAC,EAEzB;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CACjC;QAAA,CAAC,eAAe,CAAC,eAAe,CAAC,SAAS,CAAC,CAC3C;QAAA,CAAC,eAAe,CAAC,eAAe,CAAC,OAAO,CAAC,CAC3C;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,UAAmB,EAAE,EAAE,CACxC,UAAU,CAAC,MAAM,CAAC;IAChB,SAAS,EAAE;QACT,KAAK,EAAE,KAAK;KACb;IACD,cAAc,EAAE;QACd,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;QAC5C,cAAc,EAAE,eAAe;KAChC;IACD,SAAS,EAAE;QACT,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM;KACnC;CACF,CAAC,CAAC;AAEL,eAAe,WAAW,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -16,8 +16,7 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
19
- import axios from 'axios';
20
- import { getActiveUserInfo, loginApi } from '../api/login-api';
19
+ import { ejectAxios, getActiveUserInfo, loginApi, logoutApi, } from '../api/login-api';
21
20
  import { apiProviderConfig } from '../apiProviders/config';
22
21
  import { saveUrlInStorage } from '../sessions';
23
22
  import { checkNullString } from '../utils';
@@ -49,9 +48,9 @@ export const isUrlValid = createAsyncThunk('auth/isUrlValid', async ({ url }) =>
49
48
  return url;
50
49
  });
51
50
  export const logout = createAsyncThunk('auth/logout', async function (data, { getState }) {
51
+ await logoutApi();
52
52
  const { requestInterceptorId, responseInterceptorId } = getState()?.auth;
53
- axios.interceptors.request.eject(requestInterceptorId);
54
- axios.interceptors.request.eject(responseInterceptorId);
53
+ ejectAxios({ requestInterceptorId, responseInterceptorId });
55
54
  return;
56
55
  });
57
56
  const initialState = {
@@ -1 +1 @@
1
- {"version":3,"file":"authSlice.js","sourceRoot":"","sources":["../../src/features/authSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,E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K,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;YACpB,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;YACnB,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;YACxB,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;YACnB,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAC;YAClC,KAAK,CAAC,qBAAqB,GAAG,IAAI,CAAC;YACnC,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EAAC,UAAU,EAAE,aAAa,EAAE,eAAe,EAAC,GAAG,SAAS,CAAC,OAAO,CAAC;AAE9E,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,