@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
|
@@ -72,7 +72,7 @@ export type FormProps = {
|
|
|
72
72
|
id?: number,
|
|
73
73
|
values?: any,
|
|
74
74
|
formValues?: any,
|
|
75
|
-
x2manyPendingLink?: boolean
|
|
75
|
+
x2manyPendingLink?: boolean
|
|
76
76
|
) => void;
|
|
77
77
|
onSubmitError?: (error: any) => void;
|
|
78
78
|
onCancel?: () => void;
|
|
@@ -143,7 +143,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
143
143
|
formContext || {};
|
|
144
144
|
|
|
145
145
|
const actionViewContext = useContext(
|
|
146
|
-
ActionViewContext
|
|
146
|
+
ActionViewContext
|
|
147
147
|
) as ActionViewContextType;
|
|
148
148
|
const {
|
|
149
149
|
setFormIsSaving = undefined,
|
|
@@ -156,7 +156,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
156
156
|
} = (rootForm ? actionViewContext : {}) || {};
|
|
157
157
|
|
|
158
158
|
const contentRootContext = useContext(
|
|
159
|
-
ContentRootContext
|
|
159
|
+
ContentRootContext
|
|
160
160
|
) as ContentRootContextType;
|
|
161
161
|
const { processAction, globalValues } = contentRootContext || {};
|
|
162
162
|
|
|
@@ -213,7 +213,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
213
213
|
id?: number,
|
|
214
214
|
values?: any,
|
|
215
215
|
formValues?: any,
|
|
216
|
-
x2manyPendingLink?: boolean
|
|
216
|
+
x2manyPendingLink?: boolean
|
|
217
217
|
) => {
|
|
218
218
|
setFormHasChanges?.(false);
|
|
219
219
|
setFormIsSaving?.(false);
|
|
@@ -257,7 +257,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
257
257
|
function getPlainValues() {
|
|
258
258
|
const values: any = getValues();
|
|
259
259
|
const fields: any = getFields();
|
|
260
|
-
|
|
260
|
+
let reformattedValues: { [key: string]: any } = {};
|
|
261
261
|
|
|
262
262
|
Object.keys(values).forEach((key) => {
|
|
263
263
|
const value = values[key];
|
|
@@ -341,7 +341,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
341
341
|
source: originalFormValues.current,
|
|
342
342
|
target: getCurrentValues(fields),
|
|
343
343
|
fields,
|
|
344
|
-
})
|
|
344
|
+
})
|
|
345
345
|
).length !== 0
|
|
346
346
|
);
|
|
347
347
|
};
|
|
@@ -641,7 +641,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
641
641
|
getCurrentId(),
|
|
642
642
|
getValues(),
|
|
643
643
|
getFormValues(),
|
|
644
|
-
x2manyPendingLink.current
|
|
644
|
+
x2manyPendingLink.current
|
|
645
645
|
);
|
|
646
646
|
x2manyPendingLink.current = false;
|
|
647
647
|
const currentId = getCurrentId()!;
|
|
@@ -721,7 +721,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
721
721
|
...values,
|
|
722
722
|
...getAdditionalValues(),
|
|
723
723
|
},
|
|
724
|
-
fields
|
|
724
|
+
fields
|
|
725
725
|
),
|
|
726
726
|
});
|
|
727
727
|
setFormOoui(ooui);
|
|
@@ -770,6 +770,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
770
770
|
}) &&
|
|
771
771
|
elementHasLostFocus !== true
|
|
772
772
|
) {
|
|
773
|
+
return;
|
|
773
774
|
} else {
|
|
774
775
|
const values = processValues(antForm.getFieldsValue(true), fields);
|
|
775
776
|
lastAssignedValues.current = values;
|
|
@@ -835,7 +836,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
835
836
|
parseForm({ fields, arch: arch!, values: processedValues });
|
|
836
837
|
assignNewValuesToForm({
|
|
837
838
|
values: processedValues,
|
|
838
|
-
fields,
|
|
839
|
+
fields: fields,
|
|
839
840
|
reset: false,
|
|
840
841
|
});
|
|
841
842
|
}
|
|
@@ -1014,7 +1015,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
1014
1015
|
let mustBlockButtons = false;
|
|
1015
1016
|
|
|
1016
1017
|
try {
|
|
1017
|
-
if (formHasChanges() || getCurrentId() === undefined) {
|
|
1018
|
+
if (!readOnly && (formHasChanges() || getCurrentId() === undefined)) {
|
|
1018
1019
|
mustBlockButtons = true;
|
|
1019
1020
|
updateOperationInProgress(true);
|
|
1020
1021
|
if (submitMode === "2many") {
|
|
@@ -5,8 +5,9 @@ import Title from "antd/lib/typography/Title";
|
|
|
5
5
|
import Measure from "react-measure";
|
|
6
6
|
import iconMapper from "@/helpers/iconMapper";
|
|
7
7
|
import { Alert, Col, Row } from "antd";
|
|
8
|
-
import { Operator
|
|
8
|
+
import { Operator } from "@gisce/ooui";
|
|
9
9
|
|
|
10
|
+
import { graphProcessor } from "@gisce/ooui";
|
|
10
11
|
const { getValueForOperator } = graphProcessor;
|
|
11
12
|
|
|
12
13
|
const fontGrowFactor = 0.7;
|
|
@@ -172,7 +173,7 @@ export const GraphIndicator = (props: GraphInidicatorProps) => {
|
|
|
172
173
|
condition: iconProps,
|
|
173
174
|
values: { value: retrievedValue, percent },
|
|
174
175
|
context,
|
|
175
|
-
}
|
|
176
|
+
}
|
|
176
177
|
);
|
|
177
178
|
setIcon(iconEval);
|
|
178
179
|
} else {
|
|
@@ -284,7 +285,7 @@ function CommonIndicator({
|
|
|
284
285
|
|
|
285
286
|
let tw = getTextWidth(
|
|
286
287
|
finalValue,
|
|
287
|
-
`bold ${Math.floor(fontSize * 1.03)}px sans-serif
|
|
288
|
+
`bold ${Math.floor(fontSize * 1.03)}px sans-serif`
|
|
288
289
|
);
|
|
289
290
|
|
|
290
291
|
if (icon) {
|
|
@@ -296,8 +297,7 @@ function CommonIndicator({
|
|
|
296
297
|
fontSize = maxFontSize;
|
|
297
298
|
}
|
|
298
299
|
|
|
299
|
-
const IconElement: any =
|
|
300
|
-
icon && iconMapper(icon, { style: { fontSize: fontSize * 0.7 } });
|
|
300
|
+
const IconElement: any = icon && iconMapper(icon, {style: {fontSize: fontSize * 0.7}});
|
|
301
301
|
|
|
302
302
|
return (
|
|
303
303
|
<div
|
|
@@ -366,7 +366,7 @@ function PercentageIndicator({
|
|
|
366
366
|
|
|
367
367
|
let tw = getTextWidth(
|
|
368
368
|
percentValue,
|
|
369
|
-
`bold ${Math.floor(fontSize * 1.03)}px sans-serif
|
|
369
|
+
`bold ${Math.floor(fontSize * 1.03)}px sans-serif`
|
|
370
370
|
);
|
|
371
371
|
|
|
372
372
|
if (icon) {
|
|
@@ -378,7 +378,7 @@ function PercentageIndicator({
|
|
|
378
378
|
fontSize = maxFontSize;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
const IconElement: any = icon && iconMapper(icon, {
|
|
381
|
+
const IconElement: any = icon && iconMapper(icon, {style: {fontSize}});
|
|
382
382
|
|
|
383
383
|
return (
|
|
384
384
|
<div
|
|
@@ -166,11 +166,11 @@ function SearchTree(props: Props, ref: any) {
|
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
if (visible
|
|
169
|
+
if (visible) {
|
|
170
170
|
searchNameGetDoneRef.current = false;
|
|
171
171
|
fetchResults();
|
|
172
172
|
}
|
|
173
|
-
}, [page, offset, initialFetchDone, visible, nameSearch
|
|
173
|
+
}, [page, offset, initialFetchDone, visible, nameSearch]);
|
|
174
174
|
|
|
175
175
|
const fetchData = async () => {
|
|
176
176
|
setInitialFetchDone(false);
|
|
@@ -39,7 +39,7 @@ type Props = {
|
|
|
39
39
|
page?: number;
|
|
40
40
|
loading: boolean;
|
|
41
41
|
treeView: TreeView;
|
|
42
|
-
results: any
|
|
42
|
+
results: Array<any>;
|
|
43
43
|
showPagination?: boolean;
|
|
44
44
|
onRequestPageChange?: (page: number, pageSize?: number) => void;
|
|
45
45
|
onRowClicked?: (record: any) => void;
|
|
@@ -88,7 +88,7 @@ const dateComponentFn = (value: any): React.ReactElement => {
|
|
|
88
88
|
|
|
89
89
|
const formattedValue = dayjs(
|
|
90
90
|
value,
|
|
91
|
-
DatePickerConfig.date.dateInternalFormat
|
|
91
|
+
DatePickerConfig.date.dateInternalFormat
|
|
92
92
|
).format(DatePickerConfig.date.dateDisplayFormat);
|
|
93
93
|
return <>{formattedValue}</>;
|
|
94
94
|
};
|
|
@@ -97,7 +97,7 @@ const dateTimeComponentFn = (value: any): React.ReactElement => {
|
|
|
97
97
|
if (!value || (value && value.length === 0)) return <></>;
|
|
98
98
|
const formattedValue = dayjs(
|
|
99
99
|
value,
|
|
100
|
-
DatePickerConfig.time.dateInternalFormat
|
|
100
|
+
DatePickerConfig.time.dateInternalFormat
|
|
101
101
|
).format(DatePickerConfig.time.dateDisplayFormat);
|
|
102
102
|
return <>{formattedValue}</>;
|
|
103
103
|
};
|
|
@@ -132,7 +132,7 @@ const TagComponent = (
|
|
|
132
132
|
value: any,
|
|
133
133
|
key: string,
|
|
134
134
|
ooui: any,
|
|
135
|
-
context: any
|
|
135
|
+
context: any
|
|
136
136
|
): React.ReactElement => {
|
|
137
137
|
return <TagInput ooui={ooui} value={value} />;
|
|
138
138
|
};
|
|
@@ -141,7 +141,7 @@ const SelectionComponent = (
|
|
|
141
141
|
value: any,
|
|
142
142
|
key: string,
|
|
143
143
|
ooui: any,
|
|
144
|
-
context: any
|
|
144
|
+
context: any
|
|
145
145
|
): React.ReactElement => {
|
|
146
146
|
return <>{ooui.selectionValues.get(value)}</>;
|
|
147
147
|
};
|
|
@@ -150,7 +150,7 @@ const referenceComponent = (
|
|
|
150
150
|
value: any,
|
|
151
151
|
key: string,
|
|
152
152
|
ooui: any,
|
|
153
|
-
context: any
|
|
153
|
+
context: any
|
|
154
154
|
): React.ReactElement => {
|
|
155
155
|
return (
|
|
156
156
|
<>
|
|
@@ -167,7 +167,7 @@ const AvatarFn = (
|
|
|
167
167
|
value: any,
|
|
168
168
|
key: string,
|
|
169
169
|
ooui: any,
|
|
170
|
-
context: any
|
|
170
|
+
context: any
|
|
171
171
|
): React.ReactElement => <Avatar ooui={ooui} value={value} />;
|
|
172
172
|
|
|
173
173
|
function Tree(props: Props): React.ReactElement {
|
|
@@ -195,8 +195,8 @@ function Tree(props: Props): React.ReactElement {
|
|
|
195
195
|
onSelectAllRecords,
|
|
196
196
|
} = props;
|
|
197
197
|
|
|
198
|
-
const [items, setItems] = useState<any
|
|
199
|
-
const [columns, setColumns] = useState<Column
|
|
198
|
+
const [items, setItems] = useState<Array<any>>([]);
|
|
199
|
+
const [columns, setColumns] = useState<Array<Column>>([]);
|
|
200
200
|
|
|
201
201
|
const errorInParseColors = useRef<boolean>(false);
|
|
202
202
|
|
|
@@ -206,7 +206,7 @@ function Tree(props: Props): React.ReactElement {
|
|
|
206
206
|
const internalLimit = useRef(limit);
|
|
207
207
|
|
|
208
208
|
const actionViewContext = useContext(
|
|
209
|
-
ActionViewContext
|
|
209
|
+
ActionViewContext
|
|
210
210
|
) as ActionViewContextType;
|
|
211
211
|
const { title = undefined, setTitle = undefined } =
|
|
212
212
|
(rootTree ? actionViewContext : {}) || {};
|
|
@@ -234,7 +234,7 @@ function Tree(props: Props): React.ReactElement {
|
|
|
234
234
|
datetime: dateTimeComponentFn,
|
|
235
235
|
avatar: AvatarFn,
|
|
236
236
|
},
|
|
237
|
-
context
|
|
237
|
+
context
|
|
238
238
|
);
|
|
239
239
|
|
|
240
240
|
setColumns(columns);
|
|
@@ -271,7 +271,7 @@ function Tree(props: Props): React.ReactElement {
|
|
|
271
271
|
const numberOfVisibleSelectedRows = items?.filter(
|
|
272
272
|
(entry) =>
|
|
273
273
|
rowSelection?.selectedRowKeys &&
|
|
274
|
-
rowSelection?.selectedRowKeys.includes(entry.id)
|
|
274
|
+
rowSelection?.selectedRowKeys.includes(entry.id)
|
|
275
275
|
).length;
|
|
276
276
|
|
|
277
277
|
return loading ? null : total === undefined ? (
|
|
@@ -322,8 +322,8 @@ function Tree(props: Props): React.ReactElement {
|
|
|
322
322
|
return null;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
let summary: string[] = [];
|
|
326
|
+
let sumItems =
|
|
327
327
|
rowSelection?.selectedRowKeys?.length > 0
|
|
328
328
|
? items.filter((result: any) => {
|
|
329
329
|
return rowSelection?.selectedRowKeys.includes(result.id);
|
|
@@ -364,11 +364,12 @@ function Tree(props: Props): React.ReactElement {
|
|
|
364
364
|
) : (
|
|
365
365
|
<div>
|
|
366
366
|
{pagination()}
|
|
367
|
+
{loading && <Spin className="pb-4" />}
|
|
367
368
|
<GisceTable
|
|
368
369
|
height={adjustedHeight!}
|
|
369
370
|
columns={dataTable.columns}
|
|
370
371
|
dataSource={items}
|
|
371
|
-
loading={
|
|
372
|
+
loading={false}
|
|
372
373
|
loadingComponent={<Spin />}
|
|
373
374
|
onRowStyle={(record: any) => {
|
|
374
375
|
if (colorsForResults![record.id]) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePicker, TimePicker
|
|
1
|
+
import { DatePicker, TimePicker } from "antd";
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Field from "@/common/Field";
|
|
@@ -6,6 +6,8 @@ import { Field as FieldOoui, Label as LabelOoui } from "@gisce/ooui";
|
|
|
6
6
|
import { WidgetProps } from "@/types";
|
|
7
7
|
import Label from "@/widgets/base/Label";
|
|
8
8
|
|
|
9
|
+
import { Row, Col } from "antd";
|
|
10
|
+
|
|
9
11
|
export const DateTimeRangePicker = (props: WidgetProps) => {
|
|
10
12
|
const { ooui, showLabel = false } = props;
|
|
11
13
|
const { label, id } = ooui;
|