@gisce/react-ooui 1.5.2-alpha.1 → 1.5.2-rc.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 (392) 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 +13 -0
  4. package/dist/actionbar/ActionButton.d.ts.map +1 -0
  5. package/dist/actionbar/AttachmentsButton.d.ts +12 -0
  6. package/dist/actionbar/AttachmentsButton.d.ts.map +1 -0
  7. package/dist/actionbar/AttachmentsButtonWrapper.d.ts +19 -0
  8. package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +1 -0
  9. package/dist/actionbar/ButtonWithBadge.d.ts +8 -0
  10. package/dist/actionbar/ButtonWithBadge.d.ts.map +1 -0
  11. package/dist/actionbar/ChangeViewButton.d.ts +13 -0
  12. package/dist/actionbar/ChangeViewButton.d.ts.map +1 -0
  13. package/dist/actionbar/DashboardActionBar.d.ts +4 -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 +6 -0
  18. package/dist/actionbar/FormActionBar.d.ts.map +1 -0
  19. package/dist/actionbar/GraphActionBar.d.ts +6 -0
  20. package/dist/actionbar/GraphActionBar.d.ts.map +1 -0
  21. package/dist/actionbar/NewButton.d.ts +7 -0
  22. package/dist/actionbar/NewButton.d.ts.map +1 -0
  23. package/dist/actionbar/SearchBar.d.ts +9 -0
  24. package/dist/actionbar/SearchBar.d.ts.map +1 -0
  25. package/dist/actionbar/TreeActionBar.d.ts +9 -0
  26. package/dist/actionbar/TreeActionBar.d.ts.map +1 -0
  27. package/dist/common/ButtonWithTooltip.d.ts +8 -0
  28. package/dist/common/ButtonWithTooltip.d.ts.map +1 -0
  29. package/dist/common/DatePicker.d.ts +20 -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 +10 -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 +7 -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/dynamicColumnsHelper.d.ts +8 -0
  56. package/dist/helpers/dynamicColumnsHelper.d.ts.map +1 -0
  57. package/dist/helpers/errorHelper.d.ts +6 -0
  58. package/dist/helpers/errorHelper.d.ts.map +1 -0
  59. package/dist/helpers/filesHelper.d.ts +8 -0
  60. package/dist/helpers/filesHelper.d.ts.map +1 -0
  61. package/dist/helpers/formHelper.d.ts +36 -0
  62. package/dist/helpers/formHelper.d.ts.map +1 -0
  63. package/dist/helpers/iconMapper.d.ts +13 -0
  64. package/dist/helpers/iconMapper.d.ts.map +1 -0
  65. package/dist/helpers/logInfoHelper.d.ts +3 -0
  66. package/dist/helpers/logInfoHelper.d.ts.map +1 -0
  67. package/dist/helpers/one2manyHelper.d.ts +37 -0
  68. package/dist/helpers/one2manyHelper.d.ts.map +1 -0
  69. package/dist/helpers/searchHelper.d.ts +6 -0
  70. package/dist/helpers/searchHelper.d.ts.map +1 -0
  71. package/dist/helpers/timeHelper.d.ts +4 -0
  72. package/dist/helpers/timeHelper.d.ts.map +1 -0
  73. package/dist/helpers/treeHelper.d.ts +23 -0
  74. package/dist/helpers/treeHelper.d.ts.map +1 -0
  75. package/dist/helpers/viewHelper.d.ts +10 -0
  76. package/dist/helpers/viewHelper.d.ts.map +1 -0
  77. package/dist/hooks/useExport.d.ts +44 -0
  78. package/dist/hooks/useExport.d.ts.map +1 -0
  79. package/dist/hooks/useSearch.d.ts +56 -0
  80. package/dist/hooks/useSearch.d.ts.map +1 -0
  81. package/dist/hooks/useWindowDimensions.d.ts +7 -0
  82. package/dist/hooks/useWindowDimensions.d.ts.map +1 -0
  83. package/dist/index.d.ts +57 -0
  84. package/dist/index.d.ts.map +1 -0
  85. package/dist/locales/ca_ES.d.ts +93 -0
  86. package/dist/locales/ca_ES.d.ts.map +1 -0
  87. package/dist/locales/en_US.d.ts +93 -0
  88. package/dist/locales/en_US.d.ts.map +1 -0
  89. package/dist/locales/es_ES.d.ts +93 -0
  90. package/dist/locales/es_ES.d.ts.map +1 -0
  91. package/dist/react-ooui.es.js +11763 -0
  92. package/dist/react-ooui.es.js.map +1 -0
  93. package/dist/react-ooui.umd.js +42 -0
  94. package/dist/react-ooui.umd.js.map +1 -0
  95. package/dist/style.css +1 -0
  96. package/dist/types/index.d.ts +256 -0
  97. package/dist/types/index.d.ts.map +1 -0
  98. package/dist/ui/ActionErrorDialog.d.ts +3 -0
  99. package/dist/ui/ActionErrorDialog.d.ts.map +1 -0
  100. package/dist/ui/ConfirmDialog.d.ts +7 -0
  101. package/dist/ui/ConfirmDialog.d.ts.map +1 -0
  102. package/dist/ui/ErrorAlert.d.ts +6 -0
  103. package/dist/ui/ErrorAlert.d.ts.map +1 -0
  104. package/dist/ui/FavouriteButton.d.ts +26 -0
  105. package/dist/ui/FavouriteButton.d.ts.map +1 -0
  106. package/dist/ui/FormErrorsDialog.d.ts +3 -0
  107. package/dist/ui/FormErrorsDialog.d.ts.map +1 -0
  108. package/dist/ui/GenericErrorDialog.d.ts +3 -0
  109. package/dist/ui/GenericErrorDialog.d.ts.map +1 -0
  110. package/dist/ui/GoToResourceModal.d.ts +10 -0
  111. package/dist/ui/GoToResourceModal.d.ts.map +1 -0
  112. package/dist/ui/InfoDialog.d.ts +3 -0
  113. package/dist/ui/InfoDialog.d.ts.map +1 -0
  114. package/dist/ui/RefreshItemDialog.d.ts +7 -0
  115. package/dist/ui/RefreshItemDialog.d.ts.map +1 -0
  116. package/dist/ui/RemoveItemDialog.d.ts +6 -0
  117. package/dist/ui/RemoveItemDialog.d.ts.map +1 -0
  118. package/dist/ui/TitleHeader.d.ts +8 -0
  119. package/dist/ui/TitleHeader.d.ts.map +1 -0
  120. package/dist/ui/UnlinkItemDialog.d.ts +6 -0
  121. package/dist/ui/UnlinkItemDialog.d.ts.map +1 -0
  122. package/dist/ui/UnsavedChangesDialog.d.ts +7 -0
  123. package/dist/ui/UnsavedChangesDialog.d.ts.map +1 -0
  124. package/dist/ui/WarningDialog.d.ts +3 -0
  125. package/dist/ui/WarningDialog.d.ts.map +1 -0
  126. package/dist/views/ActionView.d.ts +22 -0
  127. package/dist/views/ActionView.d.ts.map +1 -0
  128. package/dist/views/CurrentTabContent.d.ts +4 -0
  129. package/dist/views/CurrentTabContent.d.ts.map +1 -0
  130. package/dist/views/RootView.d.ts +14 -0
  131. package/dist/views/RootView.d.ts.map +1 -0
  132. package/dist/views/TabContent.d.ts +8 -0
  133. package/dist/views/TabContent.d.ts.map +1 -0
  134. package/dist/views/TabSelector.d.ts +4 -0
  135. package/dist/views/TabSelector.d.ts.map +1 -0
  136. package/dist/views/Welcome.d.ts +4 -0
  137. package/dist/views/Welcome.d.ts.map +1 -0
  138. package/dist/views/actionViews/DashboardActionView.d.ts +7 -0
  139. package/dist/views/actionViews/DashboardActionView.d.ts.map +1 -0
  140. package/dist/views/actionViews/FormActionView.d.ts +18 -0
  141. package/dist/views/actionViews/FormActionView.d.ts.map +1 -0
  142. package/dist/views/actionViews/GraphActionView.d.ts +13 -0
  143. package/dist/views/actionViews/GraphActionView.d.ts.map +1 -0
  144. package/dist/views/actionViews/TreeActionView.d.ts +20 -0
  145. package/dist/views/actionViews/TreeActionView.d.ts.map +1 -0
  146. package/dist/views/tabs/Tab.d.ts +11 -0
  147. package/dist/views/tabs/Tab.d.ts.map +1 -0
  148. package/dist/widgets/WidgetFactory.d.ts +4 -0
  149. package/dist/widgets/WidgetFactory.d.ts.map +1 -0
  150. package/dist/widgets/base/Binary.d.ts +14 -0
  151. package/dist/widgets/base/Binary.d.ts.map +1 -0
  152. package/dist/widgets/base/Boolean.d.ts +4 -0
  153. package/dist/widgets/base/Boolean.d.ts.map +1 -0
  154. package/dist/widgets/base/Button.d.ts +8 -0
  155. package/dist/widgets/base/Button.d.ts.map +1 -0
  156. package/dist/widgets/base/Char.d.ts +8 -0
  157. package/dist/widgets/base/Char.d.ts.map +1 -0
  158. package/dist/widgets/base/Date.d.ts +5 -0
  159. package/dist/widgets/base/Date.d.ts.map +1 -0
  160. package/dist/widgets/base/DateTime.d.ts +5 -0
  161. package/dist/widgets/base/DateTime.d.ts.map +1 -0
  162. package/dist/widgets/base/Email.d.ts +4 -0
  163. package/dist/widgets/base/Email.d.ts.map +1 -0
  164. package/dist/widgets/base/Float.d.ts +4 -0
  165. package/dist/widgets/base/Float.d.ts.map +1 -0
  166. package/dist/widgets/base/FloatTime.d.ts +12 -0
  167. package/dist/widgets/base/FloatTime.d.ts.map +1 -0
  168. package/dist/widgets/base/Image.d.ts +14 -0
  169. package/dist/widgets/base/Image.d.ts.map +1 -0
  170. package/dist/widgets/base/Integer.d.ts +8 -0
  171. package/dist/widgets/base/Integer.d.ts.map +1 -0
  172. package/dist/widgets/base/Label.d.ts +9 -0
  173. package/dist/widgets/base/Label.d.ts.map +1 -0
  174. package/dist/widgets/base/LinkInput.d.ts +12 -0
  175. package/dist/widgets/base/LinkInput.d.ts.map +1 -0
  176. package/dist/widgets/base/MultiSelection.d.ts +10 -0
  177. package/dist/widgets/base/MultiSelection.d.ts.map +1 -0
  178. package/dist/widgets/base/ProgressBar.d.ts +7 -0
  179. package/dist/widgets/base/ProgressBar.d.ts.map +1 -0
  180. package/dist/widgets/base/Reference.d.ts +16 -0
  181. package/dist/widgets/base/Reference.d.ts.map +1 -0
  182. package/dist/widgets/base/ReferenceTree.d.ts +8 -0
  183. package/dist/widgets/base/ReferenceTree.d.ts.map +1 -0
  184. package/dist/widgets/base/Selection.d.ts +10 -0
  185. package/dist/widgets/base/Selection.d.ts.map +1 -0
  186. package/dist/widgets/base/Separator.d.ts +8 -0
  187. package/dist/widgets/base/Separator.d.ts.map +1 -0
  188. package/dist/widgets/base/Text.d.ts +8 -0
  189. package/dist/widgets/base/Text.d.ts.map +1 -0
  190. package/dist/widgets/base/Time.d.ts +12 -0
  191. package/dist/widgets/base/Time.d.ts.map +1 -0
  192. package/dist/widgets/base/Url.d.ts +4 -0
  193. package/dist/widgets/base/Url.d.ts.map +1 -0
  194. package/dist/widgets/base/many2one/Many2one.d.ts +16 -0
  195. package/dist/widgets/base/many2one/Many2one.d.ts.map +1 -0
  196. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts +9 -0
  197. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +1 -0
  198. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts +10 -0
  199. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts.map +1 -0
  200. package/dist/widgets/base/many2one/Many2oneTree.d.ts +6 -0
  201. package/dist/widgets/base/many2one/Many2oneTree.d.ts.map +1 -0
  202. package/dist/widgets/base/one2many/One2many.d.ts +8 -0
  203. package/dist/widgets/base/one2many/One2many.d.ts.map +1 -0
  204. package/dist/widgets/base/one2many/One2manyInput.d.ts +23 -0
  205. package/dist/widgets/base/one2many/One2manyInput.d.ts.map +1 -0
  206. package/dist/widgets/base/one2many/One2manyTopBar.d.ts +23 -0
  207. package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -0
  208. package/dist/widgets/containers/Container.d.ts +9 -0
  209. package/dist/widgets/containers/Container.d.ts.map +1 -0
  210. package/dist/widgets/containers/Group.d.ts +10 -0
  211. package/dist/widgets/containers/Group.d.ts.map +1 -0
  212. package/dist/widgets/containers/Notebook.d.ts +9 -0
  213. package/dist/widgets/containers/Notebook.d.ts.map +1 -0
  214. package/dist/widgets/custom/Avatar.d.ts +10 -0
  215. package/dist/widgets/custom/Avatar.d.ts.map +1 -0
  216. package/dist/widgets/custom/ButtonGroup.d.ts +8 -0
  217. package/dist/widgets/custom/ButtonGroup.d.ts.map +1 -0
  218. package/dist/widgets/custom/CodeEditor.d.ts +9 -0
  219. package/dist/widgets/custom/CodeEditor.d.ts.map +1 -0
  220. package/dist/widgets/custom/Comments.d.ts +35 -0
  221. package/dist/widgets/custom/Comments.d.ts.map +1 -0
  222. package/dist/widgets/custom/FiberGrid.d.ts +10 -0
  223. package/dist/widgets/custom/FiberGrid.d.ts.map +1 -0
  224. package/dist/widgets/custom/Indicator.d.ts +10 -0
  225. package/dist/widgets/custom/Indicator.d.ts.map +1 -0
  226. package/dist/widgets/custom/Markdown.d.ts +5 -0
  227. package/dist/widgets/custom/Markdown.d.ts.map +1 -0
  228. package/dist/widgets/custom/MultiCheckbox.d.ts +14 -0
  229. package/dist/widgets/custom/MultiCheckbox.d.ts.map +1 -0
  230. package/dist/widgets/custom/Radio.d.ts +10 -0
  231. package/dist/widgets/custom/Radio.d.ts.map +1 -0
  232. package/dist/widgets/custom/Steps.d.ts +13 -0
  233. package/dist/widgets/custom/Steps.d.ts.map +1 -0
  234. package/dist/widgets/custom/Switch.d.ts +4 -0
  235. package/dist/widgets/custom/Switch.d.ts.map +1 -0
  236. package/dist/widgets/custom/Tag.d.ts +7 -0
  237. package/dist/widgets/custom/Tag.d.ts.map +1 -0
  238. package/dist/widgets/custom/Tags.d.ts +15 -0
  239. package/dist/widgets/custom/Tags.d.ts.map +1 -0
  240. package/dist/widgets/custom/Timeline.d.ts +16 -0
  241. package/dist/widgets/custom/Timeline.d.ts.map +1 -0
  242. package/dist/widgets/modals/ExportModal.d.ts +15 -0
  243. package/dist/widgets/modals/ExportModal.d.ts.map +1 -0
  244. package/dist/widgets/modals/FormModal.d.ts +12 -0
  245. package/dist/widgets/modals/FormModal.d.ts.map +1 -0
  246. package/dist/widgets/modals/SearchModal.d.ts +13 -0
  247. package/dist/widgets/modals/SearchModal.d.ts.map +1 -0
  248. package/dist/widgets/modals/TranslationModal.d.ts +12 -0
  249. package/dist/widgets/modals/TranslationModal.d.ts.map +1 -0
  250. package/dist/widgets/views/Dashboard/Dashboard.d.ts +5 -0
  251. package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -0
  252. package/dist/widgets/views/Dashboard/DashboardForm.d.ts +4 -0
  253. package/dist/widgets/views/Dashboard/DashboardForm.d.ts.map +1 -0
  254. package/dist/widgets/views/Dashboard/DashboardTree.d.ts +19 -0
  255. package/dist/widgets/views/Dashboard/DashboardTree.d.ts.map +1 -0
  256. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts +6 -0
  257. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts.map +1 -0
  258. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts +4 -0
  259. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts.map +1 -0
  260. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts +6 -0
  261. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts.map +1 -0
  262. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts +4 -0
  263. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +1 -0
  264. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts +11 -0
  265. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts.map +1 -0
  266. package/dist/widgets/views/DashboardGrid/index.d.ts +5 -0
  267. package/dist/widgets/views/DashboardGrid/index.d.ts.map +1 -0
  268. package/dist/widgets/views/Form.d.ts +29 -0
  269. package/dist/widgets/views/Form.d.ts.map +1 -0
  270. package/dist/widgets/views/Graph/Graph.d.ts +11 -0
  271. package/dist/widgets/views/Graph/Graph.d.ts.map +1 -0
  272. package/dist/widgets/views/Graph/GraphChart.d.ts +11 -0
  273. package/dist/widgets/views/Graph/GraphChart.d.ts.map +1 -0
  274. package/dist/widgets/views/Graph/GraphDefaults.d.ts +83 -0
  275. package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -0
  276. package/dist/widgets/views/Graph/GraphIndicator.d.ts +17 -0
  277. package/dist/widgets/views/Graph/GraphIndicator.d.ts.map +1 -0
  278. package/dist/widgets/views/Graph/useGraphData.d.ts +20 -0
  279. package/dist/widgets/views/Graph/useGraphData.d.ts.map +1 -0
  280. package/dist/widgets/views/SearchTree.d.ts +24 -0
  281. package/dist/widgets/views/SearchTree.d.ts.map +1 -0
  282. package/dist/widgets/views/Tree.d.ts +32 -0
  283. package/dist/widgets/views/Tree.d.ts.map +1 -0
  284. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts +4 -0
  285. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts.map +1 -0
  286. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts +4 -0
  287. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts.map +1 -0
  288. package/dist/widgets/views/searchFilter/PairFields.d.ts +4 -0
  289. package/dist/widgets/views/searchFilter/PairFields.d.ts.map +1 -0
  290. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts +10 -0
  291. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts.map +1 -0
  292. package/dist/widgets/views/searchFilter/SearchField.d.ts +8 -0
  293. package/dist/widgets/views/searchFilter/SearchField.d.ts.map +1 -0
  294. package/dist/widgets/views/searchFilter/SearchFilter.d.ts +20 -0
  295. package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +1 -0
  296. package/dist/widgets/views/searchFilter/SearchParams.d.ts +7 -0
  297. package/dist/widgets/views/searchFilter/SearchParams.d.ts.map +1 -0
  298. package/package.json +43 -74
  299. package/src/actionbar/FormActionBar.tsx +1 -1
  300. package/src/actionbar/TreeActionBar.tsx +1 -1
  301. package/src/common/DatePicker.tsx +2 -2
  302. package/src/common/SelectAllRecordsRow.tsx +5 -4
  303. package/src/context/ContentRootContext.tsx +54 -61
  304. package/src/context/TabManagerContext.tsx +4 -3
  305. package/src/helpers/dynamicColumnsHelper.ts +1 -1
  306. package/src/helpers/filesHelper.ts +7 -7
  307. package/src/helpers/formHelper.ts +24 -23
  308. package/src/helpers/one2manyHelper.ts +6 -6
  309. package/src/helpers/searchHelper.ts +5 -8
  310. package/src/helpers/treeHelper.ts +7 -7
  311. package/src/helpers/viewHelper.ts +2 -2
  312. package/src/hooks/useExport.ts +3 -2
  313. package/src/hooks/useSearch.ts +8 -8
  314. package/src/index.ts +0 -4
  315. package/src/stories/Binary.stories.tsx +3 -0
  316. package/src/stories/Boolean.stories.tsx +3 -0
  317. package/src/stories/Button.stories.tsx +14 -8
  318. package/src/stories/Char.stories.tsx +3 -0
  319. package/src/stories/FiberGrid.stories.tsx +3 -0
  320. package/src/stories/Float.stories.tsx +3 -0
  321. package/src/stories/FloatTime.stories.tsx +3 -0
  322. package/src/stories/Image.stories.tsx +3 -0
  323. package/src/stories/Integer.stories.tsx +3 -0
  324. package/src/stories/Label.stories.tsx +3 -0
  325. package/src/stories/Many2one.stories.tsx +3 -0
  326. package/src/stories/One2many.stories.tsx +11 -4
  327. package/src/stories/ProgressBar.stories.tsx +3 -0
  328. package/src/stories/Reference.stories.tsx +3 -0
  329. package/src/stories/Selection.stories.tsx +3 -0
  330. package/src/stories/Separator.stories.tsx +7 -3
  331. package/src/stories/Text.stories.tsx +3 -0
  332. package/src/stories/containers/Group.stories.tsx +5 -0
  333. package/src/stories/containers/NewLine.stories.tsx +4 -0
  334. package/src/stories/containers/Notebook.stories.tsx +5 -0
  335. package/src/stories/custom/Avatar.stories.tsx +1 -0
  336. package/src/stories/custom/ButtonGroup.stories.tsx +23 -36
  337. package/src/stories/custom/CodeEditor.stories.tsx +4 -1
  338. package/src/stories/custom/Indicator.stories.tsx +11 -3
  339. package/src/stories/custom/Markdown.stories.tsx +6 -2
  340. package/src/stories/custom/MultiCheckbox.stories.tsx +15 -20
  341. package/src/stories/custom/Radio.stories.tsx +16 -13
  342. package/src/stories/custom/Steps.stories.tsx +5 -7
  343. package/src/stories/custom/Switch.stories.tsx +3 -0
  344. package/src/stories/custom/Tag.stories.tsx +11 -17
  345. package/src/stories/custom/Tags.stories.tsx +16 -20
  346. package/src/stories/forms/PreferencesForm.stories.tsx +4 -0
  347. package/src/stories/ui/ActionBar.stories.tsx +3 -0
  348. package/src/stories/ui/FavouriteButton.stories.tsx +3 -0
  349. package/src/stories/ui/GoToResourceModal.stories.tsx +3 -0
  350. package/src/stories/views/SearchTree.stories.tsx +89 -43
  351. package/src/stories/views/Tab.stories.tsx +3 -0
  352. package/src/stories/views/TabsAndContent.stories.tsx +3 -0
  353. package/src/stories/views/Tree.stories.jsx +4 -0
  354. package/src/stories/views/searchFilter/DateRangePicker.stories.tsx +3 -0
  355. package/src/stories/views/searchFilter/DateTimeRangePicker.stories.tsx +3 -0
  356. package/src/stories/views/searchFilter/PairFields.stories.tsx +3 -0
  357. package/src/stories/views/searchFilter/SearchFilter.stories.tsx +4 -0
  358. package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +4 -0
  359. package/src/tailwind.css +8 -0
  360. package/src/tailwind.generated.css +168533 -0
  361. package/src/types/index.ts +43 -94
  362. package/src/ui/FavouriteButton.tsx +3 -2
  363. package/src/views/ActionView.tsx +11 -12
  364. package/src/views/RootView.tsx +6 -5
  365. package/src/widgets/base/Binary.tsx +2 -2
  366. package/src/widgets/base/Boolean.tsx +2 -1
  367. package/src/widgets/base/Float.tsx +1 -1
  368. package/src/widgets/base/Integer.tsx +2 -2
  369. package/src/widgets/base/Label.tsx +9 -9
  370. package/src/widgets/base/LinkInput.tsx +1 -6
  371. package/src/widgets/base/MultiSelection.tsx +2 -1
  372. package/src/widgets/base/Selection.tsx +5 -11
  373. package/src/widgets/base/Time.tsx +12 -13
  374. package/src/widgets/base/many2one/Many2one.tsx +8 -7
  375. package/src/widgets/base/many2one/Many2oneSuffix.tsx +12 -23
  376. package/src/widgets/base/one2many/One2manyInput.tsx +15 -14
  377. package/src/widgets/containers/Notebook.tsx +2 -9
  378. package/src/widgets/custom/ButtonGroup.tsx +10 -13
  379. package/src/widgets/custom/CodeEditor.tsx +3 -7
  380. package/src/widgets/custom/Comments.tsx +70 -76
  381. package/src/widgets/custom/Indicator.tsx +2 -1
  382. package/src/widgets/custom/MultiCheckbox.tsx +2 -2
  383. package/src/widgets/custom/Tag.tsx +16 -20
  384. package/src/widgets/custom/Tags.tsx +3 -3
  385. package/src/widgets/custom/Timeline.tsx +6 -6
  386. package/src/widgets/views/Dashboard/DashboardTree.tsx +2 -2
  387. package/src/widgets/views/DashboardGrid/DashboardGrid.types.ts +1 -1
  388. package/src/widgets/views/Form.tsx +11 -10
  389. package/src/widgets/views/Graph/GraphIndicator.tsx +7 -7
  390. package/src/widgets/views/SearchTree.tsx +2 -2
  391. package/src/widgets/views/Tree.tsx +16 -15
  392. package/src/widgets/views/searchFilter/DateTimeRangePicker.tsx +3 -1
@@ -57,7 +57,7 @@ export const getTouchedValues = ({
57
57
 
58
58
  const nonOriginalItems =
59
59
  target[key]?.items?.filter(
60
- (item: One2manyItem) => item.operation !== "original",
60
+ (item: One2manyItem) => item.operation !== "original"
61
61
  ) || [];
62
62
 
63
63
  if (nonOriginalItems.length > 0) {
@@ -203,7 +203,7 @@ export const mergeSearchFields = (searchFields: any[]) => {
203
203
 
204
204
  mergedSearchFields.primary = mergedSearchFields.primary.concat(sf.primary);
205
205
  mergedSearchFields.secondary = mergedSearchFields.secondary.concat(
206
- sf.secondary,
206
+ sf.secondary
207
207
  );
208
208
  });
209
209
 
@@ -224,7 +224,7 @@ export const transformPlainMany2Ones = ({
224
224
  values: any;
225
225
  fields: any;
226
226
  }) => {
227
- const reformattedValues: { [key: string]: any } = {};
227
+ let reformattedValues: { [key: string]: any } = {};
228
228
 
229
229
  Object.keys(values).forEach((key) => {
230
230
  const value = values[key];
@@ -245,29 +245,30 @@ export const transformPlainMany2Ones = ({
245
245
  return reformattedValues;
246
246
  };
247
247
 
248
+
248
249
  export const colorFromString = (text: string) => {
249
250
  let hash = 0;
250
- text = text.toString().padEnd(10, "0");
251
+ text = text.toString().padEnd(10, '0');
251
252
  for (let i = 0; i < text.length; i++) {
252
253
  hash = text.charCodeAt(i) + ((hash << 5) - hash);
253
254
  }
254
- let hexColour = "#";
255
+ let hexColour = '#';
255
256
  for (let i = 0; i < 3; i++) {
256
- const value = (hash >> (i * 8)) & 0xff;
257
- hexColour += ("00" + value.toString(16)).slice(-2);
257
+ var value = (hash >> (i * 8)) & 0xFF;
258
+ hexColour += ('00' + value.toString(16)).slice(-2);
258
259
  }
259
260
  return hexColour;
260
- };
261
+ }
261
262
 
262
263
  export const colorTextFromBackground = (color: string) => {
263
264
  function getRGB(c: string): number {
264
- return parseInt(c, 16) || parseInt(c);
265
+ return parseInt(c, 16) || parseInt(c)
265
266
  }
266
267
 
267
- function getsRGB(c: string) {
268
+ function getsRGB(c: string ) {
268
269
  return getRGB(c) / 255 <= 0.03928
269
270
  ? getRGB(c) / 255 / 12.92
270
- : Math.pow((getRGB(c) / 255 + 0.055) / 1.055, 2.4);
271
+ : Math.pow((getRGB(c) / 255 + 0.055) / 1.055, 2.4)
271
272
  }
272
273
 
273
274
  function getLuminance(hexColor: string) {
@@ -275,27 +276,27 @@ export const colorTextFromBackground = (color: string) => {
275
276
  0.2126 * getsRGB(hexColor.substr(1, 2)) +
276
277
  0.7152 * getsRGB(hexColor.substr(3, 2)) +
277
278
  0.0722 * getsRGB(hexColor.substr(-2))
278
- );
279
+ )
279
280
  }
280
281
 
281
282
  function getContrast(f: string, b: string) {
282
- const L1 = getLuminance(f);
283
- const L2 = getLuminance(b);
284
- return (Math.max(L1, L2) + 0.05) / (Math.min(L1, L2) + 0.05);
283
+ const L1 = getLuminance(f)
284
+ const L2 = getLuminance(b)
285
+ return (Math.max(L1, L2) + 0.05) / (Math.min(L1, L2) + 0.05)
285
286
  }
286
287
 
287
288
  function getTextColor(bgColor: string) {
288
- const whiteContrast = getContrast(bgColor, "#ffffff");
289
- const blackContrast = getContrast(bgColor, "#000000");
289
+ const whiteContrast = getContrast(bgColor, '#ffffff')
290
+ const blackContrast = getContrast(bgColor, '#000000')
290
291
 
291
- return whiteContrast > blackContrast ? "#ffffff" : "#000000";
292
+ return whiteContrast > blackContrast ? '#ffffff' : '#000000'
292
293
  }
293
294
 
294
295
  return getTextColor(color);
295
- };
296
+
297
+ }
298
+
296
299
 
297
300
  export const stringFormat = (text: string, values: any): string => {
298
- return text.replace(/\{([^}]+)\}/g, (match, key) =>
299
- values[key] !== undefined ? values[key] : match,
300
- );
301
- };
301
+ return text.replace(/\{([^}]+)\}/g, (match, key) => values[key] !== undefined ? values[key] : match);
302
+ }
@@ -18,7 +18,7 @@ type ReadObjectValuesOptions = {
18
18
  };
19
19
 
20
20
  const readObjectValues = async (
21
- options: ReadObjectValuesOptions,
21
+ options: ReadObjectValuesOptions
22
22
  ): Promise<[One2manyItem[], any]> => {
23
23
  const {
24
24
  items,
@@ -30,7 +30,7 @@ const readObjectValues = async (
30
30
  } = options;
31
31
 
32
32
  const temporalItems: One2manyItem = items.filter(
33
- (item) => item.operation !== "original",
33
+ (item) => item.operation !== "original"
34
34
  );
35
35
 
36
36
  // We get a number array of id's
@@ -43,8 +43,8 @@ const readObjectValues = async (
43
43
  tree: treeView.fields,
44
44
  };
45
45
 
46
- let values = [];
47
- let evaluatedColorsForTree;
46
+ let values = [],
47
+ evaluatedColorsForTree;
48
48
 
49
49
  if (currentView === "tree" && treeView?.arch) {
50
50
  const colors = getTree(treeView as TreeView)?.colors;
@@ -85,7 +85,7 @@ const readObjectValues = async (
85
85
  // We fill the values property of the One2manyItem with the retrieved values from the API
86
86
  const originalItemsWithFetchedValues: One2manyItem[] = items.map((item) => {
87
87
  const fetchedItemValues = filteredValues.find(
88
- (itemValues: any) => itemValues.id === item.id,
88
+ (itemValues: any) => itemValues.id === item.id
89
89
  );
90
90
 
91
91
  const itemWithFetchedValues = {
@@ -177,7 +177,7 @@ const convertToPlain2ManyValues = (values: any, fields: any) => {
177
177
  values[key]?.items
178
178
  ) {
179
179
  result[key] = values[key].items.filter(
180
- (item: One2manyItem) => item.operation !== "pendingRemove",
180
+ (item: One2manyItem) => item.operation !== "pendingRemove"
181
181
  );
182
182
  } else {
183
183
  result[key] = values[key];
@@ -8,10 +8,7 @@ const convertBooleanParamIfNeeded = (value: any) => {
8
8
  export const getParamsForFields = (values: any, widgetContainer: any) => {
9
9
  const filteredValues = removeUndefinedFields(values);
10
10
  const groupedDateTime = groupDateTimeValuesIfNeeded(filteredValues);
11
- const groupedValues = ungroupDateValuesIfNeeded(
12
- groupedDateTime,
13
- widgetContainer,
14
- );
11
+ const groupedValues = ungroupDateValuesIfNeeded(groupedDateTime, widgetContainer);
15
12
 
16
13
  const params = [
17
14
  ...Object.keys(groupedValues).map((key) => {
@@ -67,7 +64,7 @@ const getParamForField = (key: string, value: any, widgetContainer: any) => {
67
64
  key,
68
65
  "in",
69
66
  value.map((valueEntry: string) =>
70
- convertBooleanParamIfNeeded(valueEntry),
67
+ convertBooleanParamIfNeeded(valueEntry)
71
68
  ),
72
69
  ];
73
70
  } else {
@@ -86,7 +83,7 @@ const removeDateTimeSingleFields = (values: any) => {
86
83
  Object.keys(newValues).forEach(
87
84
  (key) =>
88
85
  (key.indexOf("#time") !== -1 || key.indexOf("#date") !== -1) &&
89
- delete newValues[key],
86
+ delete newValues[key]
90
87
  );
91
88
  return newValues;
92
89
  };
@@ -136,7 +133,7 @@ const ungroupDateValuesIfNeeded = (values: any, widgetContainer: any) => {
136
133
  return widget && widget.type === "date";
137
134
  });
138
135
 
139
- const newValues: any = { ...values };
136
+ let newValues: any = { ...values };
140
137
 
141
138
  dateFields.forEach((key) => {
142
139
  delete newValues[key];
@@ -159,7 +156,7 @@ export const removeUndefinedFields = (values: any) => {
159
156
  (newValues[key] === undefined ||
160
157
  newValues[key] === null ||
161
158
  newValues[key] === "") &&
162
- delete newValues[key],
159
+ delete newValues[key]
163
160
  );
164
161
  return newValues;
165
162
  };
@@ -18,8 +18,8 @@ const getTree = (treeView: TreeView): TreeOoui => {
18
18
  const getTableColumns = (
19
19
  tree: TreeOoui,
20
20
  components: any,
21
- context: any,
22
- ): Column[] => {
21
+ context: any
22
+ ): Array<Column> => {
23
23
  const tableColumns = tree.columns.map((column) => {
24
24
  const type = column.type;
25
25
  const key = column.id;
@@ -38,8 +38,8 @@ const getTableColumns = (
38
38
  title: column.label,
39
39
  render,
40
40
  sorter: (a: any, b: any) => {
41
- let aItem = a[key] || "";
42
- let bItem = b[key] || "";
41
+ let aItem = a[key] || "",
42
+ bItem = b[key] || "";
43
43
 
44
44
  if (type === "many2one") {
45
45
  aItem = a[key]?.value || "";
@@ -55,7 +55,7 @@ const getTableColumns = (
55
55
  return tableColumns;
56
56
  };
57
57
 
58
- const getTableItems = (treeOoui: TreeOoui, results: any[]): any[] => {
58
+ const getTableItems = (treeOoui: TreeOoui, results: Array<any>): Array<any> => {
59
59
  const tableItems = results.map((item: any) => {
60
60
  const parsedItem: any = {};
61
61
  Object.keys(item).map((key) => {
@@ -158,8 +158,8 @@ function sortResults({
158
158
  const type = fields[field].type;
159
159
 
160
160
  const sortFn = (a: any, b: any) => {
161
- let aItem = a[field] || "";
162
- let bItem = b[field] || "";
161
+ let aItem = a[field] || "",
162
+ bItem = b[field] || "";
163
163
 
164
164
  if (type === "many2one") {
165
165
  aItem = a[field]?.[1] || "";
@@ -1,7 +1,7 @@
1
1
  import { ViewTuple, ViewType } from "@/types";
2
2
 
3
3
  export async function resolveViewInfoPromises(
4
- viewsToRetrieve: Array<{ viewTuple: ViewTuple; promise?: Promise<any> }>,
4
+ viewsToRetrieve: { viewTuple: ViewTuple; promise?: Promise<any> }[]
5
5
  ) {
6
6
  const results = await Promise.all(
7
7
  viewsToRetrieve.map(async (item) => {
@@ -11,7 +11,7 @@ export async function resolveViewInfoPromises(
11
11
  console.error(`Error for ${item.viewTuple}:`, error);
12
12
  return null;
13
13
  }
14
- }),
14
+ })
15
15
  );
16
16
 
17
17
  const updatedViews = viewsToRetrieve.map((item, index) => ({
@@ -181,7 +181,7 @@ export const useExport = ({
181
181
 
182
182
  const onRemovePredefinedExport = useCallback(
183
183
  async (pExport: PredefinedExport) => {
184
- await ConnectionProvider.getHandler().deleteObjects({
184
+ await ConnectionProvider.getHandler().delete({
185
185
  model: "ir.exports",
186
186
  ids: [pExport.id!],
187
187
  });
@@ -367,7 +367,8 @@ const retrieveKeyFieldsForPredefinedExports = async ({
367
367
  onGetFieldChilds: (key: string) => Promise<ExportField[]>;
368
368
  }) => {
369
369
  const allPredefinedExportKeys = predefinedExports.flatMap(
370
- (exp: PredefinedExport) => exp.fields.map((field: any) => field.key)
370
+ (exp: PredefinedExport) =>
371
+ exp.fields.map((field: any) => field.key)
371
372
  );
372
373
 
373
374
  const keysWithoutChildsInFields = getKeysWithoutChildsInFields({
@@ -207,7 +207,7 @@ export const useSearch = (opts: UseSearchOpts) => {
207
207
  sorter !== undefined
208
208
  ? sortResults({
209
209
  resultsToSort: results,
210
- sorter,
210
+ sorter: sorter,
211
211
  fields: { ...treeView!.fields, ...formView!.fields },
212
212
  })
213
213
  : [...originalResults.current];
@@ -216,7 +216,7 @@ export const useSearch = (opts: UseSearchOpts) => {
216
216
 
217
217
  if (resultsActionView && resultsSorted.length > 0) {
218
218
  const newCurrentItemIndex = resultsSorted.findIndex(
219
- (item) => currentId === item.id,
219
+ (item) => currentId === item.id
220
220
  );
221
221
 
222
222
  if (newCurrentItemIndex === -1) {
@@ -249,7 +249,7 @@ export const useSearch = (opts: UseSearchOpts) => {
249
249
  limit,
250
250
  offset,
251
251
  searchParams,
252
- ],
252
+ ]
253
253
  );
254
254
 
255
255
  const fetchResults = useCallback(
@@ -290,7 +290,7 @@ export const useSearch = (opts: UseSearchOpts) => {
290
290
  setTreeIsLoading,
291
291
  sorter,
292
292
  treeView,
293
- ],
293
+ ]
294
294
  );
295
295
 
296
296
  const changeSort = useCallback(
@@ -307,7 +307,7 @@ export const useSearch = (opts: UseSearchOpts) => {
307
307
  : [...originalResults.current];
308
308
  setResults(sortedResults);
309
309
  },
310
- [setSorter, getResults, treeView, formView, setResults],
310
+ [setSorter, getResults, treeView, formView, setResults]
311
311
  );
312
312
 
313
313
  const submit = useCallback(
@@ -351,7 +351,7 @@ export const useSearch = (opts: UseSearchOpts) => {
351
351
  setLimit,
352
352
  setOffset,
353
353
  fetchResults,
354
- ],
354
+ ]
355
355
  );
356
356
 
357
357
  const requestPageChange = useCallback(
@@ -360,7 +360,7 @@ export const useSearch = (opts: UseSearchOpts) => {
360
360
  setPage(page);
361
361
  setOffset((page - 1) * limit!);
362
362
  },
363
- [setTableRefreshing, limit, setOffset, setPage],
363
+ [setTableRefreshing, limit, setOffset, setPage]
364
364
  );
365
365
 
366
366
  const clear = useCallback(() => {
@@ -400,7 +400,7 @@ export const useSearch = (opts: UseSearchOpts) => {
400
400
 
401
401
  return getTableItems(getTree(treeView!), children);
402
402
  },
403
- [treeView, model, context, getResults, setResults],
403
+ [treeView, model, context, getResults, setResults]
404
404
  );
405
405
 
406
406
  const getAllIds = useCallback(async () => {
package/src/index.ts CHANGED
@@ -82,8 +82,6 @@ import CurrentTabContent from "./views/CurrentTabContent";
82
82
  import ContentRootProvider from "./context/ContentRootContext";
83
83
  import FavouriteButton from "./ui/FavouriteButton";
84
84
  import { ConfigContext } from "./context/ConfigContext";
85
- import Tab from "./views/tabs/Tab";
86
- import ActionView from "./views/ActionView";
87
85
 
88
86
  export {
89
87
  Button,
@@ -163,6 +161,4 @@ export {
163
161
  CommentsTimelineField,
164
162
  ExportModal,
165
163
  ConfigContext,
166
- Tab,
167
- ActionView,
168
164
  };
@@ -3,6 +3,9 @@ import React, { useState } from "react";
3
3
  import { BinaryInput } from "../widgets/base/Binary";
4
4
  import { Binary as BinaryOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { Boolean } from "..";
4
4
  import { Boolean as BooleanOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { Button } from "..";
4
4
  import { Button as ButtonOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -25,7 +28,7 @@ export const WithStockIcon = (): React.ReactElement => {
25
28
  const ooui = new ButtonOoui({
26
29
  name: "button_field",
27
30
  string: "Lorem ipsum",
28
- icon: "gtk-ok",
31
+ icon: "gtk-ok"
29
32
  });
30
33
  return (
31
34
  <LocaleProvider lang="en_US">
@@ -38,7 +41,7 @@ export const WithCustomIcon = (): React.ReactElement => {
38
41
  const ooui = new ButtonOoui({
39
42
  name: "button_field",
40
43
  string: "Lorem ipsum",
41
- icon: "terp-purchase",
44
+ icon: "terp-purchase"
42
45
  });
43
46
  return (
44
47
  <LocaleProvider lang="en_US">
@@ -51,7 +54,7 @@ export const WithAntdIcon = (): React.ReactElement => {
51
54
  const ooui = new ButtonOoui({
52
55
  name: "button_field",
53
56
  string: "Lorem ipsum",
54
- icon: "ant-design",
57
+ icon: "ant-design"
55
58
  });
56
59
  return (
57
60
  <LocaleProvider lang="en_US">
@@ -64,7 +67,7 @@ export const WithUnexistingdIcon = (): React.ReactElement => {
64
67
  const ooui = new ButtonOoui({
65
68
  name: "button_field",
66
69
  string: "Lorem ipsum",
67
- icon: "foo",
70
+ icon: "foo"
68
71
  });
69
72
  return (
70
73
  <LocaleProvider lang="en_US">
@@ -77,7 +80,7 @@ export const WithTablerIcon = (): React.ReactElement => {
77
80
  const ooui = new ButtonOoui({
78
81
  name: "button_field",
79
82
  string: "Lorem ipsum",
80
- icon: "bulb-off",
83
+ icon: "bulb-off"
81
84
  });
82
85
  return (
83
86
  <LocaleProvider lang="en_US">
@@ -91,7 +94,7 @@ export const PrimaryButton = (): React.ReactElement => {
91
94
  name: "button_field",
92
95
  string: "Lorem ipsum",
93
96
  icon: "send",
94
- primary: "1",
97
+ primary: "1"
95
98
  });
96
99
  return (
97
100
  <LocaleProvider lang="en_US">
@@ -105,7 +108,7 @@ export const DangerButton = (): React.ReactElement => {
105
108
  name: "button_field",
106
109
  string: "Lorem ipsum",
107
110
  icon: "exclamation-circle",
108
- danger: "1",
111
+ danger: "1"
109
112
  });
110
113
  return (
111
114
  <LocaleProvider lang="en_US">
@@ -114,13 +117,14 @@ export const DangerButton = (): React.ReactElement => {
114
117
  );
115
118
  };
116
119
 
120
+
117
121
  export const PrimaryDangerButton = (): React.ReactElement => {
118
122
  const ooui = new ButtonOoui({
119
123
  name: "button_field",
120
124
  string: "Lorem ipsum",
121
125
  icon: "exclamation-circle",
122
126
  danger: "1",
123
- primary: "1",
127
+ primary: "1"
124
128
  });
125
129
  return (
126
130
  <LocaleProvider lang="en_US">
@@ -128,3 +132,5 @@ export const PrimaryDangerButton = (): React.ReactElement => {
128
132
  </LocaleProvider>
129
133
  );
130
134
  };
135
+
136
+
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { Char } from "..";
4
4
  import { Char as CharOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { FiberGrid } from "../widgets/custom/FiberGrid";
4
4
  import { Char as CharOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
  import { Form } from "antd";
8
11
 
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { Float } from "..";
4
4
  import { Float as FloatOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React, { useState } from "react";
3
3
  import { FloatTimeInput } from "../widgets/base/FloatTime";
4
4
  import { Float as FloatOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { Image } from "..";
4
4
  import { Image as ImageOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { Integer } from "..";
4
4
  import { Integer as IntegerOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { Label } from "..";
4
4
  import { Label as LabelOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { Many2one } from "..";
4
4
  import { Many2one as Many2oneOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { One2many } from "..";
4
4
  import { One2many as One2manyOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -17,7 +20,8 @@ export const Default = (): React.ReactElement => {
17
20
  mode: "form,tree",
18
21
  views: {
19
22
  form: {
20
- arch: '<form string="Partner Contacts -">\n <notebook>\n <page string="General">\n <field name="name" select="2" required="True"/>\n <field domain="[(\'domain\', \'=\', \'contact\')]" name="title" string="Type"/>\n <field name="function"/>\n <field name="type" select="2"/>\n <separator string="Street" colspan="4"/>\n <field name="street" select="2" colspan="4" width="200"/>\n <group colspan="2" col="4">\n <field name="tv" select="2"/>\n <newline/>\n <field name="nv" colspan="4"/>\n </group>\n <group colspan="2" col="8">\n <field name="pnp"/>\n <field name="es"/>\n <field name="pt"/>\n <field name="pu"/>\n <field name="bq" colspan="1"/>\n <field name="aclarador" colspan="5"/>\n </group>\n <field name="street2"/>\n <newline/>\n <field name="zip" select="2"/>\n <field name="apartat_correus"/>\n <newline/>\n <newline/>\n <field name="id_municipi" on_change="onchange_municipi_id(id_municipi,context)"/>\n <field name="id_poblacio" domain="[(\'municipi_id\',\'=\',id_municipi)]"/>\n <field name="state_id" select="2"/>\n <field completion="1" name="country_id" select="2"/>\n <newline/>\n <separator string="Catastre" colspan="4"/>\n <field name="ref_catastral"/>\n <separator string="Comunication channels" colspan="4"/>\n <field name="phone"/>\n <field name="fax"/>\n <newline/>\n <field name="mobile"/>\n <field name="email" select="2" widget="email"/>\n </page>\n <page string="Notes">\n <field name="notes" nolabel="1" colspan="4"/>\n </page>\n </notebook>\n </form>\n ',
23
+ arch:
24
+ '<form string="Partner Contacts -">\n <notebook>\n <page string="General">\n <field name="name" select="2" required="True"/>\n <field domain="[(\'domain\', \'=\', \'contact\')]" name="title" string="Type"/>\n <field name="function"/>\n <field name="type" select="2"/>\n <separator string="Street" colspan="4"/>\n <field name="street" select="2" colspan="4" width="200"/>\n <group colspan="2" col="4">\n <field name="tv" select="2"/>\n <newline/>\n <field name="nv" colspan="4"/>\n </group>\n <group colspan="2" col="8">\n <field name="pnp"/>\n <field name="es"/>\n <field name="pt"/>\n <field name="pu"/>\n <field name="bq" colspan="1"/>\n <field name="aclarador" colspan="5"/>\n </group>\n <field name="street2"/>\n <newline/>\n <field name="zip" select="2"/>\n <field name="apartat_correus"/>\n <newline/>\n <newline/>\n <field name="id_municipi" on_change="onchange_municipi_id(id_municipi,context)"/>\n <field name="id_poblacio" domain="[(\'municipi_id\',\'=\',id_municipi)]"/>\n <field name="state_id" select="2"/>\n <field completion="1" name="country_id" select="2"/>\n <newline/>\n <separator string="Catastre" colspan="4"/>\n <field name="ref_catastral"/>\n <separator string="Comunication channels" colspan="4"/>\n <field name="phone"/>\n <field name="fax"/>\n <newline/>\n <field name="mobile"/>\n <field name="email" select="2" widget="email"/>\n </page>\n <page string="Notes">\n <field name="notes" nolabel="1" colspan="4"/>\n </page>\n </notebook>\n </form>\n ',
21
25
  fields: {
22
26
  aclarador: {
23
27
  size: 256,
@@ -189,7 +193,8 @@ export const Default = (): React.ReactElement => {
189
193
  views: {},
190
194
  },
191
195
  type: {
192
- help: "Used to select automatically the right address according to the context in sales and purchases documents.",
196
+ help:
197
+ "Used to select automatically the right address according to the context in sales and purchases documents.",
193
198
  selection: [
194
199
  ["default", "Default"],
195
200
  ["invoice", "Invoice"],
@@ -212,7 +217,8 @@ export const Default = (): React.ReactElement => {
212
217
  },
213
218
  },
214
219
  tree: {
215
- arch: '<tree string="Partner Contacts">\n <field name="name"/>\n <field name="street"/>\n <field name="type"/>\n <field name="zip"/>\n <field name="city"/>\n <field name="country_id"/>\n <field name="phone"/>\n <field name="email"/>\n </tree>\n ',
220
+ arch:
221
+ '<tree string="Partner Contacts">\n <field name="name"/>\n <field name="street"/>\n <field name="type"/>\n <field name="zip"/>\n <field name="city"/>\n <field name="country_id"/>\n <field name="phone"/>\n <field name="email"/>\n </tree>\n ',
216
222
  fields: {
217
223
  city: {
218
224
  size: 128,
@@ -256,7 +262,8 @@ export const Default = (): React.ReactElement => {
256
262
  views: {},
257
263
  },
258
264
  type: {
259
- help: "Used to select automatically the right address according to the context in sales and purchases documents.",
265
+ help:
266
+ "Used to select automatically the right address according to the context in sales and purchases documents.",
260
267
  selection: [
261
268
  ["default", "Default"],
262
269
  ["invoice", "Invoice"],
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { ProgressBarInput } from "../widgets/base/ProgressBar";
4
4
  import { Float as FloatOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { ReferenceInput } from "../widgets/base/Reference";
4
4
  import { Reference as ReferenceOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  export default {
@@ -3,6 +3,9 @@ import React from "react";
3
3
  import { SelectionInput } from "../widgets/base/Selection";
4
4
  import { Selection as SelectionOoui } from "@gisce/ooui";
5
5
 
6
+ // import "antd/dist/antd.css";
7
+
8
+
6
9
  import LocaleProvider from "../context/LocaleContext";
7
10
 
8
11
  import { withKnobs, text } from "@storybook/addon-knobs";