@sisense/sdk-ui 1.22.0 → 1.24.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 +53 -45
- package/dist/ai.js +780 -702
- package/dist/analytics-composer.cjs +89 -148
- package/dist/analytics-composer.js +1196 -1479
- package/dist/index.cjs +119 -118
- package/dist/index.js +4898 -5523
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +3 -23
- package/dist/packages/sdk-ui/src/ai/chart/chart-insights.d.ts +6 -0
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +46 -0
- package/dist/packages/sdk-ui/src/ai/icons/ai-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/ai/icons/exclamation-mark-brand-icon.d.ts +3 -0
- package/dist/packages/sdk-ui/src/ai/index.d.ts +2 -3
- package/dist/packages/sdk-ui/src/ai/messages/chart-message.d.ts +1 -2
- package/dist/packages/sdk-ui/src/ai/use-get-data-source-fields.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/{translators → code}/code-templates.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/{translators → code}/generate-code.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/{translators → common}/utils.d.ts +3 -1
- package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +12 -1
- package/dist/packages/sdk-ui/src/analytics-composer/query/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/analytics-composer/{translators → query}/query-translator.d.ts +2 -3
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +153 -0
- package/dist/packages/sdk-ui/src/{ai/messages → analytics-composer/widget/chart-options}/get-widget-options.d.ts +5 -14
- package/dist/packages/sdk-ui/src/analytics-composer/widget/stringify-filters.d.ts +2 -0
- package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-code.d.ts +3 -0
- package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-props.d.ts +3 -0
- package/dist/packages/sdk-ui/src/analytics-composer/widget/widget-composer.d.ts +16 -0
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +13 -2
- package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +1 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +7 -7
- package/dist/packages/sdk-ui/src/app/settings/types/user.d.ts +0 -1
- package/dist/packages/sdk-ui/src/chart/advanced-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/helpers/derive-chart-family.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/regular-chart.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/horizontal-collapse.d.ts +6 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +6 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-filters-panel-collapsed-state.d.ts +8 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +19 -1
- package/dist/packages/sdk-ui/src/decorators/component-decorators/with-error-boundary.d.ts +3 -1
- package/dist/packages/sdk-ui/src/error-boundary/error-boundary.d.ts +4 -2
- package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/common/member-radio.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/custom-filter-tile.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/helpers.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-tile.d.ts +3 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/trash-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-list.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +3 -1
- package/dist/packages/sdk-ui/src/index.d.ts +15 -8
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +2 -4
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +24 -16
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/hierarchy/get-hierarchy-models.d.ts +6 -1
- package/dist/packages/sdk-ui/src/models/hierarchy/hierarchy-model-translator.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/hierarchy/types.d.ts +3 -0
- package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +4 -4
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +12 -2
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +3 -1
- package/dist/packages/sdk-ui/src/props.d.ts +29 -17
- package/dist/packages/sdk-ui/src/query-execution/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +1 -3
- package/dist/packages/sdk-ui/src/sisense-context/sisense-context.d.ts +5 -0
- package/dist/packages/sdk-ui/src/table/table-component.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/i18n-provider.d.ts +3 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +27 -2
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +32 -4
- package/dist/packages/sdk-ui/src/types.d.ts +12 -5
- package/dist/packages/sdk-ui/src/utils/filters.d.ts +1 -0
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/dashboard-widget.d.ts +2 -1
- package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +4800 -0
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-panel-color-format.d.ts +3 -3
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-data-options.d.ts +5 -5
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-drilldown-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-filters.d.ts +85 -83
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/use-fetch-widget-dto-model.d.ts +3 -3
- package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/utils.d.ts +14 -13
- package/dist/packages/sdk-ui/src/widget-by-id/widget-by-id.d.ts +26 -0
- package/dist/packages/sdk-ui/src/widgets/common/use-drilldown-core.d.ts +7 -0
- package/dist/packages/sdk-ui/src/widgets/common/widget-container.d.ts +2 -0
- package/dist/packages/sdk-ui/src/widgets/common/widget-errors-and-warnings-context.d.ts +14 -0
- package/dist/packages/sdk-ui/src/widgets/common/widget-header-info-button.d.ts +3 -1
- package/dist/packages/sdk-ui/src/widgets/common/widget-header.d.ts +2 -0
- package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +2 -0
- package/dist/useQuery-CIeSzN0Z.js +7945 -0
- package/dist/useQuery-LqaaNBLw.cjs +175 -0
- package/dist/widget-composer-CvgsMHyb.cjs +237 -0
- package/dist/widget-composer-L8kmRhgX.js +624 -0
- package/dist/widget-model-translator-CYeCKnTa.js +116687 -0
- package/dist/widget-model-translator-_Z-8UaTN.cjs +917 -0
- package/package.json +7 -7
- package/dist/get-widget-options-DTIulxC2.js +0 -44253
- package/dist/get-widget-options-DixoCEhn.cjs +0 -271
- package/dist/packages/sdk-ui/src/ai/messages/jaql-element.d.ts +0 -28
- package/dist/packages/sdk-ui/src/analytics-composer/translators/index.d.ts +0 -3
- package/dist/packages/sdk-ui/src/analytics-composer/translators/model-translator.d.ts +0 -48
- package/dist/packages/sdk-ui/src/analytics-composer/translators/translate-filters-to-code.d.ts +0 -2
- package/dist/packages/sdk-ui/src/analytics-composer/translators/types.d.ts +0 -95
- package/dist/packages/sdk-ui/src/dashboard/components/HorizontalCollapse.d.ts +0 -5
- package/dist/packages/sdk-ui/src/dashboard-widget/translate-dashboard-filters.d.ts +0 -4798
- package/dist/packages/sdk-ui/src/translation/custom-translations-loader.d.ts +0 -10
- package/dist/table-widget-CLL1iN3H.js +0 -79317
- package/dist/table-widget-CYCcYqzZ.cjs +0 -821
- /package/dist/packages/sdk-ui/src/analytics-composer/{translators → query}/query-templates.d.ts +0 -0
- /package/dist/packages/sdk-ui/src/analytics-composer/{translators/translate-props-to-code.d.ts → widget/stringify-props.d.ts} +0 -0
- /package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-style-options.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Attribute, Filter, Measure, DataSource, Data, QueryResultData, FilterRelations } from '@sisense/sdk-data';
|
|
2
|
-
import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions,
|
|
2
|
+
import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, DashboardWidgetStyleOptions } from './types';
|
|
3
3
|
import { HighchartsOptions } from './chart-options-processor/chart-options-service';
|
|
4
4
|
import { ComponentType, PropsWithChildren, ReactNode } from 'react';
|
|
5
5
|
import { IndicatorChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, ScatterChartDataOptions, TableDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, PivotTableDataOptions, RegularChartDataOptions, TabularChartDataOptions, RangeChartDataOptions } from './chart-data-options/types';
|
|
6
6
|
import { AppConfig } from './app/client-application';
|
|
7
7
|
import { ExecuteQueryParams, QueryByWidgetIdState } from './query-execution';
|
|
8
|
-
import { FiltersMergeStrategy } from './
|
|
8
|
+
import { FiltersMergeStrategy } from './widget-by-id/types';
|
|
9
9
|
import { HookEnableParam } from './common/hooks/types';
|
|
10
10
|
import { ExecuteQueryResult } from './query-execution/types';
|
|
11
11
|
import { Hierarchy } from './models';
|
|
@@ -88,10 +88,18 @@ export interface SisenseContextProviderProps {
|
|
|
88
88
|
* This callback is useful for handling errors that happen during the initialization or runtime of the Sisense context,
|
|
89
89
|
* such as incorrect configuration, invalid authentication, or network-related issues.
|
|
90
90
|
*
|
|
91
|
-
* @param error - The error object containing details about the issue.
|
|
92
91
|
* @category Sisense App Error Handling
|
|
93
92
|
*/
|
|
94
|
-
onError?: (
|
|
93
|
+
onError?: (
|
|
94
|
+
/** The error object containing details about the issue. */
|
|
95
|
+
error: Error,
|
|
96
|
+
/** Additional details about the error, such as the component name and props that caused this error. */
|
|
97
|
+
errorDetails?: {
|
|
98
|
+
/** The name of the component that caused the error. */
|
|
99
|
+
componentName: string;
|
|
100
|
+
/** The props of the component that caused the error. */
|
|
101
|
+
componentProps: unknown;
|
|
102
|
+
}) => void;
|
|
95
103
|
/**
|
|
96
104
|
* Boolean flag to enable sending silent pre-authentication requests to the Sisense instance.
|
|
97
105
|
* Used to check if user is already authenticated, check is performed in an ivisible iframe.
|
|
@@ -701,7 +709,7 @@ export interface IndicatorChartProps extends BaseChartProps {
|
|
|
701
709
|
/**
|
|
702
710
|
* Props of the {@link Table} component.
|
|
703
711
|
*/
|
|
704
|
-
export interface TableProps {
|
|
712
|
+
export interface TableProps extends BaseChartEventProps {
|
|
705
713
|
/**
|
|
706
714
|
* {@inheritDoc ChartProps.dataSet}
|
|
707
715
|
*
|
|
@@ -797,9 +805,9 @@ export interface ScatterChartProps extends BaseChartProps, ScatterChartEventProp
|
|
|
797
805
|
styleOptions?: ScatterStyleOptions;
|
|
798
806
|
}
|
|
799
807
|
/**
|
|
800
|
-
* Props for the {@link
|
|
808
|
+
* Props for the {@link WidgetById} component
|
|
801
809
|
*/
|
|
802
|
-
export interface
|
|
810
|
+
export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | 'dataOptions' | 'chartType' | 'styleOptions'> {
|
|
803
811
|
/**
|
|
804
812
|
* Identifier of the widget
|
|
805
813
|
*
|
|
@@ -859,7 +867,7 @@ export interface DashboardWidgetProps extends Omit<ChartWidgetProps, 'dataSource
|
|
|
859
867
|
*
|
|
860
868
|
* @category Widget
|
|
861
869
|
*/
|
|
862
|
-
styleOptions?:
|
|
870
|
+
styleOptions?: WidgetByIdStyleOptions;
|
|
863
871
|
/**
|
|
864
872
|
* {@inheritDoc ChartWidgetProps.drilldownOptions}
|
|
865
873
|
*
|
|
@@ -868,6 +876,19 @@ export interface DashboardWidgetProps extends Omit<ChartWidgetProps, 'dataSource
|
|
|
868
876
|
*/
|
|
869
877
|
drilldownOptions?: DrilldownOptions;
|
|
870
878
|
}
|
|
879
|
+
/**
|
|
880
|
+
* Props for the {@link DashboardWidget} component
|
|
881
|
+
*
|
|
882
|
+
* @deprecated Use {@link WidgetById} and {@link WidgetByIdProps} instead
|
|
883
|
+
*/
|
|
884
|
+
export interface DashboardWidgetProps extends WidgetByIdProps {
|
|
885
|
+
/**
|
|
886
|
+
* Style options for the widget including the widget container and the chart or table inside.
|
|
887
|
+
*
|
|
888
|
+
* @category Widget
|
|
889
|
+
*/
|
|
890
|
+
styleOptions?: DashboardWidgetStyleOptions;
|
|
891
|
+
}
|
|
871
892
|
/**
|
|
872
893
|
* Props for the {@link ChartWidget} component
|
|
873
894
|
*
|
|
@@ -1469,12 +1490,3 @@ export interface UseGetSharedFormulaParams extends HookEnableParam {
|
|
|
1469
1490
|
*/
|
|
1470
1491
|
dataSource?: DataSource;
|
|
1471
1492
|
}
|
|
1472
|
-
/**
|
|
1473
|
-
* Params of the {@link CustomTranslationsLoader} component
|
|
1474
|
-
*
|
|
1475
|
-
* @internal
|
|
1476
|
-
*/
|
|
1477
|
-
export interface CustomTranslationsLoaderProps {
|
|
1478
|
-
customTranslations?: CustomTranslationObject[];
|
|
1479
|
-
children?: React.ReactNode;
|
|
1480
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Attribute, DataSource, Filter, FilterRelations, Measure, PivotAttribute, PivotGrandTotals, PivotMeasure, PivotQueryResultData, QueryResultData } from '@sisense/sdk-data';
|
|
2
2
|
import { DataLoadAction } from '../common/hooks/data-load-state-reducer';
|
|
3
|
-
import { FiltersMergeStrategy } from '../
|
|
3
|
+
import { FiltersMergeStrategy } from '../widget-by-id/types';
|
|
4
4
|
/**
|
|
5
5
|
* State of a query execution.
|
|
6
6
|
*/
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren, type FunctionComponent } from 'react';
|
|
2
2
|
import { SisenseContextPayload } from './sisense-context';
|
|
3
3
|
/** @internal */
|
|
4
|
-
export type CustomSisenseContext = SisenseContextPayload
|
|
5
|
-
showRuntimeErrors: boolean;
|
|
6
|
-
};
|
|
4
|
+
export type CustomSisenseContext = SisenseContextPayload;
|
|
7
5
|
/** @internal */
|
|
8
6
|
export type CustomSisenseContextProviderProps = {
|
|
9
7
|
context?: CustomSisenseContext;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ClientApplication } from '../app/client-application';
|
|
3
3
|
import { TrackingEventDetails } from '@sisense/sdk-tracking';
|
|
4
|
+
import { SisenseContextProviderProps } from '..';
|
|
4
5
|
export type SisenseContextPayload = {
|
|
5
6
|
isInitialized: boolean;
|
|
6
7
|
app?: ClientApplication;
|
|
@@ -9,6 +10,10 @@ export type SisenseContextPayload = {
|
|
|
9
10
|
packageName: string;
|
|
10
11
|
onTrackingEvent?: (payload: TrackingEventDetails) => void;
|
|
11
12
|
};
|
|
13
|
+
errorBoundary: {
|
|
14
|
+
showErrorBox: boolean;
|
|
15
|
+
onError?: SisenseContextProviderProps['onError'];
|
|
16
|
+
};
|
|
12
17
|
};
|
|
13
18
|
export declare const SisenseContext: import("react").Context<SisenseContextPayload>;
|
|
14
19
|
export declare const useSisenseContext: () => SisenseContextPayload;
|
|
@@ -5,4 +5,4 @@ export declare const PAGES_BATCH_SIZE = 10;
|
|
|
5
5
|
/**
|
|
6
6
|
* Component that renders a table with aggregation and pagination.
|
|
7
7
|
*/
|
|
8
|
-
export declare const TableComponent: ({ dataSet, dataOptions, styleOptions, filters, }: TableProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export declare const TableComponent: ({ dataSet, dataOptions, styleOptions, filters, onDataReady, }: TableProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { CustomTranslationObject } from '../types';
|
|
2
3
|
type I18nProviderProps = {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
userLanguage?: string;
|
|
6
|
+
customTranslations?: CustomTranslationObject[];
|
|
5
7
|
};
|
|
6
|
-
export declare const I18nProvider: ({ children, userLanguage }: I18nProviderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export declare const I18nProvider: ({ children, userLanguage, customTranslations, }: I18nProviderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
9
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export declare const translation: {
|
|
2
2
|
errors: {
|
|
3
3
|
noSisenseContext: string;
|
|
4
|
+
restApiNotReady: string;
|
|
4
5
|
componentRenderError: string;
|
|
5
6
|
sisenseContextNoAuthentication: string;
|
|
6
7
|
chartNoSisenseContext: string;
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
widgetByIdNoSisenseContext: string;
|
|
9
|
+
widgetByIdInvalidIdentifier: string;
|
|
9
10
|
dashboardWidgetsInvalidIdentifiers: string;
|
|
10
11
|
executeQueryNoSisenseContext: string;
|
|
11
12
|
executeQueryNoDataSource: string;
|
|
@@ -28,6 +29,8 @@ export declare const translation: {
|
|
|
28
29
|
failedToFetch: string;
|
|
29
30
|
};
|
|
30
31
|
widgetModel: {
|
|
32
|
+
incomleteWidget: string;
|
|
33
|
+
unsupportedWidgetTypeDto: string;
|
|
31
34
|
pivotWidgetNotSupported: string;
|
|
32
35
|
textWidgetNotSupported: string;
|
|
33
36
|
onlyTableWidgetSupported: string;
|
|
@@ -60,6 +63,7 @@ export declare const translation: {
|
|
|
60
63
|
cascadingFilterOriginalNotFound: string;
|
|
61
64
|
dashboardLoadFailed: string;
|
|
62
65
|
dashboardWithOidNotFound: string;
|
|
66
|
+
failedToAddWidget: string;
|
|
63
67
|
widgetWithOidNotFound: string;
|
|
64
68
|
widgetEmptyResponse: string;
|
|
65
69
|
dateFilterIncorrectOperator: string;
|
|
@@ -69,6 +73,7 @@ export declare const translation: {
|
|
|
69
73
|
unexpectedCacheValue: string;
|
|
70
74
|
notAMembersFilter: string;
|
|
71
75
|
drilldownNoInitialDimension: string;
|
|
76
|
+
otherWidgetTypesNotSupported: string;
|
|
72
77
|
};
|
|
73
78
|
errorBoxText: string;
|
|
74
79
|
chartNoData: string;
|
|
@@ -131,6 +136,12 @@ export declare const translation: {
|
|
|
131
136
|
max: string;
|
|
132
137
|
};
|
|
133
138
|
};
|
|
139
|
+
treemap: {
|
|
140
|
+
tooltip: {
|
|
141
|
+
ofTotal: string;
|
|
142
|
+
of: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
134
145
|
advanced: {
|
|
135
146
|
tooltip: {
|
|
136
147
|
min: string;
|
|
@@ -226,4 +237,18 @@ export declare const translation: {
|
|
|
226
237
|
};
|
|
227
238
|
};
|
|
228
239
|
};
|
|
240
|
+
/**
|
|
241
|
+
* A reference type containing all currently used translation keys.
|
|
242
|
+
* This type serves as a complete resource for creating custom translations,
|
|
243
|
+
* ensuring that all required keys are present and included.
|
|
244
|
+
* It can also be used as Partial to make sure custom translation does not contain any typos.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```typescript
|
|
248
|
+
* import { TranslationDictionary } from '@sisense/sdk-ui';
|
|
249
|
+
*
|
|
250
|
+
* const customTranslationResources: Partial<TranslationDictionary> = {
|
|
251
|
+
* ```
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
229
254
|
export type TranslationDictionary = typeof translation;
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { TranslationDictionary } from './en.js';
|
|
2
2
|
export type { TranslationDictionary };
|
|
3
|
+
/**
|
|
4
|
+
* A reference to the namespace of the translation resources.
|
|
5
|
+
* This namespace is used to access the translation resources in the i18next instance.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
3
9
|
export declare const PACKAGE_NAMESPACE: "sdkUi";
|
|
4
10
|
export declare const resources: {
|
|
5
11
|
en: {
|
|
6
12
|
errors: {
|
|
7
13
|
noSisenseContext: string;
|
|
14
|
+
restApiNotReady: string;
|
|
8
15
|
componentRenderError: string;
|
|
9
16
|
sisenseContextNoAuthentication: string;
|
|
10
17
|
chartNoSisenseContext: string;
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
widgetByIdNoSisenseContext: string;
|
|
19
|
+
widgetByIdInvalidIdentifier: string;
|
|
13
20
|
dashboardWidgetsInvalidIdentifiers: string;
|
|
14
21
|
executeQueryNoSisenseContext: string;
|
|
15
22
|
executeQueryNoDataSource: string;
|
|
@@ -32,6 +39,8 @@ export declare const resources: {
|
|
|
32
39
|
failedToFetch: string;
|
|
33
40
|
};
|
|
34
41
|
widgetModel: {
|
|
42
|
+
incomleteWidget: string;
|
|
43
|
+
unsupportedWidgetTypeDto: string;
|
|
35
44
|
pivotWidgetNotSupported: string;
|
|
36
45
|
textWidgetNotSupported: string;
|
|
37
46
|
onlyTableWidgetSupported: string;
|
|
@@ -64,6 +73,7 @@ export declare const resources: {
|
|
|
64
73
|
cascadingFilterOriginalNotFound: string;
|
|
65
74
|
dashboardLoadFailed: string;
|
|
66
75
|
dashboardWithOidNotFound: string;
|
|
76
|
+
failedToAddWidget: string;
|
|
67
77
|
widgetWithOidNotFound: string;
|
|
68
78
|
widgetEmptyResponse: string;
|
|
69
79
|
dateFilterIncorrectOperator: string;
|
|
@@ -73,6 +83,7 @@ export declare const resources: {
|
|
|
73
83
|
unexpectedCacheValue: string;
|
|
74
84
|
notAMembersFilter: string;
|
|
75
85
|
drilldownNoInitialDimension: string;
|
|
86
|
+
otherWidgetTypesNotSupported: string;
|
|
76
87
|
};
|
|
77
88
|
errorBoxText: string;
|
|
78
89
|
chartNoData: string;
|
|
@@ -135,6 +146,12 @@ export declare const resources: {
|
|
|
135
146
|
max: string;
|
|
136
147
|
};
|
|
137
148
|
};
|
|
149
|
+
treemap: {
|
|
150
|
+
tooltip: {
|
|
151
|
+
ofTotal: string;
|
|
152
|
+
of: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
138
155
|
advanced: {
|
|
139
156
|
tooltip: {
|
|
140
157
|
min: string;
|
|
@@ -233,11 +250,12 @@ export declare const resources: {
|
|
|
233
250
|
uk: {
|
|
234
251
|
errors: {
|
|
235
252
|
noSisenseContext: string;
|
|
253
|
+
restApiNotReady: string;
|
|
236
254
|
componentRenderError: string;
|
|
237
255
|
sisenseContextNoAuthentication: string;
|
|
238
256
|
chartNoSisenseContext: string;
|
|
239
|
-
|
|
240
|
-
|
|
257
|
+
widgetByIdNoSisenseContext: string;
|
|
258
|
+
widgetByIdInvalidIdentifier: string;
|
|
241
259
|
dashboardWidgetsInvalidIdentifiers: string;
|
|
242
260
|
executeQueryNoSisenseContext: string;
|
|
243
261
|
executeQueryNoDataSource: string;
|
|
@@ -260,6 +278,8 @@ export declare const resources: {
|
|
|
260
278
|
failedToFetch: string;
|
|
261
279
|
};
|
|
262
280
|
widgetModel: {
|
|
281
|
+
incomleteWidget: string;
|
|
282
|
+
unsupportedWidgetTypeDto: string;
|
|
263
283
|
pivotWidgetNotSupported: string;
|
|
264
284
|
textWidgetNotSupported: string;
|
|
265
285
|
onlyTableWidgetSupported: string;
|
|
@@ -292,6 +312,7 @@ export declare const resources: {
|
|
|
292
312
|
cascadingFilterOriginalNotFound: string;
|
|
293
313
|
dashboardLoadFailed: string;
|
|
294
314
|
dashboardWithOidNotFound: string;
|
|
315
|
+
failedToAddWidget: string;
|
|
295
316
|
widgetWithOidNotFound: string;
|
|
296
317
|
widgetEmptyResponse: string;
|
|
297
318
|
dateFilterIncorrectOperator: string;
|
|
@@ -301,6 +322,7 @@ export declare const resources: {
|
|
|
301
322
|
unexpectedCacheValue: string;
|
|
302
323
|
notAMembersFilter: string;
|
|
303
324
|
drilldownNoInitialDimension: string;
|
|
325
|
+
otherWidgetTypesNotSupported: string;
|
|
304
326
|
};
|
|
305
327
|
errorBoxText: string;
|
|
306
328
|
chartNoData: string;
|
|
@@ -363,6 +385,12 @@ export declare const resources: {
|
|
|
363
385
|
max: string;
|
|
364
386
|
};
|
|
365
387
|
};
|
|
388
|
+
treemap: {
|
|
389
|
+
tooltip: {
|
|
390
|
+
ofTotal: string;
|
|
391
|
+
of: string;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
366
394
|
advanced: {
|
|
367
395
|
tooltip: {
|
|
368
396
|
min: string;
|
|
@@ -1019,8 +1019,8 @@ export interface WidgetContainerStyleOptions {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
/** @internal */
|
|
1021
1021
|
export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
|
|
1022
|
-
/** Style settings defining the look and feel of
|
|
1023
|
-
export interface
|
|
1022
|
+
/** Style settings defining the look and feel of the widget created in Fusion */
|
|
1023
|
+
export interface WidgetByIdStyleOptions extends WidgetContainerStyleOptions {
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Total width of the component, which is considered in the following order of priority:
|
|
1026
1026
|
*
|
|
@@ -1039,6 +1039,13 @@ export interface DashboardWidgetStyleOptions extends WidgetContainerStyleOptions
|
|
|
1039
1039
|
*/
|
|
1040
1040
|
height?: number;
|
|
1041
1041
|
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Style settings defining the look and feel of DashboardWidget
|
|
1044
|
+
*
|
|
1045
|
+
* @deprecated Use {@link WidgetByIdStyleOptions} instead
|
|
1046
|
+
*/
|
|
1047
|
+
export interface DashboardWidgetStyleOptions extends WidgetByIdStyleOptions {
|
|
1048
|
+
}
|
|
1042
1049
|
/** Style settings defining the look and feel of ChartWidget */
|
|
1043
1050
|
export type ChartWidgetStyleOptions = ChartStyleOptions & WidgetContainerStyleOptions;
|
|
1044
1051
|
/**
|
|
@@ -1451,8 +1458,8 @@ export type CustomTranslationObject = {
|
|
|
1451
1458
|
*/
|
|
1452
1459
|
resources: NestedTranslationResources;
|
|
1453
1460
|
/**
|
|
1454
|
-
* The package name
|
|
1455
|
-
*
|
|
1461
|
+
* The translation namespace (usually a package name in camelCase). It identifies the specific context in which the translation is being registered.
|
|
1462
|
+
* If not specified, the default value is `sdkUi`.
|
|
1456
1463
|
*/
|
|
1457
|
-
|
|
1464
|
+
namespace?: string;
|
|
1458
1465
|
};
|
|
@@ -9,4 +9,5 @@ export declare const cloneFilter: <TFilter extends Filter>(filter: TFilter) => T
|
|
|
9
9
|
export declare function clearMembersFilter(filter: Filter): Filter;
|
|
10
10
|
export declare function isIncludeAllFilter(filter: Filter): boolean;
|
|
11
11
|
export declare function haveSameAttribute(filterA: Filter, filterB: Filter): boolean;
|
|
12
|
+
/** @internal */
|
|
12
13
|
export declare function isSameAttribute(attributeA: Attribute, attributeB: Attribute): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FunctionComponent } from 'react';
|
|
2
|
-
import { DashboardWidgetProps } from '../props';
|
|
2
|
+
import { DashboardWidgetProps } from '../props.js';
|
|
3
3
|
/**
|
|
4
4
|
* The Dashboard Widget component, which is a thin wrapper on the {@link ChartWidget} component,
|
|
5
5
|
* is used to render a widget created in a Sisense Fusion instance.
|
|
@@ -22,5 +22,6 @@ import { DashboardWidgetProps } from '../props';
|
|
|
22
22
|
*
|
|
23
23
|
* @group Fusion Assets
|
|
24
24
|
* @fusionEmbed
|
|
25
|
+
* @deprecated Use {@link WidgetById} instead.
|
|
25
26
|
*/
|
|
26
27
|
export declare const DashboardWidget: FunctionComponent<DashboardWidgetProps>;
|