@gisce/react-ooui 2.0.0-alpha.5 → 2.0.0-alpha.50

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 (407) hide show
  1. package/dist/ConnectionProvider.d.ts +7 -0
  2. package/dist/ConnectionProvider.d.ts.map +1 -0
  3. package/dist/actionbar/ActionButton.d.ts +12 -0
  4. package/dist/actionbar/ActionButton.d.ts.map +1 -0
  5. package/dist/actionbar/AttachmentsButton.d.ts +11 -0
  6. package/dist/actionbar/AttachmentsButton.d.ts.map +1 -0
  7. package/dist/actionbar/AttachmentsButtonWrapper.d.ts +18 -0
  8. package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +1 -0
  9. package/dist/actionbar/ButtonWithBadge.d.ts +7 -0
  10. package/dist/actionbar/ButtonWithBadge.d.ts.map +1 -0
  11. package/dist/actionbar/ChangeViewButton.d.ts +12 -0
  12. package/dist/actionbar/ChangeViewButton.d.ts.map +1 -0
  13. package/dist/actionbar/DashboardActionBar.d.ts +3 -0
  14. package/dist/actionbar/DashboardActionBar.d.ts.map +1 -0
  15. package/dist/actionbar/DropdownButton.d.ts +12 -0
  16. package/dist/actionbar/DropdownButton.d.ts.map +1 -0
  17. package/dist/actionbar/FormActionBar.d.ts +5 -0
  18. package/dist/actionbar/FormActionBar.d.ts.map +1 -0
  19. package/dist/actionbar/GraphActionBar.d.ts +5 -0
  20. package/dist/actionbar/GraphActionBar.d.ts.map +1 -0
  21. package/dist/actionbar/NewButton.d.ts +6 -0
  22. package/dist/actionbar/NewButton.d.ts.map +1 -0
  23. package/dist/actionbar/SearchBar.d.ts +8 -0
  24. package/dist/actionbar/SearchBar.d.ts.map +1 -0
  25. package/dist/actionbar/TreeActionBar.d.ts +8 -0
  26. package/dist/actionbar/TreeActionBar.d.ts.map +1 -0
  27. package/dist/common/ButtonWithTooltip.d.ts +7 -0
  28. package/dist/common/ButtonWithTooltip.d.ts.map +1 -0
  29. package/dist/common/DatePicker.d.ts +19 -0
  30. package/dist/common/DatePicker.d.ts.map +1 -0
  31. package/dist/common/Field.d.ts +14 -0
  32. package/dist/common/Field.d.ts.map +1 -0
  33. package/dist/common/SelectAllRecordsRow.d.ts +9 -0
  34. package/dist/common/SelectAllRecordsRow.d.ts.map +1 -0
  35. package/dist/context/ActionViewContext.d.ts +65 -0
  36. package/dist/context/ActionViewContext.d.ts.map +1 -0
  37. package/dist/context/ConfigContext.d.ts +15 -0
  38. package/dist/context/ConfigContext.d.ts.map +1 -0
  39. package/dist/context/ContentRootContext.d.ts +19 -0
  40. package/dist/context/ContentRootContext.d.ts.map +1 -0
  41. package/dist/context/DashboardActionContext.d.ts +19 -0
  42. package/dist/context/DashboardActionContext.d.ts.map +1 -0
  43. package/dist/context/FormContext.d.ts +35 -0
  44. package/dist/context/FormContext.d.ts.map +1 -0
  45. package/dist/context/FormModalContext.d.ts +11 -0
  46. package/dist/context/FormModalContext.d.ts.map +1 -0
  47. package/dist/context/LocaleContext.d.ts +14 -0
  48. package/dist/context/LocaleContext.d.ts.map +1 -0
  49. package/dist/context/One2manyContext.d.ts +17 -0
  50. package/dist/context/One2manyContext.d.ts.map +1 -0
  51. package/dist/context/TabManagerContext.d.ts +50 -0
  52. package/dist/context/TabManagerContext.d.ts.map +1 -0
  53. package/dist/helpers/containerHelper.d.ts +22 -0
  54. package/dist/helpers/containerHelper.d.ts.map +1 -0
  55. package/dist/helpers/dayjs.d.ts +3 -0
  56. package/dist/helpers/dayjs.d.ts.map +1 -0
  57. package/dist/helpers/dynamicColumnsHelper.d.ts +16 -0
  58. package/dist/helpers/dynamicColumnsHelper.d.ts.map +1 -0
  59. package/dist/helpers/errorHelper.d.ts +6 -0
  60. package/dist/helpers/errorHelper.d.ts.map +1 -0
  61. package/dist/helpers/filesHelper.d.ts +8 -0
  62. package/dist/helpers/filesHelper.d.ts.map +1 -0
  63. package/dist/helpers/formHelper.d.ts +36 -0
  64. package/dist/helpers/formHelper.d.ts.map +1 -0
  65. package/dist/helpers/iconMapper.d.ts +13 -0
  66. package/dist/helpers/iconMapper.d.ts.map +1 -0
  67. package/dist/helpers/logInfoHelper.d.ts +3 -0
  68. package/dist/helpers/logInfoHelper.d.ts.map +1 -0
  69. package/dist/helpers/one2manyHelper.d.ts +37 -0
  70. package/dist/helpers/one2manyHelper.d.ts.map +1 -0
  71. package/dist/helpers/searchHelper.d.ts +6 -0
  72. package/dist/helpers/searchHelper.d.ts.map +1 -0
  73. package/dist/helpers/timeHelper.d.ts +4 -0
  74. package/dist/helpers/timeHelper.d.ts.map +1 -0
  75. package/dist/helpers/treeHelper.d.ts +23 -0
  76. package/dist/helpers/treeHelper.d.ts.map +1 -0
  77. package/dist/helpers/viewHelper.d.ts +10 -0
  78. package/dist/helpers/viewHelper.d.ts.map +1 -0
  79. package/dist/hooks/useEffectDebugger.d.ts +3 -0
  80. package/dist/hooks/useEffectDebugger.d.ts.map +1 -0
  81. package/dist/hooks/useExport.d.ts +44 -0
  82. package/dist/hooks/useExport.d.ts.map +1 -0
  83. package/dist/hooks/useFetchViews.d.ts +1 -0
  84. package/dist/hooks/useFetchViews.d.ts.map +1 -0
  85. package/dist/hooks/useSearch.d.ts +56 -0
  86. package/dist/hooks/useSearch.d.ts.map +1 -0
  87. package/dist/hooks/useWindowDimensions.d.ts +7 -0
  88. package/dist/hooks/useWindowDimensions.d.ts.map +1 -0
  89. package/dist/index.d.ts +59 -0
  90. package/dist/index.d.ts.map +1 -0
  91. package/dist/locales/ca_ES.d.ts +94 -0
  92. package/dist/locales/ca_ES.d.ts.map +1 -0
  93. package/dist/locales/en_US.d.ts +94 -0
  94. package/dist/locales/en_US.d.ts.map +1 -0
  95. package/dist/locales/es_ES.d.ts +94 -0
  96. package/dist/locales/es_ES.d.ts.map +1 -0
  97. package/dist/react-ooui.es.js +9896 -0
  98. package/dist/react-ooui.es.js.map +1 -0
  99. package/dist/style.css +1 -0
  100. package/dist/types/index.d.ts +258 -0
  101. package/dist/types/index.d.ts.map +1 -0
  102. package/dist/ui/ActionErrorDialog.d.ts +3 -0
  103. package/dist/ui/ActionErrorDialog.d.ts.map +1 -0
  104. package/dist/ui/ConfirmDialog.d.ts +7 -0
  105. package/dist/ui/ConfirmDialog.d.ts.map +1 -0
  106. package/dist/ui/ErrorAlert.d.ts +5 -0
  107. package/dist/ui/ErrorAlert.d.ts.map +1 -0
  108. package/dist/ui/FavouriteButton.d.ts +25 -0
  109. package/dist/ui/FavouriteButton.d.ts.map +1 -0
  110. package/dist/ui/FormErrorsDialog.d.ts +3 -0
  111. package/dist/ui/FormErrorsDialog.d.ts.map +1 -0
  112. package/dist/ui/GenericErrorDialog.d.ts +3 -0
  113. package/dist/ui/GenericErrorDialog.d.ts.map +1 -0
  114. package/dist/ui/GoToResourceModal.d.ts +9 -0
  115. package/dist/ui/GoToResourceModal.d.ts.map +1 -0
  116. package/dist/ui/InfoDialog.d.ts +3 -0
  117. package/dist/ui/InfoDialog.d.ts.map +1 -0
  118. package/dist/ui/RefreshItemDialog.d.ts +7 -0
  119. package/dist/ui/RefreshItemDialog.d.ts.map +1 -0
  120. package/dist/ui/RemoveItemDialog.d.ts +6 -0
  121. package/dist/ui/RemoveItemDialog.d.ts.map +1 -0
  122. package/dist/ui/TitleHeader.d.ts +7 -0
  123. package/dist/ui/TitleHeader.d.ts.map +1 -0
  124. package/dist/ui/UnlinkItemDialog.d.ts +6 -0
  125. package/dist/ui/UnlinkItemDialog.d.ts.map +1 -0
  126. package/dist/ui/UnsavedChangesDialog.d.ts +7 -0
  127. package/dist/ui/UnsavedChangesDialog.d.ts.map +1 -0
  128. package/dist/ui/WarningDialog.d.ts +3 -0
  129. package/dist/ui/WarningDialog.d.ts.map +1 -0
  130. package/dist/views/ActionView.d.ts +22 -0
  131. package/dist/views/ActionView.d.ts.map +1 -0
  132. package/dist/views/CurrentTabContent.d.ts +3 -0
  133. package/dist/views/CurrentTabContent.d.ts.map +1 -0
  134. package/dist/views/RootView.d.ts +14 -0
  135. package/dist/views/RootView.d.ts.map +1 -0
  136. package/dist/views/TabContent.d.ts +8 -0
  137. package/dist/views/TabContent.d.ts.map +1 -0
  138. package/dist/views/TabSelector.d.ts +3 -0
  139. package/dist/views/TabSelector.d.ts.map +1 -0
  140. package/dist/views/Welcome.d.ts +4 -0
  141. package/dist/views/Welcome.d.ts.map +1 -0
  142. package/dist/views/actionViews/DashboardActionView.d.ts +7 -0
  143. package/dist/views/actionViews/DashboardActionView.d.ts.map +1 -0
  144. package/dist/views/actionViews/FormActionView.d.ts +17 -0
  145. package/dist/views/actionViews/FormActionView.d.ts.map +1 -0
  146. package/dist/views/actionViews/GraphActionView.d.ts +12 -0
  147. package/dist/views/actionViews/GraphActionView.d.ts.map +1 -0
  148. package/dist/views/actionViews/TreeActionView.d.ts +19 -0
  149. package/dist/views/actionViews/TreeActionView.d.ts.map +1 -0
  150. package/dist/views/tabs/Tab.d.ts +10 -0
  151. package/dist/views/tabs/Tab.d.ts.map +1 -0
  152. package/dist/widgets/WidgetFactory.d.ts +4 -0
  153. package/dist/widgets/WidgetFactory.d.ts.map +1 -0
  154. package/dist/widgets/base/Binary.d.ts +13 -0
  155. package/dist/widgets/base/Binary.d.ts.map +1 -0
  156. package/dist/widgets/base/Boolean.d.ts +3 -0
  157. package/dist/widgets/base/Boolean.d.ts.map +1 -0
  158. package/dist/widgets/base/Button.d.ts +7 -0
  159. package/dist/widgets/base/Button.d.ts.map +1 -0
  160. package/dist/widgets/base/Char.d.ts +7 -0
  161. package/dist/widgets/base/Char.d.ts.map +1 -0
  162. package/dist/widgets/base/Date.d.ts +4 -0
  163. package/dist/widgets/base/Date.d.ts.map +1 -0
  164. package/dist/widgets/base/DateTime.d.ts +4 -0
  165. package/dist/widgets/base/DateTime.d.ts.map +1 -0
  166. package/dist/widgets/base/Email.d.ts +3 -0
  167. package/dist/widgets/base/Email.d.ts.map +1 -0
  168. package/dist/widgets/base/Float.d.ts +3 -0
  169. package/dist/widgets/base/Float.d.ts.map +1 -0
  170. package/dist/widgets/base/FloatTime.d.ts +12 -0
  171. package/dist/widgets/base/FloatTime.d.ts.map +1 -0
  172. package/dist/widgets/base/Image.d.ts +13 -0
  173. package/dist/widgets/base/Image.d.ts.map +1 -0
  174. package/dist/widgets/base/Integer.d.ts +7 -0
  175. package/dist/widgets/base/Integer.d.ts.map +1 -0
  176. package/dist/widgets/base/Label.d.ts +8 -0
  177. package/dist/widgets/base/Label.d.ts.map +1 -0
  178. package/dist/widgets/base/LinkInput.d.ts +11 -0
  179. package/dist/widgets/base/LinkInput.d.ts.map +1 -0
  180. package/dist/widgets/base/MultiSelection.d.ts +9 -0
  181. package/dist/widgets/base/MultiSelection.d.ts.map +1 -0
  182. package/dist/widgets/base/ProgressBar.d.ts +6 -0
  183. package/dist/widgets/base/ProgressBar.d.ts.map +1 -0
  184. package/dist/widgets/base/Reference.d.ts +16 -0
  185. package/dist/widgets/base/Reference.d.ts.map +1 -0
  186. package/dist/widgets/base/ReferenceTree.d.ts +8 -0
  187. package/dist/widgets/base/ReferenceTree.d.ts.map +1 -0
  188. package/dist/widgets/base/Selection.d.ts +9 -0
  189. package/dist/widgets/base/Selection.d.ts.map +1 -0
  190. package/dist/widgets/base/Separator.d.ts +7 -0
  191. package/dist/widgets/base/Separator.d.ts.map +1 -0
  192. package/dist/widgets/base/Text.d.ts +7 -0
  193. package/dist/widgets/base/Text.d.ts.map +1 -0
  194. package/dist/widgets/base/Time.d.ts +11 -0
  195. package/dist/widgets/base/Time.d.ts.map +1 -0
  196. package/dist/widgets/base/Url.d.ts +3 -0
  197. package/dist/widgets/base/Url.d.ts.map +1 -0
  198. package/dist/widgets/base/many2one/Many2one.d.ts +16 -0
  199. package/dist/widgets/base/many2one/Many2one.d.ts.map +1 -0
  200. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts +8 -0
  201. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +1 -0
  202. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts +9 -0
  203. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts.map +1 -0
  204. package/dist/widgets/base/many2one/Many2oneTree.d.ts +6 -0
  205. package/dist/widgets/base/many2one/Many2oneTree.d.ts.map +1 -0
  206. package/dist/widgets/base/one2many/One2many.d.ts +7 -0
  207. package/dist/widgets/base/one2many/One2many.d.ts.map +1 -0
  208. package/dist/widgets/base/one2many/One2manyInput.d.ts +23 -0
  209. package/dist/widgets/base/one2many/One2manyInput.d.ts.map +1 -0
  210. package/dist/widgets/base/one2many/One2manyTopBar.d.ts +22 -0
  211. package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -0
  212. package/dist/widgets/containers/Container.d.ts +9 -0
  213. package/dist/widgets/containers/Container.d.ts.map +1 -0
  214. package/dist/widgets/containers/Group.d.ts +10 -0
  215. package/dist/widgets/containers/Group.d.ts.map +1 -0
  216. package/dist/widgets/containers/Notebook.d.ts +9 -0
  217. package/dist/widgets/containers/Notebook.d.ts.map +1 -0
  218. package/dist/widgets/custom/Avatar.d.ts +10 -0
  219. package/dist/widgets/custom/Avatar.d.ts.map +1 -0
  220. package/dist/widgets/custom/ButtonGroup.d.ts +7 -0
  221. package/dist/widgets/custom/ButtonGroup.d.ts.map +1 -0
  222. package/dist/widgets/custom/CodeEditor.d.ts +8 -0
  223. package/dist/widgets/custom/CodeEditor.d.ts.map +1 -0
  224. package/dist/widgets/custom/Comments.d.ts +34 -0
  225. package/dist/widgets/custom/Comments.d.ts.map +1 -0
  226. package/dist/widgets/custom/FiberGrid.d.ts +9 -0
  227. package/dist/widgets/custom/FiberGrid.d.ts.map +1 -0
  228. package/dist/widgets/custom/Indicator.d.ts +9 -0
  229. package/dist/widgets/custom/Indicator.d.ts.map +1 -0
  230. package/dist/widgets/custom/Markdown.d.ts +4 -0
  231. package/dist/widgets/custom/Markdown.d.ts.map +1 -0
  232. package/dist/widgets/custom/MultiCheckbox.d.ts +13 -0
  233. package/dist/widgets/custom/MultiCheckbox.d.ts.map +1 -0
  234. package/dist/widgets/custom/Radio.d.ts +9 -0
  235. package/dist/widgets/custom/Radio.d.ts.map +1 -0
  236. package/dist/widgets/custom/Steps.d.ts +12 -0
  237. package/dist/widgets/custom/Steps.d.ts.map +1 -0
  238. package/dist/widgets/custom/Switch.d.ts +3 -0
  239. package/dist/widgets/custom/Switch.d.ts.map +1 -0
  240. package/dist/widgets/custom/Tag.d.ts +6 -0
  241. package/dist/widgets/custom/Tag.d.ts.map +1 -0
  242. package/dist/widgets/custom/Tags.d.ts +14 -0
  243. package/dist/widgets/custom/Tags.d.ts.map +1 -0
  244. package/dist/widgets/custom/Timeline.d.ts +15 -0
  245. package/dist/widgets/custom/Timeline.d.ts.map +1 -0
  246. package/dist/widgets/modals/ExportModal.d.ts +14 -0
  247. package/dist/widgets/modals/ExportModal.d.ts.map +1 -0
  248. package/dist/widgets/modals/FormModal.d.ts +11 -0
  249. package/dist/widgets/modals/FormModal.d.ts.map +1 -0
  250. package/dist/widgets/modals/SearchModal.d.ts +12 -0
  251. package/dist/widgets/modals/SearchModal.d.ts.map +1 -0
  252. package/dist/widgets/modals/TranslationModal.d.ts +11 -0
  253. package/dist/widgets/modals/TranslationModal.d.ts.map +1 -0
  254. package/dist/widgets/views/Dashboard/Dashboard.d.ts +5 -0
  255. package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -0
  256. package/dist/widgets/views/Dashboard/DashboardForm.d.ts +3 -0
  257. package/dist/widgets/views/Dashboard/DashboardForm.d.ts.map +1 -0
  258. package/dist/widgets/views/Dashboard/DashboardTree.d.ts +18 -0
  259. package/dist/widgets/views/Dashboard/DashboardTree.d.ts.map +1 -0
  260. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts +6 -0
  261. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts.map +1 -0
  262. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts +3 -0
  263. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts.map +1 -0
  264. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts +6 -0
  265. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts.map +1 -0
  266. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts +3 -0
  267. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +1 -0
  268. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts +11 -0
  269. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts.map +1 -0
  270. package/dist/widgets/views/DashboardGrid/index.d.ts +5 -0
  271. package/dist/widgets/views/DashboardGrid/index.d.ts.map +1 -0
  272. package/dist/widgets/views/Form.d.ts +29 -0
  273. package/dist/widgets/views/Form.d.ts.map +1 -0
  274. package/dist/widgets/views/Graph/Graph.d.ts +11 -0
  275. package/dist/widgets/views/Graph/Graph.d.ts.map +1 -0
  276. package/dist/widgets/views/Graph/GraphChart.d.ts +10 -0
  277. package/dist/widgets/views/Graph/GraphChart.d.ts.map +1 -0
  278. package/dist/widgets/views/Graph/GraphDefaults.d.ts +83 -0
  279. package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -0
  280. package/dist/widgets/views/Graph/GraphIndicator.d.ts +16 -0
  281. package/dist/widgets/views/Graph/GraphIndicator.d.ts.map +1 -0
  282. package/dist/widgets/views/Graph/useGraphData.d.ts +20 -0
  283. package/dist/widgets/views/Graph/useGraphData.d.ts.map +1 -0
  284. package/dist/widgets/views/SearchTree.d.ts +24 -0
  285. package/dist/widgets/views/SearchTree.d.ts.map +1 -0
  286. package/dist/widgets/views/Tree.d.ts +32 -0
  287. package/dist/widgets/views/Tree.d.ts.map +1 -0
  288. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts +3 -0
  289. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts.map +1 -0
  290. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts +3 -0
  291. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts.map +1 -0
  292. package/dist/widgets/views/searchFilter/PairFields.d.ts +4 -0
  293. package/dist/widgets/views/searchFilter/PairFields.d.ts.map +1 -0
  294. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts +10 -0
  295. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts.map +1 -0
  296. package/dist/widgets/views/searchFilter/SearchField.d.ts +7 -0
  297. package/dist/widgets/views/searchFilter/SearchField.d.ts.map +1 -0
  298. package/dist/widgets/views/searchFilter/SearchFilter.d.ts +19 -0
  299. package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +1 -0
  300. package/dist/widgets/views/searchFilter/SearchParams.d.ts +7 -0
  301. package/dist/widgets/views/searchFilter/SearchParams.d.ts.map +1 -0
  302. package/package.json +43 -18
  303. package/src/ConnectionProvider.ts +1 -1
  304. package/src/__tests__/iconMapper.test.ts +4 -4
  305. package/src/actionbar/AttachmentsButton.tsx +25 -23
  306. package/src/actionbar/AttachmentsButtonWrapper.tsx +2 -2
  307. package/src/actionbar/ButtonWithBadge.tsx +4 -2
  308. package/src/actionbar/ChangeViewButton.tsx +1 -1
  309. package/src/actionbar/DashboardActionBar.tsx +2 -6
  310. package/src/actionbar/DropdownButton.tsx +44 -3
  311. package/src/actionbar/FormActionBar.tsx +22 -16
  312. package/src/actionbar/NewButton.tsx +1 -1
  313. package/src/actionbar/TreeActionBar.tsx +86 -79
  314. package/src/common/DatePicker.tsx +1 -5
  315. package/src/common/Field.tsx +2 -1
  316. package/src/context/ActionViewContext.tsx +8 -4
  317. package/src/context/ConfigContext.tsx +22 -3
  318. package/src/context/DashboardActionContext.tsx +2 -3
  319. package/src/context/FormModalContext.tsx +2 -3
  320. package/src/context/LocaleContext.tsx +1 -1
  321. package/src/context/One2manyContext.tsx +3 -4
  322. package/src/helpers/containerHelper.ts +1 -1
  323. package/src/helpers/dayjs.ts +21 -0
  324. package/src/helpers/dynamicColumnsHelper.ts +2 -2
  325. package/src/helpers/iconMapper.ts +5 -5
  326. package/src/helpers/logInfoHelper.tsx +8 -6
  327. package/src/helpers/timeHelper.ts +2 -2
  328. package/src/hooks/useEffectDebugger.ts +2 -2
  329. package/src/hooks/useExport.ts +9 -8
  330. package/src/hooks/useWindowDimensions.ts +1 -1
  331. package/src/locales/ca_ES.tsx +1 -0
  332. package/src/locales/en_US.tsx +1 -0
  333. package/src/locales/es_ES.tsx +2 -0
  334. package/src/stories/Char.stories.tsx +27 -0
  335. package/src/stories/Time.stories.tsx +2 -3
  336. package/src/stories/Utils.stories.tsx +1 -3
  337. package/src/stories/containers/Group.stories.tsx +2 -3
  338. package/src/stories/containers/Notebook.stories.tsx +0 -6
  339. package/src/stories/custom/Avatar.stories.tsx +2 -6
  340. package/src/stories/custom/Comments.stories.tsx +32 -25
  341. package/src/stories/forms/FormWithLinks.stories.tsx +1 -2
  342. package/src/stories/forms/ModContractForm.stories.tsx +1 -0
  343. package/src/stories/forms/PreferencesForm.stories.tsx +1 -2
  344. package/src/stories/mocks/mockProvider.ts +5 -2
  345. package/src/stories/mocks/models/attachment.ts +1 -2
  346. package/src/stories/mocks/models/butlleti.ts +249 -297
  347. package/src/stories/mocks/models/company.ts +2 -4
  348. package/src/stories/mocks/models/cups.ts +18 -1
  349. package/src/stories/mocks/models/document.ts +2 -4
  350. package/src/stories/mocks/models/factura.ts +14 -28
  351. package/src/stories/mocks/models/form_with_gridfiber.ts +2 -4
  352. package/src/stories/mocks/models/hist_autoconsum.ts +2 -4
  353. package/src/stories/mocks/models/lead.ts +8 -16
  354. package/src/stories/mocks/models/modcontractual.ts +229 -83
  355. package/src/stories/mocks/models/partner.ts +20 -40
  356. package/src/stories/mocks/models/polissa.ts +6 -12
  357. package/src/stories/mocks/models/res_partner_category.ts +3 -3
  358. package/src/stories/mocks/models/signatura.ts +135 -195
  359. package/src/stories/mocks/models/switching.ts +2 -4
  360. package/src/stories/ui/GoToResourceModal.stories.tsx +3 -2
  361. package/src/stories/views/Tree.stories.jsx +3 -5
  362. package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +15 -30
  363. package/src/types/index.ts +2 -1
  364. package/src/ui/ConfirmDialog.tsx +1 -1
  365. package/src/ui/GoToResourceModal.tsx +8 -7
  366. package/src/views/ActionView.tsx +41 -30
  367. package/src/views/CurrentTabContent.tsx +1 -1
  368. package/src/views/TabContent.tsx +1 -1
  369. package/src/views/TabSelector.tsx +1 -1
  370. package/src/views/actionViews/DashboardActionView.tsx +7 -2
  371. package/src/views/actionViews/GraphActionView.tsx +1 -1
  372. package/src/views/actionViews/TreeActionView.tsx +2 -2
  373. package/src/widgets/WidgetFactory.tsx +1 -1
  374. package/src/widgets/base/Button.tsx +1 -1
  375. package/src/widgets/base/Float.tsx +0 -1
  376. package/src/widgets/base/FloatTime.tsx +1 -1
  377. package/src/widgets/base/Integer.tsx +0 -1
  378. package/src/widgets/base/Reference.tsx +1 -1
  379. package/src/widgets/base/ReferenceTree.tsx +1 -1
  380. package/src/widgets/base/Separator.tsx +3 -4
  381. package/src/widgets/base/Time.tsx +3 -6
  382. package/src/widgets/base/many2one/Many2oneSuffixModal.tsx +2 -2
  383. package/src/widgets/base/one2many/One2many.tsx +2 -2
  384. package/src/widgets/base/one2many/One2manyInput.tsx +1 -1
  385. package/src/widgets/custom/Avatar.tsx +15 -7
  386. package/src/widgets/custom/Comments.tsx +4 -7
  387. package/src/widgets/custom/Markdown.tsx +18 -8
  388. package/src/widgets/custom/MultiCheckbox.tsx +1 -1
  389. package/src/widgets/custom/Radio.tsx +2 -4
  390. package/src/widgets/custom/Steps.tsx +10 -9
  391. package/src/widgets/custom/Switch.tsx +1 -5
  392. package/src/widgets/custom/Tags.tsx +1 -1
  393. package/src/widgets/modals/SearchModal.tsx +31 -29
  394. package/src/widgets/modals/TranslationModal.tsx +3 -3
  395. package/src/widgets/views/Dashboard/Dashboard.tsx +3 -3
  396. package/src/widgets/views/DashboardGrid/DashboardGrid.tsx +3 -3
  397. package/src/widgets/views/DashboardGrid/DashboardGridItem.tsx +2 -2
  398. package/src/widgets/views/Form.tsx +2 -2
  399. package/src/widgets/views/Graph/Graph.tsx +1 -1
  400. package/src/widgets/views/Graph/GraphChart.tsx +2 -2
  401. package/src/widgets/views/Graph/GraphDefaults.ts +2 -2
  402. package/src/widgets/views/Graph/useGraphData.tsx +1 -1
  403. package/src/widgets/views/SearchTree.tsx +2 -2
  404. package/src/widgets/views/searchFilter/SearchBottomBar.tsx +2 -6
  405. package/src/widgets/views/searchFilter/SearchField.tsx +5 -1
  406. package/src/widgets/views/searchFilter/SearchFilter.tsx +1 -1
  407. package/src/widgets/views/searchFilter/SearchParams.tsx +7 -4
@@ -30,7 +30,7 @@ import { showLogInfo } from "@/helpers/logInfoHelper";
30
30
  import SearchBar from "./SearchBar";
31
31
  import { ExportModal } from "..";
32
32
  import { mergeParams } from "@/helpers/searchHelper";
33
- import { ConfigContext } from "@/context/ConfigContext";
33
+ import { ErpFeatureKeys, useFeatureIsEnabled } from "@/context/ConfigContext";
34
34
 
35
35
  type Props = {
36
36
  parentContext?: any;
@@ -66,10 +66,12 @@ function TreeActionBar(props: Props) {
66
66
  } = useContext(ActionViewContext) as ActionViewContextType;
67
67
 
68
68
  const { parentContext = {}, treeExpandable, toolbar } = props;
69
- const { previewFeatures } = useContext(ConfigContext);
69
+ const advancedExportEnabled = useFeatureIsEnabled(
70
+ ErpFeatureKeys.FEATURE_ADVANCED_EXPORT,
71
+ );
70
72
  const { t, lang } = useContext(LocaleContext) as LocaleContextType;
71
73
  const contentRootContext = useContext(
72
- ContentRootContext
74
+ ContentRootContext,
73
75
  ) as ContentRootContextType;
74
76
  const { processAction } = contentRootContext || {};
75
77
  const [exportModalVisible, setExportModalVisible] = useState(false);
@@ -95,6 +97,7 @@ function TreeActionBar(props: Props) {
95
97
  await ConnectionProvider.getHandler().deleteObjects({
96
98
  model: currentModel!,
97
99
  ids: selectedRowItems!.map((item) => item.id),
100
+ context: { ...parentContext },
98
101
  });
99
102
 
100
103
  setCurrentId?.(undefined);
@@ -286,85 +289,89 @@ function TreeActionBar(props: Props) {
286
289
  });
287
290
  }}
288
291
  />
289
-
290
- {separator()}
291
- <DropdownButton
292
- icon={
293
- <Icon
294
- component={() => (
295
- <svg
296
- xmlns="http://www.w3.org/2000/svg"
297
- className="icon icon-tabler icon-tabler-database-export"
298
- width="1em"
299
- height="1em"
300
- viewBox="0 0 24 24"
301
- strokeWidth="1.5"
302
- fill="none"
303
- stroke="currentColor"
304
- strokeLinecap="round"
305
- strokeLinejoin="round"
306
- >
307
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
308
- <ellipse cx="12" cy="6" rx="8" ry="3" />
309
- <path d="M4 6v6c0 1.657 3.582 3 8 3a19.84 19.84 0 0 0 3.302 -.267m4.698 -2.733v-6" />
310
- <path d="M4 12v6c0 1.599 3.335 2.905 7.538 2.995m8.462 -6.995v-2m-6 7h7m-3 -3l3 3l-3 3" />
311
- </svg>
312
- )}
313
- />
314
- }
315
- tooltip={t("export")}
316
- items={[
317
- {
318
- id: "print_screen",
319
- name: t("printScreen"),
320
- },
321
- {
322
- id: "export",
323
- name: t("advancedExport"),
324
- },
325
- ]}
326
- onItemClick={(itemClicked: any) => {
327
- if (itemClicked.id === "print_screen") {
328
- let idsToExport = selectedRowItems?.map((item) => item.id) || [];
329
-
330
- if (idsToExport.length === 0) {
331
- idsToExport = results?.map((item) => item.id) || [];
292
+ {advancedExportEnabled && (
293
+ <>
294
+ {separator()}
295
+ <DropdownButton
296
+ icon={
297
+ <Icon
298
+ component={() => (
299
+ <svg
300
+ xmlns="http://www.w3.org/2000/svg"
301
+ className="icon icon-tabler icon-tabler-database-export"
302
+ width="1em"
303
+ height="1em"
304
+ viewBox="0 0 24 24"
305
+ strokeWidth="1.5"
306
+ fill="none"
307
+ stroke="currentColor"
308
+ strokeLinecap="round"
309
+ strokeLinejoin="round"
310
+ >
311
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
312
+ <ellipse cx="12" cy="6" rx="8" ry="3" />
313
+ <path d="M4 6v6c0 1.657 3.582 3 8 3a19.84 19.84 0 0 0 3.302 -.267m4.698 -2.733v-6" />
314
+ <path d="M4 12v6c0 1.599 3.335 2.905 7.538 2.995m8.462 -6.995v-2m-6 7h7m-3 -3l3 3l-3 3" />
315
+ </svg>
316
+ )}
317
+ />
332
318
  }
333
-
334
- runAction({
335
- id: -1,
336
- model: currentModel,
337
- report_name: "printscreen.list",
338
- type: "ir.actions.report.xml",
339
- datas: {
340
- model: currentModel,
341
- ids: idsToExport,
319
+ tooltip={t("export")}
320
+ items={[
321
+ {
322
+ id: "print_screen",
323
+ name: t("printScreen"),
342
324
  },
343
- });
344
- return;
345
- }
325
+ {
326
+ id: "export",
327
+ name: t("advancedExport"),
328
+ },
329
+ ]}
330
+ onItemClick={(itemClicked: any) => {
331
+ if (itemClicked.id === "print_screen") {
332
+ let idsToExport =
333
+ selectedRowItems?.map((item) => item.id) || [];
346
334
 
347
- setExportModalVisible(true);
348
- }}
349
- disabled={
350
- duplicatingItem || removingItem || treeIsLoading || hasNameSearch
351
- }
352
- />
353
- <ExportModal
354
- visible={exportModalVisible}
355
- locale={lang}
356
- onClose={() => setExportModalVisible(false)}
357
- model={currentModel!}
358
- domain={mergeParams(
359
- searchTreeRef?.current?.getDomain() || [],
360
- searchParams || []
361
- )}
362
- limit={limit}
363
- totalRegisters={totalItems || 0}
364
- selectedRegistersToExport={selectedRowItems}
365
- visibleRegisters={results?.length || 0}
366
- context={parentContext}
367
- />
335
+ if (idsToExport.length === 0) {
336
+ idsToExport = results?.map((item) => item.id) || [];
337
+ }
338
+
339
+ runAction({
340
+ id: -1,
341
+ model: currentModel,
342
+ report_name: "printscreen.list",
343
+ type: "ir.actions.report.xml",
344
+ datas: {
345
+ model: currentModel,
346
+ ids: idsToExport,
347
+ },
348
+ });
349
+ return;
350
+ }
351
+
352
+ setExportModalVisible(true);
353
+ }}
354
+ disabled={
355
+ duplicatingItem || removingItem || treeIsLoading || hasNameSearch
356
+ }
357
+ />
358
+ <ExportModal
359
+ visible={exportModalVisible}
360
+ locale={lang}
361
+ onClose={() => setExportModalVisible(false)}
362
+ model={currentModel!}
363
+ domain={mergeParams(
364
+ searchTreeRef?.current?.getDomain() || [],
365
+ searchParams || [],
366
+ )}
367
+ limit={limit}
368
+ totalRegisters={totalItems || 0}
369
+ selectedRegistersToExport={selectedRowItems}
370
+ visibleRegisters={results?.length || 0}
371
+ context={parentContext}
372
+ />
373
+ </>
374
+ )}
368
375
  </Space>
369
376
  );
370
377
  }
@@ -4,12 +4,8 @@ import React from "react";
4
4
  import Field from "@/common/Field";
5
5
  import { WidgetProps } from "@/types";
6
6
  import { Date as DateOoui } from "@gisce/ooui";
7
- import dayjs from "dayjs";
8
- import weekday from "dayjs/plugin/weekday";
9
- import localeData from "dayjs/plugin/localeData";
7
+ import dayjs from "@/helpers/dayjs";
10
8
  const { useToken } = theme;
11
- dayjs.extend(weekday);
12
- dayjs.extend(localeData);
13
9
 
14
10
  type DatePickerProps = WidgetProps & {
15
11
  showTime?: boolean;
@@ -45,6 +45,7 @@ export default function Field({
45
45
  name={id}
46
46
  valuePropName={valuePropName}
47
47
  rules={rules}
48
+ help={ooui.tooltipInline ? ooui.tooltip : null}
48
49
  >
49
50
  {children}
50
51
  </Form.Item>
@@ -60,7 +61,7 @@ export default function Field({
60
61
  new LabelOoui({
61
62
  name: id + "_label",
62
63
  string: label,
63
- help: tooltip,
64
+ help: ooui.tooltipInline ? false : tooltip,
64
65
  fieldForLabel: id,
65
66
  })
66
67
  }
@@ -48,7 +48,7 @@ export type ActionViewContextType = {
48
48
  setSearchTreeNameSearch?: (searchString?: string) => void;
49
49
  previousView?: View;
50
50
  setPreviousView?: (view: View) => void;
51
- goToResourceId?: (id: number) => Promise<void>;
51
+ goToResourceId?: (ids: number[]) => Promise<void>;
52
52
  searchValues?: any;
53
53
  setSearchValues?: (value: any) => void;
54
54
  limit?: number;
@@ -105,7 +105,7 @@ const ActionViewProvider = (props: ActionViewProviderProps): any => {
105
105
  const [previousView, setPreviousView] = useState<View>();
106
106
  const [searchValues, setSearchValues] = useState<any>({});
107
107
  const [limit, setLimit] = useState<number>(
108
- limitProps !== undefined ? limitProps : DEFAULT_SEARCH_LIMIT
108
+ limitProps !== undefined ? limitProps : DEFAULT_SEARCH_LIMIT,
109
109
  );
110
110
  const [title, setTitle] = useState<string>(titleProps);
111
111
 
@@ -125,7 +125,9 @@ const ActionViewProvider = (props: ActionViewProviderProps): any => {
125
125
  setPreviousView(availableViews[0]);
126
126
  } else if (availableViews.length > 1) {
127
127
  setPreviousView(
128
- availableViews.filter((view) => view.view_id !== currentView.view_id)[0]
128
+ availableViews.filter(
129
+ (view) => view.view_id !== currentView.view_id,
130
+ )[0],
129
131
  );
130
132
  }
131
133
  }, [availableViews]);
@@ -136,7 +138,9 @@ const ActionViewProvider = (props: ActionViewProviderProps): any => {
136
138
  availableViews.length > 1
137
139
  ) {
138
140
  setPreviousView(
139
- availableViews.filter((view) => view.view_id !== currentView.view_id)[0]
141
+ availableViews.filter(
142
+ (view) => view.view_id !== currentView.view_id,
143
+ )[0],
140
144
  );
141
145
  }
142
146
  }, [currentView]);
@@ -1,9 +1,28 @@
1
- import React from "react";
1
+ import React, { useContext } from "react";
2
2
 
3
3
  interface ConfigContextProps {
4
- previewFeatures: boolean;
4
+ erpFeatures: ErpFeaturesMap;
5
5
  }
6
6
 
7
7
  export const ConfigContext = React.createContext<ConfigContextProps>({
8
- previewFeatures: false,
8
+ erpFeatures: {},
9
9
  });
10
+
11
+ // TODO: this should be defined in a third package, because we are duplicating it both in webclient and here
12
+ export enum ErpFeatureKeys {
13
+ FEATURE_ADVANCED_EXPORT = "export_data2",
14
+ // ... add more features here
15
+ }
16
+ // TODO: this should be defined in a third package, because we are duplicating it both in webclient and here
17
+ export type ErpFeaturesMap = {
18
+ [key in ErpFeatureKeys]?: boolean;
19
+ };
20
+
21
+ export const useConfigContext = () => {
22
+ return useContext(ConfigContext);
23
+ };
24
+
25
+ export const useFeatureIsEnabled = (featureKey: ErpFeatureKeys): boolean => {
26
+ const { erpFeatures } = useConfigContext();
27
+ return !!erpFeatures[featureKey];
28
+ };
@@ -10,9 +10,8 @@ export type DashboardActionContextType = {
10
10
  setMoveItemsEnabled: (value: boolean) => void;
11
11
  };
12
12
 
13
- export const DashboardActionContext = React.createContext<DashboardActionContextType | null>(
14
- null
15
- );
13
+ export const DashboardActionContext =
14
+ React.createContext<DashboardActionContextType | null>(null);
16
15
 
17
16
  type DashboardActionProviderProps = {
18
17
  children: React.ReactNode;
@@ -4,9 +4,8 @@ export type FormModalContextType = {
4
4
  setTitle?: (title: string) => void;
5
5
  };
6
6
 
7
- export const FormModalContext = React.createContext<FormModalContextType | null>(
8
- null
9
- );
7
+ export const FormModalContext =
8
+ React.createContext<FormModalContextType | null>(null);
10
9
 
11
10
  type FormModalProviderProps = FormModalContextType & {
12
11
  children: React.ReactNode;
@@ -15,7 +15,7 @@ export type LocaleContextType = {
15
15
  };
16
16
 
17
17
  export const LocaleContext = React.createContext<LocaleContextType | null>(
18
- null
18
+ null,
19
19
  );
20
20
 
21
21
  type LocaleContextProps = {
@@ -11,7 +11,7 @@ export type One2manyContextType = {
11
11
  };
12
12
 
13
13
  export const One2manyContext = React.createContext<One2manyContextType | null>(
14
- null
14
+ null,
15
15
  );
16
16
 
17
17
  const One2manyProvider = ({
@@ -23,9 +23,8 @@ const One2manyProvider = ({
23
23
  }): any => {
24
24
  const [currentView, setCurrentView] = useState<ViewType>(initialView);
25
25
  const [itemIndex, setItemIndex] = useState<number>(0);
26
- const [manualTriggerChange, setManualTriggerChange] = useState<boolean>(
27
- false
28
- );
26
+ const [manualTriggerChange, setManualTriggerChange] =
27
+ useState<boolean>(false);
29
28
 
30
29
  return (
31
30
  <One2manyContext.Provider
@@ -72,7 +72,7 @@ const expandWidgetsIfNeeded = ({
72
72
 
73
73
  const getSingleRowTemplateColumns = (
74
74
  row: Widget[],
75
- numberOfColumns: number
75
+ numberOfColumns: number,
76
76
  ) => {
77
77
  const gridOptions = row.map((item: Widget) => {
78
78
  if (item instanceof Label && (item as Label).fieldForLabel) {
@@ -0,0 +1,21 @@
1
+ import dayjs from "dayjs";
2
+
3
+ import advancedFormat from "dayjs/plugin/advancedFormat";
4
+ import customParseFormat from "dayjs/plugin/customParseFormat";
5
+ import isoWeek from "dayjs/plugin/isoWeek";
6
+ import timezone from "dayjs/plugin/timezone";
7
+ import duration from "dayjs/plugin/duration";
8
+ import relativeTime from "dayjs/plugin/relativeTime";
9
+ import weekday from "dayjs/plugin/weekday";
10
+ import localeData from "dayjs/plugin/localeData";
11
+
12
+ dayjs.extend(advancedFormat);
13
+ dayjs.extend(customParseFormat);
14
+ dayjs.extend(isoWeek);
15
+ dayjs.extend(timezone);
16
+ dayjs.extend(duration);
17
+ dayjs.extend(relativeTime);
18
+ dayjs.extend(weekday);
19
+ dayjs.extend(localeData);
20
+
21
+ export default dayjs;
@@ -20,7 +20,7 @@ const getTextWidth = (text: string, font = "14px -apple-system") => {
20
20
  export const calculateColumnsWidth = (
21
21
  columns: any,
22
22
  source: any,
23
- maxWidthPerCell = 500
23
+ maxWidthPerCell = 500,
24
24
  ) => {
25
25
  if (columns.length === 0) {
26
26
  return { columns };
@@ -32,7 +32,7 @@ export const calculateColumnsWidth = (
32
32
  const columnsWithWidth = columns.map((column: any) =>
33
33
  Object.assign(column, {
34
34
  width: getTextWidth(column.title),
35
- })
35
+ }),
36
36
  );
37
37
 
38
38
  // Since we have a minimum width (column's width already calculated),
@@ -102,7 +102,7 @@ const iconMapping: { [key: string]: string } = {
102
102
 
103
103
  export default (
104
104
  key: string,
105
- props?: { className?: any; style: CSSProperties }
105
+ props?: { className?: any; style: CSSProperties },
106
106
  ) => {
107
107
  if (key.indexOf("gtk-") !== -1) {
108
108
  const rootIcon = key.replace("gtk-", "").replace(/\-/g, "_");
@@ -122,15 +122,15 @@ function toCamelCase(key: string): string {
122
122
  .map((word) =>
123
123
  word.replace(
124
124
  /\w\S*/g,
125
- (w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()
126
- )
125
+ (w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase(),
126
+ ),
127
127
  )
128
128
  .join("")}`;
129
129
  }
130
130
 
131
131
  function getIconForKey(
132
132
  key: string,
133
- props?: { className?: any; style: CSSProperties }
133
+ props?: { className?: any; style: CSSProperties },
134
134
  ) {
135
135
  let IconCamelCase = key.charAt(0).toUpperCase() + key.slice(1); // Capitalize first letter
136
136
  if (IconCamelCase.indexOf("-") !== -1) {
@@ -150,7 +150,7 @@ function getIconForKey(
150
150
  const TablerIcon = () =>
151
151
  React.createElement(TablerIcons[tablerKey] as any, {
152
152
  fill: "transparent",
153
- size: props?.style?.fontSize || 17
153
+ size: props?.style?.fontSize || 17,
154
154
  });
155
155
  const CustomIcon = () =>
156
156
  React.createElement(Icon, {
@@ -5,12 +5,14 @@ import showInfo from "@/ui/InfoDialog";
5
5
  async function showLogInfo(
6
6
  model: string,
7
7
  currentId: number,
8
- translateFn: Function
8
+ translateFn: Function,
9
9
  ) {
10
- const logInfo = ((await ConnectionProvider.getHandler().getLogInfo({
11
- model,
12
- ids: [currentId],
13
- })) as any)[0];
10
+ const logInfo = (
11
+ (await ConnectionProvider.getHandler().getLogInfo({
12
+ model,
13
+ ids: [currentId],
14
+ })) as any
15
+ )[0];
14
16
 
15
17
  const { create_date, create_uid, id, write_date, write_uid } = logInfo;
16
18
 
@@ -21,7 +23,7 @@ async function showLogInfo(
21
23
  {translateFn("creationDate") + ": " + create_date} <br />
22
24
  {translateFn("lastUpdatedBy") + ": " + write_uid[1]} <br />
23
25
  {translateFn("lastUpdatedDate") + ": " + write_date}
24
- </div>
26
+ </div>,
25
27
  );
26
28
  }
27
29
 
@@ -8,7 +8,7 @@ function parseStringToFloat(text?: string) {
8
8
  const splitted = text.trim().split(":");
9
9
  return (
10
10
  Math.round(
11
- (parseInt(splitted[0]) + parseInt(splitted[1]) / 60.0) * 10000
11
+ (parseInt(splitted[0]) + parseInt(splitted[1]) / 60.0) * 10000,
12
12
  ) / 10000
13
13
  );
14
14
  } else {
@@ -55,4 +55,4 @@ function parseFloatToString(num?: number) {
55
55
  return finalString;
56
56
  }
57
57
 
58
- export { parseStringToFloat, parseFloatToString };
58
+ export { parseStringToFloat, parseFloatToString };
@@ -11,7 +11,7 @@ const usePrevious = (value: any, initialValue: any) => {
11
11
  const useEffectDebugger = (
12
12
  effectHook: any,
13
13
  dependencies: any,
14
- dependencyNames = []
14
+ dependencyNames = [],
15
15
  ) => {
16
16
  const previousDeps = usePrevious(dependencies, []);
17
17
 
@@ -30,7 +30,7 @@ const useEffectDebugger = (
30
30
 
31
31
  return accum;
32
32
  },
33
- {}
33
+ {},
34
34
  );
35
35
 
36
36
  if (Object.keys(changedDeps).length) {
@@ -70,7 +70,7 @@ export const useExport = ({
70
70
  const fileType: any = await getMimeType(datas);
71
71
  openBase64InNewTab(datas, fileType.mime);
72
72
  },
73
- [locale, model, domain, limit, context, onClose]
73
+ [locale, model, domain, limit, context, onClose],
74
74
  );
75
75
 
76
76
  const onGetFields = useCallback(async () => {
@@ -109,7 +109,7 @@ export const useExport = ({
109
109
  parentKey: key,
110
110
  });
111
111
  },
112
- [fields.current, model, context]
112
+ [fields.current, model, context],
113
113
  );
114
114
 
115
115
  const onGetPredefinedExports = useCallback(async () => {
@@ -171,12 +171,12 @@ export const useExport = ({
171
171
  fields: fieldsForExportLine,
172
172
  context,
173
173
  });
174
- })
174
+ }),
175
175
  );
176
176
 
177
177
  return { ...pExport, id: exportId };
178
178
  },
179
- []
179
+ [],
180
180
  );
181
181
 
182
182
  const onRemovePredefinedExport = useCallback(
@@ -184,9 +184,10 @@ export const useExport = ({
184
184
  await ConnectionProvider.getHandler().deleteObjects({
185
185
  model: "ir.exports",
186
186
  ids: [pExport.id!],
187
+ context,
187
188
  });
188
189
  },
189
- []
190
+ [],
190
191
  );
191
192
 
192
193
  const getModelFields = useCallback(
@@ -203,7 +204,7 @@ export const useExport = ({
203
204
 
204
205
  exportModelFields.current.set(model, fieldsForModel);
205
206
  },
206
- [exportModelFields, context]
207
+ [exportModelFields, context],
207
208
  );
208
209
 
209
210
  return {
@@ -352,7 +353,7 @@ const getKeysWithoutChildsInFields = ({
352
353
  return !fields?.[getParentKey(key)]?.[key];
353
354
  }
354
355
  })
355
- .map((key) => getParentKey(key))
356
+ .map((key) => getParentKey(key)),
356
357
  ),
357
358
  ]);
358
359
  };
@@ -367,7 +368,7 @@ const retrieveKeyFieldsForPredefinedExports = async ({
367
368
  onGetFieldChilds: (key: string) => Promise<ExportField[]>;
368
369
  }) => {
369
370
  const allPredefinedExportKeys = predefinedExports.flatMap(
370
- (exp: PredefinedExport) => exp.fields.map((field: any) => field.key)
371
+ (exp: PredefinedExport) => exp.fields.map((field: any) => field.key),
371
372
  );
372
373
 
373
374
  const keysWithoutChildsInFields = getKeysWithoutChildsInFields({
@@ -12,7 +12,7 @@ function getWindowDimensions() {
12
12
 
13
13
  export default function useWindowDimensions() {
14
14
  const [windowDimensions, setWindowDimensions] = useState(
15
- getWindowDimensions()
15
+ getWindowDimensions(),
16
16
  );
17
17
 
18
18
  useEffect(() => {
@@ -71,6 +71,7 @@ export default {
71
71
  lastUpdatedDate: "Data última modificació",
72
72
  goToResourceId: "Vés al recurs amb ID",
73
73
  searchId: "ID de cerca:",
74
+ searchIdHelp: "Es pot utiltizar un ID o una llista d'IDs separats per comes",
74
75
  idNotFound: "No es troba aquesta id de recurs per l'objecte",
75
76
  selectedRegisters: "registres seleccionats",
76
77
  translate: "Traduïr",
@@ -69,6 +69,7 @@ export default {
69
69
  lastUpdatedDate: "Date of last modification",
70
70
  goToResourceId: "Go to resource ID",
71
71
  searchId: "Search ID:",
72
+ searchIdHelp: "You can use an ID or a list of IDs separated by commas.",
72
73
  idNotFound: "Resource ID does not exist for this object!",
73
74
  selectedRegisters: "selected registers",
74
75
  translate: "Translate",
@@ -72,6 +72,8 @@ export default {
72
72
  lastUpdatedDate: "Fecha última modificación",
73
73
  goToResourceId: "Ir al recurso con ID",
74
74
  searchId: "ID de búsqueda:",
75
+ searchIdHelp:
76
+ "Se puede utilizar un ID o una lista de IDs separados por comas",
75
77
  idNotFound: "No se encuentra ésta ID de recursos para el objeto",
76
78
  selectedRegisters: "registros seleccionados",
77
79
  translate: "Traducir",
@@ -47,3 +47,30 @@ export const Translatable = (): React.ReactElement => {
47
47
  </LocaleProvider>
48
48
  );
49
49
  };
50
+
51
+ export const Tooltip = (): React.ReactElement => {
52
+ const ooui = new CharOoui({
53
+ name: "field",
54
+ string: "Lorem ipsum",
55
+ help: "This is a simple help",
56
+ });
57
+ return (
58
+ <LocaleProvider lang="en_US">
59
+ <Char ooui={ooui} showLabel />
60
+ </LocaleProvider>
61
+ );
62
+ };
63
+
64
+ export const TooltipInline = (): React.ReactElement => {
65
+ const ooui = new CharOoui({
66
+ name: "field",
67
+ string: "Lorem ipsum",
68
+ help: "This is a simple help",
69
+ help_inline: "true",
70
+ });
71
+ return (
72
+ <LocaleProvider lang="en_US">
73
+ <Char ooui={ooui} showLabel />
74
+ </LocaleProvider>
75
+ );
76
+ };