@kanunilabs/pivotgrid 1.0.2 → 1.1.0

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.
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { PivotField, PivotCell, PivotEngineResult, PivotLayoutState, PivotTheme, PivotLocale, PivotDictionary, PivotStateStoringConfig, PivotToolbarConfig, PivotControllerOptions, PivotController } from '@kanunilabs/pivotgrid-core';
1
+ import { PivotField, PivotCell, PivotEngineResult, PivotLayoutState, PivotTheme, PivotColumnWidthDefaults, PivotLocale, PivotDictionary, PivotStateStoringConfig, PivotToolbarConfig, PivotControllerOptions, PivotController } from '@kanunilabs/pivotgrid-core';
2
2
  export { ExportFormat, ExportOptions, FilterCondition, FilterGroup, FilterOperator, PivotArea, PivotController, PivotControllerOptions, PivotControllerState, PivotDictionary, PivotEngineResult, PivotField, PivotGroupInterval, PivotLayoutState, PivotLocale, PivotPrefilter, PivotStateStoringConfig, PivotSummaryDisplayMode, PivotSummaryType, PivotTheme, PivotToolbarConfig, defaultPivotLayout, getAdvancedExporter, registerAdvancedExporter } from '@kanunilabs/pivotgrid-core';
3
3
 
4
4
  /**
@@ -58,7 +58,6 @@ interface VanillaCellClickEvent {
58
58
  records?: unknown[];
59
59
  }
60
60
 
61
- /** …and the width React's grip starts its drag from. Ported quirk, see below. */
62
61
  /** The vanilla cell-prepared contract: text is a string or a Node, never JSX. */
63
62
  interface VanillaCellConfig {
64
63
  text: string | Node | null;
@@ -163,6 +162,13 @@ interface PivotGridVanillaConfig<TRow = unknown> {
163
162
  layout?: PivotLayoutState;
164
163
  theme?: PivotTheme;
165
164
  striped?: boolean;
165
+ /**
166
+ * Starting widths in pixels: `{ rowHeader, data }` for every row-header
167
+ * column and every data column. Defaults 150 and 95. A width the user drags
168
+ * (or `controller.setColumnWidths` writes) still wins; see
169
+ * `PivotControllerState.columnWidths` for its keys.
170
+ */
171
+ defaultColumnWidths?: PivotColumnWidthDefaults;
166
172
  locale?: PivotLocale;
167
173
  rtl?: boolean;
168
174
  dictionary?: Partial<PivotDictionary>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PivotField, PivotCell, PivotEngineResult, PivotLayoutState, PivotTheme, PivotLocale, PivotDictionary, PivotStateStoringConfig, PivotToolbarConfig, PivotControllerOptions, PivotController } from '@kanunilabs/pivotgrid-core';
1
+ import { PivotField, PivotCell, PivotEngineResult, PivotLayoutState, PivotTheme, PivotColumnWidthDefaults, PivotLocale, PivotDictionary, PivotStateStoringConfig, PivotToolbarConfig, PivotControllerOptions, PivotController } from '@kanunilabs/pivotgrid-core';
2
2
  export { ExportFormat, ExportOptions, FilterCondition, FilterGroup, FilterOperator, PivotArea, PivotController, PivotControllerOptions, PivotControllerState, PivotDictionary, PivotEngineResult, PivotField, PivotGroupInterval, PivotLayoutState, PivotLocale, PivotPrefilter, PivotStateStoringConfig, PivotSummaryDisplayMode, PivotSummaryType, PivotTheme, PivotToolbarConfig, defaultPivotLayout, getAdvancedExporter, registerAdvancedExporter } from '@kanunilabs/pivotgrid-core';
3
3
 
4
4
  /**
@@ -58,7 +58,6 @@ interface VanillaCellClickEvent {
58
58
  records?: unknown[];
59
59
  }
60
60
 
61
- /** …and the width React's grip starts its drag from. Ported quirk, see below. */
62
61
  /** The vanilla cell-prepared contract: text is a string or a Node, never JSX. */
63
62
  interface VanillaCellConfig {
64
63
  text: string | Node | null;
@@ -163,6 +162,13 @@ interface PivotGridVanillaConfig<TRow = unknown> {
163
162
  layout?: PivotLayoutState;
164
163
  theme?: PivotTheme;
165
164
  striped?: boolean;
165
+ /**
166
+ * Starting widths in pixels: `{ rowHeader, data }` for every row-header
167
+ * column and every data column. Defaults 150 and 95. A width the user drags
168
+ * (or `controller.setColumnWidths` writes) still wins; see
169
+ * `PivotControllerState.columnWidths` for its keys.
170
+ */
171
+ defaultColumnWidths?: PivotColumnWidthDefaults;
166
172
  locale?: PivotLocale;
167
173
  rtl?: boolean;
168
174
  dictionary?: Partial<PivotDictionary>;