@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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { One2manyValue } from "../../base/one2many/One2manyInput";
|
|
3
|
+
export declare const BooleanComponent: ({ value, }: {
|
|
4
|
+
value: boolean;
|
|
5
|
+
}) => ReactElement;
|
|
6
|
+
export declare const Many2OneComponent: ({ value }: {
|
|
7
|
+
value: any;
|
|
8
|
+
}) => ReactElement;
|
|
9
|
+
export declare const TextComponent: ({ value }: {
|
|
10
|
+
value: any;
|
|
11
|
+
}) => ReactElement;
|
|
12
|
+
export declare const DateComponent: ({ value }: {
|
|
13
|
+
value: any;
|
|
14
|
+
}) => ReactElement;
|
|
15
|
+
export declare const DateTimeComponent: ({ value }: {
|
|
16
|
+
value: any;
|
|
17
|
+
}) => ReactElement;
|
|
18
|
+
export declare const One2ManyComponent: ({ value, }: {
|
|
19
|
+
value: One2manyValue;
|
|
20
|
+
}) => ReactElement;
|
|
21
|
+
export declare const ProgressBarComponent: ({ value, }: {
|
|
22
|
+
value: any;
|
|
23
|
+
}) => ReactElement;
|
|
24
|
+
export declare const FloatTimeComponent: ({ value }: {
|
|
25
|
+
value: any;
|
|
26
|
+
}) => ReactElement;
|
|
27
|
+
export declare const NumberComponent: ({ value }: {
|
|
28
|
+
value: number;
|
|
29
|
+
}) => ReactElement;
|
|
30
|
+
export declare const ImageComponent: ({ value }: {
|
|
31
|
+
value: string;
|
|
32
|
+
}) => ReactElement;
|
|
33
|
+
export declare const TagComponent: ({ value, key, ooui, context, }: {
|
|
34
|
+
value: any;
|
|
35
|
+
key: string;
|
|
36
|
+
ooui: any;
|
|
37
|
+
context: any;
|
|
38
|
+
}) => ReactElement;
|
|
39
|
+
export declare const SelectionComponent: ({ value, key, ooui, context, }: {
|
|
40
|
+
value: any;
|
|
41
|
+
key: string;
|
|
42
|
+
ooui: any;
|
|
43
|
+
context: any;
|
|
44
|
+
}) => ReactElement;
|
|
45
|
+
export declare const ReferenceComponent: ({ value, key, ooui, context, }: {
|
|
46
|
+
value: any;
|
|
47
|
+
key: string;
|
|
48
|
+
ooui: any;
|
|
49
|
+
context: any;
|
|
50
|
+
}) => ReactElement;
|
|
51
|
+
export declare const AvatarComponent: ({ value, key, ooui, context, }: {
|
|
52
|
+
value: any;
|
|
53
|
+
key: string;
|
|
54
|
+
ooui: any;
|
|
55
|
+
context: any;
|
|
56
|
+
}) => ReactElement;
|
|
57
|
+
export declare const TagsComponent: ({ value, key, ooui, context, }: {
|
|
58
|
+
value: any;
|
|
59
|
+
key: string;
|
|
60
|
+
ooui: any;
|
|
61
|
+
context: any;
|
|
62
|
+
}) => ReactElement;
|
|
63
|
+
export declare const COLUMN_COMPONENTS: {
|
|
64
|
+
boolean: ({ value, }: {
|
|
65
|
+
value: boolean;
|
|
66
|
+
}) => ReactElement;
|
|
67
|
+
many2one: ({ value }: {
|
|
68
|
+
value: any;
|
|
69
|
+
}) => ReactElement;
|
|
70
|
+
text: ({ value }: {
|
|
71
|
+
value: any;
|
|
72
|
+
}) => ReactElement;
|
|
73
|
+
one2many: ({ value, }: {
|
|
74
|
+
value: One2manyValue;
|
|
75
|
+
}) => ReactElement;
|
|
76
|
+
many2many: ({ value, }: {
|
|
77
|
+
value: One2manyValue;
|
|
78
|
+
}) => ReactElement;
|
|
79
|
+
progressbar: ({ value, }: {
|
|
80
|
+
value: any;
|
|
81
|
+
}) => ReactElement;
|
|
82
|
+
float_time: ({ value }: {
|
|
83
|
+
value: any;
|
|
84
|
+
}) => ReactElement;
|
|
85
|
+
image: ({ value }: {
|
|
86
|
+
value: string;
|
|
87
|
+
}) => ReactElement;
|
|
88
|
+
integer: ({ value }: {
|
|
89
|
+
value: number;
|
|
90
|
+
}) => ReactElement;
|
|
91
|
+
float: ({ value }: {
|
|
92
|
+
value: number;
|
|
93
|
+
}) => ReactElement;
|
|
94
|
+
reference: ({ value, key, ooui, context, }: {
|
|
95
|
+
value: any;
|
|
96
|
+
key: string;
|
|
97
|
+
ooui: any;
|
|
98
|
+
context: any;
|
|
99
|
+
}) => ReactElement;
|
|
100
|
+
tag: ({ value, key, ooui, context, }: {
|
|
101
|
+
value: any;
|
|
102
|
+
key: string;
|
|
103
|
+
ooui: any;
|
|
104
|
+
context: any;
|
|
105
|
+
}) => ReactElement;
|
|
106
|
+
selection: ({ value, key, ooui, context, }: {
|
|
107
|
+
value: any;
|
|
108
|
+
key: string;
|
|
109
|
+
ooui: any;
|
|
110
|
+
context: any;
|
|
111
|
+
}) => ReactElement;
|
|
112
|
+
date: ({ value }: {
|
|
113
|
+
value: any;
|
|
114
|
+
}) => ReactElement;
|
|
115
|
+
datetime: ({ value }: {
|
|
116
|
+
value: any;
|
|
117
|
+
}) => ReactElement;
|
|
118
|
+
avatar: ({ value, key, ooui, context, }: {
|
|
119
|
+
value: any;
|
|
120
|
+
key: string;
|
|
121
|
+
ooui: any;
|
|
122
|
+
context: any;
|
|
123
|
+
}) => ReactElement;
|
|
124
|
+
tags: ({ value, key, ooui, context, }: {
|
|
125
|
+
value: any;
|
|
126
|
+
key: string;
|
|
127
|
+
ooui: any;
|
|
128
|
+
context: any;
|
|
129
|
+
}) => ReactElement;
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=treeComponents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"treeComponents.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Tree/treeComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6C,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAWlE,eAAO,MAAM,gBAAgB;WAGpB,OAAO;MACZ,YAeH,CAAC;AAEF,eAAO,MAAM,iBAAiB;WAAwB,GAAG;MAAK,YAE7D,CAAC;AAEF,eAAO,MAAM,aAAa;WAAwB,GAAG;MAAK,YASzD,CAAC;AAEF,eAAO,MAAM,aAAa;WAAwB,GAAG;MAAK,YAUzD,CAAC;AAEF,eAAO,MAAM,iBAAiB;WAAwB,GAAG;MAAK,YAS7D,CAAC;AAEF,eAAO,MAAM,iBAAiB;WAGrB,aAAa;MAClB,YAKH,CAAC;AAEF,eAAO,MAAM,oBAAoB;WAGxB,GAAG;MACR,YAEH,CAAC;AAEF,eAAO,MAAM,kBAAkB;WAAwB,GAAG;MAAK,YAE9D,CAAC;AAEF,eAAO,MAAM,eAAe;WAAwB,MAAM;MAAK,YAK9D,CAAC;AAEF,eAAO,MAAM,cAAc;WAAwB,MAAM;MAAK,YAU7D,CAAC;AAEF,eAAO,MAAM,YAAY;WAMhB,GAAG;SACL,MAAM;UACL,GAAG;aACA,GAAG;MACV,YAEH,CAAC;AAEF,eAAO,MAAM,kBAAkB;WAMtB,GAAG;SACL,MAAM;UACL,GAAG;aACA,GAAG;MACV,YAEH,CAAC;AAEF,eAAO,MAAM,kBAAkB;WAMtB,GAAG;SACL,MAAM;UACL,GAAG;aACA,GAAG;MACV,YAWH,CAAC;AAEF,eAAO,MAAM,eAAe;WAMnB,GAAG;SACL,MAAM;UACL,GAAG;aACA,GAAG;MACV,YAEH,CAAC;AAEF,eAAO,MAAM,aAAa;WAMjB,GAAG;SACL,MAAM;UACL,GAAG;aACA,GAAG;MACV,YAgEH,CAAC;AAEF,eAAO,MAAM,iBAAiB;;eA/OrB,OAAO;UACZ,YAAY;;eAiBsC,GAAG;UAAK,YAAY;;eAIxB,GAAG;UAAK,YAAY;;eAqC7D,aAAa;UAClB,YAAY;;eADP,aAAa;UAClB,YAAY;;eAUP,GAAG;UACR,YAAY;;eAIuC,GAAG;UAAK,YAAY;;eAWxB,MAAM;UAAK,YAAY;;eAPtB,MAAM;UAAK,YAAY;;eAAvB,MAAM;UAAK,YAAY;;eAqDlE,GAAG;aACL,MAAM;cACL,GAAG;iBACA,GAAG;UACV,YAAY;;eAhCP,GAAG;aACL,MAAM;cACL,GAAG;iBACA,GAAG;UACV,YAAY;;eAUP,GAAG;aACL,MAAM;cACL,GAAG;iBACA,GAAG;UACV,YAAY;;eAzFkC,GAAG;UAAK,YAAY;;eAYhB,GAAG;UAAK,YAAY;;eA8GjE,GAAG;aACL,MAAM;cACL,GAAG;iBACA,GAAG;UACV,YAAY;;eAUP,GAAG;aACL,MAAM;cACL,GAAG;iBACA,GAAG;UACV,YAAY;CAoFf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/DateRangePicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,eAAe,UAAW,WAAW,4CASjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimeRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/DateTimeRangePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,eAAO,MAAM,mBAAmB,UAAW,WAAW,4CAgDrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PairFields.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/PairFields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAMtC,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CA2CjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
advancedFilter: boolean;
|
|
4
|
+
isSearching: boolean;
|
|
5
|
+
onAdvancedFilterToggle: () => void;
|
|
6
|
+
onClear: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function SearchBottomBar(props: Props): ReactElement;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SearchBottomBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchBottomBar.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/SearchBottomBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAYjD,KAAK,KAAK,GAAG;IACX,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,YAAY,CAkC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/SearchField.tsx"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,EAGN,MAAM,aAAa,CAAC;AAGrB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,2CAyCvC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SearchFields } from '../../../*/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
fields: any;
|
|
4
|
+
searchFields: SearchFields;
|
|
5
|
+
onClear: () => void;
|
|
6
|
+
onSubmit: (values: any) => void;
|
|
7
|
+
isSearching: boolean;
|
|
8
|
+
limit: number;
|
|
9
|
+
offset: number;
|
|
10
|
+
onLimitChange?: (limit: number) => void;
|
|
11
|
+
searchVisible?: boolean;
|
|
12
|
+
setSearchFilterHeight?: (height: number) => void;
|
|
13
|
+
searchError?: string;
|
|
14
|
+
searchValues?: any;
|
|
15
|
+
showLimitOptions?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare function SearchFilter(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default SearchFilter;
|
|
19
|
+
//# sourceMappingURL=SearchFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchFilter.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/SearchFilter.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAOvC,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,iBAAS,YAAY,CAAC,KAAK,EAAE,KAAK,2CA0HjC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchParams.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/SearchParams.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAQ1C,KAAK,iBAAiB,GAAG;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,CAsBzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gisce/react-ooui",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.60",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": "20.5.0"
|
|
6
6
|
},
|
|
@@ -16,25 +16,27 @@
|
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
|
-
"import": "./dist/react-ooui.es.js"
|
|
19
|
+
"import": "./dist/react-ooui.es.js",
|
|
20
|
+
"types": "./dist/index.d.ts"
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
|
-
"preinstall": "npx only-allow npm",
|
|
24
24
|
"build": "tsc --noEmit && vite build",
|
|
25
|
-
"
|
|
26
|
-
"dev:vite": "while :; do tsc && vite build --watch --force; done",
|
|
25
|
+
"dev:vite": "vite build --watch --force",
|
|
27
26
|
"dev:tsc": "tsc --noEmit --watch",
|
|
28
27
|
"prepare": "husky install",
|
|
29
28
|
"start": "concurrently npm:dev:*",
|
|
30
|
-
"check": "lint-staged"
|
|
29
|
+
"check": "lint-staged",
|
|
30
|
+
"storybook": "storybook dev -p 6006",
|
|
31
|
+
"build-storybook": "storybook build",
|
|
32
|
+
"analyze": "npm run build && npx vite-bundle-visualizer"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
33
35
|
"@ant-design/plots": "^1.0.9",
|
|
34
36
|
"@gisce/fiber-diagram": "^1.1.0-rc.3",
|
|
35
|
-
"@gisce/ooui": "
|
|
37
|
+
"@gisce/ooui": "1.0.0-alpha.21",
|
|
36
38
|
"@gisce/react-formiga-components": "^1.0.9-rc.21",
|
|
37
|
-
"@gisce/react-formiga-table": "
|
|
39
|
+
"@gisce/react-formiga-table": "1.0.0-alpha.12",
|
|
38
40
|
"@monaco-editor/react": "^4.4.5",
|
|
39
41
|
"@tabler/icons-react": "^2.11.0",
|
|
40
42
|
"antd": "^5.5.2",
|
|
@@ -42,25 +44,37 @@
|
|
|
42
44
|
"file-type-buffer-browser": "git+ssh://git@github.com/mguellsegarra/file-type-buffer-browser.git",
|
|
43
45
|
"interweave": "^13.0.0",
|
|
44
46
|
"md5": "^2.3.0",
|
|
45
|
-
"react": "
|
|
46
|
-
"react-dom": "
|
|
47
|
+
"react": "18.2.0",
|
|
48
|
+
"react-dom": "18.2.0",
|
|
47
49
|
"react-grid-layout": "^1.3.4",
|
|
48
50
|
"react-hotkeys-hook": "^3.4.4",
|
|
49
|
-
"react-markdown": "^
|
|
51
|
+
"react-markdown": "^9.0.0",
|
|
50
52
|
"react-measure": "^2.5.2",
|
|
53
|
+
"remark-gfm": "^4.0.0",
|
|
51
54
|
"styled-components": "5.3.5",
|
|
52
55
|
"use-deep-compare-effect": "^1.8.1",
|
|
53
|
-
"uuid": "^
|
|
56
|
+
"uuid": "^9.0.1",
|
|
54
57
|
"validator": "^13.6.0"
|
|
55
58
|
},
|
|
56
59
|
"devDependencies": {
|
|
60
|
+
"@commitlint/cli": "^18.4.3",
|
|
61
|
+
"@gisce/commitlint-rules": "1.0.5",
|
|
57
62
|
"@semantic-release/exec": "6.0.3",
|
|
58
63
|
"@semantic-release/git": "10.0.1",
|
|
59
64
|
"@semantic-release/npm": "10.0.4",
|
|
65
|
+
"@storybook/addon-essentials": "^7.4.6",
|
|
66
|
+
"@storybook/addon-interactions": "^7.4.6",
|
|
67
|
+
"@storybook/addon-knobs": "^7.0.2",
|
|
68
|
+
"@storybook/addon-links": "^7.4.6",
|
|
69
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
70
|
+
"@storybook/blocks": "^7.4.6",
|
|
71
|
+
"@storybook/react": "^7.4.6",
|
|
72
|
+
"@storybook/react-vite": "^7.4.6",
|
|
73
|
+
"@storybook/testing-library": "^0.2.2",
|
|
60
74
|
"@types/lodash": "^4.14.170",
|
|
61
75
|
"@types/md5": "^2.3.2",
|
|
62
|
-
"@types/react": "
|
|
63
|
-
"@types/react-dom": "
|
|
76
|
+
"@types/react": "18.2.18",
|
|
77
|
+
"@types/react-dom": "18.2.7",
|
|
64
78
|
"@types/react-grid-layout": "^1.3.2",
|
|
65
79
|
"@types/react-measure": "^2.0.7",
|
|
66
80
|
"@types/react-responsive": "^8.0.2",
|
|
@@ -83,19 +97,19 @@
|
|
|
83
97
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
84
98
|
"husky": "8.0.3",
|
|
85
99
|
"lint-staged": "13.2.3",
|
|
86
|
-
"only-allow": "1.1.1",
|
|
87
100
|
"prettier": "3.0.1",
|
|
88
101
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
89
102
|
"semantic-release": "21.0.7",
|
|
103
|
+
"storybook": "^7.4.6",
|
|
90
104
|
"typescript": "^5.0.4",
|
|
91
105
|
"vite": "4.4.8",
|
|
106
|
+
"vite-bundle-visualizer": "^0.10.0",
|
|
92
107
|
"vite-plugin-dts": "^3.6.0",
|
|
93
|
-
"vite-plugin-package-version": "1.0.2",
|
|
94
108
|
"vite-tsconfig-paths": "3.5.0"
|
|
95
109
|
},
|
|
96
110
|
"peerDependencies": {
|
|
97
|
-
"react": "
|
|
98
|
-
"react-dom": "
|
|
111
|
+
"react": "18.2.0",
|
|
112
|
+
"react-dom": "18.2.0",
|
|
99
113
|
"styled-components": "5.3.5"
|
|
100
114
|
},
|
|
101
115
|
"lint-staged": {
|
|
@@ -117,6 +131,12 @@
|
|
|
117
131
|
"plugins": [
|
|
118
132
|
"@semantic-release/commit-analyzer",
|
|
119
133
|
"@semantic-release/release-notes-generator",
|
|
134
|
+
[
|
|
135
|
+
"@semantic-release/exec",
|
|
136
|
+
{
|
|
137
|
+
"prepareCmd": "npm run build"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
120
140
|
[
|
|
121
141
|
"@semantic-release/npm",
|
|
122
142
|
{
|
|
@@ -126,5 +146,10 @@
|
|
|
126
146
|
"@semantic-release/github",
|
|
127
147
|
"@semantic-release/git"
|
|
128
148
|
]
|
|
149
|
+
},
|
|
150
|
+
"overrides": {
|
|
151
|
+
"rc-dropdown": "3.2.0",
|
|
152
|
+
"react": "18.2.0",
|
|
153
|
+
"react-dom": "18.2.0"
|
|
129
154
|
}
|
|
130
155
|
}
|
|
@@ -9,7 +9,7 @@ export default class ConnectionProvider {
|
|
|
9
9
|
|
|
10
10
|
public static getHandler(): ConnectionProviderType {
|
|
11
11
|
if (!ConnectionProvider.handler) {
|
|
12
|
-
throw
|
|
12
|
+
throw "Must call init() first with a valid ConnectionProvider instance";
|
|
13
13
|
}
|
|
14
14
|
return ConnectionProvider.handler;
|
|
15
15
|
}
|
|
@@ -15,16 +15,16 @@ describe("A IconMapper instance", () => {
|
|
|
15
15
|
const findAndReplaceIcon = Icons.FileSearchOutlined;
|
|
16
16
|
const icon = iconMapper("gtk-find-and-replace");
|
|
17
17
|
expect(icon).toBe(findAndReplaceIcon);
|
|
18
|
-
})
|
|
18
|
+
});
|
|
19
19
|
test("should return gtk-go", () => {
|
|
20
20
|
const findAndReplaceIcon = Icons.FileSearchOutlined;
|
|
21
21
|
const icon = iconMapper("gtk-find-and-replace");
|
|
22
22
|
expect(icon).toBe(findAndReplaceIcon);
|
|
23
|
-
})
|
|
23
|
+
});
|
|
24
24
|
describe("If key doesn't exist in iconMapper", () => {
|
|
25
25
|
test("should return undefined", () => {
|
|
26
26
|
const icon = iconMapper("gtk-foo-bar");
|
|
27
27
|
expect(icon).toBe(undefined);
|
|
28
|
-
})
|
|
29
|
-
})
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
30
|
});
|
|
@@ -52,7 +52,7 @@ function AttachmentsButton(props: AttachmentsButtonProps) {
|
|
|
52
52
|
name: r.name,
|
|
53
53
|
datas_fname: r.datas_fname,
|
|
54
54
|
link: r.link,
|
|
55
|
-
}))
|
|
55
|
+
})),
|
|
56
56
|
);
|
|
57
57
|
} catch (error) {
|
|
58
58
|
showErrorDialog(error as any);
|
|
@@ -103,28 +103,30 @@ function AttachmentsButton(props: AttachmentsButtonProps) {
|
|
|
103
103
|
preloadAttachments();
|
|
104
104
|
}, [preloadAttachments]);
|
|
105
105
|
|
|
106
|
-
return (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
106
|
+
return (
|
|
107
|
+
<>
|
|
108
|
+
<AttachmentsButtonWrapper
|
|
109
|
+
numberOfAttachments={attachments.length}
|
|
110
|
+
attachments={preloadedAttachments}
|
|
111
|
+
disabled={disabled}
|
|
112
|
+
loading={preloading}
|
|
113
|
+
onAddNewAttachment={onAddNewAttachment}
|
|
114
|
+
onListAllAttachments={onListAllAttachments}
|
|
115
|
+
onopenAttachmentLink={openAttachmentLink}
|
|
116
|
+
onOpenAttachmentDetail={openAttachmentDetail}
|
|
117
|
+
/>
|
|
118
|
+
<Modal
|
|
119
|
+
title={t("downloadingAttachment")}
|
|
120
|
+
open={downloading}
|
|
121
|
+
footer={null}
|
|
122
|
+
closable={false}
|
|
123
|
+
centered
|
|
124
|
+
maskClosable={false}
|
|
125
|
+
>
|
|
126
|
+
<Spin />
|
|
127
|
+
</Modal>
|
|
128
|
+
</>
|
|
129
|
+
);
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
export default AttachmentsButton;
|
|
@@ -33,7 +33,7 @@ export type AttachmentsButtonWrapperProps = {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export const AttachmentsButtonWrapper = (
|
|
36
|
-
props: AttachmentsButtonWrapperProps
|
|
36
|
+
props: AttachmentsButtonWrapperProps,
|
|
37
37
|
) => {
|
|
38
38
|
const { numberOfAttachments, disabled } = props;
|
|
39
39
|
const { t, lang } = useContext(LocaleContext) as LocaleContextType;
|
|
@@ -68,7 +68,7 @@ export const AttachmentsButtonWrapper = (
|
|
|
68
68
|
const Content = (
|
|
69
69
|
props: AttachmentsButtonWrapperProps,
|
|
70
70
|
setPopoverVisible: (visible: boolean) => void,
|
|
71
|
-
locale: string
|
|
71
|
+
locale: string,
|
|
72
72
|
) => {
|
|
73
73
|
const {
|
|
74
74
|
attachments = [],
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import ButtonWithTooltip, {
|
|
3
|
-
|
|
2
|
+
import ButtonWithTooltip, {
|
|
3
|
+
Props as ButtonWithTooltipProps,
|
|
4
|
+
} from "@/common/ButtonWithTooltip";
|
|
5
|
+
import { theme } from "antd";
|
|
4
6
|
const { useToken } = theme;
|
|
5
7
|
|
|
6
8
|
type Props = ButtonWithTooltipProps & {
|
|
@@ -95,7 +95,7 @@ function ChangeViewButton(props: Props) {
|
|
|
95
95
|
function handleMenuClick(event: any) {
|
|
96
96
|
tryNavigate(() => {
|
|
97
97
|
const selectedView = availableViews.find(
|
|
98
|
-
(view) => view.view_id === parseInt(event.key)
|
|
98
|
+
(view) => view.view_id === parseInt(event.key),
|
|
99
99
|
);
|
|
100
100
|
onChangeView(selectedView!);
|
|
101
101
|
});
|
|
@@ -13,12 +13,8 @@ import {
|
|
|
13
13
|
import { LocaleContext, LocaleContextType } from "@/context/LocaleContext";
|
|
14
14
|
|
|
15
15
|
function DashboardActionBar() {
|
|
16
|
-
const {
|
|
17
|
-
|
|
18
|
-
dashboardRef,
|
|
19
|
-
moveItemsEnabled,
|
|
20
|
-
setMoveItemsEnabled,
|
|
21
|
-
} = useContext(DashboardActionContext) as DashboardActionContextType;
|
|
16
|
+
const { isLoading, dashboardRef, moveItemsEnabled, setMoveItemsEnabled } =
|
|
17
|
+
useContext(DashboardActionContext) as DashboardActionContextType;
|
|
22
18
|
const { t } = useContext(LocaleContext) as LocaleContextType;
|
|
23
19
|
|
|
24
20
|
return (
|