@gooddata/sdk-ui-analytical-designer 11.68.0-alpha.1 → 11.68.0-alpha.11
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 +11039 -61698
- package/esm/actions/app_context_actions.d.ts +0 -1
- package/esm/actions/app_context_actions.d.ts.map +1 -1
- 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/DeleteReportDialog.d.ts.map +1 -1
- package/esm/components/DeleteReportDialog.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/ReportDescription.js +3 -3
- package/esm/components/Root.js +2 -2
- 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/MeasureBucketItemConfiguration.d.ts.map +1 -1
- package/esm/components/buckets/MeasureBucketItemConfiguration.js +2 -2
- package/esm/components/buckets/MeasureDateFilter.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilter.js +5 -5
- package/esm/components/buckets/VisualizationPicker.d.ts.map +1 -1
- package/esm/components/buckets/VisualizationPicker.js +4 -4
- package/esm/components/buckets/measureDateFilterOption.d.ts.map +1 -1
- package/esm/components/buckets/measureDateFilterOption.js +2 -2
- package/esm/components/buckets/useMeasureAttributeFilterItems.d.ts.map +1 -1
- package/esm/components/buckets/useMeasureAttributeFilterItems.js +2 -2
- package/esm/components/catalog/hooks/GroupHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/GroupHook.js +5 -4
- package/esm/components/catalog/hooks/ScrollableAreaHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/ScrollableAreaHook.js +2 -2
- package/esm/components/catalog/hooks/TabsHook.d.ts.map +1 -1
- package/esm/components/catalog/hooks/TabsHook.js +3 -3
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +4 -4
- package/esm/components/filterBar/dateFilter/DateFilter.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/header/InsightPickerDialog.js +1 -1
- package/esm/components/header/VisualizationsDropdown.js +2 -2
- package/esm/components/report/ReportVisualization.d.ts.map +1 -1
- package/esm/components/report/ReportVisualization.js +2 -2
- package/esm/components/report/reportUtils.d.ts.map +1 -1
- package/esm/components/report/reportUtils.js +3 -3
- 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 +5 -5
- package/esm/convertors/toBackend/InsightConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/InsightConverter.js +10 -9
- package/esm/convertors/toBackend/MeasureConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/MeasureConverter.js +2 -2
- package/esm/convertors/toBackend/afm/ExecutionConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/ExecutionConverter.js +4 -4
- 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/embedding/analyticalDesignerConfig.d.ts.map +1 -1
- package/esm/embedding/analyticalDesignerConfig.js +0 -1
- package/esm/embedding/analyticalDesignerTypes.d.ts +4 -0
- package/esm/embedding/analyticalDesignerTypes.d.ts.map +1 -1
- package/esm/embedding/platformContext.d.ts.map +1 -1
- package/esm/embedding/platformContext.js +0 -1
- package/esm/models/catalog.d.ts.map +1 -1
- package/esm/models/catalog.js +3 -2
- package/esm/models/decorated_bucket_item.d.ts.map +1 -1
- package/esm/models/decorated_bucket_item.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 +7 -5
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +26 -16
- package/esm/models/preset_item.d.ts.map +1 -1
- package/esm/models/preset_item.js +4 -3
- 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 +3 -3
- package/esm/sagas/drillable_items_sagas.js +3 -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/sdk-ui-analytical-designer.d.ts +4 -0
- package/esm/selectors/buckets_selector.d.ts.map +1 -1
- package/esm/selectors/buckets_selector.js +8 -7
- package/esm/selectors/export_button_selector.d.ts.map +1 -1
- package/esm/selectors/export_button_selector.js +2 -2
- 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 +12 -8
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/reset_button_selector.d.ts.map +1 -1
- package/esm/selectors/reset_button_selector.js +3 -3
- package/esm/selectors/route_selector.d.ts.map +1 -1
- package/esm/selectors/route_selector.js +2 -3
- 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 +25 -13
- package/esm/services/date_datasets_service.d.ts.map +1 -1
- package/esm/services/date_datasets_service.js +3 -2
- package/esm/services/reference_point_service.js +3 -3
- package/esm/services/report_service.d.ts.map +1 -1
- package/esm/services/report_service.js +4 -3
- package/esm/services/visualization_class_service.d.ts.map +1 -1
- package/esm/services/visualization_class_service.js +2 -2
- package/esm/store/attribute_elements/attribute_elements_reducer.d.ts.map +1 -1
- package/esm/store/attribute_elements/attribute_elements_reducer.js +6 -5
- package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_operations.js +3 -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/buckets_totals_helpers.d.ts.map +1 -1
- package/esm/store/buckets/buckets_totals_helpers.js +3 -3
- 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/measure_format.d.ts.map +1 -1
- package/esm/store/buckets/helpers/measure_format.js +2 -2
- package/esm/store/buckets/helpers/totals_for_new_measure.d.ts.map +1 -1
- package/esm/store/buckets/helpers/totals_for_new_measure.js +4 -3
- package/esm/store/catalog/catalog_reducer.d.ts.map +1 -1
- package/esm/store/catalog/catalog_reducer.js +4 -4
- package/esm/store/execution/execution_helpers.d.ts.map +1 -1
- package/esm/store/execution/execution_helpers.js +3 -3
- package/esm/store/filter_bar/filter_bar_helpers.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_helpers.js +3 -2
- package/esm/store/filter_bar/filter_bar_types.d.ts.map +1 -1
- package/esm/store/filter_bar/filter_bar_types.js +7 -7
- package/esm/store/filter_bar/parameter_filter_types.d.ts.map +1 -1
- package/esm/store/filter_bar/parameter_filter_types.js +2 -2
- 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 +4 -3
- 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/item_cache/item_cache_helpers.d.ts.map +1 -1
- package/esm/store/item_cache/item_cache_helpers.js +3 -2
- package/esm/store/measure_date_datasets/measure_date_datasets_helpers.d.ts.map +1 -1
- package/esm/store/measure_date_datasets/measure_date_datasets_helpers.js +2 -2
- package/esm/store/metric_editor/metric_editor_sagas.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.js +4 -4
- package/esm/store/properties/properties_helpers.d.ts.map +1 -1
- package/esm/store/properties/properties_helpers.js +5 -4
- package/esm/store/properties/properties_operation.d.ts.map +1 -1
- package/esm/store/properties/properties_operation.js +2 -2
- package/esm/store/properties/properties_slice.d.ts.map +1 -1
- package/esm/store/properties/properties_slice.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/store/report/report_slices.d.ts.map +1 -1
- package/esm/store/report/report_slices.js +3 -3
- package/esm/tests/constants.test.helpers.d.ts.map +1 -1
- package/esm/tests/constants.test.helpers.js +2 -2
- package/esm/translations/de-DE.json +7 -7
- package/esm/translations/en-AU.json +7 -7
- package/esm/translations/en-GB.json +7 -7
- package/esm/translations/en-US.json +53 -13
- package/esm/translations/es-419.json +7 -7
- package/esm/translations/es-ES.json +7 -7
- package/esm/translations/fi-FI.json +7 -7
- package/esm/translations/fr-CA.json +9 -9
- package/esm/translations/fr-FR.json +7 -7
- package/esm/translations/id-ID.json +7 -7
- package/esm/translations/it-IT.json +8 -8
- package/esm/translations/ja-JP.json +9 -9
- package/esm/translations/ko-KR.json +35 -35
- package/esm/translations/nl-NL.json +7 -7
- package/esm/translations/pl-PL.json +28 -28
- package/esm/translations/pt-BR.json +7 -7
- package/esm/translations/pt-PT.json +7 -7
- package/esm/translations/ru-RU.json +9 -9
- package/esm/translations/sl-SI.json +7 -7
- package/esm/translations/th-TH.json +7 -7
- package/esm/translations/tr-TR.json +19 -19
- package/esm/translations/uk-UA.json +7 -7
- package/esm/translations/vi-VN.json +7 -7
- package/esm/translations/zh-HK.json +34 -34
- package/esm/translations/zh-Hans.json +7 -7
- package/esm/translations/zh-Hant.json +25 -25
- package/esm/typings/bear/bearTypes.d.ts.map +1 -1
- package/esm/typings/bear/bearTypes.js +26 -26
- 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/date_datasets.js +4 -4
- package/esm/utils/date_datasets_meta.d.ts.map +1 -1
- package/esm/utils/date_datasets_meta.js +4 -4
- package/esm/utils/drilling/types.d.ts.map +1 -1
- package/esm/utils/drilling/types.js +15 -15
- package/esm/utils/dropdown.js +2 -2
- package/esm/utils/hooks/WindowResizeHook.js +2 -2
- package/esm/utils/id_prefix_sanitize.d.ts.map +1 -1
- package/esm/utils/id_prefix_sanitize.js +10 -9
- package/esm/utils/measure_descriptions.d.ts.map +1 -1
- package/esm/utils/measure_descriptions.js +2 -2
- package/esm/utils/sdkModelToADRep/InsightConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/InsightConverter.js +11 -10
- package/esm/utils/sdkModelToADRep/MeasureConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/MeasureConverter.js +2 -2
- package/esm/utils/telemetry/tableTotals.d.ts.map +1 -1
- package/esm/utils/telemetry/tableTotals.js +2 -2
- package/esm/utils/visualization_class.d.ts.map +1 -1
- package/esm/utils/visualization_class.js +6 -6
- package/esm/utils/visualization_properties.d.ts.map +1 -1
- package/esm/utils/visualization_properties.js +2 -2
- 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/export.css +4 -8
- package/styles/css/export.css.map +1 -1
- package/styles/css/main.css +115 -90
- package/styles/css/main.css.map +1 -1
- package/styles/css/open_visualizations.css +11 -11
- package/styles/css/open_visualizations.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/export.scss +42 -40
- package/styles/scss/open_visualizations.scss +4 -3
- package/styles/scss/save_report_from_kd_dialog.scss +8 -0
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { memo } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { isEqual, range } from "lodash-es";
|
|
6
5
|
import { defineMessages, useIntl } from "react-intl";
|
|
7
6
|
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _isEqual, _range } from "@gooddata/util";
|
|
8
8
|
const visualizationTypeMessages = defineMessages({
|
|
9
9
|
table: { id: "table" },
|
|
10
10
|
line: { id: "line" },
|
|
@@ -57,7 +57,7 @@ export const VisualizationPicker = memo(function VisualizationPicker({ selected,
|
|
|
57
57
|
// deep equality on purpose — the selected class and the list entry are usually the same
|
|
58
58
|
// reference, but the writers re-derive the value, so identity is not a contract
|
|
59
59
|
// (store/visualization_classes/visualization_classes_state.ts)
|
|
60
|
-
if (!
|
|
60
|
+
if (!_isEqual(selected, visualizationClass)) {
|
|
61
61
|
onClick(visualizationClass);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
@@ -66,7 +66,7 @@ export const VisualizationPicker = memo(function VisualizationPicker({ selected,
|
|
|
66
66
|
const uri = visualizationClass.visualizationClass.uri;
|
|
67
67
|
const classes = getClasses(false);
|
|
68
68
|
const btnClasses = classNames(`s-vis-button-${type}`, "gd-vis-type", isVisualizationClassLocal(visualizationClass) ? `gd-vis-type-${type}` : null, {
|
|
69
|
-
"is-selected":
|
|
69
|
+
"is-selected": _isEqual(selected, visualizationClass),
|
|
70
70
|
});
|
|
71
71
|
return (_jsx("span", { className: classes, children: _jsxs(BubbleHoverTrigger, { showDelay: 200, hideDelay: 0, eventsOnBubble: false, className: "vis-bubble-trigger", children: [_jsx("button", { className: btnClasses, onClick: () => handleClick(visualizationClass) }), _jsx(Bubble, { className: "bubble-primary", alignPoints: [{ align: "bc tc" }], children: renderVisualizationTitle(visualizationClass) })] }, uri) }, uri));
|
|
72
72
|
};
|
|
@@ -84,7 +84,7 @@ export const VisualizationPicker = memo(function VisualizationPicker({ selected,
|
|
|
84
84
|
const fakeButtons = [];
|
|
85
85
|
if (visCount % rowLength) {
|
|
86
86
|
const isFake = true;
|
|
87
|
-
|
|
87
|
+
_range(rowLength - (visCount % rowLength)).forEach((key) => fakeButtons.push(_jsx("span", { className: getClasses(isFake) }, key)));
|
|
88
88
|
}
|
|
89
89
|
return [...realButtons, ...fakeButtons];
|
|
90
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measureDateFilterOption.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/measureDateFilterOption.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"measureDateFilterOption.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/measureDateFilterOption.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EACH,KAAK,iBAAiB,EAGzB,MAAM,oDAAoD,CAAC;AAsB5D;;;GAGG;AACH,wBAAgB,yBAAyB,CACrC,MAAM,EAAE,oBAAoB,GAAG,SAAS,GACzC,iBAAiB,GAAG,SAAS,CAiB/B;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,EAC9C,YAAY,EACZ,oBAAoB,GACvB,EAAE,iBAAiB,GAAG,WAAW,GAAG,SAAS,CAQ7C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { isAllTimeDateFilterOption } from "@gooddata/sdk-model";
|
|
4
3
|
import { DateFilterHelpers } from "@gooddata/sdk-ui-filters";
|
|
5
4
|
import { normalizeSelectedFilterOption } from "@gooddata/sdk-ui-filters/internal";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { ALL_TIME } from "../../constants/presets.js";
|
|
7
7
|
import { buildDateFilterValueFromDateFilterOption, matchDateFilterValueToDateFilterOption, } from "../filterBar/dateFilter/dateFilterOptionFactory.js";
|
|
8
8
|
// Stored absolute metric filters carry `type: "absolute"` without a name, so the type is kept as stored
|
|
@@ -24,7 +24,7 @@ const toDateFilterConfig = ({ name, type, granularity, interval, boundedFilter,
|
|
|
24
24
|
*/
|
|
25
25
|
export function measureDateFilterToOption(filter) {
|
|
26
26
|
const stored = filter?.interval?.original;
|
|
27
|
-
if (!stored ||
|
|
27
|
+
if (!stored || _isEmpty(stored)) {
|
|
28
28
|
return undefined;
|
|
29
29
|
}
|
|
30
30
|
// the legacy All time filter is stored as the bare preset name, without an interval
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMeasureAttributeFilterItems.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/useMeasureAttributeFilterItems.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMeasureAttributeFilterItems.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/useMeasureAttributeFilterItems.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EAE1B,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAE1F,MAAM,MAAM,iCAAiC,GAAG,CAC5C,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,kBAAkB,EACrC,OAAO,EAAE;IACL,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC9B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACtC,KACA,OAAO,CAAC,KAAK,CAAC,iBAAiB,GAAG,yBAAyB,CAAC,CAAC,CAAC;AAEnE,MAAM,WAAW,qCAAqC;IAClD,UAAU,EAAE,oBAAoB,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,WAAW,CAAC,EAAE,iCAAiC,CAAC;IAChD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,iFAAiF;IACjF,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,qCAAqC;IAClD,KAAK,EAAE,2BAA2B,EAAE,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;CACtB;AAiBD,eAAO,MAAM,4BAA4B,SAC/B,iBAAiB,GAAG,yBAAyB,yBAC5B,OAAO,GAAG,SAAS,KAC3C,2BAuBF,CAAC;AAEF;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,EAC3C,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,WAAgD,EAChD,qBAAqB,EACrB,yBAAiC,EACjC,SAAgB,GACnB,EAAE,qCAAqC,GAAG,qCAAqC,CA8D/E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { isCatalogComputedAttribute, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { BackendToBearConvertors } from "../../convertors/index.js";
|
|
6
6
|
import { getMetricMDObject } from "../../services/metadata_service.js";
|
|
7
7
|
import { API } from "../../utils/organized_catalog_api.js";
|
|
@@ -13,7 +13,7 @@ const NO_ITEMS = [];
|
|
|
13
13
|
*/
|
|
14
14
|
function useContentStable(value) {
|
|
15
15
|
const ref = useRef(value);
|
|
16
|
-
if (ref.current !== value && !
|
|
16
|
+
if (ref.current !== value && !_isEqual(ref.current, value)) {
|
|
17
17
|
ref.current = value;
|
|
18
18
|
}
|
|
19
19
|
return ref.current;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupHook.d.ts","sourceRoot":"","sources":["../../../../src/components/catalog/hooks/GroupHook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EACH,KAAK,WAAW,EAOhB,KAAK,aAAa,EAGlB,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"GroupHook.d.ts","sourceRoot":"","sources":["../../../../src/components/catalog/hooks/GroupHook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EACH,KAAK,WAAW,EAOhB,KAAK,aAAa,EAGlB,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAWtG,eAAO,MAAM,UAAU,QAAS,MAAM,WAAwB,CAAC;AAC/D,eAAO,MAAM,iBAAiB,UAAW,aAAa,WAA0B,CAAC;AAIjF,MAAM,WAAW,kBAAkB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,oBAAoB,GAAG,CAAC,iBAAiB,EAAE,kBAAkB,KAAK,IAAI,CAAC;AAEnF,MAAM,WAAW,mCAAmC;IAChD,SAAS,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAChD,YAAY,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IACnD,UAAU,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAClD,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAsKD,eAAO,MAAM,0BAA0B,0BAER,OAAO,iBACf,YAAY,mBACV,aAAa,CAAC,WAAW,CAAC,YAExC,WAAW,KAAG,qBAgBpB,CAAC;AAuKN,eAAO,MAAM,SAAS,WACV,aAAa,CAAC,aAAa,CAAC,sBAChB,OAAO,SACpB,aAAa,CAAC,WAAW,CAAC,YACvB,aAAa,CAAC,WAAW,CAAC,eACvB,MAAM,kBACH,OAAO,yBACA,OAAO,gBAChB,YAAY,GAAG,SAAS,QAChC,SAAS,gDAEhB,mCA2BF,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { omitBy } from "lodash-es";
|
|
4
4
|
import { isCatalogAttribute, isCatalogAttributeHierarchy, isCatalogComputedAttribute, isCatalogFact, isCatalogMeasure, objRefToString, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _isEmpty, _sortBy } from "@gooddata/util";
|
|
5
6
|
import { displayFormToCacheDisplayForm, getPreferredAreaDisplayForm, getPreferredLocationDisplayForm, } from "../../../utils/displayForms.js";
|
|
6
7
|
import { areCatalogItemsEquals } from "../utils/equals.js";
|
|
7
8
|
import { isNonGroupableCatalogItem } from "../utils/groupableItem.js";
|
|
@@ -148,7 +149,7 @@ const createGroupItems = (group, items, availableItems, isLocationIconEnabled, g
|
|
|
148
149
|
return items
|
|
149
150
|
.filter((item) => {
|
|
150
151
|
const groups = isNonGroupableCatalogItem(item) ? [] : item.groups;
|
|
151
|
-
const hasGroup = !
|
|
152
|
+
const hasGroup = !_isEmpty(groups);
|
|
152
153
|
const belongsToGroup = hasGroup && groups.some((tagRef) => id === getGroupId(tagRef));
|
|
153
154
|
const belongsToUngrouped = !hasGroup && isUngroupedGroup;
|
|
154
155
|
return belongsToGroup || belongsToUngrouped;
|
|
@@ -182,14 +183,14 @@ const createItemGroupsBase = (groups, items, availableItems, isLoadingItems, isL
|
|
|
182
183
|
}
|
|
183
184
|
return acc;
|
|
184
185
|
}, []);
|
|
185
|
-
const hasUngroupedItems = items.some((item) => !isNonGroupableCatalogItem(item) &&
|
|
186
|
+
const hasUngroupedItems = items.some((item) => !isNonGroupableCatalogItem(item) && _isEmpty(item.groups));
|
|
186
187
|
if (hasUngroupedItems && groups.length > 0) {
|
|
187
188
|
itemGroups.push(createItemGroupBase({
|
|
188
189
|
title: intl.formatMessage({ id: "catalog.group_title.ungrouped" }),
|
|
189
190
|
tag: {
|
|
190
191
|
identifier: UNGROUPED,
|
|
191
192
|
},
|
|
192
|
-
},
|
|
193
|
+
}, _sortBy(items, (item) => {
|
|
193
194
|
return createOrganizedCatalogItemData(item).title.toUpperCase();
|
|
194
195
|
}), availableItems, isLocationIconEnabled, geoLabelType));
|
|
195
196
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollableAreaHook.d.ts","sourceRoot":"","sources":["../../../../src/components/catalog/hooks/ScrollableAreaHook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollableAreaHook.d.ts","sourceRoot":"","sources":["../../../../src/components/catalog/hooks/ScrollableAreaHook.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;oBAEJ,IAAI;CAgB7B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import { debounce } from "lodash-es";
|
|
4
3
|
import { GOODSTRAP_SCROLLED_EVENT } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { _debounce } from "@gooddata/util";
|
|
5
5
|
export const useScrollableArea = () => {
|
|
6
6
|
const scrollableRef = useRef(null);
|
|
7
|
-
const onScroll =
|
|
7
|
+
const onScroll = _debounce(() => {
|
|
8
8
|
if (scrollableRef.current !== null) {
|
|
9
9
|
scrollableRef.current.dispatchEvent(new CustomEvent(GOODSTRAP_SCROLLED_EVENT, { bubbles: true }));
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsHook.d.ts","sourceRoot":"","sources":["../../../../src/components/catalog/hooks/TabsHook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabsHook.d.ts","sourceRoot":"","sources":["../../../../src/components/catalog/hooks/TabsHook.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG7E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,cAAc,EAA+C,MAAM,2BAA2B,CAAC;AAE7G,MAAM,WAAW,yBAAyB;IACtC,iBAAiB,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAC9C,WAAW,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACxC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,IAAI,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACnC,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CACvC;AAmRD,eAAO,MAAM,OAAO,mBACA,aAAa,CAAC,WAAW,CAAC,YAChC,aAAa,CAAC,WAAW,CAAC,yBACb,OAAO,yBACP,OAAO,iBACf,YAAY,KAC5B,yBAmFF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { defineMessage } from "react-intl";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { TabIconGroups, TabIcons, TabNames, TabTypes } from "../model/catalogFilter.js";
|
|
6
6
|
const TAB_NAMES = [
|
|
7
7
|
{
|
|
@@ -216,10 +216,10 @@ export const useTabs = (availableItems, allItems, shouldDisplayTabIcons, isLocat
|
|
|
216
216
|
result.updatedTabSelectionStates.push(tabSelectionStates[tabStateIndex] || false);
|
|
217
217
|
return result;
|
|
218
218
|
}, { updatedTabIconSelectionNames: [], updatedTabSelectionStates: [] });
|
|
219
|
-
if (!
|
|
219
|
+
if (!_isEqual(updatedTabIconSelectionNames, tabIconSelectionNames)) {
|
|
220
220
|
setTabIconSelectionNames(updatedTabIconSelectionNames);
|
|
221
221
|
}
|
|
222
|
-
if (!
|
|
222
|
+
if (!_isEqual(updatedTabSelectionStates, tabSelectionStates)) {
|
|
223
223
|
setTabSelectionStates(updatedTabSelectionStates);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyButtonHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/Buttons/applyButtonHook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applyButtonHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/Buttons/applyButtonHook.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AACxF,OAAO,EACH,KAAK,gBAAgB,EAGxB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AA+DvE,eAAO,MAAM,qBAAqB,mBACd,iBAAiB,kBACjB,iBAAiB,uBACZ,qBAAqB,uBACrB,qBAAqB,8BACd,sBAAsB,8BACtB,sBAAsB,8BACtB,MAAM,EAAE,8BACR,MAAM,EAAE,yBACb,gBAAgB,EAAE,iCACV,gBAAgB,EAAE,sBAC7B,OAAO,sCACS,yBAAyB,sCACzB,yBAAyB,YAiChE,CAAC;AAEF,eAAO,MAAM,6BAA6B,mBACtB,gBAAgB,8BACJ,sBAAsB,sBAC9B,OAAO,sCACS,yBAAyB,uBAuBhE,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import moment from "moment";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { areObjRefsEqual, isAllTimeDateFilterOption } from "@gooddata/sdk-model";
|
|
6
5
|
import { OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
7
6
|
import { isAbsoluteDateFilterOption, isRelativeDateFilterOption, } from "@gooddata/sdk-ui-filters";
|
|
7
|
+
import { _isEqual } from "@gooddata/util";
|
|
8
8
|
const isAllTimeSelectedAndTimeComparisonApplied = (selectedFilter, selectedTimeComparisonType) => isAllTimeDateFilterOption(selectedFilter) &&
|
|
9
9
|
(OverTimeComparisonTypes.PREVIOUS_PERIOD === selectedTimeComparisonType ||
|
|
10
10
|
OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR === selectedTimeComparisonType);
|
|
11
|
-
const areSameMeasuresSelected = (selectedComparisonMeasures, originalComparisonMeasures) =>
|
|
11
|
+
const areSameMeasuresSelected = (selectedComparisonMeasures, originalComparisonMeasures) => _isEqual(selectedComparisonMeasures.slice().sort(), originalComparisonMeasures.slice().sort());
|
|
12
12
|
const isEndTimeAfterOrAtStartTime = (start, end) => moment(start) <= moment(end);
|
|
13
13
|
const isValidAbsoluteDateRange = (selectedFilter) => !isAbsoluteDateFilterOption(selectedFilter) ||
|
|
14
14
|
(selectedFilter.from !== undefined &&
|
|
@@ -17,12 +17,12 @@ const isValidAbsoluteDateRange = (selectedFilter) => !isAbsoluteDateFilterOption
|
|
|
17
17
|
const isValidFloatingDateRange = (selectedFilter) => !isRelativeDateFilterOption(selectedFilter) ||
|
|
18
18
|
(selectedFilter.from !== undefined && selectedFilter.to !== undefined);
|
|
19
19
|
const isDialogStateChanged = (selectedFilter, originalFilter, selectedDateDataset, originalDateDataset, selectedTimeComparisonType, originalTimeComparisonType, selectedComparisonMeasures, originalComparisonMeasures, additionalDateFilters, originalAdditionalDateFilters, selectedEmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode) => {
|
|
20
|
-
const isFilterSame =
|
|
20
|
+
const isFilterSame = _isEqual(selectedFilter, originalFilter);
|
|
21
21
|
const isComparisonTypeSame = selectedTimeComparisonType === originalTimeComparisonType;
|
|
22
22
|
// originalDateDataset is undefined when component is removed from filter bar (when dragged to trash)
|
|
23
23
|
const isSameDateDataset = areObjRefsEqual(selectedDateDataset.ref, originalDateDataset?.ref);
|
|
24
24
|
const areComparisonMeasuresSame = areSameMeasuresSelected(selectedComparisonMeasures, originalComparisonMeasures);
|
|
25
|
-
const areAdditionalFiltersSame =
|
|
25
|
+
const areAdditionalFiltersSame = _isEqual(additionalDateFilters, originalAdditionalDateFilters);
|
|
26
26
|
const isEmptyDateValuesFilterModeSame = (selectedEmptyDateValuesFilterMode || "include") === (originalEmptyDateValuesFilterMode || "include");
|
|
27
27
|
return (!isFilterSame ||
|
|
28
28
|
!isComparisonTypeSame ||
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useRef, useState } from "react";
|
|
4
|
-
import { isEqual } from "lodash-es";
|
|
5
4
|
import { shallowEqual, useDispatch, useSelector } from "react-redux";
|
|
6
5
|
import { areObjRefsEqual, isAllTimeDateFilterOption } from "@gooddata/sdk-model";
|
|
7
6
|
import { OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
8
7
|
import { DateFilterHelpers } from "@gooddata/sdk-ui-filters";
|
|
9
8
|
import { normalizeSelectedFilterOption } from "@gooddata/sdk-ui-filters/internal";
|
|
9
|
+
import { _isEqual } from "@gooddata/util";
|
|
10
10
|
import { loadDateDatasetsToDateDropdown } from "../../../sagas/date_datasets/date_datasets_actions.js";
|
|
11
11
|
import { setMigratedAdditionalFilters } from "../../../store/filter_bar/filter_bar_actions.js";
|
|
12
12
|
import { AdditionalDateFilters } from "./AdditionalFiltersSection/AdditionalDateFilters.js";
|
|
@@ -47,7 +47,7 @@ export function DateFilter(ownProps) {
|
|
|
47
47
|
migratedFilters: migratedAdditionalFilters,
|
|
48
48
|
});
|
|
49
49
|
const lastMigratedFilters = useRef(migratedAdditionalFilters);
|
|
50
|
-
if (!
|
|
50
|
+
if (!_isEqual(migratedAdditionalFilters, lastMigratedFilters.current)) {
|
|
51
51
|
setCurrentMigratedFilters(migratedAdditionalFilters);
|
|
52
52
|
}
|
|
53
53
|
lastMigratedFilters.current = migratedAdditionalFilters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportedPresetsHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"supportedPresetsHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,qBAAqB,EAI7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAErC,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,iCACR,6BAA6B,uBACtC,qBAAqB,oCACR,gCAAgC,EAAE,+BACvC,OAAO;gCAGJ,6BAA6B;yCACpB,qBAAqB,EAAE;CAkCnE,CAAC;AAkBF;;;;;;;GAOG;AACH,eAAO,MAAM,0CAA0C,mBACnC,gBAAgB,8BACJ,6BAA6B,iBAC1C,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,SAOrD,CAAC;AAYF;;;;;;;GAOG;AACH,eAAO,MAAM,iDAAiD,mBAC1C,gBAAgB,uCACK,qBAAqB,EAAE,iBAC7C,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,SAOrD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useMemo } from "react";
|
|
3
|
-
import { omit } from "lodash-es";
|
|
4
3
|
import { areObjRefsEqual, isDateFilterGranularity, } from "@gooddata/sdk-model";
|
|
5
4
|
import { isUiRelativeDateFilterForm, } from "@gooddata/sdk-ui-filters";
|
|
5
|
+
import { _omit } from "@gooddata/util";
|
|
6
6
|
import { ALL_TIME_FILTER_OPTION, RELATIVE_PERIOD_FILTER_OPTION } from "../defaultFilterOptions.js";
|
|
7
7
|
/**
|
|
8
8
|
* Hook returns memoized DateFilterRelativeOptionGroup created by filtering out unsupported granularities from the provided `allRelativeDateFilterPresets`.
|
|
@@ -30,7 +30,7 @@ export const useSupportedDateFilterPresets = (allRelativeDateFilterPresets, sele
|
|
|
30
30
|
.filter(isDateFilterGranularity) // choose only chronological granularities compatible with SDK
|
|
31
31
|
.filter((granularity) => !missingGranularities.includes(granularity));
|
|
32
32
|
return {
|
|
33
|
-
supportedDateFilterPresets:
|
|
33
|
+
supportedDateFilterPresets: _omit(allRelativeDateFilterPresets, missingGranularities),
|
|
34
34
|
supportedChronologicalGranularities,
|
|
35
35
|
};
|
|
36
36
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../src/components/filterBar/dateFilter/presets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../../src/components/filterBar/dateFilter/presets.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,yBAAyB,EAGjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAG9E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAoZvF,eAAO,MAAM,4BAA4B,EAAE,6BAA8D,CAAC;AAE1G,eAAO,MAAM,4BAA4B,iBAAkB,OAAO,KAAG,6BAMpE,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,iBAAiB,0CAgDjE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { isLowerBound, isUpperBound, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
const getRelativeDateFilterPresets = () => ({
|
|
5
5
|
"GDC.time.minute": [
|
|
6
6
|
{
|
|
@@ -408,7 +408,7 @@ export const findSupportedRelativePresets = (supportsTime) => {
|
|
|
408
408
|
if (!supportsTime) {
|
|
409
409
|
omittedGranularities.push("GDC.time.minute", "GDC.time.hour");
|
|
410
410
|
}
|
|
411
|
-
return
|
|
411
|
+
return _omit(getRelativeDateFilterPresets(), omittedGranularities);
|
|
412
412
|
};
|
|
413
413
|
export const findRelativePresetByValue = (value) => {
|
|
414
414
|
const presets = RELATIVE_DATE_FILTER_PRESETS[value.granularity];
|
|
@@ -87,5 +87,5 @@ export function InsightPickerDialog({ workspace, label, isDisabled, selectedInsi
|
|
|
87
87
|
},
|
|
88
88
|
},
|
|
89
89
|
];
|
|
90
|
-
return (_jsxs("div", { className: "s-report_select report-select editor-header-item", children: [_jsx(Button, { className: "gd-button-secondary type-metric customizable", value: label, disabled: isDisabled, onClick: () => setIsDialogOpen(true) }), isDialogOpen ? (_jsx(Dialog, { className: "open-visualizations-dialog", containerClassName: "open-visualizations-dialog-container", isModal: false, shouldCloseOnClick: () => true, onClose: () => setIsDialogOpen(false), children: _jsx("div", { className: "open-visualizations s-open-visualizations", children: _jsx(InsightPicker, { workspace: workspace, author: hasOwnershipSupport ? author : undefined, includeTags: includeTags, excludeTags: excludeTags, enabledVisualizationClassesUrls: enabledVisualizationUrls, selectedInsightId: openInsightId, metadataTimeZone: metadataTimeZone, enableSemanticSearch: isSemanticSearchEnabled, includePermissions: includePermissions, width: 740, ...pickerState, onSelect: handleSelect, onDescriptionPanelOpen: onDescriptionTooltipOpened, menuActions: menuActions }) }) })) : null] }));
|
|
90
|
+
return (_jsxs("div", { className: "s-report_select report-select editor-header-item", children: [_jsx(Button, { className: "gd-button-secondary type-metric customizable", value: label, disabled: isDisabled, onClick: () => setIsDialogOpen(true) }), isDialogOpen ? (_jsx(Dialog, { className: "open-visualizations-dialog", containerClassName: "open-visualizations-dialog-container", isModal: false, shouldCloseOnClick: () => true, onClose: () => setIsDialogOpen(false), children: _jsx("div", { className: "adi-open-visualizations s-open-visualizations", children: _jsx(InsightPicker, { workspace: workspace, author: hasOwnershipSupport ? author : undefined, includeTags: includeTags, excludeTags: excludeTags, enabledVisualizationClassesUrls: enabledVisualizationUrls, selectedInsightId: openInsightId, metadataTimeZone: metadataTimeZone, enableSemanticSearch: isSemanticSearchEnabled, includePermissions: includePermissions, width: 740, ...pickerState, onSelect: handleSelect, onDescriptionPanelOpen: onDescriptionTooltipOpened, menuActions: menuActions }) }) })) : null] }));
|
|
91
91
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useMemo } from "react";
|
|
4
|
-
import { isEmpty } from "lodash-es";
|
|
5
4
|
import { defineMessage, useIntl } from "react-intl";
|
|
6
5
|
import { useDispatch, useSelector } from "react-redux";
|
|
7
6
|
import { createSelector, createStructuredSelector } from "reselect";
|
|
@@ -10,6 +9,7 @@ import { useBackend } from "@gooddata/sdk-ui";
|
|
|
10
9
|
import { useInsightPagedList } from "@gooddata/sdk-ui-ext";
|
|
11
10
|
import { Dropdown, DropdownButton, DropdownList, InsightListItem, NoData, UiIcon, UiSkeleton, } from "@gooddata/sdk-ui-kit";
|
|
12
11
|
import { customMatcher, useHybridSearch, } from "@gooddata/sdk-ui-semantic-search";
|
|
12
|
+
import { _isEmpty } from "@gooddata/util";
|
|
13
13
|
import { deleteReport } from "../../actions/delete_actions.js";
|
|
14
14
|
import { descriptionTooltipOpened } from "../../sagas/description_tooltip/description_tooltip_ui_actions.js";
|
|
15
15
|
import { isOwnershipSupported, supportsObjectUris } from "../../selectors/backend_capabilities_selector.js";
|
|
@@ -108,7 +108,7 @@ export function VisualizationsDropdown({ workspace: workspaceId, label: buttonTe
|
|
|
108
108
|
align: "br tr",
|
|
109
109
|
},
|
|
110
110
|
], onOpenStateChanged: handleOpenStateChanged, renderButton: ({ isOpen, toggleDropdown }) => (_jsx(DropdownButton, { className: "type-metric customizable", value: buttonText, disabled: isDisabled, onClick: toggleDropdown, isOpen: isOpen, isSmall: false })), renderBody: ({ closeDropdown, isMobile }) => {
|
|
111
|
-
return (_jsx("div", { className: "open-visualizations s-open-visualizations", children: _jsx(DropdownList, { width: 350, isMobile: isMobile, isLoading: isLoading ? items.length === 0 : null, showSearch: initialLoadCompleted, searchString: search, searchFieldSize: "small", searchPlaceholder: intl.formatMessage({ id: "search_insights" }), onSearch: onSearch, showTabs: hasOwnershipSupport && initialLoadCompleted ? !search : null, tabs: dropdownTabsTranslationIds, selectedTabId:
|
|
111
|
+
return (_jsx("div", { className: "adi-open-visualizations s-open-visualizations", children: _jsx(DropdownList, { width: 350, isMobile: isMobile, isLoading: isLoading ? items.length === 0 : null, showSearch: initialLoadCompleted, searchString: search, searchFieldSize: "small", searchPlaceholder: intl.formatMessage({ id: "search_insights" }), onSearch: onSearch, showTabs: hasOwnershipSupport && initialLoadCompleted ? !search : null, tabs: dropdownTabsTranslationIds, selectedTabId: _isEmpty(search) ? selectedTabId : INSIGHT_DROPDOWN_ALL_TAB_ID, onTabSelect: onTabSelect, itemHeight: 40, items: insights, itemsCount: totalItems, maxHeight: 200, loadNextPage: loadNextPage, hasNextPage: hasNextPage || isRelatedLoading, skeletonItemsCount: loadingItemsCount, isNextPageLoading: isNextPageLoading, shouldLoadNextPage: shouldLoadNextPage, SkeletonItem: () => (_jsx(UiSkeleton, { itemWidth: ["100%"], direction: "row", itemPadding: 15, itemHeight: 30, itemsCount: 1, itemsGap: 0 })), body: () => {
|
|
112
112
|
if (!isLoading && items.length === 0 && searchRelatedItems.length > 0) {
|
|
113
113
|
return (_jsx(NoData, { notFoundLabel: intl.formatMessage({
|
|
114
114
|
id: "visualizationsList.noVisualizationsFound",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportVisualization.d.ts","sourceRoot":"","sources":["../../../src/components/report/ReportVisualization.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReportVisualization.d.ts","sourceRoot":"","sources":["../../../src/components/report/ReportVisualization.tsx"],"names":[],"mappings":"AAqEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAiBrE,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,6BAA6B,CAAC,EAAE,OAAO,sBAAsB,CAAC;CACjE;AAID,wBAAgB,mBAAmB,CAAC,EAChC,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,6BAAsD,GACzD,EAAE,yBAAyB,0DA0T3B"}
|
|
@@ -2,11 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useRef, useState, } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { isEmpty } from "lodash-es";
|
|
6
5
|
import { defineMessage } from "react-intl";
|
|
7
6
|
// NodeNext types react-measure's default as the module namespace; cast restores the component type.
|
|
8
7
|
import MeasureRaw from "react-measure";
|
|
9
8
|
import { useDispatch } from "react-redux";
|
|
9
|
+
import { _isEmpty } from "@gooddata/util";
|
|
10
10
|
const Measure = MeasureRaw;
|
|
11
11
|
import { v4 as uuid } from "uuid";
|
|
12
12
|
import { visClassUrl } from "@gooddata/sdk-model";
|
|
@@ -202,7 +202,7 @@ export function ReportVisualization({ projectId, appSessionId, messages, visuali
|
|
|
202
202
|
// Mounting it before the active locale's messages arrive would therefore freeze raw i18n
|
|
203
203
|
// keys (e.g. "dashboard.bucket.measures_title.column") into the bucket panel. Wait for the
|
|
204
204
|
// messages to be available so the very first reference point is computed with real strings.
|
|
205
|
-
if (
|
|
205
|
+
if (_isEmpty(messages)) {
|
|
206
206
|
return null;
|
|
207
207
|
}
|
|
208
208
|
return (_jsx("div", { className: className, children: _jsx(Measure, { onResize: onResize, bounds: true, children: ({ measureRef }) => (_jsx("div", { className: containerClassNames, ref: measureRef, children: _jsx(VisualizationGeneric, { appSessionId: appSessionId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportUtils.d.ts","sourceRoot":"","sources":["../../../src/components/report/reportUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reportUtils.d.ts","sourceRoot":"","sources":["../../../src/components/report/reportUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA0C7D,eAAO,MAAM,6BAA6B,iBAAkB,aAAa,KAAG,MAE3E,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,OAAO;;;;QA0BtD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { isGoodDataSdkError } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
const RECURSIVE_PARSER_LIMIT = 3;
|
|
5
5
|
const TAB = "\t";
|
|
6
6
|
const BREAK_LINE = "\n";
|
|
@@ -23,7 +23,7 @@ const parseArrayToTextareaContent = (arr, level) => {
|
|
|
23
23
|
const parsedValue = parseValueToTextareaContent(value, level);
|
|
24
24
|
return `${BREAK_LINE}${tabs}${TAB}${parsedValue}`;
|
|
25
25
|
});
|
|
26
|
-
return
|
|
26
|
+
return _isEmpty(data) ? "[]" : `[${tabs}${data}${BREAK_LINE}${tabs}]`;
|
|
27
27
|
};
|
|
28
28
|
const parseObjectTextareaContent = (obj, level) => {
|
|
29
29
|
const tabs = TAB.repeat(level);
|
|
@@ -31,7 +31,7 @@ const parseObjectTextareaContent = (obj, level) => {
|
|
|
31
31
|
const parsedValue = parseValueToTextareaContent(value, level);
|
|
32
32
|
return `${BREAK_LINE}${tabs}${TAB}"${key}": ${parsedValue}`;
|
|
33
33
|
});
|
|
34
|
-
return
|
|
34
|
+
return _isEmpty(data) ? "{}" : `{${data.join(",")}${BREAK_LINE}${tabs}}`;
|
|
35
35
|
};
|
|
36
36
|
export const parseRawDataToTextareaContent = (errorRawData) => {
|
|
37
37
|
return parseObjectTextareaContent(errorRawData, 0);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type IInsightUsageInDocumentItem } from "../../store/insight_usage/insight_usage_state.js";
|
|
2
|
+
export interface IDocumentItemProps {
|
|
3
|
+
item: IInsightUsageInDocumentItem;
|
|
4
|
+
}
|
|
5
|
+
export declare function DocumentItem({ item }: IDocumentItemProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=DocumentItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentItem.d.ts","sourceRoot":"","sources":["../../../src/components/saveReportFromKD/DocumentItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAEpG,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,2BAA2B,CAAC;CACrC;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE,kBAAkB,2CAqBxD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { useSelector } from "react-redux";
|
|
4
|
+
import { isAllowedDashboardLinks } from "../../selectors/route_selector.js";
|
|
5
|
+
import { documentUriFactorySelector } from "../../selectors/uri_selector.js";
|
|
6
|
+
export function DocumentItem({ item }) {
|
|
7
|
+
const isLinkable = useSelector(isAllowedDashboardLinks);
|
|
8
|
+
const documentUriFactory = useSelector(documentUriFactorySelector);
|
|
9
|
+
const { id, title } = item;
|
|
10
|
+
return (_jsx("li", { className: "s-insight-usage-document-item", children: isLinkable ? (_jsx("a", { className: "dashboard-item", href: documentUriFactory(id), rel: "noopener noreferrer", target: "_blank", children: _jsx("span", { children: title }) })) : (_jsx("span", { children: title })) }));
|
|
11
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type IInsightUsageOnDashboard } from "../../store/insight_usage/insight_usage_state.js";
|
|
1
|
+
import { type IInsightUsageInDocumentItem, type IInsightUsageOnDashboard } from "../../store/insight_usage/insight_usage_state.js";
|
|
2
2
|
export type InsightUsageOnDashboardsProps = {
|
|
3
3
|
insightUsedOnDashboards: IInsightUsageOnDashboard;
|
|
4
|
+
insightUsedInDocuments: IInsightUsageInDocumentItem[];
|
|
4
5
|
};
|
|
5
|
-
export declare function Component({ insightUsedOnDashboards }: InsightUsageOnDashboardsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function Component({ insightUsedOnDashboards, insightUsedInDocuments, }: InsightUsageOnDashboardsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export declare const InsightUsageOnDashboardsList: typeof Component;
|
|
7
8
|
//# sourceMappingURL=InsightUsageOnDashboardsList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightUsageOnDashboardsList.d.ts","sourceRoot":"","sources":["../../../src/components/saveReportFromKD/InsightUsageOnDashboardsList.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,wBAAwB,EAEhC,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightUsageOnDashboardsList.d.ts","sourceRoot":"","sources":["../../../src/components/saveReportFromKD/InsightUsageOnDashboardsList.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAEhC,MAAM,kDAAkD,CAAC;AA2B1D,MAAM,MAAM,6BAA6B,GAAG;IACxC,uBAAuB,EAAE,wBAAwB,CAAC;IAClD,sBAAsB,EAAE,2BAA2B,EAAE,CAAC;CACzD,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACtB,uBAAuB,EACvB,sBAAsB,GACzB,EAAE,6BAA6B,2CAuD/B;AAED,eAAO,MAAM,4BAA4B,kBAAY,CAAC"}
|
|
@@ -2,18 +2,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2020-2026 GoodData Corporation
|
|
3
3
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
4
|
import { DashboardItem } from "./DashboardItem.js";
|
|
5
|
+
import { DocumentItem } from "./DocumentItem.js";
|
|
5
6
|
function InaccessibleDashboardsMessage({ count }) {
|
|
6
7
|
return (_jsx("div", { className: "gd-kd-save-report-dialog-usage-inaccessible s-kd-save-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDashboards", values: { count, b: (chunks) => _jsx("b", { children: chunks }) } }) }));
|
|
7
8
|
}
|
|
8
9
|
function OnlyInaccessibleDashboardsMessage({ count }) {
|
|
9
10
|
return (_jsx("div", { className: "gd-kd-save-report-dialog-usage-inaccessible s-kd-save-dialog-usage-inaccessible", children: _jsx(FormattedMessage, { id: "dialogs.deleteReportConfirmation.usage.inaccessibleDashboardsOnly", values: { count } }) }));
|
|
10
11
|
}
|
|
11
|
-
export function Component({ insightUsedOnDashboards }) {
|
|
12
|
+
export function Component({ insightUsedOnDashboards, insightUsedInDocuments, }) {
|
|
12
13
|
const intl = useIntl();
|
|
13
14
|
const { accessibleDashboards, inaccessibleDashboardsCount, allDashboardsCount } = insightUsedOnDashboards;
|
|
14
15
|
const renderListOfAccessible = accessibleDashboards.length > 0;
|
|
15
16
|
const renderInaccessibleOnly = accessibleDashboards.length === 0 && inaccessibleDashboardsCount > 0;
|
|
16
17
|
const renderAlsoInaccessible = accessibleDashboards.length > 0 && inaccessibleDashboardsCount > 0;
|
|
17
|
-
return (
|
|
18
|
+
return (_jsxs("div", { className: "view-usage-wrapper s-view-usage", children: [allDashboardsCount > 0 ? (_jsxs("details", { className: "gd-collapsible-section s-view-usage-dashboards", children: [_jsx("summary", { children: intl.formatMessage({ id: "dialogs.saveReportFromKD.usage.dashboards" }, { count: allDashboardsCount }) }), _jsxs("div", { className: "gd-collapsible-content gd-state-text", children: [renderListOfAccessible ? (_jsx("ul", { children: accessibleDashboards.map((dash) => (_jsx(DashboardItem, { dashboard: dash }, dash.id))) })) : null, renderAlsoInaccessible ? (_jsx(InaccessibleDashboardsMessage, { count: inaccessibleDashboardsCount })) : null, renderInaccessibleOnly ? (_jsx(OnlyInaccessibleDashboardsMessage, { count: inaccessibleDashboardsCount })) : null] })] })) : null, insightUsedInDocuments.length > 0 ? (_jsxs("details", { className: "gd-collapsible-section s-view-usage-documents", children: [_jsx("summary", { children: intl.formatMessage({ id: "dialogs.saveReportFromKD.usage.documents" }, { count: insightUsedInDocuments.length }) }), _jsx("div", { className: "gd-collapsible-content gd-state-text", children: _jsx("ul", { children: insightUsedInDocuments.map((item) => (_jsx(DocumentItem, { item: item }, item.id))) }) })] })) : null] }));
|
|
18
19
|
}
|
|
19
20
|
export const InsightUsageOnDashboardsList = Component;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AttributeBubbleContent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wCAAwC,EAAE,MAAM,0BAA0B,CAAC;AAEzF,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,GACb,EAAE,wCAAwC,
|
|
1
|
+
{"version":3,"file":"AttributeBubbleContent.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AttributeBubbleContent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,wCAAwC,EAAE,MAAM,0BAA0B,CAAC;AAEzF,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,GACb,EAAE,wCAAwC,2CA6B1C;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wCAAwC,2CAanF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,wCAAwC,2CAkBrF"}
|
|
@@ -5,10 +5,12 @@ import { createNumberFormatter, formatAttributeValue } from "@gooddata/sdk-ui";
|
|
|
5
5
|
export function TooltipAttrElements({ attrElements, attrElementsTotalCount, attrElementsNumberFormat, separators, }) {
|
|
6
6
|
const intl = useIntl();
|
|
7
7
|
const remainingElementsCount = attrElementsTotalCount - attrElements.length;
|
|
8
|
-
// the values
|
|
8
|
+
// the values are displayed formatted, like the filter displays them: date values come formatted,
|
|
9
|
+
// the values of a numeric computed attribute are formatted by their number format; raw otherwise
|
|
9
10
|
const formatter = createNumberFormatter(separators);
|
|
10
|
-
const displayTitle = (
|
|
11
|
-
|
|
11
|
+
const displayTitle = ({ title, formattedTitle }) => formattedTitle ||
|
|
12
|
+
(attrElementsNumberFormat ? formatAttributeValue(title, attrElementsNumberFormat, formatter) : title);
|
|
13
|
+
return (_jsxs(_Fragment, { children: [attrElements.map((element, idx) => (_jsxs("span", { className: "s-attribute-element", children: [displayTitle(element) || `(${intl.formatMessage({ id: "empty_value" })})`, _jsx("br", {})] }, idx))), remainingElementsCount > 0 && (_jsx("span", { className: "adi-tooltip-elements-more", children: _jsx(FormattedMessage, { id: "dashboard.catalog_item.shortening_decoration", values: { count: remainingElementsCount } }) }, attrElements.length))] }));
|
|
12
14
|
}
|
|
13
15
|
export function TooltipValuesSection(props) {
|
|
14
16
|
const { attrElements } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualizationConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/VisualizationConverter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VisualizationConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/VisualizationConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAMH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,QAAQ,EAOb,KAAK,KAAK,EAIb,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEH,KAAK,OAAO,IAAI,WAAW,EAC3B,KAAK,cAAc,EAUnB,KAAK,iCAAiC,EAgBzC,MAAM,iCAAiC,CAAC;AA0GzC,eAAO,MAAM,aAAa,WAAY,iCAAiC,KAAG,OAiBzE,CAAC;AAiIF;;GAEG;AACH,eAAO,MAAM,aAAa,WAAY,WAAW,KAAG,OAMnD,CAAC;AA+BF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,kBACd,cAAc,yBACN,MAAM,YACnB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,KAC7B,QA8BF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { compact, isEmpty, omit } from "lodash-es";
|
|
3
2
|
import { isComputedAttributeRef, uriRef, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _compact, _isEmpty, _omit } from "@gooddata/util";
|
|
4
4
|
import { isVisualizationObjectAbsoluteDateFilter, isVisualizationObjectArbitraryAttributeFilter, isVisualizationObjectArithmeticMeasureDefinition, isVisualizationObjectAttributeFilter, isVisualizationObjectMatchAttributeFilter, isVisualizationObjectMeasure, isVisualizationObjectMeasureValueFilter, isVisualizationObjectNegativeAttributeFilter, isVisualizationObjectPoPMeasureDefinition, isVisualizationObjectPositiveAttributeFilter, isVisualizationObjectPreviousPeriodMeasureDefinition, isVisualizationObjectRankingFilter, isVisualizationObjectRelativeDateFilter, } from "../../typings/bear/bearTypes.js";
|
|
5
5
|
import { fromBearRef, fromScopedBearRef } from "./ObjRefConverter.js";
|
|
6
6
|
import { deserializeProperties, serializeProperties } from "./PropertiesConverter.js";
|
|
@@ -183,7 +183,7 @@ const convertMeasureDefinition = (definition) => {
|
|
|
183
183
|
return {
|
|
184
184
|
measureDefinition: {
|
|
185
185
|
...definition.measureDefinition,
|
|
186
|
-
filters: filters ?
|
|
186
|
+
filters: filters ? _compact(filters.map(convertMeasureFilter)) : [],
|
|
187
187
|
},
|
|
188
188
|
};
|
|
189
189
|
};
|
|
@@ -243,11 +243,11 @@ const resolveReferences = (mdObject) => {
|
|
|
243
243
|
references: content.references || {},
|
|
244
244
|
});
|
|
245
245
|
// set the new properties and references
|
|
246
|
-
const referencesProp =
|
|
246
|
+
const referencesProp = _isEmpty(convertedReferences) ? undefined : { references: convertedReferences };
|
|
247
247
|
return {
|
|
248
248
|
...mdObject,
|
|
249
249
|
content: {
|
|
250
|
-
...
|
|
250
|
+
..._omit(mdObject.content, "references"),
|
|
251
251
|
properties: serializeProperties(convertedProperties),
|
|
252
252
|
...referencesProp,
|
|
253
253
|
},
|
|
@@ -265,7 +265,7 @@ export const convertVisualization = (visualization, visualizationClassUri, userM
|
|
|
265
265
|
return {
|
|
266
266
|
insight: {
|
|
267
267
|
buckets: content.buckets.map(convertBucket),
|
|
268
|
-
filters: content.filters ?
|
|
268
|
+
filters: content.filters ? _compact(content.filters.map(convertFilter)) : [],
|
|
269
269
|
...(attributeFilterConfigs ? { attributeFilterConfigs: attributeFilterConfigs } : {}),
|
|
270
270
|
...(content.layers ? { layers: content.layers } : {}),
|
|
271
271
|
...(content.parameters ? { parameters: content.parameters } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/toBackend/InsightConverter.ts"],"names":[],"mappings":"AAIA,OAAO,EAIH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAmB1B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/toBackend/InsightConverter.ts"],"names":[],"mappings":"AAIA,OAAO,EAIH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAmB1B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAGH,KAAK,oBAAoB,EAEzB,KAAK,2BAA2B,EACnC,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAAE,KAAK,sBAAsB,EAAyB,MAAM,sBAAsB,CAAC;AA4B1F;;GAEG;AACH,eAAO,MAAM,qBAAqB,YACrB,kBAAkB,YACjB,sBAAsB,KACjC,2BAwBF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,YACxB,kBAAkB,YACjB,sBAAsB,KACjC,oBASF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,YAAa,QAAQ,YAAY,sBAAsB,KAAG,oBAgBpF,CAAC"}
|