@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.
- package/dist/ai/ai-context-provider.d.ts +32 -0
- package/dist/ai/api/chat-api-provider.d.ts +17 -0
- package/dist/ai/api/chat-rest-api.d.ts +3 -1
- package/dist/ai/api/errors.d.ts +1 -0
- package/dist/ai/api/hooks.d.ts +10 -49
- package/dist/ai/api/types.d.ts +16 -27
- package/dist/ai/buttons/thumbs-down-button.d.ts +6 -0
- package/dist/ai/buttons/thumbs-up-button.d.ts +6 -0
- package/dist/ai/chat-box.d.ts +3 -3
- package/dist/ai/chat-config.d.ts +28 -0
- package/dist/ai/chat-home.d.ts +5 -1
- package/dist/ai/chat-router.d.ts +2 -0
- package/dist/ai/chatbot.d.ts +26 -4
- package/dist/ai/common/tooltip.d.ts +5 -0
- package/dist/ai/error-page.d.ts +10 -0
- package/dist/ai/get-nlg-query-result.d.ts +78 -0
- package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -0
- package/dist/ai/icons/thumbs-down-icon.d.ts +2 -0
- package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -0
- package/dist/ai/icons/thumbs-up-icon.d.ts +2 -0
- package/dist/ai/index.d.ts +6 -3
- package/dist/ai/loading-page.d.ts +2 -0
- package/dist/ai/messages/clear-history-success-message.d.ts +2 -0
- package/dist/ai/messages/feedback-wrapper.d.ts +9 -0
- package/dist/ai/messages/get-widget-options.d.ts +2 -1
- package/dist/ai/messages/message-resolver.d.ts +1 -2
- package/dist/ai/messages/text-message.d.ts +1 -1
- package/dist/ai/toolbar.d.ts +2 -2
- package/dist/ai/use-chat-session.d.ts +1 -1
- package/dist/ai/use-get-nlg-query-result.d.ts +103 -0
- package/dist/ai/use-get-query-recommendations.d.ts +67 -0
- package/dist/ai.js +1866 -1518
- package/dist/api/types/dashboard-dto.d.ts +4 -1
- package/dist/app/client-application.d.ts +6 -1
- package/dist/{chart.d.ts → chart/chart.d.ts} +1 -1
- package/dist/chart/helpers/use-synced-data.d.ts +8 -0
- package/dist/chart/helpers/use-translated-data-options.d.ts +7 -0
- package/dist/chart/index.d.ts +1 -0
- package/dist/chart-data/types.d.ts +5 -4
- package/dist/chart-data-options/translate-data-options.d.ts +5 -1
- package/dist/chart-data-options/types.d.ts +107 -12
- package/dist/chart-options-processor/apply-event-handlers.d.ts +5 -28
- package/dist/chart-options-processor/boxplot-chart-options.d.ts +2 -2
- package/dist/chart-options-processor/category-chart-options.d.ts +1 -1
- package/dist/chart-options-processor/chart-options-service.d.ts +7 -0
- package/dist/chart-options-processor/plot-bands.d.ts +2 -2
- package/dist/chart-options-processor/scatter-chart-options.d.ts +2 -2
- package/dist/chart-options-processor/style-to-design-options-translator/index.d.ts +1 -0
- package/dist/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +4 -0
- package/dist/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
- package/dist/chart-options-processor/translations/base-design-options.d.ts +3 -3
- package/dist/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +2 -2
- package/dist/chart-options-processor/translations/design-options.d.ts +4 -2
- package/dist/chart-options-processor/translations/number-format-config.d.ts +10 -16
- package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +4 -4
- package/dist/chart-options-processor/translations/types.d.ts +18 -6
- package/dist/chart-options-processor/translations/value-label-section.d.ts +9 -4
- package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +3 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/prepare-ticker-options.d.ts +2 -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 +6 -4
- package/dist/charts/map-charts/areamap/use-geo-json.d.ts +1 -1
- package/dist/charts/map-charts/scattermap/scattermap.d.ts +11 -5
- package/dist/charts/map-charts/scattermap/utils/location.d.ts +3 -0
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +4 -14
- package/dist/charts/table/helpers/calc-column-widths.d.ts +3 -1
- package/dist/common/components/loading-overlay.d.ts +14 -0
- package/dist/common/hooks/data-load-state-reducer.d.ts +10 -0
- package/dist/common/hooks/use-hover.d.ts +8 -0
- package/dist/common/icons/yellow-exclamation-mark-icon.d.ts +2 -0
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- 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/decorators/hook-decorators/with-tracking.d.ts +11 -0
- package/dist/filters/components/common/checkbox.d.ts +1 -0
- package/dist/formulas/fetch-formula.d.ts +2 -0
- package/dist/formulas/index.d.ts +1 -0
- package/dist/formulas/use-get-shared-formula.d.ts +5 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +35370 -11599
- package/dist/indicator-canvas.d.ts +2 -2
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +8 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +6 -0
- package/dist/models/widget/widget-model.d.ts +2 -2
- package/dist/pivot-table/index.d.ts +1 -0
- package/dist/pivot-table/pivot-table.d.ts +42 -0
- package/dist/pivot-table/use-get-pivot-table-query.d.ts +14 -0
- package/dist/props.d.ts +209 -52
- 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/translation/resources/en.d.ts +1 -0
- package/dist/translation/resources/index.d.ts +2 -0
- package/dist/types.d.ts +126 -14
- package/dist/utils/filters-comparator.d.ts +2 -2
- package/dist/utils/utility-types.d.ts +12 -0
- package/dist/widgets/common/custom-drilldown.d.ts +1 -1
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/widgets/common/drilldown.d.ts +4 -2
- package/dist/{table-widget-65f3e04e.js → with-tracking-b583e949.js} +40958 -40712
- package/package.json +13 -13
- package/dist/ai/api/chat-api-context.d.ts +0 -12
- package/dist/ai/chatbot-context.d.ts +0 -11
- package/dist/ai/nlg-query-result.d.ts +0 -20
- 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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartDataOptionsInternal } from '../chart-data-options/types';
|
|
3
|
+
import { ChartData } from '../chart-data/types';
|
|
4
|
+
import { BeforeRenderHandler } from '../props';
|
|
5
|
+
import { ChartDesignOptions } from '../chart-options-processor/translations/types';
|
|
6
|
+
import { ChartType, CompleteThemeSettings } from '../types';
|
|
7
|
+
import { SisenseChartDataPointEventHandler, SisenseChartDataPointsEventHandler } from './types';
|
|
8
|
+
interface Props {
|
|
9
|
+
chartType: ChartType;
|
|
10
|
+
chartData: ChartData;
|
|
11
|
+
chartDataOptions: ChartDataOptionsInternal;
|
|
12
|
+
chartDesignOptions: ChartDesignOptions;
|
|
13
|
+
themeSettings?: CompleteThemeSettings;
|
|
14
|
+
onDataPointClick?: SisenseChartDataPointEventHandler;
|
|
15
|
+
onDataPointContextMenu?: SisenseChartDataPointEventHandler;
|
|
16
|
+
onDataPointsSelected?: SisenseChartDataPointsEventHandler;
|
|
17
|
+
onBeforeRender?: BeforeRenderHandler;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const SisenseChart: ({ chartType, chartData, chartDataOptions, chartDesignOptions, themeSettings, onDataPointClick, onDataPointContextMenu, onDataPointsSelected, onBeforeRender, }: Props) => JSX.Element | null;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DataPointsEventHandler, ScatterDataPointsEventHandler } from '../props.js';
|
|
2
|
+
import { BoxplotDataPoint, DataPoint, ScatterDataPoint } from '../types.js';
|
|
3
|
+
export type SisenseChartDataPointsEventHandler = DataPointsEventHandler | ScatterDataPointsEventHandler;
|
|
4
|
+
export type SisenseChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint;
|
|
5
|
+
export type SisenseChartDataPointEventHandler = (point: SisenseChartDataPoint, nativeEvent: PointerEvent) => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Attribute, Data, DataSource, Filter,
|
|
1
|
+
import { Attribute, Data, DataSource, Filter, FilterRelationsJaql, Measure } from '@sisense/sdk-data';
|
|
2
2
|
import { TableDataOptionsInternal } from '../../chart-data-options/types';
|
|
3
3
|
type UseDataProps = {
|
|
4
4
|
dataSet: Data | DataSource | undefined;
|
|
5
5
|
dataOptions: TableDataOptionsInternal | null;
|
|
6
6
|
filters: Filter[] | undefined;
|
|
7
|
-
filterRelations:
|
|
7
|
+
filterRelations: FilterRelationsJaql | undefined;
|
|
8
8
|
count: number;
|
|
9
9
|
offset: number;
|
|
10
10
|
};
|
|
@@ -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,13 @@ 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';
|
|
12
|
+
import { Coordinates } from './charts/map-charts/scattermap/types';
|
|
11
13
|
export type { AppConfig } from './app/client-application';
|
|
12
14
|
export type { DateConfig } from './query/date-formats';
|
|
13
15
|
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
14
16
|
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, };
|
|
17
|
+
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, };
|
|
16
18
|
export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
|
|
17
19
|
/**
|
|
18
20
|
* @internal
|
|
@@ -311,6 +313,49 @@ export interface TableStyleOptions {
|
|
|
311
313
|
*/
|
|
312
314
|
height?: number;
|
|
313
315
|
}
|
|
316
|
+
/** Configuration options that define functional style of the various elements of {@link PivotTable} */
|
|
317
|
+
export interface PivotTableStyleOptions {
|
|
318
|
+
/**
|
|
319
|
+
* Boolean flag whether to fill header cells with background color
|
|
320
|
+
*/
|
|
321
|
+
headersColor?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Boolean flag whether to apply background color to alternate rows.
|
|
324
|
+
*/
|
|
325
|
+
alternatingRowsColor?: boolean;
|
|
326
|
+
/**
|
|
327
|
+
* Boolean flag whether to apply background color to alternate columns
|
|
328
|
+
*/
|
|
329
|
+
alternatingColumnsColor?: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* Number of rows per page
|
|
332
|
+
*
|
|
333
|
+
* Default value is 25
|
|
334
|
+
*
|
|
335
|
+
*/
|
|
336
|
+
rowsPerPage?: number;
|
|
337
|
+
/**
|
|
338
|
+
* Total width of the component, which is considered in the following order of priority:
|
|
339
|
+
*
|
|
340
|
+
* 1. Value passed to this property (in pixels)
|
|
341
|
+
* 2. Width of the container wrapping this component
|
|
342
|
+
* 3. Default value of 400px
|
|
343
|
+
*
|
|
344
|
+
*/
|
|
345
|
+
width?: number;
|
|
346
|
+
/**
|
|
347
|
+
* Total height of the component, which is considered in the following order of priority:
|
|
348
|
+
*
|
|
349
|
+
* 1. Value passed to this property (in pixels).
|
|
350
|
+
* 2. Height of the container wrapping this component
|
|
351
|
+
* 3. Default value of 500px (for component without header) or 525px (for component with header).
|
|
352
|
+
*/
|
|
353
|
+
height?: number;
|
|
354
|
+
/**
|
|
355
|
+
* Boolean flag whether the height of the component should be automatically adjusted to fit the content
|
|
356
|
+
*/
|
|
357
|
+
isAutoHeight?: boolean;
|
|
358
|
+
}
|
|
314
359
|
/**
|
|
315
360
|
* Common part of IndicatorStyleOptions for all types of indicator
|
|
316
361
|
*
|
|
@@ -318,6 +363,8 @@ export interface TableStyleOptions {
|
|
|
318
363
|
*/
|
|
319
364
|
export interface BaseIndicatorStyleOptions {
|
|
320
365
|
indicatorComponents?: IndicatorComponents;
|
|
366
|
+
/** Boolean flag to force render indicator in ticker mode regardless of display size */
|
|
367
|
+
forceTickerView?: boolean;
|
|
321
368
|
}
|
|
322
369
|
/** Configuration options that define functional style of the various elements of Numeric Simple {@link IndicatorChart} */
|
|
323
370
|
export interface NumericSimpleIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
@@ -334,6 +381,8 @@ export interface NumericBarIndicatorStyleOptions extends BaseIndicatorStyleOptio
|
|
|
334
381
|
export interface GaugeIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
335
382
|
subtype: 'indicator/gauge';
|
|
336
383
|
skin: 1 | 2;
|
|
384
|
+
/** Bar height for gauge indicator in ticker mode */
|
|
385
|
+
tickerBarHeight?: number;
|
|
337
386
|
}
|
|
338
387
|
/** Configuration options that define functional style of the various elements of {@link ScatterChart} */
|
|
339
388
|
export interface ScatterStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
@@ -442,37 +491,37 @@ export type NumberFormatConfig = {
|
|
|
442
491
|
/**
|
|
443
492
|
* Supported formats
|
|
444
493
|
*/
|
|
445
|
-
name
|
|
494
|
+
name?: 'Numbers' | 'Currency' | 'Percent';
|
|
446
495
|
/**
|
|
447
496
|
* The number of decimal places
|
|
448
497
|
*/
|
|
449
|
-
decimalScale
|
|
498
|
+
decimalScale?: DecimalScale;
|
|
450
499
|
/**
|
|
451
500
|
* Boolean flag whether to show an abbreviation
|
|
452
501
|
* for a number greater than or equal one trillion - e.g. 1T
|
|
453
502
|
*/
|
|
454
|
-
trillion
|
|
503
|
+
trillion?: boolean;
|
|
455
504
|
/**
|
|
456
505
|
* Boolean flag whether to show an abbreviation
|
|
457
506
|
* for a number greater than or equal one billion - e.g. 1B
|
|
458
507
|
*/
|
|
459
|
-
billion
|
|
508
|
+
billion?: boolean;
|
|
460
509
|
/**
|
|
461
510
|
* Boolean flag whether to show an abbreviation
|
|
462
511
|
* for a number greater than or equal one million - e.g. 1M
|
|
463
512
|
*/
|
|
464
|
-
million
|
|
513
|
+
million?: boolean;
|
|
465
514
|
/**
|
|
466
515
|
* Boolean flag whether to show an abbreviation
|
|
467
516
|
* for a number greater than or equal one thousand - e.g. 1K
|
|
468
517
|
*/
|
|
469
|
-
kilo
|
|
518
|
+
kilo?: boolean;
|
|
470
519
|
/**
|
|
471
520
|
* Boolean flag whether the thousand separator is shown
|
|
472
521
|
*
|
|
473
522
|
* If true, show the thousand separator, e.g. `1,000`. Otherwise, show `1000`
|
|
474
523
|
*/
|
|
475
|
-
thousandSeparator
|
|
524
|
+
thousandSeparator?: boolean;
|
|
476
525
|
/**
|
|
477
526
|
* Boolean flag whether `symbol` is shown in front of or after the number
|
|
478
527
|
*
|
|
@@ -480,12 +529,18 @@ export type NumberFormatConfig = {
|
|
|
480
529
|
*
|
|
481
530
|
* If false, append `symbol` after the number, e.g. show `1000¥` when `symbol` is `¥`.
|
|
482
531
|
*/
|
|
483
|
-
prefix
|
|
532
|
+
prefix?: boolean;
|
|
484
533
|
/**
|
|
485
534
|
* Symbol to show in front of or after the number depending on the value of `prefix`.
|
|
486
535
|
*/
|
|
487
|
-
symbol
|
|
536
|
+
symbol?: string;
|
|
488
537
|
};
|
|
538
|
+
/**
|
|
539
|
+
* {@link NumberFormatConfig} with all props required
|
|
540
|
+
*
|
|
541
|
+
* @internal
|
|
542
|
+
*/
|
|
543
|
+
export type CompleteNumberFormatConfig = Required<NumberFormatConfig>;
|
|
489
544
|
/** Identifier of a theme as defined in the Sisense instance. */
|
|
490
545
|
export type ThemeOid = string;
|
|
491
546
|
/** Theme settings defining the look and feel of components. */
|
|
@@ -623,12 +678,31 @@ export type DrilldownOptions = {
|
|
|
623
678
|
/** Selection for the drilldown */
|
|
624
679
|
export type DrilldownSelection = {
|
|
625
680
|
/** Points selected for drilldown */
|
|
626
|
-
points:
|
|
681
|
+
points: ChartDataPoint[];
|
|
627
682
|
/** Dimension to drilldown to */
|
|
628
683
|
nextDimension: Attribute;
|
|
629
684
|
};
|
|
630
|
-
|
|
631
|
-
|
|
685
|
+
/**
|
|
686
|
+
* Data points in a chart. Array of data points of the same data point type.
|
|
687
|
+
*/
|
|
688
|
+
export type ChartDataPoints = DataPoint[] | ScatterDataPoint[] | BoxplotDataPoint[] | AreamapDataPoint[];
|
|
689
|
+
/**
|
|
690
|
+
* Abstract data point in a chart - union of all types of data points.
|
|
691
|
+
*/
|
|
692
|
+
export type ChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | AreamapDataPoint;
|
|
693
|
+
/**
|
|
694
|
+
* Abstract data point in a chart that based on Highcharts.
|
|
695
|
+
*
|
|
696
|
+
* @internal
|
|
697
|
+
*/
|
|
698
|
+
export type HighchartsBasedChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint;
|
|
699
|
+
/**
|
|
700
|
+
* Abstract event handler for data point click event
|
|
701
|
+
*
|
|
702
|
+
* @internal
|
|
703
|
+
*/
|
|
704
|
+
export type ChartDataPointEventHandler = (point: ChartDataPoint, nativeEvent: PointerEvent | MouseEvent) => void;
|
|
705
|
+
/** Data point in a regular chart. */
|
|
632
706
|
export type DataPoint = {
|
|
633
707
|
/** Value of the data point */
|
|
634
708
|
value?: string | number;
|
|
@@ -639,7 +713,7 @@ export type DataPoint = {
|
|
|
639
713
|
/** Series associated with the data point */
|
|
640
714
|
seriesValue?: string | number;
|
|
641
715
|
};
|
|
642
|
-
/** Data point in a chart. */
|
|
716
|
+
/** Data point in a Scatter chart. */
|
|
643
717
|
export type ScatterDataPoint = {
|
|
644
718
|
x?: string | number;
|
|
645
719
|
y?: string | number;
|
|
@@ -647,15 +721,40 @@ export type ScatterDataPoint = {
|
|
|
647
721
|
breakByPoint?: string;
|
|
648
722
|
breakByColor?: string;
|
|
649
723
|
};
|
|
724
|
+
/** Data point in a Boxplot chart. */
|
|
650
725
|
export type BoxplotDataPoint = {
|
|
726
|
+
/** Value of the box minimum */
|
|
651
727
|
boxMin: number;
|
|
728
|
+
/** Value of the box median */
|
|
652
729
|
boxMedian: number;
|
|
730
|
+
/** Value of the box maximum */
|
|
653
731
|
boxMax: number;
|
|
732
|
+
/** Value of the box minimal whisker */
|
|
654
733
|
whiskerMin: number;
|
|
734
|
+
/** Value of the box maximal whisker */
|
|
655
735
|
whiskerMax: number;
|
|
736
|
+
/** Value of the category for the data point */
|
|
656
737
|
categoryValue?: string | number;
|
|
738
|
+
/** Display value of category of the data point */
|
|
657
739
|
categoryDisplayValue?: string;
|
|
658
740
|
};
|
|
741
|
+
/**
|
|
742
|
+
* Data point in an Areamap chart.
|
|
743
|
+
*/
|
|
744
|
+
export type AreamapDataPoint = GeoDataElement;
|
|
745
|
+
/**
|
|
746
|
+
* Data point in an Scattermap chart.
|
|
747
|
+
*/
|
|
748
|
+
export type ScattermapDataPoint = {
|
|
749
|
+
/** Location name displayed on marker */
|
|
750
|
+
displayName: string;
|
|
751
|
+
/** Array with categories strings used for location definition */
|
|
752
|
+
categories: string[];
|
|
753
|
+
/** Numeric measure value */
|
|
754
|
+
value: number;
|
|
755
|
+
/** Location coordinates */
|
|
756
|
+
coordinates: Coordinates;
|
|
757
|
+
};
|
|
659
758
|
/**
|
|
660
759
|
* This is the minimum definition of Highcharts
|
|
661
760
|
* events, Series, and Point that we require. As
|
|
@@ -799,3 +898,16 @@ export type CustomDrilldownResult = {
|
|
|
799
898
|
*/
|
|
800
899
|
breadcrumbsComponent?: JSX.Element;
|
|
801
900
|
};
|
|
901
|
+
/**
|
|
902
|
+
* A config that defines the behavior of the loading indicator
|
|
903
|
+
*/
|
|
904
|
+
export type LoadingIndicatorConfig = {
|
|
905
|
+
/**
|
|
906
|
+
* Delay in milliseconds before the loading indicator is shown
|
|
907
|
+
*/
|
|
908
|
+
delay?: number;
|
|
909
|
+
/**
|
|
910
|
+
* Boolean flag that defines if the loading indicator should be shown
|
|
911
|
+
*/
|
|
912
|
+
enabled?: boolean;
|
|
913
|
+
};
|
|
@@ -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;
|
|
@@ -40,4 +40,16 @@ type PickTypeOf<T, K extends string | number | symbol> = K extends AllKeys<T> ?
|
|
|
40
40
|
* Abstract object with any unknown values
|
|
41
41
|
*/
|
|
42
42
|
export type AnyObject = Record<string, any>;
|
|
43
|
+
/**
|
|
44
|
+
* Allows you to make a property of an object required.
|
|
45
|
+
* @example
|
|
46
|
+
* type T = {
|
|
47
|
+
* a: string;
|
|
48
|
+
* b?: number;
|
|
49
|
+
* c?: boolean;
|
|
50
|
+
* };
|
|
51
|
+
*
|
|
52
|
+
* type TRequiredB = WithRequiredProp<T, 'b'>; // { a: string; b: number; c?: boolean; }
|
|
53
|
+
*/
|
|
54
|
+
export type WithRequiredProp<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
43
55
|
export {};
|
|
@@ -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,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledPrevButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "style" | "children" | "
|
|
4
|
+
}, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
}, {}, {}>;
|
|
7
7
|
export declare const StyledNextButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "style" | "children" | "
|
|
9
|
+
}, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
@@ -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[];
|
|
@@ -30,7 +30,7 @@ export declare const useDrilldown: (dataOptions: ChartDataOptions, drilldownOpti
|
|
|
30
30
|
outliersEnabled?: boolean | undefined;
|
|
31
31
|
} | {
|
|
32
32
|
category: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn | undefined)[];
|
|
33
|
-
value: (import("@sisense/sdk-data").Column | import("
|
|
33
|
+
value: (import("@sisense/sdk-data").Column | import("@sisense/sdk-data").MeasureColumn | import("@sisense/sdk-data").CalculatedMeasureColumn | import("../../types").StyledMeasureColumn | import("../../types").StyledColumn)[];
|
|
34
34
|
outliers?: [import("@sisense/sdk-data").Column | import("../../types").StyledColumn] | undefined;
|
|
35
35
|
valueTitle: string;
|
|
36
36
|
};
|
|
@@ -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;
|