@gooddata/sdk-ui-dashboard 11.57.0-alpha.6 → 11.57.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.
@@ -1,4 +1,4 @@
1
- export declare const LIB_VERSION = "11.57.0-alpha.6";
1
+ export declare const LIB_VERSION = "11.57.0";
2
2
  export declare const LIB_DESCRIPTION = "GoodData SDK - Dashboard Component";
3
3
  export declare const LIB_NAME = "@gooddata/sdk-ui-dashboard";
4
4
  //# sourceMappingURL=__version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"__version.d.ts","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAE7C,eAAO,MAAM,eAAe,uCAAuC,CAAC;AAEpE,eAAO,MAAM,QAAQ,+BAA+B,CAAC"}
1
+ {"version":3,"file":"__version.d.ts","sourceRoot":"","sources":["../src/__version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,eAAO,MAAM,eAAe,uCAAuC,CAAC;AAEpE,eAAO,MAAM,QAAQ,+BAA+B,CAAC"}
package/esm/__version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // (C) 2021 GoodData Corporation
2
2
  // DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
3
- export const LIB_VERSION = "11.57.0-alpha.6";
3
+ export const LIB_VERSION = "11.57.0";
4
4
  export const LIB_DESCRIPTION = "GoodData SDK - Dashboard Component";
5
5
  export const LIB_NAME = "@gooddata/sdk-ui-dashboard";
@@ -1,4 +1,9 @@
1
1
  import { type IInsight, type IInsightWidget } from "@gooddata/sdk-model";
2
2
  import { type IPushData } from "@gooddata/sdk-ui";
3
+ /**
4
+ * Exported for direct unit testing - the surrounding hook needs a full dashboard store to render.
5
+ * @internal
6
+ */
7
+ export declare function isSupportedWidgetProperties(properties: IPushData["properties"], isInEditMode: boolean, enableNewPivotTable: boolean): boolean;
3
8
  export declare function useHandlePropertiesPushData(widget: IInsightWidget, insight: IInsight): (data: IPushData) => void;
4
9
  //# sourceMappingURL=useHandlePropertiesPushData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useHandlePropertiesPushData.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/Insight/useHandlePropertiesPushData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAuC,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAiClD,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,UAWtE,SAAS,KAAG,IAAI,CAW9B"}
1
+ {"version":3,"file":"useHandlePropertiesPushData.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/Insight/useHandlePropertiesPushData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAuC,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAUlD;;;GAGG;AACH,wBAAgB,2BAA2B,CACvC,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,EACnC,YAAY,EAAE,OAAO,EACrB,mBAAmB,EAAE,OAAO,GAC7B,OAAO,CAmBT;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,UAWtE,SAAS,KAAG,IAAI,CAW9B"}
@@ -5,14 +5,20 @@ import { changeInsightWidgetVisProperties } from "../../../../../model/commands/
5
5
  import { useDashboardDispatch, useDashboardSelector, } from "../../../../../model/react/DashboardStoreProvider.js";
6
6
  import { selectSettings } from "../../../../../model/store/config/configSelectors.js";
7
7
  import { selectIsInEditMode } from "../../../../../model/store/renderMode/renderModeSelectors.js";
8
- function isSupportedWidgetProperties(properties, isInEditMode, enableNewPivotTable) {
9
- // currently we only support the columnWidths and textWrapping for pivot tables
8
+ /**
9
+ * Exported for direct unit testing - the surrounding hook needs a full dashboard store to render.
10
+ * @internal
11
+ */
12
+ export function isSupportedWidgetProperties(properties, isInEditMode, enableNewPivotTable) {
13
+ // currently we only support the columnWidths, textWrapping and totals (rename/reset of an
14
+ // existing total's alias - see PluggablePivotTableNext.persistTotalsOverride) for pivot tables
10
15
  // this should be ideally driven by the PlugVis API, not hardcoded here
11
16
  const controls = properties?.controls;
12
17
  const hasColumnWidths = !!controls?.columnWidths;
13
18
  const hasTextWrapping = !!controls?.textWrapping;
19
+ const hasTotals = !!controls?.totals;
14
20
  if (enableNewPivotTable) {
15
- return hasColumnWidths || hasTextWrapping;
21
+ return hasColumnWidths || hasTextWrapping || hasTotals;
16
22
  }
17
23
  if (isInEditMode) {
18
24
  return hasColumnWidths;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "11.57.0-alpha.6",
3
+ "version": "11.57.0",
4
4
  "description": "GoodData SDK - Dashboard Component",
5
5
  "license": "LicenseRef-LICENSE",
6
6
  "author": "GoodData Corporation",
@@ -60,20 +60,20 @@
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.57.0-alpha.6",
64
- "@gooddata/sdk-backend-spi": "11.57.0-alpha.6",
65
- "@gooddata/sdk-model": "11.57.0-alpha.6",
66
- "@gooddata/sdk-ui": "11.57.0-alpha.6",
67
- "@gooddata/sdk-ui-charts": "11.57.0-alpha.6",
68
- "@gooddata/sdk-ui-ext": "11.57.0-alpha.6",
69
- "@gooddata/sdk-ui-filters": "11.57.0-alpha.6",
70
- "@gooddata/sdk-ui-geo": "11.57.0-alpha.6",
71
- "@gooddata/sdk-ui-kit": "11.57.0-alpha.6",
72
- "@gooddata/sdk-ui-pivot": "11.57.0-alpha.6",
73
- "@gooddata/sdk-ui-semantic-search": "11.57.0-alpha.6",
74
- "@gooddata/sdk-ui-theme-provider": "11.57.0-alpha.6",
75
- "@gooddata/sdk-ui-vis-commons": "11.57.0-alpha.6",
76
- "@gooddata/util": "11.57.0-alpha.6"
63
+ "@gooddata/sdk-backend-spi": "11.57.0",
64
+ "@gooddata/sdk-backend-base": "11.57.0",
65
+ "@gooddata/sdk-ui-charts": "11.57.0",
66
+ "@gooddata/sdk-ui": "11.57.0",
67
+ "@gooddata/sdk-model": "11.57.0",
68
+ "@gooddata/sdk-ui-ext": "11.57.0",
69
+ "@gooddata/sdk-ui-filters": "11.57.0",
70
+ "@gooddata/sdk-ui-kit": "11.57.0",
71
+ "@gooddata/sdk-ui-geo": "11.57.0",
72
+ "@gooddata/sdk-ui-pivot": "11.57.0",
73
+ "@gooddata/sdk-ui-theme-provider": "11.57.0",
74
+ "@gooddata/sdk-ui-semantic-search": "11.57.0",
75
+ "@gooddata/sdk-ui-vis-commons": "11.57.0",
76
+ "@gooddata/util": "11.57.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@microsoft/api-documenter": "7.30.10",
@@ -115,12 +115,12 @@
115
115
  "typescript": "7.0.2",
116
116
  "vitest": "4.1.8",
117
117
  "vitest-dom": "0.1.1",
118
- "@gooddata/eslint-config": "11.57.0-alpha.6",
119
- "@gooddata/i18n-toolkit": "11.57.0-alpha.6",
120
- "@gooddata/oxlint-config": "11.57.0-alpha.6",
121
- "@gooddata/reference-workspace": "11.57.0-alpha.6",
122
- "@gooddata/sdk-backend-mockingbird": "11.57.0-alpha.6",
123
- "@gooddata/stylelint-config": "11.57.0-alpha.6"
118
+ "@gooddata/eslint-config": "11.57.0",
119
+ "@gooddata/oxlint-config": "11.57.0",
120
+ "@gooddata/i18n-toolkit": "11.57.0",
121
+ "@gooddata/reference-workspace": "11.57.0",
122
+ "@gooddata/sdk-backend-mockingbird": "11.57.0",
123
+ "@gooddata/stylelint-config": "11.57.0"
124
124
  },
125
125
  "peerDependencies": {
126
126
  "react": "^18.0.0 || ^19.0.0",