@kanunilabs/pivotgrid 1.2.2 → 1.4.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/README.md +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +3 -3
- package/dist/pivotgrid.umd.js +11 -11
- package/dist/styles.css +199 -15
- package/dist/themes/all.css +1064 -0
- package/dist/themes/amber.css +28 -0
- package/dist/themes/aubergine.css +32 -0
- package/dist/themes/azure.css +28 -0
- package/dist/themes/burgundy.css +32 -0
- package/dist/themes/charcoal.css +32 -0
- package/dist/themes/contrast-dark.css +32 -0
- package/dist/themes/contrast-light.css +28 -0
- package/dist/themes/coral.css +28 -0
- package/dist/themes/corporate.css +28 -0
- package/dist/themes/deep-sea.css +32 -0
- package/dist/themes/editorial.css +28 -0
- package/dist/themes/ember.css +32 -0
- package/dist/themes/emerald.css +28 -0
- package/dist/themes/forest.css +32 -0
- package/dist/themes/glacier.css +28 -0
- package/dist/themes/graphite.css +32 -0
- package/dist/themes/indigo-night.css +32 -0
- package/dist/themes/indigo.css +28 -0
- package/dist/themes/ivory.css +28 -0
- package/dist/themes/lagoon.css +28 -0
- package/dist/themes/linen.css +28 -0
- package/dist/themes/midnight.css +32 -0
- package/dist/themes/mist.css +28 -0
- package/dist/themes/monochrome.css +28 -0
- package/dist/themes/onyx.css +32 -0
- package/dist/themes/orchid.css +28 -0
- package/dist/themes/porcelain.css +28 -0
- package/dist/themes/rose.css +28 -0
- package/dist/themes/sandstone.css +28 -0
- package/dist/themes/slate-night.css +32 -0
- package/dist/themes/slate.css +28 -0
- package/dist/themes/steel.css +32 -0
- package/dist/themes/stone.css +28 -0
- package/dist/themes/taupe.css +28 -0
- package/dist/themes/teal.css +28 -0
- package/dist/themes/terminal.css +32 -0
- package/package.json +6 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PivotField, PivotCell, PivotEngineResult, PivotControllerOptions, PivotLayoutState, PivotTheme, PivotColumnWidthDefaults, PivotLocale, PivotDictionary, PivotStateStoringConfig, PivotToolbarConfig, PivotController, PivotRowTransaction, PivotTransactionResult } from '@kanunilabs/pivotgrid-core';
|
|
2
|
-
export { ExportFormat, ExportOptions, FilterCondition, FilterGroup, FilterOperator, PivotArea, PivotController, PivotControllerOptions, PivotControllerState, PivotDictionary, PivotEngineResult, PivotField, PivotGroupInterval, PivotLayoutState, PivotLocale, PivotPrefilter, PivotRowKey, PivotRowKeyResolver, PivotRowTransaction, PivotStateStoringConfig, PivotSummaryDisplayMode, PivotSummaryType, PivotTheme, PivotToolbarConfig, PivotTransactionResult, defaultPivotLayout, getAdvancedExporter, registerAdvancedExporter } from '@kanunilabs/pivotgrid-core';
|
|
1
|
+
import { PivotField, PivotCell, PivotEngineResult, PivotControllerOptions, PivotLayoutState, PivotTheme, PivotDensity, PivotColumnWidthDefaults, PivotLocale, PivotDictionary, PivotStateStoringConfig, PivotToolbarConfig, PivotController, PivotRowTransaction, PivotTransactionResult } from '@kanunilabs/pivotgrid-core';
|
|
2
|
+
export { ExportFormat, ExportOptions, FilterCondition, FilterGroup, FilterOperator, PivotArea, PivotController, PivotControllerOptions, PivotControllerState, PivotDictionary, PivotEngineResult, PivotField, PivotGroupInterval, PivotLabelFilter, PivotLayoutState, PivotLocale, PivotPrefilter, PivotRowKey, PivotRowKeyResolver, PivotRowTransaction, PivotStateStoringConfig, PivotSummaryDisplayMode, PivotSummaryType, PivotTheme, PivotToolbarConfig, PivotTransactionResult, PivotValueFilter, defaultPivotLayout, getAdvancedExporter, registerAdvancedExporter } from '@kanunilabs/pivotgrid-core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A themed portal host: carries the grid root's classes, inline theme vars,
|
|
@@ -169,6 +169,8 @@ interface PivotGridVanillaConfig<TRow = unknown> {
|
|
|
169
169
|
data: TRow[];
|
|
170
170
|
/** What identifies a row for `applyTransaction` — a field name or a function. */
|
|
171
171
|
rowKey?: PivotControllerOptions<TRow>['rowKey'];
|
|
172
|
+
/** How long `applyTransactionAsync` collects transactions before applying them together. Default 50 ms. */
|
|
173
|
+
asyncTransactionWait?: number;
|
|
172
174
|
initialFields?: PivotField<TRow>[];
|
|
173
175
|
/** Controlled fields — same semantics as the React `fields` prop. */
|
|
174
176
|
fields?: PivotField<TRow>[];
|
|
@@ -176,6 +178,12 @@ interface PivotGridVanillaConfig<TRow = unknown> {
|
|
|
176
178
|
layout?: PivotLayoutState;
|
|
177
179
|
theme?: PivotTheme;
|
|
178
180
|
striped?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Row rhythm: `'compact'` (24px rows, one size smaller type), `'normal'`
|
|
183
|
+
* (28px, the default) or `'comfortable'` (36px). Change it later with
|
|
184
|
+
* `setDensity`.
|
|
185
|
+
*/
|
|
186
|
+
density?: PivotDensity;
|
|
179
187
|
/**
|
|
180
188
|
* Starting widths in pixels: `{ rowHeader, data }` for every row-header
|
|
181
189
|
* column and every data column. Defaults 150 and 95. A width the user drags
|
|
@@ -257,8 +265,18 @@ interface PivotGridApi<TRow = unknown> {
|
|
|
257
265
|
* `PivotController.applyTransaction`. Rows are matched by the `rowKey` option.
|
|
258
266
|
*/
|
|
259
267
|
applyTransaction(transaction: PivotRowTransaction<TRow>): PivotTransactionResult;
|
|
268
|
+
/**
|
|
269
|
+
* Queue a transaction; queued ones are merged and applied together after
|
|
270
|
+
* `asyncTransactionWait` ms — for a feed that ticks many times a second.
|
|
271
|
+
* See `PivotController.applyTransactionAsync`.
|
|
272
|
+
*/
|
|
273
|
+
applyTransactionAsync(transaction: PivotRowTransaction<TRow>, callback?: () => void): void;
|
|
274
|
+
/** Apply the queued transactions now. */
|
|
275
|
+
flushAsyncTransactions(): void;
|
|
260
276
|
setFields(fields: PivotField<TRow>[]): void;
|
|
261
277
|
setLocale(locale: PivotLocale, dictionary?: Partial<PivotDictionary>, rtl?: boolean): void;
|
|
278
|
+
/** Switch the row rhythm (`compact` / `normal` / `comfortable`) and repaint. */
|
|
279
|
+
setDensity(density: PivotDensity | undefined): void;
|
|
262
280
|
}
|
|
263
281
|
declare function createPivotGrid<TRow = unknown>(container: HTMLElement, config: PivotGridVanillaConfig<TRow>): PivotGridApi<TRow>;
|
|
264
282
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PivotField, PivotCell, PivotEngineResult, PivotControllerOptions, PivotLayoutState, PivotTheme, PivotColumnWidthDefaults, PivotLocale, PivotDictionary, PivotStateStoringConfig, PivotToolbarConfig, PivotController, PivotRowTransaction, PivotTransactionResult } from '@kanunilabs/pivotgrid-core';
|
|
2
|
-
export { ExportFormat, ExportOptions, FilterCondition, FilterGroup, FilterOperator, PivotArea, PivotController, PivotControllerOptions, PivotControllerState, PivotDictionary, PivotEngineResult, PivotField, PivotGroupInterval, PivotLayoutState, PivotLocale, PivotPrefilter, PivotRowKey, PivotRowKeyResolver, PivotRowTransaction, PivotStateStoringConfig, PivotSummaryDisplayMode, PivotSummaryType, PivotTheme, PivotToolbarConfig, PivotTransactionResult, defaultPivotLayout, getAdvancedExporter, registerAdvancedExporter } from '@kanunilabs/pivotgrid-core';
|
|
1
|
+
import { PivotField, PivotCell, PivotEngineResult, PivotControllerOptions, PivotLayoutState, PivotTheme, PivotDensity, PivotColumnWidthDefaults, PivotLocale, PivotDictionary, PivotStateStoringConfig, PivotToolbarConfig, PivotController, PivotRowTransaction, PivotTransactionResult } from '@kanunilabs/pivotgrid-core';
|
|
2
|
+
export { ExportFormat, ExportOptions, FilterCondition, FilterGroup, FilterOperator, PivotArea, PivotController, PivotControllerOptions, PivotControllerState, PivotDictionary, PivotEngineResult, PivotField, PivotGroupInterval, PivotLabelFilter, PivotLayoutState, PivotLocale, PivotPrefilter, PivotRowKey, PivotRowKeyResolver, PivotRowTransaction, PivotStateStoringConfig, PivotSummaryDisplayMode, PivotSummaryType, PivotTheme, PivotToolbarConfig, PivotTransactionResult, PivotValueFilter, defaultPivotLayout, getAdvancedExporter, registerAdvancedExporter } from '@kanunilabs/pivotgrid-core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A themed portal host: carries the grid root's classes, inline theme vars,
|
|
@@ -169,6 +169,8 @@ interface PivotGridVanillaConfig<TRow = unknown> {
|
|
|
169
169
|
data: TRow[];
|
|
170
170
|
/** What identifies a row for `applyTransaction` — a field name or a function. */
|
|
171
171
|
rowKey?: PivotControllerOptions<TRow>['rowKey'];
|
|
172
|
+
/** How long `applyTransactionAsync` collects transactions before applying them together. Default 50 ms. */
|
|
173
|
+
asyncTransactionWait?: number;
|
|
172
174
|
initialFields?: PivotField<TRow>[];
|
|
173
175
|
/** Controlled fields — same semantics as the React `fields` prop. */
|
|
174
176
|
fields?: PivotField<TRow>[];
|
|
@@ -176,6 +178,12 @@ interface PivotGridVanillaConfig<TRow = unknown> {
|
|
|
176
178
|
layout?: PivotLayoutState;
|
|
177
179
|
theme?: PivotTheme;
|
|
178
180
|
striped?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Row rhythm: `'compact'` (24px rows, one size smaller type), `'normal'`
|
|
183
|
+
* (28px, the default) or `'comfortable'` (36px). Change it later with
|
|
184
|
+
* `setDensity`.
|
|
185
|
+
*/
|
|
186
|
+
density?: PivotDensity;
|
|
179
187
|
/**
|
|
180
188
|
* Starting widths in pixels: `{ rowHeader, data }` for every row-header
|
|
181
189
|
* column and every data column. Defaults 150 and 95. A width the user drags
|
|
@@ -257,8 +265,18 @@ interface PivotGridApi<TRow = unknown> {
|
|
|
257
265
|
* `PivotController.applyTransaction`. Rows are matched by the `rowKey` option.
|
|
258
266
|
*/
|
|
259
267
|
applyTransaction(transaction: PivotRowTransaction<TRow>): PivotTransactionResult;
|
|
268
|
+
/**
|
|
269
|
+
* Queue a transaction; queued ones are merged and applied together after
|
|
270
|
+
* `asyncTransactionWait` ms — for a feed that ticks many times a second.
|
|
271
|
+
* See `PivotController.applyTransactionAsync`.
|
|
272
|
+
*/
|
|
273
|
+
applyTransactionAsync(transaction: PivotRowTransaction<TRow>, callback?: () => void): void;
|
|
274
|
+
/** Apply the queued transactions now. */
|
|
275
|
+
flushAsyncTransactions(): void;
|
|
260
276
|
setFields(fields: PivotField<TRow>[]): void;
|
|
261
277
|
setLocale(locale: PivotLocale, dictionary?: Partial<PivotDictionary>, rtl?: boolean): void;
|
|
278
|
+
/** Switch the row rhythm (`compact` / `normal` / `comfortable`) and repaint. */
|
|
279
|
+
setDensity(density: PivotDensity | undefined): void;
|
|
262
280
|
}
|
|
263
281
|
declare function createPivotGrid<TRow = unknown>(container: HTMLElement, config: PivotGridVanillaConfig<TRow>): PivotGridApi<TRow>;
|
|
264
282
|
|