@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
package/README.md
CHANGED
|
@@ -153,10 +153,9 @@ Leave out `insight` to open a new insight. The AnalyticalDesigner component sect
|
|
|
153
153
|
- **Import side effects**: importing an entry creates no router and no browser history. `Root`
|
|
154
154
|
creates its router when it mounts: a `BrowserRouter` under the host's base path in the pluggable
|
|
155
155
|
module, and none in hosted-component mode. AD's own modules load in Node without a
|
|
156
|
-
DOM, but
|
|
157
|
-
(through `monaco-editor`)
|
|
158
|
-
|
|
159
|
-
stubs.
|
|
156
|
+
DOM, but one dependency uses browser APIs when it loads: `@gooddata/sdk-ui-metric-component`
|
|
157
|
+
(through `monaco-editor`). `rushx validate-esm` imports both entries in Node, loads CSS and
|
|
158
|
+
image imports as a bundler does, and replaces that dependency with a stub.
|
|
160
159
|
|
|
161
160
|
- **Styles**: importing the package loads no stylesheet, and no module of the package imports one.
|
|
162
161
|
Import the SDK stylesheets AD needs and then AD's `main.css` once, where AD loads, in this order so
|
|
@@ -257,7 +256,16 @@ import "@gooddata/sdk-ui-analytical-designer/styles/css/main.css";
|
|
|
257
256
|
- **Slots**: `slots.Loading` and `slots.Error`, each a component that gets the `Default` region and
|
|
258
257
|
its `defaultProps` (ADR-26-02). `Error` covers both a failed load and
|
|
259
258
|
AD's own bootstrap errors.
|
|
260
|
-
- **
|
|
259
|
+
- **Editor header slots**: the regions `EditorHeader`, `VisualizationInfo` and `EditorActions`,
|
|
260
|
+
and one slot per control: `VisualizationTitle`, `VisualizationDescription`,
|
|
261
|
+
`VisualizationAccess`, `UndoRedo`, `Clear`, `Open`, `Cancel`, `SaveAs`, `Save`, `Embed` and
|
|
262
|
+
`Options`. A slot hides its region by returning `null`, replaces it with the data and guarded
|
|
263
|
+
callbacks in `defaultProps`, or renders `Default` with changed props or next to its own
|
|
264
|
+
content. A region gets its children already rendered with their slots. A control AD does
|
|
265
|
+
not show (permissions, `hiddenActions`, mode) does not render its slot. AD keeps the catalog
|
|
266
|
+
restore control and the dialogs the controls open (embed code, time zone) outside the slots,
|
|
267
|
+
and places the editor below the measured header height.
|
|
268
|
+
- **Not yet**: the `MetricEditor` slot and a portal target: AD's
|
|
261
269
|
overlays open in `document.body`.
|
|
262
270
|
|
|
263
271
|
The `./internal` entry exports the same component with `auth`, `externalProviderId` and an
|
package/esm/Root.d.ts
CHANGED
package/esm/Root.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../src/Root.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../src/Root.tsx"],"names":[],"mappings":"AAoBA,UAAU,UAAU;IAIhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAE,UAAe,2CAgDlE"}
|
package/esm/Root.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
|
-
import "@formatjs/intl-pluralrules";
|
|
4
|
-
// Fully-specified (.js) so strict-ESM consumers (webpack fullySpecified, e.g. the dashboards app
|
|
5
|
-
// loading the direct-AD-embedding chunk) can resolve these extensionless-unfriendly packages.
|
|
6
|
-
import "@formatjs/intl-pluralrules/polyfill-locales.js";
|
|
7
3
|
import { useRef } from "react";
|
|
8
4
|
import { DndProvider } from "@evil-internetmann/react-dnd";
|
|
9
5
|
import { Provider } from "react-redux";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_context_actions.d.ts","sourceRoot":"","sources":["../../src/actions/app_context_actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app_context_actions.d.ts","sourceRoot":"","sources":["../../src/actions/app_context_actions.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import { createAction } from "@reduxjs/toolkit";
|
|
3
|
-
import $ from "jquery";
|
|
4
3
|
import { v4 as uuid } from "uuid";
|
|
5
4
|
import { ActionTypeKeys } from "../constants/actions.js";
|
|
6
5
|
import { isMobile } from "../utils/browser_detect.js";
|
|
7
6
|
export const bootstrapData = createAction(ActionTypeKeys.BOOTSTRAP_DATA, (data, windowInstance = window) => {
|
|
8
|
-
|
|
9
|
-
const viewportWidth =
|
|
10
|
-
const viewportHeight = $window.height();
|
|
7
|
+
// what jQuery's $(window).width() / .height() read: the viewport without its scrollbars
|
|
8
|
+
const { clientWidth: viewportWidth, clientHeight: viewportHeight } = windowInstance.document.documentElement;
|
|
11
9
|
const windowInfo = {
|
|
12
10
|
viewport: `${viewportWidth}x${viewportHeight}`,
|
|
13
11
|
pixelRatio: windowInstance.devicePixelRatio || 1,
|
|
@@ -6,8 +6,8 @@ export declare const hideSaveReportDialog: import("@reduxjs/toolkit").ActionCrea
|
|
|
6
6
|
/**
|
|
7
7
|
* Opens the "name your insight before saving" confirmation dialog.
|
|
8
8
|
*
|
|
9
|
-
* @param data
|
|
10
|
-
*
|
|
9
|
+
* @param data - `saveAsNew`: the confirmed save continues as save-as-new; `reOpenEmbedDialog`: re-open
|
|
10
|
+
* the embed-insight dialog after the save flow ends
|
|
11
11
|
*/
|
|
12
12
|
export declare const showDialogSavingUntitledReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[data: {
|
|
13
13
|
saveAsNew?: boolean;
|
|
@@ -7,8 +7,8 @@ export const hideSaveReportDialog = createAction(ActionTypeKeys.SAVE_REPORT_DIAL
|
|
|
7
7
|
/**
|
|
8
8
|
* Opens the "name your insight before saving" confirmation dialog.
|
|
9
9
|
*
|
|
10
|
-
* @param data
|
|
11
|
-
*
|
|
10
|
+
* @param data - `saveAsNew`: the confirmed save continues as save-as-new; `reOpenEmbedDialog`: re-open
|
|
11
|
+
* the embed-insight dialog after the save flow ends
|
|
12
12
|
*/
|
|
13
13
|
export const showDialogSavingUntitledReport = createAction(ActionTypeKeys.SHOW_DIALOG_SAVING_UNTITLED_REPORT_CONFIRMATION, (data) => ({ payload: data }));
|
|
14
14
|
export const showAttributeHierarchyEditDialog = createAction(ActionTypeKeys.STORE_SHOW_ATTRIBUTE_HIERARCHY_EDIT_DIALOG, (attributeHierarchy) => ({ payload: { attributeHierarchy } }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteReportDialog.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteReportDialog.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialog.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAmC/E,MAAM,WAAW,wBAAwB;IACrC,+CAA+C;IAC/C,aAAa,CAAC,EAAE,OAAO,sBAAsB,CAAC;CACjD;AAuBD,wBAAgB,kBAAkB,CAAC,EAAE,aAAsC,EAAE,EAAE,wBAAwB,kDA8FtG"}
|
|
@@ -1,33 +1,50 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { sortBy } from "lodash-es";
|
|
5
|
+
import { FormattedMessage, defineMessages, useIntl } from "react-intl";
|
|
5
6
|
import { useDispatch, useSelector } from "react-redux";
|
|
6
7
|
import { useCancelablePromise } from "@gooddata/sdk-ui";
|
|
7
8
|
import { ConfirmDialog as ConfirmDialogComponent } from "@gooddata/sdk-ui-kit";
|
|
8
9
|
import { deleteReport } from "../actions/delete_actions.js";
|
|
9
10
|
import { hideDialog } from "../actions/dialogs_actions.js";
|
|
10
11
|
import { deleteReportDialogSelector } from "../selectors/dialogs_selector.js";
|
|
11
|
-
import { getInsightUsageOnDashboards } from "../store/insight_usage/insight_usage_helpers.js";
|
|
12
|
+
import { EMPTY_INSIGHT_USAGE_ON_DASHBOARDS, getInsightUsageOnDashboards, } from "../store/insight_usage/insight_usage_helpers.js";
|
|
12
13
|
import { getAnalyticalDashboards, getInsightReferences } from "../utils/api.js";
|
|
13
14
|
import { shortenText } from "../utils/base.js";
|
|
14
15
|
import { DeleteReportDialogUsageList } from "./DeleteReportDialogUsageList.js";
|
|
15
16
|
const MAX_TITLE_LENGTH = 28;
|
|
16
|
-
const
|
|
17
|
+
const deleteProhibitedMessages = defineMessages({
|
|
18
|
+
dashboards: { id: "dialogs.deleteReportConfirmation.deleteProhibited" },
|
|
19
|
+
documents: { id: "dialogs.deleteReportConfirmation.deleteProhibitedDocuments" },
|
|
20
|
+
documentsAndDashboards: { id: "dialogs.deleteReportConfirmation.deleteProhibitedDocumentsAndDashboards" },
|
|
21
|
+
});
|
|
22
|
+
function getDeleteProhibitedMessage(isUsedOnDashboards, isUsedInDocuments) {
|
|
23
|
+
if (!isUsedInDocuments) {
|
|
24
|
+
return deleteProhibitedMessages.dashboards;
|
|
25
|
+
}
|
|
26
|
+
return isUsedOnDashboards
|
|
27
|
+
? deleteProhibitedMessages.documentsAndDashboards
|
|
28
|
+
: deleteProhibitedMessages.documents;
|
|
29
|
+
}
|
|
30
|
+
const useReferencingObjects = (projectId, insightRef, isActive) => {
|
|
17
31
|
return useCancelablePromise({
|
|
18
32
|
promise: async () => {
|
|
19
33
|
if (!insightRef || !isActive) {
|
|
20
34
|
return null;
|
|
21
35
|
}
|
|
22
|
-
const { analyticalDashboards } = await getInsightReferences(projectId, insightRef);
|
|
36
|
+
const { analyticalDashboards, documents } = await getInsightReferences(projectId, insightRef);
|
|
23
37
|
const userDashboards = await getAnalyticalDashboards(projectId);
|
|
24
|
-
return
|
|
38
|
+
return {
|
|
39
|
+
dashboards: getInsightUsageOnDashboards(analyticalDashboards || [], userDashboards),
|
|
40
|
+
documents: sortBy(documents ?? [], (document) => document.title.trim().toLowerCase()),
|
|
41
|
+
};
|
|
25
42
|
},
|
|
26
43
|
}, [projectId, insightRef, isActive]);
|
|
27
44
|
};
|
|
28
45
|
export function DeleteReportDialog({ ConfirmDialog = ConfirmDialogComponent }) {
|
|
29
46
|
const intl = useIntl();
|
|
30
|
-
const { deleteReportDialog, projectId, isEmbedded, analyticalDashboardUriFactory } = useSelector(deleteReportDialogSelector);
|
|
47
|
+
const { deleteReportDialog, projectId, isEmbedded, analyticalDashboardUriFactory, documentUriFactory } = useSelector(deleteReportDialogSelector);
|
|
31
48
|
const dispatch = useDispatch();
|
|
32
49
|
const insightRef = deleteReportDialog?.data?.insightRef;
|
|
33
50
|
const active = deleteReportDialog.active;
|
|
@@ -39,7 +56,7 @@ export function DeleteReportDialog({ ConfirmDialog = ConfirmDialogComponent }) {
|
|
|
39
56
|
setIsDeleting(false);
|
|
40
57
|
}
|
|
41
58
|
}, [active]);
|
|
42
|
-
const { result:
|
|
59
|
+
const { result: referencing, status } = useReferencingObjects(projectId, insightRef, active);
|
|
43
60
|
const isLoadingUsages = status === "loading" || status === "pending";
|
|
44
61
|
const onConfirm = () => {
|
|
45
62
|
dispatch(deleteReport(deleteReportDialog.data.insightRef, true));
|
|
@@ -50,8 +67,10 @@ export function DeleteReportDialog({ ConfirmDialog = ConfirmDialogComponent }) {
|
|
|
50
67
|
setIsDeleting(false);
|
|
51
68
|
};
|
|
52
69
|
// TODO it might make sense to unify this and use the tiger way also on bear
|
|
53
|
-
// on tiger we enable the delete once we are sure the insight is not used on any dashboard
|
|
54
|
-
const
|
|
70
|
+
// on tiger we enable the delete once we are sure the insight is not used on any dashboard or in any document
|
|
71
|
+
const isUsedOnDashboards = (referencing?.dashboards.allDashboardsCount ?? 0) > 0;
|
|
72
|
+
const isUsedInDocuments = (referencing?.documents.length ?? 0) > 0;
|
|
73
|
+
const canDelete = !isLoadingUsages && !isUsedOnDashboards && !isUsedInDocuments;
|
|
55
74
|
const shouldDisableDelete = isDeleting || !canDelete;
|
|
56
75
|
if (deleteReportDialog.active) {
|
|
57
76
|
const decoratedTitle = shortenText(deleteReportDialog.data.meta.title, {
|
|
@@ -60,10 +79,10 @@ export function DeleteReportDialog({ ConfirmDialog = ConfirmDialogComponent }) {
|
|
|
60
79
|
return (_jsxs(ConfirmDialog, { onCancel: onClose, onSubmit: onConfirm, className: "gd-delete-report-dialog s-dialog", headline: intl.formatMessage({ id: "dialogs.deleteReportConfirmation.headline" }), cancelButtonText: intl.formatMessage({ id: "dialogs.deleteReportConfirmation.cancel" }), submitButtonText: intl.formatMessage({ id: "dialogs.deleteReportConfirmation.confirm" }), isSubmitDisabled: shouldDisableDelete, children: [canDelete ? (_jsx("p", { className: "s-delete-report-dialog-title", children: _jsx(FormattedMessage, { id: "dialogs.deleteReportConfirmation.description", values: {
|
|
61
80
|
deletedReportTitle: decoratedTitle,
|
|
62
81
|
strong: (chunks) => _jsx("strong", { children: chunks }),
|
|
63
|
-
} }) })) : null, !isLoadingUsages && !canDelete && (_jsx("p", { className: "s-delete-report-dialog-title", children: _jsx(FormattedMessage, {
|
|
82
|
+
} }) })) : null, !isLoadingUsages && !canDelete && (_jsx("p", { className: "s-delete-report-dialog-title", children: _jsx(FormattedMessage, { ...getDeleteProhibitedMessage(isUsedOnDashboards, isUsedInDocuments), values: {
|
|
64
83
|
deletedReportTitle: decoratedTitle,
|
|
65
84
|
strong: (chunks) => _jsx("strong", { children: chunks }),
|
|
66
|
-
} }) })), _jsx(DeleteReportDialogUsageList, { isLoading: isLoadingUsages, isEmbedded: isEmbedded, referencingDashboards:
|
|
85
|
+
} }) })), _jsx(DeleteReportDialogUsageList, { isLoading: isLoadingUsages, isEmbedded: isEmbedded, referencingDashboards: referencing?.dashboards ?? EMPTY_INSIGHT_USAGE_ON_DASHBOARDS, referencingDocuments: referencing?.documents ?? [], analyticalDashboardUriFactory: analyticalDashboardUriFactory, documentUriFactory: documentUriFactory })] }));
|
|
67
86
|
}
|
|
68
87
|
return null;
|
|
69
88
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
+
import { type AnalyticalDashboardUriFactory, type DocumentUriFactory } from "../selectors/uri_selector.js";
|
|
2
3
|
import { type IInsightUsageOnDashboard } from "../store/insight_usage/insight_usage_state.js";
|
|
4
|
+
type ReferencingDocument = Pick<IMetadataObject, "id" | "title">;
|
|
3
5
|
interface IDeleteReportDialogUsageListProps {
|
|
4
6
|
isLoading: boolean;
|
|
5
7
|
isEmbedded: boolean;
|
|
6
8
|
referencingDashboards: IInsightUsageOnDashboard;
|
|
9
|
+
referencingDocuments: ReferencingDocument[];
|
|
7
10
|
analyticalDashboardUriFactory: AnalyticalDashboardUriFactory;
|
|
11
|
+
documentUriFactory: DocumentUriFactory;
|
|
8
12
|
}
|
|
9
|
-
export declare function DeleteReportDialogUsageList({ isLoading, isEmbedded, referencingDashboards, analyticalDashboardUriFactory, }: IDeleteReportDialogUsageListProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function DeleteReportDialogUsageList({ isLoading, isEmbedded, referencingDashboards, referencingDocuments, analyticalDashboardUriFactory, documentUriFactory, }: IDeleteReportDialogUsageListProps): import("react/jsx-runtime").JSX.Element;
|
|
10
14
|
export {};
|
|
11
15
|
//# sourceMappingURL=DeleteReportDialogUsageList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteReportDialogUsageList.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialogUsageList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteReportDialogUsageList.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialogUsageList.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG3D,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC3G,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAgB9F,KAAK,mBAAmB,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,GAAG,OAAO,CAAC,CAAC;AAIjE,UAAU,iCAAiC;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,qBAAqB,EAAE,wBAAwB,CAAC;IAChD,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;IAC5C,6BAA6B,EAAE,6BAA6B,CAAC;IAC7D,kBAAkB,EAAE,kBAAkB,CAAC;CAC1C;AAwJD,wBAAgB,2BAA2B,CAAC,EACxC,SAAS,EACT,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,EAC7B,kBAAkB,GACrB,EAAE,iCAAiC,2CAwCnC"}
|
|
@@ -1,38 +1,51 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import { FormattedMessage,
|
|
5
|
-
import { Message } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { FormattedMessage, defineMessages, useIntl } from "react-intl";
|
|
5
|
+
import { Message, UiButton } from "@gooddata/sdk-ui-kit";
|
|
6
6
|
import { Spinner } from "./catalog/blocks/Spinner.js";
|
|
7
7
|
import { DeleteReportDialogUsageListItem } from "./DeleteReportDialogUsageListItem.js";
|
|
8
|
+
const messages = defineMessages({
|
|
9
|
+
checking: { id: "dialogs.deleteReportConfirmation.usage.checking" },
|
|
10
|
+
notUsed: { id: "dialogs.deleteReportConfirmation.usage.notUsed" },
|
|
11
|
+
dashboardsUsage: { id: "dialogs.deleteReportConfirmation.usage" },
|
|
12
|
+
documentsUsage: { id: "dialogs.deleteReportConfirmation.usage.documents" },
|
|
13
|
+
showMore: { id: "dialogs.deleteReportConfirmation.usage.showMore" },
|
|
14
|
+
showLess: { id: "dialogs.deleteReportConfirmation.usage.showLess" },
|
|
15
|
+
inaccessibleDashboards: { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDashboards" },
|
|
16
|
+
inaccessibleDashboardsOnly: { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDashboardsOnly" },
|
|
17
|
+
});
|
|
18
|
+
const strong = (chunks) => _jsx("strong", { children: chunks });
|
|
19
|
+
function UsageSection({ header, toggleClassName, children }) {
|
|
20
|
+
const intl = useIntl();
|
|
21
|
+
const [showUsageList, setShowUsageList] = useState(false);
|
|
22
|
+
return (_jsxs(Message, { type: "warning", children: [_jsxs("div", { className: "gd-delete-report-dialog-usage-list-header", children: [header, _jsx("span", { className: `gd-delete-report-dialog-usage-more ${toggleClassName}`, children: _jsx(UiButton, { variant: "link", label: intl.formatMessage(showUsageList ? messages.showLess : messages.showMore), onClick: () => setShowUsageList(!showUsageList), accessibilityConfig: { ariaExpanded: showUsageList } }) })] }), showUsageList ? (_jsx("div", { className: "gd-delete-report-dialog-usage-list-wrapper", children: children })) : null] }));
|
|
23
|
+
}
|
|
8
24
|
function ReferencedDashboardsList({ referencingDashboards, isEmbedded, analyticalDashboardUriFactory, }) {
|
|
9
25
|
const { accessibleDashboards } = referencingDashboards;
|
|
10
|
-
return (_jsx("ul", { className: "gd-delete-report-dialog-usage-list", children: accessibleDashboards.map(({ id, title }) => (_jsx(DeleteReportDialogUsageListItem, { id: id, title: title, isEmbedded: isEmbedded,
|
|
26
|
+
return (_jsx("ul", { className: "gd-delete-report-dialog-usage-list", children: accessibleDashboards.map(({ id, title }) => (_jsx(DeleteReportDialogUsageListItem, { id: id, title: title, isEmbedded: isEmbedded, uriFactory: analyticalDashboardUriFactory }, id))) }));
|
|
11
27
|
}
|
|
12
28
|
function InaccessibleDashboardsMessage({ count }) {
|
|
13
|
-
return (_jsx("div", { className: "gd-delete-report-dialog-usage-inaccessible s-delete-report-dialog-usage-inaccessible", children: _jsx(FormattedMessage, {
|
|
29
|
+
return (_jsx("div", { className: "gd-delete-report-dialog-usage-inaccessible s-delete-report-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { ...messages.inaccessibleDashboards, values: { count, b: (chunks) => _jsx("b", { children: chunks }) } }) }));
|
|
14
30
|
}
|
|
15
31
|
function OnlyInaccessibleDashboardsMessage({ count }) {
|
|
16
|
-
return (_jsx("div", { className: "gd-delete-report-dialog-usage-inaccessible s-delete-report-dialog-usage-inaccessible", children: _jsx(FormattedMessage, {
|
|
32
|
+
return (_jsx("div", { className: "gd-delete-report-dialog-usage-inaccessible s-delete-report-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { ...messages.inaccessibleDashboardsOnly, values: { count } }) }));
|
|
17
33
|
}
|
|
18
34
|
function ReferencedDashboards({ referencingDashboards, isEmbedded, analyticalDashboardUriFactory, }) {
|
|
19
35
|
const { allDashboardsCount, accessibleDashboards, inaccessibleDashboardsCount } = referencingDashboards;
|
|
20
|
-
const [showUsageList, setShowUsageList] = useState(false);
|
|
21
|
-
const linkTextIntlKey = showUsageList
|
|
22
|
-
? defineMessage({ id: "dialogs.deleteReportConfirmation.usage.showLess" }).id
|
|
23
|
-
: defineMessage({ id: "dialogs.deleteReportConfirmation.usage.showMore" }).id;
|
|
24
36
|
const renderListOfAccessible = accessibleDashboards.length > 0;
|
|
25
37
|
const renderInaccessibleOnly = accessibleDashboards.length === 0 && inaccessibleDashboardsCount > 0;
|
|
26
38
|
const renderAlsoInaccessible = accessibleDashboards.length > 0 && inaccessibleDashboardsCount > 0;
|
|
27
|
-
return (_jsxs(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
return (_jsxs(UsageSection, { header: _jsx(FormattedMessage, { ...messages.dashboardsUsage, values: { dashboardsCount: allDashboardsCount, strong } }), toggleClassName: "s-delete-report-dialog-usage-more", children: [renderListOfAccessible ? (_jsx(ReferencedDashboardsList, { isEmbedded: isEmbedded, referencingDashboards: referencingDashboards, analyticalDashboardUriFactory: analyticalDashboardUriFactory })) : null, renderAlsoInaccessible ? (_jsx(InaccessibleDashboardsMessage, { count: inaccessibleDashboardsCount })) : null, renderInaccessibleOnly ? (_jsx(OnlyInaccessibleDashboardsMessage, { count: inaccessibleDashboardsCount })) : null] }));
|
|
40
|
+
}
|
|
41
|
+
function ReferencedDocuments({ isEmbedded, referencingDocuments, documentUriFactory, }) {
|
|
42
|
+
return (_jsx(UsageSection, { header: _jsx(FormattedMessage, { ...messages.documentsUsage, values: { documentsCount: referencingDocuments.length, strong } }), toggleClassName: "s-delete-report-dialog-usage-documents-more", children: _jsx("ul", { className: "gd-delete-report-dialog-usage-list", children: referencingDocuments.map(({ id, title }) => (_jsx(DeleteReportDialogUsageListItem, { id: id, title: title, isEmbedded: isEmbedded, uriFactory: documentUriFactory }, id))) }) }));
|
|
31
43
|
}
|
|
32
|
-
export function DeleteReportDialogUsageList({ isLoading, isEmbedded, referencingDashboards, analyticalDashboardUriFactory, }) {
|
|
44
|
+
export function DeleteReportDialogUsageList({ isLoading, isEmbedded, referencingDashboards, referencingDocuments, analyticalDashboardUriFactory, documentUriFactory, }) {
|
|
33
45
|
if (isLoading) {
|
|
34
|
-
return (_jsxs("div", { className: "gd-delete-report-dialog-usage-loading s-delete-report-dialog-usage-loading", children: [_jsx(Spinner, {}), _jsx("span", { className: "gd-delete-report-dialog-usage-loading-message", children: _jsx(FormattedMessage, {
|
|
46
|
+
return (_jsxs("div", { className: "gd-delete-report-dialog-usage-loading s-delete-report-dialog-usage-loading", children: [_jsx(Spinner, {}), _jsx("span", { className: "gd-delete-report-dialog-usage-loading-message", children: _jsx(FormattedMessage, { ...messages.checking }) })] }));
|
|
35
47
|
}
|
|
36
48
|
const isReferencedOnSomeDashboard = referencingDashboards.allDashboardsCount > 0;
|
|
37
|
-
|
|
49
|
+
const isReferencedInSomeDocument = referencingDocuments.length > 0;
|
|
50
|
+
return (_jsxs("div", { className: "gd-delete-report-dialog-usage s-delete-report-dialog-usage", children: [isReferencedOnSomeDashboard ? (_jsx(ReferencedDashboards, { isEmbedded: isEmbedded, referencingDashboards: referencingDashboards, analyticalDashboardUriFactory: analyticalDashboardUriFactory })) : null, isReferencedInSomeDocument ? (_jsx(ReferencedDocuments, { isEmbedded: isEmbedded, referencingDocuments: referencingDocuments, documentUriFactory: documentUriFactory })) : null, isReferencedOnSomeDashboard || isReferencedInSomeDocument ? null : (_jsx(Message, { type: "progress", children: _jsx("div", { className: "gd-delete-report-dialog-no-usage", children: _jsx(FormattedMessage, { ...messages.notUsed }) }) }))] }));
|
|
38
51
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { type AnalyticalDashboardUriFactory } from "../selectors/uri_selector.js";
|
|
2
1
|
interface IDeleteReportDialogUsageListItemProps {
|
|
3
2
|
id: string;
|
|
4
3
|
title: string;
|
|
5
4
|
isEmbedded: boolean;
|
|
6
|
-
|
|
5
|
+
uriFactory: (id: string) => string;
|
|
7
6
|
}
|
|
8
|
-
export declare function DeleteReportDialogUsageListItem({ id, title, isEmbedded,
|
|
7
|
+
export declare function DeleteReportDialogUsageListItem({ id, title, isEmbedded, uriFactory, }: IDeleteReportDialogUsageListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export {};
|
|
10
9
|
//# sourceMappingURL=DeleteReportDialogUsageListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteReportDialogUsageListItem.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialogUsageListItem.tsx"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"DeleteReportDialogUsageListItem.d.ts","sourceRoot":"","sources":["../../src/components/DeleteReportDialogUsageListItem.tsx"],"names":[],"mappings":"AAEA,UAAU,qCAAqC;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;CACtC;AAED,wBAAgB,+BAA+B,CAAC,EAC5C,EAAE,EACF,KAAK,EACL,UAAU,EACV,UAAU,GACb,EAAE,qCAAqC,2CA2BvC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function DeleteReportDialogUsageListItem({ id, title, isEmbedded,
|
|
2
|
+
export function DeleteReportDialogUsageListItem({ id, title, isEmbedded, uriFactory, }) {
|
|
3
3
|
if (isEmbedded) {
|
|
4
4
|
return (_jsx("li", { children: _jsx("div", { className: "gd-delete-report-dialog-usage-list-item s-delete-report-dialog-usage-list-item", children: _jsx("span", { className: "gd-delete-report-dialog-usage-list-item-text", title: title, children: title }) }) }));
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
return (_jsx("li", { children: _jsxs("a", { className: "gd-delete-report-dialog-usage-list-item s-delete-report-dialog-usage-list-item", href: dashboardUri, rel: "noopener noreferrer", target: "_blank", children: [_jsx("span", { className: "gd-delete-report-dialog-usage-list-item-link", title: title, children: title }), _jsx("span", { className: "gd-delete-report-dialog-usage-list-item-icon" })] }) }));
|
|
6
|
+
return (_jsx("li", { children: _jsxs("a", { className: "gd-delete-report-dialog-usage-list-item s-delete-report-dialog-usage-list-item", href: uriFactory(id), rel: "noopener noreferrer", target: "_blank", children: [_jsx("span", { className: "gd-delete-report-dialog-usage-list-item-link", title: title, children: title }), _jsx("span", { className: "gd-delete-report-dialog-usage-list-item-icon" })] }) }));
|
|
8
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAiDA,UAAU,YAAY;IAClB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,MAAM,CAAC,EAAE,iBAAiB,EAAE,EAAE,YAAY,2CAqCzD"}
|
package/esm/components/Editor.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
|
+
import { useLayoutEffect, useRef } from "react";
|
|
3
4
|
import classNames from "classnames";
|
|
4
5
|
import { useSelector } from "react-redux";
|
|
5
6
|
import { isTopBarHidden as isTopBarHiddenSelector } from "../selectors/bootstrap_selector.js";
|
|
@@ -9,10 +10,38 @@ import { CatalogSidebar } from "./catalogSidebar/CatalogSidebar.js";
|
|
|
9
10
|
import { useCatalogSidebar } from "./catalogSidebar/useCatalogSidebarState.js";
|
|
10
11
|
import { EditorHeader } from "./EditorHeader.js";
|
|
11
12
|
import { EditorMain } from "./EditorMain.js";
|
|
13
|
+
const HEADER_HEIGHT_VARIABLE = "--adi-editor-header-height";
|
|
14
|
+
/**
|
|
15
|
+
* Publishes the measured height of the header as a CSS variable on the editor, which places the catalog and the
|
|
16
|
+
* canvas below it. Written to the DOM directly, so a resize does not re-render the header slots.
|
|
17
|
+
*/
|
|
18
|
+
function usePublishedHeaderHeight(editorRef, headerRef, isHeaderVisible) {
|
|
19
|
+
useLayoutEffect(() => {
|
|
20
|
+
const editor = editorRef.current;
|
|
21
|
+
const header = headerRef.current;
|
|
22
|
+
if (!editor || !header || !isHeaderVisible) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const publish = () => editor.style.setProperty(HEADER_HEIGHT_VARIABLE, `${header.clientHeight}px`);
|
|
26
|
+
publish();
|
|
27
|
+
if (typeof ResizeObserver === "undefined") {
|
|
28
|
+
return () => editor.style.removeProperty(HEADER_HEIGHT_VARIABLE);
|
|
29
|
+
}
|
|
30
|
+
const observer = new ResizeObserver(publish);
|
|
31
|
+
observer.observe(header);
|
|
32
|
+
return () => {
|
|
33
|
+
observer.disconnect();
|
|
34
|
+
editor.style.removeProperty(HEADER_HEIGHT_VARIABLE);
|
|
35
|
+
};
|
|
36
|
+
}, [editorRef, headerRef, isHeaderVisible]);
|
|
37
|
+
}
|
|
12
38
|
export function Editor({ hasCatalogSidebar }) {
|
|
13
39
|
const isReportOpening = useSelector(isReportOpeningSelector);
|
|
14
40
|
const isTopBarHidden = useSelector(isTopBarHiddenSelector);
|
|
15
41
|
const { canCollapse, isCollapsed } = useCatalogSidebar();
|
|
42
|
+
const editorRef = useRef(null);
|
|
43
|
+
const headerRef = useRef(null);
|
|
44
|
+
usePublishedHeaderHeight(editorRef, headerRef, !isTopBarHidden);
|
|
16
45
|
function renderMain() {
|
|
17
46
|
if (isReportOpening) {
|
|
18
47
|
return null;
|
|
@@ -22,9 +51,9 @@ export function Editor({ hasCatalogSidebar }) {
|
|
|
22
51
|
function renderLoading() {
|
|
23
52
|
return isReportOpening ? _jsx("div", { className: "editor-loading adi-editor-main" }, "loading") : null;
|
|
24
53
|
}
|
|
25
|
-
return (_jsxs("div", { className: classNames("adi-editor", {
|
|
54
|
+
return (_jsxs("div", { ref: editorRef, className: classNames("adi-editor", {
|
|
26
55
|
"adi-editor--catalog-sidebar": hasCatalogSidebar,
|
|
27
56
|
"adi-editor--catalog-collapsible": canCollapse,
|
|
28
57
|
"adi-editor--catalog-collapsed": isCollapsed,
|
|
29
|
-
}), children: [!isTopBarHidden && _jsx(EditorHeader, {}), _jsx(CatalogSidebar, { isEnabled: hasCatalogSidebar, children: _jsx(CatalogPanel, {}) }), renderMain(), renderLoading()] }));
|
|
58
|
+
}), children: [!isTopBarHidden && _jsx(EditorHeader, { containerRef: headerRef }), _jsx(CatalogSidebar, { isEnabled: hasCatalogSidebar, children: _jsx(CatalogPanel, {}) }), renderMain(), renderLoading()] }));
|
|
30
59
|
}
|
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Ref } from "react";
|
|
2
|
+
import { type IAnalyticalDesignerEditorHeaderProps } from "../embedding/editorHeaderSlotTypes.js";
|
|
3
|
+
interface IEditorHeaderProps {
|
|
4
|
+
/**
|
|
5
|
+
* The header element, which the editor measures to place the content below it.
|
|
6
|
+
*/
|
|
7
|
+
containerRef?: Ref<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The header shell. It keeps the catalog restore control and the dialogs of the header flows outside the
|
|
11
|
+
* EditorHeader slot, so a host that replaces or hides the header cannot strand a collapsed catalog or break a
|
|
12
|
+
* flow its own controls start.
|
|
13
|
+
*/
|
|
14
|
+
export declare function EditorHeader({ containerRef }: IEditorHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* Default of the EditorHeader slot: the visualization information on the left and the actions on the right.
|
|
17
|
+
*/
|
|
18
|
+
export declare function DefaultEditorHeader({ visualizationInfo, editorActions, }: IAnalyticalDesignerEditorHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
2
20
|
//# sourceMappingURL=EditorHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorHeader.d.ts","sourceRoot":"","sources":["../../src/components/EditorHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditorHeader.d.ts","sourceRoot":"","sources":["../../src/components/EditorHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAAyB,MAAM,OAAO,CAAC;AAKxD,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,uCAAuC,CAAC;AAWlG,UAAU,kBAAkB;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CACtC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,YAAY,EAAE,EAAE,kBAAkB,2CAoChE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,iBAAiB,EACjB,aAAa,GAChB,EAAE,oCAAoC,2CAOtC"}
|
|
@@ -1,92 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
|
-
import { useCallback } from "react";
|
|
3
|
+
import { useCallback, useState } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { resetApplication } from "../actions/app_context_actions.js";
|
|
9
|
-
import { cancelEditFromKDAction } from "../actions/cancel_edit_from_kd_actions.js";
|
|
10
|
-
import { redo, undo } from "../actions/time_travel_actions.js";
|
|
11
|
-
import { AVAILABLE_DISPLAYED_ACTIONS, AVAILABLE_HIDDEN_ACTIONS, displayedActions as displayedActionsSelector, hiddenActions as hiddenActionsSelector, isEditorHeaderResetDisabled, isEmbedButtonVisible as isEmbedButtonVisibleSelector, isOptionsMenuEnabled as isOptionsMenuEnabledSelector, isRedoDisabled as isRedoDisabledSelector, isSaveAsVisible as isSaveAsVisibleSelector, isSaveVisible as isSaveVisibleSelector, isUndoDisabled as isUndoDisabledSelector, } from "../selectors/editor_header_selector.js";
|
|
12
|
-
import { enableEnhancedInsightPicker, enableGenAiRightPanel } from "../selectors/feature_flag_selector.js";
|
|
13
|
-
import { isEditFromKD as isEditFromKDSelector, isExploreFromKD as isExploreFromKDSelector, } from "../selectors/route_selector.js";
|
|
5
|
+
import { useSelector } from "react-redux";
|
|
6
|
+
import { renderSlot, useAdSlots } from "../embedding/slots.js";
|
|
7
|
+
import { enableEnhancedInsightPicker } from "../selectors/feature_flag_selector.js";
|
|
14
8
|
import { CatalogSidebarRestoreToggle } from "./catalogSidebar/CatalogSidebarToggle.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
const
|
|
9
|
+
import { useEditorActions } from "./header/EditorActions.js";
|
|
10
|
+
import { useEditorHeaderContext } from "./header/editorHeaderContext.js";
|
|
11
|
+
import { EmbedInsightDialogContainer } from "./header/Embed/EmbedInsightDialogContainer.js";
|
|
12
|
+
import { TimezoneDialog } from "./header/TimezoneDialog.js";
|
|
13
|
+
import { useVisualizationInfo } from "./header/VisualizationInfo.js";
|
|
14
|
+
/**
|
|
15
|
+
* The header shell. It keeps the catalog restore control and the dialogs of the header flows outside the
|
|
16
|
+
* EditorHeader slot, so a host that replaces or hides the header cannot strand a collapsed catalog or break a
|
|
17
|
+
* flow its own controls start.
|
|
18
|
+
*/
|
|
19
|
+
export function EditorHeader({ containerRef }) {
|
|
20
|
+
const slots = useAdSlots();
|
|
21
|
+
const context = useEditorHeaderContext();
|
|
28
22
|
const isEnhancedInsightPickerEnabled = useSelector(enableEnhancedInsightPicker);
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, [dispatch]);
|
|
41
|
-
const onUndo = useCallback(() => {
|
|
42
|
-
dispatch(undo());
|
|
43
|
-
}, [dispatch]);
|
|
44
|
-
const onRedo = useCallback(() => {
|
|
45
|
-
dispatch(redo());
|
|
46
|
-
}, [dispatch]);
|
|
47
|
-
const onResetReport = useCallback(() => {
|
|
48
|
-
dispatch(resetApplication());
|
|
49
|
-
}, [dispatch]);
|
|
50
|
-
const getEditorHeaderClassName = () => {
|
|
51
|
-
return classNames("adi-editor-header", "without-dataset-picker", {
|
|
23
|
+
const [isTimezoneDialogOpen, setIsTimezoneDialogOpen] = useState(false);
|
|
24
|
+
const openTimezoneDialog = useCallback(() => setIsTimezoneDialogOpen(true), []);
|
|
25
|
+
const closeTimezoneDialog = useCallback(() => setIsTimezoneDialogOpen(false), []);
|
|
26
|
+
const visualizationInfo = useVisualizationInfo(context);
|
|
27
|
+
const editorActions = useEditorActions(context, openTimezoneDialog);
|
|
28
|
+
const headerProps = {
|
|
29
|
+
...context,
|
|
30
|
+
visualizationInfo,
|
|
31
|
+
editorActions,
|
|
32
|
+
};
|
|
33
|
+
return (_jsxs("div", { ref: containerRef, className: classNames("adi-editor-header", "without-dataset-picker", {
|
|
52
34
|
"enhanced-insight-picker": isEnhancedInsightPickerEnabled,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return (displayCancel && (_jsx(Button, { value: intl.formatMessage({ id: "cancel" }), className: `gd-button-secondary cancel-edit-from-kd s-cancel-edit-from-kd editor-header-item`, onClick: onCancelEditFromKD })));
|
|
63
|
-
};
|
|
64
|
-
const renderUndoButton = () => {
|
|
65
|
-
return (_jsx("span", { children: _jsxs(BubbleHoverTrigger, { children: [_jsx(Button, { className: "gd-button-secondary gd-button-icon-only gd-icon-undo undo s-undo", value: "", disabled: isUndoDisabled, onClick: onUndo }), _jsx(Bubble, { className: "bubble-primary", alignPoints: [{ align: "bc tc", offset: { x: 0, y: 12 } }], children: intl.formatMessage({ id: "undo" }) })] }) }));
|
|
66
|
-
};
|
|
67
|
-
const renderRedoButton = () => {
|
|
68
|
-
return (_jsx("span", { children: _jsxs(BubbleHoverTrigger, { children: [_jsx(Button, { className: "gd-button-secondary gd-button-icon-only gd-icon-redo redo s-redo", value: "", disabled: isRedoDisabled, onClick: onRedo }), _jsx(Bubble, { className: "bubble-primary", alignPoints: [{ align: "bc tc", offset: { x: 0, y: 12 } }], children: intl.formatMessage({ id: "redo" }) })] }) }));
|
|
69
|
-
};
|
|
70
|
-
const renderUndoRedoButtons = () => {
|
|
71
|
-
const isUndoRedoVisible = !hiddenActions.includes(AVAILABLE_HIDDEN_ACTIONS.UNDO_REDO);
|
|
72
|
-
return (isUndoRedoVisible && (_jsxs("div", { className: "gd-button-group editor-header-item", children: [renderUndoButton(), renderRedoButton()] })));
|
|
73
|
-
};
|
|
74
|
-
const renderClearButton = () => {
|
|
75
|
-
const isClearVisible = !hiddenActions.includes(AVAILABLE_HIDDEN_ACTIONS.CLEAR);
|
|
76
|
-
return (isClearVisible && (_jsx(Button, { value: intl.formatMessage({ id: "reset" }), className: "gd-button-secondary reset s-reset-report editor-header-item", disabled: isResetDisabled, onClick: onResetReport })));
|
|
77
|
-
};
|
|
78
|
-
const renderOpenDropdown = () => {
|
|
79
|
-
const isOpenVisible = !isExploreFromKD && !hiddenActions.includes(AVAILABLE_HIDDEN_ACTIONS.OPEN);
|
|
80
|
-
if (!isOpenVisible) {
|
|
81
|
-
return null;
|
|
82
|
-
}
|
|
83
|
-
return isEnhancedInsightPickerEnabled ? _jsx(InsightPickerDialog, {}) : _jsx(VisualizationsDropdown, {});
|
|
84
|
-
};
|
|
85
|
-
const renderOptionsButton = () => {
|
|
86
|
-
return isOptionsMenuEnabled && _jsx(OptionsButton, {});
|
|
87
|
-
};
|
|
88
|
-
const renderEmbedButton = () => {
|
|
89
|
-
return isEmbedButtonVisible && _jsx(EmbedButton, {});
|
|
90
|
-
};
|
|
91
|
-
return (_jsxs("div", { className: getEditorHeaderClassName(), children: [_jsx(CatalogSidebarRestoreToggle, {}), _jsx("h1", { className: "s-adi-application-title" }), _jsx("div", { className: "left-actions-wrapper", children: _jsx(ReportTitle, {}) }), _jsxs("div", { className: "export-wrapper", children: [renderUndoRedoButtons(), renderClearButton(), renderOpenDropdown(), renderCancelButton(), renderSaveButtons(), renderEmbedButton(), renderOptionsButton()] })] }));
|
|
35
|
+
// the compact layout drops the catalog-width offset; the catalog sidebar layout positions the header
|
|
36
|
+
"without-title-space": context.layout.mode === "compact",
|
|
37
|
+
}), children: [_jsx(CatalogSidebarRestoreToggle, {}), _jsx("h1", { className: "s-adi-application-title" }), _jsx("div", { className: "adi-editor-header-content", children: renderSlot(slots.EditorHeader, DefaultEditorHeader, headerProps) }), _jsx(EmbedInsightDialogContainer, {}), isTimezoneDialogOpen ? _jsx(TimezoneDialog, { onClose: closeTimezoneDialog }) : null] }));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Default of the EditorHeader slot: the visualization information on the left and the actions on the right.
|
|
41
|
+
*/
|
|
42
|
+
export function DefaultEditorHeader({ visualizationInfo, editorActions, }) {
|
|
43
|
+
return (_jsxs("div", { className: "adi-editor-header-row", children: [_jsx("div", { className: "left-actions-wrapper", children: visualizationInfo }), _jsx("div", { className: "export-wrapper", children: editorActions })] }));
|
|
92
44
|
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { type IAnalyticalDesignerHeaderContext, type IAnalyticalDesignerVisualizationDescriptionProps } from "../embedding/editorHeaderSlotTypes.js";
|
|
2
|
+
export declare function useVisualizationDescriptionProps(context: IAnalyticalDesignerHeaderContext): IAnalyticalDesignerVisualizationDescriptionProps;
|
|
3
|
+
/**
|
|
4
|
+
* Default of the VisualizationDescription slot: an icon with a bubble that shows the description and edits it
|
|
5
|
+
* in place. The draft is committed when the bubble closes. Renders nothing for an empty description that cannot
|
|
6
|
+
* be changed.
|
|
7
|
+
*/
|
|
8
|
+
export declare function DefaultVisualizationDescription({ description: currentDescription, addLabel, placeholder, isEditable, filters, separators, onDescriptionChange, }: IAnalyticalDesignerVisualizationDescriptionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
2
9
|
//# sourceMappingURL=ReportDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportDescription.d.ts","sourceRoot":"","sources":["../../src/components/ReportDescription.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReportDescription.d.ts","sourceRoot":"","sources":["../../src/components/ReportDescription.tsx"],"names":[],"mappings":"AAYA,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,gDAAgD,EACxD,MAAM,uCAAuC,CAAC;AAsB/C,wBAAgB,gCAAgC,CAC5C,OAAO,EAAE,gCAAgC,GAC1C,gDAAgD,CAoBlD;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,WAAW,EAAE,kBAAkB,EAC/B,QAAQ,EACR,WAAW,EACX,UAAU,EACV,OAAO,EACP,UAAU,EACV,mBAAmB,GACtB,EAAE,gDAAgD,kDA6GlD"}
|