@gooddata/sdk-ui-dashboard 10.17.0-alpha.9 → 10.17.0
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 +220 -6
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +2 -0
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/layout/toggleLayoutSectionHeadersHandler.d.ts +6 -0
- package/esm/model/commandHandlers/layout/toggleLayoutSectionHeadersHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/layout/toggleLayoutSectionHeadersHandler.js +15 -0
- package/esm/model/commandHandlers/layout/toggleLayoutSectionHeadersHandler.js.map +1 -0
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/index.d.ts +4 -4
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +1 -1
- package/esm/model/commands/index.js.map +1 -1
- package/esm/model/commands/layout.d.ts +31 -1
- package/esm/model/commands/layout.d.ts.map +1 -1
- package/esm/model/commands/layout.js +25 -1
- package/esm/model/commands/layout.js.map +1 -1
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/base.d.ts.map +1 -1
- package/esm/model/events/base.js.map +1 -1
- package/esm/model/events/index.d.ts +2 -2
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js +1 -1
- package/esm/model/events/index.js.map +1 -1
- package/esm/model/events/layout.d.ts +31 -0
- package/esm/model/events/layout.d.ts.map +1 -1
- package/esm/model/events/layout.js +18 -0
- package/esm/model/events/layout.js.map +1 -1
- package/esm/model/events/userInteraction.d.ts +1 -1
- package/esm/model/events/userInteraction.d.ts.map +1 -1
- package/esm/model/events/userInteraction.js.map +1 -1
- package/esm/model/react/useDashboardCommand.d.ts +1 -0
- package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
- package/esm/model/store/layout/index.d.ts +4 -0
- package/esm/model/store/layout/index.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.d.ts +5 -0
- package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.js +19 -1
- package/esm/model/store/layout/layoutReducers.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +4 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeader.d.ts +13 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeader.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeader.js +23 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeader.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js +8 -12
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js +8 -5
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +23 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts +4 -4
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +13 -12
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.d.ts +1 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.js +12 -3
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts +1 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js +20 -2
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts +1 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js +7 -6
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js +5 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.js +5 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.js.map +1 -1
- package/esm/presentation/flexibleLayout/rowEndHotspotHelper.d.ts +4 -0
- package/esm/presentation/flexibleLayout/rowEndHotspotHelper.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/rowEndHotspotHelper.js +9 -0
- package/esm/presentation/flexibleLayout/rowEndHotspotHelper.js.map +1 -0
- package/esm/presentation/localization/bundles/en-US.json +11 -1
- package/esm/presentation/widget/common/useLayoutSectionsConfiguration.d.ts +5 -0
- package/esm/presentation/widget/common/useLayoutSectionsConfiguration.d.ts.map +1 -0
- package/esm/presentation/widget/common/useLayoutSectionsConfiguration.js +10 -0
- package/esm/presentation/widget/common/useLayoutSectionsConfiguration.js.map +1 -0
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.js +8 -3
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.js.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.d.ts +4 -0
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.js +35 -22
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +100 -5
- package/package.json +15 -15
- package/styles/css/dashboard.css +41 -10
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/dashboardNestedLayoutToolbar.css +29 -18
- package/styles/css/dashboardNestedLayoutToolbar.css.map +1 -1
- package/styles/css/dashboardNestedLayoutWidget.css +25 -7
- package/styles/css/dashboardNestedLayoutWidget.css.map +1 -1
- package/styles/css/dragAndDrop.css +14 -0
- package/styles/css/dragAndDrop.css.map +1 -1
- package/styles/css/layout.css +41 -10
- package/styles/css/layout.css.map +1 -1
- package/styles/css/main.css +117 -42
- package/styles/css/main.css.map +1 -1
- package/styles/scss/dashboardNestedLayoutToolbar.scss +46 -21
- package/styles/scss/dashboardNestedLayoutWidget.scss +27 -7
- package/styles/scss/dragAndDrop.scss +16 -0
- package/styles/scss/layout.scss +41 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts +0 -24
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts.map +0 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +0 -14
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAkBvE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKvD,UAAU,aAAa;IACnB,UAAU,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Hotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAkBvE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKvD,UAAU,aAAa;IACnB,UAAU,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2G3C,CAAC"}
|
|
@@ -15,7 +15,7 @@ import { areLayoutPathsEqual, updateItem, getItemIndex } from "../../../../_stag
|
|
|
15
15
|
import { draggableWidgetDropHandler } from "../../../dragAndDrop/draggableWidget/draggableWidgetDropHandler.js";
|
|
16
16
|
import { useWidgetDragHoverHandlers } from "./useWidgetDragHoverHandlers.js";
|
|
17
17
|
export const Hotspot = (props) => {
|
|
18
|
-
const { layoutPath, classNames, dropZoneType, isEndingHotspot } = props;
|
|
18
|
+
const { layoutPath, classNames, dropZoneType, isEndingHotspot, hideBorder = false } = props;
|
|
19
19
|
const isOverLastValue = useRef(false);
|
|
20
20
|
const currentItemIndex = getItemIndex(layoutPath);
|
|
21
21
|
// for "next" we need to add the item after the current index, for "prev" on the current one
|
|
@@ -89,7 +89,16 @@ export const Hotspot = (props) => {
|
|
|
89
89
|
hidden: !canDrop || !canDropSafe(item),
|
|
90
90
|
full: isEndingHotspot,
|
|
91
91
|
active: isOver,
|
|
92
|
-
}), style: debugStyle, ref: dropRef },
|
|
93
|
-
|
|
92
|
+
}), style: debugStyle, ref: dropRef }, hideBorder ? null : React.createElement(HotspotBorder, null)));
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* A functional component that render hotspot border as dropzone
|
|
96
|
+
* @returns A JSX element representing the hotspot border.
|
|
97
|
+
*/
|
|
98
|
+
const HotspotBorder = () => {
|
|
99
|
+
const status = "active";
|
|
100
|
+
return (React.createElement("div", { className: "gd-hotspot-border__container" },
|
|
101
|
+
React.createElement("div", { className: `gd-hotspot-border__drop-target ${status}` },
|
|
102
|
+
React.createElement("div", { className: "drop-target-inner" }))));
|
|
94
103
|
};
|
|
95
104
|
//# sourceMappingURL=Hotspot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EACH,8BAA8B,EAC9B,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,oCAAoC,GACvC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,qDAAqD,CAAC;AACrH,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAC;AAEzG,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,oEAAoE,CAAC;AAChH,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"Hotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EACH,8BAA8B,EAC9B,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,oCAAoC,GACvC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAA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,SAAS,EAAE,kCAAkC,MAAM,EAAE;YACtD,6BAAK,SAAS,EAAC,mBAAmB,GAAG,CACnC,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -5,4 +5,5 @@ export type RowEndHotspotProps<TWidget = IDashboardWidget> = {
|
|
|
5
5
|
item: IDashboardLayoutItemFacade<TWidget>;
|
|
6
6
|
};
|
|
7
7
|
export declare const RowEndHotspot: (props: RowEndHotspotProps<unknown>) => React.JSX.Element | null;
|
|
8
|
+
export declare const shouldShowRowEndDropZone: (remainingGridWidth: number) => boolean;
|
|
8
9
|
//# sourceMappingURL=RowEndHotspot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowEndHotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;
|
|
1
|
+
{"version":3,"file":"RowEndHotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AASpG,MAAM,MAAM,kBAAkB,CAAC,OAAO,GAAG,gBAAgB,IAAI;IACzD,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,mBAAmB,OAAO,CAAC,6BA+D/D,CAAC;AAEF,eAAO,MAAM,wBAAwB,uBAAwB,MAAM,YAA2B,CAAC"}
|
|
@@ -3,9 +3,14 @@ import React from "react";
|
|
|
3
3
|
import { selectIsInEditMode, useDashboardSelector } from "../../../../model/index.js";
|
|
4
4
|
import { Hotspot } from "./Hotspot.js";
|
|
5
5
|
import { updateItem } from "../../../../_staging/layout/coordinates.js";
|
|
6
|
+
import { WidgetDropZoneColumn } from "./WidgetDropZoneColumn.js";
|
|
7
|
+
import { useScreenSize } from "../../../dashboard/components/DashboardScreenSizeContext.js";
|
|
8
|
+
import { GridLayoutElement } from "../../DefaultDashboardLayoutRenderer/GridLayoutElement.js";
|
|
9
|
+
import { getRemainingWidthInRow } from "../../rowEndHotspotHelper.js";
|
|
6
10
|
export const RowEndHotspot = (props) => {
|
|
7
11
|
const { item } = props;
|
|
8
12
|
const isInEditMode = useDashboardSelector(selectIsInEditMode);
|
|
13
|
+
const screen = useScreenSize();
|
|
9
14
|
const layoutPath = item.index();
|
|
10
15
|
const isLastInSection = item.isLast();
|
|
11
16
|
const showEndingHotspot = isLastInSection && isInEditMode;
|
|
@@ -13,8 +18,21 @@ export const RowEndHotspot = (props) => {
|
|
|
13
18
|
return null;
|
|
14
19
|
}
|
|
15
20
|
const layoutPathForEndHotspot = updateItem(layoutPath, layoutPath[layoutPath.length - 1].sectionIndex, layoutPath[layoutPath.length - 1].itemIndex + 1); // increment item index manually as end hotspot is rendered as prev type
|
|
21
|
+
const remainingGridWidth = getRemainingWidthInRow(item, screen);
|
|
22
|
+
const { gridHeight } = item.sizeForScreenWithFallback(screen);
|
|
23
|
+
const isDropZoneVisible = shouldShowRowEndDropZone(remainingGridWidth);
|
|
16
24
|
return (React.createElement(React.Fragment, null,
|
|
17
|
-
React.createElement(
|
|
18
|
-
|
|
25
|
+
React.createElement(GridLayoutElement, { type: "item", layoutItemSize: {
|
|
26
|
+
xl: { gridWidth: remainingGridWidth, gridHeight },
|
|
27
|
+
lg: { gridWidth: remainingGridWidth, gridHeight },
|
|
28
|
+
md: { gridWidth: remainingGridWidth, gridHeight },
|
|
29
|
+
sm: { gridWidth: remainingGridWidth, gridHeight },
|
|
30
|
+
xs: { gridWidth: remainingGridWidth, gridHeight },
|
|
31
|
+
}, className: cx("gd-fluidlayout-column", "gd-fluidlayout-column-dropzone", "s-fluid-layout-column", "gd-fluidlayout-column-row-end-hotspot", {
|
|
32
|
+
"gd-fluidlayout-column-dropzone__text--hidden": remainingGridWidth < 2,
|
|
33
|
+
}) },
|
|
34
|
+
isDropZoneVisible ? (React.createElement(WidgetDropZoneColumn, { layoutPath: layoutPathForEndHotspot, isLastInSection: true, gridWidthOverride: remainingGridWidth })) : null,
|
|
35
|
+
React.createElement(Hotspot, { dropZoneType: "prev", isEndingHotspot: true, layoutPath: layoutPathForEndHotspot, isLastInSection: item.isLast(), hideBorder: isDropZoneVisible }))));
|
|
19
36
|
};
|
|
37
|
+
export const shouldShowRowEndDropZone = (remainingGridWidth) => remainingGridWidth > 0;
|
|
20
38
|
//# sourceMappingURL=RowEndHotspot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowEndHotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGtF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"RowEndHotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGtF,OAA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AAC,MAAM,EACX,cAAc,EAAE;gBACZ,EAAE,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE;gBACjD,EAAE,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE;gBACjD,EAAE,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE;gBACjD,EAAE,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE;gBACjD,EAAE,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE;aACpD,EACD,SAAS,EAAE,EAAE,CACT,uBAAuB,EACvB,gCAAgC,EAChC,uBAAuB,EACvB,uCAAuC,EACvC;gBACI,8CAA8C,EAAE,kBAAkB,GAAG,CAAC;aACzE,CACJ;YAEA,iBAAiB,CAAC,CAAC,CAAC,CACjB,oBAAC,oBAAoB,IACjB,UAAU,EAAE,uBAAuB,EACnC,eAAe,EAAE,IAAI,EACrB,iBAAiB,EAAE,kBAAkB,GACvC,CACL,CAAC,CAAC,CAAC,IAAI;YACR,oBAAC,OAAO,IACJ,YAAY,EAAC,MAAM,EACnB,eAAe,QACf,UAAU,EAAE,uBAAuB,EACnC,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,EAC9B,UAAU,EAAE,iBAAiB,GAC/B,CACc,CACrB,CACN,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,kBAA0B,EAAE,EAAE,CAAC,kBAAkB,GAAG,CAAC,CAAC"}
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ILayoutItemPath } from "../../../../types.js";
|
|
|
3
3
|
export type WidgetDropZoneColumnProps = {
|
|
4
4
|
layoutPath: ILayoutItemPath;
|
|
5
5
|
isLastInSection?: boolean;
|
|
6
|
+
gridWidthOverride?: number;
|
|
6
7
|
};
|
|
7
8
|
export declare const WidgetDropZoneColumn: (props: WidgetDropZoneColumnProps) => React.JSX.Element | null;
|
|
8
9
|
//# sourceMappingURL=WidgetDropZoneColumn.d.ts.map
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDropZoneColumn.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAiBvC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKvD,MAAM,MAAM,yBAAyB,GAAG;IACpC,UAAU,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetDropZoneColumn.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAiBvC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKvD,MAAM,MAAM,yBAAyB,GAAG;IACpC,UAAU,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,6BA2FpE,CAAC"}
|
|
@@ -64,16 +64,17 @@ export const WidgetDropZoneColumn = (props) => {
|
|
|
64
64
|
if (!showDropZone) {
|
|
65
65
|
return null;
|
|
66
66
|
}
|
|
67
|
-
if (!collectedProps?.item) {
|
|
67
|
+
if (!collectedProps?.item || !collectedProps.canDrop) {
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
70
|
const { gridWidth = 12, gridHeight } = collectedProps.item.size;
|
|
71
|
+
const usedWidth = props.gridWidthOverride ?? gridWidth;
|
|
71
72
|
return (React.createElement(GridLayoutElement, { type: "item", layoutItemSize: {
|
|
72
|
-
xl: { gridWidth, gridHeight },
|
|
73
|
-
lg: { gridWidth, gridHeight },
|
|
74
|
-
md: { gridWidth, gridHeight },
|
|
75
|
-
sm: { gridWidth, gridHeight },
|
|
76
|
-
xs: { gridWidth, gridHeight },
|
|
73
|
+
xl: { gridWidth: usedWidth, gridHeight },
|
|
74
|
+
lg: { gridWidth: usedWidth, gridHeight },
|
|
75
|
+
md: { gridWidth: usedWidth, gridHeight },
|
|
76
|
+
sm: { gridWidth: usedWidth, gridHeight },
|
|
77
|
+
xs: { gridWidth: usedWidth, gridHeight },
|
|
77
78
|
}, className: cx("gd-fluidlayout-column", "gd-fluidlayout-column-dropzone", "s-fluid-layout-column"), style: {
|
|
78
79
|
minHeight: getDashboardLayoutItemHeightForGrid(gridHeight),
|
|
79
80
|
} },
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDropZoneColumn.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACH,oCAAoC,EACpC,oBAAoB,EACpB,oBAAoB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAE5F,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,qDAAqD,CAAC;AACrH,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAC;AAEzG,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oEAAoE,CAAC;AAChH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2DAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetDropZoneColumn.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACH,oCAAoC,EACpC,oBAAoB,EACpB,oBAAoB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAE5F,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,8CAA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AS,EAAE,mCAAmC,CAAC,UAAU,CAAC;SAC7D;QAED,oBAAC,cAAc,IAAC,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,CAC9E,CACvB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardLayoutPlaceholderDropHandler.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,wBAAgB,wCAAwC,CAAC,UAAU,EAAE,eAAe,cAejE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"useDashboardLayoutPlaceholderDropHandler.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,wBAAgB,wCAAwC,CAAC,UAAU,EAAE,eAAe,cAejE,2BAA2B,UA0B7C"}
|
|
@@ -31,6 +31,11 @@ export function useDashboardLayoutPlaceholderDropHandler(layoutPath) {
|
|
|
31
31
|
identifier: id,
|
|
32
32
|
ref: idRef(id),
|
|
33
33
|
uri: `/${id}`,
|
|
34
|
+
configuration: {
|
|
35
|
+
sections: {
|
|
36
|
+
enableHeader: false,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
34
39
|
},
|
|
35
40
|
});
|
|
36
41
|
}, [createDashboardLayout, layoutPath]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardLayoutPlaceholderDropHandler.js","sourceRoot":"","sources":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AAQ,EAAE,EAAE;gBACZ,UAAU,EAAE,EAAE;gBACd,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;gBACd,GAAG,EAAE,IAAI,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"useDashboardLayoutPlaceholderDropHandler.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EACH,oBAAoB,EACpB,6BAA6B,EAC7B,0BAA0B,EAC1B,SAAS,GACZ,MAAM,4BAA4B,CAAC;AAGpC,MAAM,UAAU,wCAAwC,CAAC,UAA2B;IAChF,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IAExC,MAAM,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,6BAA6B,CAAC;QACjE,cAAc,EAAE,0BAA0B;QAC1C,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,uCAAuC;QACrD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAO,CAAC,GAAG,CAAC;YACpD,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;YACtC,QAAQ,CAAC,SAAS,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1D,CAAC;KACJ,CAAC,CAAC;IAEH,OAAO,WAAW,CACd,CAAC,QAAqC,EAAE,EAAE;QACtC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;QACpB,qBAAqB,CAAC,UAAU,EAAE;YAC9B,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE;gBACF,EAAE,EAAE;oBACA,UAAU,EAAE,QAAQ,CAAC,UAAU;oBAC/B,SAAS,EAAE,QAAQ,CAAC,SAAS;iBAChC;aACJ;YACD,MAAM,EAAE;gBACJ,IAAI,EAAE,kBAAkB;gBACxB,QAAQ,EAAE,EAAE;gBACZ,UAAU,EAAE,EAAE;gBACd,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;gBACd,GAAG,EAAE,IAAI,EAAE,EAAE;gBACb,aAAa,EAAE;oBACX,QAAQ,EAAE;wBACN,YAAY,EAAE,KAAK;qBACtB;iBACJ;aACJ;SACJ,CAAC,CAAC;IACP,CAAC,EACD,CAAC,qBAAqB,EAAE,UAAU,CAAC,CACtC,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,wBAAgB,kDAAkD,CAAC,YAAY,EAAE,kBAAkB,cAehF,2BAA2B,
|
|
1
|
+
{"version":3,"file":"useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,wBAAgB,kDAAkD,CAAC,YAAY,EAAE,kBAAkB,cAehF,2BAA2B,UA4B7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNewSectionDashboardLayoutPlaceholderDropHandler.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EACH,oBAAoB,EACpB,6BAA6B,EAC7B,SAAS,EACT,sBAAsB,GACzB,MAAM,4BAA4B,CAAC;AAIpC,MAAM,UAAU,kDAAkD,CAAC,YAAgC;IAC/F,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IAExC,MAAM,EAAE,GAAG,EAAE,2CAA2C,EAAE,GAAG,6BAA6B,CAAC;QACvF,cAAc,EAAE,sBAAsB;QACtC,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,yCAAyC;QACvD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAO,CAAC,GAAG,CAAC;YACvD,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;YACtC,QAAQ,CAAC,SAAS,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1D,CAAC;KACJ,CAAC,CAAC;IAEH,OAAO,WAAW,CACd,CAAC,QAAqC,EAAE,EAAE;QACtC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;QACpB,2CAA2C,CAAC,YAAY,EAAE,EAAE,EAAE;YAC1D;gBACI,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE;oBACF,EAAE,EAAE;wBACA,UAAU,EAAE,QAAQ,CAAC,UAAU;wBAC/B,SAAS,EAAE,QAAQ,CAAC,SAAS;qBAChC;iBACJ;gBACD,MAAM,EAAE;oBACJ,IAAI,EAAE,kBAAkB;oBACxB,UAAU,EAAE,EAAE;oBACd,QAAQ,EAAE,EAAE;oBACZ,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;oBACd,GAAG,EAAE,IAAI,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"useNewSectionDashboardLayoutPlaceholderDropHandler.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EACH,oBAAoB,EACpB,6BAA6B,EAC7B,SAAS,EACT,sBAAsB,GACzB,MAAM,4BAA4B,CAAC;AAIpC,MAAM,UAAU,kDAAkD,CAAC,YAAgC;IAC/F,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IAExC,MAAM,EAAE,GAAG,EAAE,2CAA2C,EAAE,GAAG,6BAA6B,CAAC;QACvF,cAAc,EAAE,sBAAsB;QACtC,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,yCAAyC;QACvD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAO,CAAC,GAAG,CAAC;YACvD,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;YACtC,QAAQ,CAAC,SAAS,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1D,CAAC;KACJ,CAAC,CAAC;IAEH,OAAO,WAAW,CACd,CAAC,QAAqC,EAAE,EAAE;QACtC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;QACpB,2CAA2C,CAAC,YAAY,EAAE,EAAE,EAAE;YAC1D;gBACI,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE;oBACF,EAAE,EAAE;wBACA,UAAU,EAAE,QAAQ,CAAC,UAAU;wBAC/B,SAAS,EAAE,QAAQ,CAAC,SAAS;qBAChC;iBACJ;gBACD,MAAM,EAAE;oBACJ,IAAI,EAAE,kBAAkB;oBACxB,UAAU,EAAE,EAAE;oBACd,QAAQ,EAAE,EAAE;oBACZ,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;oBACd,GAAG,EAAE,IAAI,EAAE,EAAE;oBACb,aAAa,EAAE;wBACX,QAAQ,EAAE;4BACN,YAAY,EAAE,KAAK;yBACtB;qBACJ;iBACJ;aACJ;SACJ,CAAC,CAAC;IACP,CAAC,EACD,CAAC,2CAA2C,EAAE,YAAY,CAAC,CAC9D,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ScreenSize } from "@gooddata/sdk-model";
|
|
2
|
+
import { IDashboardLayoutItemFacade } from "../../_staging/dashboard/flexibleLayout/index.js";
|
|
3
|
+
export declare function getRemainingWidthInRow(item: IDashboardLayoutItemFacade<unknown>, screen: ScreenSize): number;
|
|
4
|
+
//# sourceMappingURL=rowEndHotspotHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowEndHotspotHelper.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/rowEndHotspotHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAE9F,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,EACzC,MAAM,EAAE,UAAU,GACnB,MAAM,CAQR"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// (C) 2022-2024 GoodData Corporation
|
|
2
|
+
import { DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT } from "../../_staging/dashboard/flexibleLayout/config.js";
|
|
3
|
+
export function getRemainingWidthInRow(item, screen) {
|
|
4
|
+
const rows = item.section().items().asGridRows(screen);
|
|
5
|
+
const lastRow = rows[rows.length - 1];
|
|
6
|
+
const lastRowLength = lastRow.reduce((acc, item) => acc + item.sizeForScreenWithFallback(screen).gridWidth, 0);
|
|
7
|
+
return (item.section().layout().size()?.gridWidth ?? DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT) - lastRowLength;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=rowEndHotspotHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowEndHotspotHelper.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/rowEndHotspotHelper.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,EAAE,mCAAmC,EAAE,MAAM,mDAAmD,CAAC;AAGxG,MAAM,UAAU,sBAAsB,CAClC,IAAyC,EACzC,MAAkB;IAElB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACtC,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAChC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,SAAS,EACrE,CAAC,CACJ,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,IAAI,mCAAmC,CAAC,GAAG,aAAa,CAAC;AAC9G,CAAC"}
|
|
@@ -2574,8 +2574,18 @@
|
|
|
2574
2574
|
"comment": "",
|
|
2575
2575
|
"limit": 0
|
|
2576
2576
|
},
|
|
2577
|
+
"nestedLayoutToolbar.hideHeader": {
|
|
2578
|
+
"value": "Hide title and description.",
|
|
2579
|
+
"comment": "",
|
|
2580
|
+
"limit": 0
|
|
2581
|
+
},
|
|
2582
|
+
"nestedLayoutToolbar.showHeader": {
|
|
2583
|
+
"value": "Show title and description.",
|
|
2584
|
+
"comment": "",
|
|
2585
|
+
"limit": 0
|
|
2586
|
+
},
|
|
2577
2587
|
"nestedLayoutToolbar.remove": {
|
|
2578
|
-
"value": "Remove
|
|
2588
|
+
"value": "Remove from dashboard.",
|
|
2579
2589
|
"comment": "",
|
|
2580
2590
|
"limit": 0
|
|
2581
2591
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayoutSectionsConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useLayoutSectionsConfiguration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,8BAA8B,WAAY,iBAAiB,OAAO,CAAC;;CAQ/E,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
export const useLayoutSectionsConfiguration = (layout) => {
|
|
3
|
+
const sectionsConfiguration = layout.configuration?.sections;
|
|
4
|
+
// backward compatibility, assume header is enabled when configuration is not set on the layout
|
|
5
|
+
const enableHeader = sectionsConfiguration?.enableHeader ?? true;
|
|
6
|
+
return {
|
|
7
|
+
areSectionHeadersEnabled: enableHeader,
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useLayoutSectionsConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayoutSectionsConfiguration.js","sourceRoot":"","sources":["../../../../src/presentation/widget/common/useLayoutSectionsConfiguration.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAIhC,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAAiC,EAAE,EAAE;IAChF,MAAM,qBAAqB,GAAG,MAAM,CAAC,aAAa,EAAE,QAAQ,CAAC;IAC7D,+FAA+F;IAC/F,MAAM,YAAY,GAAG,qBAAqB,EAAE,YAAY,IAAI,IAAI,CAAC;IAEjE,OAAO;QACH,wBAAwB,EAAE,YAAY;KACzC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableDashboardNestedLayoutWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EditableDashboardNestedLayoutWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAkBxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAMvE;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA0G/E,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { FormattedMessage, useIntl } from "react-intl";
|
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { ConfirmDialog, Icon, OverlayController, OverlayControllerProvider } from "@gooddata/sdk-ui-kit";
|
|
6
6
|
import { DashboardItem, DashboardItemBase } from "../../../presentationComponents/index.js";
|
|
7
|
-
import { eagerRemoveSectionItemByWidgetRef, selectIsDashboardSaving, useDashboardDispatch, useDashboardSelector, useWidgetSelection, } from "../../../../model/index.js";
|
|
7
|
+
import { eagerRemoveSectionItemByWidgetRef, selectIsDashboardSaving, useDashboardDispatch, useDashboardSelector, useWidgetSelection, toggleLayoutSectionHeaders, } from "../../../../model/index.js";
|
|
8
8
|
import { DASHBOARD_OVERLAYS_FILTER_Z_INDEX } from "../../../constants/index.js";
|
|
9
9
|
import { DashboardLayout } from "../../dashboardLayout/DashboardLayout.js";
|
|
10
10
|
import { Toolbar } from "./Toolbar.js";
|
|
@@ -31,7 +31,9 @@ export const EditableDashboardNestedLayoutWidget = ({ widget, layout, parentLayo
|
|
|
31
31
|
"is-editable": isEditable,
|
|
32
32
|
"is-dragging-widget": isDraggingWidget,
|
|
33
33
|
}), renderAfterContent: () => {
|
|
34
|
-
return (React.createElement(React.Fragment, null, hasConfigPanelOpen ? (React.createElement(Toolbar, { onWidgetDelete: () => setIsConfirmDeleteDialogVisible(true),
|
|
34
|
+
return (React.createElement(React.Fragment, null, hasConfigPanelOpen ? (React.createElement(Toolbar, { layout: layout, onWidgetDelete: () => setIsConfirmDeleteDialogVisible(true), onToggleHeaders: (areSectionHeadersEnabled) => {
|
|
35
|
+
dispatch(toggleLayoutSectionHeaders(parentLayoutPath, areSectionHeadersEnabled));
|
|
36
|
+
}, onClose: closeConfigPanel })) : null));
|
|
35
37
|
} }, ({ clientWidth, clientHeight }) => (React.createElement(React.Fragment, null,
|
|
36
38
|
React.createElement("div", { className: cx("gd-dashboard-nested-layout-tab", {
|
|
37
39
|
"is-selected": isSelected,
|
|
@@ -41,7 +43,10 @@ export const EditableDashboardNestedLayoutWidget = ({ widget, layout, parentLayo
|
|
|
41
43
|
React.createElement(FormattedMessage, { id: "nestedLayout.tab.title" }))),
|
|
42
44
|
React.createElement(DashboardLayout, { widget: widget, layout: layout, clientHeight: clientHeight, clientWidth: clientWidth, parentLayoutItemSize: parentLayoutItemSize, parentLayoutPath: parentLayoutPath }))))),
|
|
43
45
|
isConfirmDeleteDialogVisible ? (React.createElement(OverlayControllerProvider, { overlayController: overlayController },
|
|
44
|
-
React.createElement(ConfirmDialog, { className: "s-dashboard-nested-layout-remove-confirm-dialog", onSubmit: () =>
|
|
46
|
+
React.createElement(ConfirmDialog, { className: "s-dashboard-nested-layout-remove-confirm-dialog", onSubmit: () => {
|
|
47
|
+
dispatch(eagerRemoveSectionItemByWidgetRef(widget.ref));
|
|
48
|
+
setIsConfirmDeleteDialogVisible(false);
|
|
49
|
+
}, onCancel: () => setIsConfirmDeleteDialogVisible(false), headline: intl.formatMessage({ id: "nestedLayout.deleteDialog.header" }), submitButtonText: intl.formatMessage({ id: "delete" }), cancelButtonText: intl.formatMessage({ id: "cancel" }) },
|
|
45
50
|
React.createElement(FormattedMessage, { id: "nestedLayout.deleteDialog.message" })))) : null));
|
|
46
51
|
};
|
|
47
52
|
//# sourceMappingURL=EditableDashboardNestedLayoutWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableDashboardNestedLayoutWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEzG,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EACH,iCAAiC,EACjC,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"EditableDashboardNestedLayoutWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QA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AgB,IAAC,EAAE,EAAC,wBAAwB,GAAG,CAC9C,CACJ;gBACN,oBAAC,eAAe,IACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,GACpC,CACH,CACN,CACe,CACR;QACf,4BAA4B,CAAC,CAAC,CAAC,CAC5B,oBAAC,yBAAyB,IAAC,iBAAiB,EAAE,iBAAiB;YAC3D,oBAAC,aAAa,IACV,SAAS,EAAC,iDAAiD,EAC3D,QAAQ,EAAE,GAAG,EAAE;oBACX,QAAQ,CAAC,iCAAiC,CAAC,MAAO,CAAC,GAAG,CAAC,CAAC,CAAC;oBACzD,+BAA+B,CAAC,KAAK,CAAC,CAAC;gBAC3C,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,EACtD,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,kCAAkC,EAAE,CAAC,EACxE,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,EACtD,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;gBAEtD,oBAAC,gBAAgB,IAAC,EAAE,EAAC,mCAAmC,GAAG,CAC/C,CACQ,CAC/B,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { IDashboardLayout } from "@gooddata/sdk-model";
|
|
3
|
+
import { ExtendedDashboardWidget } from "../../../../model/index.js";
|
|
2
4
|
interface ToolbarProps {
|
|
5
|
+
layout: IDashboardLayout<ExtendedDashboardWidget>;
|
|
3
6
|
onWidgetDelete: () => void;
|
|
7
|
+
onToggleHeaders: (areSectionHeadersEnabled: boolean) => void;
|
|
4
8
|
onClose: () => void;
|
|
5
9
|
}
|
|
6
10
|
export declare const Toolbar: React.FC<ToolbarProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAA+B,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAYlG,UAAU,YAAY;IAClB,MAAM,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;IAClD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,CAAC,wBAAwB,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAsE1C,CAAC"}
|
|
@@ -1,31 +1,44 @@
|
|
|
1
1
|
// (C) 2024 GoodData Corporation
|
|
2
|
-
import { Bubble, BubbleHoverTrigger, Icon } from "@gooddata/sdk-ui-kit";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { Bubble, BubbleHoverTrigger, Icon } from "@gooddata/sdk-ui-kit";
|
|
4
5
|
import cx from "classnames";
|
|
5
6
|
import { useDashboardUserInteraction } from "../../../../model/index.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"tr
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
export const Toolbar = ({ onWidgetDelete, onClose }) => {
|
|
7
|
+
import { useLayoutSectionsConfiguration } from "../../common/useLayoutSectionsConfiguration.js";
|
|
8
|
+
const TOOLBAR_ALIGN_POINTS = [
|
|
9
|
+
{ align: "tr tl", offset: { x: 0, y: 11 } },
|
|
10
|
+
{ align: "tl tr", offset: { x: -2, y: 11 } },
|
|
11
|
+
];
|
|
12
|
+
const TOOLTIP_ALIGN_POINTS = [{ align: "tc bc", offset: { x: 0, y: -7 } }];
|
|
13
|
+
const ARROW_STYLES = { display: "none" };
|
|
14
|
+
const ALIGN_TOOLBAR_TO = ".s-dash-item.is-selected";
|
|
15
|
+
const IGNORE_TOOLBAR_CLICKS_ON_BY_CLASS = [ALIGN_TOOLBAR_TO]; // do not close on click to the widget
|
|
16
|
+
export const Toolbar = ({ layout, onWidgetDelete, onToggleHeaders, onClose }) => {
|
|
17
17
|
const userInteraction = useDashboardUserInteraction();
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
const { areSectionHeadersEnabled } = useLayoutSectionsConfiguration(layout);
|
|
19
|
+
return (React.createElement(Bubble, { className: "bubble-light", overlayClassName: "gd-nested-layout__toolbar s-nested-layout__toolbar", alignTo: ALIGN_TOOLBAR_TO, alignPoints: TOOLBAR_ALIGN_POINTS, closeOnOutsideClick: true, closeOnParentScroll: false, ignoreClicksOnByClass: IGNORE_TOOLBAR_CLICKS_ON_BY_CLASS, arrowStyle: ARROW_STYLES, onClose: onClose },
|
|
20
|
+
React.createElement("div", null,
|
|
21
|
+
React.createElement(BubbleHoverTrigger, { eventsOnBubble: true },
|
|
22
|
+
React.createElement("div", { className: "gd-nested-layout__toolbar__button s-nested-layout__button--headers", onClick: () => {
|
|
23
|
+
onToggleHeaders(!areSectionHeadersEnabled);
|
|
24
|
+
userInteraction.nestedLayoutInteraction(areSectionHeadersEnabled
|
|
25
|
+
? "nestedLayoutHeaderDisabled"
|
|
26
|
+
: "nestedLayoutHeaderEnabled");
|
|
27
|
+
} },
|
|
28
|
+
React.createElement(Icon.Header, { className: cx({
|
|
29
|
+
"gd-nested-layout__toolbar__icon--headers-active": areSectionHeadersEnabled,
|
|
30
|
+
"gd-nested-layout__toolbar__icon--headers-disabled": !areSectionHeadersEnabled,
|
|
31
|
+
}), width: 28, height: 28 })),
|
|
32
|
+
React.createElement(Bubble, { alignPoints: TOOLTIP_ALIGN_POINTS }, areSectionHeadersEnabled ? (React.createElement(FormattedMessage, { id: "nestedLayoutToolbar.hideHeader" })) : (React.createElement(FormattedMessage, { id: "nestedLayoutToolbar.showHeader" }))))),
|
|
33
|
+
React.createElement("div", { className: "gd-nested-layout__toolbar__delimiter" }),
|
|
34
|
+
React.createElement("div", null,
|
|
26
35
|
React.createElement(BubbleHoverTrigger, { eventsOnBubble: true },
|
|
27
|
-
React.createElement(
|
|
28
|
-
|
|
36
|
+
React.createElement("div", { className: "gd-nested-layout__toolbar__button s-nested-layout__button--remove", onClick: () => {
|
|
37
|
+
onWidgetDelete();
|
|
38
|
+
userInteraction.nestedLayoutInteraction("nestedLayoutRemoved");
|
|
39
|
+
} },
|
|
40
|
+
React.createElement(Icon.Trash, { className: "gd-nested-layout__toolbar__icon--remove", width: 20, height: 20 })),
|
|
41
|
+
React.createElement(Bubble, { alignPoints: TOOLTIP_ALIGN_POINTS },
|
|
29
42
|
React.createElement(FormattedMessage, { id: "nestedLayoutToolbar.remove" }))))));
|
|
30
43
|
};
|
|
31
44
|
//# sourceMappingURL=Toolbar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,
|
|
1
|
+
{"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../../src/present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