@omnigrid/core 0.1.9 → 0.1.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/grid.d.ts +1 -3
- package/dist/grid.js +1 -2
- package/dist/types.d.ts +0 -2
- package/package.json +1 -1
package/dist/grid.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconRegistry } from "./icons";
|
|
2
2
|
import { SlotManager } from "./slots";
|
|
3
3
|
import type { DataProcessor, GridApi, GridEvents, GridOptions, GridPlugin, GridState, RowClickEvent, RowHoverEvent, RowId, ScrollPosition, SlotMount, SlotName, ViewportData, ViewportState } from "./types";
|
|
4
|
-
import type { OverlayOptions, OverlayState
|
|
4
|
+
import type { OverlayOptions, OverlayState } from "./overlays";
|
|
5
5
|
export declare class Grid<T> implements GridApi<T> {
|
|
6
6
|
private readonly store;
|
|
7
7
|
private readonly events;
|
|
@@ -64,8 +64,6 @@ export declare class Grid<T> implements GridApi<T> {
|
|
|
64
64
|
registerPlugin(plugin: GridPlugin<T>): () => void;
|
|
65
65
|
getSlotMounts(slot: SlotName): SlotMount<T>[];
|
|
66
66
|
showOverlay(options: OverlayOptions): void;
|
|
67
|
-
/** @deprecated Use the options-object overload. */
|
|
68
|
-
showOverlay(type: OverlayType, payload?: unknown): void;
|
|
69
67
|
hideOverlay(): void;
|
|
70
68
|
getOverlayState(): OverlayState;
|
|
71
69
|
setLoading(isLoading: boolean, error?: unknown): void;
|
package/dist/grid.js
CHANGED
|
@@ -318,9 +318,8 @@ export class Grid {
|
|
|
318
318
|
getSlotMounts(slot) {
|
|
319
319
|
return this.slots.getMounts(slot);
|
|
320
320
|
}
|
|
321
|
-
showOverlay(
|
|
321
|
+
showOverlay(options) {
|
|
322
322
|
this.assertActive();
|
|
323
|
-
const options = typeof optionsOrType === "string" ? { type: optionsOrType, payload } : optionsOrType;
|
|
324
323
|
this.overlayManual = true;
|
|
325
324
|
this.overlayState = { ...options };
|
|
326
325
|
this.store.setState({ overlay: { ...this.overlayState } });
|
package/dist/types.d.ts
CHANGED
|
@@ -463,8 +463,6 @@ export interface GridApi<T> {
|
|
|
463
463
|
* @api
|
|
464
464
|
*/
|
|
465
465
|
showOverlay(options: OverlayOptions): void;
|
|
466
|
-
/** @deprecated Use the options-object overload. */
|
|
467
|
-
showOverlay(type: OverlayType, payload?: unknown): void;
|
|
468
466
|
/**
|
|
469
467
|
* Hides the current overlay and re-enables automatic overlay evaluation
|
|
470
468
|
* based on the Data Pipeline state.
|