@gooddata/sdk-ui-dashboard 10.14.0-alpha.2 → 10.14.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/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 +16 -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,19 @@
|
|
|
1
|
+
export type { IDashboardLayoutItemKeyGetter, IDashboardLayoutItemKeyGetterProps, IDashboardLayoutItemRenderProps, IDashboardLayoutItemRenderer, IDashboardLayoutRenderer, IDashboardLayoutSectionHeaderRenderProps, IDashboardLayoutSectionHeaderRenderer, IDashboardLayoutSectionKeyGetter, IDashboardLayoutSectionKeyGetterProps, IDashboardLayoutSectionRenderProps, IDashboardLayoutSectionRenderer, IDashboardLayoutWidgetRenderProps, IDashboardLayoutWidgetRenderer, IDashboardLayoutGridRowRenderProps, IDashboardLayoutGridRowRenderer, IDashboardLayoutRenderProps, } from "./interfaces.js";
|
|
2
|
+
export { DashboardLayout } from "./DashboardLayout.js";
|
|
3
|
+
export type { IDashboardLayoutItemProps } from "./DashboardLayoutItem.js";
|
|
4
|
+
export { DashboardLayoutItem } from "./DashboardLayoutItem.js";
|
|
5
|
+
export { DashboardLayoutItemRenderer } from "./DashboardLayoutItemRenderer.js";
|
|
6
|
+
export { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
|
|
7
|
+
export type { IDashboardLayoutSectionProps } from "./DashboardLayoutSection.js";
|
|
8
|
+
export { DashboardLayoutSection } from "./DashboardLayoutSection.js";
|
|
9
|
+
export { DashboardLayoutSectionHeader } from "./DashboardLayoutSectionHeader.js";
|
|
10
|
+
export { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
|
|
11
|
+
export { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
|
|
12
|
+
export { DashboardLayoutWidgetRenderer } from "./DashboardLayoutWidgetRenderer.js";
|
|
13
|
+
export { getGeoPushpinWidgetStyle, isGeoPushpin } from "./utils/legacy.js";
|
|
14
|
+
export { getDashboardLayoutItemHeightForRatioAndScreen, getDashboardLayoutItemMaxGridWidth, getDashboardLayoutWidgetDefaultGridWidth, validateDashboardLayoutWidgetSize, } from "./utils/sizing.js";
|
|
15
|
+
export { DashboardLayoutBuilder } from "../../../_staging/dashboard/fluidLayout/builder/layout.js";
|
|
16
|
+
export { DashboardLayoutFacade } from "../../../_staging/dashboard/fluidLayout/facade/layout.js";
|
|
17
|
+
export type { DashboardLayoutItemModifications, DashboardLayoutItemsSelector, DashboardLayoutModifications, DashboardLayoutSectionModifications, DashboardLayoutSectionsSelector, IDashboardLayoutBuilder, IDashboardLayoutItemBuilder, IDashboardLayoutSectionBuilder, } from "../../../_staging/dashboard/fluidLayout/builder/interfaces.js";
|
|
18
|
+
export type { IDashboardLayoutItemFacade, IDashboardLayoutItemsFacade, IDashboardLayoutFacade, IDashboardLayoutSectionFacade, IDashboardLayoutSectionsFacade, } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.ts"],"names":[],"mappings":"AACA,YAAY,EACR,6BAA6B,EAC7B,kCAAkC,EAClC,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,EACxB,wCAAwC,EACxC,qCAAqC,EACrC,gCAAgC,EAChC,qCAAqC,EACrC,kCAAkC,EAClC,+BAA+B,EAC/B,iCAAiC,EACjC,8BAA8B,EAC9B,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,GAC9B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACH,6CAA6C,EAC7C,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,GACpC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,YAAY,EACR,gCAAgC,EAChC,4BAA4B,EAC5B,4BAA4B,EAC5B,mCAAmC,EACnC,+BAA+B,EAC/B,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,GACjC,MAAM,+DAA+D,CAAC;AACvE,YAAY,EACR,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,8DAA8D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { DashboardLayout } from "./DashboardLayout.js";
|
|
2
|
+
export { DashboardLayoutItem } from "./DashboardLayoutItem.js";
|
|
3
|
+
export { DashboardLayoutItemRenderer } from "./DashboardLayoutItemRenderer.js";
|
|
4
|
+
export { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
|
|
5
|
+
export { DashboardLayoutSection } from "./DashboardLayoutSection.js";
|
|
6
|
+
export { DashboardLayoutSectionHeader } from "./DashboardLayoutSectionHeader.js";
|
|
7
|
+
export { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
|
|
8
|
+
export { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
|
|
9
|
+
export { DashboardLayoutWidgetRenderer } from "./DashboardLayoutWidgetRenderer.js";
|
|
10
|
+
export { getGeoPushpinWidgetStyle, isGeoPushpin } from "./utils/legacy.js";
|
|
11
|
+
export { getDashboardLayoutItemHeightForRatioAndScreen, getDashboardLayoutItemMaxGridWidth, getDashboardLayoutWidgetDefaultGridWidth, validateDashboardLayoutWidgetSize, } from "./utils/sizing.js";
|
|
12
|
+
export { DashboardLayoutBuilder } from "../../../_staging/dashboard/fluidLayout/builder/layout.js";
|
|
13
|
+
export { DashboardLayoutFacade } from "../../../_staging/dashboard/fluidLayout/facade/layout.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACH,6CAA6C,EAC7C,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,GACpC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IDashboardLayout, IDashboardWidget, ScreenSize } from "@gooddata/sdk-model";
|
|
3
|
+
import { RenderMode } from "../../../types.js";
|
|
4
|
+
import { IDashboardLayoutItemFacade, IDashboardLayoutSectionFacade } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
|
|
5
|
+
/**
|
|
6
|
+
* Default props provided to {@link IDashboardLayoutSectionKeyGetter}.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
export type IDashboardLayoutSectionKeyGetterProps<TWidget = IDashboardWidget> = {
|
|
11
|
+
/**
|
|
12
|
+
* Dashboard layout section.
|
|
13
|
+
*/
|
|
14
|
+
section: IDashboardLayoutSectionFacade<TWidget>;
|
|
15
|
+
/**
|
|
16
|
+
* Current screen type with respect to the set breakpoints.
|
|
17
|
+
*/
|
|
18
|
+
screen: ScreenSize;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Dashboard layout section key getter.
|
|
22
|
+
* This callback is used to determine a unique key of the section.
|
|
23
|
+
* By this callback, you can avoid unnecessary re-renders of the section components,
|
|
24
|
+
* the returned unique key is passed to the React "key" property, when rendering rows.
|
|
25
|
+
* By default, dashboard layout will use sectionIndex as a unique key.
|
|
26
|
+
*
|
|
27
|
+
* @alpha
|
|
28
|
+
*/
|
|
29
|
+
export type IDashboardLayoutSectionKeyGetter<TWidget = IDashboardWidget> = (props: IDashboardLayoutSectionKeyGetterProps<TWidget>) => string;
|
|
30
|
+
/**
|
|
31
|
+
* Default props provided to {@link IDashboardLayoutSectionRenderer}.
|
|
32
|
+
*
|
|
33
|
+
* @alpha
|
|
34
|
+
*/
|
|
35
|
+
export interface IDashboardLayoutSectionRenderProps<TWidget = IDashboardWidget> {
|
|
36
|
+
/**
|
|
37
|
+
* Dashboard layout section.
|
|
38
|
+
*/
|
|
39
|
+
section: IDashboardLayoutSectionFacade<TWidget>;
|
|
40
|
+
/**
|
|
41
|
+
* Current screen type with respect to the set breakpoints.
|
|
42
|
+
*/
|
|
43
|
+
screen: ScreenSize;
|
|
44
|
+
/**
|
|
45
|
+
* Default renderer of the section - can be used as a fallback for custom sectionRenderer.
|
|
46
|
+
*/
|
|
47
|
+
DefaultSectionRenderer: IDashboardLayoutSectionRenderer<TWidget>;
|
|
48
|
+
/**
|
|
49
|
+
* Columns rendered by columnRenderer.
|
|
50
|
+
*/
|
|
51
|
+
children: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Dashboard render mode
|
|
54
|
+
*/
|
|
55
|
+
renderMode: RenderMode;
|
|
56
|
+
/**
|
|
57
|
+
* Additional section css class name.
|
|
58
|
+
*/
|
|
59
|
+
className?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Enable debug mode? (In debug mode, sections & items are highlighted for better overview of the layout structure).
|
|
62
|
+
*/
|
|
63
|
+
debug?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Is hidden section? Use this to hide the section without remounting it.
|
|
66
|
+
*/
|
|
67
|
+
isHidden?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Dashboard layout section renderer.
|
|
71
|
+
* Represents a component for rendering the section.
|
|
72
|
+
*
|
|
73
|
+
* @alpha
|
|
74
|
+
*/
|
|
75
|
+
export type IDashboardLayoutSectionRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutSectionRenderProps<TWidget> & TCustomProps) => JSX.Element;
|
|
76
|
+
/**
|
|
77
|
+
* Default props provided to {@link IDashboardLayoutSectionHeaderRenderer}.
|
|
78
|
+
*
|
|
79
|
+
* @alpha
|
|
80
|
+
*/
|
|
81
|
+
export interface IDashboardLayoutSectionHeaderRenderProps<TWidget = IDashboardWidget> {
|
|
82
|
+
/**
|
|
83
|
+
* Dashboard layout section.
|
|
84
|
+
*/
|
|
85
|
+
section: IDashboardLayoutSectionFacade<TWidget>;
|
|
86
|
+
/**
|
|
87
|
+
* Current screen type with respect to the set breakpoints.
|
|
88
|
+
*/
|
|
89
|
+
screen: ScreenSize;
|
|
90
|
+
/**
|
|
91
|
+
* Default renderer of the section header - can be used as a fallback for custom sectionHeaderRenderer.
|
|
92
|
+
*/
|
|
93
|
+
DefaultSectionHeaderRenderer: IDashboardLayoutSectionHeaderRenderer<TWidget>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Dashboard layout section header renderer.
|
|
97
|
+
* Represents a component for rendering the section header.
|
|
98
|
+
*
|
|
99
|
+
* @alpha
|
|
100
|
+
*/
|
|
101
|
+
export type IDashboardLayoutSectionHeaderRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutSectionHeaderRenderProps<TWidget> & TCustomProps) => JSX.Element | null;
|
|
102
|
+
/**
|
|
103
|
+
* Default props provided to {@link IDashboardLayoutItemKeyGetter}
|
|
104
|
+
*
|
|
105
|
+
* @alpha
|
|
106
|
+
*/
|
|
107
|
+
export interface IDashboardLayoutItemKeyGetterProps<TWidget = IDashboardWidget> {
|
|
108
|
+
/**
|
|
109
|
+
* Dashboard layout item.
|
|
110
|
+
*/
|
|
111
|
+
item: IDashboardLayoutItemFacade<TWidget>;
|
|
112
|
+
/**
|
|
113
|
+
* Current screen type with respect to the set breakpoints.
|
|
114
|
+
*/
|
|
115
|
+
screen: ScreenSize;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Dashboard layout item key getter.
|
|
119
|
+
* This callback is used to determine a unique key of the item.
|
|
120
|
+
* By this callback, you can avoid unnecessary re-renders of the item components,
|
|
121
|
+
* the returned unique key is passed to the React "key" property, when rendering columns.
|
|
122
|
+
* By default, dashboard layout will use columnIndex as a unique key.
|
|
123
|
+
*
|
|
124
|
+
* @alpha
|
|
125
|
+
*/
|
|
126
|
+
export type IDashboardLayoutItemKeyGetter<TWidget = IDashboardWidget> = (props: IDashboardLayoutItemKeyGetterProps<TWidget>) => string;
|
|
127
|
+
/**
|
|
128
|
+
* Default props provided to {@link IDashboardLayoutItemRenderer}
|
|
129
|
+
*
|
|
130
|
+
* @alpha
|
|
131
|
+
*/
|
|
132
|
+
export interface IDashboardLayoutItemRenderProps<TWidget = IDashboardWidget> {
|
|
133
|
+
/**
|
|
134
|
+
* Dashboard layout item.
|
|
135
|
+
*/
|
|
136
|
+
item: IDashboardLayoutItemFacade<TWidget>;
|
|
137
|
+
/**
|
|
138
|
+
* Current screen type with respect to the set breakpoints.
|
|
139
|
+
*/
|
|
140
|
+
screen: ScreenSize;
|
|
141
|
+
/**
|
|
142
|
+
* Default renderer of the item - can be used as a fallback for custom columnRenderer.
|
|
143
|
+
*/
|
|
144
|
+
DefaultItemRenderer: IDashboardLayoutItemRenderer<TWidget>;
|
|
145
|
+
/**
|
|
146
|
+
* Additional item css class name.
|
|
147
|
+
*/
|
|
148
|
+
className?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Minimum height of the item.
|
|
151
|
+
*/
|
|
152
|
+
minHeight?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Is hidden item? Use this to hide the item without remounting it.
|
|
155
|
+
*/
|
|
156
|
+
isHidden?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Widget rendered by widgetRenderer.
|
|
159
|
+
*/
|
|
160
|
+
children: React.ReactNode;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Dashboard layout item renderer.
|
|
164
|
+
* Represents a component for rendering the item.
|
|
165
|
+
*
|
|
166
|
+
* @alpha
|
|
167
|
+
*/
|
|
168
|
+
export type IDashboardLayoutItemRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutItemRenderProps<TWidget> & TCustomProps) => JSX.Element;
|
|
169
|
+
/**
|
|
170
|
+
* Default props provided to {@link IDashboardLayoutItemRenderer}
|
|
171
|
+
*
|
|
172
|
+
* @alpha
|
|
173
|
+
*/
|
|
174
|
+
export interface IDashboardLayoutWidgetRenderProps<TWidget = IDashboardWidget> {
|
|
175
|
+
/**
|
|
176
|
+
* Dashboard layout item.
|
|
177
|
+
*/
|
|
178
|
+
item: IDashboardLayoutItemFacade<TWidget>;
|
|
179
|
+
/**
|
|
180
|
+
* Current screen type with respect to the set breakpoints.
|
|
181
|
+
*/
|
|
182
|
+
screen: ScreenSize;
|
|
183
|
+
/**
|
|
184
|
+
* React ref to content element.
|
|
185
|
+
*/
|
|
186
|
+
contentRef?: React.RefObject<HTMLDivElement>;
|
|
187
|
+
/**
|
|
188
|
+
* Additional css class name of the content.
|
|
189
|
+
*/
|
|
190
|
+
className?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Content to render - widget, insight, or custom content.
|
|
193
|
+
*/
|
|
194
|
+
children?: React.ReactNode;
|
|
195
|
+
/**
|
|
196
|
+
* Height of the content.
|
|
197
|
+
*/
|
|
198
|
+
height?: React.CSSProperties["height"];
|
|
199
|
+
/**
|
|
200
|
+
* Minimum height of the content.
|
|
201
|
+
*/
|
|
202
|
+
minHeight?: React.CSSProperties["minHeight"];
|
|
203
|
+
/**
|
|
204
|
+
* Allow vertical overflow?
|
|
205
|
+
* (This basically sets overflowX to hidden and overflowY to auto)
|
|
206
|
+
*/
|
|
207
|
+
allowOverflow?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Was item size updated by layout sizing strategy?
|
|
210
|
+
*/
|
|
211
|
+
isResizedByLayoutSizingStrategy?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Enable debug mode? (In debug mode, sections & items are highlighted for better overview of the layout structure).
|
|
214
|
+
*/
|
|
215
|
+
debug?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Get dimensions of layout container element
|
|
218
|
+
*/
|
|
219
|
+
getLayoutDimensions: () => DOMRect;
|
|
220
|
+
/**
|
|
221
|
+
* Default widget renderer - can be used as a fallback for custom widgetRenderer.
|
|
222
|
+
*/
|
|
223
|
+
DefaultWidgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Dashboard layout content renderer.
|
|
227
|
+
* Represents a component for rendering the item content.
|
|
228
|
+
*
|
|
229
|
+
* @alpha
|
|
230
|
+
*/
|
|
231
|
+
export type IDashboardLayoutWidgetRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutWidgetRenderProps<TWidget> & TCustomProps) => JSX.Element;
|
|
232
|
+
/**
|
|
233
|
+
* Default props provided to {@link IDashboardLayoutGridRowRenderer}
|
|
234
|
+
*
|
|
235
|
+
* @alpha
|
|
236
|
+
*/
|
|
237
|
+
export interface IDashboardLayoutGridRowRenderProps<TWidget = IDashboardWidget> {
|
|
238
|
+
/**
|
|
239
|
+
* Items rendered in one row.
|
|
240
|
+
*/
|
|
241
|
+
children: JSX.Element[];
|
|
242
|
+
/**
|
|
243
|
+
* Dashboard layout section.
|
|
244
|
+
*/
|
|
245
|
+
section: IDashboardLayoutSectionFacade<TWidget>;
|
|
246
|
+
/**
|
|
247
|
+
* Layout items - keep in mind that these items are only items in the current grid row, not the entire section.
|
|
248
|
+
*/
|
|
249
|
+
items: IDashboardLayoutItemFacade<TWidget>[];
|
|
250
|
+
/**
|
|
251
|
+
* Current screen type with respect to the set breakpoints.
|
|
252
|
+
*/
|
|
253
|
+
screen: ScreenSize;
|
|
254
|
+
/**
|
|
255
|
+
* Dashboard render mode
|
|
256
|
+
*/
|
|
257
|
+
renderMode: RenderMode;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Dashboard layout grid row renderer.
|
|
261
|
+
* Represents a component for rendering the real rendered row
|
|
262
|
+
* with respect to the item sizing and the current screen size.
|
|
263
|
+
*
|
|
264
|
+
* @alpha
|
|
265
|
+
*/
|
|
266
|
+
export type IDashboardLayoutGridRowRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutGridRowRenderProps<TWidget> & TCustomProps) => JSX.Element;
|
|
267
|
+
/**
|
|
268
|
+
* Dashboard layout render props.
|
|
269
|
+
* Represents a customizable interface for rendering the layout.
|
|
270
|
+
*
|
|
271
|
+
* @alpha
|
|
272
|
+
*/
|
|
273
|
+
export interface IDashboardLayoutRenderProps<TWidget = IDashboardWidget> {
|
|
274
|
+
/**
|
|
275
|
+
* Dashboard layout definition to render.
|
|
276
|
+
*/
|
|
277
|
+
layout: IDashboardLayout<TWidget>;
|
|
278
|
+
/**
|
|
279
|
+
* Callback to determine a unique key of the section.
|
|
280
|
+
* Check {@link IDashboardLayoutSectionKeyGetter} for more details.
|
|
281
|
+
*/
|
|
282
|
+
sectionKeyGetter?: IDashboardLayoutSectionKeyGetter<TWidget>;
|
|
283
|
+
/**
|
|
284
|
+
* Render props callback to customize section rendering.
|
|
285
|
+
*/
|
|
286
|
+
sectionRenderer?: IDashboardLayoutSectionRenderer<TWidget>;
|
|
287
|
+
/**
|
|
288
|
+
* Render props callback to customize section header rendering.
|
|
289
|
+
*/
|
|
290
|
+
sectionHeaderRenderer?: IDashboardLayoutSectionHeaderRenderer<TWidget>;
|
|
291
|
+
/**
|
|
292
|
+
* Render props callback to customize rendering of the real rendered rows
|
|
293
|
+
* with respect to the items sizing and the current screen size.
|
|
294
|
+
*/
|
|
295
|
+
gridRowRenderer?: IDashboardLayoutGridRowRenderer<TWidget>;
|
|
296
|
+
/**
|
|
297
|
+
* Callback to determine a unique key of the item.
|
|
298
|
+
* Check {@link IDashboardLayoutItemKeyGetter} for more details.
|
|
299
|
+
*/
|
|
300
|
+
itemKeyGetter?: IDashboardLayoutItemKeyGetter<TWidget>;
|
|
301
|
+
/**
|
|
302
|
+
* Render props callback to customize item rendering.
|
|
303
|
+
*/
|
|
304
|
+
itemRenderer?: IDashboardLayoutItemRenderer<TWidget>;
|
|
305
|
+
/**
|
|
306
|
+
* Render props callback to specify how to render the layout widget.
|
|
307
|
+
*/
|
|
308
|
+
widgetRenderer: IDashboardLayoutWidgetRenderer<TWidget>;
|
|
309
|
+
/**
|
|
310
|
+
* Additional css class name for the dashboard layout root element.
|
|
311
|
+
*/
|
|
312
|
+
className?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Callback called on mouse leave event.
|
|
315
|
+
*/
|
|
316
|
+
onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
317
|
+
/**
|
|
318
|
+
* Enable debug mode? (In debug mode, sections & items are highlighted for better overview of the layout structure).
|
|
319
|
+
*/
|
|
320
|
+
debug?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Checks if feature flag enableKDWidgetCustomHeight is enabled
|
|
323
|
+
*/
|
|
324
|
+
enableCustomHeight?: boolean;
|
|
325
|
+
/**
|
|
326
|
+
* Dashboard render mode
|
|
327
|
+
*/
|
|
328
|
+
renderMode?: RenderMode;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Dashboard layout renderer.
|
|
332
|
+
* Represents a component for rendering the layout.
|
|
333
|
+
*
|
|
334
|
+
* @alpha
|
|
335
|
+
*/
|
|
336
|
+
export type IDashboardLayoutRenderer<TWidget = IDashboardWidget, TCustomProps = object> = (renderProps: IDashboardLayoutRenderProps<TWidget> & TCustomProps) => JSX.Element;
|
|
337
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC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E,UAAU,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,gBAAgB,EAAE,YAAY,GAAG,MAAM,IAAI,CACtF,WAAW,EAAE,2BAA2B,CAAC,OAAO,CAAC,GAAG,YAAY,KAC/D,GAAG,CAAC,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.ts"],"names":[],"mappings":""}
|
package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptyFacade.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AAEjG,eAAO,MAAM,2BAA2B,EAAE,0BAA0B,CAAC,OAAO,CA4B3E,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// (C) 2022-2024 GoodData Corporation
|
|
2
|
+
export const emptyItemFacadeWithFullSize = {
|
|
3
|
+
index: () => 0,
|
|
4
|
+
raw: () => null, // TODO: should we allow this in the interface?
|
|
5
|
+
widget: () => null,
|
|
6
|
+
ref: () => undefined,
|
|
7
|
+
section: () => undefined, // TODO: should we allow this in the interface?
|
|
8
|
+
size: () => ({ xl: { gridWidth: 12 } }),
|
|
9
|
+
sizeForScreen: () => ({ gridWidth: 12 }),
|
|
10
|
+
isLast: () => true,
|
|
11
|
+
widgetEquals: () => false,
|
|
12
|
+
widgetIs: () => false,
|
|
13
|
+
hasSizeForScreen: () => false,
|
|
14
|
+
indexIs: () => false,
|
|
15
|
+
isFirst: () => true,
|
|
16
|
+
test: () => false,
|
|
17
|
+
testRaw: () => false,
|
|
18
|
+
isCustomItem: () => false,
|
|
19
|
+
isInsightWidgetItem: () => false,
|
|
20
|
+
isInsightWidgetDefinitionItem: () => false,
|
|
21
|
+
isKpiWidgetItem: () => false,
|
|
22
|
+
isKpiWidgetDefinitionItem: () => false,
|
|
23
|
+
isLayoutItem: () => false,
|
|
24
|
+
isWidgetItem: () => false,
|
|
25
|
+
isWidgetDefinitionItem: () => false,
|
|
26
|
+
isWidgetItemWithInsightRef: () => false,
|
|
27
|
+
isWidgetItemWithKpiRef: () => false,
|
|
28
|
+
isWidgetItemWithRef: () => false,
|
|
29
|
+
isEmpty: () => false,
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=emptyFacade.js.map
|
package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptyFacade.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAIrC,MAAM,CAAC,MAAM,2BAA2B,GAAwC;IAC5E,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;IACd,GAAG,EAAE,GAAG,EAAE,CAAC,IAAW,EAAE,+CAA+C;IACvE,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,GAAG,EAAE,GAAG,EAAE,CAAC,SAAS;IACpB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAgB,EAAE,+CAA+C;IAChF,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC;IACvC,aAAa,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACxC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK;IACzB,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK;IACrB,gBAAgB,EAAE,GAAG,EAAE,CAAC,KAAK;IAC7B,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;IACpB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;IACnB,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK;IACjB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;IACpB,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK;IACzB,mBAAmB,EAAE,GAAG,EAAE,CAAC,KAAK;IAChC,6BAA6B,EAAE,GAAG,EAAE,CAAC,KAAK;IAC1C,eAAe,EAAE,GAAG,EAAE,CAAC,KAAK;IAC5B,yBAAyB,EAAE,GAAG,EAAE,CAAC,KAAK;IACtC,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK;IACzB,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK;IACzB,sBAAsB,EAAE,GAAG,EAAE,CAAC,KAAK;IACnC,0BAA0B,EAAE,GAAG,EAAE,CAAC,KAAK;IACvC,sBAAsB,EAAE,GAAG,EAAE,CAAC,KAAK;IACnC,mBAAmB,EAAE,GAAG,EAAE,CAAC,KAAK;IAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;CACvB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VisType } from "@gooddata/sdk-ui";
|
|
3
|
+
export declare function calculateGeoPushpinWidgetHeight(windowHeight: number, visualizationItemWidth: number): React.CSSProperties;
|
|
4
|
+
export declare function isGeoPushpin(visType: VisType): boolean;
|
|
5
|
+
export declare function isFullWidthGeoPushpin(currentColumnWidth: number, visType: VisType): boolean;
|
|
6
|
+
export declare function getGeoPushpinWidgetStyle(visType: VisType, visualizationItemWidth: number, currentColumnWidth: number, windowHeight: number, enableCustomHeight: boolean): React.CSSProperties | null;
|
|
7
|
+
//# sourceMappingURL=legacy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAS3C,wBAAgB,+BAA+B,CAC3C,YAAY,EAAE,MAAM,EACpB,sBAAsB,EAAE,MAAM,GAC/B,KAAK,CAAC,aAAa,CAUrB;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAE3F;AAED,wBAAgB,wBAAwB,CACpC,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,MAAM,EAC9B,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,OAAO,GAC5B,KAAK,CAAC,aAAa,GAAG,IAAI,CAU5B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DASHBOARD_LAYOUT_DEFAULT_VIS_HEIGHT_PX } from "@gooddata/sdk-ui-ext";
|
|
2
|
+
import { DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT } from "../../../../_staging/dashboard/fluidLayout/index.js";
|
|
3
|
+
const RATIO_16_9 = 9 / 16;
|
|
4
|
+
const HEADER_HEIGHT = 330;
|
|
5
|
+
const PADDING_BOTTOM = 55;
|
|
6
|
+
const HEADLINE_OUTER_HEIGHT = 48 + 20; // item-headline-outer + padding-top/bottom
|
|
7
|
+
export function calculateGeoPushpinWidgetHeight(windowHeight, visualizationItemWidth) {
|
|
8
|
+
const widgetHeight = Math.round(visualizationItemWidth * RATIO_16_9);
|
|
9
|
+
const widgetMaxHeight = windowHeight - HEADER_HEIGHT - PADDING_BOTTOM;
|
|
10
|
+
const defaultVisualizationHeight = DASHBOARD_LAYOUT_DEFAULT_VIS_HEIGHT_PX - HEADLINE_OUTER_HEIGHT;
|
|
11
|
+
const maxHeight = widgetMaxHeight > defaultVisualizationHeight ? widgetMaxHeight : defaultVisualizationHeight;
|
|
12
|
+
return {
|
|
13
|
+
height: widgetHeight,
|
|
14
|
+
maxHeight,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export function isGeoPushpin(visType) {
|
|
18
|
+
return visType === "pushpin";
|
|
19
|
+
}
|
|
20
|
+
export function isFullWidthGeoPushpin(currentColumnWidth, visType) {
|
|
21
|
+
return isGeoPushpin(visType) && currentColumnWidth === DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT;
|
|
22
|
+
}
|
|
23
|
+
export function getGeoPushpinWidgetStyle(visType, visualizationItemWidth, currentColumnWidth, windowHeight, enableCustomHeight) {
|
|
24
|
+
if (isFullWidthGeoPushpin(currentColumnWidth, visType) && !enableCustomHeight) {
|
|
25
|
+
const { height, maxHeight } = calculateGeoPushpinWidgetHeight(windowHeight, visualizationItemWidth);
|
|
26
|
+
return {
|
|
27
|
+
height,
|
|
28
|
+
maxHeight,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,qDAAqD,CAAC;AAE1G,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,CAAC;AAC1B,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,qBAAqB,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,2CAA2C;AAElF,MAAM,UAAU,+BAA+B,CAC3C,YAAoB,EACpB,sBAA8B;IAE9B,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,GAAG,UAAU,CAAC,CAAC;IACrE,MAAM,eAAe,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC;IACtE,MAAM,0BAA0B,GAAG,sCAAsC,GAAG,qBAAqB,CAAC;IAClG,MAAM,SAAS,GACX,eAAe,GAAG,0BAA0B,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,0BAA0B,CAAC;IAChG,OAAO;QACH,MAAM,EAAE,YAAY;QACpB,SAAS;KACZ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAgB;IACzC,OAAO,OAAO,KAAK,SAAS,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,kBAA0B,EAAE,OAAgB;IAC9E,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,kBAAkB,KAAK,mCAAmC,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,wBAAwB,CACpC,OAAgB,EAChB,sBAA8B,EAC9B,kBAA0B,EAC1B,YAAoB,EACpB,kBAA2B;IAE3B,IAAI,qBAAqB,CAAC,kBAAkB,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC5E,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,+BAA+B,CAAC,YAAY,EAAE,sBAAsB,CAAC,CAAC;QACpG,OAAO;YACH,MAAM;YACN,SAAS;SACZ,CAAC;IACN,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AnalyticalWidgetType, IDashboardLayout, IDashboardLayoutItem, IDashboardLayoutSize, ISettings, ScreenSize } from "@gooddata/sdk-model";
|
|
2
|
+
import { IDashboardLayoutItemFacade } from "../../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
|
|
3
|
+
import { MeasurableWidgetContent } from "../../../../_staging/layout/sizing.js";
|
|
4
|
+
/**
|
|
5
|
+
* Unify dashboard layout items height for all screens.
|
|
6
|
+
*
|
|
7
|
+
* @param items - dashboard layout items
|
|
8
|
+
*/
|
|
9
|
+
export declare function unifyDashboardLayoutItemHeights<TWidget>(layout: IDashboardLayout<TWidget>): IDashboardLayout<TWidget>;
|
|
10
|
+
export declare function unifyDashboardLayoutItemHeights<TWidget>(items: IDashboardLayoutItem<TWidget>[]): IDashboardLayoutItem<TWidget>[];
|
|
11
|
+
/**
|
|
12
|
+
* Divide the items into a list representing the future rows of the grid.
|
|
13
|
+
* This is useful for performing item transformations, depending on how they really appear in the grid.
|
|
14
|
+
*
|
|
15
|
+
* @param items - dashboard layout items
|
|
16
|
+
* @param screen - responsive screen class
|
|
17
|
+
*/
|
|
18
|
+
export declare function splitDashboardLayoutItemsAsRenderedGridRows<TWidget>(items: IDashboardLayoutItem<TWidget>[], screen: ScreenSize): IDashboardLayoutItem<TWidget>[][];
|
|
19
|
+
/**
|
|
20
|
+
* Tuple that represents a item position in the layout
|
|
21
|
+
* [sectionIndex, itemIndex]
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
type ItemPosition = [number, number];
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare const getResizedItemPositions: <TWidget>(originalLayout: IDashboardLayout<TWidget>, resizedLayout: IDashboardLayout<TWidget>, positions?: ItemPosition[]) => ItemPosition[];
|
|
31
|
+
export declare const getDashboardLayoutItemHeightForRatioAndScreen: (size: IDashboardLayoutSize, screen: ScreenSize) => number;
|
|
32
|
+
export declare function getDashboardLayoutItemMaxGridWidth(item: IDashboardLayoutItemFacade<any>, screen: ScreenSize): number;
|
|
33
|
+
export declare function getDashboardLayoutWidgetDefaultGridWidth(settings: ISettings, widgetType: AnalyticalWidgetType, widgetContent?: MeasurableWidgetContent): number;
|
|
34
|
+
export declare function getLayoutWithoutGridHeights<TWidget>(layout: IDashboardLayout<TWidget>): IDashboardLayout<TWidget>;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare function validateDashboardLayoutWidgetSize(currentWidth: number, currentHeight: number | undefined, widgetType: AnalyticalWidgetType, widgetContent: MeasurableWidgetContent, settings: ISettings): {
|
|
39
|
+
validWidth: number;
|
|
40
|
+
validHeight?: number;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=sizing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.ts"],"names":[],"mappings":"AACA,OAAO,EACH,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EAEpB,oBAAoB,EAGpB,SAAS,EAGT,UAAU,EACb,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iEAAiE,CAAC;AAE7G,OAAO,EAEH,uBAAuB,EAK1B,MAAM,uCAAuC,CAAC;AAO/C;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EACnD,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAClC,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAC7B,wBAAgB,+BAA+B,CAAC,OAAO,EACnD,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,GACvC,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;AAoJnC;;;;;;GAMG;AACH,wBAAgB,2CAA2C,CAAC,OAAO,EAC/D,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,EACtC,MAAM,EAAE,UAAU,GACnB,oBAAoB,CAAC,OAAO,CAAC,EAAE,EAAE,CA4BnC;AAsGD;;;;;GAKG;AACH,KAAK,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,6GAGrB,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