@databrainhq/plugin 0.13.0-beta.14 → 0.13.0-beta.16

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.
@@ -18,6 +18,7 @@ type Props = {
18
18
  minDate?: Date;
19
19
  maxDate?: Date;
20
20
  buttonWidth?: string;
21
+ isEnableSingleDate?: boolean;
21
22
  };
22
23
  export declare const DateRangePicker: React.FC<Props>;
23
24
  export default DateRangePicker;
@@ -15,6 +15,7 @@ export type MenuProps = Pick<PopoverMenuProps, 'position' | 'menuWidth' | 'offse
15
15
  buttonWidth?: string;
16
16
  buttonContent?: React.ReactNode;
17
17
  items: MenuItem[];
18
+ disableAutoClose?: boolean;
18
19
  };
19
20
  /**
20
21
  * @name Menu - Showing custom actionable list in a popup.
@@ -27,4 +28,4 @@ export type MenuProps = Pick<PopoverMenuProps, 'position' | 'menuWidth' | 'offse
27
28
  * @prop position - Position of the popup menu.
28
29
  * @returns JSX to render the menu.
29
30
  */
30
- export declare const Menu: ({ buttonVariant, buttonIcon, buttonText, offset, position, menuWidth, buttonWidth, buttonContent, items, children, }: MenuProps) => React.JSX.Element;
31
+ export declare const Menu: ({ buttonVariant, buttonIcon, buttonText, offset, position, menuWidth, buttonWidth, buttonContent, items, children, disableAutoClose, }: MenuProps) => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ type RawCsvDownloadButtonProps = {
3
+ fileName: string;
4
+ companyIntegrationId: string;
5
+ integrationName: string;
6
+ query: string;
7
+ className?: string;
8
+ children?: React.ReactNode;
9
+ };
10
+ export declare const RawCsvDownloadButton: ({ fileName, companyIntegrationId, integrationName, query, className, children, }: RawCsvDownloadButtonProps) => React.JSX.Element;
11
+ export {};
@@ -1,3 +1,5 @@
1
1
  export * from './CsvDownloadButton';
2
2
  export * from './MetricChart';
3
3
  export * from './ChartImageDownloadButton';
4
+ export * from './PivotCsvDownloadButton';
5
+ export * from './RawCsvDownloadButton';
@@ -7,5 +7,8 @@ export type DownloadButtonProps = {
7
7
  metricName: string;
8
8
  onRawCsvData: () => void;
9
9
  chartOptions?: ChartSettingsType;
10
+ query: string;
11
+ companyIntegrationId: string;
12
+ integrationName: string;
10
13
  };
11
- export declare const DownloadButton: ({ data, chartRef, metricName, onRawCsvData, chartOptions, }: DownloadButtonProps) => React.JSX.Element;
14
+ export declare const DownloadButton: ({ data, chartRef, metricName, onRawCsvData, chartOptions, integrationName, companyIntegrationId, query, }: DownloadButtonProps) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ height?: string;
4
+ className?: string;
5
+ variant?: 'table' | 'card' | 'list';
6
+ };
7
+ export declare const SkeletonLoader: ({ height, className, variant }: Props) => React.JSX.Element;
8
+ export {};
@@ -5,6 +5,7 @@ type SwitchButtonProps = {
5
5
  placeholder?: string;
6
6
  defaultEnabled?: boolean;
7
7
  name?: string;
8
+ isDisabled?: boolean;
8
9
  };
9
10
  export declare const Switch: React.FC<SwitchButtonProps>;
10
11
  export {};
@@ -50,3 +50,4 @@ export * from './Menu';
50
50
  export * from './ChartTypePanel';
51
51
  export * from './Badge';
52
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;
@@ -86,4 +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", "full-join"];
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", "full-join", "version-history"];
@@ -1,7 +1,16 @@
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
+ };
9
+ export declare const replaceVariable: ({ query, rlsConditions, tenancyLevel, clientId, values, }: ReplaceVariable) => string;
2
10
  export declare const nameSpaceSpecification: (parentAlias: string, columnName: string, dbName: string) => string;
3
11
  export declare const getModifiedQuery: ({ rlsConditions, dbName, query, }: {
4
12
  rlsConditions: RlsCondition[];
5
13
  dbName: string;
6
14
  query: string;
7
15
  }) => string;
16
+ export {};
@@ -1,3 +1,12 @@
1
+ export type Modifiers = {
2
+ sorting?: {
3
+ isEnabled: boolean;
4
+ isEnabledAutoSort?: boolean;
5
+ sortingType: 'vertical' | 'horizontal';
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
  };