@gooddata/sdk-ui-analytical-designer 11.68.0-alpha.7 → 11.68.0-alpha.9
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 +203 -158
- package/esm/actions/data_actions.d.ts +2 -1
- package/esm/actions/data_actions.d.ts.map +1 -1
- package/esm/actions/data_actions.js +2 -2
- package/esm/components/DeleteReportDialogUsageList.d.ts.map +1 -1
- package/esm/components/DeleteReportDialogUsageList.js +33 -17
- package/esm/components/InsightUsageOnDashboards.d.ts.map +1 -1
- package/esm/components/InsightUsageOnDashboards.js +40 -27
- package/esm/components/SaveReportFromKDDialog.d.ts.map +1 -1
- package/esm/components/SaveReportFromKDDialog.js +11 -4
- package/esm/components/buckets/AttributeBucketItemHyperlinkConfiguration.js +2 -2
- package/esm/components/buckets/BucketReorderableItem.d.ts.map +1 -1
- package/esm/components/buckets/BucketReorderableItem.js +2 -2
- package/esm/components/buckets/DraggableBucketItem.d.ts.map +1 -1
- package/esm/components/buckets/DraggableBucketItem.js +2 -2
- package/esm/components/buckets/VisualizationPicker.d.ts.map +1 -1
- package/esm/components/buckets/VisualizationPicker.js +2 -3
- package/esm/components/catalog/hooks/ScrollableAreaHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/ScrollableAreaHook.js +2 -2
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.js +2 -2
- package/esm/components/filterBar/dateFilter/presets.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/presets.js +2 -2
- package/esm/components/saveReportFromKD/DocumentItem.d.ts +6 -0
- package/esm/components/saveReportFromKD/DocumentItem.d.ts.map +1 -0
- package/esm/components/saveReportFromKD/DocumentItem.js +11 -0
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts +3 -2
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts.map +1 -1
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.js +3 -2
- package/esm/components/shared/AttributeBubbleContent.d.ts.map +1 -1
- package/esm/components/shared/AttributeBubbleContent.js +5 -3
- package/esm/convertors/fromBackend/VisualizationConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/VisualizationConverter.js +4 -5
- package/esm/convertors/toBackend/InsightConverter.js +3 -3
- package/esm/convertors/toBackend/afm/FilterConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/FilterConverter.js +2 -2
- package/esm/convertors/toBackend/afm/MeasureConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/MeasureConverter.js +2 -2
- package/esm/models/decorated_metric_attribute_filter.d.ts.map +1 -1
- package/esm/models/decorated_metric_attribute_filter.js +3 -2
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +9 -6
- package/esm/postMessageApi/actions/open_insight_actions.d.ts.map +1 -1
- package/esm/postMessageApi/actions/open_insight_actions.js +2 -2
- package/esm/postMessageApi/sagas/command_received_saga.d.ts +68 -1
- package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/command_received_saga.js +16 -3
- package/esm/postMessageApi/sagas/control_filtering_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/control_filtering_saga.js +6 -6
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +67 -1
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/post_message_saga_helper.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/post_message_saga_helper.js +3 -3
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +2 -3
- package/esm/sagas/open_report_sagas.d.ts +9 -2
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +8 -5
- package/esm/sagas/sagas.d.ts +67 -1
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/selectors/buckets_selector.js +3 -3
- package/esm/selectors/insight_selectors.d.ts.map +1 -1
- package/esm/selectors/insight_selectors.js +3 -3
- package/esm/selectors/report_selector.d.ts.map +1 -1
- package/esm/selectors/report_selector.js +3 -2
- package/esm/selectors/report_visualization_selector.d.ts +0 -4
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts +26 -2
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_from_kd_dialog_selector.js +3 -2
- package/esm/selectors/save_report_selector.d.ts +45 -5
- package/esm/selectors/save_report_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.js +23 -12
- package/esm/services/report_service.js +3 -3
- package/esm/store/attribute_elements/attribute_elements_reducer.js +4 -4
- package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_operations.js +2 -3
- package/esm/store/buckets/buckets_removal_helpers.d.ts.map +1 -1
- package/esm/store/buckets/buckets_removal_helpers.js +4 -4
- package/esm/store/buckets/extended_reference_point_operations.d.ts.map +1 -1
- package/esm/store/buckets/extended_reference_point_operations.js +3 -3
- package/esm/store/buckets/helpers/totals_for_new_measure.js +3 -3
- package/esm/store/insight_usage/insight_usage_helpers.d.ts +2 -1
- package/esm/store/insight_usage/insight_usage_helpers.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_helpers.js +1 -0
- package/esm/store/insight_usage/insight_usage_selectors.d.ts +23 -0
- package/esm/store/insight_usage/insight_usage_selectors.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_selectors.js +4 -1
- package/esm/store/insight_usage/insight_usage_slice.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_slice.js +1 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts +6 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.js +2 -3
- package/esm/store/properties/properties_helpers.js +3 -3
- package/esm/store/recommendations/recommendations_slice.d.ts.map +1 -1
- package/esm/store/recommendations/recommendations_slice.js +2 -2
- package/esm/tests/constants.test.helpers.d.ts.map +1 -1
- package/esm/tests/constants.test.helpers.js +2 -2
- package/esm/translations/en-US.json +53 -13
- package/esm/typings/catalog.d.ts +4 -0
- package/esm/typings/catalog.d.ts.map +1 -1
- package/esm/utils/api.js +4 -4
- package/esm/utils/dropdown.js +2 -2
- package/esm/utils/hooks/WindowResizeHook.js +2 -2
- package/esm/utils/sdkModelToADRep/InsightConverter.js +3 -3
- package/package.json +21 -21
- package/styles/css/delete_report_dialog.css +16 -0
- package/styles/css/delete_report_dialog.css.map +1 -1
- package/styles/css/editor_header.css +80 -71
- package/styles/css/editor_header.css.map +1 -1
- package/styles/css/main.css +100 -71
- package/styles/css/main.css.map +1 -1
- package/styles/css/save_report_from_kd_dialog.css +6 -0
- package/styles/css/save_report_from_kd_dialog.css.map +1 -1
- package/styles/scss/delete_report_dialog.scss +21 -1
- package/styles/scss/editor_header.scss +85 -83
- package/styles/scss/save_report_from_kd_dialog.scss +8 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { compact, omit } from "lodash-es";
|
|
3
2
|
import { isComputedAttributeRef, uriRef, } from "@gooddata/sdk-model";
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { _compact, _isEmpty, _omit } from "@gooddata/util";
|
|
5
4
|
import { isVisualizationObjectAbsoluteDateFilter, isVisualizationObjectArbitraryAttributeFilter, isVisualizationObjectArithmeticMeasureDefinition, isVisualizationObjectAttributeFilter, isVisualizationObjectMatchAttributeFilter, isVisualizationObjectMeasure, isVisualizationObjectMeasureValueFilter, isVisualizationObjectNegativeAttributeFilter, isVisualizationObjectPoPMeasureDefinition, isVisualizationObjectPositiveAttributeFilter, isVisualizationObjectPreviousPeriodMeasureDefinition, isVisualizationObjectRankingFilter, isVisualizationObjectRelativeDateFilter, } from "../../typings/bear/bearTypes.js";
|
|
6
5
|
import { fromBearRef, fromScopedBearRef } from "./ObjRefConverter.js";
|
|
7
6
|
import { deserializeProperties, serializeProperties } from "./PropertiesConverter.js";
|
|
@@ -184,7 +183,7 @@ const convertMeasureDefinition = (definition) => {
|
|
|
184
183
|
return {
|
|
185
184
|
measureDefinition: {
|
|
186
185
|
...definition.measureDefinition,
|
|
187
|
-
filters: filters ?
|
|
186
|
+
filters: filters ? _compact(filters.map(convertMeasureFilter)) : [],
|
|
188
187
|
},
|
|
189
188
|
};
|
|
190
189
|
};
|
|
@@ -248,7 +247,7 @@ const resolveReferences = (mdObject) => {
|
|
|
248
247
|
return {
|
|
249
248
|
...mdObject,
|
|
250
249
|
content: {
|
|
251
|
-
...
|
|
250
|
+
..._omit(mdObject.content, "references"),
|
|
252
251
|
properties: serializeProperties(convertedProperties),
|
|
253
252
|
...referencesProp,
|
|
254
253
|
},
|
|
@@ -266,7 +265,7 @@ export const convertVisualization = (visualization, visualizationClassUri, userM
|
|
|
266
265
|
return {
|
|
267
266
|
insight: {
|
|
268
267
|
buckets: content.buckets.map(convertBucket),
|
|
269
|
-
filters: content.filters ?
|
|
268
|
+
filters: content.filters ? _compact(content.filters.map(convertFilter)) : [],
|
|
270
269
|
...(attributeFilterConfigs ? { attributeFilterConfigs: attributeFilterConfigs } : {}),
|
|
271
270
|
...(content.layers ? { layers: content.layers } : {}),
|
|
272
271
|
...(content.parameters ? { parameters: content.parameters } : {}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { omitBy } from "lodash-es";
|
|
3
3
|
import { attributeAlias, attributeDisplayFormRef, attributeLocalId, insightAttributeFilterConfigs, insightBuckets, insightCreated, insightFilters, insightId, insightIsLocked, insightLayers, insightProperties, insightSummary, insightTags, insightTitle, insightUpdated, insightUri, insightVisualizationUrl, isMeasure, } from "@gooddata/sdk-model";
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
4
|
+
import { _compact, _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { serializeProperties } from "../fromBackend/PropertiesConverter.js";
|
|
6
6
|
import { convertUrisToReferences } from "../fromBackend/ReferenceConverter.js";
|
|
7
7
|
import { convertExtendedFilter } from "./FilterConverter.js";
|
|
@@ -36,7 +36,7 @@ export const convertInsightContent = (insight, options) => {
|
|
|
36
36
|
references: {},
|
|
37
37
|
});
|
|
38
38
|
const nonEmptyProperties = omitBy(properties, (value, key) => key !== "controls" && _isEmpty(value));
|
|
39
|
-
const filters =
|
|
39
|
+
const filters = _compact(insightFilters(insight).map((filter) => convertExtendedFilter(filter, options)));
|
|
40
40
|
const attributeFilterConfigs = insightAttributeFilterConfigs(insight);
|
|
41
41
|
const layers = insightLayers(insight);
|
|
42
42
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterConverter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/toBackend/afm/FilterConverter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilterConverter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/toBackend/afm/FilterConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EAExB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAc3B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,mBAAmB,IAAI,uBAAuB,EACnD,KAAK,cAAc,IAAI,kBAAkB,EAC5C,MAAM,oCAAoC,CAAC;AAiD5C,wBAAgB,yBAAyB,CAAC,EAAE,kBAAkB,EAAE,EAAE,mBAAmB,GAAG,UAAU,GAAG,IAAI,CAYxG;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,mBAAmB,GAAG,UAAU,GAAG,IAAI,CAmB5F;AA2CD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,uBAAuB,GAAG,IAAI,CA+BrG;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,kBAAkB,GAAG,IAAI,CActF;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,cAAc,GAAG,IAAI,CAgBpE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,UAAU,GAAG,IAAI,CAW9E;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,mBAAmB,EAAE,CAExE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { filterIsEmpty, isAbsoluteDateFilter, isArbitraryAttributeFilter, isAttributeFilterWithSelection, isComparisonCondition, isMatchAttributeFilter, isMeasureValueFilter, isNegativeAttributeFilter, isObjRef, isRankingFilter, isRelativeBoundedDateFilter, isRelativeDateFilter, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
4
4
|
import { toBearRef, toScopedBearRef } from "../ObjRefConverter.js";
|
|
5
5
|
import { assertNoNulls } from "../utils.js";
|
|
6
6
|
function convertAttributeFilter(filter) {
|
|
@@ -175,5 +175,5 @@ export function convertMeasureFilter(filter) {
|
|
|
175
175
|
return null;
|
|
176
176
|
}
|
|
177
177
|
export function convertFilters(filters) {
|
|
178
|
-
return filters ?
|
|
178
|
+
return filters ? _compact(filters.map(convertFilter)) : [];
|
|
179
179
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasureConverter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/toBackend/afm/MeasureConverter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeasureConverter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/toBackend/afm/MeasureConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,QAAQ,EAKb,KAAK,kBAAkB,EAK1B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACH,KAAK,kBAAkB,IAAI,sBAAsB,EAGjD,KAAK,QAAQ,IAAI,YAAY,EAKhC,MAAM,oCAAoC,CAAC;AAM5C,wBAAgB,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,YAAY,CAmB9D;AAED,wBAAgB,kBAAkB,CAAC,WAAW,CAAC,EAAE,kBAAkB,GAAG,sBAAsB,GAAG,SAAS,CAMvG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { isArithmeticMeasureDefinition, isMeasureDefinition, isPoPMeasureDefinition, isPreviousPeriodMeasureDefinition, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
4
4
|
import { toBearRef } from "../ObjRefConverter.js";
|
|
5
5
|
import { DEFAULT_INTEGER_FORMAT, DEFAULT_PERCENTAGE_FORMAT } from "./constants.js";
|
|
6
6
|
import { convertMeasureFilter } from "./FilterConverter.js";
|
|
@@ -44,7 +44,7 @@ function convertMeasureDefinition(definition) {
|
|
|
44
44
|
}
|
|
45
45
|
function convertSimpleMeasureDefinition({ measureDefinition }) {
|
|
46
46
|
const filters = measureDefinition.filters
|
|
47
|
-
?
|
|
47
|
+
? _compact(measureDefinition.filters.map(convertMeasureFilter))
|
|
48
48
|
: [];
|
|
49
49
|
const filtersProp = filters.length ? { filters } : {};
|
|
50
50
|
const aggregation = convertAggregation(measureDefinition.aggregation);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorated_metric_attribute_filter.d.ts","sourceRoot":"","sources":["../../src/models/decorated_metric_attribute_filter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,uBAAuB,EAAgC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"decorated_metric_attribute_filter.d.ts","sourceRoot":"","sources":["../../src/models/decorated_metric_attribute_filter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,uBAAuB,EAAgC,MAAM,qBAAqB,CAAC;AAIjG,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EACH,KAAK,kBAAkB,EAI1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGvF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,EACH,KAAK,0BAA0B,EAElC,MAAM,mCAAmC,CAAC;AAkB3C;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,uBAAuB,CAE9F;AAED,MAAM,WAAW,+BAA+B;IAC5C,qDAAqD;IACrD,SAAS,EAAE,aAAa,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,0BAA0B,EAAE,CAAC;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC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
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { union } from "lodash-es";
|
|
3
3
|
import { areObjRefsEqual } from "@gooddata/sdk-model";
|
|
4
4
|
import { getTextFilterStateParts } from "@gooddata/sdk-ui-filters";
|
|
5
|
+
import { _compact } from "@gooddata/util";
|
|
5
6
|
import { isArbitraryFilterData, isMatchFilterData, isTextFilterAll, } from "../store/filter_bar/filter_bar_types.js";
|
|
6
7
|
import { shortenText } from "../utils/base.js";
|
|
7
8
|
import { DATE_DATASET_ATTRIBUTE, createDateItem } from "./date_item.js";
|
|
@@ -66,7 +67,7 @@ function getSelectionSample(selection, intl, maxChars, maxListedValues) {
|
|
|
66
67
|
const sampleItems = getSampleElements(selection, intl);
|
|
67
68
|
const prefix = getInvertedPrefix(intl, selection.isInverted);
|
|
68
69
|
const sample = prefix +
|
|
69
|
-
|
|
70
|
+
_compact(maxListedValues ? sampleItems.slice(0, maxListedValues) : sampleItems).join(SAMPLE_DELIMITER);
|
|
70
71
|
if (sample.length > maxChars) {
|
|
71
72
|
return shortenText(sample, { maxLength: maxChars - 2 });
|
|
72
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/models/metadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAG3B,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEH,KAAK,sBAAsB,EAG9B,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EACH,KAAK,yBAAyB,EAO9B,KAAK,OAAO,EAKf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAKH,KAAK,OAAO,IAAI,0BAA0B,EAE1C,KAAK,2BAA2B,EAGhC,KAA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UxB;AAED,2FAA2F;AAC3F,MAAM,WAAW,wBAAwB;IACrC,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,cAAc,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,iBAAiB,WAAY;IACtC,cAAc,EAAE,2BAA2B,CAAC;IAC5C,cAAc,EAAE,eAAe,CAAC;CACnC,KAAG,wBAA8D,CAAC"}
|
package/esm/models/metadata.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import invariant from "invariant";
|
|
3
|
-
import { negate,
|
|
3
|
+
import { negate, pick, pickBy } from "lodash-es";
|
|
4
4
|
import { areObjRefsEqual, isComputedAttributeRef, isIdentifierRef, isUriRef, measureFormat, objRefToString, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, OverTimeComparisonTypes, fillMissingFormat, } from "@gooddata/sdk-ui";
|
|
6
6
|
import { Axis } from "@gooddata/sdk-ui-ext/internal";
|
|
7
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _isEmpty, _omit } from "@gooddata/util";
|
|
8
8
|
import { ATTRIBUTE, COMPUTED_ATTRIBUTE, DATE, GEO_ATTRIBUTE, METRIC } from "../constants/bucket.js";
|
|
9
9
|
import { ALL_TIME } from "../constants/presets.js";
|
|
10
10
|
import { isElementUrisSupported } from "../selectors/backend_capabilities_selector.js";
|
|
@@ -1122,7 +1122,10 @@ export function normalizeEmptyDateValuesFilters(visualizationFilters, dateDatase
|
|
|
1122
1122
|
const mode = emptyValueHandlingToMd(storedMode ?? emptyDateValuesFilters[objRefToString(dataSet)]?.mode);
|
|
1123
1123
|
if (isVisualizationObjectAbsoluteDateFilter(filter)) {
|
|
1124
1124
|
return {
|
|
1125
|
-
absoluteDateFilter: {
|
|
1125
|
+
absoluteDateFilter: {
|
|
1126
|
+
..._omit(filter.absoluteDateFilter, "emptyValueHandling"),
|
|
1127
|
+
...mode,
|
|
1128
|
+
},
|
|
1126
1129
|
};
|
|
1127
1130
|
}
|
|
1128
1131
|
const { granularity, from, to } = filter.relativeDateFilter;
|
|
@@ -1141,7 +1144,7 @@ export function normalizeEmptyDateValuesFilters(visualizationFilters, dateDatase
|
|
|
1141
1144
|
};
|
|
1142
1145
|
}
|
|
1143
1146
|
return {
|
|
1144
|
-
relativeDateFilter: { ...
|
|
1147
|
+
relativeDateFilter: { ..._omit(filter.relativeDateFilter, "emptyValueHandling"), ...mode },
|
|
1145
1148
|
};
|
|
1146
1149
|
});
|
|
1147
1150
|
}
|
|
@@ -1417,7 +1420,7 @@ export function omitIrrelevantPropertiesForAvailability(mdObject) {
|
|
|
1417
1420
|
export function pickRelevantFromReportMDObj(metadataObject) {
|
|
1418
1421
|
return pick(metadataObject, ["buckets", "filters"]);
|
|
1419
1422
|
}
|
|
1420
|
-
const omitMeasureFormat = (bucketItem) =>
|
|
1423
|
+
const omitMeasureFormat = (bucketItem) => _omit(bucketItem, ["measure.format"]);
|
|
1421
1424
|
function omitMeasureFormatFromReportMDObj(metadataObject) {
|
|
1422
1425
|
return {
|
|
1423
1426
|
...metadataObject,
|
|
@@ -1428,7 +1431,7 @@ function omitMeasureFormatFromReportMDObj(metadataObject) {
|
|
|
1428
1431
|
};
|
|
1429
1432
|
}
|
|
1430
1433
|
function removeTotalsFromBucket(bucket) {
|
|
1431
|
-
return
|
|
1434
|
+
return _omit(bucket, ["totals"]);
|
|
1432
1435
|
}
|
|
1433
1436
|
export function omitTotalsFromReportMDObj(metadataObject) {
|
|
1434
1437
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open_insight_actions.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/open_insight_actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"open_insight_actions.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/actions/open_insight_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAGzG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAMpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,WAAW,yBAA0B,SAAQ,0BAA0B;IACzE,iBAAiB,EAAE,kBAAkB,CAAC;CACzC;AAED,MAAM,WAAW,+BAAgC,SAAQ,0BAA0B;IAC/E,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,iCAAkC,SAAQ,0BAA0B;IACjF,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,0MAqBhC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEzE,eAAO,MAAM,iBAAiB,6MAS7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,sMAS/B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import { createAction } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
import { DEFAULT_POST_MESSAGE_CONTEXT_ID, createPostMessageContextFromId, } from "../actions/post_message_action_helper.js";
|
|
5
5
|
import { PostEventActionTypeKeys } from "./action_types.js";
|
|
6
6
|
export const openInsightRequested = createAction(PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED, (openInsightCommandData) => {
|
|
@@ -12,7 +12,7 @@ export const openInsightRequested = createAction(PostEventActionTypeKeys.OPEN_IN
|
|
|
12
12
|
*/
|
|
13
13
|
const { insightId, reportId } = data;
|
|
14
14
|
const customRouteParams = {
|
|
15
|
-
...
|
|
15
|
+
..._omit(data, "insightId"),
|
|
16
16
|
reportId: insightId || reportId,
|
|
17
17
|
};
|
|
18
18
|
const payload = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Channel } from "redux-saga";
|
|
1
2
|
import { type IDrillableItemsCommandBody } from "@gooddata/sdk-embedding";
|
|
2
3
|
import { PostEventActionTypeKeys } from "../actions/action_types.js";
|
|
3
4
|
import { type ICommandReceivedAction } from "../actions/command_received_actions.js";
|
|
@@ -51,5 +52,71 @@ export declare function handleReceivedCommand({ payload: { data: commandData, or
|
|
|
51
52
|
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
52
53
|
type: PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
53
54
|
}>, void, boolean>;
|
|
54
|
-
export declare function watchCommandReceived(): Generator<import("redux-saga/effects").
|
|
55
|
+
export declare function watchCommandReceived(): Generator<import("redux-saga/effects").ActionChannelEffect | import("redux-saga/effects").CallEffect<Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
56
|
+
payload: undefined;
|
|
57
|
+
type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
|
|
58
|
+
}> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
59
|
+
payload: import("../../actions/confirm_unsaved_changes_actions.js").IConfirmUnsavedChangesDialogActionPayload;
|
|
60
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SAGA_CONFIRM_UNSAVED_CHANGES_REQUEST;
|
|
61
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
62
|
+
payload: string | undefined;
|
|
63
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SET_TIMEZONE_OVERRIDE;
|
|
64
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | import("redux-saga/effects").PutEffect<{
|
|
65
|
+
payload: IDrillableItemsCommandBody;
|
|
66
|
+
type: import("../../constants/actions.js").ActionTypeKeys.CONVERT_DRILLABLE_ITEMS;
|
|
67
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
68
|
+
payload: import("../actions/command_error_actions.js").IInsecureCommandFailedActionPayload;
|
|
69
|
+
type: PostEventActionTypeKeys.INSECURE_COMMAND_FAILED;
|
|
70
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
71
|
+
payload: import("../actions/open_insight_actions.js").IOpenInsightActionPayload;
|
|
72
|
+
type: PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED;
|
|
73
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
74
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
75
|
+
type: PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
|
|
76
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
77
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
78
|
+
type: PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
|
|
79
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
80
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
81
|
+
type: PostEventActionTypeKeys.CLEAR_INSIGHT_CONTENT_REQUESTED;
|
|
82
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
83
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
84
|
+
type: PostEventActionTypeKeys.UNDO_REQUESTED;
|
|
85
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
86
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
87
|
+
type: PostEventActionTypeKeys.REDO_REQUESTED;
|
|
88
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
89
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload & import("@gooddata/sdk-embedding").IAdExportInsightCommandBody;
|
|
90
|
+
type: PostEventActionTypeKeys.EXPORT_INSIGHT_REQUESTED;
|
|
91
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
92
|
+
payload: import("@gooddata/sdk-embedding").IRemoveFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
93
|
+
type: PostEventActionTypeKeys.REMOVE_FILTER_CONTEXT_REQUESTED;
|
|
94
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
95
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveAsInsightCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
96
|
+
type: PostEventActionTypeKeys.SAVE_AS_INSIGHT_REQUESTED;
|
|
97
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
98
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
99
|
+
type: PostEventActionTypeKeys.SAVE_INSIGHT_REQUESTED;
|
|
100
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
101
|
+
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
102
|
+
type: PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
103
|
+
}>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
|
|
104
|
+
payload: {
|
|
105
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
106
|
+
origin: string;
|
|
107
|
+
};
|
|
108
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
109
|
+
}>, void, Channel<{
|
|
110
|
+
payload: {
|
|
111
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
112
|
+
origin: string;
|
|
113
|
+
};
|
|
114
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
115
|
+
}> & {
|
|
116
|
+
payload: {
|
|
117
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
118
|
+
origin: string;
|
|
119
|
+
};
|
|
120
|
+
type: PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
121
|
+
}>;
|
|
55
122
|
//# sourceMappingURL=command_received_saga.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command_received_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/command_received_saga.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command_received_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/command_received_saga.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAIH,KAAK,0BAA0B,EAgBlC,MAAM,yBAAyB,CAAC;AAajC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAiBrF,wBAAsB,kBAAkB,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE9F;AA4DD,wBAAiB,qBAAqB,CAAC,EACnC,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GACxD,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgExB;AAED,wBAAiB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { call, put, select,
|
|
2
|
+
import { actionChannel, call, put, select, take } from "redux-saga/effects";
|
|
3
3
|
import { GdcErrorType, getEventType, isAdClearCommandData, isAdClearInsightCommandData, isAdDrillableItemsCommandData, isAdExportInsightCommandData, isAdOpenInsightCommandData, isAdRedoCommandData, isAdRemoveFilterContextCommandData, isAdRequestCancellationCommandData, isAdSaveAsInsightCommandData, isAdSaveInsightCommandData, isAdSetApiTokenCommandData, isAdSetFilterContextCommandData, isAdSetTimezoneCommandData, isAdUndoCommandData, } from "@gooddata/sdk-embedding";
|
|
4
4
|
import { isValidIanaTimezoneId } from "@gooddata/sdk-model";
|
|
5
5
|
import { conversionInit } from "../../actions/drillable_items_actions.js";
|
|
@@ -7,7 +7,7 @@ import { setTimezoneOverride } from "../../actions/timezone_override_actions.js"
|
|
|
7
7
|
import { backend } from "../../backend.js";
|
|
8
8
|
import { HOST_ADAPTER_ORIGIN, getHostAdapter } from "../../embedding/hostBridge.js";
|
|
9
9
|
import { getOrganizationId } from "../../selectors/bootstrap_selector.js";
|
|
10
|
-
import { isEmbeddingWriteCommandsEnabled, isEnableTimezoneChange, } from "../../selectors/feature_flag_selector.js";
|
|
10
|
+
import { isEmbeddingOriginValidationEnabled, isEmbeddingWriteCommandsEnabled, isEnableTimezoneChange, } from "../../selectors/feature_flag_selector.js";
|
|
11
11
|
import { PostEventActionTypeKeys } from "../actions/action_types.js";
|
|
12
12
|
import { clearInsightRequested } from "../actions/clear_insight_actions.js";
|
|
13
13
|
import { clearInsightContentRequested } from "../actions/clear_insight_content_actions.js";
|
|
@@ -27,6 +27,11 @@ export async function validateHostDomain(organizationId, url) {
|
|
|
27
27
|
return backend.organization(organizationId).securitySettings().isUrlValid(url, "UI_EVENT");
|
|
28
28
|
}
|
|
29
29
|
function* isCommandOriginValid(origin) {
|
|
30
|
+
const isValidationEnabled = yield select(isEmbeddingOriginValidationEnabled);
|
|
31
|
+
// Without the flag, no backend call: every origin is valid, as before the validation existed.
|
|
32
|
+
if (!isValidationEnabled) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
30
35
|
try {
|
|
31
36
|
const organizationId = yield select(getOrganizationId);
|
|
32
37
|
const result = yield call(validateHostDomain, organizationId, origin);
|
|
@@ -69,6 +74,8 @@ export function* handleReceivedCommand({ payload: { data: commandData, origin: c
|
|
|
69
74
|
? true
|
|
70
75
|
: yield call(isCommandOriginValid, commandOrigin);
|
|
71
76
|
if (!isValidOrigin) {
|
|
77
|
+
// oxlint-disable-next-line eslint-js/no-console
|
|
78
|
+
console.warn(`Denied the "${commandType}" command from the origin "${commandOrigin}". The origin is not in the embedding origins of the organization, or the check failed.`);
|
|
72
79
|
yield put(hostVerificationFailed(contextId));
|
|
73
80
|
return;
|
|
74
81
|
}
|
|
@@ -129,5 +136,11 @@ export function* handleReceivedCommand({ payload: { data: commandData, origin: c
|
|
|
129
136
|
}
|
|
130
137
|
}
|
|
131
138
|
export function* watchCommandReceived() {
|
|
132
|
-
|
|
139
|
+
// The channel keeps the commands that arrive while a command is handled, for example while its
|
|
140
|
+
// origin check waits for the backend. The commands then run one by one in the order they arrived.
|
|
141
|
+
const commandChannel = yield actionChannel(PostEventActionTypeKeys.COMMAND_RECEIVED);
|
|
142
|
+
while (true) {
|
|
143
|
+
const commandReceivedAction = yield take(commandChannel);
|
|
144
|
+
yield call(handleReceivedCommand, commandReceivedAction);
|
|
145
|
+
}
|
|
133
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control_filtering_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/control_filtering_saga.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control_filtering_saga.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/control_filtering_saga.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAKhC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEH,KAAK,oCAAoC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AAE,0BAA0B,EAAE,qXAsF/F;AAED,wBAAiB,qBAAqB,6EAcrC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { partition, uniq, uniqBy } from "lodash-es";
|
|
3
2
|
import moment from "moment";
|
|
4
3
|
import { all, call, put, race, select, take, takeEvery } from "redux-saga/effects";
|
|
5
4
|
import { isUnexpectedResponseError } from "@gooddata/sdk-backend-spi";
|
|
6
5
|
import { isPositiveAttributeFilter, isRemoveAttributeFilter, isRemoveDateFilter, isRemoveRankingFilter, } from "@gooddata/sdk-embedding";
|
|
7
6
|
import { filterConverters, toDisplayFormRefType, } from "@gooddata/sdk-embedding/internal";
|
|
8
7
|
import { areObjRefsEqual, idRef, isComputedAttributeRef, isUriRef, uriRef, } from "@gooddata/sdk-model";
|
|
8
|
+
import { _partition, _uniq, _uniqBy } from "@gooddata/util";
|
|
9
9
|
import { updateItemCache } from "../../actions/data_actions.js";
|
|
10
10
|
import { MAX_ATTRIBUTE_FILTERS_COUNT } from "../../constants/catalog_filters.js";
|
|
11
11
|
import { generateBucketItemIdentifier } from "../../models/bucket_item_identifier.js";
|
|
@@ -156,7 +156,7 @@ export function* validateExternalRankingFilter(rankingFilter) {
|
|
|
156
156
|
throw new Error(ERROR_INVALID_RANKING_FILTER_ATTRIBUTES);
|
|
157
157
|
}
|
|
158
158
|
const areAttributeLocalIdentifiersDuplicates = attributeLocalIdentifiers &&
|
|
159
|
-
|
|
159
|
+
_uniq(attributeLocalIdentifiers).length !== attributeLocalIdentifiers.length;
|
|
160
160
|
if (areAttributeLocalIdentifiersDuplicates) {
|
|
161
161
|
throw new Error(ERROR_DUPLICATED_RANKING_FILTER_ATTRIBUTES);
|
|
162
162
|
}
|
|
@@ -547,7 +547,7 @@ export function* getValidExternalAttributeFilters(externalFilters) {
|
|
|
547
547
|
return externalFiltersFromCached;
|
|
548
548
|
}
|
|
549
549
|
// a computed attribute has no labels, so it cannot go through the display form lookup below
|
|
550
|
-
const [computedAttributeRefs, labelRefs] =
|
|
550
|
+
const [computedAttributeRefs, labelRefs] = _partition(externalObjRefs, (ref) => isComputedAttributeRef(ref));
|
|
551
551
|
const validatedComputedAttributeFilters = computedAttributeRefs.length
|
|
552
552
|
? yield call(validateExternalComputedAttributeFilters, externalFilters, computedAttributeRefs)
|
|
553
553
|
: [];
|
|
@@ -936,19 +936,19 @@ export function* validateRemoveAttributeFilters(externalAttFilters) {
|
|
|
936
936
|
}
|
|
937
937
|
return mappingRemoveFilters;
|
|
938
938
|
}, { identifiers: [], uris: [] });
|
|
939
|
-
if (
|
|
939
|
+
if (_uniq(uris).length !== uris.length) {
|
|
940
940
|
throw new Error(ERROR_DUPLICATED_ATTRIBUTE_FILTER_URIS);
|
|
941
941
|
}
|
|
942
942
|
yield call(rejectComputedAttributesWhenDisabled, identifiers.some(({ dfType }) => dfType === "computedAttribute"));
|
|
943
943
|
// a label and a computed attribute sharing the identifier are two different filters
|
|
944
|
-
if (
|
|
944
|
+
if (_uniqBy(identifiers, ({ identifier, dfType }) => `${dfType}.${identifier}`).length !==
|
|
945
945
|
identifiers.length) {
|
|
946
946
|
throw new Error(ERROR_DUPLICATED_ATTRIBUTE_FILTER_IDENTIFIERS);
|
|
947
947
|
}
|
|
948
948
|
// validate external attribute filters uris; computed attributes have no labels and resolve through
|
|
949
949
|
// their own service
|
|
950
950
|
const appState = yield select();
|
|
951
|
-
const [computedAttributeIdentifiers, labelIdentifiers] =
|
|
951
|
+
const [computedAttributeIdentifiers, labelIdentifiers] = _partition(identifiers, ({ dfType }) => dfType === "computedAttribute");
|
|
952
952
|
const objRefs = [];
|
|
953
953
|
labelIdentifiers.forEach(({ identifier }) => objRefs.push(idRef(identifier, "displayForm")));
|
|
954
954
|
uris.forEach((uri) => objRefs.push(uriRef(uri)));
|
|
@@ -1,2 +1,68 @@
|
|
|
1
|
-
export declare function watchIncomingCommands(): Generator<import("redux-saga/effects").AllEffect<Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown
|
|
1
|
+
export declare function watchIncomingCommands(): Generator<import("redux-saga/effects").AllEffect<Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown> | Generator<import("redux-saga/effects").ActionChannelEffect | import("redux-saga/effects").CallEffect<Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
2
|
+
payload: undefined;
|
|
3
|
+
type: import("../../sagas/application_context/application_context_actions.js").ApplicationContextActionsTypeKeys;
|
|
4
|
+
}> | import("redux-saga/effects").SelectEffect, void, string | undefined> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
5
|
+
payload: import("../../actions/confirm_unsaved_changes_actions.js").IConfirmUnsavedChangesDialogActionPayload;
|
|
6
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SAGA_CONFIRM_UNSAVED_CHANGES_REQUEST;
|
|
7
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | Generator<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
8
|
+
payload: string | undefined;
|
|
9
|
+
type: import("../../constants/actions.js").ActionTypeKeys.SET_TIMEZONE_OVERRIDE;
|
|
10
|
+
}> | import("redux-saga/effects").SelectEffect, void, boolean> | import("redux-saga/effects").PutEffect<{
|
|
11
|
+
payload: import("@gooddata/sdk-embedding").IDrillableItemsCommandBody;
|
|
12
|
+
type: import("../../constants/actions.js").ActionTypeKeys.CONVERT_DRILLABLE_ITEMS;
|
|
13
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
14
|
+
payload: import("../actions/command_error_actions.js").IInsecureCommandFailedActionPayload;
|
|
15
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.INSECURE_COMMAND_FAILED;
|
|
16
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
17
|
+
payload: import("../actions/open_insight_actions.js").IOpenInsightActionPayload;
|
|
18
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.OPEN_INSIGHT_REQUESTED;
|
|
19
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
20
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
21
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.HOST_VERIFICATION_FAILED;
|
|
22
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
23
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
24
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.CLEAR_INSIGHT_REQUESTED;
|
|
25
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
26
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
27
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.CLEAR_INSIGHT_CONTENT_REQUESTED;
|
|
28
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
29
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
30
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.UNDO_REQUESTED;
|
|
31
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
32
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
33
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.REDO_REQUESTED;
|
|
34
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
35
|
+
payload: import("@gooddata/sdk-embedding").IPostMessageContextPayload & import("@gooddata/sdk-embedding").IAdExportInsightCommandBody;
|
|
36
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.EXPORT_INSIGHT_REQUESTED;
|
|
37
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
38
|
+
payload: import("@gooddata/sdk-embedding").IRemoveFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
39
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.REMOVE_FILTER_CONTEXT_REQUESTED;
|
|
40
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
41
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveAsInsightCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
42
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SAVE_AS_INSIGHT_REQUESTED;
|
|
43
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
44
|
+
payload: import("@gooddata/sdk-embedding").IAdSaveCommandBody & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
45
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SAVE_INSIGHT_REQUESTED;
|
|
46
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
47
|
+
payload: import("@gooddata/sdk-embedding").IFilterContextContent & import("@gooddata/sdk-embedding").IPostMessageContextPayload;
|
|
48
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.SET_FILTER_CONTEXT_REQUESTED;
|
|
49
|
+
}>, void, boolean>> | import("redux-saga/effects").ChannelTakeEffect<{
|
|
50
|
+
payload: {
|
|
51
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
52
|
+
origin: string;
|
|
53
|
+
};
|
|
54
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
55
|
+
}>, void, import("redux-saga").Channel<{
|
|
56
|
+
payload: {
|
|
57
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
58
|
+
origin: string;
|
|
59
|
+
};
|
|
60
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
61
|
+
}> & {
|
|
62
|
+
payload: {
|
|
63
|
+
data: import("@gooddata/sdk-embedding").AdCommandData;
|
|
64
|
+
origin: string;
|
|
65
|
+
};
|
|
66
|
+
type: import("../actions/action_types.js").PostEventActionTypeKeys.COMMAND_RECEIVED;
|
|
67
|
+
}>>, void, unknown>;
|
|
2
68
|
//# sourceMappingURL=incoming_command_sagas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incoming_command_sagas.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/incoming_command_sagas.ts"],"names":[],"mappings":"AAoBA,wBAAiB,qBAAqB
|
|
1
|
+
{"version":3,"file":"incoming_command_sagas.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/incoming_command_sagas.ts"],"names":[],"mappings":"AAoBA,wBAAiB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkBrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post_message_saga_helper.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/post_message_saga_helper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post_message_saga_helper.d.ts","sourceRoot":"","sources":["../../../src/postMessageApi/sagas/post_message_saga_helper.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAElC,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAEH,KAAK,0BAA0B,EAClC,MAAM,0CAA0C,CAAC;AAkBlD,eAAO,MAAM,yBAAyB,oBACjB,OAAO,mCAEzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAUvB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,yBAAyB,CAAC,EAAE,0BAA0B,GAAG,MAAM,CAGtG;AAED,wBAAgB,sCAAsC,CAAC,WAAW,EAAE,aAAa,GAAG,MAAM,CAGzF;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,EAAE,EACF,WAAW,EACX,aAAa,GAChB,EAAE,0BAA0B,GAAG,iBAAiB,CAehD;AAED,wBAAgB,2BAA2B,CACvC,UAAU,EAAE,0BAA0B,EACtC,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,OAAO,EACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM;;;EAoB9B;AAUD,wBAAgB,4CAA4C,CACxD,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,eAAe,GAC7B,aAAa,CAIf;AAED;;;;;;;GAOG;AACH,wBAAgB,mDAAmD,CAC/D,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,eAAe,EAC5B,MAAM,GAAE,kBAAkC,GAC3C,aAAa,CAOf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import moment from "moment";
|
|
4
3
|
import { filterConverters, } from "@gooddata/sdk-embedding/internal";
|
|
4
|
+
import { _omit } from "@gooddata/util";
|
|
5
5
|
import { ALL_TIME } from "../../constants/presets.js";
|
|
6
6
|
import { GRANULARITY } from "../../models/granularity.js";
|
|
7
7
|
import { DEFAULT_POST_MESSAGE_CONTEXT_ID, } from "../actions/post_message_action_helper.js";
|
|
@@ -27,9 +27,9 @@ export const getSupportedGranularities = (isTimeSupported, isSecondsSupported =
|
|
|
27
27
|
// otherwise an embedder could set a second filter that the UI then rejects and resets.
|
|
28
28
|
return isSecondsSupported
|
|
29
29
|
? SUPPORTED_DATE_GRANULARITY
|
|
30
|
-
:
|
|
30
|
+
: _omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second"]);
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return _omit(SUPPORTED_DATE_GRANULARITY, ["GDC.time.second", "GDC.time.minute", "GDC.time.hour"]);
|
|
33
33
|
};
|
|
34
34
|
export function getPostMessageContextId(postMessageContextContent) {
|
|
35
35
|
const { contextId } = postMessageContextContent || {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog_saga.d.ts","sourceRoot":"","sources":["../../../src/sagas/catalog/catalog_saga.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"catalog_saga.d.ts","sourceRoot":"","sources":["../../../src/sagas/catalog/catalog_saga.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EACH,KAAK,cAAc,EAUtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AACzG,OAAO,EACH,KAAK,WAAW,EAEhB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAQhC,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAyC5D,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAS5E,OAAO,EAEH,KAAK,uCAAuC,EAC5C,KAAK,8BAA8B,EACnC,KAAK,8CAA8C,EACnD,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC9C,MAAM,yBAAyB,CAAC;AAyCjC,wBAAiB,YAAY,CAAC,eAAe,GAAE,OAAO,CAAC,+BAA+B,CAAM,iRAa3F;AAED,wBAAiB,uBAAuB,CAAC,OAAO,EAAE,kBAAkB,mSAUnE;AAqBD,wBAAiB,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,qGAW5D;AAED,wBAAiB,wBAAwB;;;;;6BAOxC;AAID,wBAAiB,cAAc;;;;;6DA2B9B;AAED,wBAAiB,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;uCAqBzC;AAED,wBAAiB,WAAW,CAAC,mBAAmB,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;4EAuBvD;AAQD,wBAAiB,4BAA4B,CAAC,OAAO,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAUxE;AAED,wBAAiB,8BAA8B,CAAC,OAAO,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;8FAE1E;AAED,wBAAiB,iCAAiC,iPAmCjD;AAgBD,wBAAiB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC;;;;;;;;uIAczG;AAED,wBAAiB,gBAAgB,CAAC,MAAM,EAAE,uCAAuC;;;;;;;;;;gkBA4BhF;AAQD;;GAEG;AACH,wBAAiB,oBAAoB,CAAC,MAAM,EAAE,8BAA8B;;;;;;;;8EAa3E;AAED,wBAAiB,sCAAsC,CACnD,MAAM,EAAE,8CAA8C;;;;;mBAGzD;AAED,wBAAiB,qCAAqC,CAAC,MAAM,EAAE,sCAAsC;;;;;;;;;;;;;6FAoBpG;AAED,wBAAiB,qCAAqC,CAAC,MAAM,EAAE,sCAAsC;;;;;;;;;;;;;6FAuBpG;AAED,wBAAiB,YAAY,4EAiB5B"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { all, call, cancel, delay, fork, put, select, take, takeEvery, } from "redux-saga/effects";
|
|
4
3
|
import { catalogItemMetadataObject, idRef, insightBuckets, insightVisualizationUrl, isNumberParameterDefinition, isStringParameterDefinition, newInsightDefinition, } from "@gooddata/sdk-model";
|
|
5
|
-
import { _isEqual } from "@gooddata/util";
|
|
4
|
+
import { _compact, _isEqual } from "@gooddata/util";
|
|
6
5
|
import { refreshSessionId } from "../../actions/app_context_actions.js";
|
|
7
6
|
import { updateItemCache } from "../../actions/data_actions.js";
|
|
8
7
|
import { dataSourceError } from "../../actions/messages_actions.js";
|
|
@@ -146,7 +145,7 @@ export function* loadCatalog(refreshAvailability = false) {
|
|
|
146
145
|
yield put(setLoadingItems(true));
|
|
147
146
|
yield put(setLoadingGroups(true));
|
|
148
147
|
try {
|
|
149
|
-
yield all(
|
|
148
|
+
yield all(_compact([
|
|
150
149
|
call(loadCatalogItemsAndGroups),
|
|
151
150
|
call(loadDateDatasetsWithAllDates),
|
|
152
151
|
call(loadParameters),
|
|
@@ -15,7 +15,10 @@ export declare function openReportRequested({ payload: { forceOpen, insightRef }
|
|
|
15
15
|
type: ActionTypeKeys.SHOW_DIALOG_OPEN_REPORT_CONFIRMATION;
|
|
16
16
|
}> | import("redux-saga/effects").SelectEffect, void, never>;
|
|
17
17
|
export declare function getReferencedObjects(projectId: string, insight: IInsight): Generator<import("redux-saga/effects").CallEffect<IInsightReferences>, IInsightReferences, IInsightReferences>;
|
|
18
|
-
export declare function getObjectsReferencing(projectId: string, insight: IInsight): Generator<import("redux-saga/effects").CallEffect<import("@gooddata/sdk-backend-spi").IInsightReferencing>,
|
|
18
|
+
export declare function getObjectsReferencing(projectId: string, insight: IInsight): Generator<import("redux-saga/effects").CallEffect<import("@gooddata/sdk-backend-spi").IInsightReferencing>, {
|
|
19
|
+
dashboards: IMetadataObject[];
|
|
20
|
+
documents: IMetadataObject[];
|
|
21
|
+
}, import("@gooddata/sdk-backend-spi").IInsightReferencing>;
|
|
19
22
|
/**
|
|
20
23
|
* Switches to a dataset that is relevant to the current insight if the dataset selected when opening the insight is not relevant.
|
|
21
24
|
* @param datasetsFromInsight - datasets referenced by insight
|
|
@@ -91,7 +94,10 @@ export declare function failOnMissingDateFilterItems(insight: IInsight): Generat
|
|
|
91
94
|
* date values mode.
|
|
92
95
|
*/
|
|
93
96
|
export declare function hasDateFilterWithUnsupportedGranularity(insight: IInsight): boolean;
|
|
94
|
-
export declare function fetchReport(projectId: string, reportId: string): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<
|
|
97
|
+
export declare function fetchReport(projectId: string, reportId: string): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<{
|
|
98
|
+
dashboards: IMetadataObject[];
|
|
99
|
+
documents: IMetadataObject[];
|
|
100
|
+
}>> | import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").CallEffect<number> | import("redux-saga/effects").CallEffect<import("@gooddata/sdk-model").IListedDashboard[]> | import("redux-saga/effects").CallEffect<IApplicationResetCarrier> | import("redux-saga/effects").CallEffect<import("../store/report/open_report_operation.js").IOpenReportResult> | import("redux-saga/effects").CallEffect<IParameterRestoreResult> | import("redux-saga/effects").CallEffect<{
|
|
95
101
|
itemCache: {
|
|
96
102
|
[x: string]: import("../typings/state_objects.js").ICatalogEntry;
|
|
97
103
|
};
|
|
@@ -143,6 +149,7 @@ export declare function fetchReport(projectId: string, reportId: string): Genera
|
|
|
143
149
|
payload: {
|
|
144
150
|
usages: IMetadataObject[];
|
|
145
151
|
dashboards: import("@gooddata/sdk-model").IListedDashboard[];
|
|
152
|
+
documents: IMetadataObject[];
|
|
146
153
|
};
|
|
147
154
|
type: ActionTypeKeys.STORE_UPDATE_INSIGHT_USAGE_ON_DASHBOARDS;
|
|
148
155
|
}> | import("redux-saga/effects").SelectEffect | import("redux-saga/effects").TakeEffect, void, never>;
|