react-semaphor 0.0.549 → 0.0.551

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.
@@ -1,4 +1,4 @@
1
- import { D as f } from "../chunks/dashboard-plus-CTzt60G8.js";
1
+ import { D as f } from "../chunks/dashboard-plus-BiTdiJWG.js";
2
2
  import { EMPTY_SELECTION as a } from "../types/index.js";
3
3
  export {
4
4
  a as EMPTY_SELECTION,
@@ -809,6 +809,13 @@ export declare type TCardPreferences = {
809
809
  lowerIsBetter?: boolean;
810
810
  countryLogoId?: string;
811
811
  };
812
+ pivotTableOptions?: {
813
+ showRowTotals?: boolean;
814
+ showColumnTotals?: boolean;
815
+ showGrandTotal?: boolean;
816
+ sortRowsBy?: 'label' | 'total' | 'metric';
817
+ sortColumnsBy?: 'label' | 'total' | 'metric';
818
+ };
812
819
  };
813
820
 
814
821
  export declare type TChartOptions = {
@@ -846,7 +853,7 @@ export declare type TChartOptions = {
846
853
  };
847
854
  };
848
855
 
849
- declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'custom';
856
+ declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'custom';
850
857
 
851
858
  export declare type TColumnSetting<T extends DisplayDataType> = {
852
859
  columnIdx: number;
@@ -1091,6 +1091,16 @@ export declare interface PivotByField extends Field {
1091
1091
  role: 'pivotby';
1092
1092
  }
1093
1093
 
1094
+ export declare interface PivotColumnSchema {
1095
+ alias: string;
1096
+ metricId: string;
1097
+ metricName: string;
1098
+ metricLabel?: string;
1099
+ pivotValues: string[];
1100
+ pivotFields: string[];
1101
+ displayLabel?: string;
1102
+ }
1103
+
1094
1104
  export declare type Placeholders = {
1095
1105
  /**
1096
1106
  * Placeholder for the card when there are no records to display.
@@ -1352,6 +1362,13 @@ export declare type TCardPreferences = {
1352
1362
  lowerIsBetter?: boolean;
1353
1363
  countryLogoId?: string;
1354
1364
  };
1365
+ pivotTableOptions?: {
1366
+ showRowTotals?: boolean;
1367
+ showColumnTotals?: boolean;
1368
+ showGrandTotal?: boolean;
1369
+ sortRowsBy?: 'label' | 'total' | 'metric';
1370
+ sortColumnsBy?: 'label' | 'total' | 'metric';
1371
+ };
1355
1372
  };
1356
1373
 
1357
1374
  declare type TChartConfiguration = ChartConfiguration;
@@ -1391,7 +1408,7 @@ export declare type TChartOptions = {
1391
1408
  };
1392
1409
  };
1393
1410
 
1394
- declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'custom';
1411
+ declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'custom';
1395
1412
 
1396
1413
  export declare type TColumnSetting<T extends DisplayDataType> = {
1397
1414
  columnIdx: number;
@@ -814,6 +814,13 @@ export declare type TCardPreferences = {
814
814
  lowerIsBetter?: boolean;
815
815
  countryLogoId?: string;
816
816
  };
817
+ pivotTableOptions?: {
818
+ showRowTotals?: boolean;
819
+ showColumnTotals?: boolean;
820
+ showGrandTotal?: boolean;
821
+ sortRowsBy?: 'label' | 'total' | 'metric';
822
+ sortColumnsBy?: 'label' | 'total' | 'metric';
823
+ };
817
824
  };
818
825
 
819
826
  export declare type TChartOptions = {
@@ -851,7 +858,7 @@ export declare type TChartOptions = {
851
858
  };
852
859
  };
853
860
 
854
- declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'custom';
861
+ declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'custom';
855
862
 
856
863
  export declare type TColumnSetting<T extends DisplayDataType> = {
857
864
  columnIdx: number;
@@ -806,6 +806,13 @@ export declare type TCardPreferences = {
806
806
  lowerIsBetter?: boolean;
807
807
  countryLogoId?: string;
808
808
  };
809
+ pivotTableOptions?: {
810
+ showRowTotals?: boolean;
811
+ showColumnTotals?: boolean;
812
+ showGrandTotal?: boolean;
813
+ sortRowsBy?: 'label' | 'total' | 'metric';
814
+ sortColumnsBy?: 'label' | 'total' | 'metric';
815
+ };
809
816
  };
810
817
 
811
818
  export declare type TChartOptions = {
@@ -843,7 +850,7 @@ export declare type TChartOptions = {
843
850
  };
844
851
  };
845
852
 
846
- declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'custom';
853
+ declare type TChartType = 'bar' | 'horizontalBar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'pivotTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'map' | 'funnel' | 'custom';
847
854
 
848
855
  export declare type TColumnSetting<T extends DisplayDataType> = {
849
856
  columnIdx: number;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.549",
8
+ "version": "0.0.551",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",