@databrainhq/plugin 0.15.25 → 0.15.27

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 (245) hide show
  1. package/README.md +233 -233
  2. package/dist/components/Accordion/index.d.ts +33 -0
  3. package/dist/components/AceEditorSql/AceEditorSql.d.ts +11 -0
  4. package/dist/components/Alert/index.d.ts +12 -0
  5. package/dist/components/AutoCompleteDropdown/index.d.ts +20 -0
  6. package/dist/components/Badge/index.d.ts +10 -0
  7. package/dist/components/Button/index.d.ts +14 -0
  8. package/dist/components/ButtonGroup/index.d.ts +14 -0
  9. package/dist/components/Chart/SingleValueChart.d.ts +37 -0
  10. package/dist/components/Chart/index.d.ts +34 -0
  11. package/dist/components/ChartModal/ChartConfig.d.ts +10 -0
  12. package/dist/components/ChartModal/ChartModalOptions.d.ts +14 -0
  13. package/dist/components/ChartModal/index.d.ts +3 -0
  14. package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +15 -0
  15. package/dist/components/ChartPopup/index.d.ts +28 -0
  16. package/dist/components/ChartReportPanel/index.d.ts +10 -0
  17. package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +13 -0
  18. package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboChartFormatter.d.ts +8 -0
  19. package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +8 -0
  20. package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +26 -0
  21. package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +14 -0
  22. package/dist/components/ChartSettingsPopup/index.d.ts +3 -0
  23. package/dist/components/ChartTypePanel/index.d.ts +15 -0
  24. package/dist/components/Checkbox/index.d.ts +10 -0
  25. package/dist/components/ColorField/ColorField.d.ts +13 -0
  26. package/dist/components/DataType/index.d.ts +9 -0
  27. package/dist/components/DateRangePicker/index.d.ts +36 -0
  28. package/dist/components/DraggableItem/index.d.ts +7 -0
  29. package/dist/components/DrillBreadCrumb/index.d.ts +16 -0
  30. package/dist/components/Error/index.d.ts +6 -0
  31. package/dist/components/ErrorFallback/index.d.ts +2 -0
  32. package/dist/components/ExternalMetricForm/index.d.ts +11 -0
  33. package/dist/components/FilterDropDown/index.d.ts +30 -0
  34. package/dist/components/FilterField/index.d.ts +39 -0
  35. package/dist/components/Flex/index.d.ts +13 -0
  36. package/dist/components/FloatingDropDown/index.d.ts +38 -0
  37. package/dist/components/FullScreenChart/index.d.ts +8 -0
  38. package/dist/components/GaugeLegend/index.d.ts +11 -0
  39. package/dist/components/GenerateMetric/index.d.ts +3 -0
  40. package/dist/components/GlobalFilters/AddFilter.d.ts +15 -0
  41. package/dist/components/GlobalFilters/AppliedFilter.d.ts +9 -0
  42. package/dist/components/GlobalFilters/Filters.d.ts +28 -0
  43. package/dist/components/GlobalFilters/HorizontalFilters.d.ts +35 -0
  44. package/dist/components/GlobalFilters/NumberFilterField.d.ts +23 -0
  45. package/dist/components/GlobalFilters/SearchField.d.ts +10 -0
  46. package/dist/components/GlobalFilters/index.d.ts +79 -0
  47. package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +6 -0
  48. package/dist/components/HorizontalStackTable/index.d.ts +18 -0
  49. package/dist/components/Icons/Logos/index.d.ts +26 -0
  50. package/dist/components/Icons/index.d.ts +9 -0
  51. package/dist/components/InfoTooltip/index.d.ts +15 -0
  52. package/dist/components/InputField/index.d.ts +17 -0
  53. package/dist/components/List/index.d.ts +38 -0
  54. package/dist/components/Loader/index.d.ts +6 -0
  55. package/dist/components/Menu/index.d.ts +32 -0
  56. package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +11 -0
  57. package/dist/components/MetricChart/CsvDownloadButton.d.ts +12 -0
  58. package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +12 -0
  59. package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +37 -0
  60. package/dist/components/MetricChart/index.d.ts +5 -0
  61. package/dist/components/MetricCreation/MetricCreation.d.ts +3 -0
  62. package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +3 -0
  63. package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +3 -0
  64. package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +2 -0
  65. package/dist/components/MetricCreation/components/Dataset/index.d.ts +3 -0
  66. package/dist/components/MetricCreation/components/Header/index.d.ts +3 -0
  67. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +3 -0
  68. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +33 -0
  69. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +2 -0
  70. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +1 -0
  71. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +11 -0
  72. package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +3 -0
  73. package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +2 -0
  74. package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +13 -0
  75. package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +22 -0
  76. package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +20 -0
  77. package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +15 -0
  78. package/dist/components/MetricCreation/index.d.ts +5 -0
  79. package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +17 -0
  80. package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +7 -0
  81. package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +18 -0
  82. package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +11 -0
  83. package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +12 -0
  84. package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +12 -0
  85. package/dist/components/MetricFilterDropDown/index.d.ts +24 -0
  86. package/dist/components/MetricList/MetricList.d.ts +65 -0
  87. package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +7 -0
  88. package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +13 -0
  89. package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +8 -0
  90. package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +12 -0
  91. package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +18 -0
  92. package/dist/components/MetricList/components/FullScreenView/index.d.ts +45 -0
  93. package/dist/components/MetricList/components/LayoutAlert/index.d.ts +7 -0
  94. package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +15 -0
  95. package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +17 -0
  96. package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +14 -0
  97. package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +16 -0
  98. package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +98 -0
  99. package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +11 -0
  100. package/dist/components/MetricList/components/TableViewModal/index.d.ts +9 -0
  101. package/dist/components/MetricList/components/index.d.ts +7 -0
  102. package/dist/components/MetricList/index.d.ts +2 -0
  103. package/dist/components/MetricTable/index.d.ts +7 -0
  104. package/dist/components/Modal/Modal.d.ts +14 -0
  105. package/dist/components/Modal/ModalFooter.d.ts +5 -0
  106. package/dist/components/Modal/index.d.ts +2 -0
  107. package/dist/components/MultiSelectDropdown/index.d.ts +39 -0
  108. package/dist/components/Panel/index.d.ts +17 -0
  109. package/dist/components/PivotTable/PivotTableV2.d.ts +23 -0
  110. package/dist/components/PivotTable/index.d.ts +8 -0
  111. package/dist/components/PivotTable/transformData.d.ts +7 -0
  112. package/dist/components/PopoverMenu/index.d.ts +36 -0
  113. package/dist/components/Portal/index.d.ts +2 -0
  114. package/dist/components/RadioButton/index.d.ts +16 -0
  115. package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +6 -0
  116. package/dist/components/ScheduleEmail/index.d.ts +3 -0
  117. package/dist/components/SearchDropdown/index.d.ts +14 -0
  118. package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +19 -0
  119. package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +44 -0
  120. package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +8 -0
  121. package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +9 -0
  122. package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +7 -0
  123. package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +3 -0
  124. package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +7 -0
  125. package/dist/components/SearchMetricData/ChatMode/Results.d.ts +23 -0
  126. package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +7 -0
  127. package/dist/components/SearchMetricData/SearchMetricData.d.ts +5 -0
  128. package/dist/components/SearchMetricData/index.d.ts +1 -0
  129. package/dist/components/SearchTab/index.d.ts +13 -0
  130. package/dist/components/Select/index.d.ts +47 -0
  131. package/dist/components/SelfHostControl/index.d.ts +4 -0
  132. package/dist/components/SkeletonLoader/index.d.ts +9 -0
  133. package/dist/components/SpinningLoader/index.d.ts +2 -0
  134. package/dist/components/Switch/SwitchInput.d.ts +9 -0
  135. package/dist/components/Switch/index.d.ts +11 -0
  136. package/dist/components/Tab/index.d.ts +14 -0
  137. package/dist/components/Table/DebouncedInput.d.ts +6 -0
  138. package/dist/components/Table/Filter.d.ts +7 -0
  139. package/dist/components/Table/index.d.ts +36 -0
  140. package/dist/components/Tabs/index.d.ts +41 -0
  141. package/dist/components/TagInputField/index.d.ts +33 -0
  142. package/dist/components/Text/index.d.ts +13 -0
  143. package/dist/components/TextAreaField/index.d.ts +24 -0
  144. package/dist/components/ThemeBlock/index.d.ts +8 -0
  145. package/dist/components/TimeGrainField/index.d.ts +16 -0
  146. package/dist/components/TimeSeriesSettings/index.d.ts +8 -0
  147. package/dist/components/index.d.ts +63 -0
  148. package/dist/consts/api.d.ts +64 -0
  149. package/dist/consts/app.d.ts +154 -0
  150. package/dist/consts/index.d.ts +2 -0
  151. package/dist/consts/metricOptions.d.ts +205 -0
  152. package/dist/consts/validations.d.ts +24 -0
  153. package/dist/containers/CreateMetric/CreateEmbeddedMetric.d.ts +14 -0
  154. package/dist/containers/CreateMetric/index.d.ts +3 -0
  155. package/dist/containers/Dashboard/Dashboard.d.ts +72 -0
  156. package/dist/containers/Dashboard/DashboardProvider.d.ts +7 -0
  157. package/dist/containers/Dashboard/EmbededDashboard.d.ts +45 -0
  158. package/dist/containers/Dashboard/index.d.ts +2 -0
  159. package/dist/containers/DbnStyles.d.ts +10 -0
  160. package/dist/containers/Metric/EmbeddedMetric.d.ts +47 -0
  161. package/dist/containers/Metric/index.d.ts +85 -0
  162. package/dist/containers/PluginProvider.d.ts +7 -0
  163. package/dist/containers/index.d.ts +3 -0
  164. package/dist/helpers/adaptiveFormatter.d.ts +6 -0
  165. package/dist/helpers/areArraysEqual.d.ts +1 -0
  166. package/dist/helpers/autoCompleteHelpers.d.ts +95 -0
  167. package/dist/helpers/cardActions.d.ts +5 -0
  168. package/dist/helpers/chartOptions.d.ts +93 -0
  169. package/dist/helpers/checkIsElementInViewport.d.ts +1 -0
  170. package/dist/helpers/conditionalFormatting.d.ts +3 -0
  171. package/dist/helpers/copyToClipboard.d.ts +4 -0
  172. package/dist/helpers/createMetric.d.ts +25 -0
  173. package/dist/helpers/darkColorIdentifier.d.ts +2 -0
  174. package/dist/helpers/dateFormatter.d.ts +1 -0
  175. package/dist/helpers/generateColorPalette.d.ts +1 -0
  176. package/dist/helpers/generateTimeRangeWhereClause.d.ts +13 -0
  177. package/dist/helpers/getColumnType.d.ts +2 -0
  178. package/dist/helpers/getComboRangeLabel.d.ts +5 -0
  179. package/dist/helpers/getFilterAppliedQuery.d.ts +71 -0
  180. package/dist/helpers/getModifiedQuery.d.ts +78 -0
  181. package/dist/helpers/getNextScheduledTime.d.ts +13 -0
  182. package/dist/helpers/getTimeFilterValue.d.ts +12 -0
  183. package/dist/helpers/getValidRlsConditionOptions.d.ts +16 -0
  184. package/dist/helpers/groupArray.d.ts +1 -0
  185. package/dist/helpers/groupBy.d.ts +25 -0
  186. package/dist/helpers/index.d.ts +16 -0
  187. package/dist/helpers/numberFormatter.d.ts +1 -0
  188. package/dist/helpers/setOnDateChange.d.ts +11 -0
  189. package/dist/helpers/sqlMetadata.d.ts +7 -0
  190. package/dist/helpers/timeseries.d.ts +35 -0
  191. package/dist/helpers/timeseriesOption.d.ts +72 -0
  192. package/dist/helpers/tooltipFormatter.d.ts +27 -0
  193. package/dist/helpers/treeMap.d.ts +6 -0
  194. package/dist/hooks/index.d.ts +12 -0
  195. package/dist/hooks/useArchiveMetric.d.ts +10 -0
  196. package/dist/hooks/useAutoCompleteOptions.d.ts +4 -0
  197. package/dist/hooks/useClientDashboardLayout.d.ts +21 -0
  198. package/dist/hooks/useDashboardContext.d.ts +37 -0
  199. package/dist/hooks/useDatasetMetric.d.ts +50 -0
  200. package/dist/hooks/useDebounce.d.ts +2 -0
  201. package/dist/hooks/useDownloadRawCsv.d.ts +21 -0
  202. package/dist/hooks/useDrag.d.ts +10 -0
  203. package/dist/hooks/useDragAndDropState.d.ts +10 -0
  204. package/dist/hooks/useDrop.d.ts +13 -0
  205. package/dist/hooks/useEmbeddedMetric.d.ts +24 -0
  206. package/dist/hooks/useExternalMetric.d.ts +55 -0
  207. package/dist/hooks/useGenerateDatasetMetrics.d.ts +13 -0
  208. package/dist/hooks/useGenerateMetric.d.ts +64 -0
  209. package/dist/hooks/useMetricCard.d.ts +121 -0
  210. package/dist/hooks/useMetricConfig.d.ts +63 -0
  211. package/dist/hooks/useNewEmbeddedDashboard.d.ts +35 -0
  212. package/dist/hooks/useOutsideAlerter.d.ts +14 -0
  213. package/dist/hooks/usePublishArchivedMetrics.d.ts +5 -0
  214. package/dist/hooks/usePythonResults.d.ts +17 -0
  215. package/dist/hooks/useScheduleEmail.d.ts +29 -0
  216. package/dist/hooks/useSearch.d.ts +55 -0
  217. package/dist/hooks/useUnderlyingData.d.ts +32 -0
  218. package/dist/index.d.ts +8 -0
  219. package/dist/queries/externalDashboard.mutation.d.ts +61 -0
  220. package/dist/queries/externalDashboard.query.d.ts +20 -0
  221. package/dist/queries/index.d.ts +1 -0
  222. package/dist/queries/metric.mutation.d.ts +57 -0
  223. package/dist/queries/metric.query.d.ts +12 -0
  224. package/dist/types/app.d.ts +894 -0
  225. package/dist/types/dragAndDropProps.d.ts +70 -0
  226. package/dist/types/index.d.ts +3 -0
  227. package/dist/types/metricCreate.d.ts +741 -0
  228. package/dist/types/queryTypes.d.ts +341 -0
  229. package/dist/utils/arrayToCsvString.d.ts +6 -0
  230. package/dist/utils/colors.d.ts +2 -0
  231. package/dist/utils/fetcher.d.ts +13 -0
  232. package/dist/utils/getChartAttributes.d.ts +98 -0
  233. package/dist/utils/getChartImage.d.ts +3 -0
  234. package/dist/utils/getChartOptions.d.ts +42 -0
  235. package/dist/utils/getFormattedDataType.d.ts +1 -0
  236. package/dist/utils/getNoAxisChartOptions.d.ts +25 -0
  237. package/dist/utils/getValidJson.d.ts +1 -0
  238. package/dist/utils/index.d.ts +9 -0
  239. package/dist/utils/pivotDataTransform.d.ts +7 -0
  240. package/dist/utils/popoverPosition.d.ts +2 -0
  241. package/dist/utils/theme.d.ts +42 -0
  242. package/dist/webcomponents.d.ts +16 -0
  243. package/dist/webcomponents.es.js +744 -744
  244. package/dist/webcomponents.umd.js +14 -14
  245. package/package.json +112 -112
@@ -0,0 +1,35 @@
1
+ import { BackgroundSettings, CustomSettings, LabelSettings, TimeSeriesGroupType, TimeSeriesType } from '@/types';
2
+ interface TimeSeriesData {
3
+ timeStampKey: string;
4
+ data: Record<string, any>[];
5
+ values?: string[];
6
+ }
7
+ type GetTimeSeriesData = {
8
+ dataArray: Record<string, any>[];
9
+ timeStampKey: string;
10
+ valuekeys: string[];
11
+ type: TimeSeriesType;
12
+ groupBy: TimeSeriesGroupType;
13
+ labelSettings: LabelSettings;
14
+ customSettings: CustomSettings;
15
+ backGroundColor: BackgroundSettings;
16
+ fillXAxis: boolean;
17
+ isCumulativeBar: boolean;
18
+ customData: any;
19
+ yAxisList: string[];
20
+ hasPercentSymbol: boolean;
21
+ colorPalette?: string[];
22
+ markerData?: any[];
23
+ labelFormatting?: any;
24
+ chartAppearanceLabelPosition?: string;
25
+ };
26
+ export declare const groupByMap: {
27
+ yearly: (date: Date) => string;
28
+ monthly: (date: Date) => string;
29
+ weekly: (date: Date) => string;
30
+ daily: (date: Date) => string;
31
+ quarterly: (date: Date) => string;
32
+ };
33
+ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, isCumulativeBar, customData, yAxisList, hasPercentSymbol, colorPalette, markerData, labelFormatting, chartAppearanceLabelPosition, }: GetTimeSeriesData) => any[];
34
+ export declare const isTimeSeriesDataValid: ({ data, timeStampKey, }: TimeSeriesData) => boolean;
35
+ export {};
@@ -0,0 +1,72 @@
1
+ import { BackgroundSettings, ChartSettingsType, CustomSettings, FloatingDropDownOption, LabelSettings, LegendSettings } from '@/types';
2
+ type DataRow = Record<string, any>;
3
+ type AxisSettings = {
4
+ axis?: string | undefined;
5
+ };
6
+ type GetSeriesOptionParams = {
7
+ chartOptions: ChartSettingsType;
8
+ data: DataRow[];
9
+ labelSettings: LabelSettings;
10
+ backGroundColor: BackgroundSettings;
11
+ customSettings: CustomSettings;
12
+ colorOptions: Record<string, any>;
13
+ defaultOptions: Record<string, any>;
14
+ legendSettings: LegendSettings;
15
+ axisSettings: AxisSettings;
16
+ legendPosition: Record<string, any>;
17
+ markerData?: any[];
18
+ labelFormatting: any;
19
+ chartAppearanceLabelPosition?: string;
20
+ horizontalAxisSettings?: any;
21
+ horizontalAxisLabelSettings?: any;
22
+ verticalAxisSettings?: any;
23
+ verticalAxisLabelSettings?: any;
24
+ chartLegendSettings?: any;
25
+ chartTooltip?: {
26
+ labelStyle?: {
27
+ size?: number;
28
+ family?: string;
29
+ weight?: number;
30
+ color?: string;
31
+ };
32
+ valueStyle?: {
33
+ size?: number;
34
+ family?: string;
35
+ weight?: number;
36
+ color?: string;
37
+ };
38
+ tooltipHeader?: {
39
+ size?: number;
40
+ family?: string;
41
+ weight?: number;
42
+ color?: string;
43
+ };
44
+ };
45
+ };
46
+ export declare const getSeriesOption: ({ chartOptions, data, backGroundColor, customSettings, labelSettings, colorOptions, defaultOptions, axisSettings, markerData, labelFormatting, chartAppearanceLabelPosition, horizontalAxisSettings, horizontalAxisLabelSettings, verticalAxisSettings, verticalAxisLabelSettings, chartLegendSettings, chartTooltip, }: GetSeriesOptionParams) => {
47
+ axisLine: {
48
+ show: boolean | undefined;
49
+ };
50
+ axisLabel: {
51
+ show: boolean | undefined;
52
+ };
53
+ tooltip: {
54
+ trigger: string;
55
+ backgroundColor: string;
56
+ borderRadius: number;
57
+ padding: number;
58
+ axisPointer: {
59
+ type: string;
60
+ };
61
+ className: string;
62
+ enterable: boolean;
63
+ valueFormatter: (value: any) => string;
64
+ formatter: (params: any) => string;
65
+ };
66
+ xAxis: any;
67
+ yAxis: any;
68
+ legend: any;
69
+ series: any[];
70
+ };
71
+ export declare const getFormat: (value: FloatingDropDownOption, dbName: string) => "yyyy-MM-dd" | "%b - %Y" | "MMM - yyyy" | "Mon - yyyy" | "%Y" | "yyyy" | "%Q QUARTER" | "%Q %Y" | "Q yyyy" | "%Y-%m-%d" | "yyyy-mm-dd" | "%Y-%m-%U" | "%Y-%m-%W" | "yyyy-MM-WEEKOFYEAR" | "yyyy-mm-WW";
72
+ export {};
@@ -0,0 +1,27 @@
1
+ import { ChartSettingsType } from '@/types';
2
+ export declare const tooltipFormatter: (params: any, chartOptions: ChartSettingsType, options?: {
3
+ hasPercentSymbol?: boolean;
4
+ isEnableDateFormat?: boolean;
5
+ dateFormat?: string;
6
+ isNoAxisChart?: boolean;
7
+ tooltipFormatting?: {
8
+ labelStyle?: {
9
+ size?: number;
10
+ family?: string;
11
+ weight?: number;
12
+ color?: string;
13
+ };
14
+ valueStyle?: {
15
+ size?: number;
16
+ family?: string;
17
+ weight?: number;
18
+ color?: string;
19
+ };
20
+ tooltipHeader?: {
21
+ size?: number;
22
+ family?: string;
23
+ weight?: number;
24
+ color?: string;
25
+ };
26
+ };
27
+ }) => string;
@@ -0,0 +1,6 @@
1
+ declare const createNestedArray: (data: Record<string, any>[], selectedRoots: string[], selectedColumns: string[]) => {
2
+ name: string;
3
+ value: number;
4
+ children: never[];
5
+ }[];
6
+ export default createNestedArray;
@@ -0,0 +1,12 @@
1
+ export * from './useExternalMetric';
2
+ export * from './useGenerateDatasetMetrics';
3
+ export * from './useOutsideAlerter';
4
+ export * from './useClientDashboardLayout';
5
+ export * from './useUnderlyingData';
6
+ export * from './useMetricCard';
7
+ export * from './useArchiveMetric';
8
+ export * from './useEmbeddedMetric';
9
+ export * from './useDrag';
10
+ export * from './useDrop';
11
+ export * from './usePythonResults';
12
+ export * from './useAutoCompleteOptions';
@@ -0,0 +1,10 @@
1
+ type UseArchiveMetricProps = {
2
+ metricId: string;
3
+ onSuccess: () => void;
4
+ token: string;
5
+ };
6
+ export declare const useArchiveMetric: ({ metricId, onSuccess, token, }: UseArchiveMetricProps) => {
7
+ handleArchiveMetric: () => Promise<void>;
8
+ isLoading: boolean;
9
+ };
10
+ export {};
@@ -0,0 +1,4 @@
1
+ import { SearchColumn, TableObjectType } from '@/types';
2
+ export declare const useAutoCompleteOptions: (isEnable: boolean, tableList: TableObjectType[], isElasticSearch: boolean) => {
3
+ autoCompleteDropdownOptions: SearchColumn[];
4
+ };
@@ -0,0 +1,21 @@
1
+ import { Layout } from 'react-grid-layout';
2
+ export type UseClientDashboardLayoutProps = {
3
+ externalDashboardId: string;
4
+ clientId: string;
5
+ };
6
+ export declare const useClientDashboardLayout: ({ externalDashboardId, clientId, }: UseClientDashboardLayoutProps) => {
7
+ saveLayout: (data: {
8
+ newLayout: Layout[];
9
+ filtersLayout: string[];
10
+ isChangedByClient?: boolean | undefined;
11
+ gridMargin?: {
12
+ verticalMargin?: number | undefined;
13
+ horizontalMargin?: number | undefined;
14
+ } | undefined;
15
+ }) => Promise<void>;
16
+ layout: Layout[];
17
+ dashboardFiltersLayout: string[];
18
+ gridMargin: any;
19
+ isLayoutLocked: boolean;
20
+ isLoadingLayout: boolean;
21
+ };
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ import { ClientColumnType } from '@/types';
3
+ interface DashboardContextType {
4
+ isLoading: boolean | undefined;
5
+ token: string | undefined;
6
+ error?: string;
7
+ data: {
8
+ token: string;
9
+ companyId: string;
10
+ sharingSettingsId: string | undefined;
11
+ clientId: string | undefined;
12
+ externalDashboardMetrics: any[];
13
+ externalDashboard: any;
14
+ rlsSettings: any | undefined;
15
+ appFilters: any | undefined;
16
+ dashboardAppFilters: any | undefined;
17
+ companyTenancyType: any;
18
+ isAllowedToCreateMetrics: boolean | undefined;
19
+ isAllowedToDeleteMetrics: boolean | undefined;
20
+ isAllowedToUpdateMetrics: boolean | undefined;
21
+ isAllowedManageMetrics: boolean | undefined;
22
+ isAllowedToChangeLayout: boolean | undefined;
23
+ isAllowedToEmailReports: boolean | undefined;
24
+ isShowUnderlyingData: boolean | undefined;
25
+ workspace: any;
26
+ adminTheme: any;
27
+ clientSubsetData?: any | undefined;
28
+ clientColumnType: ClientColumnType;
29
+ isEnableMetricSummary: boolean;
30
+ refreshTime?: number | null;
31
+ isAllClient: boolean;
32
+ metricCreationMode: string;
33
+ } | undefined;
34
+ }
35
+ export declare const DashboardContext: import("react").Context<DashboardContextType>;
36
+ export declare const useDashboardContext: () => DashboardContextType;
37
+ export {};
@@ -0,0 +1,50 @@
1
+ /// <reference types="react" />
2
+ import ReactAce from 'react-ace/lib/ace';
3
+ import { ChartSettingsType, CreateNewFilter, CreateNewSort, DatasetConfig, DatasetMetricCreationConfiguration, FloatingDropDownOption, Modifiers, OnChangeAliasParams, OnChangeHelperFunctionParams, OnDrillPivotTableParams, OnDropColumnParams, OnRemoveColumnParams, PivotDrillState, SelectedColumn, SetChartFieldParams, TableObjectType } from '@/types';
4
+ declare const useDatasetMetric: ({ clientId, clientSubsetData, setChartSettings, setError, dbName, chartSettings, setData, setQuery, setLoading, setGroupByList, data, limit, setDatasetSettings, token, workspaceId, isDatabaseTenancy, clientColumnType, setDrillDownSettings, drillDownSettings, }: DatasetConfig) => {
5
+ selectedMainTable: TableObjectType | undefined;
6
+ companySubsetTableList: TableObjectType[];
7
+ setSelectedMainTable: import("react").Dispatch<import("react").SetStateAction<TableObjectType | undefined>>;
8
+ pivotDrillState: PivotDrillState;
9
+ setPivotDrillState: import("react").Dispatch<import("react").SetStateAction<PivotDrillState>>;
10
+ configuration: DatasetMetricCreationConfiguration;
11
+ selectedDims: SelectedColumn[];
12
+ selectedMetrics: SelectedColumn[];
13
+ onDropColumn: ({ column, table, sorting, type, identifier, }: OnDropColumnParams) => void;
14
+ functionOptions: (col?: SelectedColumn, dataType?: string) => FloatingDropDownOption[];
15
+ dimModifiers: Modifiers;
16
+ metricModifiers: Modifiers;
17
+ isTimeSeries: boolean;
18
+ editorRef: import("react").RefObject<ReactAce>;
19
+ onChangeAlias: ({ alias, column, type, cast, isColumnCasted, }: OnChangeAliasParams) => void;
20
+ onChangeHelperFunction: ({ column, helperFunction, type, functionConfiguration, }: OnChangeHelperFunctionParams) => void;
21
+ onRemoveColumn: ({ column, type }: OnRemoveColumnParams) => void;
22
+ selectedTable: FloatingDropDownOption;
23
+ createdSorts: CreateNewSort[];
24
+ setCreatedSorts: import("react").Dispatch<import("react").SetStateAction<CreateNewSort[]>>;
25
+ onApplyFilter: (onComplete: () => void, isClear?: boolean, index?: number) => void;
26
+ onApplySort: (onComplete: () => void, isClear?: boolean, index?: number) => void;
27
+ sortColumnOptions: FloatingDropDownOption[];
28
+ filterColumnOptions: FloatingDropDownOption[];
29
+ createdFilters: CreateNewFilter[];
30
+ setCreatedFilters: import("react").Dispatch<import("react").SetStateAction<CreateNewFilter[]>>;
31
+ getFilterDropDownType: ({ datatype, operator, }: {
32
+ datatype: string;
33
+ operator: string;
34
+ }) => "DATE_PICKER" | "NULL" | "DATE_RANGE" | "TIME_FILTER" | "MULTI_FILTER_DROPDOWN" | "INPUT_NUMBER_FIELD" | "INPUT_TEXT_FIELD" | "FILTER_DROPDOWN";
35
+ onSelectTimeSeries: (chartType: ChartSettingsType['chartType']) => void;
36
+ setChartFields: ({ chartType, chartDimensions, chartMetrics, chartAggregateColumns, resultData, configAggregates, pivotHeaderColumns, chartTimeColumns, }: SetChartFieldParams) => void;
37
+ resetCharSettings: (chartType: ChartSettingsType['chartType']) => void;
38
+ onDrillPivotTable: ({ filters, nextLevel, currentValue, }: OnDrillPivotTableParams) => void;
39
+ onSelectPivotTable: (chartType: ChartSettingsType['chartType'], headers: string[]) => void;
40
+ onChangeChartGroupByValue: (seriesName: string) => void;
41
+ onChangeTimeseriesFormat: (value: FloatingDropDownOption, seriesName?: string) => void;
42
+ isDisableChartDrillDown: boolean;
43
+ isAllowDrillDown: boolean;
44
+ onChangeDrillDown: (params: any, isEnable?: boolean, isChange?: boolean, index?: number) => void;
45
+ drillFilters: {
46
+ columnName: string;
47
+ value: string | number;
48
+ }[];
49
+ };
50
+ export default useDatasetMetric;
@@ -0,0 +1,2 @@
1
+ declare const useDebounce: <T>(value: T, delay?: number) => T;
2
+ export default useDebounce;
@@ -0,0 +1,21 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ declare const useDownloadRawCsv: ({ onCloseModal, sharingSettingsId, metricItem, workspaceId, }: {
3
+ onCloseModal?: ((value: boolean) => void) | undefined;
4
+ metricItem?: Record<string, any> | undefined;
5
+ sharingSettingsId?: string | undefined;
6
+ workspaceId: string;
7
+ }) => {
8
+ onSumbitSendCsvUrl: ({ values, query, }: {
9
+ values: FieldValues;
10
+ query: string;
11
+ }) => void;
12
+ isDisableDownloadSettings: boolean;
13
+ downloadCsvError: string;
14
+ handleSubmit: import("react-hook-form").UseFormHandleSubmit<FieldValues>;
15
+ isLoading: boolean;
16
+ register: import("react-hook-form").UseFormRegister<FieldValues>;
17
+ control: import("react-hook-form").Control<FieldValues, any>;
18
+ setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
19
+ errors: import("react-hook-form").FieldErrors<FieldValues>;
20
+ };
21
+ export default useDownloadRawCsv;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { UseDragProps } from '@/types';
3
+ declare const useDrag: ({ identifier, data, modifiers, events, CustomDragPreview, }: UseDragProps) => {
4
+ isDragging: boolean;
5
+ isEnableDrag: boolean;
6
+ setIsEnableDrag: import("react").Dispatch<import("react").SetStateAction<boolean>>;
7
+ DragNodeRef: import("react").MutableRefObject<any>;
8
+ };
9
+ export default useDrag;
10
+ export { useDrag };
@@ -0,0 +1,10 @@
1
+ import { DndStateProp } from '@/types';
2
+ declare const useDragAndDropState: () => {
3
+ dndState: DndStateProp;
4
+ setActive: (active: DndStateProp['active']) => void;
5
+ setOver: (over: DndStateProp['over']) => void;
6
+ setDraggables: (draggable: DndStateProp['active']) => void;
7
+ setDropables: (droppable: DndStateProp['over']) => void;
8
+ setDndState: (update: DndStateProp | ((prev: DndStateProp) => DndStateProp)) => void;
9
+ };
10
+ export default useDragAndDropState;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { UseDropProps } from '@/types';
3
+ declare const useDrop: ({ identifier, events, modifiers }: UseDropProps) => {
4
+ dragStatus: {
5
+ isDragOver: boolean;
6
+ isDrop: boolean;
7
+ };
8
+ isEnableDrop: boolean;
9
+ setIsEnableDrop: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
+ setDropNodeRef: import("react").MutableRefObject<any>;
11
+ };
12
+ export default useDrop;
13
+ export { useDrop };
@@ -0,0 +1,24 @@
1
+ import { ClientColumnType } from '@/types';
2
+ export interface UseEmbeddedMetricProps {
3
+ token: string;
4
+ metricId: string;
5
+ }
6
+ export declare const useEmbeddedMetric: ({ token, metricId, }: UseEmbeddedMetricProps) => {
7
+ externalMetric: any;
8
+ sharingSettingsId: string;
9
+ companyId: string;
10
+ clientId: string;
11
+ rlsSettings: {
12
+ metricId: string;
13
+ values: Record<string, any>;
14
+ } | undefined;
15
+ tenancyLevel: any;
16
+ isLoading: boolean;
17
+ errorMsg: any;
18
+ adminTheme: any;
19
+ workspaceId: any;
20
+ clientColumnType: ClientColumnType;
21
+ isEnableMetricSummary: boolean;
22
+ isAllClient: boolean;
23
+ isShowUnderlyingData: boolean;
24
+ };
@@ -0,0 +1,55 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { DashboardType, GroupBy, RlsFilterObjectType, SelectedColumns, ChartSettingsType } from '@/types/app';
3
+ import { DatasetSettings, DrillDownSettings } from '@/types';
4
+ type Params = {
5
+ onSuccess?: () => void;
6
+ companyIntegrationId: string | undefined;
7
+ selectedColumns: SelectedColumns[] | undefined;
8
+ query?: string;
9
+ metricQuery: string | undefined;
10
+ outputColumns: string | undefined;
11
+ id?: string;
12
+ chartSettings?: ChartSettingsType;
13
+ integrationName: string | undefined;
14
+ clientId?: string | null;
15
+ isEmbedded?: boolean;
16
+ rlsFilters?: RlsFilterObjectType[];
17
+ companyId: string;
18
+ isLiveMode?: boolean;
19
+ timeGrain?: string;
20
+ dashboardIds?: DashboardType['id'][];
21
+ userProvidedDashboardId?: string;
22
+ isEnableGroupBy?: boolean;
23
+ selectedGroupBy?: string[];
24
+ groupBy?: GroupBy | undefined;
25
+ metric?: Record<string, any>;
26
+ datasetMetricSettings?: DatasetSettings;
27
+ drillDownSettings?: DrillDownSettings;
28
+ };
29
+ export declare const useExternalMetric: ({ onSuccess, companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, chartSettings, clientId, companyId, isLiveMode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, metric, datasetMetricSettings, drillDownSettings, }: Params) => {
30
+ createExternalMetric: (data: FieldValues) => void;
31
+ updateExternalMetric: (data: FieldValues, isElement?: boolean) => void;
32
+ error: string;
33
+ isLoading: boolean;
34
+ clientSubsetData: any;
35
+ previewTable: import("react-query").UseMutateFunction<{
36
+ data: unknown;
37
+ }, unknown, {
38
+ data: import("../types/queryTypes").UsePreviewTableMutationInputType;
39
+ token: string;
40
+ }, unknown>;
41
+ token: string | undefined;
42
+ workspaceId: any;
43
+ dashboardOptions: {
44
+ value: any;
45
+ label: any;
46
+ }[];
47
+ isDatabaseTenancy: boolean;
48
+ register: import("react-hook-form").UseFormRegister<FieldValues>;
49
+ setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
50
+ watch: import("react-hook-form").UseFormWatch<FieldValues>;
51
+ handleSubmit: import("react-hook-form").UseFormHandleSubmit<FieldValues>;
52
+ control: import("react-hook-form").Control<FieldValues, any>;
53
+ reset: import("react-hook-form").UseFormReset<FieldValues>;
54
+ };
55
+ export {};
@@ -0,0 +1,13 @@
1
+ export declare const useGenerateDatasetMetrics: () => {
2
+ generateDatasetMetric: import("react-query").UseMutateFunction<{
3
+ data: unknown;
4
+ }, unknown, {
5
+ data: import("../types/queryTypes").UseGenerateMetricMutationInputType;
6
+ token: string;
7
+ }, unknown>;
8
+ isGeneratingDataset: boolean;
9
+ generateError: unknown;
10
+ fetchColumnValues: import("react-query").UseMutateFunction<{
11
+ data: unknown;
12
+ }, unknown, import("../types/queryTypes").UseMetricColumnMutationInputType, unknown>;
13
+ };
@@ -0,0 +1,64 @@
1
+ /// <reference types="react" />
2
+ import { FieldValues } from 'react-hook-form';
3
+ import EChartsReact from 'echarts-for-react';
4
+ import { ColumnSizingState } from '@tanstack/react-table';
5
+ import { ChartSettingsType, ConfigType, FloatingDropDownOption, GenerateMetricState, OnChangeAliasParams, OnChangeHelperFunctionParams, PivotDrillState, SelectedColumn, SetChartFieldParams, TableObjectType } from '@/types';
6
+ declare const useGenerateMetric: (config: ConfigType) => {
7
+ isDisableSaveBtn: boolean;
8
+ setChartSettings: import("react").Dispatch<import("react").SetStateAction<ChartSettingsType>>;
9
+ setShowSaveMetricModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
+ isShowSaveMetricModal: boolean;
11
+ register: import("react-hook-form").UseFormRegister<FieldValues>;
12
+ errors: import("react-hook-form").FieldErrors<FieldValues>;
13
+ onSubmitQuery: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
14
+ generateMetricState: GenerateMetricState;
15
+ chartTabType: "CHART" | "ERROR" | "LOADING" | "INIT";
16
+ chartSettings: ChartSettingsType;
17
+ chartRef: import("react").RefObject<EChartsReact>;
18
+ onColumnSizingChange: (columnSizing: ColumnSizingState) => void;
19
+ watch: import("react-hook-form").UseFormWatch<FieldValues>;
20
+ createExternalMetric: (data: FieldValues) => void;
21
+ saveError: string;
22
+ updateExternalMetric: (data: FieldValues, isElement?: boolean | undefined) => void;
23
+ clientSubsetData: any;
24
+ previewTable: import("react-query").UseMutateFunction<{
25
+ data: unknown;
26
+ }, unknown, {
27
+ data: import("@/types/queryTypes").UsePreviewTableMutationInputType;
28
+ token: string;
29
+ }, unknown>;
30
+ token: string | undefined;
31
+ dashboardOptions: {
32
+ value: any;
33
+ label: any;
34
+ }[];
35
+ isCreatingMetric: boolean;
36
+ tableList: TableObjectType[];
37
+ selectedMainTable: TableObjectType | undefined;
38
+ setSelectedMainTable: import("react").Dispatch<import("react").SetStateAction<TableObjectType | undefined>>;
39
+ aiResponseState: {
40
+ isLoading: boolean;
41
+ error: string;
42
+ };
43
+ onAiQuery: () => void;
44
+ autoCompleteDropdownOptions: SelectedColumn[];
45
+ selectedColumns: SelectedColumn[];
46
+ setSelectedColumns: import("react").Dispatch<import("react").SetStateAction<SelectedColumn[]>>;
47
+ functionOptions: (col?: SelectedColumn, colDatatype?: string) => FloatingDropDownOption[];
48
+ setChartFields: ({ chartType, chartDimensions, chartMetrics, chartAggregateColumns, configAggregates, }: SetChartFieldParams) => void;
49
+ onSubmitSearch: () => void;
50
+ onChangeHelperFunction: ({ column, helperFunction, functionConfiguration, }: OnChangeHelperFunctionParams) => void;
51
+ onChangeAlias: ({ alias, column }: OnChangeAliasParams) => void;
52
+ chartOptions: FloatingDropDownOption[];
53
+ isShowChartType: boolean;
54
+ setShowChartType: import("react").Dispatch<import("react").SetStateAction<boolean>>;
55
+ enabledCharts: string[];
56
+ stringColumnValues: {
57
+ column: string;
58
+ values: string[];
59
+ }[];
60
+ isRef: boolean;
61
+ setRef: import("react").Dispatch<import("react").SetStateAction<boolean>>;
62
+ pivotDrillState: PivotDrillState;
63
+ };
64
+ export default useGenerateMetric;
@@ -0,0 +1,121 @@
1
+ /// <reference types="react" />
2
+ import { ChartSettingsType, FloatingDropDownOption, RlsCondition, DatasetSettings, MetricFilterOptionsType, PivotDrillState, OnDrillPivotTableParams, ChartReportStateType } from '@/types';
3
+ import { MetricCardProps } from '@/components';
4
+ type UseMetricCardProps = {
5
+ metric: Record<string, any>;
6
+ clientId: string;
7
+ encryptedClientId?: string;
8
+ tenancyLevel: string;
9
+ globalFilters?: MetricCardProps['globalFilters'];
10
+ rlsFilters?: any;
11
+ appFilters?: any;
12
+ datasetSettings?: DatasetSettings;
13
+ setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings>>;
14
+ isInternalApp?: boolean;
15
+ setCrossDashboardFilters?: React.Dispatch<React.SetStateAction<RlsCondition[]>>;
16
+ crossDashboardFilters?: RlsCondition[];
17
+ metricFilterOptions?: MetricFilterOptionsType;
18
+ isAllClient?: boolean;
19
+ isFrontendApp: boolean;
20
+ guestToken?: string;
21
+ workspaceId: string;
22
+ metricStore?: Map<string, {
23
+ data: any;
24
+ isLoading: boolean;
25
+ key: string;
26
+ }>;
27
+ setMetricStore?: React.Dispatch<React.SetStateAction<Map<string, {
28
+ data: any;
29
+ isLoading: boolean;
30
+ key: string;
31
+ }>>>;
32
+ };
33
+ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, isAllClient, isFrontendApp, guestToken, encryptedClientId, workspaceId, metricStore, setMetricStore, }: UseMetricCardProps) => {
34
+ elementSummary: string;
35
+ isLoadingSummary: boolean;
36
+ isMetricListLoading: () => boolean;
37
+ onDrillLevelClick: (index: number) => void;
38
+ onDrillDown: (params: any, rowFilters?: {
39
+ columnName: string;
40
+ value: any;
41
+ }[] | undefined) => void;
42
+ handleChartClick: (params: any) => void;
43
+ dataDb: Record<string, any>[];
44
+ getUnderlyingData: ({ columnName, value, setData, setLoading, isSingleValueChart, clientColumnType, }: {
45
+ columnName: string | undefined;
46
+ value: any;
47
+ isSingleValueChart: boolean;
48
+ setData: import("react").Dispatch<import("react").SetStateAction<any[]>>;
49
+ setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
50
+ clientColumnType: import("@/types").ClientColumnType;
51
+ }) => void;
52
+ onChangeFilterValue: (name: string, value: string, labelValue?: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[]) => void;
53
+ isShowChartPopup: boolean;
54
+ setShowChartPopup: import("react").Dispatch<import("react").SetStateAction<boolean>>;
55
+ columnName: string | undefined;
56
+ chartParams: any;
57
+ isQueryLoading: boolean;
58
+ isSingleValueNull: boolean;
59
+ dynamicOptions: any;
60
+ chartSettings: ChartSettingsType;
61
+ setChartSettings: import("react").Dispatch<import("react").SetStateAction<ChartSettingsType>>;
62
+ isEnableZoom: boolean;
63
+ filterValues: Record<string, any>;
64
+ containerRef: import("react").RefObject<HTMLDivElement>;
65
+ drilledLevel: number;
66
+ dimensions: any;
67
+ rlsConditions: RlsCondition[];
68
+ setRlsConditions: import("react").Dispatch<import("react").SetStateAction<RlsCondition[]>>;
69
+ setTableLimit: import("react").Dispatch<import("react").SetStateAction<{
70
+ limit: number;
71
+ offset: number;
72
+ }>>;
73
+ isEnableNextBtn: boolean;
74
+ isEnablePrevBtn: boolean;
75
+ paginationInfo: {
76
+ limit: number;
77
+ offset: number;
78
+ totalRecords: number;
79
+ };
80
+ onChangePage: (isPrev: boolean, resetValue?: number, nextOffset?: number) => void;
81
+ isExternalChart: boolean | undefined;
82
+ isEnablePivotTable: boolean;
83
+ groupByList: any[];
84
+ hasNumberKeys: boolean;
85
+ isEnableGauge: boolean;
86
+ updateFilter: (filter: RlsCondition) => void;
87
+ metricFilters: RlsCondition[];
88
+ leftPositionedMetricFilters: RlsCondition[];
89
+ rightPositionedMetricFilters: RlsCondition[];
90
+ drillFilters: {
91
+ columnName: string;
92
+ value: string | number;
93
+ }[];
94
+ drillType: any;
95
+ tableResultsDownloadData: Record<string, any>[];
96
+ appliedMetricFilters: RlsCondition[];
97
+ pivotHeaderOptions: FloatingDropDownOption[];
98
+ pivotDrillState: PivotDrillState;
99
+ onDrillPivotTable: ({ filters, nextLevel, currentValue, }: OnDrillPivotTableParams) => void;
100
+ legendData: any;
101
+ timeseriesDimension: any;
102
+ isPythonMode: boolean;
103
+ sortOrder: string;
104
+ setSortOrder: import("react").Dispatch<import("react").SetStateAction<string>>;
105
+ isNotFirstRender: boolean;
106
+ setNotFirstRender: import("react").Dispatch<import("react").SetStateAction<boolean>>;
107
+ isSorted: boolean;
108
+ isInavlidForSort: boolean | undefined;
109
+ onAddComparison: (isRemove?: boolean) => void;
110
+ groupedRlsConditions: Record<string | undefined, RlsCondition[]>;
111
+ onGenerateMetricSummary: () => void;
112
+ summary: ChartReportStateType;
113
+ setSummary: import("react").Dispatch<import("react").SetStateAction<ChartReportStateType>>;
114
+ dataMartRelationships: any;
115
+ onChartChange: (chartType: ChartSettingsType['chartType']) => void;
116
+ isCompareValue: boolean;
117
+ isShowChartPropertyPanel: boolean;
118
+ setShowChartPropertyPanel: import("react").Dispatch<import("react").SetStateAction<boolean>>;
119
+ columnList: string[];
120
+ };
121
+ export {};