@gooddata/sdk-ui-dashboard 11.58.0-alpha.2 → 11.58.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +8 -8
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +3 -3
- 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 +7 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +13 -6
- package/esm/model/commandHandlers/parameters/filterParameterDependenciesWorker.d.ts +45 -0
- package/esm/model/commandHandlers/parameters/filterParameterDependenciesWorker.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/filterParameterDependenciesWorker.js +99 -0
- package/esm/model/commandHandlers/parameters/insightParameterDependenciesWorker.d.ts +11 -0
- package/esm/model/commandHandlers/parameters/insightParameterDependenciesWorker.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/insightParameterDependenciesWorker.js +71 -0
- package/esm/model/commandHandlers/parameters/loadFilterParameterDependencies.d.ts +22 -0
- package/esm/model/commandHandlers/parameters/loadFilterParameterDependencies.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/loadFilterParameterDependencies.js +39 -0
- package/esm/model/commandHandlers/parameters/loadInsightParameterDependencies.d.ts +21 -0
- package/esm/model/commandHandlers/parameters/loadInsightParameterDependencies.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/loadInsightParameterDependencies.js +86 -0
- package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
- package/esm/model/react/useInitializeDashboardStore.js +4 -0
- package/esm/model/react/useWidgetExecConfig.d.ts +4 -4
- package/esm/model/react/useWidgetExecConfig.d.ts.map +1 -1
- package/esm/model/react/useWidgetExecConfig.js +2 -2
- package/esm/model/store/catalog/catalogReducers.d.ts +16 -4
- package/esm/model/store/catalog/catalogReducers.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogReducers.js +15 -3
- package/esm/model/store/catalog/catalogSelectors.d.ts +21 -6
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +20 -5
- package/esm/model/store/catalog/catalogState.d.ts +30 -9
- package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogState.js +2 -1
- package/esm/model/store/catalog/index.d.ts +4 -1
- package/esm/model/store/catalog/index.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +42 -8
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +88 -19
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +13 -6
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +24 -13
- package/esm/presentation/automations/shared/automationFilters/components/AutomationAttributeFilter.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/components/AutomationAttributeFilter.js +16 -2
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +2 -2
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +5 -2
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +3 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +5 -2
- package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts +4 -8
- package/esm/presentation/widget/common/RestrictedPlaceholder.d.ts.map +1 -1
- package/esm/presentation/widget/common/RestrictedPlaceholder.js +16 -23
- package/esm/presentation/widget/insight/DefaultInsightBody/DefaultInsightBody.d.ts.map +1 -1
- package/esm/presentation/widget/insight/DefaultInsightBody/DefaultInsightBody.js +2 -4
- package/esm/presentation/widget/insight/LayeredTableView.d.ts +1 -1
- package/esm/presentation/widget/insight/LayeredTableView.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +2 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +1 -1
- package/esm/presentation/widget/insight/types.d.ts +1 -1
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/richText/RestrictedReferencesDialog.d.ts.map +1 -1
- package/esm/presentation/widget/richText/RestrictedReferencesDialog.js +5 -6
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList/VisualizationListItem.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/configuration/VisualizationsList/VisualizationListItem.js +1 -4
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +2 -3
- package/esm/sdk-ui-dashboard.d.ts +68 -42
- package/package.json +21 -21
- package/styles/css/main.css +8 -7
- package/styles/css/main.css.map +1 -1
- package/styles/css/richTextWidget.css +4 -0
- package/styles/css/richTextWidget.css.map +1 -1
- package/styles/scss/richTextWidget.scss +5 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadMeasureParameterDependencies.d.ts +0 -13
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadMeasureParameterDependencies.d.ts.map +0 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadMeasureParameterDependencies.js +0 -98
- package/esm/presentation/widget/insight/geoDefaultDisplayFormRefs.d.ts +0 -5
- package/esm/presentation/widget/insight/geoDefaultDisplayFormRefs.d.ts.map +0 -1
- package/esm/presentation/widget/insight/geoDefaultDisplayFormRefs.js +0 -28
- package/esm/presentation/widget/insight/insightToTable.d.ts +0 -74
- package/esm/presentation/widget/insight/insightToTable.d.ts.map +0 -1
- package/esm/presentation/widget/insight/insightToTable.js +0 -482
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
/* ==========================================================================
|
|
7
7
|
Variables, mixins, silent classes etc.
|
|
8
8
|
========================================================================== */
|
|
9
|
+
.gd-restricted-references-dialog-wrapper {
|
|
10
|
+
display: contents;
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
.gd-rich-text-widget-wrapper {
|
|
10
14
|
width: 100%;
|
|
11
15
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Button/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../scss/richTextWidget.scss","../scss/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss"],"names":[],"mappings":"AAIA;AAAA;AAAA;ACsHA;AA4DA;ACjLA;AAAA;AAAA;ACEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Button/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../scss/richTextWidget.scss","../scss/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss"],"names":[],"mappings":"AAIA;AAAA;AAAA;ACsHA;AA4DA;ACjLA;AAAA;AAAA;ACEA;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA,eCwFwC;;ADtFxC;EACI;EACA;EACA;EACA;EACA,aEqKuB;EFpKvB,OEDQ;;AFKR;AAAA;AAAA;EAGI;;;AAKZ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAGJ;EACI,OH5DU;;AG+Dd;EACI,OE5CI;;AF+CR;EACI,OEhDI;;AFoDZ;EACI;EACA;EACA;;AAEA;EACI,OE9BY;;;AFmCxB;EACI;EACA;EACA;EACA;EACA;EACA;;;AAMI;EACI","file":"richTextWidget.css"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
// (C) 2024-
|
|
1
|
+
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
|
|
3
3
|
@use "@gooddata/sdk-ui-kit/styles/scss/variables" as kit-variables;
|
|
4
4
|
@use "@gooddata/sdk-ui-kit/styles/scss/Button/_variables" as button-variables;
|
|
5
5
|
@use "@gooddata/sdk-ui-kit/styles/scss/mixins" as mx;
|
|
6
6
|
@use "variables";
|
|
7
7
|
|
|
8
|
+
.gd-restricted-references-dialog-wrapper {
|
|
9
|
+
display: contents;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
.gd-rich-text-widget-wrapper {
|
|
9
13
|
width: 100%;
|
|
10
14
|
height: 100%;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type IInsight } from "@gooddata/sdk-model";
|
|
2
|
-
import { type ICatalogMeasureParametersState } from "../../../store/catalog/catalogState.js";
|
|
3
|
-
import { type DashboardContext } from "../../../types/commonTypes.js";
|
|
4
|
-
/**
|
|
5
|
-
* Loads the dashboard-wide metric -> parameter dependency map from the workspace references service.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Walks the dependency graph in `direction: "down"`, then collects parameter nodes reachable from
|
|
9
|
-
* each root metric, including transitive metric -> metric -> parameter chains. Disabled parameters
|
|
10
|
-
* return `uninitialized`; backend errors return `failed`.
|
|
11
|
-
*/
|
|
12
|
-
export declare function loadMeasureParameterDependencies(ctx: DashboardContext, insights: IInsight[], enableParameters: boolean): Promise<ICatalogMeasureParametersState>;
|
|
13
|
-
//# sourceMappingURL=loadMeasureParameterDependencies.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadMeasureParameterDependencies.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/dashboard/initializeDashboardHandler/loadMeasureParameterDependencies.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EAMhB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;;;GAOG;AACH,wBAAsB,gCAAgC,CAClD,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,QAAQ,EAAE,EACpB,gBAAgB,EAAE,OAAO,GAC1B,OAAO,CAAC,8BAA8B,CAAC,CAqBzC"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { insightMeasures, isIdentifierRef, isMeasureDefinition, objRefToString, } from "@gooddata/sdk-model";
|
|
3
|
-
/**
|
|
4
|
-
* Loads the dashboard-wide metric -> parameter dependency map from the workspace references service.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* Walks the dependency graph in `direction: "down"`, then collects parameter nodes reachable from
|
|
8
|
-
* each root metric, including transitive metric -> metric -> parameter chains. Disabled parameters
|
|
9
|
-
* return `uninitialized`; backend errors return `failed`.
|
|
10
|
-
*/
|
|
11
|
-
export async function loadMeasureParameterDependencies(ctx, insights, enableParameters) {
|
|
12
|
-
if (!enableParameters) {
|
|
13
|
-
return { status: "uninitialized", byMetric: {} };
|
|
14
|
-
}
|
|
15
|
-
const metricRefs = collectMetricRefs(insights);
|
|
16
|
-
if (metricRefs.length === 0) {
|
|
17
|
-
return { status: "loaded", byMetric: {} };
|
|
18
|
-
}
|
|
19
|
-
try {
|
|
20
|
-
const result = await ctx.backend
|
|
21
|
-
.workspace(ctx.workspace)
|
|
22
|
-
.references()
|
|
23
|
-
.getReferences(metricRefs, { direction: "down" });
|
|
24
|
-
const byMetric = buildReachableParameterMap(metricRefs, result.edges);
|
|
25
|
-
return { status: "loaded", byMetric };
|
|
26
|
-
}
|
|
27
|
-
catch {
|
|
28
|
-
return { status: "failed", byMetric: {} };
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function collectMetricRefs(insights) {
|
|
32
|
-
const seen = new Set();
|
|
33
|
-
const refs = [];
|
|
34
|
-
for (const insight of insights) {
|
|
35
|
-
for (const measure of insightMeasures(insight)) {
|
|
36
|
-
const def = measure.measure.definition;
|
|
37
|
-
if (!isMeasureDefinition(def)) {
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
const item = def.measureDefinition.item;
|
|
41
|
-
if (!isIdentifierRef(item)) {
|
|
42
|
-
continue;
|
|
43
|
-
}
|
|
44
|
-
const key = objRefToString(item);
|
|
45
|
-
if (seen.has(key)) {
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
seen.add(key);
|
|
49
|
-
refs.push(item);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return refs;
|
|
53
|
-
}
|
|
54
|
-
function buildReachableParameterMap(roots, edges) {
|
|
55
|
-
const adjacency = buildAdjacency(edges);
|
|
56
|
-
const result = {};
|
|
57
|
-
for (const root of roots) {
|
|
58
|
-
const reachableParameters = reachableParameterRefs(root, adjacency);
|
|
59
|
-
result[objRefToString(root)] = reachableParameters;
|
|
60
|
-
}
|
|
61
|
-
return result;
|
|
62
|
-
}
|
|
63
|
-
function buildAdjacency(edges) {
|
|
64
|
-
const adjacency = new Map();
|
|
65
|
-
for (const edge of edges) {
|
|
66
|
-
const fromKey = objRefToString(edge.from);
|
|
67
|
-
const toKey = objRefToString(edge.to);
|
|
68
|
-
const next = adjacency.get(fromKey) ?? [];
|
|
69
|
-
next.push({ to: edge.to, key: toKey });
|
|
70
|
-
adjacency.set(fromKey, next);
|
|
71
|
-
}
|
|
72
|
-
return adjacency;
|
|
73
|
-
}
|
|
74
|
-
function reachableParameterRefs(start, adjacency) {
|
|
75
|
-
const parameters = [];
|
|
76
|
-
const parametersSeen = new Set();
|
|
77
|
-
const visited = new Set([objRefToString(start)]);
|
|
78
|
-
const queue = [start];
|
|
79
|
-
while (queue.length > 0) {
|
|
80
|
-
const node = queue.shift();
|
|
81
|
-
const neighbors = adjacency.get(objRefToString(node)) ?? [];
|
|
82
|
-
for (const neighbor of neighbors) {
|
|
83
|
-
if (visited.has(neighbor.key)) {
|
|
84
|
-
continue;
|
|
85
|
-
}
|
|
86
|
-
visited.add(neighbor.key);
|
|
87
|
-
if (neighbor.to.type === "parameter") {
|
|
88
|
-
if (!parametersSeen.has(neighbor.key)) {
|
|
89
|
-
parametersSeen.add(neighbor.key);
|
|
90
|
-
parameters.push(neighbor.to);
|
|
91
|
-
}
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
queue.push(neighbor.to);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return parameters;
|
|
98
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type IAttributeWithReferences } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { type GeoLayerType, type IBucket, type ICatalogAttribute, type IInsight, type ISettings, type ObjRef } from "@gooddata/sdk-model";
|
|
3
|
-
export declare function getGeoDefaultDisplayFormRefs(insight: IInsight, settings: ISettings | undefined, catalogAttributes: ICatalogAttribute[], preloadedAttributesWithReferences?: IAttributeWithReferences[]): Map<string, ObjRef> | undefined;
|
|
4
|
-
export declare function resolveGeoDefaultDisplayFormRefs(layerType: GeoLayerType, buckets: IBucket[], catalogAttributes: ICatalogAttribute[], preloadedAttributesWithReferences?: IAttributeWithReferences[]): Map<string, ObjRef> | undefined;
|
|
5
|
-
//# sourceMappingURL=geoDefaultDisplayFormRefs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geoDefaultDisplayFormRefs.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insight/geoDefaultDisplayFormRefs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EACH,KAAK,YAAY,EAEjB,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAO7B,wBAAgB,4BAA4B,CACxC,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,GAAG,SAAS,EAC/B,iBAAiB,EAAE,iBAAiB,EAAE,EACtC,iCAAiC,CAAC,EAAE,wBAAwB,EAAE,GAC/D,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAiBjC;AAED,wBAAgB,gCAAgC,CAC5C,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,OAAO,EAAE,EAClB,iBAAiB,EAAE,iBAAiB,EAAE,EACtC,iCAAiC,CAAC,EAAE,wBAAwB,EAAE,GAC/D,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAmBjC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { GeoLayerTypes, attributeDisplayFormRef, bucketAttribute, bucketsFind, geoLayerTypeFromVisualizationType, insightBuckets, insightVisualizationType, serializeObjRef, } from "@gooddata/sdk-model";
|
|
3
|
-
import { BucketNames, isGeoVisualizationUsingNewEngine, resolveDefaultDisplayFormRefForDisplayForm, } from "@gooddata/sdk-ui";
|
|
4
|
-
export function getGeoDefaultDisplayFormRefs(insight, settings, catalogAttributes, preloadedAttributesWithReferences) {
|
|
5
|
-
const type = insightVisualizationType(insight);
|
|
6
|
-
if (!isGeoVisualizationUsingNewEngine(type, settings)) {
|
|
7
|
-
return undefined;
|
|
8
|
-
}
|
|
9
|
-
const layerType = geoLayerTypeFromVisualizationType(type);
|
|
10
|
-
if (!layerType) {
|
|
11
|
-
return undefined;
|
|
12
|
-
}
|
|
13
|
-
return resolveGeoDefaultDisplayFormRefs(layerType, insightBuckets(insight), catalogAttributes, preloadedAttributesWithReferences);
|
|
14
|
-
}
|
|
15
|
-
export function resolveGeoDefaultDisplayFormRefs(layerType, buckets, catalogAttributes, preloadedAttributesWithReferences) {
|
|
16
|
-
const bucketName = layerType === GeoLayerTypes.AREA ? BucketNames.AREA : BucketNames.LOCATION;
|
|
17
|
-
const geoBucket = bucketsFind(buckets, bucketName);
|
|
18
|
-
const geoAttribute = geoBucket ? bucketAttribute(geoBucket) : undefined;
|
|
19
|
-
if (!geoAttribute) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
const geoDisplayFormRef = attributeDisplayFormRef(geoAttribute);
|
|
23
|
-
const defaultDisplayFormRef = resolveDefaultDisplayFormRefForDisplayForm(geoDisplayFormRef, catalogAttributes, preloadedAttributesWithReferences);
|
|
24
|
-
if (!defaultDisplayFormRef) {
|
|
25
|
-
return undefined;
|
|
26
|
-
}
|
|
27
|
-
return new Map([[serializeObjRef(geoDisplayFormRef), defaultDisplayFormRef]]);
|
|
28
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { type IAttributeWithReferences } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { type ICatalogAttribute, type IInsight, type ISettings, type ObjRef } from "@gooddata/sdk-model";
|
|
3
|
-
/**
|
|
4
|
-
* Determines if a visualization type supports the "Show as Table" UI button.
|
|
5
|
-
* This controls whether users can manually toggle table view in the UI.
|
|
6
|
-
*
|
|
7
|
-
* @param insightType - The visualization type to check
|
|
8
|
-
* @returns true if the visualization supports the Show as Table UI feature
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
export declare function supportsShowAsTable(insightType?: string): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Determines if a visualization type can be converted to table format.
|
|
14
|
-
* This is used for accessibility and export purposes, separate from UI controls.
|
|
15
|
-
*
|
|
16
|
-
* @param insightType - The visualization type to check
|
|
17
|
-
* @returns true if the visualization can be converted to table format
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
export declare function canConvertToTable(insightType?: string): boolean;
|
|
21
|
-
type GeoTableConversionOptions = {
|
|
22
|
-
settings?: ISettings;
|
|
23
|
-
defaultDisplayFormRefs?: Map<string, ObjRef>;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Defines a single layer's table conversion result for multi-layer geo charts.
|
|
27
|
-
*
|
|
28
|
-
* @alpha
|
|
29
|
-
*/
|
|
30
|
-
export interface ILayerTableDefinition {
|
|
31
|
-
/** Stable id — "root" for root layer, layer.id for additional layers */
|
|
32
|
-
layerId: string;
|
|
33
|
-
/** Human-readable name for the tab label */
|
|
34
|
-
layerName: string;
|
|
35
|
-
/** Normalized layer type */
|
|
36
|
-
layerType: string;
|
|
37
|
-
/** Converted table insight for this layer */
|
|
38
|
-
tableInsight: IInsight;
|
|
39
|
-
}
|
|
40
|
-
interface ILayerTableConversionOptions {
|
|
41
|
-
settings?: ISettings;
|
|
42
|
-
catalogAttributes?: ICatalogAttribute[];
|
|
43
|
-
preloadedAttributesWithReferences?: IAttributeWithReferences[];
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Converts a multi-layer geo insight into per-layer table definitions.
|
|
47
|
-
*
|
|
48
|
-
* Returns `undefined` when the insight is not a new-geo type (flags off, non-geo, etc.).
|
|
49
|
-
* Returns an array of {@link ILayerTableDefinition} with root layer first, then
|
|
50
|
-
* additional layers in their original order.
|
|
51
|
-
*
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
export declare function convertGeoInsightToLayerTables(insight: IInsight, options: ILayerTableConversionOptions): ILayerTableDefinition[] | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Converts an insight to layered table definitions.
|
|
57
|
-
*
|
|
58
|
-
* @remarks
|
|
59
|
-
* Currently supports geo insights only and is gated by `enableGeoChartA11yImprovements`.
|
|
60
|
-
*
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
export declare function convertInsightToLayerTables(insight: IInsight, options: ILayerTableConversionOptions): ILayerTableDefinition[] | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Converts any insight (except of type "table", "repeater", or "xirr") to a table insight definition.
|
|
66
|
-
* For table, repeater, or xirr insights, returns the original insight.
|
|
67
|
-
*
|
|
68
|
-
* @param insight - The input insight to convert.
|
|
69
|
-
* @returns IInsight with table visualization or the original insight if conversion is not supported.
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
|
-
export declare function convertInsightToTableDefinition(insight: IInsight, options?: GeoTableConversionOptions): IInsight;
|
|
73
|
-
export {};
|
|
74
|
-
//# sourceMappingURL=insightToTable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insightToTable.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/insight/insightToTable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAQH,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EAEb,KAAK,SAAS,EACd,KAAK,MAAM,EAwBd,MAAM,qBAAqB,CAAC;AAU7B;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAOjE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAE/D;AA+PD,KAAK,yBAAyB,GAAG;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sBAAsB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChD,CAAC;AAyIF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC,wEAAwE;IACxE,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,YAAY,EAAE,QAAQ,CAAC;CAC1B;AAED,UAAU,4BAA4B;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACxC,iCAAiC,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAClE;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAC1C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,4BAA4B,GACtC,qBAAqB,EAAE,GAAG,SAAS,CAsDrC;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACvC,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,4BAA4B,GACtC,qBAAqB,EAAE,GAAG,SAAS,CAErC;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAC3C,OAAO,EAAE,QAAQ,EACjB,OAAO,GAAE,yBAA8B,GACxC,QAAQ,CA+HV"}
|