@sisense/sdk-ui 0.11.3

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 (241) hide show
  1. package/LICENSE.md +35 -0
  2. package/README.md +2 -0
  3. package/dist/alert-box/alert-box.d.ts +6 -0
  4. package/dist/app/client-application.d.ts +52 -0
  5. package/dist/app/settings/settings.d.ts +23 -0
  6. package/dist/app/settings/types/brand.d.ts +1 -0
  7. package/dist/app/settings/types/deployment-props.d.ts +37 -0
  8. package/dist/app/settings/types/ecm-props.d.ts +11 -0
  9. package/dist/app/settings/types/features.d.ts +124 -0
  10. package/dist/app/settings/types/globalization.d.ts +7 -0
  11. package/dist/app/settings/types/globals.d.ts +33 -0
  12. package/dist/app/settings/types/index.d.ts +1 -0
  13. package/dist/app/settings/types/role-manifest.d.ts +263 -0
  14. package/dist/app/settings/types/user.d.ts +51 -0
  15. package/dist/area-chart.d.ts +30 -0
  16. package/dist/bar-chart.d.ts +29 -0
  17. package/dist/chart-data/cartesian-data.d.ts +5 -0
  18. package/dist/chart-data/categorical-data.d.ts +5 -0
  19. package/dist/chart-data/chart-data-service.d.ts +18 -0
  20. package/dist/chart-data/filter-and-aggregate-chart-data.d.ts +4 -0
  21. package/dist/chart-data/indicator-data.d.ts +4 -0
  22. package/dist/chart-data/scatter-data.d.ts +23 -0
  23. package/dist/chart-data/series-data-color-service/index.d.ts +3 -0
  24. package/dist/chart-data/series-data-color-service/legend-color.d.ts +2 -0
  25. package/dist/chart-data/series-data-color-service/series-data-color-service.d.ts +4 -0
  26. package/dist/chart-data/series-data-color-service/types.d.ts +143 -0
  27. package/dist/chart-data/table-data.d.ts +6 -0
  28. package/dist/chart-data/types.d.ts +80 -0
  29. package/dist/chart-data/utils.d.ts +7 -0
  30. package/dist/chart-data-options/coloring/coloring-service.d.ts +22 -0
  31. package/dist/chart-data-options/coloring/conditional-coloring.d.ts +9 -0
  32. package/dist/chart-data-options/coloring/consts.d.ts +1 -0
  33. package/dist/chart-data-options/coloring/index.d.ts +1 -0
  34. package/dist/chart-data-options/coloring/range-coloring.d.ts +9 -0
  35. package/dist/chart-data-options/coloring/uniform-coloring.d.ts +4 -0
  36. package/dist/chart-data-options/translate-data-options.d.ts +7 -0
  37. package/dist/chart-data-options/types.d.ts +349 -0
  38. package/dist/chart-data-options/utils.d.ts +11 -0
  39. package/dist/chart-data-options/validate-data-options.d.ts +21 -0
  40. package/dist/chart-data-processor/categorical-distribution.d.ts +10 -0
  41. package/dist/chart-data-processor/data-table-date-period.d.ts +37 -0
  42. package/dist/chart-data-processor/distribution.d.ts +22 -0
  43. package/dist/chart-data-processor/row-comparator.d.ts +24 -0
  44. package/dist/chart-data-processor/table-creators.d.ts +39 -0
  45. package/dist/chart-data-processor/table-processor.d.ts +93 -0
  46. package/dist/chart-options-processor/apply-event-handlers.d.ts +49 -0
  47. package/dist/chart-options-processor/cartesian-chart-options.d.ts +18 -0
  48. package/dist/chart-options-processor/category-chart-options.d.ts +16 -0
  49. package/dist/chart-options-processor/chart-options-service.d.ts +253 -0
  50. package/dist/chart-options-processor/common-highcharts-option-service.d.ts +4 -0
  51. package/dist/chart-options-processor/defaults/cartesian.d.ts +45 -0
  52. package/dist/chart-options-processor/plot-bands.d.ts +23 -0
  53. package/dist/chart-options-processor/scatter-chart-options.d.ts +22 -0
  54. package/dist/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +4 -0
  55. package/dist/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +13 -0
  56. package/dist/chart-options-processor/style-to-design-options-translator/translate-to-indicator-options.d.ts +3 -0
  57. package/dist/chart-options-processor/subtype-to-design-options.d.ts +97 -0
  58. package/dist/chart-options-processor/theme-option-service.d.ts +11 -0
  59. package/dist/chart-options-processor/tooltip.d.ts +29 -0
  60. package/dist/chart-options-processor/translations/axis-section.d.ts +105 -0
  61. package/dist/chart-options-processor/translations/base-design-options.d.ts +7 -0
  62. package/dist/chart-options-processor/translations/design-options.d.ts +118 -0
  63. package/dist/chart-options-processor/translations/funnel-plot-options.d.ts +53 -0
  64. package/dist/chart-options-processor/translations/funnel-series.d.ts +15 -0
  65. package/dist/chart-options-processor/translations/legend-section.d.ts +23 -0
  66. package/dist/chart-options-processor/translations/marker-section.d.ts +26 -0
  67. package/dist/chart-options-processor/translations/navigator.d.ts +32 -0
  68. package/dist/chart-options-processor/translations/number-format-config.d.ts +16 -0
  69. package/dist/chart-options-processor/translations/pie-plot-options.d.ts +29 -0
  70. package/dist/chart-options-processor/translations/pie-series.d.ts +19 -0
  71. package/dist/chart-options-processor/translations/scatter-axis.d.ts +7 -0
  72. package/dist/chart-options-processor/translations/scatter-plot-options.d.ts +22 -0
  73. package/dist/chart-options-processor/translations/scatter-series.d.ts +23 -0
  74. package/dist/chart-options-processor/translations/scatter-tooltip.d.ts +21 -0
  75. package/dist/chart-options-processor/translations/tooltip-utils.d.ts +39 -0
  76. package/dist/chart-options-processor/translations/tooltip.d.ts +3 -0
  77. package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +73 -0
  78. package/dist/chart-options-processor/translations/treemap/treemap-labels.d.ts +6 -0
  79. package/dist/chart-options-processor/translations/treemap/treemap-options.d.ts +6 -0
  80. package/dist/chart-options-processor/translations/treemap/treemap-series.d.ts +5 -0
  81. package/dist/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +6 -0
  82. package/dist/chart-options-processor/translations/treemap/types.d.ts +19 -0
  83. package/dist/chart-options-processor/translations/types.d.ts +36 -0
  84. package/dist/chart-options-processor/translations/value-label-section.d.ts +28 -0
  85. package/dist/chart.d.ts +80 -0
  86. package/dist/charts/indicator/chart/gauge.d.ts +166 -0
  87. package/dist/charts/indicator/chart/indicator-helper.d.ts +47 -0
  88. package/dist/charts/indicator/chart/indicator.d.ts +39 -0
  89. package/dist/charts/indicator/chart/numeric-bar.d.ts +98 -0
  90. package/dist/charts/indicator/chart/numeric-simple.d.ts +91 -0
  91. package/dist/charts/indicator/chart/ticker.d.ts +65 -0
  92. package/dist/charts/indicator/indicator-legacy-chart-data-options.d.ts +36 -0
  93. package/dist/charts/indicator/indicator-legacy-chart-options/default-options.d.ts +4 -0
  94. package/dist/charts/indicator/indicator-legacy-chart-options/index.d.ts +1 -0
  95. package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +16 -0
  96. package/dist/charts/indicator/indicator-legacy-chart-options/legacy-chart-options-to-theme-settings-dictionary.d.ts +12 -0
  97. package/dist/charts/indicator/indicator-legacy-chart-options/override-with-theme-settings.d.ts +3 -0
  98. package/dist/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +35 -0
  99. package/dist/charts/indicator/indicator-legacy-chart-options/utils/override-with-custom-settings.d.ts +22 -0
  100. package/dist/charts/indicator/types.d.ts +118 -0
  101. package/dist/charts/table/data-table-wrapper.d.ts +3 -0
  102. package/dist/charts/table/header/field-type-icon.d.ts +6 -0
  103. package/dist/charts/table/header/sortable-table-column-header.d.ts +10 -0
  104. package/dist/charts/table/helpers/calc-column-widths.d.ts +2 -0
  105. package/dist/charts/table/helpers/format-numbers.d.ts +3 -0
  106. package/dist/charts/table/helpers/get-cell-styles.d.ts +13 -0
  107. package/dist/charts/table/index.d.ts +3 -0
  108. package/dist/charts/table/pure-table.d.ts +8 -0
  109. package/dist/charts/table/styles/style-constants.d.ts +9 -0
  110. package/dist/charts/table/types.d.ts +83 -0
  111. package/dist/column-chart.d.ts +29 -0
  112. package/dist/dashboard-widget/dashboard-widget.d.ts +16 -0
  113. package/dist/dashboard-widget/fetch-widget.d.ts +11 -0
  114. package/dist/dashboard-widget/translate-panel-color-format.d.ts +5 -0
  115. package/dist/dashboard-widget/translate-widget-data-options.d.ts +7 -0
  116. package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +3 -0
  117. package/dist/dashboard-widget/translate-widget-filters.d.ts +16 -0
  118. package/dist/dashboard-widget/translate-widget-style-options.d.ts +5 -0
  119. package/dist/dashboard-widget/translate-widget.d.ts +12 -0
  120. package/dist/dashboard-widget/types.d.ts +336 -0
  121. package/dist/dashboard-widget/utils.d.ts +32 -0
  122. package/dist/decorators/as-sisense-component.d.ts +19 -0
  123. package/dist/decorators/with-error-boundary.d.ts +5 -0
  124. package/dist/decorators/with-sisense-context-validation.d.ts +7 -0
  125. package/dist/decorators/with-tracking/error-tracker.d.ts +20 -0
  126. package/dist/decorators/with-tracking/index.d.ts +1 -0
  127. package/dist/decorators/with-tracking/use-track-component-init.d.ts +5 -0
  128. package/dist/decorators/with-tracking/with-tracking.d.ts +10 -0
  129. package/dist/dynamic-size-container/default-size.d.ts +14 -0
  130. package/dist/dynamic-size-container/dynamic-size-container.d.ts +22 -0
  131. package/dist/dynamic-size-container/index.d.ts +2 -0
  132. package/dist/error-boundary/error-boundary-box.d.ts +13 -0
  133. package/dist/error-boundary/error-boundary.d.ts +34 -0
  134. package/dist/error-boundary/use-set-error.d.ts +2 -0
  135. package/dist/filters/components/common/buttons.d.ts +10 -0
  136. package/dist/filters/components/common/checkbox.d.ts +7 -0
  137. package/dist/filters/components/common/date-range-field-button.d.ts +13 -0
  138. package/dist/filters/components/common/index.d.ts +5 -0
  139. package/dist/filters/components/common/input.d.ts +7 -0
  140. package/dist/filters/components/common/radio.d.ts +6 -0
  141. package/dist/filters/components/common/switch.d.ts +1 -0
  142. package/dist/filters/components/date-filter/consts.d.ts +1 -0
  143. package/dist/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +20 -0
  144. package/dist/filters/components/date-filter/date-filter/calendar-header.d.ts +12 -0
  145. package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +61 -0
  146. package/dist/filters/components/date-filter/date-filter/date-range-calculator.d.ts +8 -0
  147. package/dist/filters/components/date-filter/date-filter/index.d.ts +1 -0
  148. package/dist/filters/components/date-filter/date-filter/quick-date-selection-buttons.d.ts +13 -0
  149. package/dist/filters/components/date-filter/date-filter/styled-date-picker.d.ts +7 -0
  150. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +63 -0
  151. package/dist/filters/components/date-filter/date-range-filter-tile/index.d.ts +1 -0
  152. package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +7 -0
  153. package/dist/filters/components/date-filter/index.d.ts +2 -0
  154. package/dist/filters/components/date-filter/types.d.ts +14 -0
  155. package/dist/filters/components/filter-tile.d.ts +14 -0
  156. package/dist/filters/components/icons/arrow-down-icon.d.ts +2 -0
  157. package/dist/filters/components/icons/arrow-right-icon.d.ts +2 -0
  158. package/dist/filters/components/icons/date-icon.d.ts +5 -0
  159. package/dist/filters/components/icons/double-arrow-right-icon.d.ts +2 -0
  160. package/dist/filters/components/icons/index.d.ts +7 -0
  161. package/dist/filters/components/icons/menu-icon.d.ts +2 -0
  162. package/dist/filters/components/icons/pencil-icon.d.ts +2 -0
  163. package/dist/filters/components/icons/plus-icon.d.ts +2 -0
  164. package/dist/filters/components/icons/search-icon.d.ts +2 -0
  165. package/dist/filters/components/icons/trash-icon.d.ts +2 -0
  166. package/dist/filters/components/member-filter-tile/basic-member-filter-tile.d.ts +50 -0
  167. package/dist/filters/components/member-filter-tile/index.d.ts +3 -0
  168. package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +46 -0
  169. package/dist/filters/components/member-filter-tile/member-list.d.ts +11 -0
  170. package/dist/filters/components/member-filter-tile/members-reducer.d.ts +32 -0
  171. package/dist/filters/components/member-filter-tile/pill-section.d.ts +9 -0
  172. package/dist/filters/components/member-filter-tile/use-members.d.ts +14 -0
  173. package/dist/filters/components/member-filter-tile/use-validate-members.d.ts +8 -0
  174. package/dist/filters/index.d.ts +2 -0
  175. package/dist/funnel-chart.d.ts +47 -0
  176. package/dist/index.d.ts +35 -0
  177. package/dist/index.js +71761 -0
  178. package/dist/indicator-canvas.d.ts +21 -0
  179. package/dist/indicator-chart.d.ts +60 -0
  180. package/dist/line-chart.d.ts +28 -0
  181. package/dist/locales/en.d.ts +17 -0
  182. package/dist/no-results-overlay/images/index.d.ts +2 -0
  183. package/dist/no-results-overlay/no-results-overlay.d.ts +13 -0
  184. package/dist/pie-chart.d.ts +28 -0
  185. package/dist/polar-chart.d.ts +28 -0
  186. package/dist/props.d.ts +882 -0
  187. package/dist/query/date-formats/angular-text-date-format-replacers.d.ts +5 -0
  188. package/dist/query/date-formats/apply-date-format.d.ts +65 -0
  189. package/dist/query/date-formats/fiscal-date-format-replacers.d.ts +33 -0
  190. package/dist/query/date-formats/index.d.ts +2 -0
  191. package/dist/query/date-formats/new-date-format.d.ts +16 -0
  192. package/dist/query/date-formats/simple-date-format-replacers.d.ts +4 -0
  193. package/dist/query/execute-query.d.ts +8 -0
  194. package/dist/query/query-result-date-formatting.d.ts +5 -0
  195. package/dist/query-execution/execute-query-by-widget-id.d.ts +29 -0
  196. package/dist/query-execution/execute-query.d.ts +32 -0
  197. package/dist/query-execution/index.d.ts +5 -0
  198. package/dist/query-execution/query-state-reducer.d.ts +66 -0
  199. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +71 -0
  200. package/dist/query-execution/use-execute-query.d.ts +70 -0
  201. package/dist/query-execution/utils.d.ts +9 -0
  202. package/dist/scatter-chart.d.ts +68 -0
  203. package/dist/sisense-chart.d.ts +23 -0
  204. package/dist/sisense-context/custom-sisense-context-provider.d.ts +19 -0
  205. package/dist/sisense-context/sisense-context-provider.d.ts +36 -0
  206. package/dist/sisense-context/sisense-context.d.ts +9 -0
  207. package/dist/table/hooks/use-table-data.d.ts +11 -0
  208. package/dist/table/hooks/use-table-datatable.d.ts +11 -0
  209. package/dist/table/index.d.ts +1 -0
  210. package/dist/table/styles/get-custom-pagination-styles.d.ts +10 -0
  211. package/dist/table/table.d.ts +50 -0
  212. package/dist/theme-provider/custom-theme-provider.d.ts +18 -0
  213. package/dist/theme-provider/index.d.ts +1 -0
  214. package/dist/theme-provider/theme-provider.d.ts +45 -0
  215. package/dist/theme-provider/use-theme-settings.d.ts +12 -0
  216. package/dist/themes/legacy-design-settings.d.ts +84 -0
  217. package/dist/themes/theme-loader.d.ts +14 -0
  218. package/dist/treemap-chart.d.ts +34 -0
  219. package/dist/types.d.ts +692 -0
  220. package/dist/utils/color/color-interpolation.d.ts +37 -0
  221. package/dist/utils/color/index.d.ts +1 -0
  222. package/dist/utils/data-limit-warning.d.ts +2 -0
  223. package/dist/utils/dedupe.d.ts +1 -0
  224. package/dist/utils/filters-comparator.d.ts +11 -0
  225. package/dist/utils/utility-types.d.ts +39 -0
  226. package/dist/vite.svg +1 -0
  227. package/dist/widgets/chart-widget.d.ts +30 -0
  228. package/dist/widgets/common/context-menu.d.ts +3 -0
  229. package/dist/widgets/common/custom-drilldown.d.ts +20 -0
  230. package/dist/widgets/common/drilldown-breadcrumbs/drilldown-breadcrumbs.d.ts +4 -0
  231. package/dist/widgets/common/drilldown-breadcrumbs/index.d.ts +1 -0
  232. package/dist/widgets/common/drilldown-breadcrumbs/use-buttons.d.ts +27 -0
  233. package/dist/widgets/common/drilldown-breadcrumbs/use-popper.d.ts +24 -0
  234. package/dist/widgets/common/drilldown-breadcrumbs/use-theme-for-breadcrumbs.d.ts +11 -0
  235. package/dist/widgets/common/drilldown.d.ts +32 -0
  236. package/dist/widgets/common/use-widget-drilldown.d.ts +2 -0
  237. package/dist/widgets/common/widget-header.d.ts +11 -0
  238. package/dist/widgets/common/widget-style-utils.d.ts +13 -0
  239. package/dist/widgets/drilldown-widget.d.ts +49 -0
  240. package/dist/widgets/table-widget.d.ts +23 -0
  241. package/package.json +110 -0
@@ -0,0 +1,692 @@
1
+ /// <reference types="react" />
2
+ import { Attribute, MembersFilter } from '@sisense/sdk-data';
3
+ import { DeepRequired } from 'ts-essentials';
4
+ import { AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype } from './chart-options-processor/subtype-to-design-options';
5
+ import { IndicatorComponents } from './chart-options-processor/translations/design-options';
6
+ import { FunnelDirection, FunnelSize, FunnelType } from './chart-options-processor/translations/funnel-plot-options';
7
+ import { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
8
+ import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType } from './chart-options-processor/translations/types';
9
+ import { DataPointsEventHandler } from './props';
10
+ export type { AppConfig } from './app/client-application';
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, };
15
+ export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
16
+ /**
17
+ * @internal
18
+ */
19
+ export type Components = {
20
+ title: {
21
+ enabled: boolean;
22
+ };
23
+ };
24
+ /** Options that define navigator - zoom/pan tool for large datasets in a chart. */
25
+ export type Navigator = {
26
+ /** Boolean flag that defines if navigator should be shown on the chart */
27
+ enabled: boolean;
28
+ };
29
+ /** Configuration that defines line width */
30
+ export type LineWidth = {
31
+ /** Line width type */
32
+ width: 'thin' | 'bold' | 'thick';
33
+ };
34
+ /** Options that define markers - symbols or data points that highlight specific values. */
35
+ export type Markers = {
36
+ /** Boolean flag that defines if markers should be shown on the chart */
37
+ enabled: boolean;
38
+ /**
39
+ * Marker fill style
40
+ */
41
+ fill?: 'filled' | 'hollow';
42
+ /**
43
+ * Size of markers
44
+ */
45
+ size?: 'small' | 'large';
46
+ };
47
+ export type X2Title = {
48
+ enabled: boolean;
49
+ text?: string;
50
+ };
51
+ /** Options that define series labels - titles/names identifying data series in a chart. */
52
+ export type SeriesLabels = {
53
+ /** Boolean flag that defines if series labels should be shown on the chart */
54
+ enabled: boolean;
55
+ /** Rotation of series labels (in degrees) */
56
+ rotation?: number;
57
+ };
58
+ /** Options that define legend - a key that provides information about the data series or colors used in chart. */
59
+ export type Legend = {
60
+ /** Boolean flag that defines if legend should be shown on the chart */
61
+ enabled: boolean;
62
+ /** Position of the legend */
63
+ position?: string;
64
+ };
65
+ /** Configuration that defines behavior of data labels on chart */
66
+ export type Labels = {
67
+ /** Boolean flag that defines if categories names should be shown */
68
+ categories?: boolean;
69
+ /** Boolean flag that defines if any labels should be shown */
70
+ enabled?: boolean;
71
+ /** Boolean flag that defines if percents of Pie should be shown on slices */
72
+ percent?: boolean;
73
+ /** Boolean flag that defines if decimals should be shown for percent labels */
74
+ decimals?: boolean;
75
+ /** Boolean flag that defines if original values per category should be shown */
76
+ value?: boolean;
77
+ };
78
+ /** Options that define configuration for certain chart axis. */
79
+ export type AxisLabel = {
80
+ /** Boolean flag that defines if this axis should be shown on the chart */
81
+ enabled?: boolean;
82
+ /** Boolean flag that defines if grid lines should be shown on the chart */
83
+ gridLines?: boolean;
84
+ /** Interval of the tick marks (jumps) in axis units. */
85
+ intervalJumps?: number;
86
+ /** Boolean flag that defines if tick marks should be shown on the axis */
87
+ isIntervalEnabled?: boolean;
88
+ /** Configuration for labels on the axis */
89
+ labels?: {
90
+ /** Boolean flag that defines if labels should be shown on the axis */
91
+ enabled: boolean;
92
+ };
93
+ /** Boolean flag that defines if the axis should have logarithmic scale */
94
+ logarithmic?: boolean;
95
+ /** The minimum value of the axis. If 'undefined' the min value is automatically calculated */
96
+ min?: number;
97
+ /** The maximum value of the axis. If 'undefined' the max value is automatically calculated */
98
+ max?: number;
99
+ /**
100
+ * Boolean flag that defines if the Y axis should have grid lines extending the ticks across the plot area
101
+ */
102
+ templateMainYHasGridLines?: boolean;
103
+ /** Configuration for title of the axis */
104
+ title?: {
105
+ /** Boolean flag that defines if title should be shown */
106
+ enabled: boolean;
107
+ /** Textual content of the title */
108
+ text?: string;
109
+ };
110
+ /** Configuration for title of the second X axis */
111
+ x2Title?: X2Title;
112
+ };
113
+ /**
114
+ * Configuration that defines the ability of the Pie chart to collapse (convolve) and
115
+ * hide part of the data under the single category "Others".
116
+ */
117
+ export type Convolution = {
118
+ /** Boolean flag that defines if convolution ability should be enabled on chart */
119
+ enabled: boolean;
120
+ /** Selected type of convolution behavior */
121
+ selectedConvolutionType?: 'byPercentage' | 'bySlicesCount';
122
+ /** Value that defines what minimal size in percent should a slice take to fall under the convolution */
123
+ minimalIndependentSlicePercentage?: number;
124
+ /** Number that defines of how many independent slices should be present in chart (other will be convolved) */
125
+ independentSlicesCount?: number;
126
+ };
127
+ /**
128
+ * These were added so that we would be consistent with the style options on a
129
+ * widget. However, these are not used anywhere (yet).
130
+ *
131
+ * @internal
132
+ */
133
+ interface ReservedStyleOptions {
134
+ /** @internal */
135
+ 'colors/columns'?: boolean;
136
+ /** @internal */
137
+ 'colors/headers'?: boolean;
138
+ /** @internal */
139
+ 'colors/rows'?: boolean;
140
+ /** @internal */
141
+ components?: Components;
142
+ /** @internal */
143
+ skin?: string;
144
+ }
145
+ /**
146
+ * Configuration that limits the series or categories that are charted.
147
+ */
148
+ export interface DataLimits {
149
+ /** Maximum number of series to chart */
150
+ seriesCapacity?: number;
151
+ /** Maximum number of categories to chart */
152
+ categoriesCapacity?: number;
153
+ }
154
+ /**
155
+ * Basic configuration options that define functional style of the various elements of chart
156
+ *
157
+ * @internal
158
+ */
159
+ export interface BaseStyleOptions extends ReservedStyleOptions {
160
+ /** Configuration for legend - a key that provides information about the data series or colors used in chart */
161
+ legend?: Legend;
162
+ /**
163
+ * Configuration for series labels - titles/names identifying data series in a chart
164
+ *
165
+ * @internal
166
+ */
167
+ seriesLabels?: SeriesLabels;
168
+ /** Data limit for series or categories that will be plotted */
169
+ dataLimits?: DataLimits;
170
+ /**
171
+ * Total width of the component, which is considered in the following order of priority:
172
+ *
173
+ * 1. Value passed to this property (in pixels)
174
+ * 2. Width of the container wrapping this component
175
+ * 3. Default value of 400px
176
+ *
177
+ */
178
+ width?: number;
179
+ /**
180
+ * Total height of the component, which is considered in the following order of priority:
181
+ *
182
+ * 1. Value passed to this property (in pixels).
183
+ * 2. Height of the container wrapping this component
184
+ * 3. Default value of 400px (for component without header) or 425px (for component with header).
185
+ */
186
+ height?: number;
187
+ }
188
+ /**
189
+ * Configuration options that define functional style of axes and related elements
190
+ *
191
+ * @internal
192
+ */
193
+ export interface BaseAxisStyleOptions {
194
+ /** Configuration for markers - symbols or data points that highlight specific values */
195
+ markers?: Markers;
196
+ /** Configuration for navigator - zoom/pan tool for large datasets in a chart */
197
+ navigator?: Navigator;
198
+ /** Configuration for X axis */
199
+ xAxis?: AxisLabel;
200
+ /** Configuration for Y axis */
201
+ yAxis?: AxisLabel;
202
+ /** Configuration for second Y axis */
203
+ y2Axis?: AxisLabel;
204
+ }
205
+ /** Configuration options that define functional style of the various elements of {@link LineChart} */
206
+ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
207
+ /** Configuration that defines line width */
208
+ lineWidth?: LineWidth;
209
+ /** Subtype of {@link LineChart}*/
210
+ subtype?: LineSubtype;
211
+ }
212
+ /** Configuration options that define functional style of the various elements of {@link AreaChart} */
213
+ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
214
+ /** Configuration that defines line width */
215
+ lineWidth?: LineWidth;
216
+ /** Subtype of {@link AreaChart}*/
217
+ subtype?: AreaSubtype;
218
+ }
219
+ /** Configuration options that define functional style of the various elements of stackable charts, like Column or Bar */
220
+ export interface StackableStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
221
+ /** Subtype of stackable chart */
222
+ subtype?: StackableSubtype;
223
+ }
224
+ /** Configuration options that define functional style of the various elements of Pie chart */
225
+ export interface PieStyleOptions extends BaseStyleOptions {
226
+ /**
227
+ * Configuration that defines the ability of the Pie chart to collapse (convolve) and
228
+ * hide part of the data under the single category "Others".
229
+ */
230
+ convolution?: Convolution;
231
+ /** Configuration that defines behavior of data labels on Pie chart */
232
+ labels?: Labels;
233
+ /** Subtype of Pie chart*/
234
+ subtype?: PieSubtype;
235
+ }
236
+ /** Configuration options that define functional style of the various elements of {@link FunnelChart} */
237
+ export interface FunnelStyleOptions extends BaseStyleOptions {
238
+ /** Visual size of the lowest slice (degree of funnel narrowing from highest to lowest slices)*/
239
+ funnelSize?: FunnelSize;
240
+ /** Visual type of the lowest slice of {@link FunnelChart} */
241
+ funnelType?: FunnelType;
242
+ /** Direction of {@link FunnelChart} narrowing */
243
+ funnelDirection?: FunnelDirection;
244
+ /** Configuration that defines behavior of data labels on {@link FunnelChart} */
245
+ labels?: Labels;
246
+ /** Subtype of {@link FunnelChart}*/
247
+ subtype?: never;
248
+ }
249
+ /** Configuration options that define functional style of the various elements of {@link PolarChart} */
250
+ export interface PolarStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
251
+ /** Subtype of {@link PolarChart}*/
252
+ subtype?: PolarSubtype;
253
+ }
254
+ /** Configuration options that define functional style of the various elements of {@link IndicatorChart} */
255
+ export type IndicatorStyleOptions = (NumericSimpleIndicatorStyleOptions | NumericBarIndicatorStyleOptions | GaugeIndicatorStyleOptions) & {
256
+ /**
257
+ * Total width of the component, which is considered in the following order of priority:
258
+ *
259
+ * 1. Value passed to this property (in pixels)
260
+ * 2. Width of the container wrapping this component
261
+ * 3. Default value of 200px
262
+ *
263
+ */
264
+ width?: number;
265
+ /**
266
+ * Total height of the component, which is considered in the following order of priority:
267
+ *
268
+ * 1. Value passed to this property (in pixels).
269
+ * 2. Height of the container wrapping this component
270
+ * 3. Default value of 200px (for component without header) or 225px (for component with header).
271
+ */
272
+ height?: number;
273
+ };
274
+ /** Configuration options that define functional style of the various elements of {@link Table} */
275
+ export interface TableStyleOptions {
276
+ /**
277
+ * Boolean flag whether to fill header cells with background color
278
+ */
279
+ headersColor?: boolean;
280
+ /**
281
+ * Boolean flag whether to apply background color to alternate rows.
282
+ */
283
+ alternatingRowsColor?: boolean;
284
+ /**
285
+ * Boolean flag whether to apply background color to alternate columns
286
+ */
287
+ alternatingColumnsColor?: boolean;
288
+ /**
289
+ * Number of rows per page
290
+ *
291
+ * Default value is 25
292
+ *
293
+ */
294
+ rowsPerPage?: number;
295
+ /**
296
+ * Total width of the component, which is considered in the following order of priority:
297
+ *
298
+ * 1. Value passed to this property (in pixels)
299
+ * 2. Width of the container wrapping this component
300
+ * 3. Default value of 400px
301
+ *
302
+ */
303
+ width?: number;
304
+ /**
305
+ * Total height of the component, which is considered in the following order of priority:
306
+ *
307
+ * 1. Value passed to this property (in pixels).
308
+ * 2. Height of the container wrapping this component
309
+ * 3. Default value of 500px (for component without header) or 525px (for component with header).
310
+ */
311
+ height?: number;
312
+ }
313
+ /**
314
+ * Common part of IndicatorStyleOptions for all types of indicator
315
+ *
316
+ * @internal
317
+ */
318
+ export interface BaseIndicatorStyleOptions {
319
+ indicatorComponents?: IndicatorComponents;
320
+ }
321
+ /** Configuration options that define functional style of the various elements of Numeric Simple {@link IndicatorChart} */
322
+ export interface NumericSimpleIndicatorStyleOptions extends BaseIndicatorStyleOptions {
323
+ subtype: 'indicator/numeric';
324
+ numericSubtype: 'numericSimple';
325
+ skin: 'vertical' | 'horizontal';
326
+ }
327
+ /** Configuration options that define functional style of the various elements of Numeric Bar {@link IndicatorChart} */
328
+ export interface NumericBarIndicatorStyleOptions extends BaseIndicatorStyleOptions {
329
+ subtype: 'indicator/numeric';
330
+ numericSubtype: 'numericBar';
331
+ }
332
+ /** Configuration options that define functional style of the various elements of Gauge {@link IndicatorChart} */
333
+ export interface GaugeIndicatorStyleOptions extends BaseIndicatorStyleOptions {
334
+ subtype: 'indicator/gauge';
335
+ skin: 1 | 2;
336
+ }
337
+ /** Configuration options that define functional style of the various elements of {@link ScatterChart} */
338
+ export interface ScatterStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
339
+ /** Subtype of {@link ScatterChart}*/
340
+ subtype?: never;
341
+ markerSize?: ScatterMarkerSize;
342
+ }
343
+ /** Configuration options that define functional style of the various elements of {@link TreemapChart} */
344
+ export interface TreemapStyleOptions extends BaseStyleOptions {
345
+ /** Labels options object */
346
+ labels?: {
347
+ /** Array with single label options objects (order of items relative to dataOptions.category) */
348
+ category?: {
349
+ /** Define visibility of label */
350
+ enabled?: boolean;
351
+ }[];
352
+ };
353
+ /** Tooltip options object */
354
+ tooltip?: {
355
+ /** Define mode of data showing */
356
+ mode?: 'value' | 'contribution';
357
+ };
358
+ }
359
+ /**
360
+ * Configuration options that define functional style of the various elements of chart.
361
+ */
362
+ export type StyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions;
363
+ /** Mapping of each of the chart value series to colors. */
364
+ export type ValueToColorMap = Record<string, string>;
365
+ /**
366
+ * Chart type of one of the supported chart families
367
+ */
368
+ export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType;
369
+ /**
370
+ * Series chart type, which is used with {@link StyledMeasureColumn} to customize
371
+ * series in a mixed chart.
372
+ */
373
+ export type SeriesChartType = 'auto' | 'line' | 'spline' | 'areaspline' | 'bar' | 'area' | 'column' | 'scatter';
374
+ /** The number of decimal places */
375
+ export type DecimalScale = number | 'auto';
376
+ /** Sorting direction, either by Ascending order, Descending order, or None */
377
+ export type SortDirection = 'sortAsc' | 'sortDesc' | 'sortNone';
378
+ /**
379
+ * Configuration for number formatting.
380
+ */
381
+ export type NumberFormatConfig = {
382
+ /**
383
+ * Supported formats
384
+ */
385
+ name: 'Numbers' | 'Currency' | 'Percent';
386
+ /**
387
+ * The number of decimal places
388
+ */
389
+ decimalScale: DecimalScale;
390
+ /**
391
+ * Boolean flag whether to show an abbreviation
392
+ * for a number greater than or equal one trillion - e.g. 1T
393
+ */
394
+ trillion: boolean;
395
+ /**
396
+ * Boolean flag whether to show an abbreviation
397
+ * for a number greater than or equal one billion - e.g. 1B
398
+ */
399
+ billion: boolean;
400
+ /**
401
+ * Boolean flag whether to show an abbreviation
402
+ * for a number greater than or equal one million - e.g. 1M
403
+ */
404
+ million: boolean;
405
+ /**
406
+ * Boolean flag whether to show an abbreviation
407
+ * for a number greater than or equal one thousand - e.g. 1K
408
+ */
409
+ kilo: boolean;
410
+ /**
411
+ * Boolean flag whether the thousand separator is shown
412
+ *
413
+ * If true, show the thousand separator, e.g. `1,000`. Otherwise, show `1000`
414
+ */
415
+ thousandSeparator: boolean;
416
+ /**
417
+ * Boolean flag whether `symbol` is shown in front of or after the number
418
+ *
419
+ * If true, append `symbol` in front of the number, e.g. show `$1000` when `symbol` is `$`.
420
+ *
421
+ * If false, append `symbol` after the number, e.g. show `1000¥` when `symbol` is `¥`.
422
+ */
423
+ prefix: boolean;
424
+ /**
425
+ * Symbol to show in front of or after the number depending on the value of `prefix`.
426
+ */
427
+ symbol: string;
428
+ };
429
+ /** Identifier of a theme as defined in the Sisense instance. */
430
+ export type ThemeOid = string;
431
+ /** Theme settings defining the look and feel of components. */
432
+ export interface ThemeSettings {
433
+ /** Chart theme settings */
434
+ chart?: {
435
+ /** Text color */
436
+ textColor?: string;
437
+ /** Secondary text color - e.g., for the indicator chart's secondary value title */
438
+ secondaryTextColor?: string;
439
+ /** Background color */
440
+ backgroundColor?: string;
441
+ /** Toolbar Background color, can be used as a secondary background color */
442
+ panelBackgroundColor?: string;
443
+ };
444
+ /** Collection of colors used to color various elements */
445
+ palette?: ColorPaletteTheme;
446
+ /** Text theme settings */
447
+ typography?: {
448
+ /** Font family name to style component text */
449
+ fontFamily?: string;
450
+ primaryTextColor?: string;
451
+ secondaryTextColor?: string;
452
+ };
453
+ /** General theme settings */
454
+ general?: {
455
+ /** Main color used for various elements like primary buttons, switches, etc. */
456
+ brandColor?: string;
457
+ /** Background color used for elements like tiles, etc. */
458
+ backgroundColor?: string;
459
+ /** Text color for primary buttons */
460
+ primaryButtonTextColor?: string;
461
+ /** Hover color for primary buttons */
462
+ primaryButtonHoverColor?: string;
463
+ };
464
+ }
465
+ /**
466
+ * Complete set of theme settings defining the look and feel of components.
467
+ *
468
+ * @internal
469
+ */
470
+ export type CompleteThemeSettings = DeepRequired<ThemeSettings>;
471
+ /** Style settings defining the look and feel of widget itself and widget header */
472
+ export interface WidgetStyleOptions {
473
+ /** Space between widget container edge and the chart */
474
+ spaceAround?: 'Large' | 'Medium' | 'Small';
475
+ /** Corner radius of the widget container */
476
+ cornerRadius?: 'Large' | 'Medium' | 'Small';
477
+ /**
478
+ * Shadow level of the widget container
479
+ *
480
+ * Effective only when spaceAround is defined
481
+ */
482
+ shadow?: 'Light' | 'Medium' | 'Dark';
483
+ /** Widget container border toggle */
484
+ border?: boolean;
485
+ /** Widget container border color */
486
+ borderColor?: string;
487
+ /**
488
+ * Widget background color
489
+ *
490
+ * Affects chart background color as well
491
+ */
492
+ backgroundColor?: string;
493
+ /** Widget header styles */
494
+ header?: {
495
+ /** Header visibility toggle */
496
+ hidden?: boolean;
497
+ /** Header title text color */
498
+ titleTextColor?: string;
499
+ /** Header title alignment */
500
+ titleAlignment?: 'Left' | 'Center' | undefined;
501
+ /** Toggle of the divider line between widget header and chart */
502
+ dividerLine?: boolean;
503
+ /** Divider line color */
504
+ dividerLineColor?: string;
505
+ /** Header background color */
506
+ backgroundColor?: string;
507
+ };
508
+ }
509
+ /**
510
+ * Runs type guard check for ThemeOid.
511
+ *
512
+ * @internal
513
+ */
514
+ export declare function isThemeOid(arg: ThemeOid | ThemeSettings): arg is ThemeOid;
515
+ /** HEX color value or CSS color name. */
516
+ export declare type Color = string | null;
517
+ /** Collection of colors used to color various elements. */
518
+ export declare type ColorPaletteTheme = {
519
+ /** Set of colors used to color chart elements */
520
+ variantColors: Color[];
521
+ };
522
+ /** Configuration for the drilldown */
523
+ export type DrilldownOptions = {
524
+ /** Dimensions that can be used for drilldown */
525
+ drilldownDimensions?: Attribute[];
526
+ /** Current selections for multiple drilldowns */
527
+ drilldownSelections?: DrilldownSelection[];
528
+ };
529
+ /** Selection for the drilldown */
530
+ export type DrilldownSelection = {
531
+ /** Points selected for drilldown */
532
+ points: DataPoint[];
533
+ /** Dimension to drilldown to */
534
+ nextDimension: Attribute;
535
+ };
536
+ export type DataPoints = DataPoint[] | ScatterDataPoint[];
537
+ /** Data point in a chart. */
538
+ export type DataPoint = {
539
+ /** Value of the data point */
540
+ value?: string | number;
541
+ /** Categorical value of the data point */
542
+ categoryValue?: string | number;
543
+ /** Display value of categorical value of the data point */
544
+ categoryDisplayValue?: string;
545
+ /** Series associated with the data point */
546
+ seriesValue?: string | number;
547
+ };
548
+ /** Data point in a chart. */
549
+ export type ScatterDataPoint = {
550
+ x?: string | number;
551
+ y?: string | number;
552
+ size?: number;
553
+ breakByPoint?: string;
554
+ breakByColor?: string;
555
+ };
556
+ /**
557
+ * This is the minimum definition of Highcharts
558
+ * events, Series, and Point that we require. As
559
+ * we add more capabilities we may add more to
560
+ * these type definitions
561
+ *
562
+ * @internal
563
+ */
564
+ export type HighchartsPointerEvent = PointerEvent & {
565
+ point: HighchartsPoint;
566
+ };
567
+ /**
568
+ * @internal
569
+ */
570
+ export type HighchartsSelectEvent = {
571
+ originalEvent: MouseEvent;
572
+ preventDefault: () => void;
573
+ xAxis: HighchartsSelectEventAxis[];
574
+ yAxis: HighchartsSelectEventAxis[];
575
+ };
576
+ /**
577
+ * @internal
578
+ */
579
+ export type HighchartsSelectEventAxis = {
580
+ axis: {
581
+ series: Series[];
582
+ coll: 'xAxis' | 'yAxis';
583
+ };
584
+ min: number;
585
+ max: number;
586
+ };
587
+ /**
588
+ * @internal
589
+ */
590
+ export type Series = {
591
+ points: HighchartsPoint[];
592
+ };
593
+ /**
594
+ * @internal
595
+ */
596
+ export type HighchartsPoint = {
597
+ category: string;
598
+ name?: string;
599
+ options: {
600
+ name: string;
601
+ custom: {
602
+ number1?: number;
603
+ };
604
+ };
605
+ custom: {
606
+ maskedBreakByPoint?: string;
607
+ maskedBreakByColor?: string;
608
+ rawValue?: string | number;
609
+ xValue?: (string | number)[];
610
+ };
611
+ series: {
612
+ initialType: string;
613
+ options: {
614
+ custom?: {
615
+ rawValue?: string | number[];
616
+ };
617
+ };
618
+ };
619
+ graphic?: {
620
+ on: (eventType: string, callback: (event: PointerEvent) => void) => HighchartsPoint['graphic'];
621
+ };
622
+ x: number;
623
+ y: number;
624
+ z: number;
625
+ };
626
+ /**
627
+ * @internal
628
+ */
629
+ export type OptionsWithAlerts<T> = {
630
+ options: T;
631
+ alerts: string[];
632
+ };
633
+ /**
634
+ * @internal
635
+ */
636
+ export type SeriesWithAlerts<T> = {
637
+ series: T;
638
+ alerts: string[];
639
+ };
640
+ /**
641
+ * Context menu position coordinates
642
+ * Used in {@link ContextMenu} component
643
+ */
644
+ export type MenuPosition = {
645
+ /** Horizontal position */
646
+ left: number;
647
+ /** Vertical position */
648
+ top: number;
649
+ };
650
+ /**
651
+ * Context menu section
652
+ * Used in {@link ContextMenu} component
653
+ */
654
+ export type MenuItemSection = {
655
+ /** Optional section title */
656
+ sectionTitle?: string;
657
+ /** Optional list of menu items */
658
+ items?: {
659
+ key?: string;
660
+ onClick?: () => void;
661
+ caption: string;
662
+ }[];
663
+ };
664
+ /**
665
+ * Result of custom drilldown execution
666
+ *
667
+ * User provides selected points and desired category to drilldown to
668
+ * and receives set of filters to apply and new category to display
669
+ *
670
+ */
671
+ export type CustomDrilldownResult = {
672
+ /**
673
+ * The drilldown filters that should be applied to the next drilldown
674
+ */
675
+ drilldownFilters: MembersFilter[];
676
+ /**
677
+ * New dimension that should replace the current dimension
678
+ */
679
+ drilldownDimension: Attribute;
680
+ /**
681
+ * Callback to provide next points to drilldown to
682
+ */
683
+ onDataPointsSelected: DataPointsEventHandler;
684
+ /**
685
+ * Callback to open context menu
686
+ */
687
+ onContextMenu: (menuPosition: MenuPosition) => void;
688
+ /**
689
+ * Breadcrumbs that only allow for selection slicing, clearing, & navigation
690
+ */
691
+ breadcrumbsComponent?: JSX.Element;
692
+ };