@databrainhq/plugin 0.7.16 → 0.7.18

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.
@@ -23,6 +23,18 @@ export declare type CustomSettings = {
23
23
  dateFormatter: string;
24
24
  numberFormatter: string;
25
25
  };
26
+ export declare type TableSettings = {
27
+ contentAlignment: string;
28
+ lineGap: string;
29
+ hideVerticalDivider: boolean;
30
+ enableStripedRows: boolean;
31
+ showRowHover: boolean;
32
+ showTableTitle: boolean;
33
+ showTableDesc: boolean;
34
+ enableTableSearch: boolean;
35
+ enableFilter: boolean;
36
+ enableSorting: boolean;
37
+ };
26
38
  export declare type BackgroundSettings = {
27
39
  show: boolean;
28
40
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, RlsCondition, FloatingDropDownOption } from './app';
2
+ import { AxisSettings, BackgroundSettings, CustomSettings, LabelSettings, LegendSettings, RlsCondition, FloatingDropDownOption, TableSettings } from './app';
3
3
  declare type ColumnData = {
4
4
  name: string;
5
5
  datatype: string;
@@ -101,6 +101,8 @@ export declare type MetricOutputProps = {
101
101
  enableQueryTab?: boolean;
102
102
  backGroundColor: BackgroundSettings;
103
103
  setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
104
+ tableSettings: TableSettings;
105
+ setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
104
106
  rlsConditions?: RlsCondition[] | undefined;
105
107
  onChangeFilterValue?: (name: string, value: string) => void;
106
108
  moreTabs?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databrainhq/plugin",
3
- "version": "0.7.16",
3
+ "version": "0.7.18",
4
4
  "description": "Databrain app dashboard ui plugin.",
5
5
  "author": "",
6
6
  "license": "MIT",