@gooddata/sdk-ui-dashboard 11.46.0-alpha.0 → 11.46.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/kdaDialog/components/bars/DateBar.d.ts.map +1 -1
- package/esm/kdaDialog/components/bars/DateBar.js +10 -5
- package/esm/kdaDialog/composition/KeyDriversPanel.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversPanel.js +9 -1
- package/esm/kdaDialog/dialog/KdaDialog.d.ts +1 -1
- package/esm/kdaDialog/dialog/KdaDialog.d.ts.map +1 -1
- package/esm/kdaDialog/dialog/KdaDialog.js +10 -5
- package/esm/kdaDialog/dialog/hooks/useCloseOnEscape.d.ts +2 -0
- package/esm/kdaDialog/dialog/hooks/useCloseOnEscape.d.ts.map +1 -0
- package/esm/kdaDialog/dialog/hooks/useCloseOnEscape.js +12 -0
- package/esm/kdaDialog/internalTypes.d.ts +1 -0
- package/esm/kdaDialog/internalTypes.d.ts.map +1 -1
- package/esm/kdaDialog/providers/KdaState.d.ts.map +1 -1
- package/esm/kdaDialog/providers/KdaState.js +1 -0
- package/esm/kdaDialog/types.d.ts +4 -0
- package/esm/kdaDialog/types.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewParameters.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewParameters.js +5 -2
- package/esm/model/store/config/configSelectors.d.ts +4 -10
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +6 -14
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +5 -9
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSelectedValues.d.ts +8 -9
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSelectedValues.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.d.ts +3 -3
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/getters.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +1 -4
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +2 -3
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.d.ts +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.js +1 -2
- package/esm/presentation/dashboard/DashboardSidebar/FloatingToolbar.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/FloatingToolbar.js +2 -3
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.d.ts.map +1 -1
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.js +4 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +3 -4
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +6 -12
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts +0 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js +1 -9
- package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
- package/esm/presentation/insightList/InsightList.js +4 -5
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts.map +1 -1
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js +2 -2
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js +2 -2
- package/esm/presentation/widget/description/types.d.ts +0 -1
- package/esm/presentation/widget/description/types.d.ts.map +1 -1
- package/esm/presentation/widget/description/useInsightWidgetDescription.d.ts +0 -1
- package/esm/presentation/widget/description/useInsightWidgetDescription.d.ts.map +1 -1
- package/esm/presentation/widget/description/useInsightWidgetDescription.js +0 -4
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +3 -5
- package/esm/sdk-ui-dashboard.d.ts +4 -14
- package/package.json +21 -21
- package/styles/css/kdaDialog.css +6 -2
- package/styles/css/kdaDialog.css.map +1 -1
- package/styles/css/main.css +6 -2
- package/styles/css/main.css.map +1 -1
- 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
|
|
370
|
+
* Returns whether semantic search is enabled.
|
|
379
371
|
*
|
|
380
372
|
* @internal
|
|
381
373
|
*/
|
|
382
|
-
export const
|
|
383
|
-
return state.settings?.
|
|
374
|
+
export const selectEnableSemanticSearch = createSelector(selectConfig, (state) => {
|
|
375
|
+
return state.settings?.enableSemanticSearch ?? false;
|
|
384
376
|
});
|
|
385
377
|
/**
|
|
386
|
-
* Returns whether
|
|
378
|
+
* Returns whether smart search in catalog is enabled.
|
|
387
379
|
*
|
|
388
380
|
* @internal
|
|
389
381
|
*/
|
|
390
|
-
export const
|
|
391
|
-
return state.settings?.
|
|
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,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,
|
|
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,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D"}
|
|
@@ -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
|
|
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 =
|
|
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
|
-
|
|
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) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type IAutomationMetadataObjectDefinition, type INotificationChannelIdentifier, type INotificationChannelMetadataObject } from "@gooddata/sdk-model";
|
|
2
2
|
import { type AlertAttribute, type AlertMetric } from "../../types.js";
|
|
3
|
-
import { getAlertAiOperator, getAlertCompareOperator, getAlertComparison, getAlertGranularity, getAlertMeasure, getAlertRelativeOperator, getAlertSensitivity } from "../utils/getters.js";
|
|
4
3
|
/**
|
|
5
4
|
* Props for {@link useAlertSelectedValues}.
|
|
6
5
|
* @internal
|
|
@@ -22,16 +21,16 @@ export interface IUseAlertSelectedValuesProps {
|
|
|
22
21
|
* @internal
|
|
23
22
|
*/
|
|
24
23
|
export declare function useAlertSelectedValues({ editedAutomation, supportedMeasures, supportedAttributes, notificationChannels }: IUseAlertSelectedValuesProps): {
|
|
25
|
-
selectedMeasure:
|
|
26
|
-
selectedComparisonOperator:
|
|
27
|
-
selectedRelativeOperator:
|
|
28
|
-
selectedAiOperator:
|
|
29
|
-
selectedComparator:
|
|
30
|
-
selectedSensitivity:
|
|
31
|
-
selectedGranularity:
|
|
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;
|
|
32
31
|
selectedAttribute: AlertAttribute | undefined;
|
|
33
32
|
selectedValue: string | null | undefined;
|
|
34
|
-
selectedNotificationChannel:
|
|
33
|
+
selectedNotificationChannel: INotificationChannelIdentifier | undefined;
|
|
35
34
|
allowExternalRecipients: boolean;
|
|
36
35
|
allowOnlyLoggedUserRecipients: boolean;
|
|
37
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlertSelectedValues.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSelectedValues.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
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"}
|
|
@@ -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,EACrB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,QAAQ,EAEb,KAAK,WAAW,EAChB,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,WAAW,EACX,YAAY,EAGf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAKnG,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE1D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,EAAE,gBAAgB,GAAE,iBAAsB,UAavG;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CACzC,UAAU,EAAE,cAAc,EAAE,EAC5B,KAAK,CAAC,EAAE,yBAAyB,
|
|
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,EACrB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,QAAQ,EAEb,KAAK,WAAW,EAChB,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,WAAW,EACX,YAAY,EAGf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAKnG,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE1D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,EAAE,gBAAgB,GAAE,iBAAsB,UAav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F,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;AAiDD;;;;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreationPanel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/CreationPanel.tsx"],"names":[],"mappings":"
|
|
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 &&
|
|
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":"
|
|
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"}
|
package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js
CHANGED
|
@@ -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 {
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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 {
|
|
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
|
|
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;
|
|
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
|
-
|
|
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
|
|
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;
|
|
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 {
|
|
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:
|
|
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 })
|
|
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;
|
|
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 {
|
|
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 {
|
|
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(
|
|
64
|
-
}, [
|
|
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:
|
|
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
|
-
} }) })
|
|
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":"
|
|
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-
|
|
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;
|
|
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"}
|
|
@@ -12,7 +12,7 @@ import { createInsightRequested } from "../../model/events/lab.js";
|
|
|
12
12
|
import { useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
|
|
13
13
|
import { useDashboardEventDispatch } from "../../model/react/useDashboardEventDispatch.js";
|
|
14
14
|
import { selectBackendCapabilities } from "../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
15
|
-
import { selectAllowCreateInsightRequest,
|
|
15
|
+
import { selectAllowCreateInsightRequest, selectEnableCatalogSmartSearchResults, selectEnableVisualizationFilteringByTags, selectObjectAvailabilityConfig, selectSettings, } from "../../model/store/config/configSelectors.js";
|
|
16
16
|
import { selectCanCreateVisualization } from "../../model/store/permissions/permissionsSelectors.js";
|
|
17
17
|
import { selectExecutionTimestamp, selectInsightListLastUpdateRequested, } from "../../model/store/ui/uiSelectors.js";
|
|
18
18
|
import { selectCurrentUser } from "../../model/store/user/userSelectors.js";
|
|
@@ -65,11 +65,10 @@ export function InsightList({ height, width = LIST_WIDTH, searchAutofocus, rende
|
|
|
65
65
|
const canCreateVisualization = useDashboardSelector(selectCanCreateVisualization);
|
|
66
66
|
const allowCreateInsightRequest = useDashboardSelector(selectAllowCreateInsightRequest);
|
|
67
67
|
const settings = useDashboardSelector(selectSettings);
|
|
68
|
-
const useRichText = useDashboardSelector(selectEnableRichTextDescriptions);
|
|
69
68
|
const executionTimestamp = useDashboardSelector(selectExecutionTimestamp);
|
|
70
69
|
const objectAvailability = useDashboardSelector(selectObjectAvailabilityConfig);
|
|
71
70
|
const isFilteringByTagsEnabled = useDashboardSelector(selectEnableVisualizationFilteringByTags);
|
|
72
|
-
const
|
|
71
|
+
const enableCatalogSmartSearchResults = useDashboardSelector(selectEnableCatalogSmartSearchResults);
|
|
73
72
|
const { LoadingComponent } = useDashboardComponentsContext();
|
|
74
73
|
// Extract tag identifiers from object availability config only when the feature flag is enabled
|
|
75
74
|
const tags = isFilteringByTagsEnabled ? objectAvailability?.includeObjectsWithTags : undefined;
|
|
@@ -85,7 +84,7 @@ export function InsightList({ height, width = LIST_WIDTH, searchAutofocus, rende
|
|
|
85
84
|
const matcher = useMemo(() => customMatcher(["title", "summary", "identifier"]), []);
|
|
86
85
|
const { search: hybridSearch, onSearchQueryChange: setHybridSearchQuery } = useHybridSearch({
|
|
87
86
|
objectTypes: SEMANTIC_SEARCH_OBJECT_TYPES,
|
|
88
|
-
allowSematicSearch:
|
|
87
|
+
allowSematicSearch: enableCatalogSmartSearchResults,
|
|
89
88
|
itemBuilder: insightItemBuilder,
|
|
90
89
|
includeTags: tags,
|
|
91
90
|
excludeTags,
|
|
@@ -160,7 +159,7 @@ export function InsightList({ height, width = LIST_WIDTH, searchAutofocus, rende
|
|
|
160
159
|
const insightListSourceItem = getInsightListSourceItem(insight);
|
|
161
160
|
const isSelected = areObjRefsEqual(insight.insight.ref, selectedRef);
|
|
162
161
|
return (_jsx(InsightListItem, { title: title, description: description, showDescriptionPanel: true, type: insightListSourceItem.insightType, width: width, isSelected: isSelected, updated: insightUpdated(insightListSourceItem.insight) ??
|
|
163
|
-
insightCreated(insightListSourceItem.insight), isLocked: insightIsLocked(insightListSourceItem.insight), onClick: () => onSelect?.(insight), metadataTimeZone: settings?.metadataTimeZone,
|
|
162
|
+
insightCreated(insightListSourceItem.insight), isLocked: insightIsLocked(insightListSourceItem.insight), onClick: () => onSelect?.(insight), metadataTimeZone: settings?.metadataTimeZone, useReferences: true, richTextExecConfig: {
|
|
164
163
|
timestamp: executionTimestamp,
|
|
165
164
|
}, LoadingComponent: LoadingComponent }));
|
|
166
165
|
}), renderNoData: ({ hasNoMatchingData }) => (_jsx(InsightListNoData, { isUserInsights: selectedTabId === messages.tabsMy.id, hasNoMatchingData: hasNoMatchingData, showNoDataCreateButton: showNoDataCreateButton, onCreateButtonClick: createInsightRequestedEvent })), loadNextPage: loadNextPage, hasNextPage: hasNextPage || isRelatedLoading, skeletonItemsCount: loadingItemsCount, shouldLoadNextPage: shouldLoadNextPage, isNextPageLoading: isNextPageLoading, SkeletonItem: () => (_jsx(UiSkeleton, { itemWidth: ["100%"], direction: "row", itemPadding: 15, itemHeight: 30, itemsCount: 1, itemsGap: 0 })) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportModeInsightWidgetDescription.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/ExportModeInsightWidgetDescription.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,YAAY,CAAC;AAGxE;;;;GAIG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,qCAAqC,
|
|
1
|
+
{"version":3,"file":"ExportModeInsightWidgetDescription.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/ExportModeInsightWidgetDescription.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,YAAY,CAAC;AAGxE;;;;GAIG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,qCAAqC,kDA0B9F"}
|
|
@@ -14,7 +14,7 @@ import { useInsightWidgetDescription } from "./useInsightWidgetDescription.js";
|
|
|
14
14
|
*/
|
|
15
15
|
export function ExportModeInsightWidgetDescription(props) {
|
|
16
16
|
const { exportData, widget } = props;
|
|
17
|
-
const { isVisible, description
|
|
17
|
+
const { isVisible, description } = useInsightWidgetDescription(props);
|
|
18
18
|
const { filters } = useRichTextWidgetFilters(widget);
|
|
19
19
|
const separators = useDashboardSelector(selectSeparators);
|
|
20
20
|
const executionTimestamp = useDashboardSelector(selectExecutionTimestamp);
|
|
@@ -22,7 +22,7 @@ export function ExportModeInsightWidgetDescription(props) {
|
|
|
22
22
|
if (!isVisible) {
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("div", { style: { display: "none" }, ...exportData, children: _jsx(DescriptionPanelContent, { description: description,
|
|
25
|
+
return (_jsx("div", { style: { display: "none" }, ...exportData, children: _jsx(DescriptionPanelContent, { description: description, useReferences: true, filters: filters, separators: separators, LoadingComponent: LoadingComponent, execConfig: {
|
|
26
26
|
timestamp: executionTimestamp,
|
|
27
27
|
} }) }));
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightWidgetDescriptionTrigger.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/InsightWidgetDescriptionTrigger.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,YAAY,CAAC;AAGxE,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,qCAAqC,
|
|
1
|
+
{"version":3,"file":"InsightWidgetDescriptionTrigger.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/description/InsightWidgetDescriptionTrigger.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,YAAY,CAAC;AAGxE,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,qCAAqC,kDAiC3F"}
|