@sisense/sdk-ui 0.16.0 → 1.1.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/rest-api.d.ts +9 -0
- package/dist/app/settings/settings.d.ts +1 -0
- package/dist/area-chart.d.ts +2 -2
- package/dist/areamap-chart.d.ts +28 -0
- 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/areamap-data.d.ts +4 -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/geo-data-coloring-function.d.ts +2 -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 +74 -3
- 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 +140 -10
- package/dist/chart-data-options/utils.d.ts +6 -1
- package/dist/chart-options-processor/boxplot-chart-options.d.ts +11 -0
- package/dist/chart-options-processor/chart-options-service.d.ts +24 -6
- 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-areamap-options.d.ts +3 -0
- 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 +8 -2
- package/dist/chart-options-processor/theme-option-service.d.ts +0 -1
- package/dist/chart-options-processor/translations/axis-section.d.ts +1 -2
- 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 +4 -0
- package/dist/chart-options-processor/translations/design-options.d.ts +15 -2
- package/dist/chart-options-processor/translations/legend-section.d.ts +4 -3
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +5 -0
- package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +5 -1
- package/dist/chart-options-processor/translations/types.d.ts +15 -3
- 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/map-charts/areamap/alternative-country-names-dictionary.d.ts +9 -0
- package/dist/charts/map-charts/areamap/areamap-map.d.ts +16 -0
- package/dist/charts/map-charts/areamap/areamap.d.ts +16 -0
- package/dist/charts/map-charts/areamap/feature-styles-dictionary.d.ts +16 -0
- package/dist/charts/map-charts/areamap/use-geo-json.d.ts +9 -0
- package/dist/charts/map-charts/scattermap/hooks/use-locations.d.ts +3 -0
- package/dist/charts/map-charts/scattermap/hooks/use-settings.d.ts +5 -0
- package/dist/charts/map-charts/scattermap/hooks/use-tooltip-handler.d.ts +14 -0
- package/dist/charts/map-charts/scattermap/scattermap.d.ts +13 -0
- package/dist/charts/map-charts/scattermap/types.d.ts +16 -0
- package/dist/charts/map-charts/scattermap/utils/color.d.ts +3 -0
- package/dist/charts/map-charts/scattermap/utils/copyright.d.ts +2 -0
- package/dist/charts/map-charts/scattermap/utils/location.d.ts +5 -0
- package/dist/charts/map-charts/scattermap/utils/map.d.ts +2 -0
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +28 -0
- package/dist/charts/map-charts/scattermap/utils/size.d.ts +2 -0
- package/dist/charts/map-charts/scattermap/utils/tooltip.d.ts +8 -0
- package/dist/charts/map-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 +1 -1
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +4 -3
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +2 -2
- package/dist/dashboard-widget/types.d.ts +28 -3
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +2 -4
- 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 +1 -0
- package/dist/filters/components/common/filter-utils.d.ts +13 -0
- package/dist/filters/components/common/index.d.ts +1 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
- package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +0 -9
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +2 -2
- 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/index.d.ts +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4712 -4876
- 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/use-get-dashboard-model.d.ts +1 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +2 -1
- package/dist/models/widget/use-get-widget-model.d.ts +1 -0
- package/dist/models/widget/widget-model.d.ts +5 -4
- package/dist/pie-chart.d.ts +2 -2
- package/dist/polar-chart.d.ts +2 -2
- package/dist/props.d.ts +84 -62
- package/dist/query/execute-query.d.ts +1 -1
- 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 +1 -1
- package/dist/query-execution/types.d.ts +10 -8
- package/dist/query-execution/use-execute-csv-query.d.ts +4 -6
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +6 -2
- package/dist/query-execution/use-execute-query.d.ts +2 -2
- 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 +3 -2
- package/dist/table/table.d.ts +2 -2
- package/dist/table-widget-4275c061.js +77714 -0
- package/dist/themes/theme-loader.d.ts +0 -1
- package/dist/translation/resources/en.d.ts +25 -0
- package/dist/translation/resources/index.d.ts +50 -0
- package/dist/treemap-chart.d.ts +2 -2
- package/dist/types.d.ts +89 -8
- package/dist/utils/filters-comparator.d.ts +13 -1
- 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/styled-buttons.d.ts +2 -2
- package/dist/widgets/common/drilldown.d.ts +12 -2
- package/dist/widgets/drilldown-widget.d.ts +2 -2
- package/package.json +22 -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/table-widget-5f3b1d03.js +0 -64456
- /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>;
|
|
@@ -18,6 +18,7 @@ export declare const translation: {
|
|
|
18
18
|
};
|
|
19
19
|
themeNotFound: string;
|
|
20
20
|
paletteNotFound: string;
|
|
21
|
+
chartTypeNotSupported: string;
|
|
21
22
|
unsupportedWidgetType: string;
|
|
22
23
|
sisenseContextNotFound: string;
|
|
23
24
|
dashboardInvalidIdentifier: string;
|
|
@@ -55,5 +56,29 @@ export declare const translation: {
|
|
|
55
56
|
byMeasure: string;
|
|
56
57
|
by: string;
|
|
57
58
|
};
|
|
59
|
+
dateFilter: {
|
|
60
|
+
last: string;
|
|
61
|
+
next: string;
|
|
62
|
+
from: string;
|
|
63
|
+
count: string;
|
|
64
|
+
today: string;
|
|
65
|
+
days: string;
|
|
66
|
+
weeks: string;
|
|
67
|
+
months: string;
|
|
68
|
+
quarters: string;
|
|
69
|
+
years: string;
|
|
70
|
+
earliestDate: string;
|
|
71
|
+
latestDate: string;
|
|
72
|
+
todayOutOfRange: string;
|
|
73
|
+
};
|
|
74
|
+
boxplot: {
|
|
75
|
+
tooltip: {
|
|
76
|
+
whiskers: string;
|
|
77
|
+
box: string;
|
|
78
|
+
min: string;
|
|
79
|
+
median: string;
|
|
80
|
+
max: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
58
83
|
};
|
|
59
84
|
export type TranslationDictionary = typeof translation;
|
|
@@ -22,6 +22,7 @@ export declare const resources: {
|
|
|
22
22
|
};
|
|
23
23
|
themeNotFound: string;
|
|
24
24
|
paletteNotFound: string;
|
|
25
|
+
chartTypeNotSupported: string;
|
|
25
26
|
unsupportedWidgetType: string;
|
|
26
27
|
sisenseContextNotFound: string;
|
|
27
28
|
dashboardInvalidIdentifier: string;
|
|
@@ -59,6 +60,30 @@ export declare const resources: {
|
|
|
59
60
|
byMeasure: string;
|
|
60
61
|
by: string;
|
|
61
62
|
};
|
|
63
|
+
dateFilter: {
|
|
64
|
+
last: string;
|
|
65
|
+
next: string;
|
|
66
|
+
from: string;
|
|
67
|
+
count: string;
|
|
68
|
+
today: string;
|
|
69
|
+
days: string;
|
|
70
|
+
weeks: string;
|
|
71
|
+
months: string;
|
|
72
|
+
quarters: string;
|
|
73
|
+
years: string;
|
|
74
|
+
earliestDate: string;
|
|
75
|
+
latestDate: string;
|
|
76
|
+
todayOutOfRange: string;
|
|
77
|
+
};
|
|
78
|
+
boxplot: {
|
|
79
|
+
tooltip: {
|
|
80
|
+
whiskers: string;
|
|
81
|
+
box: string;
|
|
82
|
+
min: string;
|
|
83
|
+
median: string;
|
|
84
|
+
max: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
62
87
|
};
|
|
63
88
|
uk: {
|
|
64
89
|
errors: {
|
|
@@ -80,6 +105,7 @@ export declare const resources: {
|
|
|
80
105
|
};
|
|
81
106
|
themeNotFound: string;
|
|
82
107
|
paletteNotFound: string;
|
|
108
|
+
chartTypeNotSupported: string;
|
|
83
109
|
unsupportedWidgetType: string;
|
|
84
110
|
sisenseContextNotFound: string;
|
|
85
111
|
dashboardInvalidIdentifier: string;
|
|
@@ -117,5 +143,29 @@ export declare const resources: {
|
|
|
117
143
|
byMeasure: string;
|
|
118
144
|
by: string;
|
|
119
145
|
};
|
|
146
|
+
dateFilter: {
|
|
147
|
+
last: string;
|
|
148
|
+
next: string;
|
|
149
|
+
from: string;
|
|
150
|
+
count: string;
|
|
151
|
+
today: string;
|
|
152
|
+
days: string;
|
|
153
|
+
weeks: string;
|
|
154
|
+
months: string;
|
|
155
|
+
quarters: string;
|
|
156
|
+
years: string;
|
|
157
|
+
earliestDate: string;
|
|
158
|
+
latestDate: string;
|
|
159
|
+
todayOutOfRange: string;
|
|
160
|
+
};
|
|
161
|
+
boxplot: {
|
|
162
|
+
tooltip: {
|
|
163
|
+
whiskers: string;
|
|
164
|
+
box: string;
|
|
165
|
+
min: string;
|
|
166
|
+
median: string;
|
|
167
|
+
max: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
120
170
|
};
|
|
121
171
|
};
|
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,18 @@
|
|
|
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, AreamapChartType, BoxplotChartType, ScattermapChartType } from './chart-options-processor/translations/types';
|
|
9
9
|
import { DataPointsEventHandler } from './props';
|
|
10
|
+
import { LegendPosition } from './chart-options-processor/translations/legend-section';
|
|
10
11
|
export type { AppConfig } from './app/client-application';
|
|
11
12
|
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, };
|
|
13
|
+
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
14
|
+
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, };
|
|
15
16
|
export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
|
|
16
17
|
/**
|
|
17
18
|
* @internal
|
|
@@ -60,7 +61,7 @@ export type Legend = {
|
|
|
60
61
|
/** Boolean flag that defines if legend should be shown on the chart */
|
|
61
62
|
enabled: boolean;
|
|
62
63
|
/** Position of the legend */
|
|
63
|
-
position?:
|
|
64
|
+
position?: LegendPosition;
|
|
64
65
|
};
|
|
65
66
|
/** Configuration that defines behavior of data labels on chart */
|
|
66
67
|
export type Labels = {
|
|
@@ -372,10 +373,47 @@ export interface SunburstStyleOptions extends BaseStyleOptions {
|
|
|
372
373
|
mode?: 'value' | 'contribution';
|
|
373
374
|
};
|
|
374
375
|
}
|
|
376
|
+
/** Configuration options that define functional style of the various elements of {@link BoxplotChart} */
|
|
377
|
+
export interface BoxplotStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
378
|
+
/** Subtype of {@link BoxplotChart}*/
|
|
379
|
+
subtype?: BoxplotSubtype;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Type of map to display on {@link AreamapChart}
|
|
383
|
+
*/
|
|
384
|
+
export type AreamapType = 'world' | 'usa';
|
|
385
|
+
/**
|
|
386
|
+
* Configuration options that define functional style of the various elements of {@link AreamapChart}
|
|
387
|
+
*/
|
|
388
|
+
export interface AreamapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
|
|
389
|
+
/** Type of map to display on {@link AreamapChart} */
|
|
390
|
+
mapType?: AreamapType;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Markers style configuration of Scattermap chart
|
|
394
|
+
*/
|
|
395
|
+
export type ScattermapMarkers = {
|
|
396
|
+
/** Specifies the fill style of the markers */
|
|
397
|
+
fill?: 'filled' | 'filled-light' | 'hollow' | 'hollow-bold';
|
|
398
|
+
/** Specifies the size configuration for the markers */
|
|
399
|
+
size?: {
|
|
400
|
+
/** The default size of the markers */
|
|
401
|
+
defaultSize?: number;
|
|
402
|
+
/** The minimum size of the markers when using a "size" data field */
|
|
403
|
+
minSize?: number;
|
|
404
|
+
/** The maximum size of the markers when using a "size" data field */
|
|
405
|
+
maxSize?: number;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
/** Configuration options that define functional style of the various elements of {@link ScattermapChart} */
|
|
409
|
+
export interface ScattermapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
|
|
410
|
+
subtype?: never;
|
|
411
|
+
markers?: ScattermapMarkers;
|
|
412
|
+
}
|
|
375
413
|
/**
|
|
376
414
|
* Configuration options that define functional style of the various elements of chart.
|
|
377
415
|
*/
|
|
378
|
-
export type
|
|
416
|
+
export type ChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions;
|
|
379
417
|
/** Mapping of each of the chart value series to colors. */
|
|
380
418
|
export type ValueToColorMap = {
|
|
381
419
|
[value: string]: string;
|
|
@@ -387,7 +425,7 @@ export type MultiColumnValueToColorMap = {
|
|
|
387
425
|
/**
|
|
388
426
|
* Chart type of one of the supported chart families
|
|
389
427
|
*/
|
|
390
|
-
export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType;
|
|
428
|
+
export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType | AreamapChartType | BoxplotChartType | ScattermapChartType;
|
|
391
429
|
/**
|
|
392
430
|
* Series chart type, which is used with {@link StyledMeasureColumn} to customize
|
|
393
431
|
* series in a mixed chart.
|
|
@@ -534,6 +572,34 @@ export interface WidgetStyleOptions {
|
|
|
534
572
|
renderToolbar?: (onRefresh: () => void) => JSX.Element;
|
|
535
573
|
};
|
|
536
574
|
}
|
|
575
|
+
/** Style settings defining the look and feel of {@link DashboardWidget} */
|
|
576
|
+
export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
|
|
577
|
+
/**
|
|
578
|
+
* Total width of the component, which is considered in the following order of priority:
|
|
579
|
+
*
|
|
580
|
+
* 1. Value passed to this property (in pixels)
|
|
581
|
+
* 2. Width of the container wrapping this component
|
|
582
|
+
* 3. Default value as specified per chart type
|
|
583
|
+
*
|
|
584
|
+
*/
|
|
585
|
+
width?: number;
|
|
586
|
+
/**
|
|
587
|
+
* Total height of the component, which is considered in the following order of priority:
|
|
588
|
+
*
|
|
589
|
+
* 1. Value passed to this property (in pixels).
|
|
590
|
+
* 2. Height of the container wrapping this component
|
|
591
|
+
* 3. Default value as specified per chart type
|
|
592
|
+
*/
|
|
593
|
+
height?: number;
|
|
594
|
+
}
|
|
595
|
+
/** Style settings defining the look and feel of {@link ChartWidget} */
|
|
596
|
+
export type ChartWidgetStyleOptions = ChartStyleOptions & WidgetStyleOptions;
|
|
597
|
+
/**
|
|
598
|
+
* Style settings defining the look and feel of TableWidget}
|
|
599
|
+
*
|
|
600
|
+
* @internal
|
|
601
|
+
*/
|
|
602
|
+
export type TableWidgetStyleOptions = TableStyleOptions & WidgetStyleOptions;
|
|
537
603
|
/**
|
|
538
604
|
* Runs type guard check for ThemeOid.
|
|
539
605
|
*
|
|
@@ -581,6 +647,15 @@ export type ScatterDataPoint = {
|
|
|
581
647
|
breakByPoint?: string;
|
|
582
648
|
breakByColor?: string;
|
|
583
649
|
};
|
|
650
|
+
export type BoxplotDataPoint = {
|
|
651
|
+
boxMin: number;
|
|
652
|
+
boxMedian: number;
|
|
653
|
+
boxMax: number;
|
|
654
|
+
whiskerMin: number;
|
|
655
|
+
whiskerMax: number;
|
|
656
|
+
categoryValue?: string | number;
|
|
657
|
+
categoryDisplayValue?: string;
|
|
658
|
+
};
|
|
584
659
|
/**
|
|
585
660
|
* This is the minimum definition of Highcharts
|
|
586
661
|
* events, Series, and Point that we require. As
|
|
@@ -629,6 +704,11 @@ export type HighchartsPoint = {
|
|
|
629
704
|
custom: {
|
|
630
705
|
number1?: number;
|
|
631
706
|
};
|
|
707
|
+
q1?: number;
|
|
708
|
+
median?: number;
|
|
709
|
+
q3?: number;
|
|
710
|
+
low?: number;
|
|
711
|
+
high?: number;
|
|
632
712
|
};
|
|
633
713
|
custom: {
|
|
634
714
|
maskedBreakByPoint?: string;
|
|
@@ -638,6 +718,7 @@ export type HighchartsPoint = {
|
|
|
638
718
|
};
|
|
639
719
|
series: {
|
|
640
720
|
initialType: string;
|
|
721
|
+
type: string;
|
|
641
722
|
options: {
|
|
642
723
|
custom?: {
|
|
643
724
|
rawValue?: string | number[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Filter } from '@sisense/sdk-data';
|
|
1
|
+
import { Filter, FilterRelation } from '@sisense/sdk-data';
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the filters have changed by deep comparison.
|
|
4
4
|
*
|
|
@@ -9,3 +9,15 @@ import { Filter } from '@sisense/sdk-data';
|
|
|
9
9
|
* The function ignores randomly generated names of the filters.
|
|
10
10
|
*/
|
|
11
11
|
export declare function isFiltersChanged(prevFilters: Filter[] | undefined, newFilters: Filter[] | undefined): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Checks if filter relations have changed by deep comparison.
|
|
14
|
+
*
|
|
15
|
+
* @param prevFilters - Previous filters
|
|
16
|
+
* @param newFilters - New filters
|
|
17
|
+
* @param prevRelations - Previous relations
|
|
18
|
+
* @param newRelations - New relations
|
|
19
|
+
* @returns Whether filter relations have changed
|
|
20
|
+
* @remarks
|
|
21
|
+
* The function ignores node swaps since this does not affect logical result.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isRelationsChanged(prevFilters: Filter[] | undefined, newFilters: Filter[] | undefined, prevRelations: FilterRelation | undefined, newRelations: FilterRelation | undefined): boolean;
|
|
@@ -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
|
* />
|
|
@@ -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" | "size" | "
|
|
4
|
+
}, "style" | "children" | "size" | "color" | "disabled" | "className" | "tabIndex" | "classes" | "action" | "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" | "size" | "
|
|
9
|
+
}, "style" | "children" | "size" | "color" | "disabled" | "className" | "tabIndex" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
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.1.0",
|
|
4
15
|
"type": "module",
|
|
5
16
|
"exports": {
|
|
6
17
|
".": {
|
|
@@ -28,11 +39,11 @@
|
|
|
28
39
|
"@emotion/react": "^11.10.5",
|
|
29
40
|
"@emotion/styled": "^11.10.5",
|
|
30
41
|
"@mui/material": "^5.11.6",
|
|
31
|
-
"@sisense/sdk-common": "^
|
|
32
|
-
"@sisense/sdk-data": "^
|
|
33
|
-
"@sisense/sdk-query-client": "^
|
|
34
|
-
"@sisense/sdk-rest-client": "^
|
|
35
|
-
"@sisense/sdk-tracking": "^
|
|
42
|
+
"@sisense/sdk-common": "^1.1.0",
|
|
43
|
+
"@sisense/sdk-data": "^1.1.0",
|
|
44
|
+
"@sisense/sdk-query-client": "^1.1.0",
|
|
45
|
+
"@sisense/sdk-rest-client": "^1.1.0",
|
|
46
|
+
"@sisense/sdk-tracking": "^1.1.0",
|
|
36
47
|
"@sisense/sisense-charts": "5.1.0-alpha-04052758.0",
|
|
37
48
|
"@tanstack/react-query": "4.36.1",
|
|
38
49
|
"classnames": "^2.3.2",
|
|
@@ -41,11 +52,14 @@
|
|
|
41
52
|
"date-fns-tz": "^2.0.0",
|
|
42
53
|
"dayjs": "^1.11.7",
|
|
43
54
|
"fixed-data-table-2": "^1.2.18",
|
|
55
|
+
"geojson": "^0.5.0",
|
|
44
56
|
"guid-typescript": "^1.0.9",
|
|
45
57
|
"highcharts-react-official": "^3.2.1",
|
|
46
58
|
"immer": "^10.0.2",
|
|
59
|
+
"leaflet": "^1.9.4",
|
|
47
60
|
"lodash": "^4.17.21",
|
|
48
61
|
"merge-deep": "^3.0.3",
|
|
62
|
+
"proj4leaflet": "^1.0.2",
|
|
49
63
|
"react-datepicker": "^4.16.0",
|
|
50
64
|
"react-error-boundary": "^4.0.11",
|
|
51
65
|
"react-i18next": "^13.2.2",
|
|
@@ -93,7 +107,9 @@
|
|
|
93
107
|
"@testing-library/jest-dom": "^5.16.5",
|
|
94
108
|
"@testing-library/react": "^14.0.0",
|
|
95
109
|
"@types/fixed-data-table-2": "^0.8.8",
|
|
110
|
+
"@types/leaflet": "^1.9.8",
|
|
96
111
|
"@types/lodash": "^4.14.194",
|
|
112
|
+
"@types/proj4leaflet": "^1.0.10",
|
|
97
113
|
"@types/react": "18.2.0",
|
|
98
114
|
"@types/react-datepicker": "^4.11.2",
|
|
99
115
|
"@types/react-dom": "18.2.0",
|
|
@@ -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[];
|