@gisce/react-ooui 2.0.0-alpha.3 → 2.0.0-alpha.30

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 (397) hide show
  1. package/dist/ConnectionProvider.d.ts +7 -0
  2. package/dist/ConnectionProvider.d.ts.map +1 -0
  3. package/dist/actionbar/ActionButton.d.ts +12 -0
  4. package/dist/actionbar/ActionButton.d.ts.map +1 -0
  5. package/dist/actionbar/AttachmentsButton.d.ts +11 -0
  6. package/dist/actionbar/AttachmentsButton.d.ts.map +1 -0
  7. package/dist/actionbar/AttachmentsButtonWrapper.d.ts +18 -0
  8. package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +1 -0
  9. package/dist/actionbar/ButtonWithBadge.d.ts +7 -0
  10. package/dist/actionbar/ButtonWithBadge.d.ts.map +1 -0
  11. package/dist/actionbar/ChangeViewButton.d.ts +12 -0
  12. package/dist/actionbar/ChangeViewButton.d.ts.map +1 -0
  13. package/dist/actionbar/DashboardActionBar.d.ts +3 -0
  14. package/dist/actionbar/DashboardActionBar.d.ts.map +1 -0
  15. package/dist/actionbar/DropdownButton.d.ts +12 -0
  16. package/dist/actionbar/DropdownButton.d.ts.map +1 -0
  17. package/dist/actionbar/FormActionBar.d.ts +5 -0
  18. package/dist/actionbar/FormActionBar.d.ts.map +1 -0
  19. package/dist/actionbar/GraphActionBar.d.ts +5 -0
  20. package/dist/actionbar/GraphActionBar.d.ts.map +1 -0
  21. package/dist/actionbar/NewButton.d.ts +6 -0
  22. package/dist/actionbar/NewButton.d.ts.map +1 -0
  23. package/dist/actionbar/SearchBar.d.ts +8 -0
  24. package/dist/actionbar/SearchBar.d.ts.map +1 -0
  25. package/dist/actionbar/TreeActionBar.d.ts +8 -0
  26. package/dist/actionbar/TreeActionBar.d.ts.map +1 -0
  27. package/dist/common/ButtonWithTooltip.d.ts +7 -0
  28. package/dist/common/ButtonWithTooltip.d.ts.map +1 -0
  29. package/dist/common/DatePicker.d.ts +19 -0
  30. package/dist/common/DatePicker.d.ts.map +1 -0
  31. package/dist/common/Field.d.ts +14 -0
  32. package/dist/common/Field.d.ts.map +1 -0
  33. package/dist/common/SelectAllRecordsRow.d.ts +9 -0
  34. package/dist/common/SelectAllRecordsRow.d.ts.map +1 -0
  35. package/dist/context/ActionViewContext.d.ts +65 -0
  36. package/dist/context/ActionViewContext.d.ts.map +1 -0
  37. package/dist/context/ConfigContext.d.ts +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 +16 -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/useEffectDebugger.d.ts +3 -0
  78. package/dist/hooks/useEffectDebugger.d.ts.map +1 -0
  79. package/dist/hooks/useExport.d.ts +44 -0
  80. package/dist/hooks/useExport.d.ts.map +1 -0
  81. package/dist/hooks/useFetchViews.d.ts +1 -0
  82. package/dist/hooks/useFetchViews.d.ts.map +1 -0
  83. package/dist/hooks/useSearch.d.ts +56 -0
  84. package/dist/hooks/useSearch.d.ts.map +1 -0
  85. package/dist/hooks/useWindowDimensions.d.ts +7 -0
  86. package/dist/hooks/useWindowDimensions.d.ts.map +1 -0
  87. package/dist/index.d.ts +59 -0
  88. package/dist/index.d.ts.map +1 -0
  89. package/dist/locales/ca_ES.d.ts +94 -0
  90. package/dist/locales/ca_ES.d.ts.map +1 -0
  91. package/dist/locales/en_US.d.ts +94 -0
  92. package/dist/locales/en_US.d.ts.map +1 -0
  93. package/dist/locales/es_ES.d.ts +94 -0
  94. package/dist/locales/es_ES.d.ts.map +1 -0
  95. package/dist/react-ooui.es.js +9872 -0
  96. package/dist/react-ooui.es.js.map +1 -0
  97. package/dist/style.css +1 -0
  98. package/dist/types/index.d.ts +257 -0
  99. package/dist/types/index.d.ts.map +1 -0
  100. package/dist/ui/ActionErrorDialog.d.ts +3 -0
  101. package/dist/ui/ActionErrorDialog.d.ts.map +1 -0
  102. package/dist/ui/ConfirmDialog.d.ts +7 -0
  103. package/dist/ui/ConfirmDialog.d.ts.map +1 -0
  104. package/dist/ui/ErrorAlert.d.ts +5 -0
  105. package/dist/ui/ErrorAlert.d.ts.map +1 -0
  106. package/dist/ui/FavouriteButton.d.ts +25 -0
  107. package/dist/ui/FavouriteButton.d.ts.map +1 -0
  108. package/dist/ui/FormErrorsDialog.d.ts +3 -0
  109. package/dist/ui/FormErrorsDialog.d.ts.map +1 -0
  110. package/dist/ui/GenericErrorDialog.d.ts +3 -0
  111. package/dist/ui/GenericErrorDialog.d.ts.map +1 -0
  112. package/dist/ui/GoToResourceModal.d.ts +9 -0
  113. package/dist/ui/GoToResourceModal.d.ts.map +1 -0
  114. package/dist/ui/InfoDialog.d.ts +3 -0
  115. package/dist/ui/InfoDialog.d.ts.map +1 -0
  116. package/dist/ui/RefreshItemDialog.d.ts +7 -0
  117. package/dist/ui/RefreshItemDialog.d.ts.map +1 -0
  118. package/dist/ui/RemoveItemDialog.d.ts +6 -0
  119. package/dist/ui/RemoveItemDialog.d.ts.map +1 -0
  120. package/dist/ui/TitleHeader.d.ts +7 -0
  121. package/dist/ui/TitleHeader.d.ts.map +1 -0
  122. package/dist/ui/UnlinkItemDialog.d.ts +6 -0
  123. package/dist/ui/UnlinkItemDialog.d.ts.map +1 -0
  124. package/dist/ui/UnsavedChangesDialog.d.ts +7 -0
  125. package/dist/ui/UnsavedChangesDialog.d.ts.map +1 -0
  126. package/dist/ui/WarningDialog.d.ts +3 -0
  127. package/dist/ui/WarningDialog.d.ts.map +1 -0
  128. package/dist/views/ActionView.d.ts +22 -0
  129. package/dist/views/ActionView.d.ts.map +1 -0
  130. package/dist/views/CurrentTabContent.d.ts +3 -0
  131. package/dist/views/CurrentTabContent.d.ts.map +1 -0
  132. package/dist/views/RootView.d.ts +14 -0
  133. package/dist/views/RootView.d.ts.map +1 -0
  134. package/dist/views/TabContent.d.ts +8 -0
  135. package/dist/views/TabContent.d.ts.map +1 -0
  136. package/dist/views/TabSelector.d.ts +3 -0
  137. package/dist/views/TabSelector.d.ts.map +1 -0
  138. package/dist/views/Welcome.d.ts +4 -0
  139. package/dist/views/Welcome.d.ts.map +1 -0
  140. package/dist/views/actionViews/DashboardActionView.d.ts +6 -0
  141. package/dist/views/actionViews/DashboardActionView.d.ts.map +1 -0
  142. package/dist/views/actionViews/FormActionView.d.ts +17 -0
  143. package/dist/views/actionViews/FormActionView.d.ts.map +1 -0
  144. package/dist/views/actionViews/GraphActionView.d.ts +12 -0
  145. package/dist/views/actionViews/GraphActionView.d.ts.map +1 -0
  146. package/dist/views/actionViews/TreeActionView.d.ts +19 -0
  147. package/dist/views/actionViews/TreeActionView.d.ts.map +1 -0
  148. package/dist/views/tabs/Tab.d.ts +10 -0
  149. package/dist/views/tabs/Tab.d.ts.map +1 -0
  150. package/dist/widgets/WidgetFactory.d.ts +4 -0
  151. package/dist/widgets/WidgetFactory.d.ts.map +1 -0
  152. package/dist/widgets/base/Binary.d.ts +13 -0
  153. package/dist/widgets/base/Binary.d.ts.map +1 -0
  154. package/dist/widgets/base/Boolean.d.ts +3 -0
  155. package/dist/widgets/base/Boolean.d.ts.map +1 -0
  156. package/dist/widgets/base/Button.d.ts +7 -0
  157. package/dist/widgets/base/Button.d.ts.map +1 -0
  158. package/dist/widgets/base/Char.d.ts +7 -0
  159. package/dist/widgets/base/Char.d.ts.map +1 -0
  160. package/dist/widgets/base/Date.d.ts +4 -0
  161. package/dist/widgets/base/Date.d.ts.map +1 -0
  162. package/dist/widgets/base/DateTime.d.ts +4 -0
  163. package/dist/widgets/base/DateTime.d.ts.map +1 -0
  164. package/dist/widgets/base/Email.d.ts +3 -0
  165. package/dist/widgets/base/Email.d.ts.map +1 -0
  166. package/dist/widgets/base/Float.d.ts +3 -0
  167. package/dist/widgets/base/Float.d.ts.map +1 -0
  168. package/dist/widgets/base/FloatTime.d.ts +12 -0
  169. package/dist/widgets/base/FloatTime.d.ts.map +1 -0
  170. package/dist/widgets/base/Image.d.ts +13 -0
  171. package/dist/widgets/base/Image.d.ts.map +1 -0
  172. package/dist/widgets/base/Integer.d.ts +7 -0
  173. package/dist/widgets/base/Integer.d.ts.map +1 -0
  174. package/dist/widgets/base/Label.d.ts +8 -0
  175. package/dist/widgets/base/Label.d.ts.map +1 -0
  176. package/dist/widgets/base/LinkInput.d.ts +11 -0
  177. package/dist/widgets/base/LinkInput.d.ts.map +1 -0
  178. package/dist/widgets/base/MultiSelection.d.ts +9 -0
  179. package/dist/widgets/base/MultiSelection.d.ts.map +1 -0
  180. package/dist/widgets/base/ProgressBar.d.ts +6 -0
  181. package/dist/widgets/base/ProgressBar.d.ts.map +1 -0
  182. package/dist/widgets/base/Reference.d.ts +16 -0
  183. package/dist/widgets/base/Reference.d.ts.map +1 -0
  184. package/dist/widgets/base/ReferenceTree.d.ts +8 -0
  185. package/dist/widgets/base/ReferenceTree.d.ts.map +1 -0
  186. package/dist/widgets/base/Selection.d.ts +9 -0
  187. package/dist/widgets/base/Selection.d.ts.map +1 -0
  188. package/dist/widgets/base/Separator.d.ts +7 -0
  189. package/dist/widgets/base/Separator.d.ts.map +1 -0
  190. package/dist/widgets/base/Text.d.ts +7 -0
  191. package/dist/widgets/base/Text.d.ts.map +1 -0
  192. package/dist/widgets/base/Time.d.ts +11 -0
  193. package/dist/widgets/base/Time.d.ts.map +1 -0
  194. package/dist/widgets/base/Url.d.ts +3 -0
  195. package/dist/widgets/base/Url.d.ts.map +1 -0
  196. package/dist/widgets/base/many2one/Many2one.d.ts +16 -0
  197. package/dist/widgets/base/many2one/Many2one.d.ts.map +1 -0
  198. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts +8 -0
  199. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +1 -0
  200. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts +9 -0
  201. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts.map +1 -0
  202. package/dist/widgets/base/many2one/Many2oneTree.d.ts +6 -0
  203. package/dist/widgets/base/many2one/Many2oneTree.d.ts.map +1 -0
  204. package/dist/widgets/base/one2many/One2many.d.ts +7 -0
  205. package/dist/widgets/base/one2many/One2many.d.ts.map +1 -0
  206. package/dist/widgets/base/one2many/One2manyInput.d.ts +23 -0
  207. package/dist/widgets/base/one2many/One2manyInput.d.ts.map +1 -0
  208. package/dist/widgets/base/one2many/One2manyTopBar.d.ts +22 -0
  209. package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -0
  210. package/dist/widgets/containers/Container.d.ts +9 -0
  211. package/dist/widgets/containers/Container.d.ts.map +1 -0
  212. package/dist/widgets/containers/Group.d.ts +10 -0
  213. package/dist/widgets/containers/Group.d.ts.map +1 -0
  214. package/dist/widgets/containers/Notebook.d.ts +9 -0
  215. package/dist/widgets/containers/Notebook.d.ts.map +1 -0
  216. package/dist/widgets/custom/Avatar.d.ts +10 -0
  217. package/dist/widgets/custom/Avatar.d.ts.map +1 -0
  218. package/dist/widgets/custom/ButtonGroup.d.ts +7 -0
  219. package/dist/widgets/custom/ButtonGroup.d.ts.map +1 -0
  220. package/dist/widgets/custom/CodeEditor.d.ts +8 -0
  221. package/dist/widgets/custom/CodeEditor.d.ts.map +1 -0
  222. package/dist/widgets/custom/Comments.d.ts +34 -0
  223. package/dist/widgets/custom/Comments.d.ts.map +1 -0
  224. package/dist/widgets/custom/FiberGrid.d.ts +9 -0
  225. package/dist/widgets/custom/FiberGrid.d.ts.map +1 -0
  226. package/dist/widgets/custom/Indicator.d.ts +9 -0
  227. package/dist/widgets/custom/Indicator.d.ts.map +1 -0
  228. package/dist/widgets/custom/Markdown.d.ts +4 -0
  229. package/dist/widgets/custom/Markdown.d.ts.map +1 -0
  230. package/dist/widgets/custom/MultiCheckbox.d.ts +13 -0
  231. package/dist/widgets/custom/MultiCheckbox.d.ts.map +1 -0
  232. package/dist/widgets/custom/Radio.d.ts +9 -0
  233. package/dist/widgets/custom/Radio.d.ts.map +1 -0
  234. package/dist/widgets/custom/Steps.d.ts +12 -0
  235. package/dist/widgets/custom/Steps.d.ts.map +1 -0
  236. package/dist/widgets/custom/Switch.d.ts +3 -0
  237. package/dist/widgets/custom/Switch.d.ts.map +1 -0
  238. package/dist/widgets/custom/Tag.d.ts +6 -0
  239. package/dist/widgets/custom/Tag.d.ts.map +1 -0
  240. package/dist/widgets/custom/Tags.d.ts +14 -0
  241. package/dist/widgets/custom/Tags.d.ts.map +1 -0
  242. package/dist/widgets/custom/Timeline.d.ts +15 -0
  243. package/dist/widgets/custom/Timeline.d.ts.map +1 -0
  244. package/dist/widgets/modals/ExportModal.d.ts +14 -0
  245. package/dist/widgets/modals/ExportModal.d.ts.map +1 -0
  246. package/dist/widgets/modals/FormModal.d.ts +11 -0
  247. package/dist/widgets/modals/FormModal.d.ts.map +1 -0
  248. package/dist/widgets/modals/SearchModal.d.ts +12 -0
  249. package/dist/widgets/modals/SearchModal.d.ts.map +1 -0
  250. package/dist/widgets/modals/TranslationModal.d.ts +11 -0
  251. package/dist/widgets/modals/TranslationModal.d.ts.map +1 -0
  252. package/dist/widgets/views/Dashboard/Dashboard.d.ts +5 -0
  253. package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -0
  254. package/dist/widgets/views/Dashboard/DashboardForm.d.ts +3 -0
  255. package/dist/widgets/views/Dashboard/DashboardForm.d.ts.map +1 -0
  256. package/dist/widgets/views/Dashboard/DashboardTree.d.ts +18 -0
  257. package/dist/widgets/views/Dashboard/DashboardTree.d.ts.map +1 -0
  258. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts +6 -0
  259. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts.map +1 -0
  260. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts +3 -0
  261. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts.map +1 -0
  262. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts +6 -0
  263. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts.map +1 -0
  264. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts +3 -0
  265. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +1 -0
  266. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts +11 -0
  267. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts.map +1 -0
  268. package/dist/widgets/views/DashboardGrid/index.d.ts +5 -0
  269. package/dist/widgets/views/DashboardGrid/index.d.ts.map +1 -0
  270. package/dist/widgets/views/Form.d.ts +29 -0
  271. package/dist/widgets/views/Form.d.ts.map +1 -0
  272. package/dist/widgets/views/Graph/Graph.d.ts +11 -0
  273. package/dist/widgets/views/Graph/Graph.d.ts.map +1 -0
  274. package/dist/widgets/views/Graph/GraphChart.d.ts +10 -0
  275. package/dist/widgets/views/Graph/GraphChart.d.ts.map +1 -0
  276. package/dist/widgets/views/Graph/GraphDefaults.d.ts +83 -0
  277. package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -0
  278. package/dist/widgets/views/Graph/GraphIndicator.d.ts +16 -0
  279. package/dist/widgets/views/Graph/GraphIndicator.d.ts.map +1 -0
  280. package/dist/widgets/views/Graph/useGraphData.d.ts +20 -0
  281. package/dist/widgets/views/Graph/useGraphData.d.ts.map +1 -0
  282. package/dist/widgets/views/SearchTree.d.ts +24 -0
  283. package/dist/widgets/views/SearchTree.d.ts.map +1 -0
  284. package/dist/widgets/views/Tree.d.ts +32 -0
  285. package/dist/widgets/views/Tree.d.ts.map +1 -0
  286. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts +3 -0
  287. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts.map +1 -0
  288. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts +3 -0
  289. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts.map +1 -0
  290. package/dist/widgets/views/searchFilter/PairFields.d.ts +4 -0
  291. package/dist/widgets/views/searchFilter/PairFields.d.ts.map +1 -0
  292. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts +10 -0
  293. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts.map +1 -0
  294. package/dist/widgets/views/searchFilter/SearchField.d.ts +7 -0
  295. package/dist/widgets/views/searchFilter/SearchField.d.ts.map +1 -0
  296. package/dist/widgets/views/searchFilter/SearchFilter.d.ts +19 -0
  297. package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +1 -0
  298. package/dist/widgets/views/searchFilter/SearchParams.d.ts +7 -0
  299. package/dist/widgets/views/searchFilter/SearchParams.d.ts.map +1 -0
  300. package/package.json +38 -14
  301. package/src/ConnectionProvider.ts +1 -1
  302. package/src/__tests__/iconMapper.test.ts +4 -4
  303. package/src/actionbar/AttachmentsButton.tsx +25 -23
  304. package/src/actionbar/AttachmentsButtonWrapper.tsx +2 -2
  305. package/src/actionbar/ButtonWithBadge.tsx +4 -2
  306. package/src/actionbar/ChangeViewButton.tsx +1 -1
  307. package/src/actionbar/DashboardActionBar.tsx +2 -6
  308. package/src/actionbar/DropdownButton.tsx +44 -3
  309. package/src/actionbar/FormActionBar.tsx +2 -2
  310. package/src/actionbar/NewButton.tsx +1 -1
  311. package/src/actionbar/TreeActionBar.tsx +2 -2
  312. package/src/context/ActionViewContext.tsx +8 -4
  313. package/src/context/DashboardActionContext.tsx +2 -3
  314. package/src/context/FormModalContext.tsx +2 -3
  315. package/src/context/LocaleContext.tsx +1 -1
  316. package/src/context/One2manyContext.tsx +3 -4
  317. package/src/helpers/containerHelper.ts +1 -1
  318. package/src/helpers/dynamicColumnsHelper.ts +2 -2
  319. package/src/helpers/iconMapper.ts +5 -5
  320. package/src/helpers/logInfoHelper.tsx +8 -6
  321. package/src/helpers/timeHelper.ts +2 -2
  322. package/src/hooks/useEffectDebugger.ts +2 -2
  323. package/src/hooks/useExport.ts +8 -8
  324. package/src/hooks/useWindowDimensions.ts +1 -1
  325. package/src/locales/ca_ES.tsx +1 -0
  326. package/src/locales/en_US.tsx +1 -0
  327. package/src/locales/es_ES.tsx +2 -0
  328. package/src/stories/Time.stories.tsx +2 -3
  329. package/src/stories/Utils.stories.tsx +1 -3
  330. package/src/stories/containers/Group.stories.tsx +2 -3
  331. package/src/stories/containers/Notebook.stories.tsx +0 -6
  332. package/src/stories/custom/Avatar.stories.tsx +2 -6
  333. package/src/stories/custom/Comments.stories.tsx +32 -25
  334. package/src/stories/forms/FormWithLinks.stories.tsx +1 -2
  335. package/src/stories/forms/ModContractForm.stories.tsx +1 -0
  336. package/src/stories/forms/PreferencesForm.stories.tsx +1 -2
  337. package/src/stories/mocks/mockProvider.ts +5 -2
  338. package/src/stories/mocks/models/attachment.ts +1 -2
  339. package/src/stories/mocks/models/butlleti.ts +249 -297
  340. package/src/stories/mocks/models/company.ts +2 -4
  341. package/src/stories/mocks/models/cups.ts +18 -1
  342. package/src/stories/mocks/models/document.ts +2 -4
  343. package/src/stories/mocks/models/factura.ts +14 -28
  344. package/src/stories/mocks/models/form_with_gridfiber.ts +2 -4
  345. package/src/stories/mocks/models/hist_autoconsum.ts +2 -4
  346. package/src/stories/mocks/models/lead.ts +8 -16
  347. package/src/stories/mocks/models/modcontractual.ts +229 -83
  348. package/src/stories/mocks/models/partner.ts +20 -40
  349. package/src/stories/mocks/models/polissa.ts +6 -12
  350. package/src/stories/mocks/models/res_partner_category.ts +3 -3
  351. package/src/stories/mocks/models/signatura.ts +135 -195
  352. package/src/stories/mocks/models/switching.ts +2 -4
  353. package/src/stories/ui/GoToResourceModal.stories.tsx +3 -2
  354. package/src/stories/views/Tree.stories.jsx +3 -5
  355. package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +15 -30
  356. package/src/types/index.ts +1 -1
  357. package/src/ui/ConfirmDialog.tsx +1 -1
  358. package/src/ui/GoToResourceModal.tsx +8 -7
  359. package/src/views/ActionView.tsx +37 -30
  360. package/src/views/CurrentTabContent.tsx +1 -1
  361. package/src/views/TabContent.tsx +1 -1
  362. package/src/views/TabSelector.tsx +1 -1
  363. package/src/views/actionViews/DashboardActionView.tsx +1 -1
  364. package/src/views/actionViews/GraphActionView.tsx +1 -1
  365. package/src/views/actionViews/TreeActionView.tsx +2 -2
  366. package/src/widgets/WidgetFactory.tsx +1 -1
  367. package/src/widgets/base/Button.tsx +1 -1
  368. package/src/widgets/base/Float.tsx +0 -1
  369. package/src/widgets/base/FloatTime.tsx +1 -1
  370. package/src/widgets/base/Integer.tsx +0 -1
  371. package/src/widgets/base/Reference.tsx +1 -1
  372. package/src/widgets/base/ReferenceTree.tsx +1 -1
  373. package/src/widgets/base/Separator.tsx +3 -4
  374. package/src/widgets/base/many2one/Many2oneSuffixModal.tsx +2 -2
  375. package/src/widgets/base/one2many/One2many.tsx +2 -2
  376. package/src/widgets/base/one2many/One2manyInput.tsx +1 -1
  377. package/src/widgets/custom/Avatar.tsx +15 -7
  378. package/src/widgets/custom/Markdown.tsx +18 -8
  379. package/src/widgets/custom/MultiCheckbox.tsx +1 -1
  380. package/src/widgets/custom/Radio.tsx +2 -4
  381. package/src/widgets/custom/Steps.tsx +10 -9
  382. package/src/widgets/custom/Switch.tsx +1 -5
  383. package/src/widgets/custom/Tags.tsx +1 -1
  384. package/src/widgets/modals/SearchModal.tsx +31 -29
  385. package/src/widgets/modals/TranslationModal.tsx +3 -3
  386. package/src/widgets/views/Dashboard/Dashboard.tsx +3 -3
  387. package/src/widgets/views/DashboardGrid/DashboardGrid.tsx +3 -3
  388. package/src/widgets/views/Form.tsx +2 -2
  389. package/src/widgets/views/Graph/Graph.tsx +1 -1
  390. package/src/widgets/views/Graph/GraphChart.tsx +1 -1
  391. package/src/widgets/views/Graph/GraphDefaults.ts +2 -2
  392. package/src/widgets/views/Graph/useGraphData.tsx +1 -1
  393. package/src/widgets/views/SearchTree.tsx +2 -2
  394. package/src/widgets/views/searchFilter/SearchBottomBar.tsx +2 -6
  395. package/src/widgets/views/searchFilter/SearchField.tsx +5 -1
  396. package/src/widgets/views/searchFilter/SearchFilter.tsx +1 -1
  397. package/src/widgets/views/searchFilter/SearchParams.tsx +7 -4
@@ -2,72 +2,80 @@ export default {
2
2
  model: "giscedata.polissa.modcontractual",
3
3
  exampleValues: {
4
4
  active: true,
5
- agree_dh: "E1",
6
- agree_tarifa: "2A",
5
+ agree_dh: "E3",
6
+ agree_tarifa: "2T",
7
7
  agree_tensio: "E0",
8
8
  agree_tipus: "05",
9
9
  altre_p: false,
10
- autoconsum_id: false,
11
10
  autoconsumo: "00",
12
- bank: [83, "ES67 2038 6665 6520 4501 5764"],
13
- bono_social_disponible: true,
11
+ bank: false,
12
+ bono_social_disponible: false,
14
13
  cnae: [
15
- 986,
16
- "9820 - Actividades de los hogares como productores de servicios para uso propio",
14
+ 3,
15
+ "0111 - Cultivo de cereales (excepto arroz), leguminosas y semillas oleaginosas",
17
16
  ],
18
- coef_repartiment: 0.0,
19
- comptador: false,
20
- comptadors_periode: false,
21
- condicions_generals_id: false,
17
+ codi_sollicitud_electrointensiu: false,
18
+ comissio: false,
19
+ comptador: "B63011077",
20
+ condicions_generals_id: [1, "Condicions Generals"],
22
21
  contract_type: "01",
23
- cups: [74, "ES0112000000110675FY0F"],
24
- data_final: "2022-02-14",
25
- data_final_pre_baixa: false,
26
- data_firma_contracte: "2021-01-12 07:38:24",
27
- data_inici: "2021-02-15",
28
- direccio_notificacio: [140, "OLIVARES PASTOR, CARLOS, BO. Test, 43 17833"],
29
- direccio_pagament: [140, "OLIVARES PASTOR, CARLOS, BO. Test, 43 17833"],
30
- distribuidora: [62, "AGRI ENERGIA ELECTRICA, S.A."],
31
- enviament: "email",
32
- expected_consumption: 0.0,
22
+ create_date: "2021-06-22 19:33:37",
23
+ cups: [1, "ES1234000000000001JN0F"],
24
+ data_final: "2021-06-22",
25
+ data_firma_contracte: "2016-01-01 00:00:00",
26
+ data_inici: "2021-06-22",
27
+ direccio_notificacio: [10, "Sylvie Lelitre, 69 rue de Chimay 5478 Wavre"],
28
+ direccio_pagament: [10, "Sylvie Lelitre, 69 rue de Chimay 5478 Wavre"],
29
+ distribuidora: [3, "Agrolait"],
30
+ enviament: "postal",
31
+ es_electrointensiu: false,
32
+ expected_consumption: 0,
33
33
  facturacio: 1,
34
34
  facturacio_distri: false,
35
- facturacio_potencia: "icp",
36
- id: 24,
35
+ facturacio_potencia: "max",
36
+ id: 33,
37
37
  lectura_en_baja: false,
38
- llista_preu: [21, "Hola (EUR)"],
39
- modcontractual_ant: false,
38
+ llista_preu: [19, "TARIFAS ELECTRICIDAD (EUR)"],
39
+ modcontractual_ant: [32, "2"],
40
40
  modcontractual_seg: false,
41
41
  mode_facturacio: "atr",
42
- name: "1",
42
+ mode_facturacio_generacio: "atr",
43
+ name: "3",
43
44
  nocutoff: false,
44
45
  notificacio: "titular",
45
- notificacio_email: "carlos@lapunxa.com",
46
- observacions: false,
47
- pagador: [173, "OLIVARES PASTOR, CARLOS"],
48
- pagador_email: "carlos@lapunxa.com",
49
- payment_mode_id: [8, "Domiciliat"],
46
+ notificacio_email: false,
47
+ observacions:
48
+ "\n----- 22/06/2021 19:33 - Administrator1 (admin) ------------------------------\nCanvis realitzats detectats automàticament:\n\n----- 22/06/2021 19:35 - Administrator1 (admin) ------------------------------\nCanvis realitzats detectats automàticament:\n• Codi DH: E3 → E1\n• Codi Tarifa: 2T → 2A\n",
49
+ pagador: [3, "Agrolait"],
50
+ pagador_email: false,
51
+ payment_mode_id: [1, "No Domiciliat"],
50
52
  payment_term: false,
51
- polissa_id: [84, "00038"],
52
- potencia: 6.9,
53
- potencies_periode: "P1: 6.9",
53
+ peatge_directe: true,
54
+ polissa_id: [1, "0001C"],
55
+ potencia: 6,
56
+ potencies_periode: "P1: 6.0",
54
57
  property_unitat_potencia: [85, "kW/dia"],
55
- ref_dist: false,
58
+ ref_dist: "000D",
56
59
  representante_id: false,
57
60
  state: "actiu",
58
61
  tarifa: [1, "2.0A"],
59
- tensio: 230,
60
- tensio_normalitzada: [4, "230"],
61
- tg: "2",
62
- tipo_pago: [6, "Recibo domiciliado"],
63
- tipus: "alta",
62
+ tensio: 127,
63
+ tensio_normalitzada: [1, "127"],
64
+ tg: "1",
65
+ tipo_medida: false,
66
+ tipo_pago: [1, "Demo payment type"],
67
+ tipus: "mod",
64
68
  tipus_vivenda: "habitual",
65
- titular: [173, "OLIVARES PASTOR, CARLOS"],
66
- trafo: 0.0,
69
+ titular: [4, "Camptocamp"],
70
+ trafo: 0,
71
+ versio_sollicitud: false,
72
+ active_id: 33,
73
+ active_ids: [33],
74
+ parent_id: 1,
75
+ uid: 1,
67
76
  },
68
77
  tree: {
69
- arch:
70
- '<tree string="Modificacions contractuals" colors="red:active==0">\n <field name="distribuidora"/>\n <field name="ref_dist" select="1"/>\n <field name="name"/>\n <field name="tipus"/>\n <field name="data_inici"/>\n <field name="data_final"/>\n <field name="active"/>\n <field name="state"/>\n </tree>',
78
+ arch: '<tree string="Modificacions contractuals" colors="red:active==0">\n <field name="distribuidora"/>\n <field name="ref_dist" select="1"/>\n <field name="name"/>\n <field name="tipus"/>\n <field name="data_inici"/>\n <field name="data_final"/>\n <field name="active"/>\n <field name="state"/>\n </tree>',
71
79
  field_parent: false,
72
80
  fields: {
73
81
  active: {
@@ -182,11 +190,11 @@ export default {
182
190
  view_id: 482,
183
191
  },
184
192
  form: {
185
- arch:
186
- '<form string="Modificacions contractuals">\n <group colspan="4">\n <group colspan="2" col="2" rowspan="1">\n <field name="name"/>\n <field name="polissa_id" select="1" readonly="1"/>\n <field name="contract_type"/>\n </group>\n <group colspan="2" col="2" rowspan="1">\n <field name="data_inici" select="1"/>\n <field name="data_final" select="1"/>\n <field name="data_firma_contracte"/>\n </group>\n <group colspan="2" col="4" rowspan="1">\n <field name="state" select="1"/>\n <field name="active" select="1"/>\n <field name="tipus" select="1"/>\n </group>\n <group colspan="2" col="2" rowspan="1">\n <field name="modcontractual_ant"/>\n <field name="modcontractual_seg"/>\n </group>\n </group>\n <notebook>\n <page string="Dades del client">\n <field name="titular" colspan="4"/>\n <group col="4" colspan="4">\n <field name="bono_social_disponible" colspan="2"/>\n </group>\n\n <field name="cnae"/>\n <field name="pagador" colspan="4"/>\n <field name="direccio_pagament" colspan="4"/>\n <field name="enviament"/>\n <group colspan="2" col="2" attrs="{\'invisible\': [(\'enviament\', \'=\', \'postal\')]}">\n <field name="pagador_email"/>\n </group>\n <field name="notificacio" colspan="4"/>\n <group attrs="{\'invisible\': [(\'notificacio\', \'!=\', \'altre_p\')]}" colspan="4">\n <field name="altre_p" colspan="4"/>\n </group>\n <field name="direccio_notificacio" colspan="4"/>\n <group colspan="2" col="2" attrs="{\'invisible\': [(\'enviament\', \'=\', \'postal\')]}">\n <field name="notificacio_email"/>\n </group>\n <field name="tipus_vivenda" colspan="4"/>\n <newline/>\n </page>\n <page string="Facturació"><field name="facturacio" select="1"/>\n <group colspan="2" col="3" attrs="{\'invisible\':[(\'contract_type\', \'!=\', \'09\')]}">\n <field name="expected_consumption"/>\n </group>\n <field name="facturacio_potencia"/>\n <field name="property_unitat_potencia"/>\n <field name="lectura_en_baja"/>\n <field name="llista_preu" select="1"/>\n <field name="payment_term" select="2"/>\n <field name="tipo_pago" colspan="4"/>\n <field name="bank" colspan="4"/>\n <field name="payment_mode_id" colspan="4"/>\n <group col="4" colspan="4">\n <group colspan="2">\n <field name="facturacio_distri"/>\n </group>\n </group>\n </page>\n <page string="CUPS">\n <field name="cups" colspan="4"/>\n </page>\n <page string="Dades tècniques">\n <field name="distribuidora" colspan="4" select="2"/>\n <field name="ref_dist" select="1"/>\n <field name="tarifa"/>\n <field name="potencia"/>\n <field name="tensio"/>\n <field name="lectura_en_baja" select="2"/>\n <field name="trafo"/>\n <field name="tensio_normalitzada"/>\n <field name="potencies_periode" colspan="4"/>\n <field name="comptador" colspan="4"/>\n <field name="tg" select="2"/>\n <field name="condicions_generals_id" select="2"/>\n <field name="autoconsumo" select="2"/>\n <field name="nocutoff"/>\n <button type="action" name="420" colspan="4" string="Actualitzar Potències" icon="gtk-convert" readonly="0"/>\n </page>\n <page string="Contactes">\n <field name="representante_id" colspan="4"/>\n </page>\n <page string="Observacions">\n <field name="observacions" colspan="4" nolabel="1"/>\n </page>\n <page string="Perfils">\n <group colspan="2" col="4" string="Nivells d\'agregació">\n <separator string="Tensió" colspan="1"/>\n <separator string="Tarifa" colspan="1"/>\n <separator string="DH" colspan="1"/>\n <separator string="Tipus" colspan="1"/>\n <field name="agree_tensio" nolabel="1" select="2"/>\n <field name="agree_tarifa" nolabel="1" select="2"/>\n <field name="agree_dh" nolabel="1" select="2"/>\n <field name="agree_tipus" nolabel="1" select="2"/>\n </group>\n </page>\n </notebook>\n <group string="Accions" colspan="4" col="8">\n <button type="object" name="unlink" string="Cancel·lar" states="pendent" icon="gtk-delete"/>\n <button type="action" name="417" string="Imprimir" icon="gtk-print" readonly="0"/>\n <button type="action" name="414" string="Canviar dates" icon="gtk-edit" readonly="0"/>\n <button type="object" name="undo_last_modcontractual" string="Desfer mod. contractual" context="{\'from_model\': \'giscedata.polissa.modcontractual\'}" attrs="{\'invisible\':[(\'state\',\'!=\',\'actiu\')]}" confirm="Aquesta opció no es pot desfer. Vol continuar?"/>\n </group>\n </form>',
193
+ arch: `<form string="Modificacions contractuals">\n <group colspan="4">\n <group colspan="2" col="2" rowspan="1">\n <field name="name"/>\n <field name="polissa_id" select="1" readonly="1"/>\n <field name="contract_type"/>\n </group>\n <group colspan="2" col="2" rowspan="1">\n <field name="create_date" select="1"/>\n <field name="data_inici" select="1"/>\n <field name="data_final" select="1"/>\n <field name="data_firma_contracte"/>\n </group>\n <group colspan="2" col="4" rowspan="1">\n <field name="state" select="1"/>\n <field name="active" select="1"/>\n <field name="tipus" select="1"/>\n </group>\n <group colspan="2" col="2" rowspan="1">\n <field name="modcontractual_ant"/>\n <field name="modcontractual_seg"/>\n </group>\n </group>\n <notebook>\n <page string="Dades del client">\n <field name="titular" colspan="4"/>\n <group col="4" colspan="4">\n <field name="bono_social_disponible" colspan="2"/>\n </group>\n <field name="cnae"/>\n <field name="pagador" colspan="4"/>\n <field name="direccio_pagament" colspan="4"/>\n <field name="enviament"/>\n <group colspan="2" col="2" attrs="{'invisible': [('enviament', '=', 'postal')]}">\n <field name="pagador_email"/>\n </group>\n <field name="notificacio" colspan="4"/>\n <group attrs="{'invisible': [('notificacio', '!=', 'altre_p')]}" colspan="4">\n <field name="altre_p" colspan="4"/>\n </group>\n <field name="direccio_notificacio" colspan="4"/>\n <group colspan="2" col="2" attrs="{'invisible': [('enviament', '=', 'postal')]}">\n <field name="notificacio_email"/>\n </group>\n <field name="tipus_vivenda" colspan="4"/>\n <newline/>\n </page>\n <page string="Facturació"><field name="comissio" select="2"/>\n <group col="4" colspan="4">\n <group colspan="2">\n <field name="facturacio_distri"/>\n </group>\n </group>\n <field name="facturacio" select="1"/>\n <group colspan="2" col="3" attrs="{'invisible':[('contract_type', '!=', '09')]}">\n <field name="expected_consumption"/>\n </group>\n <field name="facturacio_potencia"/>\n <field name="mode_facturacio_generacio" invisible="1"/>\n <field name="mode_facturacio" select="2" invisible="1"/>\n <field name="property_unitat_potencia"/>\n <field name="llista_preu" select="1"/>\n <field name="peatge_directe" select="2"/>\n <field name="payment_term" select="2"/>\n <field name="tipo_pago" colspan="4"/>\n <field name="bank" colspan="4" select="2"/>\n <field name="payment_mode_id" colspan="4"/>\n <field name="es_electrointensiu" select="2"/>\n <field name="codi_sollicitud_electrointensiu"/>\n <field name="versio_sollicitud"/>\n </page>\n <page string="CUPS">\n <field name="cups" select="1" colspan="4"/>\n </page>\n <page string="Dades tècniques">\n <field name="distribuidora" colspan="4" select="2"/>\n <field name="ref_dist" select="1"/>\n <field name="tarifa"/>\n <field name="potencia"/>\n <field name="tensio"/>\n <field name="lectura_en_baja" select="2"/>\n <field name="trafo"/>\n <field name="tensio_normalitzada"/>\n <field name="tipo_medida"/>\n <field name="potencies_periode" colspan="4"/>\n <field name="comptador" colspan="4"/>\n <field name="tg" select="2"/>\n <field name="condicions_generals_id" select="2"/>\n <field name="autoconsumo" select="2"/>\n <field name="nocutoff"/>\n <button type="action" name="420" colspan="4" string="Actualitzar Potències" icon="gtk-convert" readonly="0"/>\n </page>\n <page string="Contactes">\n <field name="representante_id" colspan="4"/>\n </page>\n <page string="Observacions">\n <field name="observacions" colspan="4" nolabel="1"/>\n </page>\n <page string="Agregació">\n <group colspan="2" col="4" string="Nivells d'agregació">\n <separator string="Tensió" colspan="1"/>\n <separator string="Tarifa" colspan="1"/>\n <separator string="DH" colspan="1"/>\n <separator string="Tipus" colspan="1"/>\n <field name="agree_tensio" nolabel="1" select="2"/>\n <field name="agree_tarifa" nolabel="1" select="2"/>\n <field name="agree_dh" nolabel="1" select="2"/>\n <field name="agree_tipus" nolabel="1" select="2"/>\n </group>\n </page>\n </notebook>\n <group string="Tests">\n <button type="action" name="417" string="readonly1" icon="gtk-print" readonly="0"/>\n <button type="action" name="417" string="readonly0" icon="gtk-print" readonly="0"/>\n <button type="action" name="417" string="readonlyVariable1" icon="gtk-print" attrs="{'readonly':[('state','!=','actiu')]}" readonly="0"/>\n <button type="action" name="417" string="readonlyVariable2" icon="gtk-print" attrs="{'readonly':[('state','==','actiu')]}" readonly="0"/>\n\n \n <button type="object" name="417" string="readonly1" icon="gtk-print" readonly="1"/>\n <button type="object" name="417" string="readonly0" icon="gtk-print" readonly="0"/>\n <button type="object" name="417" string="readonlyVariable3" icon="gtk-print" attrs="{'readonly':[('state','!=','actiu')]}"/>\n <button type="object" name="417" string="readonlyVariable4" icon="gtk-print" attrs="{'readonly':[('state','==','actiu')]}"/>\n </group>\n <group string="Accions" colspan="4" col="8">\n <button type="object" name="unlink" string="Cancel·lar" states="pendent" icon="gtk-delete"/>\n <button type="action" name="417" string="Imprimir" icon="gtk-print" readonly="0"/>\n <button type="action" name="414" string="Canviar dates" icon="gtk-edit" readonly="0"/>\n <button type="object" name="undo_last_modcontractual" string="Desfer mod. contractual" context="{'from_model': 'giscedata.polissa.modcontractual'}" attrs="{'invisible':[('state','!=','actiu')]}" confirm="Aquesta opció no es pot desfer. Vol continuar?"/>\n </group>\n </form>`,
187
194
  field_parent: false,
188
195
  fields: {
189
196
  active: {
197
+ is_function: false,
190
198
  readonly: true,
191
199
  required: true,
192
200
  string: "Activa",
@@ -195,6 +203,7 @@ export default {
195
203
  },
196
204
  agree_dh: {
197
205
  digits: [16, 2],
206
+ is_function: true,
198
207
  readonly: 1,
199
208
  size: 2,
200
209
  string: "Codi DH",
@@ -203,6 +212,7 @@ export default {
203
212
  },
204
213
  agree_tarifa: {
205
214
  digits: [16, 2],
215
+ is_function: true,
206
216
  readonly: 1,
207
217
  size: 2,
208
218
  string: "Codi Tarifa",
@@ -211,6 +221,7 @@ export default {
211
221
  },
212
222
  agree_tensio: {
213
223
  digits: [16, 2],
224
+ is_function: true,
214
225
  readonly: 1,
215
226
  size: 2,
216
227
  string: "Codi Tensió",
@@ -219,6 +230,7 @@ export default {
219
230
  },
220
231
  agree_tipus: {
221
232
  digits: [16, 2],
233
+ is_function: true,
222
234
  readonly: 1,
223
235
  size: 2,
224
236
  string: "Tipus Punt",
@@ -228,6 +240,7 @@ export default {
228
240
  altre_p: {
229
241
  context: "",
230
242
  domain: [],
243
+ is_function: false,
231
244
  relation: "res.partner",
232
245
  size: 64,
233
246
  string: "Contacte alternatiu",
@@ -236,79 +249,98 @@ export default {
236
249
  },
237
250
  autoconsumo: {
238
251
  help: "Tipus de autoconsum del contracte segons RD. 900/2015",
252
+ is_function: false,
239
253
  readonly: true,
240
254
  selection: [
241
- ["00", "Sin Autoconsumo"],
242
- ["01", "Autoconsumo Tipo 1"],
243
- ["2A", "Autoconsumo tipo 2 (según el Art. 13. 2. a) RD 900/2015)"],
244
- ["2B", "Autoconsumo tipo 2 (según el Art. 13. 2. b) RD 900/2015)"],
255
+ ["00", "[00] - Sin Autoconsumo"],
256
+ ["01", "[01] - Autoconsumo Tipo 1"],
257
+ [
258
+ "2A",
259
+ "[2A] - Autoconsumo tipo 2 (según el Art. 13. 2. a) RD 900/2015)",
260
+ ],
261
+ [
262
+ "2B",
263
+ "[2B] - Autoconsumo tipo 2 (según el Art. 13. 2. b) RD 900/2015)",
264
+ ],
245
265
  [
246
266
  "2G",
247
- "Servicios auxiliares de generación ligada a un autoconsumo tipo 2",
267
+ "[2G] - Servicios auxiliares de generación ligada a un autoconsumo tipo 2",
248
268
  ],
249
- ["31", "Sin Excedentes Individual – Consumo"],
250
- ["32", "Sin Excedentes Colectivo – Consumo"],
269
+ ["31", "[31] - Sin Excedentes Individual – Consumo"],
270
+ ["32", "[32] - Sin Excedentes Colectivo – Consumo"],
251
271
  [
252
272
  "33",
253
- "Sin Excedentes Colectivo con acuerdo de compensación – Consumo",
273
+ "[33] - Sin Excedentes Colectivo con acuerdo de compensación – Consumo",
274
+ ],
275
+ ["41", "[41] - Con excedentes y compensación Individual - Consumo"],
276
+ ["42", "[42] - Con excedentes y compensación Colectivo– Consumo"],
277
+ [
278
+ "43",
279
+ "[43] - Con excedentes y compensación Colectivo a través de red– Consumo",
254
280
  ],
255
- ["41", "Con excedentes y compensación Individual - Consumo "],
256
- ["42", "Con excedentes y compensación Colectivo– Consumo"],
257
281
  [
258
282
  "51",
259
- "Con excedentes sin compensación Individual sin cto de SSAA en Red Interior– Consumo",
283
+ "[51] - Con excedentes sin compensación Individual sin cto de SSAA en Red Interior– Consumo",
260
284
  ],
261
285
  [
262
286
  "52",
263
- "Con excedentes sin compensación Colectivo sin cto de SSAA en Red Interior– Consumo",
287
+ "[52] - Con excedentes sin compensación Colectivo sin cto de SSAA en Red Interior– Consumo",
264
288
  ],
265
289
  [
266
290
  "53",
267
- "Con excedentes sin compensación Individual con cto SSAA en Red Interior– Consumo",
291
+ "[53] - Con excedentes sin compensación Individual con cto SSAA en Red Interior– Consumo",
268
292
  ],
269
293
  [
270
294
  "54",
271
- "Con excedentes sin compensación individual con cto SSAA en Red Interior– SSAA",
295
+ "[54] - Con excedentes sin compensación individual con cto SSAA en Red Interior– SSAA",
272
296
  ],
273
297
  [
274
298
  "55",
275
- "Con excedentes sin compensación Colectivo/en Red Interior– Consumo",
299
+ "[55] - Con excedentes sin compensación Colectivo/en Red Interior– Consumo",
276
300
  ],
277
301
  [
278
302
  "56",
279
- "Con excedentes sin compensación Colectivo/en Red Interior - SSAA",
303
+ "[56] - Con excedentes sin compensación Colectivo/en Red Interior - SSAA",
304
+ ],
305
+ [
306
+ "57",
307
+ "[57] - Con excedentes sin compensación Colectivo sin cto de SSAA (despreciable) en red interior – Consumo",
308
+ ],
309
+ [
310
+ "58",
311
+ "[58] - Con excedentes sin compensación Colectivo sin cto de SSAA a través de red - Consumo",
280
312
  ],
281
313
  [
282
314
  "61",
283
- "Con excedentes sin compensación Individual con cto SSAA a través de red – Consumo",
315
+ "[61] - Con excedentes sin compensación Individual con cto SSAA a través de red – Consumo",
284
316
  ],
285
317
  [
286
318
  "62",
287
- "Con excedentes sin compensación individual con cto SSAA a través de red – SSAA",
319
+ "[62] - Con excedentes sin compensación individual con cto SSAA a través de red – SSAA",
288
320
  ],
289
321
  [
290
322
  "63",
291
- "Con excedentes sin compensación Colectivo a través de red – Consumo",
323
+ "[63] - Con excedentes sin compensación Colectivo a través de red – Consumo",
292
324
  ],
293
325
  [
294
326
  "64",
295
- "Con excedentes sin compensación Colectivo a través de red - SSAA",
327
+ "[64] - Con excedentes sin compensación Colectivo a través de red - SSAA",
296
328
  ],
297
329
  [
298
330
  "71",
299
- "Con excedentes sin compensación Individual con cto SSAA a través de red y red interior – Consumo",
331
+ "[71] - Con excedentes sin compensación Individual con cto SSAA a través de red y red interior – Consumo",
300
332
  ],
301
333
  [
302
334
  "72",
303
- "Con excedentes sin compensación individual con cto SSAA a través de red y red interior – SSAA",
335
+ "[72] - Con excedentes sin compensación individual con cto SSAA a través de red y red interior – SSAA",
304
336
  ],
305
337
  [
306
338
  "73",
307
- "Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior – Consumo",
339
+ "[73] - Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior – Consumo",
308
340
  ],
309
341
  [
310
342
  "74",
311
- "Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior - SSAA",
343
+ "[74] - Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior - SSAA",
312
344
  ],
313
345
  ],
314
346
  states: {
@@ -323,6 +355,7 @@ export default {
323
355
  bank: {
324
356
  context: "",
325
357
  domain: [],
358
+ is_function: false,
326
359
  relation: "res.partner.bank",
327
360
  size: 64,
328
361
  string: "Compte bancari",
@@ -330,6 +363,7 @@ export default {
330
363
  views: {},
331
364
  },
332
365
  bono_social_disponible: {
366
+ is_function: false,
333
367
  string: "Bo social disponible",
334
368
  type: "boolean",
335
369
  views: {},
@@ -337,14 +371,35 @@ export default {
337
371
  cnae: {
338
372
  context: "",
339
373
  domain: [],
374
+ is_function: false,
340
375
  relation: "giscemisc.cnae",
341
376
  size: 64,
342
377
  string: "CNAE",
343
378
  type: "many2one",
344
379
  views: {},
345
380
  },
381
+ codi_sollicitud_electrointensiu: {
382
+ is_function: false,
383
+ size: 25,
384
+ string: "Codi sol·licitud",
385
+ type: "char",
386
+ views: {},
387
+ },
388
+ comissio: {
389
+ is_function: false,
390
+ select: 2,
391
+ selection: [
392
+ ["giscedata.polissa.comissio.kw", "Comissió per Kw Facturats"],
393
+ ["giscedata.polissa.comissio.unica", "Comissió Única"],
394
+ ],
395
+ size: 256,
396
+ string: "Comissió Assignada",
397
+ type: "reference",
398
+ views: {},
399
+ },
346
400
  comptador: {
347
401
  digits: [16, 2],
402
+ is_function: true,
348
403
  readonly: 1,
349
404
  size: 64,
350
405
  string: "Comptador",
@@ -354,6 +409,7 @@ export default {
354
409
  condicions_generals_id: {
355
410
  context: "",
356
411
  domain: [],
412
+ is_function: false,
357
413
  relation: "giscedata.polissa.condicions.generals",
358
414
  size: 64,
359
415
  string: "Condicions generals",
@@ -362,12 +418,13 @@ export default {
362
418
  },
363
419
  contract_type: {
364
420
  help: "Distintos tipos de contratos. Ver REAL DECRETO 1164/2001",
421
+ is_function: false,
365
422
  required: true,
366
423
  selection: [
367
424
  ["01", "Anual"],
368
425
  ["02", "Eventual medido"],
369
426
  ["03", "Temporada"],
370
- ["05", "Suministro Régimen especial"],
427
+ ["05", "RECORE"],
371
428
  ["07", "Suministro de Obras"],
372
429
  ["08", "Suministro de Socorro"],
373
430
  ["09", "Eventual a tanto alzado"],
@@ -379,9 +436,17 @@ export default {
379
436
  type: "selection",
380
437
  views: {},
381
438
  },
439
+ create_date: {
440
+ is_function: false,
441
+ readonly: true,
442
+ string: "Date Created",
443
+ type: "datetime",
444
+ views: {},
445
+ },
382
446
  cups: {
383
447
  context: "",
384
448
  domain: [],
449
+ is_function: false,
385
450
  relation: "giscedata.cups.ps",
386
451
  required: true,
387
452
  size: 64,
@@ -390,17 +455,20 @@ export default {
390
455
  views: {},
391
456
  },
392
457
  data_final: {
458
+ is_function: false,
393
459
  select: true,
394
460
  string: "Data final",
395
461
  type: "date",
396
462
  views: {},
397
463
  },
398
464
  data_firma_contracte: {
465
+ is_function: false,
399
466
  string: "Data firma contracte",
400
467
  type: "datetime",
401
468
  views: {},
402
469
  },
403
470
  data_inici: {
471
+ is_function: false,
404
472
  required: true,
405
473
  select: true,
406
474
  string: "Data inici",
@@ -410,6 +478,7 @@ export default {
410
478
  direccio_notificacio: {
411
479
  context: "",
412
480
  domain: [],
481
+ is_function: false,
413
482
  relation: "res.partner.address",
414
483
  size: 64,
415
484
  string: "Adreça notificació",
@@ -419,6 +488,7 @@ export default {
419
488
  direccio_pagament: {
420
489
  context: "",
421
490
  domain: [],
491
+ is_function: false,
422
492
  relation: "res.partner.address",
423
493
  size: 64,
424
494
  string: "Adreça fiscal",
@@ -428,6 +498,7 @@ export default {
428
498
  distribuidora: {
429
499
  context: "",
430
500
  domain: [["supplier", "=", 1]],
501
+ is_function: false,
431
502
  relation: "res.partner",
432
503
  required: true,
433
504
  size: 64,
@@ -436,6 +507,7 @@ export default {
436
507
  views: {},
437
508
  },
438
509
  enviament: {
510
+ is_function: false,
439
511
  selection: [
440
512
  ["postal", "Correu postal"],
441
513
  ["email", "E-mail"],
@@ -445,15 +517,22 @@ export default {
445
517
  type: "selection",
446
518
  views: {},
447
519
  },
520
+ es_electrointensiu: {
521
+ is_function: false,
522
+ string: "Consumidor electrointensiu",
523
+ type: "boolean",
524
+ views: {},
525
+ },
448
526
  expected_consumption: {
449
- help:
450
- "Aquest camp calcula el consum total pactat per contractes eventuals sense comptador",
527
+ help: "Aquest camp calcula el consum total pactat per contractes eventuals sense comptador",
528
+ is_function: false,
451
529
  readonly: true,
452
530
  string: "Consum pactat",
453
531
  type: "float",
454
532
  views: {},
455
533
  },
456
534
  facturacio: {
535
+ is_function: false,
457
536
  required: true,
458
537
  selection: [
459
538
  [1, "Mensual"],
@@ -465,6 +544,7 @@ export default {
465
544
  },
466
545
  facturacio_distri: {
467
546
  help: "Periodicitat de facturació de distribuidora",
547
+ is_function: false,
468
548
  selection: [
469
549
  [1, "Mensual"],
470
550
  [2, "Bimestral"],
@@ -474,6 +554,7 @@ export default {
474
554
  views: {},
475
555
  },
476
556
  facturacio_potencia: {
557
+ is_function: false,
477
558
  required: true,
478
559
  selection: [
479
560
  ["max", "Maxímetro"],
@@ -485,6 +566,7 @@ export default {
485
566
  views: {},
486
567
  },
487
568
  lectura_en_baja: {
569
+ is_function: false,
488
570
  required: true,
489
571
  string: "Lectura en baixa",
490
572
  type: "boolean",
@@ -493,6 +575,7 @@ export default {
493
575
  llista_preu: {
494
576
  context: "",
495
577
  domain: [],
578
+ is_function: false,
496
579
  relation: "product.pricelist",
497
580
  size: 64,
498
581
  string: "Tarifa Comercialitzadora",
@@ -502,6 +585,7 @@ export default {
502
585
  modcontractual_ant: {
503
586
  context: "",
504
587
  domain: [],
588
+ is_function: false,
505
589
  relation: "giscedata.polissa.modcontractual",
506
590
  size: 64,
507
591
  string: "Modificació anterior",
@@ -511,13 +595,29 @@ export default {
511
595
  modcontractual_seg: {
512
596
  context: "",
513
597
  domain: [],
598
+ is_function: false,
514
599
  relation: "giscedata.polissa.modcontractual",
515
600
  size: 64,
516
601
  string: "Modificació següent",
517
602
  type: "many2one",
518
603
  views: {},
519
604
  },
605
+ mode_facturacio: {
606
+ is_function: false,
607
+ selection: [["atr", "ATR"]],
608
+ string: "Mode facturació",
609
+ type: "selection",
610
+ views: {},
611
+ },
612
+ mode_facturacio_generacio: {
613
+ is_function: false,
614
+ selection: [["atr", "ATR"]],
615
+ string: "Mode facturació generacio",
616
+ type: "selection",
617
+ views: {},
618
+ },
520
619
  name: {
620
+ is_function: false,
521
621
  readonly: true,
522
622
  required: true,
523
623
  size: 64,
@@ -528,6 +628,7 @@ export default {
528
628
  nocutoff: {
529
629
  context: "",
530
630
  domain: [],
631
+ is_function: false,
531
632
  relation: "giscedata.polissa.nocutoff",
532
633
  size: 64,
533
634
  string: "Subministrament no tallable",
@@ -535,6 +636,7 @@ export default {
535
636
  views: {},
536
637
  },
537
638
  notificacio: {
639
+ is_function: false,
538
640
  required: true,
539
641
  selection: [
540
642
  ["titular", "Titular"],
@@ -546,6 +648,7 @@ export default {
546
648
  views: {},
547
649
  },
548
650
  notificacio_email: {
651
+ is_function: false,
549
652
  readonly: true,
550
653
  size: 240,
551
654
  string: "Email dir. notif.",
@@ -553,6 +656,7 @@ export default {
553
656
  views: {},
554
657
  },
555
658
  observacions: {
659
+ is_function: false,
556
660
  string: "Observacions",
557
661
  type: "text",
558
662
  views: {},
@@ -560,6 +664,7 @@ export default {
560
664
  pagador: {
561
665
  context: "",
562
666
  domain: [],
667
+ is_function: false,
563
668
  relation: "res.partner",
564
669
  required: true,
565
670
  size: 64,
@@ -568,6 +673,7 @@ export default {
568
673
  views: {},
569
674
  },
570
675
  pagador_email: {
676
+ is_function: false,
571
677
  readonly: true,
572
678
  size: 240,
573
679
  string: "Email dir. fiscal",
@@ -577,6 +683,7 @@ export default {
577
683
  payment_mode_id: {
578
684
  context: "",
579
685
  domain: [],
686
+ is_function: false,
580
687
  relation: "payment.mode",
581
688
  size: 64,
582
689
  string: "Grup de pagament",
@@ -586,15 +693,24 @@ export default {
586
693
  payment_term: {
587
694
  context: "",
588
695
  domain: [],
696
+ is_function: false,
589
697
  relation: "account.payment.term",
590
698
  size: 64,
591
699
  string: "Plazo de pago",
592
700
  type: "many2one",
593
701
  views: {},
594
702
  },
703
+ peatge_directe: {
704
+ is_function: false,
705
+ required: true,
706
+ string: "Peatge directe",
707
+ type: "boolean",
708
+ views: {},
709
+ },
595
710
  polissa_id: {
596
711
  context: "",
597
712
  domain: [],
713
+ is_function: false,
598
714
  relation: "giscedata.polissa",
599
715
  required: true,
600
716
  select: true,
@@ -605,12 +721,14 @@ export default {
605
721
  },
606
722
  potencia: {
607
723
  digits: [16, 3],
724
+ is_function: false,
608
725
  required: true,
609
726
  string: "Potència contractada (kW)",
610
727
  type: "float",
611
728
  views: {},
612
729
  },
613
730
  potencies_periode: {
731
+ is_function: false,
614
732
  readonly: true,
615
733
  size: 256,
616
734
  string: "Potències contractades",
@@ -622,6 +740,7 @@ export default {
622
740
  digits: [16, 2],
623
741
  domain: "[('category_id.name', '=', 'POT ELEC')]",
624
742
  help: "Amb quina unitat es vol facturar la potència",
743
+ is_function: true,
625
744
  relation: "product.uom",
626
745
  required: true,
627
746
  string: "Unitat de facturació potència",
@@ -629,6 +748,7 @@ export default {
629
748
  views: {},
630
749
  },
631
750
  ref_dist: {
751
+ is_function: false,
632
752
  size: 60,
633
753
  string: "Referència distribuidora",
634
754
  type: "char",
@@ -637,6 +757,7 @@ export default {
637
757
  representante_id: {
638
758
  context: "",
639
759
  domain: [],
760
+ is_function: false,
640
761
  relation: "res.partner",
641
762
  size: 64,
642
763
  string: "Representante",
@@ -644,16 +765,17 @@ export default {
644
765
  views: {},
645
766
  },
646
767
  state: {
768
+ is_function: false,
647
769
  readonly: true,
648
770
  required: true,
649
771
  selection: [
650
- ["esborrany", "Esborrany"],
651
- ["actiu", "Actiu"],
652
- ["pendent", "Pendent d'activació"],
653
- ["baixa", "Baixa"],
654
- ["baixa2", "Baixa per modificació"],
655
- ["baixa3", "Baixa per renovació"],
656
- ["baixa4", "Baixa per nova pòlissa"],
772
+ ["esborrany", "Borrador"],
773
+ ["actiu", "Activo"],
774
+ ["pendent", "Pendiente de activación"],
775
+ ["baixa", "Baja"],
776
+ ["baixa2", "Baja por modificación"],
777
+ ["baixa3", "Baja por renovación"],
778
+ ["baixa4", "Baja por nueva póliza"],
657
779
  ],
658
780
  string: "Estat",
659
781
  type: "selection",
@@ -662,6 +784,7 @@ export default {
662
784
  tarifa: {
663
785
  context: "",
664
786
  domain: [],
787
+ is_function: false,
665
788
  relation: "giscedata.polissa.tarifa",
666
789
  required: true,
667
790
  size: 64,
@@ -670,6 +793,7 @@ export default {
670
793
  views: {},
671
794
  },
672
795
  tensio: {
796
+ is_function: false,
673
797
  required: true,
674
798
  string: "Tensió (V)",
675
799
  type: "integer",
@@ -678,6 +802,7 @@ export default {
678
802
  tensio_normalitzada: {
679
803
  context: "",
680
804
  domain: [],
805
+ is_function: false,
681
806
  relation: "giscedata.tensions.tensio",
682
807
  required: true,
683
808
  size: 64,
@@ -687,6 +812,7 @@ export default {
687
812
  },
688
813
  tg: {
689
814
  help: "Telegestió operativa amb o sense corba de càrrega (CCH)",
815
+ is_function: false,
690
816
  selection: [
691
817
  ["1", "Operativa amb CCH"],
692
818
  ["2", "No operativa"],
@@ -696,9 +822,18 @@ export default {
696
822
  type: "selection",
697
823
  views: {},
698
824
  },
825
+ tipo_medida: {
826
+ is_function: false,
827
+ readonly: true,
828
+ size: 2,
829
+ string: "Tipus de Punt de Mesura",
830
+ type: "char",
831
+ views: {},
832
+ },
699
833
  tipo_pago: {
700
834
  context: "",
701
835
  domain: [],
836
+ is_function: false,
702
837
  relation: "payment.type",
703
838
  required: true,
704
839
  size: 64,
@@ -707,18 +842,20 @@ export default {
707
842
  views: {},
708
843
  },
709
844
  tipus: {
845
+ is_function: false,
710
846
  required: true,
711
847
  selection: [
712
848
  ["alta", "Alta"],
713
- ["baixa", "Baixa"],
714
- ["mod", "Modificació"],
715
- ["reno", "Renovació"],
849
+ ["baixa", "Baja"],
850
+ ["mod", "Modificación"],
851
+ ["reno", "Renovación"],
716
852
  ],
717
853
  string: "Tipus",
718
854
  type: "selection",
719
855
  views: {},
720
856
  },
721
857
  tipus_vivenda: {
858
+ is_function: false,
722
859
  readonly: true,
723
860
  selection: [
724
861
  ["habitual", "Habitual"],
@@ -731,6 +868,7 @@ export default {
731
868
  titular: {
732
869
  context: "",
733
870
  domain: [],
871
+ is_function: false,
734
872
  relation: "res.partner",
735
873
  size: 64,
736
874
  string: "Titular",
@@ -738,11 +876,19 @@ export default {
738
876
  views: {},
739
877
  },
740
878
  trafo: {
879
+ is_function: false,
741
880
  required: true,
742
881
  string: "Trafo KVA",
743
882
  type: "float",
744
883
  views: {},
745
884
  },
885
+ versio_sollicitud: {
886
+ is_function: false,
887
+ size: 6,
888
+ string: "Versió sol.licitud",
889
+ type: "char",
890
+ views: {},
891
+ },
746
892
  },
747
893
  model: "giscedata.polissa.modcontractual",
748
894
  name: "giscedata.polissa.modcontractual.form",