@gooddata/sdk-ui-dashboard 10.31.0-alpha.11 → 10.31.0-alpha.12
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/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js +9 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.d.ts +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.js +3 -6
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.js.map +1 -1
- package/package.json +15 -15
package/esm/__version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "10.31.0-alpha.
|
|
1
|
+
export declare const LIB_VERSION = "10.31.0-alpha.12";
|
|
2
2
|
//# sourceMappingURL=__version.d.ts.map
|
package/esm/__version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyNestedLayoutDropZone.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"EmptyNestedLayoutDropZone.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA4BpD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAY3D,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,KAAK,CAAC,EAMxD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAyC7C,CAAC"}
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// (C) 2022-2025 GoodData Corporation
|
|
2
|
-
import React from "react";
|
|
2
|
+
import React, { useEffect } from "react";
|
|
3
3
|
import { FormattedMessage, defineMessages } from "react-intl";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { Typography } from "@gooddata/sdk-ui-kit";
|
|
6
6
|
import { useEmptyContentHandlers } from "./useEmptyContentHandlers.js";
|
|
7
7
|
import { useDashboardItemPathAndSize } from "../../../dashboard/components/DashboardItemPathAndSizeContext.js";
|
|
8
|
+
import { useWidgetDragHoverHandlers } from "./useWidgetDragHoverHandlers.js";
|
|
8
9
|
const widgetCategoryMapping = {
|
|
9
10
|
"insight-placeholder": "insight",
|
|
10
11
|
insightListItem: "visualization",
|
|
@@ -39,6 +40,13 @@ export const EmptyNestedLayoutDropZone = () => {
|
|
|
39
40
|
sectionIndex: 0,
|
|
40
41
|
};
|
|
41
42
|
const { itemType, canDrop, isOver, dropRef } = useEmptyContentHandlers(sectionPath);
|
|
43
|
+
const { handleDragHoverEnd } = useWidgetDragHoverHandlers();
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (isOver) {
|
|
46
|
+
// hide section end drop zone in case when user drags widget to empty nested layout drag zone
|
|
47
|
+
handleDragHoverEnd();
|
|
48
|
+
}
|
|
49
|
+
}, [isOver, handleDragHoverEnd]);
|
|
42
50
|
const widgetCategory = widgetCategoryMapping[itemType];
|
|
43
51
|
return (React.createElement("div", { className: cx("drag-info-placeholder", "dash-item", {
|
|
44
52
|
[`type-${widgetCategory}`]: !!widgetCategory,
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyNestedLayoutDropZone.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"EmptyNestedLayoutDropZone.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,qBAAqB,GAAkD;IACzE,qBAAqB,EAAE,SAAS;IAChC,eAAe,EAAE,eAAe;IAChC,iBAAiB,EAAE,KAAK;IACxB,gBAAgB,EAAE,UAAU;IAC5B,6BAA6B,EAAE,uBAAuB;IACtD,uBAAuB,EAAE,iBAAiB;CAC7C,CAAC;AAEF,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,eAAe,EAAE;QACb,EAAE,EAAE,oCAAoC;KAC3C;IACD,qBAAqB,EAAE;QACnB,EAAE,EAAE,2CAA2C;KAClD;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAoC,CAAC,EAAE,OAAO,GAAG,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AChD,CAAC,QAAQ,cAAc,EAAE,CAAC,EAAE,CAAC,CAAC,cAAc;YAC5C,WAAW,EAAE,CAAC,cAAc;YAC5B,sBAAsB,EAAE,OAAO;SAClC,CAAC;QAEF,6BACI,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EACxF,GAAG,EAAE,OAAO;YAGZ,oBAAC,oCAAoC,OAAG;YACxC,6BAAK,SAAS,EAAC,uEAAuE;gBAClF,6BAAK,SAAS,EAAC,mBAAmB;oBAC9B,oBAAC,eAAe,IAAC,OAAO,EAAE,OAAO,GAAI,CACnC,CACJ,CACJ,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -5,5 +5,5 @@ export type WidgetDropZoneProps = {
|
|
|
5
5
|
layoutPath: ILayoutItemPath;
|
|
6
6
|
dropRef: any;
|
|
7
7
|
};
|
|
8
|
-
export declare const WidgetDropZone:
|
|
8
|
+
export declare const WidgetDropZone: React.FC<WidgetDropZoneProps>;
|
|
9
9
|
//# sourceMappingURL=WidgetDropZone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDropZone.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetDropZone.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKvD,MAAM,MAAM,mBAAmB,GAAG;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,eAAe,CAAC;IAC5B,OAAO,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAIxD,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
// (C) 2022-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { WidgetDropZoneBox } from "./WidgetDropZoneBox.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return (React.createElement("div", { className: "widget-dropzone", ref: dropRef },
|
|
8
|
-
React.createElement(WidgetDropZoneBox, { isLast: isLastInSection, isInContainer: isInContainer })));
|
|
9
|
-
};
|
|
4
|
+
import { hasParent } from "../../../../_staging/layout/coordinates.js";
|
|
5
|
+
export const WidgetDropZone = ({ isLastInSection, dropRef, layoutPath }) => (React.createElement("div", { className: "widget-dropzone", ref: dropRef },
|
|
6
|
+
React.createElement(WidgetDropZoneBox, { isLast: isLastInSection, isInContainer: hasParent(layoutPath) })));
|
|
10
7
|
//# sourceMappingURL=WidgetDropZone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDropZone.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetDropZone.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAQvE,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACvG,6BAAK,SAAS,EAAC,iBAAiB,EAAC,GAAG,EAAE,OAAO;IACzC,oBAAC,iBAAiB,IAAC,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,CAAC,UAAU,CAAC,GAAI,CAClF,CACT,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "10.31.0-alpha.
|
|
3
|
+
"version": "10.31.0-alpha.12",
|
|
4
4
|
"description": "GoodData SDK - Dashboard Component",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
"uuid": "^8.3.2",
|
|
60
60
|
"@codemirror/language": "~6.11.0",
|
|
61
61
|
"@lezer/highlight": "~1.2.1",
|
|
62
|
-
"@gooddata/sdk-backend-base": "10.31.0-alpha.
|
|
63
|
-
"@gooddata/sdk-
|
|
64
|
-
"@gooddata/sdk-model": "10.31.0-alpha.
|
|
65
|
-
"@gooddata/sdk-ui
|
|
66
|
-
"@gooddata/sdk-
|
|
67
|
-
"@gooddata/sdk-ui-filters": "10.31.0-alpha.
|
|
68
|
-
"@gooddata/sdk-ui-
|
|
69
|
-
"@gooddata/sdk-ui-
|
|
70
|
-
"@gooddata/sdk-ui-
|
|
71
|
-
"@gooddata/sdk-ui-
|
|
72
|
-
"@gooddata/util": "10.31.0-alpha.
|
|
62
|
+
"@gooddata/sdk-backend-base": "10.31.0-alpha.12",
|
|
63
|
+
"@gooddata/sdk-ui-ext": "10.31.0-alpha.12",
|
|
64
|
+
"@gooddata/sdk-model": "10.31.0-alpha.12",
|
|
65
|
+
"@gooddata/sdk-ui": "10.31.0-alpha.12",
|
|
66
|
+
"@gooddata/sdk-backend-spi": "10.31.0-alpha.12",
|
|
67
|
+
"@gooddata/sdk-ui-filters": "10.31.0-alpha.12",
|
|
68
|
+
"@gooddata/sdk-ui-geo": "10.31.0-alpha.12",
|
|
69
|
+
"@gooddata/sdk-ui-kit": "10.31.0-alpha.12",
|
|
70
|
+
"@gooddata/sdk-ui-theme-provider": "10.31.0-alpha.12",
|
|
71
|
+
"@gooddata/sdk-ui-vis-commons": "10.31.0-alpha.12",
|
|
72
|
+
"@gooddata/util": "10.31.0-alpha.12"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
"typescript": "5.3.3",
|
|
123
123
|
"vitest": "3.0.8",
|
|
124
124
|
"vitest-dom": "0.1.1",
|
|
125
|
-
"@gooddata/i18n-toolkit": "10.31.0-alpha.
|
|
126
|
-
"@gooddata/reference-workspace": "10.31.0-alpha.
|
|
127
|
-
"@gooddata/sdk-backend-mockingbird": "10.31.0-alpha.
|
|
125
|
+
"@gooddata/i18n-toolkit": "10.31.0-alpha.12",
|
|
126
|
+
"@gooddata/reference-workspace": "10.31.0-alpha.12",
|
|
127
|
+
"@gooddata/sdk-backend-mockingbird": "10.31.0-alpha.12"
|
|
128
128
|
},
|
|
129
129
|
"scripts": {
|
|
130
130
|
"clean": "rm -rf ci dist esm coverage *.log styles/css tsconfig.tsbuildinfo",
|