@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.
Files changed (136) hide show
  1. package/dist/ai/messages/get-widget-options.d.ts +3 -3
  2. package/dist/ai.js +334 -308
  3. package/dist/api/rest-api.d.ts +9 -0
  4. package/dist/app/settings/settings.d.ts +1 -0
  5. package/dist/area-chart.d.ts +2 -2
  6. package/dist/areamap-chart.d.ts +28 -0
  7. package/dist/bar-chart.d.ts +2 -2
  8. package/dist/boxplot-chart.d.ts +38 -0
  9. package/dist/boxplot-utils.d.ts +30 -0
  10. package/dist/chart-data/areamap-data.d.ts +4 -0
  11. package/dist/chart-data/boxplot-data.d.ts +11 -0
  12. package/dist/chart-data/cartesian-data.d.ts +6 -3
  13. package/dist/chart-data/data-coloring/create-data-coloring-function.d.ts +7 -0
  14. package/dist/chart-data/data-coloring/geo-data-coloring-function.d.ts +2 -0
  15. package/dist/chart-data/data-coloring/index.d.ts +3 -0
  16. package/dist/chart-data/{series-data-color-service → data-coloring}/legend-color.d.ts +1 -1
  17. package/dist/chart-data/data-coloring/series-data-coloring-function.d.ts +11 -0
  18. package/dist/chart-data/indicator-data.d.ts +2 -2
  19. package/dist/chart-data/scatter-data.d.ts +2 -2
  20. package/dist/chart-data/scattermap-data.d.ts +4 -0
  21. package/dist/chart-data/types.d.ts +74 -3
  22. package/dist/chart-data-options/translate-boxplot-data-options.d.ts +7 -0
  23. package/dist/chart-data-options/translate-scattermap-data-options.d.ts +3 -0
  24. package/dist/chart-data-options/types.d.ts +140 -10
  25. package/dist/chart-data-options/utils.d.ts +6 -1
  26. package/dist/chart-options-processor/boxplot-chart-options.d.ts +11 -0
  27. package/dist/chart-options-processor/chart-options-service.d.ts +24 -6
  28. package/dist/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
  29. package/dist/chart-options-processor/style-to-design-options-translator/translate-to-areamap-options.d.ts +3 -0
  30. package/dist/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
  31. package/dist/chart-options-processor/subtype-to-design-options.d.ts +8 -2
  32. package/dist/chart-options-processor/theme-option-service.d.ts +0 -1
  33. package/dist/chart-options-processor/translations/axis-section.d.ts +1 -2
  34. package/dist/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +10 -0
  35. package/dist/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +3 -0
  36. package/dist/chart-options-processor/translations/boxplot/boxplot-series.d.ts +5 -0
  37. package/dist/chart-options-processor/translations/boxplot/boxplot-tooltip.d.ts +4 -0
  38. package/dist/chart-options-processor/translations/design-options.d.ts +15 -2
  39. package/dist/chart-options-processor/translations/legend-section.d.ts +4 -3
  40. package/dist/chart-options-processor/translations/tooltip-utils.d.ts +5 -0
  41. package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +5 -1
  42. package/dist/chart-options-processor/translations/types.d.ts +15 -3
  43. package/dist/chart-options-processor/translations/value-label-section.d.ts +2 -1
  44. package/dist/chart.d.ts +2 -2
  45. package/dist/charts/indicator/indicator-legacy-chart-data-options.d.ts +2 -2
  46. package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +2 -2
  47. package/dist/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +2 -2
  48. package/dist/charts/map-charts/areamap/alternative-country-names-dictionary.d.ts +9 -0
  49. package/dist/charts/map-charts/areamap/areamap-map.d.ts +16 -0
  50. package/dist/charts/map-charts/areamap/areamap.d.ts +16 -0
  51. package/dist/charts/map-charts/areamap/feature-styles-dictionary.d.ts +16 -0
  52. package/dist/charts/map-charts/areamap/use-geo-json.d.ts +9 -0
  53. package/dist/charts/map-charts/scattermap/hooks/use-locations.d.ts +3 -0
  54. package/dist/charts/map-charts/scattermap/hooks/use-settings.d.ts +5 -0
  55. package/dist/charts/map-charts/scattermap/hooks/use-tooltip-handler.d.ts +14 -0
  56. package/dist/charts/map-charts/scattermap/scattermap.d.ts +13 -0
  57. package/dist/charts/map-charts/scattermap/types.d.ts +16 -0
  58. package/dist/charts/map-charts/scattermap/utils/color.d.ts +3 -0
  59. package/dist/charts/map-charts/scattermap/utils/copyright.d.ts +2 -0
  60. package/dist/charts/map-charts/scattermap/utils/location.d.ts +5 -0
  61. package/dist/charts/map-charts/scattermap/utils/map.d.ts +2 -0
  62. package/dist/charts/map-charts/scattermap/utils/markers.d.ts +28 -0
  63. package/dist/charts/map-charts/scattermap/utils/size.d.ts +2 -0
  64. package/dist/charts/map-charts/scattermap/utils/tooltip.d.ts +8 -0
  65. package/dist/charts/map-charts/scattermap/utils/values.d.ts +4 -0
  66. package/dist/charts/table/types.d.ts +1 -1
  67. package/dist/column-chart.d.ts +2 -2
  68. package/dist/common/components/loading-dots.d.ts +4 -0
  69. package/dist/dashboard-widget/translate-dashboard-filters.d.ts +1 -1
  70. package/dist/dashboard-widget/translate-panel-color-format.d.ts +1 -1
  71. package/dist/dashboard-widget/translate-widget-data-options.d.ts +4 -3
  72. package/dist/dashboard-widget/translate-widget-style-options.d.ts +2 -2
  73. package/dist/dashboard-widget/types.d.ts +28 -3
  74. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +2 -4
  75. package/dist/decorators/component-decorators/as-sisense-component.d.ts +1 -0
  76. package/dist/filters/components/common/basic-input.d.ts +1 -1
  77. package/dist/filters/components/common/date-range-field-button.d.ts +3 -2
  78. package/dist/filters/components/common/dropdown.d.ts +1 -0
  79. package/dist/filters/components/common/filter-utils.d.ts +13 -0
  80. package/dist/filters/components/common/index.d.ts +1 -0
  81. package/dist/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
  82. package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +0 -9
  83. package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +2 -2
  84. package/dist/filters/components/criteria-filter-tile/index.d.ts +0 -1
  85. package/dist/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +10 -8
  86. package/dist/filters/components/date-filter/date-filter/quick-date-selection-buttons.d.ts +4 -4
  87. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
  88. package/dist/filters/components/date-filter/index.d.ts +1 -0
  89. package/dist/filters/components/date-filter/relative-date-filter-tile/index.d.ts +1 -0
  90. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-display.d.ts +14 -0
  91. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +36 -0
  92. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +26 -0
  93. package/dist/filters/components/filter-tile.d.ts +1 -1
  94. package/dist/filters/index.d.ts +1 -0
  95. package/dist/index.d.ts +4 -1
  96. package/dist/index.js +4712 -4876
  97. package/dist/indicator-canvas.d.ts +3 -3
  98. package/dist/indicator-chart.d.ts +4 -4
  99. package/dist/line-chart.d.ts +2 -2
  100. package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -0
  101. package/dist/models/dashboard/use-get-dashboard-models.d.ts +2 -1
  102. package/dist/models/widget/use-get-widget-model.d.ts +1 -0
  103. package/dist/models/widget/widget-model.d.ts +5 -4
  104. package/dist/pie-chart.d.ts +2 -2
  105. package/dist/polar-chart.d.ts +2 -2
  106. package/dist/props.d.ts +84 -62
  107. package/dist/query/execute-query.d.ts +1 -1
  108. package/dist/query-execution/execute-query-by-widget-id.d.ts +10 -2
  109. package/dist/query-execution/execute-query.d.ts +11 -4
  110. package/dist/query-execution/index.d.ts +1 -1
  111. package/dist/query-execution/types.d.ts +10 -8
  112. package/dist/query-execution/use-execute-csv-query.d.ts +4 -6
  113. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +6 -2
  114. package/dist/query-execution/use-execute-query.d.ts +2 -2
  115. package/dist/scatter-chart.d.ts +4 -4
  116. package/dist/scattermap-chart.d.ts +36 -0
  117. package/dist/sunburst-chart.d.ts +1 -1
  118. package/dist/table/hooks/use-table-data.d.ts +3 -2
  119. package/dist/table/table.d.ts +2 -2
  120. package/dist/table-widget-4275c061.js +77714 -0
  121. package/dist/themes/theme-loader.d.ts +0 -1
  122. package/dist/translation/resources/en.d.ts +25 -0
  123. package/dist/translation/resources/index.d.ts +50 -0
  124. package/dist/treemap-chart.d.ts +2 -2
  125. package/dist/types.d.ts +89 -8
  126. package/dist/utils/filters-comparator.d.ts +13 -1
  127. package/dist/widgets/chart-widget-deprecated.d.ts +1 -1
  128. package/dist/widgets/chart-widget.d.ts +1 -1
  129. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  130. package/dist/widgets/common/drilldown.d.ts +12 -2
  131. package/dist/widgets/drilldown-widget.d.ts +2 -2
  132. package/package.json +22 -6
  133. package/dist/chart-data/series-data-color-service/index.d.ts +0 -3
  134. package/dist/chart-data/series-data-color-service/series-data-color-service.d.ts +0 -4
  135. package/dist/table-widget-5f3b1d03.js +0 -64456
  136. /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
  };
@@ -13,12 +13,12 @@ import { TreemapChartProps } from './props';
13
13
  * dataOptions={{
14
14
  * category: [
15
15
  * {
16
- * column: DM.Commerce.Сondition,
16
+ * column: DM.Commerce.Condition,
17
17
  * isColored: true,
18
18
  * },
19
19
  * DM.Commerce.Date.Years
20
20
  * ],
21
- * value: [measures.sum(DM.Commerce.Quantity)],
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, IndicatorDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
13
- export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/series-data-color-service/types';
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?: string;
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 StyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions;
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: [measures.sum(DM.Commerce.Revenue)],
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: [measures.sum(DM.Commerce.Revenue)],
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" | "disabled" | "className" | "tabIndex" | "color" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
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" | "disabled" | "className" | "tabIndex" | "color" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
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={measure.sum(DM.Commerce.Revenue)}
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
- "version": "0.16.0",
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": "^0.16.0",
32
- "@sisense/sdk-data": "^0.16.0",
33
- "@sisense/sdk-query-client": "^0.16.0",
34
- "@sisense/sdk-rest-client": "^0.16.0",
35
- "@sisense/sdk-tracking": "^0.16.0",
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,3 +0,0 @@
1
- export * from './legend-color';
2
- export * from './series-data-color-service';
3
- export * from './types';
@@ -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[];