@gooddata/sdk-ui-ext 11.68.0-alpha.8 → 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.
Files changed (168) hide show
  1. package/NOTICE +32 -32
  2. package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
  3. package/esm/internal/components/BaseVisualization.js +2 -3
  4. package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
  5. package/esm/internal/components/configurationControls/CheckboxControl.js +2 -3
  6. package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
  7. package/esm/internal/components/configurationControls/ConfigSection.js +2 -3
  8. package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
  9. package/esm/internal/components/configurationControls/ConfigSubsection.js +2 -3
  10. package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts.map +1 -1
  11. package/esm/internal/components/configurationControls/ContinuousLineControl.js +2 -3
  12. package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts.map +1 -1
  13. package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +2 -3
  14. package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
  15. package/esm/internal/components/configurationControls/DropdownControl.js +2 -3
  16. package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
  17. package/esm/internal/components/configurationControls/GeoViewportControl.js +13 -14
  18. package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
  19. package/esm/internal/components/configurationControls/InputControl.js +2 -3
  20. package/esm/internal/components/configurationControls/PagingSection.d.ts.map +1 -1
  21. package/esm/internal/components/configurationControls/PagingSection.js +3 -4
  22. package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
  23. package/esm/internal/components/configurationControls/PushpinShapeControl.js +3 -4
  24. package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
  25. package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +2 -3
  26. package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts.map +1 -1
  27. package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -4
  28. package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
  29. package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +2 -3
  30. package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts.map +1 -1
  31. package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.js +2 -3
  32. package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.d.ts.map +1 -1
  33. package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +4 -5
  34. package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
  35. package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +2 -3
  36. package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
  37. package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +2 -3
  38. package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map +1 -1
  39. package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +2 -3
  40. package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts +1 -2
  41. package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map +1 -1
  42. package/esm/internal/components/configurationControls/interactions/InteractionsSection.js +2 -2
  43. package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
  44. package/esm/internal/components/configurationControls/total/TotalSection.js +2 -3
  45. package/esm/internal/components/configurationPanels/ConfigurationPanelContent.d.ts.map +1 -1
  46. package/esm/internal/components/configurationPanels/ConfigurationPanelContent.js +1 -2
  47. package/esm/internal/components/configurationPanels/UnsupportedConfigurationPanel.js +2 -2
  48. package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
  49. package/esm/internal/components/insightList/useInsightPagedList.js +2 -3
  50. package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.d.ts.map +1 -1
  51. package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +2 -3
  52. package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map +1 -1
  53. package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +2 -3
  54. package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +3 -3
  55. package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
  56. package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +2 -4
  57. package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map +1 -1
  58. package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +3 -4
  59. package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +3 -3
  60. package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
  61. package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +2 -4
  62. package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map +1 -1
  63. package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +5 -7
  64. package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts.map +1 -1
  65. package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +10 -12
  66. package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
  67. package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +6 -7
  68. package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +3 -3
  69. package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map +1 -1
  70. package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +4 -5
  71. package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.d.ts.map +1 -1
  72. package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +4 -5
  73. package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.d.ts.map +1 -1
  74. package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +5 -6
  75. package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.d.ts.map +1 -1
  76. package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js +2 -2
  77. package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.d.ts.map +1 -1
  78. package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.js +2 -2
  79. package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
  80. package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +2 -3
  81. package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
  82. package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +2 -4
  83. package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
  84. package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +3 -5
  85. package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +4 -4
  86. package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.d.ts.map +1 -1
  87. package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +7 -8
  88. package/esm/internal/translations/en-US.localization-bundle.d.ts +28 -0
  89. package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
  90. package/esm/internal/translations/en-US.localization-bundle.js +29 -1
  91. package/esm/internal/utils/bucketConfig.d.ts.map +1 -1
  92. package/esm/internal/utils/bucketConfig.js +2 -3
  93. package/esm/internal/utils/bucketHelper.js +7 -7
  94. package/esm/internal/utils/colors.d.ts.map +1 -1
  95. package/esm/internal/utils/colors.js +6 -7
  96. package/esm/internal/utils/controlsHelper.d.ts.map +1 -1
  97. package/esm/internal/utils/controlsHelper.js +7 -7
  98. package/esm/internal/utils/drillablePredicates.d.ts.map +1 -1
  99. package/esm/internal/utils/drillablePredicates.js +4 -4
  100. package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +5 -5
  101. package/esm/internal/utils/propertiesHelper.js +8 -8
  102. package/esm/internal/utils/translations.d.ts.map +1 -1
  103. package/esm/internal/utils/translations.js +2 -3
  104. package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
  105. package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +9 -10
  106. package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
  107. package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +16 -17
  108. package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
  109. package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +6 -7
  110. package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
  111. package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +4 -5
  112. package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
  113. package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +6 -7
  114. package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
  115. package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +8 -9
  116. package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.d.ts.map +1 -1
  117. package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +4 -5
  118. package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.d.ts.map +1 -1
  119. package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +3 -4
  120. package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
  121. package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +4 -5
  122. package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.d.ts.map +1 -1
  123. package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.js +3 -3
  124. package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
  125. package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +14 -15
  126. package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
  127. package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +9 -10
  128. package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
  129. package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +5 -6
  130. package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
  131. package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +11 -12
  132. package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
  133. package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +6 -7
  134. package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
  135. package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +9 -10
  136. package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
  137. package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +13 -14
  138. package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
  139. package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +13 -14
  140. package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.d.ts.map +1 -1
  141. package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +3 -4
  142. package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
  143. package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +11 -12
  144. package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
  145. package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +9 -10
  146. package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
  147. package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +6 -7
  148. package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
  149. package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +6 -7
  150. package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
  151. package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +10 -11
  152. package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
  153. package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +9 -10
  154. package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
  155. package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +3 -4
  156. package/esm/sdk-ui-ext.d.ts +1 -1
  157. package/esm/share/ObjectShareDialog.d.ts +1 -1
  158. package/esm/share/ObjectShareDialog.js +3 -3
  159. package/esm/share/messages.d.ts +28 -0
  160. package/esm/share/messages.d.ts.map +1 -1
  161. package/esm/share/messages.js +14 -0
  162. package/esm/share/removeAccessConfirm.d.ts +21 -0
  163. package/esm/share/removeAccessConfirm.d.ts.map +1 -0
  164. package/esm/share/removeAccessConfirm.js +27 -0
  165. package/esm/share/useObjectShareDialog.d.ts +14 -11
  166. package/esm/share/useObjectShareDialog.d.ts.map +1 -1
  167. package/esm/share/useObjectShareDialog.js +54 -24
  168. package/package.json +21 -21
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { messages } from "../../../locales.js";
6
5
  import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
7
6
  import { OPEN_AS_REPORT, RECOMMENDATIONS, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
@@ -41,7 +40,7 @@ function setBaseChartBucketWarningMessages(referencePoint, intl) {
41
40
  warningMessage = getTranslation(messages["categoryStack"].id, intl);
42
41
  }
43
42
  if (warningMessage) {
44
- set(updatedUiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
43
+ _set(updatedUiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
45
44
  }
46
45
  }
47
46
  });
@@ -52,11 +51,11 @@ export function setBaseChartUiConfig(referencePoint, intl, visualizationType) {
52
51
  const buckets = referencePointConfigured?.buckets ?? [];
53
52
  const measuresCanAddItems = hasNoMeasures(buckets) || hasNoStacksWithDate(buckets);
54
53
  const stackCanAddItems = !hasMoreThanOneMasterMeasure(buckets, BucketNames.MEASURES);
55
- set(referencePointConfigured, [UICONFIG], setBucketTitles(referencePoint, visualizationType, intl));
56
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], measuresCanAddItems);
57
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], true);
58
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "canAddItems"], stackCanAddItems);
59
- set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], !hasColorMapping(referencePointConfigured.properties));
54
+ _set(referencePointConfigured, [UICONFIG], setBucketTitles(referencePoint, visualizationType, intl));
55
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], measuresCanAddItems);
56
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], true);
57
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "canAddItems"], stackCanAddItems);
58
+ _set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], !hasColorMapping(referencePointConfigured.properties));
60
59
  const iconsMap = {
61
60
  column: {
62
61
  [BucketNames.MEASURES]: columnMeasuresIcon,
@@ -69,10 +68,10 @@ export function setBaseChartUiConfig(referencePoint, intl, visualizationType) {
69
68
  [BucketNames.STACK]: barStackIcon,
70
69
  },
71
70
  };
72
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], iconsMap[visualizationType]?.[BucketNames.MEASURES]);
73
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], iconsMap[visualizationType]?.[BucketNames.VIEW]);
74
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], iconsMap[visualizationType]?.[BucketNames.STACK]);
75
- set(referencePointConfigured, UICONFIG, setBaseChartBucketWarningMessages(referencePointConfigured, intl));
71
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], iconsMap[visualizationType]?.[BucketNames.MEASURES]);
72
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], iconsMap[visualizationType]?.[BucketNames.VIEW]);
73
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], iconsMap[visualizationType]?.[BucketNames.STACK]);
74
+ _set(referencePointConfigured, UICONFIG, setBaseChartBucketWarningMessages(referencePointConfigured, intl));
76
75
  return referencePointConfigured;
77
76
  }
78
77
  export function setBaseChartUiConfigRecommendations(referencePoint, visualizationType) {
@@ -84,11 +83,11 @@ export function setBaseChartUiConfigRecommendations(referencePoint, visualizatio
84
83
  const comparisonAndTrending = comparisonAndTrendingRecommendationEnabled(buckets);
85
84
  const overTimeComparison = overTimeComparisonRecommendationEnabled(newReferencePoint);
86
85
  const previousPeriod = previousPeriodRecommendationEnabled(buckets);
87
- set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "percent"], percentEnabled);
88
- set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "comparison"], comparisonAndTrending);
89
- set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "trending"], comparisonAndTrending);
90
- set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "overTimeComparison"], overTimeComparison);
91
- set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "previousPeriod"], previousPeriod);
86
+ _set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "percent"], percentEnabled);
87
+ _set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "comparison"], comparisonAndTrending);
88
+ _set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "trending"], comparisonAndTrending);
89
+ _set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "overTimeComparison"], overTimeComparison);
90
+ _set(newReferencePoint, [UICONFIG, RECOMMENDATIONS, "previousPeriod"], previousPeriod);
92
91
  return newReferencePoint;
93
92
  }
94
93
  return referencePoint;
@@ -1 +1 @@
1
- {"version":3,"file":"bubbleChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAWjF,wBAAgB,sBAAsB,CAClC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAezB"}
1
+ {"version":3,"file":"bubbleChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAWjF,wBAAgB,sBAAsB,CAClC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAmBzB"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { BUCKETS } from "../../constants/bucket.js";
6
5
  import { UICONFIG } from "../../constants/uiConfig.js";
7
6
  import { setBucketTitles } from "../bucketHelper.js";
@@ -14,10 +13,10 @@ const bubbleSizeIcon = "local:bubble/bucket-title-size.svg";
14
13
  const bubbleViewByIcon = "local:bubble/bucket-title-view-by.svg";
15
14
  export function setBubbleChartUiConfig(referencePoint, intl, visualizationType) {
16
15
  const referencePointConfigured = _cloneDeep(referencePoint);
17
- set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
18
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], bubbleMeasuresXIcon);
19
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], bubbleMeasuresYIcon);
20
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.TERTIARY_MEASURES, "icon"], bubbleSizeIcon);
21
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], bubbleViewByIcon);
16
+ _set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
17
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], bubbleMeasuresXIcon);
18
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], bubbleMeasuresYIcon);
19
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.TERTIARY_MEASURES, "icon"], bubbleSizeIcon);
20
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], bubbleViewByIcon);
22
21
  return referencePointConfigured;
23
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"columnBarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAIjF,wBAAgB,yBAAyB,CACrC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAwBzB"}
1
+ {"version":3,"file":"columnBarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAIjF,wBAAgB,yBAAyB,CACrC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAwBzB"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames, OverTimeComparisonTypes } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { messages } from "../../../locales.js";
6
5
  import { BUCKETS } from "../../constants/bucket.js";
7
6
  import { SUPPORTED_COMPARISON_TYPES, UICONFIG } from "../../constants/uiConfig.js";
@@ -9,13 +8,13 @@ import { getMeasureItems } from "../bucketHelper.js";
9
8
  import { getTranslation } from "../translations.js";
10
9
  export function setColumnBarChartUiConfig(referencePoint, intl) {
11
10
  const referencePointConfigured = _cloneDeep(referencePoint);
12
- set(referencePointConfigured, [UICONFIG, SUPPORTED_COMPARISON_TYPES], [OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR, OverTimeComparisonTypes.PREVIOUS_PERIOD]);
11
+ _set(referencePointConfigured, [UICONFIG, SUPPORTED_COMPARISON_TYPES], [OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR, OverTimeComparisonTypes.PREVIOUS_PERIOD]);
13
12
  const buckets = referencePointConfigured?.buckets ?? [];
14
13
  const measures = getMeasureItems(buckets);
15
14
  if (measures.length > 1) {
16
15
  const warningMessage = getTranslation(messages["measureStack"].id, intl);
17
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "canAddItems"], false);
18
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "warningMessage"], warningMessage);
16
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "canAddItems"], false);
17
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "warningMessage"], warningMessage);
19
18
  }
20
19
  return referencePointConfigured;
21
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"comboChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAe,KAAK,SAAS,EAAsB,MAAM,kBAAkB,CAAC;AAOnF,OAAO,EAEH,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AA8C3C,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,SAAS,GAC7B,uBAAuB,CA6BzB"}
1
+ {"version":3,"file":"comboChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAe,KAAK,SAAS,EAAsB,MAAM,kBAAkB,CAAC;AAOnF,OAAO,EAEH,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AA8C3C,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,SAAS,GAC7B,uBAAuB,CA6BzB"}
@@ -1,8 +1,7 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
4
3
  import { isLineChart } from "@gooddata/sdk-ui-charts";
5
- import { _cloneDeep } from "@gooddata/util";
4
+ import { _cloneDeep, _set } from "@gooddata/util";
6
5
  import { messages } from "../../../locales.js";
7
6
  import { BUCKETS } from "../../constants/bucket.js";
8
7
  import { UICONFIG } from "../../constants/uiConfig.js";
@@ -39,7 +38,7 @@ const VIEW_BY_ICONS = {
39
38
  };
40
39
  function setCanStackInPercent(uiConfig, secondaryChartType, isDualAxis) {
41
40
  const canStackInPercent = !(isDualAxis === false && isLineChart(secondaryChartType));
42
- set(uiConfig, "optionalStacking.canStackInPercent", canStackInPercent);
41
+ _set(uiConfig, "optionalStacking.canStackInPercent", canStackInPercent);
43
42
  }
44
43
  export function setComboChartUiConfig(referencePoint, intl, visualizationType) {
45
44
  const referencePointConfigured = _cloneDeep(referencePoint);
@@ -58,10 +57,10 @@ export function setComboChartUiConfig(referencePoint, intl, visualizationType) {
58
57
  const type = chartTypes[index];
59
58
  const localIdentifier = bucket?.localIdentifier ?? "";
60
59
  const subtitle = getTranslation(messages[type].id, intl);
61
- set(updatedUiConfig, [BUCKETS, localIdentifier, "subtitle"], subtitle);
62
- set(updatedUiConfig, [BUCKETS, localIdentifier, "icon"], MEASURE_BUCKET_ICONS[type]);
60
+ _set(updatedUiConfig, [BUCKETS, localIdentifier, "subtitle"], subtitle);
61
+ _set(updatedUiConfig, [BUCKETS, localIdentifier, "icon"], MEASURE_BUCKET_ICONS[type]);
63
62
  });
64
- set(updatedUiConfig, [BUCKETS, BucketNames.VIEW, "icon"], VIEW_BY_ICONS[chartTypes.join("-")]);
65
- set(referencePointConfigured, UICONFIG, updatedUiConfig);
63
+ _set(updatedUiConfig, [BUCKETS, BucketNames.VIEW, "icon"], VIEW_BY_ICONS[chartTypes.join("-")]);
64
+ _set(referencePointConfigured, UICONFIG, updatedUiConfig);
66
65
  return referencePointConfigured;
67
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"comboChartUiConfigHelperDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK/D,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAUjF,wBAAgB,+BAA+B,CAC3C,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,SAAS,GAC7B,uBAAuB,CAiBzB"}
1
+ {"version":3,"file":"comboChartUiConfigHelperDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK/D,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAUjF,wBAAgB,+BAA+B,CAC3C,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,SAAS,GAC7B,uBAAuB,CAiBzB"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { BUCKETS } from "../../constants/bucket.js";
6
5
  import { UICONFIG } from "../../constants/uiConfig.js";
7
6
  import { setBucketTitles } from "../bucketHelper.js";
@@ -13,12 +12,12 @@ const columnMeasureIcon = "local:combo/bucket-title-measures-column.svg";
13
12
  const columnLineIcon = "local:combo/bucket-title-view-column-line.svg";
14
13
  export function setComboChartUiConfigDeprecated(referencePoint, intl, visualizationType) {
15
14
  const referencePointConfigured = _cloneDeep(referencePoint);
16
- set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
17
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], true);
18
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], true);
19
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], true);
20
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], columnMeasureIcon);
21
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], comboSecondaryMeasuresIcon);
22
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], columnLineIcon);
15
+ _set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
16
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], true);
17
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], true);
18
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], true);
19
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], columnMeasureIcon);
20
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], comboSecondaryMeasuresIcon);
21
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], columnLineIcon);
23
22
  return referencePointConfigured;
24
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dependencyWheelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,eAAO,MAAM,6BAA6B,2BACd,uBAAuB,KAChD,uBAQF,CAAC"}
1
+ {"version":3,"file":"dependencyWheelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,eAAO,MAAM,6BAA6B,2BACd,uBAAuB,KAChD,uBAQF,CAAC"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { BUCKETS } from "../../constants/bucket.js";
6
5
  import { UICONFIG } from "../../constants/uiConfig.js";
7
6
  // If you need to edit these icons
@@ -12,8 +11,8 @@ const fromIcon = "local:dependencyWheel/bucket-title-from.svg";
12
11
  const toIcon = "local:dependencyWheel/bucket-title-to.svg";
13
12
  export const configDependencyWheelUiConfig = (extendedReferencePoint) => {
14
13
  const referencePointConfigured = _cloneDeep(extendedReferencePoint);
15
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], measureIcon);
16
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_FROM, "icon"], fromIcon);
17
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_TO, "icon"], toIcon);
14
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], measureIcon);
15
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_FROM, "icon"], fromIcon);
16
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_TO, "icon"], toIcon);
18
17
  return referencePointConfigured;
19
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"donutChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAQjF,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CAStG"}
1
+ {"version":3,"file":"donutChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAQjF,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CAStG"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { BUCKETS } from "../../constants/bucket.js";
6
5
  import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
7
6
  // If you need to edit these icons
@@ -12,7 +11,7 @@ const donutViewIcon = "local:donut/bucket-title-view.svg";
12
11
  export function setDonutChartUiConfig(referencePoint) {
13
12
  const referencePointConfigured = _cloneDeep(referencePoint);
14
13
  Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
15
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], donutMeasuresIcon);
16
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], donutViewIcon);
14
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], donutMeasuresIcon);
15
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], donutViewIcon);
17
16
  return referencePointConfigured;
18
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"funnelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CAavG"}
1
+ {"version":3,"file":"funnelChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CAiBvG"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { BUCKETS } from "../../constants/bucket.js";
6
5
  import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
7
6
  import { configurePercent } from "../bucketConfig.js";
@@ -13,10 +12,10 @@ const funnelViewIcon = "local:funnel/bucket-title-view.svg";
13
12
  export function setFunnelChartUiConfig(referencePoint) {
14
13
  const referencePointConfigured = _cloneDeep(referencePoint);
15
14
  Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
16
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], funnelMeasuresIcon);
17
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], funnelViewIcon);
15
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], funnelMeasuresIcon);
16
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], funnelViewIcon);
18
17
  // always disabled for funnel
19
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "isShowInPercentVisible"], false);
18
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "isShowInPercentVisible"], false);
20
19
  configurePercent(referencePointConfigured, true);
21
20
  return referencePointConfigured;
22
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"geoAreaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAK5C,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,mCAAmC,CAAC;AAejG;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAWzB"}
1
+ {"version":3,"file":"geoAreaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,KAAK,uBAAuB,EAAkB,MAAM,mCAAmC,CAAC;AAejG;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAWzB"}
@@ -1,6 +1,6 @@
1
- // (C) 2025 GoodData Corporation
2
- import { set } from "lodash-es";
1
+ // (C) 2025-2026 GoodData Corporation
3
2
  import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
3
+ import { _set } from "@gooddata/util";
4
4
  import { BUCKETS } from "../../constants/bucket.js";
5
5
  import { setBucketTitles } from "../bucketHelper.js";
6
6
  const geoAreaBucketAreaIcon = "local:geoPushpin/bucket-title-location-icon.svg";
@@ -10,7 +10,7 @@ function setBucketIcon(uiConfig, bucketName, icon) {
10
10
  if (!uiConfig) {
11
11
  return;
12
12
  }
13
- set(uiConfig, [BUCKETS, bucketName, "icon"], icon);
13
+ _set(uiConfig, [BUCKETS, bucketName, "icon"], icon);
14
14
  }
15
15
  /**
16
16
  * Sets the UI config for geo area chart reference point.
@@ -1 +1 @@
1
- {"version":3,"file":"geoPushpinChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuBjF,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,SAAS,GACzB,uBAAuB,CAwEzB;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,GAAG,UAAU,CAS5F"}
1
+ {"version":3,"file":"geoPushpinChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuBjF,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,SAAS,GACzB,uBAAuB,CAwEzB;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,GAAG,UAAU,CAS5F"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { BUCKETS } from "../../constants/bucket.js";
6
5
  import { isGeoPushpinIconEnabled } from "../../constants/featureFlags.js";
7
6
  import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
@@ -24,22 +23,22 @@ function canAddItemsToBucket(referencePoint, bucketName) {
24
23
  }
25
24
  export function setGeoPushpinUiConfig(referencePoint, intl, visualizationType, featureFlags) {
26
25
  const referencePointConfigured = _cloneDeep(referencePoint);
27
- set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
28
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.LOCATION, "icon"], geoPushPinBucketLocationIcon);
29
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SIZE, "icon"], geoPushPinBucketSizeIcon);
30
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.COLOR, "icon"], geoPushPinBucketColorIcon);
31
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "icon"], geoPushPinBucketSegmentIcon);
32
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], geoPushPinBucketMetricIcon);
26
+ _set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
27
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.LOCATION, "icon"], geoPushPinBucketLocationIcon);
28
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SIZE, "icon"], geoPushPinBucketSizeIcon);
29
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.COLOR, "icon"], geoPushPinBucketColorIcon);
30
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "icon"], geoPushPinBucketSegmentIcon);
31
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], geoPushPinBucketMetricIcon);
33
32
  // overide base config
34
- set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], false);
33
+ _set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], false);
35
34
  const iconEnabled = isGeoPushpinIconEnabled(featureFlags);
36
35
  const shapeType = referencePointConfigured.properties?.controls?.["points"]?.shapeType ?? "circle";
37
36
  const sizeColorBucketsEditable = arePushpinSizeColorBucketsEditable(shapeType);
38
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.LOCATION, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.LOCATION));
39
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SIZE, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.SIZE) && sizeColorBucketsEditable);
40
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.COLOR, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.COLOR) && sizeColorBucketsEditable);
41
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.SEGMENT) && sizeColorBucketsEditable);
42
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.MEASURES));
37
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.LOCATION, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.LOCATION));
38
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SIZE, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.SIZE) && sizeColorBucketsEditable);
39
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.COLOR, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.COLOR) && sizeColorBucketsEditable);
40
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.SEGMENT) && sizeColorBucketsEditable);
41
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], canAddItemsToBucket(referencePointConfigured, BucketNames.MEASURES));
43
42
  // Build the filtered bucket set
44
43
  const filteredBuckets = {
45
44
  [BucketNames.LOCATION]: referencePointConfigured?.uiConfig?.buckets?.[BucketNames.LOCATION],
@@ -54,7 +53,7 @@ export function setGeoPushpinUiConfig(referencePoint, intl, visualizationType, f
54
53
  referencePointConfigured?.uiConfig?.buckets?.[BucketNames.MEASURES];
55
54
  }
56
55
  // only apply related bucket uiConfig
57
- set(referencePointConfigured, [UICONFIG, BUCKETS], filteredBuckets);
56
+ _set(referencePointConfigured, [UICONFIG, BUCKETS], filteredBuckets);
58
57
  return referencePointConfigured;
59
58
  }
60
59
  export function updateConfigWithSettings(config, settings) {
@@ -1 +1 @@
1
- {"version":3,"file":"headlineUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/headlineUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAEH,KAAK,aAAa,EAElB,KAAK,kBAAkB,EAEvB,KAAK,SAAS,EACd,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGH,KAAK,YAAY,EAIpB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAW3C,wBAAgB,0BAA0B,IAAI,SAAS,CAItD;AAED,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,CAyC/F;AAED,wBAAgB,gCAAgC,CAC5C,uBAAuB,EAAE,wBAAwB,EACjD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAC/B,OAAO,EAAE,SAAS,GACnB,YAAY,CAad;AAED,wBAAgB,8BAA8B,CAC1C,uBAAuB,EAAE,wBAAwB,GAClD,wBAAwB,CAAC,yBAAyB,CAAC,CAarD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAQpF;AAED,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,kBAAkB,qDAM9E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,CAavE"}
1
+ {"version":3,"file":"headlineUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/headlineUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAEH,KAAK,aAAa,EAElB,KAAK,kBAAkB,EAEvB,KAAK,SAAS,EACd,KAAK,MAAM,EAOd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAGH,KAAK,YAAY,EAIpB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAW3C,wBAAgB,0BAA0B,IAAI,SAAS,CAItD;AAED,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,CAyC/F;AAED,wBAAgB,gCAAgC,CAC5C,uBAAuB,EAAE,wBAAwB,EACjD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAC/B,OAAO,EAAE,SAAS,GACnB,YAAY,CAad;AAED,wBAAgB,8BAA8B,CAC1C,uBAAuB,EAAE,wBAAwB,GAClD,wBAAwB,CAAC,yBAAyB,CAAC,CAarD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAQpF;AAED,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,kBAAkB,qDAM9E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,CAavE"}
@@ -1,10 +1,9 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { bucketMeasure, bucketMeasures, insightBucket, isPoPMeasure, isPreviousPeriodMeasure, } from "@gooddata/sdk-model";
4
3
  import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
5
4
  import { CalculateAs, ComparisonColorType, getComparisonRgbColor, updateConfigWithSettings, } from "@gooddata/sdk-ui-charts";
6
5
  import { parseRGBString } from "@gooddata/sdk-ui-vis-commons";
7
- import { _cloneDeep } from "@gooddata/util";
6
+ import { _cloneDeep, _set } from "@gooddata/util";
8
7
  import { messages } from "../../../locales.js";
9
8
  import { BUCKETS } from "../../constants/bucket.js";
10
9
  import { HEADLINE_DEFAULT_CONTROL_PROPERTIES } from "../../constants/supportedProperties.js";
@@ -19,7 +18,7 @@ const headlineMeasuresIcon = "local:headline/bucket-title-measures.svg";
19
18
  const headlineSecondaryMeasuresIcon = "local:headline/bucket-title-secondary-measures.svg";
20
19
  export function getDefaultHeadlineUiConfig() {
21
20
  const uiConfig = _cloneDeep(DEFAULT_HEADLINE_UICONFIG);
22
- set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "itemsLimit"], 2);
21
+ _set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "itemsLimit"], 2);
23
22
  return uiConfig;
24
23
  }
25
24
  export function getHeadlineUiConfig(referencePoint, intl) {
@@ -31,10 +30,10 @@ export function getHeadlineUiConfig(referencePoint, intl) {
31
30
  ...referencePoint,
32
31
  uiConfig,
33
32
  }, VisualizationTypes.HEADLINE, intl);
34
- set(uiConfig, [BUCKETS, BucketNames.MEASURES, "canAddItems"], viewCanAddPrimaryItems);
35
- set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], viewCanAddSecondaryItems);
36
- set(uiConfig, [BUCKETS, BucketNames.MEASURES, "icon"], headlineMeasuresIcon);
37
- set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], headlineSecondaryMeasuresIcon);
33
+ _set(uiConfig, [BUCKETS, BucketNames.MEASURES, "canAddItems"], viewCanAddPrimaryItems);
34
+ _set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], viewCanAddSecondaryItems);
35
+ _set(uiConfig, [BUCKETS, BucketNames.MEASURES, "icon"], headlineMeasuresIcon);
36
+ _set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], headlineSecondaryMeasuresIcon);
38
37
  const primaryMeasuresCount = getItemsCount(buckets, BucketNames.MEASURES);
39
38
  const secondaryMeasuresCount = getItemsCount(buckets, BucketNames.SECONDARY_MEASURES);
40
39
  if (primaryMeasuresCount === 0 && secondaryMeasuresCount !== 0) {
@@ -43,9 +42,9 @@ export function getHeadlineUiConfig(referencePoint, intl) {
43
42
  text: getTranslation(messages["text"].id, intl),
44
43
  };
45
44
  }
46
- set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], true);
47
- set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "itemsLimit"], noDerivedMeasurePresent(buckets) ? 2 : 1);
48
- set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "allowsReordering"], true);
45
+ _set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "canAddItems"], true);
46
+ _set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "itemsLimit"], noDerivedMeasurePresent(buckets) ? 2 : 1);
47
+ _set(uiConfig, [BUCKETS, BucketNames.SECONDARY_MEASURES, "allowsReordering"], true);
49
48
  return uiConfig;
50
49
  }
51
50
  export function buildHeadlineVisualizationConfig(visualizationProperties, settings, options) {
@@ -1 +1 @@
1
- {"version":3,"file":"heatmapUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAUjF,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAUzB"}
1
+ {"version":3,"file":"heatmapUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAUjF,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAUzB"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { BUCKETS } from "../../constants/bucket.js";
6
5
  import { UICONFIG } from "../../constants/uiConfig.js";
7
6
  import { setBucketTitles } from "../bucketHelper.js";
@@ -13,9 +12,9 @@ const heatmapViewIcon = "local:heatmap/bucket-title-view.svg";
13
12
  const heatmapStackIcon = "local:heatmap/bucket-title-stack.svg";
14
13
  export function setHeatmapUiConfig(referencePoint, intl, visualizationType) {
15
14
  const referencePointConfigured = _cloneDeep(referencePoint);
16
- set(referencePointConfigured, [UICONFIG], setBucketTitles(referencePoint, visualizationType, intl));
17
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], heatmapMeasuresIcon);
18
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], heatmapViewIcon);
19
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], heatmapStackIcon);
15
+ _set(referencePointConfigured, [UICONFIG], setBucketTitles(referencePoint, visualizationType, intl));
16
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], heatmapMeasuresIcon);
17
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], heatmapViewIcon);
18
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], heatmapStackIcon);
20
19
  return referencePointConfigured;
21
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lineChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuDjF,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAsCzB"}
1
+ {"version":3,"file":"lineChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuDjF,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAsCzB"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { messages } from "../../../locales.js";
6
5
  import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
7
6
  import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
@@ -39,7 +38,7 @@ function setLineChartBucketWarningMessages(referencePoint, intl) {
39
38
  warningMessage = getTranslation(messages["categorySegment"].id, intl);
40
39
  }
41
40
  if (warningMessage) {
42
- set(updatedUiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
41
+ _set(updatedUiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
43
42
  }
44
43
  }
45
44
  });
@@ -52,14 +51,14 @@ export function setLineChartUiConfig(referencePoint, intl, visualizationType) {
52
51
  const segmentCanAddItems = hasSomeSegmentByItems(buckets) ||
53
52
  hasNoMeasures(buckets) ||
54
53
  hasOneMeasureOrAlsoLineStyleControlMeasure(buckets);
55
- set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
56
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], measuresCanAddItems);
57
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.TREND, "canAddItems"], true);
58
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "canAddItems"], segmentCanAddItems);
59
- set(referencePointConfigured, UICONFIG, setLineChartBucketWarningMessages(referencePointConfigured, intl));
60
- set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], !hasColorMapping(referencePoint.properties));
61
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], lineMeasuresIcon);
62
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.TREND, "icon"], lineTrendIcon);
63
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "icon"], lineSegmentIcon);
54
+ _set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
55
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], measuresCanAddItems);
56
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.TREND, "canAddItems"], true);
57
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "canAddItems"], segmentCanAddItems);
58
+ _set(referencePointConfigured, UICONFIG, setLineChartBucketWarningMessages(referencePointConfigured, intl));
59
+ _set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], !hasColorMapping(referencePoint.properties));
60
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], lineMeasuresIcon);
61
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.TREND, "icon"], lineTrendIcon);
62
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SEGMENT, "icon"], lineSegmentIcon);
64
63
  return referencePointConfigured;
65
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mekkoUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,wBAAgB,gBAAgB,CAC5B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAezB"}
1
+ {"version":3,"file":"mekkoUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AASjF,wBAAgB,gBAAgB,CAC5B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAezB"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { BUCKETS } from "../../constants/bucket.js";
6
5
  import { UICONFIG } from "../../constants/uiConfig.js";
7
6
  import { setBucketTitles } from "../bucketHelper.js";
@@ -12,10 +11,10 @@ const mekkoViewIcon = "local:mekko/bucket-title-view.svg";
12
11
  const mekkoStackIcon = "local:mekko/bucket-title-stack.svg";
13
12
  export function setMekkoUiConfig(referencePoint, intl, visualizationType) {
14
13
  const referencePointConfigured = _cloneDeep(referencePoint);
15
- set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
16
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], mekkoWidthIcon);
17
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], mekkoHeightIcon);
18
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], mekkoViewIcon);
19
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], mekkoStackIcon);
14
+ _set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
15
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], mekkoWidthIcon);
16
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], mekkoHeightIcon);
17
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], mekkoViewIcon);
18
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.STACK, "icon"], mekkoStackIcon);
20
19
  return referencePointConfigured;
21
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pieChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AA6CjF,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAyBzB"}
1
+ {"version":3,"file":"pieChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AA6CjF,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CA6BzB"}
@@ -1,7 +1,6 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { set } from "lodash-es";
3
2
  import { BucketNames } from "@gooddata/sdk-ui";
4
- import { _cloneDeep } from "@gooddata/util";
3
+ import { _cloneDeep, _set } from "@gooddata/util";
5
4
  import { messages } from "../../../locales.js";
6
5
  import { BUCKETS } from "../../constants/bucket.js";
7
6
  import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
@@ -34,7 +33,7 @@ function setPieChartBucketWarningMessages(referencePoint, intl) {
34
33
  }
35
34
  if (warningMessageId) {
36
35
  const warningMessage = getTranslation(warningMessageId, intl);
37
- set(updatedUiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
36
+ _set(updatedUiConfig, [BUCKETS, localIdentifier, "warningMessage"], warningMessage);
38
37
  }
39
38
  }
40
39
  });
@@ -45,12 +44,12 @@ export function setPieChartUiConfig(referencePoint, intl, visualizationType) {
45
44
  const buckets = referencePointConfigured?.buckets ?? [];
46
45
  const measuresCanAddItems = !hasMoreThanOneCategory(buckets);
47
46
  const viewCanAddItems = !hasMoreThanOneMasterMeasure(buckets, BucketNames.MEASURES);
48
- set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
49
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], measuresCanAddItems);
50
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], viewCanAddItems);
51
- set(referencePointConfigured, UICONFIG, setPieChartBucketWarningMessages(referencePointConfigured, intl));
52
- set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], !hasColorMapping(referencePoint.properties));
53
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], pieMeasuresIcon);
54
- set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], pieViewIcon);
47
+ _set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
48
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "canAddItems"], measuresCanAddItems);
49
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "canAddItems"], viewCanAddItems);
50
+ _set(referencePointConfigured, UICONFIG, setPieChartBucketWarningMessages(referencePointConfigured, intl));
51
+ _set(referencePointConfigured, [UICONFIG, OPEN_AS_REPORT, SUPPORTED], !hasColorMapping(referencePoint.properties));
52
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], pieMeasuresIcon);
53
+ _set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], pieViewIcon);
55
54
  return referencePointConfigured;
56
55
  }