@gisce/react-ooui 0.1.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/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/Config.d.ts +6 -0
- package/dist/Config.d.ts.map +1 -0
- package/dist/Config.js +7 -0
- package/dist/Config.js.map +1 -0
- package/dist/ConnectionProvider.d.ts +7 -0
- package/dist/ConnectionProvider.d.ts.map +1 -0
- package/dist/ConnectionProvider.js +18 -0
- package/dist/ConnectionProvider.js.map +1 -0
- package/dist/actionbar/ActionButton.d.ts +13 -0
- package/dist/actionbar/ActionButton.d.ts.map +1 -0
- package/dist/actionbar/ActionButton.js +17 -0
- package/dist/actionbar/ActionButton.js.map +1 -0
- package/dist/actionbar/AttachmentsButton.d.ts +11 -0
- package/dist/actionbar/AttachmentsButton.d.ts.map +1 -0
- package/dist/actionbar/AttachmentsButton.js +170 -0
- package/dist/actionbar/AttachmentsButton.js.map +1 -0
- package/dist/actionbar/AttachmentsButtonWrapper.d.ts +18 -0
- package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +1 -0
- package/dist/actionbar/AttachmentsButtonWrapper.js +72 -0
- package/dist/actionbar/AttachmentsButtonWrapper.js.map +1 -0
- package/dist/actionbar/ButtonWithBadge.d.ts +8 -0
- package/dist/actionbar/ButtonWithBadge.d.ts.map +1 -0
- package/dist/actionbar/ButtonWithBadge.js +47 -0
- package/dist/actionbar/ButtonWithBadge.js.map +1 -0
- package/dist/actionbar/ChangeViewButton.d.ts +12 -0
- package/dist/actionbar/ChangeViewButton.d.ts.map +1 -0
- package/dist/actionbar/ChangeViewButton.js +97 -0
- package/dist/actionbar/ChangeViewButton.js.map +1 -0
- package/dist/actionbar/DashboardActionBar.d.ts +4 -0
- package/dist/actionbar/DashboardActionBar.d.ts.map +1 -0
- package/dist/actionbar/DashboardActionBar.js +50 -0
- package/dist/actionbar/DashboardActionBar.js.map +1 -0
- package/dist/actionbar/DropdownButton.d.ts +12 -0
- package/dist/actionbar/DropdownButton.d.ts.map +1 -0
- package/dist/actionbar/DropdownButton.js +38 -0
- package/dist/actionbar/DropdownButton.js.map +1 -0
- package/dist/actionbar/FormActionBar.d.ts +4 -0
- package/dist/actionbar/FormActionBar.d.ts.map +1 -0
- package/dist/actionbar/FormActionBar.js +346 -0
- package/dist/actionbar/FormActionBar.js.map +1 -0
- package/dist/actionbar/NewButton.d.ts +7 -0
- package/dist/actionbar/NewButton.d.ts.map +1 -0
- package/dist/actionbar/NewButton.js +50 -0
- package/dist/actionbar/NewButton.js.map +1 -0
- package/dist/actionbar/SearchBar.d.ts +9 -0
- package/dist/actionbar/SearchBar.d.ts.map +1 -0
- package/dist/actionbar/SearchBar.js +55 -0
- package/dist/actionbar/SearchBar.js.map +1 -0
- package/dist/actionbar/TreeActionBar.d.ts +7 -0
- package/dist/actionbar/TreeActionBar.d.ts.map +1 -0
- package/dist/actionbar/TreeActionBar.js +233 -0
- package/dist/actionbar/TreeActionBar.js.map +1 -0
- package/dist/common/ButtonWithTooltip.d.ts +8 -0
- package/dist/common/ButtonWithTooltip.d.ts.map +1 -0
- package/dist/common/ButtonWithTooltip.js +36 -0
- package/dist/common/ButtonWithTooltip.js.map +1 -0
- package/dist/common/DatePicker.d.ts +8 -0
- package/dist/common/DatePicker.d.ts.map +1 -0
- package/dist/common/DatePicker.js +66 -0
- package/dist/common/DatePicker.js.map +1 -0
- package/dist/common/Field.d.ts +14 -0
- package/dist/common/Field.d.ts.map +1 -0
- package/dist/common/Field.js +68 -0
- package/dist/common/Field.js.map +1 -0
- package/dist/context/ActionViewContext.d.ts +54 -0
- package/dist/context/ActionViewContext.d.ts.map +1 -0
- package/dist/context/ActionViewContext.js +93 -0
- package/dist/context/ActionViewContext.js.map +1 -0
- package/dist/context/ContentRootContext.d.ts +19 -0
- package/dist/context/ContentRootContext.d.ts.map +1 -0
- package/dist/context/ContentRootContext.js +419 -0
- package/dist/context/ContentRootContext.js.map +1 -0
- package/dist/context/DashboardActionContext.d.ts +19 -0
- package/dist/context/DashboardActionContext.d.ts.map +1 -0
- package/dist/context/DashboardActionContext.js +39 -0
- package/dist/context/DashboardActionContext.js.map +1 -0
- package/dist/context/FormContext.d.ts +30 -0
- package/dist/context/FormContext.d.ts.map +1 -0
- package/dist/context/FormContext.js +29 -0
- package/dist/context/FormContext.js.map +1 -0
- package/dist/context/FormModalContext.d.ts +11 -0
- package/dist/context/FormModalContext.d.ts.map +1 -0
- package/dist/context/FormModalContext.js +16 -0
- package/dist/context/FormModalContext.js.map +1 -0
- package/dist/context/LocaleContext.d.ts +14 -0
- package/dist/context/LocaleContext.d.ts.map +1 -0
- package/dist/context/LocaleContext.js +34 -0
- package/dist/context/LocaleContext.js.map +1 -0
- package/dist/context/One2manyContext.d.ts +17 -0
- package/dist/context/One2manyContext.d.ts.map +1 -0
- package/dist/context/One2manyContext.js +40 -0
- package/dist/context/One2manyContext.js.map +1 -0
- package/dist/context/TabManagerContext.d.ts +50 -0
- package/dist/context/TabManagerContext.d.ts.map +1 -0
- package/dist/context/TabManagerContext.js +45 -0
- package/dist/context/TabManagerContext.js.map +1 -0
- package/dist/helpers/containerHelper.d.ts +22 -0
- package/dist/helpers/containerHelper.d.ts.map +1 -0
- package/dist/helpers/containerHelper.js +108 -0
- package/dist/helpers/containerHelper.js.map +1 -0
- package/dist/helpers/dynamicColumnsHelper.d.ts +8 -0
- package/dist/helpers/dynamicColumnsHelper.d.ts.map +1 -0
- package/dist/helpers/dynamicColumnsHelper.js +67 -0
- package/dist/helpers/dynamicColumnsHelper.js.map +1 -0
- package/dist/helpers/filesHelper.d.ts +8 -0
- package/dist/helpers/filesHelper.d.ts.map +1 -0
- package/dist/helpers/filesHelper.js +91 -0
- package/dist/helpers/filesHelper.js.map +1 -0
- package/dist/helpers/formHelper.d.ts +31 -0
- package/dist/helpers/formHelper.d.ts.map +1 -0
- package/dist/helpers/formHelper.js +191 -0
- package/dist/helpers/formHelper.js.map +1 -0
- package/dist/helpers/iconMapper.d.ts +3 -0
- package/dist/helpers/iconMapper.d.ts.map +1 -0
- package/dist/helpers/iconMapper.js +125 -0
- package/dist/helpers/iconMapper.js.map +1 -0
- package/dist/helpers/logInfoHelper.d.ts +3 -0
- package/dist/helpers/logInfoHelper.d.ts.map +1 -0
- package/dist/helpers/logInfoHelper.js +78 -0
- package/dist/helpers/logInfoHelper.js.map +1 -0
- package/dist/helpers/one2manyHelper.d.ts +29 -0
- package/dist/helpers/one2manyHelper.d.ts.map +1 -0
- package/dist/helpers/one2manyHelper.js +159 -0
- package/dist/helpers/one2manyHelper.js.map +1 -0
- package/dist/helpers/searchFilterHelper.d.ts +5 -0
- package/dist/helpers/searchFilterHelper.d.ts.map +1 -0
- package/dist/helpers/searchFilterHelper.js +157 -0
- package/dist/helpers/searchFilterHelper.js.map +1 -0
- package/dist/helpers/timeHelper.d.ts +4 -0
- package/dist/helpers/timeHelper.d.ts.map +1 -0
- package/dist/helpers/timeHelper.js +53 -0
- package/dist/helpers/timeHelper.js.map +1 -0
- package/dist/helpers/treeHelper.d.ts +16 -0
- package/dist/helpers/treeHelper.d.ts.map +1 -0
- package/dist/helpers/treeHelper.js +128 -0
- package/dist/helpers/treeHelper.js.map +1 -0
- package/dist/hooks/useEffectDebugger.d.ts +3 -0
- package/dist/hooks/useEffectDebugger.d.ts.map +1 -0
- package/dist/hooks/useEffectDebugger.js +43 -0
- package/dist/hooks/useEffectDebugger.js.map +1 -0
- package/dist/hooks/useWindowDimensions.d.ts +7 -0
- package/dist/hooks/useWindowDimensions.d.ts.map +1 -0
- package/dist/hooks/useWindowDimensions.js +29 -0
- package/dist/hooks/useWindowDimensions.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +76 -0
- package/dist/index.js.map +1 -0
- package/dist/locales/ca_ES.d.ts +81 -0
- package/dist/locales/ca_ES.d.ts.map +1 -0
- package/dist/locales/ca_ES.js +82 -0
- package/dist/locales/ca_ES.js.map +1 -0
- package/dist/locales/en_US.d.ts +81 -0
- package/dist/locales/en_US.d.ts.map +1 -0
- package/dist/locales/en_US.js +82 -0
- package/dist/locales/en_US.js.map +1 -0
- package/dist/locales/es_ES.d.ts +81 -0
- package/dist/locales/es_ES.d.ts.map +1 -0
- package/dist/locales/es_ES.js +82 -0
- package/dist/locales/es_ES.js.map +1 -0
- package/dist/main.css +180 -0
- package/dist/types/index.d.ts +205 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/ui/ActionErrorDialog.d.ts +3 -0
- package/dist/ui/ActionErrorDialog.d.ts.map +1 -0
- package/dist/ui/ActionErrorDialog.js +38 -0
- package/dist/ui/ActionErrorDialog.js.map +1 -0
- package/dist/ui/ConfirmDialog.d.ts +7 -0
- package/dist/ui/ConfirmDialog.d.ts.map +1 -0
- package/dist/ui/ConfirmDialog.js +24 -0
- package/dist/ui/ConfirmDialog.js.map +1 -0
- package/dist/ui/FavouriteButton.d.ts +26 -0
- package/dist/ui/FavouriteButton.d.ts.map +1 -0
- package/dist/ui/FavouriteButton.js +238 -0
- package/dist/ui/FavouriteButton.js.map +1 -0
- package/dist/ui/Fieldset.d.ts +8 -0
- package/dist/ui/Fieldset.d.ts.map +1 -0
- package/dist/ui/Fieldset.js +22 -0
- package/dist/ui/Fieldset.js.map +1 -0
- package/dist/ui/FormErrorsDialog.d.ts +3 -0
- package/dist/ui/FormErrorsDialog.d.ts.map +1 -0
- package/dist/ui/FormErrorsDialog.js +20 -0
- package/dist/ui/FormErrorsDialog.js.map +1 -0
- package/dist/ui/GenericErrorDialog.d.ts +3 -0
- package/dist/ui/GenericErrorDialog.d.ts.map +1 -0
- package/dist/ui/GenericErrorDialog.js +19 -0
- package/dist/ui/GenericErrorDialog.js.map +1 -0
- package/dist/ui/GoToResourceModal.d.ts +10 -0
- package/dist/ui/GoToResourceModal.d.ts.map +1 -0
- package/dist/ui/GoToResourceModal.js +49 -0
- package/dist/ui/GoToResourceModal.js.map +1 -0
- package/dist/ui/InfoDialog.d.ts +3 -0
- package/dist/ui/InfoDialog.d.ts.map +1 -0
- package/dist/ui/InfoDialog.js +13 -0
- package/dist/ui/InfoDialog.js.map +1 -0
- package/dist/ui/RefreshItemDialog.d.ts +7 -0
- package/dist/ui/RefreshItemDialog.d.ts.map +1 -0
- package/dist/ui/RefreshItemDialog.js +25 -0
- package/dist/ui/RefreshItemDialog.js.map +1 -0
- package/dist/ui/RemoveItemDialog.d.ts +6 -0
- package/dist/ui/RemoveItemDialog.d.ts.map +1 -0
- package/dist/ui/RemoveItemDialog.js +24 -0
- package/dist/ui/RemoveItemDialog.js.map +1 -0
- package/dist/ui/TitleHeader.d.ts +7 -0
- package/dist/ui/TitleHeader.d.ts.map +1 -0
- package/dist/ui/TitleHeader.js +93 -0
- package/dist/ui/TitleHeader.js.map +1 -0
- package/dist/ui/UnlinkItemDialog.d.ts +6 -0
- package/dist/ui/UnlinkItemDialog.d.ts.map +1 -0
- package/dist/ui/UnlinkItemDialog.js +24 -0
- package/dist/ui/UnlinkItemDialog.js.map +1 -0
- package/dist/ui/UnsavedChangesDialog.d.ts +7 -0
- package/dist/ui/UnsavedChangesDialog.d.ts.map +1 -0
- package/dist/ui/UnsavedChangesDialog.js +25 -0
- package/dist/ui/UnsavedChangesDialog.js.map +1 -0
- package/dist/ui/WarningDialog.d.ts +3 -0
- package/dist/ui/WarningDialog.d.ts.map +1 -0
- package/dist/ui/WarningDialog.js +20 -0
- package/dist/ui/WarningDialog.js.map +1 -0
- package/dist/views/ActionView.d.ts +24 -0
- package/dist/views/ActionView.d.ts.map +1 -0
- package/dist/views/ActionView.js +376 -0
- package/dist/views/ActionView.js.map +1 -0
- package/dist/views/CurrentTabContent.d.ts +4 -0
- package/dist/views/CurrentTabContent.d.ts.map +1 -0
- package/dist/views/CurrentTabContent.js +35 -0
- package/dist/views/CurrentTabContent.js.map +1 -0
- package/dist/views/RootView.d.ts +14 -0
- package/dist/views/RootView.d.ts.map +1 -0
- package/dist/views/RootView.js +469 -0
- package/dist/views/RootView.js.map +1 -0
- package/dist/views/TabContent.d.ts +8 -0
- package/dist/views/TabContent.d.ts.map +1 -0
- package/dist/views/TabContent.js +34 -0
- package/dist/views/TabContent.js.map +1 -0
- package/dist/views/TabSelector.d.ts +4 -0
- package/dist/views/TabSelector.d.ts.map +1 -0
- package/dist/views/TabSelector.js +34 -0
- package/dist/views/TabSelector.js.map +1 -0
- package/dist/views/Welcome.d.ts +4 -0
- package/dist/views/Welcome.d.ts.map +1 -0
- package/dist/views/Welcome.js +33 -0
- package/dist/views/Welcome.js.map +1 -0
- package/dist/views/tabs/Tab.d.ts +11 -0
- package/dist/views/tabs/Tab.d.ts.map +1 -0
- package/dist/views/tabs/Tab.js +54 -0
- package/dist/views/tabs/Tab.js.map +1 -0
- package/dist/widgets/WidgetFactory.d.ts +4 -0
- package/dist/widgets/WidgetFactory.d.ts.map +1 -0
- package/dist/widgets/WidgetFactory.js +85 -0
- package/dist/widgets/WidgetFactory.js.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/Binary.js +173 -0
- package/dist/widgets/base/Binary.js.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/Boolean.js +53 -0
- package/dist/widgets/base/Boolean.js.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/Button.js +118 -0
- package/dist/widgets/base/Button.js.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/Char.js +145 -0
- package/dist/widgets/base/Char.js.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/Date.js +13 -0
- package/dist/widgets/base/Date.js.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/DateTime.js +13 -0
- package/dist/widgets/base/DateTime.js.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/Email.js +34 -0
- package/dist/widgets/base/Email.js.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/Float.js +54 -0
- package/dist/widgets/base/Float.js.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/FloatTime.js +122 -0
- package/dist/widgets/base/FloatTime.js.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/Image.js +153 -0
- package/dist/widgets/base/Image.js.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/Integer.js +57 -0
- package/dist/widgets/base/Integer.js.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/Label.js +27 -0
- package/dist/widgets/base/Label.js.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/LinkInput.js +70 -0
- package/dist/widgets/base/LinkInput.js.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/MultiSelection.js +69 -0
- package/dist/widgets/base/MultiSelection.js.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/ProgressBar.js +45 -0
- package/dist/widgets/base/ProgressBar.js.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/Reference.js +93 -0
- package/dist/widgets/base/Reference.js.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/Selection.js +51 -0
- package/dist/widgets/base/Selection.js.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/Separator.js +15 -0
- package/dist/widgets/base/Separator.js.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/Text.js +142 -0
- package/dist/widgets/base/Text.js.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/Url.js +34 -0
- package/dist/widgets/base/Url.js.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/Many2one.js +353 -0
- package/dist/widgets/base/many2one/Many2one.js.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/Many2oneSuffix.js +215 -0
- package/dist/widgets/base/many2one/Many2oneSuffix.js.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/Many2oneSuffixModal.js +37 -0
- package/dist/widgets/base/many2one/Many2oneSuffixModal.js.map +1 -0
- package/dist/widgets/base/one2many/One2many.d.ts +9 -0
- package/dist/widgets/base/one2many/One2many.d.ts.map +1 -0
- package/dist/widgets/base/one2many/One2many.js +188 -0
- package/dist/widgets/base/one2many/One2many.js.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/One2manyInput.js +602 -0
- package/dist/widgets/base/one2many/One2manyInput.js.map +1 -0
- package/dist/widgets/base/one2many/One2manyTopBar.d.ts +21 -0
- package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -0
- package/dist/widgets/base/one2many/One2manyTopBar.js +59 -0
- package/dist/widgets/base/one2many/One2manyTopBar.js.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/Container.js +77 -0
- package/dist/widgets/containers/Container.js.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/Group.js +15 -0
- package/dist/widgets/containers/Group.js.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/containers/Notebook.js +21 -0
- package/dist/widgets/containers/Notebook.js.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/FiberGrid.js +50 -0
- package/dist/widgets/custom/FiberGrid.js.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/Indicator.js +44 -0
- package/dist/widgets/custom/Indicator.js.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/custom/Timeline.js +231 -0
- package/dist/widgets/custom/Timeline.js.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/FormModal.js +174 -0
- package/dist/widgets/modals/FormModal.js.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/SearchModal.js +129 -0
- package/dist/widgets/modals/SearchModal.js.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/modals/TranslationModal.js +254 -0
- package/dist/widgets/modals/TranslationModal.js.map +1 -0
- package/dist/widgets/views/Dashboard/Dashboard.d.ts +7 -0
- package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -0
- package/dist/widgets/views/Dashboard/Dashboard.js +368 -0
- package/dist/widgets/views/Dashboard/Dashboard.js.map +1 -0
- package/dist/widgets/views/Dashboard/Dashboard.types.d.ts +8 -0
- package/dist/widgets/views/Dashboard/Dashboard.types.d.ts.map +1 -0
- package/dist/widgets/views/Dashboard/Dashboard.types.js +3 -0
- package/dist/widgets/views/Dashboard/Dashboard.types.js.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/DashboardForm.js +106 -0
- package/dist/widgets/views/Dashboard/DashboardForm.js.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/DashboardTree.js +318 -0
- package/dist/widgets/views/Dashboard/DashboardTree.js.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/Dashboard/dashboardHelper.js +136 -0
- package/dist/widgets/views/Dashboard/dashboardHelper.js.map +1 -0
- package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts +6 -0
- package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts.map +1 -0
- package/dist/widgets/views/DashboardGrid/DashboardGrid.js +31 -0
- package/dist/widgets/views/DashboardGrid/DashboardGrid.js.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/DashboardGrid.types.js +3 -0
- package/dist/widgets/views/DashboardGrid/DashboardGrid.types.js.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.js +38 -0
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.js.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/DashboardGridItem.types.js +3 -0
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.js.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/DashboardGrid/index.js +17 -0
- package/dist/widgets/views/DashboardGrid/index.js.map +1 -0
- package/dist/widgets/views/Form.d.ts +28 -0
- package/dist/widgets/views/Form.d.ts.map +1 -0
- package/dist/widgets/views/Form.js +933 -0
- package/dist/widgets/views/Form.js.map +1 -0
- package/dist/widgets/views/Graph/Graph.d.ts +10 -0
- package/dist/widgets/views/Graph/Graph.d.ts.map +1 -0
- package/dist/widgets/views/Graph/Graph.js +150 -0
- package/dist/widgets/views/Graph/Graph.js.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/GraphChart.js +104 -0
- package/dist/widgets/views/Graph/GraphChart.js.map +1 -0
- package/dist/widgets/views/Graph/GraphDefaults.d.ts +47 -0
- package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -0
- package/dist/widgets/views/Graph/GraphDefaults.js +62 -0
- package/dist/widgets/views/Graph/GraphDefaults.js.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/GraphIndicator.js +292 -0
- package/dist/widgets/views/Graph/GraphIndicator.js.map +1 -0
- package/dist/widgets/views/Graph/useGraphData.d.ts +18 -0
- package/dist/widgets/views/Graph/useGraphData.d.ts.map +1 -0
- package/dist/widgets/views/Graph/useGraphData.js +163 -0
- package/dist/widgets/views/Graph/useGraphData.js.map +1 -0
- package/dist/widgets/views/SearchTree.d.ts +25 -0
- package/dist/widgets/views/SearchTree.d.ts.map +1 -0
- package/dist/widgets/views/SearchTree.js +495 -0
- package/dist/widgets/views/SearchTree.js.map +1 -0
- package/dist/widgets/views/Tree.d.ts +23 -0
- package/dist/widgets/views/Tree.d.ts.map +1 -0
- package/dist/widgets/views/Tree.js +180 -0
- package/dist/widgets/views/Tree.js.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/DateRangePicker.js +26 -0
- package/dist/widgets/views/searchFilter/DateRangePicker.js.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/DateTimeRangePicker.js +53 -0
- package/dist/widgets/views/searchFilter/DateTimeRangePicker.js.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/PairFields.js +45 -0
- package/dist/widgets/views/searchFilter/PairFields.js.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/SearchBottomBar.js +40 -0
- package/dist/widgets/views/searchFilter/SearchBottomBar.js.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/SearchField.js +84 -0
- package/dist/widgets/views/searchFilter/SearchField.js.map +1 -0
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts +15 -0
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +1 -0
- package/dist/widgets/views/searchFilter/SearchFilter.js +78 -0
- package/dist/widgets/views/searchFilter/SearchFilter.js.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/dist/widgets/views/searchFilter/SearchParams.js +44 -0
- package/dist/widgets/views/searchFilter/SearchParams.js.map +1 -0
- package/package.json +89 -0
- package/src/.eslintcache +1 -0
- package/src/Config.ts +4 -0
- package/src/ConnectionProvider.ts +16 -0
- package/src/__tests__/iconMapper.test.ts +15 -0
- package/src/__tests__/searchFilterHelper.spec.ts +386 -0
- package/src/actionbar/ActionButton.tsx +40 -0
- package/src/actionbar/AttachmentsButton.tsx +128 -0
- package/src/actionbar/AttachmentsButtonWrapper.tsx +139 -0
- package/src/actionbar/ButtonWithBadge.tsx +39 -0
- package/src/actionbar/ChangeViewButton.tsx +136 -0
- package/src/actionbar/DashboardActionBar.tsx +67 -0
- package/src/actionbar/DropdownButton.tsx +61 -0
- package/src/actionbar/FormActionBar.tsx +412 -0
- package/src/actionbar/NewButton.tsx +46 -0
- package/src/actionbar/SearchBar.tsx +69 -0
- package/src/actionbar/TreeActionBar.tsx +265 -0
- package/src/common/ButtonWithTooltip.tsx +18 -0
- package/src/common/DatePicker.tsx +93 -0
- package/src/common/Field.tsx +92 -0
- package/src/context/ActionViewContext.tsx +161 -0
- package/src/context/ContentRootContext.tsx +422 -0
- package/src/context/DashboardActionContext.tsx +45 -0
- package/src/context/FormContext.tsx +79 -0
- package/src/context/FormModalContext.tsx +29 -0
- package/src/context/LocaleContext.tsx +50 -0
- package/src/context/One2manyContext.tsx +46 -0
- package/src/context/TabManagerContext.tsx +117 -0
- package/src/helpers/containerHelper.ts +145 -0
- package/src/helpers/dynamicColumnsHelper.ts +73 -0
- package/src/helpers/filesHelper.ts +41 -0
- package/src/helpers/formHelper.ts +225 -0
- package/src/helpers/iconMapper.ts +108 -0
- package/src/helpers/logInfoHelper.tsx +28 -0
- package/src/helpers/one2manyHelper.ts +139 -0
- package/src/helpers/searchFilterHelper.ts +167 -0
- package/src/helpers/timeHelper.ts +58 -0
- package/src/helpers/treeHelper.ts +127 -0
- package/src/hooks/useEffectDebugger.ts +43 -0
- package/src/hooks/useWindowDimensions.ts +33 -0
- package/src/index.ts +136 -0
- package/src/locales/ca_ES.tsx +85 -0
- package/src/locales/en_US.tsx +82 -0
- package/src/locales/es_ES.tsx +86 -0
- package/src/stories/Binary.stories.tsx +23 -0
- package/src/stories/Boolean.stories.tsx +22 -0
- package/src/stories/Button.stories.tsx +120 -0
- package/src/stories/Char.stories.tsx +49 -0
- package/src/stories/FiberGrid.stories.tsx +109 -0
- package/src/stories/Float.stories.tsx +22 -0
- package/src/stories/FloatTime.stories.tsx +32 -0
- package/src/stories/Image.stories.tsx +25 -0
- package/src/stories/Integer.stories.tsx +22 -0
- package/src/stories/Label.stories.tsx +22 -0
- package/src/stories/Many2one.stories.tsx +31 -0
- package/src/stories/One2many.stories.tsx +292 -0
- package/src/stories/ProgressBar.stories.tsx +22 -0
- package/src/stories/Reference.stories.tsx +43 -0
- package/src/stories/Selection.stories.tsx +34 -0
- package/src/stories/Separator.stories.tsx +21 -0
- package/src/stories/Text.stories.tsx +35 -0
- package/src/stories/containers/Group.stories.tsx +63 -0
- package/src/stories/containers/NewLine.stories.tsx +53 -0
- package/src/stories/containers/Notebook.stories.tsx +91 -0
- package/src/stories/custom/Indicator.stories.tsx +41 -0
- package/src/stories/dashboard/Dashboard.stories.tsx +23 -0
- package/src/stories/dashboard/DashboardGrid.stories.tsx +30 -0
- package/src/stories/forms/Attachment.stories.tsx +24 -0
- package/src/stories/forms/CUPSForm.stories.tsx +25 -0
- package/src/stories/forms/Company.stories.tsx +25 -0
- package/src/stories/forms/CrmCaseForm.stories.tsx +25 -0
- package/src/stories/forms/Documents.stories.tsx +25 -0
- package/src/stories/forms/FormWithGridFiber.stories.tsx +25 -0
- package/src/stories/forms/FormWithLinks.stories.tsx +31 -0
- package/src/stories/forms/Lead.stories.tsx +25 -0
- package/src/stories/forms/ModContractForm.stories.tsx +25 -0
- package/src/stories/forms/PartnersForm.stories.tsx +25 -0
- package/src/stories/forms/PolissaForm.stories.tsx +25 -0
- package/src/stories/forms/PreferencesForm.stories.tsx +693 -0
- package/src/stories/forms/Signatures.stories.tsx +25 -0
- package/src/stories/forms/Switching.stories.tsx +25 -0
- package/src/stories/graphs/GraphIndicator.stories.tsx +20 -0
- package/src/stories/graphs/PieGraph.stories.tsx +78 -0
- package/src/stories/mocks/index.ts +42 -0
- package/src/stories/mocks/mockProvider.ts +180 -0
- package/src/stories/mocks/models/attachment.ts +1327 -0
- package/src/stories/mocks/models/butlleti.ts +344 -0
- package/src/stories/mocks/models/company.ts +137 -0
- package/src/stories/mocks/models/crm_case.ts +598 -0
- package/src/stories/mocks/models/cups.ts +910 -0
- package/src/stories/mocks/models/document.ts +225 -0
- package/src/stories/mocks/models/factura.ts +2727 -0
- package/src/stories/mocks/models/form_with_gridfiber.ts +143 -0
- package/src/stories/mocks/models/hist_autoconsum.ts +148 -0
- package/src/stories/mocks/models/lead.ts +2109 -0
- package/src/stories/mocks/models/modcontractual.ts +806 -0
- package/src/stories/mocks/models/partner.ts +1360 -0
- package/src/stories/mocks/models/polissa.ts +3133 -0
- package/src/stories/mocks/models/signatura.ts +618 -0
- package/src/stories/mocks/models/switching.ts +769 -0
- package/src/stories/modals/FormModal.stories.tsx +36 -0
- package/src/stories/modals/SearchModal.stories.tsx +37 -0
- package/src/stories/trees/FacturesTree.stories.tsx +16 -0
- package/src/stories/ui/ActionBar.stories.tsx +23 -0
- package/src/stories/ui/FavouriteButton.stories.tsx +18 -0
- package/src/stories/ui/GoToResourceModal.stories.tsx +26 -0
- package/src/stories/views/ActionView.stories.tsx +28 -0
- package/src/stories/views/SearchTree.stories.tsx +946 -0
- package/src/stories/views/Tab.stories.tsx +94 -0
- package/src/stories/views/TabManager.stories.tsx +15 -0
- package/src/stories/views/TabsAndContent.stories.tsx +89 -0
- package/src/stories/views/Tree.stories.js +166 -0
- package/src/stories/views/searchFilter/DateRangePicker.stories.tsx +23 -0
- package/src/stories/views/searchFilter/DateTimeRangePicker.stories.tsx +23 -0
- package/src/stories/views/searchFilter/PairFields.stories.tsx +23 -0
- package/src/stories/views/searchFilter/SearchFilter.stories.tsx +166 -0
- package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +425 -0
- package/src/tailwind.css +8 -0
- package/src/tailwind.generated.css +168533 -0
- package/src/types/index.ts +275 -0
- package/src/ui/ActionErrorDialog.tsx +41 -0
- package/src/ui/ConfirmDialog.tsx +28 -0
- package/src/ui/FavouriteButton.tsx +261 -0
- package/src/ui/Fieldset.tsx +31 -0
- package/src/ui/FormErrorsDialog.tsx +17 -0
- package/src/ui/GenericErrorDialog.tsx +16 -0
- package/src/ui/GoToResourceModal.tsx +71 -0
- package/src/ui/InfoDialog.tsx +13 -0
- package/src/ui/RefreshItemDialog.tsx +29 -0
- package/src/ui/RemoveItemDialog.tsx +20 -0
- package/src/ui/TitleHeader.tsx +95 -0
- package/src/ui/UnlinkItemDialog.tsx +20 -0
- package/src/ui/UnsavedChangesDialog.tsx +29 -0
- package/src/ui/WarningDialog.tsx +17 -0
- package/src/views/ActionView.tsx +455 -0
- package/src/views/CurrentTabContent.tsx +21 -0
- package/src/views/RootView.tsx +467 -0
- package/src/views/TabContent.tsx +31 -0
- package/src/views/TabSelector.tsx +31 -0
- package/src/views/Welcome.tsx +18 -0
- package/src/views/tabs/Tab.tsx +77 -0
- package/src/widgets/WidgetFactory.tsx +109 -0
- package/src/widgets/base/Binary.tsx +141 -0
- package/src/widgets/base/Boolean.tsx +44 -0
- package/src/widgets/base/Button.tsx +77 -0
- package/src/widgets/base/Char.tsx +155 -0
- package/src/widgets/base/Date.tsx +12 -0
- package/src/widgets/base/DateTime.tsx +12 -0
- package/src/widgets/base/Email.tsx +27 -0
- package/src/widgets/base/Float.tsx +33 -0
- package/src/widgets/base/FloatTime.tsx +69 -0
- package/src/widgets/base/Image.tsx +120 -0
- package/src/widgets/base/Integer.tsx +38 -0
- package/src/widgets/base/Label.tsx +40 -0
- package/src/widgets/base/LinkInput.tsx +96 -0
- package/src/widgets/base/MultiSelection.tsx +82 -0
- package/src/widgets/base/ProgressBar.tsx +38 -0
- package/src/widgets/base/Reference.tsx +105 -0
- package/src/widgets/base/Selection.tsx +61 -0
- package/src/widgets/base/Separator.tsx +18 -0
- package/src/widgets/base/Text.tsx +156 -0
- package/src/widgets/base/Url.tsx +26 -0
- package/src/widgets/base/many2one/Many2one.tsx +331 -0
- package/src/widgets/base/many2one/Many2oneSuffix.tsx +210 -0
- package/src/widgets/base/many2one/Many2oneSuffixModal.tsx +41 -0
- package/src/widgets/base/one2many/One2many.tsx +102 -0
- package/src/widgets/base/one2many/One2manyInput.tsx +635 -0
- package/src/widgets/base/one2many/One2manyTopBar.tsx +143 -0
- package/src/widgets/containers/Container.tsx +97 -0
- package/src/widgets/containers/Group.tsx +34 -0
- package/src/widgets/containers/Notebook.tsx +35 -0
- package/src/widgets/custom/FiberGrid.tsx +51 -0
- package/src/widgets/custom/Indicator.tsx +66 -0
- package/src/widgets/custom/Timeline.tsx +190 -0
- package/src/widgets/modals/FormModal.tsx +127 -0
- package/src/widgets/modals/SearchModal.tsx +131 -0
- package/src/widgets/modals/TranslationModal.tsx +201 -0
- package/src/widgets/views/Dashboard/Dashboard.tsx +371 -0
- package/src/widgets/views/Dashboard/Dashboard.types.ts +8 -0
- package/src/widgets/views/Dashboard/DashboardForm.tsx +30 -0
- package/src/widgets/views/Dashboard/DashboardTree.tsx +287 -0
- package/src/widgets/views/Dashboard/dashboardHelper.ts +71 -0
- package/src/widgets/views/DashboardGrid/DashboardGrid.tsx +53 -0
- package/src/widgets/views/DashboardGrid/DashboardGrid.types.ts +4 -0
- package/src/widgets/views/DashboardGrid/DashboardGridItem.tsx +58 -0
- package/src/widgets/views/DashboardGrid/DashboardGridItem.types.ts +10 -0
- package/src/widgets/views/DashboardGrid/index.ts +4 -0
- package/src/widgets/views/Form.tsx +991 -0
- package/src/widgets/views/Graph/Graph.tsx +108 -0
- package/src/widgets/views/Graph/GraphChart.tsx +102 -0
- package/src/widgets/views/Graph/GraphDefaults.ts +57 -0
- package/src/widgets/views/Graph/GraphIndicator.tsx +360 -0
- package/src/widgets/views/Graph/useGraphData.tsx +142 -0
- package/src/widgets/views/SearchTree.tsx +542 -0
- package/src/widgets/views/Tree.tsx +267 -0
- package/src/widgets/views/searchFilter/DateRangePicker.tsx +16 -0
- package/src/widgets/views/searchFilter/DateTimeRangePicker.tsx +63 -0
- package/src/widgets/views/searchFilter/PairFields.tsx +56 -0
- package/src/widgets/views/searchFilter/SearchBottomBar.tsx +58 -0
- package/src/widgets/views/searchFilter/SearchField.tsx +73 -0
- package/src/widgets/views/searchFilter/SearchFilter.tsx +113 -0
- package/src/widgets/views/searchFilter/SearchParams.tsx +32 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchFilter.js","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/SearchFilter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwC;AACxC,6BAAsC;AACtC,oFAA2D;AAE3D,oCAIqB;AAErB,6CAA4C;AAC5C,qDAAoD;AAEpD,+CAA8C;AAE9C,mEAAkE;AAalE,SAAS,YAAY,CAAC,KAAY;IAE9B,IAAA,MAAM,GAQJ,KAAK,OARD,EACN,KAOE,KAAK,aAPsC,EAA7C,YAAY,mBAAG,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAA,EAC7C,OAAO,GAML,KAAK,QANA,EACP,QAAQ,GAKN,KAAK,SALC,EACR,WAAW,GAIT,KAAK,YAJI,EACX,MAAM,GAGJ,KAAK,OAHD,EACN,KAAK,GAEH,KAAK,MAFF,EACL,aAAa,GACX,KAAK,cADM,CACL;IAEJ,IAAA,KAA8C,gBAAQ,EAAa,EAAlE,kBAAkB,QAAA,EAAE,qBAAqB,QAAyB,CAAC;IACpE,IAAA,KAAkD,gBAAQ,EAAa,EAAtE,oBAAoB,QAAA,EAAE,uBAAuB,QAAyB,CAAC;IACxE,IAAA,KAAsC,gBAAQ,CAAC,KAAK,CAAC,EAApD,cAAc,QAAA,EAAE,iBAAiB,QAAmB,CAAC;IAErD,IAAA,IAAI,GAAI,WAAI,CAAC,OAAO,EAAE,GAAlB,CAAmB;IAE9B,IAAM,cAAc,GAAG;QACrB,IAAI,CAAC,oBAAoB,EAAE;YACzB,OAAO;SACR;QAED,IAAM,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,kBAAkB,CAAC;QAC1E,IAAM,IAAI,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC;QAE1B,OAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,CAAC,UAAC,GAAG,EAAE,CAAC;YACtB,OAAO,CACL,8BAAC,UAAG,IAAC,GAAG,EAAE,CAAC,IACR,GAAG,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,CAAC;gBACf,OAAO,CACL,8BAAC,UAAG,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;oBACxC,8BAAC,yBAAW,IAAC,KAAK,EAAE,IAAa,GAAI,CACjC,CACP,CAAC;YACJ,CAAC,CAAC,CACE,CACP,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,iCAAoB,CAAC;QACnB,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACzB,IAAM,GAAG,GAAG,IAAI,mBAAgB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACvD,GAAG,CAAC,KAAK,EAAE,CAAC;QACZ,qBAAqB,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QAClD,uBAAuB,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACxD,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAE3B,IAAM,IAAI,GAAG,cAAc,EAAE,CAAC;IAE9B,IAAM,QAAQ,GAAG,UAAC,MAAW;QACnB,IAAA,KAAK,GAAa,MAAM,MAAnB,EAAE,MAAM,GAAK,MAAM,OAAX,CAAY;QACjC,OAAO,MAAM,CAAC,MAAM,CAAC;QACrB,OAAO,MAAM,CAAC,KAAK,CAAC;QACpB,IAAM,SAAS,GAAG,uCAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAErD,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAA,EAAE,KAAK,OAAA,EAAE,CAAC,CAAC;IACjD,CAAC,CAAC;IAEF,OAAO,CACL,8BAAC,WAAI,IACH,SAAS,EAAC,kCAAkC,EAC5C,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,EAAE,MAAM,QAAA,EAAE,KAAK,OAAA,EAAE;QAE/B,IAAI;QACJ,cAAc,IAAI,8BAAC,2BAAY,IAAC,aAAa,EAAE,aAAa,GAAG;QAChE,8BAAC,iCAAe,IACd,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE;gBACtB,iBAAiB,CAAC,CAAC,cAAc,CAAC,CAAC;YACrC,CAAC,EACD,OAAO,EAAE;gBACP,IAAI,CAAC,WAAW,EAAE,CAAC;gBACnB,OAAO,EAAE,CAAC;YACZ,CAAC,EACD,WAAW,EAAE,WAAW,GACxB,CACG,CACR,CAAC;AACJ,CAAC;AAED,kBAAe,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,aAAK,iBAAiB,GAAG;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAA;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,CAmBzE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.SearchParams = void 0;
|
|
23
|
+
var react_1 = __importStar(require("react"));
|
|
24
|
+
var Integer_1 = require("@/widgets/base/Integer");
|
|
25
|
+
var antd_1 = require("antd");
|
|
26
|
+
var ooui_1 = require("@gisce/ooui");
|
|
27
|
+
var LocaleContext_1 = require("@/context/LocaleContext");
|
|
28
|
+
function SearchParams(props) {
|
|
29
|
+
var onLimitChange = props.onLimitChange;
|
|
30
|
+
var t = react_1.useContext(LocaleContext_1.LocaleContext).t;
|
|
31
|
+
var limitOoui = new ooui_1.Integer({ name: "limit" });
|
|
32
|
+
var offsetOoui = new ooui_1.Integer({ name: "offset" });
|
|
33
|
+
return (react_1.default.createElement("div", { className: "pl-2 pt-2" },
|
|
34
|
+
react_1.default.createElement(antd_1.Row, { key: "count_params" }, t("parameters")),
|
|
35
|
+
react_1.default.createElement(antd_1.Space, { align: "center" },
|
|
36
|
+
t("limit") + " :",
|
|
37
|
+
react_1.default.createElement(Integer_1.Integer, { ooui: limitOoui, onChange: function (newValue) {
|
|
38
|
+
onLimitChange === null || onLimitChange === void 0 ? void 0 : onLimitChange(newValue);
|
|
39
|
+
} }),
|
|
40
|
+
t("first") + " :",
|
|
41
|
+
react_1.default.createElement(Integer_1.Integer, { ooui: offsetOoui }))));
|
|
42
|
+
}
|
|
43
|
+
exports.SearchParams = SearchParams;
|
|
44
|
+
//# sourceMappingURL=SearchParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchParams.js","sourceRoot":"","sources":["../../../../src/widgets/views/searchFilter/SearchParams.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAE1C,kDAAiD;AACjD,6BAAkC;AAClC,oCAAqD;AAErD,yDAA2E;AAM3E,SAAgB,YAAY,CAAC,KAAwB;IAC3C,IAAA,aAAa,GAAK,KAAK,cAAV,CAAW;IACxB,IAAA,CAAC,GAAK,kBAAU,CAAC,6BAAa,CAAsB,EAAnD,CAAoD;IAE7D,IAAM,SAAS,GAAG,IAAI,cAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACrD,IAAM,UAAU,GAAG,IAAI,cAAW,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,OAAO,CACL,uCAAK,SAAS,EAAC,WAAW;QACxB,8BAAC,UAAG,IAAC,GAAG,EAAE,cAAc,IAAG,CAAC,CAAC,YAAY,CAAC,CAAO;QACjD,8BAAC,YAAK,IAAC,KAAK,EAAC,QAAQ;YAClB,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI;YAClB,8BAAC,iBAAO,IAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAC,QAAgB;oBACnD,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,QAAQ,CAAC,CAAC;gBAC5B,CAAC,GAAG;YACH,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI;YAClB,8BAAC,iBAAO,IAAC,IAAI,EAAE,UAAU,GAAI,CACvB,CACJ,CACP,CAAC;AACJ,CAAC;AAnBD,oCAmBC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gisce/react-ooui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"src",
|
|
8
|
+
"README.md"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"prebuild": "npm run build:tailwind && rimraf dist && npm run build:ts",
|
|
15
|
+
"build:ts": "tsc",
|
|
16
|
+
"build:tailwind": "postcss src/tailwind.css -o src/tailwind.generated.css",
|
|
17
|
+
"build": "webpack",
|
|
18
|
+
"build:dev": "npm run build:ts && npm run build:tailwind && webpack --env=development",
|
|
19
|
+
"test": "jest",
|
|
20
|
+
"cypress": "cypress open",
|
|
21
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
22
|
+
"build-storybook": "build-storybook -s public"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@ant-design/charts": "^1.3.6",
|
|
26
|
+
"@gisce/ooui": "^0.6.14",
|
|
27
|
+
"fiber-diagram": "github:gisce/fiber-diagram",
|
|
28
|
+
"file-type": "^16.5.0",
|
|
29
|
+
"react-grid-layout": "^1.3.4",
|
|
30
|
+
"react-hotkeys-hook": "^3.4.4",
|
|
31
|
+
"react-measure": "^2.5.2",
|
|
32
|
+
"scroll-into-view": "^1.16.0",
|
|
33
|
+
"styled-components": "^5.2.1",
|
|
34
|
+
"use-deep-compare-effect": "^1.8.1",
|
|
35
|
+
"validator": "^13.6.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@storybook/addon-actions": "^6.1.20",
|
|
39
|
+
"@storybook/addon-essentials": "^6.1.20",
|
|
40
|
+
"@storybook/addon-knobs": "^6.1.20",
|
|
41
|
+
"@storybook/addon-links": "^6.1.20",
|
|
42
|
+
"@storybook/node-logger": "^6.1.20",
|
|
43
|
+
"@storybook/preset-create-react-app": "^3.1.6",
|
|
44
|
+
"@storybook/react": "^6.1.20",
|
|
45
|
+
"@tailwindcss/postcss7-compat": "^2.0.2",
|
|
46
|
+
"@testing-library/jest-dom": "^5.11.4",
|
|
47
|
+
"@types/jest": "^26.0.15",
|
|
48
|
+
"@types/lodash": "^4.14.170",
|
|
49
|
+
"@types/node": "^12.0.0",
|
|
50
|
+
"@types/react": "^16.9.53",
|
|
51
|
+
"@types/react-dom": "^16.9.8",
|
|
52
|
+
"@types/react-grid-layout": "^1.3.2",
|
|
53
|
+
"@types/react-measure": "^2.0.7",
|
|
54
|
+
"@types/react-responsive": "^8.0.2",
|
|
55
|
+
"@types/scroll-into-view": "^1.16.0",
|
|
56
|
+
"@types/styled-components": "^5.1.7",
|
|
57
|
+
"@types/uuid": "^8.3.1",
|
|
58
|
+
"@types/validator": "^13.6.3",
|
|
59
|
+
"antd": "^4.12.3",
|
|
60
|
+
"autoprefixer": "^9.8.6",
|
|
61
|
+
"css-loader": "^6.6.0",
|
|
62
|
+
"cypress": "^5.2.0",
|
|
63
|
+
"html-webpack-plugin": "^5.0.0-beta.5",
|
|
64
|
+
"ignore-loader": "^0.1.2",
|
|
65
|
+
"jest": "^26.6.3",
|
|
66
|
+
"jest-enzyme": "^7.1.2",
|
|
67
|
+
"mini-css-extract-plugin": "^2.5.3",
|
|
68
|
+
"postcss": "^7.0.35",
|
|
69
|
+
"postcss-cli": "^7.1.0",
|
|
70
|
+
"react": "^17.0.1",
|
|
71
|
+
"react-dom": "^17.0.1",
|
|
72
|
+
"react-is": "^16.13.1",
|
|
73
|
+
"react-scripts": "^4.0.1",
|
|
74
|
+
"rimraf": "^3.0.2",
|
|
75
|
+
"source-map-loader": "1.1.3",
|
|
76
|
+
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.2",
|
|
77
|
+
"ts-jest": "^26.4.4",
|
|
78
|
+
"ts-loader": "^8.0.14",
|
|
79
|
+
"typescript": "^4.0.3",
|
|
80
|
+
"webpack": "^5.14.0",
|
|
81
|
+
"webpack-bundle-analyzer": "^4.3.0",
|
|
82
|
+
"webpack-cli": "^4.3.1"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"antd": "^4.12.3",
|
|
86
|
+
"react": "^17.0.1",
|
|
87
|
+
"react-dom": "^17.0.1"
|
|
88
|
+
}
|
|
89
|
+
}
|
package/src/.eslintcache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"/Users/marc/development/react-ooui/src/stories/Button.stories.js":"1","/Users/marc/development/react-ooui/src/stories/Char.stories.js":"2","/Users/marc/development/react-ooui/src/stories/Selection.stories.js":"3","/Users/marc/development/react-ooui/src/stories/ManyToOne.stories.js":"4","/Users/marc/development/react-ooui/src/stories/Checkbox.stories.js":"5","/Users/marc/development/react-ooui/src/widgets/Checkbox.tsx":"6","/Users/marc/development/react-ooui/src/widgets/ManyToOne.tsx":"7","/Users/marc/development/react-ooui/src/widgets/Selection.tsx":"8","/Users/marc/development/react-ooui/src/widgets/Button.tsx":"9","/Users/marc/development/react-ooui/src/widgets/Char.tsx":"10","/Users/marc/development/react-ooui/src/index.ts":"11","/Users/marc/development/react-ooui/src/helpers/TreeHelper.ts":"12","/Users/marc/development/react-ooui/src/widgets/Tree.tsx":"13","/Users/marc/development/react-ooui/src/stories/Tree.stories.js":"14"},{"size":721,"mtime":1611223665948,"results":"15","hashOfConfig":"16"},{"size":432,"mtime":1611223665949,"results":"17","hashOfConfig":"16"},{"size":539,"mtime":1611223665952,"results":"18","hashOfConfig":"16"},{"size":599,"mtime":1611223665950,"results":"19","hashOfConfig":"16"},{"size":464,"mtime":1611223665949,"results":"20","hashOfConfig":"16"},{"size":671,"mtime":1611223665953,"results":"21","hashOfConfig":"16"},{"size":1308,"mtime":1611223665954,"results":"22","hashOfConfig":"16"},{"size":706,"mtime":1611223665954,"results":"23","hashOfConfig":"16"},{"size":639,"mtime":1611223665953,"results":"24","hashOfConfig":"16"},{"size":741,"mtime":1611223665953,"results":"25","hashOfConfig":"16"},{"size":385,"mtime":1611227468105,"results":"26","hashOfConfig":"16"},{"size":1966,"mtime":1611306565063,"results":"27","hashOfConfig":"16"},{"size":1681,"mtime":1611227447728,"results":"28","hashOfConfig":"16"},{"size":3152,"mtime":1611308351200,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"i1ix4w",{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"49"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"/Users/marc/development/react-ooui/src/stories/Button.stories.js",[],[],"/Users/marc/development/react-ooui/src/stories/Char.stories.js",[],"/Users/marc/development/react-ooui/src/stories/Selection.stories.js",[],"/Users/marc/development/react-ooui/src/stories/ManyToOne.stories.js",[],"/Users/marc/development/react-ooui/src/stories/Checkbox.stories.js",[],"/Users/marc/development/react-ooui/src/widgets/Checkbox.tsx",[],"/Users/marc/development/react-ooui/src/widgets/ManyToOne.tsx",[],"/Users/marc/development/react-ooui/src/widgets/Selection.tsx",[],"/Users/marc/development/react-ooui/src/widgets/Button.tsx",[],[],"/Users/marc/development/react-ooui/src/widgets/Char.tsx",[],"/Users/marc/development/react-ooui/src/index.ts",[],"/Users/marc/development/react-ooui/src/helpers/TreeHelper.ts",[],"/Users/marc/development/react-ooui/src/widgets/Tree.tsx",[],"/Users/marc/development/react-ooui/src/stories/Tree.stories.js",[]]
|
package/src/Config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConnectionProviderType } from "@/types";
|
|
2
|
+
|
|
3
|
+
export default class ConnectionProvider {
|
|
4
|
+
private static handler: ConnectionProviderType;
|
|
5
|
+
|
|
6
|
+
public static init(handler: ConnectionProviderType): void {
|
|
7
|
+
ConnectionProvider.handler = handler;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public static getHandler(): ConnectionProviderType {
|
|
11
|
+
if (!ConnectionProvider.handler) {
|
|
12
|
+
throw 'Must call init() first with a valid ConnectionProvider instance';
|
|
13
|
+
}
|
|
14
|
+
return ConnectionProvider.handler;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import iconMapper from "../helpers/iconMapper";
|
|
2
|
+
import * as Icons from "@ant-design/icons";
|
|
3
|
+
|
|
4
|
+
describe("A IconMapper instance", () => {
|
|
5
|
+
test("should return the default icon when key not found", () => {
|
|
6
|
+
const defaultIcon = Icons.RightOutlined;
|
|
7
|
+
const icon = iconMapper("RANDOM_KEY");
|
|
8
|
+
expect(icon).toBe(defaultIcon);
|
|
9
|
+
});
|
|
10
|
+
test("should return proper help icon when requested", () => {
|
|
11
|
+
const helpIcon = Icons.QuestionOutlined;
|
|
12
|
+
const icon = iconMapper("STOCK_HELP");
|
|
13
|
+
expect(icon).toBe(helpIcon);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import {
|
|
2
|
+
removeUndefinedFields,
|
|
3
|
+
groupDateTimeValuesIfNeeded,
|
|
4
|
+
getParamsForFields,
|
|
5
|
+
} from "../helpers/searchFilterHelper";
|
|
6
|
+
import moment from "moment";
|
|
7
|
+
|
|
8
|
+
describe("A SearchFilterHelper instance", () => {
|
|
9
|
+
describe("removeUndefinedFields method", () => {
|
|
10
|
+
test("should return the same object without undefined fields", () => {
|
|
11
|
+
const object = {
|
|
12
|
+
testField: "field",
|
|
13
|
+
testField2: undefined,
|
|
14
|
+
testField3: undefined,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const filteredObject = removeUndefinedFields(object);
|
|
18
|
+
|
|
19
|
+
expect(Object.keys(filteredObject).length).toBe(1);
|
|
20
|
+
expect(filteredObject.testField).toBe("field");
|
|
21
|
+
});
|
|
22
|
+
test("should return an object without fields", () => {
|
|
23
|
+
const object = {
|
|
24
|
+
testField2: undefined,
|
|
25
|
+
testField3: undefined,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const filteredObject = removeUndefinedFields(object);
|
|
29
|
+
|
|
30
|
+
expect(Object.keys(filteredObject).length).toBe(0);
|
|
31
|
+
});
|
|
32
|
+
test("should return same object if it hasn't any undefined files", () => {
|
|
33
|
+
const object = {
|
|
34
|
+
testField1: "field",
|
|
35
|
+
testField2: "field",
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const filteredObject = removeUndefinedFields(object);
|
|
39
|
+
|
|
40
|
+
expect(Object.keys(filteredObject).length).toBe(2);
|
|
41
|
+
expect(filteredObject.testField1).toBe("field");
|
|
42
|
+
expect(filteredObject.testField2).toBe("field");
|
|
43
|
+
});
|
|
44
|
+
test("should return an object without fields if we send a null", () => {
|
|
45
|
+
const object = {
|
|
46
|
+
testField1: null,
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const filteredObject = removeUndefinedFields(object);
|
|
50
|
+
expect(Object.keys(filteredObject).length).toBe(0);
|
|
51
|
+
});
|
|
52
|
+
test("should return an object without fields if we send a blank string", () => {
|
|
53
|
+
const object = {
|
|
54
|
+
testField1: "",
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const filteredObject = removeUndefinedFields(object);
|
|
58
|
+
expect(Object.keys(filteredObject).length).toBe(0);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
describe("groupRangeValues method", () => {
|
|
62
|
+
test("should return the same object if it hasn't any datetime fields to group", () => {
|
|
63
|
+
const object = {
|
|
64
|
+
charValue: "test",
|
|
65
|
+
floatValue: 0.5,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const filteredObject = groupDateTimeValuesIfNeeded(object);
|
|
69
|
+
|
|
70
|
+
expect(JSON.stringify(filteredObject)).toBe(JSON.stringify(object));
|
|
71
|
+
});
|
|
72
|
+
test("should return a datetime value grouped", () => {
|
|
73
|
+
const object = {
|
|
74
|
+
charValue: "test",
|
|
75
|
+
floatValue: 0.5,
|
|
76
|
+
"dateField#date": [moment("2021-01-01"), moment("2021-01-02")],
|
|
77
|
+
"dateField#time": [
|
|
78
|
+
moment("1970-01-01 00:00"),
|
|
79
|
+
moment("1970-01-01 04:00"),
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
const filteredObject = groupDateTimeValuesIfNeeded(object);
|
|
84
|
+
|
|
85
|
+
expect(Object.keys(filteredObject).length).toBe(3);
|
|
86
|
+
expect(Object.keys(filteredObject)).toContain("dateField#datetime");
|
|
87
|
+
expect(filteredObject.charValue).toBe(object.charValue);
|
|
88
|
+
expect(filteredObject.floatValue).toBe(object.floatValue);
|
|
89
|
+
expect(Array.isArray(filteredObject["dateField#datetime"])).toBeTruthy();
|
|
90
|
+
const from = filteredObject["dateField#datetime"][0];
|
|
91
|
+
const to = filteredObject["dateField#datetime"][1];
|
|
92
|
+
expect(from).toBe("2021-01-01 00:00");
|
|
93
|
+
expect(to).toBe("2021-01-02 04:00");
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
describe("getParamsForField method", () => {
|
|
97
|
+
test("should return properly a float parameter", () => {
|
|
98
|
+
const fields = {
|
|
99
|
+
floatType: {
|
|
100
|
+
type: "float",
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
const values = {
|
|
104
|
+
"floatType#from": 1.1,
|
|
105
|
+
"floatType#to": 1.5,
|
|
106
|
+
};
|
|
107
|
+
const params = getParamsForFields(values, fields);
|
|
108
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
109
|
+
expect(params.length).toBe(2);
|
|
110
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
111
|
+
expect(params[0].length).toBe(3);
|
|
112
|
+
const from = params[0];
|
|
113
|
+
const to = params[1];
|
|
114
|
+
expect(Array.isArray(from)).toBeTruthy();
|
|
115
|
+
expect(Array.isArray(to)).toBeTruthy();
|
|
116
|
+
expect(from[0]).toBe("floatType");
|
|
117
|
+
expect(to[0]).toBe("floatType");
|
|
118
|
+
expect(from[1]).toBe(">=");
|
|
119
|
+
expect(to[1]).toBe("<=");
|
|
120
|
+
expect(from[2]).toBe(1.1);
|
|
121
|
+
expect(to[2]).toBe(1.5);
|
|
122
|
+
});
|
|
123
|
+
test("should return properly a float_time parameter", () => {
|
|
124
|
+
const fields = {
|
|
125
|
+
floatType: {
|
|
126
|
+
type: "float_time",
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
const values = {
|
|
130
|
+
"floatType#from": 1.1,
|
|
131
|
+
"floatType#to": 1.5,
|
|
132
|
+
};
|
|
133
|
+
const params = getParamsForFields(values, fields);
|
|
134
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
135
|
+
expect(params.length).toBe(2);
|
|
136
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
137
|
+
expect(params[0].length).toBe(3);
|
|
138
|
+
const from = params[0];
|
|
139
|
+
const to = params[1];
|
|
140
|
+
expect(Array.isArray(from)).toBeTruthy();
|
|
141
|
+
expect(Array.isArray(to)).toBeTruthy();
|
|
142
|
+
expect(from[0]).toBe("floatType");
|
|
143
|
+
expect(to[0]).toBe("floatType");
|
|
144
|
+
expect(from[1]).toBe(">=");
|
|
145
|
+
expect(to[1]).toBe("<=");
|
|
146
|
+
expect(from[2]).toBe(1.1);
|
|
147
|
+
expect(to[2]).toBe(1.5);
|
|
148
|
+
});
|
|
149
|
+
test("should return properly a progressbar parameter", () => {
|
|
150
|
+
const fields = {
|
|
151
|
+
floatType: {
|
|
152
|
+
type: "progressbar",
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
const values = {
|
|
156
|
+
"floatType#from": 1.1,
|
|
157
|
+
"floatType#to": 1.5,
|
|
158
|
+
};
|
|
159
|
+
const params = getParamsForFields(values, fields);
|
|
160
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
161
|
+
expect(params.length).toBe(2);
|
|
162
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
163
|
+
expect(params[0].length).toBe(3);
|
|
164
|
+
const from = params[0];
|
|
165
|
+
const to = params[1];
|
|
166
|
+
expect(Array.isArray(from)).toBeTruthy();
|
|
167
|
+
expect(Array.isArray(to)).toBeTruthy();
|
|
168
|
+
expect(from[0]).toBe("floatType");
|
|
169
|
+
expect(to[0]).toBe("floatType");
|
|
170
|
+
expect(from[1]).toBe(">=");
|
|
171
|
+
expect(to[1]).toBe("<=");
|
|
172
|
+
expect(from[2]).toBe(1.1);
|
|
173
|
+
expect(to[2]).toBe(1.5);
|
|
174
|
+
});
|
|
175
|
+
test("should return properly an integer parameter", () => {
|
|
176
|
+
const fields = {
|
|
177
|
+
field: {
|
|
178
|
+
type: "integer",
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
const values = {
|
|
182
|
+
"field#from": 1,
|
|
183
|
+
"field#to": 5,
|
|
184
|
+
};
|
|
185
|
+
const params = getParamsForFields(values, fields);
|
|
186
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
187
|
+
expect(params.length).toBe(2);
|
|
188
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
189
|
+
expect(params[0].length).toBe(3);
|
|
190
|
+
const from = params[0];
|
|
191
|
+
const to = params[1];
|
|
192
|
+
expect(Array.isArray(from)).toBeTruthy();
|
|
193
|
+
expect(Array.isArray(to)).toBeTruthy();
|
|
194
|
+
expect(from[0]).toBe("field");
|
|
195
|
+
expect(to[0]).toBe("field");
|
|
196
|
+
expect(from[1]).toBe(">=");
|
|
197
|
+
expect(to[1]).toBe("<=");
|
|
198
|
+
expect(from[2]).toBe(1);
|
|
199
|
+
expect(to[2]).toBe(5);
|
|
200
|
+
});
|
|
201
|
+
test("should return properly an char parameter", () => {
|
|
202
|
+
const fields = {
|
|
203
|
+
field: {
|
|
204
|
+
type: "char",
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
const values = {
|
|
208
|
+
field: "lorem ipsum",
|
|
209
|
+
};
|
|
210
|
+
const params = getParamsForFields(values, fields);
|
|
211
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
212
|
+
expect(params.length).toBe(1);
|
|
213
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
214
|
+
expect(params[0].length).toBe(3);
|
|
215
|
+
const fieldParams = params[0];
|
|
216
|
+
expect(fieldParams[0]).toBe("field");
|
|
217
|
+
expect(fieldParams[1]).toBe("ilike");
|
|
218
|
+
expect(fieldParams[2]).toBe("lorem ipsum");
|
|
219
|
+
});
|
|
220
|
+
test("should return properly a text parameter", () => {
|
|
221
|
+
const fields = {
|
|
222
|
+
field: {
|
|
223
|
+
type: "text",
|
|
224
|
+
},
|
|
225
|
+
};
|
|
226
|
+
const values = {
|
|
227
|
+
field: "lorem ipsum",
|
|
228
|
+
};
|
|
229
|
+
const params = getParamsForFields(values, fields);
|
|
230
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
231
|
+
expect(params.length).toBe(1);
|
|
232
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
233
|
+
expect(params[0].length).toBe(3);
|
|
234
|
+
const fieldParams = params[0];
|
|
235
|
+
expect(fieldParams[0]).toBe("field");
|
|
236
|
+
expect(fieldParams[1]).toBe("ilike");
|
|
237
|
+
expect(fieldParams[2]).toBe("lorem ipsum");
|
|
238
|
+
});
|
|
239
|
+
test("should return properly a many2one parameter", () => {
|
|
240
|
+
const fields = {
|
|
241
|
+
field: {
|
|
242
|
+
type: "many2one",
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
const values = {
|
|
246
|
+
field: "lorem ipsum",
|
|
247
|
+
};
|
|
248
|
+
const params = getParamsForFields(values, fields);
|
|
249
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
250
|
+
expect(params.length).toBe(1);
|
|
251
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
252
|
+
expect(params[0].length).toBe(3);
|
|
253
|
+
const fieldParams = params[0];
|
|
254
|
+
expect(fieldParams[0]).toBe("field");
|
|
255
|
+
expect(fieldParams[1]).toBe("ilike");
|
|
256
|
+
expect(fieldParams[2]).toBe("lorem ipsum");
|
|
257
|
+
});
|
|
258
|
+
test("should return properly a one2many parameter", () => {
|
|
259
|
+
const fields = {
|
|
260
|
+
field: {
|
|
261
|
+
type: "one2many",
|
|
262
|
+
},
|
|
263
|
+
};
|
|
264
|
+
const values = {
|
|
265
|
+
field: "lorem ipsum",
|
|
266
|
+
};
|
|
267
|
+
const params = getParamsForFields(values, fields);
|
|
268
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
269
|
+
expect(params.length).toBe(1);
|
|
270
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
271
|
+
expect(params[0].length).toBe(3);
|
|
272
|
+
const fieldParams = params[0];
|
|
273
|
+
expect(fieldParams[0]).toBe("field");
|
|
274
|
+
expect(fieldParams[1]).toBe("ilike");
|
|
275
|
+
expect(fieldParams[2]).toBe("lorem ipsum");
|
|
276
|
+
});
|
|
277
|
+
test("should return properly a many2many parameter", () => {
|
|
278
|
+
const fields = {
|
|
279
|
+
field: {
|
|
280
|
+
type: "many2many",
|
|
281
|
+
},
|
|
282
|
+
};
|
|
283
|
+
const values = {
|
|
284
|
+
field: "lorem ipsum",
|
|
285
|
+
};
|
|
286
|
+
const params = getParamsForFields(values, fields);
|
|
287
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
288
|
+
expect(params.length).toBe(1);
|
|
289
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
290
|
+
expect(params[0].length).toBe(3);
|
|
291
|
+
const fieldParams = params[0];
|
|
292
|
+
expect(fieldParams[0]).toBe("field");
|
|
293
|
+
expect(fieldParams[1]).toBe("ilike");
|
|
294
|
+
expect(fieldParams[2]).toBe("lorem ipsum");
|
|
295
|
+
});
|
|
296
|
+
test("should return properly a selection parameter", () => {
|
|
297
|
+
const fields = {
|
|
298
|
+
field: {
|
|
299
|
+
type: "selection",
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
const values = {
|
|
303
|
+
field: "value",
|
|
304
|
+
};
|
|
305
|
+
const params = getParamsForFields(values, fields);
|
|
306
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
307
|
+
expect(params.length).toBe(1);
|
|
308
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
309
|
+
expect(params[0].length).toBe(3);
|
|
310
|
+
const fieldParams = params[0];
|
|
311
|
+
expect(fieldParams[0]).toBe("field");
|
|
312
|
+
expect(fieldParams[1]).toBe("=");
|
|
313
|
+
expect(fieldParams[2]).toBe("value");
|
|
314
|
+
});
|
|
315
|
+
test("should return properly a boolean parameter", () => {
|
|
316
|
+
const fields = {
|
|
317
|
+
field: {
|
|
318
|
+
type: "boolean",
|
|
319
|
+
},
|
|
320
|
+
};
|
|
321
|
+
const values = {
|
|
322
|
+
field: "true",
|
|
323
|
+
};
|
|
324
|
+
const params = getParamsForFields(values, fields);
|
|
325
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
326
|
+
expect(params.length).toBe(1);
|
|
327
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
328
|
+
expect(params[0].length).toBe(3);
|
|
329
|
+
const fieldParams = params[0];
|
|
330
|
+
expect(fieldParams[0]).toBe("field");
|
|
331
|
+
expect(fieldParams[1]).toBe("=");
|
|
332
|
+
expect(fieldParams[2]).toBe(true);
|
|
333
|
+
});
|
|
334
|
+
test("should return properly a date parameter", () => {
|
|
335
|
+
const fields = {
|
|
336
|
+
field: {
|
|
337
|
+
type: "date",
|
|
338
|
+
},
|
|
339
|
+
};
|
|
340
|
+
const values = {
|
|
341
|
+
field: [moment("2021-01-01"), moment("2021-01-02")],
|
|
342
|
+
};
|
|
343
|
+
const params = getParamsForFields(values, fields);
|
|
344
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
345
|
+
expect(params.length).toBe(2);
|
|
346
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
347
|
+
expect(params[0].length).toBe(3);
|
|
348
|
+
const from = params[0];
|
|
349
|
+
const to = params[1];
|
|
350
|
+
expect(Array.isArray(from)).toBeTruthy();
|
|
351
|
+
expect(Array.isArray(to)).toBeTruthy();
|
|
352
|
+
expect(from[0]).toBe("field");
|
|
353
|
+
expect(to[0]).toBe("field");
|
|
354
|
+
expect(from[1]).toBe(">=");
|
|
355
|
+
expect(to[1]).toBe("<=");
|
|
356
|
+
expect(from[2]).toBe("2021-01-01");
|
|
357
|
+
expect(to[2]).toBe("2021-01-02");
|
|
358
|
+
});
|
|
359
|
+
test("should return properly a datetime parameter", () => {
|
|
360
|
+
const fields = {
|
|
361
|
+
field: {
|
|
362
|
+
type: "datetime",
|
|
363
|
+
},
|
|
364
|
+
};
|
|
365
|
+
const values = {
|
|
366
|
+
"field#date": [moment("2021-01-01"), moment("2021-01-02")],
|
|
367
|
+
"field#time": [moment("1970-01-01 03:31"), moment("1970-01-01 03:32")],
|
|
368
|
+
};
|
|
369
|
+
const params = getParamsForFields(values, fields);
|
|
370
|
+
expect(Array.isArray(params)).toBeTruthy();
|
|
371
|
+
expect(params.length).toBe(2);
|
|
372
|
+
expect(Array.isArray(params[0])).toBeTruthy();
|
|
373
|
+
expect(params[0].length).toBe(3);
|
|
374
|
+
const from = params[0];
|
|
375
|
+
const to = params[1];
|
|
376
|
+
expect(Array.isArray(from)).toBeTruthy();
|
|
377
|
+
expect(Array.isArray(to)).toBeTruthy();
|
|
378
|
+
expect(from[0]).toBe("field");
|
|
379
|
+
expect(to[0]).toBe("field");
|
|
380
|
+
expect(from[1]).toBe(">=");
|
|
381
|
+
expect(to[1]).toBe("<=");
|
|
382
|
+
expect(from[2]).toBe("2021-01-01 03:31");
|
|
383
|
+
expect(to[2]).toBe("2021-01-02 03:32");
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ButtonWithTooltip from "@/common/ButtonWithTooltip";
|
|
3
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
tooltip: string;
|
|
7
|
+
onClick: any;
|
|
8
|
+
icon: any;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
type?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
function ActionButton(props: Props) {
|
|
16
|
+
const {
|
|
17
|
+
onClick,
|
|
18
|
+
disabled = false,
|
|
19
|
+
loading = false,
|
|
20
|
+
tooltip,
|
|
21
|
+
icon,
|
|
22
|
+
label,
|
|
23
|
+
type = "default",
|
|
24
|
+
} = props;
|
|
25
|
+
const finalIcon = loading ? <LoadingOutlined /> : icon;
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<ButtonWithTooltip
|
|
29
|
+
type={type as any}
|
|
30
|
+
tooltip={tooltip}
|
|
31
|
+
onClick={onClick}
|
|
32
|
+
disabled={disabled}
|
|
33
|
+
>
|
|
34
|
+
{finalIcon}
|
|
35
|
+
{label}
|
|
36
|
+
</ButtonWithTooltip>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default ActionButton;
|