@gisce/react-ooui 2.0.0-alpha.6 → 2.0.0-alpha.60
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 +13 -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/common/TimePicker.d.ts +10 -0
- package/dist/common/TimePicker.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 +15 -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/dayjs.d.ts +3 -0
- package/dist/helpers/dayjs.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 +94 -0
- package/dist/locales/ca_ES.d.ts.map +1 -0
- package/dist/locales/en_US.d.ts +94 -0
- package/dist/locales/en_US.d.ts.map +1 -0
- package/dist/locales/es_ES.d.ts +94 -0
- package/dist/locales/es_ES.d.ts.map +1 -0
- package/dist/react-ooui.es.js +10077 -0
- package/dist/react-ooui.es.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +258 -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 +7 -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/Tree.d.ts +33 -0
- package/dist/widgets/views/Tree/Tree.d.ts.map +1 -0
- package/dist/widgets/views/Tree/index.d.ts +2 -0
- package/dist/widgets/views/Tree/index.d.ts.map +1 -0
- package/dist/widgets/views/Tree/treeComponents.d.ts +131 -0
- package/dist/widgets/views/Tree/treeComponents.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 +43 -18
- 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/DropdownButton.tsx +100 -37
- package/src/actionbar/FormActionBar.tsx +22 -16
- package/src/actionbar/NewButton.tsx +1 -1
- package/src/actionbar/TreeActionBar.tsx +86 -79
- package/src/common/DatePicker.tsx +4 -5
- package/src/common/Field.tsx +2 -1
- package/src/common/TimePicker.tsx +38 -0
- package/src/context/ActionViewContext.tsx +8 -4
- package/src/context/ConfigContext.tsx +22 -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/dayjs.ts +21 -0
- 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/helpers/{treeHelper.ts → treeHelper.tsx} +25 -4
- package/src/hooks/useEffectDebugger.ts +2 -2
- package/src/hooks/useExport.ts +9 -8
- package/src/hooks/useWindowDimensions.ts +1 -1
- package/src/index.ts +1 -1
- package/src/locales/ca_ES.tsx +1 -0
- package/src/locales/en_US.tsx +1 -0
- package/src/locales/es_ES.tsx +2 -0
- package/src/stories/Char.stories.tsx +27 -0
- 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/ModContractForm.stories.tsx +1 -0
- 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/cups.ts +18 -1
- 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 +229 -83
- 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/ui/GoToResourceModal.stories.tsx +3 -2
- package/src/stories/views/Tree.stories.jsx +3 -5
- package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +15 -30
- package/src/types/index.ts +2 -1
- package/src/ui/ConfirmDialog.tsx +1 -1
- package/src/ui/GoToResourceModal.tsx +8 -7
- package/src/ui/TitleHeader.tsx +8 -1
- package/src/views/ActionView.tsx +41 -30
- 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 +7 -2
- 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/Button.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/Time.tsx +5 -7
- 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 +6 -5
- package/src/widgets/custom/Avatar.tsx +15 -7
- package/src/widgets/custom/Comments.tsx +4 -7
- package/src/widgets/custom/Markdown.tsx +18 -8
- package/src/widgets/custom/MultiCheckbox.tsx +1 -1
- 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/custom/Tags.tsx +1 -1
- package/src/widgets/modals/FormModal.tsx +5 -2
- package/src/widgets/modals/SearchModal.tsx +33 -33
- package/src/widgets/modals/TranslationModal.tsx +3 -3
- package/src/widgets/views/Dashboard/Dashboard.tsx +3 -3
- package/src/widgets/views/Dashboard/DashboardTree.tsx +3 -1
- package/src/widgets/views/DashboardGrid/DashboardGrid.tsx +3 -3
- package/src/widgets/views/DashboardGrid/DashboardGridItem.tsx +2 -2
- package/src/widgets/views/Form.tsx +2 -2
- package/src/widgets/views/Graph/Graph.tsx +1 -1
- package/src/widgets/views/Graph/GraphChart.tsx +2 -2
- package/src/widgets/views/Graph/GraphDefaults.ts +3 -3
- package/src/widgets/views/Graph/useGraphData.tsx +1 -1
- package/src/widgets/views/SearchTree.tsx +23 -13
- package/src/widgets/views/Tree/Tree.tsx +295 -0
- package/src/widgets/views/Tree/index.ts +1 -0
- package/src/widgets/views/Tree/treeComponents.tsx +276 -0
- package/src/widgets/views/searchFilter/DateTimeRangePicker.tsx +34 -8
- package/src/widgets/views/searchFilter/SearchBottomBar.tsx +4 -8
- package/src/widgets/views/searchFilter/SearchField.tsx +5 -1
- package/src/widgets/views/searchFilter/SearchFilter.tsx +3 -2
- package/src/widgets/views/searchFilter/SearchParams.tsx +7 -4
- package/src/widgets/views/Tree.tsx +0 -412
|
@@ -8,7 +8,7 @@ import { LocaleContext, LocaleContextType } from "@/context/LocaleContext";
|
|
|
8
8
|
|
|
9
9
|
type SearchParamsProps = {
|
|
10
10
|
onLimitChange?: (limit: number) => void;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
|
|
13
13
|
export function SearchParams(props: SearchParamsProps): React.ReactElement {
|
|
14
14
|
const { onLimitChange } = props;
|
|
@@ -21,9 +21,12 @@ export function SearchParams(props: SearchParamsProps): React.ReactElement {
|
|
|
21
21
|
<Row key={"count_params"}>{t("parameters")}</Row>
|
|
22
22
|
<Space align="center">
|
|
23
23
|
{t("limit") + " :"}
|
|
24
|
-
<Integer
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
<Integer
|
|
25
|
+
ooui={limitOoui}
|
|
26
|
+
onChange={(newValue: number) => {
|
|
27
|
+
onLimitChange?.(newValue);
|
|
28
|
+
}}
|
|
29
|
+
/>
|
|
27
30
|
{t("first") + " :"}
|
|
28
31
|
<Integer ooui={offsetOoui} />
|
|
29
32
|
</Space>
|
|
@@ -1,412 +0,0 @@
|
|
|
1
|
-
import React, { useContext, useEffect, useRef, useState } from "react";
|
|
2
|
-
import { Pagination, Checkbox, Space, Row, Col, Spin, Tag, Badge } from "antd";
|
|
3
|
-
import {
|
|
4
|
-
getTree,
|
|
5
|
-
getTableColumns,
|
|
6
|
-
getTableItems,
|
|
7
|
-
hasActualValues,
|
|
8
|
-
} from "@/helpers/treeHelper";
|
|
9
|
-
import { Tree as TreeOoui } from "@gisce/ooui";
|
|
10
|
-
|
|
11
|
-
import { TreeView, Column } from "@/types";
|
|
12
|
-
import { LocaleContext, LocaleContextType } from "@/context/LocaleContext";
|
|
13
|
-
import { calculateColumnsWidth } from "@/helpers/dynamicColumnsHelper";
|
|
14
|
-
import { parseFloatToString } from "@/helpers/timeHelper";
|
|
15
|
-
import { ProgressBarInput } from "../base/ProgressBar";
|
|
16
|
-
import { Table as GisceTable } from "@gisce/react-formiga-table";
|
|
17
|
-
import {
|
|
18
|
-
PlusSquareOutlined,
|
|
19
|
-
MinusSquareOutlined,
|
|
20
|
-
LoadingOutlined,
|
|
21
|
-
} from "@ant-design/icons";
|
|
22
|
-
import { One2manyValue } from "../base/one2many/One2manyInput";
|
|
23
|
-
import { Interweave } from "interweave";
|
|
24
|
-
import {
|
|
25
|
-
ActionViewContext,
|
|
26
|
-
ActionViewContextType,
|
|
27
|
-
} from "@/context/ActionViewContext";
|
|
28
|
-
import { Many2oneTree } from "../base/many2one/Many2oneTree";
|
|
29
|
-
import { ReferenceTree } from "../base/ReferenceTree";
|
|
30
|
-
import dayjs from "dayjs";
|
|
31
|
-
import Avatar from "../custom/Avatar";
|
|
32
|
-
import { TagInput } from "../custom/Tag";
|
|
33
|
-
import { DatePickerConfig } from "@/common/DatePicker";
|
|
34
|
-
import { SelectAllRecordsRow } from "@/common/SelectAllRecordsRow";
|
|
35
|
-
|
|
36
|
-
type Props = {
|
|
37
|
-
total?: number;
|
|
38
|
-
limit: number;
|
|
39
|
-
page?: number;
|
|
40
|
-
loading: boolean;
|
|
41
|
-
treeView: TreeView;
|
|
42
|
-
results: any[];
|
|
43
|
-
showPagination?: boolean;
|
|
44
|
-
onRequestPageChange?: (page: number, pageSize?: number) => void;
|
|
45
|
-
onRowClicked?: (record: any) => void;
|
|
46
|
-
rowSelection?: any;
|
|
47
|
-
scrollY?: number;
|
|
48
|
-
colorsForResults?: { [key: number]: string };
|
|
49
|
-
statusForResults?: { [key: number]: string };
|
|
50
|
-
onChangeSort?: (results: any) => void;
|
|
51
|
-
sorter?: any;
|
|
52
|
-
onFetchChildrenForRecord?: (item: any) => Promise<any[]>;
|
|
53
|
-
childField?: string;
|
|
54
|
-
rootTree?: boolean;
|
|
55
|
-
context?: any;
|
|
56
|
-
readonly?: boolean;
|
|
57
|
-
onSelectAllRecords?: () => Promise<void>;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const booleanComponentFn = (value: boolean): React.ReactElement => {
|
|
61
|
-
return (
|
|
62
|
-
<div
|
|
63
|
-
style={{
|
|
64
|
-
display: "flex",
|
|
65
|
-
justifyContent: "center",
|
|
66
|
-
alignContent: "center",
|
|
67
|
-
}}
|
|
68
|
-
>
|
|
69
|
-
<Checkbox checked={value} disabled />
|
|
70
|
-
</div>
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const many2OneComponentFn = (m2oField: any): React.ReactElement => {
|
|
75
|
-
return <Many2oneTree m2oField={m2oField} />;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const textComponentFn = (value: any): React.ReactElement => {
|
|
79
|
-
return (
|
|
80
|
-
<Interweave
|
|
81
|
-
content={value?.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")}
|
|
82
|
-
/>
|
|
83
|
-
);
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
const dateComponentFn = (value: any): React.ReactElement => {
|
|
87
|
-
if (!value || (value && value.length === 0)) return <></>;
|
|
88
|
-
|
|
89
|
-
const formattedValue = dayjs(
|
|
90
|
-
value,
|
|
91
|
-
DatePickerConfig.date.dateInternalFormat,
|
|
92
|
-
).format(DatePickerConfig.date.dateDisplayFormat);
|
|
93
|
-
return <>{formattedValue}</>;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const dateTimeComponentFn = (value: any): React.ReactElement => {
|
|
97
|
-
if (!value || (value && value.length === 0)) return <></>;
|
|
98
|
-
const formattedValue = dayjs(
|
|
99
|
-
value,
|
|
100
|
-
DatePickerConfig.time.dateInternalFormat,
|
|
101
|
-
).format(DatePickerConfig.time.dateDisplayFormat);
|
|
102
|
-
return <>{formattedValue}</>;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
const one2ManyComponentFn = (value: One2manyValue): React.ReactElement => {
|
|
106
|
-
const length = Array.isArray(value?.items) ? value?.items.length : 0;
|
|
107
|
-
return <>{`( ${length} )`}</>;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
const progressBarComponentFn = (value: any): React.ReactElement => {
|
|
111
|
-
return <ProgressBarInput value={value} />;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
const floatTimeComponent = (value: number): React.ReactElement => {
|
|
115
|
-
return <>{parseFloatToString(value)}</>;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
const numberComponent = (value: number): React.ReactElement => {
|
|
119
|
-
return <div style={{ textAlign: "right" }}>{value}</div>;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
const imageComponent = (value: string): React.ReactElement => {
|
|
123
|
-
return (
|
|
124
|
-
<img
|
|
125
|
-
src={`data:image/*;base64,${value}`}
|
|
126
|
-
style={{ maxWidth: "50px", padding: "5px" }}
|
|
127
|
-
/>
|
|
128
|
-
);
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
const TagComponent = (
|
|
132
|
-
value: any,
|
|
133
|
-
key: string,
|
|
134
|
-
ooui: any,
|
|
135
|
-
context: any,
|
|
136
|
-
): React.ReactElement => {
|
|
137
|
-
return <TagInput ooui={ooui} value={value} />;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const SelectionComponent = (
|
|
141
|
-
value: any,
|
|
142
|
-
key: string,
|
|
143
|
-
ooui: any,
|
|
144
|
-
context: any,
|
|
145
|
-
): React.ReactElement => {
|
|
146
|
-
return <>{ooui.selectionValues.get(value)}</>;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
const referenceComponent = (
|
|
150
|
-
value: any,
|
|
151
|
-
key: string,
|
|
152
|
-
ooui: any,
|
|
153
|
-
context: any,
|
|
154
|
-
): React.ReactElement => {
|
|
155
|
-
return (
|
|
156
|
-
<>
|
|
157
|
-
<ReferenceTree
|
|
158
|
-
value={value}
|
|
159
|
-
selectionValues={ooui.selectionValues}
|
|
160
|
-
context={context}
|
|
161
|
-
/>
|
|
162
|
-
</>
|
|
163
|
-
);
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
const AvatarFn = (
|
|
167
|
-
value: any,
|
|
168
|
-
key: string,
|
|
169
|
-
ooui: any,
|
|
170
|
-
context: any,
|
|
171
|
-
): React.ReactElement => <Avatar ooui={ooui} value={value} />;
|
|
172
|
-
|
|
173
|
-
function Tree(props: Props): React.ReactElement {
|
|
174
|
-
const {
|
|
175
|
-
page = 1,
|
|
176
|
-
limit,
|
|
177
|
-
total,
|
|
178
|
-
treeView,
|
|
179
|
-
results,
|
|
180
|
-
onRequestPageChange,
|
|
181
|
-
loading,
|
|
182
|
-
onRowClicked,
|
|
183
|
-
showPagination = true,
|
|
184
|
-
rowSelection,
|
|
185
|
-
scrollY,
|
|
186
|
-
colorsForResults = {},
|
|
187
|
-
statusForResults = {},
|
|
188
|
-
onChangeSort,
|
|
189
|
-
sorter,
|
|
190
|
-
onFetchChildrenForRecord,
|
|
191
|
-
childField,
|
|
192
|
-
rootTree = false,
|
|
193
|
-
context,
|
|
194
|
-
readonly,
|
|
195
|
-
onSelectAllRecords,
|
|
196
|
-
} = props;
|
|
197
|
-
|
|
198
|
-
const [items, setItems] = useState<any[]>([]);
|
|
199
|
-
const [columns, setColumns] = useState<Column[]>([]);
|
|
200
|
-
|
|
201
|
-
const errorInParseColors = useRef<boolean>(false);
|
|
202
|
-
|
|
203
|
-
const treeOoui = useRef<any>(null);
|
|
204
|
-
|
|
205
|
-
const { t } = useContext(LocaleContext) as LocaleContextType;
|
|
206
|
-
const internalLimit = useRef(limit);
|
|
207
|
-
|
|
208
|
-
const actionViewContext = useContext(
|
|
209
|
-
ActionViewContext,
|
|
210
|
-
) as ActionViewContextType;
|
|
211
|
-
const { title = undefined, setTitle = undefined } =
|
|
212
|
-
(rootTree ? actionViewContext : {}) || {};
|
|
213
|
-
|
|
214
|
-
useEffect(() => {
|
|
215
|
-
treeOoui.current = getTree(treeView);
|
|
216
|
-
|
|
217
|
-
const columns = getTableColumns(
|
|
218
|
-
treeOoui.current,
|
|
219
|
-
{
|
|
220
|
-
boolean: booleanComponentFn,
|
|
221
|
-
many2one: many2OneComponentFn,
|
|
222
|
-
text: textComponentFn,
|
|
223
|
-
one2many: one2ManyComponentFn,
|
|
224
|
-
many2many: one2ManyComponentFn,
|
|
225
|
-
progressbar: progressBarComponentFn,
|
|
226
|
-
float_time: floatTimeComponent,
|
|
227
|
-
image: imageComponent,
|
|
228
|
-
integer: numberComponent,
|
|
229
|
-
float: numberComponent,
|
|
230
|
-
reference: referenceComponent,
|
|
231
|
-
tag: TagComponent,
|
|
232
|
-
selection: SelectionComponent,
|
|
233
|
-
date: dateComponentFn,
|
|
234
|
-
datetime: dateTimeComponentFn,
|
|
235
|
-
avatar: AvatarFn,
|
|
236
|
-
},
|
|
237
|
-
context,
|
|
238
|
-
);
|
|
239
|
-
|
|
240
|
-
setColumns(columns);
|
|
241
|
-
|
|
242
|
-
if (treeOoui.current.string && title !== treeOoui.current.string) {
|
|
243
|
-
setTitle?.(treeOoui.current.string);
|
|
244
|
-
}
|
|
245
|
-
}, [treeView]);
|
|
246
|
-
|
|
247
|
-
useEffect(() => {
|
|
248
|
-
errorInParseColors.current = false;
|
|
249
|
-
const items = getTableItems(treeOoui.current, results);
|
|
250
|
-
setItems(items);
|
|
251
|
-
internalLimit.current = limit;
|
|
252
|
-
}, [results]);
|
|
253
|
-
|
|
254
|
-
const from = (page - 1) * internalLimit.current + 1;
|
|
255
|
-
const to = from - 1 + items.length;
|
|
256
|
-
const summary =
|
|
257
|
-
total === undefined
|
|
258
|
-
? null
|
|
259
|
-
: total === 0
|
|
260
|
-
? t("no_results")
|
|
261
|
-
: t("summary")
|
|
262
|
-
.replace("{from}", from?.toString())
|
|
263
|
-
.replace("{to}", to?.toString())
|
|
264
|
-
.replace("{total}", total?.toString());
|
|
265
|
-
|
|
266
|
-
const pagination = () => {
|
|
267
|
-
if (!showPagination || treeView.isExpandable) {
|
|
268
|
-
return null;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
const numberOfVisibleSelectedRows = items?.filter(
|
|
272
|
-
(entry) =>
|
|
273
|
-
rowSelection?.selectedRowKeys &&
|
|
274
|
-
rowSelection?.selectedRowKeys.includes(entry.id),
|
|
275
|
-
).length;
|
|
276
|
-
|
|
277
|
-
return loading ? null : total === undefined ? (
|
|
278
|
-
<Spin className="pb-4" />
|
|
279
|
-
) : (
|
|
280
|
-
<Row align="bottom" className="pb-4">
|
|
281
|
-
<Col span={onSelectAllRecords ? 8 : 12}>
|
|
282
|
-
<Pagination
|
|
283
|
-
total={total}
|
|
284
|
-
pageSize={
|
|
285
|
-
internalLimit.current === 0 ? total : internalLimit.current
|
|
286
|
-
}
|
|
287
|
-
current={page}
|
|
288
|
-
showSizeChanger={false}
|
|
289
|
-
onChange={onRequestPageChange}
|
|
290
|
-
/>
|
|
291
|
-
</Col>
|
|
292
|
-
{onSelectAllRecords && (
|
|
293
|
-
<Col span={8} className="text-center">
|
|
294
|
-
<SelectAllRecordsRow
|
|
295
|
-
numberOfVisibleSelectedRows={numberOfVisibleSelectedRows}
|
|
296
|
-
numberOfRealSelectedRows={
|
|
297
|
-
rowSelection?.selectedRowKeys?.length || 0
|
|
298
|
-
}
|
|
299
|
-
numberOfTotalRows={items.length}
|
|
300
|
-
totalRecords={total || 0}
|
|
301
|
-
onSelectAllRecords={onSelectAllRecords}
|
|
302
|
-
/>
|
|
303
|
-
</Col>
|
|
304
|
-
)}
|
|
305
|
-
<Col span={onSelectAllRecords ? 8 : 12} className="text-right">
|
|
306
|
-
{summary}
|
|
307
|
-
</Col>
|
|
308
|
-
</Row>
|
|
309
|
-
);
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
function getSums() {
|
|
313
|
-
const tree = treeOoui.current as TreeOoui;
|
|
314
|
-
|
|
315
|
-
const sumFields = tree.columns
|
|
316
|
-
.filter((it) => it.sum !== undefined)
|
|
317
|
-
.map((it) => {
|
|
318
|
-
return { label: it.sum, field: it.id };
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
if (!sumFields || sumFields.length === 0) {
|
|
322
|
-
return null;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
const summary: string[] = [];
|
|
326
|
-
const sumItems =
|
|
327
|
-
rowSelection?.selectedRowKeys?.length > 0
|
|
328
|
-
? items.filter((result: any) => {
|
|
329
|
-
return rowSelection?.selectedRowKeys.includes(result.id);
|
|
330
|
-
})
|
|
331
|
-
: items;
|
|
332
|
-
|
|
333
|
-
sumFields.forEach((sumField) => {
|
|
334
|
-
const total = sumItems.reduce((prev, current) => {
|
|
335
|
-
if (current[sumField.field] && !isNaN(current[sumField.field]))
|
|
336
|
-
return prev + current[sumField.field];
|
|
337
|
-
else return prev;
|
|
338
|
-
}, 0);
|
|
339
|
-
|
|
340
|
-
summary.push(`${sumField.label}: ${Math.round(total * 100) / 100}`);
|
|
341
|
-
});
|
|
342
|
-
|
|
343
|
-
return <div className="p-1 pb-0 pl-2 mt-2 ">{summary.join(", ")}</div>;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
let dataTable;
|
|
347
|
-
let adjustedHeight = scrollY;
|
|
348
|
-
|
|
349
|
-
// This helper function helps to calculate the width for each column
|
|
350
|
-
// based on all table cells - column cell and source cell
|
|
351
|
-
if (treeOoui.current !== null) {
|
|
352
|
-
const maxWidthPerCell = 600;
|
|
353
|
-
dataTable = calculateColumnsWidth(columns, items, maxWidthPerCell);
|
|
354
|
-
const tree = treeOoui.current as TreeOoui;
|
|
355
|
-
|
|
356
|
-
if (scrollY && tree.columns.some((it) => it.sum !== undefined)) {
|
|
357
|
-
adjustedHeight = scrollY - 30;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
return treeOoui.current === null ||
|
|
361
|
-
!dataTable ||
|
|
362
|
-
dataTable.columns?.length === 0 ? (
|
|
363
|
-
<Spin style={{ padding: "2rem" }} />
|
|
364
|
-
) : (
|
|
365
|
-
<div>
|
|
366
|
-
{pagination()}
|
|
367
|
-
<GisceTable
|
|
368
|
-
height={adjustedHeight!}
|
|
369
|
-
columns={dataTable.columns}
|
|
370
|
-
dataSource={items}
|
|
371
|
-
loading={loading}
|
|
372
|
-
loadingComponent={<Spin />}
|
|
373
|
-
onRowStyle={(record: any) => {
|
|
374
|
-
if (colorsForResults![record.id]) {
|
|
375
|
-
return { color: colorsForResults![record.id] };
|
|
376
|
-
}
|
|
377
|
-
return undefined;
|
|
378
|
-
}}
|
|
379
|
-
onRowStatus={
|
|
380
|
-
hasActualValues(statusForResults)
|
|
381
|
-
? (record: any) => {
|
|
382
|
-
if (statusForResults![record.id]) {
|
|
383
|
-
return <Badge color={statusForResults[record.id]} />;
|
|
384
|
-
}
|
|
385
|
-
return undefined;
|
|
386
|
-
}
|
|
387
|
-
: undefined
|
|
388
|
-
}
|
|
389
|
-
onRowDoubleClick={onRowClicked}
|
|
390
|
-
selectionRowKeys={rowSelection?.selectedRowKeys}
|
|
391
|
-
onRowSelectionChange={rowSelection?.onChange}
|
|
392
|
-
onChangeSort={onChangeSort}
|
|
393
|
-
sorter={sorter}
|
|
394
|
-
readonly={readonly}
|
|
395
|
-
expandableOpts={
|
|
396
|
-
onFetchChildrenForRecord
|
|
397
|
-
? {
|
|
398
|
-
expandIcon: PlusSquareOutlined,
|
|
399
|
-
collapseIcon: MinusSquareOutlined,
|
|
400
|
-
loadingIcon: LoadingOutlined,
|
|
401
|
-
onFetchChildrenForRecord,
|
|
402
|
-
childField: childField!,
|
|
403
|
-
}
|
|
404
|
-
: undefined
|
|
405
|
-
}
|
|
406
|
-
/>
|
|
407
|
-
{getSums()}
|
|
408
|
-
</div>
|
|
409
|
-
);
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export default Tree;
|