@gooddata/sdk-ui-dashboard 11.68.0-alpha.6 → 11.68.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +238 -176
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/dashboard/dashboardLayout.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardLayout.js +3 -2
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.d.ts.map +1 -1
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.js +2 -2
- package/esm/kdaDialog/composition/hooks/usePeriodChangeHandler.js +11 -9
- package/esm/kdaDialog/types.d.ts +5 -0
- package/esm/kdaDialog/types.d.ts.map +1 -1
- package/esm/kdaDialog/utils.d.ts.map +1 -1
- package/esm/kdaDialog/utils.js +4 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +4 -4
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadInaccessibleDashboards.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadInaccessibleDashboards.js +3 -3
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +2 -3
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.js +2 -2
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +4 -3
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +7 -6
- package/esm/model/queryServices/queryConnectingAttributes.js +2 -2
- package/esm/model/queryServices/queryInsightDateDatasets.d.ts.map +1 -1
- package/esm/model/queryServices/queryInsightDateDatasets.js +4 -3
- package/esm/model/store/_infra/queryProcessing.d.ts.map +1 -1
- package/esm/model/store/_infra/queryProcessing.js +3 -2
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +5 -5
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +3 -3
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +6 -6
- package/esm/model/types/layoutTypes.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.js +4 -5
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.js +3 -4
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +14 -14
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.js +10 -4
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js +2 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.js +3 -3
- package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +3 -2
- package/esm/presentation/dashboard/components/useDrillValidationMessages.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/useDrillValidationMessages.js +5 -5
- package/esm/presentation/dashboard/defaultDashboardThemeModifier.d.ts.map +1 -1
- package/esm/presentation/dashboard/defaultDashboardThemeModifier.js +2 -3
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +3 -2
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +3 -2
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.d.ts.map +1 -1
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.js +2 -2
- package/esm/presentation/drill/utils/drillDownUtils.js +3 -3
- package/esm/presentation/insightEditor/filterContext/attributeFilters.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/attributeFilters.js +2 -2
- package/esm/presentation/insightEditor/filterContext/insightFilterContext.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/insightFilterContext.js +2 -2
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +4 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +4 -0
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getTitleWithBreadcrumbs.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getTitleWithBreadcrumbs.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +2 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.js +2 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +4 -4
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.js +2 -2
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +2 -2
- package/esm/sdk-ui-dashboard.d.ts +5 -0
- package/package.json +24 -23
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
|
-
import { compact } from "lodash-es";
|
|
4
3
|
import { UnexpectedError } from "@gooddata/sdk-backend-spi";
|
|
5
4
|
import { areObjRefsEqual, getHierarchyAttributes, getHierarchyRef, isAttributeHierarchyReference, isCatalogAttribute, isDrillFromAttribute, isDrillFromMeasure, isIdentifierRef, isLocalIdRef, isUriRef, localIdRef, objRefToString, } from "@gooddata/sdk-model";
|
|
6
5
|
import { HeaderPredicates, } from "@gooddata/sdk-ui";
|
|
7
6
|
import { isInsightKeyDriverAnalysisEnabled } from "@gooddata/sdk-ui-ext";
|
|
7
|
+
import { _compact } from "@gooddata/util";
|
|
8
8
|
import { existBlacklistHierarchyPredicate } from "../../utils/attributeHierarchyUtils.js";
|
|
9
9
|
import { createMemoizedSelector } from "../_infra/selectors.js";
|
|
10
10
|
import { selectAccessibleDashboardsLoaded, selectAccessibleDashboardsMap, } from "../accessibleDashboards/accessibleDashboardsSelectors.js";
|
|
@@ -31,7 +31,7 @@ function drillDefinitionToPredicates(drill) {
|
|
|
31
31
|
throw new UnexpectedError("Unknown drill origin!");
|
|
32
32
|
}
|
|
33
33
|
// add drillable items for all three types of objRefs that the origin measure can be
|
|
34
|
-
return
|
|
34
|
+
return _compact([
|
|
35
35
|
isLocalIdRef(origin) && HeaderPredicates.localIdentifierMatch(origin.localIdentifier),
|
|
36
36
|
isIdentifierRef(origin) && HeaderPredicates.identifierMatch(origin.identifier),
|
|
37
37
|
isUriRef(origin) && HeaderPredicates.uriMatch(origin.uri),
|
|
@@ -103,7 +103,7 @@ function findDescendantForAttribute(hierarchy, attributeRef, ignoredDrillDownHie
|
|
|
103
103
|
}
|
|
104
104
|
function getDescendantsForDrillAttribute(drill, allCatalogAttributeHierarchies, ignoredDrillDownHierarchies, allCatalogAttributesMap, supportsAttributeHierarchies) {
|
|
105
105
|
const attributeRef = drill.attribute.attributeHeader.formOf.ref;
|
|
106
|
-
return
|
|
106
|
+
return _compact(allCatalogAttributeHierarchies.map((hierarchy) => findDescendantForAttribute(hierarchy, attributeRef, ignoredDrillDownHierarchies, allCatalogAttributesMap, supportsAttributeHierarchies)));
|
|
107
107
|
}
|
|
108
108
|
function getDrillDownDefinitionsWithPredicates(availableDrillAttributes, attributesWithHierarchyDescendants, allCatalogAttributesMap, allCatalogAttributeHierarchies, ignoredDrillDownHierarchies, supportsAttributeHierarchies) {
|
|
109
109
|
// generate targets on the fly if ignored hierarchies are present
|
|
@@ -265,7 +265,7 @@ const selectCrossFilteringByWidgetRef = createMemoizedSelector((ref) => createSe
|
|
|
265
265
|
}
|
|
266
266
|
// construct predicates for all available attributes and measures
|
|
267
267
|
const attributePredicates = availableDrillAttributesWithoutDates.map((drillAttribute) => HeaderPredicates.localIdentifierMatch(drillAttribute.attribute.attributeHeader.localIdentifier));
|
|
268
|
-
const measurePredicates =
|
|
268
|
+
const measurePredicates = _compact(availableDrillTargets?.availableDrillTargets?.measures?.map((drillMeasure) => HeaderPredicates.localIdentifierMatch(drillMeasure.measure.measureHeaderItem.localIdentifier)));
|
|
269
269
|
return {
|
|
270
270
|
drillDefinition: {
|
|
271
271
|
type: "crossFiltering",
|
|
@@ -302,7 +302,7 @@ const selectKdaByWidgetRef = createMemoizedSelector((ref) => createSelector(sele
|
|
|
302
302
|
return undefined;
|
|
303
303
|
}
|
|
304
304
|
// construct predicates for all available attributes and measures
|
|
305
|
-
const measurePredicates =
|
|
305
|
+
const measurePredicates = _compact(availableDrillTargets?.availableDrillTargets?.measures?.map((drillMeasure) => {
|
|
306
306
|
const isMetricDisabled = getMetricDisabled(widgetInsight, drillMeasure.measure.measureHeaderItem.localIdentifier);
|
|
307
307
|
if (isMetricDisabled) {
|
|
308
308
|
return undefined;
|
|
@@ -471,7 +471,7 @@ export const selectConfiguredAndImplicitDrillsByWidgetRef = createMemoizedSelect
|
|
|
471
471
|
// disable drilling until all necessary items are loaded (catalog, dash list, ...)
|
|
472
472
|
const drillActive = catalogIsLoaded && accessibleDashboardsLoaded;
|
|
473
473
|
return drillActive
|
|
474
|
-
?
|
|
474
|
+
? _compact([
|
|
475
475
|
...configuredDrills,
|
|
476
476
|
...implicitDrillDownDrills,
|
|
477
477
|
...(isDrillToUrlDisabled ? [] : implicitDrillToUrlDrills),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/layoutTypes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layoutTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/layoutTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAIzB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,iBAAkB,SAA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uBAAuB,CAAC,GAC5F,uBAAuB,CAAC;AAE9B;;;;;;;;;GASG;AACH,MAAM,MAAM,+BAA+B,GAAG,qBAAqB,GAAG,uBAAuB,CAAC;AAE9F;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,CAAC,uBAAuB,CAAC,CAAC;AAE9F;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
3
2
|
import { idRef, isDashboardLayout, isWidget, } from "@gooddata/sdk-model";
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
5
4
|
/**
|
|
6
5
|
* Creates a new custom widget.
|
|
7
6
|
*
|
|
@@ -13,7 +12,7 @@ import { _isEmpty } from "@gooddata/util";
|
|
|
13
12
|
* @public
|
|
14
13
|
*/
|
|
15
14
|
export function newCustomWidget(identifier, customType, extras) {
|
|
16
|
-
const extrasCopy = extras ?
|
|
15
|
+
const extrasCopy = extras ? _cloneDeep(extras) : {};
|
|
17
16
|
return {
|
|
18
17
|
type: "customWidget",
|
|
19
18
|
customType,
|
|
@@ -90,7 +89,7 @@ export function newDashboardItem(widget, sizeOrColSize) {
|
|
|
90
89
|
return {
|
|
91
90
|
type: "IDashboardLayoutItem",
|
|
92
91
|
size,
|
|
93
|
-
widget:
|
|
92
|
+
widget: _cloneDeep(widget),
|
|
94
93
|
};
|
|
95
94
|
}
|
|
96
95
|
function getOrCreateSectionHeader(titleOrHeader) {
|
|
@@ -118,7 +117,7 @@ function getOrCreateSectionHeader(titleOrHeader) {
|
|
|
118
117
|
*/
|
|
119
118
|
export function newDashboardSection(titleOrHeader, ...items) {
|
|
120
119
|
const header = getOrCreateSectionHeader(titleOrHeader);
|
|
121
|
-
const itemsClone =
|
|
120
|
+
const itemsClone = _cloneDeep(items);
|
|
122
121
|
return {
|
|
123
122
|
type: "IDashboardLayoutSection",
|
|
124
123
|
items: itemsClone,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluidLayoutCustomizer.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/fluidLayoutCustomizer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fluidLayoutCustomizer.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/fluidLayoutCustomizer.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAE/B,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAY7D,qBAAa,qBAAsB,YAAW,sBAAsB;IAK5D,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,eAAe;IALpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IAEpD,YACqB,MAAM,EAAE,6BAA6B,EACrC,eAAe,EAAE,0BAA0B,EAC5D;IAEG,OAAO,CACV,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,oBAAoB,CAAC,aAAa,CAAC,GAC1C,sBAAsB,CAExB;IAEM,aAAa,CAChB,QAAQ,EAAE,eAAe,EACzB,IAAI,EAAE,oBAAoB,CAAC,aAAa,CAAC,GAC1C,sBAAsB,CAgBxB;IAEM,UAAU,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,uBAAuB,CAAC,aAAa,CAAC,GAChD,sBAAsB,CAExB;IAEM,gBAAgB,CACnB,WAAW,EAAE,kBAAkB,EAC/B,OAAO,EAAE,uBAAuB,CAAC,aAAa,CAAC,GAChD,sBAAsB,CA0BxB;IAEM,oBAAoB,WACf,gBAAgB,CAAC,uBAAuB,CAAC,KAClD,gBAAgB,CAAC,uBAAuB,CAAC,CAqD1C;CACL"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
3
2
|
import { objRefToString, } from "@gooddata/sdk-model";
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
5
4
|
import { DashboardLayoutBuilder } from "../../_staging/dashboard/flexibleLayout/builder/layout.js";
|
|
6
5
|
export class FluidLayoutCustomizer {
|
|
7
6
|
logger;
|
|
@@ -22,7 +21,7 @@ export class FluidLayoutCustomizer {
|
|
|
22
21
|
}
|
|
23
22
|
this.addItemOps.push({
|
|
24
23
|
itemPath,
|
|
25
|
-
item:
|
|
24
|
+
item: _cloneDeep(item),
|
|
26
25
|
});
|
|
27
26
|
return this;
|
|
28
27
|
}
|
|
@@ -41,7 +40,7 @@ export class FluidLayoutCustomizer {
|
|
|
41
40
|
}
|
|
42
41
|
this.addSectionOps.push({
|
|
43
42
|
sectionPath,
|
|
44
|
-
section:
|
|
43
|
+
section: _cloneDeep(section),
|
|
45
44
|
});
|
|
46
45
|
return this;
|
|
47
46
|
}
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledEmailExportSettings.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useScheduledEmailExportSettings.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAEhF,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EAExC,KAAK,4CAA4C,EACjD,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,OAAO,EAIf,MAAM,qBAAqB,CAAC;AAc7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,WAAW,qCAAqC;IAClD,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,CAAC,CAAC,CAAC;IACnF,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yBAAyB,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAC3D,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,SAAS,CAAC;IAChF,sBAAsB,EAAE,OAAO,EAAE,CAAC;IAClC,iCAAiC,EAAE,OAAO,EAAE,CAAC;IAC7C,kBAAkB,CAAC,EAAE,4CAA4C,CAAC,UAAU,CAAC,CAAC;IAC9E;;;OAGG;IACH,gBAAgB,CAAC,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAC1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EACtB,iCAAiC,EACjC,kBAAkB,EAClB,gBAAgB,GACnB,EAAE,qCAAqC,GAAG,6BAA6B,CAySvE"}
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useRef } from "react";
|
|
3
|
-
import { invariant } from "ts-invariant";
|
|
4
3
|
import { isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, } from "@gooddata/sdk-model";
|
|
5
4
|
import { getAutomationExportParametersByTab, setExportParametersByTab, } from "../../../../_staging/automation/index.js";
|
|
6
5
|
import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
|
|
@@ -34,7 +33,7 @@ export function useScheduledEmailExportSettings({ editedAutomation, setEditedAut
|
|
|
34
33
|
latestParametersWireRef.current = wire;
|
|
35
34
|
setEditedAutomation((automation) => setExportParametersByTab(automation, wire));
|
|
36
35
|
}, [setEditedAutomation]);
|
|
37
|
-
// Re-derived locally (not passed as a prop) so that `
|
|
36
|
+
// Re-derived locally (not passed as a prop) so that the `isWidget` check below narrows
|
|
38
37
|
// `widget`/`insight` via TS's aliased-condition control-flow analysis — this requires the boolean
|
|
39
38
|
// to be declared from those exact variables in this same scope, same as in the parent.
|
|
40
39
|
const isWidget = !!widget && !!insight;
|
|
@@ -67,7 +66,6 @@ export function useScheduledEmailExportSettings({ editedAutomation, setEditedAut
|
|
|
67
66
|
exportTimezoneId,
|
|
68
67
|
]);
|
|
69
68
|
const onWidgetAttachmentsChange = useCallback((formats) => {
|
|
70
|
-
invariant(isWidget, "Widget or insight is missing in scheduling dialog context.");
|
|
71
69
|
setEditedAutomation((s) => {
|
|
72
70
|
const currentExportDefinitions = s.exportDefinitions || [];
|
|
73
71
|
const currentWidgetExportDefinitions = currentExportDefinitions.filter((exportDefinition) => isExportDefinitionVisualizationObjectRequestPayload(exportDefinition.requestPayload));
|
|
@@ -75,17 +73,19 @@ export function useScheduledEmailExportSettings({ editedAutomation, setEditedAut
|
|
|
75
73
|
const formatsToKeep = currentFormats.filter((format) => formats.includes(format));
|
|
76
74
|
const formatsToAdd = formats.filter((format) => !currentFormats.includes(format));
|
|
77
75
|
const keptExportDefinitions = currentWidgetExportDefinitions.filter((exportDefinition) => formatsToKeep.includes(exportDefinition.requestPayload.format));
|
|
78
|
-
const newExportDefinitions =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
const newExportDefinitions = isWidget
|
|
77
|
+
? formatsToAdd.map((format) => newWidgetExportDefinitionMetadataObjectDefinition({
|
|
78
|
+
insight,
|
|
79
|
+
widget,
|
|
80
|
+
dashboardId: dashboardId,
|
|
81
|
+
format,
|
|
82
|
+
widgetFilters: effectiveWidgetFilters,
|
|
83
|
+
widgetFiltersWithInsight: effectiveWidgetFiltersWithInsight,
|
|
84
|
+
dashboardFilters: effectiveDashboardFilters,
|
|
85
|
+
defaultPdfPageSize,
|
|
86
|
+
timezoneId: exportTimezoneId,
|
|
87
|
+
}))
|
|
88
|
+
: [];
|
|
89
89
|
const updatedExportDefinitions = [...keptExportDefinitions, ...newExportDefinitions];
|
|
90
90
|
return withRebuiltExportDefinitions(s, updatedExportDefinitions, latestParametersWireRef.current);
|
|
91
91
|
});
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface IUseScheduledEmailFormValidityProps {
|
|
|
11
11
|
isTitleValid: boolean;
|
|
12
12
|
isSubjectValid: boolean;
|
|
13
13
|
isOnMessageValid: boolean;
|
|
14
|
+
isWidgetInsightUnavailable: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare function useScheduledEmailFormValidity(props: IUseScheduledEmailFormValidityProps): IScheduledExportDialogValidity;
|
|
16
17
|
//# sourceMappingURL=useScheduledEmailFormValidity.d.ts.map
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledEmailFormValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAI1C,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"useScheduledEmailFormValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAI1C,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAOjE,MAAM,WAAW,mCAAmC;IAChD,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,kBAAkB,EAAE,mCAAmC,CAAC;IACxD,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,wBAAwB,EAAE,MAAM,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,0BAA0B,EAAE,OAAO,CAAC;CACvC;AAED,wBAAgB,6BAA6B,CACzC,KAAK,EAAE,mCAAmC,GAC3C,8BAA8B,CAyEhC"}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { useIntl } from "react-intl";
|
|
2
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
3
3
|
import { isAutomationExternalUserRecipient, isAutomationUnknownUserRecipient, isAutomationUserRecipient, } from "@gooddata/sdk-model";
|
|
4
4
|
import { areAutomationsEqual } from "../../shared/utils/automationUtils.js";
|
|
5
5
|
import { useScheduleValidation } from "../hooks/useScheduleValidation.js";
|
|
6
6
|
import { isEmail } from "../utils/validate.js";
|
|
7
|
+
const messages = defineMessages({
|
|
8
|
+
widgetError: { id: "dialogs.schedule.email.widgetError" },
|
|
9
|
+
visualizationUnavailable: { id: "dialogs.schedule.email.visualizationUnavailable" },
|
|
10
|
+
});
|
|
7
11
|
export function useScheduledEmailFormValidity(props) {
|
|
8
|
-
const { editedAutomation, originalAutomation, scheduledExportToEdit, notificationChannels, defaultRecipient, maxAutomationsRecipients, isCronValid, isTitleValid, isSubjectValid, isOnMessageValid, } = props;
|
|
12
|
+
const { editedAutomation, originalAutomation, scheduledExportToEdit, notificationChannels, defaultRecipient, maxAutomationsRecipients, isCronValid, isTitleValid, isSubjectValid, isOnMessageValid, isWidgetInsightUnavailable, } = props;
|
|
9
13
|
const intl = useIntl();
|
|
10
14
|
const selectedNotificationChannel = notificationChannels.find((channel) => channel.id === editedAutomation.notificationChannel);
|
|
11
15
|
const allowExternalRecipients = selectedNotificationChannel?.allowedRecipients === "external";
|
|
12
16
|
const allowOnlyLoggedUserRecipients = selectedNotificationChannel?.allowedRecipients === "creator";
|
|
13
17
|
const { isValid: isParentValid } = useScheduleValidation(originalAutomation);
|
|
14
18
|
const validationErrorMessage = isParentValid
|
|
15
|
-
?
|
|
16
|
-
|
|
19
|
+
? isWidgetInsightUnavailable
|
|
20
|
+
? intl.formatMessage(messages.visualizationUnavailable)
|
|
21
|
+
: undefined
|
|
22
|
+
: intl.formatMessage(messages.widgetError);
|
|
17
23
|
const hasAttachments = !!editedAutomation.exportDefinitions?.length;
|
|
18
24
|
const hasRecipients = (editedAutomation.recipients?.length ?? 0) > 0;
|
|
19
25
|
const hasValidExternalRecipients = allowExternalRecipients
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledExportDialogValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAGjE;;;;;;;;;GASG;AACH,wBAAgB,gCAAgC,IAAI,8BAA8B,
|
|
1
|
+
{"version":3,"file":"useScheduledExportDialogValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAGjE;;;;;;;;;GASG;AACH,wBAAgB,gCAAgC,IAAI,8BAA8B,CA0BjF"}
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js
CHANGED
|
@@ -16,7 +16,7 @@ import { useScheduledEmailFormValidity } from "./useScheduledEmailFormValidity.j
|
|
|
16
16
|
*/
|
|
17
17
|
export function useScheduledExportDialogValidity() {
|
|
18
18
|
const { maxAutomationsRecipients } = useAutomationsContext();
|
|
19
|
-
const { scheduledExportToEdit, notificationChannels } = useScheduledEmailDialogContext();
|
|
19
|
+
const { scheduledExportToEdit, notificationChannels, widget, insight } = useScheduledEmailDialogContext();
|
|
20
20
|
const { editedAutomation, originalAutomation, isCronValid, isTitleValid, isSubjectValid, isOnMessageValid, } = useScheduledExportDraft();
|
|
21
21
|
const { defaultRecipient } = useScheduledExportData();
|
|
22
22
|
return useScheduledEmailFormValidity({
|
|
@@ -30,5 +30,6 @@ export function useScheduledExportDialogValidity() {
|
|
|
30
30
|
isTitleValid,
|
|
31
31
|
isSubjectValid,
|
|
32
32
|
isOnMessageValid,
|
|
33
|
+
isWidgetInsightUnavailable: !!widget && !insight,
|
|
33
34
|
});
|
|
34
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutomationVisibleFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAutomationVisibleFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAW5F,eAAO,MAAM,2BAA2B,sBAClB,iBAAiB,EAAE,GAAG,SAAS,KAClD,wBAAwB,EAY1B,CAAC;AAEF,eAAO,MAAM,gCAAgC,sBACvB,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,SAAS,KAClE,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAc3C,CAAC"}
|
package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
4
4
|
import { useFiltersByTabNamings, useFiltersNamings } from "../../hooks/useFiltersNamings.js";
|
|
5
5
|
// Module-level, not inline `= []` / `= {}` defaults: a default parameter is evaluated per call, so an
|
|
6
6
|
// inline default hands a fresh reference to the namings memos on every render of a caller that passes
|
|
@@ -10,7 +10,7 @@ const EMPTY_FILTERS_BY_TAB = {};
|
|
|
10
10
|
export const useAutomationVisibleFilters = (availableFilters = EMPTY_FILTERS) => {
|
|
11
11
|
const filterNamings = useFiltersNamings(availableFilters);
|
|
12
12
|
return useMemo(() => {
|
|
13
|
-
return
|
|
13
|
+
return _compact(filterNamings).map((filter) => {
|
|
14
14
|
return {
|
|
15
15
|
title: filter.title,
|
|
16
16
|
localIdentifier: filter.id,
|
|
@@ -24,7 +24,7 @@ export const useAutomationVisibleFiltersByTab = (availableFilters = EMPTY_FILTER
|
|
|
24
24
|
return useMemo(() => {
|
|
25
25
|
const result = {};
|
|
26
26
|
return Object.entries(filterNamings).reduce((acc, [tabId, namings]) => {
|
|
27
|
-
acc[tabId] =
|
|
27
|
+
acc[tabId] = _compact(namings).map((naming) => ({
|
|
28
28
|
title: naming.title,
|
|
29
29
|
localIdentifier: naming.id,
|
|
30
30
|
isAllTimeDateFilter: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversions.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/filters/conversions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversions.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/filters/conversions.ts"],"names":[],"mappings":"AAGA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,OAAO,EACZ,KAAK,QAAQ,EAqChB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEtF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA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9B,OAAO,EAAE,CAiDX;AAyBD,8GAA8G;AAC9G,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAW9D;AAED,mEAAmE;AACnE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAWxE;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CA0BhE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { NotSupported } from "@gooddata/sdk-backend-spi";
|
|
4
3
|
import { attributeLocalId, dashboardFilterLocalIdentifier, filterAttributeElements, filterContextItemsToDashboardFiltersByWidget, filterLocalIdentifier, filterObjRef, hasMeasureValueFilterConditions, insightAttributes, isAbsoluteDateFilter, isAllDashboardMeasureValueFilter, isAllTimeDateFilter, isAllValuesAttributeFilter, isAllValuesDashboardAttributeFilter, isArbitraryAttributeFilter, isAttributeFilterWithSelection, isDashboardDateFilter, isDashboardMeasureValueFilter, isDateFilter, isDateFilterGranularity, isInsightWidget, isLocalIdRef, isMatchAttributeFilter, isMeasureValueFilter, isNegativeAttributeFilter, isNoopAllTimeDashboardDateFilter, isObjRef, isRankingFilter, isRelativeBoundedDateFilter, isRelativeDateFilter, measureValueFilterConditions, measureValueFilterMeasure, mergeFilters, newAbsoluteDashboardDateFilter, newAllTimeDashboardDateFilter, newRelativeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _compact } from "@gooddata/util";
|
|
5
5
|
import { removeIgnoredWidgetFilters } from "../../../../model/utils/widgetFilters.js";
|
|
6
6
|
function findVisibleFilter(localIdentifier, visibleFilters) {
|
|
7
7
|
return (visibleFilters ?? []).find((visibleFilter) => visibleFilter.localIdentifier === localIdentifier);
|
|
@@ -32,7 +32,7 @@ export const getVisibleFiltersByFilters = (selectedFilters, visibleFiltersMetada
|
|
|
32
32
|
}
|
|
33
33
|
return targetFilter;
|
|
34
34
|
});
|
|
35
|
-
return
|
|
35
|
+
return _compact(filters);
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* Get visible filters metadata structured by tab.
|
|
@@ -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":"AAeA,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,EAC/C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEH,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC7C,MAAM,4BAA4B,CAAC;AAkBpC,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,2CAyIvD"}
|
|
@@ -2,9 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { Fragment, useMemo, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { sortBy } from "lodash-es";
|
|
6
6
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
7
|
import { Typography, UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _compact } from "@gooddata/util";
|
|
8
9
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
9
10
|
import { selectSupportsRichTextWidgets } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
10
11
|
import { selectIsAiLoading } from "../../../model/store/config/configSelectors.js";
|
|
@@ -44,7 +45,7 @@ export function CreationPanel(props) {
|
|
|
44
45
|
const creating = InsightWidgetComponentSet.creating;
|
|
45
46
|
const isInsightEditorItem = creating?.CreatePanelListItemComponent === InsightEditorCreatePanelItem ||
|
|
46
47
|
creating?.CreatingPlaceholderComponent === InsightEditorPlaceholder;
|
|
47
|
-
const items =
|
|
48
|
+
const items = _compact([
|
|
48
49
|
(!isInsightEditorItem || canCreateInsightInEditor) && InsightWidgetComponentSet.creating,
|
|
49
50
|
AttributeFilterComponentSet.creating,
|
|
50
51
|
DashboardLayoutWidgetComponentSet.creating,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrillValidationMessages.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/useDrillValidationMessages.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDrillValidationMessages.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/useDrillValidationMessages.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAiCrD,wBAAgB,0BAA0B;;wBA+E7B,MAAM;;EAyBlB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { compact } from "lodash-es";
|
|
5
4
|
import { defineMessages, useIntl } from "react-intl";
|
|
6
5
|
import { isWidget, widgetTitle } from "@gooddata/sdk-model";
|
|
6
|
+
import { _compact } from "@gooddata/util";
|
|
7
7
|
import { useDashboardDispatch, useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
8
8
|
import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
|
|
9
9
|
import { selectWidgetsMap } from "../../../model/store/tabs/layout/layoutSelectors.js";
|
|
@@ -38,10 +38,10 @@ export function useDrillValidationMessages() {
|
|
|
38
38
|
if (!isInEditMode) {
|
|
39
39
|
return [];
|
|
40
40
|
}
|
|
41
|
-
const invalidDrillWidgets =
|
|
42
|
-
const sanitizedDrillWidgets =
|
|
43
|
-
const invalidUrlDrillWidgets =
|
|
44
|
-
return
|
|
41
|
+
const invalidDrillWidgets = _compact(invalidDrillWidgetRefs.map((ref) => allWidgets.get(ref)).filter(isWidget));
|
|
42
|
+
const sanitizedDrillWidgets = _compact(sanitizedDrillWidgetRefs.map((ref) => allWidgets.get(ref)).filter(isWidget));
|
|
43
|
+
const invalidUrlDrillWidgets = _compact(invalidUrlDrillWidgetRefs.map((ref) => allWidgets.get(ref)).filter(isWidget));
|
|
44
|
+
return _compact([
|
|
45
45
|
invalidDrillWidgets.length > 0 &&
|
|
46
46
|
{
|
|
47
47
|
id: DRILL_MESSAGE_ID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultDashboardThemeModifier.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboard/defaultDashboardThemeModifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultDashboardThemeModifier.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboard/defaultDashboardThemeModifier.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,UAAW,MAAM,KAAG,MAkC7D,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
3
|
-
import { _isEmpty } from "@gooddata/util";
|
|
2
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
4
3
|
/**
|
|
5
4
|
* Default modifier applied to any theme passed to Dashboard component
|
|
6
5
|
* @param theme - theme to modify
|
|
7
6
|
* @beta
|
|
8
7
|
*/
|
|
9
8
|
export const defaultDashboardThemeModifier = (theme) => {
|
|
10
|
-
const modifiedTheme =
|
|
9
|
+
const modifiedTheme = _cloneDeep(theme);
|
|
11
10
|
if (theme?.dashboards?.content?.kpiWidget?.kpi) {
|
|
12
11
|
// duplicate dashboard specific kpi customization to the generic kpi key
|
|
13
12
|
modifiedTheme.kpi = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useCallback } from "react";
|
|
4
|
-
import { compact } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, defineMessages, useIntl } from "react-intl";
|
|
6
5
|
import { ConfirmDialog } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _compact } from "@gooddata/util";
|
|
7
7
|
import { deleteDashboard } from "../../model/commands/dashboard.js";
|
|
8
8
|
import { useDashboardDispatch, useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
|
|
9
9
|
import { dispatchAndWaitFor } from "../../model/store/_infra/dispatchAndWaitFor.js";
|
|
@@ -56,7 +56,7 @@ export function DefaultDeleteDialog({ isVisible, onDelete, onCancel, dashboardTi
|
|
|
56
56
|
return null;
|
|
57
57
|
}
|
|
58
58
|
// Names of the object types deleted along with the dashboard, woven into one sentence.
|
|
59
|
-
const objectTypes =
|
|
59
|
+
const objectTypes = _compact([
|
|
60
60
|
showAlertsMessage && intl.formatMessage(deleteMessages.alerts),
|
|
61
61
|
showSchedulesMessage && intl.formatMessage(deleteMessages.schedules),
|
|
62
62
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomUrlEditor.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAoB,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAEvE,OAAO,EAKH,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomUrlEditor.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAoB,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAEvE,OAAO,EAKH,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;AAqC7B,OAAO,EAAE,KAAK,cAAc,EAA4B,MAAM,gBAAgB,CAAC;AAG/E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D,MAAM,WAAW,cAAc;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,uBAAuB,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5C,IAAI,EAAE,SAAS,CAAC;CACnB;AAsCD,wBAAgB,QAAQ,CAAC,EACrB,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,uBAAuB,GAC1B,EAAE,cAAc,kDAoBhB;AAsID,UAAU,eAAe;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AA+LD,MAAM,WAAW,qBAAqB;IAClC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,qBAAqB,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACpD,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,sCAAsC,EAAE,MAAM,EAAE,CAAC;IACjD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,OAAO,CAAC;IACjC,4BAA4B,EAAE,OAAO,CAAC;IACtC,uBAAuB,EAAE,OAAO,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;CACrB;AA2HD,wBAAgB,eAAe,CAAC,KAAK,EAAE,qBAAqB,2CAkB3D"}
|
|
@@ -3,11 +3,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import { HighlightStyle, StreamLanguage, syntaxHighlighting } from "@codemirror/language";
|
|
5
5
|
import { Tag } from "@lezer/highlight";
|
|
6
|
-
import {
|
|
6
|
+
import { escapeRegExp, uniqBy } from "lodash-es";
|
|
7
7
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
8
8
|
import { dashboardAttributeFilterItemToAttributeFilter, filterObjRef, insightFilters as insightDefinitionFilters, isArbitraryAttributeFilter, isAttributeFilter, isMatchAttributeFilter, isMeasureValueFilter, isNegativeAttributeFilter, isPositiveAttributeFilter, objRefToString, serializeObjRef, } from "@gooddata/sdk-model";
|
|
9
9
|
import { attributeIdentifierToPlaceholder, dashboardAttributeFilterToPlaceholder, displayFormPlaceholderRef, insightAttributeFilterToPlaceholder, parameterIdentifierToPlaceholder, } from "@gooddata/sdk-model/internal";
|
|
10
10
|
import { ConfirmDialogBase, DefaultSyntaxHighlightingInput, FullScreenOverlay, Overlay, OverlayController, OverlayControllerProvider, useMediaQuery, } from "@gooddata/sdk-ui-kit";
|
|
11
|
+
import { _compact } from "@gooddata/util";
|
|
11
12
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
12
13
|
import { selectAllCatalogDisplayFormsMap, selectAllCatalogMeasuresMap, } from "../../../../model/store/catalog/catalogSelectors.js";
|
|
13
14
|
import { selectEnableMeasureValueFilterKD, selectIsWhiteLabeled, } from "../../../../model/store/config/configSelectors.js";
|
|
@@ -187,7 +188,7 @@ const buildFormattingRules = (attributeDisplayForms, dashboardFilters, insightFi
|
|
|
187
188
|
const validDashboardMvfRule = buildValidDashboardMvfFormattingRule(dashboardMeasureIdentifiers);
|
|
188
189
|
const validInsightMvfRule = buildValidInsightMvfFormattingRule(insightMeasureIdentifiers);
|
|
189
190
|
const validParametersRule = buildValidParametersFormattingRule(dashboardParameterIdentifiers);
|
|
190
|
-
return
|
|
191
|
+
return _compact([
|
|
191
192
|
validDisplayFormsRule,
|
|
192
193
|
validDashboardFiltersRule,
|
|
193
194
|
validDashboardMvfRule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillSelectDropdown.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/DrillSelectDropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAGrD,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAgBf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"DrillSelectDropdown.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/DrillSelectDropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,YAAY,CAAC;AAGrD,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAgBf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,WAAW,EAAs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2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
4
4
|
import stringify from "json-stable-stringify";
|
|
5
|
-
import {
|
|
5
|
+
import { groupBy, uniqBy } from "lodash-es";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { invariant } from "ts-invariant";
|
|
8
8
|
import { areObjRefsEqual, insightTitle, isAttributeDescriptor, isCrossFiltering, isDrillFromAttribute, isDrillToAttributeUrl, isDrillToCustomUrl, isDrillToDashboard, isDrillToInsight, isDrillToLegacyDashboard, isIdentifierRef, isInsightWidget, isKeyDriveAnalysis, objRefToString, } from "@gooddata/sdk-model";
|
|
9
9
|
import { UnexpectedSdkError } from "@gooddata/sdk-ui";
|
|
10
10
|
import { Overlay, UiFocusManager, UiMenu } from "@gooddata/sdk-ui-kit";
|
|
11
|
+
import { _compact } from "@gooddata/util";
|
|
11
12
|
import { getDrillOriginLocalIdentifier } from "../../../_staging/drills/drillingUtils.js";
|
|
12
13
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
13
14
|
import { selectAccessibleDashboards } from "../../../model/store/accessibleDashboards/accessibleDashboardsSelectors.js";
|
|
@@ -315,7 +316,7 @@ export const createDrillSelectItems = ({ drillDefinitions, drillEvent, insights,
|
|
|
315
316
|
};
|
|
316
317
|
}
|
|
317
318
|
if (isCrossFiltering(drillDefinition)) {
|
|
318
|
-
const title =
|
|
319
|
+
const title = _compact(drillEvent.drillContext.intersection?.map((item) => isAttributeDescriptor(item.header) && !item.header.attributeHeader.granularity
|
|
319
320
|
? item.header.attributeHeader.name
|
|
320
321
|
: undefined)).join(", ");
|
|
321
322
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrillSelectDropdownMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/hooks/useDrillSelectDropdownMenuItems.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDrillSelectDropdownMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/hooks/useDrillSelectDropdownMenuItems.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,sBAAsB,CAAC;AAG/E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAA+B,MAAM,yBAAyB,CAAC;AA0BxG,MAAM,WAAW,gCAAgC;IAC7C,WAAW,EAAE;QACT,IAAI,EAAE,SAAS,CAAC;QAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;KACxB,CAAC;CACL;AAED,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,gCAAgC,CAAC,CAAC;AAEjF,eAAO,MAAM,+BAA+B,4GAOzC;IACC,cAAc,EAAE,gBAAgB,EAAE,CAAC;IACnC,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,mBAAmB,EAAE,gBAAgB,EAAE,CAAC;IACxC,sBAAsB,EAAE,gBAAgB,EAAE,CAAC;IAC3C,eAAe,EAAE,gBAAgB,EAAE,CAAC;IACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACxE,KAAG,oBAAoB,EA8FvB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { compact } from "lodash-es";
|
|
5
4
|
import { defineMessages, useIntl } from "react-intl";
|
|
6
5
|
import { UiIcon } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _compact } from "@gooddata/util";
|
|
7
7
|
import { DrillType, isRestrictedDrillSelectItem } from "../DrillSelect/types.js";
|
|
8
8
|
const groupMenuItemMessages = defineMessages({
|
|
9
9
|
drillDown: { id: "drill_modal_picker.drill-down" },
|
|
@@ -24,7 +24,7 @@ function getMenuItemStringTitle(item) {
|
|
|
24
24
|
if (isRestrictedDrillSelectItem(item)) {
|
|
25
25
|
return item.name;
|
|
26
26
|
}
|
|
27
|
-
return
|
|
27
|
+
return _compact([item.name, item.attributeValue ? `(${item.attributeValue})` : null]).join(" ");
|
|
28
28
|
}
|
|
29
29
|
export const useDrillSelectDropdownMenuItems = ({ drillDownItems, drillItems, crossFilteringItems, keyDriverAnalysisItems, drillToUrlItems, onSelect, }) => {
|
|
30
30
|
const { formatMessage } = useIntl();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { uniqWith } from "lodash-es";
|
|
3
3
|
import { isCrossFiltering, isDrillToLegacyDashboard, } from "@gooddata/sdk-model";
|
|
4
4
|
import { isDrillIntersectionAttributeItem } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _isEqual } from "@gooddata/util";
|
|
5
|
+
import { _compact, _isEqual } from "@gooddata/util";
|
|
6
6
|
import { getDrillOriginLocalIdentifier, isDrillConfigured, isDrillDownIntersectionIgnoredAttributesForHierarchy, } from "../../../_staging/drills/drillingUtils.js";
|
|
7
7
|
import { isDrillToUrl } from "../types.js";
|
|
8
8
|
/**
|
|
@@ -50,7 +50,7 @@ export function filterDrillFromAttributeByPriority(drillDefinitions, configuredD
|
|
|
50
50
|
// and is not able to configure more drills on one origin
|
|
51
51
|
// configured once has higher priority
|
|
52
52
|
const uniqueDrillDefinitions = uniqWith(drillDefinitions, _isEqual);
|
|
53
|
-
const drillOriginsWithoutImplicitDrills =
|
|
53
|
+
const drillOriginsWithoutImplicitDrills = _compact(uniqueDrillDefinitions.map((drill) => {
|
|
54
54
|
if (!isDrillToLegacyDashboard(drill) && isDrillConfigured(drill, configuredDrills)) {
|
|
55
55
|
return getDrillOriginLocalIdentifier(drill);
|
|
56
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributeFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/attributeFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attributeFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/attributeFilters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EAI3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGH,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,MAAM,EAWd,MAAM,qBAAqB,CAAC;AA0B7B,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,OAAO,EAAE,EACzB,OAAO,EAAE,QAAQ,EACjB,mBAAmB,EAAE,iBAAiB,EAAE,EACxC,uCAAuC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACxE,mBAAmB,EAAE,OAAO,GAC7B,mBAAmB,EAAE,CAQvB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { isPositiveAttributeFilter, } from "@gooddata/sdk-embedding";
|
|
4
3
|
import { areObjRefsEqual, filterAttributeElements, filterLocalIdentifier, filterObjRef, insightFilters, isArbitraryAttributeFilter, isAttributeElementsByValue, isAttributeFilter, isMatchAttributeFilter, isNegativeAttributeFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _compact } from "@gooddata/util";
|
|
5
5
|
import { areFiltersWithSameElements, intersectFilters } from "./filterIntersection.js";
|
|
6
6
|
import { toObjIdentifierQualifier } from "./objQualifiers.js";
|
|
7
7
|
function getValidAppliedAttributeFilters(appliedFilters, availableAttributes) {
|
|
@@ -91,7 +91,7 @@ function getAttributeFilterItemsFromAppliedFilters(appliedFilters, insightAttrFi
|
|
|
91
91
|
? getIntersectedAttrFilterContext(insightAttrFilter, attrFilterContext)
|
|
92
92
|
: attrFilterContext;
|
|
93
93
|
});
|
|
94
|
-
return
|
|
94
|
+
return _compact(processedFilters);
|
|
95
95
|
}
|
|
96
96
|
function getInsightAttrFilter(insightAttrFilters, attrFilter, availableAttributes) {
|
|
97
97
|
const targetDisplayForm = filterObjRef(attrFilter);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightFilterContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/insightFilterContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"insightFilterContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/insightFilterContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,mBAAmB,IAAI,4BAA4B,EAC3D,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,OAAO,EACZ,KAAK,QAAQ,EAEb,KAAK,cAAc,EACnB,KAAK,MAAM,EAEd,MAAM,qBAAqB,CAAC;AAS7B,MAAM,MAAM,uBAAuB,GAAG,cAAc,GAAG,mBAAmB,GAAG,4BAA4B,CAAC;AAE1G,MAAM,WAAW,gCAAgC;IAC7C,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,QAAQ,CAAC;IAClB,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;IACzC,uCAAuC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IACzE,YAAY,EAAE,oBAAoB,CAAC;IACnC,UAAU,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC7C,2BAA2B,EAAE,OAAO,CAAC;IACrC,mBAAmB,EAAE,4BAA4B,EAAE,CAAC;CACvD;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,gCAAgC,GACxC,uBAAuB,EAAE,CAoB3B;AAKD;;;GAGG;AACH,wBAAsB,8BAA8B,CAChD,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,QAAQ,EACjB,wBAAwB,EAAE,OAAO,GAClC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAa9B"}
|