@kanunilabs/pivotgrid 1.4.0 → 1.5.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
@@ -205,6 +205,17 @@ interface PivotGridVanillaConfig<TRow = unknown> {
205
205
  enabled: boolean;
206
206
  };
207
207
  disabled?: boolean;
208
+ /**
209
+ * A search box in the footer: shows only the row members whose caption
210
+ * contains the text, on top of the reader's own filters. Default false.
211
+ * `grid.setSearchText(text)` works either way.
212
+ */
213
+ search?: boolean;
214
+ /**
215
+ * Most column members drawn (default 1000); past it the grid says so and
216
+ * totals still count all the data. `0` or `Infinity` turns the cap off.
217
+ */
218
+ maxColumns?: number;
208
219
  /** Extra class on the root element. */
209
220
  className?: string;
210
221
  /**
@@ -277,6 +288,8 @@ interface PivotGridApi<TRow = unknown> {
277
288
  setLocale(locale: PivotLocale, dictionary?: Partial<PivotDictionary>, rtl?: boolean): void;
278
289
  /** Switch the row rhythm (`compact` / `normal` / `comfortable`) and repaint. */
279
290
  setDensity(density: PivotDensity | undefined): void;
291
+ /** Quick search over the row members; `''` clears it. See `PivotController.setSearchText`. */
292
+ setSearchText(text: string): void;
280
293
  }
281
294
  declare function createPivotGrid<TRow = unknown>(container: HTMLElement, config: PivotGridVanillaConfig<TRow>): PivotGridApi<TRow>;
282
295
 
package/dist/index.d.ts CHANGED
@@ -205,6 +205,17 @@ interface PivotGridVanillaConfig<TRow = unknown> {
205
205
  enabled: boolean;
206
206
  };
207
207
  disabled?: boolean;
208
+ /**
209
+ * A search box in the footer: shows only the row members whose caption
210
+ * contains the text, on top of the reader's own filters. Default false.
211
+ * `grid.setSearchText(text)` works either way.
212
+ */
213
+ search?: boolean;
214
+ /**
215
+ * Most column members drawn (default 1000); past it the grid says so and
216
+ * totals still count all the data. `0` or `Infinity` turns the cap off.
217
+ */
218
+ maxColumns?: number;
208
219
  /** Extra class on the root element. */
209
220
  className?: string;
210
221
  /**
@@ -277,6 +288,8 @@ interface PivotGridApi<TRow = unknown> {
277
288
  setLocale(locale: PivotLocale, dictionary?: Partial<PivotDictionary>, rtl?: boolean): void;
278
289
  /** Switch the row rhythm (`compact` / `normal` / `comfortable`) and repaint. */
279
290
  setDensity(density: PivotDensity | undefined): void;
291
+ /** Quick search over the row members; `''` clears it. See `PivotController.setSearchText`. */
292
+ setSearchText(text: string): void;
280
293
  }
281
294
  declare function createPivotGrid<TRow = unknown>(container: HTMLElement, config: PivotGridVanillaConfig<TRow>): PivotGridApi<TRow>;
282
295