@kanunilabs/pivotgrid 1.6.8 → 1.6.10

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,5 +1,6 @@
1
+ import * as _kanunilabs_pivotgrid_core from '@kanunilabs/pivotgrid-core';
1
2
  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
+ 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, PivotVirtualizationOptions, defaultPivotLayout, getAdvancedExporter, registerAdvancedExporter } from '@kanunilabs/pivotgrid-core';
3
4
 
4
5
  /**
5
6
  * A themed portal host: carries the grid root's classes, inline theme vars,
@@ -162,6 +163,8 @@ interface ResolvedI18n {
162
163
  rtl: boolean;
163
164
  dictionary: PivotDictionary;
164
165
  t: (key: string) => string;
166
+ /** The language's own `blanks` text, never '': the spoken name of a list row an app shows as '' (B.94). */
167
+ defaultBlanks: string;
165
168
  }
166
169
  declare function resolveI18n(locale?: PivotLocale, dictionary?: Partial<PivotDictionary>, rtl?: boolean): ResolvedI18n;
167
170
  /**
@@ -268,6 +271,18 @@ interface PivotGridVanillaConfig<TRow = unknown> {
268
271
  onGlobalContextMenu?: (x: number, y: number) => void;
269
272
  /** Per-cell hook before a data/header cell hits the DOM — mutate `cellConfig`. */
270
273
  onCellPrepared?: (e: VanillaCellPreparedEvent) => void;
274
+ /**
275
+ * Ctrl/Cmd+C copied the selected cells (B.99): the tab-separated `text`, the same cells as an `html` table, and the
276
+ * size. The copy goes through the browser's own copy event, so it works on a plain-HTTP page too.
277
+ */
278
+ onCopy?: (event: _kanunilabs_pivotgrid_core.PivotCopyInfo) => void;
279
+ /**
280
+ * A Ctrl/Cmd+C did not reach the clipboard (B.99): `reason` is `'insecure-context'`, `'permission-denied'`,
281
+ * `'empty-selection'` (the focus was in the grid with nothing selected) or `'unsupported'`. The grid shows nothing.
282
+ */
283
+ onCopyError?: (error: _kanunilabs_pivotgrid_core.PivotCopyError, info: {
284
+ reason: _kanunilabs_pivotgrid_core.PivotCopyErrorReason;
285
+ }) => void;
271
286
  /**
272
287
  * Extra items appended to a field's context menu (the React
273
288
  * `customContextMenuItems` prop). The React `icon` is a ReactNode; here it
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import * as _kanunilabs_pivotgrid_core from '@kanunilabs/pivotgrid-core';
1
2
  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
+ 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, PivotVirtualizationOptions, defaultPivotLayout, getAdvancedExporter, registerAdvancedExporter } from '@kanunilabs/pivotgrid-core';
3
4
 
4
5
  /**
5
6
  * A themed portal host: carries the grid root's classes, inline theme vars,
@@ -162,6 +163,8 @@ interface ResolvedI18n {
162
163
  rtl: boolean;
163
164
  dictionary: PivotDictionary;
164
165
  t: (key: string) => string;
166
+ /** The language's own `blanks` text, never '': the spoken name of a list row an app shows as '' (B.94). */
167
+ defaultBlanks: string;
165
168
  }
166
169
  declare function resolveI18n(locale?: PivotLocale, dictionary?: Partial<PivotDictionary>, rtl?: boolean): ResolvedI18n;
167
170
  /**
@@ -268,6 +271,18 @@ interface PivotGridVanillaConfig<TRow = unknown> {
268
271
  onGlobalContextMenu?: (x: number, y: number) => void;
269
272
  /** Per-cell hook before a data/header cell hits the DOM — mutate `cellConfig`. */
270
273
  onCellPrepared?: (e: VanillaCellPreparedEvent) => void;
274
+ /**
275
+ * Ctrl/Cmd+C copied the selected cells (B.99): the tab-separated `text`, the same cells as an `html` table, and the
276
+ * size. The copy goes through the browser's own copy event, so it works on a plain-HTTP page too.
277
+ */
278
+ onCopy?: (event: _kanunilabs_pivotgrid_core.PivotCopyInfo) => void;
279
+ /**
280
+ * A Ctrl/Cmd+C did not reach the clipboard (B.99): `reason` is `'insecure-context'`, `'permission-denied'`,
281
+ * `'empty-selection'` (the focus was in the grid with nothing selected) or `'unsupported'`. The grid shows nothing.
282
+ */
283
+ onCopyError?: (error: _kanunilabs_pivotgrid_core.PivotCopyError, info: {
284
+ reason: _kanunilabs_pivotgrid_core.PivotCopyErrorReason;
285
+ }) => void;
271
286
  /**
272
287
  * Extra items appended to a field's context menu (the React
273
288
  * `customContextMenuItems` prop). The React `icon` is a ReactNode; here it