@databrainhq/plugin 0.12.32 → 0.13.0-beta.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 (91) hide show
  1. package/dist/components/Accordion/index.d.ts +27 -0
  2. package/dist/components/Badge/index.d.ts +9 -0
  3. package/dist/components/Button/index.d.ts +6 -3
  4. package/dist/components/Chart/SingleValueChart.d.ts +1 -1
  5. package/dist/components/Chart/index.d.ts +4 -2
  6. package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +2 -3
  7. package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +7 -0
  8. package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +10 -3
  9. package/dist/components/ChartTypePanel/index.d.ts +15 -0
  10. package/dist/components/Checkbox/index.d.ts +10 -0
  11. package/dist/components/ColorField/{Index.d.ts → ColorField.d.ts} +2 -2
  12. package/dist/components/DateRangePicker/index.d.ts +3 -1
  13. package/dist/components/DrillBreadCrumb/index.d.ts +3 -1
  14. package/dist/components/FilterDropDown/index.d.ts +8 -4
  15. package/dist/components/FloatingDropDown/index.d.ts +10 -14
  16. package/dist/components/FullScreenChart/index.d.ts +1 -1
  17. package/dist/components/GlobalFilters/AppliedFilter.d.ts +1 -1
  18. package/dist/components/GlobalFilters/Filters.d.ts +1 -1
  19. package/dist/components/GlobalFilters/HorizontalFilters.d.ts +1 -1
  20. package/dist/components/GlobalFilters/NumberFilterField.d.ts +3 -1
  21. package/dist/components/GlobalFilters/index.d.ts +1 -2
  22. package/dist/components/Icons/Logos/index.d.ts +12 -0
  23. package/dist/components/Icons/index.d.ts +6 -4
  24. package/dist/components/InfoTooltip/index.d.ts +6 -2
  25. package/dist/components/InputField/index.d.ts +5 -6
  26. package/dist/components/List/index.d.ts +19 -0
  27. package/dist/components/Menu/index.d.ts +30 -0
  28. package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -1
  29. package/dist/components/MetricList/MetricList.d.ts +6 -1
  30. package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +1 -1
  31. package/dist/components/MetricList/components/FullScreenView/index.d.ts +4 -5
  32. package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +4 -3
  33. package/dist/components/Modal/Modal.d.ts +1 -0
  34. package/dist/components/MultiSelectDropdown/index.d.ts +28 -0
  35. package/dist/components/Panel/index.d.ts +15 -0
  36. package/dist/components/PopoverMenu/index.d.ts +21 -5
  37. package/dist/components/RadioButton/index.d.ts +16 -0
  38. package/dist/components/SearchTab/index.d.ts +1 -1
  39. package/dist/components/Select/index.d.ts +2 -12
  40. package/dist/components/{ToggleButton → Switch}/SwitchInput.d.ts +1 -1
  41. package/dist/components/Switch/index.d.ts +10 -0
  42. package/dist/components/Table/index.d.ts +4 -1
  43. package/dist/components/Tabs/index.d.ts +37 -0
  44. package/dist/components/Text/index.d.ts +7 -6
  45. package/dist/components/TimeGrainField/index.d.ts +1 -1
  46. package/dist/components/index.d.ts +12 -1
  47. package/dist/consts/app.d.ts +4 -0
  48. package/dist/consts/metricOptions.d.ts +4 -0
  49. package/dist/helpers/checkIsElementInViewport.d.ts +1 -0
  50. package/dist/helpers/index.d.ts +2 -0
  51. package/dist/helpers/timeseries.d.ts +2 -2
  52. package/dist/hooks/useMetricCard.d.ts +9 -7
  53. package/dist/hooks/useOutsideAlerter.d.ts +8 -1
  54. package/dist/queries/externalDashboard.mutation.d.ts +1 -1
  55. package/dist/queries/externalDashboard.query.d.ts +1 -1
  56. package/dist/queries/metric.mutation.d.ts +1 -1
  57. package/dist/queries/metric.query.d.ts +1 -1
  58. package/dist/types/app.d.ts +46 -6
  59. package/dist/types/metricCreate.d.ts +5 -0
  60. package/dist/utils/colors.d.ts +1 -0
  61. package/dist/utils/getChartOptions.d.ts +1 -2
  62. package/dist/utils/index.d.ts +1 -0
  63. package/dist/webcomponents.es.js +84984 -91456
  64. package/dist/webcomponents.umd.js +270 -344
  65. package/package.json +108 -107
  66. package/dist/components/ChartModal/SelectField.d.ts +0 -2
  67. package/dist/components/Charts/AreaChart.d.ts +0 -3
  68. package/dist/components/Charts/BarChart.d.ts +0 -25
  69. package/dist/components/Charts/BoxPlot.d.ts +0 -3
  70. package/dist/components/Charts/BubbleChart.d.ts +0 -3
  71. package/dist/components/Charts/ComboChart.d.ts +0 -3
  72. package/dist/components/Charts/DoughnutChart.d.ts +0 -3
  73. package/dist/components/Charts/FunnelChart.d.ts +0 -3
  74. package/dist/components/Charts/GaugeChart.d.ts +0 -3
  75. package/dist/components/Charts/Histogram.d.ts +0 -3
  76. package/dist/components/Charts/LineChart.d.ts +0 -25
  77. package/dist/components/Charts/PieChart.d.ts +0 -3
  78. package/dist/components/Charts/RowChart.d.ts +0 -3
  79. package/dist/components/Charts/SankeyChart.d.ts +0 -3
  80. package/dist/components/Charts/ScatterChart.d.ts +0 -3
  81. package/dist/components/Charts/SingleValueChart/index.d.ts +0 -3
  82. package/dist/components/Charts/StackedBarChart.d.ts +0 -3
  83. package/dist/components/Charts/SteppedAreaChart.d.ts +0 -3
  84. package/dist/components/Charts/Table/TableChart.d.ts +0 -3
  85. package/dist/components/Charts/TimeSeriesChart.d.ts +0 -4
  86. package/dist/components/Charts/WaterfallChart.d.ts +0 -3
  87. package/dist/components/MetricChart/MetricChart.d.ts +0 -45
  88. package/dist/components/ToggleButton/ToggleInput.d.ts +0 -9
  89. package/dist/components/ToggleButton/index.d.ts +0 -14
  90. package/dist/containers/index.d.ts +0 -3
  91. package/dist/index.d.ts +0 -7
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { UseFormRegisterReturn } from 'react-hook-form';
3
+ interface Props extends React.HTMLProps<HTMLInputElement> {
4
+ label?: string;
5
+ register?: UseFormRegisterReturn;
6
+ error?: any;
7
+ leftIcon?: JSX.Element;
8
+ rightIcon?: JSX.Element;
9
+ isDisabled?: boolean;
10
+ labelClass?: string;
11
+ inputClass?: string;
12
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
13
+ elementRef?: React.Ref<HTMLInputElement>;
14
+ }
15
+ export declare const RadioButton: ({ type, register, error, leftIcon, rightIcon, label, isDisabled, labelClass, inputClass, className, id, elementRef, ...rest }: Props) => React.JSX.Element;
16
+ export default RadioButton;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const SearchTab: ({ setSearchKeyword, className }: any) => React.JSX.Element;
2
+ export declare const SearchTab: ({ setSearchKeyword, className, placeholder, }: any) => React.JSX.Element;
@@ -6,30 +6,21 @@ type Option = {
6
6
  label: string;
7
7
  };
8
8
  type SelectInput = {
9
- name?: string;
10
9
  label?: string;
11
10
  value: any;
12
11
  placeHolder?: string;
13
12
  options: Option[] | undefined;
14
13
  onChange?: (val: string | any) => void;
15
- defaultValue?: string | number | boolean;
16
- children?: React.ReactNode;
17
- className?: string;
18
- containerClass?: string;
19
14
  isSearchEnabled?: boolean;
20
- icon?: JSX.Element;
21
- textSize?: string;
15
+ searchIcon?: JSX.Element;
22
16
  labelVariant?: 'floating' | 'static';
23
17
  };
24
18
  type HookSelectInput = Omit<SelectInput, 'value'> & {
25
19
  control: Control;
26
20
  name: string;
27
21
  };
28
- export declare const OldSelect: ({ name, label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, icon, labelVariant, }: SelectInput) => React.JSX.Element;
29
- export declare const Select: ({ name, label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, icon, labelVariant, }: SelectInput) => React.JSX.Element;
22
+ export declare const Select: ({ label, options, onChange, value, placeHolder, isSearchEnabled, searchIcon, labelVariant, }: SelectInput) => React.JSX.Element;
30
23
  export declare const HookSelect: ({ control, name, ...rest }: HookSelectInput) => React.JSX.Element;
31
- export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => React.JSX.Element;
32
- export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => React.JSX.Element;
33
24
  type MultiSelectProps = {
34
25
  options: Option[];
35
26
  defaultValue?: Option['value'][];
@@ -47,7 +38,6 @@ type MultiSelectProps = {
47
38
  icon?: JSX.Element;
48
39
  isDisableShowSelectedTag?: boolean;
49
40
  };
50
- export declare const OldMultiSelect: React.FC<MultiSelectProps>;
51
41
  export declare const MultiSelect: React.FC<MultiSelectProps>;
52
42
  type HookMultiSelectProps = MultiSelectProps & {
53
43
  control: Control<FieldValues>;
@@ -5,5 +5,5 @@ type SwitchProps = {
5
5
  placeholder?: string | [string, string];
6
6
  enabled?: boolean;
7
7
  };
8
- export declare const Switch: React.FC<SwitchProps>;
8
+ export declare const SwitchButton: React.FC<SwitchProps>;
9
9
  export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ type SwitchButtonProps = {
3
+ onChange?: (enabled: boolean) => void;
4
+ enabled?: boolean;
5
+ placeholder?: string;
6
+ defaultEnabled?: boolean;
7
+ name?: string;
8
+ };
9
+ export declare const Switch: React.FC<SwitchButtonProps>;
10
+ export {};
@@ -23,6 +23,9 @@ type Props = {
23
23
  isInfiniteScroll?: boolean;
24
24
  onLoadMore?: () => void;
25
25
  hasMoreData?: boolean;
26
+ isShowFullScreen?: boolean;
27
+ filterValues?: Record<string, any>;
28
+ onMaximize?: () => void;
26
29
  };
27
- export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isInfiniteScroll, onLoadMore, hasMoreData, }: Props) => React.JSX.Element;
30
+ export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isInfiniteScroll, onLoadMore, hasMoreData, isShowFullScreen, onMaximize, }: Props) => React.JSX.Element;
28
31
  export {};
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ type TabsContextType = [
3
+ activeTab: string | number,
4
+ setActiveTab: React.Dispatch<React.SetStateAction<string | number>>,
5
+ variant: 'primary' | 'popoverTabs'
6
+ ];
7
+ export declare const TabsContext: React.Context<[] | TabsContextType>;
8
+ type TabsProps = {
9
+ children: React.ReactNode;
10
+ variant?: 'primary' | 'popoverTabs';
11
+ defaultActiveTab?: string | number;
12
+ width?: string;
13
+ };
14
+ type TabProps = {
15
+ children: React.ReactNode;
16
+ tabId: string;
17
+ width?: string;
18
+ grow?: boolean;
19
+ className?: string;
20
+ };
21
+ export declare const Tabs: {
22
+ Context: React.FC<TabsProps>;
23
+ List: React.FC<{
24
+ children: React.ReactNode;
25
+ width?: string | undefined;
26
+ background?: string | undefined;
27
+ className?: string | undefined;
28
+ }>;
29
+ Tab: React.FC<TabProps>;
30
+ Panel: React.FC<{
31
+ children: React.ReactNode;
32
+ tabId: string;
33
+ width?: string | undefined;
34
+ className?: string | undefined;
35
+ }>;
36
+ };
37
+ export {};
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
+ import { Colors } from '@/types';
2
3
  interface Props {
3
- className?: string;
4
- variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
5
- children?: React.ReactNode;
4
+ variant?: 'heading-lg' | 'heading' | 'body-text-lg' | 'body-text' | 'body-text-sm' | 'btn' | 'label' | 'display' | 'body-text-xs';
5
+ color?: Colors;
6
+ children: React.ReactNode;
6
7
  onClick?: () => void;
7
- styleClass: 'primary' | 'secondary' | 'tertiary' | 'font-14' | 'font-14a' | 'font-14b' | 'font-14c' | 'font-14d' | 'font-15' | 'font-18' | 'font-20' | 'font-34' | 'custom';
8
- style?: React.CSSProperties;
8
+ display?: 'block' | 'inline';
9
+ opacity?: 0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1;
9
10
  }
10
- export declare const Text: ({ className, variant, styleClass, children, onClick, style, }: Props) => React.JSX.Element;
11
+ export declare const Text: ({ children, variant, color, display, onClick, opacity, }: Props) => React.JSX.Element;
11
12
  export {};
@@ -3,7 +3,7 @@ import { FieldValues, UseFormRegister } from 'react-hook-form';
3
3
  type Props = {
4
4
  isShowlabel?: boolean;
5
5
  timeGrainValue: string;
6
- setTimeGrainValue: React.Dispatch<React.SetStateAction<string>>;
6
+ setTimeGrainValue: React.Dispatch<React.SetStateAction<string>> | ((value: string) => void);
7
7
  register?: UseFormRegister<FieldValues>;
8
8
  className?: string;
9
9
  isDisabled?: boolean;
@@ -24,7 +24,7 @@ export * from './Table';
24
24
  export * from './Text';
25
25
  export * from './TextAreaField';
26
26
  export * from './TimeGrainField';
27
- export * from './ToggleButton';
27
+ export * from './Switch';
28
28
  export * from './Icons';
29
29
  export * from './ChartPopup';
30
30
  export * from './DrillBreadCrumb';
@@ -38,3 +38,14 @@ export * from './GlobalFilters/NumberFilterField';
38
38
  export * from './DateRangePicker';
39
39
  export * from './Loader';
40
40
  export * from './TagInputField';
41
+ export * from './Checkbox';
42
+ export * from './MultiSelectDropdown';
43
+ export * from './Accordion';
44
+ export * from './Panel';
45
+ export * from './Tabs';
46
+ export * from './List';
47
+ export * from './ColorField/ColorField';
48
+ export * from './RadioButton';
49
+ export * from './Menu';
50
+ export * from './ChartTypePanel';
51
+ export * from './Badge';
@@ -26,6 +26,10 @@ export declare const CHART_TYPES: {
26
26
  treeMap: string;
27
27
  horizontalStackTable: string;
28
28
  };
29
+ export declare const chartOptions: {
30
+ name: string;
31
+ icon: string;
32
+ }[];
29
33
  export declare const timeStamp: {
30
34
  month: string;
31
35
  quarter: string;
@@ -26,3 +26,7 @@ export declare const FORMATTING_CONDITIONS_OPTIONS: {
26
26
  value: string;
27
27
  label: string;
28
28
  }[];
29
+ export declare const TIME_GRAIN_OPTIONS: {
30
+ value: string;
31
+ label: string;
32
+ }[];
@@ -0,0 +1 @@
1
+ export declare const isInViewport: (element: any) => boolean;
@@ -3,3 +3,5 @@ export * from './getTimeFilterValue';
3
3
  export * from './groupArray';
4
4
  export * from './groupBy';
5
5
  export * from './getValidRlsConditionOptions';
6
+ export * from './timeseries';
7
+ export * from './checkIsElementInViewport';
@@ -1,8 +1,8 @@
1
1
  import { BackgroundSettings, CustomSettings, LabelSettings, TimeSeriesGroupType, TimeSeriesType } from '@/types';
2
2
  interface TimeSeriesData {
3
3
  timeStampKey: string;
4
- valuekeys: string[];
5
4
  data: Record<string, any>[];
5
+ values?: string[];
6
6
  }
7
7
  export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, isCumulativeBar, }: {
8
8
  dataArray: Record<string, any>[];
@@ -62,5 +62,5 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
62
62
  focus: string;
63
63
  };
64
64
  })[];
65
- export declare const isTimeSeriesDataValid: ({ data, timeStampKey, valuekeys, }: TimeSeriesData) => boolean;
65
+ export declare const isTimeSeriesDataValid: ({ data, timeStampKey, }: TimeSeriesData) => boolean;
66
66
  export {};
@@ -3,15 +3,10 @@ import { ChartSettingsType, FloatingDropDownOption, RlsCondition, DatasetSetting
3
3
  import { MetricCardProps } from '@/components';
4
4
  type UseMetricCardProps = {
5
5
  metric: Record<string, any>;
6
- chartSettings: ChartSettingsType;
7
- setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
8
6
  clientId: string;
9
7
  tenancyLevel: string;
10
8
  globalFilters?: MetricCardProps['globalFilters'];
11
- rlsFilters?: {
12
- param: any;
13
- filterValues: Record<string, any>;
14
- };
9
+ rlsFilters?: any;
15
10
  appFilters?: any;
16
11
  datasetSettings?: DatasetSettings;
17
12
  setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings>>;
@@ -20,7 +15,7 @@ type UseMetricCardProps = {
20
15
  crossDashboardFilters?: RlsCondition[];
21
16
  metricFilterOptions?: MetricFilterOptionsType;
22
17
  };
23
- export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, chartSettings, setChartSettings, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, }: UseMetricCardProps) => {
18
+ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, }: UseMetricCardProps) => {
24
19
  onDrillLevelClick: (index: number) => void;
25
20
  onDrillDown: (params: any) => void;
26
21
  handleChartClick: (params: any) => void;
@@ -39,6 +34,13 @@ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, client
39
34
  chartParams: any;
40
35
  isQueryLoading: boolean;
41
36
  setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
37
+ isSingleValueNull: boolean;
38
+ dynamicOptions: any;
39
+ chartSettings: ChartSettingsType;
40
+ setChartSettings: import("react").Dispatch<import("react").SetStateAction<ChartSettingsType>>;
41
+ isEnableZoom: boolean;
42
+ filterValues: Record<string, any>;
43
+ containerRef: import("react").RefObject<HTMLDivElement>;
42
44
  drilledLevel: number;
43
45
  dimensions: any;
44
46
  rlsConditions: RlsCondition[];
@@ -2,6 +2,13 @@
2
2
  type UseOutsideAlerterProps = {
3
3
  onOutsideClick: () => void;
4
4
  wrapRef: React.RefObject<any>;
5
+ portalRef?: any;
5
6
  };
6
- export declare const useOutsideAlerter: ({ onOutsideClick, wrapRef, }: UseOutsideAlerterProps) => void;
7
+ export declare const useOutsideAlerter: ({ onOutsideClick, wrapRef, portalRef, }: UseOutsideAlerterProps) => void;
8
+ type UsePopoverOutsideAlerterProps = {
9
+ wrapRef: React.RefObject<any>;
10
+ portalRef?: any;
11
+ autoCloseParent?: boolean;
12
+ };
13
+ export declare const usePopoverOutsideAlerter: ({ wrapRef, portalRef, autoCloseParent, }: UsePopoverOutsideAlerterProps) => void;
7
14
  export {};
@@ -1,4 +1,4 @@
1
- import { UseCreateMetricMutationInputType, UseDeleteDashboardScheduleReportMutationInputType, UseGenerateMetricMutationInputType, UsePreviewTableMutationInputType, UseSaveDashboardLayoutMutationInputType, UseSaveDashboardScheduleReportMutationInputType, UseUpdateAdminMetricMutationInputType, UseUpdateMetricMutationInputType } from '@/types/queryTypes';
1
+ import { UseCreateMetricMutationInputType, UseDeleteDashboardScheduleReportMutationInputType, UseGenerateMetricMutationInputType, UsePreviewTableMutationInputType, UseSaveDashboardLayoutMutationInputType, UseSaveDashboardScheduleReportMutationInputType, UseUpdateAdminMetricMutationInputType, UseUpdateMetricMutationInputType } from '../types/queryTypes';
2
2
  export declare const useSaveDashboardLayoutMutation: () => import("react-query").UseMutationResult<{
3
3
  data: unknown;
4
4
  }, unknown, UseSaveDashboardLayoutMutationInputType, unknown>;
@@ -1,4 +1,4 @@
1
- import { UseDashboardDataQueryInputType } from '@/types/queryTypes';
1
+ import { UseDashboardDataQueryInputType } from '../types/queryTypes';
2
2
  export declare const useDashboardDataQuery: ({ token, dashboardId, }: UseDashboardDataQueryInputType) => import("react-query").UseQueryResult<{
3
3
  data: unknown;
4
4
  }, unknown>;
@@ -1,4 +1,4 @@
1
- import { UseMetricColumnMutationInputType, UseMetricUnderlyingDataMutationInputType, UseMetricShareCsvMutationInputType, UseMarkArchivedMutationInputType } from '@/types/queryTypes';
1
+ import { UseMetricColumnMutationInputType, UseMetricUnderlyingDataMutationInputType, UseMetricShareCsvMutationInputType, UseMarkArchivedMutationInputType } from '../types/queryTypes';
2
2
  export declare const useMetricColumnMutation: () => import("react-query").UseMutationResult<{
3
3
  data: unknown;
4
4
  }, unknown, UseMetricColumnMutationInputType, unknown>;
@@ -1,4 +1,4 @@
1
- import { UseMetricQueryQueryInputType } from '@/types/queryTypes';
1
+ import { UseMetricQueryQueryInputType } from '../types/queryTypes';
2
2
  export declare const useMetricDataQuery: (data: UseMetricQueryQueryInputType) => import("react-query").UseQueryResult<{
3
3
  data: unknown;
4
4
  }, unknown>;
@@ -44,9 +44,10 @@ export type LegendSettings = {
44
44
  left?: number;
45
45
  right?: number;
46
46
  position?: string;
47
- truncateLegend?: boolean;
48
47
  truncateLegendValue?: number;
49
48
  legendShape?: string;
49
+ customise?: boolean;
50
+ fixedPosition?: string;
50
51
  };
51
52
  export type MarginSettings = {
52
53
  marginTop?: number;
@@ -55,12 +56,15 @@ export type MarginSettings = {
55
56
  marginRight?: number;
56
57
  };
57
58
  export type CustomSettings = {
58
- hideSplitLines?: string;
59
- hideAxisLines?: string;
59
+ hideXSplitLines?: boolean;
60
+ hideYSplitLines?: boolean;
61
+ hideXAxisLines?: boolean;
62
+ hideYAxisLines?: boolean;
60
63
  barWidth?: number;
61
64
  barRadius?: number[];
62
65
  xRotation?: number;
63
- axisLabels?: string;
66
+ hideXAxisLabels?: boolean;
67
+ hideYAxisLabels?: boolean;
64
68
  fontSize?: number;
65
69
  subHeaderShow?: boolean;
66
70
  comparisonValueShow?: boolean;
@@ -85,7 +89,7 @@ export type CustomSettings = {
85
89
  hideNullValues?: boolean;
86
90
  chartZoom?: {
87
91
  isZoomEnabled?: boolean;
88
- zoomAxis?: 'x' | 'y' | 'xy' | 'none';
92
+ zoomAxis?: string;
89
93
  zoomOnMouseWheel?: boolean;
90
94
  };
91
95
  showDynamicBehaviour?: boolean;
@@ -123,6 +127,33 @@ export type CustomSettings = {
123
127
  };
124
128
  labelPrefix?: string;
125
129
  labelSuffix?: string;
130
+ enableTitleDesc?: boolean;
131
+ chartTitle?: string;
132
+ chartDesc?: string;
133
+ titlePosition?: string;
134
+ cumulativeBar?: boolean;
135
+ stepPadding?: number;
136
+ showFunnelShadow?: boolean;
137
+ hideSplitLines?: boolean;
138
+ hideAxisLines?: boolean;
139
+ axisLabels?: boolean;
140
+ isStackBar?: boolean;
141
+ showSelectLegend?: boolean;
142
+ showStackLabels?: boolean;
143
+ coloredBars?: boolean;
144
+ };
145
+ export type Colors = 'primary' | 'primary-dark' | 'secondary' | 'secondary-dark' | 'alert' | 'alert-dark' | 'alert-light' | 'success' | 'success-dark' | 'success-light' | 'warning' | 'warning-dark' | 'info' | 'info-light' | 'white' | 'gray' | 'gray-dark' | 'light' | 'dark';
146
+ export type IconType = 'undo' | 'redo' | 'maximize' | 'minimize' | 'fullscreen' | 'download' | 'archive' | 'format' | 'company' | 'profile' | 'users' | 'bar-chart' | 'bar-chart-2' | 'kebab-menu-horizontal' | 'kebab-menu-vertical' | 'paint-brush' | 'funnel' | 'funnel-simple' | 'cross' | 'columns' | 'gear' | 'presentation-chart' | 'chevron-down' | 'plus' | 'info' | 'arrow-down' | 'arrow-up' | 'arrow-left' | 'arrow-right' | 'double-arrow-left' | 'double-arrow-right' | 'expand-arrows' | 'eye' | 'eye-slash' | 'database' | 'magnifying-glass' | 'pencil-simple-line' | 'pencil-simple' | 'file-sql' | 'code' | 'sign-out' | 'save' | 'delete' | 'align-space-even' | 'align-bottom' | 'align-left' | 'align-right' | 'align-top' | 'trend-up' | 'trend-up-chart' | 'caret-down-fill' | 'caret-up-fill' | 'caret-up-down' | 'pie-chart' | 'table-view' | 'task-done-file' | 'right-angle' | 'text-rotation-angle-up' | 'text-rotation-none' | 'text-rotation-up' | 'preview-file' | 'share' | 'image' | 'text' | 'color-palette' | 'shuffle' | 'table' | 'chart' | 'calendar' | 'horizontal-rule' | 'short-text' | 'subheader' | 'copy' | 'timer' | 'link' | 'not-found' | 'bar-chart-horizontal' | 'line-chart' | 'line-chart-trend-up' | 'globe' | 'map' | 'leaderboard' | 'radar' | 'scale' | 'scatter-plot' | 'tree' | 'donut-chart' | 'scatter-chart' | 'waterfall-chart' | 'area-chart' | 'bubble-chart' | 'candlestick-chart';
147
+ export type LogoType = 'redshift' | 'postgres' | 'mysql' | 'mongodb' | 'bigquery' | 'snowflake' | 'microsoft' | 'google' | 'elasticsearch' | 'redis';
148
+ export type IconSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
149
+ export type IconConfig = {
150
+ size: IconSizes;
151
+ color: Colors;
152
+ };
153
+ export type IconsProps = {
154
+ name: IconType;
155
+ size?: IconSizes;
156
+ color?: Colors;
126
157
  cumulativeBar?: boolean;
127
158
  showFunnelShadow?: boolean;
128
159
  stepPadding?: number;
@@ -135,6 +166,7 @@ export type TableSettings = {
135
166
  contentAlignment?: string;
136
167
  lineGap?: string;
137
168
  hideVerticalDivider?: boolean;
169
+ hideHorizontalDivider?: boolean;
138
170
  badgeColumns?: string[];
139
171
  enableStripedRows?: boolean;
140
172
  showRowHover?: boolean;
@@ -204,6 +236,7 @@ export type ChartSettingsType = {
204
236
  margins?: MarginSettings;
205
237
  xAxis?: string;
206
238
  yAxisList?: string[];
239
+ chartColors?: string[];
207
240
  stackTableCols?: string[];
208
241
  step?: string;
209
242
  measure?: string;
@@ -301,8 +334,11 @@ export type DashboardType = {
301
334
  export type FloatingDropDownOption = {
302
335
  key?: string;
303
336
  label: string;
304
- labelType?: string;
305
337
  value: string;
338
+ badge?: string;
339
+ subValue?: string;
340
+ icon?: string;
341
+ columnList?: any;
306
342
  };
307
343
  export type FilterType = {
308
344
  tableName: string;
@@ -327,6 +363,7 @@ export type DateOptionType = {
327
363
  endDate?: Date;
328
364
  startDate?: Date;
329
365
  fromDate?: Date;
366
+ timeGrain?: string;
330
367
  toDate?: Date;
331
368
  minDate?: Date;
332
369
  maxDate?: Date;
@@ -358,6 +395,9 @@ export type RlsCondition = {
358
395
  variableOptions?: CustomOption[];
359
396
  variableStrings?: string[];
360
397
  selectedVariableValue?: CustomOption;
398
+ optionColumnName?: string;
399
+ optionTableName?: string;
400
+ filterType?: string;
361
401
  };
362
402
  export type MetricData = {
363
403
  id: string;
@@ -124,4 +124,9 @@ export type DrillDownSetting = {
124
124
  selectedDimensions: string[];
125
125
  isEnableGroupBy: boolean;
126
126
  };
127
+ export type ComparisonLagSettings = {
128
+ column: FloatingDropDownOption;
129
+ timeGrain: FloatingDropDownOption;
130
+ periodLag: number;
131
+ };
127
132
  export {};
@@ -1 +1,2 @@
1
1
  export declare const colors: string[];
2
+ export declare const colorsArray: string[];
@@ -4,6 +4,5 @@ export type GetChartOptionsParams = {
4
4
  chartOptions: ChartSettingsType;
5
5
  data: Record<string, any>[];
6
6
  colors?: string[];
7
- selectedSeries?: string[];
8
7
  };
9
- export declare const getChartOptions: ({ chartOptions, data, colors, selectedSeries, }: GetChartOptionsParams) => Record<string, any>;
8
+ export declare const getChartOptions: ({ chartOptions, data, colors, }: GetChartOptionsParams) => Record<string, any>;
@@ -4,5 +4,6 @@ export * from './colors';
4
4
  export * from './getFormattedDataType';
5
5
  export * from './arrayToCsvString';
6
6
  export * from './popoverPosition';
7
+ export * from './colors';
7
8
  export * from './getValidJson';
8
9
  export * from './getChartOptions';