@gooddata/sdk-ui-dashboard 11.65.0-alpha.10 → 11.65.0-alpha.11
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 +1 -39
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts +36 -3
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +138 -26
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts +15 -4
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +55 -11
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts +6 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js +14 -6
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +21 -8
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +9 -3
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts +10 -0
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +79 -24
- package/esm/model/commandHandlers/filterContext/tabSync/writtenTargets.d.ts +17 -0
- package/esm/model/commandHandlers/filterContext/tabSync/writtenTargets.d.ts.map +1 -0
- package/esm/model/commandHandlers/filterContext/tabSync/writtenTargets.js +79 -0
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.js +7 -3
- package/esm/model/commandHandlers/tabs/switchDashboardTabHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/tabs/switchDashboardTabHandler.js +3 -1
- package/esm/model/commands/filters.d.ts +16 -1
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +2 -1
- package/esm/model/commands/parameters.d.ts +10 -1
- package/esm/model/commands/parameters.d.ts.map +1 -1
- package/esm/model/commands/parameters.js +2 -1
- package/esm/model/store/filterViews/filterViewsReducers.d.ts +8 -0
- package/esm/model/store/filterViews/filterViewsReducers.d.ts.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducers.js +11 -0
- package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts +6 -0
- package/esm/model/store/filterViews/filterViewsReducersSelectors.d.ts.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducersSelectors.js +6 -0
- package/esm/model/store/filterViews/filterViewsState.d.ts +6 -0
- package/esm/model/store/filterViews/filterViewsState.d.ts.map +1 -1
- package/esm/model/store/filterViews/index.d.ts +2 -0
- package/esm/model/store/filterViews/index.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.d.ts +7 -0
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +10 -0
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +24 -0
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +75 -0
- package/esm/model/store/tabs/index.d.ts +8 -0
- package/esm/model/store/tabs/index.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersReducers.d.ts +16 -0
- package/esm/model/store/tabs/parameters/parametersReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersReducers.js +25 -0
- package/esm/presentation/insightEditor/InsightEditorContent.d.ts.map +1 -1
- package/esm/presentation/insightEditor/InsightEditorContent.js +24 -3
- package/esm/sdk-ui-dashboard.d.ts +74 -2
- package/package.json +23 -23
- package/styles/css/main.css +1 -0
- package/styles/css/main.css.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/store/tabs/index.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,gBAAgB,8DAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/store/tabs/index.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,gBAAgB,8DAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAoB,CAAC"}
|
|
@@ -53,6 +53,18 @@ export declare function commitParameterWorkingValues(tab: ITabState): void;
|
|
|
53
53
|
* @internal
|
|
54
54
|
*/
|
|
55
55
|
export declare function clearParameterWorkingValues(tab: ITabState): void;
|
|
56
|
+
/**
|
|
57
|
+
* Parameters that a command wrote on one tab.
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export interface IWrittenTabParameters {
|
|
62
|
+
/**
|
|
63
|
+
* When omitted, the active tab.
|
|
64
|
+
*/
|
|
65
|
+
readonly tabLocalIdentifier?: string;
|
|
66
|
+
readonly refs: ObjRef[];
|
|
67
|
+
}
|
|
56
68
|
export declare const parametersReducers: {
|
|
57
69
|
addParameter: ParametersReducer<{
|
|
58
70
|
payload: IAddParameterPayload;
|
|
@@ -70,6 +82,10 @@ export declare const parametersReducers: {
|
|
|
70
82
|
payload: IRemoveParameterPayload;
|
|
71
83
|
type: string;
|
|
72
84
|
}>;
|
|
85
|
+
adoptRuntimeValuesAsResetBaseline: ParametersReducer<{
|
|
86
|
+
payload: IWrittenTabParameters[];
|
|
87
|
+
type: string;
|
|
88
|
+
}>;
|
|
73
89
|
};
|
|
74
90
|
export {};
|
|
75
91
|
//# sourceMappingURL=parametersReducers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parametersReducers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersReducers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAErF,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,cAAc,EAEtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAgC,MAAM,iBAAiB,CAAC;AAIhG,KAAK,iBAAiB,CAAC,CAAC,SAAS,MAAM,IAAI,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,gBAAgB,EAAE,cAAc,CAAC;CACpC;AAoBD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAgBD;;;;;;GAMG;AACH,MAAM,WAAW,gCAAgC;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,cAAc,CAAC;CACzB;AAkBD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,GAAG,EAAE,MAAM,CAAC;CACf;AAoCD;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAOjE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAIhE;AAED,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"parametersReducers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersReducers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAErF,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,cAAc,EAEtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAgC,MAAM,iBAAiB,CAAC;AAIhG,KAAK,iBAAiB,CAAC,CAAC,SAAS,MAAM,IAAI,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,gBAAgB,EAAE,cAAc,CAAC;CACpC;AAoBD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAgBD;;;;;;GAMG;AACH,MAAM,WAAW,gCAAgC;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,cAAc,CAAC;CACzB;AAkBD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,GAAG,EAAE,MAAM,CAAC;CACf;AAoCD;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAOjE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAIhE;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;CAC3B;AA+BD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;CAM9B,CAAC"}
|
|
@@ -89,9 +89,34 @@ export function clearParameterWorkingValues(tab) {
|
|
|
89
89
|
delete entry.workingOverride;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Makes the applied values of the written parameters the values a reset restores. A default filter
|
|
94
|
+
* view that initializes the shared state must not look like a change away from it. Parameters the view
|
|
95
|
+
* did not write keep their reset values.
|
|
96
|
+
*/
|
|
97
|
+
const adoptRuntimeValuesAsResetBaseline = (state, action) => {
|
|
98
|
+
const activeTabLocalIdentifier = getActiveTab(state)?.localIdentifier;
|
|
99
|
+
for (const tab of state.tabs ?? []) {
|
|
100
|
+
const writtenRefs = action.payload
|
|
101
|
+
.filter((written) => (written.tabLocalIdentifier ?? activeTabLocalIdentifier) === tab.localIdentifier)
|
|
102
|
+
.flatMap((written) => written.refs);
|
|
103
|
+
for (const entry of tab.parameters?.parameters ?? []) {
|
|
104
|
+
if (!writtenRefs.some((ref) => areObjRefsEqual(ref, entry.parameter.ref))) {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
if (entry.runtimeOverride === undefined) {
|
|
108
|
+
delete entry.parameter.value;
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
entry.parameter.value = entry.runtimeOverride;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
92
116
|
export const parametersReducers = {
|
|
93
117
|
addParameter,
|
|
94
118
|
setParameterRuntimeValues,
|
|
95
119
|
setParameterWorkingValue,
|
|
96
120
|
removeParameter,
|
|
121
|
+
adoptRuntimeValuesAsResetBaseline,
|
|
97
122
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightEditorContent.d.ts","sourceRoot":"","sources":["../../../src/presentation/insightEditor/InsightEditorContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAwC,MAAM,OAAO,CAAC;AAuCpF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAGnF,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAI1E,OAAO,0CAA0C,CAAC;AAElD,OAAO,4CAA4C,CAAC;AAEpD,OAAO,0CAA0C,CAAC;AAElD,OAAO,6CAA6C,CAAC;AAErD,OAAO,4DAA4D,CAAC;AAEpE,OAAO,oDAAoD,CAAC;AAE5D,OAAO,uDAAuD,CAAC;AAE/D,OAAO,6DAA6D,CAAC;AAErE,OAAO,0CAA0C,CAAC;AAElD,OAAO,0DAA0D,CAAC;AAElE,OAAO,0DAA0D,CAAC;AAElE,MAAM,WAAW,0BAA0B;IACvC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,cAAc,EAAE,gBAAgB,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;CACtE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"InsightEditorContent.d.ts","sourceRoot":"","sources":["../../../src/presentation/insightEditor/InsightEditorContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAwC,MAAM,OAAO,CAAC;AAuCpF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAGnF,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAI1E,OAAO,0CAA0C,CAAC;AAElD,OAAO,4CAA4C,CAAC;AAEpD,OAAO,0CAA0C,CAAC;AAElD,OAAO,6CAA6C,CAAC;AAErD,OAAO,4DAA4D,CAAC;AAEpE,OAAO,oDAAoD,CAAC;AAE5D,OAAO,uDAAuD,CAAC;AAE/D,OAAO,6DAA6D,CAAC;AAErE,OAAO,0CAA0C,CAAC;AAElD,OAAO,0DAA0D,CAAC;AAElE,OAAO,0DAA0D,CAAC;AAElE,MAAM,WAAW,0BAA0B;IACvC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,cAAc,EAAE,gBAAgB,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;CACtE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,0BAA0B,2CAgFnG"}
|
|
@@ -76,9 +76,30 @@ export function InsightEditorContent({ target, session, closeHandleRef }) {
|
|
|
76
76
|
const config = useMemo(() => ({ ...hostConfig, ...route.config }), [hostConfig, route.config]);
|
|
77
77
|
return (_jsx(AnalyticalDesigner, { backend: backend, workspace: workspace, insight: route.insight, config: config, permissions: permissions, theme: theme,
|
|
78
78
|
// The dashboard already resolved the theme of the workspace.
|
|
79
|
-
disableThemeLoading: true, cacheReset: cacheReset,
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
disableThemeLoading: true, cacheReset: cacheReset, onEvent: (event) => {
|
|
80
|
+
switch (event.type) {
|
|
81
|
+
case "visualizationSaved":
|
|
82
|
+
void session.save(event.data.insight.identifier);
|
|
83
|
+
break;
|
|
84
|
+
case "insightEditingCancelled":
|
|
85
|
+
session.cancel();
|
|
86
|
+
break;
|
|
87
|
+
case "insightOpened":
|
|
88
|
+
filterTransfer.onInsightOpened();
|
|
89
|
+
break;
|
|
90
|
+
case "insightRendered":
|
|
91
|
+
filterTransfer.onInsightRendered();
|
|
92
|
+
break;
|
|
93
|
+
case "appCommandFailed":
|
|
94
|
+
filterTransfer.onCommandFailed(event.data, event.contextId);
|
|
95
|
+
break;
|
|
96
|
+
case "attributeHierarchyModified":
|
|
97
|
+
eventDispatch(insightEditorCacheResetRequested("catalogs"));
|
|
98
|
+
dispatch(attributeHierarchyModified());
|
|
99
|
+
break;
|
|
100
|
+
default:
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
82
103
|
},
|
|
83
104
|
// A failed Analytical Designer never answers a command, so the overlay closes directly.
|
|
84
105
|
onError: () => setIsFailed(true), apiRef: apiRef }));
|
|
@@ -1615,7 +1615,7 @@ export declare function changeFilterContextSelection(filters: (IDashboardFilter
|
|
|
1615
1615
|
* TODO: next major release can remove ByParams suffix and use this implementation instead of original cmd creator + other creators can be rewritten to use params object
|
|
1616
1616
|
* https://gooddata.atlassian.net/browse/STL-700
|
|
1617
1617
|
*/
|
|
1618
|
-
export declare function changeFilterContextSelectionByParams({ filters, attributeFilterConfigs, resetOthers, correlationId, tabLocalIdentifier, matchByLocalIdentifier, restorePerTabOriginals, }: ChangeFilterContextSelectionParams): ChangeFilterContextSelection;
|
|
1618
|
+
export declare function changeFilterContextSelectionByParams({ filters, attributeFilterConfigs, resetOthers, correlationId, tabLocalIdentifier, matchByLocalIdentifier, restorePerTabOriginals, adoptAsOriginal, }: ChangeFilterContextSelectionParams): ChangeFilterContextSelection;
|
|
1619
1619
|
|
|
1620
1620
|
/**
|
|
1621
1621
|
* Params for {@link changeFilterContextSelectionByParams} command.
|
|
@@ -1646,6 +1646,13 @@ export declare type ChangeFilterContextSelectionParams = {
|
|
|
1646
1646
|
* @internal
|
|
1647
1647
|
*/
|
|
1648
1648
|
restorePerTabOriginals?: boolean;
|
|
1649
|
+
/**
|
|
1650
|
+
* When true, the applied values become the initial state a reset restores.
|
|
1651
|
+
* See {@link ChangeFilterContextSelectionPayload.adoptAsOriginal}.
|
|
1652
|
+
*
|
|
1653
|
+
* @internal
|
|
1654
|
+
*/
|
|
1655
|
+
adoptAsOriginal?: boolean;
|
|
1649
1656
|
};
|
|
1650
1657
|
|
|
1651
1658
|
/**
|
|
@@ -1697,6 +1704,14 @@ export declare type ChangeFilterContextSelectionPayload = {
|
|
|
1697
1704
|
* @internal
|
|
1698
1705
|
*/
|
|
1699
1706
|
restorePerTabOriginals?: boolean;
|
|
1707
|
+
/**
|
|
1708
|
+
* When true, the values this command writes become their initial values, on this tab and on every
|
|
1709
|
+
* tab they are synced to, so a reset restores them. Used when a default filter view initializes
|
|
1710
|
+
* the shared state.
|
|
1711
|
+
*
|
|
1712
|
+
* @internal
|
|
1713
|
+
*/
|
|
1714
|
+
adoptAsOriginal?: boolean;
|
|
1700
1715
|
};
|
|
1701
1716
|
|
|
1702
1717
|
/**
|
|
@@ -2035,7 +2050,7 @@ export declare function changeNestedLayoutSectionHeader(index: ILayoutSectionPat
|
|
|
2035
2050
|
* @param params - params for the command creator
|
|
2036
2051
|
* @internal
|
|
2037
2052
|
*/
|
|
2038
|
-
export declare function changeParameterValues({ parameters, tabLocalIdentifier, correlationId, restorePerTabOriginals, }: ChangeParameterValuesParams): IChangeParameterValues;
|
|
2053
|
+
export declare function changeParameterValues({ parameters, tabLocalIdentifier, correlationId, restorePerTabOriginals, adoptAsOriginal, }: ChangeParameterValuesParams): IChangeParameterValues;
|
|
2039
2054
|
|
|
2040
2055
|
/**
|
|
2041
2056
|
* Params for {@link changeParameterValues} command.
|
|
@@ -2053,6 +2068,10 @@ export declare type ChangeParameterValuesParams = {
|
|
|
2053
2068
|
* See {@link IChangeParameterValuesPayload.restorePerTabOriginals}.
|
|
2054
2069
|
*/
|
|
2055
2070
|
restorePerTabOriginals?: boolean;
|
|
2071
|
+
/**
|
|
2072
|
+
* See {@link IChangeParameterValuesPayload.adoptAsOriginal}.
|
|
2073
|
+
*/
|
|
2074
|
+
adoptAsOriginal?: boolean;
|
|
2056
2075
|
};
|
|
2057
2076
|
|
|
2058
2077
|
/**
|
|
@@ -9341,6 +9360,11 @@ export declare interface IChangeParameterValuesPayload {
|
|
|
9341
9360
|
* when filters are persisted across tabs.
|
|
9342
9361
|
*/
|
|
9343
9362
|
readonly restorePerTabOriginals?: boolean;
|
|
9363
|
+
/**
|
|
9364
|
+
* When true, the values this command writes become the values a reset restores, on this tab and
|
|
9365
|
+
* on every tab they are synced to. Used when a default filter view initializes the shared state.
|
|
9366
|
+
*/
|
|
9367
|
+
readonly adoptAsOriginal?: boolean;
|
|
9344
9368
|
}
|
|
9345
9369
|
|
|
9346
9370
|
/**
|
|
@@ -16781,6 +16805,12 @@ export declare interface IFilterViews {
|
|
|
16781
16805
|
export declare interface IFilterViewsState {
|
|
16782
16806
|
filterViews: IFilterViews[];
|
|
16783
16807
|
isLoading: boolean;
|
|
16808
|
+
/**
|
|
16809
|
+
* Tabs that have taken their default filter view in this session. While filters persist across tabs,
|
|
16810
|
+
* a tab takes its own default view only on its first visit.
|
|
16811
|
+
* @internal
|
|
16812
|
+
*/
|
|
16813
|
+
defaultFilterViewAppliedTabs?: string[];
|
|
16784
16814
|
}
|
|
16785
16815
|
|
|
16786
16816
|
/**
|
|
@@ -24949,6 +24979,40 @@ export declare interface IWrapInsightListItemWithDragProps {
|
|
|
24949
24979
|
onDragStart?: (item: DraggableItem) => void;
|
|
24950
24980
|
}
|
|
24951
24981
|
|
|
24982
|
+
/**
|
|
24983
|
+
* Filters that a command wrote on one tab.
|
|
24984
|
+
*
|
|
24985
|
+
* @internal
|
|
24986
|
+
*/
|
|
24987
|
+
export declare interface IWrittenTabFilters {
|
|
24988
|
+
/**
|
|
24989
|
+
* When omitted, the active tab.
|
|
24990
|
+
*/
|
|
24991
|
+
readonly tabLocalIdentifier?: string;
|
|
24992
|
+
/**
|
|
24993
|
+
* Attribute and measure value filters.
|
|
24994
|
+
*/
|
|
24995
|
+
readonly filterLocalIds: string[];
|
|
24996
|
+
readonly dateDataSets: ObjRef[];
|
|
24997
|
+
/**
|
|
24998
|
+
* An all time common date filter is stored as its absence, so it is written also when it is missing.
|
|
24999
|
+
*/
|
|
25000
|
+
readonly commonDateFilter: boolean;
|
|
25001
|
+
}
|
|
25002
|
+
|
|
25003
|
+
/**
|
|
25004
|
+
* Parameters that a command wrote on one tab.
|
|
25005
|
+
*
|
|
25006
|
+
* @internal
|
|
25007
|
+
*/
|
|
25008
|
+
export declare interface IWrittenTabParameters {
|
|
25009
|
+
/**
|
|
25010
|
+
* When omitted, the active tab.
|
|
25011
|
+
*/
|
|
25012
|
+
readonly tabLocalIdentifier?: string;
|
|
25013
|
+
readonly refs: ObjRef[];
|
|
25014
|
+
}
|
|
25015
|
+
|
|
24952
25016
|
/**
|
|
24953
25017
|
* @beta
|
|
24954
25018
|
*/
|
|
@@ -32238,6 +32302,10 @@ readonly changeMeasureValueFilterTitle: (state: WritableDraft<ITabsState>, actio
|
|
|
32238
32302
|
payload: IChangeMeasureValueFilterTitleReducerPayload;
|
|
32239
32303
|
type: string;
|
|
32240
32304
|
}) => void | ITabsState | WritableDraft<ITabsState>;
|
|
32305
|
+
readonly adoptAppliedFiltersAsOriginal: (state: WritableDraft<ITabsState>, action: {
|
|
32306
|
+
payload: IWrittenTabFilters[];
|
|
32307
|
+
type: string;
|
|
32308
|
+
}) => void | ITabsState | WritableDraft<ITabsState>;
|
|
32241
32309
|
readonly addParameter: (state: WritableDraft<ITabsState>, action: {
|
|
32242
32310
|
payload: IAddParameterPayload;
|
|
32243
32311
|
type: string;
|
|
@@ -32254,6 +32322,10 @@ readonly removeParameter: (state: WritableDraft<ITabsState>, action: {
|
|
|
32254
32322
|
payload: IRemoveParameterPayload;
|
|
32255
32323
|
type: string;
|
|
32256
32324
|
}) => void | ITabsState | WritableDraft<ITabsState>;
|
|
32325
|
+
readonly adoptRuntimeValuesAsResetBaseline: (state: WritableDraft<ITabsState>, action: {
|
|
32326
|
+
payload: IWrittenTabParameters[];
|
|
32327
|
+
type: string;
|
|
32328
|
+
}) => void | ITabsState | WritableDraft<ITabsState>;
|
|
32257
32329
|
readonly setTabs: TabsReducer< {
|
|
32258
32330
|
payload: {
|
|
32259
32331
|
tabs?: ITabState[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-dashboard",
|
|
3
|
-
"version": "11.65.0-alpha.
|
|
3
|
+
"version": "11.65.0-alpha.11",
|
|
4
4
|
"description": "GoodData SDK - Dashboard Component",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -60,22 +60,22 @@
|
|
|
60
60
|
"ts-invariant": "0.10.3",
|
|
61
61
|
"tslib": "2.8.1",
|
|
62
62
|
"uuid": "11.1.1",
|
|
63
|
-
"@gooddata/sdk-backend-base": "11.65.0-alpha.
|
|
64
|
-
"@gooddata/sdk-backend-spi": "11.65.0-alpha.
|
|
65
|
-
"@gooddata/sdk-embedding": "11.65.0-alpha.
|
|
66
|
-
"@gooddata/sdk-model": "11.65.0-alpha.
|
|
67
|
-
"@gooddata/sdk-ui": "11.65.0-alpha.
|
|
68
|
-
"@gooddata/sdk-ui-analytical-designer": "11.65.0-alpha.
|
|
69
|
-
"@gooddata/sdk-ui-charts": "11.65.0-alpha.
|
|
70
|
-
"@gooddata/sdk-ui-ext": "11.65.0-alpha.
|
|
71
|
-
"@gooddata/sdk-ui-
|
|
72
|
-
"@gooddata/sdk-ui-
|
|
73
|
-
"@gooddata/sdk-ui-kit": "11.65.0-alpha.
|
|
74
|
-
"@gooddata/sdk-ui-
|
|
75
|
-
"@gooddata/sdk-ui-
|
|
76
|
-
"@gooddata/sdk-ui-
|
|
77
|
-
"@gooddata/sdk-ui-
|
|
78
|
-
"@gooddata/util": "11.65.0-alpha.
|
|
63
|
+
"@gooddata/sdk-backend-base": "11.65.0-alpha.11",
|
|
64
|
+
"@gooddata/sdk-backend-spi": "11.65.0-alpha.11",
|
|
65
|
+
"@gooddata/sdk-embedding": "11.65.0-alpha.11",
|
|
66
|
+
"@gooddata/sdk-model": "11.65.0-alpha.11",
|
|
67
|
+
"@gooddata/sdk-ui": "11.65.0-alpha.11",
|
|
68
|
+
"@gooddata/sdk-ui-analytical-designer": "11.65.0-alpha.11",
|
|
69
|
+
"@gooddata/sdk-ui-charts": "11.65.0-alpha.11",
|
|
70
|
+
"@gooddata/sdk-ui-ext": "11.65.0-alpha.11",
|
|
71
|
+
"@gooddata/sdk-ui-filters": "11.65.0-alpha.11",
|
|
72
|
+
"@gooddata/sdk-ui-geo": "11.65.0-alpha.11",
|
|
73
|
+
"@gooddata/sdk-ui-kit": "11.65.0-alpha.11",
|
|
74
|
+
"@gooddata/sdk-ui-semantic-search": "11.65.0-alpha.11",
|
|
75
|
+
"@gooddata/sdk-ui-pivot": "11.65.0-alpha.11",
|
|
76
|
+
"@gooddata/sdk-ui-vis-commons": "11.65.0-alpha.11",
|
|
77
|
+
"@gooddata/sdk-ui-theme-provider": "11.65.0-alpha.11",
|
|
78
|
+
"@gooddata/util": "11.65.0-alpha.11"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@microsoft/api-documenter": "7.30.16",
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"svgo": "2.8.4",
|
|
118
118
|
"typescript": "7.0.2",
|
|
119
119
|
"vitest": "5.0.4",
|
|
120
|
-
"@gooddata/
|
|
121
|
-
"@gooddata/
|
|
122
|
-
"@gooddata/oxlint-config": "11.65.0-alpha.
|
|
123
|
-
"@gooddata/reference-workspace": "11.65.0-alpha.
|
|
124
|
-
"@gooddata/sdk-backend-mockingbird": "11.65.0-alpha.
|
|
125
|
-
"@gooddata/stylelint-config": "11.65.0-alpha.
|
|
120
|
+
"@gooddata/i18n-toolkit": "11.65.0-alpha.11",
|
|
121
|
+
"@gooddata/eslint-config": "11.65.0-alpha.11",
|
|
122
|
+
"@gooddata/oxlint-config": "11.65.0-alpha.11",
|
|
123
|
+
"@gooddata/reference-workspace": "11.65.0-alpha.11",
|
|
124
|
+
"@gooddata/sdk-backend-mockingbird": "11.65.0-alpha.11",
|
|
125
|
+
"@gooddata/stylelint-config": "11.65.0-alpha.11"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
128
|
"react": "^18.0.0 || ^19.0.0",
|
package/styles/css/main.css
CHANGED
|
@@ -288,6 +288,7 @@
|
|
|
288
288
|
--gd-spacing-14px: 14px;
|
|
289
289
|
--gd-spacing-16px: 16px;
|
|
290
290
|
--gd-spacing-34px: 34px;
|
|
291
|
+
--gd-spacing-30px: 30px;
|
|
291
292
|
--gd-transition-all: all 0.25s ease-in-out;
|
|
292
293
|
--gd-geo-multi-layer-legend__section-header-height: 34px;
|
|
293
294
|
--gd-geo-multi-layer-legend__toggle-duration: 0.2s;
|