@gisce/react-ooui 1.5.1 → 1.5.2-alpha.1

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/package.json +73 -42
  2. package/src/actionbar/FormActionBar.tsx +1 -1
  3. package/src/actionbar/TreeActionBar.tsx +1 -1
  4. package/src/common/DatePicker.tsx +2 -2
  5. package/src/common/SelectAllRecordsRow.tsx +4 -5
  6. package/src/context/ContentRootContext.tsx +61 -54
  7. package/src/context/TabManagerContext.tsx +3 -4
  8. package/src/helpers/dynamicColumnsHelper.ts +1 -1
  9. package/src/helpers/filesHelper.ts +7 -7
  10. package/src/helpers/formHelper.ts +23 -24
  11. package/src/helpers/one2manyHelper.ts +6 -6
  12. package/src/helpers/searchHelper.ts +8 -5
  13. package/src/helpers/treeHelper.ts +7 -7
  14. package/src/helpers/viewHelper.ts +2 -2
  15. package/src/hooks/useExport.ts +2 -3
  16. package/src/hooks/useSearch.ts +8 -8
  17. package/src/index.ts +4 -0
  18. package/src/stories/Binary.stories.tsx +0 -3
  19. package/src/stories/Boolean.stories.tsx +0 -3
  20. package/src/stories/Button.stories.tsx +8 -14
  21. package/src/stories/Char.stories.tsx +0 -3
  22. package/src/stories/FiberGrid.stories.tsx +0 -3
  23. package/src/stories/Float.stories.tsx +0 -3
  24. package/src/stories/FloatTime.stories.tsx +0 -3
  25. package/src/stories/Image.stories.tsx +0 -3
  26. package/src/stories/Integer.stories.tsx +0 -3
  27. package/src/stories/Label.stories.tsx +0 -3
  28. package/src/stories/Many2one.stories.tsx +0 -3
  29. package/src/stories/One2many.stories.tsx +4 -11
  30. package/src/stories/ProgressBar.stories.tsx +0 -3
  31. package/src/stories/Reference.stories.tsx +0 -3
  32. package/src/stories/Selection.stories.tsx +0 -3
  33. package/src/stories/Separator.stories.tsx +3 -7
  34. package/src/stories/Text.stories.tsx +0 -3
  35. package/src/stories/containers/Group.stories.tsx +0 -5
  36. package/src/stories/containers/NewLine.stories.tsx +0 -4
  37. package/src/stories/containers/Notebook.stories.tsx +0 -5
  38. package/src/stories/custom/Avatar.stories.tsx +0 -1
  39. package/src/stories/custom/ButtonGroup.stories.tsx +36 -23
  40. package/src/stories/custom/CodeEditor.stories.tsx +1 -4
  41. package/src/stories/custom/Indicator.stories.tsx +3 -11
  42. package/src/stories/custom/Markdown.stories.tsx +2 -6
  43. package/src/stories/custom/MultiCheckbox.stories.tsx +20 -15
  44. package/src/stories/custom/Radio.stories.tsx +13 -16
  45. package/src/stories/custom/Steps.stories.tsx +7 -5
  46. package/src/stories/custom/Switch.stories.tsx +0 -3
  47. package/src/stories/custom/Tag.stories.tsx +17 -11
  48. package/src/stories/custom/Tags.stories.tsx +20 -16
  49. package/src/stories/forms/PreferencesForm.stories.tsx +0 -4
  50. package/src/stories/ui/ActionBar.stories.tsx +0 -3
  51. package/src/stories/ui/FavouriteButton.stories.tsx +0 -3
  52. package/src/stories/ui/GoToResourceModal.stories.tsx +0 -3
  53. package/src/stories/views/SearchTree.stories.tsx +43 -89
  54. package/src/stories/views/Tab.stories.tsx +0 -3
  55. package/src/stories/views/TabsAndContent.stories.tsx +0 -3
  56. package/src/stories/views/Tree.stories.jsx +0 -4
  57. package/src/stories/views/searchFilter/DateRangePicker.stories.tsx +0 -3
  58. package/src/stories/views/searchFilter/DateTimeRangePicker.stories.tsx +0 -3
  59. package/src/stories/views/searchFilter/PairFields.stories.tsx +0 -3
  60. package/src/stories/views/searchFilter/SearchFilter.stories.tsx +0 -4
  61. package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +0 -4
  62. package/src/types/index.ts +94 -43
  63. package/src/ui/FavouriteButton.tsx +2 -3
  64. package/src/views/ActionView.tsx +12 -11
  65. package/src/views/RootView.tsx +5 -6
  66. package/src/widgets/base/Binary.tsx +2 -2
  67. package/src/widgets/base/Boolean.tsx +1 -2
  68. package/src/widgets/base/Float.tsx +1 -1
  69. package/src/widgets/base/Integer.tsx +2 -2
  70. package/src/widgets/base/Label.tsx +9 -9
  71. package/src/widgets/base/LinkInput.tsx +6 -1
  72. package/src/widgets/base/MultiSelection.tsx +1 -2
  73. package/src/widgets/base/Selection.tsx +11 -5
  74. package/src/widgets/base/Time.tsx +13 -12
  75. package/src/widgets/base/many2one/Many2one.tsx +7 -8
  76. package/src/widgets/base/many2one/Many2oneSuffix.tsx +23 -12
  77. package/src/widgets/base/one2many/One2manyInput.tsx +13 -14
  78. package/src/widgets/containers/Notebook.tsx +9 -2
  79. package/src/widgets/custom/ButtonGroup.tsx +13 -10
  80. package/src/widgets/custom/CodeEditor.tsx +7 -3
  81. package/src/widgets/custom/Comments.tsx +76 -70
  82. package/src/widgets/custom/Indicator.tsx +1 -2
  83. package/src/widgets/custom/MultiCheckbox.tsx +2 -2
  84. package/src/widgets/custom/Tag.tsx +20 -16
  85. package/src/widgets/custom/Tags.tsx +3 -3
  86. package/src/widgets/custom/Timeline.tsx +6 -6
  87. package/src/widgets/views/Dashboard/DashboardTree.tsx +2 -2
  88. package/src/widgets/views/DashboardGrid/DashboardGrid.types.ts +1 -1
  89. package/src/widgets/views/Form.tsx +9 -10
  90. package/src/widgets/views/Graph/GraphIndicator.tsx +7 -7
  91. package/src/widgets/views/SearchTree.tsx +2 -2
  92. package/src/widgets/views/Tree.tsx +15 -16
  93. package/src/widgets/views/searchFilter/DateTimeRangePicker.tsx +1 -3
  94. package/dist/ConnectionProvider.d.ts +0 -7
  95. package/dist/ConnectionProvider.d.ts.map +0 -1
  96. package/dist/actionbar/ActionButton.d.ts +0 -13
  97. package/dist/actionbar/ActionButton.d.ts.map +0 -1
  98. package/dist/actionbar/AttachmentsButton.d.ts +0 -12
  99. package/dist/actionbar/AttachmentsButton.d.ts.map +0 -1
  100. package/dist/actionbar/AttachmentsButtonWrapper.d.ts +0 -19
  101. package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +0 -1
  102. package/dist/actionbar/ButtonWithBadge.d.ts +0 -8
  103. package/dist/actionbar/ButtonWithBadge.d.ts.map +0 -1
  104. package/dist/actionbar/ChangeViewButton.d.ts +0 -13
  105. package/dist/actionbar/ChangeViewButton.d.ts.map +0 -1
  106. package/dist/actionbar/DashboardActionBar.d.ts +0 -4
  107. package/dist/actionbar/DashboardActionBar.d.ts.map +0 -1
  108. package/dist/actionbar/DropdownButton.d.ts +0 -12
  109. package/dist/actionbar/DropdownButton.d.ts.map +0 -1
  110. package/dist/actionbar/FormActionBar.d.ts +0 -6
  111. package/dist/actionbar/FormActionBar.d.ts.map +0 -1
  112. package/dist/actionbar/GraphActionBar.d.ts +0 -6
  113. package/dist/actionbar/GraphActionBar.d.ts.map +0 -1
  114. package/dist/actionbar/NewButton.d.ts +0 -7
  115. package/dist/actionbar/NewButton.d.ts.map +0 -1
  116. package/dist/actionbar/SearchBar.d.ts +0 -9
  117. package/dist/actionbar/SearchBar.d.ts.map +0 -1
  118. package/dist/actionbar/TreeActionBar.d.ts +0 -9
  119. package/dist/actionbar/TreeActionBar.d.ts.map +0 -1
  120. package/dist/common/ButtonWithTooltip.d.ts +0 -8
  121. package/dist/common/ButtonWithTooltip.d.ts.map +0 -1
  122. package/dist/common/DatePicker.d.ts +0 -20
  123. package/dist/common/DatePicker.d.ts.map +0 -1
  124. package/dist/common/Field.d.ts +0 -14
  125. package/dist/common/Field.d.ts.map +0 -1
  126. package/dist/common/SelectAllRecordsRow.d.ts +0 -10
  127. package/dist/common/SelectAllRecordsRow.d.ts.map +0 -1
  128. package/dist/context/ActionViewContext.d.ts +0 -65
  129. package/dist/context/ActionViewContext.d.ts.map +0 -1
  130. package/dist/context/ConfigContext.d.ts +0 -7
  131. package/dist/context/ConfigContext.d.ts.map +0 -1
  132. package/dist/context/ContentRootContext.d.ts +0 -19
  133. package/dist/context/ContentRootContext.d.ts.map +0 -1
  134. package/dist/context/DashboardActionContext.d.ts +0 -19
  135. package/dist/context/DashboardActionContext.d.ts.map +0 -1
  136. package/dist/context/FormContext.d.ts +0 -35
  137. package/dist/context/FormContext.d.ts.map +0 -1
  138. package/dist/context/FormModalContext.d.ts +0 -11
  139. package/dist/context/FormModalContext.d.ts.map +0 -1
  140. package/dist/context/LocaleContext.d.ts +0 -14
  141. package/dist/context/LocaleContext.d.ts.map +0 -1
  142. package/dist/context/One2manyContext.d.ts +0 -17
  143. package/dist/context/One2manyContext.d.ts.map +0 -1
  144. package/dist/context/TabManagerContext.d.ts +0 -50
  145. package/dist/context/TabManagerContext.d.ts.map +0 -1
  146. package/dist/helpers/containerHelper.d.ts +0 -22
  147. package/dist/helpers/containerHelper.d.ts.map +0 -1
  148. package/dist/helpers/dynamicColumnsHelper.d.ts +0 -8
  149. package/dist/helpers/dynamicColumnsHelper.d.ts.map +0 -1
  150. package/dist/helpers/errorHelper.d.ts +0 -6
  151. package/dist/helpers/errorHelper.d.ts.map +0 -1
  152. package/dist/helpers/filesHelper.d.ts +0 -8
  153. package/dist/helpers/filesHelper.d.ts.map +0 -1
  154. package/dist/helpers/formHelper.d.ts +0 -36
  155. package/dist/helpers/formHelper.d.ts.map +0 -1
  156. package/dist/helpers/iconMapper.d.ts +0 -13
  157. package/dist/helpers/iconMapper.d.ts.map +0 -1
  158. package/dist/helpers/logInfoHelper.d.ts +0 -3
  159. package/dist/helpers/logInfoHelper.d.ts.map +0 -1
  160. package/dist/helpers/one2manyHelper.d.ts +0 -37
  161. package/dist/helpers/one2manyHelper.d.ts.map +0 -1
  162. package/dist/helpers/searchHelper.d.ts +0 -6
  163. package/dist/helpers/searchHelper.d.ts.map +0 -1
  164. package/dist/helpers/timeHelper.d.ts +0 -4
  165. package/dist/helpers/timeHelper.d.ts.map +0 -1
  166. package/dist/helpers/treeHelper.d.ts +0 -23
  167. package/dist/helpers/treeHelper.d.ts.map +0 -1
  168. package/dist/helpers/viewHelper.d.ts +0 -10
  169. package/dist/helpers/viewHelper.d.ts.map +0 -1
  170. package/dist/hooks/useExport.d.ts +0 -44
  171. package/dist/hooks/useExport.d.ts.map +0 -1
  172. package/dist/hooks/useSearch.d.ts +0 -56
  173. package/dist/hooks/useSearch.d.ts.map +0 -1
  174. package/dist/hooks/useWindowDimensions.d.ts +0 -7
  175. package/dist/hooks/useWindowDimensions.d.ts.map +0 -1
  176. package/dist/index.d.ts +0 -57
  177. package/dist/index.d.ts.map +0 -1
  178. package/dist/locales/ca_ES.d.ts +0 -93
  179. package/dist/locales/ca_ES.d.ts.map +0 -1
  180. package/dist/locales/en_US.d.ts +0 -93
  181. package/dist/locales/en_US.d.ts.map +0 -1
  182. package/dist/locales/es_ES.d.ts +0 -93
  183. package/dist/locales/es_ES.d.ts.map +0 -1
  184. package/dist/react-ooui.es.js +0 -11763
  185. package/dist/react-ooui.es.js.map +0 -1
  186. package/dist/react-ooui.umd.js +0 -42
  187. package/dist/react-ooui.umd.js.map +0 -1
  188. package/dist/style.css +0 -1
  189. package/dist/types/index.d.ts +0 -256
  190. package/dist/types/index.d.ts.map +0 -1
  191. package/dist/ui/ActionErrorDialog.d.ts +0 -3
  192. package/dist/ui/ActionErrorDialog.d.ts.map +0 -1
  193. package/dist/ui/ConfirmDialog.d.ts +0 -7
  194. package/dist/ui/ConfirmDialog.d.ts.map +0 -1
  195. package/dist/ui/ErrorAlert.d.ts +0 -6
  196. package/dist/ui/ErrorAlert.d.ts.map +0 -1
  197. package/dist/ui/FavouriteButton.d.ts +0 -26
  198. package/dist/ui/FavouriteButton.d.ts.map +0 -1
  199. package/dist/ui/FormErrorsDialog.d.ts +0 -3
  200. package/dist/ui/FormErrorsDialog.d.ts.map +0 -1
  201. package/dist/ui/GenericErrorDialog.d.ts +0 -3
  202. package/dist/ui/GenericErrorDialog.d.ts.map +0 -1
  203. package/dist/ui/GoToResourceModal.d.ts +0 -10
  204. package/dist/ui/GoToResourceModal.d.ts.map +0 -1
  205. package/dist/ui/InfoDialog.d.ts +0 -3
  206. package/dist/ui/InfoDialog.d.ts.map +0 -1
  207. package/dist/ui/RefreshItemDialog.d.ts +0 -7
  208. package/dist/ui/RefreshItemDialog.d.ts.map +0 -1
  209. package/dist/ui/RemoveItemDialog.d.ts +0 -6
  210. package/dist/ui/RemoveItemDialog.d.ts.map +0 -1
  211. package/dist/ui/TitleHeader.d.ts +0 -8
  212. package/dist/ui/TitleHeader.d.ts.map +0 -1
  213. package/dist/ui/UnlinkItemDialog.d.ts +0 -6
  214. package/dist/ui/UnlinkItemDialog.d.ts.map +0 -1
  215. package/dist/ui/UnsavedChangesDialog.d.ts +0 -7
  216. package/dist/ui/UnsavedChangesDialog.d.ts.map +0 -1
  217. package/dist/ui/WarningDialog.d.ts +0 -3
  218. package/dist/ui/WarningDialog.d.ts.map +0 -1
  219. package/dist/views/ActionView.d.ts +0 -22
  220. package/dist/views/ActionView.d.ts.map +0 -1
  221. package/dist/views/CurrentTabContent.d.ts +0 -4
  222. package/dist/views/CurrentTabContent.d.ts.map +0 -1
  223. package/dist/views/RootView.d.ts +0 -14
  224. package/dist/views/RootView.d.ts.map +0 -1
  225. package/dist/views/TabContent.d.ts +0 -8
  226. package/dist/views/TabContent.d.ts.map +0 -1
  227. package/dist/views/TabSelector.d.ts +0 -4
  228. package/dist/views/TabSelector.d.ts.map +0 -1
  229. package/dist/views/Welcome.d.ts +0 -4
  230. package/dist/views/Welcome.d.ts.map +0 -1
  231. package/dist/views/actionViews/DashboardActionView.d.ts +0 -7
  232. package/dist/views/actionViews/DashboardActionView.d.ts.map +0 -1
  233. package/dist/views/actionViews/FormActionView.d.ts +0 -18
  234. package/dist/views/actionViews/FormActionView.d.ts.map +0 -1
  235. package/dist/views/actionViews/GraphActionView.d.ts +0 -13
  236. package/dist/views/actionViews/GraphActionView.d.ts.map +0 -1
  237. package/dist/views/actionViews/TreeActionView.d.ts +0 -20
  238. package/dist/views/actionViews/TreeActionView.d.ts.map +0 -1
  239. package/dist/views/tabs/Tab.d.ts +0 -11
  240. package/dist/views/tabs/Tab.d.ts.map +0 -1
  241. package/dist/widgets/WidgetFactory.d.ts +0 -4
  242. package/dist/widgets/WidgetFactory.d.ts.map +0 -1
  243. package/dist/widgets/base/Binary.d.ts +0 -14
  244. package/dist/widgets/base/Binary.d.ts.map +0 -1
  245. package/dist/widgets/base/Boolean.d.ts +0 -4
  246. package/dist/widgets/base/Boolean.d.ts.map +0 -1
  247. package/dist/widgets/base/Button.d.ts +0 -8
  248. package/dist/widgets/base/Button.d.ts.map +0 -1
  249. package/dist/widgets/base/Char.d.ts +0 -8
  250. package/dist/widgets/base/Char.d.ts.map +0 -1
  251. package/dist/widgets/base/Date.d.ts +0 -5
  252. package/dist/widgets/base/Date.d.ts.map +0 -1
  253. package/dist/widgets/base/DateTime.d.ts +0 -5
  254. package/dist/widgets/base/DateTime.d.ts.map +0 -1
  255. package/dist/widgets/base/Email.d.ts +0 -4
  256. package/dist/widgets/base/Email.d.ts.map +0 -1
  257. package/dist/widgets/base/Float.d.ts +0 -4
  258. package/dist/widgets/base/Float.d.ts.map +0 -1
  259. package/dist/widgets/base/FloatTime.d.ts +0 -12
  260. package/dist/widgets/base/FloatTime.d.ts.map +0 -1
  261. package/dist/widgets/base/Image.d.ts +0 -14
  262. package/dist/widgets/base/Image.d.ts.map +0 -1
  263. package/dist/widgets/base/Integer.d.ts +0 -8
  264. package/dist/widgets/base/Integer.d.ts.map +0 -1
  265. package/dist/widgets/base/Label.d.ts +0 -9
  266. package/dist/widgets/base/Label.d.ts.map +0 -1
  267. package/dist/widgets/base/LinkInput.d.ts +0 -12
  268. package/dist/widgets/base/LinkInput.d.ts.map +0 -1
  269. package/dist/widgets/base/MultiSelection.d.ts +0 -10
  270. package/dist/widgets/base/MultiSelection.d.ts.map +0 -1
  271. package/dist/widgets/base/ProgressBar.d.ts +0 -7
  272. package/dist/widgets/base/ProgressBar.d.ts.map +0 -1
  273. package/dist/widgets/base/Reference.d.ts +0 -16
  274. package/dist/widgets/base/Reference.d.ts.map +0 -1
  275. package/dist/widgets/base/ReferenceTree.d.ts +0 -8
  276. package/dist/widgets/base/ReferenceTree.d.ts.map +0 -1
  277. package/dist/widgets/base/Selection.d.ts +0 -10
  278. package/dist/widgets/base/Selection.d.ts.map +0 -1
  279. package/dist/widgets/base/Separator.d.ts +0 -8
  280. package/dist/widgets/base/Separator.d.ts.map +0 -1
  281. package/dist/widgets/base/Text.d.ts +0 -8
  282. package/dist/widgets/base/Text.d.ts.map +0 -1
  283. package/dist/widgets/base/Time.d.ts +0 -12
  284. package/dist/widgets/base/Time.d.ts.map +0 -1
  285. package/dist/widgets/base/Url.d.ts +0 -4
  286. package/dist/widgets/base/Url.d.ts.map +0 -1
  287. package/dist/widgets/base/many2one/Many2one.d.ts +0 -16
  288. package/dist/widgets/base/many2one/Many2one.d.ts.map +0 -1
  289. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts +0 -9
  290. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +0 -1
  291. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts +0 -10
  292. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts.map +0 -1
  293. package/dist/widgets/base/many2one/Many2oneTree.d.ts +0 -6
  294. package/dist/widgets/base/many2one/Many2oneTree.d.ts.map +0 -1
  295. package/dist/widgets/base/one2many/One2many.d.ts +0 -8
  296. package/dist/widgets/base/one2many/One2many.d.ts.map +0 -1
  297. package/dist/widgets/base/one2many/One2manyInput.d.ts +0 -23
  298. package/dist/widgets/base/one2many/One2manyInput.d.ts.map +0 -1
  299. package/dist/widgets/base/one2many/One2manyTopBar.d.ts +0 -23
  300. package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +0 -1
  301. package/dist/widgets/containers/Container.d.ts +0 -9
  302. package/dist/widgets/containers/Container.d.ts.map +0 -1
  303. package/dist/widgets/containers/Group.d.ts +0 -10
  304. package/dist/widgets/containers/Group.d.ts.map +0 -1
  305. package/dist/widgets/containers/Notebook.d.ts +0 -9
  306. package/dist/widgets/containers/Notebook.d.ts.map +0 -1
  307. package/dist/widgets/custom/Avatar.d.ts +0 -10
  308. package/dist/widgets/custom/Avatar.d.ts.map +0 -1
  309. package/dist/widgets/custom/ButtonGroup.d.ts +0 -8
  310. package/dist/widgets/custom/ButtonGroup.d.ts.map +0 -1
  311. package/dist/widgets/custom/CodeEditor.d.ts +0 -9
  312. package/dist/widgets/custom/CodeEditor.d.ts.map +0 -1
  313. package/dist/widgets/custom/Comments.d.ts +0 -35
  314. package/dist/widgets/custom/Comments.d.ts.map +0 -1
  315. package/dist/widgets/custom/FiberGrid.d.ts +0 -10
  316. package/dist/widgets/custom/FiberGrid.d.ts.map +0 -1
  317. package/dist/widgets/custom/Indicator.d.ts +0 -10
  318. package/dist/widgets/custom/Indicator.d.ts.map +0 -1
  319. package/dist/widgets/custom/Markdown.d.ts +0 -5
  320. package/dist/widgets/custom/Markdown.d.ts.map +0 -1
  321. package/dist/widgets/custom/MultiCheckbox.d.ts +0 -14
  322. package/dist/widgets/custom/MultiCheckbox.d.ts.map +0 -1
  323. package/dist/widgets/custom/Radio.d.ts +0 -10
  324. package/dist/widgets/custom/Radio.d.ts.map +0 -1
  325. package/dist/widgets/custom/Steps.d.ts +0 -13
  326. package/dist/widgets/custom/Steps.d.ts.map +0 -1
  327. package/dist/widgets/custom/Switch.d.ts +0 -4
  328. package/dist/widgets/custom/Switch.d.ts.map +0 -1
  329. package/dist/widgets/custom/Tag.d.ts +0 -7
  330. package/dist/widgets/custom/Tag.d.ts.map +0 -1
  331. package/dist/widgets/custom/Tags.d.ts +0 -15
  332. package/dist/widgets/custom/Tags.d.ts.map +0 -1
  333. package/dist/widgets/custom/Timeline.d.ts +0 -16
  334. package/dist/widgets/custom/Timeline.d.ts.map +0 -1
  335. package/dist/widgets/modals/ExportModal.d.ts +0 -15
  336. package/dist/widgets/modals/ExportModal.d.ts.map +0 -1
  337. package/dist/widgets/modals/FormModal.d.ts +0 -12
  338. package/dist/widgets/modals/FormModal.d.ts.map +0 -1
  339. package/dist/widgets/modals/SearchModal.d.ts +0 -13
  340. package/dist/widgets/modals/SearchModal.d.ts.map +0 -1
  341. package/dist/widgets/modals/TranslationModal.d.ts +0 -12
  342. package/dist/widgets/modals/TranslationModal.d.ts.map +0 -1
  343. package/dist/widgets/views/Dashboard/Dashboard.d.ts +0 -5
  344. package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +0 -1
  345. package/dist/widgets/views/Dashboard/DashboardForm.d.ts +0 -4
  346. package/dist/widgets/views/Dashboard/DashboardForm.d.ts.map +0 -1
  347. package/dist/widgets/views/Dashboard/DashboardTree.d.ts +0 -19
  348. package/dist/widgets/views/Dashboard/DashboardTree.d.ts.map +0 -1
  349. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts +0 -6
  350. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts.map +0 -1
  351. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts +0 -4
  352. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts.map +0 -1
  353. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts +0 -6
  354. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts.map +0 -1
  355. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts +0 -4
  356. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +0 -1
  357. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts +0 -11
  358. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts.map +0 -1
  359. package/dist/widgets/views/DashboardGrid/index.d.ts +0 -5
  360. package/dist/widgets/views/DashboardGrid/index.d.ts.map +0 -1
  361. package/dist/widgets/views/Form.d.ts +0 -29
  362. package/dist/widgets/views/Form.d.ts.map +0 -1
  363. package/dist/widgets/views/Graph/Graph.d.ts +0 -11
  364. package/dist/widgets/views/Graph/Graph.d.ts.map +0 -1
  365. package/dist/widgets/views/Graph/GraphChart.d.ts +0 -11
  366. package/dist/widgets/views/Graph/GraphChart.d.ts.map +0 -1
  367. package/dist/widgets/views/Graph/GraphDefaults.d.ts +0 -83
  368. package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +0 -1
  369. package/dist/widgets/views/Graph/GraphIndicator.d.ts +0 -17
  370. package/dist/widgets/views/Graph/GraphIndicator.d.ts.map +0 -1
  371. package/dist/widgets/views/Graph/useGraphData.d.ts +0 -20
  372. package/dist/widgets/views/Graph/useGraphData.d.ts.map +0 -1
  373. package/dist/widgets/views/SearchTree.d.ts +0 -24
  374. package/dist/widgets/views/SearchTree.d.ts.map +0 -1
  375. package/dist/widgets/views/Tree.d.ts +0 -32
  376. package/dist/widgets/views/Tree.d.ts.map +0 -1
  377. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts +0 -4
  378. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts.map +0 -1
  379. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts +0 -4
  380. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts.map +0 -1
  381. package/dist/widgets/views/searchFilter/PairFields.d.ts +0 -4
  382. package/dist/widgets/views/searchFilter/PairFields.d.ts.map +0 -1
  383. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts +0 -10
  384. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts.map +0 -1
  385. package/dist/widgets/views/searchFilter/SearchField.d.ts +0 -8
  386. package/dist/widgets/views/searchFilter/SearchField.d.ts.map +0 -1
  387. package/dist/widgets/views/searchFilter/SearchFilter.d.ts +0 -20
  388. package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +0 -1
  389. package/dist/widgets/views/searchFilter/SearchParams.d.ts +0 -7
  390. package/dist/widgets/views/searchFilter/SearchParams.d.ts.map +0 -1
  391. package/src/tailwind.css +0 -8
  392. package/src/tailwind.generated.css +0 -168533
@@ -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
- ): Array<Column> => {
21
+ context: any,
22
+ ): 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
- bItem = b[key] || "";
41
+ let aItem = a[key] || "";
42
+ let 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: Array<any>): Array<any> => {
58
+ const getTableItems = (treeOoui: TreeOoui, results: any[]): 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
- bItem = b[field] || "";
161
+ let aItem = a[field] || "";
162
+ let 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: { viewTuple: ViewTuple; promise?: Promise<any> }[]
4
+ viewsToRetrieve: Array<{ 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().delete({
184
+ await ConnectionProvider.getHandler().deleteObjects({
185
185
  model: "ir.exports",
186
186
  ids: [pExport.id!],
187
187
  });
@@ -367,8 +367,7 @@ const retrieveKeyFieldsForPredefinedExports = async ({
367
367
  onGetFieldChilds: (key: string) => Promise<ExportField[]>;
368
368
  }) => {
369
369
  const allPredefinedExportKeys = predefinedExports.flatMap(
370
- (exp: PredefinedExport) =>
371
- exp.fields.map((field: any) => field.key)
370
+ (exp: PredefinedExport) => exp.fields.map((field: any) => field.key)
372
371
  );
373
372
 
374
373
  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: sorter,
210
+ 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,6 +82,8 @@ 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";
85
87
 
86
88
  export {
87
89
  Button,
@@ -161,4 +163,6 @@ export {
161
163
  CommentsTimelineField,
162
164
  ExportModal,
163
165
  ConfigContext,
166
+ Tab,
167
+ ActionView,
164
168
  };
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -28,7 +25,7 @@ export const WithStockIcon = (): React.ReactElement => {
28
25
  const ooui = new ButtonOoui({
29
26
  name: "button_field",
30
27
  string: "Lorem ipsum",
31
- icon: "gtk-ok"
28
+ icon: "gtk-ok",
32
29
  });
33
30
  return (
34
31
  <LocaleProvider lang="en_US">
@@ -41,7 +38,7 @@ export const WithCustomIcon = (): React.ReactElement => {
41
38
  const ooui = new ButtonOoui({
42
39
  name: "button_field",
43
40
  string: "Lorem ipsum",
44
- icon: "terp-purchase"
41
+ icon: "terp-purchase",
45
42
  });
46
43
  return (
47
44
  <LocaleProvider lang="en_US">
@@ -54,7 +51,7 @@ export const WithAntdIcon = (): React.ReactElement => {
54
51
  const ooui = new ButtonOoui({
55
52
  name: "button_field",
56
53
  string: "Lorem ipsum",
57
- icon: "ant-design"
54
+ icon: "ant-design",
58
55
  });
59
56
  return (
60
57
  <LocaleProvider lang="en_US">
@@ -67,7 +64,7 @@ export const WithUnexistingdIcon = (): React.ReactElement => {
67
64
  const ooui = new ButtonOoui({
68
65
  name: "button_field",
69
66
  string: "Lorem ipsum",
70
- icon: "foo"
67
+ icon: "foo",
71
68
  });
72
69
  return (
73
70
  <LocaleProvider lang="en_US">
@@ -80,7 +77,7 @@ export const WithTablerIcon = (): React.ReactElement => {
80
77
  const ooui = new ButtonOoui({
81
78
  name: "button_field",
82
79
  string: "Lorem ipsum",
83
- icon: "bulb-off"
80
+ icon: "bulb-off",
84
81
  });
85
82
  return (
86
83
  <LocaleProvider lang="en_US">
@@ -94,7 +91,7 @@ export const PrimaryButton = (): React.ReactElement => {
94
91
  name: "button_field",
95
92
  string: "Lorem ipsum",
96
93
  icon: "send",
97
- primary: "1"
94
+ primary: "1",
98
95
  });
99
96
  return (
100
97
  <LocaleProvider lang="en_US">
@@ -108,7 +105,7 @@ export const DangerButton = (): React.ReactElement => {
108
105
  name: "button_field",
109
106
  string: "Lorem ipsum",
110
107
  icon: "exclamation-circle",
111
- danger: "1"
108
+ danger: "1",
112
109
  });
113
110
  return (
114
111
  <LocaleProvider lang="en_US">
@@ -117,14 +114,13 @@ export const DangerButton = (): React.ReactElement => {
117
114
  );
118
115
  };
119
116
 
120
-
121
117
  export const PrimaryDangerButton = (): React.ReactElement => {
122
118
  const ooui = new ButtonOoui({
123
119
  name: "button_field",
124
120
  string: "Lorem ipsum",
125
121
  icon: "exclamation-circle",
126
122
  danger: "1",
127
- primary: "1"
123
+ primary: "1",
128
124
  });
129
125
  return (
130
126
  <LocaleProvider lang="en_US">
@@ -132,5 +128,3 @@ export const PrimaryDangerButton = (): React.ReactElement => {
132
128
  </LocaleProvider>
133
129
  );
134
130
  };
135
-
136
-
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
  import { Form } from "antd";
11
8
 
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -20,8 +17,7 @@ export const Default = (): React.ReactElement => {
20
17
  mode: "form,tree",
21
18
  views: {
22
19
  form: {
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 ',
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 ',
25
21
  fields: {
26
22
  aclarador: {
27
23
  size: 256,
@@ -193,8 +189,7 @@ export const Default = (): React.ReactElement => {
193
189
  views: {},
194
190
  },
195
191
  type: {
196
- help:
197
- "Used to select automatically the right address according to the context in sales and purchases documents.",
192
+ help: "Used to select automatically the right address according to the context in sales and purchases documents.",
198
193
  selection: [
199
194
  ["default", "Default"],
200
195
  ["invoice", "Invoice"],
@@ -217,8 +212,7 @@ export const Default = (): React.ReactElement => {
217
212
  },
218
213
  },
219
214
  tree: {
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 ',
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 ',
222
216
  fields: {
223
217
  city: {
224
218
  size: 128,
@@ -262,8 +256,7 @@ export const Default = (): React.ReactElement => {
262
256
  views: {},
263
257
  },
264
258
  type: {
265
- help:
266
- "Used to select automatically the right address according to the context in sales and purchases documents.",
259
+ help: "Used to select automatically the right address according to the context in sales and purchases documents.",
267
260
  selection: [
268
261
  ["default", "Default"],
269
262
  ["invoice", "Invoice"],
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -3,9 +3,6 @@ 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
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  import { withKnobs, text } from "@storybook/addon-knobs";
@@ -3,9 +3,6 @@ import React from "react";
3
3
  import { Separator } from "..";
4
4
  import { Separator as SeparatorOoui } from "@gisce/ooui";
5
5
 
6
- // import "antd/dist/antd.css";
7
-
8
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -24,8 +21,7 @@ export const Default = (): React.ReactElement => {
24
21
  };
25
22
 
26
23
  export const WithoutText = (): React.ReactElement => {
27
- const ooui = new SeparatorOoui({
28
- });
24
+ const ooui = new SeparatorOoui({});
29
25
  return (
30
26
  <LocaleProvider lang="en_US">
31
27
  <Separator ooui={ooui} showLabel />
@@ -35,7 +31,7 @@ export const WithoutText = (): React.ReactElement => {
35
31
 
36
32
  export const OnlyIcon = (): React.ReactElement => {
37
33
  const ooui = new SeparatorOoui({
38
- icon: "home"
34
+ icon: "home",
39
35
  });
40
36
  return (
41
37
  <LocaleProvider lang="en_US">
@@ -47,7 +43,7 @@ export const OnlyIcon = (): React.ReactElement => {
47
43
  export const WithIcon = (): React.ReactElement => {
48
44
  const ooui = new SeparatorOoui({
49
45
  string: "General",
50
- icon: "home"
46
+ icon: "home",
51
47
  });
52
48
  return (
53
49
  <LocaleProvider lang="en_US">
@@ -3,9 +3,6 @@ import React from "react";
3
3
  import { Text } from "..";
4
4
  import { Text as TextOoui } from "@gisce/ooui";
5
5
 
6
- // import "antd/dist/antd.css";
7
-
8
-
9
6
  import LocaleProvider from "../context/LocaleContext";
10
7
 
11
8
  export default {
@@ -1,10 +1,5 @@
1
1
  import React from "react";
2
2
 
3
- // import "antd/dist/antd.css";
4
-
5
-
6
- import "@/tailwind.generated.css";
7
-
8
3
  import { withKnobs, number, text } from "@storybook/addon-knobs";
9
4
  import LocaleProvider from "../../context/LocaleContext";
10
5
 
@@ -2,10 +2,6 @@ import React from "react";
2
2
 
3
3
  import { Form } from "../..";
4
4
 
5
- // import "antd/dist/antd.css";
6
-
7
-
8
- import "@/tailwind.generated.css";
9
5
  import LocaleProvider from "../../context/LocaleContext";
10
6
 
11
7
  export default {
@@ -1,10 +1,5 @@
1
1
  import React from "react";
2
2
 
3
- // import "antd/dist/antd.css";
4
-
5
-
6
- import "@/tailwind.generated.css";
7
-
8
3
  import { withKnobs } from "@storybook/addon-knobs";
9
4
  import LocaleProvider from "../../context/LocaleContext";
10
5
 
@@ -2,7 +2,6 @@ import React, {useState} from "react";
2
2
 
3
3
  import { Avatar as AvatarOoui } from "@gisce/ooui";
4
4
  import Avatar from "@/widgets/custom/Avatar";
5
- import "antd/dist/antd.css";
6
5
  import LocaleProvider from "../../context/LocaleContext";
7
6
 
8
7
  export default {
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
 
3
- import { Dropdown, Menu } from 'antd';
4
- import { DownOutlined, UserOutlined } from '@ant-design/icons';
5
- import { ButtonGroup as ButtonGroupOoui, Button as ButtonOoui } from "@gisce/ooui";
3
+ import { Dropdown, Menu } from "antd";
4
+ import { DownOutlined, UserOutlined } from "@ant-design/icons";
5
+ import {
6
+ ButtonGroup as ButtonGroupOoui,
7
+ Button as ButtonOoui,
8
+ } from "@gisce/ooui";
6
9
  import { ButtonGroup } from "../../widgets/custom/ButtonGroup";
7
10
 
8
- // import "antd/dist/antd.css";
9
-
10
-
11
11
  import LocaleProvider from "../../context/LocaleContext";
12
12
 
13
13
  export default {
@@ -15,17 +15,16 @@ export default {
15
15
  };
16
16
 
17
17
  export const OnlyAntComponents = (): React.ReactElement => {
18
-
19
18
  const overlay = (
20
19
  <Menu>
21
- <Menu.Item icon={<UserOutlined/>}>Button 1</Menu.Item>
22
- <Menu.Item icon={<UserOutlined/>}>Button 2</Menu.Item>
20
+ <Menu.Item icon={<UserOutlined />}>Button 1</Menu.Item>
21
+ <Menu.Item icon={<UserOutlined />}>Button 2</Menu.Item>
23
22
  </Menu>
24
- )
23
+ );
25
24
 
26
25
  return (
27
26
  <LocaleProvider lang="en_US">
28
- <Dropdown.Button overlay={overlay} icon={<DownOutlined/>}>
27
+ <Dropdown.Button overlay={overlay} icon={<DownOutlined />}>
29
28
  Default button
30
29
  </Dropdown.Button>
31
30
  </LocaleProvider>
@@ -33,29 +32,43 @@ export const OnlyAntComponents = (): React.ReactElement => {
33
32
  };
34
33
 
35
34
  export const Default = (): React.ReactElement => {
36
-
37
35
  const btn1 = new ButtonOoui({
38
- name: "btn1", icon: "gtk-execute", string: "Button 1",
39
- buttonType: "object"
36
+ name: "btn1",
37
+ icon: "gtk-execute",
38
+ string: "Button 1",
39
+ buttonType: "object",
40
+ });
41
+ const btn2 = new ButtonOoui({
42
+ name: "btn2",
43
+ readonly: true,
44
+ buttonType: "object",
45
+ icon: "gtk-execute",
46
+ string: "Button 2",
40
47
  });
41
- const btn2 = new ButtonOoui({name: "btn2", readonly: true, buttonType: "object", icon: "gtk-execute", string: "Button 2"});
42
48
  const btn3 = new ButtonOoui({
43
- name: "btn3", buttonType: "object",
44
- icon: "gtk-about", string: "Button 3",
45
- confirm: "Are you sure?"
49
+ name: "btn3",
50
+ buttonType: "object",
51
+ icon: "gtk-about",
52
+ string: "Button 3",
53
+ confirm: "Are you sure?",
46
54
  });
47
55
  const btn4 = new ButtonOoui({
48
- name: "btn4", buttonType: "object",
49
- icon: "gtk-dialog-warning", string: "Button 4",
56
+ name: "btn4",
57
+ buttonType: "object",
58
+ icon: "gtk-dialog-warning",
59
+ string: "Button 4",
50
60
  confirm: "Are you sure?",
51
- danger: true
61
+ danger: true,
62
+ });
63
+ const buttonGroup = new ButtonGroupOoui({
64
+ name: "btnGroup",
65
+ default: "btn1",
52
66
  });
53
- const buttonGroup = new ButtonGroupOoui({name: "btnGroup", default: "btn1"});
54
67
  buttonGroup.container.rows[0].push(...[btn1, btn2, btn3, btn4]);
55
68
 
56
69
  return (
57
70
  <LocaleProvider lang="en_US">
58
- <ButtonGroup ooui={buttonGroup}/>
71
+ <ButtonGroup ooui={buttonGroup} />
59
72
  </LocaleProvider>
60
73
  );
61
74
  };