@nyx-ds/treeview 0.1.5 → 0.1.6

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.
@@ -1,4 +1,4 @@
1
- import { LitElement, TemplateResult } from "lit";
1
+ import { LitElement, TemplateResult, type PropertyValues } from "lit";
2
2
  import { EventDispatcher } from "./event";
3
3
  import "@lit-labs/virtualizer";
4
4
  import "@nyx-ds/input";
@@ -238,9 +238,14 @@ export declare class NyxTreeview extends LitElement {
238
238
  private _indexById;
239
239
  private _sourceById;
240
240
  private _lazyScrollLoading;
241
+ private _lazyVisibleFirst;
242
+ private _lazyVisibleLast;
243
+ private _scrollbarGutter;
241
244
  private _searchIndex;
242
245
  private _searchIndexSourceRef;
243
246
  private _searchDebounceTimer;
247
+ private _selectionStatsById;
248
+ private _selectionStatsDirty;
244
249
  onChange: EventDispatcher<{
245
250
  items: ITreeNode[];
246
251
  }>;
@@ -261,11 +266,17 @@ export declare class NyxTreeview extends LitElement {
261
266
  private _selectionRoots;
262
267
  /** Full source node for selection UI/state (lazy materialized nodes may omit children). */
263
268
  private _selectionNode;
269
+ private _invalidateSelectionStats;
270
+ private _prepareSelectionStatsCache;
271
+ private _buildSelectionStats;
272
+ private _getSelectionStats;
264
273
  private _invalidateSearchIndex;
265
274
  /** Clears search-derived sets so a data source swap cannot reuse stale ids. */
266
275
  private _resetSearchDerivedState;
267
276
  private _ensureSearchIndex;
268
277
  disconnectedCallback(): void;
278
+ protected updated(changedProperties: PropertyValues<this>): void;
279
+ private _syncScrollbarGutter;
269
280
  private _findNodeById;
270
281
  private _forEachInSubtree;
271
282
  private _getSourceChildren;
@@ -295,7 +306,6 @@ export declare class NyxTreeview extends LitElement {
295
306
  private _getTreeAriaLabel;
296
307
  private _renderTreeRow;
297
308
  private _renderExpanderCell;
298
- private _renderNodeTypeIcon;
299
309
  private _generateLightDomIcons;
300
310
  private _createIconElement;
301
311
  private _expandToLevel;
@@ -312,12 +322,16 @@ export declare class NyxTreeview extends LitElement {
312
322
  private _handleCheck;
313
323
  private _toggleNodeState;
314
324
  private _updateParents;
325
+ private _updateLazyColumnAncestors;
326
+ private _updateColumnAncestors;
315
327
  private _isRowAllSelected;
316
328
  private _isRowIndeterminate;
317
329
  private _isSimpleRowAllSelected;
318
330
  private _isSimpleRowIndeterminate;
319
331
  private _setSimpleRowSelected;
320
332
  private _updateSimpleRowParents;
333
+ private _updateLazySimpleRowAncestors;
334
+ private _updateSimpleRowAncestors;
321
335
  private _isRowCheckboxChecked;
322
336
  private _isRowCheckboxIndeterminate;
323
337
  private _setUniqueRowSelected;