@gisce/react-ooui 1.5.1 → 1.5.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +73 -42
- 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 +4 -5
- package/src/context/ContentRootContext.tsx +61 -54
- package/src/context/TabManagerContext.tsx +3 -4
- package/src/helpers/dynamicColumnsHelper.ts +1 -1
- package/src/helpers/filesHelper.ts +7 -7
- package/src/helpers/formHelper.ts +23 -24
- package/src/helpers/one2manyHelper.ts +6 -6
- package/src/helpers/searchHelper.ts +8 -5
- package/src/helpers/treeHelper.ts +7 -7
- package/src/helpers/viewHelper.ts +2 -2
- package/src/hooks/useExport.ts +2 -3
- package/src/hooks/useSearch.ts +8 -8
- package/src/index.ts +4 -0
- package/src/stories/Binary.stories.tsx +0 -3
- package/src/stories/Boolean.stories.tsx +0 -3
- package/src/stories/Button.stories.tsx +8 -14
- package/src/stories/Char.stories.tsx +0 -3
- package/src/stories/FiberGrid.stories.tsx +0 -3
- package/src/stories/Float.stories.tsx +0 -3
- package/src/stories/FloatTime.stories.tsx +0 -3
- package/src/stories/Image.stories.tsx +0 -3
- package/src/stories/Integer.stories.tsx +0 -3
- package/src/stories/Label.stories.tsx +0 -3
- package/src/stories/Many2one.stories.tsx +0 -3
- package/src/stories/One2many.stories.tsx +4 -11
- package/src/stories/ProgressBar.stories.tsx +0 -3
- package/src/stories/Reference.stories.tsx +0 -3
- package/src/stories/Selection.stories.tsx +0 -3
- package/src/stories/Separator.stories.tsx +3 -7
- package/src/stories/Text.stories.tsx +0 -3
- package/src/stories/containers/Group.stories.tsx +0 -5
- package/src/stories/containers/NewLine.stories.tsx +0 -4
- package/src/stories/containers/Notebook.stories.tsx +0 -5
- package/src/stories/custom/Avatar.stories.tsx +0 -1
- package/src/stories/custom/ButtonGroup.stories.tsx +36 -23
- package/src/stories/custom/CodeEditor.stories.tsx +1 -4
- package/src/stories/custom/Indicator.stories.tsx +3 -11
- package/src/stories/custom/Markdown.stories.tsx +2 -6
- package/src/stories/custom/MultiCheckbox.stories.tsx +20 -15
- package/src/stories/custom/Radio.stories.tsx +13 -16
- package/src/stories/custom/Steps.stories.tsx +7 -5
- package/src/stories/custom/Switch.stories.tsx +0 -3
- package/src/stories/custom/Tag.stories.tsx +17 -11
- package/src/stories/custom/Tags.stories.tsx +20 -16
- package/src/stories/forms/PreferencesForm.stories.tsx +0 -4
- package/src/stories/ui/ActionBar.stories.tsx +0 -3
- package/src/stories/ui/FavouriteButton.stories.tsx +0 -3
- package/src/stories/ui/GoToResourceModal.stories.tsx +0 -3
- package/src/stories/views/SearchTree.stories.tsx +43 -89
- package/src/stories/views/Tab.stories.tsx +0 -3
- package/src/stories/views/TabsAndContent.stories.tsx +0 -3
- package/src/stories/views/Tree.stories.jsx +0 -4
- package/src/stories/views/searchFilter/DateRangePicker.stories.tsx +0 -3
- package/src/stories/views/searchFilter/DateTimeRangePicker.stories.tsx +0 -3
- package/src/stories/views/searchFilter/PairFields.stories.tsx +0 -3
- package/src/stories/views/searchFilter/SearchFilter.stories.tsx +0 -4
- package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +0 -4
- package/src/types/index.ts +94 -43
- package/src/ui/FavouriteButton.tsx +2 -3
- package/src/views/ActionView.tsx +12 -11
- package/src/views/RootView.tsx +5 -6
- package/src/widgets/base/Binary.tsx +2 -2
- package/src/widgets/base/Boolean.tsx +1 -2
- 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 +6 -1
- package/src/widgets/base/MultiSelection.tsx +1 -2
- package/src/widgets/base/Selection.tsx +11 -5
- package/src/widgets/base/Time.tsx +13 -12
- package/src/widgets/base/many2one/Many2one.tsx +7 -8
- package/src/widgets/base/many2one/Many2oneSuffix.tsx +23 -12
- package/src/widgets/base/one2many/One2manyInput.tsx +13 -14
- package/src/widgets/containers/Notebook.tsx +9 -2
- package/src/widgets/custom/ButtonGroup.tsx +13 -10
- package/src/widgets/custom/CodeEditor.tsx +7 -3
- package/src/widgets/custom/Comments.tsx +76 -70
- package/src/widgets/custom/Indicator.tsx +1 -2
- package/src/widgets/custom/MultiCheckbox.tsx +2 -2
- package/src/widgets/custom/Tag.tsx +20 -16
- 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 +9 -10
- package/src/widgets/views/Graph/GraphIndicator.tsx +7 -7
- package/src/widgets/views/SearchTree.tsx +2 -2
- package/src/widgets/views/Tree.tsx +15 -16
- package/src/widgets/views/searchFilter/DateTimeRangePicker.tsx +1 -3
- package/dist/ConnectionProvider.d.ts +0 -7
- package/dist/ConnectionProvider.d.ts.map +0 -1
- package/dist/actionbar/ActionButton.d.ts +0 -13
- package/dist/actionbar/ActionButton.d.ts.map +0 -1
- package/dist/actionbar/AttachmentsButton.d.ts +0 -12
- package/dist/actionbar/AttachmentsButton.d.ts.map +0 -1
- package/dist/actionbar/AttachmentsButtonWrapper.d.ts +0 -19
- package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +0 -1
- package/dist/actionbar/ButtonWithBadge.d.ts +0 -8
- package/dist/actionbar/ButtonWithBadge.d.ts.map +0 -1
- package/dist/actionbar/ChangeViewButton.d.ts +0 -13
- package/dist/actionbar/ChangeViewButton.d.ts.map +0 -1
- package/dist/actionbar/DashboardActionBar.d.ts +0 -4
- package/dist/actionbar/DashboardActionBar.d.ts.map +0 -1
- package/dist/actionbar/DropdownButton.d.ts +0 -12
- package/dist/actionbar/DropdownButton.d.ts.map +0 -1
- package/dist/actionbar/FormActionBar.d.ts +0 -6
- package/dist/actionbar/FormActionBar.d.ts.map +0 -1
- package/dist/actionbar/GraphActionBar.d.ts +0 -6
- package/dist/actionbar/GraphActionBar.d.ts.map +0 -1
- package/dist/actionbar/NewButton.d.ts +0 -7
- package/dist/actionbar/NewButton.d.ts.map +0 -1
- package/dist/actionbar/SearchBar.d.ts +0 -9
- package/dist/actionbar/SearchBar.d.ts.map +0 -1
- package/dist/actionbar/TreeActionBar.d.ts +0 -9
- package/dist/actionbar/TreeActionBar.d.ts.map +0 -1
- package/dist/common/ButtonWithTooltip.d.ts +0 -8
- package/dist/common/ButtonWithTooltip.d.ts.map +0 -1
- package/dist/common/DatePicker.d.ts +0 -20
- package/dist/common/DatePicker.d.ts.map +0 -1
- package/dist/common/Field.d.ts +0 -14
- package/dist/common/Field.d.ts.map +0 -1
- package/dist/common/SelectAllRecordsRow.d.ts +0 -10
- package/dist/common/SelectAllRecordsRow.d.ts.map +0 -1
- package/dist/context/ActionViewContext.d.ts +0 -65
- package/dist/context/ActionViewContext.d.ts.map +0 -1
- package/dist/context/ConfigContext.d.ts +0 -7
- package/dist/context/ConfigContext.d.ts.map +0 -1
- package/dist/context/ContentRootContext.d.ts +0 -19
- package/dist/context/ContentRootContext.d.ts.map +0 -1
- package/dist/context/DashboardActionContext.d.ts +0 -19
- package/dist/context/DashboardActionContext.d.ts.map +0 -1
- package/dist/context/FormContext.d.ts +0 -35
- package/dist/context/FormContext.d.ts.map +0 -1
- package/dist/context/FormModalContext.d.ts +0 -11
- package/dist/context/FormModalContext.d.ts.map +0 -1
- package/dist/context/LocaleContext.d.ts +0 -14
- package/dist/context/LocaleContext.d.ts.map +0 -1
- package/dist/context/One2manyContext.d.ts +0 -17
- package/dist/context/One2manyContext.d.ts.map +0 -1
- package/dist/context/TabManagerContext.d.ts +0 -50
- package/dist/context/TabManagerContext.d.ts.map +0 -1
- package/dist/helpers/containerHelper.d.ts +0 -22
- package/dist/helpers/containerHelper.d.ts.map +0 -1
- package/dist/helpers/dynamicColumnsHelper.d.ts +0 -8
- package/dist/helpers/dynamicColumnsHelper.d.ts.map +0 -1
- package/dist/helpers/errorHelper.d.ts +0 -6
- package/dist/helpers/errorHelper.d.ts.map +0 -1
- package/dist/helpers/filesHelper.d.ts +0 -8
- package/dist/helpers/filesHelper.d.ts.map +0 -1
- package/dist/helpers/formHelper.d.ts +0 -36
- package/dist/helpers/formHelper.d.ts.map +0 -1
- package/dist/helpers/iconMapper.d.ts +0 -13
- package/dist/helpers/iconMapper.d.ts.map +0 -1
- package/dist/helpers/logInfoHelper.d.ts +0 -3
- package/dist/helpers/logInfoHelper.d.ts.map +0 -1
- package/dist/helpers/one2manyHelper.d.ts +0 -37
- package/dist/helpers/one2manyHelper.d.ts.map +0 -1
- package/dist/helpers/searchHelper.d.ts +0 -6
- package/dist/helpers/searchHelper.d.ts.map +0 -1
- package/dist/helpers/timeHelper.d.ts +0 -4
- package/dist/helpers/timeHelper.d.ts.map +0 -1
- package/dist/helpers/treeHelper.d.ts +0 -23
- package/dist/helpers/treeHelper.d.ts.map +0 -1
- package/dist/helpers/viewHelper.d.ts +0 -10
- package/dist/helpers/viewHelper.d.ts.map +0 -1
- package/dist/hooks/useExport.d.ts +0 -44
- package/dist/hooks/useExport.d.ts.map +0 -1
- package/dist/hooks/useSearch.d.ts +0 -56
- package/dist/hooks/useSearch.d.ts.map +0 -1
- package/dist/hooks/useWindowDimensions.d.ts +0 -7
- package/dist/hooks/useWindowDimensions.d.ts.map +0 -1
- package/dist/index.d.ts +0 -57
- package/dist/index.d.ts.map +0 -1
- package/dist/locales/ca_ES.d.ts +0 -93
- package/dist/locales/ca_ES.d.ts.map +0 -1
- package/dist/locales/en_US.d.ts +0 -93
- package/dist/locales/en_US.d.ts.map +0 -1
- package/dist/locales/es_ES.d.ts +0 -93
- package/dist/locales/es_ES.d.ts.map +0 -1
- package/dist/react-ooui.es.js +0 -11763
- package/dist/react-ooui.es.js.map +0 -1
- package/dist/react-ooui.umd.js +0 -42
- package/dist/react-ooui.umd.js.map +0 -1
- package/dist/style.css +0 -1
- package/dist/types/index.d.ts +0 -256
- package/dist/types/index.d.ts.map +0 -1
- package/dist/ui/ActionErrorDialog.d.ts +0 -3
- package/dist/ui/ActionErrorDialog.d.ts.map +0 -1
- package/dist/ui/ConfirmDialog.d.ts +0 -7
- package/dist/ui/ConfirmDialog.d.ts.map +0 -1
- package/dist/ui/ErrorAlert.d.ts +0 -6
- package/dist/ui/ErrorAlert.d.ts.map +0 -1
- package/dist/ui/FavouriteButton.d.ts +0 -26
- package/dist/ui/FavouriteButton.d.ts.map +0 -1
- package/dist/ui/FormErrorsDialog.d.ts +0 -3
- package/dist/ui/FormErrorsDialog.d.ts.map +0 -1
- package/dist/ui/GenericErrorDialog.d.ts +0 -3
- package/dist/ui/GenericErrorDialog.d.ts.map +0 -1
- package/dist/ui/GoToResourceModal.d.ts +0 -10
- package/dist/ui/GoToResourceModal.d.ts.map +0 -1
- package/dist/ui/InfoDialog.d.ts +0 -3
- package/dist/ui/InfoDialog.d.ts.map +0 -1
- package/dist/ui/RefreshItemDialog.d.ts +0 -7
- package/dist/ui/RefreshItemDialog.d.ts.map +0 -1
- package/dist/ui/RemoveItemDialog.d.ts +0 -6
- package/dist/ui/RemoveItemDialog.d.ts.map +0 -1
- package/dist/ui/TitleHeader.d.ts +0 -8
- package/dist/ui/TitleHeader.d.ts.map +0 -1
- package/dist/ui/UnlinkItemDialog.d.ts +0 -6
- package/dist/ui/UnlinkItemDialog.d.ts.map +0 -1
- package/dist/ui/UnsavedChangesDialog.d.ts +0 -7
- package/dist/ui/UnsavedChangesDialog.d.ts.map +0 -1
- package/dist/ui/WarningDialog.d.ts +0 -3
- package/dist/ui/WarningDialog.d.ts.map +0 -1
- package/dist/views/ActionView.d.ts +0 -22
- package/dist/views/ActionView.d.ts.map +0 -1
- package/dist/views/CurrentTabContent.d.ts +0 -4
- package/dist/views/CurrentTabContent.d.ts.map +0 -1
- package/dist/views/RootView.d.ts +0 -14
- package/dist/views/RootView.d.ts.map +0 -1
- package/dist/views/TabContent.d.ts +0 -8
- package/dist/views/TabContent.d.ts.map +0 -1
- package/dist/views/TabSelector.d.ts +0 -4
- package/dist/views/TabSelector.d.ts.map +0 -1
- package/dist/views/Welcome.d.ts +0 -4
- package/dist/views/Welcome.d.ts.map +0 -1
- package/dist/views/actionViews/DashboardActionView.d.ts +0 -7
- package/dist/views/actionViews/DashboardActionView.d.ts.map +0 -1
- package/dist/views/actionViews/FormActionView.d.ts +0 -18
- package/dist/views/actionViews/FormActionView.d.ts.map +0 -1
- package/dist/views/actionViews/GraphActionView.d.ts +0 -13
- package/dist/views/actionViews/GraphActionView.d.ts.map +0 -1
- package/dist/views/actionViews/TreeActionView.d.ts +0 -20
- package/dist/views/actionViews/TreeActionView.d.ts.map +0 -1
- package/dist/views/tabs/Tab.d.ts +0 -11
- package/dist/views/tabs/Tab.d.ts.map +0 -1
- package/dist/widgets/WidgetFactory.d.ts +0 -4
- package/dist/widgets/WidgetFactory.d.ts.map +0 -1
- package/dist/widgets/base/Binary.d.ts +0 -14
- package/dist/widgets/base/Binary.d.ts.map +0 -1
- package/dist/widgets/base/Boolean.d.ts +0 -4
- package/dist/widgets/base/Boolean.d.ts.map +0 -1
- package/dist/widgets/base/Button.d.ts +0 -8
- package/dist/widgets/base/Button.d.ts.map +0 -1
- package/dist/widgets/base/Char.d.ts +0 -8
- package/dist/widgets/base/Char.d.ts.map +0 -1
- package/dist/widgets/base/Date.d.ts +0 -5
- package/dist/widgets/base/Date.d.ts.map +0 -1
- package/dist/widgets/base/DateTime.d.ts +0 -5
- package/dist/widgets/base/DateTime.d.ts.map +0 -1
- package/dist/widgets/base/Email.d.ts +0 -4
- package/dist/widgets/base/Email.d.ts.map +0 -1
- package/dist/widgets/base/Float.d.ts +0 -4
- package/dist/widgets/base/Float.d.ts.map +0 -1
- package/dist/widgets/base/FloatTime.d.ts +0 -12
- package/dist/widgets/base/FloatTime.d.ts.map +0 -1
- package/dist/widgets/base/Image.d.ts +0 -14
- package/dist/widgets/base/Image.d.ts.map +0 -1
- package/dist/widgets/base/Integer.d.ts +0 -8
- package/dist/widgets/base/Integer.d.ts.map +0 -1
- package/dist/widgets/base/Label.d.ts +0 -9
- package/dist/widgets/base/Label.d.ts.map +0 -1
- package/dist/widgets/base/LinkInput.d.ts +0 -12
- package/dist/widgets/base/LinkInput.d.ts.map +0 -1
- package/dist/widgets/base/MultiSelection.d.ts +0 -10
- package/dist/widgets/base/MultiSelection.d.ts.map +0 -1
- package/dist/widgets/base/ProgressBar.d.ts +0 -7
- package/dist/widgets/base/ProgressBar.d.ts.map +0 -1
- package/dist/widgets/base/Reference.d.ts +0 -16
- package/dist/widgets/base/Reference.d.ts.map +0 -1
- package/dist/widgets/base/ReferenceTree.d.ts +0 -8
- package/dist/widgets/base/ReferenceTree.d.ts.map +0 -1
- package/dist/widgets/base/Selection.d.ts +0 -10
- package/dist/widgets/base/Selection.d.ts.map +0 -1
- package/dist/widgets/base/Separator.d.ts +0 -8
- package/dist/widgets/base/Separator.d.ts.map +0 -1
- package/dist/widgets/base/Text.d.ts +0 -8
- package/dist/widgets/base/Text.d.ts.map +0 -1
- package/dist/widgets/base/Time.d.ts +0 -12
- package/dist/widgets/base/Time.d.ts.map +0 -1
- package/dist/widgets/base/Url.d.ts +0 -4
- package/dist/widgets/base/Url.d.ts.map +0 -1
- package/dist/widgets/base/many2one/Many2one.d.ts +0 -16
- package/dist/widgets/base/many2one/Many2one.d.ts.map +0 -1
- package/dist/widgets/base/many2one/Many2oneSuffix.d.ts +0 -9
- package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +0 -1
- package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts +0 -10
- package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts.map +0 -1
- package/dist/widgets/base/many2one/Many2oneTree.d.ts +0 -6
- package/dist/widgets/base/many2one/Many2oneTree.d.ts.map +0 -1
- package/dist/widgets/base/one2many/One2many.d.ts +0 -8
- package/dist/widgets/base/one2many/One2many.d.ts.map +0 -1
- package/dist/widgets/base/one2many/One2manyInput.d.ts +0 -23
- package/dist/widgets/base/one2many/One2manyInput.d.ts.map +0 -1
- package/dist/widgets/base/one2many/One2manyTopBar.d.ts +0 -23
- package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +0 -1
- package/dist/widgets/containers/Container.d.ts +0 -9
- package/dist/widgets/containers/Container.d.ts.map +0 -1
- package/dist/widgets/containers/Group.d.ts +0 -10
- package/dist/widgets/containers/Group.d.ts.map +0 -1
- package/dist/widgets/containers/Notebook.d.ts +0 -9
- package/dist/widgets/containers/Notebook.d.ts.map +0 -1
- package/dist/widgets/custom/Avatar.d.ts +0 -10
- package/dist/widgets/custom/Avatar.d.ts.map +0 -1
- package/dist/widgets/custom/ButtonGroup.d.ts +0 -8
- package/dist/widgets/custom/ButtonGroup.d.ts.map +0 -1
- package/dist/widgets/custom/CodeEditor.d.ts +0 -9
- package/dist/widgets/custom/CodeEditor.d.ts.map +0 -1
- package/dist/widgets/custom/Comments.d.ts +0 -35
- package/dist/widgets/custom/Comments.d.ts.map +0 -1
- package/dist/widgets/custom/FiberGrid.d.ts +0 -10
- package/dist/widgets/custom/FiberGrid.d.ts.map +0 -1
- package/dist/widgets/custom/Indicator.d.ts +0 -10
- package/dist/widgets/custom/Indicator.d.ts.map +0 -1
- package/dist/widgets/custom/Markdown.d.ts +0 -5
- package/dist/widgets/custom/Markdown.d.ts.map +0 -1
- package/dist/widgets/custom/MultiCheckbox.d.ts +0 -14
- package/dist/widgets/custom/MultiCheckbox.d.ts.map +0 -1
- package/dist/widgets/custom/Radio.d.ts +0 -10
- package/dist/widgets/custom/Radio.d.ts.map +0 -1
- package/dist/widgets/custom/Steps.d.ts +0 -13
- package/dist/widgets/custom/Steps.d.ts.map +0 -1
- package/dist/widgets/custom/Switch.d.ts +0 -4
- package/dist/widgets/custom/Switch.d.ts.map +0 -1
- package/dist/widgets/custom/Tag.d.ts +0 -7
- package/dist/widgets/custom/Tag.d.ts.map +0 -1
- package/dist/widgets/custom/Tags.d.ts +0 -15
- package/dist/widgets/custom/Tags.d.ts.map +0 -1
- package/dist/widgets/custom/Timeline.d.ts +0 -16
- package/dist/widgets/custom/Timeline.d.ts.map +0 -1
- package/dist/widgets/modals/ExportModal.d.ts +0 -15
- package/dist/widgets/modals/ExportModal.d.ts.map +0 -1
- package/dist/widgets/modals/FormModal.d.ts +0 -12
- package/dist/widgets/modals/FormModal.d.ts.map +0 -1
- package/dist/widgets/modals/SearchModal.d.ts +0 -13
- package/dist/widgets/modals/SearchModal.d.ts.map +0 -1
- package/dist/widgets/modals/TranslationModal.d.ts +0 -12
- package/dist/widgets/modals/TranslationModal.d.ts.map +0 -1
- package/dist/widgets/views/Dashboard/Dashboard.d.ts +0 -5
- package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +0 -1
- package/dist/widgets/views/Dashboard/DashboardForm.d.ts +0 -4
- package/dist/widgets/views/Dashboard/DashboardForm.d.ts.map +0 -1
- package/dist/widgets/views/Dashboard/DashboardTree.d.ts +0 -19
- package/dist/widgets/views/Dashboard/DashboardTree.d.ts.map +0 -1
- package/dist/widgets/views/Dashboard/dashboardHelper.d.ts +0 -6
- package/dist/widgets/views/Dashboard/dashboardHelper.d.ts.map +0 -1
- package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts +0 -4
- package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts.map +0 -1
- package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts +0 -6
- package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts.map +0 -1
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts +0 -4
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +0 -1
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts +0 -11
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts.map +0 -1
- package/dist/widgets/views/DashboardGrid/index.d.ts +0 -5
- package/dist/widgets/views/DashboardGrid/index.d.ts.map +0 -1
- package/dist/widgets/views/Form.d.ts +0 -29
- package/dist/widgets/views/Form.d.ts.map +0 -1
- package/dist/widgets/views/Graph/Graph.d.ts +0 -11
- package/dist/widgets/views/Graph/Graph.d.ts.map +0 -1
- package/dist/widgets/views/Graph/GraphChart.d.ts +0 -11
- package/dist/widgets/views/Graph/GraphChart.d.ts.map +0 -1
- package/dist/widgets/views/Graph/GraphDefaults.d.ts +0 -83
- package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +0 -1
- package/dist/widgets/views/Graph/GraphIndicator.d.ts +0 -17
- package/dist/widgets/views/Graph/GraphIndicator.d.ts.map +0 -1
- package/dist/widgets/views/Graph/useGraphData.d.ts +0 -20
- package/dist/widgets/views/Graph/useGraphData.d.ts.map +0 -1
- package/dist/widgets/views/SearchTree.d.ts +0 -24
- package/dist/widgets/views/SearchTree.d.ts.map +0 -1
- package/dist/widgets/views/Tree.d.ts +0 -32
- package/dist/widgets/views/Tree.d.ts.map +0 -1
- package/dist/widgets/views/searchFilter/DateRangePicker.d.ts +0 -4
- package/dist/widgets/views/searchFilter/DateRangePicker.d.ts.map +0 -1
- package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts +0 -4
- package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts.map +0 -1
- package/dist/widgets/views/searchFilter/PairFields.d.ts +0 -4
- package/dist/widgets/views/searchFilter/PairFields.d.ts.map +0 -1
- package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts +0 -10
- package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts.map +0 -1
- package/dist/widgets/views/searchFilter/SearchField.d.ts +0 -8
- package/dist/widgets/views/searchFilter/SearchField.d.ts.map +0 -1
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts +0 -20
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +0 -1
- package/dist/widgets/views/searchFilter/SearchParams.d.ts +0 -7
- package/dist/widgets/views/searchFilter/SearchParams.d.ts.map +0 -1
- package/src/tailwind.css +0 -8
- package/src/tailwind.generated.css +0 -168533
|
@@ -18,8 +18,8 @@ const getTree = (treeView: TreeView): TreeOoui => {
|
|
|
18
18
|
const getTableColumns = (
|
|
19
19
|
tree: TreeOoui,
|
|
20
20
|
components: any,
|
|
21
|
-
context: any
|
|
22
|
-
):
|
|
21
|
+
context: any,
|
|
22
|
+
): Column[] => {
|
|
23
23
|
const tableColumns = tree.columns.map((column) => {
|
|
24
24
|
const type = column.type;
|
|
25
25
|
const key = column.id;
|
|
@@ -38,8 +38,8 @@ const getTableColumns = (
|
|
|
38
38
|
title: column.label,
|
|
39
39
|
render,
|
|
40
40
|
sorter: (a: any, b: any) => {
|
|
41
|
-
let aItem = a[key] || ""
|
|
42
|
-
|
|
41
|
+
let aItem = a[key] || "";
|
|
42
|
+
let bItem = b[key] || "";
|
|
43
43
|
|
|
44
44
|
if (type === "many2one") {
|
|
45
45
|
aItem = a[key]?.value || "";
|
|
@@ -55,7 +55,7 @@ const getTableColumns = (
|
|
|
55
55
|
return tableColumns;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
const getTableItems = (treeOoui: TreeOoui, results:
|
|
58
|
+
const getTableItems = (treeOoui: TreeOoui, results: any[]): any[] => {
|
|
59
59
|
const tableItems = results.map((item: any) => {
|
|
60
60
|
const parsedItem: any = {};
|
|
61
61
|
Object.keys(item).map((key) => {
|
|
@@ -158,8 +158,8 @@ function sortResults({
|
|
|
158
158
|
const type = fields[field].type;
|
|
159
159
|
|
|
160
160
|
const sortFn = (a: any, b: any) => {
|
|
161
|
-
let aItem = a[field] || ""
|
|
162
|
-
|
|
161
|
+
let aItem = a[field] || "";
|
|
162
|
+
let bItem = b[field] || "";
|
|
163
163
|
|
|
164
164
|
if (type === "many2one") {
|
|
165
165
|
aItem = a[field]?.[1] || "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ViewTuple, ViewType } from "@/types";
|
|
2
2
|
|
|
3
3
|
export async function resolveViewInfoPromises(
|
|
4
|
-
viewsToRetrieve: { viewTuple: ViewTuple; promise?: Promise<any> }
|
|
4
|
+
viewsToRetrieve: Array<{ viewTuple: ViewTuple; promise?: Promise<any> }>,
|
|
5
5
|
) {
|
|
6
6
|
const results = await Promise.all(
|
|
7
7
|
viewsToRetrieve.map(async (item) => {
|
|
@@ -11,7 +11,7 @@ export async function resolveViewInfoPromises(
|
|
|
11
11
|
console.error(`Error for ${item.viewTuple}:`, error);
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
|
-
})
|
|
14
|
+
}),
|
|
15
15
|
);
|
|
16
16
|
|
|
17
17
|
const updatedViews = viewsToRetrieve.map((item, index) => ({
|
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().deleteObjects({
|
|
185
185
|
model: "ir.exports",
|
|
186
186
|
ids: [pExport.id!],
|
|
187
187
|
});
|
|
@@ -367,8 +367,7 @@ const retrieveKeyFieldsForPredefinedExports = async ({
|
|
|
367
367
|
onGetFieldChilds: (key: string) => Promise<ExportField[]>;
|
|
368
368
|
}) => {
|
|
369
369
|
const allPredefinedExportKeys = predefinedExports.flatMap(
|
|
370
|
-
(exp: PredefinedExport) =>
|
|
371
|
-
exp.fields.map((field: any) => field.key)
|
|
370
|
+
(exp: PredefinedExport) => exp.fields.map((field: any) => field.key)
|
|
372
371
|
);
|
|
373
372
|
|
|
374
373
|
const keysWithoutChildsInFields = getKeysWithoutChildsInFields({
|
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,
|
|
211
211
|
fields: { ...treeView!.fields, ...formView!.fields },
|
|
212
212
|
})
|
|
213
213
|
: [...originalResults.current];
|
|
@@ -216,7 +216,7 @@ export const useSearch = (opts: UseSearchOpts) => {
|
|
|
216
216
|
|
|
217
217
|
if (resultsActionView && resultsSorted.length > 0) {
|
|
218
218
|
const newCurrentItemIndex = resultsSorted.findIndex(
|
|
219
|
-
(item) => currentId === item.id
|
|
219
|
+
(item) => currentId === item.id,
|
|
220
220
|
);
|
|
221
221
|
|
|
222
222
|
if (newCurrentItemIndex === -1) {
|
|
@@ -249,7 +249,7 @@ export const useSearch = (opts: UseSearchOpts) => {
|
|
|
249
249
|
limit,
|
|
250
250
|
offset,
|
|
251
251
|
searchParams,
|
|
252
|
-
]
|
|
252
|
+
],
|
|
253
253
|
);
|
|
254
254
|
|
|
255
255
|
const fetchResults = useCallback(
|
|
@@ -290,7 +290,7 @@ export const useSearch = (opts: UseSearchOpts) => {
|
|
|
290
290
|
setTreeIsLoading,
|
|
291
291
|
sorter,
|
|
292
292
|
treeView,
|
|
293
|
-
]
|
|
293
|
+
],
|
|
294
294
|
);
|
|
295
295
|
|
|
296
296
|
const changeSort = useCallback(
|
|
@@ -307,7 +307,7 @@ export const useSearch = (opts: UseSearchOpts) => {
|
|
|
307
307
|
: [...originalResults.current];
|
|
308
308
|
setResults(sortedResults);
|
|
309
309
|
},
|
|
310
|
-
[setSorter, getResults, treeView, formView, setResults]
|
|
310
|
+
[setSorter, getResults, treeView, formView, setResults],
|
|
311
311
|
);
|
|
312
312
|
|
|
313
313
|
const submit = useCallback(
|
|
@@ -351,7 +351,7 @@ export const useSearch = (opts: UseSearchOpts) => {
|
|
|
351
351
|
setLimit,
|
|
352
352
|
setOffset,
|
|
353
353
|
fetchResults,
|
|
354
|
-
]
|
|
354
|
+
],
|
|
355
355
|
);
|
|
356
356
|
|
|
357
357
|
const requestPageChange = useCallback(
|
|
@@ -360,7 +360,7 @@ export const useSearch = (opts: UseSearchOpts) => {
|
|
|
360
360
|
setPage(page);
|
|
361
361
|
setOffset((page - 1) * limit!);
|
|
362
362
|
},
|
|
363
|
-
[setTableRefreshing, limit, setOffset, setPage]
|
|
363
|
+
[setTableRefreshing, limit, setOffset, setPage],
|
|
364
364
|
);
|
|
365
365
|
|
|
366
366
|
const clear = useCallback(() => {
|
|
@@ -400,7 +400,7 @@ export const useSearch = (opts: UseSearchOpts) => {
|
|
|
400
400
|
|
|
401
401
|
return getTableItems(getTree(treeView!), children);
|
|
402
402
|
},
|
|
403
|
-
[treeView, model, context, getResults, setResults]
|
|
403
|
+
[treeView, model, context, getResults, setResults],
|
|
404
404
|
);
|
|
405
405
|
|
|
406
406
|
const getAllIds = useCallback(async () => {
|
package/src/index.ts
CHANGED
|
@@ -82,6 +82,8 @@ import CurrentTabContent from "./views/CurrentTabContent";
|
|
|
82
82
|
import ContentRootProvider from "./context/ContentRootContext";
|
|
83
83
|
import FavouriteButton from "./ui/FavouriteButton";
|
|
84
84
|
import { ConfigContext } from "./context/ConfigContext";
|
|
85
|
+
import Tab from "./views/tabs/Tab";
|
|
86
|
+
import ActionView from "./views/ActionView";
|
|
85
87
|
|
|
86
88
|
export {
|
|
87
89
|
Button,
|
|
@@ -161,4 +163,6 @@ export {
|
|
|
161
163
|
CommentsTimelineField,
|
|
162
164
|
ExportModal,
|
|
163
165
|
ConfigContext,
|
|
166
|
+
Tab,
|
|
167
|
+
ActionView,
|
|
164
168
|
};
|
|
@@ -3,9 +3,6 @@ import React, { useState } from "react";
|
|
|
3
3
|
import { BinaryInput } from "../widgets/base/Binary";
|
|
4
4
|
import { Binary as BinaryOoui } from "@gisce/ooui";
|
|
5
5
|
|
|
6
|
-
// import "antd/dist/antd.css";
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
import LocaleProvider from "../context/LocaleContext";
|
|
10
7
|
|
|
11
8
|
export default {
|
|
@@ -3,9 +3,6 @@ import React from "react";
|
|
|
3
3
|
import { Button } from "..";
|
|
4
4
|
import { Button as ButtonOoui } from "@gisce/ooui";
|
|
5
5
|
|
|
6
|
-
// import "antd/dist/antd.css";
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
import LocaleProvider from "../context/LocaleContext";
|
|
10
7
|
|
|
11
8
|
export default {
|
|
@@ -28,7 +25,7 @@ export const WithStockIcon = (): React.ReactElement => {
|
|
|
28
25
|
const ooui = new ButtonOoui({
|
|
29
26
|
name: "button_field",
|
|
30
27
|
string: "Lorem ipsum",
|
|
31
|
-
icon: "gtk-ok"
|
|
28
|
+
icon: "gtk-ok",
|
|
32
29
|
});
|
|
33
30
|
return (
|
|
34
31
|
<LocaleProvider lang="en_US">
|
|
@@ -41,7 +38,7 @@ export const WithCustomIcon = (): React.ReactElement => {
|
|
|
41
38
|
const ooui = new ButtonOoui({
|
|
42
39
|
name: "button_field",
|
|
43
40
|
string: "Lorem ipsum",
|
|
44
|
-
icon: "terp-purchase"
|
|
41
|
+
icon: "terp-purchase",
|
|
45
42
|
});
|
|
46
43
|
return (
|
|
47
44
|
<LocaleProvider lang="en_US">
|
|
@@ -54,7 +51,7 @@ export const WithAntdIcon = (): React.ReactElement => {
|
|
|
54
51
|
const ooui = new ButtonOoui({
|
|
55
52
|
name: "button_field",
|
|
56
53
|
string: "Lorem ipsum",
|
|
57
|
-
icon: "ant-design"
|
|
54
|
+
icon: "ant-design",
|
|
58
55
|
});
|
|
59
56
|
return (
|
|
60
57
|
<LocaleProvider lang="en_US">
|
|
@@ -67,7 +64,7 @@ export const WithUnexistingdIcon = (): React.ReactElement => {
|
|
|
67
64
|
const ooui = new ButtonOoui({
|
|
68
65
|
name: "button_field",
|
|
69
66
|
string: "Lorem ipsum",
|
|
70
|
-
icon: "foo"
|
|
67
|
+
icon: "foo",
|
|
71
68
|
});
|
|
72
69
|
return (
|
|
73
70
|
<LocaleProvider lang="en_US">
|
|
@@ -80,7 +77,7 @@ export const WithTablerIcon = (): React.ReactElement => {
|
|
|
80
77
|
const ooui = new ButtonOoui({
|
|
81
78
|
name: "button_field",
|
|
82
79
|
string: "Lorem ipsum",
|
|
83
|
-
icon: "bulb-off"
|
|
80
|
+
icon: "bulb-off",
|
|
84
81
|
});
|
|
85
82
|
return (
|
|
86
83
|
<LocaleProvider lang="en_US">
|
|
@@ -94,7 +91,7 @@ export const PrimaryButton = (): React.ReactElement => {
|
|
|
94
91
|
name: "button_field",
|
|
95
92
|
string: "Lorem ipsum",
|
|
96
93
|
icon: "send",
|
|
97
|
-
primary: "1"
|
|
94
|
+
primary: "1",
|
|
98
95
|
});
|
|
99
96
|
return (
|
|
100
97
|
<LocaleProvider lang="en_US">
|
|
@@ -108,7 +105,7 @@ export const DangerButton = (): React.ReactElement => {
|
|
|
108
105
|
name: "button_field",
|
|
109
106
|
string: "Lorem ipsum",
|
|
110
107
|
icon: "exclamation-circle",
|
|
111
|
-
danger: "1"
|
|
108
|
+
danger: "1",
|
|
112
109
|
});
|
|
113
110
|
return (
|
|
114
111
|
<LocaleProvider lang="en_US">
|
|
@@ -117,14 +114,13 @@ export const DangerButton = (): React.ReactElement => {
|
|
|
117
114
|
);
|
|
118
115
|
};
|
|
119
116
|
|
|
120
|
-
|
|
121
117
|
export const PrimaryDangerButton = (): React.ReactElement => {
|
|
122
118
|
const ooui = new ButtonOoui({
|
|
123
119
|
name: "button_field",
|
|
124
120
|
string: "Lorem ipsum",
|
|
125
121
|
icon: "exclamation-circle",
|
|
126
122
|
danger: "1",
|
|
127
|
-
primary: "1"
|
|
123
|
+
primary: "1",
|
|
128
124
|
});
|
|
129
125
|
return (
|
|
130
126
|
<LocaleProvider lang="en_US">
|
|
@@ -132,5 +128,3 @@ export const PrimaryDangerButton = (): React.ReactElement => {
|
|
|
132
128
|
</LocaleProvider>
|
|
133
129
|
);
|
|
134
130
|
};
|
|
135
|
-
|
|
136
|
-
|
|
@@ -3,9 +3,6 @@ import React from "react";
|
|
|
3
3
|
import { FiberGrid } from "../widgets/custom/FiberGrid";
|
|
4
4
|
import { Char as CharOoui } from "@gisce/ooui";
|
|
5
5
|
|
|
6
|
-
// import "antd/dist/antd.css";
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
import LocaleProvider from "../context/LocaleContext";
|
|
10
7
|
import { Form } from "antd";
|
|
11
8
|
|
|
@@ -3,9 +3,6 @@ import React, { useState } from "react";
|
|
|
3
3
|
import { FloatTimeInput } from "../widgets/base/FloatTime";
|
|
4
4
|
import { Float as FloatOoui } from "@gisce/ooui";
|
|
5
5
|
|
|
6
|
-
// import "antd/dist/antd.css";
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
import LocaleProvider from "../context/LocaleContext";
|
|
10
7
|
|
|
11
8
|
export default {
|
|
@@ -3,9 +3,6 @@ import React from "react";
|
|
|
3
3
|
import { One2many } from "..";
|
|
4
4
|
import { One2many as One2manyOoui } from "@gisce/ooui";
|
|
5
5
|
|
|
6
|
-
// import "antd/dist/antd.css";
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
import LocaleProvider from "../context/LocaleContext";
|
|
10
7
|
|
|
11
8
|
export default {
|
|
@@ -20,8 +17,7 @@ export const Default = (): React.ReactElement => {
|
|
|
20
17
|
mode: "form,tree",
|
|
21
18
|
views: {
|
|
22
19
|
form: {
|
|
23
|
-
arch:
|
|
24
|
-
'<form string="Partner Contacts -">\n <notebook>\n <page string="General">\n <field name="name" select="2" required="True"/>\n <field domain="[(\'domain\', \'=\', \'contact\')]" name="title" string="Type"/>\n <field name="function"/>\n <field name="type" select="2"/>\n <separator string="Street" colspan="4"/>\n <field name="street" select="2" colspan="4" width="200"/>\n <group colspan="2" col="4">\n <field name="tv" select="2"/>\n <newline/>\n <field name="nv" colspan="4"/>\n </group>\n <group colspan="2" col="8">\n <field name="pnp"/>\n <field name="es"/>\n <field name="pt"/>\n <field name="pu"/>\n <field name="bq" colspan="1"/>\n <field name="aclarador" colspan="5"/>\n </group>\n <field name="street2"/>\n <newline/>\n <field name="zip" select="2"/>\n <field name="apartat_correus"/>\n <newline/>\n <newline/>\n <field name="id_municipi" on_change="onchange_municipi_id(id_municipi,context)"/>\n <field name="id_poblacio" domain="[(\'municipi_id\',\'=\',id_municipi)]"/>\n <field name="state_id" select="2"/>\n <field completion="1" name="country_id" select="2"/>\n <newline/>\n <separator string="Catastre" colspan="4"/>\n <field name="ref_catastral"/>\n <separator string="Comunication channels" colspan="4"/>\n <field name="phone"/>\n <field name="fax"/>\n <newline/>\n <field name="mobile"/>\n <field name="email" select="2" widget="email"/>\n </page>\n <page string="Notes">\n <field name="notes" nolabel="1" colspan="4"/>\n </page>\n </notebook>\n </form>\n ',
|
|
20
|
+
arch: '<form string="Partner Contacts -">\n <notebook>\n <page string="General">\n <field name="name" select="2" required="True"/>\n <field domain="[(\'domain\', \'=\', \'contact\')]" name="title" string="Type"/>\n <field name="function"/>\n <field name="type" select="2"/>\n <separator string="Street" colspan="4"/>\n <field name="street" select="2" colspan="4" width="200"/>\n <group colspan="2" col="4">\n <field name="tv" select="2"/>\n <newline/>\n <field name="nv" colspan="4"/>\n </group>\n <group colspan="2" col="8">\n <field name="pnp"/>\n <field name="es"/>\n <field name="pt"/>\n <field name="pu"/>\n <field name="bq" colspan="1"/>\n <field name="aclarador" colspan="5"/>\n </group>\n <field name="street2"/>\n <newline/>\n <field name="zip" select="2"/>\n <field name="apartat_correus"/>\n <newline/>\n <newline/>\n <field name="id_municipi" on_change="onchange_municipi_id(id_municipi,context)"/>\n <field name="id_poblacio" domain="[(\'municipi_id\',\'=\',id_municipi)]"/>\n <field name="state_id" select="2"/>\n <field completion="1" name="country_id" select="2"/>\n <newline/>\n <separator string="Catastre" colspan="4"/>\n <field name="ref_catastral"/>\n <separator string="Comunication channels" colspan="4"/>\n <field name="phone"/>\n <field name="fax"/>\n <newline/>\n <field name="mobile"/>\n <field name="email" select="2" widget="email"/>\n </page>\n <page string="Notes">\n <field name="notes" nolabel="1" colspan="4"/>\n </page>\n </notebook>\n </form>\n ',
|
|
25
21
|
fields: {
|
|
26
22
|
aclarador: {
|
|
27
23
|
size: 256,
|
|
@@ -193,8 +189,7 @@ export const Default = (): React.ReactElement => {
|
|
|
193
189
|
views: {},
|
|
194
190
|
},
|
|
195
191
|
type: {
|
|
196
|
-
help:
|
|
197
|
-
"Used to select automatically the right address according to the context in sales and purchases documents.",
|
|
192
|
+
help: "Used to select automatically the right address according to the context in sales and purchases documents.",
|
|
198
193
|
selection: [
|
|
199
194
|
["default", "Default"],
|
|
200
195
|
["invoice", "Invoice"],
|
|
@@ -217,8 +212,7 @@ export const Default = (): React.ReactElement => {
|
|
|
217
212
|
},
|
|
218
213
|
},
|
|
219
214
|
tree: {
|
|
220
|
-
arch:
|
|
221
|
-
'<tree string="Partner Contacts">\n <field name="name"/>\n <field name="street"/>\n <field name="type"/>\n <field name="zip"/>\n <field name="city"/>\n <field name="country_id"/>\n <field name="phone"/>\n <field name="email"/>\n </tree>\n ',
|
|
215
|
+
arch: '<tree string="Partner Contacts">\n <field name="name"/>\n <field name="street"/>\n <field name="type"/>\n <field name="zip"/>\n <field name="city"/>\n <field name="country_id"/>\n <field name="phone"/>\n <field name="email"/>\n </tree>\n ',
|
|
222
216
|
fields: {
|
|
223
217
|
city: {
|
|
224
218
|
size: 128,
|
|
@@ -262,8 +256,7 @@ export const Default = (): React.ReactElement => {
|
|
|
262
256
|
views: {},
|
|
263
257
|
},
|
|
264
258
|
type: {
|
|
265
|
-
help:
|
|
266
|
-
"Used to select automatically the right address according to the context in sales and purchases documents.",
|
|
259
|
+
help: "Used to select automatically the right address according to the context in sales and purchases documents.",
|
|
267
260
|
selection: [
|
|
268
261
|
["default", "Default"],
|
|
269
262
|
["invoice", "Invoice"],
|
|
@@ -3,9 +3,6 @@ import React from "react";
|
|
|
3
3
|
import { ReferenceInput } from "../widgets/base/Reference";
|
|
4
4
|
import { Reference as ReferenceOoui } from "@gisce/ooui";
|
|
5
5
|
|
|
6
|
-
// import "antd/dist/antd.css";
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
import LocaleProvider from "../context/LocaleContext";
|
|
10
7
|
|
|
11
8
|
export default {
|
|
@@ -3,9 +3,6 @@ import React from "react";
|
|
|
3
3
|
import { SelectionInput } from "../widgets/base/Selection";
|
|
4
4
|
import { Selection as SelectionOoui } from "@gisce/ooui";
|
|
5
5
|
|
|
6
|
-
// import "antd/dist/antd.css";
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
import LocaleProvider from "../context/LocaleContext";
|
|
10
7
|
|
|
11
8
|
import { withKnobs, text } from "@storybook/addon-knobs";
|
|
@@ -3,9 +3,6 @@ import React from "react";
|
|
|
3
3
|
import { Separator } from "..";
|
|
4
4
|
import { Separator as SeparatorOoui } from "@gisce/ooui";
|
|
5
5
|
|
|
6
|
-
// import "antd/dist/antd.css";
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
import LocaleProvider from "../context/LocaleContext";
|
|
10
7
|
|
|
11
8
|
export default {
|
|
@@ -24,8 +21,7 @@ export const Default = (): React.ReactElement => {
|
|
|
24
21
|
};
|
|
25
22
|
|
|
26
23
|
export const WithoutText = (): React.ReactElement => {
|
|
27
|
-
const ooui = new SeparatorOoui({
|
|
28
|
-
});
|
|
24
|
+
const ooui = new SeparatorOoui({});
|
|
29
25
|
return (
|
|
30
26
|
<LocaleProvider lang="en_US">
|
|
31
27
|
<Separator ooui={ooui} showLabel />
|
|
@@ -35,7 +31,7 @@ export const WithoutText = (): React.ReactElement => {
|
|
|
35
31
|
|
|
36
32
|
export const OnlyIcon = (): React.ReactElement => {
|
|
37
33
|
const ooui = new SeparatorOoui({
|
|
38
|
-
icon: "home"
|
|
34
|
+
icon: "home",
|
|
39
35
|
});
|
|
40
36
|
return (
|
|
41
37
|
<LocaleProvider lang="en_US">
|
|
@@ -47,7 +43,7 @@ export const OnlyIcon = (): React.ReactElement => {
|
|
|
47
43
|
export const WithIcon = (): React.ReactElement => {
|
|
48
44
|
const ooui = new SeparatorOoui({
|
|
49
45
|
string: "General",
|
|
50
|
-
icon: "home"
|
|
46
|
+
icon: "home",
|
|
51
47
|
});
|
|
52
48
|
return (
|
|
53
49
|
<LocaleProvider lang="en_US">
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import { Dropdown, Menu } from
|
|
4
|
-
import { DownOutlined, UserOutlined } from
|
|
5
|
-
import {
|
|
3
|
+
import { Dropdown, Menu } from "antd";
|
|
4
|
+
import { DownOutlined, UserOutlined } from "@ant-design/icons";
|
|
5
|
+
import {
|
|
6
|
+
ButtonGroup as ButtonGroupOoui,
|
|
7
|
+
Button as ButtonOoui,
|
|
8
|
+
} from "@gisce/ooui";
|
|
6
9
|
import { ButtonGroup } from "../../widgets/custom/ButtonGroup";
|
|
7
10
|
|
|
8
|
-
// import "antd/dist/antd.css";
|
|
9
|
-
|
|
10
|
-
|
|
11
11
|
import LocaleProvider from "../../context/LocaleContext";
|
|
12
12
|
|
|
13
13
|
export default {
|
|
@@ -15,17 +15,16 @@ export default {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const OnlyAntComponents = (): React.ReactElement => {
|
|
18
|
-
|
|
19
18
|
const overlay = (
|
|
20
19
|
<Menu>
|
|
21
|
-
<Menu.Item icon={<UserOutlined/>}>Button 1</Menu.Item>
|
|
22
|
-
<Menu.Item icon={<UserOutlined/>}>Button 2</Menu.Item>
|
|
20
|
+
<Menu.Item icon={<UserOutlined />}>Button 1</Menu.Item>
|
|
21
|
+
<Menu.Item icon={<UserOutlined />}>Button 2</Menu.Item>
|
|
23
22
|
</Menu>
|
|
24
|
-
)
|
|
23
|
+
);
|
|
25
24
|
|
|
26
25
|
return (
|
|
27
26
|
<LocaleProvider lang="en_US">
|
|
28
|
-
<Dropdown.Button overlay={overlay} icon={<DownOutlined/>}>
|
|
27
|
+
<Dropdown.Button overlay={overlay} icon={<DownOutlined />}>
|
|
29
28
|
Default button
|
|
30
29
|
</Dropdown.Button>
|
|
31
30
|
</LocaleProvider>
|
|
@@ -33,29 +32,43 @@ export const OnlyAntComponents = (): React.ReactElement => {
|
|
|
33
32
|
};
|
|
34
33
|
|
|
35
34
|
export const Default = (): React.ReactElement => {
|
|
36
|
-
|
|
37
35
|
const btn1 = new ButtonOoui({
|
|
38
|
-
name: "btn1",
|
|
39
|
-
|
|
36
|
+
name: "btn1",
|
|
37
|
+
icon: "gtk-execute",
|
|
38
|
+
string: "Button 1",
|
|
39
|
+
buttonType: "object",
|
|
40
|
+
});
|
|
41
|
+
const btn2 = new ButtonOoui({
|
|
42
|
+
name: "btn2",
|
|
43
|
+
readonly: true,
|
|
44
|
+
buttonType: "object",
|
|
45
|
+
icon: "gtk-execute",
|
|
46
|
+
string: "Button 2",
|
|
40
47
|
});
|
|
41
|
-
const btn2 = new ButtonOoui({name: "btn2", readonly: true, buttonType: "object", icon: "gtk-execute", string: "Button 2"});
|
|
42
48
|
const btn3 = new ButtonOoui({
|
|
43
|
-
name: "btn3",
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
name: "btn3",
|
|
50
|
+
buttonType: "object",
|
|
51
|
+
icon: "gtk-about",
|
|
52
|
+
string: "Button 3",
|
|
53
|
+
confirm: "Are you sure?",
|
|
46
54
|
});
|
|
47
55
|
const btn4 = new ButtonOoui({
|
|
48
|
-
name: "btn4",
|
|
49
|
-
|
|
56
|
+
name: "btn4",
|
|
57
|
+
buttonType: "object",
|
|
58
|
+
icon: "gtk-dialog-warning",
|
|
59
|
+
string: "Button 4",
|
|
50
60
|
confirm: "Are you sure?",
|
|
51
|
-
danger: true
|
|
61
|
+
danger: true,
|
|
62
|
+
});
|
|
63
|
+
const buttonGroup = new ButtonGroupOoui({
|
|
64
|
+
name: "btnGroup",
|
|
65
|
+
default: "btn1",
|
|
52
66
|
});
|
|
53
|
-
const buttonGroup = new ButtonGroupOoui({name: "btnGroup", default: "btn1"});
|
|
54
67
|
buttonGroup.container.rows[0].push(...[btn1, btn2, btn3, btn4]);
|
|
55
68
|
|
|
56
69
|
return (
|
|
57
70
|
<LocaleProvider lang="en_US">
|
|
58
|
-
<ButtonGroup ooui={buttonGroup}/>
|
|
71
|
+
<ButtonGroup ooui={buttonGroup} />
|
|
59
72
|
</LocaleProvider>
|
|
60
73
|
);
|
|
61
74
|
};
|