@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
|
@@ -3,6 +3,9 @@ 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
|
+
|
|
6
9
|
import LocaleProvider from "../context/LocaleContext";
|
|
7
10
|
|
|
8
11
|
export default {
|
|
@@ -21,7 +24,8 @@ export const Default = (): React.ReactElement => {
|
|
|
21
24
|
};
|
|
22
25
|
|
|
23
26
|
export const WithoutText = (): React.ReactElement => {
|
|
24
|
-
const ooui = new SeparatorOoui({
|
|
27
|
+
const ooui = new SeparatorOoui({
|
|
28
|
+
});
|
|
25
29
|
return (
|
|
26
30
|
<LocaleProvider lang="en_US">
|
|
27
31
|
<Separator ooui={ooui} showLabel />
|
|
@@ -31,7 +35,7 @@ export const WithoutText = (): React.ReactElement => {
|
|
|
31
35
|
|
|
32
36
|
export const OnlyIcon = (): React.ReactElement => {
|
|
33
37
|
const ooui = new SeparatorOoui({
|
|
34
|
-
icon: "home"
|
|
38
|
+
icon: "home"
|
|
35
39
|
});
|
|
36
40
|
return (
|
|
37
41
|
<LocaleProvider lang="en_US">
|
|
@@ -43,7 +47,7 @@ export const OnlyIcon = (): React.ReactElement => {
|
|
|
43
47
|
export const WithIcon = (): React.ReactElement => {
|
|
44
48
|
const ooui = new SeparatorOoui({
|
|
45
49
|
string: "General",
|
|
46
|
-
icon: "home"
|
|
50
|
+
icon: "home"
|
|
47
51
|
});
|
|
48
52
|
return (
|
|
49
53
|
<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 {
|
|
6
|
-
ButtonGroup as ButtonGroupOoui,
|
|
7
|
-
Button as ButtonOoui,
|
|
8
|
-
} from "@gisce/ooui";
|
|
3
|
+
import { Dropdown, Menu } from 'antd';
|
|
4
|
+
import { DownOutlined, UserOutlined } from '@ant-design/icons';
|
|
5
|
+
import { ButtonGroup as ButtonGroupOoui, Button as ButtonOoui } from "@gisce/ooui";
|
|
9
6
|
import { ButtonGroup } from "../../widgets/custom/ButtonGroup";
|
|
10
7
|
|
|
8
|
+
// import "antd/dist/antd.css";
|
|
9
|
+
|
|
10
|
+
|
|
11
11
|
import LocaleProvider from "../../context/LocaleContext";
|
|
12
12
|
|
|
13
13
|
export default {
|
|
@@ -15,16 +15,17 @@ export default {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const OnlyAntComponents = (): React.ReactElement => {
|
|
18
|
+
|
|
18
19
|
const overlay = (
|
|
19
20
|
<Menu>
|
|
20
|
-
<Menu.Item icon={<UserOutlined
|
|
21
|
-
<Menu.Item icon={<UserOutlined
|
|
21
|
+
<Menu.Item icon={<UserOutlined/>}>Button 1</Menu.Item>
|
|
22
|
+
<Menu.Item icon={<UserOutlined/>}>Button 2</Menu.Item>
|
|
22
23
|
</Menu>
|
|
23
|
-
)
|
|
24
|
+
)
|
|
24
25
|
|
|
25
26
|
return (
|
|
26
27
|
<LocaleProvider lang="en_US">
|
|
27
|
-
<Dropdown.Button overlay={overlay} icon={<DownOutlined
|
|
28
|
+
<Dropdown.Button overlay={overlay} icon={<DownOutlined/>}>
|
|
28
29
|
Default button
|
|
29
30
|
</Dropdown.Button>
|
|
30
31
|
</LocaleProvider>
|
|
@@ -32,43 +33,29 @@ export const OnlyAntComponents = (): React.ReactElement => {
|
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
export const Default = (): React.ReactElement => {
|
|
36
|
+
|
|
35
37
|
const btn1 = new ButtonOoui({
|
|
36
|
-
name: "btn1",
|
|
37
|
-
|
|
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",
|
|
38
|
+
name: "btn1", icon: "gtk-execute", string: "Button 1",
|
|
39
|
+
buttonType: "object"
|
|
47
40
|
});
|
|
41
|
+
const btn2 = new ButtonOoui({name: "btn2", readonly: true, buttonType: "object", icon: "gtk-execute", string: "Button 2"});
|
|
48
42
|
const btn3 = new ButtonOoui({
|
|
49
|
-
name: "btn3",
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
string: "Button 3",
|
|
53
|
-
confirm: "Are you sure?",
|
|
43
|
+
name: "btn3", buttonType: "object",
|
|
44
|
+
icon: "gtk-about", string: "Button 3",
|
|
45
|
+
confirm: "Are you sure?"
|
|
54
46
|
});
|
|
55
47
|
const btn4 = new ButtonOoui({
|
|
56
|
-
name: "btn4",
|
|
57
|
-
|
|
58
|
-
icon: "gtk-dialog-warning",
|
|
59
|
-
string: "Button 4",
|
|
48
|
+
name: "btn4", buttonType: "object",
|
|
49
|
+
icon: "gtk-dialog-warning", string: "Button 4",
|
|
60
50
|
confirm: "Are you sure?",
|
|
61
|
-
danger: true
|
|
62
|
-
});
|
|
63
|
-
const buttonGroup = new ButtonGroupOoui({
|
|
64
|
-
name: "btnGroup",
|
|
65
|
-
default: "btn1",
|
|
51
|
+
danger: true
|
|
66
52
|
});
|
|
53
|
+
const buttonGroup = new ButtonGroupOoui({name: "btnGroup", default: "btn1"});
|
|
67
54
|
buttonGroup.container.rows[0].push(...[btn1, btn2, btn3, btn4]);
|
|
68
55
|
|
|
69
56
|
return (
|
|
70
57
|
<LocaleProvider lang="en_US">
|
|
71
|
-
<ButtonGroup ooui={buttonGroup}
|
|
58
|
+
<ButtonGroup ooui={buttonGroup}/>
|
|
72
59
|
</LocaleProvider>
|
|
73
60
|
);
|
|
74
61
|
};
|
|
@@ -3,6 +3,9 @@ import React from "react";
|
|
|
3
3
|
import { CodeEditor } from "../../widgets/custom/CodeEditor";
|
|
4
4
|
import { CodeEditor as CodeEditorOoui } 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 {
|
|
@@ -14,7 +17,7 @@ export const Default = (): React.ReactElement => {
|
|
|
14
17
|
name: "code",
|
|
15
18
|
string: "Code",
|
|
16
19
|
height: 400,
|
|
17
|
-
widget_props: "{'lang': 'xml'}"
|
|
20
|
+
widget_props: "{'lang': 'xml'}"
|
|
18
21
|
});
|
|
19
22
|
|
|
20
23
|
return (
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, {useState} from "react";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {Indicator} from "../../widgets/custom/Indicator";
|
|
4
4
|
import { Indicator as IndicatorOoui } 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 {
|
|
@@ -21,6 +24,7 @@ export const Default = (): React.ReactElement => {
|
|
|
21
24
|
);
|
|
22
25
|
};
|
|
23
26
|
|
|
27
|
+
|
|
24
28
|
export const WithIconAndSuffix = (): React.ReactElement => {
|
|
25
29
|
const ooui = new IndicatorOoui({
|
|
26
30
|
name: "test",
|
|
@@ -30,7 +34,11 @@ export const WithIconAndSuffix = (): React.ReactElement => {
|
|
|
30
34
|
|
|
31
35
|
return (
|
|
32
36
|
<LocaleProvider lang="en_US">
|
|
33
|
-
<Indicator ooui={ooui} value={300}
|
|
37
|
+
<Indicator ooui={ooui} value={300}/>
|
|
34
38
|
</LocaleProvider>
|
|
35
39
|
);
|
|
36
40
|
};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Markdown as MarkdownOOui } from "@gisce/ooui";
|
|
3
3
|
|
|
4
|
+
// import "antd/dist/antd.css";
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
import LocaleProvider from "../../context/LocaleContext";
|
|
5
8
|
import { MarkdownInput } from "../../widgets/custom/Markdown";
|
|
6
9
|
|
|
@@ -8,13 +11,14 @@ export default {
|
|
|
8
11
|
title: "Components/Widgets/Custom/Markdown",
|
|
9
12
|
};
|
|
10
13
|
|
|
14
|
+
|
|
11
15
|
export const Default = (): React.ReactElement => {
|
|
12
16
|
const ooui = new MarkdownOOui({
|
|
13
17
|
name: "enabled",
|
|
14
18
|
string: "Lorem ipsum",
|
|
15
19
|
});
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
const markdown = `A paragraph with *emphasis* and **strong importance**.
|
|
18
22
|
|
|
19
23
|
> A block quote with ~strikethrough~ and a URL: https://reactjs.org.
|
|
20
24
|
|
|
@@ -28,7 +32,7 @@ A table:
|
|
|
28
32
|
|
|
29
33
|
| a | b |
|
|
30
34
|
| - | - |
|
|
31
|
-
|
|
35
|
+
`
|
|
32
36
|
|
|
33
37
|
return (
|
|
34
38
|
<LocaleProvider lang="en_US">
|
|
@@ -4,6 +4,9 @@ import { MultiCheckboxInput } from "../../widgets/custom/MultiCheckbox";
|
|
|
4
4
|
import { Checkbox, Space, Row, Col } from "antd";
|
|
5
5
|
import { MultiCheckbox as MultiCheckboxOoui } from "@gisce/ooui";
|
|
6
6
|
|
|
7
|
+
// import "antd/dist/antd.css";
|
|
8
|
+
|
|
9
|
+
|
|
7
10
|
import LocaleProvider from "../../context/LocaleContext";
|
|
8
11
|
|
|
9
12
|
export default {
|
|
@@ -15,20 +18,16 @@ export const Default = (): React.ReactElement => {
|
|
|
15
18
|
name: "button_field",
|
|
16
19
|
string: "Lorem ipsum",
|
|
17
20
|
field: "name",
|
|
18
|
-
relation: "res.partner.category"
|
|
21
|
+
relation: "res.partner.category"
|
|
19
22
|
});
|
|
20
23
|
|
|
21
24
|
return (
|
|
22
25
|
<LocaleProvider lang="en_US">
|
|
23
|
-
<MultiCheckboxInput
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{ id: 2, operation: "original" },
|
|
29
|
-
{ id: 3, operation: "pendingRemove" },
|
|
30
|
-
],
|
|
31
|
-
}}
|
|
26
|
+
<MultiCheckboxInput ooui={ooui} value={{items: [
|
|
27
|
+
{id: 1, operation: "original"},
|
|
28
|
+
{id: 2, operation: "original"},
|
|
29
|
+
{id: 3, operation: "pendingRemove"}
|
|
30
|
+
]}}
|
|
32
31
|
/>
|
|
33
32
|
</LocaleProvider>
|
|
34
33
|
);
|
|
@@ -45,16 +44,12 @@ export const Readonly = (): React.ReactElement => {
|
|
|
45
44
|
|
|
46
45
|
return (
|
|
47
46
|
<LocaleProvider lang="en_US">
|
|
48
|
-
<MultiCheckboxInput
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
{ id: 2, operation: "original" },
|
|
54
|
-
{ id: 3, operation: "pendingRemove" },
|
|
55
|
-
],
|
|
56
|
-
}}
|
|
47
|
+
<MultiCheckboxInput ooui={ooui} value={{items: [
|
|
48
|
+
{id: 1, operation: "original"},
|
|
49
|
+
{id: 2, operation: "original"},
|
|
50
|
+
{id: 3, operation: "pendingRemove"}
|
|
51
|
+
]}}
|
|
57
52
|
/>
|
|
58
53
|
</LocaleProvider>
|
|
59
54
|
);
|
|
60
|
-
};
|
|
55
|
+
};
|
|
@@ -3,6 +3,9 @@ import React from "react";
|
|
|
3
3
|
import { Radio } from "../../widgets/custom/Radio";
|
|
4
4
|
import { Radio as RadioOoui } 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 {
|
|
@@ -15,10 +18,10 @@ export const Default = (): React.ReactElement => {
|
|
|
15
18
|
string: "Level",
|
|
16
19
|
required: true,
|
|
17
20
|
selection: [
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
]
|
|
21
|
+
['easy', 'Easy'],
|
|
22
|
+
['medium', 'Medium'],
|
|
23
|
+
['hard', 'Hard']
|
|
24
|
+
]
|
|
22
25
|
});
|
|
23
26
|
|
|
24
27
|
return (
|
|
@@ -34,10 +37,10 @@ export const Readonly = (): React.ReactElement => {
|
|
|
34
37
|
string: "Level",
|
|
35
38
|
readonly: true,
|
|
36
39
|
selection: [
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
]
|
|
40
|
+
['easy', 'Easy'],
|
|
41
|
+
['medium', 'Medium'],
|
|
42
|
+
['hard', 'Hard']
|
|
43
|
+
]
|
|
41
44
|
});
|
|
42
45
|
|
|
43
46
|
return (
|
|
@@ -53,11 +56,11 @@ export const RadioVertical = (): React.ReactElement => {
|
|
|
53
56
|
string: "Level",
|
|
54
57
|
readonly: true,
|
|
55
58
|
selection: [
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
+
['easy', 'Easy'],
|
|
60
|
+
['medium', 'Medium'],
|
|
61
|
+
['hard', 'Hard']
|
|
59
62
|
],
|
|
60
|
-
widget_props: "{'direction': 'vertical'}"
|
|
63
|
+
widget_props: "{'direction': 'vertical'}"
|
|
61
64
|
});
|
|
62
65
|
|
|
63
66
|
return (
|
|
@@ -65,4 +68,4 @@ export const RadioVertical = (): React.ReactElement => {
|
|
|
65
68
|
<Radio ooui={ooui} />
|
|
66
69
|
</LocaleProvider>
|
|
67
70
|
);
|
|
68
|
-
};
|
|
71
|
+
};
|
|
@@ -3,6 +3,9 @@ import React from "react";
|
|
|
3
3
|
import { Steps, StepsInput } from "../../widgets/custom/Steps";
|
|
4
4
|
import { Steps as StepsOoui } 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 {
|
|
@@ -13,12 +16,7 @@ export const Default = (): React.ReactElement => {
|
|
|
13
16
|
const ooui = new StepsOoui({
|
|
14
17
|
name: "enabled",
|
|
15
18
|
string: "Lorem ipsum",
|
|
16
|
-
selection: [
|
|
17
|
-
["init", "Start"],
|
|
18
|
-
["second", "Second"],
|
|
19
|
-
["third", "Third"],
|
|
20
|
-
["end", "End"],
|
|
21
|
-
],
|
|
19
|
+
selection: [['init', 'Start'], ['second', 'Second'], ['third', 'Third'], ['end', 'End']]
|
|
22
20
|
});
|
|
23
21
|
|
|
24
22
|
return (
|
|
@@ -40,4 +38,4 @@ export const Many2One = (): React.ReactElement => {
|
|
|
40
38
|
<StepsInput ooui={ooui} value="third" />
|
|
41
39
|
</LocaleProvider>
|
|
42
40
|
);
|
|
43
|
-
};
|
|
41
|
+
};
|
|
@@ -2,6 +2,9 @@ import React from "react";
|
|
|
2
2
|
|
|
3
3
|
import { Tag as TagOoui } from "@gisce/ooui";
|
|
4
4
|
|
|
5
|
+
// import "antd/dist/antd.css";
|
|
6
|
+
|
|
7
|
+
|
|
5
8
|
import LocaleProvider from "../../context/LocaleContext";
|
|
6
9
|
import { TagInput } from "../../widgets/custom/Tag";
|
|
7
10
|
|
|
@@ -14,16 +17,13 @@ export const Default = (): React.ReactElement => {
|
|
|
14
17
|
name: "status",
|
|
15
18
|
string: "Status",
|
|
16
19
|
field: "status",
|
|
17
|
-
selection: [
|
|
18
|
-
|
|
19
|
-
["open", "Open"],
|
|
20
|
-
],
|
|
21
|
-
widget_props: '{"colors": {"draft": "blue", "open": "green"}}',
|
|
20
|
+
selection: [['draft', 'Draft'], ['open', 'Open']],
|
|
21
|
+
widget_props: '{"colors": {"draft": "blue", "open": "green"}}'
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<LocaleProvider lang="en_US">
|
|
26
|
-
|
|
26
|
+
<TagInput value="draft" ooui={ooui}/>
|
|
27
27
|
</LocaleProvider>
|
|
28
28
|
);
|
|
29
29
|
};
|
|
@@ -33,15 +33,12 @@ export const WithoutColor = (): React.ReactElement => {
|
|
|
33
33
|
name: "status",
|
|
34
34
|
string: "Status",
|
|
35
35
|
field: "status",
|
|
36
|
-
selection: [
|
|
37
|
-
["draft", "Draft"],
|
|
38
|
-
["open", "Open"],
|
|
39
|
-
],
|
|
36
|
+
selection: [['draft', 'Draft'], ['open', 'Open']],
|
|
40
37
|
});
|
|
41
38
|
|
|
42
39
|
return (
|
|
43
40
|
<LocaleProvider lang="en_US">
|
|
44
|
-
|
|
41
|
+
<TagInput value="draft" ooui={ooui}/>
|
|
45
42
|
</LocaleProvider>
|
|
46
43
|
);
|
|
47
44
|
};
|
|
@@ -51,16 +48,13 @@ export const WithColorAuto = (): React.ReactElement => {
|
|
|
51
48
|
name: "status",
|
|
52
49
|
string: "Status",
|
|
53
50
|
field: "status",
|
|
54
|
-
selection: [
|
|
55
|
-
|
|
56
|
-
["open", "Open"],
|
|
57
|
-
],
|
|
58
|
-
widget_props: '{"colors": "auto"}',
|
|
51
|
+
selection: [['draft', 'Draft'], ['open', 'Open']],
|
|
52
|
+
widget_props: '{"colors": "auto"}'
|
|
59
53
|
});
|
|
60
54
|
|
|
61
55
|
return (
|
|
62
56
|
<LocaleProvider lang="en_US">
|
|
63
|
-
|
|
57
|
+
<TagInput value="draft" ooui={ooui}/>
|
|
64
58
|
</LocaleProvider>
|
|
65
59
|
);
|
|
66
60
|
};
|
|
@@ -3,6 +3,9 @@ import React from "react";
|
|
|
3
3
|
import { TagsInput, Tags } from "../../widgets/custom/Tags";
|
|
4
4
|
import { Tags as TagsOoui } 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 {
|
|
@@ -14,20 +17,16 @@ export const Default = (): React.ReactElement => {
|
|
|
14
17
|
name: "button_field",
|
|
15
18
|
string: "Lorem ipsum",
|
|
16
19
|
field: "name",
|
|
17
|
-
relation: "res.partner.category"
|
|
20
|
+
relation: "res.partner.category"
|
|
18
21
|
});
|
|
19
22
|
|
|
20
23
|
return (
|
|
21
24
|
<LocaleProvider lang="en_US">
|
|
22
|
-
<TagsInput
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{ id: 2, operation: "original" },
|
|
28
|
-
{ id: 3, operation: "pendingRemove" },
|
|
29
|
-
],
|
|
30
|
-
}}
|
|
25
|
+
<TagsInput ooui={ooui} value={{items: [
|
|
26
|
+
{id: 1, operation: "original"},
|
|
27
|
+
{id: 2, operation: "original"},
|
|
28
|
+
{id: 3, operation: "pendingRemove"}
|
|
29
|
+
]}}
|
|
31
30
|
/>
|
|
32
31
|
</LocaleProvider>
|
|
33
32
|
);
|
|
@@ -44,20 +43,17 @@ export const Readonly = (): React.ReactElement => {
|
|
|
44
43
|
|
|
45
44
|
return (
|
|
46
45
|
<LocaleProvider lang="en_US">
|
|
47
|
-
<TagsInput
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
{ id: 2, operation: "original" },
|
|
53
|
-
{ id: 3, operation: "pendingRemove" },
|
|
54
|
-
],
|
|
55
|
-
}}
|
|
46
|
+
<TagsInput ooui={ooui} value={{items: [
|
|
47
|
+
{id: 1, operation: "original"},
|
|
48
|
+
{id: 2, operation: "original"},
|
|
49
|
+
{id: 3, operation: "pendingRemove"}
|
|
50
|
+
]}}
|
|
56
51
|
/>
|
|
57
52
|
</LocaleProvider>
|
|
58
53
|
);
|
|
59
54
|
};
|
|
60
55
|
|
|
56
|
+
|
|
61
57
|
export const TagsLabel = (): React.ReactElement => {
|
|
62
58
|
const ooui = new TagsOoui({
|
|
63
59
|
name: "button_field",
|
|
@@ -68,7 +64,7 @@ export const TagsLabel = (): React.ReactElement => {
|
|
|
68
64
|
|
|
69
65
|
return (
|
|
70
66
|
<LocaleProvider lang="en_US">
|
|
71
|
-
<Tags ooui={ooui} showLabel
|
|
67
|
+
<Tags ooui={ooui} showLabel/>
|
|
72
68
|
</LocaleProvider>
|
|
73
69
|
);
|
|
74
70
|
};
|
|
@@ -3,6 +3,9 @@ import React from "react";
|
|
|
3
3
|
import { GoToResourceModal } from "../../ui/GoToResourceModal";
|
|
4
4
|
import LocaleProvider from "../../context/LocaleContext";
|
|
5
5
|
|
|
6
|
+
// import "antd/dist/antd.css";
|
|
7
|
+
|
|
8
|
+
|
|
6
9
|
export default {
|
|
7
10
|
title: "Components/Widgets/UI/GoToResourceModal",
|
|
8
11
|
};
|