@gooddata/sdk-ui-dashboard 11.54.0-alpha.3 → 11.54.0-alpha.4

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.54.0-alpha.3";
1
+ export declare const LIB_VERSION = "11.54.0-alpha.4";
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
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.54.0-alpha.3";
3
+ export const LIB_VERSION = "11.54.0-alpha.4";
4
4
  export const LIB_DESCRIPTION = "GoodData SDK - Dashboard Component";
5
5
  export const LIB_NAME = "@gooddata/sdk-ui-dashboard";
@@ -0,0 +1,45 @@
1
+ import { type ValueOrUpdateCallback } from "@gooddata/sdk-backend-base";
2
+ import { type IDashboardLayoutSize } from "@gooddata/sdk-model";
3
+ import { type IDashboardLayoutBuilder, type IDashboardLayoutItemBuilder, type IDashboardLayoutSectionBuilder } from "./interfaces.js";
4
+ export declare const defaultItemXlSize: IDashboardLayoutSize;
5
+ export declare const createValueOrUpdateCallbackTestCases: <TValue>(value: TValue) => [string, ValueOrUpdateCallback<TValue | undefined>][];
6
+ export declare const createEmptyDashboardLayoutBuilder: () => IDashboardLayoutBuilder<any>;
7
+ export declare const createEmptyDashboardLayoutSectionBuilder: () => IDashboardLayoutSectionBuilder<any>;
8
+ export declare const createEmptyDashboardLayoutItemBuilder: () => IDashboardLayoutItemBuilder<any>;
9
+ export declare const widgetWithNestedLayout: {
10
+ type: string;
11
+ sections: {
12
+ type: string;
13
+ header: {};
14
+ items: {
15
+ type: string;
16
+ widget: {
17
+ type: string;
18
+ insight: {
19
+ identifier: {
20
+ id: string;
21
+ type: string;
22
+ };
23
+ };
24
+ ignoreDashboardFilters: never[];
25
+ drills: never[];
26
+ title: string;
27
+ description: string;
28
+ localIdentifier: string;
29
+ };
30
+ size: {
31
+ xl: {
32
+ gridHeight: number;
33
+ gridWidth: number;
34
+ };
35
+ };
36
+ }[];
37
+ }[];
38
+ configuration: {
39
+ sections: {
40
+ enableHeader: boolean;
41
+ };
42
+ };
43
+ localIdentifier: string;
44
+ };
45
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/_staging/dashboard/flexibleLayout/builder/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACtC,MAAM,iBAAiB,CAAC;AAKzB,eAAO,MAAM,iBAAiB,EAAE,oBAA2D,CAAC;AAE5F,eAAO,MAAM,oCAAoC,GAAI,MAAM,yEAO1D,CAAC;AAEF,eAAO,MAAM,iCAAiC,oCACL,CAAC;AAE1C,eAAO,MAAM,wCAAwC,2CACwC,CAAC;AAE9F,eAAO,MAAM,qCAAqC,wCAI7C,CAAC;AAEN,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuClC,CAAC"}
@@ -0,0 +1,54 @@
1
+ // (C) 2019-2026 GoodData Corporation
2
+ import { DashboardLayoutItemBuilder } from "./item.js";
3
+ import { DashboardLayoutBuilder } from "./layout.js";
4
+ import { DashboardLayoutSectionBuilder } from "./section.js";
5
+ export const defaultItemXlSize = { gridWidth: 12, heightAsRatio: 50 };
6
+ export const createValueOrUpdateCallbackTestCases = (value) => [
7
+ ["by value", value],
8
+ ["by callback", () => value],
9
+ ["by undefined", undefined],
10
+ ["by callback returning undefined", () => undefined],
11
+ ];
12
+ export const createEmptyDashboardLayoutBuilder = () => DashboardLayoutBuilder.forNewLayout();
13
+ export const createEmptyDashboardLayoutSectionBuilder = () => DashboardLayoutSectionBuilder.for(createEmptyDashboardLayoutBuilder().createSection(), 0);
14
+ export const createEmptyDashboardLayoutItemBuilder = () => DashboardLayoutItemBuilder.for(createEmptyDashboardLayoutSectionBuilder().createItem(defaultItemXlSize), 0);
15
+ export const widgetWithNestedLayout = {
16
+ type: "IDashboardLayout",
17
+ sections: [
18
+ {
19
+ type: "IDashboardLayoutSection",
20
+ header: {},
21
+ items: [
22
+ {
23
+ type: "IDashboardLayoutItem",
24
+ widget: {
25
+ type: "insight",
26
+ insight: {
27
+ identifier: {
28
+ id: "5cd25094-6327-4c9c-bf33-ea640062f7e2",
29
+ type: "visualizationObject",
30
+ },
31
+ },
32
+ ignoreDashboardFilters: [],
33
+ drills: [],
34
+ title: "01",
35
+ description: "",
36
+ localIdentifier: "f6fc591e-0d9b-466d-a81b-d293a4ae401d",
37
+ },
38
+ size: {
39
+ xl: {
40
+ gridHeight: 8,
41
+ gridWidth: 2,
42
+ },
43
+ },
44
+ },
45
+ ],
46
+ },
47
+ ],
48
+ configuration: {
49
+ sections: {
50
+ enableHeader: false,
51
+ },
52
+ },
53
+ localIdentifier: "3aef8337-6f37-43ff-ae4b-dcad3f42a8fe",
54
+ };
@@ -0,0 +1,10 @@
1
+ import { type IAbsoluteDateFilterForm, type IAbsoluteDateFilterPreset, type IAllTimeDateFilterOption, type IEmptyValuesDateFilterOption, type IRelativeDateFilterForm, type IRelativeDateFilterPreset } from "@gooddata/sdk-model";
2
+ export declare const allTime: IAllTimeDateFilterOption;
3
+ export declare const year2019: IAbsoluteDateFilterPreset;
4
+ export declare const absoluteForm: IAbsoluteDateFilterForm;
5
+ export declare const lastMonth: IRelativeDateFilterPreset;
6
+ export declare const lastYear: IRelativeDateFilterPreset;
7
+ export declare const last30days: IRelativeDateFilterPreset;
8
+ export declare const relativeForm: IRelativeDateFilterForm;
9
+ export declare const emptyValues: IEmptyValuesDateFilterOption;
10
+ //# sourceMappingURL=fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/_staging/dateFilterConfig/fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EACjC,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,OAAO,EAAE,wBAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,yBAOtB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,uBAK1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,yBAQvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,yBAQtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,yBAQxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,uBAM1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,4BAIzB,CAAC"}
@@ -0,0 +1,60 @@
1
+ // (C) 2019-2026 GoodData Corporation
2
+ export const allTime = {
3
+ type: "allTime",
4
+ localIdentifier: "ALL_TIME",
5
+ name: "",
6
+ visible: true,
7
+ };
8
+ export const year2019 = {
9
+ type: "absolutePreset",
10
+ from: "2019-01-01",
11
+ localIdentifier: "YEAR_2019",
12
+ name: "",
13
+ to: "2019-12-31",
14
+ visible: true,
15
+ };
16
+ export const absoluteForm = {
17
+ type: "absoluteForm",
18
+ localIdentifier: "ABSOLUTE_FORM",
19
+ name: "",
20
+ visible: true,
21
+ };
22
+ export const lastMonth = {
23
+ type: "relativePreset",
24
+ from: -1,
25
+ to: -1,
26
+ granularity: "GDC.time.month",
27
+ localIdentifier: "LAST_MONTH",
28
+ name: "",
29
+ visible: true,
30
+ };
31
+ export const lastYear = {
32
+ type: "relativePreset",
33
+ from: -1,
34
+ to: -1,
35
+ granularity: "GDC.time.year",
36
+ localIdentifier: "LAST_YEAR",
37
+ name: "",
38
+ visible: true,
39
+ };
40
+ export const last30days = {
41
+ from: -29,
42
+ to: 0,
43
+ granularity: "GDC.time.date",
44
+ type: "relativePreset",
45
+ localIdentifier: "LAST_30_DAYS",
46
+ name: "",
47
+ visible: true,
48
+ };
49
+ export const relativeForm = {
50
+ type: "relativeForm",
51
+ availableGranularities: ["GDC.time.year", "GDC.time.month"],
52
+ localIdentifier: "RELATIVE_FORM",
53
+ name: "",
54
+ visible: true,
55
+ };
56
+ export const emptyValues = {
57
+ type: "emptyValues",
58
+ localIdentifier: "EMPTY_VALUES",
59
+ visible: true,
60
+ };
@@ -0,0 +1,16 @@
1
+ import { type IDashboardPluginContract_V1 } from "../../plugin.js";
2
+ import { type IDashboardCustomizationLogger } from "../customizationLogging.js";
3
+ export declare class TestingDashboardCustomizationLogger implements IDashboardCustomizationLogger {
4
+ private readonly setCurrentPluginImpl;
5
+ private readonly logImpl;
6
+ private readonly debugImpl;
7
+ private readonly warnImpl;
8
+ private readonly errorImpl;
9
+ constructor(functions: Partial<IDashboardCustomizationLogger>);
10
+ setCurrentPlugin(plugin: IDashboardPluginContract_V1 | undefined): void;
11
+ log(message: string, ...optionalParams: any[]): void;
12
+ debug(message: string, ...optionalParams: any[]): void;
13
+ warn(message: string, ...optionalParams: any[]): void;
14
+ error(message: string, ...optionalParams: any[]): void;
15
+ }
16
+ //# sourceMappingURL=TestingDashboardCustomizationLogger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestingDashboardCustomizationLogger.d.ts","sourceRoot":"","sources":["../../../../src/plugins/customizationApis/fixtures/TestingDashboardCustomizationLogger.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAEhF,qBAAa,mCAAoC,YAAW,6BAA6B;IACrF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgE;IACrG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmD;IAC3E,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqD;IAC/E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoD;IAC7E,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqD;IAE/E,YAAY,SAAS,EAAE,OAAO,CAAC,6BAA6B,CAAC,EAM5D;IAED,gBAAgB,CAAC,MAAM,EAAE,2BAA2B,GAAG,SAAS,GAAG,IAAI,CAEtE;IACD,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAEnD;IACD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAErD;IACD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAEpD;IACD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAErD;CACJ"}
@@ -0,0 +1,30 @@
1
+ // (C) 2022-2026 GoodData Corporation
2
+ export class TestingDashboardCustomizationLogger {
3
+ setCurrentPluginImpl;
4
+ logImpl;
5
+ debugImpl;
6
+ warnImpl;
7
+ errorImpl;
8
+ constructor(functions) {
9
+ this.setCurrentPluginImpl = functions.setCurrentPlugin;
10
+ this.logImpl = functions.log;
11
+ this.debugImpl = functions.debug;
12
+ this.warnImpl = functions.warn;
13
+ this.errorImpl = functions.error;
14
+ }
15
+ setCurrentPlugin(plugin) {
16
+ this.setCurrentPluginImpl?.(plugin);
17
+ }
18
+ log(message, ...optionalParams) {
19
+ this.logImpl?.(message, optionalParams);
20
+ }
21
+ debug(message, ...optionalParams) {
22
+ this.debugImpl?.(message, optionalParams);
23
+ }
24
+ warn(message, ...optionalParams) {
25
+ this.warnImpl?.(message, optionalParams);
26
+ }
27
+ error(message, ...optionalParams) {
28
+ this.errorImpl?.(message, optionalParams);
29
+ }
30
+ }
@@ -0,0 +1,3 @@
1
+ import { type CustomizerMutationsContext } from "./types.js";
2
+ export declare const EMPTY_MUTATIONS: CustomizerMutationsContext;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAE7D,eAAO,MAAM,eAAe,EAAE,0BAe7B,CAAC"}
@@ -0,0 +1,17 @@
1
+ // (C) 2025-2026 GoodData Corporation
2
+ export const EMPTY_MUTATIONS = {
3
+ kpi: [],
4
+ insight: [],
5
+ filterBar: [],
6
+ topBar: [],
7
+ layout: [],
8
+ richText: [],
9
+ title: [],
10
+ loading: [],
11
+ visualizationSwitcher: [],
12
+ visualizationSwitcherToolbar: [],
13
+ attributeFilter: [],
14
+ dashboardContent: [],
15
+ exports: [],
16
+ layouts: {},
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "11.54.0-alpha.3",
3
+ "version": "11.54.0-alpha.4",
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.54.0-alpha.3",
64
- "@gooddata/sdk-backend-spi": "11.54.0-alpha.3",
65
- "@gooddata/sdk-model": "11.54.0-alpha.3",
66
- "@gooddata/sdk-ui-charts": "11.54.0-alpha.3",
67
- "@gooddata/sdk-ui": "11.54.0-alpha.3",
68
- "@gooddata/sdk-ui-ext": "11.54.0-alpha.3",
69
- "@gooddata/sdk-ui-geo": "11.54.0-alpha.3",
70
- "@gooddata/sdk-ui-pivot": "11.54.0-alpha.3",
71
- "@gooddata/sdk-ui-kit": "11.54.0-alpha.3",
72
- "@gooddata/sdk-ui-semantic-search": "11.54.0-alpha.3",
73
- "@gooddata/sdk-ui-filters": "11.54.0-alpha.3",
74
- "@gooddata/sdk-ui-theme-provider": "11.54.0-alpha.3",
75
- "@gooddata/sdk-ui-vis-commons": "11.54.0-alpha.3",
76
- "@gooddata/util": "11.54.0-alpha.3"
63
+ "@gooddata/sdk-backend-base": "11.54.0-alpha.4",
64
+ "@gooddata/sdk-ui-charts": "11.54.0-alpha.4",
65
+ "@gooddata/sdk-ui": "11.54.0-alpha.4",
66
+ "@gooddata/sdk-ui-ext": "11.54.0-alpha.4",
67
+ "@gooddata/sdk-model": "11.54.0-alpha.4",
68
+ "@gooddata/sdk-ui-filters": "11.54.0-alpha.4",
69
+ "@gooddata/sdk-backend-spi": "11.54.0-alpha.4",
70
+ "@gooddata/sdk-ui-geo": "11.54.0-alpha.4",
71
+ "@gooddata/sdk-ui-kit": "11.54.0-alpha.4",
72
+ "@gooddata/sdk-ui-semantic-search": "11.54.0-alpha.4",
73
+ "@gooddata/sdk-ui-pivot": "11.54.0-alpha.4",
74
+ "@gooddata/sdk-ui-theme-provider": "11.54.0-alpha.4",
75
+ "@gooddata/sdk-ui-vis-commons": "11.54.0-alpha.4",
76
+ "@gooddata/util": "11.54.0-alpha.4"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@microsoft/api-documenter": "^7.17.0",
@@ -119,12 +119,12 @@
119
119
  "typescript": "5.9.3",
120
120
  "vitest": "4.1.8",
121
121
  "vitest-dom": "0.1.1",
122
- "@gooddata/eslint-config": "11.54.0-alpha.3",
123
- "@gooddata/i18n-toolkit": "11.54.0-alpha.3",
124
- "@gooddata/sdk-backend-mockingbird": "11.54.0-alpha.3",
125
- "@gooddata/oxlint-config": "11.54.0-alpha.3",
126
- "@gooddata/stylelint-config": "11.54.0-alpha.3",
127
- "@gooddata/reference-workspace": "11.54.0-alpha.3"
122
+ "@gooddata/eslint-config": "11.54.0-alpha.4",
123
+ "@gooddata/i18n-toolkit": "11.54.0-alpha.4",
124
+ "@gooddata/oxlint-config": "11.54.0-alpha.4",
125
+ "@gooddata/sdk-backend-mockingbird": "11.54.0-alpha.4",
126
+ "@gooddata/reference-workspace": "11.54.0-alpha.4",
127
+ "@gooddata/stylelint-config": "11.54.0-alpha.4"
128
128
  },
129
129
  "peerDependencies": {
130
130
  "react": "^18.0.0 || ^19.0.0",