@gooddata/sdk-ui-dashboard 11.43.0-alpha.4 → 11.43.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.
@@ -1,4 +1,4 @@
1
- export declare const LIB_VERSION = "11.43.0-alpha.4";
1
+ export declare const LIB_VERSION = "11.43.0-alpha.5";
2
2
  export declare const LIB_DESCRIPTION = "GoodData SDK - Dashboard Component";
3
3
  export declare const LIB_NAME = "@gooddata/sdk-ui-dashboard";
4
4
  //# sourceMappingURL=__version.d.ts.map
package/esm/__version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // (C) 2021 GoodData Corporation
2
2
  // DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
3
- export const LIB_VERSION = "11.43.0-alpha.4";
3
+ export const LIB_VERSION = "11.43.0-alpha.5";
4
4
  export const LIB_DESCRIPTION = "GoodData SDK - Dashboard Component";
5
5
  export const LIB_NAME = "@gooddata/sdk-ui-dashboard";
@@ -1,10 +1,11 @@
1
1
  import { type ReactElement, type ReactNode } from "react";
2
2
  /**
3
- * Internal presentational wrapper that holds the dashboard sidebar drag-to-resize state.
3
+ * Internal presentational wrapper that drives the dashboard sidebar drag-to-resize interaction.
4
4
  *
5
- * Owns: committed width (persisted to localStorage), live drag width (only used for the dashed
6
- * indicator transform), drag phase, and a window-width tracker that enforces a minimum editor
7
- * canvas width without overwriting the user's persisted preference.
5
+ * Owns only the live drag state (drag width used for the dashed indicator transform — and drag
6
+ * phase). The committed width, min/max, and the editor-canvas constraint live in the shared
7
+ * {@link useResizableSidebar} state, so the same value also feeds the content area's width via the
8
+ * `--gd-dashboard-sidebar-width` custom property.
8
9
  *
9
10
  * Renders `.gd-sidebar-container` itself so the resize handle can be positioned absolutely inside
10
11
  * it — that element is sticky+100vh, so the handle (and the grip centered inside it) tracks the
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarResizeChrome.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,SAAS,EAKjB,MAAM,OAAO,CAAC;AAqCf;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,gBAAgB,EAChB,QAAQ,EACX,EAAE;IACC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACvB,GAAG,YAAY,CAyHf"}
1
+ {"version":3,"file":"SidebarResizeChrome.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/SidebarResizeChrome.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,SAAS,EAIjB,MAAM,OAAO,CAAC;AAkBf;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,gBAAgB,EAChB,QAAQ,EACX,EAAE;IACC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACvB,GAAG,YAAY,CAiHf"}
@@ -1,15 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // (C) 2026 GoodData Corporation
3
- import { useEffect, useRef, useState, } from "react";
3
+ import { useRef, useState, } from "react";
4
4
  import cx from "classnames";
5
5
  import { clamp } from "lodash-es";
6
- import { useLocalStorage } from "@gooddata/sdk-ui";
7
6
  import { makeKeyboardNavigation, useCloseOnEscape } from "@gooddata/sdk-ui-kit";
8
- const SIDEBAR_MIN_WIDTH = 230;
9
- const SIDEBAR_MAX_WIDTH = 500;
10
- const EDITOR_MIN_WIDTH = 960;
7
+ import { useResizableSidebar } from "./SidebarResizeContext.js";
11
8
  const KEYBOARD_STEP = 10;
12
- const LOCAL_STORAGE_KEY = "gd-dashboard-sidebar-width";
13
9
  const handleSeparatorKeyboardNavigation = makeKeyboardNavigation({
14
10
  shrink: [{ code: "ArrowLeft" }],
15
11
  grow: [{ code: "ArrowRight" }],
@@ -17,23 +13,12 @@ const handleSeparatorKeyboardNavigation = makeKeyboardNavigation({
17
13
  maximize: [{ code: "End" }],
18
14
  });
19
15
  /**
20
- * Returns the current `window.innerWidth`, kept in sync with the `resize` event.
21
- */
22
- function useWindowWidth() {
23
- const [width, setWidth] = useState(() => window.innerWidth);
24
- useEffect(() => {
25
- const handleResize = () => setWidth(window.innerWidth);
26
- window.addEventListener("resize", handleResize);
27
- return () => window.removeEventListener("resize", handleResize);
28
- }, []);
29
- return width;
30
- }
31
- /**
32
- * Internal presentational wrapper that holds the dashboard sidebar drag-to-resize state.
16
+ * Internal presentational wrapper that drives the dashboard sidebar drag-to-resize interaction.
33
17
  *
34
- * Owns: committed width (persisted to localStorage), live drag width (only used for the dashed
35
- * indicator transform), drag phase, and a window-width tracker that enforces a minimum editor
36
- * canvas width without overwriting the user's persisted preference.
18
+ * Owns only the live drag state (drag width used for the dashed indicator transform — and drag
19
+ * phase). The committed width, min/max, and the editor-canvas constraint live in the shared
20
+ * {@link useResizableSidebar} state, so the same value also feeds the content area's width via the
21
+ * `--gd-dashboard-sidebar-width` custom property.
37
22
  *
38
23
  * Renders `.gd-sidebar-container` itself so the resize handle can be positioned absolutely inside
39
24
  * it — that element is sticky+100vh, so the handle (and the grip centered inside it) tracks the
@@ -47,49 +32,46 @@ function useWindowWidth() {
47
32
  export function SidebarResizeChrome({ onContainerClick, children, }) {
48
33
  const [dragWidth, setDragWidth] = useState(null);
49
34
  const dragOriginRef = useRef(null);
50
- const containerWidth = useWindowWidth();
51
- const [persistedWidth, setPersistedWidth] = useLocalStorage(LOCAL_STORAGE_KEY, SIDEBAR_MIN_WIDTH);
52
- const effectiveMax = clamp(containerWidth - EDITOR_MIN_WIDTH, SIDEBAR_MIN_WIDTH, SIDEBAR_MAX_WIDTH);
53
- const effectiveWidth = clamp(persistedWidth, SIDEBAR_MIN_WIDTH, effectiveMax);
35
+ const { width, min, max, canResize, setWidth } = useResizableSidebar();
54
36
  const isDragging = dragWidth !== null;
55
- const isResizable = effectiveMax > SIDEBAR_MIN_WIDTH;
37
+ // Tear down the drag without committing — used when the user presses Escape.
56
38
  const endDrag = () => {
57
39
  dragOriginRef.current = null;
58
40
  setDragWidth(null);
59
41
  };
60
42
  useCloseOnEscape(isDragging, endDrag);
61
43
  const handleKeyDown = handleSeparatorKeyboardNavigation({
62
- shrink: () => setPersistedWidth(clamp(effectiveWidth - KEYBOARD_STEP, SIDEBAR_MIN_WIDTH, effectiveMax)),
63
- grow: () => setPersistedWidth(clamp(effectiveWidth + KEYBOARD_STEP, SIDEBAR_MIN_WIDTH, effectiveMax)),
64
- minimize: () => setPersistedWidth(SIDEBAR_MIN_WIDTH),
65
- maximize: () => setPersistedWidth(effectiveMax),
44
+ shrink: () => setWidth(width - KEYBOARD_STEP),
45
+ grow: () => setWidth(width + KEYBOARD_STEP),
46
+ minimize: () => setWidth(min),
47
+ maximize: () => setWidth(max),
66
48
  });
67
49
  const handlePointerDown = (event) => {
68
50
  event.preventDefault();
69
51
  event.currentTarget.setPointerCapture(event.pointerId);
70
52
  dragOriginRef.current = {
71
53
  clientX: event.clientX,
72
- width: effectiveWidth,
54
+ width,
73
55
  pointerId: event.pointerId,
74
56
  };
75
- setDragWidth(effectiveWidth);
57
+ setDragWidth(width);
76
58
  };
77
59
  const handlePointerMove = (event) => {
78
60
  if (event.pointerId !== dragOriginRef.current?.pointerId) {
79
61
  return;
80
62
  }
81
- const width = widthFromClientX(event.clientX);
82
- if (width !== null) {
83
- setDragWidth(width);
63
+ const nextWidth = widthFromClientX(event.clientX);
64
+ if (nextWidth !== null) {
65
+ setDragWidth(nextWidth);
84
66
  }
85
67
  };
86
- const handlePointerUp = (event) => {
87
- if (event.pointerId !== dragOriginRef.current?.pointerId) {
88
- return;
89
- }
90
- const width = widthFromClientX(event.clientX);
91
- if (width !== null) {
92
- setPersistedWidth(width);
68
+ // Commit the last dragged width, then tear the drag down. onLostPointerCapture fires whenever the
69
+ // captured pointer is released for any reason — pointerup, pointercancel, or the pointer being
70
+ // lost (e.g. the mouse released outside the iframe/window) — so the final width is always
71
+ // persisted even if a plain pointerup never reaches us.
72
+ const handleLostPointerCapture = () => {
73
+ if (dragWidth !== null) {
74
+ setWidth(dragWidth);
93
75
  }
94
76
  endDrag();
95
77
  };
@@ -98,15 +80,15 @@ export function SidebarResizeChrome({ onContainerClick, children, }) {
98
80
  if (!origin) {
99
81
  return null;
100
82
  }
101
- return clamp(origin.width + (clientX - origin.clientX), SIDEBAR_MIN_WIDTH, effectiveMax);
83
+ return clamp(origin.width + (clientX - origin.clientX), min, max);
102
84
  };
103
85
  return (_jsx("div", { className: cx("gd-resizable-sidebar", {
104
- "gd-resizable-sidebar--resizable": isResizable,
86
+ "gd-resizable-sidebar--resizable": canResize,
105
87
  "gd-resizable-sidebar--dragging": isDragging,
106
- }), style: { width: effectiveWidth }, children: _jsxs("div", { className: "col gd-flex-item gd-sidebar-container gd-sidebar-container--resizable", onClick: onContainerClick, children: [children, _jsx("button", { type: "button", style: {
107
- "--drag-x": `${isDragging ? dragWidth : effectiveWidth}px`,
88
+ }), style: { width }, children: _jsxs("div", { className: "col gd-flex-item gd-sidebar-container gd-sidebar-container--resizable", onClick: onContainerClick, children: [children, _jsx("button", { type: "button", style: {
89
+ "--drag-x": `${isDragging ? dragWidth : width}px`,
108
90
  }, className: cx("gd-resizable-sidebar__handle", {
109
91
  "gd-resizable-sidebar__handle--dragging": isDragging,
110
- }), disabled: !isResizable, role: "separator", "aria-orientation": "vertical", "aria-valuemin": SIDEBAR_MIN_WIDTH, "aria-valuemax": effectiveMax, "aria-valuenow": effectiveWidth, onPointerDown: isResizable ? handlePointerDown : undefined, onPointerMove: handlePointerMove, onPointerUp: handlePointerUp, onPointerCancel: endDrag, onKeyDown: isDragging ? undefined : handleKeyDown, children: _jsx("span", { className: "gd-resizable-sidebar__handle-grip", "aria-hidden": "true" }) })
92
+ }), disabled: !canResize, role: "separator", "aria-orientation": "vertical", "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": width, onPointerDown: canResize ? handlePointerDown : undefined, onPointerMove: handlePointerMove, onLostPointerCapture: handleLostPointerCapture, onKeyDown: isDragging ? undefined : handleKeyDown, children: _jsx("span", { className: "gd-resizable-sidebar__handle-grip", "aria-hidden": "true" }) })
111
93
  ] }) }));
112
94
  }
@@ -0,0 +1,37 @@
1
+ import { type ReactNode } from "react";
2
+ interface IResizableSidebar {
3
+ width: number;
4
+ min: number;
5
+ max: number;
6
+ canResize: boolean;
7
+ setWidth: (width: number) => void;
8
+ }
9
+ /**
10
+ * Computes the resizable-sidebar state. When the sidebar is not resizable (not edit mode, the feature
11
+ * is off, or it is replaced by the enhanced insight picker) it returns the static
12
+ * {@link NON_RESIZABLE_SIDEBAR} — no window resize listener, no width math.
13
+ *
14
+ * Reads the config store, so it must be called below the dashboard loading gate where the config is
15
+ * initialized.
16
+ *
17
+ * @internal
18
+ */
19
+ export declare function useResizableSidebarState(): IResizableSidebar;
20
+ /**
21
+ * Shares the resize state produced by {@link useResizableSidebarState} with descendants such as the
22
+ * resize handle, so it stays a single source of truth.
23
+ *
24
+ * @internal
25
+ */
26
+ export declare function ResizableSidebarProvider({ value, children }: {
27
+ value: IResizableSidebar;
28
+ children: ReactNode;
29
+ }): import("react/jsx-runtime").JSX.Element;
30
+ /**
31
+ * Returns the sidebar resize state, or {@link NON_RESIZABLE_SIDEBAR} when the sidebar is not resizable.
32
+ *
33
+ * @internal
34
+ */
35
+ export declare function useResizableSidebar(): IResizableSidebar;
36
+ export {};
37
+ //# sourceMappingURL=SidebarResizeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarResizeContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/SidebarResizeContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAkD,MAAM,OAAO,CAAC;AAsCvF,UAAU,iBAAiB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAeD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,IAAI,iBAAiB,CA2B5D;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,KAAK,EACL,QAAQ,EACX,EAAE;IACC,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACvB,2CAEA;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,iBAAiB,CAEvD"}
@@ -0,0 +1,90 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // (C) 2026 GoodData Corporation
3
+ import { createContext, useContext, useEffect, useState } from "react";
4
+ import { clamp } from "lodash-es";
5
+ import { useLocalStorage } from "@gooddata/sdk-ui";
6
+ import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
7
+ import { selectSettings } from "../../../model/store/config/configSelectors.js";
8
+ import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
9
+ const SIDEBAR_MIN_WIDTH = 230;
10
+ const SIDEBAR_MAX_WIDTH = 500;
11
+ const EDITOR_MIN_WIDTH = 960;
12
+ const LOCAL_STORAGE_KEY = "gd-dashboard-sidebar-width";
13
+ /**
14
+ * Returns the current `window.innerWidth`, kept in sync with the `resize` event. Only attaches the
15
+ * listener while `active`, so a non-resizable sidebar triggers no resize-driven re-renders.
16
+ */
17
+ function useWindowWidth(active) {
18
+ const [width, setWidth] = useState(() => window.innerWidth);
19
+ useEffect(() => {
20
+ if (!active) {
21
+ return undefined;
22
+ }
23
+ setWidth(window.innerWidth);
24
+ const handleResize = () => setWidth(window.innerWidth);
25
+ window.addEventListener("resize", handleResize);
26
+ return () => window.removeEventListener("resize", handleResize);
27
+ }, [active]);
28
+ return width;
29
+ }
30
+ // Stable value used whenever the sidebar is not resizable: it is fixed at the minimum width, cannot
31
+ // be resized, and ignores writes — so consumers never have to null-check.
32
+ const NON_RESIZABLE_SIDEBAR = {
33
+ width: SIDEBAR_MIN_WIDTH,
34
+ min: SIDEBAR_MIN_WIDTH,
35
+ max: SIDEBAR_MIN_WIDTH,
36
+ canResize: false,
37
+ setWidth: () => { },
38
+ };
39
+ const ResizableSidebarContext = createContext(NON_RESIZABLE_SIDEBAR);
40
+ ResizableSidebarContext.displayName = "ResizableSidebarContext";
41
+ /**
42
+ * Computes the resizable-sidebar state. When the sidebar is not resizable (not edit mode, the feature
43
+ * is off, or it is replaced by the enhanced insight picker) it returns the static
44
+ * {@link NON_RESIZABLE_SIDEBAR} — no window resize listener, no width math.
45
+ *
46
+ * Reads the config store, so it must be called below the dashboard loading gate where the config is
47
+ * initialized.
48
+ *
49
+ * @internal
50
+ */
51
+ export function useResizableSidebarState() {
52
+ const settings = useDashboardSelector(selectSettings);
53
+ const isEditMode = useDashboardSelector(selectIsInEditMode);
54
+ const isSidebarResizeEnabled = settings?.enableDashboardSidebarResize ?? false;
55
+ const enableEnhancedInsightPicker = settings?.enableEnhancedInsightPicker ?? false;
56
+ const isResizable = isEditMode && isSidebarResizeEnabled && !enableEnhancedInsightPicker;
57
+ const containerWidth = useWindowWidth(isResizable);
58
+ const [persistedWidth, setPersistedWidth] = useLocalStorage(LOCAL_STORAGE_KEY, SIDEBAR_MIN_WIDTH);
59
+ if (!isResizable) {
60
+ return NON_RESIZABLE_SIDEBAR;
61
+ }
62
+ const max = clamp(containerWidth - EDITOR_MIN_WIDTH, SIDEBAR_MIN_WIDTH, SIDEBAR_MAX_WIDTH);
63
+ const width = clamp(persistedWidth, SIDEBAR_MIN_WIDTH, max);
64
+ return {
65
+ width,
66
+ min: SIDEBAR_MIN_WIDTH,
67
+ max,
68
+ canResize: max > SIDEBAR_MIN_WIDTH,
69
+ // Clamp every write to the current bounds, so callers can't persist an out-of-range width and
70
+ // a non-resizable sidebar (max === min) collapses any value back to the minimum.
71
+ setWidth: (next) => setPersistedWidth(clamp(next, SIDEBAR_MIN_WIDTH, max)),
72
+ };
73
+ }
74
+ /**
75
+ * Shares the resize state produced by {@link useResizableSidebarState} with descendants such as the
76
+ * resize handle, so it stays a single source of truth.
77
+ *
78
+ * @internal
79
+ */
80
+ export function ResizableSidebarProvider({ value, children, }) {
81
+ return _jsx(ResizableSidebarContext.Provider, { value: value, children: children });
82
+ }
83
+ /**
84
+ * Returns the sidebar resize state, or {@link NON_RESIZABLE_SIDEBAR} when the sidebar is not resizable.
85
+ *
86
+ * @internal
87
+ */
88
+ export function useResizableSidebar() {
89
+ return useContext(ResizableSidebarContext);
90
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardInner.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardInner.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAOnD,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,2CA6FpD"}
1
+ {"version":3,"file":"DashboardInner.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardInner.tsx"],"names":[],"mappings":"AAwCA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAOnD,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,2CA2GpD"}
@@ -23,6 +23,7 @@ import { DashboardContent } from "../DashboardContent.js";
23
23
  import { DashboardHeader } from "../DashboardHeader/DashboardHeader.js";
24
24
  import { DashboardSidebar } from "../DashboardSidebar/DashboardSidebar.js";
25
25
  import { RenderModeAwareDashboardSidebar } from "../DashboardSidebar/RenderModeAwareDashboardSidebar.js";
26
+ import { ResizableSidebarProvider, useResizableSidebarState, } from "../DashboardSidebar/SidebarResizeContext.js";
26
27
  import { DashboardScreenSizeProvider } from "./DashboardScreenSizeContext.js";
27
28
  const overlayController = OverlayController.getInstance(DASHBOARD_HEADER_OVERLAYS_Z_INDEX);
28
29
  const toastsOverlayController = OverlayController.getInstance(DASHBOARD_TOASTS_OVERLAY_Z_INDEX);
@@ -56,20 +57,29 @@ export function DashboardInner(props) {
56
57
  "gd-dash-content--density-standard": density === "comfortable",
57
58
  "gd-dash-content--density-compact": density === "compact",
58
59
  });
60
+ const resizableSidebar = useResizableSidebarState();
61
+ // When the sidebar can be resized, expose its live width so the sibling content area can subtract
62
+ // it (see `--gd-dashboard-sidebar-width` in sdk-dashboard.scss). Otherwise leave it unset so the
63
+ // content falls back to the static sidebar width.
64
+ const dashboardsRootStyle = resizableSidebar.canResize
65
+ ? {
66
+ "--gd-dashboard-sidebar-width": `${resizableSidebar.width}px`,
67
+ }
68
+ : undefined;
59
69
  return (_jsx(IntlWrapper, { locale: locale, children: _jsxs(ToastsCenterContextProvider, { skipAutomaticMessageRendering: true, children: [
60
- _jsx(OverlayControllerProvider, { overlayController: toastsOverlayController, children: _jsx(ToastsCenter, {}) }), _jsxs("div", { className: cx("component-root", {
61
- "sdk-edit-mode-on": isEditMode,
62
- "catalog-is-loaded": isCatalogLoaded,
63
- "accessible-dashboards-loaded": accessibleDashboardsLoaded,
64
- }), children: [
65
- _jsx(DragLayerComponent, {}), _jsxs("div", { className: cx("gd-dashboards-root gd-flex-container", {
66
- "gd-dashboards-root--floating-toolbar": enableEnhancedInsightPicker,
67
- }), children: [
68
- _jsx(DashboardSidebar, { DefaultSidebar: RenderModeAwareDashboardSidebar, DeleteDropZoneComponent: DeleteDropZone, WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDrag, WrapInsightListItemWithDragComponent: WrapInsightListItemWithDrag }), _jsxs("main", { className: dashboardContentClassNames, ...mainContentNavigationProps, children: [
69
- _jsx("div", { className: "gd-dash-header-wrapper gd-dash-header-wrapper-sdk-8-12", ref: headerRef, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(DashboardHeader, {}) }) }), _jsxs("div", { className: "gd-flex-item-stretch dash-section dash-section-kpis", ref: layoutRef, children: [
70
- _jsx(DashboardScreenSizeProvider, { children: _jsx(DashboardContent, { ...props }) }), enableEnhancedInsightPicker ? _jsx(FilterDeleteOverlay, {}) : null] }), _jsx("div", { className: "gd-dash-bottom-position-pixel", ref: bottomRef })
71
- ] })
72
- ] }), _jsx(Toolbar, {})
73
- ] })
70
+ _jsx(OverlayControllerProvider, { overlayController: toastsOverlayController, children: _jsx(ToastsCenter, {}) }), _jsx(ResizableSidebarProvider, { value: resizableSidebar, children: _jsxs("div", { className: cx("component-root", {
71
+ "sdk-edit-mode-on": isEditMode,
72
+ "catalog-is-loaded": isCatalogLoaded,
73
+ "accessible-dashboards-loaded": accessibleDashboardsLoaded,
74
+ }), children: [
75
+ _jsx(DragLayerComponent, {}), _jsxs("div", { className: cx("gd-dashboards-root gd-flex-container", {
76
+ "gd-dashboards-root--floating-toolbar": enableEnhancedInsightPicker,
77
+ }), style: dashboardsRootStyle, children: [
78
+ _jsx(DashboardSidebar, { DefaultSidebar: RenderModeAwareDashboardSidebar, DeleteDropZoneComponent: DeleteDropZone, WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDrag, WrapInsightListItemWithDragComponent: WrapInsightListItemWithDrag }), _jsxs("main", { className: dashboardContentClassNames, ...mainContentNavigationProps, children: [
79
+ _jsx("div", { className: "gd-dash-header-wrapper gd-dash-header-wrapper-sdk-8-12", ref: headerRef, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(DashboardHeader, {}) }) }), _jsxs("div", { className: "gd-flex-item-stretch dash-section dash-section-kpis", ref: layoutRef, children: [
80
+ _jsx(DashboardScreenSizeProvider, { children: _jsx(DashboardContent, { ...props }) }), enableEnhancedInsightPicker ? _jsx(FilterDeleteOverlay, {}) : null] }), _jsx("div", { className: "gd-dash-bottom-position-pixel", ref: bottomRef })
81
+ ] })
82
+ ] }), _jsx(Toolbar, {})
83
+ ] }) })
74
84
  ] }) }));
75
85
  }
@@ -742,7 +742,7 @@ export const zh_Hant = {
742
742
  "insightAlert.config.accessibility.title": "自訂警報名稱",
743
743
  "insightAlert.config.when": "什麼時候",
744
744
  "insightAlert.config.for": "為了",
745
- "insightAlert.config.condition": "狀態",
745
+ "insightAlert.config.condition": "條件",
746
746
  "insightAlert.config.threshold": "臨界點",
747
747
  "insightAlert.config.comparison": "比較",
748
748
  "insightAlert.config.recipients": "收件者",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "11.43.0-alpha.4",
3
+ "version": "11.43.0-alpha.5",
4
4
  "description": "GoodData SDK - Dashboard Component",
5
5
  "license": "LicenseRef-LICENSE",
6
6
  "author": "GoodData Corporation",
@@ -60,19 +60,19 @@
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.43.0-alpha.4",
64
- "@gooddata/sdk-backend-spi": "11.43.0-alpha.4",
65
- "@gooddata/sdk-ui-charts": "11.43.0-alpha.4",
66
- "@gooddata/sdk-model": "11.43.0-alpha.4",
67
- "@gooddata/sdk-ui": "11.43.0-alpha.4",
68
- "@gooddata/sdk-ui-ext": "11.43.0-alpha.4",
69
- "@gooddata/sdk-ui-filters": "11.43.0-alpha.4",
70
- "@gooddata/sdk-ui-geo": "11.43.0-alpha.4",
71
- "@gooddata/sdk-ui-kit": "11.43.0-alpha.4",
72
- "@gooddata/sdk-ui-pivot": "11.43.0-alpha.4",
73
- "@gooddata/sdk-ui-theme-provider": "11.43.0-alpha.4",
74
- "@gooddata/sdk-ui-vis-commons": "11.43.0-alpha.4",
75
- "@gooddata/util": "11.43.0-alpha.4"
63
+ "@gooddata/sdk-backend-base": "11.43.0-alpha.5",
64
+ "@gooddata/sdk-backend-spi": "11.43.0-alpha.5",
65
+ "@gooddata/sdk-model": "11.43.0-alpha.5",
66
+ "@gooddata/sdk-ui": "11.43.0-alpha.5",
67
+ "@gooddata/sdk-ui-charts": "11.43.0-alpha.5",
68
+ "@gooddata/sdk-ui-filters": "11.43.0-alpha.5",
69
+ "@gooddata/sdk-ui-ext": "11.43.0-alpha.5",
70
+ "@gooddata/sdk-ui-kit": "11.43.0-alpha.5",
71
+ "@gooddata/sdk-ui-geo": "11.43.0-alpha.5",
72
+ "@gooddata/sdk-ui-theme-provider": "11.43.0-alpha.5",
73
+ "@gooddata/sdk-ui-pivot": "11.43.0-alpha.5",
74
+ "@gooddata/util": "11.43.0-alpha.5",
75
+ "@gooddata/sdk-ui-vis-commons": "11.43.0-alpha.5"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@microsoft/api-documenter": "^7.17.0",
@@ -118,12 +118,12 @@
118
118
  "typescript": "5.9.3",
119
119
  "vitest": "4.1.8",
120
120
  "vitest-dom": "0.1.1",
121
- "@gooddata/eslint-config": "11.43.0-alpha.4",
122
- "@gooddata/i18n-toolkit": "11.43.0-alpha.4",
123
- "@gooddata/oxlint-config": "11.43.0-alpha.4",
124
- "@gooddata/reference-workspace": "11.43.0-alpha.4",
125
- "@gooddata/sdk-backend-mockingbird": "11.43.0-alpha.4",
126
- "@gooddata/stylelint-config": "11.43.0-alpha.4"
121
+ "@gooddata/eslint-config": "11.43.0-alpha.5",
122
+ "@gooddata/i18n-toolkit": "11.43.0-alpha.5",
123
+ "@gooddata/oxlint-config": "11.43.0-alpha.5",
124
+ "@gooddata/reference-workspace": "11.43.0-alpha.5",
125
+ "@gooddata/sdk-backend-mockingbird": "11.43.0-alpha.5",
126
+ "@gooddata/stylelint-config": "11.43.0-alpha.5"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "react": "^18.0.0 || ^19.0.0",
@@ -345,11 +345,10 @@
345
345
  margin-left: 15px;
346
346
  margin-right: 15px;
347
347
  }
348
- .sdk-edit-mode-on .gd-visualizations-list .fixedDataTableRowLayout_rowWrapper:hover {
348
+ .sdk-edit-mode-on .gd-visualizations-list .gd-infinite-list-item:hover {
349
349
  z-index: 1 !important;
350
350
  }
351
- .sdk-edit-mode-on .gd-visualizations-list .public_fixedDataTableRow_main,
352
- .sdk-edit-mode-on .gd-visualizations-list .public_fixedDataTableCell_main {
351
+ .sdk-edit-mode-on .gd-visualizations-list .gd-infinite-list-item {
353
352
  background: none;
354
353
  }
355
354
  .sdk-edit-mode-on .gd-visualizations-list .gd-visualizations-list-item {
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Button/_variables.scss","../scss/configurationPanel.scss","../scss/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss","../scss/_zIndexes.scss"],"names":[],"mappings":"AA0HA;AA4DA;ACjLA;AAAA;AAAA;ACDA;AAAA;AAAA;ACEA;EACI;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA,kBCwCgB;EDvChB;EACA;;AAEA;EACI;EACA;EACA;EACA,OECe;;AFEnB;EACI,OC2E6B;ED1E7B;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;;;AAMR;EACI;;;AAMR;EAII,SGtEkB;;AHwElB;EACI,SGxEqB;;AH6EzB;EACI,SG/Ec;;AHkFlB;EACI,SGjFqB;EHkFrB,OCiBwB;;ADfxB;EACI,SGpFwB;;AHuF5B;EACI;;AAGJ;EACI;;AAIA;EACI;;AAIR;EACI,YCLqB;EDMrB;EACA;EACA;EACA;;AAGJ;EACI,YCVqB;EDWrB,aCXqB;EDYrB,cCZqB;EDarB;EACA;;AAEA;EACI,eCjBiB;;ADqBzB;EACI;;AAGJ;EACI;EACA;EACA;EACA;;AAEA;EACI;;AAIJ;EACI;;AAIR;EACI;EACA;EACA;EACA;;AAEA;EACI;;AAIR;EACI;E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;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;;AAOI;EACI;;AAQhB;EACI;;AAIR;EACI,OCva6B;;ADya7B;EACI;;AAKJ;EACI;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AAEA;EACI;;AAGJ;EACI,MACI;EAEJ;;AAIR;EACI;EACA;;AAGJ;EACI;;AAGJ;EACI;;AAIR;EACI;EACA;EACA;;AAIA;EACI;EACA;;AAGJ;EACI;;AAGJ;EACI;EACA;;AAEA;EACI,OEljBA;;AFsjBR;EACI;;AAEA;EACI;;AAGJ;EACI;EACA;;AAIR;EACI;EACA,OE5kBW;;AF8kBX;EACI,OE5ZC;;;AFkajB;EACI;;AAEA;EACI;EACA;EACA;;;AAIR;EACI;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;AAGJ;EACI;EACA","file":"configurationPanel.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Button/_variables.scss","../scss/configurationPanel.scss","../scss/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss","../scss/_zIndexes.scss"],"names":[],"mappings":"AA0HA;AA4DA;ACjLA;AAAA;AAAA;ACDA;AAAA;AAAA;ACEA;EACI;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA,kBCwCgB;EDvChB;EACA;;AAEA;EACI;EACA;EACA;EACA,OECe;;AFEnB;EACI,OC2E6B;ED1E7B;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;;;AAMR;EACI;;;AAMR;EAII,SGtEkB;;AHwElB;EACI,SGxEqB;;AH6EzB;EACI,SG/Ec;;AHkFlB;EACI,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