@richardmcquiston01/dashboard-widgets-toolkit 0.5.0 → 0.6.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/react.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { D as DashboardWidget, W as WidgetSize, a as WidgetFill, G as GraphWidgetData, N as NiceDomain, b as WidgetDefinition, c as DetailProviderOptions, d as DetailData, e as DetailQuery, L as Locale, f as DashboardLayout, A as AlertListWidgetData, B as BarListWidgetData, g as GaugeWidgetData, K as KpiWidgetData, T as TableWidgetData, h as TextWidgetData, i as WidgetData, R as ResolveOptions, j as WidgetContext, k as WidgetProviders } from './scale-dWDGE1zW.cjs';
2
+ import { D as DashboardWidget, W as WidgetSize, a as WidgetFill, G as GraphWidgetData, N as NiceDomain, b as WidgetDefinition, c as DetailProviderOptions, d as DetailData, e as DetailQuery, L as Locale, f as DashboardLayout, A as AlertListWidgetData, B as BarListWidgetData, g as GaugeWidgetData, K as KpiWidgetData, T as TableWidgetData, R as ResolvedTableControls, h as TextWidgetData, i as WidgetData, j as ResolveOptions, k as WidgetContext, l as WidgetProviders } from './scale-D51ZGIF4.cjs';
3
3
 
4
4
  interface WidgetCardProps {
5
5
  readonly title: string;
@@ -298,8 +298,10 @@ declare function GaugeWidget({ data, }: {
298
298
  readonly data: GaugeWidgetData;
299
299
  }): ReactNode;
300
300
  /** TABLE: a data table; cells with a safe `href` become links. */
301
- declare function TableWidget({ data, }: {
301
+ declare function TableWidget({ data, controls, }: {
302
302
  readonly data: TableWidgetData;
303
+ /** Search box and sortable headers; see `WidgetDefinition.tableControls`. */
304
+ readonly controls?: ResolvedTableControls | undefined;
303
305
  }): ReactNode;
304
306
  /**
305
307
  * BAR_LIST: labelled horizontal bars. One series, so one color (slot 1)
@@ -313,8 +315,10 @@ declare function AlertListWidget({ data, }: {
313
315
  readonly data: AlertListWidgetData;
314
316
  }): ReactNode;
315
317
  /** Renders any payload with the renderer for its kind. */
316
- declare function WidgetContent({ data, }: {
318
+ declare function WidgetContent({ data, tableControls, }: {
317
319
  readonly data: WidgetData;
320
+ /** Search and sort for TABLE data; see `resolveTableControls`. */
321
+ readonly tableControls?: ResolvedTableControls | undefined;
318
322
  }): ReactNode;
319
323
 
320
324
  interface UseWidgetsOptions extends ResolveOptions {
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { D as DashboardWidget, W as WidgetSize, a as WidgetFill, G as GraphWidgetData, N as NiceDomain, b as WidgetDefinition, c as DetailProviderOptions, d as DetailData, e as DetailQuery, L as Locale, f as DashboardLayout, A as AlertListWidgetData, B as BarListWidgetData, g as GaugeWidgetData, K as KpiWidgetData, T as TableWidgetData, h as TextWidgetData, i as WidgetData, R as ResolveOptions, j as WidgetContext, k as WidgetProviders } from './scale-dWDGE1zW.js';
2
+ import { D as DashboardWidget, W as WidgetSize, a as WidgetFill, G as GraphWidgetData, N as NiceDomain, b as WidgetDefinition, c as DetailProviderOptions, d as DetailData, e as DetailQuery, L as Locale, f as DashboardLayout, A as AlertListWidgetData, B as BarListWidgetData, g as GaugeWidgetData, K as KpiWidgetData, T as TableWidgetData, R as ResolvedTableControls, h as TextWidgetData, i as WidgetData, j as ResolveOptions, k as WidgetContext, l as WidgetProviders } from './scale-D51ZGIF4.js';
3
3
 
4
4
  interface WidgetCardProps {
5
5
  readonly title: string;
@@ -298,8 +298,10 @@ declare function GaugeWidget({ data, }: {
298
298
  readonly data: GaugeWidgetData;
299
299
  }): ReactNode;
300
300
  /** TABLE: a data table; cells with a safe `href` become links. */
301
- declare function TableWidget({ data, }: {
301
+ declare function TableWidget({ data, controls, }: {
302
302
  readonly data: TableWidgetData;
303
+ /** Search box and sortable headers; see `WidgetDefinition.tableControls`. */
304
+ readonly controls?: ResolvedTableControls | undefined;
303
305
  }): ReactNode;
304
306
  /**
305
307
  * BAR_LIST: labelled horizontal bars. One series, so one color (slot 1)
@@ -313,8 +315,10 @@ declare function AlertListWidget({ data, }: {
313
315
  readonly data: AlertListWidgetData;
314
316
  }): ReactNode;
315
317
  /** Renders any payload with the renderer for its kind. */
316
- declare function WidgetContent({ data, }: {
318
+ declare function WidgetContent({ data, tableControls, }: {
317
319
  readonly data: WidgetData;
320
+ /** Search and sort for TABLE data; see `resolveTableControls`. */
321
+ readonly tableControls?: ResolvedTableControls | undefined;
318
322
  }): ReactNode;
319
323
 
320
324
  interface UseWidgetsOptions extends ResolveOptions {