@sisense/sdk-ui 1.2.0 → 1.3.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.js +2 -2
- package/dist/api/types/dashboard-dto.d.ts +4 -1
- package/dist/app/client-application.d.ts +6 -1
- package/dist/chart-data/types.d.ts +4 -4
- package/dist/chart-options-processor/apply-event-handlers.d.ts +5 -28
- package/dist/chart-options-processor/translations/design-options.d.ts +2 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +3 -0
- package/dist/charts/indicator/types.d.ts +2 -0
- package/dist/charts/map-charts/areamap/areamap-map.d.ts +2 -1
- package/dist/charts/map-charts/areamap/areamap.d.ts +4 -2
- package/dist/charts/map-charts/areamap/use-geo-json.d.ts +1 -1
- package/dist/charts/map-charts/scattermap/scattermap.d.ts +2 -2
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +4 -14
- package/dist/common/components/loading-overlay.d.ts +14 -0
- package/dist/dashboard-widget/translate-widget-filters.d.ts +1 -1
- package/dist/dashboard-widget/types.d.ts +1 -0
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +3 -0
- package/dist/dashboard-widget/utils.d.ts +26 -1
- package/dist/filters/components/common/checkbox.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3488 -3508
- package/dist/models/widget/widget-model.d.ts +2 -2
- package/dist/props.d.ts +150 -51
- package/dist/query-execution/query-state-reducer.d.ts +1 -0
- package/dist/query-execution/types.d.ts +3 -3
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +2 -5
- package/dist/sisense-chart/index.d.ts +2 -0
- package/dist/sisense-chart/sisense-chart.d.ts +23 -0
- package/dist/sisense-chart/types.d.ts +5 -0
- package/dist/table/hooks/use-table-data.d.ts +2 -2
- package/dist/{table-widget-65f3e04e.js → table-widget-b467cc86.js} +13857 -13750
- package/dist/translation/resources/en.d.ts +1 -0
- package/dist/translation/resources/index.d.ts +2 -0
- package/dist/types.d.ts +52 -5
- package/dist/utils/filters-comparator.d.ts +2 -2
- package/dist/widgets/common/custom-drilldown.d.ts +1 -1
- package/dist/widgets/common/drilldown.d.ts +3 -1
- package/package.json +7 -7
- package/dist/dashboard-widget/translate-widget.d.ts +0 -12
- package/dist/query-execution/utils.d.ts +0 -9
- package/dist/sisense-chart.d.ts +0 -23
|
@@ -34,6 +34,7 @@ export declare const resources: {
|
|
|
34
34
|
tabularWidgetNotSupported: string;
|
|
35
35
|
onlyTabularWidgetsSupported: string;
|
|
36
36
|
};
|
|
37
|
+
unknownFilterInFilterRelations: string;
|
|
37
38
|
};
|
|
38
39
|
errorBoxText: string;
|
|
39
40
|
chartNoData: string;
|
|
@@ -117,6 +118,7 @@ export declare const resources: {
|
|
|
117
118
|
tabularWidgetNotSupported: string;
|
|
118
119
|
onlyTabularWidgetsSupported: string;
|
|
119
120
|
};
|
|
121
|
+
unknownFilterInFilterRelations: string;
|
|
120
122
|
};
|
|
121
123
|
errorBoxText: string;
|
|
122
124
|
chartNoData: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -8,11 +8,12 @@ import { ScatterMarkerSize } from './chart-options-processor/translations/scatte
|
|
|
8
8
|
import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, AreamapChartType, BoxplotChartType, ScattermapChartType } from './chart-options-processor/translations/types';
|
|
9
9
|
import { DataPointsEventHandler } from './props';
|
|
10
10
|
import { LegendPosition } from './chart-options-processor/translations/legend-section';
|
|
11
|
+
import { GeoDataElement, RawGeoDataElement } from './chart-data/types';
|
|
11
12
|
export type { AppConfig } from './app/client-application';
|
|
12
13
|
export type { DateConfig } from './query/date-formats';
|
|
13
14
|
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
14
15
|
export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
|
|
15
|
-
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, };
|
|
16
|
+
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, };
|
|
16
17
|
export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
|
|
17
18
|
/**
|
|
18
19
|
* @internal
|
|
@@ -318,6 +319,8 @@ export interface TableStyleOptions {
|
|
|
318
319
|
*/
|
|
319
320
|
export interface BaseIndicatorStyleOptions {
|
|
320
321
|
indicatorComponents?: IndicatorComponents;
|
|
322
|
+
/** Boolean flag to force render indicator in ticker mode regardless of display size */
|
|
323
|
+
forceTickerView?: boolean;
|
|
321
324
|
}
|
|
322
325
|
/** Configuration options that define functional style of the various elements of Numeric Simple {@link IndicatorChart} */
|
|
323
326
|
export interface NumericSimpleIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
@@ -334,6 +337,8 @@ export interface NumericBarIndicatorStyleOptions extends BaseIndicatorStyleOptio
|
|
|
334
337
|
export interface GaugeIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
335
338
|
subtype: 'indicator/gauge';
|
|
336
339
|
skin: 1 | 2;
|
|
340
|
+
/** Bar height for gauge indicator in ticker mode */
|
|
341
|
+
tickerBarHeight?: number;
|
|
337
342
|
}
|
|
338
343
|
/** Configuration options that define functional style of the various elements of {@link ScatterChart} */
|
|
339
344
|
export interface ScatterStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
@@ -623,12 +628,29 @@ export type DrilldownOptions = {
|
|
|
623
628
|
/** Selection for the drilldown */
|
|
624
629
|
export type DrilldownSelection = {
|
|
625
630
|
/** Points selected for drilldown */
|
|
626
|
-
points:
|
|
631
|
+
points: ChartDataPoint[];
|
|
627
632
|
/** Dimension to drilldown to */
|
|
628
633
|
nextDimension: Attribute;
|
|
629
634
|
};
|
|
630
|
-
|
|
631
|
-
|
|
635
|
+
/**
|
|
636
|
+
* Data points in a chart. Array of data points of the same data point type.
|
|
637
|
+
*/
|
|
638
|
+
export type ChartDataPoints = DataPoint[] | ScatterDataPoint[] | BoxplotDataPoint[] | AreamapDataPoint[];
|
|
639
|
+
/**
|
|
640
|
+
* Abstract data point in a chart - union of all types of data points.
|
|
641
|
+
*/
|
|
642
|
+
export type ChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | AreamapDataPoint;
|
|
643
|
+
/**
|
|
644
|
+
* Abstract data point in a chart that based on Highcharts.
|
|
645
|
+
* @internal
|
|
646
|
+
*/
|
|
647
|
+
export type HighchartsBasedChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint;
|
|
648
|
+
/**
|
|
649
|
+
* Abstract event handler for data point click event
|
|
650
|
+
* @internal
|
|
651
|
+
*/
|
|
652
|
+
export type ChartDataPointEventHandler = (point: ChartDataPoint, nativeEvent: PointerEvent | MouseEvent) => void;
|
|
653
|
+
/** Data point in a regular chart. */
|
|
632
654
|
export type DataPoint = {
|
|
633
655
|
/** Value of the data point */
|
|
634
656
|
value?: string | number;
|
|
@@ -639,7 +661,7 @@ export type DataPoint = {
|
|
|
639
661
|
/** Series associated with the data point */
|
|
640
662
|
seriesValue?: string | number;
|
|
641
663
|
};
|
|
642
|
-
/** Data point in a chart. */
|
|
664
|
+
/** Data point in a Scatter chart. */
|
|
643
665
|
export type ScatterDataPoint = {
|
|
644
666
|
x?: string | number;
|
|
645
667
|
y?: string | number;
|
|
@@ -647,15 +669,27 @@ export type ScatterDataPoint = {
|
|
|
647
669
|
breakByPoint?: string;
|
|
648
670
|
breakByColor?: string;
|
|
649
671
|
};
|
|
672
|
+
/** Data point in a Boxplot chart. */
|
|
650
673
|
export type BoxplotDataPoint = {
|
|
674
|
+
/** Value of the box minimum */
|
|
651
675
|
boxMin: number;
|
|
676
|
+
/** Value of the box median */
|
|
652
677
|
boxMedian: number;
|
|
678
|
+
/** Value of the box maximum */
|
|
653
679
|
boxMax: number;
|
|
680
|
+
/** Value of the box minimal whisker */
|
|
654
681
|
whiskerMin: number;
|
|
682
|
+
/** Value of the box maximal whisker */
|
|
655
683
|
whiskerMax: number;
|
|
684
|
+
/** Value of the category for the data point */
|
|
656
685
|
categoryValue?: string | number;
|
|
686
|
+
/** Display value of category of the data point */
|
|
657
687
|
categoryDisplayValue?: string;
|
|
658
688
|
};
|
|
689
|
+
/**
|
|
690
|
+
* Data point in an Areamap chart.
|
|
691
|
+
*/
|
|
692
|
+
export type AreamapDataPoint = GeoDataElement;
|
|
659
693
|
/**
|
|
660
694
|
* This is the minimum definition of Highcharts
|
|
661
695
|
* events, Series, and Point that we require. As
|
|
@@ -799,3 +833,16 @@ export type CustomDrilldownResult = {
|
|
|
799
833
|
*/
|
|
800
834
|
breadcrumbsComponent?: JSX.Element;
|
|
801
835
|
};
|
|
836
|
+
/**
|
|
837
|
+
* A config that defines the behavior of the loading indicator
|
|
838
|
+
*/
|
|
839
|
+
export type LoadingIndicatorConfig = {
|
|
840
|
+
/**
|
|
841
|
+
* Delay in milliseconds before the loading indicator is shown
|
|
842
|
+
*/
|
|
843
|
+
delay?: number;
|
|
844
|
+
/**
|
|
845
|
+
* Boolean flag that defines if the loading indicator should be shown
|
|
846
|
+
*/
|
|
847
|
+
enabled?: boolean;
|
|
848
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Filter,
|
|
1
|
+
import { Filter, FilterRelations, FilterRelationsJaql } from '@sisense/sdk-data';
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the filters have changed by deep comparison.
|
|
4
4
|
*
|
|
@@ -20,4 +20,4 @@ export declare function isFiltersChanged(prevFilters: Filter[] | undefined, newF
|
|
|
20
20
|
* @remarks
|
|
21
21
|
* The function ignores node swaps since this does not affect logical result.
|
|
22
22
|
*/
|
|
23
|
-
export declare function isRelationsChanged(prevFilters: Filter[] | undefined, newFilters: Filter[] | undefined, prevRelations:
|
|
23
|
+
export declare function isRelationsChanged(prevFilters: Filter[] | undefined, newFilters: Filter[] | undefined, prevRelations: FilterRelations | FilterRelationsJaql | undefined, newRelations: FilterRelations | FilterRelationsJaql | undefined): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyledColumn, DrilldownSelection, DataPoint } from '../../types.js';
|
|
2
2
|
import { Attribute, Column, MembersFilter } from '@sisense/sdk-data';
|
|
3
3
|
export declare const useCustomDrilldown: ({ drilldownDimensions, initialDimension, }: {
|
|
4
4
|
drilldownDimensions: Attribute[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartDataOptions, DataPoint, DrilldownOptions, DrilldownSelection } from '../../types';
|
|
1
|
+
import { ChartDataOptions, ChartDataPoint, DataPoint, DrilldownOptions, DrilldownSelection } from '../../types';
|
|
2
2
|
import { Attribute, MembersFilter } from '@sisense/sdk-data';
|
|
3
3
|
export declare const useDrilldown: (dataOptions: ChartDataOptions, drilldownOptions?: DrilldownOptions) => {
|
|
4
4
|
drilldownFilters: never[];
|
|
@@ -40,3 +40,5 @@ export declare const useDrilldown: (dataOptions: ChartDataOptions, drilldownOpti
|
|
|
40
40
|
drilldownSelections: DrilldownSelection[];
|
|
41
41
|
availableDrilldowns: Attribute[];
|
|
42
42
|
};
|
|
43
|
+
export declare function getMemberNameFromDataPoint(point: ChartDataPoint): string;
|
|
44
|
+
export declare function getDisplayMemberNameFromDataPoint(point: ChartDataPoint): string;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"Sisense",
|
|
12
12
|
"Compose SDK"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.3.0",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"@emotion/react": "^11.10.5",
|
|
40
40
|
"@emotion/styled": "^11.10.5",
|
|
41
41
|
"@mui/material": "^5.11.6",
|
|
42
|
-
"@sisense/sdk-common": "^1.
|
|
43
|
-
"@sisense/sdk-data": "^1.
|
|
44
|
-
"@sisense/sdk-pivot-client": "^1.
|
|
45
|
-
"@sisense/sdk-query-client": "^1.
|
|
46
|
-
"@sisense/sdk-rest-client": "^1.
|
|
47
|
-
"@sisense/sdk-tracking": "^1.
|
|
42
|
+
"@sisense/sdk-common": "^1.3.0",
|
|
43
|
+
"@sisense/sdk-data": "^1.3.0",
|
|
44
|
+
"@sisense/sdk-pivot-client": "^1.3.0",
|
|
45
|
+
"@sisense/sdk-query-client": "^1.3.0",
|
|
46
|
+
"@sisense/sdk-rest-client": "^1.3.0",
|
|
47
|
+
"@sisense/sdk-tracking": "^1.3.0",
|
|
48
48
|
"@sisense/sisense-charts": "5.1.0-alpha-04052758.0",
|
|
49
49
|
"@tanstack/react-query": "4.36.1",
|
|
50
50
|
"classnames": "^2.3.2",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CompleteThemeSettings } from '../types';
|
|
2
|
-
import { WidgetDto } from './types';
|
|
3
|
-
import { ChartWidgetProps, TableWidgetProps } from '../props';
|
|
4
|
-
export type TableWidgetExtractedProps = {
|
|
5
|
-
type: 'table';
|
|
6
|
-
props: TableWidgetProps;
|
|
7
|
-
};
|
|
8
|
-
export type ChartWidgetExtractedProps = {
|
|
9
|
-
type: 'chart';
|
|
10
|
-
props: ChartWidgetProps;
|
|
11
|
-
};
|
|
12
|
-
export declare function extractWidgetProps(widget: WidgetDto, themeSettings?: CompleteThemeSettings): TableWidgetExtractedProps | ChartWidgetExtractedProps;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ExecuteQueryParams } from './index';
|
|
2
|
-
import type { WidgetDto } from '../dashboard-widget/types';
|
|
3
|
-
/**
|
|
4
|
-
* Extracts query parameters from a widget object.
|
|
5
|
-
*
|
|
6
|
-
* @param {WidgetDto} widget - The widget from which to extract query parameters.
|
|
7
|
-
* @returns {ExecuteQueryParams} An object containing extracted query parameters.
|
|
8
|
-
*/
|
|
9
|
-
export declare function extractQueryFromWidget(widget: WidgetDto): ExecuteQueryParams;
|
package/dist/sisense-chart.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ChartDataOptionsInternal } from './chart-data-options/types';
|
|
3
|
-
import { ChartData } from './chart-data/types';
|
|
4
|
-
import { DataPointEventHandler, DataPointsEventHandler, ScatterDataPointEventHandler, ScatterDataPointsEventHandler } from './chart-options-processor/apply-event-handlers';
|
|
5
|
-
import { BeforeRenderHandler } from './props';
|
|
6
|
-
import { ChartDesignOptions } from './chart-options-processor/translations/types';
|
|
7
|
-
import { ChartType, CompleteThemeSettings } from './types';
|
|
8
|
-
interface Props {
|
|
9
|
-
chartType: ChartType;
|
|
10
|
-
chartData: ChartData;
|
|
11
|
-
chartDataOptions: ChartDataOptionsInternal;
|
|
12
|
-
designOptions: ChartDesignOptions;
|
|
13
|
-
themeSettings?: CompleteThemeSettings;
|
|
14
|
-
onDataPointClick?: DataPointEventHandler | ScatterDataPointEventHandler;
|
|
15
|
-
onDataPointContextMenu?: DataPointEventHandler | ScatterDataPointEventHandler;
|
|
16
|
-
onDataPointsSelected?: DataPointsEventHandler | ScatterDataPointsEventHandler;
|
|
17
|
-
onBeforeRender?: BeforeRenderHandler;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export declare const SisenseChart: ({ chartType, chartData, chartDataOptions, designOptions, themeSettings, onDataPointClick, onDataPointContextMenu, onDataPointsSelected, onBeforeRender, }: Props) => JSX.Element | null;
|
|
23
|
-
export {};
|