@gooddata/sdk-ui-dashboard 11.57.0-alpha.3 → 11.57.0-alpha.5
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 +5 -5
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/kdaDialog/dialog/hooks/useChangeAnalysis.js +1 -1
- package/esm/model/react/useDashboardAsyncRender.js +2 -2
- package/esm/model/react/useDashboardCommand.js +1 -1
- package/esm/model/react/useDashboardQueryProcessing.js +1 -1
- package/esm/model/react/useDispatchDashboardCommand.js +1 -1
- package/esm/model/react/useInitializeDashboardStore.js +1 -1
- package/esm/model/react/useWidgetFilters.js +7 -7
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogAttribute.js +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useElementHeightSnapshot.js +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.js +3 -3
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useTitleConfiguration.js +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/limitValues/dialog/DateFiltersPage.js +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.js +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js +1 -1
- package/esm/presentation/insightList/InsightList.js +1 -1
- package/esm/presentation/saveAs/DefaultSaveAsDialog/useSaveAs.js +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +4 -4
- package/esm/presentation/widget/common/configuration/useAttributeFilterConfigurationHandling.js +5 -5
- package/esm/presentation/widget/common/configuration/useDateFilterConfigurationHandling.js +5 -5
- package/esm/presentation/widget/common/configuration/useIsSelectedDatasetHidden.js +1 -1
- package/esm/presentation/widget/common/configuration/useMeasureValueFilterConfigurationHandling.js +5 -5
- package/esm/presentation/widget/common/useCustomWidgetInsightDataView.js +3 -3
- package/esm/presentation/widget/common/useExportHandler.js +1 -1
- package/esm/presentation/widget/common/useImageExportHandler.d.ts.map +1 -1
- package/esm/presentation/widget/common/useImageExportHandler.js +2 -2
- package/esm/presentation/widget/common/useInsightExport.js +11 -11
- package/esm/presentation/widget/common/useInsightWidgetDataView.js +2 -2
- package/esm/presentation/widget/common/useRawExportHandler.js +1 -1
- package/esm/presentation/widget/common/useSlidesExportHandler.js +1 -1
- package/esm/presentation/widget/common/useWidgetHighlighting.js +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +6 -6
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/useResolveDashboardInsightProperties.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.js +2 -2
- package/esm/presentation/widget/visualizationSwitcher/configuration/Toolbar.js +2 -2
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList/VisualizationListMenu.js +2 -2
- package/esm/presentation/widget/widget/DashboardWidget.js +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +1 -1
- package/package.json +23 -24
- package/styles/css/main.css +1 -0
- package/styles/css/main.css.map +1 -1
package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js
CHANGED
|
@@ -65,7 +65,7 @@ export function DashboardInsight({ insight, widget, clientHeight, clientWidth, b
|
|
|
65
65
|
const afterRenderCalled = useRef(false);
|
|
66
66
|
useEffect(() => {
|
|
67
67
|
onRequestAsyncRender();
|
|
68
|
-
//
|
|
68
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
69
69
|
}, []);
|
|
70
70
|
// Custom components
|
|
71
71
|
const { ErrorComponent, LoadingComponent } = useDashboardComponentsContext({
|
|
@@ -109,7 +109,7 @@ export function DashboardInsight({ insight, widget, clientHeight, clientWidth, b
|
|
|
109
109
|
setIsVisualizationLoading(isLoading);
|
|
110
110
|
onLoadingChanged?.({ isLoading });
|
|
111
111
|
},
|
|
112
|
-
//
|
|
112
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
113
113
|
[onLoadingChanged, executionsHandler.onLoadingChanged, initialRegistered]);
|
|
114
114
|
const handleAfterRender = useCallback(() => {
|
|
115
115
|
if (!afterRenderCalled.current) {
|
|
@@ -117,7 +117,7 @@ export function DashboardInsight({ insight, widget, clientHeight, clientWidth, b
|
|
|
117
117
|
onResolveAsyncRender();
|
|
118
118
|
setIsVisualizationInitializing(false);
|
|
119
119
|
}
|
|
120
|
-
//
|
|
120
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
121
121
|
}, [afterRender, onResolveAsyncRender]);
|
|
122
122
|
// Filtering
|
|
123
123
|
const { result: filtersForInsight, status: filtersStatus, error: filtersError, } = useWidgetFilters(widget, insight);
|
|
@@ -129,7 +129,7 @@ export function DashboardInsight({ insight, widget, clientHeight, clientWidth, b
|
|
|
129
129
|
*/
|
|
130
130
|
const filtersForInsightHash = stringify(filtersForInsight);
|
|
131
131
|
const insightWithAddedFilters = useMemo(() => insightSetFilters(insight, filtersForInsight),
|
|
132
|
-
//
|
|
132
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
133
133
|
[insight, filtersForInsightHash]);
|
|
134
134
|
const insightWithAddedWidgetProperties = useResolveDashboardInsightProperties({
|
|
135
135
|
insight: insightWithAddedFilters ?? insight,
|
|
@@ -150,7 +150,7 @@ export function DashboardInsight({ insight, widget, clientHeight, clientWidth, b
|
|
|
150
150
|
executionsHandler.onPushData(data);
|
|
151
151
|
handlePropertiesPushData(data);
|
|
152
152
|
},
|
|
153
|
-
//
|
|
153
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
154
154
|
[onPushData, executionsHandler.onPushData, handlePropertiesPushData]);
|
|
155
155
|
// Error handling
|
|
156
156
|
const handleError = useCallback((error) => {
|
|
@@ -161,7 +161,7 @@ export function DashboardInsight({ insight, widget, clientHeight, clientWidth, b
|
|
|
161
161
|
onResolveAsyncRender();
|
|
162
162
|
setIsVisualizationInitializing(false);
|
|
163
163
|
},
|
|
164
|
-
//
|
|
164
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
165
165
|
[onError, executionsHandler.onError, onResolveAsyncRender]);
|
|
166
166
|
const effectiveError = filtersError ?? visualizationError;
|
|
167
167
|
const execConfig = useWidgetExecConfig(ref, insight);
|
|
@@ -64,7 +64,7 @@ export function DrillDialogInsight({ insight, widget, backend, workspace, drillS
|
|
|
64
64
|
const handleLoadingChanged = useCallback(({ isLoading }) => {
|
|
65
65
|
setIsVisualizationLoading(isLoading);
|
|
66
66
|
onLoadingChanged?.({ isLoading });
|
|
67
|
-
//
|
|
67
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
68
68
|
}, []);
|
|
69
69
|
// Filtering
|
|
70
70
|
const { result: availableFiltersForInsight, status: filtersStatus, error: filtersError, } = useWidgetFilters(widget, insight);
|
|
@@ -6,6 +6,6 @@ import { mergeInsightWithWidgetProperties } from "../../../../_staging/insight/i
|
|
|
6
6
|
*/
|
|
7
7
|
export const useResolveDashboardInsightProperties = (props) => {
|
|
8
8
|
const { widget, insight } = props;
|
|
9
|
-
//
|
|
9
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
10
10
|
return useMemo(() => mergeInsightWithWidgetProperties(insight, widget), [insight, widget.properties]);
|
|
11
11
|
};
|
|
@@ -76,13 +76,13 @@ export const useInsightDrillConfigPanel = (props) => {
|
|
|
76
76
|
return availableDrillTargets
|
|
77
77
|
? getMappedConfigForWidget(widgetDrills, availableDrillTargets, invalidCustomUrlDrillLocalIds, widgetRef)
|
|
78
78
|
: [];
|
|
79
|
-
//
|
|
79
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
80
80
|
}, [availableDrillTargets, widgetDrills, invalidCustomUrlDrillLocalIds]);
|
|
81
81
|
const globalDrillDownItems = useMemo(() => {
|
|
82
82
|
return availableDrillTargets
|
|
83
83
|
? getGlobalDrillDownMappedConfigForWidget(widgetGlobalDrillDowns, availableDrillTargets, widget)
|
|
84
84
|
: [];
|
|
85
|
-
//
|
|
85
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
86
86
|
}, [widgetGlobalDrillDowns, availableDrillTargets]);
|
|
87
87
|
const drillToUrlItems = useMemo(() => {
|
|
88
88
|
return availableDrillTargets
|
|
@@ -67,7 +67,7 @@ export function Toolbar({ widget, onVisualizationsChanged, onVisualizationAdded,
|
|
|
67
67
|
onVisualizationsChanged(updatedVisualizations);
|
|
68
68
|
userInteraction.visualizationSwitcherInteraction("visualizationSwitcherOrderChanged");
|
|
69
69
|
},
|
|
70
|
-
//
|
|
70
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
71
71
|
[onVisualizationsChanged, visualizations]);
|
|
72
72
|
const showVisualizationsList = () => {
|
|
73
73
|
setVisualizationsListVisible(true);
|
|
@@ -82,7 +82,7 @@ export function Toolbar({ widget, onVisualizationsChanged, onVisualizationAdded,
|
|
|
82
82
|
setVisualizationsListVisible(false);
|
|
83
83
|
userInteraction.visualizationSwitcherInteraction("visualizationSwitcherVisualizationDetailOpened");
|
|
84
84
|
},
|
|
85
|
-
//
|
|
85
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
86
86
|
[onSelectedVisualizationChanged]);
|
|
87
87
|
const activeVisualization = visualizations.find((visualization) => visualization.identifier === activeVisualizationId);
|
|
88
88
|
const shouldShowVisualizationsList = isVisualizationsListVisible || !activeVisualization;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2024-
|
|
2
|
+
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
@@ -15,7 +15,7 @@ export function VisualizationListMenu({ alignTo, isLast, isFirst, visualization,
|
|
|
15
15
|
onVisualizationPositionChange(visualization.identifier, direction);
|
|
16
16
|
onMenuButtonClick();
|
|
17
17
|
},
|
|
18
|
-
//
|
|
18
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
19
19
|
[visualization.identifier]);
|
|
20
20
|
return (_jsx(Overlay, { alignTo: alignTo, alignPoints: menuAlignPoints, className: "gd-more-menu-overlay", closeOnMouseDrag: true, closeOnOutsideClick: true, onClose: onMenuButtonClick, children: _jsxs(ItemsWrapper, { smallItemsSpacing: true, className: ".s-visualization-switcher-more-menu", children: [shouldRenderActions ? (_jsxs(_Fragment, { children: [_jsx(VisualizationListMenuItem, { className: cx("gd-vis-switcher-show-more-item", { "is-disabled": isFirst }), disabled: isFirst, onClick: () => {
|
|
21
21
|
handleOnVisualizationPositionChange(isFirst, "moveUp");
|
|
@@ -52,7 +52,7 @@ export function DashboardWidget(props) {
|
|
|
52
52
|
}
|
|
53
53
|
console.warn(`Unable to render widget ${extendedWidgetDebugStr(widget)}`);
|
|
54
54
|
return BadWidgetType;
|
|
55
|
-
//
|
|
55
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
56
56
|
}, [widget]);
|
|
57
57
|
return (_jsx(WidgetComponent, { ...props,
|
|
58
58
|
// @ts-expect-error Don't expose index prop on public interface (we need it only for css class for KD tests)
|
|
@@ -75,7 +75,7 @@ index, parentLayoutItemSize, parentLayoutPath, rowIndex, exportData, }) {
|
|
|
75
75
|
onError(error, executionId);
|
|
76
76
|
},
|
|
77
77
|
});
|
|
78
|
-
//
|
|
78
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
79
79
|
}, [effectiveBackend, dispatchEvent, safeSerializeObjRef(ref)]);
|
|
80
80
|
if (isWidget(widget)) {
|
|
81
81
|
return (_jsx(BackendProvider, { backend: backendWithEventing, children: _jsx(WidgetComponent, { widget: widget, screen: screen, index: index, parentLayoutPath: parentLayoutPath, onFiltersChange: onFiltersChange, onError: onError, rowIndex: rowIndex, exportData: exportData }) }));
|
|
@@ -96,7 +96,7 @@ function useDefaultMenuItems(config, setIsMenuOpen) {
|
|
|
96
96
|
exportPdfTabularDisabled,
|
|
97
97
|
disabledReason,
|
|
98
98
|
}, execution);
|
|
99
|
-
//
|
|
99
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
100
100
|
}, [
|
|
101
101
|
intl,
|
|
102
102
|
exportCSVEnabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "11.57.0-alpha.
|
|
3
|
+
"version": "11.57.0-alpha.5",
|
|
4
4
|
"description": "GoodData SDK - Dashboard Component",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
"ts-invariant": "0.10.3",
|
|
61
61
|
"tslib": "2.8.1",
|
|
62
62
|
"uuid": "11.1.1",
|
|
63
|
-
"@gooddata/sdk-backend-base": "11.57.0-alpha.
|
|
64
|
-
"@gooddata/sdk-
|
|
65
|
-
"@gooddata/sdk-model": "11.57.0-alpha.
|
|
66
|
-
"@gooddata/sdk-ui
|
|
67
|
-
"@gooddata/sdk-
|
|
68
|
-
"@gooddata/sdk-ui-ext": "11.57.0-alpha.
|
|
69
|
-
"@gooddata/sdk-ui-
|
|
70
|
-
"@gooddata/sdk-ui-
|
|
71
|
-
"@gooddata/sdk-ui-kit": "11.57.0-alpha.
|
|
72
|
-
"@gooddata/sdk-ui-
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/sdk-ui-theme-provider": "11.57.0-alpha.
|
|
75
|
-
"@gooddata/sdk-ui-vis-commons": "11.57.0-alpha.
|
|
76
|
-
"@gooddata/util": "11.57.0-alpha.
|
|
63
|
+
"@gooddata/sdk-backend-base": "11.57.0-alpha.5",
|
|
64
|
+
"@gooddata/sdk-backend-spi": "11.57.0-alpha.5",
|
|
65
|
+
"@gooddata/sdk-model": "11.57.0-alpha.5",
|
|
66
|
+
"@gooddata/sdk-ui": "11.57.0-alpha.5",
|
|
67
|
+
"@gooddata/sdk-ui-charts": "11.57.0-alpha.5",
|
|
68
|
+
"@gooddata/sdk-ui-ext": "11.57.0-alpha.5",
|
|
69
|
+
"@gooddata/sdk-ui-filters": "11.57.0-alpha.5",
|
|
70
|
+
"@gooddata/sdk-ui-geo": "11.57.0-alpha.5",
|
|
71
|
+
"@gooddata/sdk-ui-kit": "11.57.0-alpha.5",
|
|
72
|
+
"@gooddata/sdk-ui-pivot": "11.57.0-alpha.5",
|
|
73
|
+
"@gooddata/sdk-ui-semantic-search": "11.57.0-alpha.5",
|
|
74
|
+
"@gooddata/sdk-ui-theme-provider": "11.57.0-alpha.5",
|
|
75
|
+
"@gooddata/sdk-ui-vis-commons": "11.57.0-alpha.5",
|
|
76
|
+
"@gooddata/util": "11.57.0-alpha.5"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@microsoft/api-documenter": "7.30.10",
|
|
@@ -99,14 +99,13 @@
|
|
|
99
99
|
"eslint-plugin-no-barrel-files": "1.2.2",
|
|
100
100
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
101
101
|
"eslint-plugin-react": "7.37.5",
|
|
102
|
-
"eslint-plugin-react-hooks": "5.2.0",
|
|
103
102
|
"eslint-plugin-sonarjs": "3.0.6",
|
|
104
103
|
"happy-dom": "20.12.0",
|
|
105
104
|
"npm-run-all": "4.1.5",
|
|
106
105
|
"oxfmt": "0.66.0",
|
|
107
|
-
"oxlint": "1.
|
|
106
|
+
"oxlint": "1.82.0",
|
|
108
107
|
"oxlint-plugin-eslint": "1.82.0",
|
|
109
|
-
"oxlint-tsgolint": "0.
|
|
108
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
110
109
|
"raf": "3.4.1",
|
|
111
110
|
"react": "19.1.1",
|
|
112
111
|
"react-dom": "19.1.1",
|
|
@@ -116,12 +115,12 @@
|
|
|
116
115
|
"typescript": "7.0.2",
|
|
117
116
|
"vitest": "4.1.8",
|
|
118
117
|
"vitest-dom": "0.1.1",
|
|
119
|
-
"@gooddata/eslint-config": "11.57.0-alpha.
|
|
120
|
-
"@gooddata/i18n-toolkit": "11.57.0-alpha.
|
|
121
|
-
"@gooddata/oxlint-config": "11.57.0-alpha.
|
|
122
|
-
"@gooddata/
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/
|
|
118
|
+
"@gooddata/eslint-config": "11.57.0-alpha.5",
|
|
119
|
+
"@gooddata/i18n-toolkit": "11.57.0-alpha.5",
|
|
120
|
+
"@gooddata/oxlint-config": "11.57.0-alpha.5",
|
|
121
|
+
"@gooddata/reference-workspace": "11.57.0-alpha.5",
|
|
122
|
+
"@gooddata/sdk-backend-mockingbird": "11.57.0-alpha.5",
|
|
123
|
+
"@gooddata/stylelint-config": "11.57.0-alpha.5"
|
|
125
124
|
},
|
|
126
125
|
"peerDependencies": {
|
|
127
126
|
"react": "^18.0.0 || ^19.0.0",
|