@gooddata/sdk-ui-dashboard 10.7.0-alpha.9 → 10.7.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/NOTICE +3 -3
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/assets/list.svg +1 -0
- package/esm/assets/save-as-new.svg +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadOrganizationWebhooks.d.ts +4 -0
- package/esm/model/commandHandlers/dashboard/common/loadOrganizationWebhooks.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadOrganizationWebhooks.js +13 -0
- package/esm/model/commandHandlers/dashboard/common/loadOrganizationWebhooks.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.d.ts +4 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js +15 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceUsers.d.ts +4 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceUsers.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceUsers.js +8 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceUsers.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +11 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +24 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/drill/common/intersectionUtils.d.ts +3 -4
- package/esm/model/commandHandlers/drill/common/intersectionUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/common/intersectionUtils.js +18 -19
- package/esm/model/commandHandlers/drill/common/intersectionUtils.js.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +12 -5
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.js +4 -2
- package/esm/model/commandHandlers/drill/drillDownHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +64 -10
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillToInsightHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToInsightHandler.js +3 -1
- package/esm/model/commandHandlers/drill/drillToInsightHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +94 -18
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +2 -0
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.d.ts +5 -0
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.d.ts.map +1 -0
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.js +16 -0
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.js.map +1 -0
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/dashboard.d.ts +1 -1
- package/esm/model/commands/dashboard.d.ts.map +1 -1
- package/esm/model/commands/filters.d.ts +32 -1
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +27 -0
- package/esm/model/commands/filters.js.map +1 -1
- package/esm/model/commands/index.d.ts +4 -4
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +2 -2
- package/esm/model/commands/index.js.map +1 -1
- package/esm/model/commands/scheduledEmail.d.ts +20 -0
- package/esm/model/commands/scheduledEmail.d.ts.map +1 -1
- package/esm/model/commands/scheduledEmail.js +17 -0
- package/esm/model/commands/scheduledEmail.js.map +1 -1
- package/esm/model/events/drill.d.ts +6 -2
- package/esm/model/events/drill.d.ts.map +1 -1
- package/esm/model/events/drill.js +2 -1
- package/esm/model/events/drill.js.map +1 -1
- package/esm/model/events/filters.d.ts +2 -2
- package/esm/model/events/filters.d.ts.map +1 -1
- package/esm/model/events/filters.js.map +1 -1
- package/esm/model/index.d.ts +1 -1
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/react/index.d.ts +1 -2
- package/esm/model/react/index.d.ts.map +1 -1
- package/esm/model/react/index.js +1 -2
- package/esm/model/react/index.js.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.d.ts +25 -12
- package/esm/model/react/useDashboardScheduledEmails.d.ts.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.js +81 -33
- package/esm/model/react/useDashboardScheduledEmails.js.map +1 -1
- package/esm/model/store/automations/automationsReducers.d.ts +21 -0
- package/esm/model/store/automations/automationsReducers.d.ts.map +1 -0
- package/esm/model/store/automations/automationsReducers.js +18 -0
- package/esm/model/store/automations/automationsReducers.js.map +1 -0
- package/esm/model/store/automations/automationsSelectors.d.ts +22 -0
- package/esm/model/store/automations/automationsSelectors.d.ts.map +1 -0
- package/esm/model/store/automations/automationsSelectors.js +28 -0
- package/esm/model/store/automations/automationsSelectors.js.map +1 -0
- package/esm/model/store/automations/automationsState.d.ts +12 -0
- package/esm/model/store/automations/automationsState.d.ts.map +1 -0
- package/esm/model/store/automations/automationsState.js +3 -0
- package/esm/model/store/automations/automationsState.js.map +1 -0
- package/esm/model/store/automations/index.d.ts +16 -0
- package/esm/model/store/automations/index.d.ts.map +1 -0
- package/esm/model/store/automations/index.js +12 -0
- package/esm/model/store/automations/index.js.map +1 -0
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +8 -1
- package/esm/model/store/dashboardStore.js.map +1 -1
- package/esm/model/store/index.d.ts +6 -2
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +4 -2
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/insights/insightsSelectors.d.ts.map +1 -1
- package/esm/model/store/insights/insightsSelectors.js +3 -2
- package/esm/model/store/insights/insightsSelectors.js.map +1 -1
- package/esm/model/store/types.d.ts +6 -0
- package/esm/model/store/types.d.ts.map +1 -1
- package/esm/model/store/ui/index.d.ts +8 -2
- package/esm/model/store/ui/index.d.ts.map +1 -1
- package/esm/model/store/ui/uiReducers.d.ts +9 -3
- package/esm/model/store/ui/uiReducers.d.ts.map +1 -1
- package/esm/model/store/ui/uiReducers.js +14 -2
- package/esm/model/store/ui/uiReducers.js.map +1 -1
- package/esm/model/store/ui/uiSelectors.d.ts +9 -1
- package/esm/model/store/ui/uiSelectors.d.ts.map +1 -1
- package/esm/model/store/ui/uiSelectors.js +9 -1
- package/esm/model/store/ui/uiSelectors.js.map +1 -1
- package/esm/model/store/ui/uiState.d.ts +3 -1
- package/esm/model/store/ui/uiState.d.ts.map +1 -1
- package/esm/model/store/ui/uiState.js.map +1 -1
- package/esm/model/store/users/index.d.ts +8 -0
- package/esm/model/store/users/index.d.ts.map +1 -0
- package/esm/model/store/users/index.js +12 -0
- package/esm/model/store/users/index.js.map +1 -0
- package/esm/model/store/users/usersReducers.d.ts +12 -0
- package/esm/model/store/users/usersReducers.d.ts.map +1 -0
- package/esm/model/store/users/usersReducers.js +8 -0
- package/esm/model/store/users/usersReducers.js.map +1 -0
- package/esm/model/store/users/usersSelectors.d.ts +9 -0
- package/esm/model/store/users/usersSelectors.d.ts.map +1 -0
- package/esm/model/store/users/usersSelectors.js +12 -0
- package/esm/model/store/users/usersSelectors.js.map +1 -0
- package/esm/model/store/users/usersState.d.ts +9 -0
- package/esm/model/store/users/usersState.d.ts.map +1 -0
- package/esm/model/store/users/usersState.js +3 -0
- package/esm/model/store/users/usersState.js.map +1 -0
- package/esm/model/store/webhooks/webhooksReducers.d.ts.map +1 -1
- package/esm/model/store/webhooks/webhooksReducers.js +1 -0
- package/esm/model/store/webhooks/webhooksReducers.js.map +1 -1
- package/esm/model/store/webhooks/webhooksSelectors.d.ts +13 -0
- package/esm/model/store/webhooks/webhooksSelectors.d.ts.map +1 -1
- package/esm/model/store/webhooks/webhooksSelectors.js +16 -0
- package/esm/model/store/webhooks/webhooksSelectors.js.map +1 -1
- package/esm/model/store/webhooks/webhooksState.d.ts +3 -0
- package/esm/model/store/webhooks/webhooksState.d.ts.map +1 -1
- package/esm/model/store/webhooks/webhooksState.js +1 -1
- package/esm/model/store/webhooks/webhooksState.js.map +1 -1
- package/esm/model/types/commonTypes.d.ts +13 -1
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/model/types/commonTypes.js.map +1 -1
- package/esm/model/utils/filterResolver.d.ts +2 -2
- package/esm/model/utils/filterResolver.d.ts.map +1 -1
- package/esm/model/utils/filterResolver.js +2 -2
- package/esm/model/utils/filterResolver.js.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js +5 -13
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +4 -10
- package/esm/presentation/dashboard/hooks/useDashboard.js.map +1 -1
- package/esm/presentation/dashboard/types.d.ts +2 -4
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.json +0 -7
- package/esm/presentation/localization/bundles/en-GB.json +0 -7
- package/esm/presentation/localization/bundles/en-US.json +36 -57
- package/esm/presentation/localization/bundles/es-419.json +0 -7
- package/esm/presentation/localization/bundles/es-ES.json +0 -7
- package/esm/presentation/localization/bundles/fr-CA.json +0 -7
- package/esm/presentation/localization/bundles/fr-FR.json +0 -7
- package/esm/presentation/localization/bundles/it-IT.json +0 -7
- package/esm/presentation/localization/bundles/ja-JP.json +0 -7
- package/esm/presentation/localization/bundles/nl-NL.json +0 -7
- package/esm/presentation/localization/bundles/pt-BR.json +0 -7
- package/esm/presentation/localization/bundles/pt-PT.json +0 -7
- package/esm/presentation/localization/bundles/ru-RU.json +0 -7
- package/esm/presentation/localization/bundles/zh-Hans.json +0 -7
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +29 -8
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts +0 -4
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js +39 -39
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.d.ts +15 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.js +50 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.d.ts +9 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.js +21 -17
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +5 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +100 -24
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.d.ts +3 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.js +3 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.d.ts +10 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.js +65 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +4 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +6 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/index.d.ts +1 -1
- package/esm/presentation/scheduledEmail/index.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/index.js +1 -1
- package/esm/presentation/scheduledEmail/types.d.ts +15 -1
- package/esm/presentation/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.js +1 -1
- package/esm/presentation/topBar/menuButton/DefaultMenuButton.js.map +1 -1
- package/esm/presentation/topBar/menuButton/types.d.ts +1 -0
- package/esm/presentation/topBar/menuButton/types.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +29 -2
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
- package/esm/presentation/widget/common/configuration/DateDatasetDropdown.js +4 -4
- package/esm/presentation/widget/common/configuration/DateDatasetDropdown.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +3 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +19 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/insightMenu/index.d.ts +0 -1
- package/esm/presentation/widget/insightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/index.js +1 -2
- package/esm/presentation/widget/insightMenu/index.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +13 -6
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +3 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +16 -11
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +231 -59
- package/esm/types.d.ts +18 -0
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js +1 -1
- package/package.json +16 -16
- package/styles/css/configurationPanel.css +3 -3
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +70 -23
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/icons.css +15 -0
- package/styles/css/icons.css.map +1 -1
- package/styles/css/layout.css +8 -1
- package/styles/css/layout.css.map +1 -1
- package/styles/css/main.css +149 -36
- package/styles/css/main.css.map +1 -1
- package/styles/css/scheduled_mail.css +50 -22
- package/styles/css/scheduled_mail.css.map +1 -1
- package/styles/scss/configurationPanel.scss +3 -3
- package/styles/scss/dashboard.scss +16 -0
- package/styles/scss/icons.scss +21 -0
- package/styles/scss/layout.scss +10 -2
- package/styles/scss/scheduled_mail.scss +58 -22
- package/esm/model/react/useCurrentOrganization.d.ts +0 -21
- package/esm/model/react/useCurrentOrganization.d.ts.map +0 -1
- package/esm/model/react/useCurrentOrganization.js +0 -16
- package/esm/model/react/useCurrentOrganization.js.map +0 -1
- package/esm/model/react/useDashboardScheduledEmailsData.d.ts +0 -16
- package/esm/model/react/useDashboardScheduledEmailsData.d.ts.map +0 -1
- package/esm/model/react/useDashboardScheduledEmailsData.js +0 -64
- package/esm/model/react/useDashboardScheduledEmailsData.js.map +0 -1
- package/esm/model/react/useOrganizationWebhooks.d.ts +0 -25
- package/esm/model/react/useOrganizationWebhooks.d.ts.map +0 -1
- package/esm/model/react/useOrganizationWebhooks.js +0 -27
- package/esm/model/react/useOrganizationWebhooks.js.map +0 -1
- package/esm/model/react/useWorkspaceAutomations.d.ts +0 -31
- package/esm/model/react/useWorkspaceAutomations.d.ts.map +0 -1
- package/esm/model/react/useWorkspaceAutomations.js +0 -28
- package/esm/model/react/useWorkspaceAutomations.js.map +0 -1
- package/esm/model/react/useWorkspaceUsers.d.ts +0 -29
- package/esm/model/react/useWorkspaceUsers.d.ts.map +0 -1
- package/esm/model/react/useWorkspaceUsers.js +0 -19
- package/esm/model/react/useWorkspaceUsers.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.d.ts +0 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.js +0 -31
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.js.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenu.d.ts +0 -6
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenu.d.ts.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenu.js +0 -12
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenu.js.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenuButton.d.ts +0 -6
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenuButton.d.ts.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenuButton.js +0 -12
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenuButton.js.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuButton.d.ts +0 -4
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuButton.d.ts.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuButton.js +0 -39
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuButton.js.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuItem.d.ts +0 -12
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuItem.d.ts.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuItem.js +0 -23
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuItem.js.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/index.d.ts +0 -4
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/index.d.ts.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/index.js +0 -25
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/index.js.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/getDefaultLegacyInsightMenuItems.d.ts +0 -13
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/getDefaultLegacyInsightMenuItems.d.ts.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/getDefaultLegacyInsightMenuItems.js +0 -30
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/getDefaultLegacyInsightMenuItems.js.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/index.d.ts +0 -4
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/index.d.ts.map +0 -1
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/index.js +0 -5
- package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/index.js.map +0 -1
package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// (C) 2024 GoodData Corporation
|
|
2
|
-
import { isExportDefinitionDashboardContent, isExportDefinitionVisualizationObjectContent, isFilter, isFilterContextItem, } from "@gooddata/sdk-model";
|
|
3
|
-
export const isDashboardAutomation = (automation) => {
|
|
4
|
-
if (!automation) {
|
|
5
|
-
return false;
|
|
6
|
-
}
|
|
7
|
-
return automation.exportDefinitions?.some((exportDefinition) => {
|
|
8
|
-
return isExportDefinitionDashboardContent(exportDefinition.requestPayload.content);
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
export const getAutomationDashboardFilters = (automation) => {
|
|
12
|
-
if (!automation) {
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
return automation.exportDefinitions
|
|
16
|
-
?.find((exportDefinition) => {
|
|
17
|
-
return isExportDefinitionDashboardContent(exportDefinition.requestPayload.content);
|
|
18
|
-
})
|
|
19
|
-
?.requestPayload?.content.filters?.filter(isFilterContextItem);
|
|
20
|
-
};
|
|
21
|
-
export const getAutomationVisualizationFilters = (automation) => {
|
|
22
|
-
if (!automation) {
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
25
|
-
return automation.exportDefinitions
|
|
26
|
-
?.find((exportDefinition) => {
|
|
27
|
-
return isExportDefinitionVisualizationObjectContent(exportDefinition.requestPayload.content);
|
|
28
|
-
})
|
|
29
|
-
?.requestPayload?.content.filters?.filter(isFilter);
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=automationFilters.js.map
|
package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automationFilters.js","sourceRoot":"","sources":["../../../../../src/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationFilters.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAKH,kCAAkC,EAClC,4CAA4C,EAC5C,QAAQ,EACR,mBAAmB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACjC,UAAuF,EACzF,EAAE;IACA,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,UAAU,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,gBAAgB,EAAE,EAAE;QAC3D,OAAO,kCAAkC,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CACzC,UAAuF,EACxD,EAAE;IACjC,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO,UAAU,CAAC,iBAAiB;QAC/B,EAAE,IAAI,CAAC,CAAC,gBAAgB,EAAE,EAAE;QACxB,OAAO,kCAAkC,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACvF,CAAC,CAAC;QACF,EAAE,cAAc,EAAE,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC7C,UAAuF,EAClE,EAAE;IACvB,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO,UAAU,CAAC,iBAAiB;QAC/B,EAAE,IAAI,CAAC,CAAC,gBAAgB,EAAE,EAAE;QACxB,OAAO,4CAA4C,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACjG,CAAC,CAAC;QACF,EAAE,cAAc,EAAE,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC5D,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare const LegacyDashboardInsightMenu: import("react").ComponentType<import("../types.js").IDashboardInsightMenuProps | (import("../types.js").IDashboardInsightMenuProps & import("react").RefAttributes<import("react").Component<import("../types.js").IDashboardInsightMenuProps, any, any>>)>;
|
|
6
|
-
//# sourceMappingURL=LegacyDashboardInsightMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyDashboardInsightMenu.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenu.tsx"],"names":[],"mappings":";AAMA;;GAEG;AACH,eAAO,MAAM,0BAA0B,6PAGrC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// (C) 2020-2022 GoodData Corporation
|
|
2
|
-
import { DefaultDashboardInsightMenu } from "../DefaultDashboardInsightMenu/index.js";
|
|
3
|
-
import { renderModeAware } from "../../../componentDefinition/index.js";
|
|
4
|
-
import { LegacyInsightMenu } from "./LegacyInsightMenu/index.js";
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export const LegacyDashboardInsightMenu = renderModeAware({
|
|
9
|
-
view: LegacyInsightMenu,
|
|
10
|
-
edit: DefaultDashboardInsightMenu,
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=LegacyDashboardInsightMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyDashboardInsightMenu.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenu.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,eAAe,CAAsC;IAC3F,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,2BAA2B;CACpC,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare const LegacyDashboardInsightMenuButton: import("react").ComponentType<import("../types.js").IDashboardInsightMenuButtonProps | (import("../types.js").IDashboardInsightMenuButtonProps & import("react").RefAttributes<import("react").Component<import("../types.js").IDashboardInsightMenuButtonProps, any, any>>)>;
|
|
6
|
-
//# sourceMappingURL=LegacyDashboardInsightMenuButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyDashboardInsightMenuButton.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenuButton.tsx"],"names":[],"mappings":";AAMA;;GAEG;AACH,eAAO,MAAM,gCAAgC,+QAG3C,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// (C) 2020-2022 GoodData Corporation
|
|
2
|
-
import { renderModeAware } from "../../../componentDefinition/index.js";
|
|
3
|
-
import { DefaultDashboardInsightMenuButton } from "../DefaultDashboardInsightMenu/index.js";
|
|
4
|
-
import { LegacyInsightMenuButton } from "./LegacyInsightMenu/LegacyInsightMenuButton.js";
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export const LegacyDashboardInsightMenuButton = renderModeAware({
|
|
9
|
-
view: LegacyInsightMenuButton,
|
|
10
|
-
edit: DefaultDashboardInsightMenuButton,
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=LegacyDashboardInsightMenuButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyDashboardInsightMenuButton.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyDashboardInsightMenuButton.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAE5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAEzF;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,eAAe,CAA4C;IACvG,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,iCAAiC;CAC1C,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyInsightMenuButton.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAS3C,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AASlE,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CAmD9E,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// (C) 2019-2022 GoodData Corporation
|
|
2
|
-
import React, { useCallback } from "react";
|
|
3
|
-
import { insightVisualizationType, objRefToString, widgetRef } from "@gooddata/sdk-model";
|
|
4
|
-
import { stringUtils } from "@gooddata/util";
|
|
5
|
-
import cx from "classnames";
|
|
6
|
-
import { useIntl } from "react-intl";
|
|
7
|
-
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
8
|
-
import { selectCanExportTabular, selectSettings, useDashboardSelector } from "../../../../../model/index.js";
|
|
9
|
-
const nonExportableVisTypes = ["headline", "xirr"];
|
|
10
|
-
function isExportableVisualization(visType) {
|
|
11
|
-
return !nonExportableVisTypes.includes(visType);
|
|
12
|
-
}
|
|
13
|
-
const bubbleAlignPoints = [{ align: "tc bc" }, { align: "tc br" }];
|
|
14
|
-
export const LegacyInsightMenuButton = ({ onClick, widget, insight, isOpen, }) => {
|
|
15
|
-
const intl = useIntl();
|
|
16
|
-
const onOptionsMenuClick = useCallback(() => {
|
|
17
|
-
onClick();
|
|
18
|
-
}, [onClick]);
|
|
19
|
-
const settings = useDashboardSelector(selectSettings);
|
|
20
|
-
const canExportTabular = useDashboardSelector(selectCanExportTabular);
|
|
21
|
-
const areExportsEnabled = settings.enableKPIDashboardExport;
|
|
22
|
-
const hasExportReportPermissions = canExportTabular;
|
|
23
|
-
const visType = insightVisualizationType(insight);
|
|
24
|
-
const isExportableVisType = isExportableVisualization(visType);
|
|
25
|
-
const canExportWidget = areExportsEnabled && hasExportReportPermissions && isExportableVisType;
|
|
26
|
-
if (!canExportWidget) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
const widgetRefValue = widgetRef(widget);
|
|
30
|
-
const objRefAsString = widgetRefValue ? objRefToString(widgetRefValue) : "";
|
|
31
|
-
const optionsIconClasses = cx("dash-item-action-options", "s-dash-item-action-options", `dash-item-action-options-${stringUtils.simplifyText(objRefAsString)}`, `s-dash-item-action-options-${stringUtils.simplifyText(objRefAsString)}`, "gd-icon-download", {
|
|
32
|
-
"dash-item-action-options-active": isOpen,
|
|
33
|
-
});
|
|
34
|
-
return (React.createElement("div", { className: "dash-item-action-placeholder s-dash-item-action-placeholder", onClick: onOptionsMenuClick },
|
|
35
|
-
React.createElement(BubbleHoverTrigger, { className: optionsIconClasses, showDelay: 500, hideDelay: 0, tagName: "div" },
|
|
36
|
-
React.createElement(Bubble, { className: "bubble-primary", alignPoints: bubbleAlignPoints },
|
|
37
|
-
React.createElement("span", null, intl.formatMessage({ id: "options.button.bubble" }))))));
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=LegacyInsightMenuButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyInsightMenuButton.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuButton.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAe,MAAM,sBAAsB,CAAC;AAG/E,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG7G,MAAM,qBAAqB,GAAc,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAC9D,SAAS,yBAAyB,CAAC,OAAgB;IAC/C,OAAO,CAAC,qBAAqB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,iBAAiB,GAAkB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,uBAAuB,GAA+C,CAAC,EAChF,OAAO,EACP,MAAM,EACN,OAAO,EACP,MAAM,GACT,EAAE,EAAE;IACD,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,EAAE;QACxC,OAAO,EAAE,CAAC;IACd,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,QAAQ,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACtD,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;IACtE,MAAM,iBAAiB,GAAG,QAAQ,CAAC,wBAAwB,CAAC;IAC5D,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;IAEpD,MAAM,OAAO,GAAG,wBAAwB,CAAC,OAAO,CAAY,CAAC;IAC7D,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAE/D,MAAM,eAAe,GAAG,iBAAiB,IAAI,0BAA0B,IAAI,mBAAmB,CAAC;IAE/F,IAAI,CAAC,eAAe,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,cAAc,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE5E,MAAM,kBAAkB,GAAG,EAAE,CACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,WAAW,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,EACtE,8BAA8B,WAAW,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,EACxE,kBAAkB,EAClB;QACI,iCAAiC,EAAE,MAAM;KAC5C,CACJ,CAAC;IAEF,OAAO,CACH,6BACI,SAAS,EAAC,6DAA6D,EACvE,OAAO,EAAE,kBAAkB;QAE3B,oBAAC,kBAAkB,IAAC,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAC,KAAK;YAC1F,oBAAC,MAAM,IAAC,SAAS,EAAC,gBAAgB,EAAC,WAAW,EAAE,iBAAiB;gBAC7D,kCAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,CAAC,CAAQ,CAC7D,CACQ,CACnB,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ILegacyInsightMenuItemProps {
|
|
3
|
-
bubbleId: string;
|
|
4
|
-
bubbleMessage?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
title: string;
|
|
8
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const LegacyInsightMenuItem: React.FC<ILegacyInsightMenuItemProps>;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=LegacyInsightMenuItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyInsightMenuItem.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,2BAA2B;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CAC3C;AAID,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAmCvE,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// (C) 2019-2022 GoodData Corporation
|
|
2
|
-
import React from "react";
|
|
3
|
-
import cx from "classnames";
|
|
4
|
-
import { Bubble, BubbleHoverTrigger, Item } from "@gooddata/sdk-ui-kit";
|
|
5
|
-
const alignPoints = [{ align: "cl cr" }];
|
|
6
|
-
export const LegacyInsightMenuItem = ({ bubbleId, className, isDisabled, onClick, title, bubbleMessage = "", }) => {
|
|
7
|
-
const itemClasses = cx("gd-list-item", "gd-menu-item", className, { "is-disabled": isDisabled });
|
|
8
|
-
if (isDisabled) {
|
|
9
|
-
const button = React.createElement(Item, { className: itemClasses }, title);
|
|
10
|
-
if (bubbleMessage) {
|
|
11
|
-
return (React.createElement(BubbleHoverTrigger, { className: "s-gd-bubble-trigger-options-menu-item" },
|
|
12
|
-
button,
|
|
13
|
-
React.createElement(Bubble, { className: `bubble-primary bubble-primary-${bubbleId} s-bubble-primary-${bubbleId}`, alignPoints: alignPoints }, bubbleMessage)));
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return button;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return (React.createElement(Item, { className: itemClasses, onClick: onClick }, title));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=LegacyInsightMenuItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyInsightMenuItem.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/LegacyInsightMenuItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAe,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAWrF,MAAM,WAAW,GAAkB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAA0C,CAAC,EACzE,QAAQ,EACR,SAAS,EACT,UAAU,EACV,OAAO,EACP,KAAK,EACL,aAAa,GAAG,EAAE,GACrB,EAAE,EAAE;IACD,MAAM,WAAW,GAAG,EAAE,CAAC,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC,CAAC;IAEjG,IAAI,UAAU,EAAE,CAAC;QACb,MAAM,MAAM,GAAG,oBAAC,IAAI,IAAC,SAAS,EAAE,WAAW,IAAG,KAAK,CAAQ,CAAC;QAE5D,IAAI,aAAa,EAAE,CAAC;YAChB,OAAO,CACH,oBAAC,kBAAkB,IAAC,SAAS,EAAC,uCAAuC;gBAChE,MAAM;gBACP,oBAAC,MAAM,IACH,SAAS,EAAE,iCAAiC,QAAQ,qBAAqB,QAAQ,EAAE,EACnF,WAAW,EAAE,WAAW,IAEvB,aAAa,CACT,CACQ,CACxB,CAAC;QACN,CAAC;aAAM,CAAC;YACJ,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;SAAM,CAAC;QACJ,OAAO,CACH,oBAAC,IAAI,IAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,IACzC,KAAK,CACH,CACV,CAAC;IACN,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAM5D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAoClE,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// (C) 2019-2022 GoodData Corporation
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { objRefToString, widgetRef } from "@gooddata/sdk-model";
|
|
4
|
-
import { Bubble, ItemsWrapper } from "@gooddata/sdk-ui-kit";
|
|
5
|
-
import { stringUtils } from "@gooddata/util";
|
|
6
|
-
import { LegacyInsightMenuItem } from "./LegacyInsightMenuItem.js";
|
|
7
|
-
import { DOWNLOADER_ID } from "../../../../../_staging/fileUtils/downloadFile.js";
|
|
8
|
-
const alignPoints = [{ align: "bc tr", offset: { x: 2, y: 0 } }];
|
|
9
|
-
const ignoredOutsideClickClasses = [`#${DOWNLOADER_ID}`];
|
|
10
|
-
export const LegacyInsightMenu = ({ widget, items, onClose }) => {
|
|
11
|
-
const widgetRefValue = widgetRef(widget);
|
|
12
|
-
const exportWidgetRefAsString = objRefToString(widgetRefValue);
|
|
13
|
-
return (React.createElement(Bubble, { alignTo: `.s-dash-item-action-options-${stringUtils.simplifyText(exportWidgetRefAsString)}`, alignPoints: alignPoints, className: "bubble-light options-menu-bubble s-options-menu-bubble", closeOnOutsideClick: true,
|
|
14
|
-
// we need to ignore the "clicks" on the hidden downloader link to prevent the menu from closing
|
|
15
|
-
// when the download starts (if the user opened it again before the download was ready)
|
|
16
|
-
ignoreClicksOnByClass: ignoredOutsideClickClasses, onClose: onClose },
|
|
17
|
-
React.createElement(ItemsWrapper, { smallItemsSpacing: true }, items.map((item) => {
|
|
18
|
-
// legacy menu does not support separators
|
|
19
|
-
if (item.type !== "button") {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
return (React.createElement(LegacyInsightMenuItem, { key: item.itemId, bubbleId: item.itemId, bubbleMessage: item.tooltip, className: item.className, isDisabled: item.disabled, title: item.itemName, onClick: item.onClick }));
|
|
23
|
-
}))));
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/LegacyInsightMenu/index.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAe,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAGlF,MAAM,WAAW,GAAkB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAEhF,MAAM,0BAA0B,GAAG,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,iBAAiB,GAAyC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAClG,MAAM,cAAc,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,uBAAuB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;IAE/D,OAAO,CACH,oBAAC,MAAM,IACH,OAAO,EAAE,+BAA+B,WAAW,CAAC,YAAY,CAAC,uBAAuB,CAAC,EAAE,EAC3F,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,wDAAwD,EAClE,mBAAmB;QACnB,gGAAgG;QAChG,uFAAuF;QACvF,qBAAqB,EAAE,0BAA0B,EACjD,OAAO,EAAE,OAAO;QAEhB,oBAAC,YAAY,IAAC,iBAAiB,UAC1B,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,0CAA0C;YAC1C,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACzB,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,OAAO,CACH,oBAAC,qBAAqB,IAClB,GAAG,EAAE,IAAI,CAAC,MAAM,EAChB,QAAQ,EAAE,IAAI,CAAC,MAAM,EACrB,aAAa,EAAE,IAAI,CAAC,OAAO,EAC3B,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,QAAQ,EACzB,KAAK,EAAE,IAAI,CAAC,QAAQ,EACpB,OAAO,EAAE,IAAI,CAAC,OAAO,GACvB,CACL,CAAC;QACN,CAAC,CAAC,CACS,CACV,CACZ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IntlShape } from "react-intl";
|
|
2
|
-
import { IInsightMenuItem } from "../types.js";
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare function getDefaultLegacyInsightMenuItems(intl: IntlShape, config: {
|
|
7
|
-
exportXLSXDisabled: boolean;
|
|
8
|
-
exportCSVDisabled: boolean;
|
|
9
|
-
onExportXLSX: () => void;
|
|
10
|
-
onExportCSV: () => void;
|
|
11
|
-
isDataError: boolean;
|
|
12
|
-
}): IInsightMenuItem[];
|
|
13
|
-
//# sourceMappingURL=getDefaultLegacyInsightMenuItems.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultLegacyInsightMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/getDefaultLegacyInsightMenuItems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,wBAAgB,gCAAgC,CAC5C,IAAI,EAAE,SAAS,EACf,MAAM,EAAE;IACJ,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;CACxB,GACF,gBAAgB,EAAE,CA2BpB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
*/
|
|
4
|
-
export function getDefaultLegacyInsightMenuItems(intl, config) {
|
|
5
|
-
const { exportCSVDisabled, exportXLSXDisabled, onExportCSV, onExportXLSX, isDataError } = config;
|
|
6
|
-
const tooltip = isDataError
|
|
7
|
-
? intl.formatMessage({ id: "options.menu.unsupported.error" })
|
|
8
|
-
: intl.formatMessage({ id: "options.menu.unsupported.loading" });
|
|
9
|
-
return [
|
|
10
|
-
{
|
|
11
|
-
type: "button",
|
|
12
|
-
itemId: "ExportXLSXBubble",
|
|
13
|
-
itemName: intl.formatMessage({ id: "options.menu.export.XLSX" }),
|
|
14
|
-
disabled: exportXLSXDisabled,
|
|
15
|
-
onClick: onExportXLSX,
|
|
16
|
-
tooltip,
|
|
17
|
-
className: "options-menu-export-xlsx s-options-menu-export-xlsx",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
type: "button",
|
|
21
|
-
itemId: "ExportCSVBubble",
|
|
22
|
-
itemName: intl.formatMessage({ id: "options.menu.export.CSV" }),
|
|
23
|
-
disabled: exportCSVDisabled,
|
|
24
|
-
onClick: onExportCSV,
|
|
25
|
-
tooltip,
|
|
26
|
-
className: "options-menu-export-csv s-options-menu-export-csv",
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=getDefaultLegacyInsightMenuItems.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultLegacyInsightMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/getDefaultLegacyInsightMenuItems.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAC5C,IAAe,EACf,MAMC;IAED,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEjG,MAAM,OAAO,GAAG,WAAW;QACvB,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,gCAAgC,EAAE,CAAC;QAC9D,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,kCAAkC,EAAE,CAAC,CAAC;IAErE,OAAO;QACH;YACI,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,kBAAkB;YAC1B,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,0BAA0B,EAAE,CAAC;YAChE,QAAQ,EAAE,kBAAkB;YAC5B,OAAO,EAAE,YAAY;YACrB,OAAO;YACP,SAAS,EAAE,qDAAqD;SACnE;QACD;YACI,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,iBAAiB;YACzB,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,yBAAyB,EAAE,CAAC;YAC/D,QAAQ,EAAE,iBAAiB;YAC3B,OAAO,EAAE,WAAW;YACpB,OAAO;YACP,SAAS,EAAE,mDAAmD;SACjE;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { LegacyDashboardInsightMenu } from "./LegacyDashboardInsightMenu.js";
|
|
2
|
-
export { LegacyDashboardInsightMenuButton } from "./LegacyDashboardInsightMenuButton.js";
|
|
3
|
-
export { getDefaultLegacyInsightMenuItems } from "./getDefaultLegacyInsightMenuItems.js";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
package/esm/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// (C) 2021 GoodData Corporation
|
|
2
|
-
export { LegacyDashboardInsightMenu } from "./LegacyDashboardInsightMenu.js";
|
|
3
|
-
export { LegacyDashboardInsightMenuButton } from "./LegacyDashboardInsightMenuButton.js";
|
|
4
|
-
export { getDefaultLegacyInsightMenuItems } from "./getDefaultLegacyInsightMenuItems.js";
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/LegacyDefaultDashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC"}
|