react-semaphor 0.0.602 → 0.0.604

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-DaQzKbBt.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-BCYkzhJl.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
@@ -1,4 +1,4 @@
1
- import { D as f } from "../chunks/dashboard-plus-C77hCbZC.js";
1
+ import { D as f } from "../chunks/dashboard-plus-DLNR8UT-.js";
2
2
  import { EMPTY_SELECTION as a } from "../types/index.js";
3
3
  export {
4
4
  a as EMPTY_SELECTION,
@@ -1,3 +1,4 @@
1
+ import { ColumnSizingState } from '@tanstack/react-table';
1
2
  import { FontSpec } from 'chart.js';
2
3
  import { JSX as JSX_2 } from 'react/jsx-runtime';
3
4
 
@@ -192,7 +193,10 @@ declare interface ColorRange_2 {
192
193
  declare interface ColumnSettings {
193
194
  type: 'none' | 'text' | 'number' | 'date' | 'badge' | 'link' | 'progress';
194
195
  textAlign: 'left' | 'center' | 'right';
195
- width: string;
196
+ width: number;
197
+ minWidth?: number;
198
+ maxWidth?: number;
199
+ textOverflow?: 'ellipsis' | 'wrap' | 'clip';
196
200
  textWrap: 'wrap' | 'nowrap';
197
201
  numberFormat: {
198
202
  style: 'decimal' | 'currency' | 'percent';
@@ -816,6 +820,7 @@ declare type TablePreferences = {
816
820
  columnSettingsMap?: ColumnSettingsMap;
817
821
  selectColumnVisible?: boolean;
818
822
  columnVisibility?: Record<string, boolean>;
823
+ columnSizing?: ColumnSizingState;
819
824
  pageSize?: number;
820
825
  enableDevModePagination?: boolean;
821
826
  };
@@ -3,6 +3,7 @@ import { AIScopeTable as AIScopeTable_2 } from '..';
3
3
  import { CacheConfig as CacheConfig_2 } from '..';
4
4
  import { Chart } from 'chart.js';
5
5
  import { ChartConfiguration } from 'chart.js';
6
+ import { ColumnSizingState } from '@tanstack/react-table';
6
7
  import { ComboBoxOption as ComboBoxOption_2 } from '../../components/surfboard/filter/types';
7
8
  import { CustomCard as CustomCard_2 } from '..';
8
9
  import { DateRange } from 'react-day-picker';
@@ -409,7 +410,10 @@ export declare type ColumnRole = 'groupby' | 'trendby' | 'metric' | 'filter';
409
410
  declare interface ColumnSettings {
410
411
  type: 'none' | 'text' | 'number' | 'date' | 'badge' | 'link' | 'progress';
411
412
  textAlign: 'left' | 'center' | 'right';
412
- width: string;
413
+ width: number;
414
+ minWidth?: number;
415
+ maxWidth?: number;
416
+ textOverflow?: 'ellipsis' | 'wrap' | 'clip';
413
417
  textWrap: 'wrap' | 'nowrap';
414
418
  numberFormat: {
415
419
  style: 'decimal' | 'currency' | 'percent';
@@ -1398,6 +1402,7 @@ export declare function Surfboard({ showControls, showFooter, ...rest }: Dashboa
1398
1402
  declare interface TableActions {
1399
1403
  updateColumnSettingsMap: (columnSettings: ColumnSettingsMap) => void;
1400
1404
  updateColumnVisibility: (columnId: string, isVisible: boolean) => void;
1405
+ updateColumnSizing: (sizing: ColumnSizingState) => void;
1401
1406
  updatePageSize: (pageSize: number) => void;
1402
1407
  showAllColumns: () => void;
1403
1408
  hideAllColumns: () => void;
@@ -1419,6 +1424,7 @@ declare type TablePreferences = {
1419
1424
  columnSettingsMap?: ColumnSettingsMap;
1420
1425
  selectColumnVisible?: boolean;
1421
1426
  columnVisibility?: Record<string, boolean>;
1427
+ columnSizing?: ColumnSizingState;
1422
1428
  pageSize?: number;
1423
1429
  enableDevModePagination?: boolean;
1424
1430
  };
@@ -1,3 +1,4 @@
1
+ import { ColumnSizingState } from '@tanstack/react-table';
1
2
  import { FontSpec } from 'chart.js';
2
3
  import { JSX as JSX_2 } from 'react/jsx-runtime';
3
4
 
@@ -192,7 +193,10 @@ declare interface ColorRange_2 {
192
193
  declare interface ColumnSettings {
193
194
  type: 'none' | 'text' | 'number' | 'date' | 'badge' | 'link' | 'progress';
194
195
  textAlign: 'left' | 'center' | 'right';
195
- width: string;
196
+ width: number;
197
+ minWidth?: number;
198
+ maxWidth?: number;
199
+ textOverflow?: 'ellipsis' | 'wrap' | 'clip';
196
200
  textWrap: 'wrap' | 'nowrap';
197
201
  numberFormat: {
198
202
  style: 'decimal' | 'currency' | 'percent';
@@ -821,6 +825,7 @@ declare type TablePreferences = {
821
825
  columnSettingsMap?: ColumnSettingsMap;
822
826
  selectColumnVisible?: boolean;
823
827
  columnVisibility?: Record<string, boolean>;
828
+ columnSizing?: ColumnSizingState;
824
829
  pageSize?: number;
825
830
  enableDevModePagination?: boolean;
826
831
  };
@@ -1,3 +1,4 @@
1
+ import { ColumnSizingState } from '@tanstack/react-table';
1
2
  import { FontSpec } from 'chart.js';
2
3
 
3
4
  export declare type AggregateCalc = 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'COUNT' | 'COUNT_DISTINCT';
@@ -191,7 +192,10 @@ declare interface ColorRange_2 {
191
192
  declare interface ColumnSettings {
192
193
  type: 'none' | 'text' | 'number' | 'date' | 'badge' | 'link' | 'progress';
193
194
  textAlign: 'left' | 'center' | 'right';
194
- width: string;
195
+ width: number;
196
+ minWidth?: number;
197
+ maxWidth?: number;
198
+ textOverflow?: 'ellipsis' | 'wrap' | 'clip';
195
199
  textWrap: 'wrap' | 'nowrap';
196
200
  numberFormat: {
197
201
  style: 'decimal' | 'currency' | 'percent';
@@ -813,6 +817,7 @@ declare type TablePreferences = {
813
817
  columnSettingsMap?: ColumnSettingsMap;
814
818
  selectColumnVisible?: boolean;
815
819
  columnVisibility?: Record<string, boolean>;
820
+ columnSizing?: ColumnSizingState;
816
821
  pageSize?: number;
817
822
  enableDevModePagination?: boolean;
818
823
  };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.602",
8
+ "version": "0.0.604",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",