@kanunilabs/pivotgrid-react 1.6.0 → 1.7.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.cjs +2 -2
- package/dist/index.d.cts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +2 -2
- package/dist/styles.css +50 -0
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -16,6 +16,12 @@ interface PivotGridRef extends PivotGridRef$1 {
|
|
|
16
16
|
* one column and keep the rest.
|
|
17
17
|
*/
|
|
18
18
|
setColumnWidths: (widths: Record<string, number>) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Quick search: show only the row members whose caption contains `text`
|
|
21
|
+
* (ignoring case and accents), with the members above them. `''` clears it.
|
|
22
|
+
* Works with or without the `search` box.
|
|
23
|
+
*/
|
|
24
|
+
setSearchText: (text: string) => void;
|
|
19
25
|
/**
|
|
20
26
|
* Add, update and remove rows without rebuilding the pivot (live updates).
|
|
21
27
|
* Rows are matched by the `rowKey` prop (by object identity without it); an
|
|
@@ -226,6 +232,17 @@ interface BasePivotGridProps<TRow> {
|
|
|
226
232
|
onError?: (error: Error) => void;
|
|
227
233
|
/** Disables all interactive features (drag & drop, expand/collapse, context menu, filtering, etc.) */
|
|
228
234
|
disabled?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* A search box in the footer: shows only the row members whose caption
|
|
237
|
+
* contains the text, on top of the reader's own filters. Default false.
|
|
238
|
+
* `ref.setSearchText(text)` works either way.
|
|
239
|
+
*/
|
|
240
|
+
search?: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Most column members drawn (default 1000); past it the grid says so and
|
|
243
|
+
* totals still count all the data. `0` or `Infinity` turns the cap off.
|
|
244
|
+
*/
|
|
245
|
+
maxColumns?: number;
|
|
229
246
|
/** Slot for injecting Enterprise Calculated Field Modal */
|
|
230
247
|
renderCalculatedFieldModal?: (props: any) => React__default.ReactNode;
|
|
231
248
|
/** Slot for injecting Enterprise Prefilter Builder */
|
|
@@ -346,8 +363,12 @@ interface PivotFooterProps {
|
|
|
346
363
|
* item — e.g. your pricing / Enterprise sales page.
|
|
347
364
|
*/
|
|
348
365
|
upgradeUrl?: string;
|
|
366
|
+
/** Present → the quick-search box is drawn; called with the typed text. */
|
|
367
|
+
onSearch?: (text: string) => void;
|
|
368
|
+
/** The search in effect, so one set through `ref.setSearchText` shows in the box. */
|
|
369
|
+
searchText?: string;
|
|
349
370
|
}
|
|
350
|
-
declare function PivotFooter({ onToggleFieldChooser, fieldChooserOpen, onRefresh, onExport, onImportFile, onImportFiles, onPasteImport, onExpandAll, onCollapseAll, onAddCalculatedField, onOpenPrefilter, onToggleChart, isFullscreen, onToggleFullscreen, reports, activeReportId, onSaveNewReport, onUpdateCurrentReport, onSaveAsReport, onLoadReport, onDeleteReport, onSetDefaultReport, onGlobalContextMenu, selectionStats, toolbarConfig, registry, advancedExport, upgradeUrl }: PivotFooterProps): React$1.JSX.Element;
|
|
371
|
+
declare function PivotFooter({ onToggleFieldChooser, fieldChooserOpen, onRefresh, onExport, onImportFile, onImportFiles, onPasteImport, onExpandAll, onCollapseAll, onAddCalculatedField, onOpenPrefilter, onToggleChart, isFullscreen, onToggleFullscreen, reports, activeReportId, onSaveNewReport, onUpdateCurrentReport, onSaveAsReport, onLoadReport, onDeleteReport, onSetDefaultReport, onGlobalContextMenu, selectionStats, toolbarConfig, registry, advancedExport, upgradeUrl, onSearch, searchText }: PivotFooterProps): React$1.JSX.Element;
|
|
351
372
|
|
|
352
373
|
type MoveDirection = 'start' | 'end' | 'left' | 'right';
|
|
353
374
|
interface PivotAreaStripsProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ interface PivotGridRef extends PivotGridRef$1 {
|
|
|
16
16
|
* one column and keep the rest.
|
|
17
17
|
*/
|
|
18
18
|
setColumnWidths: (widths: Record<string, number>) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Quick search: show only the row members whose caption contains `text`
|
|
21
|
+
* (ignoring case and accents), with the members above them. `''` clears it.
|
|
22
|
+
* Works with or without the `search` box.
|
|
23
|
+
*/
|
|
24
|
+
setSearchText: (text: string) => void;
|
|
19
25
|
/**
|
|
20
26
|
* Add, update and remove rows without rebuilding the pivot (live updates).
|
|
21
27
|
* Rows are matched by the `rowKey` prop (by object identity without it); an
|
|
@@ -226,6 +232,17 @@ interface BasePivotGridProps<TRow> {
|
|
|
226
232
|
onError?: (error: Error) => void;
|
|
227
233
|
/** Disables all interactive features (drag & drop, expand/collapse, context menu, filtering, etc.) */
|
|
228
234
|
disabled?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* A search box in the footer: shows only the row members whose caption
|
|
237
|
+
* contains the text, on top of the reader's own filters. Default false.
|
|
238
|
+
* `ref.setSearchText(text)` works either way.
|
|
239
|
+
*/
|
|
240
|
+
search?: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Most column members drawn (default 1000); past it the grid says so and
|
|
243
|
+
* totals still count all the data. `0` or `Infinity` turns the cap off.
|
|
244
|
+
*/
|
|
245
|
+
maxColumns?: number;
|
|
229
246
|
/** Slot for injecting Enterprise Calculated Field Modal */
|
|
230
247
|
renderCalculatedFieldModal?: (props: any) => React__default.ReactNode;
|
|
231
248
|
/** Slot for injecting Enterprise Prefilter Builder */
|
|
@@ -346,8 +363,12 @@ interface PivotFooterProps {
|
|
|
346
363
|
* item — e.g. your pricing / Enterprise sales page.
|
|
347
364
|
*/
|
|
348
365
|
upgradeUrl?: string;
|
|
366
|
+
/** Present → the quick-search box is drawn; called with the typed text. */
|
|
367
|
+
onSearch?: (text: string) => void;
|
|
368
|
+
/** The search in effect, so one set through `ref.setSearchText` shows in the box. */
|
|
369
|
+
searchText?: string;
|
|
349
370
|
}
|
|
350
|
-
declare function PivotFooter({ onToggleFieldChooser, fieldChooserOpen, onRefresh, onExport, onImportFile, onImportFiles, onPasteImport, onExpandAll, onCollapseAll, onAddCalculatedField, onOpenPrefilter, onToggleChart, isFullscreen, onToggleFullscreen, reports, activeReportId, onSaveNewReport, onUpdateCurrentReport, onSaveAsReport, onLoadReport, onDeleteReport, onSetDefaultReport, onGlobalContextMenu, selectionStats, toolbarConfig, registry, advancedExport, upgradeUrl }: PivotFooterProps): React$1.JSX.Element;
|
|
371
|
+
declare function PivotFooter({ onToggleFieldChooser, fieldChooserOpen, onRefresh, onExport, onImportFile, onImportFiles, onPasteImport, onExpandAll, onCollapseAll, onAddCalculatedField, onOpenPrefilter, onToggleChart, isFullscreen, onToggleFullscreen, reports, activeReportId, onSaveNewReport, onUpdateCurrentReport, onSaveAsReport, onLoadReport, onDeleteReport, onSetDefaultReport, onGlobalContextMenu, selectionStats, toolbarConfig, registry, advancedExport, upgradeUrl, onSearch, searchText }: PivotFooterProps): React$1.JSX.Element;
|
|
351
372
|
|
|
352
373
|
type MoveDirection = 'start' | 'end' | 'left' | 'right';
|
|
353
374
|
interface PivotAreaStripsProps {
|