@databrainhq/plugin 0.13.0-beta.8 → 0.14.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 (57) hide show
  1. package/README.md +233 -233
  2. package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +2 -2
  3. package/dist/components/DateRangePicker/index.d.ts +2 -0
  4. package/dist/components/DraggableItem/index.d.ts +2 -2
  5. package/dist/components/FilterDropDown/index.d.ts +1 -0
  6. package/dist/components/FloatingDropDown/index.d.ts +3 -2
  7. package/dist/components/GlobalFilters/Filters.d.ts +6 -0
  8. package/dist/components/GlobalFilters/HorizontalFilters.d.ts +6 -0
  9. package/dist/components/GlobalFilters/NumberFilterField.d.ts +2 -1
  10. package/dist/components/GlobalFilters/index.d.ts +12 -0
  11. package/dist/components/Icons/Logos/index.d.ts +1 -1
  12. package/dist/components/Icons/icons.d.ts +1 -0
  13. package/dist/components/InputField/index.d.ts +2 -1
  14. package/dist/components/Menu/index.d.ts +2 -1
  15. package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +11 -0
  16. package/dist/components/MetricChart/index.d.ts +2 -0
  17. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
  18. package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +2 -1
  19. package/dist/components/MetricFilterDropDown/index.d.ts +10 -4
  20. package/dist/components/MetricList/MetricList.d.ts +6 -0
  21. package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +4 -1
  22. package/dist/components/MetricList/components/FullScreenView/index.d.ts +2 -2
  23. package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +7 -1
  24. package/dist/components/MultiSelectDropdown/index.d.ts +4 -2
  25. package/dist/components/PopoverMenu/index.d.ts +1 -0
  26. package/dist/components/SkeletonLoader/index.d.ts +8 -0
  27. package/dist/components/Switch/index.d.ts +1 -0
  28. package/dist/components/Tabs/index.d.ts +4 -1
  29. package/dist/components/TextAreaField/index.d.ts +5 -2
  30. package/dist/components/index.d.ts +2 -0
  31. package/dist/consts/api.d.ts +2 -0
  32. package/dist/consts/app.d.ts +2 -0
  33. package/dist/containers/Dashboard/Dashboard.d.ts +4 -1
  34. package/dist/containers/Dashboard/EmbededDashboard.d.ts +2 -0
  35. package/dist/containers/Metric/EmbeddedMetric.d.ts +2 -1
  36. package/dist/containers/Metric/index.d.ts +1 -0
  37. package/dist/helpers/getModifiedQuery.d.ts +10 -0
  38. package/dist/hooks/index.d.ts +2 -0
  39. package/dist/hooks/useDashboardContext.d.ts +1 -0
  40. package/dist/hooks/useDatasetMetric.d.ts +1 -7
  41. package/dist/hooks/useDrag.d.ts +1 -0
  42. package/dist/hooks/useDrop.d.ts +1 -0
  43. package/dist/hooks/useEmbeddedMetric.d.ts +5 -0
  44. package/dist/hooks/useMetricCard.d.ts +2 -1
  45. package/dist/hooks/useMetricConfig.d.ts +1 -0
  46. package/dist/hooks/useNewEmbeddedDashboard.d.ts +1 -0
  47. package/dist/types/app.d.ts +13 -4
  48. package/dist/types/dragAndDropProps.d.ts +19 -8
  49. package/dist/types/metricCreate.d.ts +2 -7
  50. package/dist/types/queryTypes.d.ts +2 -0
  51. package/dist/utils/getChartAttributes.d.ts +6 -8
  52. package/dist/webcomponents.es.js +71325 -69638
  53. package/dist/webcomponents.umd.js +921 -220
  54. package/package.json +1 -1
  55. package/src/index.ts +7 -7
  56. package/dist/components/InternetFailure/index.d.ts +0 -2
  57. package/dist/utils/checkIsOnline.d.ts +0 -2
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { UseFormRegisterReturn } from 'react-hook-form';
3
- interface Props {
3
+ interface Props extends React.HTMLProps<HTMLTextAreaElement> {
4
4
  id: string;
5
5
  label: string;
6
6
  placeholder?: string;
@@ -14,6 +14,9 @@ interface Props {
14
14
  onFocus?: any;
15
15
  onBlur?: any;
16
16
  className?: string;
17
+ leftIcon?: JSX.Element;
18
+ rightIcon?: JSX.Element;
19
+ onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
17
20
  }
18
- export declare const TextAreaField: ({ id, label, placeholder, rows, cols, resizable, register, error, defaultValue, value, onFocus, onBlur, className, }: Props) => React.JSX.Element;
21
+ export declare const TextAreaField: ({ id, label, placeholder, rows, cols, resizable, register, error, defaultValue, value, onFocus, onBlur, className, leftIcon, rightIcon, ...rest }: Props) => React.JSX.Element;
19
22
  export {};
@@ -49,3 +49,5 @@ export * from './RadioButton';
49
49
  export * from './Menu';
50
50
  export * from './ChartTypePanel';
51
51
  export * from './Badge';
52
+ export * from './DraggableItem';
53
+ export * from './SkeletonLoader';
@@ -1,3 +1,4 @@
1
+ export declare const API_BASE_URL: string;
1
2
  export declare const DASHBOARD_PATH = "/dashboard";
2
3
  export declare const METRIC_PATH = "/metric";
3
4
  export declare const DASHBOARD_DATA_QUERY = "dashboardData";
@@ -37,3 +38,4 @@ export declare const METRIC_SHARE_CSV_PATH: string;
37
38
  export declare const METRIC_SHARE_CSV_MUTATION = "invokeShareCsv";
38
39
  export declare const METRIC_MARK_ARCHIVED_PATH: string;
39
40
  export declare const METRIC_MARK_ARCHIVED_MUTATION = "markArchived";
41
+ export declare const METRIC_DOWNLOAD_RAW_CSV_PATH: string;
@@ -30,6 +30,7 @@ export declare const CHART_TYPES: {
30
30
  export declare const chartOptions: {
31
31
  name: string;
32
32
  icon: string;
33
+ label: string;
33
34
  }[];
34
35
  export declare const timeStamp: {
35
36
  month: string;
@@ -86,3 +87,4 @@ export declare const NUMBER_FORMAT: {
86
87
  label: string;
87
88
  value: string;
88
89
  }[];
90
+ export declare const ICONS_LIST: readonly ["circle", "group-by", "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", "string", "boolean", "date", "number", "unknown", "array", "right-join", "left-join", "outer-join", "right-full-join", "left-full-join", "inner-join", "full-join", "version-history"];
@@ -7,6 +7,7 @@ import { ThemeType } from '@/utils/theme';
7
7
  * disableMetricCreation - boolean value to enable or disable metric creation
8
8
  * disableMetricUpdation - boolean value to enable or disable metric updation
9
9
  * disableMetricDeletion - boolean value to enable or disable metric deletion
10
+ * disableScheduleEmailReports - boolean value to enable or disable schedule email reports
10
11
  * disableLayoutCustomization - boolean value to enable or disable dashboard layout customization
11
12
  * chartColors - array of colors where each color should be a valid color string e.g. color name, rgb value, hex value, etc.
12
13
  * theme - Theme customization.
@@ -21,6 +22,7 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
21
22
  disableMetricUpdation?: boolean;
22
23
  disableMetricDeletion?: boolean;
23
24
  disableLayoutCustomization?: boolean;
25
+ disableScheduleEmailReports?: boolean;
24
26
  chartColors?: string[];
25
27
  };
26
28
  theme?: ThemeType;
@@ -29,6 +31,7 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
29
31
  enableDownloadCsv?: boolean;
30
32
  enableEmailCsv?: boolean;
31
33
  enableMultiMetricFilters?: boolean;
34
+ disableFullscreen?: boolean;
32
35
  }
33
36
  /**
34
37
  * @name Dashboard - A react component to display the dashboard.
@@ -42,4 +45,4 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
42
45
  * @prop {boolean} enableMultiMetricFilters (optional) - Whether to allow multiple metric filters in metric card.
43
46
  * @prop {object} theme (optional) - A theme object to customize the theme.
44
47
  */
45
- export declare const Dashboard: ({ token, options, theme, dashboardId, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, enableMultiMetricFilters, }: DashboardProps) => React.JSX.Element;
48
+ export declare const Dashboard: ({ token, options, theme, dashboardId, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, enableMultiMetricFilters, disableFullscreen, }: DashboardProps) => React.JSX.Element;
@@ -6,6 +6,8 @@ export interface EmbeddedDashboardProps {
6
6
  disableMetricUpdation?: boolean;
7
7
  disableMetricDeletion?: boolean;
8
8
  disableLayoutCustomization?: boolean;
9
+ disableScheduleEmailReports?: boolean;
10
+ disableFullscreen?: boolean;
9
11
  chartColors?: string[];
10
12
  isHideChartSettings?: boolean;
11
13
  isHideTablePreview?: boolean;
@@ -14,5 +14,6 @@ export interface EmbeddedMetricProps {
14
14
  enableMultiMetricFilters?: boolean;
15
15
  metricFilterOptions?: MetricFilterOptionsType;
16
16
  metricFilterPosition?: 'outside' | 'inside';
17
+ disableFullscreen?: boolean;
17
18
  }
18
- export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, metricFilterOptions, enableMultiMetricFilters, metricFilterPosition, }: EmbeddedMetricProps) => React.JSX.Element>;
19
+ export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, metricFilterOptions, enableMultiMetricFilters, metricFilterPosition, disableFullscreen, }: EmbeddedMetricProps) => React.JSX.Element>;
@@ -32,6 +32,7 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
32
32
  metricFilterOptions?: MetricFilterOptionsType;
33
33
  enableMultiMetricFilters?: boolean;
34
34
  metricFilterPosition?: 'outside' | 'inside';
35
+ disableFullscreen?: boolean;
35
36
  }
36
37
  /**
37
38
  * @name Metric - A react component to display a single metric card.
@@ -1,7 +1,17 @@
1
1
  import { RlsCondition } from '@/types/app';
2
+ type ReplaceVariable = {
3
+ query: string;
4
+ clientId?: string;
5
+ rlsConditions: RlsCondition[];
6
+ tenancyLevel: string;
7
+ values?: Record<string, string>;
8
+ isAllClient?: boolean;
9
+ };
10
+ export declare const replaceVariable: ({ query, rlsConditions, tenancyLevel, clientId, values, isAllClient, }: ReplaceVariable) => string;
2
11
  export declare const nameSpaceSpecification: (parentAlias: string, columnName: string, dbName: string) => string;
3
12
  export declare const getModifiedQuery: ({ rlsConditions, dbName, query, }: {
4
13
  rlsConditions: RlsCondition[];
5
14
  dbName: string;
6
15
  query: string;
7
16
  }) => string;
17
+ export {};
@@ -7,3 +7,5 @@ export * from './useUnderlyingData';
7
7
  export * from './useMetricCard';
8
8
  export * from './useArchiveMetric';
9
9
  export * from './useEmbeddedMetric';
10
+ export * from './useDrag';
11
+ export * from './useDrop';
@@ -16,6 +16,7 @@ interface DashboardContextType {
16
16
  isAllowedToDeleteMetrics: boolean | undefined;
17
17
  isAllowedToUpdateMetrics: boolean | undefined;
18
18
  isAllowedToChangeLayout: boolean | undefined;
19
+ isAllowedToEmailReports: boolean | undefined;
19
20
  workspace: any;
20
21
  adminTheme: any;
21
22
  clientSubsetData?: any | undefined;
@@ -14,12 +14,10 @@ declare const useDatasetMetric: ({ ...config }: DatasetConfig) => {
14
14
  value: string;
15
15
  label: string;
16
16
  }[];
17
- onGenerateChart: ({ param, metricParams, dimensionParams, createdDimensionParams, createdMetricParams, }: {
17
+ onGenerateChart: ({ param, metricParams, dimensionParams, }: {
18
18
  param?: DatasetMetricCreationConfiguration | undefined;
19
19
  metricParams?: FloatingDropDownOption[] | undefined;
20
20
  dimensionParams?: FloatingDropDownOption[] | undefined;
21
- createdMetricParams?: FloatingDropDownOption[] | undefined;
22
- createdDimensionParams?: FloatingDropDownOption[] | undefined;
23
21
  }) => void;
24
22
  createdSorts: CreateNewSort[];
25
23
  setCreatedSorts: import("react").Dispatch<import("react").SetStateAction<CreateNewSort[]>>;
@@ -42,9 +40,5 @@ declare const useDatasetMetric: ({ ...config }: DatasetConfig) => {
42
40
  value: string;
43
41
  label: string;
44
42
  }[];
45
- createdCols: FloatingDropDownOption[];
46
- setCreatedCols: import("react").Dispatch<import("react").SetStateAction<FloatingDropDownOption[]>>;
47
- createdMetrics: FloatingDropDownOption[];
48
- setCreatedMetrics: import("react").Dispatch<import("react").SetStateAction<FloatingDropDownOption[]>>;
49
43
  };
50
44
  export default useDatasetMetric;
@@ -7,3 +7,4 @@ declare const useDrag: ({ identifier, data, modifiers, events, CustomDragPreview
7
7
  DragNodeRef: import("react").MutableRefObject<any>;
8
8
  };
9
9
  export default useDrag;
10
+ export { useDrag };
@@ -10,3 +10,4 @@ declare const useDrop: ({ identifier, events, modifiers }: UseDropProps) => {
10
10
  setDropNodeRef: import("react").MutableRefObject<any>;
11
11
  };
12
12
  export default useDrop;
13
+ export { useDrop };
@@ -15,4 +15,9 @@ export declare const useEmbeddedMetric: ({ token, metricId, }: UseEmbeddedMetric
15
15
  tenancyLevel: any;
16
16
  isLoading: boolean;
17
17
  errorMsg: any;
18
+ dropdownTheme: {
19
+ width: string;
20
+ variant: 'static' | 'floating';
21
+ radius: string;
22
+ };
18
23
  };
@@ -14,8 +14,9 @@ type UseMetricCardProps = {
14
14
  setCrossDashboardFilters?: React.Dispatch<React.SetStateAction<RlsCondition[]>>;
15
15
  crossDashboardFilters?: RlsCondition[];
16
16
  metricFilterOptions?: MetricFilterOptionsType;
17
+ isAllClient?: boolean;
17
18
  };
18
- export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, }: UseMetricCardProps) => {
19
+ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, isAllClient, }: UseMetricCardProps) => {
19
20
  onDrillLevelClick: (index: number) => void;
20
21
  onDrillDown: (params: any, rowFilters?: {
21
22
  columnName: string;
@@ -53,5 +53,6 @@ declare const useMetricConfig: ({ ...config }: ConfigType) => {
53
53
  isEnableSingleDimension: boolean;
54
54
  isEnableSingleMetrics: boolean;
55
55
  enabledCharts: string[];
56
+ setResetPallete: import("react").Dispatch<import("react").SetStateAction<boolean>>;
56
57
  };
57
58
  export default useMetricConfig;
@@ -11,6 +11,7 @@ declare const useNewEmbeddedDashboard: ({ token, dashboardId, }: {
11
11
  isAllowedToCreateMetrics: boolean;
12
12
  isAllowedToDeleteMetrics: boolean;
13
13
  isAllowedToUpdateMetrics: boolean;
14
+ isAllowedToEmailReports: boolean;
14
15
  companyId: string;
15
16
  clientId: string;
16
17
  workspace: any;
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { ColumnSizingState } from '@tanstack/react-table';
3
- import { CHART_TYPES } from '@/consts';
3
+ import { CHART_TYPES, ICONS_LIST } from '@/consts';
4
4
  export type ChildrenProps = {
5
5
  children: ReactNode;
6
6
  };
@@ -144,8 +144,8 @@ export type CustomSettings = {
144
144
  coloredBars?: boolean;
145
145
  };
146
146
  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' | 'infoAlert';
147
- 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' | 'string' | 'boolean' | 'date' | 'number' | 'unknown' | 'array' | 'right-join' | 'left-join' | 'outer-join' | 'right-full-join' | 'left-full-join' | 'inner-join';
148
- export type LogoType = 'redshift' | 'postgres' | 'mysql' | 'mongodb' | 'bigquery' | 'snowflake' | 'microsoft' | 'google' | 'elasticsearch' | 'redis' | 'databrick' | 'clickhouse';
147
+ export type IconType = (typeof ICONS_LIST)[number];
148
+ export type LogoType = 'redshift' | 'postgres' | 'mysql' | 'mongodb' | 'bigquery' | 'snowflake' | 'microsoft' | 'google' | 'elasticsearch' | 'redis' | 'databricks' | 'clickhouse';
149
149
  export type IconSizes = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
150
150
  export type IconConfig = {
151
151
  size: IconSizes;
@@ -164,7 +164,9 @@ export type IconsProps = {
164
164
  coloredBars?: boolean;
165
165
  };
166
166
  export type TableSettings = {
167
+ headerFontBold?: boolean;
167
168
  contentAlignment?: string;
169
+ hideTableHeader?: boolean;
168
170
  lineGap?: string;
169
171
  hideVerticalDivider?: boolean;
170
172
  hideHorizontalDivider?: boolean;
@@ -267,6 +269,7 @@ export type ChartSettingsType = {
267
269
  selectedOption?: FloatingDropDownOption;
268
270
  };
269
271
  comboBarList: string[];
272
+ isGroupXAxis?: boolean;
270
273
  };
271
274
  export type SelectedColumns = {
272
275
  column: string;
@@ -380,6 +383,7 @@ export type CustomOption = {
380
383
  endDate?: Date;
381
384
  value: string | number;
382
385
  label: string;
386
+ range?: string;
383
387
  };
384
388
  export type RlsCondition = {
385
389
  name: string;
@@ -411,6 +415,11 @@ export type RlsCondition = {
411
415
  comparisonOperator: FloatingDropDownOption;
412
416
  }[];
413
417
  comparisonOperator?: FloatingDropDownOption;
418
+ dependOn?: FloatingDropDownOption;
419
+ selectedCustomOptionTable?: {
420
+ query: string;
421
+ columnName: string;
422
+ };
414
423
  };
415
424
  export type MetricData = {
416
425
  id: string;
@@ -439,7 +448,7 @@ export type ConditionalFormattingParam = {
439
448
  }[];
440
449
  };
441
450
  export type DateTypeOptionType = {
442
- range: 'Last' | 'This' | 'Custom';
451
+ range: 'Last' | 'This' | 'Custom' | 'Custom Date';
443
452
  time?: 'Day' | 'Week' | 'Month' | 'Quarter' | 'Year';
444
453
  name: string;
445
454
  count?: number;
@@ -1,3 +1,12 @@
1
+ export type Modifiers = {
2
+ sorting?: {
3
+ isEnabled: boolean;
4
+ isEnabledAutoSort?: boolean;
5
+ sortingType: 'vertical' | 'horizontal' | 'both-axis';
6
+ list?: any[];
7
+ setList?: any;
8
+ };
9
+ };
1
10
  export type UseDragProps = {
2
11
  identifier: {
3
12
  id: string;
@@ -28,14 +37,7 @@ export type UseDropProps = {
28
37
  onDragLeave?: (event: DragEvent, data: DndStateProp) => void;
29
38
  onDrop?: (event: DragEvent, data: DndStateProp) => void;
30
39
  };
31
- modifiers?: {
32
- sorting?: {
33
- isEnabled: boolean;
34
- sortingType: 'vertical' | 'horizontal';
35
- list?: any[];
36
- setList?: any;
37
- };
38
- };
40
+ modifiers?: Modifiers;
39
41
  };
40
42
  export type DndStateProp = {
41
43
  active: (UseDragProps & {
@@ -56,4 +58,13 @@ export type DndStateProp = {
56
58
  DragPreviewCreateRoot?: any;
57
59
  draggables?: DndStateProp['active'][];
58
60
  droppables?: DndStateProp['over'][];
61
+ sorting?: {
62
+ sortedList: any[];
63
+ isSelfDrop: boolean;
64
+ ArrayElementSwap: (before: number, after: number, list: any[]) => any[];
65
+ sortingIndexes: {
66
+ before: number;
67
+ after: number;
68
+ };
69
+ };
59
70
  };
@@ -91,21 +91,15 @@ export type MetricOutputProps = {
91
91
  hasNumberKeys: boolean;
92
92
  metrics: FloatingDropDownOption[];
93
93
  dimensions: FloatingDropDownOption[];
94
- createdCols: FloatingDropDownOption[];
95
94
  configuration: DatasetMetricCreationConfiguration;
96
- setCreatedCols: React.Dispatch<React.SetStateAction<FloatingDropDownOption[]>>;
97
- createdMetrics: FloatingDropDownOption[];
98
- setCreatedMetrics: React.Dispatch<React.SetStateAction<FloatingDropDownOption[]>>;
99
95
  functionOptions: (col: any) => {
100
96
  value: string;
101
97
  label: string;
102
98
  }[];
103
- onGenerateChart: ({ param, metricParams, dimensionParams, createdDimensionParams, createdMetricParams, }: {
99
+ onGenerateChart: ({ param, metricParams, dimensionParams, }: {
104
100
  param?: DatasetMetricCreationConfiguration | undefined;
105
101
  metricParams?: FloatingDropDownOption[] | undefined;
106
102
  dimensionParams?: FloatingDropDownOption[] | undefined;
107
- createdMetricParams?: FloatingDropDownOption[] | undefined;
108
- createdDimensionParams?: FloatingDropDownOption[] | undefined;
109
103
  }) => void;
110
104
  setQuery?: React.Dispatch<React.SetStateAction<string>>;
111
105
  setData?: React.Dispatch<React.SetStateAction<any[] | undefined>>;
@@ -256,6 +250,7 @@ export type Dimension = {
256
250
  type: 'custom' | 'default';
257
251
  dataType: string;
258
252
  helperFunction?: string;
253
+ labelType?: string;
259
254
  };
260
255
  export type Filter = {
261
256
  method: string;
@@ -25,6 +25,7 @@ export type UseDashboardDataQueryOutputType = {
25
25
  isAllowedToCreateMetrics?: boolean | null;
26
26
  isAllowedToDeleteMetrics?: boolean | null;
27
27
  isAllowedToUpdateMetrics?: boolean | null;
28
+ isAllowedToEmailReports?: boolean | null;
28
29
  adminTheme?: any | null;
29
30
  clientId?: string | null;
30
31
  companyId?: string | null;
@@ -49,6 +50,7 @@ export type UseMetricQueryQueryInputType = {
49
50
  drillFilters?: any[];
50
51
  limit?: number;
51
52
  offset?: number;
53
+ isAllClient?: boolean;
52
54
  };
53
55
  export type UseMetricQueryQueryOutputType = {
54
56
  data?: any | null;
@@ -13,8 +13,9 @@ type Params = {
13
13
  isCumulativeBar: boolean;
14
14
  chartType: string;
15
15
  seriesType: string;
16
+ isGroupXAxis: boolean;
16
17
  };
17
- export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, }: Params) => {
18
+ export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, isGroupXAxis, }: Params) => {
18
19
  labels: string[];
19
20
  datasets: any;
20
21
  funnelData: {
@@ -25,19 +26,16 @@ export declare const getChartAttributes: ({ data, measure, singleValue, step, xA
25
26
  xAxisData: any[];
26
27
  seriesData: any;
27
28
  };
28
- export declare const transformDataToSankey: ({ data, source, target, value, }: {
29
+ export declare const transformDataToSankey: ({ data, source, target, value, sankeyColors, }: {
29
30
  data: Record<string, any>[];
30
31
  source: string;
31
32
  target: string;
32
33
  value: any;
34
+ sankeyColors: string[] | undefined;
33
35
  }) => {
34
- nodes: ({
36
+ nodes: {
35
37
  name: any;
36
- } | undefined)[];
37
- links: {
38
- source: number;
39
- target: number;
40
- value: any;
41
38
  }[];
39
+ links: Record<string, any>[];
42
40
  };
43
41
  export {};