@gooddata/sdk-ui-analytical-designer 11.70.0-alpha.2 → 11.70.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/components/buckets/MeasureDateFilterPicker.d.ts +0 -4
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterPicker.js +8 -3
- package/esm/components/buckets/MeasureDateFilterTitle.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterTitle.js +5 -14
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.d.ts +2 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.js +6 -2
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.d.ts +2 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.js +2 -2
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.d.ts +6 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.js +2 -2
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts +2 -2
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +16 -8
- package/esm/components/filterBar/dateFilter/DateFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/DateFilter.js +11 -3
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.d.ts +1 -1
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.js +10 -16
- package/esm/models/date_filter.d.ts +1 -5
- package/esm/models/date_filter.d.ts.map +1 -1
- package/esm/models/date_filter.js +2 -13
- package/esm/models/empty_date_values_title.d.ts +15 -0
- package/esm/models/empty_date_values_title.d.ts.map +1 -0
- package/esm/models/empty_date_values_title.js +25 -0
- package/esm/models/metadata.d.ts +12 -6
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +30 -17
- package/esm/postMessageApi/sagas/api_token_origin_check.d.ts +23 -0
- package/esm/postMessageApi/sagas/api_token_origin_check.d.ts.map +1 -0
- package/esm/postMessageApi/sagas/api_token_origin_check.js +58 -0
- package/esm/postMessageApi/sagas/api_token_received_saga.d.ts +10 -2
- package/esm/postMessageApi/sagas/api_token_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/api_token_received_saga.js +19 -2
- package/esm/postMessageApi/sagas/command_received_saga.d.ts +0 -6
- package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/command_received_saga.js +14 -3
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +0 -3
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.d.ts +2 -3
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +26 -18
- package/esm/sagas/sagas.d.ts +0 -3
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.d.ts +23 -2
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +2 -0
- package/esm/selectors/report_visualization_selector.d.ts +4 -0
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.d.ts +2 -0
- package/esm/selectors/save_report_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.js +8 -6
- package/esm/store/catalog/catalog_reducer.d.ts +2 -1
- package/esm/store/catalog/catalog_reducer.d.ts.map +1 -1
- package/esm/store/catalog/catalog_reducer.js +3 -0
- package/esm/store/catalog/catalog_selector.d.ts +124 -0
- package/esm/store/catalog/catalog_selector.d.ts.map +1 -1
- package/esm/store/catalog/catalog_selector.js +6 -2
- package/esm/store/catalog/catalog_store_actions.d.ts +3 -4
- package/esm/store/catalog/catalog_store_actions.d.ts.map +1 -1
- package/esm/store/catalog/catalog_store_actions.js +1 -1
- package/esm/store/catalog/catalog_types.d.ts +2 -1
- package/esm/store/catalog/catalog_types.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 +10 -2
- package/esm/translations/en-US.json +8 -0
- package/esm/utils/custom_mouse_backend.d.ts.map +1 -1
- package/esm/utils/custom_mouse_backend.js +9 -2
- package/esm/utils/sdkModelToADRep/FilterConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/FilterConverter.js +4 -1
- package/package.json +21 -21
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type CatalogItem, type ICatalogAttributeHierarchy, type ICatalogDateAttributeHierarchy, type ICatalogGroup
|
|
1
|
+
import { type CatalogItem, type ICatalogAttributeHierarchy, type ICatalogDateAttributeHierarchy, type ICatalogGroup } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IOrganizedCatalogTooltipDetails } from "../../typings/catalog.js";
|
|
3
|
+
import { type ICatalogState } from "./catalog_types.js";
|
|
3
4
|
export type CatalogAction = ISetCatalogItemsAction | ISetCatalogGroupsAction | ISetCatalogLoadingFlagAction | ISetCatalogItemsAvailabilityAction | ISetCatalogAvailabilityErrorFlagAction | ISetCatalogFirstLoadedFlagAction | ISetItemTooltipDetailsAction | ISetUpdatedItemsCountAction | IResetTooltipDetailsAction | ISetIsWorkspaceEmptyAction | IToggleUnavailableItemsVisibilityAction | ISetDateHierarchies | ISetAttributeHierarchies | ISetCatalogAttributeHierarchiesHasChanged | ISetCatalogParameters;
|
|
4
5
|
export declare enum CatalogActionTypeKeys {
|
|
5
6
|
STORE_SET_CATALOG_ITEMS = "STORE/SET_CATALOG_ITEMS",
|
|
@@ -86,8 +87,6 @@ export declare const setAttributeHierarchies: import("@reduxjs/toolkit").ActionC
|
|
|
86
87
|
attributeHierarchies: ICatalogAttributeHierarchy[];
|
|
87
88
|
}, CatalogActionTypeKeys.STORE_SET_ATTRIBUTE_HIERARCHIES, never, never>;
|
|
88
89
|
export type ISetAttributeHierarchies = ReturnType<typeof setAttributeHierarchies>;
|
|
89
|
-
export declare const setCatalogParameters: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[
|
|
90
|
-
parameters: readonly IScalarParameterMetadataObject[];
|
|
91
|
-
}, CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS, never, never>;
|
|
90
|
+
export declare const setCatalogParameters: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[lists: Pick<ICatalogState, "dateRangeParameters" | "parameters">], Pick<ICatalogState, "dateRangeParameters" | "parameters">, CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS, never, never>;
|
|
92
91
|
export type ISetCatalogParameters = ReturnType<typeof setCatalogParameters>;
|
|
93
92
|
//# sourceMappingURL=catalog_store_actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog_store_actions.d.ts","sourceRoot":"","sources":["../../../src/store/catalog/catalog_store_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"catalog_store_actions.d.ts","sourceRoot":"","sources":["../../../src/store/catalog/catalog_store_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8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AAO,kBAAkB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB;;uEAGnC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAElF,eAAO,MAAM,oBAAoB,8PAGhC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -36,4 +36,4 @@ export const setIsWorkspaceEmpty = createAction(CatalogActionTypeKeys.STORE_SET_
|
|
|
36
36
|
export const toggleUnavailableItemsVisibility = createAction(CatalogActionTypeKeys.STORE_TOGGLE_UNAVAILABLE_ITEMS_VISIBILITY, (showUnavailableItems) => ({ payload: { showUnavailableItems } }));
|
|
37
37
|
export const setDateHierarchies = createAction(CatalogActionTypeKeys.STORE_SET_DATE_HIERARCHIES, (dateHierarchies) => ({ payload: { dateHierarchies } }));
|
|
38
38
|
export const setAttributeHierarchies = createAction(CatalogActionTypeKeys.STORE_SET_ATTRIBUTE_HIERARCHIES, (attributeHierarchies) => ({ payload: { attributeHierarchies } }));
|
|
39
|
-
export const setCatalogParameters = createAction(CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS, (
|
|
39
|
+
export const setCatalogParameters = createAction(CatalogActionTypeKeys.STORE_SET_CATALOG_PARAMETERS, (lists) => ({ payload: lists }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CatalogItem, type ICatalogAttributeHierarchy, type ICatalogDateAttributeHierarchy, type ICatalogGroup, type IScalarParameterMetadataObject } from "@gooddata/sdk-model";
|
|
1
|
+
import { type CatalogItem, type ICatalogAttributeHierarchy, type ICatalogDateAttributeHierarchy, type ICatalogGroup, type IDateRangeParameterMetadataObject, type IScalarParameterMetadataObject } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IOrganizedCatalogTooltipDetails } from "../../typings/catalog.js";
|
|
3
3
|
export interface ICatalogState {
|
|
4
4
|
readonly items: ReadonlyArray<CatalogItem>;
|
|
@@ -22,5 +22,6 @@ export interface ICatalogState {
|
|
|
22
22
|
readonly dateHierarchies: ReadonlyArray<ICatalogDateAttributeHierarchy>;
|
|
23
23
|
readonly attributeHierarchies: ReadonlyArray<ICatalogAttributeHierarchy>;
|
|
24
24
|
readonly parameters: ReadonlyArray<IScalarParameterMetadataObject>;
|
|
25
|
+
readonly dateRangeParameters: ReadonlyArray<IDateRangeParameterMetadataObject>;
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=catalog_types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog_types.d.ts","sourceRoot":"","sources":["../../../src/store/catalog/catalog_types.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,aAAa,EAClB,KAAK,8BAA8B,EACtC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC1D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE;QACZ,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;QAChC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;QACtC,kEAAkE;QAClE,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;QACpC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;QAC9B,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC;KACjD,CA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AAO,CAAC;KACjD,CAAC;IACF,cAAc,EAAE;QACZ,CAAC,cAAc,EAAE,MAAM,GAAG,+BAA+B,CAAC;KAC7D,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACxE,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;IACzE,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACnE,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,iCAAiC,CAAC,CAAC;CAClF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric_editor_sagas.d.ts","sourceRoot":"","sources":["../../../src/store/metric_editor/metric_editor_sagas.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"metric_editor_sagas.d.ts","sourceRoot":"","sources":["../../../src/store/metric_editor/metric_editor_sagas.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAA6B,MAAM,2BAA2B,CAAC;AAO9F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAW5D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAkBhE,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAiB7C,wBAAiB,iBAAiB,6EAWjC;AAuHD,wBAAiB,sBAAsB;;;qIA+CtC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { defineMessages } from "react-intl";
|
|
3
3
|
import { call, put, select, take, takeEvery } from "redux-saga/effects";
|
|
4
|
+
import { isUnexpectedResponseError } from "@gooddata/sdk-backend-spi";
|
|
4
5
|
import { isCatalogMeasure } from "@gooddata/sdk-model";
|
|
5
6
|
import { _isEmpty, _isEqual, _omit } from "@gooddata/util";
|
|
6
7
|
import { removeBucketItemsByLocalIds } from "../../actions/buckets_actions.js";
|
|
@@ -24,6 +25,7 @@ const metricEditorMessages = defineMessages({
|
|
|
24
25
|
deleteMetricFailed: { id: "messages.deleteMetricFailed" },
|
|
25
26
|
saveMetric: { id: "messages.saveMetric" },
|
|
26
27
|
metricSaveError: { id: "messages.metricSaveError" },
|
|
28
|
+
metricSaveIdConflict: { id: "messages.metricSaveIdConflict" },
|
|
27
29
|
});
|
|
28
30
|
var CatalogItemType;
|
|
29
31
|
(function (CatalogItemType) {
|
|
@@ -113,10 +115,16 @@ function* removeMetricFromBucketWithRefresh() {
|
|
|
113
115
|
yield put(setLoadingGroups(true));
|
|
114
116
|
yield call(removeMetricFromBucket);
|
|
115
117
|
}
|
|
116
|
-
function* handleMetricSaveError() {
|
|
118
|
+
function* handleMetricSaveError(action) {
|
|
119
|
+
// The backend refuses an ID that is already in use (in this workspace or a parent one) with
|
|
120
|
+
// HTTP 409. A retry fails the same way, so the message names the cause instead.
|
|
121
|
+
const { error } = action.payload;
|
|
122
|
+
const isIdConflict = isUnexpectedResponseError(error) && error.httpStatus === 409;
|
|
117
123
|
yield put(addMessage({
|
|
118
124
|
type: "error",
|
|
119
|
-
translationKey:
|
|
125
|
+
translationKey: isIdConflict
|
|
126
|
+
? metricEditorMessages.metricSaveIdConflict.id
|
|
127
|
+
: metricEditorMessages.metricSaveError.id,
|
|
120
128
|
durationInMs: HIDE_ERROR_MESSAGE_AFTER,
|
|
121
129
|
}));
|
|
122
130
|
}
|
|
@@ -679,6 +679,10 @@
|
|
|
679
679
|
"text": "Metric save failed, try again later…",
|
|
680
680
|
"crowdinContext": "Use '…' as one character, not 3 dots ('...')."
|
|
681
681
|
},
|
|
682
|
+
"messages.metricSaveIdConflict": {
|
|
683
|
+
"text": "A metric with this ID already exists. Change the ID and save again.",
|
|
684
|
+
"crowdinContext": "Error message shown when a metric cannot be saved because another object already uses its ID."
|
|
685
|
+
},
|
|
682
686
|
"messages.exportResultError": {
|
|
683
687
|
"text": "Failed to export the data. Try again later.",
|
|
684
688
|
"crowdinContext": "Error message when data export fails"
|
|
@@ -1243,6 +1247,10 @@
|
|
|
1243
1247
|
"text": "Select All time in period to include empty values",
|
|
1244
1248
|
"crowdinContext": "Tooltip on disabled Include option in empty values dropdown."
|
|
1245
1249
|
},
|
|
1250
|
+
"filter.date.empty_values.include.title": {
|
|
1251
|
+
"text": "{title}, empty values",
|
|
1252
|
+
"crowdinContext": "Date filter button label when a period (not All time) also includes empty (missing) date values. {title} is the period label, e.g. 'Last 12 months'."
|
|
1253
|
+
},
|
|
1246
1254
|
"filter.compare.apply_on": {
|
|
1247
1255
|
"text": "Apply on",
|
|
1248
1256
|
"crowdinContext": "Label for date comparison application scope selection"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom_mouse_backend.d.ts","sourceRoot":"","sources":["../../src/utils/custom_mouse_backend.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,WAAW,EAEnB,MAAM,UAAU,CAAC;AAiBlB,UAAU,oBAAoB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AA6ED,qBAAa,YAAa,YAAW,OAAO;IACxC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAU;IAEzB,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,CAAC;I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CAAC,oBAAoB,CAAU;IAEtC,YAAY,OAAO,EAAE,eAAe,EAAE,OAAO,GAAE,oBAAyB,EA8BvE;IAEM,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEvC;IAEM,YAAY,QA2Ia,UAAU,GAAG,UAAU,KAAG,IAAI,CAzI7D;IAEM,KAAK,SAsCX;IAEM,QAAQ,SAYd;IAED,OAAO,CAAC,gBAAgB;IAexB,OAAO,CAAC,mBAAmB;IAcpB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,WAAW,CAczE;IAEM,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,WAAW,CAQ5F;IAEM,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,WAAW,CAMzE;IAED,OAAO,CAAC,qBAAqB,CAE3B;IAEK,yBAAyB,OAAQ,KAAK,KAAG,IAAI,CAElD;IAEK,eAAe,aAAc,MAAM,KAAG,IAAI,CAE/C;IAEK,iBAAiB,aAAc,MAAM,KAAK,KAAK,KAAG,IAAI,CAI3D;IAEK,kBAAkB,MAAO,UAAU,GAAG,UAAU,KAAG,IAAI,CA4B5D;IAEK,uBAAuB,MAAO,UAAU,GAAG,UAAU,KAAG,IAAI,CAEjE;IAEK,oBAAoB,MAAO,UAAU,GAAG,UAAU,KAAG,IAAI,CAkC9D;IAEK,uBAAuB,MAAO,KAAK,KAAG,IAAI,CAY/C;IAEF,UAAU,SAIT;CACJ;AAED,wBAAgB,wBAAwB,IAAI,cAAc,CAIzD"}
|
|
@@ -218,11 +218,18 @@ export class TouchBackend {
|
|
|
218
218
|
};
|
|
219
219
|
handleTopMoveStart = (e) => {
|
|
220
220
|
const clientOffset = getEventClientOffset(e);
|
|
221
|
-
if (clientOffset
|
|
221
|
+
if (!clientOffset) {
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
// The hit test is by coordinates only, so also require the press to land inside
|
|
225
|
+
// the source: a press on an element covering it (e.g. a modal backdrop) must not
|
|
226
|
+
// steal focus from that element.
|
|
227
|
+
const target = e.target;
|
|
228
|
+
const isPressOnSource = getNodesAtOffset(this.sourceNodes, clientOffset).some((sourceId) => this.sourceNodes[sourceId].contains(target));
|
|
229
|
+
if (isPressOnSource) {
|
|
222
230
|
this._mouseClientOffset = clientOffset;
|
|
223
231
|
// note: calling preventDefault here, seems to be the only way to defeat text selection in Safari
|
|
224
232
|
// to handle other browsers, we could just call window.getSelection().removeAllRanges();
|
|
225
|
-
const target = e.target;
|
|
226
233
|
if (target.tagName !== "SELECT" && target.tagName !== "INPUT" && target.tagName !== "TEXTAREA") {
|
|
227
234
|
e.preventDefault();
|
|
228
235
|
// when clicking on draggable (DragSource decorated) component, document.activeElement doesn't change
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterConverter.d.ts","sourceRoot":"","sources":["../../../src/utils/sdkModelToADRep/FilterConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,OAAO,EAEZ,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"FilterConverter.d.ts","sourceRoot":"","sources":["../../../src/utils/sdkModelToADRep/FilterConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,OAAO,EAEZ,KAAK,cAAc,EA0BtB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EASH,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EACjC,MAAM,iCAAiC,CAAC;AAiJzC,eAAO,MAAM,qBAAqB,WACtB,OAAO,qCACoB,OAAO,KAC3C,iCAkBF,CAAC;AAEF,eAAO,MAAM,aAAa,WACd,cAAc,qCACa,OAAO,KAC3C,yBAoBF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { absoluteDateFilterValues, filterAttributeElements, filterLocalIdentifier, filterObjRef, isAbsoluteDateFilter, isAbsoluteGranularityDateFilter, isArbitraryAttributeFilter, isAttributeElementsByRef, isMatchAttributeFilter, isMeasureValueFilter, isNegativeAttributeFilter, isPositiveAttributeFilter, isRankingFilter, isRelativeDateFilter, measureValueFilterConditions, measureValueFilterDimensionality, measureValueFilterMeasure, relativeDateFilterValues, throwUnexpected, } from "@gooddata/sdk-model";
|
|
2
|
+
import { absoluteDateFilterValues, filterAttributeElements, filterLocalIdentifier, filterObjRef, isAbsoluteDateFilter, isAbsoluteGranularityDateFilter, isArbitraryAttributeFilter, isAttributeElementsByRef, isMatchAttributeFilter, isMeasureValueFilter, isNegativeAttributeFilter, isParameterizedDateFilter, isPositiveAttributeFilter, isRankingFilter, isRelativeDateFilter, measureValueFilterConditions, measureValueFilterDimensionality, measureValueFilterMeasure, relativeDateFilterValues, throwUnexpected, } from "@gooddata/sdk-model";
|
|
3
3
|
import { generateBucketItemIdentifier } from "../../models/bucket_item_identifier.js";
|
|
4
4
|
import { toBearRef } from "./ObjRefConverter.js";
|
|
5
5
|
const convertMeasureValueFilter = (filter) => {
|
|
@@ -155,6 +155,9 @@ export const convertFilter = (filter, autoGenerateFilterLocalIdentifier) => {
|
|
|
155
155
|
else if (isAbsoluteGranularityDateFilter(filter)) {
|
|
156
156
|
throw new Error("Absolute date filters with granularity are not supported in insights yet.");
|
|
157
157
|
}
|
|
158
|
+
else if (isParameterizedDateFilter(filter)) {
|
|
159
|
+
throw new Error("Parameterized date filters are not supported in insights yet.");
|
|
160
|
+
}
|
|
158
161
|
else if (isRelativeDateFilter(filter)) {
|
|
159
162
|
return convertRelativeDateFilter(filter);
|
|
160
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-analytical-designer",
|
|
3
|
-
"version": "11.70.0-alpha.
|
|
3
|
+
"version": "11.70.0-alpha.3",
|
|
4
4
|
"description": "Analytical Designer UI library — core components, sagas, reducers, and application logic",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": {
|
|
@@ -59,21 +59,21 @@
|
|
|
59
59
|
"reselect": "5.1.1",
|
|
60
60
|
"uuid": "11.1.1",
|
|
61
61
|
"web-vitals": "3.5.2",
|
|
62
|
-
"@gooddata/sdk-backend-base": "11.70.0-alpha.
|
|
63
|
-
"@gooddata/sdk-backend-spi": "11.70.0-alpha.
|
|
64
|
-
"@gooddata/sdk-backend-tiger": "11.70.0-alpha.
|
|
65
|
-
"@gooddata/sdk-
|
|
66
|
-
"@gooddata/sdk-
|
|
67
|
-
"@gooddata/sdk-pluggable-application-model": "11.70.0-alpha.
|
|
68
|
-
"@gooddata/sdk-ui": "11.70.0-alpha.
|
|
69
|
-
"@gooddata/sdk-ui-ext": "11.70.0-alpha.
|
|
70
|
-
"@gooddata/sdk-ui-
|
|
71
|
-
"@gooddata/sdk-ui-
|
|
72
|
-
"@gooddata/sdk-ui-metric-component": "11.70.0-alpha.
|
|
73
|
-
"@gooddata/sdk-ui-pivot": "11.70.0-alpha.
|
|
74
|
-
"@gooddata/sdk-ui-semantic-search": "11.70.0-alpha.
|
|
75
|
-
"@gooddata/
|
|
76
|
-
"@gooddata/
|
|
62
|
+
"@gooddata/sdk-backend-base": "11.70.0-alpha.3",
|
|
63
|
+
"@gooddata/sdk-backend-spi": "11.70.0-alpha.3",
|
|
64
|
+
"@gooddata/sdk-backend-tiger": "11.70.0-alpha.3",
|
|
65
|
+
"@gooddata/sdk-embedding": "11.70.0-alpha.3",
|
|
66
|
+
"@gooddata/sdk-model": "11.70.0-alpha.3",
|
|
67
|
+
"@gooddata/sdk-pluggable-application-model": "11.70.0-alpha.3",
|
|
68
|
+
"@gooddata/sdk-ui": "11.70.0-alpha.3",
|
|
69
|
+
"@gooddata/sdk-ui-ext": "11.70.0-alpha.3",
|
|
70
|
+
"@gooddata/sdk-ui-filters": "11.70.0-alpha.3",
|
|
71
|
+
"@gooddata/sdk-ui-kit": "11.70.0-alpha.3",
|
|
72
|
+
"@gooddata/sdk-ui-metric-component": "11.70.0-alpha.3",
|
|
73
|
+
"@gooddata/sdk-ui-pivot": "11.70.0-alpha.3",
|
|
74
|
+
"@gooddata/sdk-ui-semantic-search": "11.70.0-alpha.3",
|
|
75
|
+
"@gooddata/sdk-ui-theme-provider": "11.70.0-alpha.3",
|
|
76
|
+
"@gooddata/util": "11.70.0-alpha.3"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@microsoft/api-extractor": "7.59.2",
|
|
@@ -114,11 +114,11 @@
|
|
|
114
114
|
"stylelint": "16.26.1",
|
|
115
115
|
"typescript": "7.0.2",
|
|
116
116
|
"vitest": "5.0.4",
|
|
117
|
-
"@gooddata/eslint-config": "11.70.0-alpha.
|
|
118
|
-
"@gooddata/i18n-toolkit": "11.70.0-alpha.
|
|
119
|
-
"@gooddata/oxlint-config": "11.70.0-alpha.
|
|
120
|
-
"@gooddata/
|
|
121
|
-
"@gooddata/
|
|
117
|
+
"@gooddata/eslint-config": "11.70.0-alpha.3",
|
|
118
|
+
"@gooddata/i18n-toolkit": "11.70.0-alpha.3",
|
|
119
|
+
"@gooddata/oxlint-config": "11.70.0-alpha.3",
|
|
120
|
+
"@gooddata/stylelint-config": "11.70.0-alpha.3",
|
|
121
|
+
"@gooddata/sdk-backend-mockingbird": "11.70.0-alpha.3"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"react": ">=18",
|