@sisense/sdk-ui 2.25.0 → 2.27.0
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/dist/ai.cjs +36 -36
- package/dist/ai.js +968 -989
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1010 -865
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{apply-styled-options-to-query-BsBTwL6W.js → apply-styled-options-to-query-BzMAmDnD.js} +1471 -1433
- package/dist/apply-styled-options-to-query-k10gkPCG.cjs +1 -0
- package/dist/dimensions-C3WSSE5j.js +204 -0
- package/dist/dimensions-huCJK0y6.cjs +1 -0
- package/dist/index.cjs +422 -422
- package/dist/index.js +17880 -17278
- package/dist/index.umd.js +652 -663
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-models.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +18 -4
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +19 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +8 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +5 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +2 -3
- package/dist/packages/sdk-ui/src/domains/data-browser/data-source-dimensional-model/hooks/use-get-data-source-dimensions.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/data-source-dimensional-model/hooks/use-get-data-source-fields.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/drilldown/components/drilldown-widget/drilldown-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/drilldown/hooks/use-drilldown.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/drilldown/hooks/use-hierarchies-loader.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/filters/components/custom-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +11 -3
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +51 -1
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/query-execution/core/date-formats/simple-date-format-replacers.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-pivot-query/use-execute-pivot-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query/use-execute-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/area-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/areamap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/bar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/components/scattermap/utils/map.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/types.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/column-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/funnel-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/line-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pie-chart/pie-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/sorting-utils.d.ts +4 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/polar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/scatter-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/scattermap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/sunburst-chart/sunburst-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/hooks/use-table-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/table.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/treemap-chart/treemap-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/translate-data-options.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +6 -6
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/validate-data-options/validate-data-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/apply-event-handlers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +6 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/series-processor.d.ts +1 -37
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/plot-bands.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/series-labels.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/axis-section.d.ts +29 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/tooltip-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/compose-code-to-readable.d.ts +24 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition-style-constants.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-params-to-view-model.d.ts +8 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +6 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-with-pivot-table-widget-drilldown.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/utils.d.ts +0 -5
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/apply-partial-dto-style.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/extract-unsupported-style-options.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +118 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +19 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/use-scroller-location-save.d.ts +8 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +10 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/widget-by-id.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/with-navigator-scroll-save.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/use-get-widget-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/to-widget-dto-panels.d.ts +183 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +45 -14
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +12 -0
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +13 -7
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +12 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +49 -2
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +2 -0
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts +10 -3
- package/dist/packages/sdk-ui/src/infra/plugins/plugin-context.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +24 -10
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +3 -4
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-from-json.d.ts +5 -5
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-jaql.d.ts +4 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-json.d.ts +5 -5
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +4 -4
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +5 -0
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +13 -2
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +22 -20
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/components/menu/context-menu/menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/utils/filter-relations.d.ts +2 -0
- package/dist/packages/sdk-ui/src/types.d.ts +10 -10
- package/dist/{types-GFLaiax5.cjs → types-Cq47e5cy.cjs} +1 -1
- package/dist/{types-BBp2sp_s.js → types-CzqDZ83C.js} +1 -1
- package/dist/{use-hover-mptQLQ4S.js → use-hover-CkmV6eu9.js} +10368 -10193
- package/dist/{use-hover-DsnmY-p_.cjs → use-hover-D_mBUhp9.cjs} +114 -114
- package/dist/utils-DM5vp1gw.cjs +179 -0
- package/dist/{utils-DTUC-wtI.js → utils-Db3U6oHa.js} +8810 -8670
- package/dist/{widget-composer-D0BZrLna.js → widget-composer-BiGVKN49.js} +108 -108
- package/dist/{widget-composer-CDb2iOoS.cjs → widget-composer-CZ0_bPXK.cjs} +7 -7
- package/package.json +9 -8
- package/dist/apply-styled-options-to-query-mFJvsssw.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/drilldown/hooks/use-synced-drilldown-paths-manager.d.ts +0 -113
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/index.d.ts +0 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/table-widget.d.ts +0 -22
- package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/types.d.ts +0 -61
- package/dist/parse-compose-code-DfZskSng.js +0 -352
- package/dist/parse-compose-code-v4J9BrUg.cjs +0 -1
- package/dist/utils-BlNqPAG8.cjs +0 -190
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
2
|
import { AppConfig, ThemeSettings } from '../../../types';
|
|
3
|
+
import { LegacyDesignSettings } from '../../themes/legacy-design-settings.js';
|
|
3
4
|
import { FeatureMap } from './types/features.js';
|
|
5
|
+
/**
|
|
6
|
+
* AI-related slice derived from globals (`serverFeatures` + deployment props),
|
|
7
|
+
* aligned with admin UI paths such as `ai.featureFlags.*`, `ai.featureModelType`,
|
|
8
|
+
* `ai.quotaNotification`, and `ai.aiStudio.*`.
|
|
9
|
+
*/
|
|
10
|
+
type AiSettingsSlice = {
|
|
11
|
+
featureFlags: {
|
|
12
|
+
completionV2: boolean;
|
|
13
|
+
naturalResponseEnabled: boolean;
|
|
14
|
+
nlqV3Enabled: boolean;
|
|
15
|
+
queryDefinition: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Only when `serverFeatures.aiAssistant` exists.
|
|
19
|
+
* If the block is present but omits this field, defaults to `customer_byok`.
|
|
20
|
+
* When the AI Assistant feature is absent from globals, this stays unset (`undefined`).
|
|
21
|
+
*/
|
|
22
|
+
featureModelType?: string;
|
|
23
|
+
quotaNotification: boolean;
|
|
24
|
+
aiStudio: {
|
|
25
|
+
realtime: boolean;
|
|
26
|
+
usageDisplay: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
4
29
|
/**
|
|
5
30
|
* Application settings
|
|
6
31
|
*
|
|
@@ -13,6 +38,7 @@ export type AppSettings = Required<ConfigurableAppSettings> & ServerSettings;
|
|
|
13
38
|
type ConfigurableAppSettings = AppConfig;
|
|
14
39
|
/**
|
|
15
40
|
* User role permissions
|
|
41
|
+
*
|
|
16
42
|
* @internal
|
|
17
43
|
*/
|
|
18
44
|
type RoleManifest = {
|
|
@@ -63,17 +89,38 @@ type ServerSettings = {
|
|
|
63
89
|
serverLanguage: string;
|
|
64
90
|
serverVersion: string;
|
|
65
91
|
serverFeatures: FeatureMap;
|
|
66
|
-
|
|
67
|
-
|
|
92
|
+
ai: AiSettingsSlice;
|
|
93
|
+
narrative: {
|
|
94
|
+
/** From `api/v2/settings/ai` narration.enabled */
|
|
95
|
+
isEnabled: boolean;
|
|
96
|
+
/** Computed from `narrationUnified` and the unlimited or credit-based narrative entitlements. */
|
|
97
|
+
canGenerateNarrativeViaAI: boolean;
|
|
98
|
+
};
|
|
68
99
|
user: {
|
|
69
100
|
tenant: {
|
|
70
101
|
name: string;
|
|
71
102
|
};
|
|
72
103
|
/**
|
|
73
104
|
* User role permissions
|
|
105
|
+
*
|
|
74
106
|
* @internal
|
|
75
107
|
*/
|
|
76
108
|
permissions: RoleManifest;
|
|
109
|
+
/** From `api/globals` `user.firstName` — for embedded UIs (e.g. assistant greeting). */
|
|
110
|
+
firstName?: string;
|
|
111
|
+
/** From `api/globals` `user.lastName`. */
|
|
112
|
+
lastName?: string;
|
|
113
|
+
/** From `api/globals` `user.email`. */
|
|
114
|
+
email?: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Raw Fusion `designSettings` from `api/globals` (before palette / theme conversion).
|
|
118
|
+
* Use for CSS variable derivation that mirrors the main Fusion app; see also {@link ServerSettings.serverThemeSettings}.
|
|
119
|
+
*/
|
|
120
|
+
fusionDesignSettings: LegacyDesignSettings;
|
|
121
|
+
/** Subset of `globals.brand` needed by embedded chrome (e.g. documentation link). */
|
|
122
|
+
fusionBrand: {
|
|
123
|
+
documentationUrl: string | null;
|
|
77
124
|
};
|
|
78
125
|
};
|
|
79
126
|
/**
|
|
@@ -125,6 +125,8 @@ type AiAssistantFeature = Feature<'aiAssistant', {
|
|
|
125
125
|
nlqV3Enabled?: boolean;
|
|
126
126
|
isNlqV3Enabled?: boolean;
|
|
127
127
|
naturalResponseEnabled?: boolean;
|
|
128
|
+
queryDefinition?: boolean;
|
|
129
|
+
completionV2?: boolean;
|
|
128
130
|
sharedFormulasEnabled?: boolean;
|
|
129
131
|
aiAccessControl?: string;
|
|
130
132
|
quotaNotification?: boolean;
|
|
@@ -137,7 +137,6 @@ export type AppConfig = {
|
|
|
137
137
|
* Widgets that are configured using an older version of Jump To Dashboard, or via scripts, are not supported.
|
|
138
138
|
*
|
|
139
139
|
* Known limitations:
|
|
140
|
-
* - Jump To Dashboard is not currently supported for Pivot widgets.
|
|
141
140
|
* - Target dashboards are always opened in a popup window, options to open in new tab and new window are not supported.
|
|
142
141
|
* - Show 'Header' and 'Dashboards panel' options are not supported (only relevant to Fusion).
|
|
143
142
|
* - 'Reset filters after JTD' is not supported, since changes are never saved to the target dashboard using Compose SDK.
|
package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts
CHANGED
|
@@ -5,17 +5,22 @@ import { CustomWidgetComponent, CustomWidgetComponentProps } from './types';
|
|
|
5
5
|
* @example
|
|
6
6
|
* Example of registering a custom widget in a dashboard:
|
|
7
7
|
* ```tsx
|
|
8
|
+
* import { useEffect } from 'react';
|
|
8
9
|
* import { useCustomWidgets, DashboardById } from '@sisense/sdk-ui';
|
|
9
10
|
* import CustomHistogramWidget from './custom-histogram-widget';
|
|
10
11
|
*
|
|
11
12
|
* const Example = () => {
|
|
12
|
-
* const { registerCustomWidget } = useCustomWidgets();
|
|
13
|
-
*
|
|
13
|
+
* const { registerCustomWidget, unregisterCustomWidget } = useCustomWidgets();
|
|
14
|
+
*
|
|
15
|
+
* useEffect(() => {
|
|
16
|
+
* registerCustomWidget('histogramwidget', CustomHistogramWidget);
|
|
17
|
+
* // Optionally unregister on unmount (e.g. if the widget should only be available within this component)
|
|
18
|
+
* return () => unregisterCustomWidget('histogramwidget');
|
|
19
|
+
* }, [registerCustomWidget, unregisterCustomWidget]);
|
|
14
20
|
*
|
|
15
21
|
* return <DashboardById dashboardOid="your-dashboard-oid" />;
|
|
16
22
|
* }
|
|
17
23
|
* ```
|
|
18
|
-
*
|
|
19
24
|
* @group Dashboards
|
|
20
25
|
*/
|
|
21
26
|
export declare const useCustomWidgets: () => UseCustomWidgetsResult;
|
|
@@ -25,6 +30,8 @@ export declare const useCustomWidgets: () => UseCustomWidgetsResult;
|
|
|
25
30
|
export type UseCustomWidgetsResult = {
|
|
26
31
|
/** Registers a custom widget. */
|
|
27
32
|
registerCustomWidget: <T = CustomWidgetComponentProps>(customWidgetType: string, customWidget: CustomWidgetComponent<T>) => void;
|
|
33
|
+
/** Unregisters a legacy custom widget for the given type name. */
|
|
34
|
+
unregisterCustomWidget: (customWidgetType: string) => void;
|
|
28
35
|
/** Checks if a custom widget is registered. */
|
|
29
36
|
hasCustomWidget: (customWidgetType: string) => boolean;
|
|
30
37
|
/** Gets a custom widget. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import type { AnyWidgetPlugin } from './widget-plugins/types.js';
|
|
3
3
|
import type { WidgetPluginRegistry } from './widget-plugins/widget-plugin-registry.js';
|
|
4
4
|
/**
|
|
5
5
|
* Context for accessing registered plugins
|
|
@@ -10,7 +10,7 @@ export interface PluginContextValue {
|
|
|
10
10
|
/**
|
|
11
11
|
* Validated widget plugin declarations (metadata)
|
|
12
12
|
*/
|
|
13
|
-
widgetPlugins: readonly
|
|
13
|
+
widgetPlugins: readonly AnyWidgetPlugin[];
|
|
14
14
|
/**
|
|
15
15
|
* Central widget component registry (used for lookup and legacy bridge)
|
|
16
16
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AnyWidgetPlugin } from './widget-plugins/types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Base plugin information
|
|
4
4
|
*
|
|
@@ -55,4 +55,4 @@ export interface PluginValidationResult {
|
|
|
55
55
|
*
|
|
56
56
|
* @sisenseInternal
|
|
57
57
|
*/
|
|
58
|
-
export type Plugin =
|
|
58
|
+
export type Plugin = AnyWidgetPlugin;
|
|
@@ -8,7 +8,7 @@ import type { BasePluginInfo } from '../types';
|
|
|
8
8
|
*
|
|
9
9
|
* @sisenseInternal
|
|
10
10
|
*/
|
|
11
|
-
export interface WidgetPlugin<Props
|
|
11
|
+
export interface WidgetPlugin<Props extends CustomVisualizationProps = CustomVisualizationProps> extends BasePluginInfo {
|
|
12
12
|
/**
|
|
13
13
|
* The type of plugin
|
|
14
14
|
*/
|
|
@@ -56,8 +56,17 @@ export interface WidgetPlugin<Props = CustomVisualizationProps, StyleOptions = C
|
|
|
56
56
|
* Definition of the design panel for the custom widget
|
|
57
57
|
*/
|
|
58
58
|
designPanel?: {
|
|
59
|
-
Component?: DesignPanel<
|
|
59
|
+
Component?: DesignPanel<NonNullable<Props['styleOptions']>>;
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* The icon of the custom widget to be displayed in the widget selector
|
|
63
|
+
* @example
|
|
64
|
+
* ```tsx
|
|
65
|
+
* const MyWidgetIcon = () => <PieChartIcon />;
|
|
66
|
+
* ```
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
icon?: () => ReactNode;
|
|
61
70
|
/**
|
|
62
71
|
* Definition of the data panel for the custom widget
|
|
63
72
|
*/
|
|
@@ -118,19 +127,24 @@ export interface WidgetPlugin<Props = CustomVisualizationProps, StyleOptions = C
|
|
|
118
127
|
* Whether the items can be formatted
|
|
119
128
|
*/
|
|
120
129
|
canFormat?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the items can be colored
|
|
132
|
+
*/
|
|
133
|
+
canColor?: boolean;
|
|
121
134
|
}[];
|
|
122
135
|
};
|
|
123
|
-
/**
|
|
124
|
-
* The icon of the custom widget to be displayed in the widget selector
|
|
125
|
-
* @example
|
|
126
|
-
* ```tsx
|
|
127
|
-
* const MyWidgetIcon = () => <PieChartIcon />;
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
icon?: () => ReactNode;
|
|
131
136
|
};
|
|
132
137
|
};
|
|
133
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Any Widget plugin declaration
|
|
141
|
+
* Represents heterogeneous widget plugin declarations at registry/context boundaries.
|
|
142
|
+
* Generic params are intentionally erased because each plugin can define distinct props/style types.
|
|
143
|
+
* Do not consume component prop types from this alias directly.
|
|
144
|
+
*
|
|
145
|
+
* @sisenseInternal
|
|
146
|
+
*/
|
|
147
|
+
export type AnyWidgetPlugin = WidgetPlugin<any>;
|
|
134
148
|
/**
|
|
135
149
|
* Props passed to a user-defined custom visualization component.
|
|
136
150
|
*
|
|
@@ -4,7 +4,7 @@ export type { TranslationDictionary };
|
|
|
4
4
|
* A reference to the namespace of the translation resources.
|
|
5
5
|
* This namespace is used to access the translation resources in the i18next instance.
|
|
6
6
|
*
|
|
7
|
-
* @
|
|
7
|
+
* @alpha
|
|
8
8
|
*/
|
|
9
9
|
export declare const PACKAGE_NAMESPACE: "sdkUi";
|
|
10
10
|
export declare const resources: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
+
import { type GetNarrativeOptions } from '../../../infra/api/narrative/narrative-endpoints.js';
|
|
2
3
|
import { ChatContextDetails } from '../../../modules/ai/api/types';
|
|
3
4
|
import type { Chat, ChatContext, ChatRequest, ChatResponse, ChatWithoutHistory, GetNlgInsightsRequest, GetNlqResultRequest, LlmConfig, NlqResult, QueryRecommendationConfig, QueryRecommendationResponse, SendFeedbackRequest } from './types';
|
|
4
5
|
/** @internal */
|
|
5
6
|
export declare class ChatRestApi {
|
|
6
7
|
private readonly volatile;
|
|
7
8
|
private httpClient;
|
|
8
|
-
|
|
9
|
-
private readonly isSisenseAiEnabled;
|
|
10
|
-
constructor(httpClient: HttpClient, volatile?: boolean, isUnifiedNarrationEnabled?: boolean, isSisenseAiEnabled?: boolean);
|
|
9
|
+
constructor(httpClient: HttpClient, volatile?: boolean);
|
|
11
10
|
getChatContexts: () => Promise<ChatContext[]>;
|
|
12
11
|
private getNlgInsights;
|
|
13
12
|
private getQueryRecommendations;
|
|
@@ -20,7 +19,7 @@ export declare class ChatRestApi {
|
|
|
20
19
|
private deleteChatHistory;
|
|
21
20
|
private sendFeedback;
|
|
22
21
|
ai: {
|
|
23
|
-
getNlgInsights: (request: GetNlgInsightsRequest) => Promise<import("../../../infra/api/narrative/narrative-api-types").NarrativeResponse>;
|
|
22
|
+
getNlgInsights: (request: GetNlgInsightsRequest, options?: GetNarrativeOptions) => Promise<import("../../../infra/api/narrative/narrative-api-types").NarrativeResponse | undefined>;
|
|
24
23
|
getNlqResult: (contextTitle: string, request: GetNlqResultRequest) => Promise<NlqResult | undefined>;
|
|
25
24
|
getQueryRecommendations: (contextTitle: string, config: QueryRecommendationConfig) => Promise<QueryRecommendationResponse | undefined>;
|
|
26
25
|
setLlmConfig: (config: LlmConfig) => Promise<unknown>;
|
|
@@ -12,6 +12,7 @@ export { Chatbot, type ChatbotProps } from './chatbot.js';
|
|
|
12
12
|
export { default as GetNlgInsights, type GetNlgInsightsProps } from './get-nlg-insights.js';
|
|
13
13
|
export { NlqChartWidget, type NlqChartWidgetProps } from './chart/nlq-chart-widget.js';
|
|
14
14
|
export { ChatRestApi } from './api/chat-rest-api.js';
|
|
15
|
+
export type { GetNarrativeOptions } from '../../infra/api/narrative/narrative-endpoints.js';
|
|
15
16
|
export { CustomAiContextProvider, type CustomAiContext, type CustomAiContextProviderProps, } from './custom-ai-context-provider.js';
|
|
16
17
|
export { prepareGetNlgInsightsPayload } from '../../domains/narrative/core/build-narrative-request.js';
|
|
17
18
|
export { getNlgInsightsFromWidget, type GetNlgInsightsFromWidgetOptions, } from './get-nlg-insights-from-widget.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ExecuteQueryParams } from '../../../../domains/query-execution/index.js';
|
|
2
2
|
import { NlqTranslationResult } from '../../types.js';
|
|
3
3
|
import { QueryInput } from '../../types.js';
|
|
4
4
|
/**
|
|
5
|
-
* Translates NLQ JSON format to CSDK
|
|
5
|
+
* Translates NLQ JSON format to CSDK ExecuteQueryParams object.
|
|
6
6
|
* Direction: JSON → CSDK
|
|
7
7
|
*
|
|
8
|
-
* Translate Query JSON generated by the new NLQ API to
|
|
8
|
+
* Translate Query JSON generated by the new NLQ API to ExecuteQueryParams object.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* {
|
|
@@ -219,7 +219,7 @@ import { QueryInput } from '../../types.js';
|
|
|
219
219
|
],
|
|
220
220
|
}}
|
|
221
221
|
* @param input - QueryInput object
|
|
222
|
-
* @returns NlqTranslationResult<
|
|
222
|
+
* @returns NlqTranslationResult<ExecuteQueryParams>
|
|
223
223
|
* @internal
|
|
224
224
|
*/
|
|
225
|
-
export declare const translateQueryFromJSON: (input: QueryInput) => NlqTranslationResult<
|
|
225
|
+
export declare const translateQueryFromJSON: (input: QueryInput) => NlqTranslationResult<ExecuteQueryParams>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { type DataSource } from '@sisense/sdk-data';
|
|
2
2
|
import type { JaqlQueryPayload } from '@sisense/sdk-query-client';
|
|
3
|
-
import {
|
|
3
|
+
import type { ExecuteQueryParams } from '../../../../domains/query-execution/types.js';
|
|
4
4
|
/**
|
|
5
|
-
* Converts
|
|
5
|
+
* Converts ExecuteQueryParams to JAQL payload
|
|
6
6
|
*
|
|
7
7
|
* This is a pure TypeScript function that works in Node.js environments
|
|
8
8
|
* and converts query parameters to JAQL without requiring React hooks or browser APIs.
|
|
9
9
|
*
|
|
10
10
|
* Reuses the existing query preparation logic from executeQuery to avoid duplication.
|
|
11
11
|
*
|
|
12
|
-
* @param queryParams -
|
|
12
|
+
* @param queryParams - Query parameters (execution-only fields are not reflected in JAQL beyond prepareQueryParams)
|
|
13
13
|
* @param defaultDataSource - Default data source if not specified in queryParams
|
|
14
14
|
* @param shouldSkipHighlightsWithoutAttributes - Whether to skip highlights without corresponding attributes
|
|
15
15
|
* @returns The JAQL query payload
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
18
|
-
export declare function translateQueryToJaql(queryParams:
|
|
18
|
+
export declare function translateQueryToJaql(queryParams: ExecuteQueryParams, defaultDataSource?: DataSource, shouldSkipHighlightsWithoutAttributes?: boolean): JaqlQueryPayload;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ExecuteQueryParams } from '../../../../domains/query-execution/index.js';
|
|
2
2
|
import { NlqResponseJSON, NlqTranslationResult } from '../../types.js';
|
|
3
3
|
/**
|
|
4
|
-
* Translates CSDK
|
|
4
|
+
* Translates CSDK ExecuteQueryParams to NLQ JSON format.
|
|
5
5
|
* Direction: CSDK → JSON
|
|
6
6
|
*
|
|
7
7
|
* Converts CSDK objects (Attribute[], Measure[], Filter[], FilterRelations) to NLQ FunctionCall format.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```typescript
|
|
11
|
-
* const query:
|
|
11
|
+
* const query: ExecuteQueryParams = {
|
|
12
12
|
* dimensions: [DM.Category.Category, DM.Brand.Brand],
|
|
13
13
|
* measures: [
|
|
14
14
|
* measureFactory.sum(DM.Commerce.Revenue, 'Total Revenue'),
|
|
@@ -49,8 +49,8 @@ import { NlqResponseJSON, NlqTranslationResult } from '../../types.js';
|
|
|
49
49
|
* });
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
|
-
* @param query -
|
|
52
|
+
* @param query - ExecuteQueryParams object with CSDK objects
|
|
53
53
|
* @returns NlqTranslationResult<NlqResponseJSON> with FunctionCall format or structured errors
|
|
54
54
|
* @internal
|
|
55
55
|
*/
|
|
56
|
-
export declare function translateQueryToJSON(query:
|
|
56
|
+
export declare function translateQueryToJSON(query: ExecuteQueryParams): NlqTranslationResult<NlqResponseJSON>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Arg, type ArgValue, Attribute, Filter, FilterRelations, type FunctionCall, JaqlDataSourceForDto, JSONArray, Measure, PivotGrandTotals } from '@sisense/sdk-data';
|
|
2
|
-
import { CategoryStyle, SeriesStyle, ValueStyle } from '../../../
|
|
2
|
+
import { CategoryStyle, SeriesStyle, ValueStyle } from '../../../domains/visualizations/core/chart-data-options/types.js';
|
|
3
3
|
import type { PivotTableStyleOptions } from '../../../types.js';
|
|
4
4
|
import { DataSchemaContext, NlqTranslationInput } from '../types.js';
|
|
5
5
|
import type { SchemaIndex } from './shared/utils/schema-index.js';
|
|
@@ -138,7 +138,7 @@ export interface SisenseContextProviderProps {
|
|
|
138
138
|
*/
|
|
139
139
|
ssoMaxAuthRedirectAttempts?: number;
|
|
140
140
|
/**
|
|
141
|
-
* Milliseconds after the latest redirect timestamp before the counter resets. Use `0` to disable expiry (counter only resets on successful auth). Default is `
|
|
141
|
+
* Milliseconds after the latest redirect timestamp before the counter resets. Use `0` to disable expiry (counter only resets on successful auth). Default is `10000` (10 seconds).
|
|
142
142
|
*
|
|
143
143
|
* @category Sisense Authentication
|
|
144
144
|
* @alpha
|
|
@@ -249,7 +249,7 @@ highchartsOptions: HighchartsOptions) => HighchartsOptions;
|
|
|
249
249
|
*
|
|
250
250
|
* @param renderOptions - The render options to check
|
|
251
251
|
* @returns whether the render options are of type HighchartsOptions
|
|
252
|
-
* @
|
|
252
|
+
* @alpha
|
|
253
253
|
*/
|
|
254
254
|
export declare const isHighchartsOptions: (renderOptions: any) => renderOptions is HighchartsOptions;
|
|
255
255
|
/**
|
|
@@ -257,7 +257,7 @@ export declare const isHighchartsOptions: (renderOptions: any) => renderOptions
|
|
|
257
257
|
*
|
|
258
258
|
* @param renderOptions - The render options to check
|
|
259
259
|
* @returns whether the render options are of type IndicatorRenderOptions
|
|
260
|
-
* @
|
|
260
|
+
* @alpha
|
|
261
261
|
*/
|
|
262
262
|
export declare const isIndicatorRenderOptions: (renderOptions: any) => renderOptions is IndicatorRenderOptions;
|
|
263
263
|
/**
|
|
@@ -522,7 +522,7 @@ interface IndicatorChartEventProps extends BaseChartEventProps {
|
|
|
522
522
|
* Event props for CalendarHeatmap chart which uses CalendarHeatmapDataPoint type
|
|
523
523
|
* to describe data points for events.
|
|
524
524
|
*
|
|
525
|
-
* @
|
|
525
|
+
* @alpha
|
|
526
526
|
*/
|
|
527
527
|
export interface CalendarHeatmapChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
|
|
528
528
|
/**
|
|
@@ -5,3 +5,8 @@
|
|
|
5
5
|
* Not recommended for production use.
|
|
6
6
|
*/
|
|
7
7
|
export { useDashboardTheme } from '../domains/dashboarding/use-dashboard-theme.js';
|
|
8
|
+
export type { ThemeConfig } from '../types';
|
|
9
|
+
export { type TranslationDictionary, PACKAGE_NAMESPACE as translationNamespace, } from '../infra/translation/resources';
|
|
10
|
+
export { CascadingFilterTile, type CascadingFilterTileProps, } from '../domains/filters/components/cascading-filter-tile';
|
|
11
|
+
export { CustomFilterTile, type CustomFilterTileProps, } from '../domains/filters/components/custom-filter-tile';
|
|
12
|
+
export { isIndicatorRenderOptions, isHighchartsOptions, type HighchartsOptions, type CalendarHeatmapChartEventProps, } from '../props';
|
|
@@ -14,15 +14,24 @@ export { getWidgetModel } from '../domains/widgets/widget-model';
|
|
|
14
14
|
export { getHierarchyModels } from '../domains/drilldown/hierarchy-model';
|
|
15
15
|
export { getThemeSettingsByOid } from '../infra/themes/theme-loader';
|
|
16
16
|
export { getDefaultThemeSettings } from '../infra/contexts/theme-provider/default-theme-settings';
|
|
17
|
+
export { type CompleteThemeSettings } from '../types';
|
|
17
18
|
export { updateDrilldownSelections } from '../domains/drilldown/hooks/use-drilldown-core';
|
|
18
19
|
export { getSelectionTitleMenuItem, getDrilldownMenuItems, } from '../domains/drilldown/hooks/use-drilldown';
|
|
19
20
|
export { processDrilldownSelections } from '../domains/drilldown/hooks/use-drilldown-core';
|
|
20
21
|
export { CommonWidget, type CommonWidgetProps } from '../domains/widgets/components/common-widget';
|
|
21
|
-
export {
|
|
22
|
+
export { type TextWidgetDataPointEventHandler } from '../props';
|
|
23
|
+
export { TabberButtonsWidget } from '../domains/widgets/components/tabber-buttons-widget';
|
|
24
|
+
export type { TextWidgetDataPoint } from '../types';
|
|
25
|
+
export { widgetHelpers } from '../domains/widgets/helpers';
|
|
22
26
|
export { CustomWidgetsProviderAdapter, type CustomWidgetsContextAdapter, type CustomWidgetsProviderAdapterProps, } from '../infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter';
|
|
27
|
+
export type { CustomContextProviderProps } from '../types';
|
|
28
|
+
export { type CustomSisenseContext, type CustomSisenseContextProviderProps, CustomSisenseContextProvider, } from '../infra/contexts/sisense-context/custom-sisense-context-provider';
|
|
29
|
+
export { type CustomThemeProviderProps, CustomThemeProvider, } from '../infra/contexts/theme-provider/custom-theme-provider';
|
|
23
30
|
export { CustomPluginContextProvider } from '../infra/plugins/custom-plugin-context-provider.js';
|
|
24
31
|
export type { CustomPluginContextProviderProps, CustomPluginContextProviderContext, } from '../infra/plugins/custom-plugin-context-provider.js';
|
|
32
|
+
export { DateFilter, type DateRangeFilterProps, type DateFilterRange, } from '../domains/filters/components/date-filter/date-filter/date-filter';
|
|
25
33
|
export { useGetSharedFormulaInternal } from '../domains/formulas/use-get-shared-formula';
|
|
34
|
+
export { useGetDataSourceDimensionsInternal } from '../domains/data-browser/data-source-dimensional-model';
|
|
26
35
|
export { translateColumnToAttribute } from '../domains/visualizations/core/chart-data-options/utils';
|
|
27
36
|
export { isSameAttribute } from '../shared/utils/filters';
|
|
28
37
|
export { isTextWidgetProps, isCustomWidgetProps, } from '../domains/widgets/components/widget-by-id/utils';
|
|
@@ -31,4 +40,6 @@ export type { SoftUnion } from '../shared/utils/utility-types';
|
|
|
31
40
|
export type { BeforeMenuOpenHandler } from '../infra/contexts/menu-provider/types';
|
|
32
41
|
export { type DataState, type DataLoadingState, type DataErrorState, type DataSuccessState, dataLoadStateReducer, } from '../shared/hooks/data-load-state-reducer';
|
|
33
42
|
export { trackHook } from '../infra/decorators/hook-decorators/with-tracking';
|
|
34
|
-
export {
|
|
43
|
+
export { useComposedDashboardInternal } from '../domains/dashboarding/use-composed-dashboard';
|
|
44
|
+
export { useExecuteCustomWidgetQueryInternal } from '../infra/contexts/custom-widgets-provider';
|
|
45
|
+
export { useGetDataSourceFields } from '../domains/data-browser/data-source-dimensional-model';
|
|
@@ -14,8 +14,8 @@ export { FunnelChart } from '../domains/visualizations/components/funnel-chart';
|
|
|
14
14
|
export { PolarChart } from '../domains/visualizations/components/polar-chart';
|
|
15
15
|
export { ScatterChart } from '../domains/visualizations/components/scatter-chart';
|
|
16
16
|
export { IndicatorChart } from '../domains/visualizations/components/indicator-chart';
|
|
17
|
-
export
|
|
18
|
-
export
|
|
17
|
+
export { Table } from '../domains/visualizations/components/table';
|
|
18
|
+
export { PivotTable } from '../domains/visualizations/components/pivot-table';
|
|
19
19
|
export { TreemapChart } from '../domains/visualizations/components/treemap-chart';
|
|
20
20
|
export { SunburstChart } from '../domains/visualizations/components/sunburst-chart';
|
|
21
21
|
export { BoxplotChart } from '../domains/visualizations/components/boxplot-chart';
|
|
@@ -23,7 +23,7 @@ export { ScattermapChart } from '../domains/visualizations/components/scattermap
|
|
|
23
23
|
export { AreamapChart } from '../domains/visualizations/components/areamap-chart';
|
|
24
24
|
export { AreaRangeChart } from '../domains/visualizations/components/area-range-chart';
|
|
25
25
|
export { CalendarHeatmapChart } from '../domains/visualizations/components/calendar-heatmap-chart';
|
|
26
|
-
export
|
|
26
|
+
export { DashboardById, Dashboard, useComposedDashboard, type ComposableDashboardProps, type UseComposedDashboardOptions, type ComposedDashboardResult, type DashboardByIdProps, type DashboardProps, type DashboardLayoutOptions, type DashboardStyleOptions, type DashboardConfig, type DashboardByIdConfig, type WidgetsPanelConfig, type EditModeConfig, type DashboardFiltersPanelConfig, type TabbersConfig, type TabberConfig, type TabberTabConfig, type DashboardChangeEvent, type DashboardFiltersUpdatedEvent, type DashboardFiltersPanelCollapseChangedEvent, type DashboardWidgetsPanelLayoutUpdatedEvent, type DashboardWidgetsPanelIsEditingChangedEvent, type DashboardWidgetsDeletedEvent, } from '../domains/dashboarding';
|
|
27
27
|
/**
|
|
28
28
|
* Jump To Dashboard (JTD) configuration types
|
|
29
29
|
*
|
|
@@ -31,34 +31,37 @@ export * from '../domains/dashboarding';
|
|
|
31
31
|
* @shortDescription Configuration types for Jump To Dashboard functionality
|
|
32
32
|
*/
|
|
33
33
|
export type { JumpToDashboardConfig } from '../domains/dashboarding/hooks/jtd';
|
|
34
|
+
export type { JumpToDashboardConfigForPivot, JtdTarget, TriggerMethod, } from '../domains/dashboarding/hooks/jtd';
|
|
34
35
|
export { useJtdWidget } from '../domains/dashboarding/hooks/use-jtd-widget';
|
|
35
36
|
export { WidgetById } from '../domains/widgets/components/widget-by-id/widget-by-id';
|
|
36
37
|
export { type CartesianWidgetType, type CategoricalWidgetType, type TabularWidgetType, type TextWidgetType, } from '../domains/widgets/components/widget-by-id/types';
|
|
37
38
|
export { ExecuteQuery, ExecuteQueryByWidgetId, useExecuteQuery, useExecuteCsvQuery, useExecuteQueryByWidgetId, useExecutePivotQuery, } from '../domains/query-execution';
|
|
38
|
-
export type { QueryState, QueryLoadingState, QuerySuccessState, QueryErrorState, CsvQueryState, CsvQueryLoadingState, CsvQuerySuccessState, CsvQueryErrorState, PivotQueryState, PivotQueryLoadingState, PivotQuerySuccessState, PivotQueryErrorState,
|
|
39
|
-
export { extractDimensionsAndMeasures, useExecuteCustomWidgetQuery,
|
|
39
|
+
export type { QueryState, QueryLoadingState, QuerySuccessState, QueryErrorState, CsvQueryState, CsvQueryLoadingState, CsvQuerySuccessState, CsvQueryErrorState, PivotQueryState, PivotQueryLoadingState, PivotQuerySuccessState, PivotQueryErrorState, ExecuteQueryParams, ExecuteQueryResult, ExecuteCsvQueryParams, ExecuteCSVQueryConfig, ExecuteQueryByWidgetIdParams, QueryByWidgetIdState, QueryByWidgetIdQueryParams, ExecutePivotQueryParams, } from '../domains/query-execution/types';
|
|
40
|
+
export { extractDimensionsAndMeasures, useExecuteCustomWidgetQuery, type ExecuteCustomWidgetQueryParams, type CustomWidgetQueryState, } from '../infra/contexts/custom-widgets-provider';
|
|
40
41
|
export { SisenseContextProvider } from '../infra/contexts/sisense-context/sisense-context-provider';
|
|
41
|
-
export * from '../infra/contexts/sisense-context/custom-sisense-context-provider';
|
|
42
|
-
export * from '../infra/contexts/theme-provider/custom-theme-provider';
|
|
43
42
|
export { DrilldownWidget } from '../domains/drilldown/components/drilldown-widget';
|
|
44
43
|
export { ChartWidget, type ChartWidgetProps } from '../domains/widgets/components/chart-widget';
|
|
45
44
|
export { PivotTableWidget, type PivotTableWidgetProps, } from '../domains/widgets/components/pivot-table-widget';
|
|
46
|
-
export {
|
|
45
|
+
export { type TextWidgetProps } from '../domains/widgets/components/text-widget';
|
|
47
46
|
export { Widget, type WidgetProps, type WidgetType, type WithCommonWidgetProps, } from '../domains/widgets/components/widget';
|
|
48
47
|
export { type CustomWidgetProps } from '../domains/widgets/components/custom-widget';
|
|
49
|
-
export { TabberButtonsWidget } from '../domains/widgets/components/tabber-buttons-widget';
|
|
50
48
|
export { DrilldownBreadcrumbs } from '../domains/drilldown/components/drilldown-breadcrumbs';
|
|
51
|
-
export
|
|
49
|
+
export type { CustomWidgetComponentProps, CustomWidgetComponent, } from '../infra/contexts/custom-widgets-provider/types';
|
|
52
50
|
export { useCustomWidgets, type UseCustomWidgetsResult, } from '../infra/contexts/custom-widgets-provider';
|
|
53
|
-
export { useGetDashboardModel, useGetDashboardModels,
|
|
51
|
+
export { useGetDashboardModel, useGetDashboardModels, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type WidgetsOptions, type SpecificWidgetOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, } from '../domains/dashboarding/dashboard-model';
|
|
54
52
|
export { useGetWidgetModel, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, } from '../domains/widgets/widget-model';
|
|
55
53
|
export { useGetHierarchyModels, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, } from '../domains/drilldown/hierarchy-model';
|
|
56
|
-
export
|
|
54
|
+
export { MemberFilterTile, type MemberFilterTileProps, type Member, type SelectedMember, } from '../domains/filters/components/member-filter-tile';
|
|
55
|
+
export { DateRangeFilterTile, type DateRangeFilterTileProps, } from '../domains/filters/components/date-filter/date-range-filter-tile';
|
|
56
|
+
export { RelativeDateFilterTile, type RelativeDateFilterTileProps, } from '../domains/filters/components/date-filter/relative-date-filter-tile';
|
|
57
|
+
export { CriteriaFilterTile, type CriteriaFilterTileProps, } from '../domains/filters/components/criteria-filter-tile';
|
|
58
|
+
export { FiltersPanel, type FiltersPanelProps, type FiltersPanelConfig, } from '../domains/filters/components/filters-panel';
|
|
59
|
+
export { FilterTile, type FilterTileProps } from '../domains/filters/components/filter-tile';
|
|
60
|
+
export { type FilterVariant } from '../domains/filters/components/common/filter-utils';
|
|
61
|
+
export { useGetFilterMembers, type GetFilterMembersParams, type FilterMembersState, type FilterMembersLoadingState, type FilterMembersSuccessState, type FilterMembersErrorState, type GetFilterMembersResult, type GetFilterMembersData, } from '../domains/filters/hooks/use-get-filter-members';
|
|
57
62
|
export { useGetSharedFormula, type GetSharedFormulaParams, type UseGetSharedFormulaParams, type SharedFormulaState, type SharedFormulaLoadingState, type SharedFormulaErrorState, type SharedFormulaSuccessState, } from '../domains/formulas';
|
|
58
|
-
export {
|
|
59
|
-
export { useGetDataSourceDimensions, useGetDataSourceFields, type GetDataSourceDimensionsParams, type DataSourceDimensionsState, type DataSourceDimensionsLoadingState, type DataSourceDimensionsErrorState, type DataSourceDimensionsSuccessState, } from '../domains/data-browser/data-source-dimensional-model';
|
|
63
|
+
export { useGetDataSourceDimensions, type GetDataSourceDimensionsParams, type DataSourceDimensionsState, type DataSourceDimensionsLoadingState, type DataSourceDimensionsErrorState, type DataSourceDimensionsSuccessState, } from '../domains/data-browser/data-source-dimensional-model';
|
|
60
64
|
export { ThemeProvider } from '../infra/contexts/theme-provider';
|
|
61
|
-
export { LoadingIndicator } from '../shared/components/loading-indicator';
|
|
62
65
|
export { LoadingOverlay, type LoadingOverlayProps } from '../shared/components/loading-overlay';
|
|
63
66
|
export { ContextMenu } from '../shared/components/menu/context-menu/context-menu';
|
|
64
67
|
/**
|
|
@@ -89,10 +92,9 @@ export * as dashboardModelTranslator from '../domains/dashboarding/dashboard-mod
|
|
|
89
92
|
*/
|
|
90
93
|
export * as dashboardHelpers from '../domains/dashboarding/dashboard-helpers';
|
|
91
94
|
export type { EmptyObject } from '../shared/utils/utility-types';
|
|
92
|
-
export { type TranslationDictionary, PACKAGE_NAMESPACE as translationNamespace, } from '../infra/translation/resources';
|
|
93
95
|
export { useFetch, type RequestConfig, type UseQueryResult } from '../shared/hooks/use-fetch';
|
|
94
|
-
export
|
|
96
|
+
export type { StyledColumn, SeriesStyleOptions, StyledMeasureColumn, CartesianChartDataOptions, CategoricalChartDataOptions, IndicatorChartDataOptions, ScatterChartDataOptions, AreamapChartDataOptions, CalendarHeatmapChartDataOptions, TableDataOptions, TabularChartDataOptions, PivotTableDataOptions, ScattermapLocationLevel, ScattermapChartDataOptions, BoxWhiskerType, BoxplotChartDataOptions, BoxplotChartCustomDataOptions, AreaRangeMeasureColumn, RangeChartDataOptions, ChartDataOptions, RegularChartDataOptions, } from '../domains/visualizations/core/chart-data-options/types';
|
|
97
|
+
export type { TabberButtonsWidgetProps, SisenseContextProviderProps, ExecuteQueryProps, ThemeProviderProps, BeforeRenderHandler, IndicatorBeforeRenderHandler, ChartDataPointsEventHandler, DataPointsEventHandler, DataPointEventHandler, ScatterDataPointEventHandler, ScatterDataPointsEventHandler, AreamapDataPointEventHandler, ScattermapDataPointEventHandler, BoxplotDataPointEventHandler, IndicatorDataPointEventHandler, CalendarHeatmapDataPointEventHandler, CalendarHeatmapDataPointsEventHandler, PivotTableDataPointEventHandler, ChartEventProps, ChartProps, AreaChartProps, StreamgraphChartProps, BarChartProps, ColumnChartProps, FunnelChartProps, LineChartProps, PieChartProps, PolarChartProps, IndicatorChartProps, TableProps, PivotTableProps, ScatterChartProps, WidgetByIdProps, ExecuteQueryByWidgetIdProps, TreemapChartProps, SunburstChartProps, BoxplotChartProps, ScattermapChartProps, AreamapChartProps, AreaRangeChartProps, ContextMenuProps, DrilldownBreadcrumbsProps, DrilldownWidgetConfig, DrilldownWidgetProps, CalendarHeatmapChartProps, } from '../props';
|
|
95
98
|
export type { AutoZoomNavigatorScrollerLocation } from '../domains/widgets/components/widget-by-id/types';
|
|
96
|
-
export
|
|
97
|
-
export
|
|
98
|
-
export * from '../shared/utils/gradient';
|
|
99
|
+
export type { SortDirection, PivotRowsSort, AppConfig, DateConfig, CalendarDayOfWeek, IndicatorComponents, ScatterMarkerSize, LegendPosition, Coordinates, TableColorOptions, IndicatorRenderOptions, GeoDataElement, RawGeoDataElement, CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, CalendarHeatmapChartType, TableType, TableChartType, RangeChartType, TextStyle, DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, MonthOfYear, DayOfWeek, DateLevel, TabberButtonsWidgetStyleOptions, TabberButtonsWidgetCustomOptions, Color, ColorPaletteTheme, Navigator, LineWidth, DashStyle, EndCapType, LineOptions, Markers, X2Title, SeriesLabelsTextStyle, SeriesLabelsBase, SeriesLabelsAligning, SeriesLabels, TotalLabelsTextStyle, TotalLabels, LegendTitleOptions, LegendItemsOptions, LegendSymbolsOptions, LegendOptions, Legend, Labels, AxisLabel, Convolution, DataLimits, LineStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, StreamgraphStyleOptions, StackableStyleOptions, PiePercentageLabels, PieSeriesLabels, PieStyleOptions, FunnelSeriesLabels, FunnelStyleOptions, PolarStyleOptions, IndicatorStyleOptions, TableStyleOptions, TabularChartStyleOptions, PivotTableStyleOptions, NumericSimpleIndicatorStyleOptions, NumericBarIndicatorStyleOptions, GaugeIndicatorStyleOptions, ScatterSeriesLabels, ScatterStyleOptions, TreemapSeriesLabels, TreemapStyleOptions, SunburstSeriesLabelsBase, SunburstSeriesLabels, SunburstStyleOptions, BoxplotStyleOptions, AreamapType, AreamapStyleOptions, ScattermapMarkers, ScattermapStyleOptions, CalendarHeatmapCellLabels, CalendarHeatmapSubtype, CalendarHeatmapStyleOptions, CalendarHeatmapViewType, ChartStyleOptions, RegularChartStyleOptions, ValueToColorMap, MultiColumnValueToColorMap, ChartType, RegularChartType, SeriesChartType, DecimalScale, NumberFormatConfig, ThemeOid, ChartThemeSettings, AiChatThemeSettings, ThemeSettingsFontSource, ThemeSettingsFont, FontsLoaderSettings, TypographyThemeSettings, GeneralThemeSettings, SpaceSizes, RadiusSizes, ShadowsTypes, AlignmentTypes, WidgetThemeSettings, FilterThemeSettings, ThemeSettings, WidgetStyleOptions, WidgetContainerStyleOptions, WidgetByIdStyleOptions, ChartWidgetStyleOptions, PivotTableWidgetStyleOptions, TextWidgetStyleOptions, CustomWidgetStyleOptions, DrilldownOptions, PivotTableDrilldownOptions, PivotTableSelectableDrilldownOptions, PivotTableNonSelectableDrilldownOptions, DrilldownSelection, DataOptionLocation, ChartDataPoints, ChartDataPoint, DataPoint, DataPointEntry, BasicDataPointEntry, AttributeDataPointEntry, MeasureDataPointEntry, ScatterDataPoint, BoxplotDataPoint, IndicatorDataPoint, CalendarHeatmapDataPoint, PivotTableDataPoint, AreamapDataPoint, ScattermapDataPoint, CustomWidgetDataPoint, CustomWidgetDataPointEventHandler, CustomWidgetDataPointContextMenuHandler, CustomWidgetDataPointsEventHandler, CustomWidgetEventProps, AbstractDataPointWithEntries, MenuPosition, MenuItemSection, CustomDrilldownResult, LoadingIndicatorConfig, GenericDataOptions, NestedTranslationResources, CustomTranslationObject, TranslationConfig, } from '../types';
|
|
100
|
+
export { type GradientPosition, type ColorValue, type GradientStop, type LinearGradientDirection, type RadialGradientConfig, type LinearGradientColor, type RadialGradientColor, type GradientColor, isLinearGradient, isRadialGradient, isGradient, GradientDirections, RadialGradientPresets, createLinearGradient, createRadialGradient, } from '../shared/utils/gradient';
|
|
@@ -27,10 +27,10 @@ export { type NarrativeQueryParams } from '../domains/narrative/core/build-narra
|
|
|
27
27
|
export { useGetWidgetNarrative, type UseGetWidgetNarrativeOptions, type UseGetWidgetNarrativeParams, type UseGetWidgetNarrativeResult, } from '../domains/narrative/hooks/use-get-widget-narrative.js';
|
|
28
28
|
export { WidgetNarrative, type WidgetNarrativeProps, } from '../domains/narrative/components/widget-narrative.js';
|
|
29
29
|
export type { NlqChartWidgetStyleOptions } from '../types';
|
|
30
|
-
export type { RenderTitleHandler } from '../types';
|
|
30
|
+
export type { RenderToolbarHandler, RenderTitleHandler } from '../types';
|
|
31
31
|
export { isChartWidgetProps } from '../domains/widgets/components/widget-by-id/utils.js';
|
|
32
32
|
export { isPivotTableWidgetProps } from '../domains/widgets/components/widget-by-id/utils.js';
|
|
33
33
|
export { useDashboardPersistence } from '../domains/dashboarding/dashboard-model';
|
|
34
34
|
export { createDashboardPersistenceManager } from '../domains/dashboarding/persistence/persistence-manager.js';
|
|
35
35
|
export type { DashboardPersistenceManager } from '../domains/dashboarding/persistence/types.js';
|
|
36
|
-
export { QueryDefinition, type QueryDefinitionProps,
|
|
36
|
+
export { QueryDefinition, type QueryDefinitionProps, } from '../domains/visualizations/core/query-definition';
|
|
@@ -17,6 +17,8 @@ export type FiltersMergeStrategy = `${FiltersMergeStrategyEnum}`;
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function getRelationsAsText(relations: FilterRelationsRules, filters: Filter[]): string;
|
|
19
19
|
/**
|
|
20
|
+
* Builds tooltip lines: adds `(` / `)` around each logical subtree from `splitFiltersAndRelations`.
|
|
21
|
+
*
|
|
20
22
|
* @internal
|
|
21
23
|
*/
|
|
22
24
|
export declare function getFilterRelationsDescription(relations: FilterRelationsRules, filters: Filter[]): FilterRelationsDescription;
|