@databrainhq/plugin 0.13.0-beta.1 → 0.13.0-beta.10
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.
- package/dist/components/Chart/index.d.ts +2 -1
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +1 -2
- package/dist/components/DraggableItem/index.d.ts +2 -2
- package/dist/components/DrillBreadCrumb/index.d.ts +9 -3
- package/dist/components/ExternalMetricForm/index.d.ts +0 -5
- package/dist/components/GlobalFilters/Filters.d.ts +1 -0
- package/dist/components/Icons/Logos/index.d.ts +1 -1
- package/dist/components/InputField/index.d.ts +2 -1
- package/dist/components/MetricFilterDropDown/index.d.ts +4 -4
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +2 -1
- package/dist/components/PopoverMenu/index.d.ts +1 -0
- package/dist/components/Table/index.d.ts +3 -1
- package/dist/components/Tabs/index.d.ts +4 -1
- package/dist/components/TextAreaField/index.d.ts +5 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/consts/app.d.ts +1 -0
- package/dist/containers/Metric/EmbeddedMetric.d.ts +2 -1
- package/dist/containers/Metric/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useDrag.d.ts +1 -0
- package/dist/hooks/useDragAndDropState.d.ts +2 -0
- package/dist/hooks/useDrop.d.ts +1 -2
- package/dist/hooks/useMetricCard.d.ts +10 -1
- package/dist/types/app.d.ts +14 -6
- package/dist/types/dragAndDropProps.d.ts +18 -1
- package/dist/utils/getChartAttributes.d.ts +2 -1
- package/dist/webcomponents.es.js +32870 -31942
- package/dist/webcomponents.umd.js +171 -167
- package/package.json +1 -1
- package/dist/components/InternetFailure/index.d.ts +0 -2
- package/dist/utils/checkIsOnline.d.ts +0 -2
|
@@ -8,6 +8,7 @@ export type ChartProps = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
colors?: string[];
|
|
10
10
|
isShowFullScreen?: boolean;
|
|
11
|
+
isShowFullScreenEnabled?: boolean;
|
|
11
12
|
filterValues?: Record<string, any>;
|
|
12
13
|
onMaximize?: () => void;
|
|
13
14
|
};
|
|
@@ -21,4 +22,4 @@ export type ChartProps = {
|
|
|
21
22
|
* @prop colors (optional) - the admin provided chart color palettes.
|
|
22
23
|
* @returns JSX - chart visaulization content.
|
|
23
24
|
*/
|
|
24
|
-
export declare const Chart: React.MemoExoticComponent<({ chartOptions, data, events, colors, config, className, isShowFullScreen, onMaximize, }: ChartProps) => React.JSX.Element>;
|
|
25
|
+
export declare const Chart: React.MemoExoticComponent<({ chartOptions, data, events, colors, config, className, isShowFullScreen, isShowFullScreenEnabled, onMaximize, }: ChartProps) => React.JSX.Element>;
|
|
@@ -15,7 +15,6 @@ type Props = {
|
|
|
15
15
|
bottomRadius: number;
|
|
16
16
|
}>>;
|
|
17
17
|
comparisonLagProps?: ComparisonLagProps;
|
|
18
|
-
isEndUserSetting?: boolean;
|
|
19
18
|
};
|
|
20
|
-
export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps,
|
|
19
|
+
export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps, }: Props) => React.JSX.Element;
|
|
21
20
|
export {};
|
|
@@ -3,5 +3,5 @@ import { UseDragProps } from '@/types';
|
|
|
3
3
|
type DraggableItemProps = UseDragProps & {
|
|
4
4
|
renderItem: (DragNodeRef: React.MutableRefObject<any>, isDragging?: boolean) => JSX.Element;
|
|
5
5
|
};
|
|
6
|
-
declare const DraggableItem: React.FC<DraggableItemProps>;
|
|
7
|
-
export
|
|
6
|
+
export declare const DraggableItem: React.FC<DraggableItemProps>;
|
|
7
|
+
export {};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const DrillBreadCrumb: ({ dimensions, drilledLevel, onResetLevel, onDrillLevelClick,
|
|
2
|
+
export declare const DrillBreadCrumb: ({ dimensions, drilledLevel, onResetLevel, onDrillLevelClick, isMetricCard, isMetricFilter, drillType, drillFilters, isShowBreadCrumb, }: {
|
|
3
3
|
dimensions: string[];
|
|
4
4
|
drilledLevel: number;
|
|
5
5
|
onResetLevel: () => void;
|
|
6
6
|
onDrillLevelClick: (value: number) => void;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
isMetricCard?: boolean | undefined;
|
|
8
|
+
isMetricFilter?: boolean | undefined;
|
|
9
|
+
drillType?: string | undefined;
|
|
10
|
+
drillFilters?: {
|
|
11
|
+
columnName: string;
|
|
12
|
+
value: any;
|
|
13
|
+
}[] | undefined;
|
|
14
|
+
isShowBreadCrumb?: boolean | undefined;
|
|
9
15
|
}) => React.JSX.Element;
|
|
10
16
|
export default DrillBreadCrumb;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import { DashboardType, FloatingDropDownOption } from '@/types/app';
|
|
4
3
|
type ExternalMetricProps = {
|
|
5
4
|
onSubmit: (values: FieldValues) => void;
|
|
6
5
|
defaultValues?: FieldValues;
|
|
7
6
|
onCancel: () => void;
|
|
8
|
-
isEmbedded?: boolean;
|
|
9
|
-
dashboardIds: DashboardType['id'][];
|
|
10
|
-
onDashboardChange: (selected: DashboardType['id'][]) => void;
|
|
11
|
-
options: FloatingDropDownOption[];
|
|
12
7
|
error?: string;
|
|
13
8
|
isCreatingMetric?: boolean;
|
|
14
9
|
};
|
|
@@ -10,6 +10,7 @@ interface Props extends React.HTMLProps<HTMLInputElement> {
|
|
|
10
10
|
error?: string | FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined;
|
|
11
11
|
leftIcon?: JSX.Element;
|
|
12
12
|
rightIcon?: JSX.Element;
|
|
13
|
+
labelVariant?: 'floating' | 'static';
|
|
13
14
|
}
|
|
14
|
-
export declare const InputField: ({ type, register, label, isDisabled, id, elementRef, error, supportingText, leftIcon, rightIcon, ...rest }: Props) => React.JSX.Element;
|
|
15
|
+
export declare const InputField: ({ type, register, label, isDisabled, id, elementRef, error, supportingText, leftIcon, rightIcon, labelVariant, ...rest }: Props) => React.JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FloatingDropDownOption, RlsCondition } from '@/types';
|
|
3
|
-
import { MetricCardProps } from '@/components/MetricList';
|
|
4
3
|
type Props = {
|
|
5
4
|
rlsConditions?: RlsCondition;
|
|
6
5
|
onChangeFilterValue?: (name: string, value: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[]) => void;
|
|
7
6
|
workspaceId: string;
|
|
8
7
|
clientId?: string;
|
|
9
8
|
className?: string;
|
|
10
|
-
|
|
9
|
+
rlsConditionList: RlsCondition[];
|
|
11
10
|
};
|
|
12
|
-
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, clientId, className,
|
|
13
|
-
|
|
11
|
+
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, clientId, className, rlsConditionList, }: Props) => React.JSX.Element;
|
|
12
|
+
declare const _default: React.MemoExoticComponent<({ rlsConditions, onChangeFilterValue, workspaceId, clientId, className, rlsConditionList, }: Props) => React.JSX.Element>;
|
|
13
|
+
export default _default;
|
|
@@ -31,5 +31,6 @@ export type MetricCardProps = {
|
|
|
31
31
|
enableDownloadCsv?: boolean;
|
|
32
32
|
enableMultiMetricFilters?: boolean;
|
|
33
33
|
disableActions?: boolean;
|
|
34
|
+
metricFilterPosition?: 'outside' | 'inside';
|
|
34
35
|
};
|
|
35
|
-
export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, onDownloadRawCsv, enableDownloadCsv, enableMultiMetricFilters, disableActions, }: MetricCardProps) => React.JSX.Element;
|
|
36
|
+
export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, onDownloadRawCsv, enableDownloadCsv, enableMultiMetricFilters, disableActions, metricFilterPosition, }: MetricCardProps) => React.JSX.Element;
|
|
@@ -24,9 +24,11 @@ type Props = {
|
|
|
24
24
|
onLoadMore?: () => void;
|
|
25
25
|
hasMoreData?: boolean;
|
|
26
26
|
isShowFullScreen?: boolean;
|
|
27
|
+
isShowFullScreenEnabled?: boolean;
|
|
27
28
|
filterValues?: Record<string, any>;
|
|
28
29
|
onMaximize?: () => void;
|
|
29
30
|
headerAlignment?: 'left' | 'center' | 'right';
|
|
31
|
+
events?: Record<string, Function>;
|
|
30
32
|
};
|
|
31
|
-
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isInfiniteScroll, onLoadMore, hasMoreData, isShowFullScreen, onMaximize, headerAlignment, }: Props) => React.JSX.Element;
|
|
33
|
+
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, isInfiniteScroll, onLoadMore, hasMoreData, isShowFullScreen, isShowFullScreenEnabled, onMaximize, headerAlignment, events, }: Props) => React.JSX.Element;
|
|
32
34
|
export {};
|
|
@@ -2,13 +2,15 @@ import React from 'react';
|
|
|
2
2
|
type TabsContextType = [
|
|
3
3
|
activeTab: string | number,
|
|
4
4
|
setActiveTab: React.Dispatch<React.SetStateAction<string | number>>,
|
|
5
|
-
variant: 'primary' | 'popoverTabs'
|
|
5
|
+
variant: 'primary' | 'popoverTabs',
|
|
6
|
+
setTab?: React.Dispatch<React.SetStateAction<string | number>>
|
|
6
7
|
];
|
|
7
8
|
export declare const TabsContext: React.Context<[] | TabsContextType>;
|
|
8
9
|
type TabsProps = {
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
variant?: 'primary' | 'popoverTabs';
|
|
11
12
|
defaultActiveTab?: string | number;
|
|
13
|
+
setTab?: React.Dispatch<React.SetStateAction<string | number>>;
|
|
12
14
|
width?: string;
|
|
13
15
|
};
|
|
14
16
|
type TabProps = {
|
|
@@ -25,6 +27,7 @@ export declare const Tabs: {
|
|
|
25
27
|
width?: string | undefined;
|
|
26
28
|
background?: string | undefined;
|
|
27
29
|
className?: string | undefined;
|
|
30
|
+
headerButton?: React.ReactNode;
|
|
28
31
|
}>;
|
|
29
32
|
Tab: React.FC<TabProps>;
|
|
30
33
|
Panel: React.FC<{
|
|
@@ -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 {};
|
package/dist/consts/app.d.ts
CHANGED
|
@@ -86,3 +86,4 @@ export declare const NUMBER_FORMAT: {
|
|
|
86
86
|
label: string;
|
|
87
87
|
value: string;
|
|
88
88
|
}[];
|
|
89
|
+
export declare const ICONS_LIST: readonly ["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"];
|
|
@@ -13,5 +13,6 @@ export interface EmbeddedMetricProps {
|
|
|
13
13
|
enableEmailCsv?: boolean;
|
|
14
14
|
enableMultiMetricFilters?: boolean;
|
|
15
15
|
metricFilterOptions?: MetricFilterOptionsType;
|
|
16
|
+
metricFilterPosition?: 'outside' | 'inside';
|
|
16
17
|
}
|
|
17
|
-
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, metricFilterOptions, enableMultiMetricFilters, }: EmbeddedMetricProps) => React.JSX.Element>;
|
|
18
|
+
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, metricFilterOptions, enableMultiMetricFilters, metricFilterPosition, }: EmbeddedMetricProps) => React.JSX.Element>;
|
|
@@ -31,6 +31,7 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
31
31
|
style?: React.CSSProperties;
|
|
32
32
|
metricFilterOptions?: MetricFilterOptionsType;
|
|
33
33
|
enableMultiMetricFilters?: boolean;
|
|
34
|
+
metricFilterPosition?: 'outside' | 'inside';
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
* @name Metric - A react component to display a single metric card.
|
package/dist/hooks/index.d.ts
CHANGED
package/dist/hooks/useDrag.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ declare const useDragAndDropState: () => {
|
|
|
3
3
|
dndState: DndStateProp;
|
|
4
4
|
setActive: (active: DndStateProp['active']) => void;
|
|
5
5
|
setOver: (over: DndStateProp['over']) => void;
|
|
6
|
+
setDraggables: (draggable: DndStateProp['active']) => void;
|
|
7
|
+
setDropables: (droppable: DndStateProp['over']) => void;
|
|
6
8
|
setDndState: (update: DndStateProp | ((prev: DndStateProp) => DndStateProp)) => void;
|
|
7
9
|
};
|
|
8
10
|
export default useDragAndDropState;
|
package/dist/hooks/useDrop.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import { UseDropProps } from '@/types';
|
|
|
3
3
|
declare const useDrop: ({ identifier, events, modifiers }: UseDropProps) => {
|
|
4
4
|
dragStatus: {
|
|
5
5
|
isDragOver: boolean;
|
|
6
|
-
isDragEnter: boolean;
|
|
7
|
-
isDragLeave: boolean;
|
|
8
6
|
isDrop: boolean;
|
|
9
7
|
};
|
|
10
8
|
isEnableDrop: boolean;
|
|
@@ -12,3 +10,4 @@ declare const useDrop: ({ identifier, events, modifiers }: UseDropProps) => {
|
|
|
12
10
|
setDropNodeRef: import("react").MutableRefObject<any>;
|
|
13
11
|
};
|
|
14
12
|
export default useDrop;
|
|
13
|
+
export { useDrop };
|
|
@@ -17,7 +17,10 @@ type UseMetricCardProps = {
|
|
|
17
17
|
};
|
|
18
18
|
export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, }: UseMetricCardProps) => {
|
|
19
19
|
onDrillLevelClick: (index: number) => void;
|
|
20
|
-
onDrillDown: (params: any
|
|
20
|
+
onDrillDown: (params: any, rowFilters?: {
|
|
21
|
+
columnName: string;
|
|
22
|
+
value: any;
|
|
23
|
+
}[] | undefined) => void;
|
|
21
24
|
handleChartClick: (params: any) => void;
|
|
22
25
|
dataDb: Record<string, any>[];
|
|
23
26
|
getUnderlyingData: ({ columnName, value, setData, setLoading, isSingleValueChart, }: {
|
|
@@ -65,5 +68,11 @@ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, client
|
|
|
65
68
|
metricFilters: RlsCondition[];
|
|
66
69
|
leftPositionedMetricFilters: RlsCondition[];
|
|
67
70
|
rightPositionedMetricFilters: RlsCondition[];
|
|
71
|
+
drillFilters: {
|
|
72
|
+
columnName: string;
|
|
73
|
+
value: string | number;
|
|
74
|
+
}[];
|
|
75
|
+
drillType: any;
|
|
76
|
+
tableResultsDownloadData: Record<string, any>[];
|
|
68
77
|
};
|
|
69
78
|
export {};
|
package/dist/types/app.d.ts
CHANGED
|
@@ -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,9 +144,9 @@ 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 =
|
|
148
|
-
export type LogoType = 'redshift' | 'postgres' | 'mysql' | 'mongodb' | 'bigquery' | 'snowflake' | 'microsoft' | 'google' | 'elasticsearch' | 'redis' | '
|
|
149
|
-
export type IconSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
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
|
+
export type IconSizes = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
150
150
|
export type IconConfig = {
|
|
151
151
|
size: IconSizes;
|
|
152
152
|
color: Colors;
|
|
@@ -267,6 +267,7 @@ export type ChartSettingsType = {
|
|
|
267
267
|
selectedOption?: FloatingDropDownOption;
|
|
268
268
|
};
|
|
269
269
|
comboBarList: string[];
|
|
270
|
+
isGroupXAxis?: boolean;
|
|
270
271
|
};
|
|
271
272
|
export type SelectedColumns = {
|
|
272
273
|
column: string;
|
|
@@ -293,6 +294,7 @@ export type Schema = {
|
|
|
293
294
|
clientColumnType?: string;
|
|
294
295
|
isManualOptions?: boolean;
|
|
295
296
|
manualOptions?: string[];
|
|
297
|
+
dependOn?: FloatingDropDownOption[];
|
|
296
298
|
}[];
|
|
297
299
|
};
|
|
298
300
|
export type RlsFilterObjectType = {
|
|
@@ -379,6 +381,7 @@ export type CustomOption = {
|
|
|
379
381
|
endDate?: Date;
|
|
380
382
|
value: string | number;
|
|
381
383
|
label: string;
|
|
384
|
+
range?: string;
|
|
382
385
|
};
|
|
383
386
|
export type RlsCondition = {
|
|
384
387
|
name: string;
|
|
@@ -410,6 +413,11 @@ export type RlsCondition = {
|
|
|
410
413
|
comparisonOperator: FloatingDropDownOption;
|
|
411
414
|
}[];
|
|
412
415
|
comparisonOperator?: FloatingDropDownOption;
|
|
416
|
+
dependOn?: FloatingDropDownOption;
|
|
417
|
+
selectedCustomOptionTable?: {
|
|
418
|
+
query: string;
|
|
419
|
+
columnName: string;
|
|
420
|
+
};
|
|
413
421
|
};
|
|
414
422
|
export type MetricData = {
|
|
415
423
|
id: string;
|
|
@@ -438,7 +446,7 @@ export type ConditionalFormattingParam = {
|
|
|
438
446
|
}[];
|
|
439
447
|
};
|
|
440
448
|
export type DateTypeOptionType = {
|
|
441
|
-
range: 'Last' | 'This' | 'Custom';
|
|
449
|
+
range: 'Last' | 'This' | 'Custom' | 'Custom Date';
|
|
442
450
|
time?: 'Day' | 'Week' | 'Month' | 'Quarter' | 'Year';
|
|
443
451
|
name: string;
|
|
444
452
|
count?: number;
|
|
@@ -451,7 +459,7 @@ export type MetricFilterOptionsType = Record<string, {
|
|
|
451
459
|
options: string[] | number[] | DateTypeOptionType[];
|
|
452
460
|
defaultOption?: string | number;
|
|
453
461
|
}>;
|
|
454
|
-
export type FilterClausesType = (
|
|
462
|
+
export type FilterClausesType = (dependOn: FloatingDropDownOption[]) => {
|
|
455
463
|
as: string;
|
|
456
464
|
columnName: string;
|
|
457
465
|
value: string | string[];
|
|
@@ -4,7 +4,13 @@ export type UseDragProps = {
|
|
|
4
4
|
type?: string;
|
|
5
5
|
};
|
|
6
6
|
data?: any;
|
|
7
|
-
modifiers?:
|
|
7
|
+
modifiers?: {
|
|
8
|
+
highlightDrop?: {
|
|
9
|
+
onDrag?: boolean;
|
|
10
|
+
onDragOver?: boolean;
|
|
11
|
+
highlightClass?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
8
14
|
events?: {
|
|
9
15
|
onDragStart?: (event: DragEvent, data: DndStateProp) => void;
|
|
10
16
|
onDragEnd?: (event: DragEvent, data: DndStateProp) => void;
|
|
@@ -34,9 +40,20 @@ export type UseDropProps = {
|
|
|
34
40
|
export type DndStateProp = {
|
|
35
41
|
active: (UseDragProps & {
|
|
36
42
|
DragNodeRef: any;
|
|
43
|
+
isEnableDrag: boolean;
|
|
44
|
+
isDragging: boolean;
|
|
45
|
+
rect: DOMRect | null;
|
|
37
46
|
}) | null;
|
|
38
47
|
over: (UseDropProps & {
|
|
39
48
|
setDropNodeRef: any;
|
|
49
|
+
isEnableDrop: boolean;
|
|
50
|
+
dragStatus: {
|
|
51
|
+
isDragOver: boolean;
|
|
52
|
+
isDrop: boolean;
|
|
53
|
+
};
|
|
54
|
+
rect: DOMRect | null;
|
|
40
55
|
}) | null;
|
|
41
56
|
DragPreviewCreateRoot?: any;
|
|
57
|
+
draggables?: DndStateProp['active'][];
|
|
58
|
+
droppables?: DndStateProp['over'][];
|
|
42
59
|
};
|
|
@@ -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: {
|