react-semaphor 0.0.476 → 0.0.478

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.
@@ -74,6 +74,40 @@ export declare type ColorRange = {
74
74
  color: string;
75
75
  };
76
76
 
77
+ declare interface ColorRange_2 {
78
+ min: number;
79
+ max: number;
80
+ color: string;
81
+ applyTo: 'cell' | 'row';
82
+ }
83
+
84
+ declare interface ColumnSettings {
85
+ type: 'none' | 'text' | 'number' | 'date' | 'badge' | 'link' | 'progress';
86
+ textAlign: 'left' | 'center' | 'right';
87
+ width: string;
88
+ textWrap: 'wrap' | 'nowrap';
89
+ numberFormat: {
90
+ style: 'decimal' | 'currency' | 'percent';
91
+ currency: string;
92
+ locale: string;
93
+ minimumFractionDigits: number;
94
+ maximumFractionDigits: number;
95
+ showDataBar: boolean;
96
+ dataBarColor: string;
97
+ dataBarMinValue?: number;
98
+ dataBarMaxValue?: number;
99
+ };
100
+ dateFormat: {
101
+ format: string;
102
+ useCustomFormat: boolean;
103
+ customFormat: string;
104
+ useRelativeTime: boolean;
105
+ };
106
+ colorRanges: ColorRange_2[];
107
+ }
108
+
109
+ declare type ColumnSettingsMap = Record<string, ColumnSettings>;
110
+
77
111
  declare type ColumnType = 'string' | 'number' | 'date';
78
112
 
79
113
  export declare type ConnectionPolicy = {
@@ -365,6 +399,12 @@ export declare type StyleProps = {
365
399
 
366
400
  export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element;
367
401
 
402
+ declare type TablePreferences = {
403
+ columnSettingsMap?: ColumnSettingsMap;
404
+ selectColumnVisible?: boolean;
405
+ columnVisibility?: Record<string, boolean>;
406
+ };
407
+
368
408
  export declare type TBaseQuery = {
369
409
  id: string;
370
410
  name: string;
@@ -422,6 +462,7 @@ export declare type TCardPreferences = {
422
462
  datasetOptions?: TDatasetOptions[];
423
463
  chartOptions?: TChartOptions;
424
464
  columnSettings?: TColumnSetting<DisplayDataType>[];
465
+ tablePrefs?: TablePreferences;
425
466
  allowDownload?: boolean;
426
467
  customVisualCode?: string;
427
468
  textVisualOptions?: {
@@ -73,6 +73,40 @@ export declare type ColorRange = {
73
73
  color: string;
74
74
  };
75
75
 
76
+ declare interface ColorRange_2 {
77
+ min: number;
78
+ max: number;
79
+ color: string;
80
+ applyTo: 'cell' | 'row';
81
+ }
82
+
83
+ declare interface ColumnSettings {
84
+ type: 'none' | 'text' | 'number' | 'date' | 'badge' | 'link' | 'progress';
85
+ textAlign: 'left' | 'center' | 'right';
86
+ width: string;
87
+ textWrap: 'wrap' | 'nowrap';
88
+ numberFormat: {
89
+ style: 'decimal' | 'currency' | 'percent';
90
+ currency: string;
91
+ locale: string;
92
+ minimumFractionDigits: number;
93
+ maximumFractionDigits: number;
94
+ showDataBar: boolean;
95
+ dataBarColor: string;
96
+ dataBarMinValue?: number;
97
+ dataBarMaxValue?: number;
98
+ };
99
+ dateFormat: {
100
+ format: string;
101
+ useCustomFormat: boolean;
102
+ customFormat: string;
103
+ useRelativeTime: boolean;
104
+ };
105
+ colorRanges: ColorRange_2[];
106
+ }
107
+
108
+ declare type ColumnSettingsMap = Record<string, ColumnSettings>;
109
+
76
110
  declare type ColumnType = 'string' | 'number' | 'date';
77
111
 
78
112
  export declare type ConnectionPolicy = {
@@ -357,6 +391,12 @@ export declare type StyleProps = {
357
391
  };
358
392
  };
359
393
 
394
+ declare type TablePreferences = {
395
+ columnSettingsMap?: ColumnSettingsMap;
396
+ selectColumnVisible?: boolean;
397
+ columnVisibility?: Record<string, boolean>;
398
+ };
399
+
360
400
  export declare type TBaseQuery = {
361
401
  id: string;
362
402
  name: string;
@@ -414,6 +454,7 @@ export declare type TCardPreferences = {
414
454
  datasetOptions?: TDatasetOptions[];
415
455
  chartOptions?: TChartOptions;
416
456
  columnSettings?: TColumnSetting<DisplayDataType>[];
457
+ tablePrefs?: TablePreferences;
417
458
  allowDownload?: boolean;
418
459
  customVisualCode?: string;
419
460
  textVisualOptions?: {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.476",
8
+ "version": "0.0.478",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -67,7 +67,7 @@
67
67
  "@radix-ui/react-scroll-area": "^1.2.2",
68
68
  "@radix-ui/react-select": "^2.1.4",
69
69
  "@radix-ui/react-separator": "^1.1.1",
70
- "@radix-ui/react-slot": "^1.1.1",
70
+ "@radix-ui/react-slot": "^1.2.2",
71
71
  "@radix-ui/react-switch": "^1.1.2",
72
72
  "@radix-ui/react-tabs": "^1.1.2",
73
73
  "@radix-ui/react-toggle": "^1.1.1",