@gooddata/sdk-ui-dashboard 10.14.0-alpha.1 → 10.14.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 +1919 -3
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +12 -4
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +3 -2
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +1 -1
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +1 -1
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/index.d.ts +1 -1
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +1 -1
- package/esm/model/store/index.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts +11 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js +53 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js +17 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +199 -0
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts +9 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +57 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js +20 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts +21 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js +18 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +41 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts +15 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js +19 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.d.ts +6 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js +33 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js +39 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts +24 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +50 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts +24 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +15 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +9 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +12 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js +12 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js +13 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js +32 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.js +26 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.d.ts +16 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.js +38 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +66 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js +18 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js +14 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js +14 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts +19 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js +14 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts +337 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.js +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js +31 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.js +33 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts +43 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +346 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts +22 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js +96 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +101 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardError.d.ts +3 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardError.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardError.js +10 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardError.js.map +1 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardLayout.d.ts +3 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardLayout.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardLayout.js +9 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardLayout.js.map +1 -0
- package/esm/presentation/flexibleLayout/constants.d.ts +4 -0
- package/esm/presentation/flexibleLayout/constants.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/constants.js +14 -0
- package/esm/presentation/flexibleLayout/constants.js.map +1 -0
- package/esm/presentation/flexibleLayout/index.d.ts +3 -0
- package/esm/presentation/flexibleLayout/index.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/index.js +4 -0
- package/esm/presentation/flexibleLayout/index.js.map +1 -0
- package/esm/presentation/flexibleLayout/refs.d.ts +5 -0
- package/esm/presentation/flexibleLayout/refs.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/refs.js +7 -0
- package/esm/presentation/flexibleLayout/refs.js.map +1 -0
- package/esm/presentation/flexibleLayout/types.d.ts +22 -0
- package/esm/presentation/flexibleLayout/types.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/types.js +2 -0
- package/esm/presentation/flexibleLayout/types.js.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayout.js +17 -8
- package/esm/presentation/layout/DefaultDashboardLayout.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +7 -7
- package/package.json +15 -15
- package/styles/css/dashboard.css +324 -0
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/flexibleLayout.css +425 -0
- package/styles/css/flexibleLayout.css.map +1 -0
- package/styles/css/main.css +324 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/dashboard.scss +1 -0
- package/styles/scss/flexibleLayout.scss +410 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// (C) 2022-2024 GoodData Corporation
|
|
2
|
+
import { renderModeAware } from "../componentDefinition/index.js";
|
|
3
|
+
import { EmptyDashboardDropZone } from "../dragAndDrop/index.js";
|
|
4
|
+
import { EmptyDashboardError } from "./EmptyDashboardError.js";
|
|
5
|
+
export const EmptyDashboardLayout = renderModeAware({
|
|
6
|
+
view: EmptyDashboardError,
|
|
7
|
+
edit: EmptyDashboardDropZone,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=EmptyDashboardLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyDashboardLayout.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/EmptyDashboardLayout.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC;IAChD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,sBAAsB;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAEhD,eAAO,MAAM,YAAY,SASb,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// (C) 2022-2024 GoodData Corporation
|
|
2
|
+
export const DEFAULT_COLUMN_CLIENT_WIDTH = 100;
|
|
3
|
+
export const DEFAULT_WIDTH_RESIZER_HEIGHT = 300;
|
|
4
|
+
export const emptyDOMRect = {
|
|
5
|
+
x: 0,
|
|
6
|
+
y: 0,
|
|
7
|
+
bottom: 0,
|
|
8
|
+
top: 0,
|
|
9
|
+
left: 0,
|
|
10
|
+
right: 0,
|
|
11
|
+
height: 0,
|
|
12
|
+
width: 0,
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/constants.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAC;AAC/C,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC;AAEhD,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;CACA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ObjRef } from "@gooddata/sdk-model";
|
|
2
|
+
import { IDashboardLayoutSectionFacade, IDashboardLayoutItemFacade } from "../../_staging/dashboard/fluidLayout/index.js";
|
|
3
|
+
export declare function getRefsForSection(section: IDashboardLayoutSectionFacade<unknown>): (ObjRef | undefined)[];
|
|
4
|
+
export declare function getRefsForItem(item: IDashboardLayoutItemFacade<unknown>): (ObjRef | undefined)[];
|
|
5
|
+
//# sourceMappingURL=refs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/refs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,6BAA6B,EAC7B,0BAA0B,EAC7B,MAAM,+CAA+C,CAAC;AAEvD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAEzG;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAEhG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/refs.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,iBAAiB,CAAC,OAA+C;IAC7E,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAyC;IACpE,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentType } from "react";
|
|
2
|
+
import { IErrorProps, OnError } from "@gooddata/sdk-ui";
|
|
3
|
+
import { FilterContextItem } from "@gooddata/sdk-model";
|
|
4
|
+
import { IDashboardFilter, OnFiredDashboardDrillEvent } from "../../types.js";
|
|
5
|
+
/**
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export interface IDashboardLayoutProps {
|
|
9
|
+
ErrorComponent?: React.ComponentType<IErrorProps>;
|
|
10
|
+
onFiltersChange?: (filters: (IDashboardFilter | FilterContextItem)[], resetOthers?: boolean) => void;
|
|
11
|
+
onDrill?: OnFiredDashboardDrillEvent;
|
|
12
|
+
onError?: OnError;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export type CustomDashboardLayoutComponent = ComponentType<IDashboardLayoutProps>;
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export type CustomEmptyLayoutDropZoneBodyComponent = ComponentType;
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAElD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,gBAAgB,GAAG,iBAAiB,CAAC,EAAE,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrG,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardLayout.d.ts","sourceRoot":"","sources":["../../../src/presentation/layout/DefaultDashboardLayout.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DefaultDashboardLayout.d.ts","sourceRoot":"","sources":["../../../src/presentation/layout/DefaultDashboardLayout.tsx"],"names":[],"mappings":";AA6BA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAgJnD;;GAEG;AACH,eAAO,MAAM,sBAAsB,UAAW,qBAAqB,KAAG,WAMrE,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2024 GoodData Corporation
|
|
2
2
|
import React, { useCallback, useMemo } from "react";
|
|
3
3
|
import { objRefToString, isWidget, } from "@gooddata/sdk-model";
|
|
4
4
|
import { LRUCache } from "lru-cache";
|
|
5
5
|
import max from "lodash/max.js";
|
|
6
|
-
import { useDashboardSelector, selectIsExport, selectIsLayoutEmpty, selectLayout, selectInsightsMap, selectEnableWidgetCustomHeight, selectRenderMode, } from "../../model/index.js";
|
|
6
|
+
import { useDashboardSelector, selectIsExport, selectIsLayoutEmpty, selectLayout, selectInsightsMap, selectEnableWidgetCustomHeight, selectRenderMode, selectEnableFlexibleLayout, } from "../../model/index.js";
|
|
7
|
+
import { SectionHotspot } from "../dragAndDrop/index.js";
|
|
8
|
+
import { isInitialPlaceholderWidget } from "../../widgets/index.js";
|
|
9
|
+
import { DefaultFlexibleDashboardLayout } from "../flexibleLayout/index.js";
|
|
7
10
|
import { DashboardLayoutWidget } from "./DashboardLayoutWidget.js";
|
|
8
11
|
import { DashboardLayout, DashboardLayoutBuilder, } from "./DefaultDashboardLayoutRenderer/index.js";
|
|
9
12
|
import { renderModeAwareDashboardLayoutSectionRenderer } from "./DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js";
|
|
10
13
|
import { renderModeAwareDashboardLayoutSectionHeaderRenderer } from "./DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js";
|
|
11
14
|
import { getMemoizedWidgetSanitizer } from "./DefaultDashboardLayoutUtils.js";
|
|
12
|
-
import { SectionHotspot } from "../dragAndDrop/index.js";
|
|
13
|
-
import { isInitialPlaceholderWidget } from "../../widgets/index.js";
|
|
14
15
|
import { EmptyDashboardLayout } from "./EmptyDashboardLayout.js";
|
|
15
16
|
/**
|
|
16
17
|
* Get dashboard layout for exports.
|
|
@@ -57,10 +58,7 @@ const itemKeyGetter = (keyGetterProps) => {
|
|
|
57
58
|
}
|
|
58
59
|
return keyGetterProps.item.index().toString();
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
-
* @alpha
|
|
62
|
-
*/
|
|
63
|
-
export const DefaultDashboardLayout = (props) => {
|
|
61
|
+
const LegacyDefaultDashboardLayout = (props) => {
|
|
64
62
|
const { onFiltersChange, onDrill, onError } = props;
|
|
65
63
|
const layout = useDashboardSelector(selectLayout);
|
|
66
64
|
const isLayoutEmpty = useDashboardSelector(selectIsLayoutEmpty);
|
|
@@ -95,6 +93,17 @@ export const DefaultDashboardLayout = (props) => {
|
|
|
95
93
|
transformedLayout.sections[0].items.some((i) => !isInitialPlaceholderWidget(i.widget));
|
|
96
94
|
return (React.createElement(React.Fragment, null,
|
|
97
95
|
React.createElement(DashboardLayout, { className: isExport ? "export-mode" : "", layout: transformedLayout, itemKeyGetter: itemKeyGetter, widgetRenderer: widgetRenderer, enableCustomHeight: enableWidgetCustomHeight, sectionRenderer: renderModeAwareDashboardLayoutSectionRenderer, sectionHeaderRenderer: renderModeAwareDashboardLayoutSectionHeaderRenderer, renderMode: renderMode }),
|
|
96
|
+
"old layout",
|
|
98
97
|
!!shouldRenderSectionHotspot && (React.createElement(SectionHotspot, { index: transformedLayout.sections.length, targetPosition: "below" }))));
|
|
99
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
* @alpha
|
|
101
|
+
*/
|
|
102
|
+
export const DefaultDashboardLayout = (props) => {
|
|
103
|
+
const isFlexibleLayoutEnabled = useDashboardSelector(selectEnableFlexibleLayout);
|
|
104
|
+
if (isFlexibleLayoutEnabled) {
|
|
105
|
+
return React.createElement(DefaultFlexibleDashboardLayout, { ...props });
|
|
106
|
+
}
|
|
107
|
+
return React.createElement(LegacyDefaultDashboardLayout, { ...props });
|
|
108
|
+
};
|
|
100
109
|
//# sourceMappingURL=DefaultDashboardLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardLayout.js","sourceRoot":"","sources":["../../../src/presentation/layout/DefaultDashboardLayout.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAGH,cAAc,EACd,QAAQ,GAGX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,GAAG,MAAM,eAAe,CAAC;AAEhC,OAAO,EACH,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,YAAY,EAEZ,iBAAiB,EACjB,8BAA8B,EAC9B,gBAAgB,
|
|
1
|
+
{"version":3,"file":"DefaultDashboardLayout.js","sourceRoot":"","sources":["../../../src/presentation/layout/DefaultDashboardLayout.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAA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iBAAiB,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,EAAC,OAAO,GAAG,CACtF,CACF,CACN,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAA4B,EAAe,EAAE;IAChF,MAAM,uBAAuB,GAAG,oBAAoB,CAAC,0BAA0B,CAAC,CAAC;IACjF,IAAI,uBAAuB,EAAE,CAAC;QAC1B,OAAO,oBAAC,8BAA8B,OAAK,KAAK,GAAI,CAAC;IACzD,CAAC;IACD,OAAO,oBAAC,4BAA4B,OAAK,KAAK,GAAI,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -16278,6 +16278,13 @@ export declare const selectEnableFilterValuesResolutionInDrillEvents: DashboardS
|
|
|
16278
16278
|
*/
|
|
16279
16279
|
export declare const selectEnableFilterViews: DashboardSelector<boolean>;
|
|
16280
16280
|
|
|
16281
|
+
/**
|
|
16282
|
+
* Returns whether nested layout is enabled.
|
|
16283
|
+
*
|
|
16284
|
+
* @internal
|
|
16285
|
+
*/
|
|
16286
|
+
export declare const selectEnableFlexibleLayout: DashboardSelector<boolean>;
|
|
16287
|
+
|
|
16281
16288
|
/**
|
|
16282
16289
|
* Returns whether ignore cross-filtering enabled.
|
|
16283
16290
|
*
|
|
@@ -16390,13 +16397,6 @@ export declare const selectEnableKPIDashboardScheduleRecipients: DashboardSelect
|
|
|
16390
16397
|
*/
|
|
16391
16398
|
export declare const selectEnableMultipleDateFilters: DashboardSelector<boolean>;
|
|
16392
16399
|
|
|
16393
|
-
/**
|
|
16394
|
-
* Returns whether nested layout is enabled.
|
|
16395
|
-
*
|
|
16396
|
-
* @internal
|
|
16397
|
-
*/
|
|
16398
|
-
export declare const selectEnableNestedLayout: DashboardSelector<boolean>;
|
|
16399
|
-
|
|
16400
16400
|
/**
|
|
16401
16401
|
* Returns whether we should call measures metrics (true) or measures (false).
|
|
16402
16402
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "10.14.0-alpha.
|
|
3
|
+
"version": "10.14.0-alpha.4",
|
|
4
4
|
"description": "GoodData SDK - Dashboard Component",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"ts-invariant": "^0.7.5",
|
|
58
58
|
"tslib": "^2.5.0",
|
|
59
59
|
"uuid": "^8.3.2",
|
|
60
|
-
"@gooddata/sdk-backend-base": "10.14.0-alpha.
|
|
61
|
-
"@gooddata/sdk-
|
|
62
|
-
"@gooddata/sdk-
|
|
63
|
-
"@gooddata/sdk-ui": "10.14.0-alpha.
|
|
64
|
-
"@gooddata/sdk-ui-
|
|
65
|
-
"@gooddata/sdk-
|
|
66
|
-
"@gooddata/sdk-ui-
|
|
67
|
-
"@gooddata/sdk-ui-
|
|
68
|
-
"@gooddata/sdk-ui-theme-provider": "10.14.0-alpha.
|
|
69
|
-
"@gooddata/util": "10.14.0-alpha.
|
|
70
|
-
"@gooddata/sdk-ui-vis-commons": "10.14.0-alpha.
|
|
60
|
+
"@gooddata/sdk-backend-base": "10.14.0-alpha.4",
|
|
61
|
+
"@gooddata/sdk-model": "10.14.0-alpha.4",
|
|
62
|
+
"@gooddata/sdk-ui": "10.14.0-alpha.4",
|
|
63
|
+
"@gooddata/sdk-ui-ext": "10.14.0-alpha.4",
|
|
64
|
+
"@gooddata/sdk-ui-geo": "10.14.0-alpha.4",
|
|
65
|
+
"@gooddata/sdk-backend-spi": "10.14.0-alpha.4",
|
|
66
|
+
"@gooddata/sdk-ui-filters": "10.14.0-alpha.4",
|
|
67
|
+
"@gooddata/sdk-ui-kit": "10.14.0-alpha.4",
|
|
68
|
+
"@gooddata/sdk-ui-theme-provider": "10.14.0-alpha.4",
|
|
69
|
+
"@gooddata/util": "10.14.0-alpha.4",
|
|
70
|
+
"@gooddata/sdk-ui-vis-commons": "10.14.0-alpha.4"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -120,9 +120,9 @@
|
|
|
120
120
|
"typescript": "5.3.3",
|
|
121
121
|
"vitest": "1.0.4",
|
|
122
122
|
"vitest-dom": "0.1.1",
|
|
123
|
-
"@gooddata/i18n-toolkit": "10.14.0-alpha.
|
|
124
|
-
"@gooddata/sdk-backend-mockingbird": "10.14.0-alpha.
|
|
125
|
-
"@gooddata/reference-workspace": "10.14.0-alpha.
|
|
123
|
+
"@gooddata/i18n-toolkit": "10.14.0-alpha.4",
|
|
124
|
+
"@gooddata/sdk-backend-mockingbird": "10.14.0-alpha.4",
|
|
125
|
+
"@gooddata/reference-workspace": "10.14.0-alpha.4"
|
|
126
126
|
},
|
|
127
127
|
"scripts": {
|
|
128
128
|
"clean": "rm -rf ci dist esm coverage *.log styles/css tsconfig.tsbuildinfo",
|
package/styles/css/dashboard.css
CHANGED
|
@@ -422,6 +422,330 @@
|
|
|
422
422
|
color: var(--gd-palette-complementary-6, #94a1ad);
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
+
.gd-fluidlayout-container {
|
|
426
|
+
width: 100%;
|
|
427
|
+
}
|
|
428
|
+
.gd-fluidlayout-container .visualization {
|
|
429
|
+
display: flex;
|
|
430
|
+
flex: 1 1 auto;
|
|
431
|
+
flex-direction: column;
|
|
432
|
+
}
|
|
433
|
+
.gd-fluidlayout-container .dash-item {
|
|
434
|
+
max-width: 100%;
|
|
435
|
+
height: 100%;
|
|
436
|
+
max-height: 100%;
|
|
437
|
+
min-height: inherit;
|
|
438
|
+
flex-direction: column;
|
|
439
|
+
}
|
|
440
|
+
.gd-fluidlayout-container.is-resizing {
|
|
441
|
+
cursor: col-resize;
|
|
442
|
+
}
|
|
443
|
+
.gd-fluidlayout-container.is-row-resizing {
|
|
444
|
+
cursor: row-resize;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.gd-fluidlayout-layout {
|
|
448
|
+
width: 100%;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.gd-fluidlayout-column-container {
|
|
452
|
+
width: 100%;
|
|
453
|
+
height: 100%;
|
|
454
|
+
}
|
|
455
|
+
@media only screen and (max-width: 320px) {
|
|
456
|
+
.gd-fluidlayout-column-container {
|
|
457
|
+
flex-direction: column;
|
|
458
|
+
}
|
|
459
|
+
.gd-fluidlayout-column-container::after {
|
|
460
|
+
content: "";
|
|
461
|
+
position: absolute;
|
|
462
|
+
right: 10px;
|
|
463
|
+
bottom: 5px;
|
|
464
|
+
left: 10px;
|
|
465
|
+
height: 0;
|
|
466
|
+
border-bottom: 1px dashed var(--gd-palette-complementary-5, #b0beca);
|
|
467
|
+
}
|
|
468
|
+
.gd-fluidlayout-column-container.last::after {
|
|
469
|
+
display: none;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.gd-fluidlayout-column-container.custom-height .kpi {
|
|
474
|
+
min-height: 100%;
|
|
475
|
+
}
|
|
476
|
+
.gd-fluidlayout-column-container.custom-height .gd-visualization-content {
|
|
477
|
+
position: absolute;
|
|
478
|
+
width: 100%;
|
|
479
|
+
height: 100%;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.gd-fluidlayout-row {
|
|
483
|
+
position: relative;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.gd-fluidlayout-row-debug {
|
|
487
|
+
background-color: #fff;
|
|
488
|
+
}
|
|
489
|
+
.gd-fluidlayout-row-debug:nth-of-type(even) {
|
|
490
|
+
color: #f2f2f2;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.gd-fluid-layout-row-header {
|
|
494
|
+
padding-right: 20px;
|
|
495
|
+
padding-left: 20px;
|
|
496
|
+
text-align: center;
|
|
497
|
+
}
|
|
498
|
+
.gd-fluid-layout-row-header .gd-fluid-layout-row-header-container {
|
|
499
|
+
margin-top: 16px;
|
|
500
|
+
}
|
|
501
|
+
@media only screen and (min-width:641px) {
|
|
502
|
+
.gd-fluid-layout-row-header {
|
|
503
|
+
padding-right: 0;
|
|
504
|
+
padding-left: 0;
|
|
505
|
+
text-align: left;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
.gd-fluid-layout-row-header .gd-row-header-view .title {
|
|
509
|
+
padding: 3px 5px;
|
|
510
|
+
white-space: pre-wrap;
|
|
511
|
+
overflow-wrap: break-word;
|
|
512
|
+
}
|
|
513
|
+
.gd-fluid-layout-row-header .gd-row-header-view .description {
|
|
514
|
+
padding: 4px 5px 2px;
|
|
515
|
+
}
|
|
516
|
+
.gd-fluid-layout-row-header .gd-row-header-title-wrapper {
|
|
517
|
+
display: flex;
|
|
518
|
+
}
|
|
519
|
+
.gd-fluid-layout-row-header .gd-row-header-title-wrapper h2 {
|
|
520
|
+
color: var(--gd-dashboards-section-title-color, var(--gd-palette-complementary-8, #464e56));
|
|
521
|
+
}
|
|
522
|
+
.gd-fluid-layout-row-header .gd-row-header-title-wrapper::before, .gd-fluid-layout-row-header .gd-row-header-title-wrapper::after {
|
|
523
|
+
content: "";
|
|
524
|
+
position: relative;
|
|
525
|
+
top: 16px;
|
|
526
|
+
flex: 1 1 auto;
|
|
527
|
+
height: 0;
|
|
528
|
+
border-top: 1px solid var(--gd-dashboards-section-title-lineColor, var(--gd-palette-complementary-3, #dde4eb));
|
|
529
|
+
}
|
|
530
|
+
.gd-fluid-layout-row-header .gd-row-header-title-wrapper::before {
|
|
531
|
+
margin-right: 20px;
|
|
532
|
+
}
|
|
533
|
+
.gd-fluid-layout-row-header .gd-row-header-title-wrapper::after {
|
|
534
|
+
margin-left: 20px;
|
|
535
|
+
}
|
|
536
|
+
@media only screen and (min-width:641px) {
|
|
537
|
+
.gd-fluid-layout-row-header .gd-row-header-title-wrapper::before {
|
|
538
|
+
display: none;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
.gd-fluid-layout-row-header .gd-row-header-description-wrapper {
|
|
542
|
+
overflow: hidden;
|
|
543
|
+
}
|
|
544
|
+
@media only screen and (min-width:641px) {
|
|
545
|
+
.gd-fluid-layout-row-header .title-align-center {
|
|
546
|
+
text-align: center;
|
|
547
|
+
}
|
|
548
|
+
.gd-fluid-layout-row-header .title-align-center::before {
|
|
549
|
+
display: block;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
@media only screen and (min-width:641px) {
|
|
553
|
+
.gd-fluid-layout-row-header .title-align-right {
|
|
554
|
+
text-align: right;
|
|
555
|
+
}
|
|
556
|
+
.gd-fluid-layout-row-header .title-align-right::before {
|
|
557
|
+
display: block;
|
|
558
|
+
}
|
|
559
|
+
.gd-fluid-layout-row-header .title-align-right::after {
|
|
560
|
+
display: none;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
@media only screen and (min-width:641px) {
|
|
564
|
+
.gd-fluid-layout-row-header .title,
|
|
565
|
+
.gd-fluid-layout-row-header .gd-row-header-view .description {
|
|
566
|
+
max-width: 95%;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
.gd-fluid-layout-row-header .title {
|
|
570
|
+
color: var(--gd-palette-complementary-9, #000);
|
|
571
|
+
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
572
|
+
font-weight: 400;
|
|
573
|
+
font-weight: 700;
|
|
574
|
+
line-height: 26px;
|
|
575
|
+
font-size: 20px;
|
|
576
|
+
flex: 0 1 auto;
|
|
577
|
+
overflow: hidden;
|
|
578
|
+
color: var(--gd-dashboards-section-title-color, var(--gd-palette-complementary-8, #464e56));
|
|
579
|
+
}
|
|
580
|
+
.gd-fluid-layout-row-header .description {
|
|
581
|
+
white-space: pre-wrap;
|
|
582
|
+
overflow-wrap: break-word;
|
|
583
|
+
color: var(--gd-dashboards-section-description-color, var(--gd-palette-complementary-6, #94a1ad));
|
|
584
|
+
}
|
|
585
|
+
.gd-fluid-layout-row-header .description.collapsible {
|
|
586
|
+
cursor: pointer;
|
|
587
|
+
}
|
|
588
|
+
.gd-fluid-layout-row-header .description:hover .more-link {
|
|
589
|
+
color: var(--gd-palette-complementary-7, #6d7680);
|
|
590
|
+
}
|
|
591
|
+
.gd-fluid-layout-row-header .description:hover .underline {
|
|
592
|
+
text-decoration: none;
|
|
593
|
+
}
|
|
594
|
+
.gd-fluid-layout-row-header .more-link {
|
|
595
|
+
display: inline-block;
|
|
596
|
+
color: var(--gd-palette-complementary-6, #94a1ad);
|
|
597
|
+
}
|
|
598
|
+
.gd-fluid-layout-row-header .more-link::before {
|
|
599
|
+
vertical-align: top;
|
|
600
|
+
margin-left: 0.5em;
|
|
601
|
+
margin-right: 0.1em;
|
|
602
|
+
font-family: "Indigo", sans-serif;
|
|
603
|
+
}
|
|
604
|
+
.gd-fluid-layout-row-header .more-link.active::before {
|
|
605
|
+
content: "\e612";
|
|
606
|
+
}
|
|
607
|
+
.gd-fluid-layout-row-header .more-link.passive::before {
|
|
608
|
+
content: "\e613";
|
|
609
|
+
}
|
|
610
|
+
.gd-fluid-layout-row-header .underline {
|
|
611
|
+
text-decoration: underline;
|
|
612
|
+
}
|
|
613
|
+
.gd-fluid-layout-row-header .gd-editable-label-container {
|
|
614
|
+
font-size: 0;
|
|
615
|
+
}
|
|
616
|
+
.gd-fluid-layout-row-header .gd-editable-label {
|
|
617
|
+
display: inline-block;
|
|
618
|
+
overflow: hidden;
|
|
619
|
+
width: auto;
|
|
620
|
+
max-height: inherit;
|
|
621
|
+
padding: 2px 4px 0;
|
|
622
|
+
}
|
|
623
|
+
.gd-fluid-layout-row-header .gd-editable-label:hover, .gd-fluid-layout-row-header .gd-editable-label:focus, .gd-fluid-layout-row-header .gd-editable-label:active {
|
|
624
|
+
border-color: var(--gd-palette-complementary-4, rgba(177, 193, 209, 0.5));
|
|
625
|
+
}
|
|
626
|
+
.gd-fluid-layout-row-header .gd-editable-label.is-editing {
|
|
627
|
+
width: 100%;
|
|
628
|
+
border-color: var(--gd-palette-complementary-4, rgba(177, 193, 209, 0.5));
|
|
629
|
+
}
|
|
630
|
+
.gd-fluid-layout-row-header .gd-editable-label.title {
|
|
631
|
+
min-width: 0;
|
|
632
|
+
}
|
|
633
|
+
.gd-fluid-layout-row-header .gd-editable-label.description {
|
|
634
|
+
margin-top: 2px;
|
|
635
|
+
font-size: 14px;
|
|
636
|
+
}
|
|
637
|
+
@media only screen and (min-width:641px) {
|
|
638
|
+
.gd-fluid-layout-row-header .gd-editable-label.description {
|
|
639
|
+
max-width: 95%;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
.gd-fluid-layout-row-header .gd-editable-label .description.gd-paragraph {
|
|
643
|
+
height: 21px;
|
|
644
|
+
padding-top: 1px;
|
|
645
|
+
}
|
|
646
|
+
.gd-fluid-layout-row-header .gd-editable-label.placeholder {
|
|
647
|
+
color: var(--gd-palette-complementary-6, #94a1ad);
|
|
648
|
+
}
|
|
649
|
+
.gd-fluid-layout-row-header .gd-layout-row-description-richtext {
|
|
650
|
+
white-space: initial;
|
|
651
|
+
}
|
|
652
|
+
.gd-fluid-layout-row-header .gd-editable-label-richtext {
|
|
653
|
+
padding: 0 5px;
|
|
654
|
+
margin-top: 3px;
|
|
655
|
+
border: 1px solid transparent;
|
|
656
|
+
}
|
|
657
|
+
.gd-fluid-layout-row-header .gd-editable-label-richtext textarea {
|
|
658
|
+
padding: 0;
|
|
659
|
+
font-size: 14px;
|
|
660
|
+
line-height: 19px;
|
|
661
|
+
color: var(--gd-palette-complementary-7, #6d7680);
|
|
662
|
+
}
|
|
663
|
+
.gd-fluid-layout-row-header .gd-editable-label-richtext textarea::placeholder {
|
|
664
|
+
color: var(--gd-palette-complementary-6, #94a1ad);
|
|
665
|
+
}
|
|
666
|
+
.gd-fluid-layout-row-header .gd-editable-label-richtext:hover, .gd-fluid-layout-row-header .gd-editable-label-richtext:focus, .gd-fluid-layout-row-header .gd-editable-label-richtext:active {
|
|
667
|
+
border-color: var(--gd-palette-complementary-4, rgba(177, 193, 209, 0.5));
|
|
668
|
+
}
|
|
669
|
+
.gd-fluid-layout-row-header .gd-editable-label-richtext.is-editing {
|
|
670
|
+
border-color: var(--gd-palette-complementary-4, rgba(177, 193, 209, 0.5));
|
|
671
|
+
}
|
|
672
|
+
.gd-fluid-layout-row-header .gd-editable-label-richtext .gd-editable-label-richtext-empty {
|
|
673
|
+
display: flex;
|
|
674
|
+
align-items: center;
|
|
675
|
+
font-size: 14px;
|
|
676
|
+
font-style: normal;
|
|
677
|
+
font-weight: 400;
|
|
678
|
+
line-height: 19px;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.gd-rich-text-content-view .gd-editable-label-richtext-empty {
|
|
682
|
+
color: var(--gd-palette-complementary-6, #94a1ad);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.gd-visualization-content.relative {
|
|
686
|
+
position: relative !important;
|
|
687
|
+
}
|
|
688
|
+
.gd-visualization-content.absolute {
|
|
689
|
+
position: absolute !important;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.gd-fluidlayout-item-changed {
|
|
693
|
+
position: absolute;
|
|
694
|
+
z-index: 11;
|
|
695
|
+
top: 0;
|
|
696
|
+
left: 0;
|
|
697
|
+
right: 0;
|
|
698
|
+
bottom: 0;
|
|
699
|
+
display: flex;
|
|
700
|
+
align-content: center;
|
|
701
|
+
justify-content: center;
|
|
702
|
+
align-items: center;
|
|
703
|
+
}
|
|
704
|
+
.gd-fluidlayout-item-changed.none {
|
|
705
|
+
display: none;
|
|
706
|
+
}
|
|
707
|
+
.gd-fluidlayout-item-changed.added, .gd-fluidlayout-item-changed.modified {
|
|
708
|
+
background: var(--gd-dashboards-content-backgroundColor, var(--gd-palette-complementary-0, rgba(255, 255, 255, 0.95)));
|
|
709
|
+
}
|
|
710
|
+
.gd-fluidlayout-item-changed .gd-fluidlayout-item-changed-content {
|
|
711
|
+
display: flex;
|
|
712
|
+
flex-direction: column;
|
|
713
|
+
align-items: center;
|
|
714
|
+
gap: 8px;
|
|
715
|
+
}
|
|
716
|
+
.gd-fluidlayout-item-changed.small .gd-fluidlayout-item-changed-content {
|
|
717
|
+
display: flex;
|
|
718
|
+
flex-direction: row;
|
|
719
|
+
gap: 10px;
|
|
720
|
+
max-height: 100%;
|
|
721
|
+
}
|
|
722
|
+
.gd-fluidlayout-item-changed .gd-fluidlayout-item-changed-icon {
|
|
723
|
+
display: flex;
|
|
724
|
+
align-items: center;
|
|
725
|
+
}
|
|
726
|
+
.gd-fluidlayout-item-changed .gd-fluidlayout-item-changed-icon svg {
|
|
727
|
+
max-height: 100%;
|
|
728
|
+
}
|
|
729
|
+
.gd-fluidlayout-item-changed.small .gd-fluidlayout-item-changed-icon svg {
|
|
730
|
+
top: -4px;
|
|
731
|
+
position: relative;
|
|
732
|
+
}
|
|
733
|
+
.gd-fluidlayout-item-changed.big .gd-fluidlayout-item-changed-icon {
|
|
734
|
+
height: auto !important;
|
|
735
|
+
}
|
|
736
|
+
.gd-fluidlayout-item-changed .gd-fluidlayout-item-changed-info {
|
|
737
|
+
display: block;
|
|
738
|
+
font-weight: 400;
|
|
739
|
+
font-size: 14px;
|
|
740
|
+
line-height: 19px;
|
|
741
|
+
}
|
|
742
|
+
.gd-fluidlayout-item-changed .gd-button {
|
|
743
|
+
font-weight: 400;
|
|
744
|
+
font-size: 14px;
|
|
745
|
+
line-height: 19px;
|
|
746
|
+
color: var(--gd-palette-complementary-6, #94a1ad);
|
|
747
|
+
}
|
|
748
|
+
|
|
425
749
|
.kpi {
|
|
426
750
|
min-height: 138px;
|
|
427
751
|
text-align: center;
|