@nice2dev/ui-buildings 1.1.7 → 1.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/CHANGELOG.md +152 -0
- package/dist/index.cjs +37 -37
- package/dist/index.d.ts +17 -10
- package/dist/index.mjs +4400 -4137
- package/dist/ui-buildings.css +1 -1
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -218,6 +218,13 @@ export declare interface BuildingZone {
|
|
|
218
218
|
deviceIds?: BuildingId[];
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
export declare interface BuildingZoneOccupancy {
|
|
222
|
+
zoneId: BuildingId;
|
|
223
|
+
occupied: boolean;
|
|
224
|
+
count?: number;
|
|
225
|
+
lastUpdated: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
221
228
|
export declare interface CameraState {
|
|
222
229
|
streaming: boolean;
|
|
223
230
|
recording: boolean;
|
|
@@ -257,7 +264,7 @@ declare interface DeviceControlAction {
|
|
|
257
264
|
transitionMs?: number;
|
|
258
265
|
}
|
|
259
266
|
|
|
260
|
-
export declare type DeviceProtocol = 'zigbee' | 'z-wave' | 'wifi' | 'bluetooth' | 'matter' | 'thread' | 'knx' | 'modbus' | 'cloud' | 'local_api' | 'other';
|
|
267
|
+
export declare type DeviceProtocol = 'zigbee' | 'z-wave' | 'wifi' | 'bluetooth' | 'matter' | 'thread' | 'knx' | 'modbus' | 'mqtt' | 'cloud' | 'local_api' | 'other';
|
|
261
268
|
|
|
262
269
|
declare type DeviceState = LightState | ThermostatState | LockState | BlindState | SwitchState | CameraState | AlarmState | SensorState | ClimateState | MediaPlayerState | EnergyMeterState | Record<string, unknown>;
|
|
263
270
|
|
|
@@ -710,8 +717,8 @@ export declare interface NiceSpatialEditorProps extends TracelessStorageProps {
|
|
|
710
717
|
export declare const NiceSpatialViewer: default_2.FC<NiceSpatialViewerProps>;
|
|
711
718
|
|
|
712
719
|
declare interface NiceSpatialViewerProps {
|
|
713
|
-
/** Floor plan document to display. */
|
|
714
|
-
document
|
|
720
|
+
/** Floor plan document to display. Optional: without one the viewer shows an empty plan. */
|
|
721
|
+
document?: FloorPlanDocument;
|
|
715
722
|
/** Initial floor ID to show. */
|
|
716
723
|
initialFloorId?: string;
|
|
717
724
|
/** Show navigation panel. */
|
|
@@ -841,7 +848,7 @@ export declare interface OccupancySensorState {
|
|
|
841
848
|
export declare interface OccupancyStats {
|
|
842
849
|
totalOccupied: number;
|
|
843
850
|
totalZones: number;
|
|
844
|
-
byZone:
|
|
851
|
+
byZone: BuildingZoneOccupancy[];
|
|
845
852
|
peakToday?: number;
|
|
846
853
|
peakTime?: string;
|
|
847
854
|
hourlyToday?: number[];
|
|
@@ -1197,12 +1204,12 @@ export declare interface ViewportState {
|
|
|
1197
1204
|
snapModes: SnapMode[];
|
|
1198
1205
|
}
|
|
1199
1206
|
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1207
|
+
/**
|
|
1208
|
+
* @deprecated Use `BuildingZoneOccupancy`. `@nice2dev/events` exports a different
|
|
1209
|
+
* `ZoneOccupancy` (venue capacity), so importing both packages collided; this alias is
|
|
1210
|
+
* removed in 1.2.0.
|
|
1211
|
+
*/
|
|
1212
|
+
export declare type ZoneOccupancy = BuildingZoneOccupancy;
|
|
1206
1213
|
|
|
1207
1214
|
export declare type ZoneType = 'living_room' | 'bedroom' | 'master_bedroom' | 'kids_room' | 'bathroom' | 'kitchen' | 'dining_room' | 'hallway' | 'office' | 'garage' | 'basement' | 'attic' | 'balcony' | 'garden' | 'laundry' | 'storage' | 'gym' | 'cinema' | 'open_office' | 'private_office' | 'meeting_room' | 'boardroom' | 'reception' | 'waiting_area' | 'server_room' | 'it_room' | 'break_room' | 'lobby' | 'corridor' | 'stairwell' | 'parking' | 'cafeteria' | 'mechanical_room' | 'other';
|
|
1208
1215
|
|