@gooddata/sdk-ui-dashboard 10.12.0-alpha.2 → 10.12.0-alpha.21
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 +148 -8
- 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/{presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.d.ts → _staging/automation/index.d.ts} +2 -4
- package/esm/_staging/automation/index.d.ts.map +1 -0
- package/esm/{presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.js → _staging/automation/index.js} +9 -33
- package/esm/_staging/automation/index.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/insightReferences.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/insightReferences.js +32 -8
- package/esm/model/commandHandlers/dashboard/common/insightReferences.js.map +1 -1
- package/esm/model/commandHandlers/render/renderingWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/render/renderingWorker.js +5 -0
- package/esm/model/commandHandlers/render/renderingWorker.js.map +1 -1
- package/esm/model/events/userInteraction.d.ts +5 -1
- package/esm/model/events/userInteraction.d.ts.map +1 -1
- package/esm/model/events/userInteraction.js.map +1 -1
- package/esm/model/react/index.d.ts +8 -1
- package/esm/model/react/index.d.ts.map +1 -1
- package/esm/model/react/index.js +5 -1
- package/esm/model/react/index.js.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +41 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.js +64 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.js.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts +24 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.js +35 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.js.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts +31 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js +83 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts +20 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.js +76 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.js.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts +20 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.js +17 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.js.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.d.ts +21 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.d.ts.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.js +72 -0
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.js.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForDashboardScheduledExport.d.ts +26 -0
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForDashboardScheduledExport.d.ts.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForDashboardScheduledExport.js +45 -0
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForDashboardScheduledExport.js.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts +35 -0
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts.map +1 -0
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.js +69 -0
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.js.map +1 -0
- package/esm/model/react/useDashboardUserInteraction.d.ts +2 -1
- package/esm/model/react/useDashboardUserInteraction.d.ts.map +1 -1
- package/esm/model/react/useDashboardUserInteraction.js +5 -1
- package/esm/model/react/useDashboardUserInteraction.js.map +1 -1
- package/esm/{presentation/widget/common → model/react}/useWidgetFilters.d.ts +2 -1
- package/esm/model/react/useWidgetFilters.d.ts.map +1 -0
- package/esm/{presentation/widget/common → model/react}/useWidgetFilters.js +5 -2
- package/esm/model/react/useWidgetFilters.js.map +1 -0
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +2 -0
- package/esm/model/store/dashboardStore.js.map +1 -1
- package/esm/model/store/drill/drillSelectors.d.ts +4 -0
- package/esm/model/store/drill/drillSelectors.d.ts.map +1 -1
- package/esm/model/store/drill/drillSelectors.js +4 -0
- package/esm/model/store/drill/drillSelectors.js.map +1 -1
- package/esm/model/store/executed/executedReducers.d.ts +9 -0
- package/esm/model/store/executed/executedReducers.d.ts.map +1 -0
- package/esm/model/store/executed/executedReducers.js +11 -0
- package/esm/model/store/executed/executedReducers.js.map +1 -0
- package/esm/model/store/executed/executedSelectors.d.ts +11 -0
- package/esm/model/store/executed/executedSelectors.d.ts.map +1 -0
- package/esm/model/store/executed/executedSelectors.js +12 -0
- package/esm/model/store/executed/executedSelectors.js.map +1 -0
- package/esm/model/store/executed/executedState.d.ts +8 -0
- package/esm/model/store/executed/executedState.d.ts.map +1 -0
- package/esm/model/store/executed/executedState.js +3 -0
- package/esm/model/store/executed/executedState.js.map +1 -0
- package/esm/model/store/executed/index.d.ts +6 -0
- package/esm/model/store/executed/index.d.ts.map +1 -0
- package/esm/model/store/executed/index.js +12 -0
- package/esm/model/store/executed/index.js.map +1 -0
- package/esm/model/store/index.d.ts +3 -1
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +2 -1
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/types.d.ts +2 -0
- package/esm/model/store/types.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +2 -2
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js +19 -4
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +1 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +5 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.d.ts +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.js +2 -2
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +67 -81
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.d.ts +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +14 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js +46 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +16 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js +31 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +30 -9
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +90 -63
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +23 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js +30 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +3 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +3 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts +3 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.js +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.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/types.d.ts +71 -44
- package/esm/presentation/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
- package/esm/presentation/widget/common/index.d.ts +0 -1
- package/esm/presentation/widget/common/index.d.ts.map +1 -1
- package/esm/presentation/widget/common/index.js +1 -2
- package/esm/presentation/widget/common/index.js.map +1 -1
- package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.d.ts.map +1 -1
- package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.js +2 -2
- package/esm/presentation/widget/common/useCustomWidgetExecutionDataView.js.map +1 -1
- package/esm/presentation/widget/common/useCustomWidgetInsightDataView.d.ts.map +1 -1
- package/esm/presentation/widget/common/useCustomWidgetInsightDataView.js +2 -2
- package/esm/presentation/widget/common/useCustomWidgetInsightDataView.js.map +1 -1
- package/esm/presentation/widget/common/useInsightWidgetDataView.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightWidgetDataView.js +2 -3
- package/esm/presentation/widget/common/useInsightWidgetDataView.js.map +1 -1
- package/esm/presentation/widget/index.d.ts +1 -1
- package/esm/presentation/widget/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.js +1 -1
- package/esm/presentation/widget/index.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +1 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +2 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +48 -38
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +48 -13
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightConfiguration.d.ts +2 -6
- package/esm/presentation/widget/insight/configuration/InsightConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightConfiguration.js +5 -4
- package/esm/presentation/widget/insight/configuration/InsightConfiguration.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js.map +1 -1
- package/esm/presentation/widget/insightMenu/types.d.ts +6 -0
- package/esm/presentation/widget/insightMenu/types.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/types.js +3 -1
- package/esm/presentation/widget/insightMenu/types.js.map +1 -1
- package/esm/presentation/widget/kpi/common/useKpiData.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/common/useKpiData.js +2 -3
- package/esm/presentation/widget/kpi/common/useKpiData.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.d.ts +16 -0
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.js +26 -0
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js +4 -4
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts +8 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +99 -3
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.d.ts +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.js +2 -2
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.js +4 -8
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.js +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.d.ts +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/useVisualizationSwitcherEditableInsightMenu.d.ts +6 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/useVisualizationSwitcherEditableInsightMenu.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/useVisualizationSwitcherEditableInsightMenu.js +33 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/useVisualizationSwitcherEditableInsightMenu.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/useExecutionProgress.d.ts +4 -0
- package/esm/presentation/widget/visualizationSwitcher/useExecutionProgress.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/useExecutionProgress.js +60 -0
- package/esm/presentation/widget/visualizationSwitcher/useExecutionProgress.js.map +1 -0
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +8 -40
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.d.ts +17 -0
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.d.ts.map +1 -0
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.js +52 -0
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.js.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js +21 -6
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts +12 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +59 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js.map +1 -0
- package/esm/sdk-ui-dashboard.d.ts +201 -66
- package/package.json +15 -15
- package/styles/css/insightConfiguration.css +1 -0
- package/styles/css/insightConfiguration.css.map +1 -1
- package/styles/css/main.css +77 -6
- package/styles/css/main.css.map +1 -1
- package/styles/css/visualizationSwitcherHeader.css +59 -0
- package/styles/css/visualizationSwitcherHeader.css.map +1 -0
- package/styles/css/visualizationSwitcherToolbar.css +1 -1
- package/styles/css/visualizationSwitcherWidget.css +22 -5
- package/styles/css/visualizationSwitcherWidget.css.map +1 -1
- package/styles/scss/insightConfiguration.scss +2 -1
- package/styles/scss/main.scss +1 -0
- package/styles/scss/visualizationSwitcherHeader.scss +61 -0
- package/styles/scss/visualizationSwitcherToolbar.scss +1 -1
- package/styles/scss/visualizationSwitcherWidget.scss +24 -5
- package/esm/model/react/useDashboardScheduledEmails.d.ts +0 -44
- package/esm/model/react/useDashboardScheduledEmails.d.ts.map +0 -1
- package/esm/model/react/useDashboardScheduledEmails.js +0 -194
- package/esm/model/react/useDashboardScheduledEmails.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.d.ts +0 -18
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.js +0 -66
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/Attachments.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.d.ts +0 -43
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js +0 -82
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.js.map +0 -1
- package/esm/presentation/widget/common/useWidgetFilters.d.ts.map +0 -1
- package/esm/presentation/widget/common/useWidgetFilters.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { useDashboardSelector, selectIsDashboardExecuted, useDashboardEventsContext, isDashboardFilterContextChanged, isDashboardCommandStarted, } from "../../../model/index.js";
|
|
4
|
+
export const useExecutionProgress = () => {
|
|
5
|
+
const isDashboardExecuted = useDashboardSelector(selectIsDashboardExecuted);
|
|
6
|
+
const [isReexecuting, setIsReexecuting] = useState(true); // execution running as default because it covers the initial render and mode switching
|
|
7
|
+
const [_executionsProgress, setExecutionsProgress] = useState({});
|
|
8
|
+
const { registerHandler, unregisterHandler } = useDashboardEventsContext();
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
const onActionTriggeringReexecution = {
|
|
11
|
+
eval: (evt) => {
|
|
12
|
+
return isDashboardFilterContextChanged(evt);
|
|
13
|
+
},
|
|
14
|
+
handler: () => {
|
|
15
|
+
setIsReexecuting(true);
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
const onRenderRequest = {
|
|
19
|
+
eval: (evt) => {
|
|
20
|
+
return (isDashboardCommandStarted(evt) &&
|
|
21
|
+
evt.payload.command.type === "GDC.DASH/CMD.RENDER.ASYNC.REQUEST");
|
|
22
|
+
},
|
|
23
|
+
handler: (evt) => {
|
|
24
|
+
setExecutionsProgress((prev) => ({
|
|
25
|
+
...prev,
|
|
26
|
+
[evt.payload.command.payload.id]: true,
|
|
27
|
+
}));
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
const onRenderResponse = {
|
|
31
|
+
eval: (evt) => {
|
|
32
|
+
return (isDashboardCommandStarted(evt) &&
|
|
33
|
+
evt.payload.command.type === "GDC.DASH/CMD.RENDER.ASYNC.RESOLVE");
|
|
34
|
+
},
|
|
35
|
+
handler: (evt) => {
|
|
36
|
+
setExecutionsProgress((prev) => {
|
|
37
|
+
const newProgress = {
|
|
38
|
+
...prev,
|
|
39
|
+
[evt.payload.command.payload.id]: false,
|
|
40
|
+
};
|
|
41
|
+
if (Object.values(newProgress).every((value) => !value)) {
|
|
42
|
+
setIsReexecuting(false);
|
|
43
|
+
}
|
|
44
|
+
return newProgress;
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
registerHandler(onActionTriggeringReexecution);
|
|
49
|
+
registerHandler(onRenderRequest);
|
|
50
|
+
registerHandler(onRenderResponse);
|
|
51
|
+
return () => {
|
|
52
|
+
unregisterHandler(onActionTriggeringReexecution);
|
|
53
|
+
unregisterHandler(onRenderRequest);
|
|
54
|
+
unregisterHandler(onRenderResponse);
|
|
55
|
+
};
|
|
56
|
+
}, [registerHandler, unregisterHandler]);
|
|
57
|
+
const showOthers = isDashboardExecuted && !isReexecuting;
|
|
58
|
+
return { showOthers };
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=useExecutionProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExecutionProgress.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/useExecutionProgress.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACH,oBAAoB,EACpB,yBAAyB,EAEzB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yB,CAAC,GAAG,CAAC;oBAC9B,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,KAAK,mCAAmC,CACnE,CAAC;YACN,CAAC;YACD,OAAO,EAAE,CAAC,GAAgD,EAAE,EAAE;gBAC1D,qBAAqB,CAAC,CAAC,IAAI,EAAE,EAAE;oBAC3B,MAAM,WAAW,GAAG;wBAChB,GAAG,IAAI;wBACP,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,KAAK;qBAC1C,CAAC;oBAEF,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;wBACtD,gBAAgB,CAAC,KAAK,CAAC,CAAC;oBAC5B,CAAC;oBACD,OAAO,WAAW,CAAC;gBACvB,CAAC,CAAC,CAAC;YACP,CAAC;SACJ,CAAC;QAEF,eAAe,CAAC,6BAA6B,CAAC,CAAC;QAC/C,eAAe,CAAC,eAAe,CAAC,CAAC;QACjC,eAAe,CAAC,gBAAgB,CAAC,CAAC;QAElC,OAAO,GAAG,EAAE;YACR,iBAAiB,CAAC,6BAA6B,CAAC,CAAC;YACjD,iBAAiB,CAAC,eAAe,CAAC,CAAC;YACnC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;QACxC,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEzC,MAAM,UAAU,GAAG,mBAAmB,IAAI,CAAC,aAAa,CAAC;IACzD,OAAO,EAAE,UAAU,EAAE,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAwBpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAGjE,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,CAIxG,CAAC"}
|
|
@@ -3,8 +3,7 @@ import React, { useMemo, useCallback } from "react";
|
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { widgetTitle, insightVisualizationType } from "@gooddata/sdk-model";
|
|
6
|
-
import {
|
|
7
|
-
import { useDashboardSelector, selectSettings, isCustomWidget, useDashboardScheduledEmails, } from "../../../../model/index.js";
|
|
6
|
+
import { useDashboardSelector, selectSettings, useDashboardScheduledEmails, } from "../../../../model/index.js";
|
|
8
7
|
import { DashboardItem, DashboardItemHeadline, DashboardItemVisualization, getVisTypeCssClass, } from "../../../presentationComponents/index.js";
|
|
9
8
|
import { DashboardInsight } from "../../insight/index.js";
|
|
10
9
|
import { useInsightExport } from "../../common/index.js";
|
|
@@ -12,6 +11,7 @@ import { useDashboardComponentsContext } from "../../../dashboardContexts/index.
|
|
|
12
11
|
import { InsightWidgetDescriptionTrigger } from "../../description/InsightWidgetDescriptionTrigger.js";
|
|
13
12
|
import { useInsightMenu } from "./useInsightMenu.js";
|
|
14
13
|
import { DashboardWidgetInsightGuard } from "./DashboardWidgetInsightGuard.js";
|
|
14
|
+
import { useAlertingAndScheduling } from "./useAlertingAndScheduling.js";
|
|
15
15
|
export const DefaultDashboardInsightWidget = (props) => {
|
|
16
16
|
return React.createElement(DashboardWidgetInsightGuard, { ...props, Component: DefaultDashboardInsightWidgetCore });
|
|
17
17
|
};
|
|
@@ -21,7 +21,7 @@ export const DefaultDashboardInsightWidget = (props) => {
|
|
|
21
21
|
const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, onExportReady, onLoadingChanged, dashboardItemClasses }) => {
|
|
22
22
|
const intl = useIntl();
|
|
23
23
|
const settings = useDashboardSelector(selectSettings);
|
|
24
|
-
const {
|
|
24
|
+
const { isScheduledEmailingVisible, isScheduledManagementEmailingVisible, numberOfAvailableDestinations, onScheduleEmailingOpen, onScheduleEmailingManagementOpen, } = useDashboardScheduledEmails();
|
|
25
25
|
const visType = insightVisualizationType(insight);
|
|
26
26
|
const { ref: widgetRef } = widget;
|
|
27
27
|
const { exportCSVEnabled, exportXLSXEnabled, onExportCSV, onExportXLSX } = useInsightExport({
|
|
@@ -35,43 +35,11 @@ const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, o
|
|
|
35
35
|
const onScheduleManagementExport = useCallback(() => {
|
|
36
36
|
onScheduleEmailingManagementOpen(widget);
|
|
37
37
|
}, [onScheduleEmailingManagementOpen, widget]);
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const isAlertingEnabled = settings.enableAlerting === true;
|
|
44
|
-
const isInsightTypeSupportedForAlerting = isInsightSupportedForAlerts(insight);
|
|
45
|
-
const isInsightEnabledForAlerting = isInsightAlertingConfigurationEnabled(insight);
|
|
46
|
-
const isAlertingVisible = isAlertingEnabled && isStandardWidget && isInsightTypeSupportedForAlerting;
|
|
47
|
-
const alertingDisabled = hasNoDestinations || !isInsightEnabledForAlerting || widgetHasNoLocalIdentifier;
|
|
48
|
-
let alertingDisabledReason = undefined;
|
|
49
|
-
if (widgetHasNoLocalIdentifier) {
|
|
50
|
-
alertingDisabledReason = "oldWidget";
|
|
51
|
-
}
|
|
52
|
-
else if (hasNoDestinations) {
|
|
53
|
-
alertingDisabledReason = "noDestinations";
|
|
54
|
-
}
|
|
55
|
-
else if (!isInsightEnabledForAlerting) {
|
|
56
|
-
alertingDisabledReason = "disabledOnInsight";
|
|
57
|
-
}
|
|
58
|
-
const isInsightTypeSupportedForScheduling = isInsightSupportedForScheduledExports(insight);
|
|
59
|
-
const isInsightEnabledForScheduling = isInsightScheduledExportsConfigurationEnabled(insight);
|
|
60
|
-
const scheduleExportDisabled = !isInsightTypeSupportedForScheduling ||
|
|
61
|
-
!isStandardWidget ||
|
|
62
|
-
!isInsightEnabledForScheduling ||
|
|
63
|
-
widgetHasNoLocalIdentifier;
|
|
64
|
-
const scheduleExportManagementDisabled = !isStandardWidget;
|
|
65
|
-
let scheduleExportDisabledReason = undefined;
|
|
66
|
-
if (widgetHasNoLocalIdentifier) {
|
|
67
|
-
scheduleExportDisabledReason = "oldWidget";
|
|
68
|
-
}
|
|
69
|
-
else if (!isStandardWidget) {
|
|
70
|
-
scheduleExportDisabledReason = "incompatibleWidget";
|
|
71
|
-
}
|
|
72
|
-
else if (!isInsightEnabledForScheduling || !isInsightTypeSupportedForScheduling) {
|
|
73
|
-
scheduleExportDisabledReason = "disabledOnInsight";
|
|
74
|
-
}
|
|
38
|
+
const { isAlertingVisible, alertingDisabled, alertingDisabledReason, scheduleExportDisabled, scheduleExportManagementDisabled, scheduleExportDisabledReason, } = useAlertingAndScheduling({
|
|
39
|
+
widget,
|
|
40
|
+
insight,
|
|
41
|
+
numberOfAvailableDestinations,
|
|
42
|
+
});
|
|
75
43
|
///
|
|
76
44
|
const { closeMenu, isMenuOpen, menuItems, openMenu } = useInsightMenu({
|
|
77
45
|
insight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardInsightWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAY,WAAW,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardInsightWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAY,WAAW,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGtF,OAAO,EACH,oBAAoB,EACpB,cAAc,EACd,2BAA2B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,aAAa,EACb,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,GACrB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AAEvG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,CAAC,MAAM,6BAA6B,GAAmE,CACzG,KAAK,EACP,EAAE;IACA,OAAO,oBAAC,2BAA2B,OAAK,KAAK,EAAE,SAAS,EAAE,iCAAiC,GAAI,CAAC;AACpG,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,iCAAiC,GAEnC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,E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SchedulingDisabledReason } from "../../insightMenu/index.js";
|
|
3
|
+
type UseAlertingAndSchedulingConfig = {
|
|
4
|
+
insight: IInsight;
|
|
5
|
+
widget: IInsightWidget;
|
|
6
|
+
numberOfAvailableDestinations: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const useAlertingAndScheduling: ({ widget, insight, numberOfAvailableDestinations, }: UseAlertingAndSchedulingConfig) => {
|
|
9
|
+
isAlertingVisible: boolean;
|
|
10
|
+
alertingDisabled: boolean;
|
|
11
|
+
alertingDisabledReason?: AlertingDisabledReason | undefined;
|
|
12
|
+
scheduleExportDisabled: boolean;
|
|
13
|
+
scheduleExportManagementDisabled: boolean;
|
|
14
|
+
scheduleExportDisabledReason?: SchedulingDisabledReason | undefined;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=useAlertingAndScheduling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlertingAndScheduling.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ9F,KAAK,8BAA8B,GAAG;IAClC,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,6BAA6B,EAAE,MAAM,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,wBAAwB,wDAIlC,8BAA8B;uBACV,OAAO;sBACR,OAAO;;4BAED,OAAO;sCACG,OAAO;;CAmD5C,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import { useDashboardSelector, selectSettings, isCustomWidget } from "../../../../model/index.js";
|
|
3
|
+
import { isInsightAlertingConfigurationEnabled, isInsightScheduledExportsConfigurationEnabled, isInsightSupportedForAlerts, isInsightSupportedForScheduledExports, } from "@gooddata/sdk-ui-ext";
|
|
4
|
+
export const useAlertingAndScheduling = ({ widget, insight, numberOfAvailableDestinations, }) => {
|
|
5
|
+
const settings = useDashboardSelector(selectSettings);
|
|
6
|
+
const isStandardWidget = !isCustomWidget(widget);
|
|
7
|
+
const hasNoDestinations = numberOfAvailableDestinations === 0;
|
|
8
|
+
//NOTE: Check if widget has localIdentifier, if not that is probably widget from old dashboard
|
|
9
|
+
// and we should not allow to schedule export/alert because we need localIdentifier to identify the widget
|
|
10
|
+
const widgetHasNoLocalIdentifier = !widget.localIdentifier;
|
|
11
|
+
const isAlertingEnabled = settings.enableAlerting === true;
|
|
12
|
+
const isInsightTypeSupportedForAlerting = isInsightSupportedForAlerts(insight);
|
|
13
|
+
const isInsightEnabledForAlerting = isInsightAlertingConfigurationEnabled(insight);
|
|
14
|
+
const isAlertingVisible = isAlertingEnabled && isStandardWidget && isInsightTypeSupportedForAlerting;
|
|
15
|
+
const alertingDisabled = hasNoDestinations || !isInsightEnabledForAlerting || widgetHasNoLocalIdentifier;
|
|
16
|
+
let alertingDisabledReason = undefined;
|
|
17
|
+
if (widgetHasNoLocalIdentifier) {
|
|
18
|
+
alertingDisabledReason = "oldWidget";
|
|
19
|
+
}
|
|
20
|
+
else if (hasNoDestinations) {
|
|
21
|
+
alertingDisabledReason = "noDestinations";
|
|
22
|
+
}
|
|
23
|
+
else if (!isInsightEnabledForAlerting) {
|
|
24
|
+
alertingDisabledReason = "disabledOnInsight";
|
|
25
|
+
}
|
|
26
|
+
const isInsightTypeSupportedForScheduling = isInsightSupportedForScheduledExports(insight);
|
|
27
|
+
const isInsightEnabledForScheduling = isInsightScheduledExportsConfigurationEnabled(insight);
|
|
28
|
+
const scheduleExportDisabled = !isInsightTypeSupportedForScheduling ||
|
|
29
|
+
!isStandardWidget ||
|
|
30
|
+
!isInsightEnabledForScheduling ||
|
|
31
|
+
widgetHasNoLocalIdentifier;
|
|
32
|
+
const scheduleExportManagementDisabled = !isStandardWidget;
|
|
33
|
+
let scheduleExportDisabledReason = undefined;
|
|
34
|
+
if (widgetHasNoLocalIdentifier) {
|
|
35
|
+
scheduleExportDisabledReason = "oldWidget";
|
|
36
|
+
}
|
|
37
|
+
else if (!isStandardWidget) {
|
|
38
|
+
scheduleExportDisabledReason = "incompatibleWidget";
|
|
39
|
+
}
|
|
40
|
+
else if (!isInsightEnabledForScheduling || !isInsightTypeSupportedForScheduling) {
|
|
41
|
+
scheduleExportDisabledReason = "disabledOnInsight";
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
isAlertingVisible,
|
|
45
|
+
alertingDisabled,
|
|
46
|
+
alertingDisabledReason,
|
|
47
|
+
scheduleExportDisabled,
|
|
48
|
+
scheduleExportManagementDisabled,
|
|
49
|
+
scheduleExportDisabledReason,
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=useAlertingAndScheduling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlertingAndScheduling.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAGhC,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAElG,OAAO,EACH,qCAAqC,EACrC,6CAA6C,EAC7C,2BAA2B,EAC3B,qCAAqC,GACxC,MAAM,sBAAsB,CAAC;AAQ9B,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACrC,MAAM,EACN,OAAO,EACP,6BAA6B,GACA,EAO/B,EAAE;IACA,MAAM,QAAQ,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC;IAEtD,MAAM,gBAAgB,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD,MAAM,iBAAiB,GAAG,6BAA6B,KAAK,CAAC,CAAC;IAE9D,8FAA8F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F,4BAA4B,GAAG,mBAAmB,CAAC;IACvD,CAAC;IAED,OAAO;QACH,iBAAiB;QACjB,gBAAgB;QAChB,sBAAsB;QACtB,sBAAsB;QACtB,gCAAgC;QAChC,4BAA4B;KAC/B,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableDashboardVisualizationSwitcherWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EditableDashboardVisualizationSwitcherWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAuB9D,OAAO,EAAE,iDAAiD,EAAE,MAAM,YAAY,CAAC;AAO/E;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,KAAK,CAAC,EAAE,CAC/D,iDAAiD,CAgIpD,CAAC"}
|
|
@@ -6,7 +6,7 @@ import cx from "classnames";
|
|
|
6
6
|
import { widgetRef } from "@gooddata/sdk-model";
|
|
7
7
|
import { ConfirmDialog, OverlayController, OverlayControllerProvider } from "@gooddata/sdk-ui-kit";
|
|
8
8
|
import { DashboardItem, DashboardItemBase } from "../../../presentationComponents/index.js";
|
|
9
|
-
import { addVisualizationToSwitcherWidgetContent, updateVisualizationsFromSwitcherWidgetContent, eagerRemoveSectionItemByWidgetRef, selectIsDashboardSaving, useDashboardDispatch, useDashboardSelector, useWidgetSelection, } from "../../../../model/index.js";
|
|
9
|
+
import { addVisualizationToSwitcherWidgetContent, updateVisualizationsFromSwitcherWidgetContent, eagerRemoveSectionItemByWidgetRef, selectIsDashboardSaving, useDashboardDispatch, useDashboardSelector, useWidgetSelection, useDashboardCommandProcessing, enableInsightWidgetDateFilter, uiActions, dispatchAndWaitFor, } from "../../../../model/index.js";
|
|
10
10
|
import { DashboardVisualizationSwitcher } from "../../visualizationSwitcher/DashboardVisualizationSwitcher.js";
|
|
11
11
|
import { useDashboardComponentsContext } from "../../../dashboardContexts/index.js";
|
|
12
12
|
import { DASHBOARD_OVERLAYS_FILTER_Z_INDEX } from "../../../../presentation/constants/index.js";
|
|
@@ -17,25 +17,40 @@ const overlayController = OverlayController.getInstance(DASHBOARD_OVERLAYS_FILTE
|
|
|
17
17
|
export const EditableDashboardVisualizationSwitcherWidget = ({ widget, screen, dashboardItemClasses, onError, onExportReady, onLoadingChanged }) => {
|
|
18
18
|
const dispatch = useDashboardDispatch();
|
|
19
19
|
const intl = useIntl();
|
|
20
|
-
const { isSelectable, isSelected, onSelected, hasConfigPanelOpen } = useWidgetSelection(widgetRef(widget));
|
|
20
|
+
const { isSelectable, isSelected, onSelected, closeConfigPanel, hasConfigPanelOpen } = useWidgetSelection(widgetRef(widget));
|
|
21
21
|
const isSaving = useDashboardSelector(selectIsDashboardSaving);
|
|
22
22
|
const isEditable = !isSaving;
|
|
23
23
|
const [activeVisualizationId, setActiveVisualizationId] = useState(widget.visualizations[0]?.identifier);
|
|
24
24
|
const { VisualizationSwitcherToolbarComponentProvider } = useDashboardComponentsContext();
|
|
25
25
|
const [isConfirmDeleteDialogVisible, setIsConfirmDeleteDialogVisible] = useState(false);
|
|
26
26
|
const VisualizationSwitcherToolbarComponent = useMemo(() => VisualizationSwitcherToolbarComponentProvider(widget), [VisualizationSwitcherToolbarComponentProvider, widget]);
|
|
27
|
+
const { run: preselectDateDataset } = useDashboardCommandProcessing({
|
|
28
|
+
commandCreator: enableInsightWidgetDateFilter,
|
|
29
|
+
errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
|
|
30
|
+
successEvent: "GDC.DASH/EVT.INSIGHT_WIDGET.FILTER_SETTINGS_CHANGED",
|
|
31
|
+
onSuccess: (event) => {
|
|
32
|
+
dispatch(uiActions.setWidgetLoadingAdditionalDataStopped(event.payload.ref));
|
|
33
|
+
},
|
|
34
|
+
onError: (event) => {
|
|
35
|
+
dispatch(uiActions.setWidgetLoadingAdditionalDataStopped(event.payload.command.payload.ref));
|
|
36
|
+
},
|
|
37
|
+
});
|
|
27
38
|
const addVisualization = useCallback((insightWidget, insight, sizeInfo) => {
|
|
28
|
-
dispatch
|
|
29
|
-
|
|
39
|
+
dispatchAndWaitFor(dispatch, addVisualizationToSwitcherWidgetContent(widget.ref, insightWidget, insight, sizeInfo)).then(() => {
|
|
40
|
+
dispatch(uiActions.setWidgetDateDatasetAutoSelect(true));
|
|
41
|
+
dispatch(uiActions.setWidgetLoadingAdditionalDataStarted(insightWidget.ref));
|
|
42
|
+
preselectDateDataset(insightWidget.ref, "default");
|
|
43
|
+
});
|
|
44
|
+
}, [widget.ref, dispatch, preselectDateDataset]);
|
|
30
45
|
const changedVisualizations = useCallback((visualizations) => {
|
|
31
46
|
dispatch(updateVisualizationsFromSwitcherWidgetContent(widget.ref, visualizations));
|
|
32
|
-
}, [widget.ref]);
|
|
47
|
+
}, [widget.ref, dispatch]);
|
|
33
48
|
return (React.createElement(React.Fragment, null,
|
|
34
49
|
React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", "is-edit-mode", { "is-selected": isSelected }), screen: screen },
|
|
35
50
|
React.createElement(DashboardItemBase, { isSelectable: isSelectable, isSelected: isSelected, onSelected: onSelected, contentClassName: cx({ "is-editable": isEditable }), visualizationClassName: "gd-visualization-switcher-widget-wrapper", renderAfterContent: () => {
|
|
36
51
|
return (React.createElement(React.Fragment, null,
|
|
37
52
|
!!isSelected && (React.createElement("div", { className: "dash-item-action dash-item-action-lw-options", onClick: onSelected })),
|
|
38
|
-
!!hasConfigPanelOpen && (React.createElement(VisualizationSwitcherToolbarComponent, { widget: widget, onWidgetDelete: () => setIsConfirmDeleteDialogVisible(true), onVisualizationsChanged: changedVisualizations, onSelectedVisualizationChanged: setActiveVisualizationId, onVisualizationAdded: addVisualization }))));
|
|
53
|
+
!!hasConfigPanelOpen && (React.createElement(VisualizationSwitcherToolbarComponent, { widget: widget, onWidgetDelete: () => setIsConfirmDeleteDialogVisible(true), onVisualizationsChanged: changedVisualizations, onSelectedVisualizationChanged: setActiveVisualizationId, onVisualizationAdded: addVisualization, onClose: closeConfigPanel }))));
|
|
39
54
|
} }, ({ clientWidth, clientHeight }) => (React.createElement(DashboardVisualizationSwitcher, { widget: widget, clientHeight: clientHeight, clientWidth: clientWidth, activeVisualizationId: activeVisualizationId, onError: onError, onExportReady: onExportReady, onLoadingChanged: onLoadingChanged, screen: screen })))),
|
|
40
55
|
isConfirmDeleteDialogVisible ? (React.createElement(OverlayControllerProvider, { overlayController: overlayController },
|
|
41
56
|
React.createElement(ConfirmDialog, { className: "s-visualization-switcher-remove-confirm-dialog", onSubmit: () => dispatch(eagerRemoveSectionItemByWidgetRef(widget.ref)), onCancel: () => setIsConfirmDeleteDialogVisible(false), headline: intl.formatMessage({ id: "visualizationSwitcher.deleteDialog.header" }), submitButtonText: intl.formatMessage({ id: "delete" }), cancelButtonText: intl.formatMessage({ id: "cancel" }) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableDashboardVisualizationSwitcherWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,+BAA+B;AAE/B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAA4B,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEnG,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EACH,uCAAuC,EACvC,6CAA6C,EAC7C,iCAAiC,EACjC,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,8BAA8B,EAAE,MAAM,+DAA+D,CAAC;AAC/G,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAEhG,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,WAAW,CAAC,iCAAiC,CAAC,CAAC;AAE3F;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAErD,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACvF,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IACxC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,GAAG,kBAAkB,
|
|
1
|
+
{"version":3,"file":"EditableDashboardVisualizationSwitcherWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,+BAA+B;AAE/B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAA4B,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE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qB,EAC5C,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,GAChB,CACL,CACe,CACR;QACf,4BAA4B,CAAC,CAAC,CAAC,CAC5B,oBAAC,yBAAyB,IAAC,iBAAiB,EAAE,iBAAiB;YAC3D,oBAAC,aAAa,IACV,SAAS,EAAC,gDAAgD,EAC1D,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EACvE,QAAQ,EAAE,GAAG,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,EACtD,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,2CAA2C,EAAE,CAAC,EACjF,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,EACtD,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;gBAEtD,oBAAC,gBAAgB,IAAC,EAAE,EAAC,4CAA4C,GAAG,CACxD,CACQ,CAC/B,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IInsightWidget, IVisualizationSwitcherWidget } from "@gooddata/sdk-model";
|
|
3
|
+
interface IVisualizationSwitcherNavigationHeaderProps {
|
|
4
|
+
clientWidth: number | undefined;
|
|
5
|
+
clientHeight: number | undefined;
|
|
6
|
+
activeVisualization: IInsightWidget;
|
|
7
|
+
widget: IVisualizationSwitcherWidget;
|
|
8
|
+
onActiveVisualizationChange: (visualizationId: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const VisualizationSwitcherNavigationHeader: React.FC<IVisualizationSwitcherNavigationHeaderProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=VisualizationSwitcherNavigationHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisualizationSwitcherNavigationHeader.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAA6B,MAAM,qBAAqB,CAAC;AAS9G,UAAU,2CAA2C;IACjD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,mBAAmB,EAAE,cAAc,CAAC;IACpC,MAAM,EAAE,4BAA4B,CAAC;IACrC,2BAA2B,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;CAClE;AAaD,eAAO,MAAM,qCAAqC,EAAE,KAAK,CAAC,EAAE,CAAC,2CAA2C,CA0EvG,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// (C) 2020-2024 GoodData Corporation
|
|
2
|
+
import React, { useCallback } from "react";
|
|
3
|
+
import { objRefToString, widgetRef } from "@gooddata/sdk-model";
|
|
4
|
+
import { DashboardItemHeadline } from "../../../presentationComponents/index.js";
|
|
5
|
+
import { ItemsWrapper, Overlay, ShortenedText } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import cx from "classnames";
|
|
7
|
+
import { stringUtils } from "@gooddata/util";
|
|
8
|
+
import { useDashboardUserInteraction } from "../../../../model/index.js";
|
|
9
|
+
const alignPoints = [
|
|
10
|
+
{
|
|
11
|
+
align: "bc tc",
|
|
12
|
+
offset: { x: 0, y: -9 },
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
align: "tc bc",
|
|
16
|
+
offset: { x: 0, y: 9 },
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
export const VisualizationSwitcherNavigationHeader = ({ widget, clientWidth, clientHeight, activeVisualization, onActiveVisualizationChange, }) => {
|
|
20
|
+
const userInteraction = useDashboardUserInteraction();
|
|
21
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
22
|
+
const widgetRefAsString = objRefToString(widgetRef(widget));
|
|
23
|
+
const alignTo = `gd-visualization-switcher-widget-header-${stringUtils.simplifyText(widgetRefAsString)}`;
|
|
24
|
+
const toggleDropdown = () => {
|
|
25
|
+
setIsOpen(!isOpen);
|
|
26
|
+
};
|
|
27
|
+
const onSelect = useCallback((item) => {
|
|
28
|
+
onActiveVisualizationChange(item.identifier);
|
|
29
|
+
setIsOpen(false);
|
|
30
|
+
}, [onActiveVisualizationChange]);
|
|
31
|
+
return (React.createElement(React.Fragment, null,
|
|
32
|
+
React.createElement(VisualizationSwitcherNavigationHeaderButton, { className: alignTo, title: activeVisualization.title, isOpen: isOpen, toggleDropdown: toggleDropdown, clientHeight: clientHeight }),
|
|
33
|
+
isOpen ? (React.createElement(Overlay, { key: "VisualizationSwitcherNavigationHeader", alignTo: `.${alignTo}`, alignPoints: alignPoints, className: "s-visualization-switcher-widget-header", closeOnMouseDrag: true, closeOnOutsideClick: true, closeOnParentScroll: true, onClose: toggleDropdown },
|
|
34
|
+
React.createElement(ItemsWrapper, { className: "gd-visualization-switcher-widget-header-list" },
|
|
35
|
+
React.createElement("div", { className: "gd-visualization-switcher-widget-header-list-container" }, widget.visualizations.map((visualization) => {
|
|
36
|
+
return (React.createElement(VisualizationSwitcherNavigationHeaderItem, { key: visualization.identifier, onSelect: (item) => {
|
|
37
|
+
onSelect(item);
|
|
38
|
+
userInteraction.visualizationSwitcherInteraction("visualizationSwitcherChanged");
|
|
39
|
+
}, item: visualization, isSelected: visualization.identifier === activeVisualization.identifier, maxWidth: clientWidth ?? 200 }));
|
|
40
|
+
}))))) : null));
|
|
41
|
+
};
|
|
42
|
+
const VisualizationSwitcherNavigationHeaderButton = ({ isOpen, toggleDropdown, title, className, clientHeight }) => {
|
|
43
|
+
const classNames = cx("gd-visualization-switcher-widget-header", className, {
|
|
44
|
+
"is-open": isOpen,
|
|
45
|
+
});
|
|
46
|
+
return (React.createElement("div", { className: classNames, onClick: toggleDropdown },
|
|
47
|
+
React.createElement(DashboardItemHeadline, { clientHeight: clientHeight, title: title })));
|
|
48
|
+
};
|
|
49
|
+
const VisualizationSwitcherNavigationHeaderItem = ({ item, isSelected, onSelect, maxWidth, }) => {
|
|
50
|
+
const classNames = cx("gd-visualization-switcher-widget-header-item", "gd-list-item", {
|
|
51
|
+
"is-selected": isSelected,
|
|
52
|
+
});
|
|
53
|
+
return (React.createElement("div", { className: classNames, onClick: () => {
|
|
54
|
+
onSelect(item);
|
|
55
|
+
} },
|
|
56
|
+
React.createElement("div", { className: "gd-visualization-switcher-widget-header-item-content", style: { maxWidth } },
|
|
57
|
+
React.createElement(ShortenedText, { className: "title" }, item.title))));
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=VisualizationSwitcherNavigationHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisualizationSwitcherNavigationHeader.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAgD,cAAc,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE9G,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAUzE,MAAM,WAAW,GAAG;IAChB;QACI,KAAK,EAA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