feat(eco-view-peripherals): encapsulate networkRanges as internal @state and add public getter/setter methods
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@ecobridge.xyz/catalog',
|
||||
version: '3.35.0',
|
||||
version: '3.36.0',
|
||||
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
||||
}
|
||||
|
||||
@@ -527,12 +527,26 @@ export class EcoViewPeripherals extends DeesElement {
|
||||
@property({ type: String })
|
||||
accessor activeCategory: TPeripheralCategory = 'all';
|
||||
|
||||
@property({ type: Array })
|
||||
@state()
|
||||
accessor networkRanges: INetworkRange[] = [];
|
||||
|
||||
@state()
|
||||
accessor isScanning = false;
|
||||
|
||||
/**
|
||||
* Set the initial network ranges (e.g., loaded from backend)
|
||||
*/
|
||||
public setNetworkRanges(ranges: INetworkRange[]): void {
|
||||
this.networkRanges = [...ranges];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current network ranges
|
||||
*/
|
||||
public getNetworkRanges(): INetworkRange[] {
|
||||
return [...this.networkRanges];
|
||||
}
|
||||
|
||||
@state()
|
||||
accessor newNetworkInput = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user