@toolbox-web/grid 1.31.1 → 1.31.2

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.
@@ -285,3 +285,23 @@ export declare function buildGridDOMIntoElement(renderRoot: Element, shellConfig
285
285
  expand?: IconValue;
286
286
  collapse?: IconValue;
287
287
  }): boolean;
288
+ /**
289
+ * Surgically rebuild only the shell wrapper (header + tool panel) while
290
+ * preserving the existing `.tbw-grid-root` element and its `.tbw-grid-content`
291
+ * child with all descendants and event listeners intact.
292
+ *
293
+ * This avoids the full `replaceChildren()` nuke that `buildGridDOMIntoElement`
294
+ * performs, so event listeners bound to `.tbw-grid-root` or its grid content
295
+ * descendants (e.g. tooltip's delegated mouseover) remain intact.
296
+ *
297
+ * If no existing `.tbw-grid-root` is found (first render), falls back to
298
+ * `buildGridDOMIntoElement` for a full rebuild.
299
+ */
300
+ export declare function rebuildShellDOM(renderRoot: Element, shellConfig: ShellConfig | undefined, runtimeState: {
301
+ isPanelOpen: boolean;
302
+ expandedSections: Set<string>;
303
+ }, icons?: {
304
+ toolPanel?: IconValue;
305
+ expand?: IconValue;
306
+ collapse?: IconValue;
307
+ }): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolbox-web/grid",
3
- "version": "1.31.1",
3
+ "version": "1.31.2",
4
4
  "description": "Zero-dependency, framework-agnostic data grid web component with virtualization, sorting, filtering, editing, and 20+ plugins. Works in vanilla JS, React, Vue, Angular, and any framework.",
5
5
  "type": "module",
6
6
  "main": "./index.js",