@sisense/sdk-ui 1.26.0 → 1.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.
Files changed (48) hide show
  1. package/dist/ai.cjs +14 -14
  2. package/dist/ai.js +483 -484
  3. package/dist/analytics-composer.cjs +1 -1
  4. package/dist/analytics-composer.js +3 -3
  5. package/dist/{derive-chart-family-DOmv279l.cjs → derive-chart-family-BXkBWhAA.cjs} +48 -48
  6. package/dist/{derive-chart-family-ZvvF5lty.js → derive-chart-family-DRBbYXus.js} +4180 -4105
  7. package/dist/index.cjs +103 -60
  8. package/dist/index.js +5192 -4994
  9. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/override-with-theme-settings.d.ts +2 -2
  10. package/dist/packages/sdk-ui/src/charts/indicator/indicator-render-options.d.ts +52 -0
  11. package/dist/packages/sdk-ui/src/common/icons/edit-pencil-icon.d.ts +3 -0
  12. package/dist/packages/sdk-ui/src/dashboard/dashboard-by-id.d.ts +1 -2
  13. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +1 -2
  14. package/dist/packages/sdk-ui/src/filters/components/common/filter-content-display.d.ts +5 -0
  15. package/dist/packages/sdk-ui/src/filters/components/common/index.d.ts +1 -0
  16. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +2 -0
  17. package/dist/packages/sdk-ui/src/filters/components/custom-filter-tile.d.ts +2 -0
  18. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +2 -0
  19. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +2 -0
  20. package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +1 -0
  21. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tile.d.ts +9 -0
  22. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tooltip.d.ts +8 -0
  23. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/index.d.ts +1 -0
  24. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/tooltip-utils.d.ts +11 -0
  25. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-tile.d.ts +3 -1
  26. package/dist/packages/sdk-ui/src/filters/components/icons/cube-icon.d.ts +2 -0
  27. package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +1 -0
  28. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +2 -0
  29. package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +3 -1
  30. package/dist/packages/sdk-ui/src/indicator-canvas.d.ts +6 -0
  31. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +1 -1
  32. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +1 -1
  33. package/dist/packages/sdk-ui/src/props.d.ts +47 -3
  34. package/dist/packages/sdk-ui/src/theme-provider/fonts-loader/use-fonts-loader.d.ts +4 -1
  35. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +21 -0
  36. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +42 -0
  37. package/dist/packages/sdk-ui/src/types.d.ts +1 -0
  38. package/dist/packages/sdk-ui/src/utils/filter-relations.d.ts +22 -1
  39. package/dist/packages/sdk-ui/src/utils/filters-comparator.d.ts +1 -1
  40. package/dist/packages/sdk-ui/src/utils/measures-comparator.d.ts +5 -0
  41. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +444 -444
  42. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-filters.d.ts +53 -53
  43. package/dist/{useQuery-BtpTzoxI.js → useQuery-BWxPQevB.js} +8232 -8172
  44. package/dist/{useQuery-9lk4MNnb.cjs → useQuery-DHk01evX.cjs} +128 -135
  45. package/dist/{widget-composer-ygehKLLR.js → widget-composer-BBhoRRAJ.js} +4 -4
  46. package/dist/{widget-composer-DbpSzSub.cjs → widget-composer-Dwta0nDD.cjs} +1 -1
  47. package/package.json +7 -7
  48. /package/dist/packages/sdk-ui/src/{charts/indicator/indicator-legacy-chart-options/utils → utils}/override-with-custom-settings.d.ts +0 -0
@@ -1,3 +1,3 @@
1
- import { ThemeSettings } from '../../../types.js';
2
- import { LegacyIndicatorChartOptions } from '../types.js';
1
+ import { ThemeSettings } from '../../../types';
2
+ import { LegacyIndicatorChartOptions } from '../types';
3
3
  export declare function overrideWithThemeSettings(themeSettings: ThemeSettings, legacyOptionsToThemeSettingsDictionary: Record<string, string>, legacyChartOptions: LegacyIndicatorChartOptions): LegacyIndicatorChartOptions;
@@ -0,0 +1,52 @@
1
+ import { IndicatorLegacyChartDataOptions } from './indicator-legacy-chart-data-options';
2
+ import { IndicatorLegacyChartOptions } from '../../indicator-canvas';
3
+ /**
4
+ * Indicator render options.
5
+ */
6
+ export type IndicatorRenderOptions = {
7
+ /** The primary value options. */
8
+ value: {
9
+ /** The primary value data. */
10
+ data: number;
11
+ /** The primary value text. */
12
+ text: string;
13
+ /** The primary value color. */
14
+ color: string;
15
+ };
16
+ /** The secondary value options. */
17
+ secondary: {
18
+ /** The secondary value data. */
19
+ data: number;
20
+ /** The secondary value text. */
21
+ text: string;
22
+ /** The secondary value color. */
23
+ color: string;
24
+ /** The secondary value font weight. */
25
+ fontWeight: string;
26
+ };
27
+ /** The title options. */
28
+ title: {
29
+ /** The title text. */
30
+ text: string;
31
+ /** The title color. */
32
+ color: string;
33
+ };
34
+ /** The secondary title options. */
35
+ secondaryTitle: {
36
+ /** The secondary title text. */
37
+ text: string;
38
+ /** The secondary title color. */
39
+ color: string;
40
+ };
41
+ };
42
+ /**
43
+ * Builds the render options from the legacy data and chart options.
44
+ */
45
+ export declare function buildRenderOptionsFromLegacyOptions(legacyDataOptions: IndicatorLegacyChartDataOptions, legacyChartOptions: IndicatorLegacyChartOptions): IndicatorRenderOptions;
46
+ /**
47
+ * Applies the indicator render options to the legacy data and chart options.
48
+ */
49
+ export declare const applyIndicatorRenderOptions: (indicatorRenderOptions: IndicatorRenderOptions, legacyDataOptions: IndicatorLegacyChartDataOptions, legacyChartOptions: IndicatorLegacyChartOptions) => {
50
+ legacyDataOptions: IndicatorLegacyChartDataOptions;
51
+ legacyChartOptions: IndicatorLegacyChartOptions;
52
+ };
@@ -0,0 +1,3 @@
1
+ export declare function EditPencilIcon({ color }: {
2
+ color?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ import { DashboardByIdProps } from './types';
3
3
  /**
4
4
  * React component that renders a dashboard created in Sisense Fusion by its ID.
5
5
  *
6
- * **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
6
+ * **Note:** Dashboard and Widget extensions based on JS scripts and add-ons in Fusion – for example, Blox and Jump To Dashboard – are not supported.
7
7
  *
8
8
  * @example
9
9
  *
@@ -27,6 +27,5 @@ import { DashboardByIdProps } from './types';
27
27
  * see [Embedded Dashboards](/guides/sdk/guides/dashboards/index.html).
28
28
  * @group Fusion Assets
29
29
  * @fusionEmbed
30
- * @beta
31
30
  */
32
31
  export declare const DashboardById: import("react").FunctionComponent<DashboardByIdProps>;
@@ -17,7 +17,7 @@ export type DashboardChangeAction = {
17
17
  /**
18
18
  * React component that renders a dashboard whose elements are customizable. It includes internal logic of applying common filters to widgets.
19
19
  *
20
- * **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
20
+ * **Note:** Dashboard and Widget extensions based on JS scripts and add-ons in Fusion – for example, Blox and Jump To Dashboard – are not supported.
21
21
  *
22
22
  * @example
23
23
  *
@@ -48,6 +48,5 @@ export default CodeExample;
48
48
  * To learn more about this and related dashboard components,
49
49
  * see [Embedded Dashboards](/guides/sdk/guides/dashboards/index.html).
50
50
  * @group Dashboards
51
- * @beta
52
51
  */
53
52
  export declare const Dashboard: import("react").FunctionComponent<DashboardProps>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const FilterContentDisplay: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -8,3 +8,4 @@ export { TriangleIndicator } from './triangle-indicator';
8
8
  export { DateRangeFieldButton } from './date-range-field-button';
9
9
  export { Dropdown } from './dropdown';
10
10
  export { type FilterVariant } from './filter-utils';
11
+ export { FilterContentDisplay } from './filter-content-display';
@@ -16,6 +16,8 @@ export interface CriteriaFilterTileProps {
16
16
  onUpdate: (filter: Filter | null) => void;
17
17
  /** Filter delete callback */
18
18
  onDelete?: () => void;
19
+ /** Filter edit callback */
20
+ onEdit?: () => void;
19
21
  /** List of available measures to rank by. Required only for ranking filters. */
20
22
  measures?: Measure[];
21
23
  /**
@@ -17,6 +17,8 @@ export interface CustomFilterTileProps {
17
17
  onUpdate: (filter: Filter | null) => void;
18
18
  /** Filter delete callback */
19
19
  onDelete?: () => void;
20
+ /** Filter edit callback */
21
+ onEdit?: () => void;
20
22
  /** Design options for the tile @internal */
21
23
  tileDesignOptions?: FilterTileDesignOptions;
22
24
  }
@@ -40,6 +40,8 @@ export interface DateRangeFilterTileProps {
40
40
  onChange: (filter: Filter) => void;
41
41
  /** Filter delete callback */
42
42
  onDelete?: () => void;
43
+ /** Filter edit callback */
44
+ onEdit?: () => void;
43
45
  /**
44
46
  * List of filters this filter is dependent on.
45
47
  */
@@ -20,6 +20,8 @@ export interface RelativeDateFilterTileProps {
20
20
  onUpdate: (filter: Filter) => void;
21
21
  /** Filter delete callback */
22
22
  onDelete?: () => void;
23
+ /** Filter edit callback */
24
+ onEdit?: () => void;
23
25
  /**
24
26
  * Limit of the date range that can be selected.
25
27
  */
@@ -30,6 +30,7 @@ interface Props {
30
30
  design?: FilterTileDesignOptions;
31
31
  onToggleDisabled?: () => void;
32
32
  onDelete?: () => void;
33
+ onEdit?: () => void;
33
34
  locked?: boolean;
34
35
  }
35
36
  /**
@@ -0,0 +1,9 @@
1
+ import { FilterRelationsRules } from '../../../../utils/filter-relations';
2
+ import { Filter } from '@sisense/sdk-data';
3
+ /**
4
+ * Filter relations tile component.
5
+ */
6
+ export declare function FilterRelationsTile({ relations, filters, }: {
7
+ relations: FilterRelationsRules;
8
+ filters: Filter[];
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { FilterRelationsRules } from '../../../../utils/filter-relations';
3
+ import { Filter } from '@sisense/sdk-data';
4
+ export declare function FilterRelationsTooltip({ relations, filters, children, }: {
5
+ relations: FilterRelationsRules;
6
+ filters: Filter[];
7
+ children: React.ReactElement;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './filter-relations-tile';
@@ -0,0 +1,11 @@
1
+ import { FilterRelationsDescription } from '../../../../utils/filter-relations';
2
+ import { TFunction } from '@sisense/sdk-common';
3
+ import { ReactNode } from 'react';
4
+ export declare function generateTooltipLines(filterRelationsDescription: FilterRelationsDescription, t: TFunction): ReactNode[];
5
+ /**
6
+ * Recursively removes unnecessary "outermost" parentheses from the filter relations description.
7
+ *
8
+ * "Unnecessary" means a matching pair of open/close brackets that fully wraps
9
+ * the entire expression, with no leftover operators or attributes outside.
10
+ */
11
+ export declare function trimUnnecessaryBrackets(filterRelationsDescription: FilterRelationsDescription): FilterRelationsDescription;
@@ -11,6 +11,8 @@ export type FiltersPanelTileProps = {
11
11
  onChange: (filter: Filter | null) => void;
12
12
  /** Filter delete callback */
13
13
  onDelete?: () => void;
14
+ /** Filter edit callback */
15
+ onEdit?: () => void;
14
16
  /** Default data source used for filter tiles */
15
17
  defaultDataSource?: DataSource;
16
18
  };
@@ -19,4 +21,4 @@ export type FiltersPanelTileProps = {
19
21
  *
20
22
  * @internal
21
23
  */
22
- export declare const FiltersPanelTile: ({ filter, onChange, onDelete, defaultDataSource, }: FiltersPanelTileProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const FiltersPanelTile: ({ filter, onChange, onDelete, onEdit, defaultDataSource, }: FiltersPanelTileProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SVGProps } from 'react';
2
+ export declare const CubeIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'color'>) => import("react/jsx-runtime").JSX.Element;
@@ -6,3 +6,4 @@ export { TrashIcon } from './trash-icon';
6
6
  export { LockIcon } from './lock-icon';
7
7
  export { DateIcon } from './date-icon';
8
8
  export { ArrowDownIcon } from './arrow-down-icon';
9
+ export { CubeIcon } from './cube-icon';
@@ -21,6 +21,8 @@ export interface MemberFilterTileProps {
21
21
  onChange: (filter: Filter | null) => void;
22
22
  /** Filter delete callback */
23
23
  onDelete?: () => void;
24
+ /** Filter edit callback */
25
+ onEdit?: () => void;
24
26
  /** List of filters this filter is dependent on */
25
27
  parentFilters?: Filter[];
26
28
  /** Design options for the tile @internal */
@@ -5,10 +5,12 @@ export type UnsupportedFilterTileProps = {
5
5
  design?: FilterTileDesignOptions;
6
6
  /** Filter delete callback */
7
7
  onDelete?: () => void;
8
+ /** Filter edit callback */
9
+ onEdit?: () => void;
8
10
  };
9
11
  /**
10
12
  * Filter tile component that renders an unsupported filter (which is not recognized by the JAQL to Filter translation)
11
13
  *
12
14
  * @internal
13
15
  */
14
- export declare const UnsupportedFilterTile: ({ filter, design, onDelete }: UnsupportedFilterTileProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const UnsupportedFilterTile: ({ filter, design, onDelete, onEdit, }: UnsupportedFilterTileProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,14 +2,20 @@ import { IndicatorChartDataOptionsInternal } from './chart-data-options/types';
2
2
  import { type FunctionComponent } from 'react';
3
3
  import { IndicatorChartData } from './chart-data/types';
4
4
  import { IndicatorChartDesignOptions } from './chart-options-processor/translations/design-options';
5
+ import { createIndicatorLegacyChartOptions } from './charts/indicator/indicator-legacy-chart-options';
5
6
  import { ChartRendererProps } from './chart/types';
7
+ import { IndicatorRenderOptions } from './charts/indicator/indicator-render-options';
8
+ export type IndicatorLegacyChartOptions = ReturnType<typeof createIndicatorLegacyChartOptions>;
9
+ type IndicatorOnBeforeRender = (options: IndicatorRenderOptions) => IndicatorRenderOptions;
6
10
  export interface IndicatorCanvasProps {
7
11
  chartData: IndicatorChartData;
8
12
  dataOptions: IndicatorChartDataOptionsInternal;
9
13
  designOptions: IndicatorChartDesignOptions;
14
+ onBeforeRender?: IndicatorOnBeforeRender;
10
15
  }
11
16
  /**
12
17
  * @internal
13
18
  */
14
19
  export declare const IndicatorCanvas: FunctionComponent<IndicatorCanvasProps>;
15
20
  export declare const isIndicatorCanvasProps: (props: ChartRendererProps) => props is IndicatorCanvasProps;
21
+ export {};
@@ -69,7 +69,7 @@ export type DashboardModelSuccessState = {
69
69
  /**
70
70
  * React hook that retrieves an existing dashboard model from the Sisense instance.
71
71
  *
72
- * **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
72
+ * **Note:** Dashboard and Widget extensions based on JS scripts and add-ons in Fusion – for example, Blox and Jump To Dashboard – are not supported.
73
73
  *
74
74
  * @example
75
75
  * An example of retrieving an existing dashboard model from the Sisense instance and render its widgets with component `WidgetById`:
@@ -65,7 +65,7 @@ export type DashboardModelsSuccessState = {
65
65
  /**
66
66
  * React hook that retrieves existing dashboards that the user can access to from the Sisense instance.
67
67
  *
68
- * **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
68
+ * **Note:** Dashboard and Widget extensions based on JS scripts and add-ons in Fusion – for example, Blox and Jump To Dashboard – are not supported.
69
69
  *
70
70
  * @example
71
71
  ```tsx
@@ -1,5 +1,5 @@
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, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, DashboardWidgetStyleOptions } 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, IndicatorRenderOptions } 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';
@@ -188,6 +188,33 @@ export type ThemeProviderProps = PropsWithChildren<{
188
188
  export type BeforeRenderHandler = (
189
189
  /** Highcharts options */
190
190
  highchartsOptions: HighchartsOptions) => HighchartsOptions;
191
+ /**
192
+ * Type guard for checking if the render options are of type HighchartsOptions
193
+ *
194
+ * @param renderOptions - The render options to check
195
+ * @returns whether the render options are of type HighchartsOptions
196
+ * @internal
197
+ */
198
+ export declare const isHighchartsOptions: (renderOptions: any) => renderOptions is HighchartsOptions;
199
+ /**
200
+ * Type guard for checking if the render options are of type IndicatorRenderOptions
201
+ *
202
+ * @param renderOptions - The render options to check
203
+ * @returns whether the render options are of type IndicatorRenderOptions
204
+ * @internal
205
+ */
206
+ export declare const isIndicatorRenderOptions: (renderOptions: any) => renderOptions is IndicatorRenderOptions;
207
+ /**
208
+ * A handler function that allows you to customize the underlying chart element before it is
209
+ * rendered. Use the {@link IndicatorRenderOptions} object that is passed to the callback to change
210
+ * and then return the modified options object.
211
+ * The returned options are then used when rendering the chart.
212
+ *
213
+ * This callback is supported only for Indicator Chart.
214
+ */
215
+ export type IndicatorBeforeRenderHandler = (
216
+ /** Indicator render options */
217
+ renderOptions: IndicatorRenderOptions) => IndicatorRenderOptions;
191
218
  /**
192
219
  * Click handler for when an abstract data point (data point of any chart) is clicked
193
220
  */
@@ -378,6 +405,15 @@ interface BoxplotChartEventProps extends BaseChartEventProps, HighchartsBasedCha
378
405
  */
379
406
  onDataPointsSelected?: DataPointsEventHandler;
380
407
  }
408
+ interface IndicatorChartEventProps extends BaseChartEventProps {
409
+ /**
410
+ * A callback that allows you to customize the underlying indicator chart element before it is rendered.
411
+ * The returned options are then used when rendering the chart.
412
+ *
413
+ * @category Callbacks
414
+ */
415
+ onBeforeRender?: IndicatorBeforeRenderHandler;
416
+ }
381
417
  /**
382
418
  * Base Chart Props to be extended by {@link ChartProps}
383
419
  *
@@ -479,7 +515,7 @@ export interface BaseChartProps extends BaseChartEventProps {
479
515
  /**
480
516
  * Chart props to be able to react on chart events.
481
517
  */
482
- interface ChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
518
+ interface ChartEventProps extends BaseChartEventProps {
483
519
  /**
484
520
  * Click handler callback for a data point
485
521
  *
@@ -498,6 +534,14 @@ interface ChartEventProps extends BaseChartEventProps, HighchartsBasedChartEvent
498
534
  * @category Callbacks
499
535
  */
500
536
  onDataPointsSelected?: DataPointsEventHandler | ScatterDataPointsEventHandler;
537
+ /**
538
+ * A callback that allows you to customize the underlying chart element before it is rendered. The returned options are then used when rendering the chart.
539
+ *
540
+ * This callback is not supported for Areamap Chart, Scattermap Chart, Table, and PivotTable.
541
+ *
542
+ * @category Callbacks
543
+ */
544
+ onBeforeRender?: HighchartsBasedChartEventProps['onBeforeRender'] | IndicatorChartEventProps['onBeforeRender'];
501
545
  }
502
546
  /**
503
547
  * Props shared across {@link Chart} components.
@@ -692,7 +736,7 @@ export interface PolarChartProps extends BaseChartProps, HighchartsBasedChartEve
692
736
  /**
693
737
  * Props of the {@link IndicatorChart} component.
694
738
  */
695
- export interface IndicatorChartProps extends BaseChartProps {
739
+ export interface IndicatorChartProps extends BaseChartProps, IndicatorChartEventProps {
696
740
  /**
697
741
  * Configurations for how to interpret and present the data passed to the chart
698
742
  *
@@ -1,2 +1,5 @@
1
1
  import { ThemeSettingsFont } from '../../types';
2
- export declare const useFontsLoader: (fonts: ThemeSettingsFont[], prevLoadedFonts: string[]) => string[];
2
+ export declare function useFontsLoader(fonts: ThemeSettingsFont[], prevLoadedFonts: string[]): {
3
+ loadedFonts: string[];
4
+ areAllFontsLoaded: boolean;
5
+ };
@@ -81,6 +81,16 @@ export declare const translation: {
81
81
  widgetDetails: string;
82
82
  cancel: string;
83
83
  includeAll: string;
84
+ formatting: {
85
+ number: {
86
+ abbreviations: {
87
+ thousand: string;
88
+ million: string;
89
+ billion: string;
90
+ trillion: string;
91
+ };
92
+ };
93
+ };
84
94
  criteriaFilter: {
85
95
  displayModePrefix: string;
86
96
  equals: string;
@@ -175,6 +185,11 @@ export declare const translation: {
175
185
  unselectMenuItem: string;
176
186
  };
177
187
  customFilterTileMessage: string;
188
+ filterRelations: {
189
+ and: string;
190
+ or: string;
191
+ andOrFormulaApplied: string;
192
+ };
178
193
  drilldown: {
179
194
  drillMenuItem: string;
180
195
  breadcrumbsAllSuffix: string;
@@ -236,6 +251,12 @@ export declare const translation: {
236
251
  noAvailableDataTopics: string;
237
252
  };
238
253
  };
254
+ filterEditor: {
255
+ buttons: {
256
+ apply: string;
257
+ cancel: string;
258
+ };
259
+ };
239
260
  };
240
261
  /**
241
262
  * A reference type containing all currently used translation keys.
@@ -91,6 +91,16 @@ export declare const resources: {
91
91
  widgetDetails: string;
92
92
  cancel: string;
93
93
  includeAll: string;
94
+ formatting: {
95
+ number: {
96
+ abbreviations: {
97
+ thousand: string;
98
+ million: string;
99
+ billion: string;
100
+ trillion: string;
101
+ };
102
+ };
103
+ };
94
104
  criteriaFilter: {
95
105
  displayModePrefix: string;
96
106
  equals: string;
@@ -185,6 +195,11 @@ export declare const resources: {
185
195
  unselectMenuItem: string;
186
196
  };
187
197
  customFilterTileMessage: string;
198
+ filterRelations: {
199
+ and: string;
200
+ or: string;
201
+ andOrFormulaApplied: string;
202
+ };
188
203
  drilldown: {
189
204
  drillMenuItem: string;
190
205
  breadcrumbsAllSuffix: string;
@@ -246,6 +261,12 @@ export declare const resources: {
246
261
  noAvailableDataTopics: string;
247
262
  };
248
263
  };
264
+ filterEditor: {
265
+ buttons: {
266
+ apply: string;
267
+ cancel: string;
268
+ };
269
+ };
249
270
  };
250
271
  uk: {
251
272
  errors: {
@@ -330,6 +351,16 @@ export declare const resources: {
330
351
  widgetDetails: string;
331
352
  cancel: string;
332
353
  includeAll: string;
354
+ formatting: {
355
+ number: {
356
+ abbreviations: {
357
+ thousand: string;
358
+ million: string;
359
+ billion: string;
360
+ trillion: string;
361
+ };
362
+ };
363
+ };
333
364
  criteriaFilter: {
334
365
  displayModePrefix: string;
335
366
  equals: string;
@@ -424,6 +455,11 @@ export declare const resources: {
424
455
  unselectMenuItem: string;
425
456
  };
426
457
  customFilterTileMessage: string;
458
+ filterRelations: {
459
+ and: string;
460
+ or: string;
461
+ andOrFormulaApplied: string;
462
+ };
427
463
  drilldown: {
428
464
  drillMenuItem: string;
429
465
  breadcrumbsAllSuffix: string;
@@ -485,5 +521,11 @@ export declare const resources: {
485
521
  noAvailableDataTopics: string;
486
522
  };
487
523
  };
524
+ filterEditor: {
525
+ buttons: {
526
+ apply: string;
527
+ cancel: string;
528
+ };
529
+ };
488
530
  };
489
531
  };
@@ -19,6 +19,7 @@ export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataO
19
19
  export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
20
20
  export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, TableChartType, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, };
21
21
  export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
22
+ export type { IndicatorRenderOptions } from './charts/indicator/indicator-render-options';
22
23
  /**
23
24
  * @internal
24
25
  */
@@ -60,5 +60,26 @@ export declare function filterRelationRulesToFilterRelationsModel(filterRelation
60
60
  *
61
61
  * @internal
62
62
  */
63
- export declare function getRelationsAsText(relations: FilterRelationsRules, filters: Filter[]): string | null;
63
+ export declare function getRelationsAsText(relations: FilterRelationsRules, filters: Filter[]): string;
64
+ export declare function getFilterRelationsDescription(relations: FilterRelationsRules, filters: Filter[]): FilterRelationsDescription;
65
+ export type FilterRelationsDescription = FilterRelationsDescriptionNode[];
66
+ type FilterRelationsDescriptionNode = OpenBracketDescriptionNode | CloseBracketDescriptionNode | AttributeDescriptionNode | OperatorDescriptionNode;
67
+ type OpenBracketDescriptionNode = {
68
+ nodeType: 'openBracket';
69
+ };
70
+ export declare function isOpenBracketDescriptionNode(node: FilterRelationsDescriptionNode): node is OpenBracketDescriptionNode;
71
+ type CloseBracketDescriptionNode = {
72
+ nodeType: 'closeBracket';
73
+ };
74
+ export declare function isCloseBracketDescriptionNode(node: FilterRelationsDescriptionNode): node is CloseBracketDescriptionNode;
75
+ type AttributeDescriptionNode = {
76
+ nodeType: 'attribute';
77
+ attribute: string;
78
+ };
79
+ export declare function isAttributeDescriptionNode(node: FilterRelationsDescriptionNode): node is AttributeDescriptionNode;
80
+ type OperatorDescriptionNode = {
81
+ nodeType: 'operator';
82
+ operator: 'AND' | 'OR';
83
+ };
84
+ export declare function isOperatorDescriptionNode(node: FilterRelationsDescriptionNode): node is OperatorDescriptionNode;
64
85
  export {};
@@ -11,7 +11,7 @@ import { Filter, FilterRelations, FilterRelationsJaql } from '@sisense/sdk-data'
11
11
  export declare function isFiltersChanged(prevFilters: Filter[] | undefined, newFilters: Filter[] | undefined): boolean;
12
12
  export declare function haveSameAttribute(filterA: Filter, filterB: Filter): boolean;
13
13
  /**
14
- * Compare filters with ignoring randomly generated names
14
+ * Compare filters with ignoring randomly generated things
15
15
  */
16
16
  export declare function areFiltersEqual(filterA: Filter, filterB: Filter): boolean;
17
17
  /**
@@ -0,0 +1,5 @@
1
+ import { Measure } from '@sisense/sdk-data';
2
+ /**
3
+ * Checks if the measures have changed by deep comparison.
4
+ */
5
+ export declare const areMeasuresChanged: (prevMeasures: Measure[] | undefined, newMeasures: Measure[] | undefined) => boolean;