@gooddata/sdk-ui-analytical-designer 11.71.0-alpha.2 → 11.71.0-alpha.3
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 +47 -47
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +3 -8
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +2 -6
- package/esm/selectors/feature_flag_selector.d.ts +2 -23
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +0 -2
- package/esm/selectors/report_visualization_selector.d.ts +0 -12
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/package.json +21 -21
- package/esm/components/filterBar/__mocks__/DraggableFilterItem.d.ts +0 -3
- package/esm/components/filterBar/__mocks__/DraggableFilterItem.d.ts.map +0 -1
- package/esm/components/filterBar/__mocks__/DraggableFilterItem.js +0 -4
- package/esm/components/filterBar/__mocks__/FilterBarList.d.ts +0 -3
- package/esm/components/filterBar/__mocks__/FilterBarList.d.ts.map +0 -1
- package/esm/components/filterBar/__mocks__/FilterBarList.js +0 -4
- package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.d.ts +0 -2
- package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.d.ts.map +0 -1
- package/esm/components/filterBar/filterBarDropdown/__mocks__/FilterBarDropdown.js +0 -6
- package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.d.ts +0 -19
- package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.d.ts.map +0 -1
- package/esm/components/filterBar/rankingFilter/RankingFilter.test.helpers.js +0 -70
- package/esm/components/report/report.test.helpers.d.ts +0 -4
- package/esm/components/report/report.test.helpers.d.ts.map +0 -1
- package/esm/components/report/report.test.helpers.js +0 -15
- package/esm/models/item_cache.d.ts +0 -10
- package/esm/models/item_cache.d.ts.map +0 -1
- package/esm/models/item_cache.js +0 -19
- package/esm/models/metadata.test.helpers.d.ts +0 -8
- package/esm/models/metadata.test.helpers.d.ts.map +0 -1
- package/esm/models/metadata.test.helpers.js +0 -276
- package/esm/postMessageApi/sagas/mocks.test.helpers.d.ts +0 -3
- package/esm/postMessageApi/sagas/mocks.test.helpers.d.ts.map +0 -1
- package/esm/postMessageApi/sagas/mocks.test.helpers.js +0 -11
- package/esm/sagas/properties_saga_mock.d.ts +0 -22
- package/esm/sagas/properties_saga_mock.d.ts.map +0 -1
- package/esm/sagas/properties_saga_mock.js +0 -18007
- package/esm/selectors/bucket.test.helpers.d.ts +0 -12
- package/esm/selectors/bucket.test.helpers.d.ts.map +0 -1
- package/esm/selectors/bucket.test.helpers.js +0 -83
- package/esm/selectors/date_dataset.test.helpers.d.ts +0 -7
- package/esm/selectors/date_dataset.test.helpers.d.ts.map +0 -1
- package/esm/selectors/date_dataset.test.helpers.js +0 -347
- package/esm/selectors/test_helpers.d.ts +0 -6
- package/esm/selectors/test_helpers.d.ts.map +0 -1
- package/esm/selectors/test_helpers.js +0 -66
- package/esm/services/buckets_service.test.helpers.d.ts +0 -3
- package/esm/services/buckets_service.test.helpers.d.ts.map +0 -1
- package/esm/services/buckets_service.test.helpers.js +0 -94
- package/esm/services/decorated_buckets_service.test.helpers.d.ts +0 -4
- package/esm/services/decorated_buckets_service.test.helpers.d.ts.map +0 -1
- package/esm/services/decorated_buckets_service.test.helpers.js +0 -175
- package/esm/services/telemetry/tracking_state.test.helpers.d.ts +0 -9
- package/esm/services/telemetry/tracking_state.test.helpers.d.ts.map +0 -1
- package/esm/services/telemetry/tracking_state.test.helpers.js +0 -28
- package/esm/store/bucket_filters/bucket_filters.test.helpers.d.ts +0 -4
- package/esm/store/bucket_filters/bucket_filters.test.helpers.d.ts.map +0 -1
- package/esm/store/bucket_filters/bucket_filters.test.helpers.js +0 -12
- package/esm/store/filter_bar/cache_item.test.helpers.d.ts +0 -3
- package/esm/store/filter_bar/cache_item.test.helpers.d.ts.map +0 -1
- package/esm/store/filter_bar/cache_item.test.helpers.js +0 -13
- package/esm/store/filter_bar/invalid_type_guard.test.helpers.d.ts +0 -7
- package/esm/store/filter_bar/invalid_type_guard.test.helpers.d.ts.map +0 -1
- package/esm/store/filter_bar/invalid_type_guard.test.helpers.js +0 -19
- package/esm/store/metric_editor/metric_editor.test.helpers.d.ts +0 -6
- package/esm/store/metric_editor/metric_editor.test.helpers.d.ts.map +0 -1
- package/esm/store/metric_editor/metric_editor.test.helpers.js +0 -17
- package/esm/tests/DateDatasetWithGranularities.test.helpers.d.ts +0 -7
- package/esm/tests/DateDatasetWithGranularities.test.helpers.d.ts.map +0 -1
- package/esm/tests/DateDatasetWithGranularities.test.helpers.js +0 -641
- package/esm/tests/bucket_item.test.helpers.d.ts +0 -3
- package/esm/tests/bucket_item.test.helpers.d.ts.map +0 -1
- package/esm/tests/bucket_item.test.helpers.js +0 -37
- package/esm/tests/buckets_builder.test.helpers.d.ts +0 -33
- package/esm/tests/buckets_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/buckets_builder.test.helpers.js +0 -89
- package/esm/tests/catalog.test.helpers.d.ts +0 -18
- package/esm/tests/catalog.test.helpers.d.ts.map +0 -1
- package/esm/tests/catalog.test.helpers.js +0 -37
- package/esm/tests/catalog_attribute_hierarchy.test.helpers.d.ts +0 -3
- package/esm/tests/catalog_attribute_hierarchy.test.helpers.d.ts.map +0 -1
- package/esm/tests/catalog_attribute_hierarchy.test.helpers.js +0 -37
- package/esm/tests/catalog_components.test.helpers.d.ts +0 -7
- package/esm/tests/catalog_components.test.helpers.d.ts.map +0 -1
- package/esm/tests/catalog_components.test.helpers.js +0 -53
- package/esm/tests/chart_sort.test.helpers.d.ts +0 -28
- package/esm/tests/chart_sort.test.helpers.d.ts.map +0 -1
- package/esm/tests/chart_sort.test.helpers.js +0 -80
- package/esm/tests/constants.test.helpers.d.ts +0 -230
- package/esm/tests/constants.test.helpers.d.ts.map +0 -1
- package/esm/tests/constants.test.helpers.js +0 -1930
- package/esm/tests/dashboard.test.helpers.d.ts +0 -5
- package/esm/tests/dashboard.test.helpers.d.ts.map +0 -1
- package/esm/tests/dashboard.test.helpers.js +0 -65
- package/esm/tests/data_layer.test.helpers.d.ts +0 -5
- package/esm/tests/data_layer.test.helpers.d.ts.map +0 -1
- package/esm/tests/data_layer.test.helpers.js +0 -106
- package/esm/tests/date_datasets_meta.test.helpers.d.ts +0 -5
- package/esm/tests/date_datasets_meta.test.helpers.d.ts.map +0 -1
- package/esm/tests/date_datasets_meta.test.helpers.js +0 -323
- package/esm/tests/decorated_bucket.test.helpers.d.ts +0 -5
- package/esm/tests/decorated_bucket.test.helpers.d.ts.map +0 -1
- package/esm/tests/decorated_bucket.test.helpers.js +0 -12
- package/esm/tests/extended_reference_point_builder.test.helpers.d.ts +0 -47
- package/esm/tests/extended_reference_point_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/extended_reference_point_builder.test.helpers.js +0 -36
- package/esm/tests/feature_flags.test.helpers.d.ts +0 -4
- package/esm/tests/feature_flags.test.helpers.d.ts.map +0 -1
- package/esm/tests/feature_flags.test.helpers.js +0 -10
- package/esm/tests/filter.test.helpers.d.ts +0 -22
- package/esm/tests/filter.test.helpers.d.ts.map +0 -1
- package/esm/tests/filter.test.helpers.js +0 -329
- package/esm/tests/insightMocking.test.helpers.d.ts +0 -3
- package/esm/tests/insightMocking.test.helpers.d.ts.map +0 -1
- package/esm/tests/insightMocking.test.helpers.js +0 -13
- package/esm/tests/measure_date_datasets.test.helpers.d.ts +0 -17
- package/esm/tests/measure_date_datasets.test.helpers.d.ts.map +0 -1
- package/esm/tests/measure_date_datasets.test.helpers.js +0 -40
- package/esm/tests/parameter.test.helpers.d.ts +0 -5
- package/esm/tests/parameter.test.helpers.d.ts.map +0 -1
- package/esm/tests/parameter.test.helpers.js +0 -16
- package/esm/tests/reference_point.test.helpers.d.ts +0 -9
- package/esm/tests/reference_point.test.helpers.d.ts.map +0 -1
- package/esm/tests/reference_point.test.helpers.js +0 -29
- package/esm/tests/reference_point_builder.test.helpers.d.ts +0 -20
- package/esm/tests/reference_point_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/reference_point_builder.test.helpers.js +0 -22
- package/esm/tests/report_builder.test.helpers.d.ts +0 -22
- package/esm/tests/report_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/report_builder.test.helpers.js +0 -28
- package/esm/tests/route.test.helpers.d.ts +0 -15
- package/esm/tests/route.test.helpers.d.ts.map +0 -1
- package/esm/tests/route.test.helpers.js +0 -9
- package/esm/tests/state.test.helpers.d.ts +0 -3
- package/esm/tests/state.test.helpers.d.ts.map +0 -1
- package/esm/tests/state.test.helpers.js +0 -8
- package/esm/tests/state_builder.test.helpers.d.ts +0 -10
- package/esm/tests/state_builder.test.helpers.d.ts.map +0 -1
- package/esm/tests/state_builder.test.helpers.js +0 -46
- package/esm/tests/visualization_class.test.helpers.d.ts +0 -7
- package/esm/tests/visualization_class.test.helpers.d.ts.map +0 -1
- package/esm/tests/visualization_class.test.helpers.js +0 -16
- package/esm/utils/drilling/executeAfmToAfm.test.helpers.d.ts +0 -32
- package/esm/utils/drilling/executeAfmToAfm.test.helpers.d.ts.map +0 -1
- package/esm/utils/drilling/executeAfmToAfm.test.helpers.js +0 -390
- package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.d.ts +0 -13
- package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.d.ts.map +0 -1
- package/esm/utils/sdkModelToADRep/ReferenceConverter.test.helpers.js +0 -200
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
/** The complete user settings the feature-flags action carries, seeded with the flags under test. */
|
|
3
|
-
export function userSettings(flags) {
|
|
4
|
-
return {
|
|
5
|
-
userId: "user",
|
|
6
|
-
locale: "en-US",
|
|
7
|
-
separators: { thousand: ",", decimal: "." },
|
|
8
|
-
...flags,
|
|
9
|
-
};
|
|
10
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type IFiltersBucketItem } from "@gooddata/sdk-ui-ext/internal";
|
|
2
|
-
import { type IAttributeFilter, type IDateFilter, type IFilter, type IMeasureValueFilter, type IRankingFilter } from "../store/filter_bar/filter_bar_types.js";
|
|
3
|
-
export declare const DATE_FILTER_DATASET_REF: {
|
|
4
|
-
uri: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function buildDateFilterMock(props?: Partial<IDateFilter>): IDateFilter;
|
|
7
|
-
export declare function buildAttributeFilterMock(props?: Partial<IAttributeFilter>): IAttributeFilter;
|
|
8
|
-
export declare const comparisonMeasureValueFilter: IMeasureValueFilter;
|
|
9
|
-
export declare const rangeMeasureValueFilter: IMeasureValueFilter;
|
|
10
|
-
export declare const emptyMeasureValueFilter: IMeasureValueFilter;
|
|
11
|
-
export declare const rankingFilterWithoutAttributes: IRankingFilter;
|
|
12
|
-
export declare const rankingFilterWithAttributes: IRankingFilter;
|
|
13
|
-
export declare const attributeFilterWith2Elements: IAttributeFilter;
|
|
14
|
-
export declare const dateFilterLast30Days: IDateFilter;
|
|
15
|
-
export declare const dateFilter6YearsSply: IDateFilter;
|
|
16
|
-
export declare const filtersMock: ReadonlyArray<IFilter>;
|
|
17
|
-
export declare const filterItems: IFilter[];
|
|
18
|
-
export declare const extendedRefPointFilters: IFiltersBucketItem[];
|
|
19
|
-
export declare const filterItemsWithNoSelection: IFilter[];
|
|
20
|
-
export declare const filterItemWithNonDefaultDisplayForm: IFilter;
|
|
21
|
-
export declare const filtersWithQuarterGranularity: IFilter[];
|
|
22
|
-
//# sourceMappingURL=filter.test.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter.test.helpers.d.ts","sourceRoot":"","sources":["../../src/tests/filter.test.helpers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAKxE,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACtB,MAAM,yCAAyC,CAAC;AAGjD,eAAO,MAAM,uBAAuB;IAChC,GAAG;CACN,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,CASjF;AAED,wBAAgB,wBAAwB,CAAC,KAAK,GAAE,OAAO,CAAC,gBAAgB,CAAM,GAAG,gBAAgB,CAQhG;AAED,eAAO,MAAM,4BAA4B,EAAE,mBAY1C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,mBAarC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,mBAIrC,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,cAM5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,cAOzC,CAAC;AAEF,eAAO,MAAM,4BAA4B,kBAevC,CAAC;AAEH,eAAO,MAAM,oBAAoB,aAE/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,EAAE,WAUlC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,OAAO,CAQ9C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,EAyDhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,EA+GvD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,OAAO,EAmB/C,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,OAUjD,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,OAAO,EAYlD,CAAC"}
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { uriRef } from "@gooddata/sdk-model";
|
|
3
|
-
import { OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
4
|
-
import { LAST_30_DAYS } from "../constants/presets.js";
|
|
5
|
-
import { DATE_DATASET_ATTRIBUTE } from "../models/date_item.js";
|
|
6
|
-
import { GRANULARITY } from "../models/granularity.js";
|
|
7
|
-
import { elements } from "../tests/constants.test.helpers.js";
|
|
8
|
-
export const DATE_FILTER_DATASET_REF = {
|
|
9
|
-
uri: "/gdc/md/TeamOneGoodSales1/obj/15174",
|
|
10
|
-
};
|
|
11
|
-
export function buildDateFilterMock(props = {}) {
|
|
12
|
-
return {
|
|
13
|
-
type: "date",
|
|
14
|
-
localIdentifier: "date.localIdentifier",
|
|
15
|
-
cacheItemIdentifier: "date.identifier",
|
|
16
|
-
overTimeComparisonType: "nothing",
|
|
17
|
-
dateDatasetRef: DATE_FILTER_DATASET_REF,
|
|
18
|
-
...props,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export function buildAttributeFilterMock(props = {}) {
|
|
22
|
-
return {
|
|
23
|
-
type: "attribute",
|
|
24
|
-
localIdentifier: "attr.localIdentifier",
|
|
25
|
-
cacheItemIdentifier: "attr.identifier",
|
|
26
|
-
displayFormRef: uriRef("attr/df/uri"),
|
|
27
|
-
...props,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export const comparisonMeasureValueFilter = {
|
|
31
|
-
type: "measure",
|
|
32
|
-
measureLocalIdentifier: "m1",
|
|
33
|
-
localIdentifier: "f1",
|
|
34
|
-
conditions: [
|
|
35
|
-
{
|
|
36
|
-
comparison: {
|
|
37
|
-
operator: "GREATER_THAN",
|
|
38
|
-
value: 12,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
};
|
|
43
|
-
export const rangeMeasureValueFilter = {
|
|
44
|
-
type: "measure",
|
|
45
|
-
measureLocalIdentifier: "m2",
|
|
46
|
-
localIdentifier: "f2",
|
|
47
|
-
conditions: [
|
|
48
|
-
{
|
|
49
|
-
range: {
|
|
50
|
-
operator: "BETWEEN",
|
|
51
|
-
from: 12,
|
|
52
|
-
to: 14,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
};
|
|
57
|
-
export const emptyMeasureValueFilter = {
|
|
58
|
-
type: "measure",
|
|
59
|
-
measureLocalIdentifier: "m3",
|
|
60
|
-
localIdentifier: "f3",
|
|
61
|
-
};
|
|
62
|
-
export const rankingFilterWithoutAttributes = {
|
|
63
|
-
localIdentifier: "f5",
|
|
64
|
-
type: "ranking",
|
|
65
|
-
measureLocalIdentifier: "m4",
|
|
66
|
-
operator: "TOP",
|
|
67
|
-
value: 10,
|
|
68
|
-
};
|
|
69
|
-
export const rankingFilterWithAttributes = {
|
|
70
|
-
localIdentifier: "f6",
|
|
71
|
-
type: "ranking",
|
|
72
|
-
measureLocalIdentifier: "m5",
|
|
73
|
-
attributes: ["a1", "a2"],
|
|
74
|
-
operator: "BOTTOM",
|
|
75
|
-
value: 3,
|
|
76
|
-
};
|
|
77
|
-
export const attributeFilterWith2Elements = buildAttributeFilterMock({
|
|
78
|
-
filterConfig: {
|
|
79
|
-
isInverted: true,
|
|
80
|
-
totalElementsCount: 657,
|
|
81
|
-
selectedElements: [
|
|
82
|
-
{
|
|
83
|
-
title: "Element 1",
|
|
84
|
-
uri: "/gdc/md/projectId/obj/4394/elements?id=298",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
title: "Element 2",
|
|
88
|
-
uri: "/gdc/md/projectId/obj/4394/elements?id=325",
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
export const dateFilterLast30Days = buildDateFilterMock({
|
|
94
|
-
filterConfig: { granularity: GRANULARITY.DATE, interval: [-29, 0], name: LAST_30_DAYS },
|
|
95
|
-
});
|
|
96
|
-
export const dateFilter6YearsSply = {
|
|
97
|
-
type: "date",
|
|
98
|
-
localIdentifier: "f_year",
|
|
99
|
-
cacheItemIdentifier: DATE_DATASET_ATTRIBUTE,
|
|
100
|
-
overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
|
|
101
|
-
filterConfig: {
|
|
102
|
-
granularity: GRANULARITY.YEAR,
|
|
103
|
-
interval: [-6, 0],
|
|
104
|
-
},
|
|
105
|
-
dateDatasetRef: DATE_FILTER_DATASET_REF,
|
|
106
|
-
};
|
|
107
|
-
export const filtersMock = [
|
|
108
|
-
attributeFilterWith2Elements,
|
|
109
|
-
dateFilterLast30Days,
|
|
110
|
-
comparisonMeasureValueFilter,
|
|
111
|
-
rangeMeasureValueFilter,
|
|
112
|
-
emptyMeasureValueFilter,
|
|
113
|
-
rankingFilterWithoutAttributes,
|
|
114
|
-
rankingFilterWithAttributes,
|
|
115
|
-
];
|
|
116
|
-
export const filterItems = [
|
|
117
|
-
{
|
|
118
|
-
type: "attribute",
|
|
119
|
-
cacheItemIdentifier: "attr.product.id",
|
|
120
|
-
localIdentifier: "f_product",
|
|
121
|
-
displayFormRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
122
|
-
filterConfig: {
|
|
123
|
-
selectedElements: [elements[1], elements[3], elements[4]],
|
|
124
|
-
isInverted: false,
|
|
125
|
-
totalElementsCount: 7,
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
dateFilter6YearsSply,
|
|
129
|
-
{
|
|
130
|
-
type: "date",
|
|
131
|
-
localIdentifier: "f_range",
|
|
132
|
-
cacheItemIdentifier: DATE_DATASET_ATTRIBUTE,
|
|
133
|
-
overTimeComparisonType: OverTimeComparisonTypes.NOTHING,
|
|
134
|
-
filterConfig: {
|
|
135
|
-
granularity: GRANULARITY.DATE,
|
|
136
|
-
interval: ["2017-01-01", "2018-01-01"],
|
|
137
|
-
type: "absolute",
|
|
138
|
-
},
|
|
139
|
-
dateDatasetRef: DATE_FILTER_DATASET_REF,
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
type: "measure",
|
|
143
|
-
measureLocalIdentifier: "m1",
|
|
144
|
-
localIdentifier: "f1",
|
|
145
|
-
conditions: [{ comparison: { operator: "GREATER_THAN", value: 12 } }],
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
type: "measure",
|
|
149
|
-
measureLocalIdentifier: "m2",
|
|
150
|
-
localIdentifier: "f2",
|
|
151
|
-
conditions: [
|
|
152
|
-
{
|
|
153
|
-
range: {
|
|
154
|
-
operator: "BETWEEN",
|
|
155
|
-
from: 12,
|
|
156
|
-
to: 14,
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
type: "measure",
|
|
163
|
-
measureLocalIdentifier: "m3",
|
|
164
|
-
localIdentifier: "f3",
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
type: "measure",
|
|
168
|
-
measureLocalIdentifier: "m3_previous_period",
|
|
169
|
-
localIdentifier: "f4",
|
|
170
|
-
},
|
|
171
|
-
rankingFilterWithAttributes,
|
|
172
|
-
rankingFilterWithoutAttributes,
|
|
173
|
-
];
|
|
174
|
-
export const extendedRefPointFilters = [
|
|
175
|
-
{
|
|
176
|
-
localIdentifier: "f_product",
|
|
177
|
-
filters: [
|
|
178
|
-
{
|
|
179
|
-
attribute: "attr.product.id",
|
|
180
|
-
displayFormRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
181
|
-
selectedElements: [elements[1], elements[3], elements[4]],
|
|
182
|
-
totalElementsCount: 10,
|
|
183
|
-
isInverted: false,
|
|
184
|
-
},
|
|
185
|
-
],
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
localIdentifier: "f_year",
|
|
189
|
-
filters: [
|
|
190
|
-
{
|
|
191
|
-
attribute: "attr.datedataset",
|
|
192
|
-
overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
|
|
193
|
-
interval: {
|
|
194
|
-
granularity: GRANULARITY.YEAR,
|
|
195
|
-
interval: [-6, 0],
|
|
196
|
-
name: "Year",
|
|
197
|
-
type: "relative",
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
|
-
dateDatasetRef: DATE_FILTER_DATASET_REF,
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
localIdentifier: "f_range",
|
|
205
|
-
filters: [
|
|
206
|
-
{
|
|
207
|
-
attribute: "attr.datedataset",
|
|
208
|
-
overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
|
|
209
|
-
interval: {
|
|
210
|
-
granularity: GRANULARITY.DATE,
|
|
211
|
-
interval: ["2017-01-01", "2018-01-01"],
|
|
212
|
-
name: "Date",
|
|
213
|
-
type: "absolute",
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
],
|
|
217
|
-
dateDatasetRef: DATE_FILTER_DATASET_REF,
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
localIdentifier: "f1",
|
|
221
|
-
filters: [
|
|
222
|
-
{
|
|
223
|
-
measureLocalIdentifier: "m1",
|
|
224
|
-
condition: {
|
|
225
|
-
comparison: {
|
|
226
|
-
operator: "GREATER_THAN",
|
|
227
|
-
value: 12,
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
],
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
localIdentifier: "f2",
|
|
235
|
-
filters: [
|
|
236
|
-
{
|
|
237
|
-
measureLocalIdentifier: "m2",
|
|
238
|
-
condition: {
|
|
239
|
-
range: {
|
|
240
|
-
operator: "BETWEEN",
|
|
241
|
-
from: 12,
|
|
242
|
-
to: 14,
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
},
|
|
246
|
-
],
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
localIdentifier: "f3",
|
|
250
|
-
filters: [
|
|
251
|
-
{
|
|
252
|
-
measureLocalIdentifier: "m3",
|
|
253
|
-
},
|
|
254
|
-
],
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
localIdentifier: "f4",
|
|
258
|
-
filters: [
|
|
259
|
-
{
|
|
260
|
-
measureLocalIdentifier: "m3_previous_period",
|
|
261
|
-
},
|
|
262
|
-
],
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
localIdentifier: "f5",
|
|
266
|
-
filters: [
|
|
267
|
-
{
|
|
268
|
-
measure: "m1",
|
|
269
|
-
attributes: ["a1", "a2"],
|
|
270
|
-
operator: "BOTTOM",
|
|
271
|
-
value: 3,
|
|
272
|
-
},
|
|
273
|
-
],
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
localIdentifier: "f6",
|
|
277
|
-
filters: [
|
|
278
|
-
{
|
|
279
|
-
measure: "m2",
|
|
280
|
-
operator: "TOP",
|
|
281
|
-
value: 10,
|
|
282
|
-
},
|
|
283
|
-
],
|
|
284
|
-
},
|
|
285
|
-
];
|
|
286
|
-
export const filterItemsWithNoSelection = [
|
|
287
|
-
{
|
|
288
|
-
type: "attribute",
|
|
289
|
-
cacheItemIdentifier: "attr.product.id",
|
|
290
|
-
localIdentifier: "f_product",
|
|
291
|
-
displayFormRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/952"),
|
|
292
|
-
filterConfig: {
|
|
293
|
-
selectedElements: [],
|
|
294
|
-
isInverted: false,
|
|
295
|
-
totalElementsCount: 7,
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
type: "date",
|
|
300
|
-
localIdentifier: DATE_DATASET_ATTRIBUTE,
|
|
301
|
-
cacheItemIdentifier: DATE_DATASET_ATTRIBUTE,
|
|
302
|
-
overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
|
|
303
|
-
dateDatasetRef: DATE_FILTER_DATASET_REF,
|
|
304
|
-
},
|
|
305
|
-
];
|
|
306
|
-
export const filterItemWithNonDefaultDisplayForm = {
|
|
307
|
-
type: "attribute",
|
|
308
|
-
cacheItemIdentifier: "attr.country.id",
|
|
309
|
-
localIdentifier: "f_country",
|
|
310
|
-
displayFormRef: uriRef("/gdc/md/TeamOneGoodSales1/obj/900"),
|
|
311
|
-
filterConfig: {
|
|
312
|
-
selectedElements: [],
|
|
313
|
-
isInverted: false,
|
|
314
|
-
totalElementsCount: 0,
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
export const filtersWithQuarterGranularity = [
|
|
318
|
-
{
|
|
319
|
-
type: "date",
|
|
320
|
-
localIdentifier: "quarter",
|
|
321
|
-
cacheItemIdentifier: DATE_DATASET_ATTRIBUTE,
|
|
322
|
-
overTimeComparisonType: OverTimeComparisonTypes.NOTHING,
|
|
323
|
-
filterConfig: {
|
|
324
|
-
granularity: GRANULARITY.QUARTER,
|
|
325
|
-
interval: [-3, 0],
|
|
326
|
-
},
|
|
327
|
-
dateDatasetRef: DATE_FILTER_DATASET_REF,
|
|
328
|
-
},
|
|
329
|
-
];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type IInsight, type InsightModifications } from "@gooddata/sdk-model";
|
|
2
|
-
export declare const newInsight: (visualizationUrl: string, insightIdentifier: string, insightUri: string, modifications?: InsightModifications) => IInsight;
|
|
3
|
-
//# sourceMappingURL=insightMocking.test.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insightMocking.test.helpers.d.ts","sourceRoot":"","sources":["../../src/tests/insightMocking.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,oBAAoB,EAAgC,MAAM,qBAAqB,CAAC;AAE7G,eAAO,MAAM,UAAU,qBACD,MAAM,qBACL,MAAM,cACb,MAAM,kBACF,oBAAoB,KACrC,QAUF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { newInsightDefinition, uriRef } from "@gooddata/sdk-model";
|
|
3
|
-
export const newInsight = (visualizationUrl, insightIdentifier, insightUri, modifications) => {
|
|
4
|
-
const definition = newInsightDefinition(visualizationUrl, modifications);
|
|
5
|
-
return {
|
|
6
|
-
insight: {
|
|
7
|
-
...definition.insight,
|
|
8
|
-
identifier: insightIdentifier,
|
|
9
|
-
uri: insightUri,
|
|
10
|
-
ref: uriRef(insightUri),
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type IAppState } from "../store/types.js";
|
|
2
|
-
import { type IDateDataset } from "../typings/datasets.js";
|
|
3
|
-
/**
|
|
4
|
-
* Test-only seeding of a measure's loaded date-dataset availability — the same write the
|
|
5
|
-
* MEASURE_DATE_DATASETS_FINISHED case performs, applied without driving the root
|
|
6
|
-
* reducer, so fixtures can seed arbitrary intermediate states PLAIN.
|
|
7
|
-
*/
|
|
8
|
-
export declare function seedMeasureDateDatasetStatus(state: IAppState, measureLocalIdentifier: string, availableDateDatasets: IDateDataset[], unavailableDateDatasetsCount: number): IAppState;
|
|
9
|
-
/**
|
|
10
|
-
* Test-only selection by dataset URI — the same write the open-report flow performs. Unlike the
|
|
11
|
-
* by-identifier form it does NOT check the measure's availability, which is what lets a fixture seed
|
|
12
|
-
* a selection the measure cannot actually offer.
|
|
13
|
-
*/
|
|
14
|
-
export declare function seedMeasureDateDatasetSelectedUri(state: IAppState, measureLocalIdentifier: string, dateDatasetUri: string | undefined): IAppState;
|
|
15
|
-
/** Test-only selection by dataset identifier — the MEASURE_DATE_DATASETS_SELECT case's write. */
|
|
16
|
-
export declare function seedMeasureDateDatasetSelection(state: IAppState, measureLocalIdentifier: string, dateDatasetIdentifier: string): IAppState;
|
|
17
|
-
//# sourceMappingURL=measure_date_datasets.test.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"measure_date_datasets.test.helpers.d.ts","sourceRoot":"","sources":["../../src/tests/measure_date_datasets.test.helpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,SAAS,EAChB,sBAAsB,EAAE,MAAM,EAC9B,qBAAqB,EAAE,YAAY,EAAE,EACrC,4BAA4B,EAAE,MAAM,GACrC,SAAS,CAaX;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,SAAS,EAChB,sBAAsB,EAAE,MAAM,EAC9B,cAAc,EAAE,MAAM,GAAG,SAAS,GACnC,SAAS,CAYX;AAED,iGAAiG;AACjG,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,SAAS,EAChB,sBAAsB,EAAE,MAAM,EAC9B,qBAAqB,EAAE,MAAM,GAC9B,SAAS,CAYX"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { setSelectedByIdentifierInState, setSelectedInState, setStatusInState, } from "../store/measure_date_datasets/measure_date_datasets_helpers.js";
|
|
3
|
-
/**
|
|
4
|
-
* Test-only seeding of a measure's loaded date-dataset availability — the same write the
|
|
5
|
-
* MEASURE_DATE_DATASETS_FINISHED case performs, applied without driving the root
|
|
6
|
-
* reducer, so fixtures can seed arbitrary intermediate states PLAIN.
|
|
7
|
-
*/
|
|
8
|
-
export function seedMeasureDateDatasetStatus(state, measureLocalIdentifier, availableDateDatasets, unavailableDateDatasetsCount) {
|
|
9
|
-
return {
|
|
10
|
-
...state,
|
|
11
|
-
data: {
|
|
12
|
-
...state.data,
|
|
13
|
-
measuresDateDatasets: setStatusInState(state.data.measuresDateDatasets, measureLocalIdentifier, availableDateDatasets, unavailableDateDatasetsCount),
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Test-only selection by dataset URI — the same write the open-report flow performs. Unlike the
|
|
19
|
-
* by-identifier form it does NOT check the measure's availability, which is what lets a fixture seed
|
|
20
|
-
* a selection the measure cannot actually offer.
|
|
21
|
-
*/
|
|
22
|
-
export function seedMeasureDateDatasetSelectedUri(state, measureLocalIdentifier, dateDatasetUri) {
|
|
23
|
-
return {
|
|
24
|
-
...state,
|
|
25
|
-
data: {
|
|
26
|
-
...state.data,
|
|
27
|
-
measuresDateDatasets: setSelectedInState(state.data.measuresDateDatasets, measureLocalIdentifier, dateDatasetUri),
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
/** Test-only selection by dataset identifier — the MEASURE_DATE_DATASETS_SELECT case's write. */
|
|
32
|
-
export function seedMeasureDateDatasetSelection(state, measureLocalIdentifier, dateDatasetIdentifier) {
|
|
33
|
-
return {
|
|
34
|
-
...state,
|
|
35
|
-
data: {
|
|
36
|
-
...state.data,
|
|
37
|
-
measuresDateDatasets: setSelectedByIdentifierInState(state.data.measuresDateDatasets, measureLocalIdentifier, dateDatasetIdentifier),
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type IScalarParameterDefinition, type IScalarParameterMetadataObject, type IdentifierRef } from "@gooddata/sdk-model";
|
|
2
|
-
export declare function buildParameter(id: string, title: string, definition: IScalarParameterDefinition): IScalarParameterMetadataObject & {
|
|
3
|
-
ref: IdentifierRef;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=parameter.test.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameter.test.helpers.d.ts","sourceRoot":"","sources":["../../src/tests/parameter.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,aAAa,EAErB,MAAM,qBAAqB,CAAC;AAE7B,wBAAgB,cAAc,CAC1B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,0BAA0B,GACvC,8BAA8B,GAAG;IAAE,GAAG,EAAE,aAAa,CAAA;CAAE,CAazD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { idRef, } from "@gooddata/sdk-model";
|
|
3
|
-
export function buildParameter(id, title, definition) {
|
|
4
|
-
return {
|
|
5
|
-
ref: idRef(id, "parameter"),
|
|
6
|
-
id,
|
|
7
|
-
uri: "",
|
|
8
|
-
type: "parameter",
|
|
9
|
-
title,
|
|
10
|
-
description: "",
|
|
11
|
-
production: true,
|
|
12
|
-
deprecated: false,
|
|
13
|
-
unlisted: false,
|
|
14
|
-
definition,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type IExtendedRefPointBucketItem } from "../store/reference_point/extended_reference_point_state.js";
|
|
2
|
-
import { type IRawBucketItems } from "../typings/buckets.js";
|
|
3
|
-
/**
|
|
4
|
-
* Projects raw state items onto the reference-point item shape the plug-viz answers with. Only the
|
|
5
|
-
* fields both shapes declare identically are carried; a test that needs the display forms or the
|
|
6
|
-
* (string-typed) aggregation seeds them itself.
|
|
7
|
-
*/
|
|
8
|
-
export declare function toRefPointItems(items: IRawBucketItems): Omit<IExtendedRefPointBucketItem, "displayForms">[];
|
|
9
|
-
//# sourceMappingURL=reference_point.test.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reference_point.test.helpers.d.ts","sourceRoot":"","sources":["../../src/tests/reference_point.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,4DAA4D,CAAC;AAC9G,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC,2BAA2B,EAAE,cAAc,CAAC,EAAE,CAsB3G"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
/**
|
|
3
|
-
* Projects raw state items onto the reference-point item shape the plug-viz answers with. Only the
|
|
4
|
-
* fields both shapes declare identically are carried; a test that needs the display forms or the
|
|
5
|
-
* (string-typed) aggregation seeds them itself.
|
|
6
|
-
*/
|
|
7
|
-
export function toRefPointItems(items) {
|
|
8
|
-
return items.map((item) => ({
|
|
9
|
-
localIdentifier: item.localIdentifier,
|
|
10
|
-
type: item.type,
|
|
11
|
-
attribute: item.attribute,
|
|
12
|
-
format: item.format,
|
|
13
|
-
granularity: item.granularity,
|
|
14
|
-
showInPercent: item.showInPercent,
|
|
15
|
-
showOnSecondaryAxis: item.showOnSecondaryAxis,
|
|
16
|
-
isTotalMeasure: item.isTotalMeasure,
|
|
17
|
-
isThresholdMeasure: item.isThresholdMeasure,
|
|
18
|
-
isKdaDisabled: item.isKdaDisabled,
|
|
19
|
-
masterLocalIdentifier: item.masterLocalIdentifier,
|
|
20
|
-
overTimeComparisonType: item.overTimeComparisonType,
|
|
21
|
-
operandLocalIdentifiers: item.operandLocalIdentifiers,
|
|
22
|
-
operator: item.operator,
|
|
23
|
-
dfRef: item.dfRef,
|
|
24
|
-
locationDisplayFormRef: item.locationDisplayFormRef,
|
|
25
|
-
areaDisplayFormRef: item.areaDisplayFormRef,
|
|
26
|
-
dateDatasetRef: item.dateDatasetRef,
|
|
27
|
-
displayForm: item.displayForm,
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type IReferencePointState } from "../store/reference_point/reference_point_state.js";
|
|
2
|
-
import { type IRawBucket } from "../typings/buckets.js";
|
|
3
|
-
/**
|
|
4
|
-
* TYPED patching of `data.referencePoint` for test fixtures.
|
|
5
|
-
*
|
|
6
|
-
* The reference point carries its OWN copy of the buckets — the one the pluggable-visualization round
|
|
7
|
-
* trip is compared against — so a fixture that seeds buckets usually has to seed them here too, and
|
|
8
|
-
* that is what this says.
|
|
9
|
-
*
|
|
10
|
-
* TEST-ONLY, and named so.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* ONE bucket of the copy the reference point carries.
|
|
14
|
-
*
|
|
15
|
-
* IDENTITY is preserved when the bucket is already the one in that slot, matching the rest of the
|
|
16
|
-
* builder family: `withReplacedBucket` answers the same collection for a no-op, and rebuilding the
|
|
17
|
-
* reference point around it would make that no-op observable as a state write.
|
|
18
|
-
*/
|
|
19
|
-
export declare const withReferencePointBucket: (referencePoint: IReferencePointState, bucketIndex: number, bucket: IRawBucket) => IReferencePointState;
|
|
20
|
-
//# sourceMappingURL=reference_point_builder.test.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reference_point_builder.test.helpers.d.ts","sourceRoot":"","sources":["../../src/tests/reference_point_builder.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD;;;;;;;;GAQG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,mBACjB,oBAAoB,eACvB,MAAM,UACX,UAAU,KACnB,oBAIF,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { withReplacedBucket } from "./buckets_builder.test.helpers.js";
|
|
3
|
-
/**
|
|
4
|
-
* TYPED patching of `data.referencePoint` for test fixtures.
|
|
5
|
-
*
|
|
6
|
-
* The reference point carries its OWN copy of the buckets — the one the pluggable-visualization round
|
|
7
|
-
* trip is compared against — so a fixture that seeds buckets usually has to seed them here too, and
|
|
8
|
-
* that is what this says.
|
|
9
|
-
*
|
|
10
|
-
* TEST-ONLY, and named so.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* ONE bucket of the copy the reference point carries.
|
|
14
|
-
*
|
|
15
|
-
* IDENTITY is preserved when the bucket is already the one in that slot, matching the rest of the
|
|
16
|
-
* builder family: `withReplacedBucket` answers the same collection for a no-op, and rebuilding the
|
|
17
|
-
* reference point around it would make that no-op observable as a state write.
|
|
18
|
-
*/
|
|
19
|
-
export const withReferencePointBucket = (referencePoint, bucketIndex, bucket) => {
|
|
20
|
-
const buckets = withReplacedBucket(referencePoint?.buckets ?? [], bucketIndex, bucket);
|
|
21
|
-
return buckets === referencePoint?.buckets ? referencePoint : { ...referencePoint, buckets };
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type IExecutionState } from "../store/execution/execution_state.js";
|
|
2
|
-
import { type IObjectMeta } from "../typings/bear/bearTypes.js";
|
|
3
|
-
import { type IReport, type IReportContent } from "../typings/report.js";
|
|
4
|
-
/**
|
|
5
|
-
* TYPED patching of the two `report` VALUES fixtures reach into below the branch: the current
|
|
6
|
-
* execution and the MD object the save/compare currency is made of.
|
|
7
|
-
*
|
|
8
|
-
* `state_builder.test.helpers.ts` gets a fixture to `report.execution` and `report.lastSavedObject`;
|
|
9
|
-
* these say what goes INSIDE one, in report terminology, over the real types.
|
|
10
|
-
*
|
|
11
|
-
* TEST-ONLY, and named so.
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* `execution.error` — the failure a selector reads. `error` is ABSENT-until-written on purpose and
|
|
15
|
-
* every reader tests for presence, so this materializes the container rather than assuming one.
|
|
16
|
-
*/
|
|
17
|
-
export declare const withExecutionError: (execution: IExecutionState, patch: Partial<NonNullable<IExecutionState["error"]>>) => IExecutionState;
|
|
18
|
-
/** `visualizationObject.meta` — title, uri, identifier, the locked flag. */
|
|
19
|
-
export declare const withMdObjectMeta: (mdObject: IReport, patch: Partial<IObjectMeta>) => IReport;
|
|
20
|
-
/** `visualizationObject.content` — the buckets/filters/properties the report was saved with. */
|
|
21
|
-
export declare const withMdObjectContent: (mdObject: IReport, content: IReportContent | null) => IReport;
|
|
22
|
-
//# sourceMappingURL=report_builder.test.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report_builder.test.helpers.d.ts","sourceRoot":"","sources":["../../src/tests/report_builder.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEzE;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,cAChB,eAAe,SACnB,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,KACtD,eAA+E,CAAC;AAEnF,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,aAAc,OAAO,SAAS,OAAO,CAAC,WAAW,CAAC,KAAG,OAMhF,CAAC;AAEH,gGAAgG;AAChG,eAAO,MAAM,mBAAmB,aAAc,OAAO,WAAW,cAAc,GAAG,IAAI,KAAG,OAGtF,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
/**
|
|
3
|
-
* TYPED patching of the two `report` VALUES fixtures reach into below the branch: the current
|
|
4
|
-
* execution and the MD object the save/compare currency is made of.
|
|
5
|
-
*
|
|
6
|
-
* `state_builder.test.helpers.ts` gets a fixture to `report.execution` and `report.lastSavedObject`;
|
|
7
|
-
* these say what goes INSIDE one, in report terminology, over the real types.
|
|
8
|
-
*
|
|
9
|
-
* TEST-ONLY, and named so.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* `execution.error` — the failure a selector reads. `error` is ABSENT-until-written on purpose and
|
|
13
|
-
* every reader tests for presence, so this materializes the container rather than assuming one.
|
|
14
|
-
*/
|
|
15
|
-
export const withExecutionError = (execution, patch) => ({ ...execution, error: { ...execution?.error, ...patch } });
|
|
16
|
-
/** `visualizationObject.meta` — title, uri, identifier, the locked flag. */
|
|
17
|
-
export const withMdObjectMeta = (mdObject, patch) => ({
|
|
18
|
-
...mdObject,
|
|
19
|
-
visualizationObject: {
|
|
20
|
-
...mdObject?.visualizationObject,
|
|
21
|
-
meta: { ...mdObject?.visualizationObject?.meta, ...patch },
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
/** `visualizationObject.content` — the buckets/filters/properties the report was saved with. */
|
|
25
|
-
export const withMdObjectContent = (mdObject, content) => ({
|
|
26
|
-
...mdObject,
|
|
27
|
-
visualizationObject: { ...mdObject?.visualizationObject, content },
|
|
28
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type IRouteParams } from "../store/router/router_state.js";
|
|
2
|
-
import { type IAppState } from "../store/types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Route fixture builders: a typed patch of `route.params` / `previousRoute.params`.
|
|
5
|
-
*
|
|
6
|
-
* Both subtrees are ABSENT in the pristine state (see store/router/router_state.ts), so these
|
|
7
|
-
* builders materialize them.
|
|
8
|
-
*/
|
|
9
|
-
type RouteQuery = NonNullable<IRouteParams["query"]>;
|
|
10
|
-
export declare const withRouteParams: (state: IAppState, params: Partial<IRouteParams>) => IAppState;
|
|
11
|
-
export declare const withPreviousRouteParams: (state: IAppState, params: Partial<IRouteParams>) => IAppState;
|
|
12
|
-
export declare const withRouteQuery: (state: IAppState, query: RouteQuery) => IAppState;
|
|
13
|
-
export declare const withPreviousRouteQuery: (state: IAppState, query: RouteQuery) => IAppState;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=route.test.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.test.helpers.d.ts","sourceRoot":"","sources":["../../src/tests/route.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;GAKG;AAEH,KAAK,UAAU,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAWrD,eAAO,MAAM,eAAe,UAAW,SAAS,UAAU,OAAO,CAAC,YAAY,CAAC,KAAG,SAC3C,CAAC;AAExC,eAAO,MAAM,uBAAuB,UAAW,SAAS,UAAU,OAAO,CAAC,YAAY,CAAC,KAAG,SAC3C,CAAC;AAEhD,eAAO,MAAM,cAAc,UAAW,SAAS,SAAS,UAAU,KAAG,SACkB,CAAC;AAExF,eAAO,MAAM,sBAAsB,UAAW,SAAS,SAAS,UAAU,KAAG,SAC0B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
const patchParams = (key, state, params) => ({
|
|
3
|
-
...state,
|
|
4
|
-
[key]: { params: { ...state[key]?.params, ...params } },
|
|
5
|
-
});
|
|
6
|
-
export const withRouteParams = (state, params) => patchParams("route", state, params);
|
|
7
|
-
export const withPreviousRouteParams = (state, params) => patchParams("previousRoute", state, params);
|
|
8
|
-
export const withRouteQuery = (state, query) => patchParams("route", state, { query: { ...state.route?.params?.query, ...query } });
|
|
9
|
-
export const withPreviousRouteQuery = (state, query) => patchParams("previousRoute", state, { query: { ...state.previousRoute?.params?.query, ...query } });
|