@aquera/nile-elements 0.1.73-beta-1.4 → 0.1.73-beta-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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.1.73-beta-1.4",
6
+ "version": "0.1.73-beta-1.6",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -29,7 +29,7 @@ import { HasSlotController } from '../internal/slot';
29
29
  import { waitForEvent } from '../internal/event';
30
30
  import { watch } from '../internal/watch';
31
31
  import NileElement from '../internal/nile-element';
32
- import type { CSSResultGroup, TemplateResult } from 'lit';
32
+ import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
33
33
  import type { NileFormControl } from '../internal/nile-element';
34
34
  import type NileOption from '../nile-option/nile-option';
35
35
  import type NilePopup from '../nile-popup/nile-popup';
@@ -279,6 +279,12 @@ export class NileVirtualSelect extends NileElement implements NileFormControl {
279
279
  }
280
280
  }
281
281
 
282
+ protected updated(changedProperties: PropertyValues): void {
283
+ if(changedProperties.has('value')) {
284
+ this.selectionChanged();
285
+ }
286
+ }
287
+
282
288
  private initializeComponent(): void {
283
289
  this.open = false;
284
290
  this.emit('nile-init');
@@ -97,9 +97,9 @@ export class VirtualSelectRenderer {
97
97
 
98
98
  /**
99
99
  * Determines whether to use virtualizer based on dataset size
100
- * For small datasets (less than 50 items), use regular rendering for better sizing
100
+ * For small datasets (less than 5 items), use regular rendering for better sizing
101
101
  */
102
102
  private static shouldUseVirtualizer(data: any[]): boolean {
103
- return data.length >= 50;
103
+ return data.length >= 5;
104
104
  }
105
105
  }