@gooddata/sdk-ui-dashboard 10.23.0-alpha.9 → 10.23.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 +14 -51
- 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/_staging/sharedHooks/useRichTextFilters.d.ts +3 -0
- package/esm/_staging/sharedHooks/useRichTextFilters.d.ts.map +1 -0
- package/esm/_staging/sharedHooks/useRichTextFilters.js +28 -0
- package/esm/_staging/sharedHooks/useRichTextFilters.js.map +1 -0
- package/esm/converters/filterConverters.d.ts +9 -1
- package/esm/converters/filterConverters.d.ts.map +1 -1
- package/esm/converters/filterConverters.js +22 -3
- package/esm/converters/filterConverters.js.map +1 -1
- package/esm/converters/index.d.ts +1 -1
- package/esm/converters/index.d.ts.map +1 -1
- package/esm/converters/index.js +2 -2
- package/esm/converters/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts +6 -2
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +11 -3
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +7 -2
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +6 -2
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.js +7 -7
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js +7 -6
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.d.ts +4 -0
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +8 -1
- package/esm/model/commandHandlers/filterContext/common.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +5 -5
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +14 -2
- 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 -1
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/layout/validation/itemValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/validation/itemValidation.js +31 -3
- package/esm/model/commandHandlers/layout/validation/itemValidation.js.map +1 -1
- package/esm/model/commandHandlers/widgets/changeRichTextWidgetFilterSettingsHandler.d.ts +17 -0
- package/esm/model/commandHandlers/widgets/changeRichTextWidgetFilterSettingsHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/changeRichTextWidgetFilterSettingsHandler.js +55 -0
- package/esm/model/commandHandlers/widgets/changeRichTextWidgetFilterSettingsHandler.js.map +1 -0
- package/esm/model/commandHandlers/widgets/common/filterOperations.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/common/filterOperations.js +7 -2
- package/esm/model/commandHandlers/widgets/common/filterOperations.js.map +1 -1
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +6 -4
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts +19 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.js +33 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.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/filters.d.ts +69 -1
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +62 -1
- package/esm/model/commands/filters.js.map +1 -1
- package/esm/model/commands/index.d.ts +7 -7
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +2 -2
- package/esm/model/commands/index.js.map +1 -1
- package/esm/model/commands/richText.d.ts +36 -0
- package/esm/model/commands/richText.d.ts.map +1 -1
- package/esm/model/commands/richText.js +27 -1
- package/esm/model/commands/richText.js.map +1 -1
- 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 +4 -4
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js +1 -1
- package/esm/model/events/index.js.map +1 -1
- package/esm/model/events/richText.d.ts +53 -1
- package/esm/model/events/richText.d.ts.map +1 -1
- package/esm/model/events/richText.js +24 -1
- package/esm/model/events/richText.js.map +1 -1
- package/esm/model/queries/base.js +1 -1
- package/esm/model/queries/index.js +1 -1
- package/esm/model/queryServices/index.js +1 -1
- package/esm/model/react/useDashboardCommand.d.ts +1 -0
- package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
- package/esm/model/react/useDashboardCommandProcessing.d.ts +4 -0
- package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +11 -1
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +15 -1
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.d.ts +8 -5
- package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.js +32 -6
- package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.js +4 -19
- package/esm/model/store/filterContext/filterContextSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextState.d.ts +1 -1
- package/esm/model/store/filterContext/filterContextUtils.d.ts +5 -1
- package/esm/model/store/filterContext/filterContextUtils.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextUtils.js +18 -1
- package/esm/model/store/filterContext/filterContextUtils.js.map +1 -1
- package/esm/model/store/filterContext/index.d.ts +4 -0
- package/esm/model/store/filterContext/index.d.ts.map +1 -1
- package/esm/model/store/index.d.ts +5 -3
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +5 -3
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/insights/insightsSelectors.d.ts +7 -0
- package/esm/model/store/insights/insightsSelectors.d.ts.map +1 -1
- package/esm/model/store/insights/insightsSelectors.js +115 -2
- package/esm/model/store/insights/insightsSelectors.js.map +1 -1
- package/esm/model/store/layout/layoutReducers.js +1 -1
- package/esm/model/store/layout/layoutReducers.js.map +1 -1
- package/esm/model/store/ui/index.d.ts +1 -0
- package/esm/model/store/ui/index.d.ts.map +1 -1
- package/esm/model/store/ui/uiReducers.d.ts +1 -0
- package/esm/model/store/ui/uiReducers.d.ts.map +1 -1
- package/esm/model/store/ui/uiReducers.js +4 -0
- package/esm/model/store/ui/uiReducers.js.map +1 -1
- package/esm/model/store/ui/uiSelectors.d.ts +8 -0
- package/esm/model/store/ui/uiSelectors.d.ts.map +1 -1
- package/esm/model/store/ui/uiSelectors.js +15 -1
- package/esm/model/store/ui/uiSelectors.js.map +1 -1
- package/esm/model/store/ui/uiState.d.ts +1 -0
- package/esm/model/store/ui/uiState.d.ts.map +1 -1
- package/esm/model/store/ui/uiState.js +1 -0
- package/esm/model/store/ui/uiState.js.map +1 -1
- package/esm/model/store/widgetExports/widgetExportsSelectors.d.ts +10 -0
- package/esm/model/store/widgetExports/widgetExportsSelectors.d.ts.map +1 -0
- package/esm/model/store/widgetExports/widgetExportsSelectors.js +21 -0
- package/esm/model/store/widgetExports/widgetExportsSelectors.js.map +1 -0
- package/esm/model/types/commonTypes.d.ts +7 -1
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/model/types/commonTypes.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +6 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +5 -2
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +7 -3
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.js +6 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +3 -3
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +3 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +13 -2
- package/esm/presentation/dashboard/hooks/useDashboard.js.map +1 -1
- package/esm/presentation/dashboard/types.d.ts +34 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/types.js.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +3 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +2 -0
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.d.ts +2 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/types.d.ts +21 -1
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DraggableAttributeFilter.d.ts +2 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DraggableAttributeFilter.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DraggableAttributeFilter.js +11 -4
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DraggableAttributeFilter.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts +2 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.js +4 -3
- package/esm/presentation/dragAndDrop/draggableDateFilter/DraggableDateFilter.js.map +1 -1
- package/esm/presentation/dragAndDrop/types.d.ts +6 -2
- package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/types.js.map +1 -1
- package/esm/presentation/export/DefaultDashboardExportVariables.d.ts.map +1 -1
- package/esm/presentation/export/DefaultDashboardExportVariables.js +32 -7
- package/esm/presentation/export/DefaultDashboardExportVariables.js.map +1 -1
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.d.ts +4 -1
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.d.ts.map +1 -1
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.js +48 -3
- package/esm/presentation/export/hooks/useDashboardRelatedFilters.js.map +1 -1
- package/esm/presentation/export/types.d.ts +6 -2
- package/esm/presentation/export/types.d.ts.map +1 -1
- package/esm/presentation/export/useExportData.d.ts +12 -1
- package/esm/presentation/export/useExportData.d.ts.map +1 -1
- package/esm/presentation/export/useExportData.js +38 -1
- package/esm/presentation/export/useExportData.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/CustomDropdownActions.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/CustomDropdownActions.js +6 -3
- package/esm/presentation/filterBar/attributeFilter/CustomDropdownActions.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +14 -5
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/types.d.ts +9 -2
- package/esm/presentation/filterBar/attributeFilter/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js +4 -3
- package/esm/presentation/filterBar/dateFilter/DefaultDashboardDateFilter.js.map +1 -1
- package/esm/presentation/filterBar/dateFilter/types.d.ts +4 -0
- package/esm/presentation/filterBar/dateFilter/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +32 -14
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +38 -15
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +12 -5
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/types.d.ts +4 -0
- package/esm/presentation/filterBar/filterBar/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useExecutionTimestampMessage.d.ts +6 -0
- package/esm/presentation/filterBar/filterBar/useExecutionTimestampMessage.d.ts.map +1 -0
- package/esm/presentation/filterBar/filterBar/useExecutionTimestampMessage.js +35 -0
- package/esm/presentation/filterBar/filterBar/useExecutionTimestampMessage.js.map +1 -0
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts +4 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +15 -4
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +6 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +3 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +7 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useRichTextPlaceholderDropHandler.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useRichTextPlaceholderDropHandler.js +14 -2
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useRichTextPlaceholderDropHandler.js.map +1 -1
- package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
- package/esm/presentation/insightList/InsightList.js +7 -3
- package/esm/presentation/insightList/InsightList.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +3 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +6 -3
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +7 -2
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +20 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +2 -2
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.d.ts +2 -0
- package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.js +9 -2
- package/esm/presentation/widget/common/useInsightExport.js.map +1 -1
- package/esm/presentation/widget/description/DescriptionClickTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/DescriptionClickTrigger.js +1 -1
- package/esm/presentation/widget/description/DescriptionClickTrigger.js.map +1 -1
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts.map +1 -1
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js +8 -2
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js.map +1 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js +7 -2
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js.map +1 -1
- package/esm/presentation/widget/description/types.d.ts +6 -2
- package/esm/presentation/widget/description/types.d.ts.map +1 -1
- package/esm/presentation/widget/index.d.ts +1 -0
- package/esm/presentation/widget/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.js +1 -0
- 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 +4 -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 +10 -5
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +10 -5
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts +2 -0
- package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/ExportOptions.js +10 -7
- package/esm/presentation/widget/insight/configuration/ExportOptions.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts +3 -0
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +5 -4
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescriptionConfig.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescriptionConfig.js +6 -3
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescriptionConfig.js.map +1 -1
- package/esm/presentation/widget/insight/types.d.ts +9 -1
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/insight/types.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.d.ts +2 -2
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +2 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +2 -2
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/index.d.ts +1 -1
- 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/richText/EditModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/EditModeDashboardRichText.js +26 -12
- package/esm/presentation/widget/richText/EditModeDashboardRichText.js.map +1 -1
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.js +17 -8
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.js.map +1 -1
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.js +12 -3
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.js.map +1 -1
- package/esm/presentation/widget/richText/types.d.ts +16 -1
- package/esm/presentation/widget/richText/types.d.ts.map +1 -1
- package/esm/presentation/widget/richText/useEditableRichTextMenu.d.ts +11 -0
- package/esm/presentation/widget/richText/useEditableRichTextMenu.d.ts.map +1 -0
- package/esm/presentation/widget/richText/useEditableRichTextMenu.js +31 -0
- package/esm/presentation/widget/richText/useEditableRichTextMenu.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/DashboardRichTextMenuTitle.d.ts +7 -0
- package/esm/presentation/widget/richTextMenu/DashboardRichTextMenuTitle.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/DashboardRichTextMenuTitle.js +13 -0
- package/esm/presentation/widget/richTextMenu/DashboardRichTextMenuTitle.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DashboardRichTextMenu/DashboardRichTextMenuContainer.d.ts +12 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DashboardRichTextMenu/DashboardRichTextMenuContainer.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DashboardRichTextMenu/DashboardRichTextMenuContainer.js +13 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DashboardRichTextMenu/DashboardRichTextMenuContainer.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DashboardRichTextMenu/index.d.ts +10 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DashboardRichTextMenu/index.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DashboardRichTextMenu/index.js +40 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DashboardRichTextMenu/index.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DefaultDashboardRichTextMenu.d.ts +7 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DefaultDashboardRichTextMenu.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DefaultDashboardRichTextMenu.js +10 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DefaultDashboardRichTextMenu.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DefaultDashboardRichTextMenuTitle.d.ts +6 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DefaultDashboardRichTextMenuTitle.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DefaultDashboardRichTextMenuTitle.js +15 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/DefaultDashboardRichTextMenuTitle.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.d.ts +18 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.js +22 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/index.d.ts +5 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/index.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/index.js +5 -0
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/index.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/index.d.ts +3 -0
- package/esm/presentation/widget/richTextMenu/index.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/index.js +3 -0
- package/esm/presentation/widget/richTextMenu/index.js.map +1 -0
- package/esm/presentation/widget/richTextMenu/types.d.ts +122 -0
- package/esm/presentation/widget/richTextMenu/types.d.ts.map +1 -0
- package/esm/presentation/widget/richTextMenu/types.js +4 -0
- package/esm/presentation/widget/richTextMenu/types.js.map +1 -0
- package/esm/presentation/widget/types.d.ts +2 -1
- package/esm/presentation/widget/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +3 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +3 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +2 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +5 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.js +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.js.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/EditableDashboardRichTextWidget.js +2 -2
- package/esm/presentation/widget/widget/RichTextWidget/EditableDashboardRichTextWidget.js.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.js +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +533 -29
- package/package.json +15 -15
- package/styles/css/alerting.css +14 -1
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/dashboard.css +14 -0
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/filterBar.css +19 -0
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +71 -4
- package/styles/css/main.css.map +1 -1
- package/styles/css/notifications_channels_dialog.css +4 -0
- package/styles/css/notifications_channels_dialog.css.map +1 -1
- package/styles/css/richTextWidget.css +1 -1
- package/styles/scss/_zIndexes.scss +3 -0
- package/styles/scss/alerting.scss +18 -1
- package/styles/scss/dashboard.scss +14 -1
- package/styles/scss/filterBar.scss +23 -0
- package/styles/scss/notifications_channels_dialog.scss +4 -1
- package/styles/scss/richTextWidget.scss +2 -2
|
@@ -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;AAE9B,OAAO,EAAE,sCAAsC,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAa9F,MAAM,CAAC,MAAM,kBAAkB,GAAkB;IAC7C,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAiB;IAClD,OAAO,EAAE,CAAC,CAAC,EAA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,CACH,oBAAC,MAAM,IACH,SAAS,EAAE,EAAE,CAAC,gEAAgE,EAAE,UAAU,CAAC,EAC3F,gBAAgB,EAAC,kDAAkD,EACnE,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,kBAAkB,EAChC,eAAe,EAAE,eAAe,EAChC,mBAAmB,QACnB,mBAAmB,EAAE,KAAK,EAC1B,qBAAqB,EAAE,qBAAqB,EAC5C,OAAO,EAAE,OAAO,EAChB,mBAAmB,EAAE,mBAAmB,
|
|
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;AAE9B,OAAO,EAAE,sCAAsC,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAa9F,MAAM,CAAC,MAAM,kBAAkB,GAAkB;IAC7C,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAiB;IAClD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;IAChB,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC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mBAAmB,EAAE,KAAK,EAC1B,qBAAqB,EAAE,qBAAqB,EAC5C,OAAO,EAAE,OAAO,EAChB,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,IAAI,IAErB,QAAQ,CACJ,CACZ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -16,5 +16,7 @@ export declare const useInsightExport: (config: {
|
|
|
16
16
|
onExportRawCSV: () => void;
|
|
17
17
|
onExportPdfPresentation: () => void;
|
|
18
18
|
onExportPowerPointPresentation: () => void;
|
|
19
|
+
exportPdfPresentationDisabled: boolean;
|
|
20
|
+
exportPowerPointPresentationDisabled: boolean;
|
|
19
21
|
};
|
|
20
22
|
//# sourceMappingURL=useInsightExport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightExport.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useInsightExport.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useInsightExport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AA2BvE,eAAO,MAAM,gBAAgB,WAAY;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;CAC3B;;;;;;;;;;;;;;CAqIA,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { useCallback, useState } from "react";
|
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { getInsightVisualizationMeta } from "@gooddata/sdk-ui-ext";
|
|
5
5
|
import { v4 as uuid } from "uuid";
|
|
6
|
-
import { selectSettings, useDashboardSelector, selectIsExecutionResultExportableToCsvByRef, selectIsExecutionResultExportableToXlsxByRef, useDashboardDispatch, dispatchAndWaitFor, exportInsightWidget, exportRawInsightWidget, exportSlidesInsightWidget, selectSlideShowExportVisible, } from "../../../model/index.js";
|
|
6
|
+
import { selectSettings, useDashboardSelector, selectIsExecutionResultExportableToCsvByRef, selectIsExecutionResultExportableToXlsxByRef, useDashboardDispatch, dispatchAndWaitFor, exportInsightWidget, exportRawInsightWidget, exportSlidesInsightWidget, selectSlideShowExportVisible, selectIsExportableToCSV, selectIsExportableToXLSX, } from "../../../model/index.js";
|
|
7
7
|
import { useExportHandler } from "./useExportHandler.js";
|
|
8
8
|
import { useExportDialogContext } from "../../dashboardContexts/index.js";
|
|
9
9
|
import { useRawExportHandler } from "./useRawExportHandler.js";
|
|
@@ -79,8 +79,13 @@ export const useInsightExport = (config) => {
|
|
|
79
79
|
const exportCSVEnabled = !isExporting && isInsightExportable && isExportableToCsv;
|
|
80
80
|
const exportXLSXEnabled = !isExporting && isInsightExportable && isExportableToXlsx;
|
|
81
81
|
const exportCSVRawEnabled = !isExporting;
|
|
82
|
-
const isExportRawVisible = settings.enableRawExports === true;
|
|
83
82
|
const isExportVisible = useDashboardSelector(selectSlideShowExportVisible);
|
|
83
|
+
const canExportCSV = useDashboardSelector(selectIsExportableToCSV);
|
|
84
|
+
const canExportXLSX = useDashboardSelector(selectIsExportableToXLSX);
|
|
85
|
+
const canExportCSVAndXLSX = isInsightExportable && canExportCSV && canExportXLSX;
|
|
86
|
+
const isExportRawVisible = settings.enableRawExports === true && canExportCSVAndXLSX;
|
|
87
|
+
const exportPdfPresentationDisabled = !!widget && !widget.localIdentifier;
|
|
88
|
+
const exportPowerPointPresentationDisabled = !!widget && !widget.localIdentifier;
|
|
84
89
|
return {
|
|
85
90
|
exportCSVEnabled,
|
|
86
91
|
exportXLSXEnabled,
|
|
@@ -93,6 +98,8 @@ export const useInsightExport = (config) => {
|
|
|
93
98
|
onExportRawCSV,
|
|
94
99
|
onExportPdfPresentation,
|
|
95
100
|
onExportPowerPointPresentation,
|
|
101
|
+
exportPdfPresentationDisabled,
|
|
102
|
+
exportPowerPointPresentationDisabled,
|
|
96
103
|
};
|
|
97
104
|
};
|
|
98
105
|
//# sourceMappingURL=useInsightExport.js.map
|
|
@@ -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,EAInB,sBAAsB,EAEtB,yBAAyB,EACzB,4BAA4B,
|
|
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,EAInB,sBAAsB,EAEtB,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAA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BAAgB;QAChB,iBAAiB;QACjB,mBAAmB;QACnB,WAAW;QACX,kBAAkB;QAClB,eAAe;QACf,WAAW;QACX,YAAY;QACZ,cAAc;QACd,uBAAuB;QACvB,8BAA8B;QAC9B,6BAA6B;QAC7B,oCAAoC;KACvC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionClickTrigger.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/DescriptionClickTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAoB3D,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"DescriptionClickTrigger.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/DescriptionClickTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAoB3D,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA8D3E,CAAC"}
|
|
@@ -42,7 +42,7 @@ export const DescriptionClickTrigger = (props) => {
|
|
|
42
42
|
return (React.createElement(React.Fragment, null,
|
|
43
43
|
React.createElement("div", { className: iconClassName, onClick: switchIsOpen, onKeyDown: onKeyDown, role: "button", tabIndex: 0, title: intl.formatMessage({ id: "widget.options.description" }) },
|
|
44
44
|
React.createElement(DescriptionIcon, { className: "dash-item-action-description-trigger" })),
|
|
45
|
-
isOpen ? (React.createElement(Bubble, { className: "bubble-light gd-description-panel-bubble", alignPoints: DESCRIPTION_PANEL_ALIGN_POINTS, arrowOffsets: DESCRIPTION_PANEL_ARROW_OFFSETS, arrowStyle: { display: "none" }, onClose: switchIsOpen, closeOnOutsideClick: true, closeOnParentScroll: false, alignTo: `.${props.className}
|
|
45
|
+
isOpen ? (React.createElement(Bubble, { className: "bubble-light gd-description-panel-bubble", alignPoints: DESCRIPTION_PANEL_ALIGN_POINTS, arrowOffsets: DESCRIPTION_PANEL_ARROW_OFFSETS, arrowStyle: { display: "none" }, onClose: switchIsOpen, closeOnOutsideClick: true, closeOnParentScroll: false, alignTo: `.${props.className}`, ensureVisibility: true },
|
|
46
46
|
React.createElement(DescriptionPanelContent, { ...props }))) : null));
|
|
47
47
|
};
|
|
48
48
|
//# sourceMappingURL=DescriptionClickTrigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionClickTrigger.js","sourceRoot":"","sources":["../../../../src/presentation/widget/description/DescriptionClickTrigger.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EACH,eAAe,EACf,uBAAuB,EACvB,MAAM,EACN,+BAA+B,EAC/B,WAAW,GACd,MAAM,sBAAsB,CAAC;AAG9B,MAAM,8BAA8B,GAAG;IACnC,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;CACrB,CAAC;AAEF,MAAM,CAAC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EAAE,8BAA8B,EAC3C,YAAY,EAAE,+BAA+B,EAC7C,UAAU,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAC/B,OAAO,EAAE,YAAY,EACrB,mBAAmB,EAAE,IAAI,EACzB,mBAAmB,EAAE,KAAK,EAC1B,OAAO,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"DescriptionClickTrigger.js","sourceRoot":"","sources":["../../../../src/presentation/widget/description/DescriptionClickTrigger.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EACH,eAAe,EACf,uBAAuB,EACvB,MAAM,EACN,+BAA+B,EAC/B,WAAW,GACd,MAAM,sBAAsB,CAAC;AAG9B,MAAM,8BAA8B,GAAG;IACnC,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAA4C,CAAC,KAAK,EAAE,EAAE;IACtF,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAA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I,EACzB,mBAAmB,EAAE,KAAK,EAC1B,OAAO,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE,EAC9B,gBAAgB,EAAE,IAAI;YAEtB,oBAAC,uBAAuB,OAAK,KAAK,GAAI,CACjC,CACZ,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportModeInsightWidgetDescription.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/ExportModeInsightWidgetDescription.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportModeInsightWidgetDescription.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/ExportModeInsightWidgetDescription.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,qCAAqC,EAAE,MAAM,YAAY,CAAC;AAGnE;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,EAAE,KAAK,CAAC,EAAE,CAAC,qCAAqC,CAwB9F,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// (C) 2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { DescriptionPanelContent } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { selectEnableRichTextDynamicReferences, useDashboardSelector } from "../../../model/index.js";
|
|
5
|
+
import { useRichTextFilters } from "../../../_staging/sharedHooks/useRichTextFilters.js";
|
|
6
|
+
import { useDashboardComponentsContext } from "../../dashboardContexts/index.js";
|
|
4
7
|
import { useInsightWidgetDescription } from "./useInsightWidgetDescription.js";
|
|
5
8
|
/**
|
|
6
9
|
* Simplified version of the InsightWidgetDescriptionTrigger component that is used in export mode.
|
|
@@ -8,12 +11,15 @@ import { useInsightWidgetDescription } from "./useInsightWidgetDescription.js";
|
|
|
8
11
|
* It is hidden, but holds the export data and content for exporter.
|
|
9
12
|
*/
|
|
10
13
|
export const ExportModeInsightWidgetDescription = (props) => {
|
|
11
|
-
const { exportData } = props;
|
|
14
|
+
const { exportData, widget } = props;
|
|
12
15
|
const { isVisible, description, useRichText } = useInsightWidgetDescription(props);
|
|
16
|
+
const useReferences = useDashboardSelector(selectEnableRichTextDynamicReferences);
|
|
17
|
+
const filters = useRichTextFilters(widget);
|
|
18
|
+
const { LoadingComponent } = useDashboardComponentsContext();
|
|
13
19
|
if (!isVisible) {
|
|
14
20
|
return null;
|
|
15
21
|
}
|
|
16
22
|
return (React.createElement("div", { style: { display: "none" }, ...exportData },
|
|
17
|
-
React.createElement(DescriptionPanelContent, { description: description, useRichText: useRichText })));
|
|
23
|
+
React.createElement(DescriptionPanelContent, { description: description, useRichText: useRichText, useReferences: useReferences, filters: filters, LoadingComponent: LoadingComponent })));
|
|
18
24
|
};
|
|
19
25
|
//# sourceMappingURL=ExportModeInsightWidgetDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportModeInsightWidgetDescription.js","sourceRoot":"","sources":["../../../../src/presentation/widget/description/ExportModeInsightWidgetDescription.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAoD,CAC/F,KAAK,EACP,EAAE;IACA,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportModeInsightWidgetDescription.js","sourceRoot":"","sources":["../../../../src/presentation/widget/description/ExportModeInsightWidgetDescription.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,qCAAqC,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAGjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAoD,CAC/F,KAAK,EACP,EAAE;IACA,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACnF,MAAM,aAAa,GAAG,oBAAoB,CAAC,qCAAqC,CAAC,CAAC;IAClF,MAAM,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,EAAE,gBAAgB,EAAE,GAAG,6BAA6B,EAAE,CAAC;IAE7D,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,KAAM,UAAU;QAC3C,oBAAC,uBAAuB,IACpB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,GACpC,CACA,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightWidgetDescriptionTrigger.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/InsightWidgetDescriptionTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightWidgetDescriptionTrigger.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/InsightWidgetDescriptionTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,EAAE,qCAAqC,EAAE,MAAM,YAAY,CAAC;AAGnE,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CAAC,qCAAqC,CA+B3F,CAAC"}
|
|
@@ -2,21 +2,26 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { objRefToString, widgetRef } from "@gooddata/sdk-model";
|
|
4
4
|
import { stringUtils } from "@gooddata/util";
|
|
5
|
+
import { useDashboardUserInteraction, useDashboardSelector, selectEnableRichTextDynamicReferences, } from "../../../model/index.js";
|
|
6
|
+
import { useDashboardComponentsContext } from "../../dashboardContexts/index.js";
|
|
7
|
+
import { useRichTextFilters } from "../../../_staging/sharedHooks/useRichTextFilters.js";
|
|
5
8
|
import { DescriptionClickTrigger } from "./DescriptionClickTrigger.js";
|
|
6
|
-
import { useDashboardUserInteraction } from "../../../model/index.js";
|
|
7
9
|
import { useInsightWidgetDescription } from "./useInsightWidgetDescription.js";
|
|
8
10
|
export const InsightWidgetDescriptionTrigger = (props) => {
|
|
9
11
|
const { widget } = props;
|
|
10
12
|
const { isVisible, description, useRichText } = useInsightWidgetDescription(props);
|
|
11
13
|
const widgetRefAsString = objRefToString(widgetRef(widget));
|
|
12
14
|
const userInteraction = useDashboardUserInteraction();
|
|
15
|
+
const useReferences = useDashboardSelector(selectEnableRichTextDynamicReferences);
|
|
16
|
+
const filters = useRichTextFilters(widget);
|
|
17
|
+
const { LoadingComponent } = useDashboardComponentsContext();
|
|
13
18
|
const eventPayload = {
|
|
14
19
|
from: "widget",
|
|
15
20
|
type: widget.configuration?.description?.source === "widget" ? "custom" : "inherit",
|
|
16
21
|
description,
|
|
17
22
|
};
|
|
18
23
|
if (isVisible) {
|
|
19
|
-
return (React.createElement(DescriptionClickTrigger, { className: `widget-description-${stringUtils.simplifyText(widgetRefAsString)}`, description: description, onOpen: () => userInteraction.descriptionTooltipOpened(eventPayload), useRichText: useRichText }));
|
|
24
|
+
return (React.createElement(DescriptionClickTrigger, { className: `widget-description-${stringUtils.simplifyText(widgetRefAsString)}`, description: description, onOpen: () => userInteraction.descriptionTooltipOpened(eventPayload), useRichText: useRichText, useReferences: useReferences, filters: filters, LoadingComponent: LoadingComponent }));
|
|
20
25
|
}
|
|
21
26
|
return null;
|
|
22
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightWidgetDescriptionTrigger.js","sourceRoot":"","sources":["../../../../src/presentation/widget/description/InsightWidgetDescriptionTrigger.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"InsightWidgetDescriptionTrigger.js","sourceRoot":"","sources":["../../../../src/presentation/widget/description/InsightWidgetDescriptionTrigger.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EACH,2BAA2B,EAE3B,oBAAoB,EACpB,qCAAqC,GACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAEzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,MAAM,CAAC,MAAM,+BAA+B,GAAoD,CAAC,KAAK,EAAE,EAAE;IACtG,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACnF,MAAM,iBAAiB,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAE5D,MAAM,eAAe,GAAG,2BAA2B,EAAE,CAAC;IAEtD,MAAM,aAAa,GAAG,oBAAoB,CAAC,qCAAqC,CAAC,CAAC;IAClF,MAAM,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,EAAE,gBAAgB,EAAE,GAAG,6BAA6B,EAAE,CAAC;IAE7D,MAAM,YAAY,GAAiC;QAC/C,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM,CAAC,aAAa,EAAE,WAAW,EAAE,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;QACnF,WAAW;KACd,CAAC;IAEF,IAAI,SAAS,EAAE,CAAC;QACZ,OAAO,CACH,oBAAC,uBAAuB,IACpB,SAAS,EAAE,sBAAsB,WAAW,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,EAC9E,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,wBAAwB,CAAC,YAAY,CAAC,EACpE,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CAAC;IACN,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { IInsight, IInsightWidget, ScreenSize } from "@gooddata/sdk-model";
|
|
2
|
-
import
|
|
1
|
+
import { IFilter, IInsight, IInsightWidget, ScreenSize } from "@gooddata/sdk-model";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { DescriptionExportData } from "../../export/index.js";
|
|
3
4
|
export interface IInsightWidgetDescriptionTriggerProps {
|
|
4
5
|
widget: IInsightWidget;
|
|
5
6
|
insight?: IInsight;
|
|
@@ -11,5 +12,8 @@ export interface IDescriptionClickTriggerProps {
|
|
|
11
12
|
description?: string;
|
|
12
13
|
onOpen?: () => void;
|
|
13
14
|
useRichText?: boolean;
|
|
15
|
+
useReferences?: boolean;
|
|
16
|
+
LoadingComponent?: React.ComponentType;
|
|
17
|
+
filters?: IFilter[];
|
|
14
18
|
}
|
|
15
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,WAAW,qCAAqC;IAClD,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC;AAED,MAAM,WAAW,6BAA6B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;CACvB"}
|
|
@@ -3,6 +3,7 @@ export { useCustomWidgetExecutionDataView, useCustomWidgetInsightDataView, useIn
|
|
|
3
3
|
export * from "./insight/index.js";
|
|
4
4
|
export * from "./insightMenu/index.js";
|
|
5
5
|
export * from "./richText/index.js";
|
|
6
|
+
export * from "./richTextMenu/index.js";
|
|
6
7
|
export * from "./visualizationSwitcher/index.js";
|
|
7
8
|
export * from "./dashboardLayout/index.js";
|
|
8
9
|
export * from "./widget/index.js";
|
|
@@ -1 +1 @@
|
|
|
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,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC"}
|
|
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,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC"}
|
|
@@ -2,6 +2,7 @@ export { useCustomWidgetExecutionDataView, useCustomWidgetInsightDataView, useIn
|
|
|
2
2
|
export * from "./insight/index.js";
|
|
3
3
|
export * from "./insightMenu/index.js";
|
|
4
4
|
export * from "./richText/index.js";
|
|
5
|
+
export * from "./richTextMenu/index.js";
|
|
5
6
|
export * from "./visualizationSwitcher/index.js";
|
|
6
7
|
export * from "./dashboardLayout/index.js";
|
|
7
8
|
export * from "./widget/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"AASA,OAAO,EACH,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/widget/index.ts"],"names":[],"mappings":"AASA,OAAO,EACH,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC"}
|
package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInsight.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DashboardInsight.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.tsx"],"names":[],"mappings":";AA2CA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAqCxD;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,sBAAsB,KAAG,WAqRhE,CAAC"}
|
package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useBackendStrict, useWorkspaceStrict, } from "@gooddata/sdk-ui";
|
|
|
6
6
|
import stringify from "json-stable-stringify";
|
|
7
7
|
import cx from "classnames";
|
|
8
8
|
import { useDashboardComponentsContext } from "../../../../dashboardContexts/index.js";
|
|
9
|
-
import { selectColorPalette, selectDrillableItems, selectIsExport, selectLocale, selectMapboxToken, selectSeparators, selectSettings, useDashboardAsyncRender, useDashboardSelector, useWidgetExecutionsHandler, selectIsInEditMode, selectCrossFilteringSelectedPointsByWidgetRef, useWidgetFilters, selectEnableExecutionCancelling, } from "../../../../../model/index.js";
|
|
9
|
+
import { selectColorPalette, selectDrillableItems, selectIsExport, selectLocale, selectMapboxToken, selectSeparators, selectSettings, useDashboardAsyncRender, useDashboardSelector, useWidgetExecutionsHandler, selectIsInEditMode, selectCrossFilteringSelectedPointsByWidgetRef, useWidgetFilters, selectEnableExecutionCancelling, selectExecutionTimestamp, } from "../../../../../model/index.js";
|
|
10
10
|
import { useResolveDashboardInsightProperties } from "../useResolveDashboardInsightProperties.js";
|
|
11
11
|
import { useDashboardInsightDrills } from "./useDashboardInsightDrills.js";
|
|
12
12
|
import { CustomError } from "../CustomError/CustomError.js";
|
|
@@ -176,6 +176,8 @@ export const DashboardInsight = (props) => {
|
|
|
176
176
|
// if filter status is success and visualization is loading, render both loading and insight
|
|
177
177
|
const loading = filtersStatus === "running" || isVisualizationLoading;
|
|
178
178
|
const exportDataVis = useVisualizationExportData(exportData, isVisualizationInitializing, !!effectiveError);
|
|
179
|
+
const executionTimestamp = useDashboardSelector(selectExecutionTimestamp);
|
|
180
|
+
const execConfig = useMemo(() => ({ timestamp: executionTimestamp }), [executionTimestamp]);
|
|
179
181
|
const renderComponent = () => {
|
|
180
182
|
if (effectiveError) {
|
|
181
183
|
return (React.createElement(CustomError, { error: effectiveError, isCustomWidgetHeightEnabled: !!settings?.enableKDWidgetCustomHeight, height: clientHeight, width: clientWidth }));
|
|
@@ -188,7 +190,7 @@ export const DashboardInsight = (props) => {
|
|
|
188
190
|
React.createElement(InsightBody, { widget: widget, insight: insightWithAddedWidgetProperties, backend: effectiveBackend, workspace: effectiveWorkspace, drillableItems: drillableItems, onDrill: onDrill, config: {
|
|
189
191
|
...chartConfig,
|
|
190
192
|
selectedPoints: crossFilteringSelectedPoints,
|
|
191
|
-
}, onLoadingChanged: handleLoadingChanged, locale: locale, settings: settings, colorPalette: colorPalette, onError: handleError, pushData: handlePushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent, onExportReady: onExportReady, afterRender: handleAfterRender }))) : null));
|
|
193
|
+
}, onLoadingChanged: handleLoadingChanged, locale: locale, settings: settings, colorPalette: colorPalette, onError: handleError, pushData: handlePushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent, onExportReady: onExportReady, afterRender: handleAfterRender, execConfig: execConfig }))) : null));
|
|
192
194
|
}
|
|
193
195
|
};
|
|
194
196
|
return (React.createElement("div", { className: cx("visualization-content", {
|
package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInsight.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAiB,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhG,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"DashboardInsight.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAiB,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhG,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAEH,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,SAAS,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAKH,gBAAgB,EAChB,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EACH,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,EAClB,6CAA6C,EAC7C,gBAAgB,EAChB,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAElG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,uCAAuC,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE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B,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,iBAAiB,EAC9B,UAAU,EAAE,UAAU,GACxB,CACA,CACT,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;QACN,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACH,6BACI,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE;YACnC,cAAc,EAAE,YAAY;SAC/B,CAAC,KACE,aAAa;QAEjB,6BACI,SAAS,EAAE,EAAE,CAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,EACnE,KAAK,EAAE,oBAAoB;YAE3B,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM,IAAG,eAAe,EAAE,CAAe,CAC5D,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillDialogInsight.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DrillDialogInsight.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.tsx"],"names":[],"mappings":";AA0BA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AA4BxD;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAAW,sBAAsB,KAAG,WA4IlE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// (C) 2020-
|
|
2
|
-
import React, { useCallback, useMemo, useState } from "react";
|
|
1
|
+
// (C) 2020-2025 GoodData Corporation
|
|
2
|
+
import React, { useCallback, useMemo, useState, useEffect } from "react";
|
|
3
3
|
import { createSelector } from "@reduxjs/toolkit";
|
|
4
4
|
import { insightSetFilters, insightVisualizationUrl } from "@gooddata/sdk-model";
|
|
5
5
|
import { useBackendStrict, useWorkspaceStrict, } from "@gooddata/sdk-ui";
|
|
6
|
-
import { useDashboardSelector, selectColorPalette, selectLocale, selectMapboxToken, selectSeparators, selectSettings, selectIsExport, selectDrillableItems, useWidgetFilters, } from "../../../../../model/index.js";
|
|
6
|
+
import { useDashboardSelector, selectColorPalette, selectLocale, selectMapboxToken, selectSeparators, selectSettings, selectIsExport, selectDrillableItems, useWidgetFilters, selectExecutionTimestamp, } from "../../../../../model/index.js";
|
|
7
7
|
import { useResolveDashboardInsightProperties } from "../useResolveDashboardInsightProperties.js";
|
|
8
8
|
import { useDrillDialogInsightDrills } from "./useDrillDialogInsightDrills.js";
|
|
9
9
|
import { CustomError } from "../CustomError/CustomError.js";
|
|
@@ -25,7 +25,7 @@ const selectChartConfig = createSelector([selectMapboxToken, selectSeparators, s
|
|
|
25
25
|
* @internal
|
|
26
26
|
*/
|
|
27
27
|
export const DrillDialogInsight = (props) => {
|
|
28
|
-
const { insight, widget, backend, workspace, onError, onDrill: onDrillFn, onExportReady, onLoadingChanged, pushData, ErrorComponent, LoadingComponent, } = props;
|
|
28
|
+
const { insight, widget, backend, workspace, onError, onDrill: onDrillFn, onExportReady, onLoadingChanged, onWidgetFiltersReady, pushData, ErrorComponent, LoadingComponent, } = props;
|
|
29
29
|
// Context
|
|
30
30
|
const effectiveBackend = useBackendStrict(backend);
|
|
31
31
|
const effectiveWorkspace = useWorkspaceStrict(workspace);
|
|
@@ -76,6 +76,11 @@ export const DrillDialogInsight = (props) => {
|
|
|
76
76
|
const insightWrapperStyle = useMemo(() => {
|
|
77
77
|
return isVisualizationLoading || effectiveError ? { height: 0 } : undefined;
|
|
78
78
|
}, [isVisualizationLoading, effectiveError]);
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
onWidgetFiltersReady?.(filtersForInsight);
|
|
81
|
+
}, [filtersForInsight, onWidgetFiltersReady]);
|
|
82
|
+
const executionTimestamp = useDashboardSelector(selectExecutionTimestamp);
|
|
83
|
+
const execConfig = useMemo(() => ({ timestamp: executionTimestamp }), [executionTimestamp]);
|
|
79
84
|
return (React.createElement("div", { style: insightStyle },
|
|
80
85
|
React.createElement("div", { style: insightPositionStyle },
|
|
81
86
|
React.createElement(IntlWrapper, { locale: locale },
|
|
@@ -84,6 +89,6 @@ export const DrillDialogInsight = (props) => {
|
|
|
84
89
|
// drill dialog does not measure its size but is always large enough to fit the full content
|
|
85
90
|
forceFullContent: true })) : null,
|
|
86
91
|
filtersStatus === "success" ? (React.createElement("div", { className: "insight-view-visualization", style: insightWrapperStyle },
|
|
87
|
-
React.createElement(InsightBody, { widget: widget, insight: insightWithAddedWidgetProperties, backend: effectiveBackend, workspace: effectiveWorkspace, drillableItems: drillableItems, onDrill: onDrill, config: chartConfig, onLoadingChanged: handleLoadingChanged, locale: locale, settings: settings, colorPalette: colorPalette, onError: handleError, onExportReady: onExportReady, pushData: handlePushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent }))) : null))));
|
|
92
|
+
React.createElement(InsightBody, { widget: widget, insight: insightWithAddedWidgetProperties, backend: effectiveBackend, workspace: effectiveWorkspace, drillableItems: drillableItems, onDrill: onDrill, config: chartConfig, onLoadingChanged: handleLoadingChanged, locale: locale, settings: settings, colorPalette: colorPalette, onError: handleError, onExportReady: onExportReady, pushData: handlePushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent, execConfig: execConfig }))) : null))));
|
|
88
93
|
};
|
|
89
94
|
//# sourceMappingURL=DrillDialogInsight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillDialogInsight.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAiB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DrillDialogInsight.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAoB,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAKH,gBAAgB,EAChB,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,GAC3B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,YAAY,GAAkB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAE9G,MAAM,iCAAiC,GAAG,cAAc,CACpD,CAAC,YAAY,EAAE,cAAc,EAAE,kBAAkB,CAAC,EAClD,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;IACjC,MAAM;IACN,QAAQ;IACR,YAAY;CACf,CAAC,CACL,CAAC;AAEF,MAAM,iBAAiB,GAAG,cAAc,CACpC,CAAC,iBAAi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E,gCAAgC,EACzC,OAAO,EAAE,gBAAgB,EACzB,SAAS,EAAE,kBAAkB,EAC7B,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,WAAW,EACnB,gBAAgB,EAAE,oBAAoB,EACtC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAkC,EAC5C,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,WAAW,EACpB,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,cAAc,EACxB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,UAAU,GACxB,CACA,CACT,CAAC,CAAC,CAAC,IAAI,CACE,CACZ,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightDrillDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEH,QAAQ,EAGR,cAAc,
|
|
1
|
+
{"version":3,"file":"InsightDrillDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEH,QAAQ,EAGR,cAAc,EAGjB,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,OAAO,EAAoB,MAAM,kBAAkB,CAAC;AAK7D,OAAO,EAAE,kBAAkB,EAAmB,MAAM,4BAA4B,CAAC;AAmBjF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,sBAAsB,EAAE,OAAO,CAAC;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACjC;AAoCD,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,KAAG,WA6InE,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { useInsightExport } from "../../../common/index.js";
|
|
|
8
8
|
import { WithDrillSelect } from "../../../../drill/index.js";
|
|
9
9
|
import { IntlWrapper } from "../../../../localization/index.js";
|
|
10
10
|
import { useDashboardComponentsContext } from "../../../../dashboardContexts/index.js";
|
|
11
|
-
import { useWidgetExecutionsHandler } from "../../../../../model/index.js";
|
|
11
|
+
import { selectEnableRichTextDynamicReferences, useDashboardSelector, useWidgetExecutionsHandler, } from "../../../../../model/index.js";
|
|
12
12
|
import { ThemedLoadingEqualizer } from "../../../../presentationComponents/index.js";
|
|
13
13
|
import { DASHBOARD_HEADER_OVERLAYS_Z_INDEX } from "../../../../constants/index.js";
|
|
14
14
|
import { DrillDialog } from "./DrillDialog.js";
|
|
@@ -59,6 +59,10 @@ export const InsightDrillDialog = (props) => {
|
|
|
59
59
|
setIsLoading(isLoading);
|
|
60
60
|
executionsHandler.onLoadingChanged({ isLoading });
|
|
61
61
|
}, []);
|
|
62
|
+
const [widgetFilters, setWidgetFilters] = useState(undefined);
|
|
63
|
+
const handleFiltersReady = useCallback((filters) => {
|
|
64
|
+
setWidgetFilters(filters);
|
|
65
|
+
}, []);
|
|
62
66
|
const baseInsightTitle = insightTitle(insight);
|
|
63
67
|
const { exportCSVEnabled, exportXLSXEnabled, exportCSVRawEnabled, isExportRawVisible, isExporting, onExportRawCSV, onExportCSV, onExportXLSX, } = useInsightExport({
|
|
64
68
|
title: getTitleWithBreadcrumbs(baseInsightTitle, breadcrumbs),
|
|
@@ -76,10 +80,10 @@ export const InsightDrillDialog = (props) => {
|
|
|
76
80
|
React.createElement(DrillDialog, { insightTitle: baseInsightTitle, isBackButtonVisible: breadcrumbs.length > 1, onBackButtonClick: onBackButtonClick, onCloseDialog: onClose, breadcrumbs: breadcrumbs, exportAvailable: exportXLSXEnabled || exportCSVEnabled, exportXLSXEnabled: exportXLSXEnabled, exportCSVEnabled: exportCSVEnabled, exportCSVRawEnabled: exportCSVRawEnabled, enableDrillDescription: enableDrillDescription, onExportXLSX: onExportXLSX, onExportCSV: onExportCSV, onExportCSVRaw: onExportRawCSV, isLoading: isLoading, isExporting: isExporting, isExportRawVisible: isExportRawVisible },
|
|
77
81
|
React.createElement(WithDrillSelect, { widgetRef: widget.ref, insight: props.insight, onDrillDownSuccess: onDrillDown }, ({ onDrill }) => {
|
|
78
82
|
return description && enableDrillDescription ? (React.createElement("div", { className: "drill-dialog-insight-container" },
|
|
79
|
-
React.createElement(InsightDrillDialogDescriptionContent, { isOpen: isOpen, isMobileDevice: isMobileDevice, description: description }),
|
|
83
|
+
React.createElement(InsightDrillDialogDescriptionContent, { isOpen: isOpen, isMobileDevice: isMobileDevice, description: description, widgetFilters: widgetFilters, LoadingComponent: LoadingComponent }),
|
|
80
84
|
React.createElement("div", { className: "drill-dialog-insight-container-insight" },
|
|
81
85
|
React.createElement(InsightDrillDialogDescriptionButton, { isOpen: isOpen, isMobileDevice: isMobileDevice, setIsOpen: setIsOpen }),
|
|
82
|
-
React.createElement(DrillDialogInsight, { ...props, onDrill: onDrill, onLoadingChanged: handleLoadingChanged, onError: executionsHandler.onError, pushData: executionsHandler.onPushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent })))) : (React.createElement(DrillDialogInsight, { ...props, onDrill: onDrill, onLoadingChanged: handleLoadingChanged, onError: executionsHandler.onError, pushData: executionsHandler.onPushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent }));
|
|
86
|
+
React.createElement(DrillDialogInsight, { ...props, onDrill: onDrill, onLoadingChanged: handleLoadingChanged, onError: executionsHandler.onError, onWidgetFiltersReady: handleFiltersReady, pushData: executionsHandler.onPushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent })))) : (React.createElement(DrillDialogInsight, { ...props, onDrill: onDrill, onLoadingChanged: handleLoadingChanged, onError: executionsHandler.onError, pushData: executionsHandler.onPushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent }));
|
|
83
87
|
}))))));
|
|
84
88
|
};
|
|
85
89
|
function InsightDrillDialogDescriptionButton({ isOpen, isMobileDevice, setIsOpen, }) {
|
|
@@ -93,12 +97,13 @@ function InsightDrillDialogDescriptionButton({ isOpen, isMobileDevice, setIsOpen
|
|
|
93
97
|
ariaLabel: accessibilityAriaLabel,
|
|
94
98
|
}, value: React.createElement(UiIcon, { type: "question", size: 18 }) }));
|
|
95
99
|
}
|
|
96
|
-
function InsightDrillDialogDescriptionContent({ isOpen, isMobileDevice, description, }) {
|
|
100
|
+
function InsightDrillDialogDescriptionContent({ isOpen, isMobileDevice, description, widgetFilters, LoadingComponent, }) {
|
|
101
|
+
const isRichTextReferencesEnabled = useDashboardSelector(selectEnableRichTextDynamicReferences);
|
|
97
102
|
return (React.createElement("div", { className: cx("drill-dialog-insight-container-description", {
|
|
98
103
|
"drill-dialog-insight-container-description--open": isOpen,
|
|
99
104
|
"drill-dialog-insight-container-description--mobile": isMobileDevice,
|
|
100
105
|
}) },
|
|
101
106
|
React.createElement("div", { className: "drill-dialog-insight-container-description-content" },
|
|
102
|
-
React.createElement(RichText, { value: description, renderMode: "view" }))));
|
|
107
|
+
React.createElement(RichText, { value: description, renderMode: "view", referencesEnabled: isRichTextReferencesEnabled, filters: widgetFilters, LoadingComponent: LoadingComponent }))));
|
|
103
108
|
}
|
|
104
109
|
//# sourceMappingURL=InsightDrillDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightDrillDialog.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EACH,KAAK,EAEL,YAAY,EACZ,SAAS,
|
|
1
|
+
{"version":3,"file":"InsightDrillDialog.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EACH,KAAK,EAEL,YAAY,EACZ,SAAS,GAIZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,MAAM,EACN,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,yBAAyB,EACzB,QAAQ,EACR,MAAM,EACN,aAAa,GAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAsB,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EACH,qCAAqC,EACrC,oBAAoB,EACpB,0BAA0B,GAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAEnF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,yGAAyG;AACzG,MAAM,iBAAiB,GAAG,iBAAiB,CAA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,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAE,EAAE,GAAI,GAC7C,CACL,CAAC;AACN,CAAC;AAUD,SAAS,oCAAoC,CAAC,EAC1C,MAAM,EACN,cAAc,EACd,WAAW,EACX,aAAa,EACb,gBAAgB,GACwB;IACxC,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,qCAAqC,CAAC,CAAC;IAEhG,OAAO,CACH,6BACI,SAAS,EAAE,EAAE,CAAC,4CAA4C,EAAE;YACxD,kDAAkD,EAAE,MAAM;YAC1D,oDAAoD,EAAE,cAAc;SACvE,CAAC;QAEF,6BAAK,SAAS,EAAC,oDAAoD;YAC/D,oBAAC,QAAQ,IACL,KAAK,EAAE,WAAW,EAClB,UAAU,EAAC,MAAM,EACjB,iBAAiB,EAAE,2BAA2B,EAC9C,OAAO,EAAE,aAAa,EACtB,gBAAgB,EAAE,gBAAgB,GACpC,CACA,CACJ,CACT,CAAC;AACN,CAAC"}
|
|
@@ -6,6 +6,8 @@ interface IExportOptionsProps extends IInsightMenuSubmenuComponentProps {
|
|
|
6
6
|
isExportVisible: boolean;
|
|
7
7
|
isExportRawVisible: boolean;
|
|
8
8
|
exportCSVRawDisabled: boolean;
|
|
9
|
+
exportPdfPresentationDisabled: boolean;
|
|
10
|
+
exportPowerPointPresentationDisabled: boolean;
|
|
9
11
|
onExportCSV: () => void;
|
|
10
12
|
onExportRawCSV: () => void;
|
|
11
13
|
onExportXLSX: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportOptions.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/ExportOptions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAuC/E,UAAU,mBAAoB,SAAQ,iCAAiC;IACnE,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,8BAA8B,EAAE,MAAM,IAAI,CAAC;IAC3C,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ExportOptions.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/ExportOptions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAuC/E,UAAU,mBAAoB,SAAQ,iCAAiC;IACnE,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,6BAA6B,EAAE,OAAO,CAAC;IACvC,oCAAoC,EAAE,OAAO,CAAC;IAC9C,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,8BAA8B,EAAE,MAAM,IAAI,CAAC;IAC3C,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyJvD,CAAC"}
|
|
@@ -27,29 +27,32 @@ const MenuItem = ({ className, disabled, messageId, onClick, icon }) => {
|
|
|
27
27
|
React.createElement(FormattedMessage, { id: messageId })));
|
|
28
28
|
};
|
|
29
29
|
const MenuItemWithBubble = withBubble(MenuItem);
|
|
30
|
-
export const ExportOptions = ({ widget, onClose, exportCsvDisabled, exportXLSVDisabled, exportCSVRawDisabled, isExportRawVisible, isExportVisible, onExportCSV, onExportRawCSV, onExportXLSX, onExportPowerPointPresentation, onExportPdfPresentation, }) => {
|
|
30
|
+
export const ExportOptions = ({ widget, onClose, exportCsvDisabled, exportXLSVDisabled, exportCSVRawDisabled, exportPdfPresentationDisabled, exportPowerPointPresentationDisabled, isExportRawVisible, isExportVisible, onExportCSV, onExportRawCSV, onExportXLSX, onExportPowerPointPresentation, onExportPdfPresentation, }) => {
|
|
31
31
|
const intl = useIntl();
|
|
32
32
|
const execution = useDashboardSelector(selectExecutionResultByRef(widget.ref));
|
|
33
33
|
const settings = useDashboardSelector(selectSettings);
|
|
34
34
|
const tooltip = getExportTooltip(execution, settings?.enableRawExports);
|
|
35
|
+
const presentationTooltip = intl.formatMessage({
|
|
36
|
+
id: "options.menu.export.presentation.unsupported.oldWidget",
|
|
37
|
+
});
|
|
35
38
|
return (React.createElement(React.Fragment, null,
|
|
36
39
|
React.createElement(OverlayControllerProvider, { overlayController: overlayController },
|
|
37
40
|
React.createElement(ItemsWrapper, { className: "gd-configuration-export-options", smallItemsSpacing: true },
|
|
38
41
|
isExportVisible ? (React.createElement(React.Fragment, null,
|
|
39
|
-
React.createElement(MenuItem, { onClick: () => {
|
|
42
|
+
!exportPdfPresentationDisabled ? (React.createElement(MenuItem, { onClick: () => {
|
|
40
43
|
onClose();
|
|
41
44
|
onExportPdfPresentation();
|
|
42
|
-
}, disabled:
|
|
43
|
-
React.createElement(MenuItem, { onClick: () => {
|
|
45
|
+
}, disabled: exportPdfPresentationDisabled, className: "gd-export-options-pdf-presentation", icon: "gd-icon-type-pdf", messageId: "options.menu.export.presentation.PDF" })) : (React.createElement(MenuItemWithBubble, { className: "gd-export-options-pdf-presentation", icon: "gd-icon-type-pdf", disabled: exportPdfPresentationDisabled, messageId: "options.menu.export.presentation.PDF", showBubble: true, alignPoints: alignPoints, bubbleTextId: presentationTooltip })),
|
|
46
|
+
!exportPowerPointPresentationDisabled ? (React.createElement(MenuItem, { onClick: () => {
|
|
44
47
|
onClose();
|
|
45
48
|
onExportPowerPointPresentation();
|
|
46
|
-
}, disabled:
|
|
47
|
-
React.createElement(Header, null, intl.formatMessage({ id: "options.menu.export.header.data" })))) : null,
|
|
49
|
+
}, disabled: exportPowerPointPresentationDisabled, className: "gd-export-options-pptx-presentation", icon: "gd-icon-type-slides", messageId: "options.menu.export.presentation.PPTX" })) : (React.createElement(MenuItemWithBubble, { className: "gd-export-options-pptx-presentation", icon: "gd-icon-type-slides", disabled: exportPowerPointPresentationDisabled, messageId: "options.menu.export.presentation.PPTX", showBubble: true, alignPoints: alignPoints, bubbleTextId: presentationTooltip })))) : null,
|
|
48
50
|
isExportRawVisible ? (React.createElement(React.Fragment, null,
|
|
51
|
+
React.createElement(Header, null, intl.formatMessage({ id: "options.menu.export.header.data" })),
|
|
49
52
|
!exportXLSVDisabled ? (React.createElement(MenuItem, { className: "gd-export-options-xlsx", icon: "gd-icon-type-sheet", onClick: () => {
|
|
50
53
|
onClose();
|
|
51
54
|
onExportXLSX();
|
|
52
|
-
}, disabled: exportXLSVDisabled, messageId: "widget.options.menu.XLSX" })) : (React.createElement(MenuItemWithBubble, { className: "gd-export-options-xlsx", icon: "gd-icon-type-
|
|
55
|
+
}, disabled: exportXLSVDisabled, messageId: "widget.options.menu.XLSX" })) : (React.createElement(MenuItemWithBubble, { className: "gd-export-options-xlsx", icon: "gd-icon-type-sheet", disabled: exportXLSVDisabled, messageId: "widget.options.menu.XLSX", showBubble: true, alignPoints: alignPoints, bubbleTextId: tooltip })),
|
|
53
56
|
!exportCsvDisabled ? (React.createElement(MenuItem, { onClick: () => {
|
|
54
57
|
onClose();
|
|
55
58
|
onExportCSV();
|