@gooddata/sdk-ui-ext 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 +161 -126
- package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
- package/esm/internal/components/BaseVisualization.js +2 -3
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.js +2 -2
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +2 -3
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +2 -3
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +2 -3
- package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +2 -3
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +2 -3
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +2 -3
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +13 -14
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +2 -3
- package/esm/internal/components/configurationControls/PagingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PagingSection.js +3 -4
- package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +3 -4
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +2 -3
- package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -4
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +2 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.js +2 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +4 -5
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +2 -3
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +2 -3
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +2 -3
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts +1 -2
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.js +2 -2
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +2 -3
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.js +1 -2
- package/esm/internal/components/configurationPanels/UnsupportedConfigurationPanel.js +2 -2
- package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.js +2 -3
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +2 -3
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +2 -3
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +2 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +3 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +3 -3
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +2 -4
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +5 -7
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +10 -12
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +6 -7
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +3 -3
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +4 -5
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +5 -6
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +2 -3
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +3 -5
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +3 -5
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +4 -4
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +7 -8
- package/esm/internal/translations/en-US.localization-bundle.d.ts +28 -0
- package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.js +29 -1
- package/esm/internal/utils/bucketConfig.d.ts.map +1 -1
- package/esm/internal/utils/bucketConfig.js +2 -3
- package/esm/internal/utils/bucketHelper.js +8 -8
- package/esm/internal/utils/colors.d.ts.map +1 -1
- package/esm/internal/utils/colors.js +6 -7
- package/esm/internal/utils/controlsHelper.d.ts.map +1 -1
- package/esm/internal/utils/controlsHelper.js +7 -7
- package/esm/internal/utils/dimensions.d.ts.map +1 -1
- package/esm/internal/utils/dimensions.js +4 -4
- package/esm/internal/utils/drillablePredicates.d.ts.map +1 -1
- package/esm/internal/utils/drillablePredicates.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +8 -8
- package/esm/internal/utils/propertiesHelper.js +8 -8
- package/esm/internal/utils/removeUseless.d.ts.map +1 -1
- package/esm/internal/utils/removeUseless.js +2 -3
- package/esm/internal/utils/translations.d.ts.map +1 -1
- package/esm/internal/utils/translations.js +2 -3
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +16 -17
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +8 -9
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +3 -4
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.js +3 -3
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +14 -15
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +5 -6
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +11 -12
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +13 -14
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +13 -14
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +3 -4
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +11 -12
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +10 -11
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +3 -4
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +4 -4
- package/esm/sdk-ui-ext.d.ts +1 -1
- package/esm/share/ObjectShareDialog.d.ts +1 -1
- package/esm/share/ObjectShareDialog.js +3 -3
- package/esm/share/messages.d.ts +28 -0
- package/esm/share/messages.d.ts.map +1 -1
- package/esm/share/messages.js +14 -0
- package/esm/share/removeAccessConfirm.d.ts +21 -0
- package/esm/share/removeAccessConfirm.d.ts.map +1 -0
- package/esm/share/removeAccessConfirm.js +27 -0
- package/esm/share/useObjectShareDialog.d.ts +14 -11
- package/esm/share/useObjectShareDialog.d.ts.map +1 -1
- package/esm/share/useObjectShareDialog.js +54 -24
- package/package.json +21 -21
|
@@ -2,11 +2,10 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { set } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { isSemanticConditionalFormattingEnabled, } from "@gooddata/sdk-model";
|
|
8
7
|
import { Button, UiIconButton } from "@gooddata/sdk-ui-kit";
|
|
9
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
8
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
10
9
|
import { conditionalFormattingMessages } from "../../../../locales.js";
|
|
11
10
|
import { ConfigSection } from "../ConfigSection.js";
|
|
12
11
|
import { ConditionalFormattingDialog } from "./ConditionalFormattingDialog.js";
|
|
@@ -134,7 +133,7 @@ export function ConditionalFormattingSection({ properties, propertiesMeta, insig
|
|
|
134
133
|
// Spread the existing config so version (and any future cross-stack fields) survive an edit.
|
|
135
134
|
const next = withSuppressedTargets({ ...config, enabled: enabledNext, rules: rulesNext }, prunedSuppressedTargets);
|
|
136
135
|
const cloned = _cloneDeep(properties ?? {});
|
|
137
|
-
|
|
136
|
+
_set(cloned, "controls.conditionalFormatting", next);
|
|
138
137
|
pushData?.({ properties: cloned });
|
|
139
138
|
};
|
|
140
139
|
// The one place that edits `suppressedTargets` membership for a single target — every other commit
|
package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomTooltipSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/customTooltip/CustomTooltipSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomTooltipSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/customTooltip/CustomTooltipSection.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAarF,MAAM,WAAW,0BAA0B;IACvC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,oBAAoB,CAAC,EACjC,gBAAwB,EACxB,UAAe,EACf,cAAmB,EACnB,QAAmB,GACtB,EAAE,0BAA0B,2CA2H5B"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useId, useRef, useState } from "react";
|
|
4
|
-
import { set } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
5
|
import { useDebounce } from "@gooddata/sdk-ui";
|
|
7
6
|
import { UiIcon, UiLink } from "@gooddata/sdk-ui-kit";
|
|
8
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
9
8
|
import { messages } from "../../../../locales.js";
|
|
10
9
|
import { customTooltipPlacementDropdownItems } from "../../../constants/dropdowns.js";
|
|
11
10
|
import { getTranslatedDropdownItems } from "../../../utils/translations.js";
|
|
@@ -33,7 +32,7 @@ export function CustomTooltipSection({ controlsDisabled = false, properties = {}
|
|
|
33
32
|
const pushContent = (newContent) => {
|
|
34
33
|
lastPushedContentRef.current = newContent;
|
|
35
34
|
const clonedProperties = _cloneDeep(properties);
|
|
36
|
-
|
|
35
|
+
_set(clonedProperties, "controls.customTooltip.content", newContent);
|
|
37
36
|
pushData({ properties: clonedProperties });
|
|
38
37
|
};
|
|
39
38
|
const pushContentRef = useRef(pushContent);
|
|
@@ -13,12 +13,11 @@ export interface IInteractionsSectionProps {
|
|
|
13
13
|
supportsAlertConfiguration?: boolean;
|
|
14
14
|
supportsDrillDownConfiguration?: boolean;
|
|
15
15
|
supportsScheduledExportsConfiguration?: boolean;
|
|
16
|
-
supportsKeyDriveAnalysis?: boolean;
|
|
17
16
|
showImplicitDrillToUrl?: boolean;
|
|
18
17
|
enableDrillToUrlByDefault?: boolean;
|
|
19
18
|
}
|
|
20
19
|
export declare function QuestionMarkTooltip(props: {
|
|
21
20
|
tooltipText: string;
|
|
22
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare const InteractionsSection: import("react").MemoExoticComponent<({ metrics, areControlsDisabledGetter, properties, propertiesMeta, pushData, InteractionsDetailRenderer, supportsAlertConfiguration, supportsDrillDownConfiguration, supportsScheduledExportsConfiguration,
|
|
22
|
+
export declare const InteractionsSection: import("react").MemoExoticComponent<({ metrics, areControlsDisabledGetter, properties, propertiesMeta, pushData, InteractionsDetailRenderer, supportsAlertConfiguration, supportsDrillDownConfiguration, supportsScheduledExportsConfiguration, showImplicitDrillToUrl, enableDrillToUrlByDefault, }: IInteractionsSectionProps) => import("react/jsx-runtime").JSX.Element>;
|
|
24
23
|
//# sourceMappingURL=InteractionsSection.d.ts.map
|
package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractionsSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/interactions/InteractionsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIpD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAI5E,MAAM,WAAW,yBAAyB;IACtC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yBAAyB,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC;IACnE,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,0BAA0B,CAAC,EAAE,MAAM,SAAS,CAAC;IAC7C,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,
|
|
1
|
+
{"version":3,"file":"InteractionsSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/interactions/InteractionsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIpD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAI5E,MAAM,WAAW,yBAAyB;IACtC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yBAAyB,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC;IACnE,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,0BAA0B,CAAC,EAAE,MAAM,SAAS,CAAC;IAC7C,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAGD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,2CASjE;AAED,eAAO,MAAM,mBAAmB,wSAY7B,yBAAyB,6CAgI1B,CAAC"}
|
|
@@ -10,7 +10,7 @@ const TOOLTIP_ALIGN_POINTS = [{ align: "cr cl", offset: { x: 5, y: 0 } }];
|
|
|
10
10
|
export function QuestionMarkTooltip(props) {
|
|
11
11
|
return (_jsxs(BubbleHoverTrigger, { children: [_jsx("span", { className: "gd-interactions-section__question-mark gd-icon-circle-question" }), _jsx(Bubble, { alignPoints: TOOLTIP_ALIGN_POINTS, children: _jsx(FormattedMessage, { id: props.tooltipText }) })] }));
|
|
12
12
|
}
|
|
13
|
-
export const InteractionsSection = memo(function InteractionsSection({ metrics, areControlsDisabledGetter, properties, propertiesMeta, pushData, InteractionsDetailRenderer, supportsAlertConfiguration, supportsDrillDownConfiguration, supportsScheduledExportsConfiguration,
|
|
13
|
+
export const InteractionsSection = memo(function InteractionsSection({ metrics, areControlsDisabledGetter, properties, propertiesMeta, pushData, InteractionsDetailRenderer, supportsAlertConfiguration, supportsDrillDownConfiguration, supportsScheduledExportsConfiguration, showImplicitDrillToUrl, enableDrillToUrlByDefault, }) {
|
|
14
14
|
const isDrillDownDisabled = properties?.controls?.["disableDrillDown"] ?? false;
|
|
15
15
|
const isDrillIntoURLDisabled = properties?.controls?.["disableDrillIntoURL"] ?? !enableDrillToUrlByDefault;
|
|
16
16
|
const isAlertsDisabled = properties?.controls?.["disableAlerts"] ?? false;
|
|
@@ -18,7 +18,7 @@ export const InteractionsSection = memo(function InteractionsSection({ metrics,
|
|
|
18
18
|
const isKdaDisabled = properties?.controls?.["disableKeyDriveAnalysis"] ?? false;
|
|
19
19
|
const isSeparatorVisible = supportsDrillDownConfiguration &&
|
|
20
20
|
(supportsAlertConfiguration || supportsScheduledExportsConfiguration);
|
|
21
|
-
return (_jsxs(ConfigSection, { id: "interactions_section", className: "gd-interactions-section", title: messages["interactions"].id, propertiesMeta: propertiesMeta, pushData: pushData, children: [supportsAlertConfiguration ? (_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableAlerts", labelText: messages["interactionsAlerts"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.alerts"), checked: !isAlertsDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsAlertsTooltip"].id })] })) : null, supportsScheduledExportsConfiguration ? (_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableScheduledExports", labelText: messages["interactionsScheduledExports"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.scheduled_exports"), checked: !isScheduledExportsDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsScheduledExportsTooltip"].id })] })) : null,
|
|
21
|
+
return (_jsxs(ConfigSection, { id: "interactions_section", className: "gd-interactions-section", title: messages["interactions"].id, propertiesMeta: propertiesMeta, pushData: pushData, children: [supportsAlertConfiguration ? (_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableAlerts", labelText: messages["interactionsAlerts"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.alerts"), checked: !isAlertsDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsAlertsTooltip"].id })] })) : null, supportsScheduledExportsConfiguration ? (_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableScheduledExports", labelText: messages["interactionsScheduledExports"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.scheduled_exports"), checked: !isScheduledExportsDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsScheduledExportsTooltip"].id })] })) : null, metrics && metrics.length > 0 ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableKeyDriveAnalysis", labelText: messages["interactionsKda"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.kda"), checked: !isKdaDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsKdaTooltip"].id })] }), _jsx("div", { className: "gd-interactions-section__kda_metrics_list", children: metrics.map((m) => {
|
|
22
22
|
const isKdaMetricDisabled = getKdaMetricDisabled(properties, m);
|
|
23
23
|
return (_jsx("div", { className: "gd-interactions-section__kda_metrics_list__item", children: _jsx(CheckboxControl, { valuePath: `disableKeyDriveAnalysisOn.${m.measure.localIdentifier}`, labelContent: _jsxs("div", { className: "gd-interactions-section__kda_metrics_list__item__label", children: [_jsx("span", { className: "gd-interactions-section__kda_metrics_list__item__label__icon", children: _jsx(UiIcon, { type: "metric", color: "currentColor", size: 20 }) }), _jsx(ShortenedText, { className: "gd-interactions-section__kda_metrics_list__item__title", ellipsisPosition: "end", tooltipAlignPoints: [
|
|
24
24
|
{ align: "cr cl", offset: { x: 5, y: 0 } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TotalSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/total/TotalSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TotalSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/total/TotalSection.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAMrF,MAAM,WAAW,kBAAkB;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,wBAAwB,CAAC;IACrC,cAAc,EAAE,GAAG,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;CAChC;AAID,eAAO,MAAM,YAAY,oGAKtB,kBAAkB,6CAkDnB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import { memo, useEffect } from "react";
|
|
4
|
-
import { set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
6
|
import { messages } from "../../../../locales.js";
|
|
8
7
|
import { isTotalSectionEnabled } from "../../../utils/propertiesHelper.js";
|
|
9
8
|
import { getTranslation } from "../../../utils/translations.js";
|
|
@@ -26,7 +25,7 @@ export const TotalSection = memo(function TotalSection({ controlsDisabled, prope
|
|
|
26
25
|
useEffect(() => {
|
|
27
26
|
if (isTotalEnabled && !totalColumnName) {
|
|
28
27
|
const cloneProperties = _cloneDeep(properties);
|
|
29
|
-
|
|
28
|
+
_set(cloneProperties, "controls.total.name", defaultTotalColumnName);
|
|
30
29
|
pushData({ properties: cloneProperties });
|
|
31
30
|
}
|
|
32
31
|
}, [isTotalEnabled, totalColumnName, defaultTotalColumnName, properties, pushData]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationPanelContent.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/ConfigurationPanelContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAG7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAqB3C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,+BAA+B,CAAC,WAAW,GAAG,GAAG;IAC9D,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,2BAA2B,CAAC,EAAE,4BAA4B,CAAC;IAC3D;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,8BAAsB,yBAAyB,CAC3C,CAAC,SAAS,+BAA+B,GAAG,+BAA+B,CAC7E,SAAQ,aAAa,CAAC,CAAC,CAAC;IACtB,OAAc,YAAY,EAAE,+BAA+B,CAgBzD;IAEF,SAAS,CAAC,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAExD,YAAY,KAAK,EAAE,CAAC,EAGnB;IAEe,MAAM,4CAQrB;IAED,SAAS,CAAC,QAAQ,CAAC,wBAAwB,IAAI,SAAS,CAAC;IAEzD;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAG/D;IAED,SAAS,CAAC,kBAAkB,IAAI,SAAS,CAwBxC;IAED,SAAS,CAAC,mBAAmB,IAAI,SAAS,CAYzC;IAED,SAAS,CAAC,yBAAyB,IAAI,SAAS,
|
|
1
|
+
{"version":3,"file":"ConfigurationPanelContent.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/ConfigurationPanelContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAG7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAqB3C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,+BAA+B,CAAC,WAAW,GAAG,GAAG;IAC9D,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,2BAA2B,CAAC,EAAE,4BAA4B,CAAC;IAC3D;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,8BAAsB,yBAAyB,CAC3C,CAAC,SAAS,+BAA+B,GAAG,+BAA+B,CAC7E,SAAQ,aAAa,CAAC,CAAC,CAAC;IACtB,OAAc,YAAY,EAAE,+BAA+B,CAgBzD;IAEF,SAAS,CAAC,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAExD,YAAY,KAAK,EAAE,CAAC,EAGnB;IAEe,MAAM,4CAQrB;IAED,SAAS,CAAC,QAAQ,CAAC,wBAAwB,IAAI,SAAS,CAAC;IAEzD;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAG/D;IAED,SAAS,CAAC,kBAAkB,IAAI,SAAS,CAwBxC;IAED,SAAS,CAAC,mBAAmB,IAAI,SAAS,CAYzC;IAED,SAAS,CAAC,yBAAyB,IAAI,SAAS,CAsC/C;IAED,SAAS,CAAC,qBAAqB,IAAI,SAAS,CAiB3C;IAED,SAAS,CAAC,sBAAsB,IAAI,SAAS,CAqC5C;IAED,SAAS,CAAC,0BAA0B,IAAI,SAAS,CAehD;IAED,SAAS,CAAC,qBAAqB,IAAI,SAAS,CAU3C;CACJ"}
|
|
@@ -65,7 +65,6 @@ export class ConfigurationPanelContent extends PureComponent {
|
|
|
65
65
|
renderInteractionsSection() {
|
|
66
66
|
const { pushData, properties, propertiesMeta, panelConfig, configurationPanelRenderers, featureFlags, insight, } = this.props;
|
|
67
67
|
const showImplicitDrillToUrl = isInsightSupportedForImplicitDrillToUrl(insight);
|
|
68
|
-
const supportsKeyDriveAnalysis = featureFlags?.enableChangeAnalysis;
|
|
69
68
|
const insightSupportsScheduledExports = isInsightSupportedForScheduledExports(insight);
|
|
70
69
|
const insightSupportsAlerts = isInsightSupportedForAlerts(insight);
|
|
71
70
|
const supportsAlertsConfiguration = insightSupportsAlerts;
|
|
@@ -74,7 +73,7 @@ export class ConfigurationPanelContent extends PureComponent {
|
|
|
74
73
|
return supportsAlertsConfiguration ||
|
|
75
74
|
supportsScheduledExportsConfiguration ||
|
|
76
75
|
panelConfig?.supportsAttributeHierarchies ||
|
|
77
|
-
showImplicitDrillToUrl ? (_jsx(InteractionsSection, { metrics: metrics, areControlsDisabledGetter: this.isControlDisabled, properties: properties, propertiesMeta: propertiesMeta, pushData: pushData, supportsAlertConfiguration: !!supportsAlertsConfiguration, supportsDrillDownConfiguration: panelConfig?.supportsAttributeHierarchies, supportsScheduledExportsConfiguration: !!supportsScheduledExportsConfiguration, InteractionsDetailRenderer: configurationPanelRenderers?.InteractionsDetailRenderer, showImplicitDrillToUrl: showImplicitDrillToUrl,
|
|
76
|
+
showImplicitDrillToUrl ? (_jsx(InteractionsSection, { metrics: metrics, areControlsDisabledGetter: this.isControlDisabled, properties: properties, propertiesMeta: propertiesMeta, pushData: pushData, supportsAlertConfiguration: !!supportsAlertsConfiguration, supportsDrillDownConfiguration: panelConfig?.supportsAttributeHierarchies, supportsScheduledExportsConfiguration: !!supportsScheduledExportsConfiguration, InteractionsDetailRenderer: configurationPanelRenderers?.InteractionsDetailRenderer, showImplicitDrillToUrl: showImplicitDrillToUrl,
|
|
78
77
|
// enableDrillToUrlByDefault is actually not a feature flag, but setting
|
|
79
78
|
// for some reason the property is called featureFlags, but contains both feature flags and settings
|
|
80
79
|
enableDrillToUrlByDefault: featureFlags?.enableDrillToUrlByDefault })) : null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { _omit } from "@gooddata/util";
|
|
3
3
|
import { UnsupportedProperties } from "../configurationControls/UnsupportedProperties.js";
|
|
4
4
|
import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
|
|
5
5
|
export class UnsupportedConfigurationPanel extends ConfigurationPanelContent {
|
|
6
6
|
componentDidMount() {
|
|
7
7
|
this.props.pushData?.({
|
|
8
|
-
properties:
|
|
8
|
+
properties: _omit(this.props.properties, "controls"),
|
|
9
9
|
references: null,
|
|
10
10
|
ignoreUndoRedo: true,
|
|
11
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightPagedList.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/insightList/useInsightPagedList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInsightPagedList.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/insightList/useInsightPagedList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAA2B,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAKjD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,MAAM,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,CAAC,MAAM,EAAE;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;KACxB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,kBAAkB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3E,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,OAAO,EACP,WAAW,EACX,MAAM,EACN,OAAO,EACP,IAAI,EACJ,WAAW,EACX,MAAM,EACN,aAAsC,EACtC,eAAe,EACf,iBAAyB,EACzB,kBAA0B,EAC1B,UAAU,GACb,EAAE,uBAAuB,GAAG,uBAAuB,CA2PnD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { _debounce, _isEmpty } from "@gooddata/util";
|
|
5
4
|
const ITEMS_PER_PAGE = 50;
|
|
6
5
|
const DEFAULT_SORT_DIRECTION = "desc";
|
|
7
6
|
function buildSorting(sortBy, direction) {
|
|
@@ -174,7 +173,7 @@ export function useInsightPagedList({ backend, workspaceId, author, tabsIds, tag
|
|
|
174
173
|
void fetchItems({ page: nextPage, search: effectiveSearch, tabId: selectedTabId });
|
|
175
174
|
}, [hasNextPage, isNextPageLoading, isLoading, currentPage, effectiveSearch, selectedTabId, fetchItems]);
|
|
176
175
|
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
177
|
-
const onSearch = useCallback(
|
|
176
|
+
const onSearch = useCallback(_debounce((searchString) => {
|
|
178
177
|
setCurrentPage(0);
|
|
179
178
|
setSearch(searchString);
|
|
180
179
|
void fetchItems({ page: 0, search: searchString, tabId: selectedTabId, resetItems: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableColumnBarCharts.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/PluggableColumnBarCharts.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableColumnBarCharts.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/PluggableColumnBarCharts.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EAMhB,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAGH,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EACrB,MAAM,mCAAmC,CAAC;AAoB3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,qBAAa,wBAAyB,SAAQ,kBAAkB;IAC5D,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAoBlC;IAEe,uBAAuB,IAAI,OAAO,CAOjD;IAED,OAAO,CAAC,8BAA8B;IAWtC,OAAO,CAAC,sBAAsB;IAad,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAED,OAAO,CAAC,iBAAiB;IAKzB,UAAmB,gBAAgB,CAAC,sBAAsB,EAAE,uBAAuB,GAAG,IAAI,CAEzF;IAED,OAAO,CAAC,iCAAiC;IAmBzC,OAAO,CAAC,uBAAuB;IAgB/B,OAAO,CAAC,+BAA+B;IAwCvC,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,sBAAsB;CAGjC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { bucketIsEmpty, bucketsItems, insightBucket, insightBuckets, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, getIntersectionPartAfter, } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _cloneDeep, shiftArrayRight } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _set, shiftArrayRight } from "@gooddata/util";
|
|
6
5
|
import { AXIS } from "../../constants/axis.js";
|
|
7
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
8
7
|
import { COLUMN_BAR_CHART_UICONFIG_WITH_MULTIPLE_DATES, MAX_CATEGORIES_COUNT, MAX_METRICS_COUNT, MAX_STACKS_COUNT, } from "../../constants/uiConfig.js";
|
|
@@ -66,7 +65,7 @@ export class PluggableColumnBarCharts extends PluggableBaseChart {
|
|
|
66
65
|
}
|
|
67
66
|
configureBucketsWithMultipleDates(extendedReferencePoint) {
|
|
68
67
|
const { measures, views, stacks } = this.getMeasuresViewStackBucketItems(extendedReferencePoint);
|
|
69
|
-
|
|
68
|
+
_set(extendedReferencePoint, BUCKETS, [
|
|
70
69
|
{
|
|
71
70
|
localIdentifier: BucketNames.MEASURES,
|
|
72
71
|
items: measures,
|
package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAK1B,MAAM,qBAAqB,CAAC;AAc7B,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAGH,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAmB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAOxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBAAa,kBAAmB,SAAQ,kBAAkB;IACtD,YAAY,KAAK,EAAE,aAAa,EAO/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwBlC;IAEe,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAEe,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAiBnF;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,GAAG,GAC3B,IAAI,CAIN;IAED,UAAmB,gBAAgB,CAAC,sBAAsB,EAAE,uBAAuB,GAAG,IAAI,CAiBzF;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;IAED,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,+BAA+B;IAevC,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,+BAA+B;IAyBvC,OAAO,CAAC,0BAA0B;IA8DlC,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,+BAA+B;IAUvC,OAAO,CAAC,6BAA6B;CASxC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { bucketsItems, insightBucket, insightBuckets, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
7
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
8
7
|
import { AREA_CHART_SUPPORTED_PROPERTIES, OPTIONAL_STACKING_PROPERTIES, } from "../../../constants/supportedProperties.js";
|
|
9
8
|
import { AREA_UICONFIG_WITH_MULTIPLE_DATES, MAX_CATEGORIES_COUNT, MAX_METRICS_COUNT, } from "../../../constants/uiConfig.js";
|
|
@@ -102,7 +101,7 @@ export class PluggableAreaChart extends PluggableBaseChart {
|
|
|
102
101
|
}
|
|
103
102
|
configureBuckets(extendedReferencePoint) {
|
|
104
103
|
const { measures, views, stacks } = this.getBucketItemsWithMultipleDates(extendedReferencePoint);
|
|
105
|
-
|
|
104
|
+
_set(extendedReferencePoint, BUCKETS, [
|
|
106
105
|
{
|
|
107
106
|
localIdentifier: BucketNames.MEASURES,
|
|
108
107
|
items: measures,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { omitBy, tail } from "lodash-es";
|
|
4
4
|
import { insightHasMeasures, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { BaseChart, ColorUtils, updateConfigWithSettings, updateForecastWithSettings, updateOutliersWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
7
7
|
import { buildTooltipExecutionFromConfig } from "@gooddata/sdk-ui-vis-commons";
|
|
8
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
8
|
+
import { _cloneDeep, _compact, _isEmpty, _set } from "@gooddata/util";
|
|
9
9
|
import { messages } from "../../../../locales.js";
|
|
10
10
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
11
11
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -100,7 +100,7 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
100
100
|
configureBuckets(extendedReferencePoint) {
|
|
101
101
|
const buckets = extendedReferencePoint?.buckets ?? [];
|
|
102
102
|
const categoriesCount = extendedReferencePoint?.uiConfig?.buckets?.[BucketNames.VIEW]?.itemsLimit ?? MAX_CATEGORIES_COUNT;
|
|
103
|
-
|
|
103
|
+
_set(extendedReferencePoint, BUCKETS, [
|
|
104
104
|
{
|
|
105
105
|
localIdentifier: BucketNames.MEASURES,
|
|
106
106
|
items: getFilteredMeasuresForStackedCharts(buckets),
|
|
@@ -231,7 +231,7 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
231
231
|
buildVisualizationConfig(options, supportedControls) {
|
|
232
232
|
const { config = {}, customVisualizationConfig = {}, a11yTitle, a11yDescription } = options;
|
|
233
233
|
const colorMapping = supportedControls?.["colorMapping"];
|
|
234
|
-
const validColorMapping =
|
|
234
|
+
const validColorMapping = _compact(colorMapping).map((mapItem) => ({
|
|
235
235
|
predicate: ColorUtils.getColorMappingPredicate(mapItem.id),
|
|
236
236
|
color: mapItem.color,
|
|
237
237
|
}));
|
package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBubbleChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableBubbleChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAO9D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAqFlC;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;CACJ"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
2
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
4
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
7
5
|
import { BUBBLE_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
6
|
import { DEFAULT_BUBBLE_CHART_CONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -84,7 +82,7 @@ export class PluggableBubbleChart extends PluggableBaseChart {
|
|
|
84
82
|
: allMeasures
|
|
85
83
|
.filter((measure) => ![...measures, ...secondaryMeasures].includes(measure))
|
|
86
84
|
.slice(0, 1);
|
|
87
|
-
|
|
85
|
+
_set(newReferencePoint, BUCKETS, [
|
|
88
86
|
{
|
|
89
87
|
localIdentifier: BucketNames.MEASURES,
|
|
90
88
|
items: measures,
|
package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableComboChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableComboChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,kBAAkB,EAK1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,yBAAyB,CAAC;AAQtF,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAEH,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AA4B9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,mBAAoB,SAAQ,kBAAkB;IACvD,OAAO,CAAC,gBAAgB,CAAqC;IAC7D,OAAO,CAAC,kBAAkB,CAAqC;IAE/D,YAAY,KAAK,EAAE,aAAa,EAgB/B;IAEe,0BAA0B,IAAI,MAAM,EAAE,CAErD;IAEe,WAAW,IAAI,SAAS,CAUvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAgDlC;IAEM,wBAAwB,IAAI,OAAO,CAEzC;IAED,UAAmB,gBAAgB,CAAC,iBAAiB,EAAE,uBAAuB,GAAG,IAAI,CA2DpF;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,iBAAiB,EAAE,wBAAwB,GAC5C,YAAY,CA2Bd;IAED,OAAO,CAAC,mBAAmB;IAwB3B,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,2BAA2B;IAInC,OAAO,CAAC,uBAAuB;IAW/B,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,+BAA+B;IAkBvC,OAAO,CAAC,6BAA6B;IAUrC,SAAS,CAAC,0BAA0B,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG;QAC3D,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;QACxC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACjD,CA2BA;IAED,OAAO,CAAC,cAAc;IA2BN,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAmBnF;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAmCjG;CACJ"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { bucketsIsEmpty, insightBucket, insightBuckets, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
5
|
import { isAreaChart, isLineChart } from "@gooddata/sdk-ui-charts";
|
|
7
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
8
7
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
9
8
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
10
9
|
import { PROPERTY_CONTROLS_DUAL_AXIS } from "../../../constants/properties.js";
|
|
@@ -138,10 +137,10 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
138
137
|
secondaryMeasures = getAllMeasuresShowOnSecondaryAxis(buckets);
|
|
139
138
|
}
|
|
140
139
|
const isDualAxisEnabled = isDualAxisOrSomeSecondaryAxisMeasure(extReferencePoint, secondaryMeasures);
|
|
141
|
-
|
|
140
|
+
_set(extReferencePoint, PROPERTY_CONTROLS_DUAL_AXIS, isDualAxisEnabled);
|
|
142
141
|
const primaryChartType = extReferencePoint?.properties?.controls?.["primaryChartType"] ?? VisualizationTypes.COLUMN;
|
|
143
142
|
const secondaryChartType = extReferencePoint?.properties?.controls?.["secondaryChartType"] ?? VisualizationTypes.LINE;
|
|
144
|
-
|
|
143
|
+
_set(extReferencePoint, BUCKETS, [
|
|
145
144
|
{
|
|
146
145
|
localIdentifier: BucketNames.MEASURES,
|
|
147
146
|
items: setMeasuresShowOnSecondaryAxis(measures, false),
|
package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { without } from "lodash-es";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
7
7
|
import { COMBO_CHART_UICONFIG_DEPRECATED } from "../../../constants/uiConfig.js";
|
|
8
8
|
import { configureOverTimeComparison, configurePercent } from "../../../utils/bucketConfig.js";
|
|
@@ -44,7 +44,7 @@ export class PluggableComboChartDeprecated extends PluggableBaseChart {
|
|
|
44
44
|
measures = getFirstMasterWithDerived(allMeasures);
|
|
45
45
|
secondaryMeasures = without(allMeasures, ...measures);
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
_set(newReferencePoint, BUCKETS, [
|
|
48
48
|
{
|
|
49
49
|
localIdentifier: BucketNames.MEASURES,
|
|
50
50
|
items: measures,
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAQ9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAiCxE;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,kBAAkB;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4B;IACxD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAE3D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAID,OAAO,CAAC,wBAAwB;IAMhC;;OAEG;IACa,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyBlC;IAEe,WAAW,IAAI,SAAS,CAEvC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED;;OAEG;IACH,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CAkBzB;IAED;;OAEG;IACH,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAWzE;IAED;;;;;;;OAOG;IACa,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,CAqBpB;IAEe,aAAa,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,EAAE,CAqBtB;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAgDjG;IAED;;OAEG;IACH,OAAO,CAAC,+BAA+B;IAevC,OAAO,CAAC,oBAAoB;IAe5B,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA0CN;IAED,OAAO,CAAC,wBAAwB;IAiDhC,OAAO,CAAC,8BAA8B;IAItC,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,cAAc,CAOnB;IAEH,OAAO,CAAC,2BAA2B,CAAmD;IACtF,OAAO,CAAC,iBAAiB,CAAyC;IAClE,OAAO,CAAC,mBAAmB,CAA2C;IACtE,OAAO,CAAC,8BAA8B,CAAsD;IAC5F,OAAO,CAAC,iBAAiB,CAA0E;CACtG"}
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
2
|
import { insightBuckets, insightFilters, insightHasDataDefined, insightLayers, insightTitle, } from "@gooddata/sdk-model";
|
|
5
3
|
import { GeoAreaMissingSdkError, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
4
|
import { isGeoLayerPushpin } from "@gooddata/sdk-ui-geo";
|
|
7
5
|
import { AREA_LAYER_ID, GeoChartInternal, buildLayerExecution, insightLayerToGeoLayer, insightLayersToGeoLayers, } from "@gooddata/sdk-ui-geo/internal";
|
|
8
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
9
7
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
10
8
|
import { isGeoChartsViewportConfigEnabled } from "../../../constants/featureFlags.js";
|
|
11
9
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
@@ -97,7 +95,7 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
97
95
|
const colorMeasures = getColorMeasures(buckets);
|
|
98
96
|
const areaItems = getAreaItems(buckets, uiConfig);
|
|
99
97
|
const configuredBuckets = createAreaConfiguredBuckets(buckets, areaItems, segmentItems, colorMeasures, uiConfig);
|
|
100
|
-
|
|
98
|
+
_set(sanitized, BUCKETS, configuredBuckets);
|
|
101
99
|
return sanitized;
|
|
102
100
|
}
|
|
103
101
|
/**
|
package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoPushpinChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableGeoPushpinChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAEH,KAAK,kBAAkB,EAkB1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGH,KAAK,UAAU,EAElB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,EAIH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AAoB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AASxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,qBAAa,wBAAyB,SAAQ,kBAAkB;IAC5D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAE3D,YAAY,KAAK,EAAE,aAAa,EAM/B;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAMzE;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAalC;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAUtC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CAiDzB;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA2CjG;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,iBAAiB,EAAE,wBAAwB,GAC5C,UAAU,CAqCZ;IAED,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAiCN;IAED,OAAO,CAAC,yBAAyB;IAejC,OAAO,CAAC,mBAAmB,CAAuB;IAElD,UAAmB,cAAc,SAAU,GAAG,KAAG,IAAI,CAQnD;IAEF,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,2BAA2B;IAKnC,OAAO,CAAC,yBAAyB;IAiCjC,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,cAAc;IAwCtB;;;;;;OAMG;IACH,OAAO,CAAC,wCAAwC;CAgCnD"}
|
package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
2
|
import { attributeAlias, attributeDisplayFormRef, attributeLocalId, bucketAttribute, idRef, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, isUriRef, newAttribute, newAttributeSort, newBucket, uriRef, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
4
|
import { CoreGeoChart, getGeoChartDimensions, } from "@gooddata/sdk-ui-geo";
|
|
7
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
8
6
|
import { ATTRIBUTE, BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
9
7
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
10
8
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -113,7 +111,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
113
111
|
const colorMeasures = (secondaryMeasures.length > 0
|
|
114
112
|
? secondaryMeasures
|
|
115
113
|
: allMeasures.filter((measure) => !sizeMeasures.includes(measure))).slice(0, this.getPreferredBucketItemLimit(BucketNames.COLOR));
|
|
116
|
-
|
|
114
|
+
_set(newExtendedReferencePoint, BUCKETS, [
|
|
117
115
|
{
|
|
118
116
|
localIdentifier: BucketNames.LOCATION,
|
|
119
117
|
items: this.getLocationItems(buckets),
|
|
@@ -160,7 +158,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
160
158
|
const legendProp = legend ? { legend } : {};
|
|
161
159
|
const { isInEditMode, isExportMode } = config;
|
|
162
160
|
if (this.environment === DASHBOARDS_ENVIRONMENT) {
|
|
163
|
-
|
|
161
|
+
_set(supportedControls, "legend.responsive", "autoPositionWithPopup");
|
|
164
162
|
}
|
|
165
163
|
const viewportProp = {
|
|
166
164
|
viewport: {
|
|
@@ -292,7 +290,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
292
290
|
const hasSegmentAttribute = getItemsCount(buckets, BucketNames.SEGMENT) > 0;
|
|
293
291
|
const groupNearbyPoints = hasLocationAttribute && !hasColorMeasure && !hasSizeMeasure && !hasSegmentAttribute;
|
|
294
292
|
const locationProperties = this.getLocationProperties(locationItem);
|
|
295
|
-
|
|
293
|
+
_set(referencePointConfigured, "properties", {
|
|
296
294
|
controls: {
|
|
297
295
|
points: {
|
|
298
296
|
groupNearbyPoints,
|
|
@@ -302,7 +300,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
302
300
|
},
|
|
303
301
|
});
|
|
304
302
|
if (this.references) {
|
|
305
|
-
|
|
303
|
+
_set(referencePointConfigured, "references", this.references);
|
|
306
304
|
}
|
|
307
305
|
return referencePointConfigured;
|
|
308
306
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoPushpinChartNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableGeoPushpinChartNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AA2B7B,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAY9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAqCxE;;;;;;;;GAQG;AACH,qBAAa,4BAA6B,SAAQ,kBAAkB;IAChE,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,oBAAoB,CAAC,CAAS;IACtC,OAAO,CAAC,qBAAqB,CAAC,CAAS;IACvC,OAAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAC3D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEe,kDAAkD,CAC9D,qBAAqB,EAAE,eAAe,EACtC,kBAAkB,EAAE,eAAe,GACpC,OAAO,CAQT;IAID,OAAO,CAAC,wBAAwB;IAMhC;;;;;;OAMG;IACa,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyClC;IAEe,WAAW,IAAI,SAAS,CAMvC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED;;;OAGG;IACH,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CA2BzB;IAED;;OAEG;IACH,OAAO,CAAC,yBAAyB;IA6BjC;;;;;;;;OAQG;IACH,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAwBzE;IAED;;;;;;;;;OASG;IACa,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,CAsBpB;IAEe,aAAa,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,EAAE,CAsBtB;IAED,OAAO,CAAC,gBAAgB;YAMV,eAAe;IA8B7B,OAAO,CAAC,eAAe;IAcvB,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA0DjG;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,2BAA2B;IAenC,OAAO,CAAC,oBAAoB;IAe5B,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAyCN;IAED,OAAO,CAAC,wBAAwB;IA8ChC,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,8BAA8B;IAUtC,OAAO,CAAC,8CAA8C;IAuBtD,OAAO,CAAC,qCAAqC;IAa7C,OAAO,CAAC,cAAc,CAOnB;IAEH,OAAO,CAAC,2BAA2B,CAAmD;IACtF,OAAO,CAAC,iBAAiB,CAAyC;IAClE,OAAO,CAAC,mBAAmB,CAA2C;IACtE,OAAO,CAAC,8BAA8B,CAAsD;IAC5F,OAAO,CAAC,iBAAiB,CAA0E;CACtG"}
|
package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
2
|
import { insightBuckets, insightFilters, insightHasDataDefined, insightLayers, insightSorts, insightTitle, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames, GeoLocationMissingSdkError, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
4
|
import { isGeoLayerPushpin, } from "@gooddata/sdk-ui-geo";
|
|
7
5
|
import { GeoChartInternal, PUSHPIN_LAYER_ID, buildLayerExecution, insightLayerToGeoLayer, insightLayersToGeoLayers, } from "@gooddata/sdk-ui-geo/internal";
|
|
8
|
-
import { _cloneDeep, _isEqual } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEqual, _set } from "@gooddata/util";
|
|
9
7
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
10
8
|
import { isGeoChartsViewportConfigEnabled, isGeoPushpinIconEnabled, } from "../../../constants/featureFlags.js";
|
|
11
9
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
@@ -134,7 +132,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
134
132
|
const uiConfig = this.getUiConfig();
|
|
135
133
|
const { sizeMeasures, colorMeasures, metricMeasures } = distributeMeasures(buckets, uiConfig);
|
|
136
134
|
const configuredBuckets = createConfiguredBuckets(buckets, sizeMeasures, colorMeasures, metricMeasures, uiConfig);
|
|
137
|
-
|
|
135
|
+
_set(sanitized, BUCKETS, configuredBuckets);
|
|
138
136
|
return sanitized;
|
|
139
137
|
}
|
|
140
138
|
/**
|
|
@@ -153,14 +151,14 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
153
151
|
// Don't add groupNearbyPoints if it wasn't already in the properties.
|
|
154
152
|
// This prevents marking the insight as "dirty" when just opening it.
|
|
155
153
|
// The rendering code handles the default value (true when clustering is allowed).
|
|
156
|
-
|
|
154
|
+
_set(referencePointConfigured, "properties", {
|
|
157
155
|
controls: {
|
|
158
156
|
...controls,
|
|
159
157
|
...locationProperties,
|
|
160
158
|
},
|
|
161
159
|
});
|
|
162
160
|
if (this.references) {
|
|
163
|
-
|
|
161
|
+
_set(referencePointConfigured, "references", this.references);
|
|
164
162
|
}
|
|
165
163
|
return referencePointConfigured;
|
|
166
164
|
}
|
|
@@ -462,7 +460,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
462
460
|
(this.environment !== ANALYTICAL_ENVIRONMENT || this.cachedHasGeoIconLabel));
|
|
463
461
|
}
|
|
464
462
|
getResolvedReferencePointWithFallback(referencePoint) {
|
|
465
|
-
return
|
|
463
|
+
return _set(_cloneDeep(referencePoint), "properties", getGeoVisualizationPropertiesWithFallback(this.visualizationProperties ?? {}, referencePoint.properties?.controls ?? {}));
|
|
466
464
|
}
|
|
467
465
|
syncedHandlers = createSyncedViewportHandlers(this.liveMapView, {
|
|
468
466
|
getEnvironment: () => this.environment,
|
|
@@ -490,7 +488,7 @@ function sanitizeGeoPointProperties(referencePoint) {
|
|
|
490
488
|
const shapeType = controls["points"]?.shapeType ?? "circle";
|
|
491
489
|
if (shapeType !== "oneIcon" && controls["points"]?.icon !== undefined) {
|
|
492
490
|
const updated = _cloneDeep(referencePoint);
|
|
493
|
-
|
|
491
|
+
_set(updated, "properties.controls.points.icon", undefined);
|
|
494
492
|
return updated;
|
|
495
493
|
}
|
|
496
494
|
return referencePoint;
|
|
@@ -500,7 +498,7 @@ function disableClusteringIfNotEditable(referencePoint) {
|
|
|
500
498
|
const shapeType = getPushpinShapeType(referencePoint);
|
|
501
499
|
const clusteringEnabled = referencePoint.properties?.controls?.["points"]?.groupNearbyPoints === true;
|
|
502
500
|
if (clusteringEnabled && !isPushpinClusteringEditableForBuckets(referencePoint.buckets, shapeType)) {
|
|
503
|
-
updatedReferencePoint =
|
|
501
|
+
updatedReferencePoint = _set(referencePoint, "properties.controls.points.groupNearbyPoints", false);
|
|
504
502
|
}
|
|
505
503
|
return updatedReferencePoint;
|
|
506
504
|
}
|
|
@@ -509,20 +507,20 @@ function disableClusteringInVisualizationPropertiesWhenNotEditable(visualization
|
|
|
509
507
|
if (isPushpinClusteringEditable(insight, shapeType)) {
|
|
510
508
|
return visualizationProperties;
|
|
511
509
|
}
|
|
512
|
-
return
|
|
510
|
+
return _set(_cloneDeep(visualizationProperties), "controls.points.groupNearbyPoints", false);
|
|
513
511
|
}
|
|
514
512
|
function getPushpinShapeType(referencePoint) {
|
|
515
513
|
return referencePoint.properties?.controls?.["points"]?.shapeType ?? "circle";
|
|
516
514
|
}
|
|
517
515
|
function resetIconByValueShapeType(referencePoint) {
|
|
518
516
|
if (getPushpinShapeType(referencePoint) === "iconByValue") {
|
|
519
|
-
return
|
|
517
|
+
return _set(_cloneDeep(referencePoint), "properties.controls.points.shapeType", "circle");
|
|
520
518
|
}
|
|
521
519
|
return referencePoint;
|
|
522
520
|
}
|
|
523
521
|
function resetIconByValueInVisualizationProperties(properties, hasGeoIconLabel) {
|
|
524
522
|
if (properties?.controls?.["points"]?.shapeType === "iconByValue" && !hasGeoIconLabel) {
|
|
525
|
-
return
|
|
523
|
+
return _set(_cloneDeep(properties), "controls.points.shapeType", "circle");
|
|
526
524
|
}
|
|
527
525
|
return properties;
|
|
528
526
|
}
|
package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoPropertySanitization.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geoPropertySanitization.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAEpF;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CACzC,cAAc,EAAE,uBAAuB,GACxC,uBAAuB,CAgCzB"}
|