@gooddata/sdk-ui-dashboard 9.9.2-beta.8 → 9.9.2
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/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/errors/errorPredicates.d.ts +12 -0
- package/esm/_staging/errors/errorPredicates.d.ts.map +1 -1
- package/esm/_staging/errors/errorPredicates.js +13 -1
- package/esm/_staging/errors/errorPredicates.js.map +1 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +2 -0
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +31 -0
- package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js.map +1 -0
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/index.d.ts +3 -3
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +1 -1
- package/esm/model/commands/index.js.map +1 -1
- package/esm/model/commands/insight.d.ts +28 -1
- package/esm/model/commands/insight.d.ts.map +1 -1
- package/esm/model/commands/insight.js +19 -1
- package/esm/model/commands/insight.js.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts +8 -0
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js +26 -4
- package/esm/model/store/executionResults/executionResultsSelectors.js.map +1 -1
- package/esm/model/store/executionResults/types.d.ts +1 -0
- package/esm/model/store/executionResults/types.d.ts.map +1 -1
- package/esm/model/store/executionResults/types.js +1 -1
- package/esm/model/store/index.d.ts +1 -1
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +1 -1
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/ui/uiSelectors.js +1 -1
- package/esm/presentation/localization/bundles/en-AU.json +5 -5
- package/esm/presentation/localization/bundles/en-GB.json +8 -8
- package/esm/presentation/localization/bundles/es-419.json +1 -1
- package/esm/presentation/localization/bundles/fr-CA.json +1 -1
- package/esm/presentation/localization/translations.js +2 -2
- package/esm/presentation/localization/translations.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/ScheduledMailDialogRenderer/RepeatSelect/RepeatTypeSelect.js +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/ScheduledMailDialogRenderer/RepeatSelect/RepeatTypeSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.d.ts +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.js +9 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/datetime.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 +14 -2
- package/esm/presentation/widget/common/useInsightExport.js.map +1 -1
- package/esm/presentation/widget/common/useRawExportHandler.d.ts +5 -0
- package/esm/presentation/widget/common/useRawExportHandler.d.ts.map +1 -0
- package/esm/presentation/widget/common/useRawExportHandler.js +39 -0
- package/esm/presentation/widget/common/useRawExportHandler.js.map +1 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.d.ts +2 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.js +3 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialog.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 +17 -4
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.d.ts +2 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.js +12 -5
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.d.ts +13 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.d.ts.map +1 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.js +45 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.js.map +1 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +3 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts +4 -0
- package/esm/presentation/widget/insight/configuration/ExportOptions.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/ExportOptions.js +49 -0
- package/esm/presentation/widget/insight/configuration/ExportOptions.js.map +1 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +2 -2
- 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 +15 -5
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.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/insightMenu/index.js +1 -1
- package/esm/presentation/widget/insightMenu/types.d.ts +14 -3
- package/esm/presentation/widget/insightMenu/types.d.ts.map +1 -1
- package/esm/presentation/widget/warningPartialResult/InsightWidgetWarningPartialResult.d.ts +14 -0
- package/esm/presentation/widget/warningPartialResult/InsightWidgetWarningPartialResult.d.ts.map +1 -0
- package/esm/presentation/widget/warningPartialResult/InsightWidgetWarningPartialResult.js +32 -0
- package/esm/presentation/widget/warningPartialResult/InsightWidgetWarningPartialResult.js.map +1 -0
- package/esm/presentation/widget/warningPartialResult/MobileWarningPartialResultOverlay.d.ts +10 -0
- package/esm/presentation/widget/warningPartialResult/MobileWarningPartialResultOverlay.d.ts.map +1 -0
- package/esm/presentation/widget/warningPartialResult/MobileWarningPartialResultOverlay.js +22 -0
- package/esm/presentation/widget/warningPartialResult/MobileWarningPartialResultOverlay.js.map +1 -0
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +12 -2
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +3 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +4 -2
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightWarning.d.ts +6 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightWarning.d.ts.map +1 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightWarning.js +11 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightWarning.js.map +1 -0
- package/esm/sdk-ui-dashboard.d.ts +54 -5
- package/package.json +15 -15
- package/styles/css/configurationPanel.css +12 -0
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +101 -0
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/drillDialog.css +10 -0
- package/styles/css/drillDialog.css.map +1 -1
- package/styles/css/main.css +123 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/configurationPanel.scss +14 -0
- package/styles/scss/dashboard.scss +120 -1
- package/styles/scss/drillDialog.scss +13 -1
- /package/esm/presentation/localization/bundles/{zh-Yue.json → zh-HK.json} +0 -0
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2024 GoodData Corporation
|
|
2
2
|
import React, { useCallback, useMemo, useState } from "react";
|
|
3
3
|
import { createSelector } from "@reduxjs/toolkit";
|
|
4
|
-
import { insightSetFilters, insightVisualizationUrl } from "@gooddata/sdk-model";
|
|
4
|
+
import { idRef, insightSetFilters, insightVisualizationUrl, widgetTitle } from "@gooddata/sdk-model";
|
|
5
5
|
import { useBackendStrict, useWorkspaceStrict, } from "@gooddata/sdk-ui";
|
|
6
6
|
import { useDashboardSelector, selectColorPalette, selectLocale, selectMapboxToken, selectSeparators, selectSettings, selectIsExport, selectDrillableItems, } from "../../../../../model/index.js";
|
|
7
|
-
import { useWidgetFilters } from "../../../common/index.js";
|
|
7
|
+
import { useInsightExport, useWidgetFilters } from "../../../common/index.js";
|
|
8
8
|
import { useResolveDashboardInsightProperties } from "../useResolveDashboardInsightProperties.js";
|
|
9
9
|
import { useDrillDialogInsightDrills } from "./useDrillDialogInsightDrills.js";
|
|
10
10
|
import { CustomError } from "../CustomError/CustomError.js";
|
|
11
11
|
import { IntlWrapper } from "../../../../localization/index.js";
|
|
12
12
|
import { InsightBody } from "../../InsightBody.js";
|
|
13
|
+
import { InsightWidgetWarningPartialResult } from "../../../../../presentation/widget/warningPartialResult/InsightWidgetWarningPartialResult.js";
|
|
14
|
+
import { useInsightWarning } from "../../../../../presentation/widget/widget/InsightWidget/useInsightWarning.js";
|
|
15
|
+
import { useIntl } from "react-intl";
|
|
13
16
|
const insightStyle = { width: "100%", height: "100%", position: "relative", flex: "1 1 auto" };
|
|
17
|
+
const DRILL_MODAL_EXECUTION_PSEUDO_REF = idRef("@@GDC_DRILL_MODAL");
|
|
14
18
|
const selectCommonDashboardInsightProps = createSelector([selectLocale, selectSettings, selectColorPalette], (locale, settings, colorPalette) => ({
|
|
15
19
|
locale,
|
|
16
20
|
settings,
|
|
@@ -27,6 +31,8 @@ const selectChartConfig = createSelector([selectMapboxToken, selectSeparators, s
|
|
|
27
31
|
*/
|
|
28
32
|
export const DrillDialogInsight = (props) => {
|
|
29
33
|
const { insight, widget, backend, workspace, onError, onDrill: onDrillFn, onExportReady, onLoadingChanged, pushData, ErrorComponent, LoadingComponent, } = props;
|
|
34
|
+
// Intl
|
|
35
|
+
const intl = useIntl();
|
|
30
36
|
// Context
|
|
31
37
|
const effectiveBackend = useBackendStrict(backend);
|
|
32
38
|
const effectiveWorkspace = useWorkspaceStrict(workspace);
|
|
@@ -52,6 +58,12 @@ export const DrillDialogInsight = (props) => {
|
|
|
52
58
|
insight: insightWithAddedFilters ?? insight,
|
|
53
59
|
onDrill: onDrillFn,
|
|
54
60
|
});
|
|
61
|
+
const { isExportRawInNewUiVisible, onExportRawCSV } = useInsightExport({
|
|
62
|
+
widgetRef: widget.ref,
|
|
63
|
+
title: widgetTitle(widget) || intl.formatMessage({ id: "export.defaultTitle" }),
|
|
64
|
+
insight,
|
|
65
|
+
});
|
|
66
|
+
const { partialResultWarning, executionResult } = useInsightWarning(DRILL_MODAL_EXECUTION_PSEUDO_REF);
|
|
55
67
|
const handlePushData = useCallback((data) => {
|
|
56
68
|
onPushData(data);
|
|
57
69
|
pushData?.(data);
|
|
@@ -85,6 +97,7 @@ export const DrillDialogInsight = (props) => {
|
|
|
85
97
|
// drill dialog does not measure its size but is always large enough to fit the full content
|
|
86
98
|
forceFullContent: true })) : null,
|
|
87
99
|
filtersStatus === "success" ? (React.createElement("div", { className: "insight-view-visualization", style: insightWrapperStyle },
|
|
88
|
-
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 })
|
|
100
|
+
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 }),
|
|
101
|
+
settings["pixtab.enablePartialReports"] && partialResultWarning.length > 0 ? (React.createElement(InsightWidgetWarningPartialResult, { className: "gd-drill-warning-partial-result", partialResultWarning: partialResultWarning, onExportRawCSV: onExportRawCSV, executionResult: executionResult, isLoading: executionResult?.isLoading, isExportRawInNewUiVisible: isExportRawInNewUiVisible })) : null)) : null))));
|
|
89
102
|
};
|
|
90
103
|
//# 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;AAE7E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,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,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACrG,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,GACvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC9E,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,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iCAAiC,EAC3C,oBAAoB,EAAE,oBAAoB,EAC1C,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAgB,EACjC,SAAS,EAAE,eAAe,EAAE,SAAS,EACrC,yBAAyB,EAAE,yBAAyB,GACtD,CACL,CAAC,CAAC,CAAC,IAAI,CACN,CACT,CAAC,CAAC,CAAC,IAAI,CACE,CACZ,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -5,7 +5,9 @@ export interface IDrillModalFooterProps {
|
|
|
5
5
|
onExportXLSX: () => void;
|
|
6
6
|
exportCSVEnabled: boolean;
|
|
7
7
|
onExportCSV: () => void;
|
|
8
|
+
onExportCSVRaw: () => void;
|
|
8
9
|
isLoading: boolean;
|
|
10
|
+
isExportRawInNewUiVisible: boolean;
|
|
9
11
|
}
|
|
10
12
|
export declare const DrillModalFooter: React.FC<IDrillModalFooterProps>;
|
|
11
13
|
//# sourceMappingURL=DrillModalFooter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillModalFooter.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DrillModalFooter.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAQ9D,MAAM,WAAW,sBAAsB;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,yBAAyB,EAAE,OAAO,CAAC;CACtC;AAID,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAyF7D,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
// (C) 2021 GoodData Corporation
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
import React, { useState, useCallback, useMemo } from "react";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { BubbleHoverTrigger, Bubble } from "@gooddata/sdk-ui-kit";
|
|
6
6
|
import DrillModalExportOptions from "./DrillModalExportOptions.js";
|
|
7
|
+
import DrillModalRawExportOptions from "./DrillModalRawExportOptions.js";
|
|
7
8
|
const bubbleAlignPoints = [{ align: "tc bc" }];
|
|
8
|
-
export const DrillModalFooter = ({ exportAvailable, exportXLSXEnabled, onExportXLSX, exportCSVEnabled, onExportCSV, isLoading, }) => {
|
|
9
|
+
export const DrillModalFooter = ({ exportAvailable, exportXLSXEnabled, onExportXLSX, exportCSVEnabled, onExportCSV, onExportCSVRaw, isLoading, isExportRawInNewUiVisible, }) => {
|
|
9
10
|
const [showDropdown, setShowDropdown] = useState(false);
|
|
10
11
|
const toggleShowDropdown = useCallback(() => setShowDropdown((oldValue) => !oldValue), []);
|
|
11
12
|
const handleOnExportXLSX = useCallback(() => {
|
|
@@ -16,15 +17,21 @@ export const DrillModalFooter = ({ exportAvailable, exportXLSXEnabled, onExportX
|
|
|
16
17
|
onExportCSV();
|
|
17
18
|
setShowDropdown(false);
|
|
18
19
|
}, [onExportCSV]);
|
|
20
|
+
const handleOnExportCSVRaw = useCallback(() => {
|
|
21
|
+
onExportCSVRaw();
|
|
22
|
+
setShowDropdown(false);
|
|
23
|
+
}, [onExportCSVRaw]);
|
|
19
24
|
const exportDisabled = !exportAvailable || (!exportXLSXEnabled && !exportCSVEnabled);
|
|
20
25
|
const toggleButton = useMemo(() => (React.createElement("button", { onClick: toggleShowDropdown, className: cx("gd-button-link-dimmed gd-button gd-icon-download export-menu-toggle-button", {
|
|
21
|
-
disabled: exportDisabled,
|
|
26
|
+
disabled: isExportRawInNewUiVisible ? false : exportDisabled,
|
|
22
27
|
}), type: "button" },
|
|
23
28
|
React.createElement("span", { className: "gd-button-text" },
|
|
24
29
|
React.createElement(FormattedMessage, { id: "dialogs.export.submit" })))), [exportDisabled, toggleShowDropdown]);
|
|
25
30
|
return (React.createElement("div", { className: cx("s-export-drilled-insight export-drilled-insight", {
|
|
26
|
-
"is-disabled": exportDisabled,
|
|
27
|
-
}) },
|
|
31
|
+
"is-disabled": isExportRawInNewUiVisible ? false : exportDisabled,
|
|
32
|
+
}) }, isExportRawInNewUiVisible ? (React.createElement(React.Fragment, null,
|
|
33
|
+
toggleButton,
|
|
34
|
+
React.createElement(DrillModalRawExportOptions, { showDropdown: showDropdown, toggleShowDropdown: toggleShowDropdown, exportXLSXEnabled: exportXLSXEnabled, exportCSVEnabled: exportCSVEnabled, onExportXLSX: handleOnExportXLSX, onExportCSV: handleOnExportCSV, onExportCSVRaw: handleOnExportCSVRaw }))) : exportDisabled && !isLoading ? (React.createElement(BubbleHoverTrigger, null,
|
|
28
35
|
toggleButton,
|
|
29
36
|
React.createElement(Bubble, { className: "bubble-primary", alignPoints: bubbleAlignPoints },
|
|
30
37
|
React.createElement(FormattedMessage, { id: "export_unsupported.disabled" })))) : (React.createElement(React.Fragment, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillModalFooter.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"DrillModalFooter.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalFooter.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,Q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AAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,kBAAkB,EAChC,WAAW,EAAE,iBAAiB,GAChC,CACH,CACN,CACC,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IDrillModalRawExportOptionsProps {
|
|
3
|
+
showDropdown: boolean;
|
|
4
|
+
toggleShowDropdown(): void;
|
|
5
|
+
exportXLSXEnabled: boolean;
|
|
6
|
+
onExportXLSX: () => void;
|
|
7
|
+
exportCSVEnabled: boolean;
|
|
8
|
+
onExportCSV: () => void;
|
|
9
|
+
onExportCSVRaw: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const DrillModalRawExportOptions: React.FC<IDrillModalRawExportOptionsProps>;
|
|
12
|
+
export default DrillModalRawExportOptions;
|
|
13
|
+
//# sourceMappingURL=DrillModalRawExportOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrillModalRawExportOptions.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillModalRawExportOptions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,MAAM,WAAW,gCAAgC;IAC7C,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,IAAI,IAAI,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC9B;AAuDD,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CAsD1E,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { Overlay, ItemsWrapper, Item, BubbleHoverTrigger, Bubble } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { idRef } from "@gooddata/sdk-model";
|
|
6
|
+
import { selectExecutionResultByRef, useDashboardSelector } from "../../../../../model/index.js";
|
|
7
|
+
import { isDataError, isDataErrorTooLarge } from "../../../../../_staging/errors/errorPredicates.js";
|
|
8
|
+
const overlayAlignPoints = [
|
|
9
|
+
{
|
|
10
|
+
align: "tc bc",
|
|
11
|
+
offset: {
|
|
12
|
+
x: -10,
|
|
13
|
+
y: -5,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
const bubbleAlignPoints = [{ align: "cl br" }];
|
|
18
|
+
const DrillModalExportItem = ({ className, messageId, disabled, onClick, }) => {
|
|
19
|
+
return (React.createElement(Item, { onClick: onClick, className: className, disabled: disabled },
|
|
20
|
+
React.createElement(FormattedMessage, { id: messageId })));
|
|
21
|
+
};
|
|
22
|
+
const DrillModalExportMenuItem = ({ className, disabled, messageId, bubbleTextId, onClick, }) => {
|
|
23
|
+
return disabled ? (React.createElement(BubbleHoverTrigger, null,
|
|
24
|
+
React.createElement(DrillModalExportItem, { className: className, messageId: messageId, disabled: disabled }),
|
|
25
|
+
React.createElement(Bubble, { className: "bubble-primary", alignPoints: bubbleAlignPoints },
|
|
26
|
+
React.createElement(FormattedMessage, { id: bubbleTextId })))) : (React.createElement(DrillModalExportItem, { onClick: onClick, className: className, messageId: messageId, disabled: disabled }));
|
|
27
|
+
};
|
|
28
|
+
const DRILL_MODAL_EXECUTION_PSEUDO_REF = idRef("@@GDC_DRILL_MODAL");
|
|
29
|
+
const DrillModalRawExportOptions = ({ showDropdown, exportXLSXEnabled, exportCSVEnabled, toggleShowDropdown, onExportXLSX, onExportCSV, onExportCSVRaw, }) => {
|
|
30
|
+
const execution = useDashboardSelector(selectExecutionResultByRef(DRILL_MODAL_EXECUTION_PSEUDO_REF));
|
|
31
|
+
const partialWarning = execution?.warnings?.filter((warning) => warning.warningCode === "gdc.pixtab.partial") ?? [];
|
|
32
|
+
const tooltip = isDataErrorTooLarge(execution?.error) || partialWarning.length > 0
|
|
33
|
+
? "widget.drill.modal.data.too.large"
|
|
34
|
+
: isDataError(execution?.error)
|
|
35
|
+
? "options.menu.unsupported.error"
|
|
36
|
+
: "options.menu.unsupported.loading";
|
|
37
|
+
return showDropdown ? (React.createElement(Overlay, { key: "DrillModalOptionsMenu", alignTo: ".export-drilled-insight", alignPoints: overlayAlignPoints, className: "gd-header-menu-overlay s-drill-modal-export-options", closeOnOutsideClick: true, onClose: toggleShowDropdown },
|
|
38
|
+
React.createElement(ItemsWrapper, { smallItemsSpacing: true },
|
|
39
|
+
React.createElement(DrillModalExportMenuItem, { onClick: onExportXLSX, className: "options-menu-export-xlsx s-export-drilled-insight-xlsx", disabled: !exportXLSXEnabled, bubbleTextId: tooltip, messageId: "widget.drill.dialog.exportToXLSX" }),
|
|
40
|
+
React.createElement(DrillModalExportMenuItem, { onClick: onExportCSV, className: "options-menu-export-csv-formatted s-export-drilled-insight-csv-formatted", disabled: !exportCSVEnabled, bubbleTextId: tooltip, messageId: "widget.drill.dialog.exportToCSV.formatted" }),
|
|
41
|
+
React.createElement(Item, { onClick: onExportCSVRaw, className: "options-menu-export-csv-raw s-export-drilled-insight-csv" },
|
|
42
|
+
React.createElement(FormattedMessage, { id: "widget.drill.dialog.exportToCSV.raw" }))))) : null;
|
|
43
|
+
};
|
|
44
|
+
export default DrillModalRawExportOptions;
|
|
45
|
+
//# sourceMappingURL=DrillModalRawExportOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrillModalRawExportOptions.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/Dr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BAAC,wBAAwB,IACrB,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,wDAAwD,EAClE,QAAQ,EAAE,CAAC,iBAAiB,EAC5B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAC,kCAAkC,GAC9C;YACF,oBAAC,wBAAwB,IACrB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,0EAA0E,EACpF,QAAQ,EAAE,CAAC,gBAAgB,EAC3B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAC,2CAA2C,GACvD;YACF,oBAAC,IAAI,IACD,OAAO,EAAE,cAAc,EACvB,SAAS,EAAC,0DAA0D;gBAEpE,oBAAC,gBAAgB,IAAC,EAAE,EAAC,qCAAqC,GAAG,CAC1D,CACI,CACT,CACb,CAAC,CAAC,CAAC,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightDrillDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAS,QAAQ,EAAgB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAQpF,OAAO,EAAE,OAAO,EAAoB,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EAAE,kBAAkB,EAAmB,MAAM,4BAA4B,CAAC;AAajF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,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;AAYD,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,KAAG,
|
|
1
|
+
{"version":3,"file":"InsightDrillDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAS,QAAQ,EAAgB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAQpF,OAAO,EAAE,OAAO,EAAoB,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EAAE,kBAAkB,EAAmB,MAAM,4BAA4B,CAAC;AAajF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,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;AAYD,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,KAAG,WA0FnE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2024 GoodData Corporation
|
|
2
2
|
import React, { useCallback, useState } from "react";
|
|
3
3
|
import { idRef, insightTitle } from "@gooddata/sdk-model";
|
|
4
4
|
import { FullScreenOverlay, Overlay, OverlayController, OverlayControllerProvider, useMediaQuery, } from "@gooddata/sdk-ui-kit";
|
|
@@ -40,7 +40,7 @@ export const InsightDrillDialog = (props) => {
|
|
|
40
40
|
executionsHandler.onLoadingChanged({ isLoading });
|
|
41
41
|
}, []);
|
|
42
42
|
const baseInsightTitle = insightTitle(insight);
|
|
43
|
-
const { exportCSVEnabled, exportXLSXEnabled, onExportCSV, onExportXLSX } = useInsightExport({
|
|
43
|
+
const { exportCSVEnabled, exportXLSXEnabled, isExportRawInNewUiVisible, onExportCSV, onExportXLSX, onExportRawCSV, } = useInsightExport({
|
|
44
44
|
title: getTitleWithBreadcrumbs(baseInsightTitle, breadcrumbs),
|
|
45
45
|
widgetRef: DRILL_MODAL_EXECUTION_PSEUDO_REF,
|
|
46
46
|
insight,
|
|
@@ -49,7 +49,7 @@ export const InsightDrillDialog = (props) => {
|
|
|
49
49
|
return (React.createElement(OverlayControllerProvider, { overlayController: overlayController },
|
|
50
50
|
React.createElement(OverlayComponent, { className: "gd-drill-modal-overlay", isModal: true, closeOnEscape: true, closeOnOutsideClick: true, ignoreClicksOnByClass: overlayIgnoredClasses, onClose: onClose, positionType: "fixed" },
|
|
51
51
|
React.createElement(IntlWrapper, { locale: locale },
|
|
52
|
-
React.createElement(DrillDialog, { insightTitle: baseInsightTitle, isBackButtonVisible: breadcrumbs.length > 1, onBackButtonClick: onBackButtonClick, onCloseDialog: onClose, breadcrumbs: breadcrumbs, exportAvailable: exportXLSXEnabled || exportCSVEnabled, exportXLSXEnabled: exportXLSXEnabled, exportCSVEnabled: exportCSVEnabled, onExportXLSX: onExportXLSX, onExportCSV: onExportCSV, isLoading: isLoading },
|
|
52
|
+
React.createElement(DrillDialog, { insightTitle: baseInsightTitle, isBackButtonVisible: breadcrumbs.length > 1, onBackButtonClick: onBackButtonClick, onCloseDialog: onClose, breadcrumbs: breadcrumbs, exportAvailable: exportXLSXEnabled || exportCSVEnabled, exportXLSXEnabled: exportXLSXEnabled, exportCSVEnabled: exportCSVEnabled, onExportXLSX: onExportXLSX, onExportCSV: onExportCSV, onExportCSVRaw: onExportRawCSV, isLoading: isLoading, isExportRawInNewUiVisible: isExportRawInNewUiVisible },
|
|
53
53
|
React.createElement(WithDrillSelect, { widgetRef: widget.ref, insight: props.insight, onDrillDownSuccess: onDrillDown }, ({ onDrill }) => {
|
|
54
54
|
return (React.createElement(DrillDialogInsight, { ...props, onDrill: onDrill, onLoadingChanged: handleLoadingChanged, onError: executionsHandler.onError, pushData: executionsHandler.onPushData, ErrorComponent: ErrorComponent, LoadingComponent: LoadingComponent }));
|
|
55
55
|
}))))));
|
|
@@ -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,EAAE,KAAK,EAAY,YAAY,EAAkB,MAAM,qBAAqB,CAAC;AACpF,OAAO,EACH,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,yBAAyB,EACzB,aAAa,GAChB,MAAM,sBAAsB,CAAC;AAE9B,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,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAEnF,yGAAyG;AACzG,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,WAAW,CAAC,iCAAiC,CAAC,CAAC;AAe3F,MAAM,qBAAqB,GAAG;IAC1B,yBAAyB;IACzB,mBAAmB;IACnB,2BAA2B;IAC3B,0BAA0B;IAC1B,IAAI,aAAa,EAAE;CACtB,CAAC;AAEF,MAAM,gCAAgC,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAe,EAAE;IAC9E,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEhG,MAAM,cAAc,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;IAErD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,MAAM,iBAAiB,GAAG,0BAA0B,CAAC,gCAAgC,CAAC,CAAC;IAEvF,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,6BAA6B,CAAC;QACvE;;;WAGG;QACH,gBAAgB,EAAE,sBAAsB;KAC3C,CAAC,CAAC;IAEH,MAAM,oBAAoB,GAAG,WAAW,CAAmB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;QACzE,YAAY,CAAC,SAAS,CAAC,CAAC;QACxB,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IACtD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAE/C,MAAM,
|
|
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,EAAE,KAAK,EAAY,YAAY,EAAkB,MAAM,qBAAqB,CAAC;AACpF,OAAO,EACH,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,yBAAyB,EACzB,aAAa,GAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,mDAA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,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,yBAAyB,EAAE,yBAAyB;oBAEpD,oBAAC,eAAe,IACZ,SAAS,EAAE,MAAM,CAAC,GAAG,EACrB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,kBAAkB,EAAE,WAAW,IAE9B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;wBACb,OAAO,CACH,oBAAC,kBAAkB,OACX,KAAK,EACT,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,oBAAoB,EACtC,OAAO,EAAE,iBAAiB,CAAC,OAAO,EAClC,QAAQ,EAAE,iBAAiB,CAAC,UAAU,EACtC,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CAAC;oBACN,CAAC,CACa,CACR,CACJ,CACC,CACK,CAC/B,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +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;AAoB1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAyB/E,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CA4FrE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { widgetTitle } from "@gooddata/sdk-model";
|
|
4
|
+
import { OverlayControllerProvider, OverlayController, ItemsWrapper, Item, withBubble, } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { DASHBOARD_HEADER_OVERLAYS_Z_INDEX } from "../../../constants/index.js";
|
|
6
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
|
+
import { useInsightExport } from "../../common/useInsightExport.js";
|
|
8
|
+
import { selectExecutionResultByRef, selectInsightByRef, useDashboardSelector, } from "../../../../model/index.js";
|
|
9
|
+
import { isDataError, isDataErrorTooLarge } from "../../../../_staging/errors/errorPredicates.js";
|
|
10
|
+
const alignPoints = [{ align: "tl bl", offset: { x: 20, y: 0 } }];
|
|
11
|
+
const overlayController = OverlayController.getInstance(DASHBOARD_HEADER_OVERLAYS_Z_INDEX);
|
|
12
|
+
const MenuItem = ({ className, disabled, messageId, onClick }) => {
|
|
13
|
+
return (React.createElement(Item, { onClick: onClick, className: className, disabled: disabled },
|
|
14
|
+
React.createElement("div", { className: "gd-icon-download" }),
|
|
15
|
+
React.createElement(FormattedMessage, { id: messageId })));
|
|
16
|
+
};
|
|
17
|
+
const MenuItemWithBubble = withBubble(MenuItem);
|
|
18
|
+
export const ExportOptions = ({ widget, onClose }) => {
|
|
19
|
+
const intl = useIntl();
|
|
20
|
+
const insight = useDashboardSelector(selectInsightByRef(widget.insight));
|
|
21
|
+
const execution = useDashboardSelector(selectExecutionResultByRef(widget.ref));
|
|
22
|
+
const partialWarning = execution?.warnings?.filter((warning) => warning.warningCode === "gdc.pixtab.partial") ?? [];
|
|
23
|
+
const tooltip = isDataErrorTooLarge(execution?.error) || partialWarning.length > 0
|
|
24
|
+
? "options.menu.data.too.large"
|
|
25
|
+
: isDataError(execution?.error)
|
|
26
|
+
? "options.menu.unsupported.error"
|
|
27
|
+
: "options.menu.unsupported.loading";
|
|
28
|
+
const { exportCSVEnabled, exportXLSXEnabled, isExportRawInNewUiVisible, onExportCSV, onExportRawCSV, onExportXLSX, } = useInsightExport({
|
|
29
|
+
widgetRef: widget.ref,
|
|
30
|
+
title: widgetTitle(widget) || intl.formatMessage({ id: "export.defaultTitle" }),
|
|
31
|
+
insight,
|
|
32
|
+
});
|
|
33
|
+
return (React.createElement(React.Fragment, null,
|
|
34
|
+
React.createElement(OverlayControllerProvider, { overlayController: overlayController },
|
|
35
|
+
React.createElement(ItemsWrapper, { className: "gd-configuration-export-options", smallItemsSpacing: true }, isExportRawInNewUiVisible ? (React.createElement(React.Fragment, null,
|
|
36
|
+
exportXLSXEnabled ? (React.createElement(MenuItem, { className: "gd-export-options-xlsx", onClick: () => {
|
|
37
|
+
onClose();
|
|
38
|
+
onExportXLSX();
|
|
39
|
+
}, disabled: !exportXLSXEnabled, messageId: "widget.options.menu.XLSX" })) : (React.createElement(MenuItemWithBubble, { className: "gd-export-options-xlsx", disabled: !exportXLSXEnabled, messageId: "widget.options.menu.XLSX", showBubble: true, alignPoints: alignPoints, bubbleTextId: tooltip })),
|
|
40
|
+
exportCSVEnabled ? (React.createElement(MenuItem, { onClick: () => {
|
|
41
|
+
onClose();
|
|
42
|
+
onExportCSV();
|
|
43
|
+
}, className: "gd-export-options-csv", disabled: !exportCSVEnabled, messageId: "widget.options.menu.exportToCSV.formatted" })) : (React.createElement(MenuItemWithBubble, { className: "gd-export-options-csv", disabled: !exportCSVEnabled, messageId: "widget.options.menu.exportToCSV.formatted", showBubble: true, alignPoints: alignPoints, bubbleTextId: tooltip })),
|
|
44
|
+
React.createElement(MenuItem, { onClick: () => {
|
|
45
|
+
onClose();
|
|
46
|
+
onExportRawCSV();
|
|
47
|
+
}, className: "gd-export-options-csv-raw", disabled: false, messageId: "widget.options.menu.exportToCSV.raw" }))) : null))));
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=ExportOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportOptions.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/ExportOptions.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EACH,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,IAAI,EACJ,UAAU,GAEb,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,i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E,IAAI,EAChB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,OAAO,GACvB,CACL;gBACA,gBAAgB,CAAC,CAAC,CAAC,CAChB,oBAAC,QAAQ,IACL,OAAO,EAAE,GAAG,EAAE;wBACV,OAAO,EAAE,CAAC;wBACV,WAAW,EAAE,CAAC;oBAClB,CAAC,EACD,SAAS,EAAC,uBAAuB,EACjC,QAAQ,EAAE,CAAC,gBAAgB,EAC3B,SAAS,EAAC,2CAA2C,GACvD,CACL,CAAC,CAAC,CAAC,CACA,oBAAC,kBAAkB,IACf,SAAS,EAAC,uBAAuB,EACjC,QAAQ,EAAE,CAAC,gBAAgB,EAC3B,SAAS,EAAC,2CAA2C,EACrD,UAAU,EAAE,IAAI,EAChB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,OAAO,GACvB,CACL;gBACD,oBAAC,QAAQ,IACL,OAAO,EAAE,GAAG,EAAE;wBACV,OAAO,EAAE,CAAC;wBACV,cAAc,EAAE,CAAC;oBACrB,CAAC,EACD,SAAS,EAAC,2BAA2B,EACrC,QAAQ,EAAE,KAAK,EACf,SAAS,EAAC,qCAAqC,GACjD,CACH,CACN,CAAC,CAAC,CAAC,IAAI,CACG,CACS,CAC7B,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { Separator } from "@gooddata/sdk-ui-kit";
|
|
4
4
|
import { DashboardInsightMenuContainer } from "./DashboardInsightMenuContainer.js";
|
|
@@ -10,7 +10,7 @@ import { DashboardInsightEditMenuBubble } from "./DashboardInsightEditMenuBubble
|
|
|
10
10
|
const DashboardInsightMenuBody = (props) => {
|
|
11
11
|
const { items, widget, insight, submenu, setSubmenu, onClose, renderMode } = props;
|
|
12
12
|
return submenu ? (React.createElement(DashboardInsightSubmenuContainer, { onClose: onClose, title: submenu.itemName, onBack: () => setSubmenu(null) },
|
|
13
|
-
React.createElement(submenu.SubmenuComponent, { widget: widget }))) : (React.createElement(DashboardInsightMenuContainer, { onClose: onClose, widget: widget, insight: insight, renderMode: renderMode },
|
|
13
|
+
React.createElement(submenu.SubmenuComponent, { widget: widget, onClose: onClose }))) : (React.createElement(DashboardInsightMenuContainer, { onClose: onClose, widget: widget, insight: insight, renderMode: renderMode },
|
|
14
14
|
React.createElement(DashboardInsightMenuRoot, { items: items, setSubmenu: setSubmenu })));
|
|
15
15
|
};
|
|
16
16
|
export const DashboardInsightMenu = (props) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAGrF,MAAM,wBAAwB,GAM1B,CAAC,KAAK,EAAE,EAAE;IACV,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,OAAO,CAAC,CAAC,CAAC,CACb,oBAAC,gCAAgC,IAC7B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,OAAO,CAAC,QAAQ,EACvB,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QAE9B,oBAAC,OAAO,CAAC,gBAAgB,IAAC,MAAM,EAAE,MAAM,GAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAGrF,MAAM,wBAAwB,GAM1B,CAAC,KAAK,EAAE,EAAE;IACV,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,OAAO,CAAC,CAAC,CAAC,CACb,oBAAC,gCAAgC,IAC7B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,OAAO,CAAC,QAAQ,EACvB,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QAE9B,oBAAC,OAAO,CAAC,gBAAgB,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,CAC/B,CACtC,CAAC,CAAC,CAAC,CACA,oBAAC,6BAA6B,IAC1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,EAAE,IAAI,CAAC,MAAM,GAAI,CAAC;QAC3C,CAAC;QACD,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC1B,OAAO,CACH,oBAAC,8BAA8B,IAC3B,GAAG,EAAE,IAAI,CAAC,MAAM,KACZ,IAAI,EACR,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;oBACf,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;wBACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBACxB,CAAC;oBAED,UAAU,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC,EACD,OAAO,EAAE,IAAI,GACf,CACL,CAAC;QACN,CAAC;QACD,OAAO,oBAAC,8BAA8B,IAAC,GAAG,EAAE,IAAI,CAAC,MAAM,KAAM,IAAI,GAAI,CAAC;IAC1E,CAAC,CAAC,CACH,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -12,5 +12,6 @@ export declare function getDefaultInsightMenuItems(intl: IntlShape, config: {
|
|
|
12
12
|
onScheduleExport: () => void;
|
|
13
13
|
isScheduleExportVisible: boolean;
|
|
14
14
|
isDataError: boolean;
|
|
15
|
+
isExportRawInNewUiVisible: boolean;
|
|
15
16
|
}): IInsightMenuItem[];
|
|
16
17
|
//# sourceMappingURL=getDefaultInsightMenuItems.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultInsightMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"getDefaultInsightMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,IAAI,EAAE,SAAS,EACf,MAAM,EAAE;IACJ,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,uBAAuB,EAAE,OAAO,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,yBAAyB,EAAE,OAAO,CAAC;CACtC,GACF,gBAAgB,EAAE,CA2DpB"}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import compact from "lodash/compact.js";
|
|
2
|
+
import { ExportOptions } from "../../insight/configuration/ExportOptions.js";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
6
|
export function getDefaultInsightMenuItems(intl, config) {
|
|
6
|
-
const { exportCSVDisabled, exportXLSXDisabled, scheduleExportDisabled, onExportCSV, onExportXLSX, onScheduleExport, isScheduleExportVisible, isDataError, } = config;
|
|
7
|
+
const { exportCSVDisabled, exportXLSXDisabled, scheduleExportDisabled, onExportCSV, onExportXLSX, onScheduleExport, isScheduleExportVisible, isExportRawInNewUiVisible, isDataError, } = config;
|
|
7
8
|
const tooltip = isDataError
|
|
8
9
|
? intl.formatMessage({ id: "options.menu.unsupported.error" })
|
|
9
10
|
: intl.formatMessage({ id: "options.menu.unsupported.loading" });
|
|
10
|
-
|
|
11
|
-
{
|
|
11
|
+
const menuItems = [
|
|
12
|
+
isExportRawInNewUiVisible && {
|
|
13
|
+
type: "submenu",
|
|
14
|
+
itemId: "Exports",
|
|
15
|
+
itemName: intl.formatMessage({ id: "widget.options.menu.export" }),
|
|
16
|
+
icon: "gd-icon-download",
|
|
17
|
+
className: "s-options-menu-exports",
|
|
18
|
+
SubmenuComponent: ExportOptions,
|
|
19
|
+
},
|
|
20
|
+
!isExportRawInNewUiVisible && {
|
|
12
21
|
type: "button",
|
|
13
22
|
itemId: "ExportXLSXBubble",
|
|
14
23
|
itemName: intl.formatMessage({ id: "widget.options.menu.exportToXLSX" }),
|
|
@@ -18,7 +27,7 @@ export function getDefaultInsightMenuItems(intl, config) {
|
|
|
18
27
|
icon: "gd-icon-download",
|
|
19
28
|
className: "s-options-menu-export-xlsx",
|
|
20
29
|
},
|
|
21
|
-
{
|
|
30
|
+
!isExportRawInNewUiVisible && {
|
|
22
31
|
type: "button",
|
|
23
32
|
itemId: "ExportCSVBubble",
|
|
24
33
|
itemName: intl.formatMessage({ id: "widget.options.menu.exportToCSV" }),
|
|
@@ -38,6 +47,7 @@ export function getDefaultInsightMenuItems(intl, config) {
|
|
|
38
47
|
icon: "gd-icon-clock",
|
|
39
48
|
className: "s-options-menu-schedule-export",
|
|
40
49
|
},
|
|
41
|
-
]
|
|
50
|
+
];
|
|
51
|
+
return compact(menuItems);
|
|
42
52
|
}
|
|
43
53
|
//# sourceMappingURL=getDefaultInsightMenuItems.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultInsightMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"getDefaultInsightMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAE7E;;GAEG;AACH,MAAM,UAAU,0BAA0B,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,EAAE,QAAQ;YACd,MAAM,EAAE,gBAAgB;YACxB,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,oCAAoC,EAAE,CAAC;YAC1E,OAAO,EAAE,gBAAgB;YACzB,QAAQ,EAAE,sBAAsB;YAChC,OAAO;YACP,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,gCAAgC;SAC9C;KACJ,CAAC;IAEF,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -3,5 +3,5 @@ export * from "./LegacyDefaultDashboardInsightMenu/index.js";
|
|
|
3
3
|
export { DashboardInsightMenuButton } from "./DashboardInsightMenuButton.js";
|
|
4
4
|
export { DashboardInsightMenu } from "./DashboardInsightMenu.js";
|
|
5
5
|
export { DashboardInsightMenuTitle } from "./DashboardInsightMenuTitle.js";
|
|
6
|
-
export { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuSubmenu, IInsightMenuItemButton, IInsightMenuItemSeparator, } from "./types.js";
|
|
6
|
+
export { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuComponent, CustomDashboardInsightMenuTitleComponent, IDashboardInsightMenuButtonProps, IDashboardInsightMenuProps, IDashboardInsightMenuTitleProps, IInsightMenuItem, IInsightMenuSubmenu, IInsightMenuItemButton, IInsightMenuItemSeparator, IInsightMenuSubmenuComponentProps, } from "./types.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insightMenu/index.ts"],"names":[],"mappings":"AACA,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACH,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insightMenu/index.ts"],"names":[],"mappings":"AACA,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACH,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,GACpC,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2024 GoodData Corporation
|
|
2
2
|
export * from "./DefaultDashboardInsightMenu/index.js";
|
|
3
3
|
export * from "./LegacyDefaultDashboardInsightMenu/index.js";
|
|
4
4
|
export { DashboardInsightMenuButton } from "./DashboardInsightMenuButton.js";
|
|
@@ -27,6 +27,19 @@ export interface IInsightMenuItemSeparator {
|
|
|
27
27
|
type: "separator";
|
|
28
28
|
itemId: string;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @alpha
|
|
32
|
+
*/
|
|
33
|
+
export interface IInsightMenuSubmenuComponentProps {
|
|
34
|
+
/**
|
|
35
|
+
* The widget for which the menu is rendered.
|
|
36
|
+
*/
|
|
37
|
+
widget: IInsightWidget;
|
|
38
|
+
/**
|
|
39
|
+
* Closes the insight menu.
|
|
40
|
+
*/
|
|
41
|
+
onClose: () => void;
|
|
42
|
+
}
|
|
30
43
|
/**
|
|
31
44
|
* @beta
|
|
32
45
|
*/
|
|
@@ -35,9 +48,7 @@ export interface IInsightMenuSubmenu {
|
|
|
35
48
|
itemId: string;
|
|
36
49
|
itemName: string;
|
|
37
50
|
/** @alpha */
|
|
38
|
-
SubmenuComponent: ComponentType<
|
|
39
|
-
widget: IInsightWidget;
|
|
40
|
-
}>;
|
|
51
|
+
SubmenuComponent: ComponentType<IInsightMenuSubmenuComponentProps>;
|
|
41
52
|
/**
|
|
42
53
|
* If specified, the value is shown on hover of the item as a tooltip.
|
|
43
54
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insightMenu/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAM/C;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,gBAAgB,EAAE,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insightMenu/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAM/C;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QA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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IResultWarning } from "@gooddata/sdk-model";
|
|
3
|
+
import { IExecutionResultEnvelope } from "../../../model/index.js";
|
|
4
|
+
interface IInsightWidgetWarningPartialResultProps {
|
|
5
|
+
className: string;
|
|
6
|
+
partialResultWarning: IResultWarning[];
|
|
7
|
+
isExportRawInNewUiVisible: boolean;
|
|
8
|
+
executionResult: IExecutionResultEnvelope;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
onExportRawCSV: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const InsightWidgetWarningPartialResult: React.FC<IInsightWidgetWarningPartialResultProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=InsightWidgetWarningPartialResult.d.ts.map
|
package/esm/presentation/widget/warningPartialResult/InsightWidgetWarningPartialResult.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsightWidgetWarningPartialResult.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/warningPartialResult/InsightWidgetWarningPartialResult.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,UAAU,uCAAuC;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,cAAc,EAAE,CAAC;IACvC,yBAAyB,EAAE,OAAO,CAAC;IACnC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,uCAAuC,CA6D/F,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// (C) 2022-2024 GoodData Corporation
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { Button, DialogBase, useMediaQuery } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import noop from "lodash/noop.js";
|
|
5
|
+
import { FormattedMessage } from "react-intl";
|
|
6
|
+
import { MobileWarningPartialResultOverlay } from "./MobileWarningPartialResultOverlay.js";
|
|
7
|
+
export const InsightWidgetWarningPartialResult = ({ className, partialResultWarning, isLoading, isExportRawInNewUiVisible, executionResult, onExportRawCSV, }) => {
|
|
8
|
+
const isMobile = useMediaQuery("mobileDevice");
|
|
9
|
+
const percentage = partialResultWarning[0].parameters[0];
|
|
10
|
+
const [isOpen, setIsOpen] = useState(true);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
setIsOpen(true);
|
|
13
|
+
}, [executionResult]);
|
|
14
|
+
const handleCloseOverlay = () => {
|
|
15
|
+
setIsOpen(false);
|
|
16
|
+
};
|
|
17
|
+
return (React.createElement(React.Fragment, null, isOpen && !isLoading ? (React.createElement(DialogBase, { className: className, onMouseUp: noop, submitOnEnterKey: false }, isMobile ? (React.createElement(MobileWarningPartialResultOverlay, { percentage: percentage, onClose: handleCloseOverlay, isExportRawInNewUiVisible: isExportRawInNewUiVisible, onExportRawCSV: onExportRawCSV })) : (React.createElement("div", { className: "gd-partial-result-warning" },
|
|
18
|
+
React.createElement("div", { className: "gd-warning-partial-result-icon gd-icon-warning" }),
|
|
19
|
+
React.createElement("div", { className: "gd-warning-partial-result-message" },
|
|
20
|
+
React.createElement(FormattedMessage, { id: "warning.partial.result", values: {
|
|
21
|
+
value: percentage,
|
|
22
|
+
b: (chunks) => React.createElement("strong", null, chunks),
|
|
23
|
+
a: (chunk) => {
|
|
24
|
+
if (isExportRawInNewUiVisible) {
|
|
25
|
+
return React.createElement("a", { onClick: onExportRawCSV }, chunk);
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
},
|
|
29
|
+
} })),
|
|
30
|
+
React.createElement(Button, { className: "gd-button-link gd-button-icon-only gd-icon-cross gd-warning-partial-result-close", onClick: handleCloseOverlay }))))) : null));
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=InsightWidgetWarningPartialResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsightWidgetWarningPartialResult.js","sourceRoot":"","sources":["../../../../src/presentation/widget/warningPartialResult/InsightWidgetWarningPartialResult.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAY3F,MAAM,CAAC,MAAM,iCAAiC,GAAsD,CAAC,EACjG,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,yBAAyB,EACzB,eAAe,EACf,cAAc,GACjB,EAAE,EAAE;IACD,MAAM,QAAQ,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;IAE/C,MAAM,UAAU,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,UAAW,CAAC,CAAC,CAAW,CAAC;IAEpE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,IAAI,CAAC,CAAC;IAEpD,SAAS,CAAC,GAAG,EAAE;QACX,SAAS,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC5B,SAAS,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO,CACH,0CACK,MAAM,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CACpB,oBAAC,UAAU,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,IACrE,QAAQ,CAAC,CAAC,CAAC,CACR,oBAAC,iCAAiC,IAC9B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,kBAAkB,EAC3B,yBAAyB,EAAE,yBAAyB,EACpD,cAAc,EAAE,cAAc,GAChC,CACL,CAAC,CAAC,CAAC,CACA,6BAAK,SAAS,EAAC,2BAA2B;QACtC,6BAAK,SAAS,EAAC,gDAAgD,GAAG;QAClE,6BAAK,SAAS,EAAC,mCAAmC;YAC9C,oBAAC,gBAAgB,IACb,EAAE,EAAC,wBAAwB,EAC3B,MAAM,EAAE;oBACJ,KAAK,EAAE,UAAU;oBACjB,CAAC,EAAE,CAAC,MAAiB,EAAE,EAAE,CAAC,oCAAS,MAAM,CAAU;oBACnD,CAAC,EAAE,CAAC,KAAgB,EAAE,EAAE;wBACpB,IAAI,yBAAyB,EAAE,CAAC;4BAC5B,OAAO,2BAAG,OAAO,EAAE,cAAc,IAAG,KAAK,CAAK,CAAC;wBACnD,CAAC;wBACD,OAAO,IAAI,CAAC;oBAChB,CAAC;iBACJ,GACH,CACA;QACN,oBAAC,MAAM,IACH,SAAS,EAAC,kFAAkF,EAC5F,OAAO,EAAE,kBAAkB,GAC7B,CACA,CACT,CACQ,CAChB,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IMobileWarningPartialResultOverlayProps {
|
|
3
|
+
percentage: string;
|
|
4
|
+
isExportRawInNewUiVisible: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onExportRawCSV: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const MobileWarningPartialResultOverlay: React.FC<IMobileWarningPartialResultOverlayProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=MobileWarningPartialResultOverlay.d.ts.map
|