@gooddata/sdk-ui-analytical-designer 11.67.0-alpha.2 → 11.67.0-alpha.4
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 +798 -2473
- package/README.md +13 -5
- package/esm/Root.d.ts +0 -2
- package/esm/Root.d.ts.map +1 -1
- package/esm/Root.js +0 -4
- package/esm/actions/app_context_actions.d.ts.map +1 -1
- package/esm/actions/app_context_actions.js +2 -4
- package/esm/actions/dialogs_actions.d.ts +2 -2
- package/esm/actions/dialogs_actions.js +2 -2
- package/esm/components/DeleteReportDialog.d.ts.map +1 -1
- package/esm/components/DeleteReportDialog.js +30 -11
- package/esm/components/DeleteReportDialogUsageList.d.ts +6 -2
- package/esm/components/DeleteReportDialogUsageList.d.ts.map +1 -1
- package/esm/components/DeleteReportDialogUsageList.js +29 -16
- package/esm/components/DeleteReportDialogUsageListItem.d.ts +2 -3
- package/esm/components/DeleteReportDialogUsageListItem.d.ts.map +1 -1
- package/esm/components/DeleteReportDialogUsageListItem.js +2 -3
- package/esm/components/Editor.d.ts.map +1 -1
- package/esm/components/Editor.js +31 -2
- package/esm/components/EditorHeader.d.ts +19 -1
- package/esm/components/EditorHeader.d.ts.map +1 -1
- package/esm/components/EditorHeader.js +38 -86
- package/esm/components/ReportDescription.d.ts +8 -1
- package/esm/components/ReportDescription.d.ts.map +1 -1
- package/esm/components/ReportDescription.js +37 -7
- package/esm/components/buckets/MeasureAttributeFilterOrganized.d.ts.map +1 -1
- package/esm/components/buckets/MeasureAttributeFilterOrganized.js +1 -1
- package/esm/components/buckets/MeasureDateFilter.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilter.js +1 -1
- package/esm/components/buckets/categories/DateDatasetsDropdown.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.d.ts.map +1 -1
- package/esm/components/header/CancelButton.d.ts +13 -0
- package/esm/components/header/CancelButton.d.ts.map +1 -0
- package/esm/components/header/CancelButton.js +32 -0
- package/esm/components/header/ClearButton.d.ts +7 -0
- package/esm/components/header/ClearButton.d.ts.map +1 -0
- package/esm/components/header/ClearButton.js +24 -0
- package/esm/components/header/EditorActions.d.ts +14 -0
- package/esm/components/header/EditorActions.d.ts.map +1 -0
- package/esm/components/header/EditorActions.js +71 -0
- package/esm/components/header/Embed/EmbedButton.d.ts +6 -1
- package/esm/components/header/Embed/EmbedButton.d.ts.map +1 -1
- package/esm/components/header/Embed/EmbedButton.js +48 -48
- package/esm/components/header/Embed/EmbedInsightDialogContainer.d.ts +6 -0
- package/esm/components/header/Embed/EmbedInsightDialogContainer.d.ts.map +1 -0
- package/esm/components/header/Embed/EmbedInsightDialogContainer.js +52 -0
- package/esm/components/header/Embed/EmbedMenu.d.ts +6 -4
- package/esm/components/header/Embed/EmbedMenu.d.ts.map +1 -1
- package/esm/components/header/Embed/EmbedMenu.js +2 -6
- package/esm/components/header/InsightPickerDialog.d.ts +5 -1
- package/esm/components/header/InsightPickerDialog.d.ts.map +1 -1
- package/esm/components/header/InsightPickerDialog.js +9 -29
- package/esm/components/header/OpenControl.d.ts +7 -0
- package/esm/components/header/OpenControl.d.ts.map +1 -0
- package/esm/components/header/OpenControl.js +69 -0
- package/esm/components/header/OptionsMenu/OptionsButton.d.ts +5 -1
- package/esm/components/header/OptionsMenu/OptionsButton.d.ts.map +1 -1
- package/esm/components/header/OptionsMenu/OptionsButton.js +19 -9
- package/esm/components/header/OptionsMenu/OptionsMenu.d.ts +8 -60
- package/esm/components/header/OptionsMenu/OptionsMenu.d.ts.map +1 -1
- package/esm/components/header/OptionsMenu/OptionsMenu.js +56 -112
- package/esm/components/header/OptionsMenu/OptionsMenuItem.d.ts +3 -4
- package/esm/components/header/OptionsMenu/OptionsMenuItem.d.ts.map +1 -1
- package/esm/components/header/OptionsMenu/OptionsMenuItem.js +5 -9
- package/esm/components/header/OptionsMenu/useOptionsProps.d.ts +26 -0
- package/esm/components/header/OptionsMenu/useOptionsProps.d.ts.map +1 -0
- package/esm/components/header/OptionsMenu/useOptionsProps.js +188 -0
- package/esm/components/header/SaveAsNewReportButton.d.ts +6 -1
- package/esm/components/header/SaveAsNewReportButton.d.ts.map +1 -1
- package/esm/components/header/SaveAsNewReportButton.js +20 -10
- package/esm/components/header/SaveReportButton.d.ts +6 -1
- package/esm/components/header/SaveReportButton.d.ts.map +1 -1
- package/esm/components/header/SaveReportButton.js +41 -18
- package/esm/components/header/TimezoneDialog.d.ts +1 -1
- package/esm/components/header/TimezoneDialog.js +1 -1
- package/esm/components/header/UndoRedoButtons.d.ts +7 -0
- package/esm/components/header/UndoRedoButtons.d.ts.map +1 -0
- package/esm/components/header/UndoRedoButtons.js +31 -0
- package/esm/components/header/VisualizationInfo.d.ts +11 -0
- package/esm/components/header/VisualizationInfo.d.ts.map +1 -0
- package/esm/components/header/VisualizationInfo.js +47 -0
- package/esm/components/header/VisualizationTitle.d.ts +7 -0
- package/esm/components/header/VisualizationTitle.d.ts.map +1 -0
- package/esm/components/header/VisualizationTitle.js +36 -0
- package/esm/components/header/VisualizationsDropdown.d.ts +5 -1
- package/esm/components/header/VisualizationsDropdown.d.ts.map +1 -1
- package/esm/components/header/VisualizationsDropdown.js +7 -33
- package/esm/components/header/editorHeaderContext.d.ts +20 -0
- package/esm/components/header/editorHeaderContext.d.ts.map +1 -0
- package/esm/components/header/editorHeaderContext.js +58 -0
- package/esm/components/header/share/InsightAccess.d.ts +30 -1
- package/esm/components/header/share/InsightAccess.d.ts.map +1 -1
- package/esm/components/header/share/InsightAccess.js +81 -18
- package/esm/components/header/share/InsightAccessChip.d.ts +2 -2
- package/esm/components/header/share/InsightAccessChip.d.ts.map +1 -1
- package/esm/components/header/share/InsightAccessChip.js +3 -3
- package/esm/embedding/AnalyticalDesignerEmbedded.d.ts +1 -1
- package/esm/embedding/AnalyticalDesignerEmbedded.js +1 -1
- package/esm/embedding/editorHeaderSlotTypes.d.ts +569 -0
- package/esm/embedding/editorHeaderSlotTypes.d.ts.map +1 -0
- package/esm/embedding/editorHeaderSlotTypes.js +2 -0
- package/esm/embedding/slots.d.ts +73 -0
- package/esm/embedding/slots.d.ts.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/postMessageApi/outgoing/metrics_changed_events.d.ts +1 -1
- package/esm/postMessageApi/outgoing/metrics_changed_events.js +1 -1
- package/esm/postMessageApi/outgoing/post_event_helper.d.ts +1 -1
- package/esm/postMessageApi/outgoing/post_event_helper.d.ts.map +1 -1
- package/esm/postMessageApi/outgoing/post_event_helper.js +1 -1
- package/esm/postMessageApi/sagas/control_filtering_saga.js +1 -1
- package/esm/sdk-ui-analytical-designer.d.ts +664 -0
- package/esm/selectors/dialogs_selector.d.ts +26 -2
- package/esm/selectors/dialogs_selector.d.ts.map +1 -1
- package/esm/selectors/dialogs_selector.js +3 -2
- package/esm/selectors/editor_header_selector.d.ts +225 -0
- package/esm/selectors/editor_header_selector.d.ts.map +1 -1
- package/esm/selectors/editor_header_selector.js +8 -1
- package/esm/selectors/feature_flag_selector.d.ts +2 -23
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +0 -2
- package/esm/selectors/insight_access_selector.d.ts +185 -4
- package/esm/selectors/insight_access_selector.d.ts.map +1 -1
- package/esm/selectors/insight_access_selector.js +5 -3
- package/esm/selectors/report_title_selector.d.ts +6 -6
- package/esm/selectors/report_title_selector.d.ts.map +1 -1
- package/esm/selectors/report_title_selector.js +4 -3
- package/esm/selectors/report_visualization_selector.d.ts +4 -4
- package/esm/selectors/save_report_selector.d.ts +7 -0
- package/esm/selectors/save_report_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.js +11 -1
- package/esm/selectors/uri_selector.d.ts +22 -0
- package/esm/selectors/uri_selector.d.ts.map +1 -1
- package/esm/selectors/uri_selector.js +1 -0
- package/esm/store/app_context/app_context_slices.d.ts.map +1 -1
- package/esm/store/app_context/app_context_slices.js +2 -3
- package/esm/store/app_context/session_id_reducer.d.ts +2 -3
- package/esm/store/app_context/session_id_reducer.d.ts.map +1 -1
- package/esm/store/app_context/session_id_reducer.js +2 -3
- package/esm/store/intl/intl_slice.d.ts.map +1 -1
- package/esm/store/intl/intl_slice.js +2 -3
- package/esm/translations/en-US.json +22 -2
- package/esm/utils/browser_detect.d.ts +2 -1
- package/esm/utils/browser_detect.d.ts.map +1 -1
- package/esm/utils/browser_detect.js +21 -3
- package/esm/utils/dropdown.d.ts +6 -2
- package/esm/utils/dropdown.d.ts.map +1 -1
- package/esm/utils/dropdown.js +10 -3
- package/package.json +26 -34
- package/styles/css/catalog.css +2 -2
- package/styles/css/catalog_sidebar.css +1 -1
- package/styles/css/catalog_sidebar.css.map +1 -1
- package/styles/css/delete_report_dialog.css +6 -2
- package/styles/css/delete_report_dialog.css.map +1 -1
- package/styles/css/editor_canvas.css +1 -1
- package/styles/css/editor_header.css +16 -1
- package/styles/css/editor_header.css.map +1 -1
- package/styles/css/main.css +26 -7
- package/styles/css/main.css.map +1 -1
- package/styles/scss/catalog.scss +2 -2
- package/styles/scss/catalog_sidebar.scss +2 -1
- package/styles/scss/delete_report_dialog.scss +8 -2
- package/styles/scss/editor_canvas.scss +1 -1
- package/styles/scss/editor_header.scss +20 -1
- package/esm/components/ReportTitle.d.ts +0 -2
- package/esm/components/ReportTitle.d.ts.map +0 -1
- package/esm/components/ReportTitle.js +0 -51
- package/esm/components/header/Embed/utils.d.ts +0 -4
- package/esm/components/header/Embed/utils.d.ts.map +0 -1
- package/esm/components/header/Embed/utils.js +0 -5
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
|
-
import { useCallback, useEffect, useState } from "react";
|
|
3
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { isEmpty } from "lodash-es";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
|
-
import {
|
|
7
|
+
import { useSelector } from "react-redux";
|
|
8
8
|
import { Bubble, RichText, RichTextWithTooltip } from "@gooddata/sdk-ui-kit";
|
|
9
9
|
import { reportDescriptionChange } from "../actions/report_actions.js";
|
|
10
10
|
import { reportDescriptionSelector } from "../selectors/report_description_selector.js";
|
|
11
|
+
import { reportTitleSelector } from "../selectors/report_title_selector.js";
|
|
12
|
+
import { useGuardedCallback } from "./header/editorHeaderContext.js";
|
|
11
13
|
import { ReportDescriptionTrigger } from "./ReportDescriptionTrigger.js";
|
|
12
14
|
const ALIGN_POINTS = [{ align: "bl tl" }];
|
|
13
15
|
const ARROW_OFFSETS = { "bl tl": [0, 5] };
|
|
@@ -16,15 +18,36 @@ const richTextTooltipAlignPoints = [
|
|
|
16
18
|
{ align: "bc tc", offset: { x: 0, y: 5 } },
|
|
17
19
|
{ align: "tc bc", offset: { x: 0, y: -5 } },
|
|
18
20
|
];
|
|
19
|
-
|
|
21
|
+
// The description follows the title: it can change unless the visualization is locked or AD is read-only.
|
|
22
|
+
const canEditDescription = (state) => reportTitleSelector(state).canEditTitle;
|
|
23
|
+
const runDescriptionChange = (dispatch, _state, description) => dispatch(reportDescriptionChange(description));
|
|
24
|
+
export function useVisualizationDescriptionProps(context) {
|
|
20
25
|
const intl = useIntl();
|
|
21
|
-
const dispatch = useDispatch();
|
|
22
26
|
const { currentDescription, filters, separators } = useSelector(reportDescriptionSelector);
|
|
27
|
+
const { canEditTitle: isEditable } = useSelector(reportTitleSelector);
|
|
28
|
+
const onDescriptionChange = useGuardedCallback(canEditDescription, runDescriptionChange);
|
|
29
|
+
const addLabel = intl.formatMessage({ id: "report.description.add" });
|
|
30
|
+
return useMemo(() => ({
|
|
31
|
+
...context,
|
|
32
|
+
description: currentDescription,
|
|
33
|
+
addLabel,
|
|
34
|
+
placeholder: addLabel,
|
|
35
|
+
isEditable,
|
|
36
|
+
filters,
|
|
37
|
+
...(separators ? { separators } : {}),
|
|
38
|
+
onDescriptionChange,
|
|
39
|
+
}), [context, currentDescription, addLabel, isEditable, filters, separators, onDescriptionChange]);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Default of the VisualizationDescription slot: an icon with a bubble that shows the description and edits it
|
|
43
|
+
* in place. The draft is committed when the bubble closes. Renders nothing for an empty description that cannot
|
|
44
|
+
* be changed.
|
|
45
|
+
*/
|
|
46
|
+
export function DefaultVisualizationDescription({ description: currentDescription, addLabel, placeholder, isEditable, filters, separators, onDescriptionChange, }) {
|
|
23
47
|
const currentDescriptionTrimmed = currentDescription.trim();
|
|
24
48
|
const [description, setDescription] = useState(currentDescriptionTrimmed);
|
|
25
49
|
const [preventClose, setPreventClose] = useState(false);
|
|
26
50
|
const [editMode, setEditMode] = useState(false);
|
|
27
|
-
const placeholder = intl.formatMessage({ id: "report.description.add" });
|
|
28
51
|
useEffect(() => {
|
|
29
52
|
setDescription(currentDescriptionTrimmed);
|
|
30
53
|
}, [currentDescriptionTrimmed]);
|
|
@@ -34,7 +57,7 @@ export function ReportDescription() {
|
|
|
34
57
|
setPreventClose(false);
|
|
35
58
|
setEditMode(false);
|
|
36
59
|
if (trimmedDescription !== currentDescriptionTrimmed) {
|
|
37
|
-
|
|
60
|
+
onDescriptionChange(trimmedDescription);
|
|
38
61
|
}
|
|
39
62
|
};
|
|
40
63
|
const handleBlur = () => {
|
|
@@ -42,18 +65,25 @@ export function ReportDescription() {
|
|
|
42
65
|
setEditMode(false);
|
|
43
66
|
};
|
|
44
67
|
const handleClick = () => {
|
|
68
|
+
if (!isEditable) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
45
71
|
setPreventClose(true);
|
|
46
72
|
setEditMode(true);
|
|
47
73
|
};
|
|
48
74
|
const onRichTextChange = useCallback((value) => {
|
|
49
75
|
setDescription(value);
|
|
50
76
|
}, []);
|
|
77
|
+
// nothing to read and nothing to add
|
|
78
|
+
if (!isEditable && isEmpty(currentDescriptionTrimmed)) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
51
81
|
const renderContent = () => {
|
|
52
82
|
const getClassNames = (ownClass) => {
|
|
53
83
|
return cx("adi-description-tooltip-base", "s-adi-description-tooltip-content", ownClass);
|
|
54
84
|
};
|
|
55
85
|
if (isEmpty(description) && !editMode) {
|
|
56
|
-
return (_jsx("div", { className: getClassNames("adi-description-tooltip-placeholder"), onClick: handleClick, children:
|
|
86
|
+
return (_jsx("div", { className: getClassNames("adi-description-tooltip-placeholder"), onClick: handleClick, children: addLabel }));
|
|
57
87
|
}
|
|
58
88
|
if (editMode) {
|
|
59
89
|
return (_jsx("div", { className: "adi-description-tooltip-rich-text s-adi-description-tooltip-content", onBlur: handleBlur, children: _jsx(RichTextWithTooltip, { className: "adi-description-tooltip-rich-text-content", value: description, renderMode: editMode ? "edit" : "view", onChange: onRichTextChange, editRows: 20, tooltipAlignPoints: richTextTooltipAlignPoints, showTooltip: editMode, editPlaceholder: placeholder, emptyElement: _jsx(_Fragment, { children: placeholder }), referencesEnabled: true, filters: filters, separators: separators }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasureAttributeFilterOrganized.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureAttributeFilterOrganized.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeasureAttributeFilterOrganized.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureAttributeFilterOrganized.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAYjE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EACH,KAAK,iCAAiC,EAEzC,MAAM,qCAAqC,CAAC;AAI7C,MAAM,WAAW,qCAAqC;IAClD,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,WAAW,CAAC,EAAE,iCAAiC,CAAC;IAChD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,UAAU,EACV,qBAAqB,EACrB,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,qBAAqB,EACrB,yBAAiC,GACpC,EAAE,qCAAqC,2CA+GvC"}
|
|
@@ -4,7 +4,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Button, Overlay } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { DROPDOWN_ALIGNMENTS, getDialogHeight, subscribeEvents } from "../../utils/dropdown.js";
|
|
7
|
+
import { DROPDOWN_ALIGNMENTS, getDialogHeight, subscribeEvents, } from "../../utils/dropdown.js";
|
|
8
8
|
import { MEASURE_ATTRIBUTE_PICKER_SEARCHBOX_HEIGHT, MeasureAttributeFilterPickerBody, } from "./MeasureAttributeFilterPickerBody.js";
|
|
9
9
|
import { useMeasureAttributeFilterItems, } from "./useMeasureAttributeFilterItems.js";
|
|
10
10
|
const PADDING = 14;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasureDateFilter.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAqD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MeasureDateFilter.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilter.tsx"],"names":[],"mappings":"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"}
|
|
@@ -21,7 +21,7 @@ import { enableImprovedMetricDateFilter, getWeekStart } from "../../selectors/fe
|
|
|
21
21
|
import { measureDateFilterSelector } from "../../selectors/measure_date_filter_selector.js";
|
|
22
22
|
import { metricFilterToAttributeFilter } from "../../store/bucket_filters/metric_additional_date_filters.js";
|
|
23
23
|
import { getDateAttributes } from "../../store/date_datasets_meta/date_datasets_meta_selectors.js";
|
|
24
|
-
import { DROPDOWN_ALIGNMENTS, getDialogHeight, subscribeEvents } from "../../utils/dropdown.js";
|
|
24
|
+
import { DROPDOWN_ALIGNMENTS, getDialogHeight, subscribeEvents, } from "../../utils/dropdown.js";
|
|
25
25
|
import { getIsoDate } from "../../utils/timers.js";
|
|
26
26
|
import { DateFilterPresets } from "../DateFilterPresets.js";
|
|
27
27
|
import { ALL_TIME_FILTER_OPTION } from "../filterBar/dateFilter/defaultFilterOptions.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateDatasetsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/buckets/categories/DateDatasetsDropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateDatasetsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/buckets/categories/DateDatasetsDropdown.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AASvF,MAAM,WAAW,0BAA0B;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IACnD,iBAAiB,EAAE,qBAAqB,CAAC;IAEzC,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAE3D,4BAA4B,EAAE,OAAO,CAAC;IACtC,kBAAkB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAE9C,gCAAgC,EAAE,OAAO,CAAC;CAC7C;AAoDD,wBAAgB,oBAAoB,CAAC,EACjC,SAAmC,EACnC,mBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,4BAA4B,EAC5B,gCAAgC,GACnC,EAAE,0BAA0B,2CAmL5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeComparisonTypesDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimeComparisonTypesDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AAcxF,MAAM,WAAW,iCAAiC;IAC9C,cAAc,EAAE,sBAAsB,EAAE,CAAC;IACzC,YAAY,EAAE,sBAAsB,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;CAC3B;AAeD,wBAAgB,2BAA2B,CAAC,EACxC,QAAmB,EACnB,YAAY,EACZ,UAAU,EACV,SAAsC,EACtC,mBAAyC,EACzC,mBAAmB,EACnB,cAAc,EACd,cAAc,GACjB,EAAE,iCAAiC,2CA4HnC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IAnalyticalDesignerCancelProps, type IAnalyticalDesignerHeaderContext } from "../../embedding/editorHeaderSlotTypes.js";
|
|
2
|
+
/**
|
|
3
|
+
* Requests leaving the editor through the cancellation flow that `IAnalyticalDesignerApi.requestCancellation()`
|
|
4
|
+
* starts too: a confirmation when there are unsaved changes, then the `insightEditingCancelled` event. Unlike
|
|
5
|
+
* that command, it is refused while the visualization is being saved.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useRequestCancellation(): () => void;
|
|
8
|
+
export declare function useCancelProps(context: IAnalyticalDesignerHeaderContext): IAnalyticalDesignerCancelProps;
|
|
9
|
+
/**
|
|
10
|
+
* Default of the Cancel slot.
|
|
11
|
+
*/
|
|
12
|
+
export declare function DefaultCancel({ label, isDisabled, onCancel }: IAnalyticalDesignerCancelProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=CancelButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CancelButton.d.ts","sourceRoot":"","sources":["../../../src/components/header/CancelButton.tsx"],"names":[],"mappings":"AAUA,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACxC,MAAM,0CAA0C,CAAC;AASlD;;;;GAIG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,IAAI,CAEnD;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,gCAAgC,GAAG,8BAA8B,CAUxG;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,8BAA8B,2CAS5F"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2007-2026 GoodData Corporation
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { useIntl } from "react-intl";
|
|
5
|
+
import { useSelector } from "react-redux";
|
|
6
|
+
import { Button } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { cancelEditFromKDAction } from "../../actions/cancel_edit_from_kd_actions.js";
|
|
8
|
+
import { isNavigationDisabled } from "../../selectors/editor_header_selector.js";
|
|
9
|
+
import { useGuardedCallback } from "./editorHeaderContext.js";
|
|
10
|
+
const canNavigate = (state) => !isNavigationDisabled(state);
|
|
11
|
+
const runCancellation = (dispatch) => dispatch(cancelEditFromKDAction());
|
|
12
|
+
/**
|
|
13
|
+
* Requests leaving the editor through the cancellation flow that `IAnalyticalDesignerApi.requestCancellation()`
|
|
14
|
+
* starts too: a confirmation when there are unsaved changes, then the `insightEditingCancelled` event. Unlike
|
|
15
|
+
* that command, it is refused while the visualization is being saved.
|
|
16
|
+
*/
|
|
17
|
+
export function useRequestCancellation() {
|
|
18
|
+
return useGuardedCallback(canNavigate, runCancellation);
|
|
19
|
+
}
|
|
20
|
+
export function useCancelProps(context) {
|
|
21
|
+
const intl = useIntl();
|
|
22
|
+
const isDisabled = useSelector(isNavigationDisabled);
|
|
23
|
+
const onCancel = useRequestCancellation();
|
|
24
|
+
const label = intl.formatMessage({ id: "cancel" });
|
|
25
|
+
return useMemo(() => ({ ...context, label, isDisabled, onCancel }), [context, label, isDisabled, onCancel]);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Default of the Cancel slot.
|
|
29
|
+
*/
|
|
30
|
+
export function DefaultCancel({ label, isDisabled, onCancel }) {
|
|
31
|
+
return (_jsx(Button, { value: label, className: "gd-button-secondary cancel-edit-from-kd s-cancel-edit-from-kd editor-header-item", disabled: isDisabled, onClick: onCancel }));
|
|
32
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IAnalyticalDesignerClearProps, type IAnalyticalDesignerHeaderContext } from "../../embedding/editorHeaderSlotTypes.js";
|
|
2
|
+
export declare function useClearProps(context: IAnalyticalDesignerHeaderContext): IAnalyticalDesignerClearProps;
|
|
3
|
+
/**
|
|
4
|
+
* Default of the Clear slot.
|
|
5
|
+
*/
|
|
6
|
+
export declare function DefaultClear({ label, isDisabled, onClear }: IAnalyticalDesignerClearProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ClearButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClearButton.d.ts","sourceRoot":"","sources":["../../../src/components/header/ClearButton.tsx"],"names":[],"mappings":"AAUA,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACxC,MAAM,0CAA0C,CAAC;AASlD,wBAAgB,aAAa,CAAC,OAAO,EAAE,gCAAgC,GAAG,6BAA6B,CAOtG;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,6BAA6B,2CASzF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2007-2026 GoodData Corporation
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { useIntl } from "react-intl";
|
|
5
|
+
import { useSelector } from "react-redux";
|
|
6
|
+
import { Button } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { resetApplication } from "../../actions/app_context_actions.js";
|
|
8
|
+
import { isEditorHeaderResetDisabled } from "../../selectors/editor_header_selector.js";
|
|
9
|
+
import { useGuardedCallback } from "./editorHeaderContext.js";
|
|
10
|
+
const canClear = (state) => !isEditorHeaderResetDisabled(state);
|
|
11
|
+
const runClear = (dispatch) => dispatch(resetApplication());
|
|
12
|
+
export function useClearProps(context) {
|
|
13
|
+
const intl = useIntl();
|
|
14
|
+
const isDisabled = useSelector(isEditorHeaderResetDisabled);
|
|
15
|
+
const onClear = useGuardedCallback(canClear, runClear);
|
|
16
|
+
const label = intl.formatMessage({ id: "reset" });
|
|
17
|
+
return useMemo(() => ({ ...context, label, isDisabled, onClear }), [context, label, isDisabled, onClear]);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Default of the Clear slot.
|
|
21
|
+
*/
|
|
22
|
+
export function DefaultClear({ label, isDisabled, onClear }) {
|
|
23
|
+
return (_jsx(Button, { value: label, className: "gd-button-secondary reset s-reset-report editor-header-item", disabled: isDisabled, onClick: onClear }));
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type IAnalyticalDesignerEditorActionsProps, type IAnalyticalDesignerHeaderContext } from "../../embedding/editorHeaderSlotTypes.js";
|
|
3
|
+
/**
|
|
4
|
+
* The EditorActions region with the slots of the controls AD shows resolved. A control AD does not show for its
|
|
5
|
+
* permissions, configuration or mode is not in the items, so its slot does not render.
|
|
6
|
+
*
|
|
7
|
+
* @param onChangeTimezone - opens the time zone dialog owned by the header
|
|
8
|
+
*/
|
|
9
|
+
export declare function useEditorActions(context: IAnalyticalDesignerHeaderContext, onChangeTimezone: () => void): ReactElement;
|
|
10
|
+
/**
|
|
11
|
+
* Default of the EditorActions slot: the items in their order.
|
|
12
|
+
*/
|
|
13
|
+
export declare function DefaultEditorActions({ items }: IAnalyticalDesignerEditorActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=EditorActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorActions.d.ts","sourceRoot":"","sources":["../../../src/components/header/EditorActions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIpD,OAAO,EAEH,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACxC,MAAM,0CAA0C,CAAC;AAuBlD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,gCAAgC,EACzC,gBAAgB,EAAE,MAAM,IAAI,GAC7B,YAAY,CA+Cd;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,KAAK,EAAE,EAAE,qCAAqC,2CAQpF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { Fragment } from "react";
|
|
4
|
+
import { useSelector } from "react-redux";
|
|
5
|
+
import { renderSlot, useAdSlots } from "../../embedding/slots.js";
|
|
6
|
+
import { AVAILABLE_HIDDEN_ACTIONS, hiddenActions as hiddenActionsSelector, isCancelVisible as isCancelVisibleSelector, isEmbedButtonVisible as isEmbedButtonVisibleSelector, isOpenVisible as isOpenVisibleSelector, isOptionsMenuEnabled as isOptionsMenuEnabledSelector, isSaveAsVisible as isSaveAsVisibleSelector, isSaveVisible as isSaveVisibleSelector, } from "../../selectors/editor_header_selector.js";
|
|
7
|
+
import { DefaultCancel, useCancelProps } from "./CancelButton.js";
|
|
8
|
+
import { DefaultClear, useClearProps } from "./ClearButton.js";
|
|
9
|
+
import { DefaultEmbed, useEmbedProps } from "./Embed/EmbedButton.js";
|
|
10
|
+
import { DefaultOpen, useOpenProps } from "./OpenControl.js";
|
|
11
|
+
import { DefaultOptions } from "./OptionsMenu/OptionsButton.js";
|
|
12
|
+
import { useOptionsProps } from "./OptionsMenu/useOptionsProps.js";
|
|
13
|
+
import { DefaultSaveAs, useSaveAsProps } from "./SaveAsNewReportButton.js";
|
|
14
|
+
import { DefaultSave, useSaveProps } from "./SaveReportButton.js";
|
|
15
|
+
import { DefaultUndoRedo, useUndoRedoProps } from "./UndoRedoButtons.js";
|
|
16
|
+
/**
|
|
17
|
+
* The EditorActions region with the slots of the controls AD shows resolved. A control AD does not show for its
|
|
18
|
+
* permissions, configuration or mode is not in the items, so its slot does not render.
|
|
19
|
+
*
|
|
20
|
+
* @param onChangeTimezone - opens the time zone dialog owned by the header
|
|
21
|
+
*/
|
|
22
|
+
export function useEditorActions(context, onChangeTimezone) {
|
|
23
|
+
const slots = useAdSlots();
|
|
24
|
+
const hiddenActions = useSelector(hiddenActionsSelector);
|
|
25
|
+
const isOpenVisible = useSelector(isOpenVisibleSelector);
|
|
26
|
+
const isCancelVisible = useSelector(isCancelVisibleSelector);
|
|
27
|
+
const isSaveAsVisible = useSelector(isSaveAsVisibleSelector);
|
|
28
|
+
const isSaveVisible = useSelector(isSaveVisibleSelector);
|
|
29
|
+
const isEmbedVisible = useSelector(isEmbedButtonVisibleSelector);
|
|
30
|
+
const isOptionsVisible = useSelector(isOptionsMenuEnabledSelector);
|
|
31
|
+
const undoRedoProps = useUndoRedoProps(context);
|
|
32
|
+
const clearProps = useClearProps(context);
|
|
33
|
+
const openProps = useOpenProps(context);
|
|
34
|
+
const cancelProps = useCancelProps(context);
|
|
35
|
+
const saveAsProps = useSaveAsProps(context);
|
|
36
|
+
const saveProps = useSaveProps(context);
|
|
37
|
+
const embedProps = useEmbedProps(context);
|
|
38
|
+
const optionsProps = useOptionsProps(context, onChangeTimezone);
|
|
39
|
+
const items = [];
|
|
40
|
+
if (!hiddenActions.includes(AVAILABLE_HIDDEN_ACTIONS.UNDO_REDO)) {
|
|
41
|
+
items.push({ id: "undoRedo", content: renderSlot(slots.UndoRedo, DefaultUndoRedo, undoRedoProps) });
|
|
42
|
+
}
|
|
43
|
+
if (!hiddenActions.includes(AVAILABLE_HIDDEN_ACTIONS.CLEAR)) {
|
|
44
|
+
items.push({ id: "clear", content: renderSlot(slots.Clear, DefaultClear, clearProps) });
|
|
45
|
+
}
|
|
46
|
+
if (isOpenVisible) {
|
|
47
|
+
items.push({ id: "open", content: renderSlot(slots.Open, DefaultOpen, openProps) });
|
|
48
|
+
}
|
|
49
|
+
if (isCancelVisible) {
|
|
50
|
+
items.push({ id: "cancel", content: renderSlot(slots.Cancel, DefaultCancel, cancelProps) });
|
|
51
|
+
}
|
|
52
|
+
if (isSaveAsVisible) {
|
|
53
|
+
items.push({ id: "saveAs", content: renderSlot(slots.SaveAs, DefaultSaveAs, saveAsProps) });
|
|
54
|
+
}
|
|
55
|
+
if (isSaveVisible) {
|
|
56
|
+
items.push({ id: "save", content: renderSlot(slots.Save, DefaultSave, saveProps) });
|
|
57
|
+
}
|
|
58
|
+
if (isEmbedVisible) {
|
|
59
|
+
items.push({ id: "embed", content: renderSlot(slots.Embed, DefaultEmbed, embedProps) });
|
|
60
|
+
}
|
|
61
|
+
if (isOptionsVisible) {
|
|
62
|
+
items.push({ id: "options", content: renderSlot(slots.Options, DefaultOptions, optionsProps) });
|
|
63
|
+
}
|
|
64
|
+
return renderSlot(slots.EditorActions, DefaultEditorActions, { ...context, items });
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Default of the EditorActions slot: the items in their order.
|
|
68
|
+
*/
|
|
69
|
+
export function DefaultEditorActions({ items }) {
|
|
70
|
+
return (_jsx(_Fragment, { children: items.map((item) => (_jsx(Fragment, { children: item.content }, item.id))) }));
|
|
71
|
+
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { type IAnalyticalDesignerEmbedProps, type IAnalyticalDesignerHeaderContext } from "../../../embedding/editorHeaderSlotTypes.js";
|
|
2
|
+
export declare function useEmbedProps(context: IAnalyticalDesignerHeaderContext): IAnalyticalDesignerEmbedProps;
|
|
3
|
+
/**
|
|
4
|
+
* Default of the Embed slot: an icon button with a menu of the embedding choices.
|
|
5
|
+
*/
|
|
6
|
+
export declare function DefaultEmbed({ label, embedInsightLabel, isEmbedInsightDisabled, embedInsightDisabledReason, documentationLabel, documentationUrl, onEmbedInsight, }: IAnalyticalDesignerEmbedProps): import("react/jsx-runtime").JSX.Element;
|
|
2
7
|
//# sourceMappingURL=EmbedButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedButton.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Embed/EmbedButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmbedButton.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Embed/EmbedButton.tsx"],"names":[],"mappings":"AAWA,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACxC,MAAM,6CAA6C,CAAC;AAcrD,wBAAgB,aAAa,CAAC,OAAO,EAAE,gCAAgC,GAAG,6BAA6B,CAsCtG;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,EACzB,KAAK,EACL,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACjB,EAAE,6BAA6B,2CAsC/B"}
|
|
@@ -2,63 +2,63 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
|
-
import {
|
|
5
|
+
import { useSelector } from "react-redux";
|
|
6
6
|
import { createSelector } from "reselect";
|
|
7
|
-
import { fillMissingTitlesWithMessages } from "@gooddata/sdk-ui";
|
|
8
|
-
import { EmbedInsightDialog } from "@gooddata/sdk-ui-ext";
|
|
9
7
|
import { IconEmbedCode } from "@gooddata/sdk-ui-kit";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { createEmbedDialogCopyCodeAction, createEmbedDialogOpenAction, } from "../../../actions/embed_dialog_actions.js";
|
|
13
|
-
import { saveReportCheck } from "../../../actions/save_actions.js";
|
|
14
|
-
import { backend } from "../../../backend.js";
|
|
15
|
-
import { documentationUrl as documentationUrlSelector, getProjectId, } from "../../../selectors/bootstrap_selector.js";
|
|
16
|
-
import { getExecutionConfig } from "../../../selectors/execution_config_selector.js";
|
|
17
|
-
import { getFeatureFlags } from "../../../selectors/feature_flag_selector.js";
|
|
18
|
-
import { getInsightForSaveViaMd } from "../../../selectors/insight_selectors.js";
|
|
19
|
-
import { getIntlMessagesForLocale } from "../../../selectors/intl_selector.js";
|
|
8
|
+
import { createEmbedDialogOpenAction } from "../../../actions/embed_dialog_actions.js";
|
|
9
|
+
import { documentationUrl as documentationUrlSelector } from "../../../selectors/bootstrap_selector.js";
|
|
20
10
|
import { isReportExecutableSelector } from "../../../selectors/report_selector.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { getEmbedAnalyticalDesignerLink, getIntegrationLink } from "./documentationLinks.js";
|
|
11
|
+
import { useGuardedCallback } from "../editorHeaderContext.js";
|
|
12
|
+
import { getEmbedAnalyticalDesignerLink } from "./documentationLinks.js";
|
|
24
13
|
import { EmbedMenu } from "./EmbedMenu.js";
|
|
25
|
-
import { isCodeGenerationSupported } from "./utils.js";
|
|
26
14
|
const isReportBlankSelector = createSelector(isReportExecutableSelector, (isExecutable) => !isExecutable);
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
const canEmbed = (state) => !isReportBlankSelector(state);
|
|
16
|
+
const runEmbed = (dispatch) => dispatch(createEmbedDialogOpenAction());
|
|
17
|
+
export function useEmbedProps(context) {
|
|
29
18
|
const intl = useIntl();
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
const isReportBlank = useSelector(isReportBlankSelector);
|
|
20
|
+
const documentationUrl = useSelector(documentationUrlSelector);
|
|
21
|
+
const onEmbedInsight = useGuardedCallback(canEmbed, runEmbed);
|
|
22
|
+
const label = intl.formatMessage({ id: "embedInsightDialog.embed.button.label" });
|
|
23
|
+
const embedInsightLabel = intl.formatMessage({ id: "embedInsightDialog.embed.menu.title" });
|
|
24
|
+
const disabledReason = intl.formatMessage({
|
|
25
|
+
id: "embedInsightDialog.embed.disable.message.empty.report",
|
|
26
|
+
});
|
|
27
|
+
const documentationLabel = intl.formatMessage({
|
|
28
|
+
id: "embedInsightDialog.embed.analytical.designer.menu.title",
|
|
29
|
+
});
|
|
30
|
+
return useMemo(() => ({
|
|
31
|
+
...context,
|
|
32
|
+
label,
|
|
33
|
+
embedInsightLabel,
|
|
34
|
+
isEmbedInsightDisabled: isReportBlank,
|
|
35
|
+
...(isReportBlank ? { embedInsightDisabledReason: disabledReason } : {}),
|
|
36
|
+
documentationLabel,
|
|
37
|
+
// the props are built even while Embed is hidden, where the bootstrap may carry no documentation
|
|
38
|
+
documentationUrl: documentationUrl ? getEmbedAnalyticalDesignerLink(documentationUrl) : "",
|
|
39
|
+
onEmbedInsight,
|
|
40
|
+
}), [
|
|
41
|
+
context,
|
|
42
|
+
label,
|
|
43
|
+
embedInsightLabel,
|
|
44
|
+
isReportBlank,
|
|
45
|
+
disabledReason,
|
|
46
|
+
documentationLabel,
|
|
47
|
+
documentationUrl,
|
|
48
|
+
onEmbedInsight,
|
|
49
|
+
]);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Default of the Embed slot: an icon button with a menu of the embedding choices.
|
|
53
|
+
*/
|
|
54
|
+
export function DefaultEmbed({ label, embedInsightLabel, isEmbedInsightDisabled, embedInsightDisabledReason, documentationLabel, documentationUrl, onEmbedInsight, }) {
|
|
55
|
+
const [isMenuOpen, setMenuOpen] = useState(false);
|
|
41
56
|
const toggleMenu = useCallback(() => {
|
|
42
57
|
setMenuOpen((open) => !open);
|
|
43
58
|
}, []);
|
|
44
59
|
const onMenuClick = useCallback(() => {
|
|
45
60
|
setMenuOpen(false);
|
|
46
|
-
|
|
47
|
-
}, [
|
|
48
|
-
|
|
49
|
-
dispatch(hideDialog());
|
|
50
|
-
}, [dispatch]);
|
|
51
|
-
const onCopyCode = useCallback((code, type, codeType) => {
|
|
52
|
-
dispatch(createEmbedDialogCopyCodeAction(code, type, codeType));
|
|
53
|
-
}, [dispatch]);
|
|
54
|
-
const openSaveInsightClick = useCallback(() => {
|
|
55
|
-
onDialogClose();
|
|
56
|
-
dispatch(saveReportCheck(false, false, true));
|
|
57
|
-
}, [dispatch, onDialogClose]);
|
|
58
|
-
const isGenerationSupported = useMemo(() => {
|
|
59
|
-
return isCodeGenerationSupported(insight, settings);
|
|
60
|
-
}, [insight, settings]);
|
|
61
|
-
// we need to do the same transformations as when the insight is executed by the AD itself (see PluggableVisualization.tsx)
|
|
62
|
-
const effectiveInsight = fillMissingTitlesWithMessages(insight, settings.locale, messages, undefined);
|
|
63
|
-
return (_jsxs(_Fragment, { children: [_jsx("button", { style: { height: 32 }, "data-testid": "s-embed-button", className: "gd-button-secondary editor-header-item", onClick: toggleMenu, children: _jsx(IconEmbedCode, {}) }), isMenuOpen ? (_jsx(EmbedMenu, { isReportBlank: isReportBlank, isCodeGenerationSupported: isGenerationSupported, embedAnalyticalDesignerLink: getEmbedAnalyticalDesignerLink(documentationUrl), toggleMenu: toggleMenu, onMenuItemClick: onMenuClick })) : null, isEmbedDialogVisible ? (_jsx(EmbedInsightDialog, { insight: effectiveInsight, settings: settings, backend: backend, locale: intl.locale, theme: theme, reactIntegrationDocLink: getIntegrationLink(), webComponentIntegrationDocLink: getIntegrationLink(), colorPalette: colorPalette, executionConfig: executionConfig, onClose: onDialogClose, onCopyCode: onCopyCode, workspaceId: workspaceId, openSaveInsightDialog: openSaveInsightClick, showWebComponentsTab: true })) : null] }));
|
|
61
|
+
onEmbedInsight();
|
|
62
|
+
}, [onEmbedInsight]);
|
|
63
|
+
return (_jsxs(_Fragment, { children: [_jsx("button", { style: { height: 32 }, "data-testid": "s-embed-button", className: "gd-button-secondary editor-header-item", "aria-label": label, "aria-haspopup": "menu", "aria-expanded": isMenuOpen, onClick: toggleMenu, children: _jsx(IconEmbedCode, {}) }), isMenuOpen ? (_jsx(EmbedMenu, { embedInsightLabel: embedInsightLabel, isEmbedInsightDisabled: isEmbedInsightDisabled, embedInsightDisabledReason: embedInsightDisabledReason, documentationLabel: documentationLabel, documentationUrl: documentationUrl, toggleMenu: toggleMenu, onMenuItemClick: onMenuClick })) : null] }));
|
|
64
64
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The embed code dialog. It belongs to the embed flow, not to the Embed control, so it opens for a host's
|
|
3
|
+
* own Embed control too.
|
|
4
|
+
*/
|
|
5
|
+
export declare function EmbedInsightDialogContainer(): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
//# sourceMappingURL=EmbedInsightDialogContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbedInsightDialogContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Embed/EmbedInsightDialogContainer.tsx"],"names":[],"mappings":"AA2BA;;;GAGG;AACH,wBAAgB,2BAA2B,mDAG1C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2007-2026 GoodData Corporation
|
|
3
|
+
import { useCallback, useMemo } from "react";
|
|
4
|
+
import { useIntl } from "react-intl";
|
|
5
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
6
|
+
import { fillMissingTitlesWithMessages } from "@gooddata/sdk-ui";
|
|
7
|
+
import { EmbedInsightDialog } from "@gooddata/sdk-ui-ext";
|
|
8
|
+
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
9
|
+
import { hideDialog } from "../../../actions/dialogs_actions.js";
|
|
10
|
+
import { createEmbedDialogCopyCodeAction } from "../../../actions/embed_dialog_actions.js";
|
|
11
|
+
import { saveReportCheck } from "../../../actions/save_actions.js";
|
|
12
|
+
import { backend } from "../../../backend.js";
|
|
13
|
+
import { getProjectId } from "../../../selectors/bootstrap_selector.js";
|
|
14
|
+
import { getExecutionConfig } from "../../../selectors/execution_config_selector.js";
|
|
15
|
+
import { getFeatureFlags } from "../../../selectors/feature_flag_selector.js";
|
|
16
|
+
import { getInsightForSaveViaMd } from "../../../selectors/insight_selectors.js";
|
|
17
|
+
import { getIntlMessagesForLocale } from "../../../selectors/intl_selector.js";
|
|
18
|
+
import { getColorPalette } from "../../../store/app_context/app_context_selectors.js";
|
|
19
|
+
import { getShowEmbedInsightDialog } from "../../../store/dialogs/dialogs_selectors.js";
|
|
20
|
+
import { getIntegrationLink } from "./documentationLinks.js";
|
|
21
|
+
/**
|
|
22
|
+
* The embed code dialog. It belongs to the embed flow, not to the Embed control, so it opens for a host's
|
|
23
|
+
* own Embed control too.
|
|
24
|
+
*/
|
|
25
|
+
export function EmbedInsightDialogContainer() {
|
|
26
|
+
const isEmbedDialogVisible = useSelector(getShowEmbedInsightDialog);
|
|
27
|
+
return isEmbedDialogVisible ? _jsx(EmbedInsightDialogContent, {}) : null;
|
|
28
|
+
}
|
|
29
|
+
function EmbedInsightDialogContent() {
|
|
30
|
+
const intl = useIntl();
|
|
31
|
+
const theme = useTheme();
|
|
32
|
+
const dispatch = useDispatch();
|
|
33
|
+
const insight = useSelector(getInsightForSaveViaMd);
|
|
34
|
+
const settings = useSelector(getFeatureFlags);
|
|
35
|
+
const colorPalette = useSelector(getColorPalette);
|
|
36
|
+
const executionConfig = useSelector(getExecutionConfig);
|
|
37
|
+
const workspaceId = useSelector(getProjectId);
|
|
38
|
+
const messages = useSelector(getIntlMessagesForLocale);
|
|
39
|
+
const onDialogClose = useCallback(() => {
|
|
40
|
+
dispatch(hideDialog());
|
|
41
|
+
}, [dispatch]);
|
|
42
|
+
const onCopyCode = useCallback((code, type, codeType) => {
|
|
43
|
+
dispatch(createEmbedDialogCopyCodeAction(code, type, codeType));
|
|
44
|
+
}, [dispatch]);
|
|
45
|
+
const openSaveInsightClick = useCallback(() => {
|
|
46
|
+
onDialogClose();
|
|
47
|
+
dispatch(saveReportCheck(false, false, true));
|
|
48
|
+
}, [dispatch, onDialogClose]);
|
|
49
|
+
// we need to do the same transformations as when the insight is executed by the AD itself (see PluggableVisualization.tsx)
|
|
50
|
+
const effectiveInsight = useMemo(() => fillMissingTitlesWithMessages(insight, settings.locale, messages, undefined), [insight, settings.locale, messages]);
|
|
51
|
+
return (_jsx(EmbedInsightDialog, { insight: effectiveInsight, settings: settings, backend: backend, locale: intl.locale, theme: theme, reactIntegrationDocLink: getIntegrationLink(), webComponentIntegrationDocLink: getIntegrationLink(), colorPalette: colorPalette, executionConfig: executionConfig, onClose: onDialogClose, onCopyCode: onCopyCode, workspaceId: workspaceId, openSaveInsightDialog: openSaveInsightClick, showWebComponentsTab: true }));
|
|
52
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export interface IEmbedMenuProps {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
embedInsightLabel: string;
|
|
3
|
+
isEmbedInsightDisabled: boolean;
|
|
4
|
+
embedInsightDisabledReason?: string;
|
|
5
|
+
documentationLabel: string;
|
|
6
|
+
documentationUrl: string;
|
|
5
7
|
toggleMenu: () => void;
|
|
6
8
|
onMenuItemClick: () => void;
|
|
7
9
|
}
|
|
8
|
-
export declare function EmbedMenu({
|
|
10
|
+
export declare function EmbedMenu({ embedInsightLabel, isEmbedInsightDisabled, embedInsightDisabledReason, documentationLabel, documentationUrl, toggleMenu, onMenuItemClick, }: IEmbedMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=EmbedMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Embed/EmbedMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmbedMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/header/Embed/EmbedMenu.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,eAAe;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,OAAO,CAAC;IAChC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,eAAe,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,wBAAgB,SAAS,CAAC,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACV,eAAe,GAClB,EAAE,eAAe,2CAoCjB"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
|
-
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
3
|
import { IconExternalLink, Item, ItemsWrapper, Overlay, Separator } from "@gooddata/sdk-ui-kit";
|
|
5
4
|
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
6
5
|
import { EmbedMenuItem } from "./EmbedMenuItem.js";
|
|
7
6
|
const MENU_ALIGN_POINTS = [{ align: "br tr" }];
|
|
8
|
-
export function EmbedMenu({
|
|
9
|
-
const intl = useIntl();
|
|
7
|
+
export function EmbedMenu({ embedInsightLabel, isEmbedInsightDisabled, embedInsightDisabledReason, documentationLabel, documentationUrl, toggleMenu, onMenuItemClick, }) {
|
|
10
8
|
const theme = useTheme();
|
|
11
9
|
const iconColor = theme?.palette?.complementary?.c5 ?? "#000000";
|
|
12
|
-
return (_jsx(Overlay, { alignTo: `[data-testid="s-embed-button"]`, alignPoints: MENU_ALIGN_POINTS, className: "gd-export-menu-overlay s-gd-export-menu-overlay", closeOnMouseDrag: true, closeOnOutsideClick: true, onClose: toggleMenu, children: _jsxs(ItemsWrapper, { smallItemsSpacing: true, className: ".s-embed-menu", children: [_jsx(EmbedMenuItem, { title:
|
|
13
|
-
id: "embedInsightDialog.embed.disable.message.empty.report",
|
|
14
|
-
}), onMenuItemClick: onMenuItemClick }), _jsx(Separator, {}), _jsx(Item, { className: "adi-embed-button-menu-item-link", onClick: toggleMenu, children: _jsxs("a", { href: embedAnalyticalDesignerLink, target: "_blank", rel: "noreferrer", children: [_jsx(FormattedMessage, { id: "embedInsightDialog.embed.analytical.designer.menu.title" }), _jsx(IconExternalLink, { className: "adi-embed-button-menu-item-ico-link", width: 14, color: iconColor })] }) })] }) }, "EmbedMenu"));
|
|
10
|
+
return (_jsx(Overlay, { alignTo: `[data-testid="s-embed-button"]`, alignPoints: MENU_ALIGN_POINTS, className: "gd-export-menu-overlay s-gd-export-menu-overlay", closeOnMouseDrag: true, closeOnOutsideClick: true, onClose: toggleMenu, children: _jsxs(ItemsWrapper, { smallItemsSpacing: true, className: ".s-embed-menu", children: [_jsx(EmbedMenuItem, { title: embedInsightLabel, disabled: isEmbedInsightDisabled, disableMessage: embedInsightDisabledReason, onMenuItemClick: onMenuItemClick }), _jsx(Separator, {}), _jsx(Item, { className: "adi-embed-button-menu-item-link", onClick: toggleMenu, children: _jsxs("a", { href: documentationUrl, target: "_blank", rel: "noreferrer", children: [documentationLabel, _jsx(IconExternalLink, { className: "adi-embed-button-menu-item-ico-link", width: 14, color: iconColor })] }) })] }) }, "EmbedMenu"));
|
|
15
11
|
}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { type IAnalyticalDesignerOpenProps } from "../../embedding/editorHeaderSlotTypes.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Open control as a button with the visualization picker in a dialog.
|
|
4
|
+
*/
|
|
5
|
+
export declare function InsightPickerDialog({ workspace, label, isDisabled, selectedInsightId: openInsightId, includeTags, excludeTags, enabledVisualizationUrls, isSemanticSearchEnabled, onOpenInsight, }: IAnalyticalDesignerOpenProps): import("react/jsx-runtime").JSX.Element;
|
|
2
6
|
//# sourceMappingURL=InsightPickerDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightPickerDialog.d.ts","sourceRoot":"","sources":["../../../src/components/header/InsightPickerDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InsightPickerDialog.d.ts","sourceRoot":"","sources":["../../../src/components/header/InsightPickerDialog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAiB7F;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,KAAK,EACL,UAAU,EACV,iBAAiB,EAAE,aAAa,EAChC,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACvB,aAAa,GAChB,EAAE,4BAA4B,2CAwH9B"}
|