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