@gooddata/sdk-ui-dashboard 11.68.0-alpha.5 → 11.68.0-alpha.6
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 +11682 -60389
- 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/model/DashboardTester.d.ts.map +1 -1
- package/esm/model/DashboardTester.js +2 -0
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +23 -6
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +31 -3
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts +3 -0
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +15 -0
- package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
- package/esm/model/react/useInitializeDashboardStore.js +7 -0
- package/esm/model/store/dashboardStore.d.ts +4 -0
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +9 -3
- package/esm/model/store/meta/metaSelectors.d.ts +16 -1
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +51 -0
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +7 -0
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +31 -9
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +21 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +26 -1
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.js +9 -5
- package/esm/presentation/automations/alerting/utils/items.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/utils/items.js +20 -23
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +30 -6
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts +7 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts.map +1 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.js +20 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.d.ts +2 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.js +5 -2
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +20 -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 +20 -0
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +5 -2
- package/esm/sdk-ui-dashboard.d.ts +18 -0
- package/package.json +23 -23
- package/styles/css/drillConfigPanel.css +5 -0
- package/styles/css/drillConfigPanel.css.map +1 -1
- package/styles/css/main.css +5 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/drillConfigPanel.scss +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IAccessControlAware, type IDashboard, type IDashboardAttributeFilterConfig, type IDashboardDateFilterConfig, type IDashboardDateFilterConfigItem, type IDashboardDefinition, type IDashboardMeasureValueFilterConfig, type IDashboardTab, type IDashboardTimezoneConfig, type IDashboardWidget, type IFilterContext, type IFilterContextDefinition, type ITempFilterContext, type IdentifierRef, type ObjRef, type ShareStatus, type UriRef } from "@gooddata/sdk-model";
|
|
1
|
+
import { type IAccessControlAware, type IDashboard, type IDashboardAttributeFilterConfig, type IDashboardDateFilterConfig, type IDashboardDateFilterConfigItem, type IDashboardDefinition, type IDashboardMeasureValueFilterConfig, type IDashboardTab, type IDashboardTimezoneConfig, type IDashboardWidget, type IFilterContext, type IFilterContextDefinition, type IGenAIDashboardLiveFilters, type ITempFilterContext, type IdentifierRef, type ObjRef, type ShareStatus, type UriRef } from "@gooddata/sdk-model";
|
|
2
2
|
import { type DashboardSelector, type DashboardState } from "../types.js";
|
|
3
3
|
import { type DashboardDescriptor } from "./metaState.js";
|
|
4
4
|
/**
|
|
@@ -438,4 +438,19 @@ export declare const selectIsDashboardDirty: DashboardSelector<boolean>;
|
|
|
438
438
|
* @internal
|
|
439
439
|
*/
|
|
440
440
|
export declare const selectDashboardWorkingDefinition: DashboardSelector<IDashboardDefinition<IDashboardWidget>>;
|
|
441
|
+
/**
|
|
442
|
+
* The dashboard definition the AI assistant edits: the working definition, except that outside edit
|
|
443
|
+
* mode every filter context carries the persisted filters, as manual Edit does.
|
|
444
|
+
*
|
|
445
|
+
* @internal
|
|
446
|
+
*/
|
|
447
|
+
export declare const selectDashboardAiDefinition: DashboardSelector<IDashboardDefinition<IDashboardWidget>>;
|
|
448
|
+
/**
|
|
449
|
+
* The filters on screen outside edit mode, for the root filter context and each tab, so the AI assistant can
|
|
450
|
+
* tell which of them differ from {@link selectDashboardAiDefinition}. They are the only part of the working
|
|
451
|
+
* definition that one replaces. Undefined in edit mode, where the two are the same.
|
|
452
|
+
*
|
|
453
|
+
* @internal
|
|
454
|
+
*/
|
|
455
|
+
export declare const selectDashboardAiLiveFilters: DashboardSelector<IGenAIDashboardLiveFilters | undefined>;
|
|
441
456
|
//# sourceMappingURL=metaSelectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/meta/metaSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAEf,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EAEzB,KAAK,kCAAkC,EAEvC,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"metaSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/meta/metaSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAEf,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EAEzB,KAAK,kCAAkC,EAEvC,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,k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,eAAO,MAAM,oCAAoC,EAAE,iBAAiB,CAAC,OAAO,CAM3E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,EAAE,iBAAiB,CAAC,OAAO,CAMxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,EAAE,iBAAiB,CAAC,OAAO,CAMvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,CAAC,OAAO,CAM/E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,iBAAiB,CAAC,OAAO,CAWpE,CAAC;AAqCF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,CAM3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,CAAC,OAAO,CAa5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,OAAO,CAwD7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAiElG,CAAC;AAEN;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAqC7F,CAAC;AAEN;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,0BAA0B,GAAG,SAAS,CAY9F,CAAC"}
|
|
@@ -5,10 +5,12 @@ import { isDashboardLayoutEmpty } from "@gooddata/sdk-backend-spi";
|
|
|
5
5
|
import { idRef, isBrowserDetectedTimezone, isDashboardAttributeFilter, isDashboardCommonDateFilter, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, isDashboardTextAttributeFilter, isTempFilterContext, normalizeDashboardTimezoneConfig, resolveTimezoneId, uriRef, } from "@gooddata/sdk-model";
|
|
6
6
|
import { _isEqual } from "@gooddata/util";
|
|
7
7
|
import { selectEnableDashboardPersistentFiltersAcrossTabs, selectEnableTimezoneChange, } from "../config/configSelectors.js";
|
|
8
|
+
import { selectIsInEditMode } from "../renderMode/renderModeSelectors.js";
|
|
8
9
|
import { selectAttributeFilterConfigsOverridesByTab } from "../tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
9
10
|
import { selectDateFilterConfigOverrides, selectDateFilterConfigOverridesByTab, } from "../tabs/dateFilterConfig/dateFilterConfigSelectors.js";
|
|
10
11
|
import { selectDateFilterConfigsOverridesByTab } from "../tabs/dateFilterConfigs/dateFilterConfigsSelectors.js";
|
|
11
12
|
import { selectFilterContextDefinition, selectFilterContextDefinitionsByTab, selectFilterContextIdentity, } from "../tabs/filterContext/filterContextSelectors.js";
|
|
13
|
+
import { initializeFilterContextDefinition } from "../tabs/filterContext/filterContextUtils.js";
|
|
12
14
|
import { filterOutCustomWidgets, selectBasicLayout, selectBasicLayoutByTab, } from "../tabs/layout/layoutSelectors.js";
|
|
13
15
|
import { selectMeasureValueFilterConfigsOverridesByTab } from "../tabs/measureValueFilterConfigs/measureValueFilterConfigsSelectors.js";
|
|
14
16
|
import { selectIsParametersChanged, selectSmartPersistedTabsParameters, } from "../tabs/parameters/parametersSelectors.js";
|
|
@@ -908,3 +910,52 @@ export const selectDashboardWorkingDefinition = createSelector(selectPersistedDa
|
|
|
908
910
|
...pluginsProp,
|
|
909
911
|
};
|
|
910
912
|
});
|
|
913
|
+
/**
|
|
914
|
+
* The dashboard definition the AI assistant edits: the working definition, except that outside edit
|
|
915
|
+
* mode every filter context carries the persisted filters, as manual Edit does.
|
|
916
|
+
*
|
|
917
|
+
* @internal
|
|
918
|
+
*/
|
|
919
|
+
export const selectDashboardAiDefinition = createSelector(selectDashboardWorkingDefinition, selectIsInEditMode, selectPersistedDashboardFilterContextAsFilterContextDefinition, selectPersistedDashboardFilterContextDefinitionsByTab, (working, isEditMode, persistedRoot, persistedByTab) => {
|
|
920
|
+
if (isEditMode) {
|
|
921
|
+
return working;
|
|
922
|
+
}
|
|
923
|
+
// Live filters got positional ids on load and the persisted snapshot did not. Both must carry
|
|
924
|
+
// the same ids, or the AAC convertor cannot match filter configs and groups to them.
|
|
925
|
+
const savedFilters = (persisted) => initializeFilterContextDefinition(persisted).filters;
|
|
926
|
+
return {
|
|
927
|
+
...working,
|
|
928
|
+
...(working.filterContext && persistedRoot
|
|
929
|
+
? { filterContext: { ...working.filterContext, filters: savedFilters(persistedRoot) } }
|
|
930
|
+
: {}),
|
|
931
|
+
...(working.tabs
|
|
932
|
+
? {
|
|
933
|
+
tabs: working.tabs.map((tab) => {
|
|
934
|
+
const persisted = persistedByTab[tab.localIdentifier];
|
|
935
|
+
return tab.filterContext && persisted
|
|
936
|
+
? {
|
|
937
|
+
...tab,
|
|
938
|
+
filterContext: {
|
|
939
|
+
...tab.filterContext,
|
|
940
|
+
filters: savedFilters(persisted),
|
|
941
|
+
},
|
|
942
|
+
}
|
|
943
|
+
: tab;
|
|
944
|
+
}),
|
|
945
|
+
}
|
|
946
|
+
: {}),
|
|
947
|
+
};
|
|
948
|
+
});
|
|
949
|
+
/**
|
|
950
|
+
* The filters on screen outside edit mode, for the root filter context and each tab, so the AI assistant can
|
|
951
|
+
* tell which of them differ from {@link selectDashboardAiDefinition}. They are the only part of the working
|
|
952
|
+
* definition that one replaces. Undefined in edit mode, where the two are the same.
|
|
953
|
+
*
|
|
954
|
+
* @internal
|
|
955
|
+
*/
|
|
956
|
+
export const selectDashboardAiLiveFilters = createSelector(selectDashboardWorkingDefinition, selectIsInEditMode, (working, isEditMode) => isEditMode
|
|
957
|
+
? undefined
|
|
958
|
+
: {
|
|
959
|
+
filters: working.filterContext?.filters,
|
|
960
|
+
tabs: Object.fromEntries((working.tabs ?? []).flatMap((tab) => tab.filterContext ? [[tab.localIdentifier, tab.filterContext.filters]] : [])),
|
|
961
|
+
});
|
|
@@ -85,6 +85,13 @@ export declare function resolveEffectiveParameterValuesForRoots(context: IParame
|
|
|
85
85
|
* @internal
|
|
86
86
|
*/
|
|
87
87
|
export declare function resolveParameterDisplayValues(context: IParameterResolutionContext, insight?: IInsight): ReadonlyMap<string, string>;
|
|
88
|
+
/**
|
|
89
|
+
* The value of each of `refs`, by parameter identifier: chip, then insight-authored value, then the
|
|
90
|
+
* workspace default.
|
|
91
|
+
*
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
export declare function resolveParameterValues(context: IParameterResolutionContext, refs: IdentifierRef[], insight?: IInsight): ReadonlyMap<string, ParameterValue>;
|
|
88
95
|
/**
|
|
89
96
|
* The value hydration seeds into `runtimeOverride`: the dashboard parameter's `value`, else the
|
|
90
97
|
* workspace default when the workspace parameter is of the matching type, else `undefined`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parametersHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersHelpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,cAAc,EAetB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EACH,KAAK,wBAAwB,EAGhC,MAAM,sBAAsB,CAAC;AAK9B;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAM,CAAC;AAE9F;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,GAAG,aAAa,EAAE,CAazG;AAED;;;;;;;GA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AAO,CAAC,EAAE,QAAQ,GACnB,sBAAsB,EAAE,CAc1B;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CACzC,OAAO,EAAE,2BAA2B,EACpC,OAAO,CAAC,EAAE,QAAQ,GACnB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"parametersHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersHelpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,cAAc,EAetB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EACH,KAAK,wBAAwB,EAGhC,MAAM,sBAAsB,CAAC;AAK9B;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAM,CAAC;AAE9F;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,GAAG,aAAa,EAAE,CAazG;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,GAAG,aAAa,EAAE,CAe/E;AAWD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,aAAa,CAAC,iBAAiB,CAAC,GAAG,aAAa,EAAE,CAEtG;AAED;;;;;;;;;GASG;AACH,wBAAgB,gCAAgC,CAC5C,sBAAsB,EAAE,aAAa,CAAC,yBAAyB,CAAC,EAChE,M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B,EAAE,mBAAmB,EAAE,GAC/C,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAW/C;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,wBAAwB,EAC/B,kBAAkB,EAAE,wBAAwB,GAAG,SAAS,EACxD,YAAY,EAAE,OAAO,GACtB,cAAc,GAAG,SAAS,CAc5B;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CACxC,OAAO,EAAE,wBAAwB,EAAE,EACnC,mBAAmB,EAAE,wBAAwB,EAAE,EAC/C,YAAY,EAAE,OAAO,GACtB,sBAAsB,EAAE,CAqB1B;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,EAC9B,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAC9D,eAAe,EAAE,OAAO,GACzB,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,CAS7C"}
|
|
@@ -175,20 +175,42 @@ export function resolveEffectiveParameterValuesForRoots(context, roots, insight)
|
|
|
175
175
|
* @internal
|
|
176
176
|
*/
|
|
177
177
|
export function resolveParameterDisplayValues(context, insight) {
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
const valueByRef = new Map(effectiveValues.map((effective) => [objRefToString(effective.ref), effective.value]));
|
|
181
|
-
const displayValues = new Map();
|
|
182
|
-
for (const { definition, ref } of workspaceParameters) {
|
|
178
|
+
const identifierRefs = [];
|
|
179
|
+
for (const { ref } of context.workspaceParameterByRef.values()) {
|
|
183
180
|
// a text names a parameter by identifier, so one referenced by uri cannot be written at all
|
|
184
|
-
if (
|
|
185
|
-
|
|
181
|
+
if (isIdentifierRef(ref)) {
|
|
182
|
+
identifierRefs.push(ref);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
const values = resolveParameterValues(context, identifierRefs, insight);
|
|
186
|
+
const displayValues = new Map();
|
|
187
|
+
for (const [identifier, value] of values.entries()) {
|
|
188
|
+
const workspaceParameter = context.workspaceParameterByRef.get(identifier);
|
|
189
|
+
if (workspaceParameter) {
|
|
190
|
+
displayValues.set(identifier, getParameterValueTitle(workspaceParameter.definition, value));
|
|
186
191
|
}
|
|
187
|
-
const value = valueByRef.get(objRefToString(ref)) ?? definition.defaultValue;
|
|
188
|
-
displayValues.set(ref.identifier, getParameterValueTitle(definition, value));
|
|
189
192
|
}
|
|
190
193
|
return displayValues;
|
|
191
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* The value of each of `refs`, by parameter identifier: chip, then insight-authored value, then the
|
|
197
|
+
* workspace default.
|
|
198
|
+
*
|
|
199
|
+
* @internal
|
|
200
|
+
*/
|
|
201
|
+
export function resolveParameterValues(context, refs, insight) {
|
|
202
|
+
const effectiveValues = resolveEffectiveParameterValuesForRefs(context.entries, refs, insight ? ungatedInsightParameterValues(insight, context.isStringEnabled) : [], context.workspaceParameterByRef);
|
|
203
|
+
const valueByIdentifier = new Map(effectiveValues.map((effective) => [objRefToString(effective.ref), effective.value]));
|
|
204
|
+
const values = new Map();
|
|
205
|
+
for (const ref of refs) {
|
|
206
|
+
const value = valueByIdentifier.get(ref.identifier) ??
|
|
207
|
+
context.workspaceParameterByRef.get(objRefToString(ref))?.definition.defaultValue;
|
|
208
|
+
if (value !== undefined) {
|
|
209
|
+
values.set(ref.identifier, value);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return values;
|
|
213
|
+
}
|
|
192
214
|
/**
|
|
193
215
|
* The value hydration seeds into `runtimeOverride`: the dashboard parameter's `value`, else the
|
|
194
216
|
* workspace default when the workspace parameter is of the matching type, else `undefined`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IDashboardExportParameter, type IDashboardParameter, type IInsightParameterValue, type IParameterMetadataObject, type IdentifierRef, type ObjRef, type ParameterValue } from "@gooddata/sdk-model";
|
|
1
|
+
import { type IDashboardExportParameter, type IDashboardParameter, type IInsightParameterValue, type IParameterMetadataObject, type IdentifierRef, type ObjRef, type ParameterType, type ParameterValue } from "@gooddata/sdk-model";
|
|
2
2
|
import { type DashboardSelector } from "../../types.js";
|
|
3
3
|
import { type IParameterReconciliationEntry, type ParameterReconciliation } from "./parametersHelpers.js";
|
|
4
4
|
import { type IDashboardParameterEntry } from "./parametersState.js";
|
|
@@ -200,6 +200,26 @@ export declare const selectEffectiveParameterValuesForWidget: (ref: ObjRef | und
|
|
|
200
200
|
* @internal
|
|
201
201
|
*/
|
|
202
202
|
export declare const selectReferencedInsightParameterValuesForWidget: (ref: ObjRef | undefined) => DashboardSelector<IInsightParameterValue[]>;
|
|
203
|
+
/**
|
|
204
|
+
* A parameter of the widget's tab and the value that a drill to URL puts in place of its
|
|
205
|
+
* `{parameter(id)}` placeholder.
|
|
206
|
+
*
|
|
207
|
+
* @internal
|
|
208
|
+
*/
|
|
209
|
+
export interface IWidgetParameterValue {
|
|
210
|
+
identifier: string;
|
|
211
|
+
parameterType: ParameterType;
|
|
212
|
+
title: string;
|
|
213
|
+
value: ParameterValue | undefined;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Every ungated parameter of the widget's tab, all modes, with its drill to URL value: the dashboard
|
|
217
|
+
* `runtimeOverride`, else the insight value, else the workspace default. Returns `[]` when
|
|
218
|
+
* `enableParameters` is off.
|
|
219
|
+
*
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
export declare const selectWidgetParameterValues: (ref: ObjRef) => DashboardSelector<IWidgetParameterValue[]>;
|
|
203
223
|
/**
|
|
204
224
|
* Returns the effective dashboard parameters (persisted shape with any `runtimeOverride` folded
|
|
205
225
|
* into `value`) held by the widget's owning tab.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parametersSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAExB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,cAAc,EAMtB,MAAM,qBAAqB,CAAC;AAa7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAQxD,OAAO,EAEH,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,
|
|
1
|
+
{"version":3,"file":"parametersSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAExB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,cAAc,EAMtB,MAAM,qBAAqB,CAAC;AAa7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAQxD,OAAO,EAEH,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAsB/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,KAAK,wBAAwB,EAGhC,MAAM,sBAAsB,CAAC;AAgC9B;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,mBAAmB,EAAE,CAG9E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAO9F,CAAC;AAEP;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,WAAW,CAAC,MAAM,CAAC,CAG/E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAAC,wBAAwB,EAAE,CAGzF,CAAC;AAYF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAAE,iBAAiB,CAAC,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,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC;CACrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,iBAAiB,CAAC,qBAAqB,EAAE,CAuB/F,CAAC;AAEN;;;;;GAKG;AACH,eAAO,MAAM,2CAA2C,EAAE,CACtD,GAAG,EAAE,MAAM,GAAG,SAAS,KACtB,iBAAiB,CAAC,mBAAmB,EAAE,CAe3C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,+BAA+B,EAAE,CAC1C,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,KAC9B,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,CAuBjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAAC,yBAAyB,EAAE,CAI1F,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,CAAC,CAoBpG,CAAC"}
|
|
@@ -11,11 +11,12 @@ import { selectIsInEditMode } from "../../renderMode/renderModeSelectors.js";
|
|
|
11
11
|
import { selectAllTabsInsightWidgetContexts, selectAllTabsWidgetContexts, } from "../layout/layoutSelectors.js";
|
|
12
12
|
import { selectActiveOrDefaultTabLocalIdentifier, selectActiveTab, selectTabs } from "../tabsSelectors.js";
|
|
13
13
|
import { DEFAULT_TAB_ID } from "../tabsState.js";
|
|
14
|
-
import { EMPTY_EXPORT_PARAMETERS_BY_TAB, applyDisplayOverride, applyRuntimeOverride, buildPersistedByTabAndRef, buildWorkspaceParametersByRef, classifyParameterReconciliation, collectAppliedParameterValues, collectExportOverrides, collectParameterReconciliations, collectRootParameterRefs, collectWidgetFilterParameterRoots, computeParameterResetTargets, computeParameterResetValue, displayOverride, hydrateParameterEntry, isGatedStringEntry, resolveEffectiveParameterValuesForRefs, smartPersistResolvedEntry, ungatedInsightParameterValues, ungatedTabEntries, } from "./parametersHelpers.js";
|
|
14
|
+
import { EMPTY_EXPORT_PARAMETERS_BY_TAB, applyDisplayOverride, applyRuntimeOverride, buildPersistedByTabAndRef, buildWorkspaceParametersByRef, classifyParameterReconciliation, collectAppliedParameterValues, collectExportOverrides, collectParameterReconciliations, collectRootParameterRefs, collectWidgetFilterParameterRoots, computeParameterResetTargets, computeParameterResetValue, displayOverride, hydrateParameterEntry, isGatedStringEntry, resolveEffectiveParameterValuesForRefs, resolveParameterTitle, resolveParameterValues, smartPersistResolvedEntry, ungatedInsightParameterValues, ungatedTabEntries, } from "./parametersHelpers.js";
|
|
15
15
|
import { parametersInitialState, pickTabParametersSource, } from "./parametersState.js";
|
|
16
16
|
const EMPTY_PARAMETERS = [];
|
|
17
17
|
const EMPTY_EXPORT_PARAMETERS = [];
|
|
18
18
|
const EMPTY_PARAMETER_VALUES = [];
|
|
19
|
+
const EMPTY_WIDGET_PARAMETER_VALUES = [];
|
|
19
20
|
const EMPTY_TABS = [];
|
|
20
21
|
const EMPTY_RESET_TARGETS = [];
|
|
21
22
|
const EMPTY_RECONCILIATIONS = [];
|
|
@@ -367,6 +368,30 @@ export const selectReferencedInsightParameterValuesForWidget = createMemoizedSel
|
|
|
367
368
|
const { insightParameterValues, referencedRefs, workspaceParameterByRef } = resolved;
|
|
368
369
|
return resolveEffectiveParameterValuesForRefs([], referencedRefs, insightParameterValues, workspaceParameterByRef);
|
|
369
370
|
}));
|
|
371
|
+
/**
|
|
372
|
+
* Every ungated parameter of the widget's tab, all modes, with its drill to URL value: the dashboard
|
|
373
|
+
* `runtimeOverride`, else the insight value, else the workspace default. Returns `[]` when
|
|
374
|
+
* `enableParameters` is off.
|
|
375
|
+
*
|
|
376
|
+
* @internal
|
|
377
|
+
*/
|
|
378
|
+
export const selectWidgetParameterValues = createMemoizedSelector((ref) => createSelector(selectWidgetParameterContext(ref), selectInsightsMap, (context, insights) => {
|
|
379
|
+
if (!context) {
|
|
380
|
+
return EMPTY_WIDGET_PARAMETER_VALUES;
|
|
381
|
+
}
|
|
382
|
+
const { entries, workspaceParameterByRef, widgetInsightRef } = context;
|
|
383
|
+
const insight = widgetInsightRef ? insights.get(widgetInsightRef) : undefined;
|
|
384
|
+
const values = resolveParameterValues(context, entries.map((entry) => entry.parameter.ref), insight);
|
|
385
|
+
return entries.map(({ parameter }) => {
|
|
386
|
+
const { identifier } = parameter.ref;
|
|
387
|
+
return {
|
|
388
|
+
identifier,
|
|
389
|
+
parameterType: parameter.parameterType,
|
|
390
|
+
title: resolveParameterTitle(parameter, workspaceParameterByRef.get(identifier)),
|
|
391
|
+
value: values.get(identifier),
|
|
392
|
+
};
|
|
393
|
+
});
|
|
394
|
+
}));
|
|
370
395
|
/**
|
|
371
396
|
* Returns the effective dashboard parameters (persisted shape with any `runtimeOverride` folded
|
|
372
397
|
* into `value`) held by the widget's owning tab.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlertDraftFilterWrites.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertDraftFilterWrites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAwB,MAAM,OAAO,CAAC;AAEjF,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACjB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC5C,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/F,6FAA6F;IAC7F,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,eAAe,EAAE,WAAW,GAAG,SAAS,CAAC;IACzC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EACtC,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,gCAAgC,EAChC,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,GACX,EAAE,+BAA+B,GAAG;IAAE,mBAAmB,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"useAlertDraftFilterWrites.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertDraftFilterWrites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAwB,MAAM,OAAO,CAAC;AAEjF,OAAO,EACH,KAA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ACb,SAAS,EACT,QAAQ,GACX,EAAE,+BAA+B,GAAG;IAAE,mBAAmB,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAA;CAAE,CAmGnG"}
|
|
@@ -37,11 +37,15 @@ export function useAlertDraftFilterWrites({ setEditedAutomation, alertToEdit, da
|
|
|
37
37
|
visibleFilters,
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
|
-
const updatedAutomationWithAttribute = transformAlertByAttribute(supportedAttributes, updatedAutomationWithFilters, selectedAttribute,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
const updatedAutomationWithAttribute = transformAlertByAttribute(supportedAttributes, updatedAutomationWithFilters, selectedAttribute,
|
|
41
|
+
// No value means All; "" would filter to an empty value.
|
|
42
|
+
selectedValue === undefined
|
|
43
|
+
? undefined
|
|
44
|
+
: {
|
|
45
|
+
name: selectedValue ?? "",
|
|
46
|
+
title: "",
|
|
47
|
+
value: "",
|
|
48
|
+
});
|
|
45
49
|
return selectedMeasure
|
|
46
50
|
? transformAlertByMetric(supportedMeasures, updatedAutomationWithAttribute, selectedMeasure, measureFormatMap, weekStart, timezone)
|
|
47
51
|
: updatedAutomationWithAttribute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/utils/items.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EAExB,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/utils/items.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EAExB,KAAK,QAAQ,EAuBhB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAA6B,MAAM,aAAa,CAAC;AAgE/F;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAChD,OAAO,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,EACpC,YAAY,GAAE,mBAAmB,EAAO,EACxC,KAAK,CAAC,EAAE,yBAAyB,GAClC,WAAW,EAAE,CAoCf;AA4BD;;;;;;GAMG;AACH,wBAAgB,sCAAsC,CAClD,OAAO,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,EACpC,UAAU,EAAE,iBAAiB,EAAE,EAC/B,YAAY,GAAE,mBAAmB,EAAO,EACxC,KAAK,CAAC,EAAE,yBAAyB,GAClC,cAAc,EAAE,CAMlB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { DateGranularity, areObjRefsEqual, bucketAttributes, bucketMeasures, insightBucket, insightFilters, insightVisualizationType, isArithmeticMeasure, isPoPMeasure, isPoPMeasureDefinition, isPreviousPeriodMeasure, isPreviousPeriodMeasureDefinition, isRelativeDateFilter, isSimpleMeasure, newAttribute, newMeasure, newPopMeasure, newPreviousPeriodMeasure, } from "@gooddata/sdk-model";
|
|
2
|
+
import { DateGranularity, areObjRefsEqual, bucketAttributes, bucketMeasures, insightBucket, insightFilters, insightVisualizationType, isArithmeticMeasure, isPoPMeasure, isPoPMeasureDefinition, isPreviousPeriodMeasure, isPreviousPeriodMeasureDefinition, isRelativeDateFilter, isSimpleMeasure, measureLocalId, modifyMeasure, newAttribute, newMeasure, newPopMeasure, newPreviousPeriodMeasure, } from "@gooddata/sdk-model";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
4
|
import { AlertMetricComparatorType } from "../types.js";
|
|
5
5
|
import { getCatalogAttribute, getFiltersAttribute } from "./getters.js";
|
|
@@ -198,41 +198,26 @@ function collectAllMetric(insight, alert) {
|
|
|
198
198
|
}
|
|
199
199
|
if (alert) {
|
|
200
200
|
if (alert.alert?.condition.type === "relative") {
|
|
201
|
-
const left = alert.alert
|
|
202
|
-
const right = alert.alert?.condition.measure.right;
|
|
201
|
+
const { left, right } = alert.alert.condition.measure;
|
|
203
202
|
return {
|
|
204
203
|
primaries: [
|
|
205
|
-
...(left
|
|
206
|
-
|
|
207
|
-
newMeasure(left.id, (a) => a.format(left.format).title(left.title).localId(left.id)),
|
|
208
|
-
]
|
|
209
|
-
: []),
|
|
210
|
-
...(right
|
|
211
|
-
? [
|
|
212
|
-
newMeasure(right.id, (a) => a.format(right.format).title(right.title).localId(right.id)),
|
|
213
|
-
]
|
|
214
|
-
: []),
|
|
204
|
+
...(left ? [alertOperandMeasure(alert, left)] : []),
|
|
205
|
+
...(right ? [alertOperandMeasure(alert, right)] : []),
|
|
215
206
|
],
|
|
216
207
|
others: [],
|
|
217
208
|
};
|
|
218
209
|
}
|
|
219
210
|
if (alert.alert?.condition.type === "comparison") {
|
|
220
|
-
const left = alert.alert
|
|
211
|
+
const left = alert.alert.condition.left;
|
|
221
212
|
return {
|
|
222
|
-
primaries: left
|
|
223
|
-
? [newMeasure(left.id, (a) => a.format(left.format).title(left.title).localId(left.id))]
|
|
224
|
-
: [],
|
|
213
|
+
primaries: left ? [alertOperandMeasure(alert, left)] : [],
|
|
225
214
|
others: [],
|
|
226
215
|
};
|
|
227
216
|
}
|
|
228
217
|
if (alert.alert?.condition.type === "anomalyDetection") {
|
|
229
|
-
const measure = alert.alert
|
|
218
|
+
const measure = alert.alert.condition.measure;
|
|
230
219
|
return {
|
|
231
|
-
primaries: measure
|
|
232
|
-
? [
|
|
233
|
-
newMeasure(measure.id, (a) => a.format(measure.format).title(measure.title).localId(measure.id)),
|
|
234
|
-
]
|
|
235
|
-
: [],
|
|
220
|
+
primaries: measure ? [alertOperandMeasure(alert, measure)] : [],
|
|
236
221
|
others: [],
|
|
237
222
|
};
|
|
238
223
|
}
|
|
@@ -242,6 +227,18 @@ function collectAllMetric(insight, alert) {
|
|
|
242
227
|
others: [],
|
|
243
228
|
};
|
|
244
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* The alert's stored measure for a condition operand. A measure made from the operand's local identifier
|
|
232
|
+
* alone would be sent as a fact that does not exist.
|
|
233
|
+
*/
|
|
234
|
+
function alertOperandMeasure(alert, operand) {
|
|
235
|
+
const execution = alert.alert?.execution;
|
|
236
|
+
const stored = [...(execution?.measures ?? []), ...(execution?.auxMeasures ?? [])].find((measure) => measureLocalId(measure) === operand.id);
|
|
237
|
+
if (stored) {
|
|
238
|
+
return modifyMeasure(stored, (m) => m.format(operand.format).title(operand.title));
|
|
239
|
+
}
|
|
240
|
+
return newMeasure(operand.id, (m) => m.format(operand.format).title(operand.title).localId(operand.id));
|
|
241
|
+
}
|
|
245
242
|
function collectAllAttributes(insight, attributes, alert) {
|
|
246
243
|
if (insight) {
|
|
247
244
|
const insightType = insight ? insightVisualizationType(insight) : null;
|
|
@@ -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;AAoC7B,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"}
|
|
@@ -6,7 +6,7 @@ import { Tag } from "@lezer/highlight";
|
|
|
6
6
|
import { compact, 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
|
-
import { attributeIdentifierToPlaceholder, dashboardAttributeFilterToPlaceholder, displayFormPlaceholderRef, insightAttributeFilterToPlaceholder, } from "@gooddata/sdk-model/internal";
|
|
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
11
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
12
12
|
import { selectAllCatalogDisplayFormsMap, selectAllCatalogMeasuresMap, } from "../../../../model/store/catalog/catalogSelectors.js";
|
|
@@ -14,6 +14,7 @@ import { selectEnableMeasureValueFilterKD, selectIsWhiteLabeled, } from "../../.
|
|
|
14
14
|
import { selectInsightByWidgetRef } from "../../../../model/store/insights/insightsSelectors.js";
|
|
15
15
|
import { selectAttributeFilterConfigsOverrides } from "../../../../model/store/tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
16
16
|
import { selectFilterContextAttributeFilterItems, selectFilterContextMeasureValueFilters, } from "../../../../model/store/tabs/filterContext/filterContextSelectors.js";
|
|
17
|
+
import { selectWidgetParameterValues } from "../../../../model/store/tabs/parameters/parametersSelectors.js";
|
|
17
18
|
import { DASHBOARD_HEADER_OVERLAYS_Z_INDEX } from "../../../constants/zIndex.js";
|
|
18
19
|
import { useInvalidFilteringParametersIdentifiers } from "../../../widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js";
|
|
19
20
|
import { isDrillToCustomUrlConfig } from "../../types.js";
|
|
@@ -128,6 +129,18 @@ const buildValidInsightMvfFormattingRule = (measureIdentifiers) => {
|
|
|
128
129
|
token: customTags.filter.toString(),
|
|
129
130
|
};
|
|
130
131
|
};
|
|
132
|
+
const buildValidParametersFormattingRule = (dashboardParameterIdentifiers) => {
|
|
133
|
+
if (dashboardParameterIdentifiers.length === 0) {
|
|
134
|
+
return undefined;
|
|
135
|
+
}
|
|
136
|
+
const validParameterPlaceholders = dashboardParameterIdentifiers
|
|
137
|
+
.map((identifier) => escapeRegExp(parameterIdentifierToPlaceholder(identifier)))
|
|
138
|
+
.join("|");
|
|
139
|
+
return {
|
|
140
|
+
regex: new RegExp(`^(?:${validParameterPlaceholders})`),
|
|
141
|
+
token: customTags.filter.toString(),
|
|
142
|
+
};
|
|
143
|
+
};
|
|
131
144
|
const IDENTIFIER_RULE = {
|
|
132
145
|
regex: /^\{workspace_id\}|\{project_id\}|\{visualization_id\}|\{widget_id\}|\{dashboard_id\}|\{client_id\}|\{data_product_id\}/,
|
|
133
146
|
token: customTags.identifier.toString(),
|
|
@@ -153,31 +166,38 @@ const INVALID_INSIGHT_ATTRIBUTE_FILTER_RULE = {
|
|
|
153
166
|
regex: /^\{attribute_filter_selection\(.*?\)\}/,
|
|
154
167
|
token: customTags.invalidFilter.toString(),
|
|
155
168
|
};
|
|
169
|
+
const INVALID_PARAMETER_RULE = {
|
|
170
|
+
regex: /^\{parameter(?:\(.*?\))?\}/,
|
|
171
|
+
token: customTags.invalidFilter.toString(),
|
|
172
|
+
};
|
|
156
173
|
const DEFAULT_RULES = [
|
|
157
174
|
INVALID_DISPLAY_FORMS_RULE,
|
|
158
175
|
INVALID_DASHBOARD_ATTRIBUTE_FILTER_RULE,
|
|
159
176
|
INVALID_DASHBOARD_MVF_RULE,
|
|
160
177
|
INVALID_INSIGHT_MVF_RULE,
|
|
161
178
|
INVALID_INSIGHT_ATTRIBUTE_FILTER_RULE,
|
|
179
|
+
INVALID_PARAMETER_RULE,
|
|
162
180
|
IDENTIFIER_RULE,
|
|
163
181
|
INVALID_IDENTIFIER_RULE,
|
|
164
182
|
];
|
|
165
|
-
const buildFormattingRules = (attributeDisplayForms, dashboardFilters, insightFilters, dashboardMeasureIdentifiers, insightMeasureIdentifiers, attributeFilterConfigs) => {
|
|
183
|
+
const buildFormattingRules = (attributeDisplayForms, dashboardFilters, insightFilters, dashboardMeasureIdentifiers, insightMeasureIdentifiers, dashboardParameterIdentifiers, attributeFilterConfigs) => {
|
|
166
184
|
const validDisplayFormsRule = buildValidDisplayFormsFormattingRule(attributeDisplayForms);
|
|
167
185
|
const validInsightFiltersRule = buildValidInsightFiltersFormattingRule(insightFilters);
|
|
168
186
|
const validDashboardFiltersRule = buildValidDashboardFiltersFormattingRule(dashboardFilters, attributeFilterConfigs);
|
|
169
187
|
const validDashboardMvfRule = buildValidDashboardMvfFormattingRule(dashboardMeasureIdentifiers);
|
|
170
188
|
const validInsightMvfRule = buildValidInsightMvfFormattingRule(insightMeasureIdentifiers);
|
|
189
|
+
const validParametersRule = buildValidParametersFormattingRule(dashboardParameterIdentifiers);
|
|
171
190
|
return compact([
|
|
172
191
|
validDisplayFormsRule,
|
|
173
192
|
validDashboardFiltersRule,
|
|
174
193
|
validDashboardMvfRule,
|
|
175
194
|
validInsightFiltersRule,
|
|
176
195
|
validInsightMvfRule,
|
|
196
|
+
validParametersRule,
|
|
177
197
|
...DEFAULT_RULES,
|
|
178
198
|
]);
|
|
179
199
|
};
|
|
180
|
-
function UrlInputPanel({ currentUrlValue, onChange, onCursor, documentationLink, attributeDisplayForms, intl, insightFilters, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, enableInsightMeasureValueFilters, attributeFilterConfigs, }) {
|
|
200
|
+
function UrlInputPanel({ currentUrlValue, onChange, onCursor, documentationLink, attributeDisplayForms, intl, insightFilters, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, enableInsightMeasureValueFilters, attributeFilterConfigs, dashboardParameterIdentifiers, }) {
|
|
181
201
|
const isWhiteLabeled = useDashboardSelector(selectIsWhiteLabeled);
|
|
182
202
|
const catalogMeasuresMap = useDashboardSelector(selectAllCatalogMeasuresMap);
|
|
183
203
|
const dashboardMeasureIdentifiers = useMemo(() => {
|
|
@@ -196,13 +216,14 @@ function UrlInputPanel({ currentUrlValue, onChange, onCursor, documentationLink,
|
|
|
196
216
|
insightFilters &&
|
|
197
217
|
dashboardFilters &&
|
|
198
218
|
dashboardMeasureValueFilters &&
|
|
199
|
-
buildFormattingRules(attributeDisplayForms, dashboardFilters, insightFilters, dashboardMeasureIdentifiers, insightMeasureIdentifiers, attributeFilterConfigs), [
|
|
219
|
+
buildFormattingRules(attributeDisplayForms, dashboardFilters, insightFilters, dashboardMeasureIdentifiers, insightMeasureIdentifiers, dashboardParameterIdentifiers, attributeFilterConfigs), [
|
|
200
220
|
attributeDisplayForms,
|
|
201
221
|
insightFilters,
|
|
202
222
|
dashboardFilters,
|
|
203
223
|
dashboardMeasureValueFilters,
|
|
204
224
|
dashboardMeasureIdentifiers,
|
|
205
225
|
insightMeasureIdentifiers,
|
|
226
|
+
dashboardParameterIdentifiers,
|
|
206
227
|
attributeFilterConfigs,
|
|
207
228
|
]);
|
|
208
229
|
return (_jsxs("div", { children: [_jsx("label", { className: "gd-label", children: _jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.textAreaLabel" }) }), _jsx(UrlInput, { onChange: onChange, onCursor: onCursor, currentUrlValue: currentUrlValue, syntaxHighlightingRules: syntaxHighlightingRules, intl: intl }), !isWhiteLabeled && documentationLink ? _jsx(HelpLink, { link: documentationLink }) : null] }));
|
|
@@ -218,6 +239,7 @@ const URL_START_RULES = [
|
|
|
218
239
|
/^\{attribute_filter_selection\(/,
|
|
219
240
|
/^\{dash_attribute_filter_selection\(/,
|
|
220
241
|
/^\{dash_mvf_condition\(/,
|
|
242
|
+
/^\{parameter\(/,
|
|
221
243
|
];
|
|
222
244
|
const INSIGHT_MVF_URL_START_RULE = /^\{mvf_condition\(/;
|
|
223
245
|
const assertValidUrl = (url, enableInsightMeasureValueFilters) => {
|
|
@@ -238,7 +260,9 @@ function CustomUrlEditorDialog({ urlDrillTarget, documentationLink, onSelect, on
|
|
|
238
260
|
const dashboardFilters = useSanitizedDashboardFilters();
|
|
239
261
|
const dashboardMeasureValueFilters = useDashboardSelector(selectFilterContextMeasureValueFilters);
|
|
240
262
|
const attributeFilterConfigs = useDashboardSelector(selectAttributeFilterConfigsOverrides);
|
|
241
|
-
const
|
|
263
|
+
const dashboardParameters = useDashboardSelector(selectWidgetParameterValues(widgetRef));
|
|
264
|
+
const dashboardParameterIdentifiers = useMemo(() => dashboardParameters.map(({ identifier }) => identifier), [dashboardParameters]);
|
|
265
|
+
const invalidFilteringParametersIdentifiers = useInvalidFilteringParametersIdentifiers(urlDrillTarget, insightFilters, dashboardFilters, dashboardMeasureValueFilters, enableInsightMeasureValueFilters ? insightMeasureValueFilters : undefined, enableInsightMeasureValueFilters, attributeFilterConfigs, dashboardParameterIdentifiers);
|
|
242
266
|
const invalidParameters = useMemo(() => {
|
|
243
267
|
return [...invalidAttributeDisplayFormIdentifiers, ...invalidFilteringParametersIdentifiers];
|
|
244
268
|
}, [invalidAttributeDisplayFormIdentifiers, invalidFilteringParametersIdentifiers]);
|
|
@@ -259,7 +283,7 @@ function CustomUrlEditorDialog({ urlDrillTarget, documentationLink, onSelect, on
|
|
|
259
283
|
id: "configurationPanel.drillIntoUrl.editor.cancelButtonLabel",
|
|
260
284
|
}), submitButtonText: intl.formatMessage({
|
|
261
285
|
id: "configurationPanel.drillIntoUrl.editor.applyButtonLabel",
|
|
262
|
-
}), isSubmitDisabled: !isApplyEnabled, submitOnEnterKey: false, onCancel: onClose, onSubmit: apply, warning: editorWarningText, children: [_jsx(UrlInputPanel, { onChange: handleOnChange, onCursor: handleCursorPosition, documentationLink: documentationLink, currentUrlValue: currentValue, attributeDisplayForms: attributeDisplayForms, insightFilters: insightFilters, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, insightMeasureValueFilters: insightMeasureValueFilters, enableInsightMeasureValueFilters: enableInsightMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs, intl: intl }), _jsx(ParametersPanel, { insightFilters: insightFilters, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, insightMeasureValueFilters: insightMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs, attributeDisplayForms: attributeDisplayForms, loadingAttributeDisplayForms: loadingAttributeDisplayForms, enableClientIdParameter: enableClientIdParameter, enableDataProductIdParameter: enableDataProductIdParameter, enableWidgetIdParameter: enableWidgetIdParameter, onAdd: handleOnAdd, intl: intl, widgetRef: widgetRef })] }));
|
|
286
|
+
}), isSubmitDisabled: !isApplyEnabled, submitOnEnterKey: false, onCancel: onClose, onSubmit: apply, warning: editorWarningText, children: [_jsx(UrlInputPanel, { onChange: handleOnChange, onCursor: handleCursorPosition, documentationLink: documentationLink, currentUrlValue: currentValue, attributeDisplayForms: attributeDisplayForms, insightFilters: insightFilters, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, insightMeasureValueFilters: insightMeasureValueFilters, enableInsightMeasureValueFilters: enableInsightMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs, dashboardParameterIdentifiers: dashboardParameterIdentifiers, intl: intl }), _jsx(ParametersPanel, { insightFilters: insightFilters, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, insightMeasureValueFilters: insightMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs, dashboardParameters: dashboardParameters, attributeDisplayForms: attributeDisplayForms, loadingAttributeDisplayForms: loadingAttributeDisplayForms, enableClientIdParameter: enableClientIdParameter, enableDataProductIdParameter: enableDataProductIdParameter, enableWidgetIdParameter: enableWidgetIdParameter, onAdd: handleOnAdd, intl: intl, widgetRef: widgetRef })] }));
|
|
263
287
|
}
|
|
264
288
|
const overlayController = OverlayController.getInstance(DASHBOARD_HEADER_OVERLAYS_Z_INDEX);
|
|
265
289
|
export function CustomUrlEditor(props) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type IDashboardParametersSectionProps } from "./CustomUrlEditorParametersSections/DashboardParametersSection.js";
|
|
2
2
|
import { type IInsightParametersSectionProps } from "./CustomUrlEditorParametersSections/InsightParametersSection.js";
|
|
3
|
+
import { type IParameterParametersSectionProps } from "./CustomUrlEditorParametersSections/ParameterParametersSection.js";
|
|
3
4
|
import { type IIdentifierParametersSectionProps } from "./types.js";
|
|
4
|
-
type IParametersPanelProps = IInsightParametersSectionProps & IIdentifierParametersSectionProps & IDashboardParametersSectionProps;
|
|
5
|
-
export declare function ParametersPanel({ attributeDisplayForms, loadingAttributeDisplayForms, enableClientIdParameter, enableDataProductIdParameter, enableWidgetIdParameter, onAdd, intl, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, attributeFilterConfigs, insightFilters, widgetRef, }: IParametersPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type IParametersPanelProps = IInsightParametersSectionProps & IIdentifierParametersSectionProps & IDashboardParametersSectionProps & IParameterParametersSectionProps;
|
|
6
|
+
export declare function ParametersPanel({ attributeDisplayForms, loadingAttributeDisplayForms, enableClientIdParameter, enableDataProductIdParameter, enableWidgetIdParameter, onAdd, intl, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, attributeFilterConfigs, dashboardParameters, insightFilters, widgetRef, }: IParametersPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
7
8
|
//# sourceMappingURL=CustomUrlEditorParameters.d.ts.map
|
package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomUrlEditorParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,gCAAgC,EACxC,MAAM,mEAAmE,CAAC;AAE3E,OAAO,EACH,KAAK,8BAA8B,EAEtC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAEpE,KAAK,qBAAqB,GAAG,8BAA8B,GACvD,iCAAiC,GACjC,gCAAgC,CAAC;AAErC,wBAAgB,eAAe,CAAC,EAC5B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,EACL,IAAI,EACJ,gBAAgB,EAChB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,cAAc,EACd,SAAS,GACZ,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"CustomUrlEditorParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,gCAAgC,EACxC,MAAM,mEAAmE,CAAC;AAE3E,OAAO,EACH,KAAK,8BAA8B,EAEtC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EACH,KAAK,gCAAgC,EAExC,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAEpE,KAAK,qBAAqB,GAAG,8BAA8B,GACvD,iCAAiC,GACjC,gCAAgC,GAChC,gCAAgC,CAAC;AAErC,wBAAgB,eAAe,CAAC,EAC5B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,EACL,IAAI,EACJ,gBAAgB,EAChB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,SAAS,GACZ,EAAE,qBAAqB,2CA6CvB"}
|
|
@@ -5,6 +5,7 @@ import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
|
5
5
|
import { DashboardParametersSection, } from "./CustomUrlEditorParametersSections/DashboardParametersSection.js";
|
|
6
6
|
import { IdentifierParametersSection } from "./CustomUrlEditorParametersSections/IdentifierParametersSection.js";
|
|
7
7
|
import { InsightParametersSection, } from "./CustomUrlEditorParametersSections/InsightParametersSection.js";
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import { ParameterParametersSection, } from "./CustomUrlEditorParametersSections/ParameterParametersSection.js";
|
|
9
|
+
export function ParametersPanel({ attributeDisplayForms, loadingAttributeDisplayForms, enableClientIdParameter, enableDataProductIdParameter, enableWidgetIdParameter, onAdd, intl, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, attributeFilterConfigs, dashboardParameters, insightFilters, widgetRef, }) {
|
|
10
|
+
return (_jsxs("div", { children: [_jsxs("label", { className: "gd-label", children: [_jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parametersPanelLabel" }), _jsxs(BubbleHoverTrigger, { className: "gd-list-item-tooltip", showDelay: 0, hideDelay: 0, children: [_jsx("span", { className: "gd-icon-circle-question gd-list-item-tooltip-icon" }), _jsx(Bubble, { className: "bubble-primary", alignPoints: [{ align: "cr cl" }], children: _jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parametersPanelTooltip" }) })] })] }), _jsxs("div", { className: "gd-drill-to-url-parameters gd-drill-to-url-list", children: [_jsx(InsightParametersSection, { attributeDisplayForms: attributeDisplayForms, loadingAttributeDisplayForms: loadingAttributeDisplayForms, onAdd: onAdd, intl: intl, insightFilters: insightFilters, insightMeasureValueFilters: insightMeasureValueFilters, widgetRef: widgetRef }), _jsx(DashboardParametersSection, { intl: intl, onAdd: onAdd, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs }), _jsx(ParameterParametersSection, { dashboardParameters: dashboardParameters, onAdd: onAdd, intl: intl }), _jsx(IdentifierParametersSection, { enableClientIdParameter: enableClientIdParameter, enableDataProductIdParameter: enableDataProductIdParameter, enableWidgetIdParameter: enableWidgetIdParameter, onAdd: onAdd, intl: intl, widgetRef: widgetRef })] })] }));
|
|
10
11
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IWidgetParameterValue } from "../../../../../model/store/tabs/parameters/parametersSelectors.js";
|
|
2
|
+
import { type IParametersPanelSectionsCommonProps } from "../types.js";
|
|
3
|
+
export interface IParameterParametersSectionProps extends IParametersPanelSectionsCommonProps {
|
|
4
|
+
dashboardParameters: IWidgetParameterValue[];
|
|
5
|
+
}
|
|
6
|
+
export declare function ParameterParametersSection({ dashboardParameters, onAdd, intl, }: IParameterParametersSectionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=ParameterParametersSection.d.ts.map
|