@gooddata/sdk-ui 11.12.0-alpha.1 → 11.12.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @internal
|
|
3
3
|
*/
|
|
4
|
-
export type IDashboardUrlBuilder = (workspaceId?: string, dashboardId?: string) => string | undefined;
|
|
4
|
+
export type IDashboardUrlBuilder = (workspaceId?: string, dashboardId?: string, tabId?: string) => string | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
|
-
export type IWidgetUrlBuilder = (workspaceId?: string, dashboardId?: string, widgetId?: string) => string | undefined;
|
|
8
|
+
export type IWidgetUrlBuilder = (workspaceId?: string, dashboardId?: string, widgetId?: string, tabId?: string) => string | undefined;
|
|
9
9
|
/**
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardUrl.d.ts","sourceRoot":"","sources":["../../../src/base/url/dashboardUrl.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,
|
|
1
|
+
{"version":3,"file":"dashboardUrl.d.ts","sourceRoot":"","sources":["../../../src/base/url/dashboardUrl.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAC/B,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,KACb,MAAM,GAAG,SAAS,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAC5B,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,MAAM,KACb,MAAM,GAAG,SAAS,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAChC,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,EACpB,YAAY,CAAC,EAAE,MAAM,KACpB,MAAM,GAAG,SAAS,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,oBAU/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,iBAY5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,qBAOhC,CAAC"}
|
|
@@ -2,20 +2,26 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
-
export const buildDashboardUrl = (workspaceId, dashboardId) => {
|
|
5
|
+
export const buildDashboardUrl = (workspaceId, dashboardId, tabId) => {
|
|
6
6
|
if (!workspaceId || !dashboardId) {
|
|
7
7
|
return undefined;
|
|
8
8
|
}
|
|
9
|
+
if (tabId) {
|
|
10
|
+
return `/dashboards/#/workspace/${workspaceId}/dashboard/${dashboardId}/tab/${tabId}`;
|
|
11
|
+
}
|
|
9
12
|
return `/dashboards/#/workspace/${workspaceId}/dashboard/${dashboardId}`;
|
|
10
13
|
};
|
|
11
14
|
/**
|
|
12
15
|
* @internal
|
|
13
16
|
*/
|
|
14
|
-
export const buildWidgetUrl = (workspaceId, dashboardId, widgetId) => {
|
|
17
|
+
export const buildWidgetUrl = (workspaceId, dashboardId, widgetId, tabId) => {
|
|
15
18
|
const dashboardUrl = buildDashboardUrl(workspaceId, dashboardId);
|
|
16
19
|
if (!dashboardUrl || !widgetId) {
|
|
17
20
|
return undefined;
|
|
18
21
|
}
|
|
22
|
+
if (tabId) {
|
|
23
|
+
return `${dashboardUrl}/tab/${tabId}/?widgetId=${widgetId}`;
|
|
24
|
+
}
|
|
19
25
|
return `${dashboardUrl}?widgetId=${widgetId}`;
|
|
20
26
|
};
|
|
21
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardUrl.js","sourceRoot":"","sources":["../../../src/base/url/dashboardUrl.ts"],"names":[],"mappings":"AAAA,gCAAgC;
|
|
1
|
+
{"version":3,"file":"dashboardUrl.js","sourceRoot":"","sources":["../../../src/base/url/dashboardUrl.ts"],"names":[],"mappings":"AAAA,gCAAgC;AA8BhC;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAyB,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE;IACvF,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,2BAA2B,WAAW,cAAc,WAAW,QAAQ,KAAK,EAAE,CAAC;IAC1F,CAAC;IAED,OAAO,2BAA2B,WAAW,cAAc,WAAW,EAAE,CAAC;AAC7E,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAsB,CAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAC3F,MAAM,YAAY,GAAG,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAEjE,IAAI,CAAC,YAAY,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC7B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,GAAG,YAAY,QAAQ,KAAK,cAAc,QAAQ,EAAE,CAAC;IAChE,CAAC;IAED,OAAO,GAAG,YAAY,aAAa,QAAQ,EAAE,CAAC;AAClD,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA0B,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE;IAChG,MAAM,YAAY,GAAG,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAEjE,IAAI,CAAC,YAAY,IAAI,CAAC,YAAY,EAAE,CAAC;QACjC,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,OAAO,GAAG,YAAY,iBAAiB,YAAY,4BAA4B,CAAC;AACpF,CAAC,CAAC"}
|
package/esm/sdk-ui.d.ts
CHANGED
|
@@ -1648,7 +1648,7 @@ export declare interface ICorrelationProviderProps {
|
|
|
1648
1648
|
/**
|
|
1649
1649
|
* @internal
|
|
1650
1650
|
*/
|
|
1651
|
-
export declare type IDashboardUrlBuilder = (workspaceId?: string, dashboardId?: string) => string | undefined;
|
|
1651
|
+
export declare type IDashboardUrlBuilder = (workspaceId?: string, dashboardId?: string, tabId?: string) => string | undefined;
|
|
1652
1652
|
|
|
1653
1653
|
/**
|
|
1654
1654
|
* Defines methods to access data in the data view.
|
|
@@ -4851,7 +4851,7 @@ export declare interface IVisualizationProps {
|
|
|
4851
4851
|
/**
|
|
4852
4852
|
* @internal
|
|
4853
4853
|
*/
|
|
4854
|
-
export declare type IWidgetUrlBuilder = (workspaceId?: string, dashboardId?: string, widgetId?: string) => string | undefined;
|
|
4854
|
+
export declare type IWidgetUrlBuilder = (workspaceId?: string, dashboardId?: string, widgetId?: string, tabId?: string) => string | undefined;
|
|
4855
4855
|
|
|
4856
4856
|
/**
|
|
4857
4857
|
* Configuration for the withExecution HOC. All configuration parameters can be either actual parameter values
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui",
|
|
3
|
-
"version": "11.12.0-alpha.
|
|
3
|
+
"version": "11.12.0-alpha.2",
|
|
4
4
|
"description": "GoodData.UI SDK - Core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"ts-invariant": "^0.7.5",
|
|
43
43
|
"tslib": "2.8.1",
|
|
44
44
|
"uuid": "^11.1.0",
|
|
45
|
-
"@gooddata/sdk-backend-spi": "11.12.0-alpha.
|
|
46
|
-
"@gooddata/sdk-model": "11.12.0-alpha.
|
|
47
|
-
"@gooddata/util": "11.12.0-alpha.
|
|
45
|
+
"@gooddata/sdk-backend-spi": "11.12.0-alpha.2",
|
|
46
|
+
"@gooddata/sdk-model": "11.12.0-alpha.2",
|
|
47
|
+
"@gooddata/util": "11.12.0-alpha.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@gooddata/stylelint-config": "^5.0.0",
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
"typescript": "5.8.3",
|
|
89
89
|
"vitest": "3.2.4",
|
|
90
90
|
"vitest-dom": "0.1.1",
|
|
91
|
-
"@gooddata/
|
|
92
|
-
"@gooddata/
|
|
93
|
-
"@gooddata/
|
|
94
|
-
"@gooddata/
|
|
95
|
-
"@gooddata/sdk-backend-mockingbird": "11.12.0-alpha.
|
|
91
|
+
"@gooddata/eslint-config": "11.12.0-alpha.2",
|
|
92
|
+
"@gooddata/i18n-toolkit": "11.12.0-alpha.2",
|
|
93
|
+
"@gooddata/reference-workspace": "11.12.0-alpha.2",
|
|
94
|
+
"@gooddata/sdk-backend-base": "11.12.0-alpha.2",
|
|
95
|
+
"@gooddata/sdk-backend-mockingbird": "11.12.0-alpha.2"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"react": "^18.0.0 || ^19.0.0",
|