@sisense/sdk-ui 0.16.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.
Files changed (123) hide show
  1. package/dist/ai/messages/get-widget-options.d.ts +3 -3
  2. package/dist/ai.js +334 -308
  3. package/dist/area-chart.d.ts +2 -2
  4. package/dist/bar-chart.d.ts +2 -2
  5. package/dist/boxplot-chart.d.ts +38 -0
  6. package/dist/boxplot-utils.d.ts +30 -0
  7. package/dist/chart-data/boxplot-data.d.ts +11 -0
  8. package/dist/chart-data/cartesian-data.d.ts +6 -3
  9. package/dist/chart-data/data-coloring/create-data-coloring-function.d.ts +7 -0
  10. package/dist/chart-data/data-coloring/index.d.ts +3 -0
  11. package/dist/chart-data/{series-data-color-service → data-coloring}/legend-color.d.ts +1 -1
  12. package/dist/chart-data/data-coloring/series-data-coloring-function.d.ts +11 -0
  13. package/dist/chart-data/indicator-data.d.ts +2 -2
  14. package/dist/chart-data/scatter-data.d.ts +2 -2
  15. package/dist/chart-data/scattermap-data.d.ts +4 -0
  16. package/dist/chart-data/types.d.ts +46 -1
  17. package/dist/chart-data-options/translate-boxplot-data-options.d.ts +7 -0
  18. package/dist/chart-data-options/translate-scattermap-data-options.d.ts +3 -0
  19. package/dist/chart-data-options/types.d.ts +122 -10
  20. package/dist/chart-data-options/utils.d.ts +6 -1
  21. package/dist/chart-options-processor/boxplot-chart-options.d.ts +10 -0
  22. package/dist/chart-options-processor/chart-options-service.d.ts +21 -5
  23. package/dist/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
  24. package/dist/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
  25. package/dist/chart-options-processor/subtype-to-design-options.d.ts +5 -2
  26. package/dist/chart-options-processor/theme-option-service.d.ts +0 -1
  27. package/dist/chart-options-processor/translations/axis-section.d.ts +1 -2
  28. package/dist/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +10 -0
  29. package/dist/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +3 -0
  30. package/dist/chart-options-processor/translations/boxplot/boxplot-series.d.ts +5 -0
  31. package/dist/chart-options-processor/translations/boxplot/boxplot-tooltip.d.ts +3 -0
  32. package/dist/chart-options-processor/translations/design-options.d.ts +9 -2
  33. package/dist/chart-options-processor/translations/legend-section.d.ts +4 -3
  34. package/dist/chart-options-processor/translations/tooltip-utils.d.ts +5 -0
  35. package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +5 -1
  36. package/dist/chart-options-processor/translations/types.d.ts +10 -2
  37. package/dist/chart-options-processor/translations/value-label-section.d.ts +2 -1
  38. package/dist/chart.d.ts +2 -2
  39. package/dist/charts/indicator/indicator-legacy-chart-data-options.d.ts +2 -2
  40. package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +2 -2
  41. package/dist/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +2 -2
  42. package/dist/charts/scattermap/hooks/use-locations.d.ts +3 -0
  43. package/dist/charts/scattermap/hooks/use-settings.d.ts +5 -0
  44. package/dist/charts/scattermap/hooks/use-tooltip-handler.d.ts +14 -0
  45. package/dist/charts/scattermap/scattermap.d.ts +13 -0
  46. package/dist/charts/scattermap/types.d.ts +16 -0
  47. package/dist/charts/scattermap/utils/color.d.ts +3 -0
  48. package/dist/charts/scattermap/utils/copyright.d.ts +2 -0
  49. package/dist/charts/scattermap/utils/location.d.ts +5 -0
  50. package/dist/charts/scattermap/utils/map.d.ts +2 -0
  51. package/dist/charts/scattermap/utils/markers.d.ts +28 -0
  52. package/dist/charts/scattermap/utils/size.d.ts +2 -0
  53. package/dist/charts/scattermap/utils/tooltip.d.ts +8 -0
  54. package/dist/charts/scattermap/utils/values.d.ts +4 -0
  55. package/dist/charts/table/types.d.ts +1 -1
  56. package/dist/column-chart.d.ts +2 -2
  57. package/dist/common/components/loading-dots.d.ts +4 -0
  58. package/dist/dashboard-widget/translate-dashboard-filters.d.ts +1 -1
  59. package/dist/dashboard-widget/translate-panel-color-format.d.ts +1 -1
  60. package/dist/dashboard-widget/translate-widget-data-options.d.ts +4 -3
  61. package/dist/dashboard-widget/translate-widget-style-options.d.ts +2 -2
  62. package/dist/dashboard-widget/types.d.ts +26 -3
  63. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +2 -4
  64. package/dist/decorators/component-decorators/as-sisense-component.d.ts +1 -0
  65. package/dist/filters/components/common/basic-input.d.ts +1 -1
  66. package/dist/filters/components/common/date-range-field-button.d.ts +3 -2
  67. package/dist/filters/components/common/dropdown.d.ts +1 -0
  68. package/dist/filters/components/common/filter-utils.d.ts +13 -0
  69. package/dist/filters/components/common/index.d.ts +1 -0
  70. package/dist/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
  71. package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +0 -9
  72. package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +2 -2
  73. package/dist/filters/components/criteria-filter-tile/index.d.ts +0 -1
  74. package/dist/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +10 -8
  75. package/dist/filters/components/date-filter/date-filter/quick-date-selection-buttons.d.ts +4 -4
  76. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
  77. package/dist/filters/components/date-filter/index.d.ts +1 -0
  78. package/dist/filters/components/date-filter/relative-date-filter-tile/index.d.ts +1 -0
  79. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-display.d.ts +14 -0
  80. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +36 -0
  81. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +26 -0
  82. package/dist/filters/components/filter-tile.d.ts +1 -1
  83. package/dist/filters/index.d.ts +1 -0
  84. package/dist/index.d.ts +3 -1
  85. package/dist/index.js +3804 -3927
  86. package/dist/indicator-canvas.d.ts +3 -3
  87. package/dist/indicator-chart.d.ts +4 -4
  88. package/dist/line-chart.d.ts +2 -2
  89. package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -0
  90. package/dist/models/dashboard/use-get-dashboard-models.d.ts +2 -1
  91. package/dist/models/widget/use-get-widget-model.d.ts +1 -0
  92. package/dist/models/widget/widget-model.d.ts +5 -4
  93. package/dist/pie-chart.d.ts +2 -2
  94. package/dist/polar-chart.d.ts +2 -2
  95. package/dist/props.d.ts +67 -62
  96. package/dist/query/execute-query.d.ts +1 -1
  97. package/dist/query-execution/execute-query-by-widget-id.d.ts +10 -2
  98. package/dist/query-execution/execute-query.d.ts +11 -4
  99. package/dist/query-execution/index.d.ts +1 -1
  100. package/dist/query-execution/types.d.ts +10 -8
  101. package/dist/query-execution/use-execute-csv-query.d.ts +4 -6
  102. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +6 -2
  103. package/dist/query-execution/use-execute-query.d.ts +2 -2
  104. package/dist/scatter-chart.d.ts +4 -4
  105. package/dist/scattermap-chart.d.ts +36 -0
  106. package/dist/sunburst-chart.d.ts +1 -1
  107. package/dist/table/hooks/use-table-data.d.ts +3 -2
  108. package/dist/table/table.d.ts +2 -2
  109. package/dist/table-widget-7936746a.js +72481 -0
  110. package/dist/themes/theme-loader.d.ts +0 -1
  111. package/dist/translation/resources/en.d.ts +15 -0
  112. package/dist/translation/resources/index.d.ts +30 -0
  113. package/dist/treemap-chart.d.ts +2 -2
  114. package/dist/types.d.ts +76 -7
  115. package/dist/widgets/chart-widget-deprecated.d.ts +1 -1
  116. package/dist/widgets/chart-widget.d.ts +1 -1
  117. package/dist/widgets/common/drilldown.d.ts +12 -2
  118. package/dist/widgets/drilldown-widget.d.ts +2 -2
  119. package/package.json +19 -6
  120. package/dist/chart-data/series-data-color-service/index.d.ts +0 -3
  121. package/dist/chart-data/series-data-color-service/series-data-color-service.d.ts +0 -4
  122. package/dist/table-widget-5f3b1d03.js +0 -64456
  123. /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>;
@@ -55,5 +55,20 @@ export declare const translation: {
55
55
  byMeasure: string;
56
56
  by: string;
57
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;
72
+ };
58
73
  };
59
74
  export type TranslationDictionary = typeof translation;
@@ -59,6 +59,21 @@ export declare const resources: {
59
59
  byMeasure: string;
60
60
  by: string;
61
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;
76
+ };
62
77
  };
63
78
  uk: {
64
79
  errors: {
@@ -117,5 +132,20 @@ export declare const resources: {
117
132
  byMeasure: string;
118
133
  by: string;
119
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;
149
+ };
120
150
  };
121
151
  };
@@ -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,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, 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, };
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 StyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions;
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[];
@@ -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
  * />
@@ -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.0.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.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",
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",
@@ -44,6 +55,7 @@
44
55
  "guid-typescript": "^1.0.9",
45
56
  "highcharts-react-official": "^3.2.1",
46
57
  "immer": "^10.0.2",
58
+ "leaflet": "^1.9.4",
47
59
  "lodash": "^4.17.21",
48
60
  "merge-deep": "^3.0.3",
49
61
  "react-datepicker": "^4.16.0",
@@ -93,6 +105,7 @@
93
105
  "@testing-library/jest-dom": "^5.16.5",
94
106
  "@testing-library/react": "^14.0.0",
95
107
  "@types/fixed-data-table-2": "^0.8.8",
108
+ "@types/leaflet": "^1.9.8",
96
109
  "@types/lodash": "^4.14.194",
97
110
  "@types/react": "18.2.0",
98
111
  "@types/react-datepicker": "^4.11.2",
@@ -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[];