@gooddata/sdk-ui-dashboard 11.45.0 → 11.46.0-alpha.1

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 (74) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.d.ts.map +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/index.d.ts +1 -1
  5. package/esm/index.d.ts.map +1 -1
  6. package/esm/index.js +1 -1
  7. package/esm/kdaDialog/components/bars/DateBar.d.ts.map +1 -1
  8. package/esm/kdaDialog/components/bars/DateBar.js +10 -5
  9. package/esm/kdaDialog/composition/KeyDriversPanel.d.ts.map +1 -1
  10. package/esm/kdaDialog/composition/KeyDriversPanel.js +9 -1
  11. package/esm/kdaDialog/dialog/KdaDialog.d.ts +1 -1
  12. package/esm/kdaDialog/dialog/KdaDialog.d.ts.map +1 -1
  13. package/esm/kdaDialog/dialog/KdaDialog.js +10 -5
  14. package/esm/kdaDialog/dialog/hooks/useCloseOnEscape.d.ts +2 -0
  15. package/esm/kdaDialog/dialog/hooks/useCloseOnEscape.d.ts.map +1 -0
  16. package/esm/kdaDialog/dialog/hooks/useCloseOnEscape.js +12 -0
  17. package/esm/kdaDialog/internalTypes.d.ts +1 -0
  18. package/esm/kdaDialog/internalTypes.d.ts.map +1 -1
  19. package/esm/kdaDialog/providers/KdaState.d.ts.map +1 -1
  20. package/esm/kdaDialog/providers/KdaState.js +1 -0
  21. package/esm/kdaDialog/types.d.ts +4 -0
  22. package/esm/kdaDialog/types.d.ts.map +1 -1
  23. package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts.map +1 -1
  24. package/esm/model/commandHandlers/filterContext/filterViewParameters.js +5 -2
  25. package/esm/model/store/config/configSelectors.d.ts +4 -10
  26. package/esm/model/store/config/configSelectors.d.ts.map +1 -1
  27. package/esm/model/store/config/configSelectors.js +6 -14
  28. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  29. package/esm/model/store/tabs/parameters/parametersHelpers.js +5 -9
  30. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSelectedValues.d.ts +37 -0
  31. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSelectedValues.d.ts.map +1 -0
  32. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSelectedValues.js +39 -0
  33. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +1 -1
  34. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.js +7 -12
  35. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.d.ts +3 -3
  36. package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.d.ts.map +1 -1
  37. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
  38. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +1 -4
  39. package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
  40. package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +2 -3
  41. package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.d.ts +1 -1
  42. package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.d.ts.map +1 -1
  43. package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.js +1 -2
  44. package/esm/presentation/dashboard/DashboardSidebar/FloatingToolbar.d.ts.map +1 -1
  45. package/esm/presentation/dashboard/DashboardSidebar/FloatingToolbar.js +2 -3
  46. package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.d.ts.map +1 -1
  47. package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.js +4 -3
  48. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
  49. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +3 -4
  50. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
  51. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +6 -12
  52. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts +0 -3
  53. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts.map +1 -1
  54. package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js +1 -9
  55. package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
  56. package/esm/presentation/insightList/InsightList.js +4 -5
  57. package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts.map +1 -1
  58. package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js +2 -2
  59. package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.d.ts.map +1 -1
  60. package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js +2 -2
  61. package/esm/presentation/widget/description/types.d.ts +0 -1
  62. package/esm/presentation/widget/description/types.d.ts.map +1 -1
  63. package/esm/presentation/widget/description/useInsightWidgetDescription.d.ts +0 -1
  64. package/esm/presentation/widget/description/useInsightWidgetDescription.d.ts.map +1 -1
  65. package/esm/presentation/widget/description/useInsightWidgetDescription.js +0 -4
  66. package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
  67. package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +3 -5
  68. package/esm/sdk-ui-dashboard.d.ts +4 -14
  69. package/package.json +21 -21
  70. package/styles/css/kdaDialog.css +6 -2
  71. package/styles/css/kdaDialog.css.map +1 -1
  72. package/styles/css/main.css +6 -2
  73. package/styles/css/main.css.map +1 -1
  74. package/styles/scss/kdaDialog.scss +7 -1
@@ -307,14 +307,6 @@ export const selectIsDisableUserFilterReset = createSelector(selectConfig, (stat
307
307
  export const selectEnableUnavailableItemsVisibility = createSelector(selectConfig, (state) => {
308
308
  return state.settings?.showHiddenCatalogItems ?? false;
309
309
  });
310
- /**
311
- * Returns whether rich text widgets are enabled.
312
- *
313
- * @internal
314
- */
315
- export const selectEnableKDRichText = createSelector(selectConfig, (state) => {
316
- return state.settings?.enableKDRichText ?? true;
317
- });
318
310
  /**
319
311
  * Returns whether kda is enabled
320
312
  *
@@ -375,20 +367,20 @@ export const selectAvailableAttributeFilterSelectionTypes = createSelector(selec
375
367
  return modes;
376
368
  });
377
369
  /**
378
- * Returns whether rich text in descriptions is enabled.
370
+ * Returns whether semantic search is enabled.
379
371
  *
380
372
  * @internal
381
373
  */
382
- export const selectEnableRichTextDescriptions = createSelector(selectConfig, (state) => {
383
- return state.settings?.enableRichTextDescriptions ?? false;
374
+ export const selectEnableSemanticSearch = createSelector(selectConfig, (state) => {
375
+ return state.settings?.enableSemanticSearch ?? false;
384
376
  });
385
377
  /**
386
- * Returns whether semantic search is enabled.
378
+ * Returns whether smart search in catalog is enabled.
387
379
  *
388
380
  * @internal
389
381
  */
390
- export const selectEnableSemanticSearch = createSelector(selectConfig, (state) => {
391
- return state.settings?.enableSemanticSearch ?? false;
382
+ export const selectEnableCatalogSmartSearchResults = createSelector(selectConfig, (state) => {
383
+ return state.settings?.enableCatalogSmartSearchResults ?? false;
392
384
  });
393
385
  /**
394
386
  * Returns whether customized dashboards without plugin overlay are enabled.
@@ -1 +1 @@
1
- {"version":3,"file":"parametersHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersHelpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB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EAAE,SAAS,CAAC;IAAC,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAAE,EAAE,CAuBhD"}
@@ -1,5 +1,5 @@
1
1
  // (C) 2026 GoodData Corporation
2
- import { DashboardParameterModeValues, insightMeasures, insightParameters, isMeasureDefinition, isNumberParameterDefinition, isValidNumberParameterValue, objRefToString, } from "@gooddata/sdk-model";
2
+ import { DashboardParameterModeValues, getNumberParameterDefaultValue, insightMeasures, insightParameters, isMeasureDefinition, isNumberParameterDefinition, isValidNumberParameterValue, objRefToString, } from "@gooddata/sdk-model";
3
3
  import { parametersInitialState, pickTabParametersSource, } from "./parametersState.js";
4
4
  const EMPTY_PARAMETERS = [];
5
5
  const EMPTY_PARAMETER_VALUES = [];
@@ -96,9 +96,7 @@ export function computeHydratedRuntimeOverride(parameter, workspaceParameter) {
96
96
  if (parameter.value !== undefined) {
97
97
  return parameter.value;
98
98
  }
99
- return workspaceParameter && isNumberParameterDefinition(workspaceParameter.definition)
100
- ? workspaceParameter.definition.defaultValue
101
- : undefined;
99
+ return getNumberParameterDefaultValue(workspaceParameter?.definition);
102
100
  }
103
101
  /**
104
102
  * The value to execute for a runtime override: an out-of-range NUMBER value is replaced by the
@@ -231,9 +229,7 @@ export function formatDashboardParameter(entry, workspaceParameter) {
231
229
  * @internal
232
230
  */
233
231
  export function smartPersistResolvedEntry(entry, workspaceParameter) {
234
- const workspaceDefault = isNumberParameterDefinition(workspaceParameter.definition)
235
- ? workspaceParameter.definition.defaultValue
236
- : undefined;
232
+ const workspaceDefault = getNumberParameterDefaultValue(workspaceParameter.definition);
237
233
  const result = {
238
234
  ref: entry.parameter.ref,
239
235
  parameterType: entry.parameter.parameterType,
@@ -273,10 +269,10 @@ export function buildPersistedByTabAndRef(persistedTabs, rootPersistedParameters
273
269
  * @internal
274
270
  */
275
271
  export function computeParameterResetValue(entry, workspaceParameter, isInEditMode) {
276
- if (!workspaceParameter || !isNumberParameterDefinition(workspaceParameter.definition)) {
272
+ const workspaceDefault = getNumberParameterDefaultValue(workspaceParameter?.definition);
273
+ if (workspaceDefault === undefined) {
277
274
  return undefined;
278
275
  }
279
- const workspaceDefault = workspaceParameter.definition.defaultValue;
280
276
  const dashboardOverride = entry.parameter.value;
281
277
  if (isInEditMode) {
282
278
  if (dashboardOverride === undefined || dashboardOverride === workspaceDefault) {
@@ -0,0 +1,37 @@
1
+ import { type IAutomationMetadataObjectDefinition, type INotificationChannelIdentifier, type INotificationChannelMetadataObject } from "@gooddata/sdk-model";
2
+ import { type AlertAttribute, type AlertMetric } from "../../types.js";
3
+ /**
4
+ * Props for {@link useAlertSelectedValues}.
5
+ * @internal
6
+ */
7
+ export interface IUseAlertSelectedValuesProps {
8
+ editedAutomation: IAutomationMetadataObjectDefinition | undefined;
9
+ supportedMeasures: AlertMetric[];
10
+ supportedAttributes: AlertAttribute[];
11
+ notificationChannels: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
12
+ }
13
+ /**
14
+ * Pure selector hook that derives the currently-selected values from the edited automation draft.
15
+ *
16
+ * No memoization is intentionally added — values are recomputed on every render to preserve the
17
+ * referential behaviour of the original inline code in `useEditAlert` (the returned objects flow
18
+ * into `useCallback` dep arrays and `useThresholdValue` args; memoizing them would be a behaviour
19
+ * change, not an optimisation). The hook therefore contains no internal React hooks.
20
+ *
21
+ * @internal
22
+ */
23
+ export declare function useAlertSelectedValues({ editedAutomation, supportedMeasures, supportedAttributes, notificationChannels }: IUseAlertSelectedValuesProps): {
24
+ selectedMeasure: AlertMetric | undefined;
25
+ selectedComparisonOperator: import("@gooddata/sdk-model").IAlertComparisonOperator | undefined;
26
+ selectedRelativeOperator: [import("@gooddata/sdk-model").IAlertRelativeOperator, import("@gooddata/sdk-model").IAlertRelativeArithmeticOperator] | undefined;
27
+ selectedAiOperator: "AI.ANOMALY_DETECTION" | undefined;
28
+ selectedComparator: import("../../types.js").AlertMetricComparator | undefined;
29
+ selectedSensitivity: import("@gooddata/sdk-model").IAlertAnomalyDetectionSensitivity | undefined;
30
+ selectedGranularity: import("@gooddata/sdk-model").IAlertAnomalyDetectionGranularity | undefined;
31
+ selectedAttribute: AlertAttribute | undefined;
32
+ selectedValue: string | null | undefined;
33
+ selectedNotificationChannel: INotificationChannelIdentifier | undefined;
34
+ allowExternalRecipients: boolean;
35
+ allowOnlyLoggedUserRecipients: boolean;
36
+ };
37
+ //# sourceMappingURL=useAlertSelectedValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAlertSelectedValues.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSelectedValues.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAC1C,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAYvE;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IACzC,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,CAAC;IAClE,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;CACjG;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACvB,EAAE,4BAA4B;;;;;;;;;;;;;EA+B9B"}
@@ -0,0 +1,39 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { getAlertAiOperator, getAlertAttribute, getAlertCompareOperator, getAlertComparison, getAlertGranularity, getAlertMeasure, getAlertRelativeOperator, getAlertSensitivity, } from "../utils/getters.js";
3
+ /**
4
+ * Pure selector hook that derives the currently-selected values from the edited automation draft.
5
+ *
6
+ * No memoization is intentionally added — values are recomputed on every render to preserve the
7
+ * referential behaviour of the original inline code in `useEditAlert` (the returned objects flow
8
+ * into `useCallback` dep arrays and `useThresholdValue` args; memoizing them would be a behaviour
9
+ * change, not an optimisation). The hook therefore contains no internal React hooks.
10
+ *
11
+ * @internal
12
+ */
13
+ export function useAlertSelectedValues({ editedAutomation, supportedMeasures, supportedAttributes, notificationChannels, }) {
14
+ const selectedMeasure = getAlertMeasure(supportedMeasures, editedAutomation?.alert);
15
+ const selectedComparisonOperator = getAlertCompareOperator(editedAutomation?.alert);
16
+ const selectedRelativeOperator = getAlertRelativeOperator(editedAutomation?.alert);
17
+ const selectedAiOperator = getAlertAiOperator(editedAutomation?.alert);
18
+ const selectedComparator = getAlertComparison(selectedMeasure, editedAutomation?.alert);
19
+ const selectedSensitivity = getAlertSensitivity(editedAutomation?.alert);
20
+ const selectedGranularity = getAlertGranularity(editedAutomation?.alert);
21
+ const [selectedAttribute, selectedValue] = getAlertAttribute(supportedAttributes, editedAutomation);
22
+ const selectedNotificationChannel = notificationChannels.find((channel) => channel.id === editedAutomation?.notificationChannel);
23
+ const allowExternalRecipients = selectedNotificationChannel?.allowedRecipients === "external";
24
+ const allowOnlyLoggedUserRecipients = selectedNotificationChannel?.allowedRecipients === "creator";
25
+ return {
26
+ selectedMeasure,
27
+ selectedComparisonOperator,
28
+ selectedRelativeOperator,
29
+ selectedAiOperator,
30
+ selectedComparator,
31
+ selectedSensitivity,
32
+ selectedGranularity,
33
+ selectedAttribute,
34
+ selectedValue,
35
+ selectedNotificationChannel,
36
+ allowExternalRecipients,
37
+ allowOnlyLoggedUserRecipients,
38
+ };
39
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,g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0BAA0B,EAC1B,gCAAgC,EAChC,uBAAuB,EACvB,yBAAyB,EAC5B,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0lBpB"}
@@ -11,9 +11,9 @@ import { useAutomationAlertParameters } from "../../../shared/automationFilters/
11
11
  import { getAppliedWidgetFilters, getVisibleFiltersByFilters, resolveMvfDimensionalityLocalRefs, } from "../../../shared/automationFilters/utils.js";
12
12
  import { convertCurrentUserToAutomationRecipient, convertCurrentUserToWorkspaceUser, convertExternalRecipientToAutomationRecipient, } from "../../../shared/utils/automationUtils.js";
13
13
  import { createDefaultAlert } from "../utils/convertors.js";
14
- import { getAlertAiOperator, getAlertAttribute, getAlertCompareOperator, getAlertComparison, getAlertGranularity, getAlertMeasure, getAlertRelativeOperator, getAlertSensitivity, } from "../utils/getters.js";
15
14
  import { isAlertValueDefined } from "../utils/guards.js";
16
15
  import { transformAlertByAnomalyDetection, transformAlertByAttribute, transformAlertByComparisonOperator, transformAlertByDestination, transformAlertByGranularity, transformAlertByMetric, transformAlertByRelativeOperator, transformAlertBySensitivity, transformAlertByValue, } from "../utils/transformation.js";
16
+ import { useAlertSelectedValues } from "./useAlertSelectedValues.js";
17
17
  import { useAlertSupportedMetrics } from "./useAlertSupportedMetrics.js";
18
18
  import { useAlertValidation } from "./useAlertValidation.js";
19
19
  import { useThresholdValue } from "./useThresholdValue.js";
@@ -80,17 +80,12 @@ export function useEditAlert({ alertToEdit, notificationChannels, insight, widge
80
80
  //
81
81
  // Selected values
82
82
  //
83
- const selectedMeasure = getAlertMeasure(supportedMeasures, editedAutomation?.alert);
84
- const selectedComparisonOperator = getAlertCompareOperator(editedAutomation?.alert);
85
- const selectedRelativeOperator = getAlertRelativeOperator(editedAutomation?.alert);
86
- const selectedAiOperator = getAlertAiOperator(editedAutomation?.alert);
87
- const selectedComparator = getAlertComparison(selectedMeasure, editedAutomation?.alert);
88
- const selectedSensitivity = getAlertSensitivity(editedAutomation?.alert);
89
- const selectedGranularity = getAlertGranularity(editedAutomation?.alert);
90
- const [selectedAttribute, selectedValue] = getAlertAttribute(supportedAttributes, editedAutomation);
91
- const selectedNotificationChannel = notificationChannels.find((channel) => channel.id === editedAutomation?.notificationChannel);
92
- const allowExternalRecipients = selectedNotificationChannel?.allowedRecipients === "external";
93
- const allowOnlyLoggedUserRecipients = selectedNotificationChannel?.allowedRecipients === "creator";
83
+ const { selectedMeasure, selectedComparisonOperator, selectedRelativeOperator, selectedAiOperator, selectedComparator, selectedSensitivity, selectedGranularity, selectedAttribute, selectedValue, selectedNotificationChannel, allowExternalRecipients, allowOnlyLoggedUserRecipients, } = useAlertSelectedValues({
84
+ editedAutomation,
85
+ supportedMeasures,
86
+ supportedAttributes,
87
+ notificationChannels,
88
+ });
94
89
  const { isValid: isOriginalAutomationValid, invalidityReason } = useAlertValidation(originalAutomation, widget, insight, catalogDateDatasets, undefined);
95
90
  const isParentValid = invalidityReason !== "missingWidget";
96
91
  //
@@ -1,6 +1,6 @@
1
1
  import { type IntlShape } from "react-intl";
2
2
  import { type IExecutionResult } from "@gooddata/sdk-backend-spi";
3
- import { type DateAttributeGranularity, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAttribute, type IAttributeMetadataObject, type IAutomationAlert, type IAutomationMetadataObject, type ICatalogAttribute, type ICatalogDateAttribute, type ICatalogDateDataset, type IFilter, type IMeasure, type ISeparators, type ObjRef } from "@gooddata/sdk-model";
3
+ import { type DateAttributeGranularity, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAttribute, type IAttributeMetadataObject, type IAutomationAlert, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type ICatalogAttribute, type ICatalogDateAttribute, type ICatalogDateDataset, type IFilter, type IMeasure, type ISeparators, type ObjRef } from "@gooddata/sdk-model";
4
4
  import { AI_OPERATOR, AI_OPERATORS } from "@gooddata/sdk-ui-ext";
5
5
  import { type AlertAttribute, type AlertMetric, type AlertMetricComparator } from "../../types.js";
6
6
  export type IMeasureFormatMap = {
@@ -13,7 +13,7 @@ export declare function getMeasureFormat(measure: IMeasure | undefined, measureF
13
13
  /**
14
14
  * @internal
15
15
  */
16
- export declare function getAttributeRelatedFilterInfo(attributes: AlertAttribute[], alert?: IAutomationMetadataObject, attr?: IAttribute): {
16
+ export declare function getAttributeRelatedFilterInfo(attributes: AlertAttribute[], alert?: IAutomationMetadataObject | IAutomationMetadataObjectDefinition, attr?: IAttribute): {
17
17
  attribute: AlertAttribute | undefined;
18
18
  filterDefinition: IFilter | undefined;
19
19
  filterValue: string | null | undefined;
@@ -53,7 +53,7 @@ export declare function getAlertComparison(measure: AlertMetric | undefined, ale
53
53
  /**
54
54
  * @internal
55
55
  */
56
- export declare function getAlertAttribute(attributes: AlertAttribute[], alert?: IAutomationMetadataObject): [AlertAttribute | undefined, string | null | undefined];
56
+ export declare function getAlertAttribute(attributes: AlertAttribute[], alert?: IAutomationMetadataObject | IAutomationMetadataObjectDefinition): [AlertAttribute | undefined, string | null | undefined];
57
57
  /**
58
58
  * @internal
59
59
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,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G;AACH,wBAAgB,2BAA2B,CACvC,iBAAiB,EAAE,iBAAiB,EAAE,EACtC,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,SAAS,EAAE,cAAc;;;;;;;;;;;;;;;;;;;cAa5B;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC5C,SAAS,EAAE,wBAAwB,GAAG,SAAS,EAC/C,iBAAiB,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,EAAE,EACH,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;;;;cAkB3C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,qBAAqB,GAAG,iBAAiB,EACnF,UAAU,EAAE,CAAC,EAAE,EACf,SAAS,EAAE,UAAU,iBAUxB;AAED,wBAAgB,mBAAmB,CAC/B,uBAAuB,EAAE,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAAE,EAC7D,OAAO,EAAE,mBAAmB,2BAW/B;AA8CD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,gBAAgB,GAAG,SAAS,GAAG,iBAAiB,CAsB1G;AAED,wBAAgB,cAAc,CAC1B,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,WAAW,EAAE,EACvB,KAAK,CAAC,EAAE,yBAAyB,EACjC,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAYR;AAED,wBAAgB,WAAW,CACvB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,yBAAyB,EAChC,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAQR"}
1
+ {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM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EAAE,WAAW,GACzB,MAAM,CAYR;AAED,wBAAgB,WAAW,CACvB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,yBAAyB,EAChC,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,CAQR"}
@@ -1 +1 @@
1
- {"version":3,"file":"CreationPanel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/CreationPanel.tsx"],"names":[],"mappings":"AAcA,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,EAC/C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC7C,MAAM,4BAA4B,CAAC;AAIpC,UAAU,mBAAmB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;IAC7E,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;IAC7E,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;IAC1D,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,uCAAuC,CAAC,EAAE,uCAAuC,CAAC;IAClF,iCAAiC,CAAC,EAAE,iCAAiC,CAAC;CACzE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CAgEvD"}
1
+ {"version":3,"file":"CreationPanel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/CreationPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,EAC/C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC7C,MAAM,4BAA4B,CAAC;AAIpC,UAAU,mBAAmB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;IAC7E,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;IAC7E,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;IAC1D,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,uCAAuC,CAAC,EAAE,uCAAuC,CAAC;IAClF,iCAAiC,CAAC,EAAE,iCAAiC,CAAC;CACzE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CA8DvD"}
@@ -7,13 +7,11 @@ import { FormattedMessage } from "react-intl";
7
7
  import { Typography } from "@gooddata/sdk-ui-kit";
8
8
  import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
9
9
  import { selectSupportsRichTextWidgets } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
10
- import { selectEnableKDRichText } from "../../../model/store/config/configSelectors.js";
11
10
  import { selectIsNewDashboard } from "../../../model/store/meta/metaSelectors.js";
12
11
  import { DraggableInsightList } from "./DraggableInsightList/DraggableInsightList.js";
13
12
  export function CreationPanel(props) {
14
13
  const { className, WrapCreatePanelItemWithDragComponent, WrapInsightListItemWithDragComponent } = props;
15
14
  const supportsRichText = useDashboardSelector(selectSupportsRichTextWidgets);
16
- const enableRichText = useDashboardSelector(selectEnableKDRichText);
17
15
  const isNewDashboard = useDashboardSelector(selectIsNewDashboard);
18
16
  const AttributeFilterComponentSet = props.AttributeFilterComponentSet;
19
17
  const InsightWidgetComponentSet = props.InsightWidgetComponentSet;
@@ -26,7 +24,7 @@ export function CreationPanel(props) {
26
24
  AttributeFilterComponentSet.creating,
27
25
  DashboardLayoutWidgetComponentSet.creating,
28
26
  VisualizationSwitcherWidgetComponentSet.creating,
29
- supportsRichText && enableRichText && RichTextWidgetComponentSet.creating,
27
+ supportsRichText && RichTextWidgetComponentSet.creating,
30
28
  ]);
31
29
  return sortBy(items, (item) => item.priority ?? 0).map(({ CreatePanelListItemComponent, type }) => {
32
30
  return (_jsx(CreatePanelListItemComponent, { WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDragComponent }, type));
@@ -38,7 +36,6 @@ export function CreationPanel(props) {
38
36
  VisualizationSwitcherWidgetComponentSet,
39
37
  DashboardLayoutWidgetComponentSet,
40
38
  supportsRichText,
41
- enableRichText,
42
39
  WrapCreatePanelItemWithDragComponent,
43
40
  ]);
44
41
  return (_jsx("div", { className: cx("configuration-panel creation-panel", className), children: _jsxs("div", { className: "configuration-panel-content", children: [
@@ -1 +1 @@
1
- {"version":3,"file":"DraggableInsightListCore.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIvE,wBAAgB,wBAAwB,CAAC,EACrC,oCAAoC,EACpC,GAAG,cAAc,EACpB,EAAE,iBAAiB,2CAwDnB"}
1
+ {"version":3,"file":"DraggableInsightListCore.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIvE,wBAAgB,wBAAwB,CAAC,EACrC,oCAAoC,EACpC,GAAG,cAAc,EACpB,EAAE,iBAAiB,2CAsDnB"}
@@ -5,7 +5,7 @@ import { insightCreated, insightIsLocked, insightSummary, insightTitle, insightU
5
5
  import { InsightListItem } from "@gooddata/sdk-ui-kit";
6
6
  import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
7
7
  import { useDashboardUserInteraction } from "../../../../model/react/useDashboardUserInteraction.js";
8
- import { selectEnableRichTextDescriptions, selectSettings, } from "../../../../model/store/config/configSelectors.js";
8
+ import { selectSettings } from "../../../../model/store/config/configSelectors.js";
9
9
  import { useDashboardComponentsContext } from "../../../dashboardContexts/DashboardComponentsContext.js";
10
10
  import { InsightList } from "../../../insightList/InsightList.js";
11
11
  import { InsightListDivider } from "../../../insightList/InsightListDivider.js";
@@ -13,7 +13,6 @@ import { DraggableInsightListItemWrapper } from "./DraggableInsightListItemWrapp
13
13
  export function DraggableInsightListCore({ WrapInsightListItemWithDragComponent, ...remainingProps }) {
14
14
  const userInteraction = useDashboardUserInteraction();
15
15
  const settings = useDashboardSelector(selectSettings);
16
- const useRichText = useDashboardSelector(selectEnableRichTextDescriptions);
17
16
  const { LoadingComponent } = useDashboardComponentsContext();
18
17
  return (_jsx(InsightList, { ...remainingProps, renderItem: ({ item: insight, width, isFirst, isLast }) => {
19
18
  if (!insight) {
@@ -35,6 +34,6 @@ export function DraggableInsightListCore({ WrapInsightListItemWithDragComponent,
35
34
  };
36
35
  return (_jsx(DraggableInsightListItemWrapper, { WrapInsightListItemWithDragComponent: WrapInsightListItemWithDragComponent, title: insightTitle(insight), description: description, showDescriptionPanel: true, type: visualizationType, width: width, className: classNames, updated: insightUpdated(insight) ?? insightCreated(insight), isLocked: insightIsLocked(insight), insight: insight, onDescriptionPanelOpen: () => {
37
36
  userInteraction.descriptionTooltipOpened(eventPayload);
38
- }, metadataTimeZone: settings?.metadataTimeZone, useRichText: useRichText, useReferences: true, LoadingComponent: LoadingComponent }));
37
+ }, metadataTimeZone: settings?.metadataTimeZone, useReferences: true, LoadingComponent: LoadingComponent }));
39
38
  } }));
40
39
  }
@@ -7,6 +7,6 @@ interface IDraggableInsightListItemWrapperProps extends IInsightListItemProps {
7
7
  insight: IInsight;
8
8
  }
9
9
  export declare function DraggableInsightListItemBody(props: CustomDashboardInsightListItemComponentProps): import("react/jsx-runtime").JSX.Element;
10
- export declare function DraggableInsightListItemWrapper({ WrapInsightListItemWithDragComponent, className, isLocked, title, description, showDescriptionPanel, type, updated, insight, onDescriptionPanelOpen, metadataTimeZone, useRichText, useReferences, LoadingComponent, filters, width }: IDraggableInsightListItemWrapperProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function DraggableInsightListItemWrapper({ WrapInsightListItemWithDragComponent, className, isLocked, title, description, showDescriptionPanel, type, updated, insight, onDescriptionPanelOpen, metadataTimeZone, useReferences, LoadingComponent, filters, width }: IDraggableInsightListItemWrapperProps): import("react/jsx-runtime").JSX.Element;
11
11
  export {};
12
12
  //# sourceMappingURL=DraggableInsightListItemWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DraggableInsightListItemWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,qBAAqB,EAAmB,MAAM,sBAAsB,CAAC;AAGnF,OAAO,EACH,KAAK,4CAA4C,EACjD,KAAK,qCAAqC,EAC7C,MAAM,+BAA+B,CAAC;AAEvC,UAAU,qCAAsC,SAAQ,qBAAqB;IACzE,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,4CAA4C,2CAO/F;AAED,wBAAgB,+BAA+B,CAAC,EAC5C,oCAAoC,EACpC,SAAS,EACT,QAAQ,EACR,KAAK,EACL,WAAW,EACX,oBAAoB,EACpB,IAAI,EACJ,OAAO,EACP,OAAO,EACP,sBAAsB,EACtB,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,OAAO,EACP,KAAK,EACR,EAAE,qCAAqC,2CAwBvC"}
1
+ {"version":3,"file":"DraggableInsightListItemWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,qBAAqB,EAAmB,MAAM,sBAAsB,CAAC;AAGnF,OAAO,EACH,KAAK,4CAA4C,EACjD,KAAK,qCAAqC,EAC7C,MAAM,+BAA+B,CAAC;AAEvC,UAAU,qCAAsC,SAAQ,qBAAqB;IACzE,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,4CAA4C,2CAO/F;AAED,wBAAgB,+BAA+B,CAAC,EAC5C,oCAAoC,EACpC,SAAS,EACT,QAAQ,EACR,KAAK,EACL,WAAW,EACX,oBAAoB,EACpB,IAAI,EACJ,OAAO,EACP,OAAO,EACP,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,OAAO,EACP,KAAK,EACR,EAAE,qCAAqC,2CAuBvC"}
@@ -5,7 +5,7 @@ export function DraggableInsightListItemBody(props) {
5
5
  const { className } = props;
6
6
  return (_jsx("div", { className: className, children: _jsx(InsightListItem, { ...props }) }));
7
7
  }
8
- export function DraggableInsightListItemWrapper({ WrapInsightListItemWithDragComponent, className, isLocked, title, description, showDescriptionPanel, type, updated, insight, onDescriptionPanelOpen, metadataTimeZone, useRichText, useReferences, LoadingComponent, filters, width, }) {
8
+ export function DraggableInsightListItemWrapper({ WrapInsightListItemWithDragComponent, className, isLocked, title, description, showDescriptionPanel, type, updated, insight, onDescriptionPanelOpen, metadataTimeZone, useReferences, LoadingComponent, filters, width, }) {
9
9
  return (_jsx(DraggableInsightListItem, { WrapInsightListItemWithDragComponent: WrapInsightListItemWithDragComponent, ListItemComponent: DraggableInsightListItemBody, listItemComponentProps: {
10
10
  className,
11
11
  isLocked,
@@ -16,7 +16,6 @@ export function DraggableInsightListItemWrapper({ WrapInsightListItemWithDragCom
16
16
  showDescriptionPanel,
17
17
  onDescriptionPanelOpen,
18
18
  metadataTimeZone,
19
- useRichText,
20
19
  useReferences,
21
20
  LoadingComponent,
22
21
  filters,
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingToolbar.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/FloatingToolbar.tsx"],"names":[],"mappings":"AAiLA;;GAEG;AACH,wBAAgB,eAAe,4CAkN9B"}
1
+ {"version":3,"file":"FloatingToolbar.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/FloatingToolbar.tsx"],"names":[],"mappings":"AAiLA;;GAEG;AACH,wBAAgB,eAAe,4CAiN9B"}
@@ -14,7 +14,7 @@ import { useDashboardDispatch, useDashboardSelector } from "../../../model/react
14
14
  import { useWidgetSelection } from "../../../model/react/useWidgetSelection.js";
15
15
  import { dispatchAndWaitFor } from "../../../model/store/_infra/dispatchAndWaitFor.js";
16
16
  import { selectBackendCapabilities, selectSupportsRichTextWidgets, } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
17
- import { selectEnableKDRichText, selectSettings } from "../../../model/store/config/configSelectors.js";
17
+ import { selectSettings } from "../../../model/store/config/configSelectors.js";
18
18
  import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
19
19
  import { selectFilterContextFilters } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
20
20
  import { selectLayout } from "../../../model/store/tabs/layout/layoutSelectors.js";
@@ -107,7 +107,6 @@ export function FloatingToolbar() {
107
107
  const iconColor = theme?.palette?.complementary?.c6 ?? gdColorStateBlank;
108
108
  const primaryColor = theme?.palette?.primary?.base ?? GD_COLOR_HIGHLIGHT;
109
109
  const supportsRichText = useDashboardSelector(selectSupportsRichTextWidgets);
110
- const enableRichText = useDashboardSelector(selectEnableKDRichText);
111
110
  const layout = useDashboardSelector(selectLayout);
112
111
  const settings = useDashboardSelector(selectSettings);
113
112
  const filterContextFilters = useDashboardSelector(selectFilterContextFilters);
@@ -230,7 +229,7 @@ export function FloatingToolbar() {
230
229
  }
231
230
  }, children: [
232
231
  _jsx(IconInsightPicker, { color: isInsightPickerOpen ? primaryColor : iconColor, width: ICON_SIZE, height: ICON_SIZE }), _jsx("span", { className: "gd-floating-toolbar__button-label", children: intl.formatMessage({ id: "addPanel.savedVisualizations" }) })
233
- ] }), _jsx(DraggableToolbarButton, { icon: _jsx(IconInsight, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.newVisualization" }), dragItem: INSIGHT_PLACEHOLDER_DRAG_ITEM, testSelector: "s-floating-toolbar-new-visualization", onMouseDown: closeInsightPicker, onActivate: handleInsightPlaceholderActivate }), _jsx(DraggableToolbarButton, { icon: _jsx(IconColumnContainer, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.dashboardLayout" }), dragItem: DASHBOARD_LAYOUT_DRAG_ITEM, testSelector: "s-floating-toolbar-dashboard-layout", onMouseDown: closeInsightPicker, onActivate: handleDashboardLayoutActivate }), _jsx(DraggableToolbarButton, { icon: _jsx(IconVisualizationSwitcher, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.visualizationSwitcher" }), dragItem: VIS_SWITCHER_DRAG_ITEM, testSelector: "s-floating-toolbar-visualization-switcher", onMouseDown: closeInsightPicker, onActivate: handleVisSwitcherActivate }), supportsRichText && enableRichText ? (_jsx(DraggableToolbarButton, { icon: _jsx(IconRichText, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.richTextWidget" }), dragItem: RICH_TEXT_DRAG_ITEM, testSelector: "s-floating-toolbar-rich-text", onMouseDown: closeInsightPicker, onActivate: handleRichTextActivate })) : null, _jsx(DraggableToolbarButton, { icon: _jsx(IconAttributeFilter, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.dashboardFilter" }), dragItem: ATTRIBUTE_FILTER_DRAG_ITEM, testSelector: "s-floating-toolbar-attribute-filter", onMouseDown: closeInsightPicker, onActivate: handleFilterActivate })
232
+ ] }), _jsx(DraggableToolbarButton, { icon: _jsx(IconInsight, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.newVisualization" }), dragItem: INSIGHT_PLACEHOLDER_DRAG_ITEM, testSelector: "s-floating-toolbar-new-visualization", onMouseDown: closeInsightPicker, onActivate: handleInsightPlaceholderActivate }), _jsx(DraggableToolbarButton, { icon: _jsx(IconColumnContainer, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.dashboardLayout" }), dragItem: DASHBOARD_LAYOUT_DRAG_ITEM, testSelector: "s-floating-toolbar-dashboard-layout", onMouseDown: closeInsightPicker, onActivate: handleDashboardLayoutActivate }), _jsx(DraggableToolbarButton, { icon: _jsx(IconVisualizationSwitcher, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.visualizationSwitcher" }), dragItem: VIS_SWITCHER_DRAG_ITEM, testSelector: "s-floating-toolbar-visualization-switcher", onMouseDown: closeInsightPicker, onActivate: handleVisSwitcherActivate }), supportsRichText ? (_jsx(DraggableToolbarButton, { icon: _jsx(IconRichText, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.richTextWidget" }), dragItem: RICH_TEXT_DRAG_ITEM, testSelector: "s-floating-toolbar-rich-text", onMouseDown: closeInsightPicker, onActivate: handleRichTextActivate })) : null, _jsx(DraggableToolbarButton, { icon: _jsx(IconAttributeFilter, { color: iconColor, width: ICON_SIZE, height: ICON_SIZE }), label: intl.formatMessage({ id: "addPanel.dashboardFilter" }), dragItem: ATTRIBUTE_FILTER_DRAG_ITEM, testSelector: "s-floating-toolbar-attribute-filter", onMouseDown: closeInsightPicker, onActivate: handleFilterActivate })
234
233
  ] })
235
234
  ] }));
236
235
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardParameterPicker.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/parameterFilter/DashboardParameterPicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAe1C;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,8BAA8B,GAAG,YAAY,CAmC1G"}
1
+ {"version":3,"file":"DashboardParameterPicker.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/parameterFilter/DashboardParameterPicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAmB1C;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,8BAA8B,GAAG,YAAY,CAoC1G"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { DashboardParameterModeValues, isIdentifierRef } from "@gooddata/sdk-model";
2
+ import { DashboardParameterModeValues, getNumberParameterDefaultValue, isIdentifierRef, } from "@gooddata/sdk-model";
3
3
  import { ParameterPicker } from "@gooddata/sdk-ui-kit";
4
4
  import { useDashboardDispatch, useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
5
5
  import { selectCatalogParameters, selectCatalogParametersStatus, } from "../../../model/store/catalog/catalogSelectors.js";
@@ -19,7 +19,8 @@ export function DashboardParameterPicker({ onAdd, onCancel }) {
19
19
  const isLoading = status === "loading" || status === "uninitialized";
20
20
  return (_jsx(ParameterPicker, { parameters: parameters, excludedKeys: excludedKeys, isLoading: isLoading, maxListHeight: PICKER_MAX_LIST_HEIGHT, onAdd: (selected) => {
21
21
  for (const { ref, definition } of selected) {
22
- if (!isIdentifierRef(ref)) {
22
+ const workspaceDefault = getNumberParameterDefaultValue(definition);
23
+ if (!isIdentifierRef(ref) || workspaceDefault === undefined) {
23
24
  continue;
24
25
  }
25
26
  dispatch(tabsActions.addParameter({
@@ -28,7 +29,7 @@ export function DashboardParameterPicker({ onAdd, onCancel }) {
28
29
  parameterType: "NUMBER",
29
30
  mode: DashboardParameterModeValues.ACTIVE,
30
31
  },
31
- workspaceDefault: definition.defaultValue,
32
+ workspaceDefault,
32
33
  }));
33
34
  }
34
35
  onAdd?.();
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardLayoutSectionHeaderDescription.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAUvE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,6CAA6C;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,uCAAuC,CAAC,EACpD,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACV,EAAE,6CAA6C,2CAkC/C"}
1
+ {"version":3,"file":"DashboardLayoutSectionHeaderDescription.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAOvE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,6CAA6C;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,uCAAuC,CAAC,EACpD,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACV,EAAE,6CAA6C,2CA6B/C"}
@@ -3,18 +3,17 @@ import cx from "classnames";
3
3
  import { RichText } from "@gooddata/sdk-ui-kit";
4
4
  import { useSectionDescriptionFilters } from "../../../_staging/sharedHooks/useRichTextFilters.js";
5
5
  import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
6
- import { selectEnableRichTextDescriptions, selectSeparators, } from "../../../model/store/config/configSelectors.js";
6
+ import { selectSeparators } from "../../../model/store/config/configSelectors.js";
7
7
  import { selectExecutionTimestamp } from "../../../model/store/ui/uiSelectors.js";
8
8
  export function DashboardLayoutSectionHeaderDescription({ description, exportData, LoadingComponent, onLoadingChanged, onError, }) {
9
- const useRichText = useDashboardSelector(selectEnableRichTextDescriptions);
10
9
  const { loading, filters } = useSectionDescriptionFilters();
11
10
  const separators = useDashboardSelector(selectSeparators);
12
11
  const executionTimestamp = useDashboardSelector(selectExecutionTimestamp);
13
12
  const className = cx("gd-paragraph", "description", "s-fluid-layout-row-description");
14
- return (_jsx("div", { className: className, ...exportData?.description, children: useRichText ? (_jsx(RichText, { className: "gd-layout-row-description-richtext", value: description, renderMode: "view", rawContent: {
13
+ return (_jsx("div", { className: className, ...exportData?.description, children: _jsx(RichText, { className: "gd-layout-row-description-richtext", value: description, renderMode: "view", rawContent: {
15
14
  show: !!exportData?.richText,
16
15
  dataAttributes: exportData?.richText?.markdown,
17
16
  }, execConfig: {
18
17
  timestamp: executionTimestamp,
19
- }, referencesEnabled: true, filters: filters, isFiltersLoading: loading, separators: separators, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError })) : (description) }));
18
+ }, referencesEnabled: true, filters: filters, isFiltersLoading: loading, separators: separators, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError }) }));
20
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeaderEditable.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAoC,MAAM,OAAO,CAAC;AAO5E,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,oEAAoE,CAAC;AA4BxH,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;CACnD;AAED,wBAAgB,qBAAqB,CAAC,EAClC,KAAK,EAAE,QAAa,EACpB,WAAW,EAAE,cAAmB,EAChC,OAAO,EACV,EAAE,2BAA2B,GAAG,YAAY,CAqJ5C"}
1
+ {"version":3,"file":"SectionHeaderEditable.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAoC,MAAM,OAAO,CAAC;AAO5E,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,oEAAoE,CAAC;AAkBxH,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;CACnD;AAED,wBAAgB,qBAAqB,CAAC,EAClC,KAAK,EAAE,QAAa,EACpB,WAAW,EAAE,cAAmB,EAChC,OAAO,EACV,EAAE,2BAA2B,GAAG,YAAY,CA0H5C"}
@@ -8,19 +8,17 @@ import { serializeLayoutSectionPath } from "../../../../_staging/layout/coordina
8
8
  import { useSectionDescriptionFilters } from "../../../../_staging/sharedHooks/useRichTextFilters.js";
9
9
  import { changeNestedLayoutSectionHeader } from "../../../../model/commands/layout.js";
10
10
  import { useDashboardDispatch, useDashboardSelector, } from "../../../../model/react/DashboardStoreProvider.js";
11
- import { selectEnableRichTextDescriptions, selectSeparators, } from "../../../../model/store/config/configSelectors.js";
11
+ import { selectSeparators } from "../../../../model/store/config/configSelectors.js";
12
12
  import { uiActions } from "../../../../model/store/ui/index.js";
13
13
  import { selectExecutionTimestamp } from "../../../../model/store/ui/uiSelectors.js";
14
14
  import { useDashboardComponentsContext } from "../../../dashboardContexts/DashboardComponentsContext.js";
15
15
  import { EditableLabelWithBubble } from "./EditableLabelWithBubble.js";
16
- import { DESCRIPTION_LENGTH_WARNING_LIMIT, MAX_DESCRIPTION_LENGTH, MAX_TITLE_LENGTH, TITLE_LENGTH_WARNING_LIMIT, getDescription, getTitle, } from "./sectionHeaderHelper.js";
16
+ import { MAX_TITLE_LENGTH, TITLE_LENGTH_WARNING_LIMIT, getTitle } from "./sectionHeaderHelper.js";
17
17
  const richTextTooltipAlignPoints = [{ align: "tl bl", offset: { x: 6, y: -4 } }];
18
18
  export function SectionHeaderEditable({ title: rawTitle = "", description: rawDescription = "", section, }) {
19
- const useRichText = useDashboardSelector(selectEnableRichTextDescriptions);
20
19
  const { LoadingComponent } = useDashboardComponentsContext();
21
20
  const { filters, loading } = useSectionDescriptionFilters();
22
21
  const separators = useDashboardSelector(selectSeparators);
23
- const description = useRichText ? rawDescription : getDescription(rawDescription);
24
22
  const title = getTitle(rawTitle);
25
23
  const intl = useIntl();
26
24
  const placeholder = intl.formatMessage({
@@ -39,10 +37,6 @@ export function SectionHeaderEditable({ title: rawTitle = "", description: rawDe
39
37
  changeTitle(title);
40
38
  onEditingEnd();
41
39
  }, [changeTitle, onEditingEnd]);
42
- const onDescriptionSubmit = useCallback((description) => {
43
- changeDescription(description);
44
- onEditingEnd();
45
- }, [changeDescription, onEditingEnd]);
46
40
  const [isRichTextEditing, setIsRichTextEditing] = useState(false);
47
41
  const [richTextValue, setRichTextValue] = useState("");
48
42
  const onDescriptionClick = useCallback(() => {
@@ -60,8 +54,8 @@ export function SectionHeaderEditable({ title: rawTitle = "", description: rawDe
60
54
  setRichTextValue(value);
61
55
  }, []);
62
56
  useEffect(() => {
63
- setRichTextValue(description);
64
- }, [description]);
57
+ setRichTextValue(rawDescription);
58
+ }, [rawDescription]);
65
59
  const serializedSectionIndex = serializeLayoutSectionPath(section.index());
66
60
  const isNestedLayout = section.layout().path() !== undefined;
67
61
  const executionTimestamp = useDashboardSelector(selectExecutionTimestamp);
@@ -69,10 +63,10 @@ export function SectionHeaderEditable({ title: rawTitle = "", description: rawDe
69
63
  _jsx("div", { className: "gd-editable-label-container gd-row-header-title-wrapper", children: _jsx(EditableLabelWithBubble, { className: cx(`gd-title-for-${serializedSectionIndex}`, "s-fluid-layout-row-title-input", "title", {
70
64
  "gd-heading-2": !isNestedLayout,
71
65
  "gd-heading-3": isNestedLayout,
72
- }), maxRows: 10, value: title || "", maxLength: MAX_TITLE_LENGTH, warningLimit: TITLE_LENGTH_WARNING_LIMIT, placeholderMessage: intl.formatMessage({ id: "layout.header.add.title.placeholder" }), alignTo: `.gd-title-for-${serializedSectionIndex}`, onSubmit: onTitleSubmit, onEditingStart: onEditingStart, onCancel: onEditingEnd }) }), _jsx("div", { className: "gd-editable-label-container gd-row-header-description-wrapper", children: useRichText ? (_jsx("div", { className: cx("gd-editable-label-richtext s-fluid-layout-row-description-input", {
66
+ }), maxRows: 10, value: title || "", maxLength: MAX_TITLE_LENGTH, warningLimit: TITLE_LENGTH_WARNING_LIMIT, placeholderMessage: intl.formatMessage({ id: "layout.header.add.title.placeholder" }), alignTo: `.gd-title-for-${serializedSectionIndex}`, onSubmit: onTitleSubmit, onEditingStart: onEditingStart, onCancel: onEditingEnd }) }), _jsx("div", { className: "gd-editable-label-container gd-row-header-description-wrapper", children: _jsx("div", { className: cx("gd-editable-label-richtext s-fluid-layout-row-description-input", {
73
67
  "is-editing": isRichTextEditing,
74
68
  }), onClick: onDescriptionClick, onBlur: onDescriptionBlur, children: _jsx(RichTextWithTooltip, { value: richTextValue, renderMode: isRichTextEditing ? "edit" : "view", onChange: onRichTextChange, editRows: 10, editPlaceholder: placeholder, emptyElement: _jsx("div", { className: "gd-editable-label-richtext-empty", children: placeholder }), showTooltip: isRichTextEditing, tooltipAlignPoints: richTextTooltipAlignPoints, autoResize: true, referencesEnabled: true, filters: filters, isFiltersLoading: loading, separators: separators, LoadingComponent: LoadingComponent, execConfig: {
75
69
  timestamp: executionTimestamp,
76
- } }) })) : (_jsx(EditableLabelWithBubble, { className: `gd-description-for-${serializedSectionIndex} s-fluid-layout-row-description-input description`, alignTo: `.gd-description-for-${serializedSectionIndex}`, maxRows: 15, value: description || "", maxLength: MAX_DESCRIPTION_LENGTH, warningLimit: DESCRIPTION_LENGTH_WARNING_LIMIT, placeholderMessage: placeholder, onSubmit: onDescriptionSubmit, onEditingStart: onEditingStart, onCancel: onEditingEnd })) })
70
+ } }) }) })
77
71
  ] }));
78
72
  }
@@ -1,7 +1,4 @@
1
1
  export declare const MAX_TITLE_LENGTH = 256;
2
- export declare const MAX_DESCRIPTION_LENGTH = 1024;
3
2
  export declare const TITLE_LENGTH_WARNING_LIMIT = 128;
4
- export declare const DESCRIPTION_LENGTH_WARNING_LIMIT = 512;
5
3
  export declare function getTitle(title: string): string;
6
- export declare function getDescription(description: string): string;
7
4
  //# sourceMappingURL=sectionHeaderHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sectionHeaderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM9C;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM1D"}
1
+ {"version":3,"file":"sectionHeaderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM9C"}
@@ -1,17 +1,9 @@
1
- // (C) 2019-2024 GoodData Corporation
1
+ // (C) 2019-2026 GoodData Corporation
2
2
  export const MAX_TITLE_LENGTH = 256;
3
- export const MAX_DESCRIPTION_LENGTH = 1024;
4
3
  export const TITLE_LENGTH_WARNING_LIMIT = 128;
5
- export const DESCRIPTION_LENGTH_WARNING_LIMIT = 512;
6
4
  export function getTitle(title) {
7
5
  if (title && title.length > MAX_TITLE_LENGTH) {
8
6
  return title.substring(0, MAX_TITLE_LENGTH) + "...";
9
7
  }
10
8
  return title;
11
9
  }
12
- export function getDescription(description) {
13
- if (description && description.length > MAX_DESCRIPTION_LENGTH) {
14
- return description.substring(0, MAX_DESCRIPTION_LENGTH) + "...";
15
- }
16
- return description;
17
- }
@@ -1 +1 @@
1
- {"version":3,"file":"InsightList.d.ts","sourceRoot":"","sources":["../../../src/presentation/insightList/InsightList.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,QAAQ,EAShB,MAAM,qBAAqB,CAAC;AAmC7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAKpD,UAAU,gBAAgB;IACtB,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,QAAQ,GAAG,gBAAgB,CAO5E;AAsCD;;GAEG;AACH,wBAAgB,WAAW,CAAC,EACxB,MAAM,EACN,KAAkB,EAClB,eAAe,EACf,UAAU,EACV,WAAW,EACX,QAAQ,EACX,EAAE,iBAAiB,2CA4OnB"}
1
+ {"version":3,"file":"InsightList.d.ts","sourceRoot":"","sources":["../../../src/presentation/insightList/InsightList.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,QAAQ,EAShB,MAAM,qBAAqB,CAAC;AAkC7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAKpD,UAAU,gBAAgB;IACtB,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,QAAQ,GAAG,gBAAgB,CAO5E;AAsCD;;GAEG;AACH,wBAAgB,WAAW,CAAC,EACxB,MAAM,EACN,KAAkB,EAClB,eAAe,EACf,UAAU,EACV,WAAW,EACX,QAAQ,EACX,EAAE,iBAAiB,2CA0OnB"}