@databrainhq/plugin 0.9.39 → 0.9.41

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.
@@ -12,7 +12,6 @@ type Props = {
12
12
  endDate: Date;
13
13
  timeGrainValue: string;
14
14
  };
15
- className?: string;
16
15
  };
17
16
  declare const DateRangePicker: React.FC<Props>;
18
17
  export default DateRangePicker;
@@ -5,6 +5,8 @@ export type FilterFieldType = {
5
5
  value?: string | string[] | number | number[] | boolean | boolean[] | null;
6
6
  as?: string;
7
7
  defaultValues?: any;
8
+ filterType?: 'global' | 'horizontal';
9
+ isFilterApplied?: boolean;
8
10
  };
9
11
  export type FilterFieldProps = {
10
12
  tableName: string;
@@ -7,6 +7,7 @@ type NumberFieldProps = {
7
7
  name: string;
8
8
  isDefault?: boolean | undefined;
9
9
  label?: string;
10
+ isShowHorizontal?: boolean;
10
11
  };
11
12
  defaultValues?: {
12
13
  min: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  type IconsProps = {
3
- name: 'data-exploration-icon' | 'dashboard-icon' | 'external-dashboard-icon' | 'sql-query-icon' | 'table-tab-icon' | 'visualization-icon' | 'arrow-back-icon' | 'logout-icon' | 'more-icon' | 'save-icon' | 'copy-icon' | 'dataset-icon' | 'filter-icon' | 'settings-icon' | 'info-icon' | 'schema-icon' | 'fullscreen-icon' | 'table-icon' | 'time-taken-icon' | 'setup-icon' | 'data-model-icon' | 'integration-icon' | 'external-dashboard-icon' | 'csv-icon' | 'iframe-icon' | 'dashboard-icon' | 'plus-icon' | 'checked-icon' | 'clone-icon' | 'close-icon' | 'double-arrow-left-icon' | 'double-arrow-right-icon' | 'metric-store-icon' | 'reset-icon' | 'play-icon' | 'tick-icon' | 'text-icon' | 'time-icon' | 'unknown-icon' | 'array-icon' | 'date-icon' | 'boolean-icon' | 'id-icon' | 'number-icon' | 'object-icon' | 'delete-icon' | 'plus-icon-2';
3
+ name: 'data-exploration-icon' | 'dashboard-icon' | 'external-dashboard-icon' | 'sql-query-icon' | 'table-tab-icon' | 'visualization-icon' | 'arrow-back-icon' | 'logout-icon' | 'more-icon' | 'save-icon' | 'copy-icon' | 'dataset-icon' | 'filter-icon' | 'settings-icon' | 'info-icon' | 'schema-icon' | 'fullscreen-icon' | 'table-icon' | 'time-taken-icon' | 'setup-icon' | 'data-model-icon' | 'integration-icon' | 'external-dashboard-icon' | 'csv-icon' | 'iframe-icon' | 'dashboard-icon' | 'plus-icon' | 'checked-icon' | 'clone-icon' | 'close-icon' | 'double-arrow-left-icon' | 'double-arrow-right-icon' | 'metric-store-icon' | 'reset-icon' | 'play-icon' | 'tick-icon' | 'text-icon' | 'time-icon' | 'unknown-icon' | 'array-icon' | 'date-icon' | 'boolean-icon' | 'id-icon' | 'number-icon' | 'object-icon' | 'delete-icon' | 'plus-icon-2' | 'horizontal-more-icon';
4
4
  className?: string;
5
5
  };
6
6
  export declare const Icons: React.FC<IconsProps>;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { Layout } from 'react-grid-layout';
2
3
  import { MetricCardProps } from './components';
3
4
  import { ClientType } from '@/types/app';
4
5
  import { ThemeType } from '@/utils/theme';
@@ -12,10 +13,10 @@ export type ExternalMetricListProps = {
12
13
  isAllowedToUpdateMetrics?: boolean;
13
14
  isAllowedToDeleteMetrics?: boolean;
14
15
  isAllowedToChangeLayout?: boolean;
15
- isLiveMode: boolean;
16
16
  isMetricListLoading?: boolean;
17
17
  breakpoint: ThemeType['breakpoint'];
18
18
  layoutCols: ThemeType['metricLayoutCols'];
19
+ adminLayout: Layout[];
19
20
  externalDashboardMetrics?: EmbeddedDashboardMetricsQuery['externalDashboardMetrics'];
20
21
  params?: any;
21
22
  companyTenancyType: string;
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  type NoDataLoadingProps = {
3
3
  isDataLength: boolean;
4
4
  isLoading: boolean;
5
+ isSingleValue: string | undefined;
6
+ dataDb: Record<string, any>;
5
7
  };
6
- export declare const NoDataLoading: React.MemoExoticComponent<({ isDataLength, isLoading }: NoDataLoadingProps) => JSX.Element>;
8
+ export declare const NoDataLoading: React.MemoExoticComponent<({ isDataLength, isLoading, isSingleValue, dataDb }: NoDataLoadingProps) => JSX.Element>;
7
9
  export {};
@@ -4,7 +4,7 @@ export type UseClientDashboardLayoutProps = {
4
4
  clientId: string;
5
5
  };
6
6
  export declare const useClientDashboardLayout: ({ externalDashboardId, clientId, }: UseClientDashboardLayoutProps) => {
7
- saveLayout: (newLayout: Layout[]) => Promise<void>;
7
+ saveLayout: (newLayout: Layout[], isChangedByClient?: boolean) => Promise<void>;
8
8
  layout: Layout[];
9
9
  isLayoutLocked: boolean;
10
10
  };
@@ -14,6 +14,7 @@ interface DashboardContextType {
14
14
  __typename?: 'externalDashboards' | undefined;
15
15
  id: any;
16
16
  filters: any;
17
+ layout: any[];
17
18
  } | undefined;
18
19
  rlsSettings: any | undefined;
19
20
  companyTenancyType: any;
@@ -47,6 +47,7 @@ export declare const useEmbeddedDashboard: (token: string) => {
47
47
  __typename?: "externalDashboards" | undefined;
48
48
  id: any;
49
49
  filters: any;
50
+ layout: any;
50
51
  } | undefined;
51
52
  externalDashboardId: any;
52
53
  rlsSettings: any;