@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.
Files changed (124) hide show
  1. package/dist/ai.cjs +53 -45
  2. package/dist/ai.js +780 -702
  3. package/dist/analytics-composer.cjs +89 -148
  4. package/dist/analytics-composer.js +1196 -1479
  5. package/dist/index.cjs +119 -118
  6. package/dist/index.js +4898 -5523
  7. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -1
  8. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +3 -23
  9. package/dist/packages/sdk-ui/src/ai/chart/chart-insights.d.ts +6 -0
  10. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +46 -0
  11. package/dist/packages/sdk-ui/src/ai/icons/ai-icon.d.ts +2 -0
  12. package/dist/packages/sdk-ui/src/ai/icons/exclamation-mark-brand-icon.d.ts +3 -0
  13. package/dist/packages/sdk-ui/src/ai/index.d.ts +2 -3
  14. package/dist/packages/sdk-ui/src/ai/messages/chart-message.d.ts +1 -2
  15. package/dist/packages/sdk-ui/src/ai/use-get-data-source-fields.d.ts +1 -1
  16. package/dist/packages/sdk-ui/src/analytics-composer/{translators → code}/code-templates.d.ts +1 -1
  17. package/dist/packages/sdk-ui/src/analytics-composer/{translators → code}/generate-code.d.ts +3 -3
  18. package/dist/packages/sdk-ui/src/analytics-composer/{translators → common}/utils.d.ts +3 -1
  19. package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +12 -1
  20. package/dist/packages/sdk-ui/src/analytics-composer/query/index.d.ts +1 -0
  21. package/dist/packages/sdk-ui/src/analytics-composer/{translators → query}/query-translator.d.ts +2 -3
  22. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +153 -0
  23. package/dist/packages/sdk-ui/src/{ai/messages → analytics-composer/widget/chart-options}/get-widget-options.d.ts +5 -14
  24. package/dist/packages/sdk-ui/src/analytics-composer/widget/stringify-filters.d.ts +2 -0
  25. package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-code.d.ts +3 -0
  26. package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-props.d.ts +3 -0
  27. package/dist/packages/sdk-ui/src/analytics-composer/widget/widget-composer.d.ts +16 -0
  28. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +13 -2
  29. package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/app/client-application.d.ts +7 -7
  31. package/dist/packages/sdk-ui/src/app/settings/types/user.d.ts +0 -1
  32. package/dist/packages/sdk-ui/src/chart/advanced-chart.d.ts +1 -1
  33. package/dist/packages/sdk-ui/src/chart/helpers/derive-chart-family.d.ts +8 -0
  34. package/dist/packages/sdk-ui/src/chart/regular-chart.d.ts +3 -0
  35. package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +1 -0
  36. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options.d.ts +2 -1
  37. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +2 -1
  38. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-options.d.ts +2 -1
  39. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +3 -2
  40. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -0
  41. package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +1 -0
  42. package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
  43. package/dist/packages/sdk-ui/src/dashboard/components/horizontal-collapse.d.ts +6 -0
  44. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +6 -1
  45. package/dist/packages/sdk-ui/src/dashboard/hooks/use-filters-panel-collapsed-state.d.ts +8 -0
  46. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +19 -1
  47. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-error-boundary.d.ts +3 -1
  48. package/dist/packages/sdk-ui/src/error-boundary/error-boundary.d.ts +4 -2
  49. package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -0
  50. package/dist/packages/sdk-ui/src/filters/components/common/member-radio.d.ts +8 -0
  51. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +2 -0
  52. package/dist/packages/sdk-ui/src/filters/components/custom-filter-tile.d.ts +2 -0
  53. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +2 -0
  54. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/helpers.d.ts +6 -0
  55. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +2 -0
  56. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +2 -1
  57. package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +1 -0
  58. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-tile.d.ts +3 -1
  59. package/dist/packages/sdk-ui/src/filters/components/icons/trash-icon.d.ts +1 -1
  60. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +2 -0
  61. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-list.d.ts +1 -0
  62. package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +3 -1
  63. package/dist/packages/sdk-ui/src/index.d.ts +15 -8
  64. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +2 -2
  65. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -1
  66. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +2 -4
  67. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +24 -16
  68. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +1 -0
  69. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +2 -2
  70. package/dist/packages/sdk-ui/src/models/hierarchy/get-hierarchy-models.d.ts +6 -1
  71. package/dist/packages/sdk-ui/src/models/hierarchy/hierarchy-model-translator.d.ts +1 -1
  72. package/dist/packages/sdk-ui/src/models/hierarchy/types.d.ts +3 -0
  73. package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +4 -4
  74. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +12 -2
  75. package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -1
  76. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +3 -1
  77. package/dist/packages/sdk-ui/src/props.d.ts +29 -17
  78. package/dist/packages/sdk-ui/src/query-execution/types.d.ts +1 -1
  79. package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +1 -3
  80. package/dist/packages/sdk-ui/src/sisense-context/sisense-context.d.ts +5 -0
  81. package/dist/packages/sdk-ui/src/table/table-component.d.ts +1 -1
  82. package/dist/packages/sdk-ui/src/translation/i18n-provider.d.ts +3 -1
  83. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +27 -2
  84. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +32 -4
  85. package/dist/packages/sdk-ui/src/types.d.ts +12 -5
  86. package/dist/packages/sdk-ui/src/utils/filters.d.ts +1 -0
  87. package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/dashboard-widget.d.ts +2 -1
  88. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +4800 -0
  89. package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-panel-color-format.d.ts +3 -3
  90. package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-data-options.d.ts +5 -5
  91. package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-drilldown-options.d.ts +2 -2
  92. package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/translate-widget-filters.d.ts +85 -83
  93. package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/types.d.ts +1 -1
  94. package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/use-fetch-widget-dto-model.d.ts +3 -3
  95. package/dist/packages/sdk-ui/src/{dashboard-widget → widget-by-id}/utils.d.ts +14 -13
  96. package/dist/packages/sdk-ui/src/widget-by-id/widget-by-id.d.ts +26 -0
  97. package/dist/packages/sdk-ui/src/widgets/common/use-drilldown-core.d.ts +7 -0
  98. package/dist/packages/sdk-ui/src/widgets/common/widget-container.d.ts +2 -0
  99. package/dist/packages/sdk-ui/src/widgets/common/widget-errors-and-warnings-context.d.ts +14 -0
  100. package/dist/packages/sdk-ui/src/widgets/common/widget-header-info-button.d.ts +3 -1
  101. package/dist/packages/sdk-ui/src/widgets/common/widget-header.d.ts +2 -0
  102. package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +2 -0
  103. package/dist/useQuery-CIeSzN0Z.js +7945 -0
  104. package/dist/useQuery-LqaaNBLw.cjs +175 -0
  105. package/dist/widget-composer-CvgsMHyb.cjs +237 -0
  106. package/dist/widget-composer-L8kmRhgX.js +624 -0
  107. package/dist/widget-model-translator-CYeCKnTa.js +116687 -0
  108. package/dist/widget-model-translator-_Z-8UaTN.cjs +917 -0
  109. package/package.json +7 -7
  110. package/dist/get-widget-options-DTIulxC2.js +0 -44253
  111. package/dist/get-widget-options-DixoCEhn.cjs +0 -271
  112. package/dist/packages/sdk-ui/src/ai/messages/jaql-element.d.ts +0 -28
  113. package/dist/packages/sdk-ui/src/analytics-composer/translators/index.d.ts +0 -3
  114. package/dist/packages/sdk-ui/src/analytics-composer/translators/model-translator.d.ts +0 -48
  115. package/dist/packages/sdk-ui/src/analytics-composer/translators/translate-filters-to-code.d.ts +0 -2
  116. package/dist/packages/sdk-ui/src/analytics-composer/translators/types.d.ts +0 -95
  117. package/dist/packages/sdk-ui/src/dashboard/components/HorizontalCollapse.d.ts +0 -5
  118. package/dist/packages/sdk-ui/src/dashboard-widget/translate-dashboard-filters.d.ts +0 -4798
  119. package/dist/packages/sdk-ui/src/translation/custom-translations-loader.d.ts +0 -10
  120. package/dist/table-widget-CLL1iN3H.js +0 -79317
  121. package/dist/table-widget-CYCcYqzZ.cjs +0 -821
  122. /package/dist/packages/sdk-ui/src/analytics-composer/{translators → query}/query-templates.d.ts +0 -0
  123. /package/dist/packages/sdk-ui/src/analytics-composer/{translators/translate-props-to-code.d.ts → widget/stringify-props.d.ts} +0 -0
  124. /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, DashboardWidgetStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, CustomTranslationObject } from './types';
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 './dashboard-widget/types';
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?: (error: Error) => void;
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 DashboardWidget} component
808
+ * Props for the {@link WidgetById} component
801
809
  */
802
- export interface DashboardWidgetProps extends Omit<ChartWidgetProps, 'dataSource' | 'dataOptions' | 'chartType' | 'styleOptions'> {
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?: DashboardWidgetStyleOptions;
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 '../dashboard-widget/types';
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
- dashboardWidgetNoSisenseContext: string;
8
- dashboardWidgetInvalidIdentifiers: string;
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
- dashboardWidgetNoSisenseContext: string;
12
- dashboardWidgetInvalidIdentifiers: string;
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
- dashboardWidgetNoSisenseContext: string;
240
- dashboardWidgetInvalidIdentifiers: string;
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 DashboardWidget */
1023
- export interface DashboardWidgetStyleOptions extends WidgetContainerStyleOptions {
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 of the translations.
1455
- * Default value is `sdkUi`.
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
- packageName?: string;
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>;