@sisense/sdk-ui 0.15.0 → 1.0.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/messages/get-widget-options.d.ts +3 -3
- package/dist/ai.js +334 -308
- package/dist/api/types/dashboard-dto.d.ts +3 -2
- package/dist/area-chart.d.ts +2 -2
- package/dist/bar-chart.d.ts +2 -2
- package/dist/boxplot-chart.d.ts +38 -0
- package/dist/boxplot-utils.d.ts +30 -0
- package/dist/chart-data/boxplot-data.d.ts +11 -0
- package/dist/chart-data/cartesian-data.d.ts +6 -3
- package/dist/chart-data/data-coloring/create-data-coloring-function.d.ts +7 -0
- package/dist/chart-data/data-coloring/index.d.ts +3 -0
- package/dist/chart-data/{series-data-color-service → data-coloring}/legend-color.d.ts +1 -1
- package/dist/chart-data/data-coloring/series-data-coloring-function.d.ts +11 -0
- package/dist/chart-data/indicator-data.d.ts +2 -2
- package/dist/chart-data/scatter-data.d.ts +2 -2
- package/dist/chart-data/scattermap-data.d.ts +4 -0
- package/dist/chart-data/types.d.ts +46 -1
- package/dist/chart-data-options/coloring/consts.d.ts +3 -0
- package/dist/chart-data-options/coloring/utils.d.ts +6 -0
- package/dist/chart-data-options/get-translated-data-options.d.ts +6 -0
- package/dist/chart-data-options/translate-boxplot-data-options.d.ts +7 -0
- package/dist/chart-data-options/translate-scattermap-data-options.d.ts +3 -0
- package/dist/chart-data-options/types.d.ts +122 -10
- package/dist/chart-data-options/utils.d.ts +6 -1
- package/dist/chart-options-processor/boxplot-chart-options.d.ts +10 -0
- package/dist/chart-options-processor/chart-options-service.d.ts +21 -77
- package/dist/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
- package/dist/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
- package/dist/chart-options-processor/subtype-to-design-options.d.ts +5 -2
- package/dist/chart-options-processor/theme-option-service.d.ts +0 -1
- package/dist/chart-options-processor/translations/axis-section.d.ts +4 -3
- package/dist/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +10 -0
- package/dist/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +3 -0
- package/dist/chart-options-processor/translations/boxplot/boxplot-series.d.ts +5 -0
- package/dist/chart-options-processor/translations/boxplot/boxplot-tooltip.d.ts +3 -0
- package/dist/chart-options-processor/translations/design-options.d.ts +9 -2
- package/dist/chart-options-processor/translations/funnel-series.d.ts +1 -2
- package/dist/chart-options-processor/translations/legend-section.d.ts +6 -4
- package/dist/chart-options-processor/translations/pie-series.d.ts +1 -2
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +5 -0
- package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +11 -3
- package/dist/chart-options-processor/translations/types.d.ts +10 -2
- package/dist/chart-options-processor/translations/value-label-section.d.ts +2 -1
- package/dist/chart.d.ts +2 -2
- package/dist/charts/indicator/indicator-legacy-chart-data-options.d.ts +2 -2
- package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +2 -2
- package/dist/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +2 -2
- package/dist/charts/scattermap/hooks/use-locations.d.ts +3 -0
- package/dist/charts/scattermap/hooks/use-settings.d.ts +5 -0
- package/dist/charts/scattermap/hooks/use-tooltip-handler.d.ts +14 -0
- package/dist/charts/scattermap/scattermap.d.ts +13 -0
- package/dist/charts/scattermap/types.d.ts +16 -0
- package/dist/charts/scattermap/utils/color.d.ts +3 -0
- package/dist/charts/scattermap/utils/copyright.d.ts +2 -0
- package/dist/charts/scattermap/utils/location.d.ts +5 -0
- package/dist/charts/scattermap/utils/map.d.ts +2 -0
- package/dist/charts/scattermap/utils/markers.d.ts +28 -0
- package/dist/charts/scattermap/utils/size.d.ts +2 -0
- package/dist/charts/scattermap/utils/tooltip.d.ts +8 -0
- package/dist/charts/scattermap/utils/values.d.ts +4 -0
- package/dist/charts/table/types.d.ts +1 -1
- package/dist/column-chart.d.ts +2 -2
- package/dist/common/components/loading-dots.d.ts +4 -0
- package/dist/dashboard-widget/translate-dashboard-filters.d.ts +1 -1
- package/dist/dashboard-widget/translate-panel-color-format.d.ts +3 -3
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +6 -5
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +2 -2
- package/dist/dashboard-widget/types.d.ts +45 -19
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +9 -5
- package/dist/dashboard-widget/utils.d.ts +1 -1
- package/dist/decorators/component-decorators/as-sisense-component.d.ts +1 -0
- package/dist/filters/components/common/basic-input.d.ts +1 -1
- package/dist/filters/components/common/date-range-field-button.d.ts +3 -2
- package/dist/filters/components/common/dropdown.d.ts +9 -0
- package/dist/filters/components/common/filter-utils.d.ts +13 -0
- package/dist/filters/components/common/index.d.ts +3 -1
- package/dist/filters/components/common/radio.d.ts +7 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +2 -2
- package/dist/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +6 -3
- package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +13 -8
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +21 -4
- package/dist/filters/components/criteria-filter-tile/index.d.ts +0 -1
- package/dist/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +10 -8
- package/dist/filters/components/date-filter/date-filter/quick-date-selection-buttons.d.ts +4 -4
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
- package/dist/filters/components/date-filter/index.d.ts +1 -0
- package/dist/filters/components/date-filter/relative-date-filter-tile/index.d.ts +1 -0
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-display.d.ts +14 -0
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +36 -0
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +26 -0
- package/dist/filters/components/filter-tile.d.ts +1 -1
- package/dist/filters/components/member-filter-tile/basic-member-filter-tile.d.ts +2 -0
- package/dist/filters/components/member-filter-tile/members-reducer.d.ts +9 -1
- package/dist/filters/components/member-filter-tile/pill-section.d.ts +0 -1
- package/dist/filters/index.d.ts +1 -0
- package/dist/highcharts-memorized.d.ts +4 -3
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5585 -4933
- package/dist/indicator-canvas.d.ts +3 -3
- package/dist/indicator-chart.d.ts +4 -4
- package/dist/line-chart.d.ts +2 -2
- package/dist/models/dashboard/types.d.ts +1 -1
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +2 -1
- package/dist/models/widget/get-widget-model.d.ts +4 -0
- package/dist/models/widget/index.d.ts +3 -1
- package/dist/models/widget/translate-widget.d.ts +1 -1
- package/dist/models/widget/use-get-widget-model.d.ts +103 -0
- package/dist/models/widget/widget-model.d.ts +123 -0
- package/dist/pie-chart.d.ts +2 -2
- package/dist/polar-chart.d.ts +2 -2
- package/dist/props.d.ts +67 -62
- package/dist/query/execute-query.d.ts +3 -1
- package/dist/query-execution/csv-query-state-reducer.d.ts +2 -0
- package/dist/query-execution/execute-query-by-widget-id.d.ts +10 -2
- package/dist/query-execution/execute-query.d.ts +11 -4
- package/dist/query-execution/index.d.ts +4 -3
- package/dist/query-execution/query-state-reducer.d.ts +1 -58
- package/dist/query-execution/types.d.ts +192 -0
- package/dist/query-execution/use-execute-csv-query.d.ts +80 -0
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +6 -37
- package/dist/query-execution/use-execute-query.d.ts +10 -35
- package/dist/scatter-chart.d.ts +4 -4
- package/dist/scattermap-chart.d.ts +36 -0
- package/dist/sunburst-chart.d.ts +1 -1
- package/dist/table/hooks/use-table-data.d.ts +7 -2
- package/dist/table/table.d.ts +5 -2
- package/dist/table-widget-7936746a.js +72481 -0
- package/dist/themes/theme-loader.d.ts +0 -1
- package/dist/translation/resources/en.d.ts +21 -0
- package/dist/translation/resources/index.d.ts +42 -0
- package/dist/treemap-chart.d.ts +2 -2
- package/dist/types.d.ts +76 -7
- package/dist/utils/utility-types.d.ts +4 -0
- package/dist/widgets/chart-widget-deprecated.d.ts +1 -1
- package/dist/widgets/chart-widget.d.ts +1 -1
- package/dist/widgets/common/drilldown-breadcrumbs/drilldown-breadcrumbs-navigation.d.ts +8 -0
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +11 -0
- package/dist/widgets/common/drilldown.d.ts +12 -2
- package/dist/widgets/drilldown-widget.d.ts +2 -2
- package/package.json +28 -6
- package/dist/chart-data/series-data-color-service/index.d.ts +0 -3
- package/dist/chart-data/series-data-color-service/series-data-color-service.d.ts +0 -4
- package/dist/models/widget/types.d.ts +0 -6
- package/dist/table-widget-7b20ecf7.js +0 -64167
- /package/dist/chart-data/{series-data-color-service → data-coloring}/types.d.ts +0 -0
|
@@ -7,7 +7,6 @@ import { type LegacyPalette } from './legacy-design-settings';
|
|
|
7
7
|
* @param themeOid - Theme oid.
|
|
8
8
|
* @param httpClient - Sisense REST API client.
|
|
9
9
|
* @returns CompleteThemeSettings from server.
|
|
10
|
-
*
|
|
11
10
|
* @internal
|
|
12
11
|
*/
|
|
13
12
|
export declare function getThemeSettingsByOid(themeOid: ThemeOid, httpClient: Pick<HttpClient, 'get'>): Promise<CompleteThemeSettings>;
|
|
@@ -25,6 +25,10 @@ export declare const translation: {
|
|
|
25
25
|
identifierExpected: string;
|
|
26
26
|
failedToFetch: string;
|
|
27
27
|
};
|
|
28
|
+
widgetModel: {
|
|
29
|
+
tabularWidgetNotSupported: string;
|
|
30
|
+
onlyTabularWidgetsSupported: string;
|
|
31
|
+
};
|
|
28
32
|
};
|
|
29
33
|
errorBoxText: string;
|
|
30
34
|
chartNoData: string;
|
|
@@ -48,6 +52,23 @@ export declare const translation: {
|
|
|
48
52
|
endsWith: string;
|
|
49
53
|
notEndsWith: string;
|
|
50
54
|
like: string;
|
|
55
|
+
byMeasure: string;
|
|
56
|
+
by: string;
|
|
57
|
+
};
|
|
58
|
+
dateFilter: {
|
|
59
|
+
last: string;
|
|
60
|
+
next: string;
|
|
61
|
+
from: string;
|
|
62
|
+
count: string;
|
|
63
|
+
today: string;
|
|
64
|
+
days: string;
|
|
65
|
+
weeks: string;
|
|
66
|
+
months: string;
|
|
67
|
+
quarters: string;
|
|
68
|
+
years: string;
|
|
69
|
+
earliestDate: string;
|
|
70
|
+
latestDate: string;
|
|
71
|
+
todayOutOfRange: string;
|
|
51
72
|
};
|
|
52
73
|
};
|
|
53
74
|
export type TranslationDictionary = typeof translation;
|
|
@@ -29,6 +29,10 @@ export declare const resources: {
|
|
|
29
29
|
identifierExpected: string;
|
|
30
30
|
failedToFetch: string;
|
|
31
31
|
};
|
|
32
|
+
widgetModel: {
|
|
33
|
+
tabularWidgetNotSupported: string;
|
|
34
|
+
onlyTabularWidgetsSupported: string;
|
|
35
|
+
};
|
|
32
36
|
};
|
|
33
37
|
errorBoxText: string;
|
|
34
38
|
chartNoData: string;
|
|
@@ -52,6 +56,23 @@ export declare const resources: {
|
|
|
52
56
|
endsWith: string;
|
|
53
57
|
notEndsWith: string;
|
|
54
58
|
like: string;
|
|
59
|
+
byMeasure: string;
|
|
60
|
+
by: string;
|
|
61
|
+
};
|
|
62
|
+
dateFilter: {
|
|
63
|
+
last: string;
|
|
64
|
+
next: string;
|
|
65
|
+
from: string;
|
|
66
|
+
count: string;
|
|
67
|
+
today: string;
|
|
68
|
+
days: string;
|
|
69
|
+
weeks: string;
|
|
70
|
+
months: string;
|
|
71
|
+
quarters: string;
|
|
72
|
+
years: string;
|
|
73
|
+
earliestDate: string;
|
|
74
|
+
latestDate: string;
|
|
75
|
+
todayOutOfRange: string;
|
|
55
76
|
};
|
|
56
77
|
};
|
|
57
78
|
uk: {
|
|
@@ -81,6 +102,10 @@ export declare const resources: {
|
|
|
81
102
|
identifierExpected: string;
|
|
82
103
|
failedToFetch: string;
|
|
83
104
|
};
|
|
105
|
+
widgetModel: {
|
|
106
|
+
tabularWidgetNotSupported: string;
|
|
107
|
+
onlyTabularWidgetsSupported: string;
|
|
108
|
+
};
|
|
84
109
|
};
|
|
85
110
|
errorBoxText: string;
|
|
86
111
|
chartNoData: string;
|
|
@@ -104,6 +129,23 @@ export declare const resources: {
|
|
|
104
129
|
endsWith: string;
|
|
105
130
|
notEndsWith: string;
|
|
106
131
|
like: string;
|
|
132
|
+
byMeasure: string;
|
|
133
|
+
by: string;
|
|
134
|
+
};
|
|
135
|
+
dateFilter: {
|
|
136
|
+
last: string;
|
|
137
|
+
next: string;
|
|
138
|
+
from: string;
|
|
139
|
+
count: string;
|
|
140
|
+
today: string;
|
|
141
|
+
days: string;
|
|
142
|
+
weeks: string;
|
|
143
|
+
months: string;
|
|
144
|
+
quarters: string;
|
|
145
|
+
years: string;
|
|
146
|
+
earliestDate: string;
|
|
147
|
+
latestDate: string;
|
|
148
|
+
todayOutOfRange: string;
|
|
107
149
|
};
|
|
108
150
|
};
|
|
109
151
|
};
|
package/dist/treemap-chart.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ import { TreemapChartProps } from './props';
|
|
|
13
13
|
* dataOptions={{
|
|
14
14
|
* category: [
|
|
15
15
|
* {
|
|
16
|
-
* column: DM.Commerce
|
|
16
|
+
* column: DM.Commerce.Condition,
|
|
17
17
|
* isColored: true,
|
|
18
18
|
* },
|
|
19
19
|
* DM.Commerce.Date.Years
|
|
20
20
|
* ],
|
|
21
|
-
* value: [
|
|
21
|
+
* value: [measureFactory.sum(DM.Commerce.Quantity)],
|
|
22
22
|
* }}
|
|
23
23
|
* onDataPointClick= {(point, nativeEvent) => {
|
|
24
24
|
* console.log('clicked', point, nativeEvent);
|
package/dist/types.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Attribute, MembersFilter } from '@sisense/sdk-data';
|
|
3
3
|
import { DeepRequired } from 'ts-essentials';
|
|
4
|
-
import { AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype } from './chart-options-processor/subtype-to-design-options';
|
|
4
|
+
import { AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype } from './chart-options-processor/subtype-to-design-options';
|
|
5
5
|
import { IndicatorComponents } from './chart-options-processor/translations/design-options';
|
|
6
6
|
import { FunnelDirection, FunnelSize, FunnelType } from './chart-options-processor/translations/funnel-plot-options';
|
|
7
7
|
import { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
|
|
8
|
-
import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType } from './chart-options-processor/translations/types';
|
|
8
|
+
import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, BoxplotChartType, ScattermapChartType } from './chart-options-processor/translations/types';
|
|
9
9
|
import { DataPointsEventHandler } from './props';
|
|
10
10
|
export type { AppConfig } from './app/client-application';
|
|
11
11
|
export type { DateConfig } from './query/date-formats';
|
|
12
|
-
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions,
|
|
13
|
-
export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/
|
|
14
|
-
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, IndicatorComponents, ScatterMarkerSize, };
|
|
12
|
+
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
13
|
+
export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
|
|
14
|
+
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, };
|
|
15
15
|
export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
|
|
16
16
|
/**
|
|
17
17
|
* @internal
|
|
@@ -372,10 +372,36 @@ export interface SunburstStyleOptions extends BaseStyleOptions {
|
|
|
372
372
|
mode?: 'value' | 'contribution';
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
|
+
/** Configuration options that define functional style of the various elements of {@link BoxplotChart} */
|
|
376
|
+
export interface BoxplotStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
377
|
+
/** Subtype of {@link BoxplotChart}*/
|
|
378
|
+
subtype?: BoxplotSubtype;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Markers style configuration of Scattermap chart
|
|
382
|
+
*/
|
|
383
|
+
export type ScattermapMarkers = {
|
|
384
|
+
/** Specifies the fill style of the markers */
|
|
385
|
+
fill?: 'filled' | 'filled-light' | 'hollow' | 'hollow-bold';
|
|
386
|
+
/** Specifies the size configuration for the markers */
|
|
387
|
+
size?: {
|
|
388
|
+
/** The default size of the markers */
|
|
389
|
+
defaultSize?: number;
|
|
390
|
+
/** The minimum size of the markers when using a "size" data field */
|
|
391
|
+
minSize?: number;
|
|
392
|
+
/** The maximum size of the markers when using a "size" data field */
|
|
393
|
+
maxSize?: number;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
/** Configuration options that define functional style of the various elements of {@link ScattermapChart} */
|
|
397
|
+
export interface ScattermapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
|
|
398
|
+
subtype?: never;
|
|
399
|
+
markers?: ScattermapMarkers;
|
|
400
|
+
}
|
|
375
401
|
/**
|
|
376
402
|
* Configuration options that define functional style of the various elements of chart.
|
|
377
403
|
*/
|
|
378
|
-
export type
|
|
404
|
+
export type ChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | ScattermapStyleOptions;
|
|
379
405
|
/** Mapping of each of the chart value series to colors. */
|
|
380
406
|
export type ValueToColorMap = {
|
|
381
407
|
[value: string]: string;
|
|
@@ -387,7 +413,7 @@ export type MultiColumnValueToColorMap = {
|
|
|
387
413
|
/**
|
|
388
414
|
* Chart type of one of the supported chart families
|
|
389
415
|
*/
|
|
390
|
-
export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType;
|
|
416
|
+
export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType | BoxplotChartType | ScattermapChartType;
|
|
391
417
|
/**
|
|
392
418
|
* Series chart type, which is used with {@link StyledMeasureColumn} to customize
|
|
393
419
|
* series in a mixed chart.
|
|
@@ -534,6 +560,34 @@ export interface WidgetStyleOptions {
|
|
|
534
560
|
renderToolbar?: (onRefresh: () => void) => JSX.Element;
|
|
535
561
|
};
|
|
536
562
|
}
|
|
563
|
+
/** Style settings defining the look and feel of {@link DashboardWidget} */
|
|
564
|
+
export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
|
|
565
|
+
/**
|
|
566
|
+
* Total width of the component, which is considered in the following order of priority:
|
|
567
|
+
*
|
|
568
|
+
* 1. Value passed to this property (in pixels)
|
|
569
|
+
* 2. Width of the container wrapping this component
|
|
570
|
+
* 3. Default value as specified per chart type
|
|
571
|
+
*
|
|
572
|
+
*/
|
|
573
|
+
width?: number;
|
|
574
|
+
/**
|
|
575
|
+
* Total height of the component, which is considered in the following order of priority:
|
|
576
|
+
*
|
|
577
|
+
* 1. Value passed to this property (in pixels).
|
|
578
|
+
* 2. Height of the container wrapping this component
|
|
579
|
+
* 3. Default value as specified per chart type
|
|
580
|
+
*/
|
|
581
|
+
height?: number;
|
|
582
|
+
}
|
|
583
|
+
/** Style settings defining the look and feel of {@link ChartWidget} */
|
|
584
|
+
export type ChartWidgetStyleOptions = ChartStyleOptions & WidgetStyleOptions;
|
|
585
|
+
/**
|
|
586
|
+
* Style settings defining the look and feel of TableWidget}
|
|
587
|
+
*
|
|
588
|
+
* @internal
|
|
589
|
+
*/
|
|
590
|
+
export type TableWidgetStyleOptions = TableStyleOptions & WidgetStyleOptions;
|
|
537
591
|
/**
|
|
538
592
|
* Runs type guard check for ThemeOid.
|
|
539
593
|
*
|
|
@@ -581,6 +635,15 @@ export type ScatterDataPoint = {
|
|
|
581
635
|
breakByPoint?: string;
|
|
582
636
|
breakByColor?: string;
|
|
583
637
|
};
|
|
638
|
+
export type BoxplotDataPoint = {
|
|
639
|
+
boxMin: number;
|
|
640
|
+
boxMedian: number;
|
|
641
|
+
boxMax: number;
|
|
642
|
+
whiskerMin: number;
|
|
643
|
+
whiskerMax: number;
|
|
644
|
+
categoryValue?: string | number;
|
|
645
|
+
categoryDisplayValue?: string;
|
|
646
|
+
};
|
|
584
647
|
/**
|
|
585
648
|
* This is the minimum definition of Highcharts
|
|
586
649
|
* events, Series, and Point that we require. As
|
|
@@ -629,6 +692,11 @@ export type HighchartsPoint = {
|
|
|
629
692
|
custom: {
|
|
630
693
|
number1?: number;
|
|
631
694
|
};
|
|
695
|
+
q1?: number;
|
|
696
|
+
median?: number;
|
|
697
|
+
q3?: number;
|
|
698
|
+
low?: number;
|
|
699
|
+
high?: number;
|
|
632
700
|
};
|
|
633
701
|
custom: {
|
|
634
702
|
maskedBreakByPoint?: string;
|
|
@@ -638,6 +706,7 @@ export type HighchartsPoint = {
|
|
|
638
706
|
};
|
|
639
707
|
series: {
|
|
640
708
|
initialType: string;
|
|
709
|
+
type: string;
|
|
641
710
|
options: {
|
|
642
711
|
custom?: {
|
|
643
712
|
rawValue?: string | number[];
|
|
@@ -36,4 +36,8 @@ type AllKeys<T> = T extends any ? keyof T : never;
|
|
|
36
36
|
type NonCommonKeys<T extends object> = Subtract<AllKeys<T>, CommonKeys<T>>;
|
|
37
37
|
type Subtract<A, C> = A extends C ? never : A;
|
|
38
38
|
type PickTypeOf<T, K extends string | number | symbol> = K extends AllKeys<T> ? PickType<T, K> : never;
|
|
39
|
+
/**
|
|
40
|
+
* Abstract object with any unknown values
|
|
41
|
+
*/
|
|
42
|
+
export type AnyObject = Record<string, any>;
|
|
39
43
|
export {};
|
|
@@ -14,7 +14,7 @@ import { ChartWidgetProps } from '../props';
|
|
|
14
14
|
* chartType="bar"
|
|
15
15
|
* dataOptions={{
|
|
16
16
|
* category: [DM.Category.Category],
|
|
17
|
-
* value: [
|
|
17
|
+
* value: [measureFactory.sum(DM.Commerce.Revenue)],
|
|
18
18
|
* breakBy: [],
|
|
19
19
|
* }}
|
|
20
20
|
* drilldownOptions={{
|
|
@@ -13,7 +13,7 @@ import { ChartWidgetProps } from '../props';
|
|
|
13
13
|
* chartType="bar"
|
|
14
14
|
* dataOptions={{
|
|
15
15
|
* category: [DM.Category.Category],
|
|
16
|
-
* value: [
|
|
16
|
+
* value: [measureFactory.sum(DM.Commerce.Revenue)],
|
|
17
17
|
* breakBy: [],
|
|
18
18
|
* }}
|
|
19
19
|
* />
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Attribute } from '@sisense/sdk-data';
|
|
3
|
+
interface DrilldownBreadcrumbsNavigationProps {
|
|
4
|
+
currentDimension: Attribute;
|
|
5
|
+
children: JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
export declare const DrilldownBreadcrumbsNavigation: React.FC<DrilldownBreadcrumbsNavigationProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, "style" | "children" | "size" | "disabled" | "className" | "tabIndex" | "color" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
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
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
+
}, "style" | "children" | "size" | "disabled" | "className" | "tabIndex" | "color" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -15,14 +15,24 @@ export declare const useDrilldown: (dataOptions: ChartDataOptions, drilldownOpti
|
|
|
15
15
|
drilldownFiltersDisplayValues: string[][];
|
|
16
16
|
drilldownDimension: Attribute;
|
|
17
17
|
dataOptionsWithDrilldown: {
|
|
18
|
-
category: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn)[];
|
|
18
|
+
category: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn | undefined)[];
|
|
19
19
|
value: (import("@sisense/sdk-data").MeasureColumn | import("@sisense/sdk-data").CalculatedMeasureColumn | import("../../types").StyledMeasureColumn)[];
|
|
20
20
|
breakBy: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn)[];
|
|
21
21
|
seriesToColorMap?: import("../../types").ValueToColorMap | undefined;
|
|
22
22
|
} | {
|
|
23
|
-
category: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn)[];
|
|
23
|
+
category: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn | undefined)[];
|
|
24
24
|
value: (import("@sisense/sdk-data").MeasureColumn | import("@sisense/sdk-data").CalculatedMeasureColumn | import("../../types").StyledMeasureColumn)[];
|
|
25
25
|
seriesToColorMap?: import("../../types").ValueToColorMap | import("../../types").MultiColumnValueToColorMap | undefined;
|
|
26
|
+
} | {
|
|
27
|
+
category: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn | undefined)[];
|
|
28
|
+
value: [import("@sisense/sdk-data").Column | import("../../types").StyledColumn];
|
|
29
|
+
boxType: import("../..").BoxWhiskerType;
|
|
30
|
+
outliersEnabled?: boolean | undefined;
|
|
31
|
+
} | {
|
|
32
|
+
category: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn | undefined)[];
|
|
33
|
+
value: (import("@sisense/sdk-data").Column | import("../../types").StyledColumn | import("@sisense/sdk-data").MeasureColumn | import("@sisense/sdk-data").CalculatedMeasureColumn | import("../../types").StyledMeasureColumn)[];
|
|
34
|
+
outliers?: [import("@sisense/sdk-data").Column | import("../../types").StyledColumn] | undefined;
|
|
35
|
+
valueTitle: string;
|
|
26
36
|
};
|
|
27
37
|
selectDrilldown: (points: DataPoint[], nextDimension: Attribute) => void;
|
|
28
38
|
sliceDrilldownSelections: (i: number) => void;
|
|
@@ -29,10 +29,10 @@ import { DrilldownWidgetProps } from '../props';
|
|
|
29
29
|
* <ExecuteQuery
|
|
30
30
|
* dataSource={DM.DataSource}
|
|
31
31
|
* dimensions={[drilldownDimension]}
|
|
32
|
-
* measures={
|
|
32
|
+
* measures={measureFactory.sum(DM.Commerce.Revenue)}
|
|
33
33
|
* filters={drilldownFilters}
|
|
34
34
|
* >
|
|
35
|
-
* {(data) => (
|
|
35
|
+
* {({data}) => (
|
|
36
36
|
* <MyCustomChart
|
|
37
37
|
* rawData={data}
|
|
38
38
|
* onContextMenu={onContextMenu}
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisense/sdk-ui",
|
|
3
|
-
"
|
|
3
|
+
"homepage": "https://sisense.dev/guides/sdk/",
|
|
4
|
+
"description": "Compose SDK package containing general UI elements and related logic tailored for React development",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/sisense/compose-sdk-monorepo",
|
|
8
|
+
"directory": "packages/sdk-ui"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"Sisense",
|
|
12
|
+
"Compose SDK"
|
|
13
|
+
],
|
|
14
|
+
"version": "1.0.0",
|
|
4
15
|
"type": "module",
|
|
5
16
|
"exports": {
|
|
6
17
|
".": {
|
|
@@ -15,17 +26,24 @@
|
|
|
15
26
|
"main": "./dist/index.js",
|
|
16
27
|
"module": "./dist/index.js",
|
|
17
28
|
"types": "./dist/index.d.ts",
|
|
29
|
+
"typesVersions": {
|
|
30
|
+
"*": {
|
|
31
|
+
"ai": [
|
|
32
|
+
"./dist/ai.d.ts"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
18
36
|
"author": "Sisense",
|
|
19
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
38
|
"dependencies": {
|
|
21
39
|
"@emotion/react": "^11.10.5",
|
|
22
40
|
"@emotion/styled": "^11.10.5",
|
|
23
41
|
"@mui/material": "^5.11.6",
|
|
24
|
-
"@sisense/sdk-common": "^0.
|
|
25
|
-
"@sisense/sdk-data": "^0.
|
|
26
|
-
"@sisense/sdk-query-client": "^0.
|
|
27
|
-
"@sisense/sdk-rest-client": "^0.
|
|
28
|
-
"@sisense/sdk-tracking": "^0.
|
|
42
|
+
"@sisense/sdk-common": "^1.0.0",
|
|
43
|
+
"@sisense/sdk-data": "^1.0.0",
|
|
44
|
+
"@sisense/sdk-query-client": "^1.0.0",
|
|
45
|
+
"@sisense/sdk-rest-client": "^1.0.0",
|
|
46
|
+
"@sisense/sdk-tracking": "^1.0.0",
|
|
29
47
|
"@sisense/sisense-charts": "5.1.0-alpha-04052758.0",
|
|
30
48
|
"@tanstack/react-query": "4.36.1",
|
|
31
49
|
"classnames": "^2.3.2",
|
|
@@ -37,6 +55,7 @@
|
|
|
37
55
|
"guid-typescript": "^1.0.9",
|
|
38
56
|
"highcharts-react-official": "^3.2.1",
|
|
39
57
|
"immer": "^10.0.2",
|
|
58
|
+
"leaflet": "^1.9.4",
|
|
40
59
|
"lodash": "^4.17.21",
|
|
41
60
|
"merge-deep": "^3.0.3",
|
|
42
61
|
"react-datepicker": "^4.16.0",
|
|
@@ -86,6 +105,7 @@
|
|
|
86
105
|
"@testing-library/jest-dom": "^5.16.5",
|
|
87
106
|
"@testing-library/react": "^14.0.0",
|
|
88
107
|
"@types/fixed-data-table-2": "^0.8.8",
|
|
108
|
+
"@types/leaflet": "^1.9.8",
|
|
89
109
|
"@types/lodash": "^4.14.194",
|
|
90
110
|
"@types/react": "18.2.0",
|
|
91
111
|
"@types/react-datepicker": "^4.11.2",
|
|
@@ -93,6 +113,7 @@
|
|
|
93
113
|
"@types/react-plotly.js": "^2.6.0",
|
|
94
114
|
"@vitejs/plugin-react-swc": "^3.3.0",
|
|
95
115
|
"autoprefixer": "^10.4.14",
|
|
116
|
+
"blob-polyfill": "^7.0.20220408",
|
|
96
117
|
"canvas": "^2.11.2",
|
|
97
118
|
"eslint": "^8.40.0",
|
|
98
119
|
"jsdom": "^22.1.0",
|
|
@@ -101,6 +122,7 @@
|
|
|
101
122
|
"prettier": "2.8.4",
|
|
102
123
|
"react": "18.2.0",
|
|
103
124
|
"react-dom": "^18.2.0",
|
|
125
|
+
"react-json-view": "^1.21.3",
|
|
104
126
|
"react-plotly.js": "^2.6.0",
|
|
105
127
|
"sass": "1.58.3",
|
|
106
128
|
"storybook": "7.0.24",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { SeriesValueData } from '../types';
|
|
2
|
-
import { DataColorOptions } from './types';
|
|
3
|
-
export declare function seriesDataColorService(seriesValues: SeriesValueData[], colorOpts: DataColorOptions): SeriesValueData[];
|
|
4
|
-
export declare function generateColorsForDataStructures<DataStructure extends {}>(dataStructures: DataStructure[], colorOpts: DataColorOptions, getValueFromDataStructure: (data: DataStructure) => number, applyColorToDataStructure: (data: DataStructure, color: string | undefined) => DataStructure): DataStructure[];
|