@gisce/react-ooui 2.0.0-alpha.2 → 2.0.0-alpha.21
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 +12 -0
- package/dist/actionbar/ActionButton.d.ts.map +1 -0
- package/dist/actionbar/AttachmentsButton.d.ts +11 -0
- package/dist/actionbar/AttachmentsButton.d.ts.map +1 -0
- package/dist/actionbar/AttachmentsButtonWrapper.d.ts +18 -0
- package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +1 -0
- package/dist/actionbar/ButtonWithBadge.d.ts +7 -0
- package/dist/actionbar/ButtonWithBadge.d.ts.map +1 -0
- package/dist/actionbar/ChangeViewButton.d.ts +12 -0
- package/dist/actionbar/ChangeViewButton.d.ts.map +1 -0
- package/dist/actionbar/DashboardActionBar.d.ts +3 -0
- package/dist/actionbar/DashboardActionBar.d.ts.map +1 -0
- package/dist/actionbar/DropdownButton.d.ts +11 -0
- package/dist/actionbar/DropdownButton.d.ts.map +1 -0
- package/dist/actionbar/FormActionBar.d.ts +5 -0
- package/dist/actionbar/FormActionBar.d.ts.map +1 -0
- package/dist/actionbar/GraphActionBar.d.ts +5 -0
- package/dist/actionbar/GraphActionBar.d.ts.map +1 -0
- package/dist/actionbar/NewButton.d.ts +6 -0
- package/dist/actionbar/NewButton.d.ts.map +1 -0
- package/dist/actionbar/SearchBar.d.ts +8 -0
- package/dist/actionbar/SearchBar.d.ts.map +1 -0
- package/dist/actionbar/TreeActionBar.d.ts +8 -0
- package/dist/actionbar/TreeActionBar.d.ts.map +1 -0
- package/dist/common/ButtonWithTooltip.d.ts +7 -0
- package/dist/common/ButtonWithTooltip.d.ts.map +1 -0
- package/dist/common/DatePicker.d.ts +19 -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 +9 -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 +16 -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/useEffectDebugger.d.ts +3 -0
- package/dist/hooks/useEffectDebugger.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/useFetchViews.d.ts +1 -0
- package/dist/hooks/useFetchViews.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 +59 -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 +9836 -0
- package/dist/react-ooui.es.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +257 -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 +5 -0
- package/dist/ui/ErrorAlert.d.ts.map +1 -0
- package/dist/ui/FavouriteButton.d.ts +25 -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 +9 -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 +7 -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 +3 -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 +3 -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 +6 -0
- package/dist/views/actionViews/DashboardActionView.d.ts.map +1 -0
- package/dist/views/actionViews/FormActionView.d.ts +17 -0
- package/dist/views/actionViews/FormActionView.d.ts.map +1 -0
- package/dist/views/actionViews/GraphActionView.d.ts +12 -0
- package/dist/views/actionViews/GraphActionView.d.ts.map +1 -0
- package/dist/views/actionViews/TreeActionView.d.ts +19 -0
- package/dist/views/actionViews/TreeActionView.d.ts.map +1 -0
- package/dist/views/tabs/Tab.d.ts +10 -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 +13 -0
- package/dist/widgets/base/Binary.d.ts.map +1 -0
- package/dist/widgets/base/Boolean.d.ts +3 -0
- package/dist/widgets/base/Boolean.d.ts.map +1 -0
- package/dist/widgets/base/Button.d.ts +7 -0
- package/dist/widgets/base/Button.d.ts.map +1 -0
- package/dist/widgets/base/Char.d.ts +7 -0
- package/dist/widgets/base/Char.d.ts.map +1 -0
- package/dist/widgets/base/Date.d.ts +4 -0
- package/dist/widgets/base/Date.d.ts.map +1 -0
- package/dist/widgets/base/DateTime.d.ts +4 -0
- package/dist/widgets/base/DateTime.d.ts.map +1 -0
- package/dist/widgets/base/Email.d.ts +3 -0
- package/dist/widgets/base/Email.d.ts.map +1 -0
- package/dist/widgets/base/Float.d.ts +3 -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 +13 -0
- package/dist/widgets/base/Image.d.ts.map +1 -0
- package/dist/widgets/base/Integer.d.ts +7 -0
- package/dist/widgets/base/Integer.d.ts.map +1 -0
- package/dist/widgets/base/Label.d.ts +8 -0
- package/dist/widgets/base/Label.d.ts.map +1 -0
- package/dist/widgets/base/LinkInput.d.ts +11 -0
- package/dist/widgets/base/LinkInput.d.ts.map +1 -0
- package/dist/widgets/base/MultiSelection.d.ts +9 -0
- package/dist/widgets/base/MultiSelection.d.ts.map +1 -0
- package/dist/widgets/base/ProgressBar.d.ts +6 -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 +9 -0
- package/dist/widgets/base/Selection.d.ts.map +1 -0
- package/dist/widgets/base/Separator.d.ts +7 -0
- package/dist/widgets/base/Separator.d.ts.map +1 -0
- package/dist/widgets/base/Text.d.ts +7 -0
- package/dist/widgets/base/Text.d.ts.map +1 -0
- package/dist/widgets/base/Time.d.ts +11 -0
- package/dist/widgets/base/Time.d.ts.map +1 -0
- package/dist/widgets/base/Url.d.ts +3 -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 +8 -0
- package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +1 -0
- package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts +9 -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 +7 -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 +22 -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 +7 -0
- package/dist/widgets/custom/ButtonGroup.d.ts.map +1 -0
- package/dist/widgets/custom/CodeEditor.d.ts +8 -0
- package/dist/widgets/custom/CodeEditor.d.ts.map +1 -0
- package/dist/widgets/custom/Comments.d.ts +34 -0
- package/dist/widgets/custom/Comments.d.ts.map +1 -0
- package/dist/widgets/custom/FiberGrid.d.ts +9 -0
- package/dist/widgets/custom/FiberGrid.d.ts.map +1 -0
- package/dist/widgets/custom/Indicator.d.ts +9 -0
- package/dist/widgets/custom/Indicator.d.ts.map +1 -0
- package/dist/widgets/custom/Markdown.d.ts +4 -0
- package/dist/widgets/custom/Markdown.d.ts.map +1 -0
- package/dist/widgets/custom/MultiCheckbox.d.ts +13 -0
- package/dist/widgets/custom/MultiCheckbox.d.ts.map +1 -0
- package/dist/widgets/custom/Radio.d.ts +9 -0
- package/dist/widgets/custom/Radio.d.ts.map +1 -0
- package/dist/widgets/custom/Steps.d.ts +12 -0
- package/dist/widgets/custom/Steps.d.ts.map +1 -0
- package/dist/widgets/custom/Switch.d.ts +3 -0
- package/dist/widgets/custom/Switch.d.ts.map +1 -0
- package/dist/widgets/custom/Tag.d.ts +6 -0
- package/dist/widgets/custom/Tag.d.ts.map +1 -0
- package/dist/widgets/custom/Tags.d.ts +14 -0
- package/dist/widgets/custom/Tags.d.ts.map +1 -0
- package/dist/widgets/custom/Timeline.d.ts +15 -0
- package/dist/widgets/custom/Timeline.d.ts.map +1 -0
- package/dist/widgets/modals/ExportModal.d.ts +14 -0
- package/dist/widgets/modals/ExportModal.d.ts.map +1 -0
- package/dist/widgets/modals/FormModal.d.ts +11 -0
- package/dist/widgets/modals/FormModal.d.ts.map +1 -0
- package/dist/widgets/modals/SearchModal.d.ts +12 -0
- package/dist/widgets/modals/SearchModal.d.ts.map +1 -0
- package/dist/widgets/modals/TranslationModal.d.ts +11 -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 +3 -0
- package/dist/widgets/views/Dashboard/DashboardForm.d.ts.map +1 -0
- package/dist/widgets/views/Dashboard/DashboardTree.d.ts +18 -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 +3 -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 +3 -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 +10 -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 +16 -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 +3 -0
- package/dist/widgets/views/searchFilter/DateRangePicker.d.ts.map +1 -0
- package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts +3 -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 +7 -0
- package/dist/widgets/views/searchFilter/SearchField.d.ts.map +1 -0
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts +19 -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 +36 -13
- package/src/ConnectionProvider.ts +1 -1
- package/src/__tests__/iconMapper.test.ts +4 -4
- package/src/actionbar/AttachmentsButton.tsx +25 -23
- package/src/actionbar/AttachmentsButtonWrapper.tsx +2 -2
- package/src/actionbar/ButtonWithBadge.tsx +4 -2
- package/src/actionbar/ChangeViewButton.tsx +1 -1
- package/src/actionbar/DashboardActionBar.tsx +2 -6
- package/src/actionbar/FormActionBar.tsx +2 -2
- package/src/actionbar/NewButton.tsx +1 -1
- package/src/actionbar/TreeActionBar.tsx +2 -2
- package/src/context/ActionViewContext.tsx +7 -3
- package/src/context/DashboardActionContext.tsx +2 -3
- package/src/context/FormModalContext.tsx +2 -3
- package/src/context/LocaleContext.tsx +1 -1
- package/src/context/One2manyContext.tsx +3 -4
- package/src/helpers/containerHelper.ts +1 -1
- package/src/helpers/dynamicColumnsHelper.ts +2 -2
- package/src/helpers/iconMapper.ts +5 -5
- package/src/helpers/logInfoHelper.tsx +8 -6
- package/src/helpers/timeHelper.ts +2 -2
- package/src/hooks/useEffectDebugger.ts +2 -2
- package/src/hooks/useExport.ts +8 -8
- package/src/hooks/useWindowDimensions.ts +1 -1
- package/src/stories/Time.stories.tsx +2 -3
- package/src/stories/Utils.stories.tsx +1 -3
- package/src/stories/containers/Group.stories.tsx +2 -3
- package/src/stories/containers/Notebook.stories.tsx +0 -6
- package/src/stories/custom/Avatar.stories.tsx +2 -6
- package/src/stories/custom/Comments.stories.tsx +32 -25
- package/src/stories/forms/FormWithLinks.stories.tsx +1 -2
- package/src/stories/forms/PreferencesForm.stories.tsx +1 -2
- package/src/stories/mocks/mockProvider.ts +5 -2
- package/src/stories/mocks/models/attachment.ts +1 -2
- package/src/stories/mocks/models/butlleti.ts +249 -297
- package/src/stories/mocks/models/company.ts +2 -4
- package/src/stories/mocks/models/document.ts +2 -4
- package/src/stories/mocks/models/factura.ts +14 -28
- package/src/stories/mocks/models/form_with_gridfiber.ts +2 -4
- package/src/stories/mocks/models/hist_autoconsum.ts +2 -4
- package/src/stories/mocks/models/lead.ts +8 -16
- package/src/stories/mocks/models/modcontractual.ts +3 -6
- package/src/stories/mocks/models/partner.ts +20 -40
- package/src/stories/mocks/models/polissa.ts +6 -12
- package/src/stories/mocks/models/res_partner_category.ts +3 -3
- package/src/stories/mocks/models/signatura.ts +135 -195
- package/src/stories/mocks/models/switching.ts +2 -4
- package/src/stories/views/Tree.stories.jsx +3 -5
- package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +15 -30
- package/src/ui/ConfirmDialog.tsx +1 -1
- package/src/ui/GoToResourceModal.tsx +7 -3
- package/src/views/CurrentTabContent.tsx +1 -1
- package/src/views/TabContent.tsx +1 -1
- package/src/views/TabSelector.tsx +1 -1
- package/src/views/actionViews/DashboardActionView.tsx +1 -1
- package/src/views/actionViews/GraphActionView.tsx +1 -1
- package/src/views/actionViews/TreeActionView.tsx +2 -2
- package/src/widgets/WidgetFactory.tsx +1 -1
- package/src/widgets/base/Float.tsx +0 -1
- package/src/widgets/base/FloatTime.tsx +1 -1
- package/src/widgets/base/Integer.tsx +0 -1
- package/src/widgets/base/Reference.tsx +1 -1
- package/src/widgets/base/ReferenceTree.tsx +1 -1
- package/src/widgets/base/Separator.tsx +3 -4
- package/src/widgets/base/many2one/Many2oneSuffixModal.tsx +2 -2
- package/src/widgets/base/one2many/One2many.tsx +2 -2
- package/src/widgets/base/one2many/One2manyInput.tsx +1 -1
- package/src/widgets/custom/Avatar.tsx +15 -7
- package/src/widgets/custom/Markdown.tsx +12 -8
- package/src/widgets/custom/Radio.tsx +2 -4
- package/src/widgets/custom/Steps.tsx +10 -9
- package/src/widgets/custom/Switch.tsx +1 -5
- package/src/widgets/modals/SearchModal.tsx +31 -29
- package/src/widgets/modals/TranslationModal.tsx +2 -2
- package/src/widgets/views/Dashboard/Dashboard.tsx +3 -3
- package/src/widgets/views/DashboardGrid/DashboardGrid.tsx +3 -3
- package/src/widgets/views/Form.tsx +1 -1
- package/src/widgets/views/Graph/Graph.tsx +1 -1
- package/src/widgets/views/Graph/GraphChart.tsx +1 -1
- package/src/widgets/views/Graph/GraphDefaults.ts +2 -2
- package/src/widgets/views/SearchTree.tsx +2 -2
- package/src/widgets/views/searchFilter/SearchBottomBar.tsx +2 -6
- package/src/widgets/views/searchFilter/SearchField.tsx +5 -1
- package/src/widgets/views/searchFilter/SearchFilter.tsx +1 -1
- package/src/widgets/views/searchFilter/SearchParams.tsx +7 -4
|
@@ -4,7 +4,6 @@ import React, { useState } from "react";
|
|
|
4
4
|
import { TimeInput } from "../widgets/base/Time";
|
|
5
5
|
import { Time as TimeOoui } from "@gisce/ooui";
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
import LocaleProvider from "../context/LocaleContext";
|
|
9
8
|
|
|
10
9
|
export default {
|
|
@@ -17,12 +16,12 @@ export const Default = (): React.ReactElement => {
|
|
|
17
16
|
string: "Lorem ipsum",
|
|
18
17
|
});
|
|
19
18
|
|
|
20
|
-
const [value, setValue] = useState<string>(
|
|
19
|
+
const [value, setValue] = useState<string>("23:12:34");
|
|
21
20
|
|
|
22
21
|
const onChange = (value: string) => {
|
|
23
22
|
console.log(value);
|
|
24
23
|
setValue(value);
|
|
25
|
-
}
|
|
24
|
+
};
|
|
26
25
|
|
|
27
26
|
return (
|
|
28
27
|
<LocaleProvider lang="en_US">
|
|
@@ -7,10 +7,8 @@ export default {
|
|
|
7
7
|
title: "Components/Pure",
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
10
|
export const CustomTagWithColor = (): React.ReactElement => {
|
|
13
11
|
const text = "Hacker";
|
|
14
12
|
const color = colorFromString(text);
|
|
15
|
-
return <CustomTag color={color}>{text}</CustomTag
|
|
13
|
+
return <CustomTag color={color}>{text}</CustomTag>;
|
|
16
14
|
};
|
|
@@ -63,7 +63,7 @@ export const Default = (): React.ReactElement => {
|
|
|
63
63
|
export const WithIcon = (): React.ReactElement => {
|
|
64
64
|
const ooui = new GroupOoui({
|
|
65
65
|
string: "General",
|
|
66
|
-
icon: "home"
|
|
66
|
+
icon: "home",
|
|
67
67
|
});
|
|
68
68
|
return (
|
|
69
69
|
<LocaleProvider lang="en_US">
|
|
@@ -72,10 +72,9 @@ export const WithIcon = (): React.ReactElement => {
|
|
|
72
72
|
);
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
|
|
76
75
|
export const OnlyIcon = (): React.ReactElement => {
|
|
77
76
|
const ooui = new GroupOoui({
|
|
78
|
-
icon: "home"
|
|
77
|
+
icon: "home",
|
|
79
78
|
});
|
|
80
79
|
return (
|
|
81
80
|
<LocaleProvider lang="en_US">
|
|
@@ -88,7 +88,6 @@ export const Test = (): React.ReactElement => {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
export const BottomPosition = (): React.ReactElement => {
|
|
91
|
-
|
|
92
91
|
const arch = `<form>
|
|
93
92
|
<notebook name="notebook" tabpos="bottom">
|
|
94
93
|
<page string="General">
|
|
@@ -113,9 +112,7 @@ export const BottomPosition = (): React.ReactElement => {
|
|
|
113
112
|
);
|
|
114
113
|
};
|
|
115
114
|
|
|
116
|
-
|
|
117
115
|
export const LeftPosition = (): React.ReactElement => {
|
|
118
|
-
|
|
119
116
|
const arch = `<form>
|
|
120
117
|
<notebook name="notebook" tabpos="left">
|
|
121
118
|
<page string="General">
|
|
@@ -141,7 +138,6 @@ export const LeftPosition = (): React.ReactElement => {
|
|
|
141
138
|
};
|
|
142
139
|
|
|
143
140
|
export const IconTabs = (): React.ReactElement => {
|
|
144
|
-
|
|
145
141
|
const arch = `<form>
|
|
146
142
|
<notebook name="notebook">
|
|
147
143
|
<page string="Home" icon="home">
|
|
@@ -166,9 +162,7 @@ export const IconTabs = (): React.ReactElement => {
|
|
|
166
162
|
);
|
|
167
163
|
};
|
|
168
164
|
|
|
169
|
-
|
|
170
165
|
export const IconTablerTabs = (): React.ReactElement => {
|
|
171
|
-
|
|
172
166
|
const arch = `<form>
|
|
173
167
|
<notebook name="notebook">
|
|
174
168
|
<page string="Home" icon="bolt">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, {useState} from "react";
|
|
1
|
+
import React, { useState } from "react";
|
|
2
2
|
|
|
3
3
|
import { Avatar as AvatarOoui } from "@gisce/ooui";
|
|
4
|
-
import Avatar from "
|
|
4
|
+
import Avatar from "../../widgets/custom/Avatar";
|
|
5
5
|
import LocaleProvider from "../../context/LocaleContext";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
@@ -20,7 +20,3 @@ export const Default = (): React.ReactElement => {
|
|
|
20
20
|
</LocaleProvider>
|
|
21
21
|
);
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import React from "react";
|
|
3
3
|
import LocaleProvider from "../../context/LocaleContext";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import {
|
|
5
|
+
Comments,
|
|
6
|
+
CommentsTimeline,
|
|
7
|
+
EventsType,
|
|
8
|
+
} from "../../widgets/custom/Comments";
|
|
6
9
|
|
|
7
10
|
export default {
|
|
8
11
|
title: "Components/Widgets/Custom/Comments",
|
|
9
12
|
};
|
|
10
13
|
|
|
11
14
|
export const Default = (): React.ReactElement => {
|
|
12
|
-
|
|
13
15
|
const data = [
|
|
14
16
|
{
|
|
15
17
|
id: 1,
|
|
16
|
-
text:
|
|
18
|
+
text:
|
|
19
|
+
"Totam odit eum distinctio tempore. Numquam illo dolorum laboriosam vel illum. Sunt saepe ab nihil soluta placeat ullam.\n" +
|
|
17
20
|
"Eius ea enim ut. Unde consequatur ducimus esse ullam. Odio fugit reprehenderit sunt.\n" +
|
|
18
21
|
"Recusandae a aliquid. Iusto quisquam temporibus a assumenda aut fuga. Tenetur cum quis saepe et alias delectus quos.\n" +
|
|
19
22
|
"Corporis adipisci eaque quod. Aperiam voluptatum doloribus accusamus suscipit.\n" +
|
|
@@ -30,7 +33,8 @@ export const Default = (): React.ReactElement => {
|
|
|
30
33
|
},
|
|
31
34
|
{
|
|
32
35
|
id: 2,
|
|
33
|
-
text:
|
|
36
|
+
text:
|
|
37
|
+
"Dicta eligendi pariatur ratione ipsam accusantium. Ad minus nesciunt optio id ipsum.\n" +
|
|
34
38
|
"Incidunt eligendi doloremque molestias. Voluptate sapiente nulla veritatis.\n" +
|
|
35
39
|
"Nostrum minima ad repudiandae optio laborum.\n" +
|
|
36
40
|
"Adipisci sint quasi laudantium explicabo ab nostrum. Rerum nemo itaque officia. Velit accusamus itaque accusantium ducimus quidem quae cum.\n" +
|
|
@@ -46,7 +50,8 @@ export const Default = (): React.ReactElement => {
|
|
|
46
50
|
},
|
|
47
51
|
{
|
|
48
52
|
id: 3,
|
|
49
|
-
text:
|
|
53
|
+
text:
|
|
54
|
+
"Amet tempora ipsum ipsum delectus.\n" +
|
|
50
55
|
"Autem minus magnam in eveniet. Veniam voluptas deleniti eaque sequi autem.\n" +
|
|
51
56
|
"Occaecati laborum ut voluptatum maxime iure cupiditate. Facere vitae aliquid.\n" +
|
|
52
57
|
"Nemo nihil enim quia exercitationem. Quisquam aut autem magni occaecati velit.\n" +
|
|
@@ -65,7 +70,8 @@ export const Default = (): React.ReactElement => {
|
|
|
65
70
|
},
|
|
66
71
|
{
|
|
67
72
|
id: 4,
|
|
68
|
-
text:
|
|
73
|
+
text:
|
|
74
|
+
"Esse tempora amet consectetur asperiores dicta. Quidem est harum tempora voluptatum mollitia.\n" +
|
|
69
75
|
"Voluptate reprehenderit sint vitae laborum animi placeat nihil. Maxime iure porro delectus voluptate. Molestiae dolorem natus alias ipsam consequuntur. Nisi nam exercitationem voluptas saepe occaecati.\n" +
|
|
70
76
|
"Reprehenderit quam ex est vel.\n" +
|
|
71
77
|
"Magnam quidem laudantium reprehenderit rerum nam ducimus perspiciatis. Vero omnis sed ducimus quidem dolores dolor illum.\n" +
|
|
@@ -80,8 +86,8 @@ export const Default = (): React.ReactElement => {
|
|
|
80
86
|
date: "2023-04-01 13:00:00",
|
|
81
87
|
isSender: true,
|
|
82
88
|
isAuthor: false,
|
|
83
|
-
}
|
|
84
|
-
]
|
|
89
|
+
},
|
|
90
|
+
];
|
|
85
91
|
return (
|
|
86
92
|
<LocaleProvider lang="es_ES">
|
|
87
93
|
<Comments data={data} />
|
|
@@ -96,13 +102,14 @@ export const Timeline = () => {
|
|
|
96
102
|
event: {
|
|
97
103
|
date: "2023-04-01 10:00",
|
|
98
104
|
action: "Draft",
|
|
99
|
-
}
|
|
105
|
+
},
|
|
100
106
|
},
|
|
101
107
|
{
|
|
102
108
|
type: "comment",
|
|
103
109
|
event: {
|
|
104
110
|
id: 1,
|
|
105
|
-
text:
|
|
111
|
+
text:
|
|
112
|
+
"Totam odit eum distinctio tempore. Numquam illo dolorum laboriosam vel illum. Sunt saepe ab nihil soluta placeat ullam.\n" +
|
|
106
113
|
"Eius ea enim ut. Unde consequatur ducimus esse ullam. Odio fugit reprehenderit sunt.\n" +
|
|
107
114
|
"Recusandae a aliquid. Iusto quisquam temporibus a assumenda aut fuga. Tenetur cum quis saepe et alias delectus quos.\n" +
|
|
108
115
|
"Corporis adipisci eaque quod. Aperiam voluptatum doloribus accusamus suscipit.\n" +
|
|
@@ -116,20 +123,21 @@ export const Timeline = () => {
|
|
|
116
123
|
date: "2023-04-01 10:00:00",
|
|
117
124
|
isSender: true,
|
|
118
125
|
isAuthor: true,
|
|
119
|
-
}
|
|
126
|
+
},
|
|
120
127
|
},
|
|
121
128
|
{
|
|
122
129
|
type: "action",
|
|
123
130
|
event: {
|
|
124
131
|
date: "2023-04-01 10:10",
|
|
125
132
|
action: "Open",
|
|
126
|
-
}
|
|
133
|
+
},
|
|
127
134
|
},
|
|
128
135
|
{
|
|
129
136
|
type: "comment",
|
|
130
137
|
event: {
|
|
131
138
|
id: 2,
|
|
132
|
-
text:
|
|
139
|
+
text:
|
|
140
|
+
"Dicta eligendi pariatur ratione ipsam accusantium. Ad minus nesciunt optio id ipsum.\n" +
|
|
133
141
|
"Incidunt eligendi doloremque molestias. Voluptate sapiente nulla veritatis.\n" +
|
|
134
142
|
"Nostrum minima ad repudiandae optio laborum.\n" +
|
|
135
143
|
"Adipisci sint quasi laudantium explicabo ab nostrum. Rerum nemo itaque officia. Velit accusamus itaque accusantium ducimus quidem quae cum.\n" +
|
|
@@ -148,7 +156,8 @@ export const Timeline = () => {
|
|
|
148
156
|
type: "comment",
|
|
149
157
|
event: {
|
|
150
158
|
id: 4,
|
|
151
|
-
text:
|
|
159
|
+
text:
|
|
160
|
+
"Esse tempora amet consectetur asperiores dicta. Quidem est harum tempora voluptatum mollitia.\n" +
|
|
152
161
|
"Voluptate reprehenderit sint vitae laborum animi placeat nihil. Maxime iure porro delectus voluptate. Molestiae dolorem natus alias ipsam consequuntur. Nisi nam exercitationem voluptas saepe occaecati.\n" +
|
|
153
162
|
"Reprehenderit quam ex est vel.\n" +
|
|
154
163
|
"Magnam quidem laudantium reprehenderit rerum nam ducimus perspiciatis. Vero omnis sed ducimus quidem dolores dolor illum.\n" +
|
|
@@ -163,28 +172,26 @@ export const Timeline = () => {
|
|
|
163
172
|
date: "2023-04-01 13:00:00",
|
|
164
173
|
isSender: true,
|
|
165
174
|
isAuthor: false,
|
|
166
|
-
}
|
|
175
|
+
},
|
|
167
176
|
},
|
|
168
177
|
{
|
|
169
178
|
type: "action",
|
|
170
179
|
event: {
|
|
171
180
|
action: "Pendent",
|
|
172
|
-
date: "2023-04-01 13:05:00"
|
|
173
|
-
}
|
|
181
|
+
date: "2023-04-01 13:05:00",
|
|
182
|
+
},
|
|
174
183
|
},
|
|
175
184
|
{
|
|
176
185
|
type: "action",
|
|
177
186
|
event: {
|
|
178
187
|
action: "Close",
|
|
179
|
-
date: "2023-04-01 13:35:00"
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
] as EventsType[]
|
|
188
|
+
date: "2023-04-01 13:35:00",
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
] as EventsType[];
|
|
183
192
|
return (
|
|
184
193
|
<LocaleProvider lang="es_ES">
|
|
185
194
|
<CommentsTimeline value={data} />
|
|
186
195
|
</LocaleProvider>
|
|
187
196
|
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
197
|
+
};
|
|
@@ -14,8 +14,7 @@ export const Default = (): React.ReactElement => {
|
|
|
14
14
|
model={"test"}
|
|
15
15
|
id={6}
|
|
16
16
|
formView={{
|
|
17
|
-
arch:
|
|
18
|
-
'<form string="test"><field name="url" /><field name="email" /></form>',
|
|
17
|
+
arch: '<form string="test"><field name="url" /><field name="email" /></form>',
|
|
19
18
|
fields: { url: { type: "url" }, email: { type: "email" } },
|
|
20
19
|
}}
|
|
21
20
|
values={{ url: "http://www.google.com", email: "test@test.net" }}
|
|
@@ -674,8 +674,7 @@ Default.args = {
|
|
|
674
674
|
views: {},
|
|
675
675
|
},
|
|
676
676
|
password: {
|
|
677
|
-
help:
|
|
678
|
-
"Keep empty if you don't want the user to be able to connect on the system.",
|
|
677
|
+
help: "Keep empty if you don't want the user to be able to connect on the system.",
|
|
679
678
|
invisible: true,
|
|
680
679
|
size: 64,
|
|
681
680
|
string: "Password",
|
|
@@ -55,9 +55,12 @@ const init = () => {
|
|
|
55
55
|
const { model, fields } = options;
|
|
56
56
|
await new Promise((resolve) => setTimeout(resolve, timeout));
|
|
57
57
|
const data = getMock(model);
|
|
58
|
-
const fieldsDef = Object.fromEntries(
|
|
58
|
+
const fieldsDef = Object.fromEntries(
|
|
59
|
+
Object.entries(data.form.fields).filter(([key]) =>
|
|
60
|
+
fields.includes(key),
|
|
61
|
+
),
|
|
62
|
+
);
|
|
59
63
|
return fieldsDef;
|
|
60
|
-
|
|
61
64
|
},
|
|
62
65
|
searchAllIds: async (options: SearchCountRequest) => {
|
|
63
66
|
await new Promise((resolve) => setTimeout(resolve, timeout));
|
|
@@ -18,8 +18,7 @@ export default {
|
|
|
18
18
|
selection_associated_object: false,
|
|
19
19
|
},
|
|
20
20
|
form: {
|
|
21
|
-
arch:
|
|
22
|
-
'<form string="Attachments">\n <group colspan="4" col="6">\n <field name="name" select="1"/>\n <field name="create_uid" select="2"/>\n <field name="create_date" select="2"/>\n <field name="id" invisible="1"/>\n </group>\n <notebook colspan="4">\n <page string="Attachment">\n <group col="2" colspan="2">\n <separator string="Data" colspan="2"/>\n <group attrs="{\'invisible\': [(\'id\', \'!=\', False), (\'link\', \'=\', False)]}">\n <field name="link" widget="url" colspan="4"/>\n </group>\n <group attrs="{\'invisible\': [(\'id\', \'!=\', False), (\'link\', \'!=\', False)]}">\n <field name="datas" filename="datas_fname"/>\n <field name="datas_fname" select="1"/>\n </group>\n </group>\n <group col="2" colspan="2">\n <separator string="Attached To" colspan="2"/>\n <field name="category_id" select="1"/>\n <field name="selection_associated_object"/>\n </group>\n </page>\n <page string="Notes">\n <field colspan="4" name="description" nolabel="1"/>\n </page>\n </notebook>\n </form>',
|
|
21
|
+
arch: '<form string="Attachments">\n <group colspan="4" col="6">\n <field name="name" select="1"/>\n <field name="create_uid" select="2"/>\n <field name="create_date" select="2"/>\n <field name="id" invisible="1"/>\n </group>\n <notebook colspan="4">\n <page string="Attachment">\n <group col="2" colspan="2">\n <separator string="Data" colspan="2"/>\n <group attrs="{\'invisible\': [(\'id\', \'!=\', False), (\'link\', \'=\', False)]}">\n <field name="link" widget="url" colspan="4"/>\n </group>\n <group attrs="{\'invisible\': [(\'id\', \'!=\', False), (\'link\', \'!=\', False)]}">\n <field name="datas" filename="datas_fname"/>\n <field name="datas_fname" select="1"/>\n </group>\n </group>\n <group col="2" colspan="2">\n <separator string="Attached To" colspan="2"/>\n <field name="category_id" select="1"/>\n <field name="selection_associated_object"/>\n </group>\n </page>\n <page string="Notes">\n <field colspan="4" name="description" nolabel="1"/>\n </page>\n </notebook>\n </form>',
|
|
23
22
|
field_parent: false,
|
|
24
23
|
fields: {
|
|
25
24
|
category_id: {
|