@gooddata/sdk-ui-dashboard 10.11.0-alpha.9 → 10.12.0-alpha.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 +62 -160
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/dashboard/fluidLayout/index.d.ts +2 -2
- package/esm/_staging/dashboard/fluidLayout/index.d.ts.map +1 -1
- package/esm/_staging/dashboard/fluidLayout/index.js +1 -1
- package/esm/_staging/dashboard/fluidLayout/index.js.map +1 -1
- package/esm/_staging/drills/drillingUtils.d.ts +2 -1
- package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
- package/esm/_staging/drills/drillingUtils.js.map +1 -1
- package/esm/index.d.ts +3 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -2
- package/esm/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts +4 -0
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +103 -0
- package/esm/model/commandHandlers/dashboard/common/filterViews.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +3 -18
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.js +8 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadFilterViews.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +7 -3
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.js +17 -20
- 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 +2 -3
- 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 +2 -3
- package/esm/model/commandHandlers/drill/drillToInsightHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +20 -3
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js.map +1 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +4 -0
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js +1 -3
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.js +27 -0
- package/esm/model/commandHandlers/widgets/addVisualizationToSwitcherWidgetHandler.js.map +1 -0
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js +1 -3
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js +8 -12
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/updateVisualizationsFromSwitcherWidgetHandler.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/updateVisualizationsFromSwitcherWidgetHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/updateVisualizationsFromSwitcherWidgetHandler.js +19 -0
- package/esm/model/commandHandlers/widgets/updateVisualizationsFromSwitcherWidgetHandler.js.map +1 -0
- package/esm/model/commandHandlers/widgets/validation/widgetValidations.d.ts +14 -1
- package/esm/model/commandHandlers/widgets/validation/widgetValidations.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/widgetValidations.js +24 -1
- package/esm/model/commandHandlers/widgets/validation/widgetValidations.js.map +1 -1
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/index.d.ts +33 -16
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +6 -5
- package/esm/model/commands/index.js.map +1 -1
- package/esm/model/commands/visualizationSwitcher.d.ts +77 -0
- package/esm/model/commands/visualizationSwitcher.d.ts.map +1 -0
- package/esm/model/commands/visualizationSwitcher.js +45 -0
- package/esm/model/commands/visualizationSwitcher.js.map +1 -0
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/base.d.ts.map +1 -1
- package/esm/model/events/base.js.map +1 -1
- package/esm/model/events/index.d.ts +38 -18
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js +7 -6
- package/esm/model/events/index.js.map +1 -1
- package/esm/model/events/visualizationSwitcher.d.ts +72 -0
- package/esm/model/events/visualizationSwitcher.d.ts.map +1 -0
- package/esm/model/events/visualizationSwitcher.js +45 -0
- package/esm/model/events/visualizationSwitcher.js.map +1 -0
- package/esm/model/headlessDashboard/index.d.ts +2 -1
- package/esm/model/headlessDashboard/index.d.ts.map +1 -1
- package/esm/model/headlessDashboard/index.js +1 -1
- package/esm/model/headlessDashboard/index.js.map +1 -1
- package/esm/model/index.d.ts +13 -9
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/queries/index.d.ts +21 -11
- package/esm/model/queries/index.d.ts.map +1 -1
- package/esm/model/queries/index.js +2 -2
- package/esm/model/queries/index.js.map +1 -1
- package/esm/model/react/index.d.ts +11 -6
- package/esm/model/react/index.d.ts.map +1 -1
- package/esm/model/react/index.js +1 -1
- package/esm/model/react/index.js.map +1 -1
- package/esm/model/react/useDashboardCommand.d.ts +2 -0
- package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
- package/esm/model/react/useDashboardCommandProcessing.d.ts +8 -0
- package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.d.ts.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.js +3 -2
- package/esm/model/react/useDashboardScheduledEmails.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +0 -12
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +1 -17
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducers.d.ts +4 -0
- package/esm/model/store/filterViews/filterViewsReducers.d.ts.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducers.js +5 -0
- package/esm/model/store/filterViews/filterViewsReducers.js.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts +4 -0
- package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducersSelectors.js +4 -0
- package/esm/model/store/filterViews/filterViewsReducersSelectors.js.map +1 -1
- package/esm/model/store/filterViews/filterViewsState.d.ts +1 -0
- package/esm/model/store/filterViews/filterViewsState.d.ts.map +1 -1
- package/esm/model/store/filterViews/filterViewsState.js +1 -1
- package/esm/model/store/filterViews/filterViewsState.js.map +1 -1
- package/esm/model/store/filterViews/index.d.ts +6 -2
- package/esm/model/store/filterViews/index.d.ts.map +1 -1
- package/esm/model/store/filterViews/index.js +1 -1
- package/esm/model/store/filterViews/index.js.map +1 -1
- package/esm/model/store/index.d.ts +36 -34
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +4 -8
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/layout/index.d.ts +8 -0
- package/esm/model/store/layout/index.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.d.ts +11 -1
- package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.js +27 -2
- package/esm/model/store/layout/layoutReducers.js.map +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +5 -2
- package/esm/model/store/layout/layoutSelectors.js.map +1 -1
- package/esm/model/store/permissions/permissionsSelectors.d.ts +12 -0
- package/esm/model/store/permissions/permissionsSelectors.d.ts.map +1 -1
- package/esm/model/store/permissions/permissionsSelectors.js +17 -1
- package/esm/model/store/permissions/permissionsSelectors.js.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +10 -10
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js.map +1 -1
- package/esm/plugins/index.d.ts +5 -3
- package/esm/plugins/index.d.ts.map +1 -1
- package/esm/plugins/index.js +0 -1
- package/esm/plugins/index.js.map +1 -1
- package/esm/presentation/alerting/index.d.ts +1 -1
- package/esm/presentation/alerting/index.d.ts.map +1 -1
- package/esm/presentation/cancelEditDialog/index.d.ts +1 -1
- package/esm/presentation/cancelEditDialog/index.d.ts.map +1 -1
- package/esm/presentation/cancelEditDialog/index.js +1 -1
- package/esm/presentation/cancelEditDialog/index.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +2 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +7 -2
- package/esm/presentation/dashboard/hooks/useDashboard.js.map +1 -1
- package/esm/presentation/dashboard/index.d.ts +1 -1
- package/esm/presentation/dashboard/index.d.ts.map +1 -1
- package/esm/presentation/dashboard/index.js +1 -1
- package/esm/presentation/dashboard/types.d.ts +13 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -0
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/types.d.ts +9 -1
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/index.d.ts +1 -1
- package/esm/presentation/deleteDialog/index.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/index.js +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.d.ts +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.js +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutSectionBorder/index.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.js +0 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.js +2 -4
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.js.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts +1 -2
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +4 -11
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js.map +1 -1
- package/esm/presentation/drill/index.d.ts +17 -9
- package/esm/presentation/drill/index.d.ts.map +1 -1
- package/esm/presentation/drill/index.js +1 -2
- package/esm/presentation/drill/index.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.js +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/AddFilterView.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js +8 -2
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.js +15 -9
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViewsList.js.map +1 -1
- package/esm/presentation/index.d.ts +2 -1
- package/esm/presentation/index.d.ts.map +1 -1
- package/esm/presentation/index.js +1 -1
- package/esm/presentation/index.js.map +1 -1
- package/esm/presentation/kpiDeleteDialog/index.d.ts +1 -1
- package/esm/presentation/kpiDeleteDialog/index.d.ts.map +1 -1
- package/esm/presentation/kpiDeleteDialog/index.js +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.d.ts +7 -5
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/index.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +65 -0
- package/esm/presentation/saveAs/index.d.ts +1 -1
- package/esm/presentation/saveAs/index.d.ts.map +1 -1
- package/esm/presentation/saveAs/index.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +7 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +2 -6
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts +6 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +14 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +17 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.d.ts +2 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.js +8 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/automationHelpers.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +3 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.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/shareDialog/index.d.ts +1 -1
- package/esm/presentation/shareDialog/index.d.ts.map +1 -1
- package/esm/presentation/shareDialog/index.js +1 -1
- package/esm/presentation/toolbar/DefaultDashboardToolbar/index.d.ts +4 -2
- package/esm/presentation/toolbar/DefaultDashboardToolbar/index.d.ts.map +1 -1
- package/esm/presentation/toolbar/DefaultDashboardToolbar/index.js +3 -3
- package/esm/presentation/toolbar/DefaultDashboardToolbar/index.js.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +12 -4
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
- package/esm/presentation/widget/common/InsightDropdown.d.ts +10 -0
- package/esm/presentation/widget/common/InsightDropdown.d.ts.map +1 -0
- package/esm/presentation/widget/{insight/configuration/DrillTargets → common}/InsightDropdown.js +5 -26
- package/esm/presentation/widget/common/InsightDropdown.js.map +1 -0
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts +5 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +4 -4
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.js +3 -3
- package/esm/presentation/widget/common/useInsightExport.js.map +1 -1
- package/esm/presentation/widget/description/index.d.ts +1 -1
- package/esm/presentation/widget/description/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.d.ts +2 -1
- package/esm/presentation/widget/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.js +0 -1
- package/esm/presentation/widget/index.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js +4 -14
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.js +3 -3
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/{InsightDropdown.d.ts → DrillingInsightDropdown.d.ts} +3 -3
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.js +28 -0
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +8 -6
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +4 -6
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.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 +7 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +4 -1
- 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 +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightCrossFiltering.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +4 -6
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js.map +1 -1
- package/esm/presentation/widget/insight/index.d.ts +1 -1
- package/esm/presentation/widget/insight/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightEditMenuBubble.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts +7 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +1 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +5 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.d.ts +4 -2
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.js.map +1 -1
- package/esm/presentation/widget/insightMenu/index.d.ts +1 -1
- package/esm/presentation/widget/insightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.d.ts +2 -1
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.js +2 -2
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/KpiAlerts/index.js.map +1 -1
- package/esm/presentation/widget/kpi/index.d.ts +1 -1
- package/esm/presentation/widget/kpi/index.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/index.js +1 -1
- package/esm/presentation/widget/richText/index.d.ts +1 -1
- package/esm/presentation/widget/richText/index.d.ts.map +1 -1
- package/esm/presentation/widget/types.d.ts +7 -6
- package/esm/presentation/widget/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js +24 -4
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/DefaultVisualizationSwitcherToolbar.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/DefaultVisualizationSwitcherToolbar.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/DefaultVisualizationSwitcherToolbar.js +10 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/DefaultVisualizationSwitcherToolbar.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/InsightPicker.d.ts +9 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/InsightPicker.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/InsightPicker.js +18 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/InsightPicker.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.d.ts +13 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.js +73 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarBottom.d.ts +13 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarBottom.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarBottom.js +9 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarBottom.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarTop.d.ts +13 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarTop.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarTop.js +66 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/ToolbarTop.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.d.ts +6 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.js +27 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationConfig.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.d.ts +13 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.js +36 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsPage.d.ts +12 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsPage.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsPage.js +39 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsPage.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.d.ts +18 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.js +3 -0
- package/esm/presentation/widget/visualizationSwitcher/configuration/types.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/index.d.ts +4 -1
- package/esm/presentation/widget/visualizationSwitcher/index.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/index.js +1 -0
- package/esm/presentation/widget/visualizationSwitcher/index.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts +10 -1
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +2 -2
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +7 -3
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +4 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js +2 -2
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js +32 -6
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.d.ts +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js +3 -3
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts +4 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/index.d.ts +1 -1
- package/esm/presentation/widget/widget/index.d.ts.map +1 -1
- package/esm/presentation/widgetDeleteDialog/index.d.ts +1 -1
- package/esm/presentation/widgetDeleteDialog/index.d.ts.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +243 -19
- package/esm/tools/index.d.ts +2 -1
- package/esm/tools/index.d.ts.map +1 -1
- package/esm/tools/index.js +1 -2
- package/esm/tools/index.js.map +1 -1
- package/package.json +16 -15
- package/styles/css/alerting.css +8 -0
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/main.css +149 -0
- package/styles/css/main.css.map +1 -1
- package/styles/css/visualizationSwitcherToolbar.css +147 -0
- package/styles/css/visualizationSwitcherToolbar.css.map +1 -0
- package/styles/scss/alerting.scss +8 -0
- package/styles/scss/main.scss +1 -0
- package/styles/scss/visualizationSwitcherToolbar.scss +163 -0
- package/esm/presentation/widget/insight/configuration/DrillTargets/InsightDropdown.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/InsightDropdown.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScheduledEmailManagementDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAQrD,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultScheduledEmailManagementDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAQrD,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC;AAYnE;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,oCAAoC,CA6GzF,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { FormattedMessage, defineMessage, useIntl } from "react-intl";
|
|
|
4
4
|
import { AddButton, Button, Dialog, Hyperlink, Typography } from "@gooddata/sdk-ui-kit";
|
|
5
5
|
import { ScheduledEmails } from "./components/ScheduledEmailsList.js";
|
|
6
6
|
import { DeleteScheduleConfirmDialog } from "./components/DeleteScheduleConfirmDialog.js";
|
|
7
|
-
import { selectCurrentUser, selectEntitlementMaxAutomations, selectEntitlementUnlimitedAutomations, useDashboardSelector, DEFAULT_MAX_AUTOMATIONS, } from "../../../model/index.js";
|
|
7
|
+
import { selectCurrentUser, selectEntitlementMaxAutomations, selectEntitlementUnlimitedAutomations, useDashboardSelector, DEFAULT_MAX_AUTOMATIONS, selectCanCreateAutomation, } from "../../../model/index.js";
|
|
8
8
|
import { messages } from "../../../locales.js";
|
|
9
9
|
import { isMobileView } from "../DefaultScheduledEmailDialog/utils/responsive.js";
|
|
10
10
|
/**
|
|
@@ -13,6 +13,7 @@ import { isMobileView } from "../DefaultScheduledEmailDialog/utils/responsive.js
|
|
|
13
13
|
export const ScheduledEmailManagementDialog = (props) => {
|
|
14
14
|
const { onAdd, onEdit, onDeleteSuccess: onDelete, onClose, onDeleteError, isLoadingScheduleData, automations, webhooks, emails, } = props;
|
|
15
15
|
const [scheduledEmailToDelete, setScheduledEmailToDelete] = useState(null);
|
|
16
|
+
const canCreateAutomation = useDashboardSelector(selectCanCreateAutomation);
|
|
16
17
|
const currentUser = useDashboardSelector(selectCurrentUser);
|
|
17
18
|
const maxAutomationsEntitlement = useDashboardSelector(selectEntitlementMaxAutomations);
|
|
18
19
|
const unlimitedAutomationsEntitlement = useDashboardSelector(selectEntitlementUnlimitedAutomations);
|
|
@@ -41,7 +42,7 @@ export const ScheduledEmailManagementDialog = (props) => {
|
|
|
41
42
|
React.createElement("div", { className: "gd-notifications-channels-content-header" },
|
|
42
43
|
React.createElement(Typography, { tagName: "h3" },
|
|
43
44
|
React.createElement(FormattedMessage, { id: messages.scheduleManagementListTitle.id })),
|
|
44
|
-
React.createElement(AddButton, { onClick: onAdd, isDisabled: isLoadingScheduleData || maxAutomationsReached, title: React.createElement(FormattedMessage, { id: messages.scheduleManagementCreate.id }), tooltip: maxAutomationsReached ? (React.createElement(FormattedMessage, { id: messages.scheduleManagementCreateTooMany.id })) : undefined })),
|
|
45
|
+
canCreateAutomation ? (React.createElement(AddButton, { onClick: onAdd, isDisabled: isLoadingScheduleData || maxAutomationsReached, title: React.createElement(FormattedMessage, { id: messages.scheduleManagementCreate.id }), tooltip: maxAutomationsReached ? (React.createElement(FormattedMessage, { id: messages.scheduleManagementCreateTooMany.id })) : undefined })) : null),
|
|
45
46
|
React.createElement(ScheduledEmails, { onDelete: handleScheduleDelete, onEdit: handleScheduleEdit, isLoading: isLoadingScheduleData, scheduledEmails: automations, currentUserEmail: currentUser?.email, noSchedulesMessageId: messages.scheduleManagementNoSchedules.id, webhooks: webhooks, emails: emails })),
|
|
46
47
|
React.createElement("div", { className: "gd-content-divider" }),
|
|
47
48
|
React.createElement("div", { className: "gd-buttons" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScheduledEmailManagementDialog.js","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGxF,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAG1F,OAAO,EACH,iBAAiB,EACjB,+BAA+B,EAC/B,qCAAqC,EACrC,oBAAoB,EACpB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"DefaultScheduledEmailManagementDialog.js","sourceRoot":"","sources":["../../../../src/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGxF,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAG1F,OAAO,EACH,iBAAiB,EACjB,+BAA+B,EAC/B,qCAAqC,EACrC,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,GAC5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAElF;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAmD,CAAC,KAAK,EAAE,EAAE;IACpG,MAAM,EACF,KAAK,EACL,MAAM,EACN,eAAe,EAAE,QAAQ,EACzB,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,QAAQ,EACR,MAAM,GACT,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,GAAG,QAAQ,CAChE,IAAI,CACP,CAAC;IACF,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAC5E,MAAM,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC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AAC,oCAAoC,EAC9C,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,GAC5C,CACA,CACD;QACR,sBAAsB,CAAC,CAAC,CAAC,CACtB,oBAAC,2BAA2B,IACxB,cAAc,EAAE,sBAAsB,EACtC,QAAQ,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAC/C,SAAS,EAAE,2BAA2B,EACtC,OAAO,EAAE,aAAa,GACxB,CACL,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -2,5 +2,5 @@ export { DefaultScheduledEmailDialog } from "./DefaultScheduledEmailDialog/index
|
|
|
2
2
|
export { DefaultScheduledEmailManagementDialog } from "./DefaultScheduledEmailManagementDialog/index.js";
|
|
3
3
|
export { ScheduledEmailDialog } from "./ScheduledEmailDialog.js";
|
|
4
4
|
export { ScheduledEmailManagementDialog } from "./ScheduledEmailManagementDialog.js";
|
|
5
|
-
export { CustomScheduledEmailDialogComponent, CustomScheduledEmailManagementDialogComponent, IScheduledEmailDialogProps, IScheduledEmailManagementDialogProps, IScheduledEmailDialogPropsContext, } from "./types.js";
|
|
5
|
+
export type { CustomScheduledEmailDialogComponent, CustomScheduledEmailManagementDialogComponent, IScheduledEmailDialogProps, IScheduledEmailManagementDialogProps, IScheduledEmailDialogPropsContext, } from "./types.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/scheduledEmail/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,qCAAqC,EAAE,MAAM,kDAAkD,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/scheduledEmail/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,qCAAqC,EAAE,MAAM,kDAAkD,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,YAAY,EACR,mCAAmC,EACnC,6CAA6C,EAC7C,0BAA0B,EAC1B,oCAAoC,EACpC,iCAAiC,GACpC,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DefaultShareDialog } from "./DefaultShareDialog.js";
|
|
2
|
-
export { CustomShareDialogComponent, IShareDialogProps, ISharingApplyPayload } from "./types.js";
|
|
2
|
+
export type { CustomShareDialogComponent, IShareDialogProps, ISharingApplyPayload } from "./types.js";
|
|
3
3
|
export { ShareDialog } from "./ShareDialog.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/shareDialog/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/shareDialog/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,YAAY,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { DefaultDashboardToolbar } from "./DefaultDashboardToolbar.js";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export type { IDefaultDashboardToolbarGroupProps } from "./DefaultDashboardToolbarGroup.js";
|
|
3
|
+
export { DefaultDashboardToolbarGroup } from "./DefaultDashboardToolbarGroup.js";
|
|
4
|
+
export type { IDefaultDashboardToolbarButtonProps } from "./DefaultDashboardToolbarButton.js";
|
|
5
|
+
export { DefaultDashboardToolbarButton } from "./DefaultDashboardToolbarButton.js";
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/toolbar/DefaultDashboardToolbar/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/toolbar/DefaultDashboardToolbar/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,YAAY,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,YAAY,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// (C) 2022 GoodData Corporation
|
|
1
|
+
// (C) 2022-2024 GoodData Corporation
|
|
2
2
|
export { DefaultDashboardToolbar } from "./DefaultDashboardToolbar.js";
|
|
3
|
-
export { DefaultDashboardToolbarGroup
|
|
4
|
-
export { DefaultDashboardToolbarButton
|
|
3
|
+
export { DefaultDashboardToolbarGroup } from "./DefaultDashboardToolbarGroup.js";
|
|
4
|
+
export { DefaultDashboardToolbarButton } from "./DefaultDashboardToolbarButton.js";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/toolbar/DefaultDashboardToolbar/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/toolbar/DefaultDashboardToolbar/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDefaultMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useDefaultMenuItems.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDefaultMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useDefaultMenuItems.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA2D9C;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,eAAe,EAAE,CAkOvD"}
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useMemo, useRef } from "react";
|
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { isProtectedDataError } from "@gooddata/sdk-backend-spi";
|
|
5
5
|
import { useToastMessage, useMediaQuery } from "@gooddata/sdk-ui-kit";
|
|
6
|
-
import { exportDashboardToPdf, selectCanCreateAnalyticalDashboard, selectCanExportPdf, selectEnableKPIDashboardExportPDF, selectEntitlementExportPdf, selectIsInEditMode, selectIsInViewMode, selectIsNewDashboard, selectIsReadOnly, selectIsSaveAsNewButtonHidden, selectLayoutHasAnalyticalWidgets, selectMenuButtonItemsVisibility, uiActions, useDashboardCommandProcessing, useDashboardDispatch, useDashboardScheduledEmails, useDashboardSelector, useDashboardAlerts, selectEnableFilterViews, selectDisableFilterViews, } from "../../../model/index.js";
|
|
6
|
+
import { exportDashboardToPdf, selectCanCreateAnalyticalDashboard, selectCanExportPdf, selectEnableKPIDashboardExportPDF, selectEntitlementExportPdf, selectIsInEditMode, selectIsInViewMode, selectIsNewDashboard, selectIsReadOnly, selectIsSaveAsNewButtonHidden, selectLayoutHasAnalyticalWidgets, selectMenuButtonItemsVisibility, uiActions, useDashboardCommandProcessing, useDashboardDispatch, useDashboardScheduledEmails, useDashboardSelector, useDashboardAlerts, selectEnableFilterViews, selectDisableFilterViews, selectCanCreateAutomation, } from "../../../model/index.js";
|
|
7
7
|
import { downloadFile } from "../../../_staging/fileUtils/downloadFile.js";
|
|
8
8
|
import { messages } from "../../../locales.js";
|
|
9
9
|
import { selectIsSaveAsNewButtonVisible } from "../buttonBar/button/index.js";
|
|
@@ -91,6 +91,7 @@ export function useDefaultMenuItems() {
|
|
|
91
91
|
}
|
|
92
92
|
exportDashboard();
|
|
93
93
|
}, [exportDashboard, isNewDashboard]);
|
|
94
|
+
const canCreateAutomation = useDashboardSelector(selectCanCreateAutomation);
|
|
94
95
|
const isReadOnly = useDashboardSelector(selectIsReadOnly);
|
|
95
96
|
const isInViewMode = useDashboardSelector(selectIsInViewMode);
|
|
96
97
|
const isInEditMode = useDashboardSelector(selectIsInEditMode);
|
|
@@ -143,7 +144,9 @@ export function useDefaultMenuItems() {
|
|
|
143
144
|
{
|
|
144
145
|
type: "button",
|
|
145
146
|
itemId: "alerts-edit-item", // careful, this is also used as a selector in tests, do not change
|
|
146
|
-
itemName:
|
|
147
|
+
itemName: canCreateAutomation
|
|
148
|
+
? intl.formatMessage({ id: "options.menu.alerts.edit" })
|
|
149
|
+
: intl.formatMessage({ id: "options.menu.alerts.edit.noCreatePermissions" }),
|
|
147
150
|
onClick: defaultOnAlertsManagement,
|
|
148
151
|
visible: isAlertsManagementVisible,
|
|
149
152
|
icon: "gd-icon-bell",
|
|
@@ -167,10 +170,12 @@ export function useDefaultMenuItems() {
|
|
|
167
170
|
{
|
|
168
171
|
type: "button",
|
|
169
172
|
itemId: "schedule-email-edit-item", // careful, this is also used as a selector in tests, do not change
|
|
170
|
-
itemName:
|
|
173
|
+
itemName: canCreateAutomation
|
|
174
|
+
? intl.formatMessage({ id: "options.menu.schedule.email.edit" })
|
|
175
|
+
: intl.formatMessage({ id: "options.menu.schedule.email.edit.noCreatePermissions" }),
|
|
171
176
|
onClick: defaultOnScheduleEmailingManagement,
|
|
172
177
|
visible: isScheduledManagementEmailingVisible,
|
|
173
|
-
icon: "gd-icon-list",
|
|
178
|
+
icon: canCreateAutomation ? "gd-icon-list" : "gd-icon-clock",
|
|
174
179
|
},
|
|
175
180
|
],
|
|
176
181
|
// filter views section
|
|
@@ -235,6 +240,9 @@ export function useDefaultMenuItems() {
|
|
|
235
240
|
openDeleteDialog,
|
|
236
241
|
openFilterViewsAddDialog,
|
|
237
242
|
openFilterViewsListDialog,
|
|
243
|
+
isAlertsManagementVisible,
|
|
244
|
+
canCreateAutomation,
|
|
245
|
+
defaultOnAlertsManagement,
|
|
238
246
|
]);
|
|
239
247
|
}
|
|
240
248
|
//# sourceMappingURL=useDefaultMenuItems.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDefaultMenuItems.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useDefaultMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EACH,oBAAoB,EACpB,kCAAkC,EAClC,kBAAkB,EAClB,iCAAiC,EACjC,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,6BAA6B,EAC7B,gCAAgC,EAChC,+BAA+B,EAC/B,SAAS,EACT,6BAA6B,EAC7B,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"useDefaultMenuItems.js","sourceRoot":"","sources":["../../../../src/presentation/topBar/menuButton/useDefaultMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EACH,oBAAoB,EACpB,kCAAkC,EAClC,kBAAkB,EAClB,iCAAiC,EACjC,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,6BAA6B,EAC7B,gCAAgC,EAChC,+BAA+B,EAC/B,SAAS,EACT,6BAA6B,EAC7B,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,GAC5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAE9E,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC5B,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,eAAe,EAAE,CAAC;IAC/E,MAAM,mBAAmB,G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d,MAAM,EAAE,kBAAkB,EAAE,mDAAmD;oBAC/E,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,qBAAqB,EAAE,CAAC;oBAC3D,OAAO,EAAE,gBAAgB;oBACzB,OAAO,EAAE,eAAe;oBACxB,SAAS,EAAE,eAAe;oBAC1B,IAAI,EAAE,eAAe;iBACxB;aACJ;SACJ,CAAC,CAAC;IACP,CAAC,EAAE;QACC,oBAAoB;QACpB,eAAe;QACf,yBAAyB;QACzB,mCAAmC;QACnC,IAAI;QACJ,eAAe;QACf,oBAAoB;QACpB,cAAc;QACd,kBAAkB;QAClB,UAAU;QACV,gBAAgB;QAChB,eAAe;QACf,0BAA0B;QAC1B,oCAAoC;QACpC,6BAA6B;QAC7B,gBAAgB;QAChB,wBAAwB;QACxB,yBAAyB;QACzB,yBAAyB;QACzB,mBAAmB;QACnB,yBAAyB;KAC5B,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ObjRef, IInsight } from "@gooddata/sdk-model";
|
|
3
|
+
export interface IInsightDropdownProps {
|
|
4
|
+
insight?: IInsight;
|
|
5
|
+
insightRef?: ObjRef;
|
|
6
|
+
insightType?: string;
|
|
7
|
+
onSelect: (targetItem: IInsight) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const InsightDropdown: React.FC<IInsightDropdownProps>;
|
|
10
|
+
//# sourceMappingURL=InsightDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsightDropdown.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/common/InsightDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AA6BvD,MAAM,WAAW,qBAAqB;IAClC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2C3D,CAAC"}
|
package/esm/presentation/widget/{insight/configuration/DrillTargets → common}/InsightDropdown.js
RENAMED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
// (C) 2007-
|
|
2
|
-
import React
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { Dropdown, DropdownButton } from "@gooddata/sdk-ui-kit";
|
|
4
|
-
import { isInsight, insightVisualizationType } from "@gooddata/sdk-model";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
|
-
import {
|
|
7
|
-
import { InsightList } from "../../../../insightList/index.js";
|
|
8
|
-
import { selectInsightsMap, useDashboardSelector } from "../../../../../model/index.js";
|
|
5
|
+
import { InsightList } from "../../insightList/index.js";
|
|
9
6
|
const DROPDOWN_ALIGN_POINTS = [
|
|
10
7
|
{
|
|
11
8
|
align: "bl tl",
|
|
@@ -28,33 +25,15 @@ function getButtonValue(title, intl, ref) {
|
|
|
28
25
|
}
|
|
29
26
|
return title || intl.formatMessage({ id: "loading" });
|
|
30
27
|
}
|
|
31
|
-
export const InsightDropdown = ({
|
|
28
|
+
export const InsightDropdown = ({ insight, insightRef, insightType, onSelect, }) => {
|
|
32
29
|
const intl = useIntl();
|
|
33
|
-
const { insight, insightType, insightRef } = useDrillToInsightData(insightConfig);
|
|
34
30
|
const buttonText = getButtonValue(insight?.insight.title ?? "", intl, insightRef);
|
|
35
31
|
return (React.createElement(Dropdown, { className: "s-report_select report-select", closeOnMouseDrag: true, closeOnParentScroll: true, alignPoints: DROPDOWN_ALIGN_POINTS, renderButton: ({ isOpen, toggleDropdown }) => (React.createElement(DropdownButton, { value: buttonText, onClick: toggleDropdown, isOpen: isOpen, isSmall: false, iconLeft: insightType ? `gd-vis-type-${insightType}` : undefined, className: "gd-button-small s-visualization-button-target-insight" })), renderBody: ({ closeDropdown }) => {
|
|
36
32
|
return (React.createElement("div", { className: "open-visualizations s-open-visualizations" },
|
|
37
|
-
React.createElement(InsightList, { selectedRef:
|
|
33
|
+
React.createElement(InsightList, { selectedRef: insightRef, height: 300, width: 275, searchAutofocus: true, onSelect: (insight) => {
|
|
38
34
|
onSelect(insight);
|
|
39
35
|
closeDropdown();
|
|
40
36
|
} })));
|
|
41
37
|
} }));
|
|
42
38
|
};
|
|
43
|
-
function useDrillToInsightData(insightConfig) {
|
|
44
|
-
const insights = useDashboardSelector(selectInsightsMap);
|
|
45
|
-
return useMemo(() => {
|
|
46
|
-
if (isDrillToInsightConfig(insightConfig) && insightConfig.insightRef) {
|
|
47
|
-
const insight = insights.get(insightConfig.insightRef);
|
|
48
|
-
if (isInsight(insight)) {
|
|
49
|
-
const insightType = insightVisualizationType(insight);
|
|
50
|
-
return {
|
|
51
|
-
insight,
|
|
52
|
-
insightRef: insightConfig.insightRef,
|
|
53
|
-
insightType: insightType,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return {};
|
|
58
|
-
}, [insightConfig, insights]);
|
|
59
|
-
}
|
|
60
39
|
//# sourceMappingURL=InsightDropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsightDropdown.js","sourceRoot":"","sources":["../../../../src/presentation/widget/common/InsightDropdown.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAa,OAAO,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,qBAAqB,GAAG;IAC1B;QACI,KAA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AC9B,OAAO,CACH,6BAAK,SAAS,EAAC,2CAA2C;gBACtD,oBAAC,WAAW,IACR,WAAW,EAAE,UAAU,EACvB,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,GAAG,EACV,eAAe,EAAE,IAAI,EACrB,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE;wBAClB,QAAQ,CAAC,OAAO,CAAC,CAAC;wBAClB,aAAa,EAAE,CAAC;oBACpB,CAAC,GACH,CACA,CACT,CAAC;QACN,CAAC,GACH,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ArrowOffsets, IAlignPoint, OverlayPositionType } from "@gooddata/sdk-ui-kit";
|
|
2
|
+
import { ArrowDirections, ArrowOffsets, IAlignPoint, OverlayPositionType } from "@gooddata/sdk-ui-kit";
|
|
3
3
|
interface IConfigurationBubbleProps {
|
|
4
4
|
classNames?: string;
|
|
5
5
|
onClose?: () => void;
|
|
@@ -8,7 +8,11 @@ interface IConfigurationBubbleProps {
|
|
|
8
8
|
alignPoints?: IAlignPoint[];
|
|
9
9
|
arrowOffsets?: ArrowOffsets;
|
|
10
10
|
overlayPositionType?: OverlayPositionType;
|
|
11
|
+
arrowDirections?: ArrowDirections;
|
|
11
12
|
}
|
|
13
|
+
export declare const defaultAlignPoints: IAlignPoint[];
|
|
14
|
+
export declare const defaultArrowOffsets: ArrowOffsets;
|
|
15
|
+
export declare const defaultArrowDirections: ArrowDirections;
|
|
12
16
|
export declare const ConfigurationBubble: React.FC<IConfigurationBubbleProps>;
|
|
13
17
|
export {};
|
|
14
18
|
//# sourceMappingURL=ConfigurationBubble.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationBubble.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/common/configuration/ConfigurationBubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"ConfigurationBubble.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/common/configuration/ConfigurationBubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,eAAe,EACf,YAAY,EAEZ,WAAW,EACX,mBAAmB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,UAAU,yBAAyB;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC;AAED,eAAO,MAAM,kBAAkB,EAAE,WAAW,EAM3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAMjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,eAGpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA8BnE,CAAC"}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import { Bubble, } from "@gooddata/sdk-ui-kit";
|
|
5
|
-
const defaultAlignPoints = [
|
|
5
|
+
export const defaultAlignPoints = [
|
|
6
6
|
{ align: "tr tl" },
|
|
7
7
|
{ align: "br bl" },
|
|
8
8
|
{ align: "tl tr" },
|
|
9
9
|
{ align: "tr tr" },
|
|
10
10
|
{ align: "br br" },
|
|
11
11
|
];
|
|
12
|
-
const defaultArrowOffsets = {
|
|
12
|
+
export const defaultArrowOffsets = {
|
|
13
13
|
"tr tl": [7, 28],
|
|
14
14
|
"br bl": [7, -28],
|
|
15
15
|
"tl tr": [-7, 28],
|
|
16
16
|
"tr tr": [-76, 28],
|
|
17
17
|
"br br": [-76, -28],
|
|
18
18
|
};
|
|
19
|
-
const
|
|
19
|
+
export const defaultArrowDirections = {
|
|
20
20
|
"tr tr": "right",
|
|
21
21
|
"br br": "right",
|
|
22
22
|
};
|
|
23
23
|
export const ConfigurationBubble = (props) => {
|
|
24
|
-
const { children, classNames, onClose, alignTo = ".s-dash-item.is-selected", alignPoints = defaultAlignPoints, arrowOffsets = defaultArrowOffsets, overlayPositionType, } = props;
|
|
24
|
+
const { children, classNames, onClose, alignTo = ".s-dash-item.is-selected", alignPoints = defaultAlignPoints, arrowOffsets = defaultArrowOffsets, overlayPositionType, arrowDirections = defaultArrowDirections, } = props;
|
|
25
25
|
const ignoreClicksOnByClass = [alignTo]; // do not close on click to the widget
|
|
26
26
|
return (React.createElement(Bubble, { className: cx("bubble-light gd-configuration-bubble s-gd-configuration-bubble", classNames), overlayClassName: "gd-configuration-bubble-wrapper sdk-edit-mode-on", alignTo: alignTo, alignPoints: alignPoints, arrowOffsets: arrowOffsets, arrowDirections: arrowDirections, closeOnOutsideClick: true, closeOnParentScroll: false, ignoreClicksOnByClass: ignoreClicksOnByClass, onClose: onClose, overlayPositionType: overlayPositionType }, children));
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationBubble.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/common/configuration/ConfigurationBubble.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAGH,MAAM,GAGT,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigurationBubble.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/common/configuration/ConfigurationBubble.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,M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AW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,mBAAmB,QACnB,mBAAmB,EAAE,KAAK,EAC1B,qBAAqB,EAAE,qBAAqB,EAC5C,OAAO,EAAE,OAAO,EAChB,mBAAmB,EAAE,mBAAmB,IAEvC,QAAQ,CACJ,CACZ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightExport.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAkBjE,eAAO,MAAM,gBAAgB,WAAY;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC;CAC/B;;;;;
|
|
1
|
+
{"version":3,"file":"useInsightExport.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAkBjE,eAAO,MAAM,gBAAgB,WAAY;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC;CAC/B;;;;;CAsEA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
import { useCallback, useState } from "react";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { getInsightVisualizationMeta } from "@gooddata/sdk-ui-ext";
|
|
@@ -14,10 +14,10 @@ export const useInsightExport = (config) => {
|
|
|
14
14
|
...configToUse,
|
|
15
15
|
format: configToUse.format === "xlsx" ? "xlsx" : "csv",
|
|
16
16
|
}, uuid())).then((result) => result.payload.result), [widgetRef]);
|
|
17
|
-
const
|
|
17
|
+
const settings = useDashboardSelector(selectSettings);
|
|
18
|
+
const isInsightExportable = getInsightVisualizationMeta(insight, settings).supportsExport;
|
|
18
19
|
const isExportableToCsv = useDashboardSelector(selectIsExecutionResultExportableToCsvByRef(widgetRef));
|
|
19
20
|
const isExportableToXlsx = useDashboardSelector(selectIsExecutionResultExportableToXlsxByRef(widgetRef));
|
|
20
|
-
const settings = useDashboardSelector(selectSettings);
|
|
21
21
|
const exportHandler = useExportHandler();
|
|
22
22
|
const { openDialog, closeDialog } = useExportDialogContext();
|
|
23
23
|
const onExportCSV = useCallback(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightExport.js","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EACH,cAAc,EACd,oBAAoB,EACpB,2CAA2C,EAC3C,4CAA4C,EAC5C,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAIhC,EAAE,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC7C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IACxC,MAAM,cAAc,GAAG,WAAW,CAC9B,CAAC,WAAkC,EAAE,EAAE,CACnC,kBAAkB,CACd,QAAQ,EACR,mBAAmB,CACf,SAAS,EACT;QACI,GAAG,WAAW;QACd,MAAM,EAAE,WAAW,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK;KACzD,EACD,IAAI,EAAE,CACT,CACJ,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAC7C,CAAC,SAAS,CAAC,CACd,CAAC;IAEF,MAAM,mBAAmB,GAAG,2BAA2B,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"useInsightExport.js","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EACH,cAAc,EACd,oBAAoB,EACpB,2CAA2C,EAC3C,4CAA4C,EAC5C,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAIhC,EAAE,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC7C,MAAM,CAAC,WAAW,EAAE,cAAc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AAC,cAAc,EAAE,KAAK,CAAC,CAAC,CAAC;IAE5B,MAAM,YAAY,GAAG,WAAW,CAAC,GAAG,EAAE;QAClC,UAAU,CAAC;YACP,QAAQ,EAAE,CAAC,EAAE,oBAAoB,EAAE,YAAY,EAAE,EAAE,EAAE;gBACjD,cAAc,CAAC,IAAI,CAAC,CAAC;gBACrB,sEAAsE;gBACtE,SAAS,CAAC,cAAc,CAAC,CAAC;gBAC1B,WAAW,EAAE,CAAC;gBACd,aAAa,CAAC,cAAc,EAAE;oBAC1B,MAAM,EAAE,MAAM;oBACd,YAAY;oBACZ,oBAAoB;oBACpB,WAAW,EAAE,oBAAoB;oBACjC,KAAK;iBACR,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;YACzC,CAAC;YACD,oBAAoB,EAAE,OAAO,CAAC,QAAQ,EAAE,sBAAsB,IAAI,IAAI,CAAC;YACvE,YAAY,EAAE,OAAO,CAAC,QAAQ,EAAE,mBAAmB,IAAI,IAAI,CAAC;YAC5D,oBAAoB,EAAE,OAAO,CAAC,QAAQ,EAAE,yBAAyB,IAAI,IAAI,CAAC;SAC7E,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC,CAAC;IAEnD,MAAM,gBAAgB,GAAG,CAAC,WAAW,IAAI,mBAAmB,IAAI,iBAAiB,CAAC;IAClF,MAAM,iBAAiB,GAAG,CAAC,WAAW,IAAI,mBAAmB,IAAI,kBAAkB,CAAC;IAEpF,OAAO;QACH,gBAAgB;QAChB,iBAAiB;QACjB,WAAW;QACX,YAAY;KACf,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { IInsightWidgetDescriptionTriggerProps } from "./types.js";
|
|
1
|
+
export type { IInsightWidgetDescriptionTriggerProps } from "./types.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,qCAAqC,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { IUseCustomWidgetExecutionDataViewConfig, IUseCustomWidgetInsightDataViewConfig, IUseInsightWidgetDataView, UseCustomWidgetExecutionDataViewCallbacks, UseCustomWidgetInsightDataViewCallbacks, UseInsightWidgetInsightDataViewCallbacks, } from "./common/index.js";
|
|
2
|
+
export { useWidgetFilters, useCustomWidgetExecutionDataView, useCustomWidgetInsightDataView, useInsightWidgetDataView, } from "./common/index.js";
|
|
2
3
|
export * from "./insight/index.js";
|
|
3
4
|
export * from "./insightMenu/index.js";
|
|
4
5
|
export * from "./kpi/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"AACA,YAAY,EACR,uCAAuC,EACvC,qCAAqC,EACrC,yBAAyB,EACzB,yCAAyC,EACzC,uCAAuC,EACvC,wCAAwC,GAC3C,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACH,gBAAgB,EAChB,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"AASA,OAAO,EACH,gBAAgB,EAChB,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInsightWithDrillDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DashboardInsightWithDrillDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGrD;;GAEG;AACH,eAAO,MAAM,+BAA+B,UAAW,sBAAsB,KAAG,WAgE/E,CAAC"}
|
package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2024 GoodData Corporation
|
|
2
2
|
import React, { useCallback, useMemo, useState } from "react";
|
|
3
3
|
import last from "lodash/last.js";
|
|
4
|
-
import { selectCatalogAttributeDisplayFormsById,
|
|
4
|
+
import { selectCatalogAttributeDisplayFormsById, selectLocale, useDashboardSelector, } from "../../../../model/index.js";
|
|
5
5
|
import { getDrillDownTitle, } from "../../../drill/index.js";
|
|
6
6
|
import { isDrillDownDefinition } from "../../../../types.js";
|
|
7
7
|
import { DashboardInsightWithDrillSelect } from "./Insight/DashboardInsightWithDrillSelect.js";
|
|
@@ -16,21 +16,11 @@ export const DashboardInsightWithDrillDialog = (props) => {
|
|
|
16
16
|
const insight = activeDrillStep?.insight;
|
|
17
17
|
const widget = props.widget;
|
|
18
18
|
const attributeDisplayForms = useDashboardSelector(selectCatalogAttributeDisplayFormsById);
|
|
19
|
-
const enableDrillDownIntersectionIgnoredAttributes = useDashboardSelector(selectEnableDrillDownIntersectionIgnoredAttributes);
|
|
20
19
|
const breadcrumbs = useMemo(() => drillSteps
|
|
21
20
|
.filter((s) => isDrillDownDefinition(s.drillDefinition))
|
|
22
|
-
.map((s) => getDrillDownTitle(s.drillDefinition, s.drillEvent,
|
|
23
|
-
?
|
|
24
|
-
:
|
|
25
|
-
? attributeDisplayForms[isIdentifierRef(s.drillDefinition.target)
|
|
26
|
-
? s.drillDefinition.target.identifier
|
|
27
|
-
: s.drillDefinition.target.uri]
|
|
28
|
-
: undefined) ?? "NULL"), [
|
|
29
|
-
drillSteps,
|
|
30
|
-
enableDrillDownIntersectionIgnoredAttributes,
|
|
31
|
-
attributeDisplayForms,
|
|
32
|
-
widget.drillDownIntersectionIgnoredAttributes,
|
|
33
|
-
]);
|
|
21
|
+
.map((s) => getDrillDownTitle(s.drillDefinition, s.drillEvent, widget.drillDownIntersectionIgnoredAttributes, attributeDisplayForms[isIdentifierRef(s.drillDefinition.target)
|
|
22
|
+
? s.drillDefinition.target.identifier
|
|
23
|
+
: s.drillDefinition.target.uri]) ?? "NULL"), [drillSteps, attributeDisplayForms, widget.drillDownIntersectionIgnoredAttributes]);
|
|
34
24
|
const locale = useDashboardSelector(selectLocale);
|
|
35
25
|
const setNextDrillStep = useCallback((drillStep) => {
|
|
36
26
|
setDrillSteps((s) => [...s, drillStep]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInsightWithDrillDialog.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACH,sCAAsC,EACtC,
|
|
1
|
+
{"version":3,"file":"DashboardInsightWithDrillDialog.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACH,sCAAsC,EACtC,YAAY,EACZ,oBAAoB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,iBAAiB,GAGpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAwB,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,KAA6B,EAAe,EAAE;IAC1F,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAc,EAAE,CAAC,CAAC;IAC9D,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,eAAe,EAAE,OAAO,CAAC;IACzC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC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AC,GAAG,CAAC,OAAO,CAAC,EACtC,CAAC,gBAAgB,CAAC,CACrB,CAAC;IACF,MAAM,gBAAgB,GAAG,WAAW,CAChC,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,EACtC,CAAC,gBAAgB,CAAC,CACrB,CAAC;IAEF,OAAO,CACH;QACI,oBAAC,+BAA+B,OACxB,KAAK,EACT,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,GACpC;QACD,eAAe,CAAC,CAAC,CAAC,CACf,oBAAC,kBAAkB,IACf,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAO,EACf,OAAO,EAAE,OAAQ,EACjB,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,OAAO,GAClB,CACL,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
1
|
+
// (C) 2019-2024 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { DrillingInsightDropdown } from "./DrillingInsightDropdown.js";
|
|
4
4
|
export const DrillTargetInsightItem = ({ insight, onSelect, }) => {
|
|
5
|
-
return React.createElement(
|
|
5
|
+
return React.createElement(DrillingInsightDropdown, { insightConfig: insight, onSelect: onSelect });
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=DrillTargetInsightItem.js.map
|
package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillTargetInsightItem.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DrillTargetInsightItem.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillTargetInsightItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAOvE,MAAM,CAAC,MAAM,sBAAsB,GAAoD,CAAC,EACpF,OAAO,EACP,QAAQ,GACX,EAAE,EAAE;IACD,OAAO,oBAAC,uBAAuB,IAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAAC;AACnF,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IInsight } from "@gooddata/sdk-model";
|
|
3
3
|
import { IDrillConfigItem } from "../../../../drill/types.js";
|
|
4
|
-
export interface
|
|
4
|
+
export interface IDrillingInsightDropdownProps {
|
|
5
5
|
insightConfig: IDrillConfigItem;
|
|
6
6
|
onSelect: (targetItem: IInsight) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
9
|
-
//# sourceMappingURL=
|
|
8
|
+
export declare const DrillingInsightDropdown: React.FC<IDrillingInsightDropdownProps>;
|
|
9
|
+
//# sourceMappingURL=DrillingInsightDropdown.d.ts.map
|
package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrillingInsightDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAU,QAAQ,EAAuC,MAAM,qBAAqB,CAAC;AAE5F,OAAO,EAAE,gBAAgB,EAA0B,MAAM,4BAA4B,CAAC;AAItF,MAAM,WAAW,6BAA6B;IAC1C,aAAa,EAAE,gBAAgB,CAAC;IAChC,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAc3E,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { isInsight, insightVisualizationType } from "@gooddata/sdk-model";
|
|
4
|
+
import { isDrillToInsightConfig } from "../../../../drill/types.js";
|
|
5
|
+
import { selectInsightsMap, useDashboardSelector } from "../../../../../model/index.js";
|
|
6
|
+
import { InsightDropdown } from "../../../../widget/common/InsightDropdown.js";
|
|
7
|
+
export const DrillingInsightDropdown = ({ insightConfig, onSelect, }) => {
|
|
8
|
+
const { insight, insightType, insightRef } = useDrillToInsightData(insightConfig);
|
|
9
|
+
return (React.createElement(InsightDropdown, { insight: insight, insightRef: insightRef, insightType: insightType, onSelect: onSelect }));
|
|
10
|
+
};
|
|
11
|
+
function useDrillToInsightData(insightConfig) {
|
|
12
|
+
const insights = useDashboardSelector(selectInsightsMap);
|
|
13
|
+
return useMemo(() => {
|
|
14
|
+
if (isDrillToInsightConfig(insightConfig) && insightConfig.insightRef) {
|
|
15
|
+
const insight = insights.get(insightConfig.insightRef);
|
|
16
|
+
if (isInsight(insight)) {
|
|
17
|
+
const insightType = insightVisualizationType(insight);
|
|
18
|
+
return {
|
|
19
|
+
insight,
|
|
20
|
+
insightRef: insightConfig.insightRef,
|
|
21
|
+
insightType: insightType,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return {};
|
|
26
|
+
}, [insightConfig, insights]);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=DrillingInsightDropdown.js.map
|
package/esm/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrillingInsightDropdown.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillingInsightDropdown.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAoB,SAAS,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE5F,OAAO,EAAoB,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAO/E,MAAM,CAAC,MAAM,uBAAuB,GAA4C,CAAC,EAC7E,aAAa,EACb,QAAQ,GACX,EAAE,EAAE;IACD,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAElF,OAAO,CACH,oBAAC,eAAe,IACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,GACpB,CACL,CAAC;AACN,CAAC,CAAC;AAEF,SAAS,qBAAqB,CAAC,aAA+B;IAK1D,MAAM,QAAQ,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAEzD,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,sBAAsB,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,UAAU,EAAE,CAAC;YACpE,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YAEvD,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;gBACrB,MAAM,WAAW,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC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