@gooddata/sdk-ui-dashboard 11.58.0-alpha.1 → 11.58.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/NOTICE +9 -9
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -1
  5. package/esm/_staging/sharedHooks/useFiltersNamings.js +5 -3
  6. package/esm/index.d.ts +4 -4
  7. package/esm/index.d.ts.map +1 -1
  8. package/esm/index.js +2 -2
  9. package/esm/model/DashboardTester.d.ts.map +1 -1
  10. package/esm/model/DashboardTester.js +7 -1
  11. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
  12. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +13 -6
  13. package/esm/model/commandHandlers/parameters/filterParameterDependenciesWorker.d.ts +45 -0
  14. package/esm/model/commandHandlers/parameters/filterParameterDependenciesWorker.d.ts.map +1 -0
  15. package/esm/model/commandHandlers/parameters/filterParameterDependenciesWorker.js +99 -0
  16. package/esm/model/commandHandlers/parameters/insightParameterDependenciesWorker.d.ts +11 -0
  17. package/esm/model/commandHandlers/parameters/insightParameterDependenciesWorker.d.ts.map +1 -0
  18. package/esm/model/commandHandlers/parameters/insightParameterDependenciesWorker.js +71 -0
  19. package/esm/model/commandHandlers/parameters/loadFilterParameterDependencies.d.ts +22 -0
  20. package/esm/model/commandHandlers/parameters/loadFilterParameterDependencies.d.ts.map +1 -0
  21. package/esm/model/commandHandlers/parameters/loadFilterParameterDependencies.js +39 -0
  22. package/esm/model/commandHandlers/parameters/loadInsightParameterDependencies.d.ts +21 -0
  23. package/esm/model/commandHandlers/parameters/loadInsightParameterDependencies.d.ts.map +1 -0
  24. package/esm/model/commandHandlers/parameters/loadInsightParameterDependencies.js +86 -0
  25. package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
  26. package/esm/model/react/useInitializeDashboardStore.js +4 -0
  27. package/esm/model/react/useIsWidgetRestricted.d.ts.map +1 -1
  28. package/esm/model/react/useIsWidgetRestricted.js +14 -7
  29. package/esm/model/react/useWidgetExecConfig.d.ts +4 -4
  30. package/esm/model/react/useWidgetExecConfig.d.ts.map +1 -1
  31. package/esm/model/react/useWidgetExecConfig.js +2 -2
  32. package/esm/model/store/catalog/catalogReducers.d.ts +16 -4
  33. package/esm/model/store/catalog/catalogReducers.d.ts.map +1 -1
  34. package/esm/model/store/catalog/catalogReducers.js +15 -3
  35. package/esm/model/store/catalog/catalogSelectors.d.ts +21 -6
  36. package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
  37. package/esm/model/store/catalog/catalogSelectors.js +20 -5
  38. package/esm/model/store/catalog/catalogState.d.ts +30 -9
  39. package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
  40. package/esm/model/store/catalog/catalogState.js +2 -1
  41. package/esm/model/store/catalog/index.d.ts +4 -1
  42. package/esm/model/store/catalog/index.d.ts.map +1 -1
  43. package/esm/model/store/tabs/layout/layoutSelectors.d.ts +10 -0
  44. package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
  45. package/esm/model/store/tabs/layout/layoutSelectors.js +55 -26
  46. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +42 -8
  47. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  48. package/esm/model/store/tabs/parameters/parametersHelpers.js +88 -19
  49. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +13 -6
  50. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
  51. package/esm/model/store/tabs/parameters/parametersSelectors.js +24 -13
  52. package/esm/presentation/automations/shared/automationFilters/components/AutomationAttributeFilter.d.ts.map +1 -1
  53. package/esm/presentation/automations/shared/automationFilters/components/AutomationAttributeFilter.js +16 -2
  54. package/esm/presentation/automations/shared/hooks/useFiltersNamings.d.ts.map +1 -1
  55. package/esm/presentation/automations/shared/hooks/useFiltersNamings.js +5 -3
  56. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
  57. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +35 -13
  58. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +3 -0
  59. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  60. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +5 -2
  61. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +3 -0
  62. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  63. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +5 -2
  64. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +3 -0
  65. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  66. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +5 -2
  67. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +12 -0
  68. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  69. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +14 -2
  70. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +3 -0
  71. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  72. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +5 -2
  73. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +3 -0
  74. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  75. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +5 -2
  76. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +3 -0
  77. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  78. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +5 -2
  79. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +3 -0
  80. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  81. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +5 -2
  82. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +3 -0
  83. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  84. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +5 -2
  85. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +3 -0
  86. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  87. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +5 -2
  88. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +3 -0
  89. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  90. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +5 -2
  91. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +3 -0
  92. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  93. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +5 -2
  94. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +3 -0
  95. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  96. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +5 -2
  97. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +3 -0
  98. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  99. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +5 -2
  100. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +3 -0
  101. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  102. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +5 -2
  103. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +3 -0
  104. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  105. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +5 -2
  106. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +3 -0
  107. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  108. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +5 -2
  109. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +3 -0
  110. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  111. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +5 -2
  112. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +3 -0
  113. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  114. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +5 -2
  115. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +3 -0
  116. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  117. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +5 -2
  118. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +3 -0
  119. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  120. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +5 -2
  121. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +3 -0
  122. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  123. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +5 -2
  124. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +3 -0
  125. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  126. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +5 -2
  127. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +3 -0
  128. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  129. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +5 -2
  130. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +3 -0
  131. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  132. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +5 -2
  133. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +3 -0
  134. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  135. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +5 -2
  136. package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts +4 -8
  137. package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts.map +1 -1
  138. package/esm/presentation/widget/common/RestrictedPlaceholder.js +16 -23
  139. package/esm/presentation/widget/insight/DefaultInsightBody/DefaultInsightBody.d.ts.map +1 -1
  140. package/esm/presentation/widget/insight/DefaultInsightBody/DefaultInsightBody.js +2 -4
  141. package/esm/presentation/widget/insight/LayeredTableView.d.ts +1 -1
  142. package/esm/presentation/widget/insight/LayeredTableView.d.ts.map +1 -1
  143. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.d.ts.map +1 -1
  144. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +2 -3
  145. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
  146. package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +1 -1
  147. package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
  148. package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +30 -12
  149. package/esm/presentation/widget/insight/types.d.ts +1 -1
  150. package/esm/presentation/widget/insight/types.d.ts.map +1 -1
  151. package/esm/presentation/widget/richText/EditModeDashboardRichText.d.ts.map +1 -1
  152. package/esm/presentation/widget/richText/EditModeDashboardRichText.js +18 -6
  153. package/esm/presentation/widget/richText/RestrictedReferencesDialog.d.ts +22 -0
  154. package/esm/presentation/widget/richText/RestrictedReferencesDialog.d.ts.map +1 -0
  155. package/esm/presentation/widget/richText/RestrictedReferencesDialog.js +41 -0
  156. package/esm/presentation/widget/richText/useEditableRichTextMenu.d.ts.map +1 -1
  157. package/esm/presentation/widget/richText/useEditableRichTextMenu.js +6 -2
  158. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +1 -1
  159. package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList/VisualizationListItem.d.ts.map +1 -1
  160. package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList/VisualizationListItem.js +1 -4
  161. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +2 -3
  162. package/esm/sdk-ui-dashboard.d.ts +99 -42
  163. package/package.json +23 -23
  164. package/styles/css/main.css +28 -16
  165. package/styles/css/main.css.map +1 -1
  166. package/styles/css/richTextWidget.css +4 -0
  167. package/styles/css/richTextWidget.css.map +1 -1
  168. package/styles/scss/richTextWidget.scss +5 -1
  169. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadMeasureParameterDependencies.d.ts +0 -13
  170. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadMeasureParameterDependencies.d.ts.map +0 -1
  171. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadMeasureParameterDependencies.js +0 -98
  172. package/esm/presentation/widget/insight/geoDefaultDisplayFormRefs.d.ts +0 -5
  173. package/esm/presentation/widget/insight/geoDefaultDisplayFormRefs.d.ts.map +0 -1
  174. package/esm/presentation/widget/insight/geoDefaultDisplayFormRefs.js +0 -28
  175. package/esm/presentation/widget/insight/insightToTable.d.ts +0 -74
  176. package/esm/presentation/widget/insight/insightToTable.d.ts.map +0 -1
  177. package/esm/presentation/widget/insight/insightToTable.js +0 -482
@@ -40,8 +40,5 @@ export function VisualizationListItem({ visualization, insight, isActive, isLast
40
40
  ? intl.formatMessage({ id: "visualizationSwitcher.restrictedEntry" })
41
41
  : visualization.title }) }) })] }) }), _jsx(Button, { onClick: () => handleClick(visualization.identifier), value: "\u22EF", className: cx(`gd-vis-switcher-show-more-button gd-button s-visualization-switcher-more-menu-button-${visualization.identifier}`, {
42
42
  "is-active": active === visualization.identifier,
43
- }) }, visualization.identifier)] }, visualization.identifier), isOpen ? (_jsx(VisualizationListMenu, { alignTo: `.s-visualization-switcher-more-menu-button-${visualization.identifier}`, visualization: visualization, isLast: isLast, isFirst: isFirst,
44
- // the editor cannot read the visualization, so it cannot judge where in the order
45
- // the entry belongs; removal is the only change it can make
46
- shouldRenderActions: shouldRenderActions && !isRestricted, onMenuButtonClick: onMenuButtonClick, onVisualizationDeleted: onVisualizationDeleted, onVisualizationPositionChange: onVisualizationPositionChange })) : null] }));
43
+ }) }, visualization.identifier)] }, visualization.identifier), isOpen ? (_jsx(VisualizationListMenu, { alignTo: `.s-visualization-switcher-more-menu-button-${visualization.identifier}`, visualization: visualization, isLast: isLast, isFirst: isFirst, shouldRenderActions: shouldRenderActions, onMenuButtonClick: onMenuButtonClick, onVisualizationDeleted: onVisualizationDeleted, onVisualizationPositionChange: onVisualizationPositionChange })) : null] }));
47
44
  }
@@ -4,6 +4,7 @@ import { useCallback, useMemo } from "react";
4
4
  import cx from "classnames";
5
5
  import { useIntl } from "react-intl";
6
6
  import { insightVisualizationType, widgetTitle } from "@gooddata/sdk-model";
7
+ import { canConvertToTable, convertInsightToTableDefinition, getGeoTableDisplayFormRefs, supportsShowAsTable, } from "@gooddata/sdk-ui-ext";
7
8
  import { useId } from "@gooddata/sdk-ui-kit";
8
9
  import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
9
10
  import { useDashboardScheduledEmails } from "../../../../model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.js";
@@ -21,8 +22,6 @@ import { useInsightExport } from "../../common/useInsightExport.js";
21
22
  import { useWidgetHighlighting } from "../../common/useWidgetHighlighting.js";
22
23
  import { useInsightWidgetDescriptionComponent } from "../../description/InsightWidgetDescriptionComponentProvider.js";
23
24
  import { DashboardInsight } from "../../insight/DashboardInsight.js";
24
- import { getGeoDefaultDisplayFormRefs } from "../../insight/geoDefaultDisplayFormRefs.js";
25
- import { canConvertToTable, convertInsightToTableDefinition, supportsShowAsTable, } from "../../insight/insightToTable.js";
26
25
  import { ShowAsTableButton } from "../../showAsTableButton/ShowAsTableButton.js";
27
26
  import { useShowAsTable } from "../../showAsTableButton/useShowAsTable.js";
28
27
  import { InsightWidgetWarningPartialResult } from "../warningPartialResult/InsightWidgetWarningPartialResult.js";
@@ -136,7 +135,7 @@ function DefaultDashboardInsightWidgetCore({ widget, insight, screen, onError, o
136
135
  if (!canConvertToTable(visType) && visType !== "table" && visType !== "repeater") {
137
136
  return null;
138
137
  }
139
- const defaultDisplayFormRefs = getGeoDefaultDisplayFormRefs(insight, settings, catalogAttributes, preloadedAttributesWithReferences);
138
+ const defaultDisplayFormRefs = getGeoTableDisplayFormRefs(insight, settings, catalogAttributes, preloadedAttributesWithReferences);
140
139
  return convertInsightToTableDefinition(insight, { settings, defaultDisplayFormRefs });
141
140
  }, [
142
141
  isExportMode,
@@ -173,6 +173,7 @@ import { IKpiComparisonTypeComparison } from '@gooddata/sdk-model';
173
173
  import { IKpiWidget } from '@gooddata/sdk-model';
174
174
  import { IKpiWidgetConfiguration } from '@gooddata/sdk-model';
175
175
  import { IKpiWidgetDefinition } from '@gooddata/sdk-model';
176
+ import { ILayerTableDefinition } from '@gooddata/sdk-ui-ext';
176
177
  import { IListedDashboard } from '@gooddata/sdk-model';
177
178
  import { ILoadingProps } from '@gooddata/sdk-ui';
178
179
  import { ILocale } from '@gooddata/sdk-ui';
@@ -1314,15 +1315,25 @@ export declare const catalogActions: {
1314
1315
  updateAttributeHierarchy: ActionCreatorWithPayload<ICatalogAttributeHierarchy, "catalog/updateAttributeHierarchy">;
1315
1316
  deleteAttributeHierarchy: ActionCreatorWithPayload<ICatalogAttributeHierarchy, "catalog/deleteAttributeHierarchy">;
1316
1317
  setCatalogParameters: ActionCreatorWithPayload<ICatalogParametersState, "catalog/setCatalogParameters">;
1317
- setCatalogMeasureParameters: ActionCreatorWithPayload<ICatalogMeasureParametersState, "catalog/setCatalogMeasureParameters">;
1318
+ setCatalogInsightParameters: ActionCreatorWithPayload<ICatalogInsightParametersState, "catalog/setCatalogInsightParameters">;
1319
+ mergeCatalogInsightParameters: ActionCreatorWithPayload<Record<string, IdentifierRef[]>, "catalog/mergeCatalogInsightParameters">;
1320
+ setCatalogFilterParameters: ActionCreatorWithPayload<ICatalogFilterParametersState, "catalog/setCatalogFilterParameters">;
1321
+ mergeCatalogFilterParameters: ActionCreatorWithPayload<Record<string, IdentifierRef[]>, "catalog/mergeCatalogFilterParameters">;
1318
1322
  };
1319
1323
 
1320
1324
  /**
1321
- * Status of the dashboard-wide metric → parameter dependency map.
1325
+ * Status of the dashboard-wide dashboard-filter → parameter dependency map.
1322
1326
  *
1323
1327
  * @alpha
1324
1328
  */
1325
- export declare type CatalogMeasureParametersStatus = "uninitialized" | "loading" | "loaded" | "failed";
1329
+ export declare type CatalogFilterParametersStatus = "uninitialized" | "loading" | "loaded" | "failed";
1330
+
1331
+ /**
1332
+ * Status of the dashboard-wide insight → parameter dependency map.
1333
+ *
1334
+ * @alpha
1335
+ */
1336
+ export declare type CatalogInsightParametersStatus = "uninitialized" | "loading" | "loaded" | "failed";
1326
1337
 
1327
1338
  /**
1328
1339
  * Status of catalog parameters loading.
@@ -1357,7 +1368,9 @@ export declare type CatalogState = {
1357
1368
  /** @alpha */
1358
1369
  parameters: ICatalogParametersState;
1359
1370
  /** @alpha */
1360
- measureParameters: ICatalogMeasureParametersState;
1371
+ insightParameters: ICatalogInsightParametersState;
1372
+ /** @alpha */
1373
+ filterParameters: ICatalogFilterParametersState;
1361
1374
  };
1362
1375
 
1363
1376
  /**
@@ -8458,15 +8471,29 @@ export declare interface ICancelRenamingDashboardTabPayload {
8458
8471
  }
8459
8472
 
8460
8473
  /**
8461
- * Maps each referenced metric (keyed by `objRefToString(metricRef)`) to the parameter refs the
8462
- * metric depends on, as reported by the workspace references service. Drives runtime parameter
8463
- * applicability for widget execution.
8474
+ * Maps each object a dashboard filter reads (keyed by `serializeObjRef(ref)`: the computed attribute
8475
+ * of an attribute filter, the metric or a computed-attribute dimension of a measure value filter) to
8476
+ * the parameter refs it depends on, as reported by the workspace references service. Complements
8477
+ * {@link ICatalogInsightParametersState} for the parameters a widget reaches only through dashboard
8478
+ * filters, which are not part of its insight.
8479
+ *
8480
+ * @alpha
8481
+ */
8482
+ export declare interface ICatalogFilterParametersState {
8483
+ status: CatalogFilterParametersStatus;
8484
+ byRef: Record<string, IdentifierRef[]>;
8485
+ }
8486
+
8487
+ /**
8488
+ * Maps each dashboard insight (keyed by `serializeObjRef(insightRef)`) to the parameter refs it
8489
+ * depends on through its metrics and computed attributes, as reported by the workspace references
8490
+ * service. Drives runtime parameter applicability for widget execution.
8464
8491
  *
8465
8492
  * @alpha
8466
8493
  */
8467
- export declare interface ICatalogMeasureParametersState {
8468
- status: CatalogMeasureParametersStatus;
8469
- byMetric: Record<string, IdentifierRef[]>;
8494
+ export declare interface ICatalogInsightParametersState {
8495
+ status: CatalogInsightParametersStatus;
8496
+ byInsight: Record<string, IdentifierRef[]>;
8470
8497
  }
8471
8498
 
8472
8499
  /**
@@ -17047,21 +17074,7 @@ export declare interface IKpiWidgetComparison {
17047
17074
  comparisonDirection?: IKpiComparisonDirection;
17048
17075
  }
17049
17076
 
17050
- /**
17051
- * Defines a single layer's table conversion result for multi-layer geo charts.
17052
- *
17053
- * @alpha
17054
- */
17055
- export declare interface ILayerTableDefinition {
17056
- /** Stable id — "root" for root layer, layer.id for additional layers */
17057
- layerId: string;
17058
- /** Human-readable name for the tab label */
17059
- layerName: string;
17060
- /** Normalized layer type */
17061
- layerType: string;
17062
- /** Converted table insight for this layer */
17063
- tableInsight: IInsight;
17064
- }
17077
+ export { ILayerTableDefinition }
17065
17078
 
17066
17079
  /**
17067
17080
  * Coordinates of an item in a layout.
@@ -24070,6 +24083,17 @@ export declare interface IWidgetHeader {
24070
24083
  title?: string;
24071
24084
  }
24072
24085
 
24086
+ /**
24087
+ * Per-tab widget contexts. Each entry pairs a widget with its owning tab; nested layout widgets
24088
+ * and visualization switcher children are flattened in. Used by cross-tab widget lookups.
24089
+ *
24090
+ * @internal
24091
+ */
24092
+ export declare interface IWidgetTabContext {
24093
+ tab: ITabState;
24094
+ widget: ExtendedDashboardWidget;
24095
+ }
24096
+
24073
24097
  /**
24074
24098
  * @internal
24075
24099
  */
@@ -26310,17 +26334,13 @@ export declare type RestrictedFiltersPlaceholderComponentProvider = () => Custom
26310
26334
  export declare type RestrictedPlaceholderComponentProvider = (widget: IInsightWidget) => CustomRestrictedPlaceholderComponent;
26311
26335
 
26312
26336
  /**
26313
- * The built-in restricted placeholder content: a lock with the reason and the recovery step.
26314
- *
26315
- * It is the error tile the dashboard already shows for a visualization that is gone, with the lock
26316
- * in place of the warning, so the two read as the same kind of message. It renders the same at every
26317
- * size — the tile clips what does not fit and the hover tooltip carries the whole message — so one
26318
- * widget cannot read differently in two render modes. The measured size is therefore not used, and
26319
- * is passed to a consumer's replacement only.
26337
+ * The built-in restricted placeholder content: a lock with the reason and the recovery step, as the
26338
+ * design has it. It takes over the whole widget, title included, because a stored title can name the
26339
+ * object the reader may not know exists.
26320
26340
  *
26321
26341
  * @alpha
26322
26342
  */
26323
- export declare function RestrictedPlaceholderContent(_props: IRestrictedPlaceholderContentProps): JSX.Element;
26343
+ export declare function RestrictedPlaceholderContent({ width }: IRestrictedPlaceholderContentProps): JSX.Element;
26324
26344
 
26325
26345
  /**
26326
26346
  * A convenience function to create UndoLayoutChanges command that will revert the very last command and toss it out
@@ -27037,6 +27057,17 @@ export declare const selectAllCatalogMeasuresMap: DashboardSelector<ObjRefMap<IC
27037
27057
  */
27038
27058
  export declare const selectAllCustomWidgets: DashboardSelector<ExtendedDashboardWidget[]>;
27039
27059
 
27060
+ /**
27061
+ * Selects all filters from filter context converted to filters specific for a widget specified by a ref,
27062
+ * even if the widget is not on the active tab.
27063
+ *
27064
+ * @remarks
27065
+ * This does NOT resolve things like ignored filters for a widget, etc.
27066
+ *
27067
+ * @internal
27068
+ */
27069
+ export declare const selectAllFiltersForWidgetByRefAcrossTabs: (ref: ObjRef) => DashboardSelector<[IDashboardFilter[], IDashboardFilter[]]>;
27070
+
27040
27071
  /**
27041
27072
  * Selects all insight widgets in the layout.
27042
27073
  *
@@ -27072,6 +27103,15 @@ export declare const selectAllowMultipleInteractionsPerAttributeAndMeasure: Dash
27072
27103
  */
27073
27104
  export declare const selectAllowUnfinishedFeatures: DashboardSelector<boolean>;
27074
27105
 
27106
+ /**
27107
+ * Cross-tab widget contexts. Walks every tab's layout (including nested layouts and visualization
27108
+ * switcher children) once and pairs each widget with its owning tab. Consumers needing to resolve
27109
+ * a widget's owning tab by ref or identifier should `.find()` against this array.
27110
+ *
27111
+ * @internal
27112
+ */
27113
+ export declare const selectAllTabsWidgetContexts: DashboardSelector<IWidgetTabContext[]>;
27114
+
27075
27115
  /**
27076
27116
  * Selects analytical widget by its ref. This selector will return undefined if the provided
27077
27117
  * widget ref is not analytical widget, eg. custom widget or nested layout.
@@ -27545,24 +27585,41 @@ export declare const selectCatalogDateDatasets: DashboardSelector<ICatalogDateDa
27545
27585
  export declare const selectCatalogFacts: DashboardSelector<ICatalogFact[]>;
27546
27586
 
27547
27587
  /**
27588
+ * Returns the dashboard-wide map from the serialized ref of an object a dashboard filter reads (a computed
27589
+ * attribute, a metric) to the parameter refs it depends on. Populated during dashboard initialization from
27590
+ * the workspace references service and extended when the filter context gains filters on other objects.
27591
+ *
27548
27592
  * @alpha
27549
27593
  */
27550
- export declare const selectCatalogIsLoaded: DashboardSelector<boolean>;
27594
+ export declare const selectCatalogFilterParameters: DashboardSelector<Record<string, IdentifierRef[]>>;
27595
+
27596
+ /**
27597
+ * Returns the load status of the dashboard-wide dashboard-filter → parameter dependency map.
27598
+ *
27599
+ * @alpha
27600
+ */
27601
+ export declare const selectCatalogFilterParametersStatus: DashboardSelector<CatalogFilterParametersStatus>;
27551
27602
 
27552
27603
  /**
27553
- * Returns the dashboard-wide map from metric ref string to the parameter refs the metric depends on.
27554
- * The map is populated during dashboard initialization from the workspace references service.
27604
+ * Returns the dashboard-wide map from serialized insight ref to the parameter refs the insight depends on.
27605
+ * The map is populated during dashboard initialization from the workspace references service and extended
27606
+ * when insights are added later.
27555
27607
  *
27556
27608
  * @alpha
27557
27609
  */
27558
- export declare const selectCatalogMeasureParameters: DashboardSelector<Record<string, IdentifierRef[]>>;
27610
+ export declare const selectCatalogInsightParameters: DashboardSelector<Record<string, IdentifierRef[]>>;
27559
27611
 
27560
27612
  /**
27561
- * Returns the load status of the dashboard-wide metric → parameter dependency map.
27613
+ * Returns the load status of the dashboard-wide insight → parameter dependency map.
27562
27614
  *
27563
27615
  * @alpha
27564
27616
  */
27565
- export declare const selectCatalogMeasureParametersStatus: DashboardSelector<CatalogMeasureParametersStatus>;
27617
+ export declare const selectCatalogInsightParametersStatus: DashboardSelector<CatalogInsightParametersStatus>;
27618
+
27619
+ /**
27620
+ * @alpha
27621
+ */
27622
+ export declare const selectCatalogIsLoaded: DashboardSelector<boolean>;
27566
27623
 
27567
27624
  /**
27568
27625
  * @public
@@ -28311,14 +28368,14 @@ export declare const selectEffectiveDateFilterTitle: DashboardSelector<string |
28311
28368
  * Returns the parameter values to inject into the widget's `IExecutionConfig.parameterValues`.
28312
28369
  *
28313
28370
  * @remarks
28314
- * For each parameter referenced by the widget's metrics (via the dashboard-wide MAQL
28315
- * metric → parameter dependency map), the value is resolved in this order:
28371
+ * For each parameter the widget's insight depends on (via the dashboard-wide
28372
+ * insight → parameter dependency map), the value is resolved in this order:
28316
28373
  *
28317
28374
  * 1. dashboard chip on the widget's tab with `runtimeOverride !== undefined`,
28318
28375
  * 2. else `insight.parameters` entry for that ref (AD-authored per-insight override),
28319
28376
  * 3. else nothing (backend uses workspace default).
28320
28377
  *
28321
- * Parameters not referenced by the widget's metrics are excluded so that adding/removing
28378
+ * Parameters the widget's insight does not depend on are excluded so that adding/removing
28322
28379
  * unrelated parameters does not invalidate the widget's `defFingerprint`. Returns `[]` when
28323
28380
  * `enableParameters` is off or while the dependency map has not been loaded.
28324
28381
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "11.58.0-alpha.1",
3
+ "version": "11.58.0-alpha.3",
4
4
  "description": "GoodData SDK - Dashboard Component",
5
5
  "license": "LicenseRef-LICENSE",
6
6
  "author": "GoodData Corporation",
@@ -60,20 +60,20 @@
60
60
  "ts-invariant": "0.10.3",
61
61
  "tslib": "2.8.1",
62
62
  "uuid": "11.1.1",
63
- "@gooddata/sdk-backend-base": "11.58.0-alpha.1",
64
- "@gooddata/sdk-backend-spi": "11.58.0-alpha.1",
65
- "@gooddata/sdk-model": "11.58.0-alpha.1",
66
- "@gooddata/sdk-ui": "11.58.0-alpha.1",
67
- "@gooddata/sdk-ui-charts": "11.58.0-alpha.1",
68
- "@gooddata/sdk-ui-ext": "11.58.0-alpha.1",
69
- "@gooddata/sdk-ui-filters": "11.58.0-alpha.1",
70
- "@gooddata/sdk-ui-pivot": "11.58.0-alpha.1",
71
- "@gooddata/sdk-ui-geo": "11.58.0-alpha.1",
72
- "@gooddata/sdk-ui-vis-commons": "11.58.0-alpha.1",
73
- "@gooddata/sdk-ui-semantic-search": "11.58.0-alpha.1",
74
- "@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.1",
75
- "@gooddata/util": "11.58.0-alpha.1",
76
- "@gooddata/sdk-ui-kit": "11.58.0-alpha.1"
63
+ "@gooddata/sdk-model": "11.58.0-alpha.3",
64
+ "@gooddata/sdk-backend-base": "11.58.0-alpha.3",
65
+ "@gooddata/sdk-backend-spi": "11.58.0-alpha.3",
66
+ "@gooddata/sdk-ui": "11.58.0-alpha.3",
67
+ "@gooddata/sdk-ui-charts": "11.58.0-alpha.3",
68
+ "@gooddata/sdk-ui-ext": "11.58.0-alpha.3",
69
+ "@gooddata/sdk-ui-filters": "11.58.0-alpha.3",
70
+ "@gooddata/sdk-ui-geo": "11.58.0-alpha.3",
71
+ "@gooddata/sdk-ui-kit": "11.58.0-alpha.3",
72
+ "@gooddata/sdk-ui-pivot": "11.58.0-alpha.3",
73
+ "@gooddata/sdk-ui-semantic-search": "11.58.0-alpha.3",
74
+ "@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.3",
75
+ "@gooddata/sdk-ui-vis-commons": "11.58.0-alpha.3",
76
+ "@gooddata/util": "11.58.0-alpha.3"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@microsoft/api-documenter": "7.30.10",
@@ -111,16 +111,16 @@
111
111
  "react-dom": "19.1.1",
112
112
  "sass": "1.104.1",
113
113
  "stylelint": "16.26.1",
114
- "svgo": "2.8.3",
114
+ "svgo": "2.8.4",
115
115
  "typescript": "7.0.2",
116
- "vitest": "4.1.8",
116
+ "vitest": "4.1.11",
117
117
  "vitest-dom": "0.1.1",
118
- "@gooddata/eslint-config": "11.58.0-alpha.1",
119
- "@gooddata/i18n-toolkit": "11.58.0-alpha.1",
120
- "@gooddata/oxlint-config": "11.58.0-alpha.1",
121
- "@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.1",
122
- "@gooddata/stylelint-config": "11.58.0-alpha.1",
123
- "@gooddata/reference-workspace": "11.58.0-alpha.1"
118
+ "@gooddata/i18n-toolkit": "11.58.0-alpha.3",
119
+ "@gooddata/eslint-config": "11.58.0-alpha.3",
120
+ "@gooddata/reference-workspace": "11.58.0-alpha.3",
121
+ "@gooddata/oxlint-config": "11.58.0-alpha.3",
122
+ "@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.3",
123
+ "@gooddata/stylelint-config": "11.58.0-alpha.3"
124
124
  },
125
125
  "peerDependencies": {
126
126
  "react": "^18.0.0 || ^19.0.0",
@@ -1664,13 +1664,10 @@ button.gd-list-item {
1664
1664
 
1665
1665
  .gd-rich-text-content .gd-rich-text-metric-restricted {
1666
1666
  display: inline-flex;
1667
- align-items: baseline;
1668
- gap: 4px;
1669
- color: var(--gd-palette-complementary-6, #94a1ad);
1670
- }
1671
-
1672
- .gd-rich-text-content .gd-rich-text-metric-restricted::before {
1673
- font-size: 12px;
1667
+ align-items: center;
1668
+ gap: 2px;
1669
+ color: var(--gd-palette-complementary-6);
1670
+ font-weight: 400;
1674
1671
  }
1675
1672
 
1676
1673
  .gd-rich-text-content-view * {
@@ -12468,9 +12465,11 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
12468
12465
  }
12469
12466
 
12470
12467
  .gd-period-range-picker .rc-picker-input > input {
12468
+ box-sizing: border-box;
12471
12469
  width: 100%;
12470
+ min-width: 0;
12472
12471
  height: 28px;
12473
- padding: 0;
12472
+ padding: 0 0 0 20px;
12474
12473
  border: 0;
12475
12474
  outline: none;
12476
12475
  background: transparent;
@@ -12485,21 +12484,22 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
12485
12484
  color: var(--gd-palette-complementary-6, #94a1ad);
12486
12485
  }
12487
12486
 
12488
- .gd-period-range-picker .rc-picker-range-separator {
12489
- display: none;
12490
- }
12491
-
12492
- .gd-period-range-picker .rc-picker-prefix,
12493
- .gd-period-range-picker .rc-picker-suffix {
12487
+ .gd-period-range-picker .rc-picker-input .gd-icon-calendar {
12488
+ position: absolute;
12489
+ top: 0;
12490
+ left: 10px;
12494
12491
  display: flex;
12495
- flex: none;
12496
12492
  align-items: center;
12497
- margin-left: 6px;
12493
+ height: 100%;
12498
12494
  color: var(--gd-palette-primary-base, #14b2e2);
12499
12495
  font-size: 14px;
12500
12496
  pointer-events: none;
12501
12497
  }
12502
12498
 
12499
+ .gd-period-range-picker .rc-picker-range-separator {
12500
+ display: none;
12501
+ }
12502
+
12503
12503
  .gd-period-range-picker .rc-picker-active-bar {
12504
12504
  position: absolute;
12505
12505
  bottom: -1px;
@@ -12767,6 +12767,14 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
12767
12767
  padding-top: 10px;
12768
12768
  }
12769
12769
 
12770
+ .gd-period-range-picker__preview {
12771
+ margin-top: 10px;
12772
+ padding-top: 10px;
12773
+ border-top: 1px solid var(--gd-palette-complementary-3, #dde4eb);
12774
+ color: var(--gd-palette-complementary-7-from-theme, #687581);
12775
+ font-size: 12px;
12776
+ }
12777
+
12770
12778
  .gd-period-range-picker.gd-period-range-picker-mobile .rc-picker-input > input {
12771
12779
  font-size: 16px;
12772
12780
  }
@@ -31099,6 +31107,10 @@ figure {
31099
31107
  font-size: 12px;
31100
31108
  }
31101
31109
 
31110
+ .gd-restricted-references-dialog-wrapper {
31111
+ display: contents;
31112
+ }
31113
+
31102
31114
  .gd-rich-text-widget-wrapper {
31103
31115
  width: 100%;
31104
31116
  height: 100%;