@dominevo/ui-library 0.0.0-stage → 0.1.0
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 +1363 -0
- package/README.md +18 -2
- package/assets/brand/dominevo-current.svg +1 -0
- package/assets/brand/dominevo-light.svg +1 -0
- package/assets/brand/dominevo-mono.svg +1 -0
- package/assets/brand/dominevo-primary.svg +1 -0
- package/dist/MaskShapeCanvas-C9cJlxvG.js +915 -0
- package/dist/MaskShapeCanvas-NCNwu9_5.cjs +915 -0
- package/dist/MotionZonesSettings-C2AIvd4c.js +410 -0
- package/dist/MotionZonesSettings-CPRH536-.cjs +410 -0
- package/dist/PrivacyMaskSettings-BLM8OfT5.cjs +433 -0
- package/dist/PrivacyMaskSettings-FNCxdQCg.js +433 -0
- package/dist/SceneMonitorEditor-Bj_BN2Ar.js +1052 -0
- package/dist/SceneMonitorEditor-CU24Au1r.cjs +1052 -0
- package/dist/chevron-down-B71qEdFG.js +121 -0
- package/dist/chevron-down-VnEXTuJa.cjs +132 -0
- package/dist/composites/DeviceRunsPanel.d.ts +23 -0
- package/dist/composites/accelerator-label.d.ts +17 -0
- package/dist/composites/account-sign-in-field.d.ts +17 -0
- package/dist/composites/adaptive-downlink.d.ts +202 -0
- package/dist/composites/addon-page-props.d.ts +44 -0
- package/dist/composites/addon-scoped-settings-form.d.ts +59 -0
- package/dist/composites/agent-step-editor.d.ts +56 -0
- package/dist/composites/app-shell/app-shell.d.ts +19 -0
- package/dist/composites/app-shell/index.d.ts +3 -0
- package/dist/composites/app-shell/sidebar-item.d.ts +11 -0
- package/dist/composites/app-shell/sidebar.d.ts +14 -0
- package/dist/composites/audio-classification-list.d.ts +21 -0
- package/dist/composites/audio-level-waveform.d.ts +36 -0
- package/dist/composites/audio-waveform.d.ts +21 -0
- package/dist/composites/battery-badge.d.ts +37 -0
- package/dist/composites/battery-details-list.d.ts +10 -0
- package/dist/composites/battery-details.d.ts +22 -0
- package/dist/composites/binary-battery.d.ts +8 -0
- package/dist/composites/breadcrumb.d.ts +26 -0
- package/dist/composites/camera-stream-player.d.ts +330 -0
- package/dist/composites/cap-link-cell.d.ts +30 -0
- package/dist/composites/cap-settings/AutotrackSection.d.ts +6 -0
- package/dist/composites/cap-settings/CameraGridLayoutEditor.d.ts +5 -0
- package/dist/composites/cap-settings/CoverageTrack.d.ts +30 -0
- package/dist/composites/cap-settings/EventBucketStrip.d.ts +26 -0
- package/dist/composites/cap-settings/EventHeatmap.d.ts +17 -0
- package/dist/composites/cap-settings/HomePresetPicker.d.ts +6 -0
- package/dist/composites/cap-settings/MaskShapeCanvas.d.ts +48 -0
- package/dist/composites/cap-settings/MotionZonesSettings.d.ts +3 -0
- package/dist/composites/cap-settings/NavigationPanel.d.ts +3 -0
- package/dist/composites/cap-settings/PowerMeterLine.d.ts +10 -0
- package/dist/composites/cap-settings/PrivacyMaskSettings.d.ts +3 -0
- package/dist/composites/cap-settings/PtzPanel.d.ts +15 -0
- package/dist/composites/cap-settings/RecordingBandsEditor.d.ts +46 -0
- package/dist/composites/cap-settings/RecordingPanel.d.ts +3 -0
- package/dist/composites/cap-settings/RecordingSettings.d.ts +14 -0
- package/dist/composites/cap-settings/RecordingTimeline.d.ts +34 -0
- package/dist/composites/cap-settings/SceneMonitorEditor.d.ts +5 -0
- package/dist/composites/cap-settings/SceneReferenceGallery.d.ts +37 -0
- package/dist/composites/cap-settings/SceneSettingsForm.d.ts +22 -0
- package/dist/composites/cap-settings/SourceCropCanvas.d.ts +73 -0
- package/dist/composites/cap-settings/TimelineControls.d.ts +25 -0
- package/dist/composites/cap-settings/camera-grid-layout.d.ts +120 -0
- package/dist/composites/cap-settings/event-thumb.d.ts +12 -0
- package/dist/composites/cap-settings/index.d.ts +23 -0
- package/dist/composites/cap-settings/privacy-mask-audio.d.ts +59 -0
- package/dist/composites/cap-settings/recording-config-form.d.ts +57 -0
- package/dist/composites/cap-settings/recording-spans.d.ts +22 -0
- package/dist/composites/cap-settings/recording-timeline-model.d.ts +129 -0
- package/dist/composites/cap-settings/scene-monitor-copy.d.ts +84 -0
- package/dist/composites/charts/BarSeries.d.ts +54 -0
- package/dist/composites/charts/Sparkline.d.ts +31 -0
- package/dist/composites/charts/StateTimeline.d.ts +49 -0
- package/dist/composites/charts/TimeSeriesChart.d.ts +57 -0
- package/dist/composites/charts/bar-series-model.d.ts +25 -0
- package/dist/composites/charts/chart-bands.d.ts +22 -0
- package/dist/composites/charts/chart-data.d.ts +89 -0
- package/dist/composites/charts/chart-frame.d.ts +53 -0
- package/dist/composites/charts/chart-palette.d.ts +46 -0
- package/dist/composites/charts/chart-scale.d.ts +29 -0
- package/dist/composites/charts/chart-tooltip-host.d.ts +27 -0
- package/dist/composites/charts/chart-tooltip-model.d.ts +178 -0
- package/dist/composites/charts/chart-uplot.d.ts +79 -0
- package/dist/composites/charts/chart-window.d.ts +19 -0
- package/dist/composites/charts/index.d.ts +16 -0
- package/dist/composites/charts/time-series-model.d.ts +50 -0
- package/dist/composites/charts/uplot-host.d.ts +42 -0
- package/dist/composites/client-network-sample.d.ts +56 -0
- package/dist/composites/clips/ClipBandBar.d.ts +46 -0
- package/dist/composites/clips/ClipPanel.d.ts +32 -0
- package/dist/composites/clips/ClipSourceLanes.d.ts +47 -0
- package/dist/composites/clips/ClipTile.d.ts +28 -0
- package/dist/composites/clips/ClipsSection.d.ts +109 -0
- package/dist/composites/clips/clip-band.d.ts +92 -0
- package/dist/composites/clips/clip-day-window.d.ts +13 -0
- package/dist/composites/clips/clip-source-options.d.ts +42 -0
- package/dist/composites/clips/clip-source-state.d.ts +64 -0
- package/dist/composites/clips/clip-still-retry.d.ts +50 -0
- package/dist/composites/clips/clip-thumbnail-fetch.d.ts +17 -0
- package/dist/composites/clips/clip-tile-media.d.ts +78 -0
- package/dist/composites/clips/clip-view-state.d.ts +87 -0
- package/dist/composites/code-block.d.ts +7 -0
- package/dist/composites/command-slider.d.ts +20 -0
- package/dist/composites/condition-kind-picker/ConditionKindPicker.d.ts +36 -0
- package/dist/composites/condition-kind-picker/condition-kind-icons.d.ts +4 -0
- package/dist/composites/condition-kind-picker/condition-kind-picker-model.d.ts +63 -0
- package/dist/composites/condition-kind-picker/index.d.ts +3 -0
- package/dist/composites/condition-kind-picker/use-recent-kinds.d.ts +11 -0
- package/dist/composites/config-discovered-select-field.d.ts +43 -0
- package/dist/composites/config-form-builder.d.ts +42 -0
- package/dist/composites/config-form-field.d.ts +80 -0
- package/dist/composites/config-icon-field.d.ts +12 -0
- package/dist/composites/config-instance-select-field.d.ts +32 -0
- package/dist/composites/config-secret-field.d.ts +65 -0
- package/dist/composites/confirm-action-button.d.ts +74 -0
- package/dist/composites/confirm-dialog.d.ts +79 -0
- package/dist/composites/consumable-level-badge.d.ts +63 -0
- package/dist/composites/copy-button.d.ts +27 -0
- package/dist/composites/data-records/data-records-hub.d.ts +9 -0
- package/dist/composites/data-records/data-records-model.d.ts +26 -0
- package/dist/composites/data-records/index.d.ts +2 -0
- package/dist/composites/data-table-filter-bar.d.ts +58 -0
- package/dist/composites/data-table-filter.d.ts +74 -0
- package/dist/composites/data-table-pager.d.ts +8 -0
- package/dist/composites/data-table-pagination.d.ts +31 -0
- package/dist/composites/data-table-selection.d.ts +15 -0
- package/dist/composites/data-table.d.ts +215 -0
- package/dist/composites/detection-canvas.d.ts +29 -0
- package/dist/composites/detection-colors.d.ts +24 -0
- package/dist/composites/detection-overlay.d.ts +35 -0
- package/dist/composites/detection-result-tree.d.ts +12 -0
- package/dist/composites/dev-shell.d.ts +21 -0
- package/dist/composites/device-activity-panel.d.ts +39 -0
- package/dist/composites/device-card/__fixtures__/actuations.d.ts +12 -0
- package/dist/composites/device-card/__fixtures__/alarm.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/appliance.d.ts +18 -0
- package/dist/composites/device-card/__fixtures__/climate.d.ts +15 -0
- package/dist/composites/device-card/__fixtures__/common.d.ts +21 -0
- package/dist/composites/device-card/__fixtures__/cover.d.ts +9 -0
- package/dist/composites/device-card/__fixtures__/energy-day.d.ts +3 -0
- package/dist/composites/device-card/__fixtures__/energy.d.ts +22 -0
- package/dist/composites/device-card/__fixtures__/fan.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/heat-pump.d.ts +13 -0
- package/dist/composites/device-card/__fixtures__/heater.d.ts +11 -0
- package/dist/composites/device-card/__fixtures__/humidifier.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/ir.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/light.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/lock.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/media.d.ts +11 -0
- package/dist/composites/device-card/__fixtures__/pet.d.ts +11 -0
- package/dist/composites/device-card/__fixtures__/pie-readings.d.ts +14 -0
- package/dist/composites/device-card/__fixtures__/plug.d.ts +19 -0
- package/dist/composites/device-card/__fixtures__/robot.d.ts +9 -0
- package/dist/composites/device-card/__fixtures__/sensor.d.ts +3 -0
- package/dist/composites/device-card/__fixtures__/siren.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/valve.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/water-heater.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/wave-d-common.d.ts +11 -0
- package/dist/composites/device-card/__fixtures__/wave-e.d.ts +29 -0
- package/dist/composites/device-card/__fixtures__/weather-station.d.ts +10 -0
- package/dist/composites/device-card/__fixtures__/weather.d.ts +10 -0
- package/dist/composites/device-card/card-css.d.ts +8 -0
- package/dist/composites/device-card/connected/ConnectedActionCards.d.ts +11 -0
- package/dist/composites/device-card/connected/ConnectedAlarmCard.d.ts +8 -0
- package/dist/composites/device-card/connected/ConnectedApplianceCard.d.ts +9 -0
- package/dist/composites/device-card/connected/ConnectedCameraCard.d.ts +41 -0
- package/dist/composites/device-card/connected/ConnectedClimateCard.d.ts +7 -0
- package/dist/composites/device-card/connected/ConnectedContainerCard.d.ts +14 -0
- package/dist/composites/device-card/connected/ConnectedControlCard.d.ts +9 -0
- package/dist/composites/device-card/connected/ConnectedCoverCard.d.ts +8 -0
- package/dist/composites/device-card/connected/ConnectedDeviceCard.d.ts +12 -0
- package/dist/composites/device-card/connected/ConnectedDishwasherCard.d.ts +10 -0
- package/dist/composites/device-card/connected/ConnectedEnergyCard.d.ts +10 -0
- package/dist/composites/device-card/connected/ConnectedEventCard.d.ts +23 -0
- package/dist/composites/device-card/connected/ConnectedFanCard.d.ts +9 -0
- package/dist/composites/device-card/connected/ConnectedGatewayCard.d.ts +11 -0
- package/dist/composites/device-card/connected/ConnectedHeatPumpCard.d.ts +9 -0
- package/dist/composites/device-card/connected/ConnectedHeaterCard.d.ts +4 -0
- package/dist/composites/device-card/connected/ConnectedHumidifierCard.d.ts +7 -0
- package/dist/composites/device-card/connected/ConnectedImageCard.d.ts +4 -0
- package/dist/composites/device-card/connected/ConnectedIrTransmitterCard.d.ts +8 -0
- package/dist/composites/device-card/connected/ConnectedLightCard.d.ts +12 -0
- package/dist/composites/device-card/connected/ConnectedLockCard.d.ts +8 -0
- package/dist/composites/device-card/connected/ConnectedMediaCard.d.ts +8 -0
- package/dist/composites/device-card/connected/ConnectedNotifierCard.d.ts +4 -0
- package/dist/composites/device-card/connected/ConnectedPetFeederCard.d.ts +9 -0
- package/dist/composites/device-card/connected/ConnectedPetFountainCard.d.ts +4 -0
- package/dist/composites/device-card/connected/ConnectedPlugCard.d.ts +16 -0
- package/dist/composites/device-card/connected/ConnectedRobotCard.d.ts +6 -0
- package/dist/composites/device-card/connected/ConnectedSensorCard.d.ts +19 -0
- package/dist/composites/device-card/connected/ConnectedSirenCard.d.ts +10 -0
- package/dist/composites/device-card/connected/ConnectedUpdateCard.d.ts +7 -0
- package/dist/composites/device-card/connected/ConnectedValveCard.d.ts +8 -0
- package/dist/composites/device-card/connected/ConnectedWaterHeaterCard.d.ts +8 -0
- package/dist/composites/device-card/connected/ConnectedWeatherCard.d.ts +7 -0
- package/dist/composites/device-card/connected/ConnectedWeatherStationCard.d.ts +4 -0
- package/dist/composites/device-card/connected/ConnectedWorkloadCard.d.ts +10 -0
- package/dist/composites/device-card/connected/MeasuredPieCard.d.ts +25 -0
- package/dist/composites/device-card/connected/PrimaryTrend.d.ts +10 -0
- package/dist/composites/device-card/connected/SensorTrend.d.ts +19 -0
- package/dist/composites/device-card/connected/TrendReadout.d.ts +27 -0
- package/dist/composites/device-card/connected/alarm-model.d.ts +8 -0
- package/dist/composites/device-card/connected/appliance-model.d.ts +36 -0
- package/dist/composites/device-card/connected/cap-card-kinds.d.ts +13 -0
- package/dist/composites/device-card/connected/climate-model.d.ts +42 -0
- package/dist/composites/device-card/connected/coarse-duration.d.ts +3 -0
- package/dist/composites/device-card/connected/connected-card-kind.d.ts +17 -0
- package/dist/composites/device-card/connected/consumable-card-item.d.ts +10 -0
- package/dist/composites/device-card/connected/control-model.d.ts +8 -0
- package/dist/composites/device-card/connected/energy-day.d.ts +57 -0
- package/dist/composites/device-card/connected/energy-model.d.ts +102 -0
- package/dist/composites/device-card/connected/fan-model.d.ts +42 -0
- package/dist/composites/device-card/connected/heat-pump-model.d.ts +22 -0
- package/dist/composites/device-card/connected/humidifier-model.d.ts +7 -0
- package/dist/composites/device-card/connected/ir-transmitter-model.d.ts +46 -0
- package/dist/composites/device-card/connected/lock-model.d.ts +11 -0
- package/dist/composites/device-card/connected/measurement-label.d.ts +4 -0
- package/dist/composites/device-card/connected/measurement-since.d.ts +10 -0
- package/dist/composites/device-card/connected/media-model.d.ts +18 -0
- package/dist/composites/device-card/connected/pet-model.d.ts +13 -0
- package/dist/composites/device-card/connected/primary-trend.d.ts +21 -0
- package/dist/composites/device-card/connected/remote-panel.d.ts +14 -0
- package/dist/composites/device-card/connected/robot-model.d.ts +5 -0
- package/dist/composites/device-card/connected/since-text.d.ts +6 -0
- package/dist/composites/device-card/connected/trend-readout.d.ts +33 -0
- package/dist/composites/device-card/connected/use-card-common.d.ts +49 -0
- package/dist/composites/device-card/connected/use-command-notice.d.ts +39 -0
- package/dist/composites/device-card/connected/use-energy-day.d.ts +22 -0
- package/dist/composites/device-card/connected/use-heat-pump-link.d.ts +25 -0
- package/dist/composites/device-card/connected/use-measurement-readings.d.ts +13 -0
- package/dist/composites/device-card/connected/use-motion-trigger.d.ts +27 -0
- package/dist/composites/device-card/connected/use-power-cycle.d.ts +21 -0
- package/dist/composites/device-card/connected/use-switch-power.d.ts +16 -0
- package/dist/composites/device-card/connected/water-heater-model.d.ts +19 -0
- package/dist/composites/device-card/icons.d.ts +10 -0
- package/dist/composites/device-card/illustrations/AlarmIllustration.d.ts +12 -0
- package/dist/composites/device-card/illustrations/AmbientFx.d.ts +37 -0
- package/dist/composites/device-card/illustrations/ApplianceIllustration.d.ts +19 -0
- package/dist/composites/device-card/illustrations/ClimateRoleGlyph.d.ts +9 -0
- package/dist/composites/device-card/illustrations/CoverIllustration.d.ts +35 -0
- package/dist/composites/device-card/illustrations/DropIllustration.d.ts +10 -0
- package/dist/composites/device-card/illustrations/EnergyFlowIllustration.d.ts +43 -0
- package/dist/composites/device-card/illustrations/FanIllustration.d.ts +28 -0
- package/dist/composites/device-card/illustrations/HeatPumpIllustration.d.ts +14 -0
- package/dist/composites/device-card/illustrations/HeaterIllustration.d.ts +7 -0
- package/dist/composites/device-card/illustrations/LightIllustration.d.ts +18 -0
- package/dist/composites/device-card/illustrations/LockIllustration.d.ts +11 -0
- package/dist/composites/device-card/illustrations/MeasurementFx.d.ts +11 -0
- package/dist/composites/device-card/illustrations/MediaArtwork.d.ts +19 -0
- package/dist/composites/device-card/illustrations/PetFeederIllustration.d.ts +14 -0
- package/dist/composites/device-card/illustrations/PetFountainIllustration.d.ts +10 -0
- package/dist/composites/device-card/illustrations/PlugIllustration.d.ts +7 -0
- package/dist/composites/device-card/illustrations/PoePortIllustration.d.ts +11 -0
- package/dist/composites/device-card/illustrations/RobotIllustration.d.ts +18 -0
- package/dist/composites/device-card/illustrations/SirenIllustration.d.ts +7 -0
- package/dist/composites/device-card/illustrations/TankIllustration.d.ts +15 -0
- package/dist/composites/device-card/illustrations/ValveIllustration.d.ts +14 -0
- package/dist/composites/device-card/index.d.ts +175 -0
- package/dist/composites/device-card/parts/ArcGauge.d.ts +18 -0
- package/dist/composites/device-card/parts/ArmedButton.d.ts +31 -0
- package/dist/composites/device-card/parts/ButtonGroup.d.ts +26 -0
- package/dist/composites/device-card/parts/CardButton.d.ts +16 -0
- package/dist/composites/device-card/parts/CardIcon.d.ts +8 -0
- package/dist/composites/device-card/parts/CodePad.d.ts +14 -0
- package/dist/composites/device-card/parts/CountdownRing.d.ts +23 -0
- package/dist/composites/device-card/parts/Dial.d.ts +63 -0
- package/dist/composites/device-card/parts/EnergyDayPanel.d.ts +33 -0
- package/dist/composites/device-card/parts/EventList.d.ts +17 -0
- package/dist/composites/device-card/parts/InfoTile.d.ts +20 -0
- package/dist/composites/device-card/parts/KeyValue.d.ts +7 -0
- package/dist/composites/device-card/parts/LevelBar.d.ts +13 -0
- package/dist/composites/device-card/parts/LevelRow.d.ts +12 -0
- package/dist/composites/device-card/parts/MenuButton.d.ts +25 -0
- package/dist/composites/device-card/parts/PopoverButton.d.ts +22 -0
- package/dist/composites/device-card/parts/RangeDial.d.ts +32 -0
- package/dist/composites/device-card/parts/ReadingValue.d.ts +12 -0
- package/dist/composites/device-card/parts/Readings.d.ts +15 -0
- package/dist/composites/device-card/parts/StateDot.d.ts +11 -0
- package/dist/composites/device-card/parts/SwitchTimer.d.ts +16 -0
- package/dist/composites/device-card/parts/ValueChip.d.ts +11 -0
- package/dist/composites/device-card/parts/ValueEntry.d.ts +17 -0
- package/dist/composites/device-card/parts/sliders.d.ts +32 -0
- package/dist/composites/device-card/parts/switch-timer-model.d.ts +21 -0
- package/dist/composites/device-card/parts/use-countdown.d.ts +2 -0
- package/dist/composites/device-card/scenes/action/ActionCards.d.ts +22 -0
- package/dist/composites/device-card/scenes/action/model.d.ts +44 -0
- package/dist/composites/device-card/scenes/alarm/AlarmCard.d.ts +21 -0
- package/dist/composites/device-card/scenes/alarm/model.d.ts +23 -0
- package/dist/composites/device-card/scenes/appliance/ApplianceCard.d.ts +19 -0
- package/dist/composites/device-card/scenes/appliance/model.d.ts +63 -0
- package/dist/composites/device-card/scenes/camera/CameraCard.d.ts +20 -0
- package/dist/composites/device-card/scenes/climate/ClimateCard.d.ts +22 -0
- package/dist/composites/device-card/scenes/climate/model.d.ts +93 -0
- package/dist/composites/device-card/scenes/container/ContainerCard.d.ts +18 -0
- package/dist/composites/device-card/scenes/container/container-model.d.ts +20 -0
- package/dist/composites/device-card/scenes/control/ControlCard.d.ts +14 -0
- package/dist/composites/device-card/scenes/control/model.d.ts +43 -0
- package/dist/composites/device-card/scenes/cover/CoverCard.d.ts +23 -0
- package/dist/composites/device-card/scenes/cover/model.d.ts +52 -0
- package/dist/composites/device-card/scenes/energy/EnergyCard.d.ts +39 -0
- package/dist/composites/device-card/scenes/energy/model.d.ts +82 -0
- package/dist/composites/device-card/scenes/event/EventCard.d.ts +40 -0
- package/dist/composites/device-card/scenes/event/event-entries.d.ts +24 -0
- package/dist/composites/device-card/scenes/fan/FanCard.d.ts +24 -0
- package/dist/composites/device-card/scenes/fan/model.d.ts +77 -0
- package/dist/composites/device-card/scenes/gateway/GatewayCard.d.ts +34 -0
- package/dist/composites/device-card/scenes/heat-pump/HeatPumpCard.d.ts +19 -0
- package/dist/composites/device-card/scenes/heat-pump/model.d.ts +61 -0
- package/dist/composites/device-card/scenes/heater/HeaterCard.d.ts +14 -0
- package/dist/composites/device-card/scenes/heater/model.d.ts +13 -0
- package/dist/composites/device-card/scenes/humidifier/HumidifierCard.d.ts +20 -0
- package/dist/composites/device-card/scenes/humidifier/model.d.ts +29 -0
- package/dist/composites/device-card/scenes/image/ImageCard.d.ts +21 -0
- package/dist/composites/device-card/scenes/ir/IrTransmitterCard.d.ts +11 -0
- package/dist/composites/device-card/scenes/ir/model.d.ts +16 -0
- package/dist/composites/device-card/scenes/light/LightCard.d.ts +14 -0
- package/dist/composites/device-card/scenes/light/model.d.ts +40 -0
- package/dist/composites/device-card/scenes/lock/LockCard.d.ts +19 -0
- package/dist/composites/device-card/scenes/lock/model.d.ts +24 -0
- package/dist/composites/device-card/scenes/media/MediaPlayerCard.d.ts +22 -0
- package/dist/composites/device-card/scenes/media/model.d.ts +98 -0
- package/dist/composites/device-card/scenes/notifier/NotifierCard.d.ts +27 -0
- package/dist/composites/device-card/scenes/pet/PetFeederCard.d.ts +19 -0
- package/dist/composites/device-card/scenes/pet/PetFountainCard.d.ts +17 -0
- package/dist/composites/device-card/scenes/pet/model.d.ts +93 -0
- package/dist/composites/device-card/scenes/plug/PlugCard.d.ts +15 -0
- package/dist/composites/device-card/scenes/plug/model.d.ts +19 -0
- package/dist/composites/device-card/scenes/robot/RobotCard.d.ts +18 -0
- package/dist/composites/device-card/scenes/robot/model.d.ts +38 -0
- package/dist/composites/device-card/scenes/sensor/ReadingTile.d.ts +18 -0
- package/dist/composites/device-card/scenes/sensor/SensorCard.d.ts +17 -0
- package/dist/composites/device-card/scenes/sensor/SensorGridCard.d.ts +24 -0
- package/dist/composites/device-card/scenes/sensor/SensorPieCard.d.ts +51 -0
- package/dist/composites/device-card/scenes/sensor/model.d.ts +39 -0
- package/dist/composites/device-card/scenes/sensor/pie-css.d.ts +6 -0
- package/dist/composites/device-card/scenes/sensor/pie-model.d.ts +49 -0
- package/dist/composites/device-card/scenes/siren/SirenCard.d.ts +19 -0
- package/dist/composites/device-card/scenes/siren/model.d.ts +84 -0
- package/dist/composites/device-card/scenes/update/UpdateCard.d.ts +14 -0
- package/dist/composites/device-card/scenes/update/model.d.ts +40 -0
- package/dist/composites/device-card/scenes/valve/ValveCard.d.ts +19 -0
- package/dist/composites/device-card/scenes/valve/model.d.ts +21 -0
- package/dist/composites/device-card/scenes/water-heater/WaterHeaterCard.d.ts +20 -0
- package/dist/composites/device-card/scenes/water-heater/model.d.ts +32 -0
- package/dist/composites/device-card/scenes/weather/WeatherCard.d.ts +22 -0
- package/dist/composites/device-card/scenes/weather/model.d.ts +28 -0
- package/dist/composites/device-card/scenes/weather-station/WeatherStationCard.d.ts +17 -0
- package/dist/composites/device-card/scenes/weather-station/WeatherStationIllustration.d.ts +15 -0
- package/dist/composites/device-card/scenes/weather-station/model.d.ts +55 -0
- package/dist/composites/device-card/scenes/weather-station/station-geometry.d.ts +9 -0
- package/dist/composites/device-card/scenes/workload/WorkloadCard.d.ts +17 -0
- package/dist/composites/device-card/scenes/workload/model.d.ts +91 -0
- package/dist/composites/device-card/shell/ActuationHistory.d.ts +11 -0
- package/dist/composites/device-card/shell/BottomLine.d.ts +31 -0
- package/dist/composites/device-card/shell/Corner.d.ts +57 -0
- package/dist/composites/device-card/shell/DeviceCard.d.ts +81 -0
- package/dist/composites/device-card/shell/Overlays.d.ts +24 -0
- package/dist/composites/device-card/shell/SceneGrid.d.ts +47 -0
- package/dist/composites/device-card/shell/ScenePower.d.ts +18 -0
- package/dist/composites/device-card/shell/actuation-model.d.ts +115 -0
- package/dist/composites/device-card/shell/bottom-rows.d.ts +182 -0
- package/dist/composites/device-card/shell/column-items.d.ts +94 -0
- package/dist/composites/device-card/shell/gating.d.ts +17 -0
- package/dist/composites/device-card/shell/history-sections.d.ts +16 -0
- package/dist/composites/device-card/shell/model.d.ts +174 -0
- package/dist/composites/device-card/shell/overlay-box.d.ts +17 -0
- package/dist/composites/device-card/shell/remote-keys.d.ts +29 -0
- package/dist/composites/device-card/shell/scene-layout.d.ts +17 -0
- package/dist/composites/device-card/shell/use-popover.d.ts +9 -0
- package/dist/composites/device-controls/ac-panel.d.ts +40 -0
- package/dist/composites/device-controls/alarm-hero-card.d.ts +47 -0
- package/dist/composites/device-controls/appliance-control.d.ts +3 -0
- package/dist/composites/device-controls/atoms.d.ts +84 -0
- package/dist/composites/device-controls/brightness-panel.d.ts +3 -0
- package/dist/composites/device-controls/button-control.d.ts +9 -0
- package/dist/composites/device-controls/climate-offers-cooling.d.ts +7 -0
- package/dist/composites/device-controls/climate-panel.d.ts +30 -0
- package/dist/composites/device-controls/container-primary-hero.d.ts +26 -0
- package/dist/composites/device-controls/container-primary.d.ts +80 -0
- package/dist/composites/device-controls/control-panel.d.ts +53 -0
- package/dist/composites/device-controls/control-registry.d.ts +85 -0
- package/dist/composites/device-controls/cover-hero-card.d.ts +27 -0
- package/dist/composites/device-controls/cover-inline.d.ts +27 -0
- package/dist/composites/device-controls/cover-panel.d.ts +3 -0
- package/dist/composites/device-controls/dishwasher-control.d.ts +32 -0
- package/dist/composites/device-controls/dishwasher-options.d.ts +22 -0
- package/dist/composites/device-controls/dummy-hero-card.d.ts +6 -0
- package/dist/composites/device-controls/energy-system-control.d.ts +14 -0
- package/dist/composites/device-controls/fan-hero-card.d.ts +21 -0
- package/dist/composites/device-controls/fan-panel.d.ts +3 -0
- package/dist/composites/device-controls/heater-control.d.ts +4 -0
- package/dist/composites/device-controls/heating-valve-readout.d.ts +4 -0
- package/dist/composites/device-controls/humidifier-control.d.ts +37 -0
- package/dist/composites/device-controls/image-control.d.ts +49 -0
- package/dist/composites/device-controls/index.d.ts +35 -0
- package/dist/composites/device-controls/lawn-mower-control.d.ts +15 -0
- package/dist/composites/device-controls/light-hero-card.d.ts +16 -0
- package/dist/composites/device-controls/lock-hero-card.d.ts +15 -0
- package/dist/composites/device-controls/lock-panel.d.ts +3 -0
- package/dist/composites/device-controls/media-player-panel.d.ts +9 -0
- package/dist/composites/device-controls/offline-badge.d.ts +26 -0
- package/dist/composites/device-controls/panel-controls.d.ts +68 -0
- package/dist/composites/device-controls/pet-feeder-panel.d.ts +23 -0
- package/dist/composites/device-controls/pet-fountain-panel.d.ts +11 -0
- package/dist/composites/device-controls/popover-row-action.d.ts +21 -0
- package/dist/composites/device-controls/primary-child-picker.d.ts +36 -0
- package/dist/composites/device-controls/primary-child.d.ts +39 -0
- package/dist/composites/device-controls/radial-gauge.d.ts +20 -0
- package/dist/composites/device-controls/script-automation-controls.d.ts +13 -0
- package/dist/composites/device-controls/sensor-hero-card.d.ts +10 -0
- package/dist/composites/device-controls/sensor-hero-source.d.ts +24 -0
- package/dist/composites/device-controls/sensor-inline-control.d.ts +23 -0
- package/dist/composites/device-controls/sensor-value-atom.d.ts +123 -0
- package/dist/composites/device-controls/switch-panel.d.ts +3 -0
- package/dist/composites/device-controls/tap-toggle.d.ts +17 -0
- package/dist/composites/device-controls/timed-run-control.d.ts +13 -0
- package/dist/composites/device-controls/timed-run-quick-model.d.ts +47 -0
- package/dist/composites/device-controls/timed-run-quick.d.ts +12 -0
- package/dist/composites/device-controls/timed-run-row-control.d.ts +17 -0
- package/dist/composites/device-controls/types.d.ts +15 -0
- package/dist/composites/device-controls/update-control.d.ts +7 -0
- package/dist/composites/device-controls/vacuum-control.d.ts +7 -0
- package/dist/composites/device-controls/valve-control.d.ts +47 -0
- package/dist/composites/device-controls/water-heater-control.d.ts +12 -0
- package/dist/composites/device-controls/weather-control.d.ts +60 -0
- package/dist/composites/device-controls/workload-control.d.ts +10 -0
- package/dist/composites/device-export-panel.d.ts +63 -0
- package/dist/composites/device-grid.d.ts +12 -0
- package/dist/composites/device-history/DeviceHistoryView.d.ts +28 -0
- package/dist/composites/device-history/HistoryChart.d.ts +37 -0
- package/dist/composites/device-history/HistoryLanes.d.ts +13 -0
- package/dist/composites/device-history/HistoryWindowBar.d.ts +16 -0
- package/dist/composites/device-history/PointsSelect.d.ts +19 -0
- package/dist/composites/device-history/history-lanes.d.ts +26 -0
- package/dist/composites/device-history/history-model.d.ts +126 -0
- package/dist/composites/device-history/history-reads.d.ts +43 -0
- package/dist/composites/device-history/history-runs.d.ts +29 -0
- package/dist/composites/device-history/history-selection.d.ts +55 -0
- package/dist/composites/device-history/history-units.d.ts +42 -0
- package/dist/composites/device-history/history-window.d.ts +31 -0
- package/dist/composites/device-history/index.d.ts +16 -0
- package/dist/composites/device-history/use-device-history.d.ts +44 -0
- package/dist/composites/device-history/use-device-runs.d.ts +11 -0
- package/dist/composites/device-history/use-history-panels.d.ts +10 -0
- package/dist/composites/device-item/actions.d.ts +38 -0
- package/dist/composites/device-item/child-layout.d.ts +49 -0
- package/dist/composites/device-item/child-section-accordion.d.ts +23 -0
- package/dist/composites/device-item/children-accordion.d.ts +22 -0
- package/dist/composites/device-item/container-children-context.d.ts +32 -0
- package/dist/composites/device-item/device-delete-action.d.ts +31 -0
- package/dist/composites/device-item/features.d.ts +37 -0
- package/dist/composites/device-item/header.d.ts +55 -0
- package/dist/composites/device-item/helpers.d.ts +395 -0
- package/dist/composites/device-item/index.d.ts +11 -0
- package/dist/composites/device-item/model-row-value.d.ts +48 -0
- package/dist/composites/device-item/open-page-quick-action.d.ts +6 -0
- package/dist/composites/device-item/preview.d.ts +43 -0
- package/dist/composites/device-item/reboot-quick-action.d.ts +30 -0
- package/dist/composites/device-item/role-display-defaults-context.d.ts +37 -0
- package/dist/composites/device-item/row-models-context.d.ts +42 -0
- package/dist/composites/device-item/row-swipe-tray.d.ts +17 -0
- package/dist/composites/device-item/status-dot.d.ts +30 -0
- package/dist/composites/device-item/use-device-admin-link.d.ts +20 -0
- package/dist/composites/device-list/batch-actions-bar.d.ts +15 -0
- package/dist/composites/device-list/batch-toolbar.d.ts +15 -0
- package/dist/composites/device-list/columns.d.ts +109 -0
- package/dist/composites/device-list/device-integration.d.ts +59 -0
- package/dist/composites/device-list/device-mode.d.ts +141 -0
- package/dist/composites/device-list/empty-state.d.ts +17 -0
- package/dist/composites/device-list/filter-chips.d.ts +33 -0
- package/dist/composites/device-list/fuzzy-match.d.ts +27 -0
- package/dist/composites/device-list/generic-mode.d.ts +125 -0
- package/dist/composites/device-list/group.d.ts +71 -0
- package/dist/composites/device-list/hardware-cell.d.ts +18 -0
- package/dist/composites/device-list/hardware.d.ts +44 -0
- package/dist/composites/device-list/icon-action.d.ts +29 -0
- package/dist/composites/device-list/index.d.ts +51 -0
- package/dist/composites/device-list/multi-select.d.ts +30 -0
- package/dist/composites/device-list/page-size-select.d.ts +11 -0
- package/dist/composites/device-list/pagination.d.ts +18 -0
- package/dist/composites/device-list/row-model-ids.d.ts +7 -0
- package/dist/composites/device-list/sort.d.ts +35 -0
- package/dist/composites/device-list/sortable-header.d.ts +23 -0
- package/dist/composites/device-list/table-layout.d.ts +53 -0
- package/dist/composites/device-list/type-filter.d.ts +19 -0
- package/dist/composites/device-list/url-state.d.ts +42 -0
- package/dist/composites/device-mesh/DeviceMeshCard.d.ts +7 -0
- package/dist/composites/device-mesh/device-mesh-model.d.ts +64 -0
- package/dist/composites/device-mesh/index.d.ts +4 -0
- package/dist/composites/device-mesh/mesh-labels.d.ts +9 -0
- package/dist/composites/device-mesh/use-mesh-networks.d.ts +14 -0
- package/dist/composites/device-meta.d.ts +70 -0
- package/dist/composites/device-name/DeviceName.d.ts +17 -0
- package/dist/composites/device-name/device-fleet.d.ts +29 -0
- package/dist/composites/device-name/device-name-nouns.d.ts +27 -0
- package/dist/composites/device-name/format-device-name.d.ts +49 -0
- package/dist/composites/device-name/index.d.ts +10 -0
- package/dist/composites/device-name/use-device-label.d.ts +18 -0
- package/dist/composites/device-picker/DevicePicker.d.ts +107 -0
- package/dist/composites/device-picker/SelectedChip.d.ts +17 -0
- package/dist/composites/device-picker/device-filter-bar.d.ts +27 -0
- package/dist/composites/device-picker/device-fleet-view.d.ts +15 -0
- package/dist/composites/device-picker/device-parent.d.ts +39 -0
- package/dist/composites/device-picker/device-picker-grouping.d.ts +14 -0
- package/dist/composites/device-picker/device-picker-model.d.ts +254 -0
- package/dist/composites/device-picker/device-provider-label.d.ts +21 -0
- package/dist/composites/device-picker/device-selection-rows.d.ts +52 -0
- package/dist/composites/device-picker/device-selection.d.ts +64 -0
- package/dist/composites/device-picker/index.d.ts +9 -0
- package/dist/composites/device-select-filter.d.ts +120 -0
- package/dist/composites/device-selector-picker.d.ts +38 -0
- package/dist/composites/device-step-matrix.d.ts +42 -0
- package/dist/composites/device-summary-card.d.ts +38 -0
- package/dist/composites/device-template-field/DeviceTemplateField.d.ts +42 -0
- package/dist/composites/device-template-field/device-template-feedback.d.ts +13 -0
- package/dist/composites/device-template-field/device-template-function.d.ts +18 -0
- package/dist/composites/device-template-field/device-template-insert-model.d.ts +10 -0
- package/dist/composites/device-template-field/device-template-insert.d.ts +19 -0
- package/dist/composites/device-template-field/device-template-model.d.ts +143 -0
- package/dist/composites/device-template-field/device-template-param-input.d.ts +16 -0
- package/dist/composites/device-template-field/device-template-suggest.d.ts +12 -0
- package/dist/composites/device-template-field/index.d.ts +2 -0
- package/dist/composites/device-template-field/use-template-field-unit.d.ts +7 -0
- package/dist/composites/device-value-field/device-value-field.d.ts +112 -0
- package/dist/composites/device-value-field/device-value-token.d.ts +13 -0
- package/dist/composites/device-value-field/index.d.ts +3 -0
- package/dist/composites/device-value-field/use-device-value-source.d.ts +30 -0
- package/dist/composites/device-value-picker/DeviceActionPicker.d.ts +37 -0
- package/dist/composites/device-value-picker/DeviceEventPicker.d.ts +22 -0
- package/dist/composites/device-value-picker/DeviceValuePicker.d.ts +68 -0
- package/dist/composites/device-value-picker/action-target-label.d.ts +17 -0
- package/dist/composites/device-value-picker/device-event-model.d.ts +54 -0
- package/dist/composites/device-value-picker/device-id-values.d.ts +9 -0
- package/dist/composites/device-value-picker/device-value-form-fields.d.ts +22 -0
- package/dist/composites/device-value-picker/device-value-panel.d.ts +43 -0
- package/dist/composites/device-value-picker/device-value-picker-model.d.ts +155 -0
- package/dist/composites/device-value-picker/device-value-rail.d.ts +27 -0
- package/dist/composites/device-value-picker/device-value-rows.d.ts +42 -0
- package/dist/composites/device-value-picker/index.d.ts +10 -0
- package/dist/composites/device-value-picker/use-device-value-search.d.ts +33 -0
- package/dist/composites/device-value-picker/use-integration-providers.d.ts +10 -0
- package/dist/composites/device-value-picker/use-recent-devices.d.ts +16 -0
- package/dist/composites/discovered-adoption.d.ts +7 -0
- package/dist/composites/display-palette-context.d.ts +26 -0
- package/dist/composites/doorbell-recent-panel.d.ts +11 -0
- package/dist/composites/duration-input/DurationInput.d.ts +68 -0
- package/dist/composites/duration-input/duration-parts.d.ts +15 -0
- package/dist/composites/duration-input/index.d.ts +2 -0
- package/dist/composites/empty-state.d.ts +10 -0
- package/dist/composites/error-box.d.ts +19 -0
- package/dist/composites/event-category-picker.d.ts +11 -0
- package/dist/composites/event-kind-visuals.d.ts +37 -0
- package/dist/composites/event-stream.d.ts +72 -0
- package/dist/composites/export-bulk-selection.d.ts +54 -0
- package/dist/composites/export-entity-rows.d.ts +33 -0
- package/dist/composites/expression-input/ExpressionInput.d.ts +9 -0
- package/dist/composites/expression-input/expression-suggestions.d.ts +15 -0
- package/dist/composites/expression-input/index.d.ts +2 -0
- package/dist/composites/extensions/AssociationSlotCard.d.ts +36 -0
- package/dist/composites/extensions/ExtensionsPanel.d.ts +43 -0
- package/dist/composites/extensions/extensions-view-state.d.ts +125 -0
- package/dist/composites/filter-bar.d.ts +29 -0
- package/dist/composites/form-field.d.ts +11 -0
- package/dist/composites/form-save-bar.d.ts +35 -0
- package/dist/composites/format-state-value.d.ts +34 -0
- package/dist/composites/grouped-model-selector.d.ts +9 -0
- package/dist/composites/grouped-tile-picker.d.ts +43 -0
- package/dist/composites/hero-model/HeroModelCard.d.ts +25 -0
- package/dist/composites/hero-model/MeasurementScene.d.ts +22 -0
- package/dist/composites/hero-model/ModelHero.d.ts +29 -0
- package/dist/composites/hero-model/call-hero-action.d.ts +17 -0
- package/dist/composites/hero-model/card-display-subject.d.ts +19 -0
- package/dist/composites/hero-model/hero-labels.d.ts +33 -0
- package/dist/composites/hero-model/hero-model-view.d.ts +36 -0
- package/dist/composites/hero-model/hero-utilities.d.ts +9 -0
- package/dist/composites/hero-model/index.d.ts +4 -0
- package/dist/composites/hero-model/measurement-display.d.ts +40 -0
- package/dist/composites/hero-model/use-hero-live-refresh.d.ts +6 -0
- package/dist/composites/hero-scene/backdrops.d.ts +20 -0
- package/dist/composites/hero-scene/device-row.d.ts +21 -0
- package/dist/composites/hero-scene/hero-card-a.d.ts +29 -0
- package/dist/composites/hero-scene/hero-row.d.ts +39 -0
- package/dist/composites/hero-scene/hero-scene-css.d.ts +10 -0
- package/dist/composites/hero-scene/hero-scene.d.ts +45 -0
- package/dist/composites/hero-scene/hero-utility-grid.d.ts +30 -0
- package/dist/composites/hero-scene/hero-utility-layout.d.ts +10 -0
- package/dist/composites/hero-scene/index.d.ts +10 -0
- package/dist/composites/hero-scene/scene-art-home.d.ts +5 -0
- package/dist/composites/hero-scene/scene-art.d.ts +21 -0
- package/dist/composites/hero-scene/scene-map.d.ts +6 -0
- package/dist/composites/hero-scene/types.d.ts +48 -0
- package/dist/composites/hls-quality.d.ts +36 -0
- package/dist/composites/hls-video.d.ts +64 -0
- package/dist/composites/hover-zoom-image.d.ts +37 -0
- package/dist/composites/icon-glyphs.d.ts +30 -0
- package/dist/composites/icon-picker.d.ts +80 -0
- package/dist/composites/image-selector.d.ts +26 -0
- package/dist/composites/index.d.ts +278 -0
- package/dist/composites/inference-config-selector.d.ts +45 -0
- package/dist/composites/item-form-dialog.d.ts +39 -0
- package/dist/composites/kebab-menu.d.ts +63 -0
- package/dist/composites/key-value-list.d.ts +17 -0
- package/dist/composites/log-export-dialog.d.ts +21 -0
- package/dist/composites/log-export.d.ts +68 -0
- package/dist/composites/log-history-paging.d.ts +62 -0
- package/dist/composites/log-stream-columns.d.ts +37 -0
- package/dist/composites/log-stream-names.d.ts +19 -0
- package/dist/composites/log-stream-scroll.d.ts +32 -0
- package/dist/composites/log-stream.d.ts +102 -0
- package/dist/composites/login-form.d.ts +9 -0
- package/dist/composites/media-grid.d.ts +27 -0
- package/dist/composites/model-bound-slider.d.ts +36 -0
- package/dist/composites/model-picker.d.ts +21 -0
- package/dist/composites/mount-addon-page.d.ts +16 -0
- package/dist/composites/network-link-badge.d.ts +11 -0
- package/dist/composites/node-color-map.d.ts +11 -0
- package/dist/composites/node-color.d.ts +5 -0
- package/dist/composites/node-picker.d.ts +20 -0
- package/dist/composites/notification-targets-field.d.ts +84 -0
- package/dist/composites/notification-targets-options.d.ts +13 -0
- package/dist/composites/option-select/OptionSelect.d.ts +37 -0
- package/dist/composites/option-select/index.d.ts +4 -0
- package/dist/composites/option-select/option-select-model.d.ts +62 -0
- package/dist/composites/page-actions.d.ts +56 -0
- package/dist/composites/page-header.d.ts +12 -0
- package/dist/composites/page-shell.d.ts +34 -0
- package/dist/composites/peer-connection-config.d.ts +13 -0
- package/dist/composites/phase-icon.d.ts +12 -0
- package/dist/composites/pipeline-builder.d.ts +23 -0
- package/dist/composites/pipeline-matrix-shared.d.ts +200 -0
- package/dist/composites/pipeline-runtime-selector.d.ts +17 -0
- package/dist/composites/pipeline-step.d.ts +36 -0
- package/dist/composites/placeholder-field/PlaceholderChipField.d.ts +30 -0
- package/dist/composites/placeholder-field/index.d.ts +1 -0
- package/dist/composites/playback-stats.d.ts +59 -0
- package/dist/composites/provider-badge.d.ts +8 -0
- package/dist/composites/provider-entries/AddProviderEntryDialog.d.ts +28 -0
- package/dist/composites/provider-entries/ProviderEntryPills.d.ts +19 -0
- package/dist/composites/provider-entries/index.d.ts +2 -0
- package/dist/composites/ptz-overlay.d.ts +21 -0
- package/dist/composites/qr-code.d.ts +12 -0
- package/dist/composites/quantity-value-input/QuantityValueInput.d.ts +35 -0
- package/dist/composites/quantity-value-input/index.d.ts +2 -0
- package/dist/composites/quantity-value-input/quantity-value.d.ts +38 -0
- package/dist/composites/reconnect-schedule.d.ts +32 -0
- package/dist/composites/record-entries/entry-json-schema-form.d.ts +11 -0
- package/dist/composites/record-entries/index.d.ts +3 -0
- package/dist/composites/record-entries/record-entries-panel.d.ts +18 -0
- package/dist/composites/record-entries/record-entry-secrets.d.ts +9 -0
- package/dist/composites/remote/AppBrandGlyph.d.ts +11 -0
- package/dist/composites/remote/RemoteGrid.d.ts +57 -0
- package/dist/composites/remote/SourceSelectKey.d.ts +20 -0
- package/dist/composites/remote/app-brand-icons.d.ts +28 -0
- package/dist/composites/remote/display-layout.d.ts +7 -0
- package/dist/composites/remote/index.d.ts +9 -0
- package/dist/composites/remote/layout-model.d.ts +110 -0
- package/dist/composites/remote/layout-presets.d.ts +21 -0
- package/dist/composites/remote/remote-look.d.ts +25 -0
- package/dist/composites/remote/role-vocabulary.d.ts +10 -0
- package/dist/composites/resizable-columns/ResizableColumns.d.ts +21 -0
- package/dist/composites/resizable-columns/index.d.ts +1 -0
- package/dist/composites/resizable-columns/resizable-columns-model.d.ts +13 -0
- package/dist/composites/resolve-step-default-model.d.ts +113 -0
- package/dist/composites/response-log.d.ts +10 -0
- package/dist/composites/role-node-pill.d.ts +26 -0
- package/dist/composites/root-model-source.d.ts +20 -0
- package/dist/composites/running-badge.d.ts +20 -0
- package/dist/composites/running-status.d.ts +20 -0
- package/dist/composites/sanitize-info-html.d.ts +16 -0
- package/dist/composites/scope-picker.d.ts +31 -0
- package/dist/composites/section-card.d.ts +27 -0
- package/dist/composites/section-toolbar.d.ts +14 -0
- package/dist/composites/sectioned-page.d.ts +55 -0
- package/dist/composites/setting-row.d.ts +42 -0
- package/dist/composites/snapshot-button.d.ts +29 -0
- package/dist/composites/sort-header-button.d.ts +28 -0
- package/dist/composites/stable-tab-panel.d.ts +17 -0
- package/dist/composites/stat-card.d.ts +22 -0
- package/dist/composites/state-values-stream.d.ts +27 -0
- package/dist/composites/status-badge.d.ts +12 -0
- package/dist/composites/step-inspector/gate-control.d.ts +21 -0
- package/dist/composites/step-inspector/index.d.ts +8 -0
- package/dist/composites/step-inspector/layered-settings-form.d.ts +37 -0
- package/dist/composites/step-inspector/segmented-choice.d.ts +15 -0
- package/dist/composites/step-inspector/setting-values.d.ts +27 -0
- package/dist/composites/step-inspector/step-detail-dock.d.ts +49 -0
- package/dist/composites/step-inspector/step-inspector-panel.d.ts +32 -0
- package/dist/composites/step-inspector/step-model-row.d.ts +32 -0
- package/dist/composites/step-inspector/step-search.d.ts +18 -0
- package/dist/composites/step-timings.d.ts +10 -0
- package/dist/composites/step-tree.d.ts +21 -0
- package/dist/composites/storage-records/index.d.ts +1 -0
- package/dist/composites/storage-records/storage-records-panel.d.ts +6 -0
- package/dist/composites/stream-broker-selector.d.ts +10 -0
- package/dist/composites/stream-debug/stream-debug-overlay.d.ts +44 -0
- package/dist/composites/stream-debug/webrtc-debug-stats.d.ts +166 -0
- package/dist/composites/stream-panel.d.ts +252 -0
- package/dist/composites/table-sort.d.ts +77 -0
- package/dist/composites/tags/index.d.ts +9 -0
- package/dist/composites/tags/tag-chip.d.ts +32 -0
- package/dist/composites/tags/tag-entries-context.d.ts +9 -0
- package/dist/composites/tags/tag-filter-bar.d.ts +44 -0
- package/dist/composites/tags/tag-input.d.ts +10 -0
- package/dist/composites/tags/tag-model.d.ts +77 -0
- package/dist/composites/tags/tag-style-dialog.d.ts +16 -0
- package/dist/composites/tags/tagged-data-table.d.ts +23 -0
- package/dist/composites/tags/use-tag-filter.d.ts +31 -0
- package/dist/composites/tags/use-tag-registry.d.ts +21 -0
- package/dist/composites/time-window-input/TimeSpecInput.d.ts +29 -0
- package/dist/composites/time-window-input/TimeWindowInput.d.ts +33 -0
- package/dist/composites/time-window-input/index.d.ts +4 -0
- package/dist/composites/time-window-input/stored-clock-range.d.ts +28 -0
- package/dist/composites/time-window-input/time-window-model.d.ts +49 -0
- package/dist/composites/timeline-slider.d.ts +47 -0
- package/dist/composites/timezone-selector.d.ts +20 -0
- package/dist/composites/toggle-chip-row.d.ts +21 -0
- package/dist/composites/training/TrainingBaseModelPicker.d.ts +29 -0
- package/dist/composites/training/retrain-review-badge.d.ts +37 -0
- package/dist/composites/training/root-detector-placements.d.ts +50 -0
- package/dist/composites/training/send-frame-to-training.d.ts +7 -0
- package/dist/composites/training/training-collection-picker.d.ts +6 -0
- package/dist/composites/training/training-refusal-text.d.ts +10 -0
- package/dist/composites/unit-picker/UnitPicker.d.ts +16 -0
- package/dist/composites/unit-picker/index.d.ts +1 -0
- package/dist/composites/use-data-table-filter.d.ts +27 -0
- package/dist/composites/use-item-form-url.d.ts +27 -0
- package/dist/composites/version-badge.d.ts +25 -0
- package/dist/composites/view-switch.d.ts +24 -0
- package/dist/composites/webrtc-diagnostics/EndpointTestCard.d.ts +15 -0
- package/dist/composites/webrtc-diagnostics/HubSessionTestCard.d.ts +18 -0
- package/dist/composites/webrtc-diagnostics/RunReport.d.ts +11 -0
- package/dist/composites/webrtc-diagnostics/endpoint-probe.d.ts +56 -0
- package/dist/composites/webrtc-diagnostics/endpoint-test.d.ts +60 -0
- package/dist/composites/webrtc-diagnostics/format.d.ts +7 -0
- package/dist/composites/webrtc-diagnostics/ice-candidates.d.ts +66 -0
- package/dist/composites/webrtc-diagnostics/nat-mapping.d.ts +45 -0
- package/dist/composites/webrtc-diagnostics/session-run.d.ts +139 -0
- package/dist/composites/webrtc-diagnostics/session-verdict.d.ts +39 -0
- package/dist/composites/widget-panel.d.ts +33 -0
- package/dist/composites/widget-slot.d.ts +38 -0
- package/dist/composites/zones-layer/ZonesReadOnlyLayer.d.ts +12 -0
- package/dist/composites/zones-layer/zone-items.d.ts +29 -0
- package/dist/contexts/custom-field-renderers.d.ts +62 -0
- package/dist/contexts/device-context.d.ts +40 -0
- package/dist/contexts/device-quick-detail.d.ts +17 -0
- package/dist/contexts/instance-picker-slot.d.ts +28 -0
- package/dist/contexts/player-overlays.d.ts +102 -0
- package/dist/contexts/recorded-playback.d.ts +45 -0
- package/dist/contexts/system-context.d.ts +50 -0
- package/dist/contexts/ui-text.d.ts +49 -0
- package/dist/contexts/unit-preferences-from-server.d.ts +9 -0
- package/dist/contexts/unit-preferences.d.ts +12 -0
- package/dist/contexts/vod-playback.d.ts +46 -0
- package/dist/contexts/widget-registry.d.ts +166 -0
- package/dist/contexts/zone-editing.d.ts +82 -0
- package/dist/generated/system-hooks.d.ts +2821 -0
- package/dist/hls-CckKbjjD.cjs +28320 -0
- package/dist/hls-CfgsaJjd.js +28320 -0
- package/dist/hooks/device-proxy-registry.d.ts +29 -0
- package/dist/hooks/index.d.ts +58 -0
- package/dist/hooks/merge-detections.d.ts +16 -0
- package/dist/hooks/motion-trigger-reading.d.ts +10 -0
- package/dist/hooks/turn-server-cache.d.ts +77 -0
- package/dist/hooks/use-account-unit-preferences.d.ts +10 -0
- package/dist/hooks/use-broker-instances.d.ts +48 -0
- package/dist/hooks/use-capability-presence.d.ts +110 -0
- package/dist/hooks/use-cluster-nodes.d.ts +64 -0
- package/dist/hooks/use-debounced-string.d.ts +1 -0
- package/dist/hooks/use-destructive-action.d.ts +31 -0
- package/dist/hooks/use-device-autotrack.d.ts +10 -0
- package/dist/hooks/use-device-battery.d.ts +29 -0
- package/dist/hooks/use-device-cap-slice.d.ts +19 -0
- package/dist/hooks/use-device-capability.d.ts +63 -0
- package/dist/hooks/use-device-command.d.ts +3 -0
- package/dist/hooks/use-device-detections.d.ts +50 -0
- package/dist/hooks/use-device-features.d.ts +25 -0
- package/dist/hooks/use-device-list-page-size.d.ts +28 -0
- package/dist/hooks/use-device-network-link.d.ts +18 -0
- package/dist/hooks/use-device-proxy.d.ts +117 -0
- package/dist/hooks/use-device-removal.d.ts +26 -0
- package/dist/hooks/use-device-snapshot.d.ts +30 -0
- package/dist/hooks/use-device-webrtc.d.ts +235 -0
- package/dist/hooks/use-devices.d.ts +13 -0
- package/dist/hooks/use-doorbell-events.d.ts +20 -0
- package/dist/hooks/use-drag-value.d.ts +32 -0
- package/dist/hooks/use-event-invalidation.d.ts +1 -0
- package/dist/hooks/use-event-stream.d.ts +8 -0
- package/dist/hooks/use-instances-of-cap.d.ts +50 -0
- package/dist/hooks/use-is-mobile.d.ts +10 -0
- package/dist/hooks/use-live-buffer.d.ts +8 -0
- package/dist/hooks/use-live-event.d.ts +3 -0
- package/dist/hooks/use-lock-door-sensor.d.ts +34 -0
- package/dist/hooks/use-log-history.d.ts +26 -0
- package/dist/hooks/use-log-names.d.ts +15 -0
- package/dist/hooks/use-log-stream-columns.d.ts +8 -0
- package/dist/hooks/use-navigation.d.ts +26 -0
- package/dist/hooks/use-one-shot-command.d.ts +13 -0
- package/dist/hooks/use-owns-scroll.d.ts +18 -0
- package/dist/hooks/use-persisted-page-size.d.ts +18 -0
- package/dist/hooks/use-ptz.d.ts +128 -0
- package/dist/hooks/use-row-operations.d.ts +28 -0
- package/dist/hooks/use-stationary-overlay.d.ts +46 -0
- package/dist/hooks/use-system-query.d.ts +35 -0
- package/dist/hooks/use-url-query.d.ts +20 -0
- package/dist/hotkeys/combo.d.ts +24 -0
- package/dist/hotkeys/hotkey-provider.d.ts +50 -0
- package/dist/hotkeys/index.d.ts +6 -0
- package/dist/hotkeys/use-search-field-hotkey.d.ts +13 -0
- package/dist/i18n/addon-i18n.d.ts +46 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/use-addon-t.d.ts +57 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/provider-icons.d.ts +3 -0
- package/dist/icons/remote-control.d.ts +3 -0
- package/dist/icons/status-icons.d.ts +3 -0
- package/dist/icons-CmCk_R3w.cjs +38517 -0
- package/dist/icons-DZzn2TV2.js +36816 -0
- package/dist/index.cjs +108146 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +104976 -0
- package/dist/lib/cap-error.d.ts +20 -0
- package/dist/lib/capability-label.d.ts +18 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/event-category-selection.d.ts +26 -0
- package/dist/lib/fleet-query-defaults.d.ts +75 -0
- package/dist/lib/format-control-datetime.d.ts +18 -0
- package/dist/lib/format-duration.d.ts +14 -0
- package/dist/lib/format-last-seen.d.ts +22 -0
- package/dist/lib/format-numeric.d.ts +1 -0
- package/dist/lib/hub-mount.d.ts +22 -0
- package/dist/lib/index.d.ts +22 -0
- package/dist/lib/listbox-position.d.ts +46 -0
- package/dist/lib/mf-runtime-init.d.ts +1 -0
- package/dist/lib/phase-config.d.ts +35 -0
- package/dist/lib/recorded-control-protocol.d.ts +59 -0
- package/dist/lib/resolve-sensor-display.d.ts +42 -0
- package/dist/lib/responsive.d.ts +111 -0
- package/dist/lib/scrub-controller.d.ts +112 -0
- package/dist/lib/shared-context.d.ts +30 -0
- package/dist/lib/subject-path.d.ts +9 -0
- package/dist/lib/tailwind-variants.d.ts +27 -0
- package/dist/lib/unit-preferences.d.ts +28 -0
- package/dist/lucide-icons-module.d.d.ts +10 -0
- package/dist/mic-off-B83GCRGo.js +45 -0
- package/dist/mic-off-BKguA8pd.cjs +56 -0
- package/dist/primitives/badge.d.ts +15 -0
- package/dist/primitives/bottom-sheet.d.ts +11 -0
- package/dist/primitives/button.d.ts +12 -0
- package/dist/primitives/card.d.ts +5 -0
- package/dist/primitives/checkbox.d.ts +3 -0
- package/dist/primitives/collapsible-card.d.ts +25 -0
- package/dist/primitives/dialog-search-focus.d.ts +11 -0
- package/dist/primitives/dialog.d.ts +39 -0
- package/dist/primitives/disclosure-chevron.d.ts +18 -0
- package/dist/primitives/dropdown.d.ts +27 -0
- package/dist/primitives/file-input.d.ts +7 -0
- package/dist/primitives/floating-panel.d.ts +43 -0
- package/dist/primitives/icon-button.d.ts +11 -0
- package/dist/primitives/index.d.ts +28 -0
- package/dist/primitives/input.d.ts +13 -0
- package/dist/primitives/label.d.ts +3 -0
- package/dist/primitives/mobile-drawer.d.ts +10 -0
- package/dist/primitives/password-input.d.ts +19 -0
- package/dist/primitives/popover.d.ts +35 -0
- package/dist/primitives/radio.d.ts +4 -0
- package/dist/primitives/scroll-area.d.ts +3 -0
- package/dist/primitives/select-model.d.ts +22 -0
- package/dist/primitives/select.d.ts +60 -0
- package/dist/primitives/separator.d.ts +5 -0
- package/dist/primitives/skeleton.d.ts +3 -0
- package/dist/primitives/slider.d.ts +4 -0
- package/dist/primitives/swipe-actions.d.ts +99 -0
- package/dist/primitives/switch.d.ts +7 -0
- package/dist/primitives/tabs-list-scroll.d.ts +19 -0
- package/dist/primitives/tabs.d.ts +41 -0
- package/dist/primitives/textarea.d.ts +6 -0
- package/dist/primitives/tooltip.d.ts +15 -0
- package/dist/primitives/top-layer-portal.d.ts +21 -0
- package/dist/test-setup/tag-registry.d.ts +1 -0
- package/dist/testing/select-option.d.ts +35 -0
- package/dist/theme/create-theme.d.ts +2 -0
- package/dist/theme/defaults.d.ts +4 -0
- package/dist/theme/index.cjs +102 -0
- package/dist/theme/index.d.ts +7 -0
- package/dist/theme/index.js +91 -0
- package/dist/theme/theme-provider.d.ts +11 -0
- package/dist/theme/theme-to-css.d.ts +3 -0
- package/dist/theme/theme-to-root-css.d.ts +10 -0
- package/dist/theme/tokens.cjs +7 -0
- package/dist/theme/tokens.d.ts +9 -0
- package/dist/theme/tokens.js +2 -0
- package/dist/theme/types.d.ts +116 -0
- package/dist/theme/use-theme-mode.d.ts +2 -0
- package/dist/theme-to-root-css-CIqt8k0j.cjs +256 -0
- package/dist/theme-to-root-css-Ca6MGqO9.js +227 -0
- package/dist/trpc-react.d.ts +27 -0
- package/dist/uPlot.esm-BbxBUnav.cjs +3767 -0
- package/dist/uPlot.esm-C_8LiAPm.js +3767 -0
- package/dist/ui-library-version.d.ts +1 -0
- package/dist/widgets/host-widgets.d.ts +9 -0
- package/package.json +135 -4
- package/src/tailwind/camstack-theme.css +334 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The selected day of an energy system: its local-day window, the day totals
|
|
3
|
+
* read from the recorded counters, and the flow-source spans read from the
|
|
4
|
+
* recorded signed powers. Pure. A day nothing recorded is null, never 0 (D393).
|
|
5
|
+
*/
|
|
6
|
+
import type { DeviceHistoryQueryResult } from "@dominevo/types";
|
|
7
|
+
import type { TimePoint } from "../../charts/chart-data";
|
|
8
|
+
import { type EnergyToday } from "../scenes/energy/model";
|
|
9
|
+
export interface EnergyDayWindow {
|
|
10
|
+
/** Local midnight that opens the day. */
|
|
11
|
+
readonly from: number;
|
|
12
|
+
/** Local midnight that closes it (the next day's `from`; DST-safe, so 23 to 25 h). */
|
|
13
|
+
readonly to: number;
|
|
14
|
+
}
|
|
15
|
+
/** The local day `offsetDays` before the day `now` falls in (0 = today). */
|
|
16
|
+
export declare function energyDayWindow(now: number, offsetDays: number): EnergyDayWindow;
|
|
17
|
+
/**
|
|
18
|
+
* The x domain a day chart draws. A past day is the whole local day. Today ends
|
|
19
|
+
* at the present, or at the last recorded point when that is later, never past
|
|
20
|
+
* the day's own end — so the axis stops where the data does instead of
|
|
21
|
+
* stretching to a midnight that has not happened.
|
|
22
|
+
*/
|
|
23
|
+
export declare function energyChartRange(window: EnergyDayWindow, isToday: boolean, now: number, lastPointAt: number | null): EnergyDayWindow;
|
|
24
|
+
/**
|
|
25
|
+
* The kWh a recorded counter grew by over a read: the sum of its points'
|
|
26
|
+
* `delta`. A counter that was read but did not move (no point carries a delta,
|
|
27
|
+
* and the value held before the window is known) grew by 0. Null when nothing
|
|
28
|
+
* was read at all: no series, a day with no recording, a failed read (D393).
|
|
29
|
+
*/
|
|
30
|
+
export declare function counterDayTotal(result: DeviceHistoryQueryResult | undefined, windowFrom: number): number | null;
|
|
31
|
+
/** What the day's counters said, kWh; each null when that counter has no reading. */
|
|
32
|
+
export interface EnergyDayTotals {
|
|
33
|
+
readonly producedKwh: number | null;
|
|
34
|
+
/** Null when the system has no heat pump series. */
|
|
35
|
+
readonly heatPumpKwh: number | null;
|
|
36
|
+
readonly importedKwh: number | null;
|
|
37
|
+
readonly exportedKwh: number | null;
|
|
38
|
+
readonly chargedKwh: number | null;
|
|
39
|
+
readonly dischargedKwh: number | null;
|
|
40
|
+
}
|
|
41
|
+
/** The card's day facts of a past day, from its counters. Null when nothing was recorded at all. */
|
|
42
|
+
export declare function energyTodayOfDay(totals: EnergyDayTotals, hasHeatPump: boolean, hasStorage: boolean): EnergyToday | null;
|
|
43
|
+
/** Where the house's energy comes from or goes to, per span of the day. */
|
|
44
|
+
export type EnergyFlowSource = "from-grid" | "to-grid" | "from-battery" | "to-battery";
|
|
45
|
+
export interface EnergyFlowSpan {
|
|
46
|
+
readonly source: EnergyFlowSource;
|
|
47
|
+
readonly from: number;
|
|
48
|
+
readonly to: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The flow-source spans of a window, from the signed grid power (+ import) and
|
|
52
|
+
* the signed storage power (+ charging). A node below the still threshold, or
|
|
53
|
+
* with no reading, contributes nothing: an unknown power draws no span.
|
|
54
|
+
* Contiguous stretches of one source are merged; the spans of different sources
|
|
55
|
+
* may overlap (the grid and the battery can run at the same time).
|
|
56
|
+
*/
|
|
57
|
+
export declare function energyFlowSpans(gridW: readonly TimePoint[], storageW: readonly TimePoint[], range: EnergyDayWindow): readonly EnergyFlowSpan[];
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `energy-system` → the energy card. Pure: the connected card reads the slice,
|
|
3
|
+
* these turn it into the scene's node powers and today's totals. The storage
|
|
4
|
+
* is read from the model's `storage` part, never from the `battery` cap (#522).
|
|
5
|
+
*/
|
|
6
|
+
import { type EnergySystemStatus, type HeatPumpEnergy, type HeatPumpPower } from "@dominevo/types";
|
|
7
|
+
import type { EnergyFlows, EnergySourceSplit, EnergyToday } from "../scenes/energy/model";
|
|
8
|
+
/** Derived daily facts. Null is a missing input, not a stand-in for zero. */
|
|
9
|
+
export interface EnergyDailyFacts {
|
|
10
|
+
readonly selfSufficiencyPct: number | null;
|
|
11
|
+
readonly producedKwh: number | null;
|
|
12
|
+
readonly houseKwh: number | null;
|
|
13
|
+
readonly importedKwh: number | null;
|
|
14
|
+
readonly exportedKwh: number | null;
|
|
15
|
+
readonly netGridKwh: number | null;
|
|
16
|
+
readonly autonomyHours: number | null;
|
|
17
|
+
readonly chargedTodayKwh: number | null;
|
|
18
|
+
readonly dischargedTodayKwh: number | null;
|
|
19
|
+
readonly socPct: number | null;
|
|
20
|
+
readonly healthPct: number | null;
|
|
21
|
+
readonly heatPumpShareNowPct: number | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Node powers signed against the bus (+ into it): the cap's grid is already
|
|
25
|
+
* + import; its storage is + charging, which takes power OUT of the bus, so the
|
|
26
|
+
* scene's battery is its negation. A part the system lacks draws no node.
|
|
27
|
+
*/
|
|
28
|
+
export declare function energyFlowsOf(status: EnergySystemStatus): EnergyFlows;
|
|
29
|
+
export declare function selfSufficiencyPct(houseKwh: number | null, importKwh: number | null): number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Self-consumption: the share of the production that was not exported, 0..100.
|
|
32
|
+
* Null when the production or the export is unknown, or nothing was produced (D393).
|
|
33
|
+
*/
|
|
34
|
+
export declare function selfConsumptionPct(producedKwh: number | null, exportedKwh: number | null): number | null;
|
|
35
|
+
/** Net grid, kWh: imported − exported (+ drew, − fed). Null unless both are known. */
|
|
36
|
+
export declare function netGridKwh(importedKwh: number | null, exportedKwh: number | null): number | null;
|
|
37
|
+
/** The day totals the energy balance reads, kWh; null = that counter is unknown. */
|
|
38
|
+
export interface EnergyBalanceInput {
|
|
39
|
+
readonly producedKwh: number | null;
|
|
40
|
+
readonly importedKwh: number | null;
|
|
41
|
+
readonly exportedKwh: number | null;
|
|
42
|
+
readonly chargedKwh: number | null;
|
|
43
|
+
readonly dischargedKwh: number | null;
|
|
44
|
+
readonly heatPumpKwh: number | null;
|
|
45
|
+
/** The system has a battery: its two counters must be known, a missing pair is not 0. */
|
|
46
|
+
readonly hasStorage: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface EnergyBalance {
|
|
49
|
+
/** produced + imported − exported + discharged − charged; null when an input is unknown. */
|
|
50
|
+
readonly consumptionKwh: number | null;
|
|
51
|
+
/** The consumption minus the heat pump, floored at 0. */
|
|
52
|
+
readonly householdKwh: number | null;
|
|
53
|
+
/** 1 − imported / consumption, 0..100. */
|
|
54
|
+
readonly selfSufficiencyPct: number | null;
|
|
55
|
+
readonly sources: EnergySourceSplit | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* produced + imported − exported + discharged − charged. The storage counters
|
|
59
|
+
* are both absent only for a system without storage (no contribution); a system
|
|
60
|
+
* with storage needs both, and one known alone is an unknown balance (D393).
|
|
61
|
+
*/
|
|
62
|
+
export declare function balanceConsumptionKwh(input: EnergyBalanceInput): number | null;
|
|
63
|
+
/**
|
|
64
|
+
* The energy balance of a day: what was consumed and where it came from. The
|
|
65
|
+
* storage counters are both absent for a system without storage (no
|
|
66
|
+
* contribution); only one of them known is an unknown balance (D393).
|
|
67
|
+
*/
|
|
68
|
+
export declare function energyBalance(input: EnergyBalanceInput, hasHeatPump: boolean): EnergyBalance;
|
|
69
|
+
/** The daily facts of one energy-system slice. Pure; a missing input is null. */
|
|
70
|
+
export declare function energyDailyFacts(status: EnergySystemStatus): EnergyDailyFacts;
|
|
71
|
+
/** Today's totals, as the system reports them; null when the system reports none of them. */
|
|
72
|
+
export declare function energyTodayOf(status: EnergySystemStatus): EnergyToday | null;
|
|
73
|
+
/** What the linked heat pump device (D1076) reads, for one day; every field null while unknown. */
|
|
74
|
+
export interface LinkedHeatPump {
|
|
75
|
+
/** Electrical power now, W: the heat pump node of the bus. */
|
|
76
|
+
readonly powerW: number | null;
|
|
77
|
+
readonly lifetimeKwh: number | null;
|
|
78
|
+
readonly copNow: number | null;
|
|
79
|
+
/** Electrical energy of the day, kWh (a difference of the lifetime meter). */
|
|
80
|
+
readonly dayKwh: number | null;
|
|
81
|
+
readonly dayCop: number | null;
|
|
82
|
+
}
|
|
83
|
+
/** The parts of the `heat-pump-status` slice the card reads. */
|
|
84
|
+
export interface LinkedHeatPumpStatus {
|
|
85
|
+
readonly power: HeatPumpPower;
|
|
86
|
+
readonly energy: HeatPumpEnergy;
|
|
87
|
+
}
|
|
88
|
+
/** The day's counter totals of the linked heat pump device, kWh; null = not read. */
|
|
89
|
+
export interface LinkedHeatPumpDay {
|
|
90
|
+
readonly thermalKwh: number | null;
|
|
91
|
+
readonly electricalKwh: number | null;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The linked heat pump's `heat-pump-status` slice and the day's counters as the
|
|
95
|
+
* card reads them. A slice that has not answered leaves everything null: the
|
|
96
|
+
* system's own heat pump branch is never mixed in (D224).
|
|
97
|
+
*/
|
|
98
|
+
export declare function linkedHeatPumpOf(status: LinkedHeatPumpStatus | undefined, day: LinkedHeatPumpDay): LinkedHeatPump;
|
|
99
|
+
/** The system's slice with its heat pump branch served by the linked device instead. */
|
|
100
|
+
export declare function withLinkedHeatPump(status: EnergySystemStatus, linked: LinkedHeatPump): EnergySystemStatus;
|
|
101
|
+
/** Today's facts with the heat pump's COP from the linked device; the COP of "now" is today's only. */
|
|
102
|
+
export declare function withHeatPumpCop(today: EnergyToday | null, linked: LinkedHeatPump, isToday: boolean): EnergyToday | null;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A real fan's slices as the fan card draws them: the `fan-control` slice
|
|
3
|
+
* (speed, presets, direction, oscillation or its axes) and the saved presets
|
|
4
|
+
* of `fan-presets`, in one menu.
|
|
5
|
+
*/
|
|
6
|
+
import { type FanControlStatus, type FanOscillationAxis, type FanPreset, type FanPresetApplyResult } from "@dominevo/types";
|
|
7
|
+
import type { FanAxisModel, FanCardModel } from "../scenes/fan/model";
|
|
8
|
+
export type FanPresetChoice = {
|
|
9
|
+
readonly kind: "device";
|
|
10
|
+
readonly preset: string;
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: "saved";
|
|
13
|
+
readonly presetId: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function fanPresetChoice(id: string): FanPresetChoice | null;
|
|
16
|
+
/** An axis the fan reports; null when it reports nothing on it. */
|
|
17
|
+
export declare function fanAxisOf(axis: FanOscillationAxis | null | undefined): FanAxisModel | null;
|
|
18
|
+
export interface FanSliceInput {
|
|
19
|
+
readonly fan: FanControlStatus | null | undefined;
|
|
20
|
+
readonly saved: readonly FanPreset[];
|
|
21
|
+
readonly commands: {
|
|
22
|
+
readonly speed: boolean;
|
|
23
|
+
readonly preset: boolean;
|
|
24
|
+
readonly direction: boolean;
|
|
25
|
+
readonly oscillating: boolean;
|
|
26
|
+
readonly axis: boolean;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* What the device declares (`DeviceFeature`). Before the fan-control slice
|
|
30
|
+
* answers, a declared speed or direction is drawn as a pending control —
|
|
31
|
+
* present, value unknown — rather than missing.
|
|
32
|
+
*/
|
|
33
|
+
readonly features?: readonly string[];
|
|
34
|
+
}
|
|
35
|
+
export type FanSliceModel = Pick<FanCardModel, "speed" | "speedStep" | "presets" | "preset" | "direction" | "oscillating" | "axes" | "pending">;
|
|
36
|
+
/** What the fan card draws from the slices; a field the device cannot command is not drawn. */
|
|
37
|
+
export declare function fanSliceModel({ fan, saved, commands, features }: FanSliceInput): FanSliceModel;
|
|
38
|
+
/**
|
|
39
|
+
* Why a saved preset did not fully apply, naming each field that did not
|
|
40
|
+
* (D1034); null when everything applied.
|
|
41
|
+
*/
|
|
42
|
+
export declare function fanPresetFailure(result: FanPresetApplyResult): string | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `heat-pump-status` → the heat-pump card. Pure: the connected card reads the
|
|
3
|
+
* slice, these turn it into words and selectors. Every selector exists only
|
|
4
|
+
* where the gateway named values to choose from, so a write never leaves
|
|
5
|
+
* `allowed` (the same rules the device page's hero followed, D1026).
|
|
6
|
+
*/
|
|
7
|
+
import type { HeatPumpCircuit, HeatPumpStatus } from "@dominevo/types";
|
|
8
|
+
import type { UiTextFn } from "../../../contexts/ui-text";
|
|
9
|
+
import { type HeatPumpActivity, type HeatPumpCircuitPicker, type HeatPumpCircuitView, type HeatPumpSystemModeView } from "../scenes/heat-pump/model";
|
|
10
|
+
/** The words of a value the gateway names; one not listed is drawn as the gateway wrote it. */
|
|
11
|
+
export declare function heatPumpValueLabel(value: string, t: UiTextFn): string;
|
|
12
|
+
/** Hot water with a temperature level picks the level; otherwise the operation mode. */
|
|
13
|
+
export declare function heatPumpCircuitPicker(circuit: HeatPumpCircuit, t: UiTextFn): HeatPumpCircuitPicker | null;
|
|
14
|
+
export declare function heatPumpCircuitView(circuit: HeatPumpCircuit, t: UiTextFn, precision?: number): HeatPumpCircuitView;
|
|
15
|
+
/** Only the modes the gateway declares, in the fixed order silent, away, additional heater, holiday. */
|
|
16
|
+
export declare function heatPumpSystemModes(system: HeatPumpStatus["system"], t: UiTextFn): readonly HeatPumpSystemModeView[];
|
|
17
|
+
/**
|
|
18
|
+
* What the pump is doing: idle when the compressor status the gateway reports (else the
|
|
19
|
+
* modulation, else the electrical draw) says it is not running; otherwise the kind of the active circuit. The cap
|
|
20
|
+
* reports no defrost, so the card never invents one.
|
|
21
|
+
*/
|
|
22
|
+
export declare function heatPumpActivityOf(status: HeatPumpStatus): HeatPumpActivity;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HumidifierStatus } from "@dominevo/types";
|
|
2
|
+
import type { UiTextFn } from "../../../contexts/ui-text";
|
|
3
|
+
import type { HumidifierActivity, HumidifierModeOption } from "../scenes/humidifier/model";
|
|
4
|
+
/** The card's activity: off when it is off, else what its `action` reports. */
|
|
5
|
+
export declare function humidifierActivityOf(status: Pick<HumidifierStatus, "on" | "action">): HumidifierActivity;
|
|
6
|
+
export declare function humidifierModeLabel(mode: string, t: UiTextFn): string;
|
|
7
|
+
export declare function humidifierModeOptions(modes: readonly string[], t: UiTextFn): readonly HumidifierModeOption[];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure mapping from an IR transmitter's info, its runtime slice and the
|
|
3
|
+
* in-progress learn onto the scene. A fact that was not read is "—"; "Never"
|
|
4
|
+
* is only for a slice that answered with nothing.
|
|
5
|
+
*/
|
|
6
|
+
import type { IrLearnResult, IrMedium, IrTransmitterRuntimeState } from "@dominevo/types";
|
|
7
|
+
import type { UiTextFn } from "../../../contexts/ui-text";
|
|
8
|
+
import type { CardReading } from "../parts/Readings";
|
|
9
|
+
import type { CardTone } from "../shell/model";
|
|
10
|
+
/** Shown when a query or a slice has not answered. Never the word "never". */
|
|
11
|
+
export declare const IR_UNKNOWN = "—";
|
|
12
|
+
export interface IrInfoReady {
|
|
13
|
+
readonly media: readonly IrMedium[];
|
|
14
|
+
readonly learn: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** The slice, once it has been read. Null records mean the action has not happened. */
|
|
17
|
+
export type IrSliceReady = Pick<IrTransmitterRuntimeState, "lastSend" | "lastLearn">;
|
|
18
|
+
export interface IrLearnProbe {
|
|
19
|
+
readonly pending: boolean;
|
|
20
|
+
readonly result: IrLearnResult | null;
|
|
21
|
+
readonly errorCode: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface IrTransmitterSceneInput {
|
|
24
|
+
readonly info: IrInfoReady | null;
|
|
25
|
+
readonly slice: IrSliceReady | null;
|
|
26
|
+
readonly probe: IrLearnProbe;
|
|
27
|
+
readonly readOnly: boolean;
|
|
28
|
+
readonly now: number;
|
|
29
|
+
readonly t: UiTextFn;
|
|
30
|
+
}
|
|
31
|
+
export interface IrTransmitterScene {
|
|
32
|
+
readonly headline: string;
|
|
33
|
+
readonly since: string | null;
|
|
34
|
+
readonly tone: CardTone;
|
|
35
|
+
readonly readings: readonly CardReading[];
|
|
36
|
+
readonly learned: string | null;
|
|
37
|
+
readonly learnLabel: string;
|
|
38
|
+
readonly learnEnabled: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare const IR_PROBE_IDLE: IrLearnProbe;
|
|
41
|
+
/** The typed code on a provider error or on a tRPC error that carried `data.i18n`. */
|
|
42
|
+
export declare function irClientErrorCode(err: unknown): string | null;
|
|
43
|
+
/** What the scene draws from one read of info, state and the learn probe. */
|
|
44
|
+
export declare function irTransmitterScene(input: IrTransmitterSceneInput): IrTransmitterScene;
|
|
45
|
+
/** A typed refusal, in the operator's language. An unknown code stays visible. */
|
|
46
|
+
export declare function irRefusalLabel(code: string | null, t: UiTextFn): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LockControlStatus } from "@dominevo/types";
|
|
2
|
+
import type { LockActivity, LockDoor } from "../scenes/lock/model";
|
|
3
|
+
export interface LockReading {
|
|
4
|
+
readonly activity: LockActivity;
|
|
5
|
+
/** The lock itself reports the door open (`door-open`). */
|
|
6
|
+
readonly selfDoorOpen: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** The card's activity from the lock's state; `door-open` is an unlocked lock beside an open door. */
|
|
9
|
+
export declare function lockReadingOf(status: Pick<LockControlStatus, "state">): LockReading;
|
|
10
|
+
/** The door is open when the linked contact says so, or the lock does. */
|
|
11
|
+
export declare function lockDoorOpen(door: LockDoor | null, selfDoorOpen: boolean): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { HeroMeasurementQuantity } from "@dominevo/types";
|
|
2
|
+
import type { UiTextFn } from "../../../contexts/ui-text";
|
|
3
|
+
/** The short name of a quantity, under its value in the pie. */
|
|
4
|
+
export declare function quantityLabel(t: UiTextFn, quantity: HeroMeasurementQuantity): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HeroMeasurement } from "@dominevo/types";
|
|
2
|
+
import type { UiTextFn } from "../../../contexts/ui-text";
|
|
3
|
+
/** The part of a measurement the state corner's "since" reads. */
|
|
4
|
+
export type MeasurementSince = Pick<HeroMeasurement, "since" | "sinceKind">;
|
|
5
|
+
/**
|
|
6
|
+
* The state corner's "since" for a sensor: how long a state has HELD (the same
|
|
7
|
+
* coarse duration every card's corner shows) for a `changed` measurement, "2 min
|
|
8
|
+
* ago" for a value last READ then; `null` when never observed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function measurementSinceText(m: MeasurementSince, t: UiTextFn, now?: number): string | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Pure mapping from a `media-player` slice and the device's features to the media scene. */
|
|
2
|
+
import { type MediaPlayerStatus } from "@dominevo/types";
|
|
3
|
+
import type { MediaArtworkKind } from "../illustrations/MediaArtwork";
|
|
4
|
+
import { type MediaPhase, type MediaSeek, type MediaTransport, type MediaVolume, type MediaVolumeBounds } from "../scenes/media/model";
|
|
5
|
+
export declare function mediaPhaseOf(status: MediaPlayerStatus): MediaPhase;
|
|
6
|
+
export declare function mediaArtworkOf(status: MediaPlayerStatus): MediaArtworkKind;
|
|
7
|
+
export declare function mediaSubtitleOf(status: MediaPlayerStatus): string | null;
|
|
8
|
+
export interface MediaVolumeOptions {
|
|
9
|
+
/** The binding implements `setVolume`. */
|
|
10
|
+
readonly absolute: boolean;
|
|
11
|
+
/** The device's declared range. Absent: 0..100 step 1. */
|
|
12
|
+
readonly bounds?: MediaVolumeBounds | null;
|
|
13
|
+
}
|
|
14
|
+
/** The volume block: shown when the player declares a volume level or volume keys. */
|
|
15
|
+
export declare function mediaVolumeOf(status: MediaPlayerStatus, features: readonly string[], options?: MediaVolumeOptions): MediaVolume | null;
|
|
16
|
+
/** The position, read from where the player reported it and how long it has played since. */
|
|
17
|
+
export declare function mediaSeekOf(status: MediaPlayerStatus, features: readonly string[], now?: number): MediaSeek | null;
|
|
18
|
+
export declare function mediaTransportOf(status: MediaPlayerStatus, features: readonly string[]): MediaTransport;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PetFeederStatus, PetFountainStatus } from "@dominevo/types";
|
|
2
|
+
import type { PetFeederActivity, PetFeederHopper, PetFountainActivity } from "../scenes/pet/model";
|
|
3
|
+
/** The fault a device reports, or null when it is healthy. */
|
|
4
|
+
export declare function petFaultOf(error: string | null): string | null;
|
|
5
|
+
export declare function petFeederActivityOf(status: Pick<PetFeederStatus, "error" | "feeding" | "eating" | "lowFood">): PetFeederActivity;
|
|
6
|
+
export declare function petFountainActivityOf(status: Pick<PetFountainStatus, "error" | "empty" | "pumpRunning">): PetFountainActivity;
|
|
7
|
+
/** The feed command's input: a single hopper takes grams, a dual one names the hopper. */
|
|
8
|
+
export interface PetFeedInput {
|
|
9
|
+
readonly grams?: number;
|
|
10
|
+
readonly hopper1?: number;
|
|
11
|
+
readonly hopper2?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function petFeedInput(grams: number, hopper: PetFeederHopper): PetFeedInput;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type DeviceHistoryQueryManyEntry, type ReadingQuantity } from "@dominevo/types";
|
|
2
|
+
import type { SparklinePoint } from "../../charts/Sparkline";
|
|
3
|
+
export interface PrimaryTrend {
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly points: readonly SparklinePoint[];
|
|
6
|
+
/** The declared quantity of the series; `undefined` when the cap states no known unit. */
|
|
7
|
+
readonly quantity: ReadingQuantity | undefined;
|
|
8
|
+
/** The unit the cap's field declares; `null` when it declares none. */
|
|
9
|
+
readonly unit: string | null;
|
|
10
|
+
}
|
|
11
|
+
/** The series keys worth reading for a device: the declared primary of each enabled cap. */
|
|
12
|
+
export declare function primaryTrendKeys(enabledCaps: readonly string[]): readonly string[];
|
|
13
|
+
/**
|
|
14
|
+
* The trend a device card draws: the primary series of the enabled cap with the highest
|
|
15
|
+
* priority that answered with a line, else the next. `null` when none did.
|
|
16
|
+
*/
|
|
17
|
+
export declare function pickPrimaryTrend(input: {
|
|
18
|
+
readonly deviceId: number;
|
|
19
|
+
readonly enabledCaps: readonly string[];
|
|
20
|
+
readonly reads: ReadonlyMap<string, DeviceHistoryQueryManyEntry>;
|
|
21
|
+
}): PrimaryTrend | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The layout the device card's remote view draws. A saved template wins; while
|
|
3
|
+
* that template is still loading the view waits. With no template, the preset
|
|
4
|
+
* that covers the most bound roles — never the raw command ids.
|
|
5
|
+
*/
|
|
6
|
+
import type { MediaPlayerStatus, RemoteCommandList } from "@dominevo/types";
|
|
7
|
+
import type { CardRemotePanel } from "../shell/model";
|
|
8
|
+
interface TemplateRow {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly payload: unknown;
|
|
11
|
+
}
|
|
12
|
+
export declare function remoteLayoutPending(commands: RemoteCommandList | null | undefined, templates: readonly TemplateRow[] | undefined, templateStatus: string): boolean;
|
|
13
|
+
export declare function remotePanelOf(deviceId: number, commands: RemoteCommandList | null | undefined, templates: readonly TemplateRow[] | undefined, templateStatus: string, assumed: Pick<MediaPlayerStatus, "source"> | null | undefined): CardRemotePanel | null;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Pure mapping from `vacuum-control` / `lawn-mower-control` to the robot scene. */
|
|
2
|
+
import type { LawnMowerControlStatus, VacuumControlStatus } from "@dominevo/types";
|
|
3
|
+
import type { RobotActivity } from "../illustrations/RobotIllustration";
|
|
4
|
+
export declare function vacuumActivityOf(status: VacuumControlStatus): RobotActivity;
|
|
5
|
+
export declare function mowerActivityOf(status: LawnMowerControlStatus): RobotActivity;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UiTextFn } from "../../../contexts/ui-text";
|
|
2
|
+
/**
|
|
3
|
+
* The corner's "since": how long ago `changedAt` was, or nothing when that
|
|
4
|
+
* stamp is not a real instant (seeded `1` / `0`, or still in the future).
|
|
5
|
+
*/
|
|
6
|
+
export declare function sinceText(changedAt: number | null | undefined, now: number, t: UiTextFn): string | undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type DisplayPreference, type ReadingQuantity } from "@dominevo/types";
|
|
2
|
+
import type { SparklinePoint } from "../../charts/Sparkline";
|
|
3
|
+
export interface TrendReadoutInput {
|
|
4
|
+
readonly points: readonly SparklinePoint[];
|
|
5
|
+
/** The declared quantity of the series; its base-unit samples are converted for display. */
|
|
6
|
+
readonly quantity?: ReadingQuantity | undefined;
|
|
7
|
+
/** The cap's declared unit when it names no known quantity; shown as is. */
|
|
8
|
+
readonly unit?: string | null | undefined;
|
|
9
|
+
readonly preference?: DisplayPreference | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The card's own display resolution for a base-unit sample (`resolveSensorDisplay`:
|
|
12
|
+
* the device's unit override, the role default, precision). Wins over `quantity` and
|
|
13
|
+
* `preference`, so the trend reads in the unit of the big value.
|
|
14
|
+
*/
|
|
15
|
+
readonly format?: ((raw: number) => FormattedSample) | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface FormattedSample {
|
|
18
|
+
readonly text: string;
|
|
19
|
+
readonly unit: string;
|
|
20
|
+
}
|
|
21
|
+
/** The words a trend's axes carry: Y min and max, the latest sample, and the unit. */
|
|
22
|
+
export interface TrendReadout {
|
|
23
|
+
readonly min: string;
|
|
24
|
+
readonly max: string;
|
|
25
|
+
readonly current: string;
|
|
26
|
+
/** Empty when the series states no unit. */
|
|
27
|
+
readonly unit: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The axis words of a trend line. `null` when fewer than two samples answered: an
|
|
31
|
+
* unanswered or empty series has no scale, and a made-up 0 would read as a measurement.
|
|
32
|
+
*/
|
|
33
|
+
export declare function trendReadout(input: TrendReadoutInput): TrendReadout | null;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { CardBattery, CardCommon, CardCommonActions } from "../shell/model";
|
|
2
|
+
export interface CardCommonInput {
|
|
3
|
+
readonly deviceId: number;
|
|
4
|
+
/** False when the viewer may look but not command. */
|
|
5
|
+
readonly canActuate: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface CardCommonResult {
|
|
8
|
+
readonly common: CardCommon;
|
|
9
|
+
readonly actions: CardCommonActions;
|
|
10
|
+
/** The device's type, once the registry answered. */
|
|
11
|
+
readonly deviceType: string | null;
|
|
12
|
+
readonly role: string | null;
|
|
13
|
+
/** What the device declares it can do (`DeviceFeature` values); empty until it answered. */
|
|
14
|
+
readonly features: readonly string[];
|
|
15
|
+
/**
|
|
16
|
+
* Whether the device's binding of `cap` implements `method`. False until the
|
|
17
|
+
* bindings answered: a control is drawn only once the device has said it has it.
|
|
18
|
+
*/
|
|
19
|
+
readonly implements: (cap: string, method: string) => boolean;
|
|
20
|
+
/** Puts a failed command's reason on the card's reason line. */
|
|
21
|
+
readonly fail: (error: unknown) => void;
|
|
22
|
+
/** Clears it: the next command went through. */
|
|
23
|
+
readonly succeed: () => void;
|
|
24
|
+
}
|
|
25
|
+
/** The binding answered for `cap`, and its provider has `method` (an absent list means every method). */
|
|
26
|
+
export declare function bindingImplements(entries: readonly BindingMethods[] | undefined, cap: string, method: string): boolean;
|
|
27
|
+
/** What a binding entry says about its methods. */
|
|
28
|
+
export interface BindingMethods {
|
|
29
|
+
readonly capName: string;
|
|
30
|
+
readonly implementedMethods?: readonly string[] | undefined;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Reachability as the device reports it. A device whose `device-status` has
|
|
34
|
+
* not answered is unknown: neither drawn as online nor blocked as offline.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* The shell's battery block from the device's `battery` slice. A voltage
|
|
38
|
+
* alone is enough to draw it (level stays null); a slice with neither a level
|
|
39
|
+
* nor a voltage is not yet known and draws nothing.
|
|
40
|
+
*/
|
|
41
|
+
export declare function cardBattery(slice: {
|
|
42
|
+
readonly level: number | null;
|
|
43
|
+
readonly binary?: boolean;
|
|
44
|
+
readonly voltage?: number | null;
|
|
45
|
+
} | null | undefined): CardBattery | null;
|
|
46
|
+
export declare function reachabilityOf(status: {
|
|
47
|
+
readonly online: boolean;
|
|
48
|
+
} | undefined): boolean | null;
|
|
49
|
+
export declare function useCardCommon({ deviceId, canActuate }: CardCommonInput): CardCommonResult;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { RunDeviceCommand } from "../../../hooks/use-device-command";
|
|
2
|
+
export interface CommandNotice {
|
|
3
|
+
/** Why the last command failed, for the card's reason line; null when it went through. */
|
|
4
|
+
readonly notice: string | null;
|
|
5
|
+
readonly fail: (error: unknown) => void;
|
|
6
|
+
readonly succeed: () => void;
|
|
7
|
+
}
|
|
8
|
+
/** The card's one place for "the last command failed, and why". */
|
|
9
|
+
export declare function useCommandNotice(): CommandNotice;
|
|
10
|
+
/**
|
|
11
|
+
* A command whose outcome lands on the card: a refusal puts its reason on the
|
|
12
|
+
* reason line, the next success clears it. The card shows the slice the hub
|
|
13
|
+
* serves, which holds the commanded value until the device confirms it (D1061).
|
|
14
|
+
*/
|
|
15
|
+
export declare function reportedCommand(run: RunDeviceCommand, report: Pick<CommandNotice, "fail" | "succeed">): (command: () => PromiseLike<unknown> | undefined) => void;
|
|
16
|
+
/**
|
|
17
|
+
* The binding does not offer this method. A call that skipped it used to
|
|
18
|
+
* resolve as a success (`fn?.()` is `undefined`, and a resolved `undefined`
|
|
19
|
+
* is not a refusal). Callers report this instead.
|
|
20
|
+
*/
|
|
21
|
+
export declare class MissingCommandError extends Error {
|
|
22
|
+
readonly cap: string;
|
|
23
|
+
readonly method: string;
|
|
24
|
+
constructor(cap: string, method: string);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The method when the device implements it; a rejection naming the cap and
|
|
28
|
+
* the method when it does not. Never a resolved `undefined`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function presentCommand<
|
|
31
|
+
I,
|
|
32
|
+
R
|
|
33
|
+
>(fn: ((input: I) => PromiseLike<R>) | undefined, cap: string, method: string): (input: I) => Promise<R>;
|
|
34
|
+
/**
|
|
35
|
+
* A plain command whose outcome lands on the card, awaited by the caller: a refusal names its reason, a success
|
|
36
|
+
* clears it. The promise tells the caller whether it went through (true) or
|
|
37
|
+
* failed (false); it never rejects.
|
|
38
|
+
*/
|
|
39
|
+
export declare function reportedCall(report: Pick<CommandNotice, "fail" | "succeed">): (run: () => PromiseLike<unknown> | undefined) => Promise<boolean>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { UiTextFn } from "../../../contexts/ui-text";
|
|
2
|
+
import type { TimeSeriesDef } from "../../charts/TimeSeriesChart";
|
|
3
|
+
import type { EnergyDayStatus } from "../parts/EnergyDayPanel";
|
|
4
|
+
import type { EnergyToday } from "../scenes/energy/model";
|
|
5
|
+
import { type EnergyDayWindow, type EnergyFlowSpan } from "./energy-day";
|
|
6
|
+
export interface EnergyDay {
|
|
7
|
+
readonly window: EnergyDayWindow;
|
|
8
|
+
/** The x domain the charts draw: the whole day, or for today up to the present. */
|
|
9
|
+
readonly chartRange: EnergyDayWindow;
|
|
10
|
+
readonly status: EnergyDayStatus;
|
|
11
|
+
readonly powerSeries: readonly TimeSeriesDef[];
|
|
12
|
+
readonly socSeries: readonly TimeSeriesDef[];
|
|
13
|
+
readonly flowSpans: readonly EnergyFlowSpan[];
|
|
14
|
+
/** The day's facts from the counters; null while unanswered or when nothing was recorded. */
|
|
15
|
+
readonly today: EnergyToday | null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* `linkedHeatPumpKwh`: the day's electrical kWh of the heat pump device the
|
|
19
|
+
* system is linked to (D1076), null while unread; `undefined` = no link, the
|
|
20
|
+
* system's own heat pump counter is read.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useEnergyDay(deviceId: number, dayOffset: number, t: UiTextFn, linkedHeatPumpKwh?: number | null): EnergyDay;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type EnergyDayWindow } from "./energy-day";
|
|
2
|
+
import { type LinkedHeatPump } from "./energy-model";
|
|
3
|
+
/** The energy-system link the heat pump fills (`energy-system.cap.ts`, `customize.links`). */
|
|
4
|
+
export declare const ENERGY_HEAT_PUMP_LINK: {
|
|
5
|
+
readonly cap: "energy-system";
|
|
6
|
+
readonly linkId: "heat-pump";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* `pending` until the read answered with a loaded engine; `none` when no link holds (or the read was
|
|
10
|
+
* refused: the system's own branch then stands); `linked` with the source device.
|
|
11
|
+
*/
|
|
12
|
+
export type HeatPumpLink = {
|
|
13
|
+
readonly status: "pending";
|
|
14
|
+
} | {
|
|
15
|
+
readonly status: "none";
|
|
16
|
+
} | {
|
|
17
|
+
readonly status: "linked";
|
|
18
|
+
readonly sourceDeviceId: number;
|
|
19
|
+
};
|
|
20
|
+
export declare function useHeatPumpLink(deviceId: number): HeatPumpLink;
|
|
21
|
+
/**
|
|
22
|
+
* The linked device's heat pump over `window`: the live slice and the day's two
|
|
23
|
+
* counters. Null while there is no linked device; each unread part is null.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useLinkedHeatPump(sourceDeviceId: number | null, window: EnergyDayWindow): LinkedHeatPump | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FanReadingOpen } from "../scenes/fan/FanCard";
|
|
2
|
+
import type { FanReading } from "../scenes/fan/model";
|
|
3
|
+
export interface MeasurementReadingsView {
|
|
4
|
+
readonly readings: readonly FanReading[];
|
|
5
|
+
readonly open: FanReadingOpen;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* What a device that is not a sensor measures (a fan's temperature and humidity
|
|
9
|
+
* bindings), as the operator reads it: name and value with its unit in their
|
|
10
|
+
* display units. A reading with no data is "—", never 0 (D393). Empty until the
|
|
11
|
+
* hero model answers, and for a device that measures nothing.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useMeasurementReadings(deviceId: number): MeasurementReadingsView;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CommandNotice } from "./use-command-notice";
|
|
2
|
+
export interface MotionTriggerControl {
|
|
3
|
+
/**
|
|
4
|
+
* The device binds `motion-trigger`, can set it, and its slice has answered: the
|
|
5
|
+
* card draws the corner. False otherwise.
|
|
6
|
+
*/
|
|
7
|
+
readonly present: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* "On motion" as the slice reports it; null while the slice holds only the
|
|
10
|
+
* cold-start seed (the camera was never read), or when `present` is false.
|
|
11
|
+
*/
|
|
12
|
+
readonly on: boolean | null;
|
|
13
|
+
/** A change is in flight: the toggle waits for the server. */
|
|
14
|
+
readonly pending: boolean;
|
|
15
|
+
readonly onToggle: (enabled: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
interface MotionTriggerArgs extends Pick<CommandNotice, "fail" | "succeed"> {
|
|
18
|
+
readonly deviceId: number;
|
|
19
|
+
/** The device's binding of `motion-trigger` implements `setMotionTrigger`. */
|
|
20
|
+
readonly settable: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The slice and setter behind every connected card's "on motion" toggle. One claim per
|
|
24
|
+
* change, so a double tap sends once; the card shows the served value (D1061).
|
|
25
|
+
*/
|
|
26
|
+
export declare function useMotionTrigger({ deviceId, settable, fail, succeed }: MotionTriggerArgs): MotionTriggerControl;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A switch's native power cycle, the way the plug card reads it: drawn only when
|
|
3
|
+
* the provider implements `powerCycle` AND its `getOptions` answered
|
|
4
|
+
* `supportsPowerCycle: true` (D1058). A provider that has the method but
|
|
5
|
+
* declares no cycle (a PoE port reached with a local account), a pending read
|
|
6
|
+
* and a failed read all draw nothing — the button appears once the device has
|
|
7
|
+
* said it can.
|
|
8
|
+
*/
|
|
9
|
+
import type { SwitchOptions } from "@dominevo/types";
|
|
10
|
+
import type { CardCommonResult } from "./use-card-common";
|
|
11
|
+
export interface PowerCycle {
|
|
12
|
+
readonly declared: boolean;
|
|
13
|
+
readonly onPowerCycle: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface PowerCycleInput {
|
|
16
|
+
readonly deviceId: number;
|
|
17
|
+
readonly card: Pick<CardCommonResult, "implements" | "fail" | "succeed">;
|
|
18
|
+
}
|
|
19
|
+
/** True only when the provider has the method and its options answered that it cycles. */
|
|
20
|
+
export declare function powerCycleDeclared(implementsCycle: boolean, options: SwitchOptions | undefined): boolean;
|
|
21
|
+
export declare function usePowerCycle({ deviceId, card }: PowerCycleInput): PowerCycle;
|