@sisense/sdk-ui 1.2.0 → 1.4.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 (114) hide show
  1. package/dist/ai/ai-context-provider.d.ts +32 -0
  2. package/dist/ai/api/chat-api-provider.d.ts +17 -0
  3. package/dist/ai/api/chat-rest-api.d.ts +3 -1
  4. package/dist/ai/api/errors.d.ts +1 -0
  5. package/dist/ai/api/hooks.d.ts +10 -49
  6. package/dist/ai/api/types.d.ts +16 -27
  7. package/dist/ai/buttons/thumbs-down-button.d.ts +6 -0
  8. package/dist/ai/buttons/thumbs-up-button.d.ts +6 -0
  9. package/dist/ai/chat-box.d.ts +3 -3
  10. package/dist/ai/chat-config.d.ts +28 -0
  11. package/dist/ai/chat-home.d.ts +5 -1
  12. package/dist/ai/chat-router.d.ts +2 -0
  13. package/dist/ai/chatbot.d.ts +26 -4
  14. package/dist/ai/common/tooltip.d.ts +5 -0
  15. package/dist/ai/error-page.d.ts +10 -0
  16. package/dist/ai/get-nlg-query-result.d.ts +78 -0
  17. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -0
  18. package/dist/ai/icons/thumbs-down-icon.d.ts +2 -0
  19. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -0
  20. package/dist/ai/icons/thumbs-up-icon.d.ts +2 -0
  21. package/dist/ai/index.d.ts +6 -3
  22. package/dist/ai/loading-page.d.ts +2 -0
  23. package/dist/ai/messages/clear-history-success-message.d.ts +2 -0
  24. package/dist/ai/messages/feedback-wrapper.d.ts +9 -0
  25. package/dist/ai/messages/get-widget-options.d.ts +2 -1
  26. package/dist/ai/messages/message-resolver.d.ts +1 -2
  27. package/dist/ai/messages/text-message.d.ts +1 -1
  28. package/dist/ai/toolbar.d.ts +2 -2
  29. package/dist/ai/use-chat-session.d.ts +1 -1
  30. package/dist/ai/use-get-nlg-query-result.d.ts +103 -0
  31. package/dist/ai/use-get-query-recommendations.d.ts +67 -0
  32. package/dist/ai.js +1866 -1518
  33. package/dist/api/types/dashboard-dto.d.ts +4 -1
  34. package/dist/app/client-application.d.ts +6 -1
  35. package/dist/{chart.d.ts → chart/chart.d.ts} +1 -1
  36. package/dist/chart/helpers/use-synced-data.d.ts +8 -0
  37. package/dist/chart/helpers/use-translated-data-options.d.ts +7 -0
  38. package/dist/chart/index.d.ts +1 -0
  39. package/dist/chart-data/types.d.ts +5 -4
  40. package/dist/chart-data-options/translate-data-options.d.ts +5 -1
  41. package/dist/chart-data-options/types.d.ts +107 -12
  42. package/dist/chart-options-processor/apply-event-handlers.d.ts +5 -28
  43. package/dist/chart-options-processor/boxplot-chart-options.d.ts +2 -2
  44. package/dist/chart-options-processor/category-chart-options.d.ts +1 -1
  45. package/dist/chart-options-processor/chart-options-service.d.ts +7 -0
  46. package/dist/chart-options-processor/plot-bands.d.ts +2 -2
  47. package/dist/chart-options-processor/scatter-chart-options.d.ts +2 -2
  48. package/dist/chart-options-processor/style-to-design-options-translator/index.d.ts +1 -0
  49. package/dist/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +4 -0
  50. package/dist/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
  51. package/dist/chart-options-processor/translations/base-design-options.d.ts +3 -3
  52. package/dist/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +2 -2
  53. package/dist/chart-options-processor/translations/design-options.d.ts +4 -2
  54. package/dist/chart-options-processor/translations/number-format-config.d.ts +10 -16
  55. package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +4 -4
  56. package/dist/chart-options-processor/translations/types.d.ts +18 -6
  57. package/dist/chart-options-processor/translations/value-label-section.d.ts +9 -4
  58. package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +3 -0
  59. package/dist/charts/indicator/indicator-legacy-chart-options/prepare-ticker-options.d.ts +2 -0
  60. package/dist/charts/indicator/types.d.ts +2 -0
  61. package/dist/charts/map-charts/areamap/areamap-map.d.ts +2 -1
  62. package/dist/charts/map-charts/areamap/areamap.d.ts +6 -4
  63. package/dist/charts/map-charts/areamap/use-geo-json.d.ts +1 -1
  64. package/dist/charts/map-charts/scattermap/scattermap.d.ts +11 -5
  65. package/dist/charts/map-charts/scattermap/utils/location.d.ts +3 -0
  66. package/dist/charts/map-charts/scattermap/utils/markers.d.ts +4 -14
  67. package/dist/charts/table/helpers/calc-column-widths.d.ts +3 -1
  68. package/dist/common/components/loading-overlay.d.ts +14 -0
  69. package/dist/common/hooks/data-load-state-reducer.d.ts +10 -0
  70. package/dist/common/hooks/use-hover.d.ts +8 -0
  71. package/dist/common/icons/yellow-exclamation-mark-icon.d.ts +2 -0
  72. package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
  73. package/dist/dashboard-widget/translate-widget-filters.d.ts +1 -1
  74. package/dist/dashboard-widget/types.d.ts +1 -0
  75. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +3 -0
  76. package/dist/dashboard-widget/utils.d.ts +26 -1
  77. package/dist/decorators/hook-decorators/with-tracking.d.ts +11 -0
  78. package/dist/filters/components/common/checkbox.d.ts +1 -0
  79. package/dist/formulas/fetch-formula.d.ts +2 -0
  80. package/dist/formulas/index.d.ts +1 -0
  81. package/dist/formulas/use-get-shared-formula.d.ts +5 -0
  82. package/dist/index.d.ts +5 -4
  83. package/dist/index.js +35370 -11599
  84. package/dist/indicator-canvas.d.ts +2 -2
  85. package/dist/models/dashboard/use-get-dashboard-model.d.ts +8 -0
  86. package/dist/models/dashboard/use-get-dashboard-models.d.ts +6 -0
  87. package/dist/models/widget/widget-model.d.ts +2 -2
  88. package/dist/pivot-table/index.d.ts +1 -0
  89. package/dist/pivot-table/pivot-table.d.ts +42 -0
  90. package/dist/pivot-table/use-get-pivot-table-query.d.ts +14 -0
  91. package/dist/props.d.ts +209 -52
  92. package/dist/query-execution/query-state-reducer.d.ts +1 -0
  93. package/dist/query-execution/types.d.ts +3 -3
  94. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +2 -5
  95. package/dist/sisense-chart/index.d.ts +2 -0
  96. package/dist/sisense-chart/sisense-chart.d.ts +23 -0
  97. package/dist/sisense-chart/types.d.ts +5 -0
  98. package/dist/table/hooks/use-table-data.d.ts +2 -2
  99. package/dist/translation/resources/en.d.ts +1 -0
  100. package/dist/translation/resources/index.d.ts +2 -0
  101. package/dist/types.d.ts +126 -14
  102. package/dist/utils/filters-comparator.d.ts +2 -2
  103. package/dist/utils/utility-types.d.ts +12 -0
  104. package/dist/widgets/common/custom-drilldown.d.ts +1 -1
  105. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  106. package/dist/widgets/common/drilldown.d.ts +4 -2
  107. package/dist/{table-widget-65f3e04e.js → with-tracking-b583e949.js} +40958 -40712
  108. package/package.json +13 -13
  109. package/dist/ai/api/chat-api-context.d.ts +0 -12
  110. package/dist/ai/chatbot-context.d.ts +0 -11
  111. package/dist/ai/nlg-query-result.d.ts +0 -20
  112. package/dist/dashboard-widget/translate-widget.d.ts +0 -12
  113. package/dist/query-execution/utils.d.ts +0 -9
  114. package/dist/sisense-chart.d.ts +0 -23
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FeatureCollection as GeoJsonFeatureCollection } from 'geojson';
2
+ import type { FeatureCollection as GeoJsonFeatureCollection } from 'geojson';
3
3
  import { GeoDataElement } from '../../../chart-data/types.js';
4
4
  import { AreamapType } from '../../../types.js';
5
5
  export type AreamapProps = {
@@ -7,6 +7,7 @@ export type AreamapProps = {
7
7
  geoData: GeoDataElement[];
8
8
  dataOptions: {
9
9
  originalValueTitle: string;
10
+ onAreaClick?: (geoDataElement: GeoDataElement, clickEvent: MouseEvent) => void;
10
11
  };
11
12
  mapType: AreamapType;
12
13
  };
@@ -2,15 +2,17 @@
2
2
  import { AreamapChartDataOptionsInternal, ChartDataOptionsInternal } from '../../../chart-data-options/types.js';
3
3
  import { AreamapData, ChartData } from '../../../chart-data/types.js';
4
4
  import { AreamapChartDesignOptions } from '../../../chart-options-processor/translations/design-options.js';
5
- import { ChartDesignOptions } from '../../../chart-options-processor/translations/types.js';
5
+ import { DesignOptions } from '../../../chart-options-processor/translations/types.js';
6
6
  import { ThemeSettings } from '../../../types.js';
7
- export type AreamapChartProps = {
7
+ import { AreamapDataPointEventHandler } from '../../../props';
8
+ export type AreamapProps = {
8
9
  chartData: AreamapData;
9
10
  dataOptions: AreamapChartDataOptionsInternal;
10
11
  designOptions: AreamapChartDesignOptions;
11
12
  themeSettings: ThemeSettings;
13
+ onDataPointClick?: AreamapDataPointEventHandler;
12
14
  };
13
- export declare const Areamap: React.FC<AreamapChartProps>;
15
+ export declare const Areamap: React.FC<AreamapProps>;
14
16
  export declare const isAreamapData: (chartData: ChartData) => chartData is AreamapData;
15
17
  export declare const isAreamapDataOptions: (dataOptions: ChartDataOptionsInternal) => dataOptions is AreamapChartDataOptionsInternal;
16
- export declare const isAreamapChartDesignOptions: (designOptions: ChartDesignOptions) => designOptions is AreamapChartDesignOptions;
18
+ export declare const isAreamapChartDesignOptions: (designOptions: DesignOptions) => designOptions is AreamapChartDesignOptions;
@@ -1,5 +1,5 @@
1
1
  import { FeatureCollection as GeoJsonFeatureCollection } from 'geojson';
2
- import { AreamapType } from '../../../types.js';
2
+ import { AreamapType } from '../../../types';
3
3
  /**
4
4
  * Hook to get geoJson from API or cache (LocalStorage)
5
5
  */
@@ -1,13 +1,19 @@
1
1
  /// <reference types="react" />
2
- import { ScattermapChartData } from '../../../chart-data/types.js';
3
- import { ScattermapChartDataOptionsInternal } from '../../../chart-data-options/types.js';
2
+ import { ChartData, ScattermapChartData } from '../../../chart-data/types.js';
3
+ import { ScattermapDataPointEventHandler } from '../../../props.js';
4
+ import { ChartDataOptionsInternal, ScattermapChartDataOptionsInternal } from '../../../chart-data-options/types.js';
4
5
  import { ScattermapChartDesignOptions } from '../../../chart-options-processor/translations/design-options.js';
5
- import { DataSource, Filter, FilterRelation } from '@sisense/sdk-data';
6
+ import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
7
+ import { DesignOptions } from '../../../chart-options-processor/translations/types.js';
6
8
  export type ScattermapProps = {
7
9
  chartData: ScattermapChartData;
8
10
  dataOptions: ScattermapChartDataOptionsInternal;
9
11
  designOptions: ScattermapChartDesignOptions;
10
12
  dataSource: DataSource | null;
11
- filters?: Filter[] | FilterRelation;
13
+ filters?: Filter[] | FilterRelations;
14
+ onMarkerClick?: ScattermapDataPointEventHandler;
12
15
  };
13
- export declare const Scattermap: ({ chartData, dataOptions, dataSource, filters, designOptions, }: ScattermapProps) => JSX.Element;
16
+ export declare const Scattermap: ({ chartData, dataOptions, dataSource, filters, designOptions, onMarkerClick, }: ScattermapProps) => JSX.Element;
17
+ export declare const isScattermapData: (chartData: ChartData) => chartData is ScattermapChartData;
18
+ export declare const isScattermapDataOptions: (dataOptions: ChartDataOptionsInternal) => dataOptions is ScattermapChartDataOptionsInternal;
19
+ export declare const isScattermapChartDesignOptions: (designOptions: DesignOptions) => designOptions is ScattermapChartDesignOptions;
@@ -1,5 +1,8 @@
1
1
  import { ScattermapLocationLevel } from '../../../../chart-data-options/types';
2
+ import { ScattermapDataPoint } from '../../../../types';
3
+ import { ScattermapChartLocation } from '../../../../chart-data/types';
2
4
  export declare const LOCATION_DELIMITER = ",";
3
5
  export declare function combineLocationNames(names: string[]): string;
4
6
  export declare function splitLocationName(combinedLocation: string): string[];
5
7
  export declare function getLocationGeoLevel(level: ScattermapLocationLevel): "country" | "city" | "adm" | undefined;
8
+ export declare function locationToScattermapDataPoint(location: ScattermapChartLocation): ScattermapDataPoint;
@@ -1,28 +1,18 @@
1
1
  import leaflet from 'leaflet';
2
2
  import { ScattermapMarkers } from '../../../../types';
3
- type PrepareMarkerOptionsProps = {
3
+ type MarkerStyle = {
4
4
  color: string;
5
5
  size: number;
6
6
  fill: Required<ScattermapMarkers>['fill'];
7
7
  blur: boolean;
8
8
  };
9
- type CreateMarkerProps = {
9
+ export type MarkerConfig = {
10
10
  coordinates: {
11
11
  lat: number;
12
12
  lng: number;
13
13
  };
14
- style: PrepareMarkerOptionsProps;
14
+ style: MarkerStyle;
15
15
  };
16
- export declare function prepareMarkerOptions(style: PrepareMarkerOptionsProps): {
17
- radius: number;
18
- fillOpacity: number;
19
- opacity: number;
20
- fillColor: string;
21
- color: string;
22
- stroke: boolean;
23
- weight: number;
24
- customStyle: PrepareMarkerOptionsProps;
25
- };
26
- export declare function createMarker({ coordinates, style }: CreateMarkerProps): leaflet.CircleMarker<any>;
16
+ export declare function createMarker({ coordinates, style }: MarkerConfig): leaflet.CircleMarker;
27
17
  export declare function removeMarkers(markers: leaflet.CircleMarker[]): void;
28
18
  export {};
@@ -1,2 +1,4 @@
1
1
  import { DataTable } from '../../../chart-data-processor/table-processor';
2
- export declare const calcColumnWidths: (dataTable: DataTable, isLoading: boolean, fontFamily?: string) => number[];
2
+ export declare const calcColumnWidths: (dataTable: DataTable, isLoading: boolean, columnsOptions: {
3
+ isHtml: boolean;
4
+ }[], fontFamily?: string) => number[];
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { CompleteThemeSettings } from '../../types';
3
+ /**
4
+ * Component that displays a loading overlay.
5
+ * Overlay is active when query is executed within a chart.
6
+ *
7
+ * @param isVisible - visibility of the overlay.
8
+ * @returns Child component wrapped in dynamic overlay.
9
+ */
10
+ export declare const LoadingOverlay: ({ isVisible, themeSettings, children, }: {
11
+ isVisible: boolean;
12
+ themeSettings: CompleteThemeSettings;
13
+ children: ReactNode;
14
+ }) => JSX.Element;
@@ -1,8 +1,10 @@
1
1
  /**
2
+ * @internal
2
3
  * States of a data load.
3
4
  */
4
5
  export type DataState<Data> = DataLoadingState<Data> | DataErrorState | DataSuccessState<Data>;
5
6
  /**
7
+ * @internal
6
8
  * State of data loading.
7
9
  */
8
10
  export type DataLoadingState<Data> = {
@@ -20,6 +22,7 @@ export type DataLoadingState<Data> = {
20
22
  status: 'loading';
21
23
  };
22
24
  /**
25
+ * @internal
23
26
  * State of a data load that has failed.
24
27
  */
25
28
  export type DataErrorState = {
@@ -37,6 +40,7 @@ export type DataErrorState = {
37
40
  status: 'error';
38
41
  };
39
42
  /**
43
+ * @internal
40
44
  * State of a data load that has succeeded.
41
45
  */
42
46
  export type DataSuccessState<Data> = {
@@ -53,6 +57,9 @@ export type DataSuccessState<Data> = {
53
57
  /** The status of the data load */
54
58
  status: 'success';
55
59
  };
60
+ /**
61
+ * @internal
62
+ */
56
63
  export type DataLoadAction<Data> = {
57
64
  type: 'loading';
58
65
  } | {
@@ -62,4 +69,7 @@ export type DataLoadAction<Data> = {
62
69
  type: 'error';
63
70
  error: Error;
64
71
  };
72
+ /**
73
+ * @internal
74
+ */
65
75
  export declare function dataLoadStateReducer<Data>(state: DataState<Data>, action: DataLoadAction<Data>): DataState<Data>;
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'react';
2
+ /**
3
+ * Track whether an element is being hovered over.
4
+ *
5
+ * @privateRemarks Derived from https://github.com/uidotdev/usehooks/blob/dfa6623fcc2dcad3b466def4e0495b3f38af962b/index.js#L426.
6
+ * @internal
7
+ */
8
+ export declare const useHover: <T extends HTMLElement>() => [Ref<T>, boolean];
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function YellowExclamationMarkIcon(): JSX.Element;
@@ -3,6 +3,6 @@ import { StyledMeasureColumn, StyledColumn, Color } from '../types';
3
3
  import { Panel, PanelItem, WidgetType, WidgetStyle, BoxplotWidgetStyle } from './types';
4
4
  import { WidgetDataOptions } from '../models';
5
5
  export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']): import("@sisense/sdk-data").Filter | DimensionalCalculatedMeasure | DimensionalBaseMeasure | DimensionalAttribute;
6
- export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]): StyledColumn | StyledMeasureColumn;
6
+ export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]): StyledMeasureColumn | StyledColumn;
7
7
  export declare function extractBoxplotBoxType(style: BoxplotWidgetStyle): "iqr" | "extremums" | "standardDeviation";
8
8
  export declare function extractDataOptions(widgetType: WidgetType, panels: Panel[], style: WidgetStyle, customPaletteColors?: Color[]): WidgetDataOptions;
@@ -25,7 +25,7 @@ export declare function extractFilterModelFromJaql(jaql: FilterJaql): {
25
25
  * @param jaql - The filter JAQL object.
26
26
  * @returns - The created Filter object.
27
27
  */
28
- export declare function createFilterFromJaql(jaql: FilterJaql): Filter;
28
+ export declare function createFilterFromJaql(jaql: FilterJaql, instanceid?: string): Filter;
29
29
  /**
30
30
  * Extracts filters from the widget panel.
31
31
  *
@@ -97,6 +97,7 @@ export type DatetimeMask = {
97
97
  dateAndTime?: string;
98
98
  };
99
99
  export type PanelItem = {
100
+ instanceid?: string;
100
101
  format?: {
101
102
  color?: PanelColorFormat;
102
103
  mask?: DatetimeMask | NumericMask;
@@ -25,6 +25,9 @@ export declare const fetchWidgetDtoModel: ({ widgetOid, dashboardOid, includeDas
25
25
  datasource: import("./types").Datasource;
26
26
  widgets?: WidgetDto[] | undefined;
27
27
  filters?: (import("../api/types/dashboard-dto").Filter | import("../api/types/dashboard-dto").CascadingFilter)[] | undefined;
28
+ filterRelations?: {
29
+ filterRelations: import("@sisense/sdk-data").FilterRelationsModel;
30
+ }[] | undefined;
28
31
  } & import("../utils/utility-types").AnyObject) | undefined;
29
32
  }>;
30
33
  /**
@@ -1,4 +1,4 @@
1
- import { type Filter, SortDirection as JaqlSortDirection } from '@sisense/sdk-data';
1
+ import { type Filter, SortDirection as JaqlSortDirection, FilterRelations, FilterRelationsModel, FilterRelationsJaql } from '@sisense/sdk-data';
2
2
  import { ChartSubtype } from '../chart-options-processor/subtype-to-design-options';
3
3
  import { ChartType, SortDirection } from '../types';
4
4
  import { FiltersMergeStrategy, Panel, PanelItem, WidgetSubtype, WidgetType } from './types';
@@ -28,4 +28,29 @@ export declare function mergeFilters(sourceFilters?: Filter[], targetFilters?: F
28
28
  * @returns {Filter[]} The merged filters based on the selected strategy.
29
29
  */
30
30
  export declare function mergeFiltersByStrategy(widgetFilters?: Filter[], codeFilters?: Filter[], mergeStrategy?: FiltersMergeStrategy): Filter[];
31
+ /**
32
+ * Replaces nodes of filter reations tree with fetched filters by instance id.
33
+ *
34
+ * @param filters - The filters from the dashboard.
35
+ * @param filterRelations - Fetched filter relations.
36
+ * @returns {FilterRelations} Filter relations with filters in nodes.
37
+ */
38
+ export declare function getFilterRelationsFromJaql(filters: Filter[], filterRelations: FilterRelationsJaql | undefined): FilterRelations | Filter[];
39
+ /**
40
+ * Converts filter relations model to filter relations jaql.
41
+ *
42
+ * @param filterRelations - Filter relations model.
43
+ * @returns {FilterRelationsJaql} Filter relations jaql.
44
+ */
45
+ export declare function convertFilterRelationsModelToJaql(filterRelations: FilterRelationsModel | undefined): FilterRelationsJaql | undefined;
46
+ /**
47
+ * Replaces filters for same dimensions in filter relations jaql.
48
+ * Widget filters have higher priority than dashboard filters.
49
+ *
50
+ * @param widgetFilters - The filters from the widget.
51
+ * @param dashboardFilters - The filters from the dashboard.
52
+ * @param relations - The filter relations before replacement.
53
+ * @returns {FilterRelationsJaql} The filter relations after replacement.
54
+ */
55
+ export declare function applyWidgetFiltersToRelations(widgetFilters: Filter[], dashboardFilters: Filter[], relations: FilterRelationsJaql | undefined): FilterRelationsJaql | undefined;
31
56
  export {};
@@ -1,2 +1,13 @@
1
+ import { ClientApplication } from '../../app/client-application';
1
2
  export type HookDecorator<DecoratorConfig> = (decoratorConfig: DecoratorConfig) => <HookArgs extends any[], HookResult>(hook: (...args: HookArgs) => HookResult) => (...args: HookArgs) => HookResult;
3
+ /**
4
+ * @internal
5
+ * @description This is a function that tracks the hook event and sends it to the server.
6
+ * @param hookName - The name of the hook
7
+ * @param packageName - The name of the package
8
+ * @param app - The client application
9
+ * @param onFinally - The function to call after the tracking is done
10
+ * @returns Promise<void>
11
+ */
12
+ export declare const trackHook: (hookName: string, packageName: string, app: ClientApplication, onFinally: () => void) => Promise<void>;
2
13
  export declare const withTracking: HookDecorator<string>;
@@ -1,6 +1,7 @@
1
1
  import type { FunctionComponent, InputHTMLAttributes } from 'react';
2
2
  type CheckboxProps = {
3
3
  label?: string;
4
+ isLabelInactive?: boolean;
4
5
  wrapperClassName?: string;
5
6
  } & InputHTMLAttributes<HTMLInputElement>;
6
7
  export declare const Checkbox: FunctionComponent<CheckboxProps>;
@@ -3,6 +3,7 @@ import { DimensionalCalculatedMeasure } from '@sisense/sdk-data';
3
3
  /**
4
4
  * Fetch a formula by oid from the default Sisense instance
5
5
  *
6
+ * @internal
6
7
  * @param oid - Formula identifier in Sisense instance
7
8
  * @param app - Client application
8
9
  */
@@ -10,6 +11,7 @@ export declare function fetchFormulaByOid(oid: string, app: ClientApplication):
10
11
  /**
11
12
  * Fetch a shared formula by name and data source from the Sisense instance
12
13
  *
14
+ * @internal
13
15
  * @param name - Formula name/title in Sisense instance
14
16
  * @param dataSource - Data source in Sisense instance
15
17
  */
@@ -1 +1,2 @@
1
+ export * from './fetch-formula';
1
2
  export * from './use-get-shared-formula';
@@ -1,6 +1,7 @@
1
1
  import { CalculatedMeasure } from '@sisense/sdk-data';
2
2
  import { UseGetSharedFormulaParams } from '../props.js';
3
3
  import { HookEnableParam } from '../common/hooks/types.js';
4
+ import { DataState } from '../common/hooks/data-load-state-reducer.js';
4
5
  /**
5
6
  * Parameters for {@link useGetSharedFormula} hook.
6
7
  */
@@ -93,3 +94,7 @@ export declare const useGetSharedFormula: (params: UseGetSharedFormulaParams) =>
93
94
  * @internal
94
95
  */
95
96
  export declare function useGetSharedFormulaInternal(params: UseGetSharedFormulaParams): SharedFormulaState;
97
+ /**
98
+ * @internal
99
+ */
100
+ export declare function translateToFormulaResponse(dataState: DataState<CalculatedMeasure | null>): SharedFormulaState;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- /**
2
- * @packageDocumentation
3
- */
4
1
  export { ClientApplication, createClientApplication } from './app/client-application';
5
2
  export * from './chart-data-options/types';
6
3
  export { Chart } from './chart';
@@ -26,6 +23,7 @@ export * from './polar-chart';
26
23
  export * from './scatter-chart';
27
24
  export * from './indicator-chart';
28
25
  export * from './table';
26
+ export * from './pivot-table';
29
27
  export * from './treemap-chart';
30
28
  export * from './sunburst-chart';
31
29
  export * from './boxplot-chart';
@@ -35,9 +33,12 @@ export * from './sisense-context/custom-sisense-context-provider';
35
33
  export * from './theme-provider/custom-theme-provider';
36
34
  export { getThemeSettingsByOid } from './themes/theme-loader';
37
35
  export { getDefaultThemeSettings } from './chart-options-processor/theme-option-service';
38
- export { useGetDashboardModel, useGetDashboardModels, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, type GetDashboardModelOptions, type GetDashboardModelsOptions, } from './models';
36
+ export { useGetDashboardModel, useGetDashboardModels, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, translateToDashboardResponse, translateToDashboardsResponse, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, type GetDashboardModelOptions, type GetDashboardModelsOptions, } from './models';
39
37
  export { boxWhiskerProcessResult } from './boxplot-utils';
38
+ export { queryStateReducer } from './query-execution/query-state-reducer';
40
39
  export * from './props';
41
40
  export * from './types';
42
41
  export * from './filters';
43
42
  export * from './formulas';
43
+ export { trackHook } from './decorators/hook-decorators';
44
+ export * from './common/hooks/data-load-state-reducer';