@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,93 @@
|
|
|
1
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
2
|
+
/** What the feeder is doing. `fault`: it reports an error and will not feed. */
|
|
3
|
+
export type PetFeederActivity = "feeding" | "eating" | "low" | "ready" | "fault";
|
|
4
|
+
/** A dual-hopper feeder's target; a single hopper is always `single`. */
|
|
5
|
+
export type PetFeederHopper = "single" | "hopper1" | "hopper2";
|
|
6
|
+
/** A feeder setting the device can switch. Null on the model: not offered. */
|
|
7
|
+
export interface PetFeederSettings {
|
|
8
|
+
readonly childLock: boolean | null;
|
|
9
|
+
readonly light: boolean | null;
|
|
10
|
+
readonly feedSound: boolean | null;
|
|
11
|
+
/** Null when the volume cannot be set. */
|
|
12
|
+
readonly volume: number | null;
|
|
13
|
+
}
|
|
14
|
+
export interface PetFeederCardModel {
|
|
15
|
+
readonly common: CardCommon;
|
|
16
|
+
readonly activity: PetFeederActivity;
|
|
17
|
+
readonly since: string | null;
|
|
18
|
+
/** The fault the device reports, shown under the scene. */
|
|
19
|
+
readonly fault: string | null;
|
|
20
|
+
/** 0..100 left in the (single) hopper; null when not reported. */
|
|
21
|
+
readonly foodLevel: number | null;
|
|
22
|
+
/** Per-hopper levels on a dual-hopper feeder; null on a single hopper. */
|
|
23
|
+
readonly hoppers: readonly [number | null, number | null] | null;
|
|
24
|
+
/** The bowl as text ("12 g"); null when not reported. */
|
|
25
|
+
readonly bowl: string | null;
|
|
26
|
+
readonly bowlFull: boolean;
|
|
27
|
+
readonly lowFood: boolean;
|
|
28
|
+
/** The portion the Feed button dispenses, grams. */
|
|
29
|
+
readonly portion: number;
|
|
30
|
+
readonly portionMin: number;
|
|
31
|
+
readonly portionMax: number;
|
|
32
|
+
readonly canFeed: boolean;
|
|
33
|
+
/** A Feed is in flight: the button is off so a double tap feeds once (D1061). */
|
|
34
|
+
readonly feedPending?: boolean;
|
|
35
|
+
readonly canCancel: boolean;
|
|
36
|
+
readonly canCallPet: boolean;
|
|
37
|
+
/** Mark refilled is offered when the feeder says the action exists. */
|
|
38
|
+
readonly canMarkRefilled: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Power words from the feeder's own status (mains, on battery, offline).
|
|
41
|
+
* Null when it reported nothing extra. PetKit binds no battery cap.
|
|
42
|
+
*/
|
|
43
|
+
readonly powerNote: string | null;
|
|
44
|
+
readonly settings: PetFeederSettings;
|
|
45
|
+
}
|
|
46
|
+
export interface PetFeederCardActions extends CardCommonActions {
|
|
47
|
+
readonly onFeed: (grams: number, hopper: PetFeederHopper) => void;
|
|
48
|
+
readonly onCancelFeed: () => void;
|
|
49
|
+
readonly onCallPet: () => void;
|
|
50
|
+
readonly onMarkRefilled: () => void;
|
|
51
|
+
readonly onChildLock: (on: boolean) => void;
|
|
52
|
+
readonly onLight: (on: boolean) => void;
|
|
53
|
+
readonly onFeedSound: (on: boolean) => void;
|
|
54
|
+
readonly onVolume: (level: number) => void;
|
|
55
|
+
}
|
|
56
|
+
/** What the fountain is doing. */
|
|
57
|
+
export type PetFountainActivity = "running" | "stopped" | "empty" | "fault" | "unknown";
|
|
58
|
+
/** The optional pump-cycle cap: run and rest, in minutes. Null minutes are unknown. */
|
|
59
|
+
export interface PetFountainCycle {
|
|
60
|
+
/** Null while the cycle switch has not reported. */
|
|
61
|
+
readonly enabled: boolean | null;
|
|
62
|
+
readonly runMinutes: number | null;
|
|
63
|
+
readonly restMinutes: number | null;
|
|
64
|
+
}
|
|
65
|
+
export interface PetFountainCardModel {
|
|
66
|
+
readonly common: CardCommon;
|
|
67
|
+
readonly activity: PetFountainActivity;
|
|
68
|
+
readonly since: string | null;
|
|
69
|
+
readonly fault: string | null;
|
|
70
|
+
/** 0..100 water in the tank; null when not reported. */
|
|
71
|
+
readonly waterLevel: number | null;
|
|
72
|
+
/** Litres in the tank; null when not reported. Drawn as millilitres. */
|
|
73
|
+
readonly waterVolume: number | null;
|
|
74
|
+
/**
|
|
75
|
+
* Whether the pump runs. Null is unknown — neither on nor off — and is
|
|
76
|
+
* drawn that way when `pumpSwitchable` is set.
|
|
77
|
+
*/
|
|
78
|
+
readonly pump: boolean | null;
|
|
79
|
+
/** The binding implements setPump. */
|
|
80
|
+
readonly pumpSwitchable: boolean;
|
|
81
|
+
/** Null when the fountain does not compose `pump-cycle`. */
|
|
82
|
+
readonly cycle: PetFountainCycle | null;
|
|
83
|
+
}
|
|
84
|
+
export interface PetFountainCardActions extends CardCommonActions {
|
|
85
|
+
readonly onPump: (on: boolean) => void;
|
|
86
|
+
readonly onCycle: (on: boolean) => void;
|
|
87
|
+
readonly onRunMinutes: (minutes: number) => void;
|
|
88
|
+
readonly onRestMinutes: (minutes: number) => void;
|
|
89
|
+
}
|
|
90
|
+
/** Tank volume as millilitres. Null stays unknown — never zero. */
|
|
91
|
+
export declare function fountainMillilitres(litres: number | null): string | null;
|
|
92
|
+
/** Under this much water the pump stops: the level is drawn as a warning. */
|
|
93
|
+
export declare const FOUNTAIN_LOW_PERCENT = 10;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { CardOrientation } from "../../shell/model";
|
|
3
|
+
import type { PlugCardActions, PlugCardModel } from "./model";
|
|
4
|
+
export interface PlugCardProps {
|
|
5
|
+
readonly model: PlugCardModel;
|
|
6
|
+
readonly actions: PlugCardActions;
|
|
7
|
+
readonly orientation?: CardOrientation;
|
|
8
|
+
/** Draw the device name (default true); false when the host already names the device. */
|
|
9
|
+
readonly showName?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The plug: on / off, the switch's timed run, a two-step restart when the switch
|
|
13
|
+
* declares a native power cycle, and what the shell shows for any device.
|
|
14
|
+
*/
|
|
15
|
+
export declare function PlugCard({ model, actions, orientation, showName }: PlugCardProps): ReactElement;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
2
|
+
import type { SwitchTimerActions, SwitchTimerModel } from "../../parts/switch-timer-model";
|
|
3
|
+
export interface PlugCardModel {
|
|
4
|
+
readonly common: CardCommon;
|
|
5
|
+
/** Null when the switch state is not known. */
|
|
6
|
+
readonly on: boolean | null;
|
|
7
|
+
readonly since: string | null;
|
|
8
|
+
/** Null when the switch declares no timed run. */
|
|
9
|
+
readonly timer: SwitchTimerModel | null;
|
|
10
|
+
/** The switch's provider declares a native power cycle (`getOptions().supportsPowerCycle`). */
|
|
11
|
+
readonly powerCycle: boolean;
|
|
12
|
+
/** What the scene draws: a wall socket (default) or a LAN port (a PoE port device). */
|
|
13
|
+
readonly art?: "socket" | "port";
|
|
14
|
+
}
|
|
15
|
+
export interface PlugCardActions extends CardCommonActions, SwitchTimerActions {
|
|
16
|
+
readonly onPower: (on: boolean) => void;
|
|
17
|
+
/** Cuts and restores the output in one call (`switch.powerCycle`). */
|
|
18
|
+
readonly onPowerCycle: () => void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type UiTextFn } from "../../../../contexts/ui-text";
|
|
3
|
+
import type { CardOrientation } from "../../shell/model";
|
|
4
|
+
import type { RobotCardActions, RobotCardModel } from "./model";
|
|
5
|
+
export interface RobotCardProps {
|
|
6
|
+
readonly model: RobotCardModel;
|
|
7
|
+
readonly actions: RobotCardActions;
|
|
8
|
+
readonly orientation?: CardOrientation;
|
|
9
|
+
readonly showName?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function robotStateLabel(model: RobotCardModel, t: UiTextFn): string;
|
|
12
|
+
/**
|
|
13
|
+
* A robot vacuum or a robot mower, drawn on its floor: suction (a vacuum) or
|
|
14
|
+
* how much of the lawn is cut (a mower) on the left, start / pause, back to
|
|
15
|
+
* base and find on the right, the map toggle below when the device has one.
|
|
16
|
+
* An error stops the drawing where it got stuck and names the cause.
|
|
17
|
+
*/
|
|
18
|
+
export declare function RobotCard({ model, actions, orientation, showName }: RobotCardProps): ReactElement;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { RobotActivity } from "../../illustrations/RobotIllustration";
|
|
2
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
3
|
+
export interface RobotSuction {
|
|
4
|
+
readonly options: readonly string[];
|
|
5
|
+
readonly value: string | null;
|
|
6
|
+
}
|
|
7
|
+
/** The commands the robot binds. */
|
|
8
|
+
export interface RobotControls {
|
|
9
|
+
readonly start: boolean;
|
|
10
|
+
readonly pause: boolean;
|
|
11
|
+
readonly dock: boolean;
|
|
12
|
+
/** Ends the task (a vacuum's stop); armed, offered while it cleans or is paused. */
|
|
13
|
+
readonly stop: boolean;
|
|
14
|
+
/** Vacuum only: it beeps where it is. */
|
|
15
|
+
readonly locate: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface RobotCardModel {
|
|
18
|
+
readonly common: CardCommon;
|
|
19
|
+
readonly mower: boolean;
|
|
20
|
+
readonly activity: RobotActivity;
|
|
21
|
+
/** The status line beside the state: a mower's current code, or how long. */
|
|
22
|
+
readonly since: string | null;
|
|
23
|
+
/** A vacuum's suction levels; null when it declares none. */
|
|
24
|
+
readonly suction: RobotSuction | null;
|
|
25
|
+
/** 0..100 of the task done (a mower's lawn); null when no task reports it. */
|
|
26
|
+
readonly progress: number | null;
|
|
27
|
+
readonly controls: RobotControls;
|
|
28
|
+
/** The map the integration renders, when the device has one. */
|
|
29
|
+
readonly mapUrl: string | null;
|
|
30
|
+
}
|
|
31
|
+
export interface RobotCardActions extends CardCommonActions {
|
|
32
|
+
readonly onStart: () => void;
|
|
33
|
+
readonly onPause: () => void;
|
|
34
|
+
readonly onDock: () => void;
|
|
35
|
+
readonly onStop: () => void;
|
|
36
|
+
readonly onLocate: () => void;
|
|
37
|
+
readonly onSuction: (level: string) => void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { PieReading } from "./SensorPieCard";
|
|
3
|
+
export interface ReadingTileProps {
|
|
4
|
+
readonly reading: PieReading;
|
|
5
|
+
readonly selected: boolean;
|
|
6
|
+
/** Another reading is open: this one dims. */
|
|
7
|
+
readonly dimmed: boolean;
|
|
8
|
+
readonly onSelect?: ((id: string) => void) | undefined;
|
|
9
|
+
readonly testId: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One reading as a tile: its quantity's tint, value and unit big, the short name above,
|
|
13
|
+
* the single-reading card's own motion behind it and its last-day trend under it. A
|
|
14
|
+
* reading with no data is a dashed tile with a "—". The grid and the pie's legend draw it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function ReadingTile({ reading, selected, dimmed, onSelect, testId }: ReadingTileProps): ReactElement;
|
|
17
|
+
/** The columns a row of reading tiles holds: as many as the card's width fits (two on a phone). */
|
|
18
|
+
export declare const READING_TILES_GRID = "grid w-full grid-cols-[repeat(auto-fit,minmax(6.5rem,1fr))] gap-2";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { CardCommonActions, CardOrientation } from "../../shell/model";
|
|
3
|
+
import type { SensorCardModel } from "./model";
|
|
4
|
+
export interface SensorCardProps {
|
|
5
|
+
readonly model: SensorCardModel;
|
|
6
|
+
readonly actions?: CardCommonActions;
|
|
7
|
+
readonly orientation?: CardOrientation;
|
|
8
|
+
readonly showName?: boolean;
|
|
9
|
+
/** The last day of the reading, under it (beside it when horizontal); absent = none. */
|
|
10
|
+
readonly trend?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A sensor that measures one thing: the value once, big, inside the scene,
|
|
14
|
+
* with its quantity's icon and the backdrop behind. No rows under it repeat
|
|
15
|
+
* the value; the state corner opens the history.
|
|
16
|
+
*/
|
|
17
|
+
export declare function SensorCard({ model, actions, orientation, showName, trend }: SensorCardProps): ReactElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { CardCommonActions, CardOrientation } from "../../shell/model";
|
|
3
|
+
import type { SensorPieCardModel } from "./SensorPieCard";
|
|
4
|
+
export interface SensorGridCardProps {
|
|
5
|
+
readonly model: SensorPieCardModel;
|
|
6
|
+
readonly actions?: CardCommonActions;
|
|
7
|
+
readonly orientation?: CardOrientation;
|
|
8
|
+
readonly showName?: boolean;
|
|
9
|
+
/** A tile was tapped: that reading's history. */
|
|
10
|
+
readonly onSelect?: (id: string) => void;
|
|
11
|
+
/** The reading whose tile is highlighted (the others dim); `null` = none. */
|
|
12
|
+
readonly selectedId?: string | null;
|
|
13
|
+
/** Drawn inline below the grid, inside the card: the selected reading's chart. */
|
|
14
|
+
readonly detail?: ReactElement | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A sensor with many readings (seven or more, past what a pie shows legibly): a
|
|
18
|
+
* grid of tiles, one per reading, as many columns as the card's width holds (two
|
|
19
|
+
* on a phone). Each tile is tinted by its quantity like a pie wedge: value and
|
|
20
|
+
* unit big, the short name under it; a reading with no data is a dashed tile with
|
|
21
|
+
* a "—". Tapping a tile highlights it (the others dim) and draws its history below
|
|
22
|
+
* the grid.
|
|
23
|
+
*/
|
|
24
|
+
export declare function SensorGridCard({ model, actions, orientation, showName, onSelect, selectedId, detail }: SensorGridCardProps): ReactElement;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { HeroMeasurementQuantity } from "@dominevo/types";
|
|
2
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
3
|
+
import type { SceneVisual } from "../../../hero-scene/types";
|
|
4
|
+
import type { CardCommon, CardCommonActions, CardOrientation, CardState } from "../../shell/model";
|
|
5
|
+
import { type ReadingState } from "./pie-model";
|
|
6
|
+
/** One wedge as the operator reads it: already in their display unit. */
|
|
7
|
+
export interface PieReading {
|
|
8
|
+
/** Stable key, also what a tap reports. */
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly quantity: HeroMeasurementQuantity;
|
|
11
|
+
/** "142", "Active", "—" when it has not reported. */
|
|
12
|
+
readonly value: string;
|
|
13
|
+
readonly unit: string | null;
|
|
14
|
+
/** The short name under the value ("Light", "Motion"). */
|
|
15
|
+
readonly label: string;
|
|
16
|
+
readonly state: ReadingState;
|
|
17
|
+
/** The reading's own backdrop motion, the single-reading card's (`measurementVisual`); `null` = still. */
|
|
18
|
+
readonly visual?: SceneVisual | null;
|
|
19
|
+
/** The reading's last day, the single-reading card's `SensorTrend`; absent until it answers. */
|
|
20
|
+
readonly trend?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export interface SensorPieCardModel {
|
|
23
|
+
readonly common: CardCommon;
|
|
24
|
+
/** The state corner: the leading reading's word and tone. */
|
|
25
|
+
readonly state: CardState;
|
|
26
|
+
/** One wedge each, the role's own reading first. */
|
|
27
|
+
readonly readings: readonly PieReading[];
|
|
28
|
+
/** "Updated · 2 min ago", top-left of the scene; `null` = never observed. */
|
|
29
|
+
readonly updated: string | null;
|
|
30
|
+
}
|
|
31
|
+
export interface SensorPieCardProps {
|
|
32
|
+
readonly model: SensorPieCardModel;
|
|
33
|
+
readonly actions?: CardCommonActions;
|
|
34
|
+
readonly orientation?: CardOrientation;
|
|
35
|
+
readonly showName?: boolean;
|
|
36
|
+
/** A wedge was tapped: that reading's history. */
|
|
37
|
+
readonly onSelect?: (id: string) => void;
|
|
38
|
+
/** The reading whose wedge is highlighted (the others dim); `null` = none. */
|
|
39
|
+
readonly selectedId?: string | null;
|
|
40
|
+
/** Drawn inline below the pie, inside the card: the selected reading's chart. */
|
|
41
|
+
readonly detail?: ReactNode;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A sensor with several readings: a pie of equal wedges from 12 o'clock, each
|
|
45
|
+
* tinted by its quantity, its value, unit and short name at the wedge's centre. A
|
|
46
|
+
* reading that is on or alarming breathes, with its quantity's motion clipped
|
|
47
|
+
* inside the wedge; one with no data is a dashed wedge with a "—". Under the pie each
|
|
48
|
+
* reading is also a `ReadingTile` (its motion and trend, as in the grid). Tapping a
|
|
49
|
+
* wedge or a tile highlights it (the others dim) and draws its history below the pie. Seven or more readings are `SensorGridCard`.
|
|
50
|
+
*/
|
|
51
|
+
export declare function SensorPieCard({ model, actions, orientation, showName, onSelect, selectedId, detail }: SensorPieCardProps): ReactElement;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The simple sensor card (#514): a sensor that measures ONE thing is drawn as
|
|
3
|
+
* that reading, once, big, with its quantity's icon, over a backdrop that says
|
|
4
|
+
* what the number means. The shell owns the rest — the state corner ("HOT ·
|
|
5
|
+
* 2 min ago ›") opens the history, the top line names the integration.
|
|
6
|
+
*/
|
|
7
|
+
import type { HeroMeasurement, HeroMeasurementQuantity, HeroModel, IconKey } from "@dominevo/types";
|
|
8
|
+
import type { SceneVisual } from "../../../hero-scene/types";
|
|
9
|
+
import type { CardCommon, CardState } from "../../shell/model";
|
|
10
|
+
/** The reading as the operator reads it: already in their display unit. */
|
|
11
|
+
export interface SensorReading {
|
|
12
|
+
readonly quantity: HeroMeasurementQuantity;
|
|
13
|
+
/** The quantity's icon beside the value; `null` = a text state, no icon. */
|
|
14
|
+
readonly icon: IconKey | null;
|
|
15
|
+
/** "48", "6.9", "Open", "Eco"; "—" when it has not reported. */
|
|
16
|
+
readonly value: string;
|
|
17
|
+
readonly unit: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface SensorCardModel {
|
|
20
|
+
readonly common: CardCommon;
|
|
21
|
+
readonly reading: SensorReading;
|
|
22
|
+
readonly state: CardState;
|
|
23
|
+
/** The backdrop; `null` = the scene stands still (a mild temperature, a closed contact, a text). */
|
|
24
|
+
readonly visual: SceneVisual | null;
|
|
25
|
+
}
|
|
26
|
+
/** What of a measurement decides how its scene moves. */
|
|
27
|
+
export type MeasurementLook = Pick<HeroMeasurement, "quantity" | "band" | "level" | "tone">;
|
|
28
|
+
/**
|
|
29
|
+
* The backdrop a measurement moves with: heat rising when hot, flakes when
|
|
30
|
+
* cold, a wire at the speed of the power (still at 0 W), drops for humidity, a
|
|
31
|
+
* ring while a contact is open; nothing for a text.
|
|
32
|
+
*/
|
|
33
|
+
export declare function measurementVisual(m: MeasurementLook): SceneVisual | null;
|
|
34
|
+
/**
|
|
35
|
+
* The measurement the sensor card draws, or `null` when the device is not a
|
|
36
|
+
* simple sensor: no single measurement, or a row the operator can still set (a
|
|
37
|
+
* sensor with controls keeps the full hero card, which draws them).
|
|
38
|
+
*/
|
|
39
|
+
export declare function sensorMeasurementOf(model: Pick<HeroModel, "measurement" | "rows" | "gated">): HeroMeasurement | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pie's motion: a breathing fill and one small animation per quantity, kept
|
|
3
|
+
* inside its wedge by a clip path. Colours come through `currentColor` / theme
|
|
4
|
+
* token classes on the elements; under `prefers-reduced-motion` nothing moves.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SENSOR_PIE_CSS = "\n.dc-pie-wedge{outline:none}\n.dc-pie-wedge:focus-visible>path{stroke-width:3}\n.dc-pie-empty{stroke-dasharray:4 4}\n.dc-pie-breathe{animation:dc-pie-breathe 2.8s ease-in-out infinite}\n@keyframes dc-pie-breathe{0%,100%{fill-opacity:.55}50%{fill-opacity:1}}\n.dc-pie-ring{transform-box:fill-box;transform-origin:center;stroke-width:1.4;opacity:0;animation:dc-pie-ring 2.4s ease-out infinite}\n@keyframes dc-pie-ring{0%{transform:scale(.4);opacity:.7}100%{transform:scale(5);opacity:0}}\n.dc-pie-drop{opacity:0;animation:dc-pie-drop 2s linear infinite}\n@keyframes dc-pie-drop{0%{transform:translateY(0);opacity:0}20%,70%{opacity:.7}100%{transform:translateY(56px);opacity:0}}\n.dc-pie-wisp{stroke-width:1.4;stroke-linecap:round;opacity:0;animation:dc-pie-wisp 2.2s ease-out infinite}\n@keyframes dc-pie-wisp{0%{transform:translateY(0);opacity:0}30%{opacity:.7}100%{transform:translateY(-26px);opacity:0}}\n.dc-pie-flow{stroke-width:1.6;stroke-dasharray:5 6;opacity:.7;animation:dc-pie-flow 1.2s linear infinite}\n@keyframes dc-pie-flow{to{stroke-dashoffset:-11}}\n.dc-pie-step-1{animation-delay:.6s}\n.dc-pie-step-2{animation-delay:1.2s}\n@media (prefers-reduced-motion:reduce){.dc-pie-breathe,.dc-pie-ring,.dc-pie-drop,.dc-pie-wisp,.dc-pie-flow{animation:none!important}.dc-pie-ring,.dc-pie-drop,.dc-pie-wisp{opacity:.35}}\n";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The layout of a sensor card, derived from how many readings the device has —
|
|
3
|
+
* there is no setting. One reading keeps the single-measurement scene; two to six
|
|
4
|
+
* are a pie of equal wedges; seven or more are a grid of tiles, one per reading
|
|
5
|
+
* (a pie past six wedges stops being legible). Everything here is pure: the scene
|
|
6
|
+
* only paints it.
|
|
7
|
+
*/
|
|
8
|
+
import { type HeroMeasurement, type HeroModel } from "@dominevo/types";
|
|
9
|
+
/** The most readings a pie draws; one more and the card is a grid. */
|
|
10
|
+
export declare const PIE_MAX_WEDGES = 6;
|
|
11
|
+
export type SensorLayoutInput = Pick<HeroModel, "measurement" | "measurements" | "rows" | "gated">;
|
|
12
|
+
export type SensorLayout = {
|
|
13
|
+
readonly kind: "single";
|
|
14
|
+
readonly measurement: HeroMeasurement;
|
|
15
|
+
} | {
|
|
16
|
+
readonly kind: "pie";
|
|
17
|
+
/** One wedge each, in order: the role's own reading first. */
|
|
18
|
+
readonly shown: readonly HeroMeasurement[];
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: "grid";
|
|
21
|
+
/** One tile each, in order: the role's own reading first. */
|
|
22
|
+
readonly shown: readonly HeroMeasurement[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The layout of a sensor, or `null` when it is not drawn as a sensor card: no
|
|
26
|
+
* reading, or a row the operator can still set (a sensor with controls keeps the
|
|
27
|
+
* full hero card, which draws them).
|
|
28
|
+
*/
|
|
29
|
+
export declare function sensorLayoutOf(model: SensorLayoutInput): SensorLayout | null;
|
|
30
|
+
/** What a wedge says: no data (dashed, "—"), a reading at rest, or one that is on / alarming (breathes). */
|
|
31
|
+
export type ReadingState = "empty" | "idle" | "active";
|
|
32
|
+
export declare function readingStateOf(m: HeroMeasurement): ReadingState;
|
|
33
|
+
export declare const PIE_CENTRE = 100;
|
|
34
|
+
export declare const PIE_RADIUS = 96;
|
|
35
|
+
export interface PieWedge {
|
|
36
|
+
readonly index: number;
|
|
37
|
+
/** Degrees clockwise from 12 o'clock. */
|
|
38
|
+
readonly startDeg: number;
|
|
39
|
+
readonly endDeg: number;
|
|
40
|
+
/** The SVG path of the wedge in a 200 x 200 box. */
|
|
41
|
+
readonly path: string;
|
|
42
|
+
/** Where the value, unit and label are centred. */
|
|
43
|
+
readonly centroid: {
|
|
44
|
+
readonly x: number;
|
|
45
|
+
readonly y: number;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/** `count` equal wedges starting at 12 o'clock, clockwise. */
|
|
49
|
+
export declare function pieGeometry(count: number): readonly PieWedge[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { CardOrientation } from "../../shell/model";
|
|
3
|
+
import { type SirenCardActions, type SirenCardModel } from "./model";
|
|
4
|
+
export interface SirenCardProps {
|
|
5
|
+
readonly model: SirenCardModel;
|
|
6
|
+
readonly actions: SirenCardActions;
|
|
7
|
+
readonly orientation?: CardOrientation;
|
|
8
|
+
readonly showName?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A siren: one big Sound at the centre (armed — a second press confirms),
|
|
12
|
+
* which becomes Stop while it sounds, inside a ring that counts the run down
|
|
13
|
+
* from what the server reports and pulses when the end is unknown. The
|
|
14
|
+
* duration and plays chips appear only when the siren declares more than one
|
|
15
|
+
* value. Its Sound and Stop are icon faces: the glyph says the state (siren
|
|
16
|
+
* armed, stop while sounding, a spinner while a command flies); "on motion" is
|
|
17
|
+
* the shell's own corner.
|
|
18
|
+
*/
|
|
19
|
+
export declare function SirenCard({ model, actions, orientation, showName }: SirenCardProps): ReactElement;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { SirenOptions, SirenStatus } from "@dominevo/types";
|
|
2
|
+
import type { SwitchTimerActions, SwitchTimerModel } from "../../parts/switch-timer-model";
|
|
3
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
4
|
+
/** `unknown`: neither the siren nor its switch has reported whether it sounds. */
|
|
5
|
+
export type SirenActivity = "sounding" | "silent" | "unknown";
|
|
6
|
+
/** What a trigger may count: seconds, or the camera's plays. */
|
|
7
|
+
export type SirenAmountUnit = "seconds" | "plays";
|
|
8
|
+
/** The amount one trigger asks for. `null` where it is taken means the camera default. */
|
|
9
|
+
export interface SirenAmount {
|
|
10
|
+
readonly unit: SirenAmountUnit;
|
|
11
|
+
readonly value: number;
|
|
12
|
+
}
|
|
13
|
+
/** The values the device declares for one unit. None picked: the trigger asks neither and the camera applies its default. */
|
|
14
|
+
export interface SirenAmountChoices {
|
|
15
|
+
readonly values: readonly number[];
|
|
16
|
+
}
|
|
17
|
+
/** What the device declares adjustable; `null` draws no chip for that unit. */
|
|
18
|
+
export interface SirenAdjustable {
|
|
19
|
+
readonly durations: SirenAmountChoices | null;
|
|
20
|
+
readonly plays: SirenAmountChoices | null;
|
|
21
|
+
}
|
|
22
|
+
/** A siren sounding now, as the server reports it. `endsAt` is null when open-ended or unknown. */
|
|
23
|
+
export interface SirenRun {
|
|
24
|
+
readonly endsAt: number | null;
|
|
25
|
+
/** The whole run in ms; null when neither a duration nor a trigger time was reported. */
|
|
26
|
+
readonly totalMs: number | null;
|
|
27
|
+
/** The end comes from an estimated seconds-per-play factor. */
|
|
28
|
+
readonly estimated: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* What the ring draws. `timed`: a count (and a fill when the whole run is
|
|
32
|
+
* known). `open`: the siren sounds with no known end — a busy ring, no count.
|
|
33
|
+
*/
|
|
34
|
+
export type SirenCountdown = {
|
|
35
|
+
readonly kind: "timed";
|
|
36
|
+
readonly remainingSeconds: number;
|
|
37
|
+
/** Share of the run still to sound, 0..1; null when the run's length is unknown. */
|
|
38
|
+
readonly fraction: number | null;
|
|
39
|
+
readonly estimated: boolean;
|
|
40
|
+
} | {
|
|
41
|
+
readonly kind: "open";
|
|
42
|
+
};
|
|
43
|
+
export interface SirenCardModel {
|
|
44
|
+
readonly common: CardCommon;
|
|
45
|
+
readonly activity: SirenActivity;
|
|
46
|
+
readonly since: string | null;
|
|
47
|
+
/** The binding can sound it. */
|
|
48
|
+
readonly canTrigger: boolean;
|
|
49
|
+
/** The binding can silence it. */
|
|
50
|
+
readonly canStop: boolean;
|
|
51
|
+
/** A trigger or stop is in flight: the button waits for the server. */
|
|
52
|
+
readonly commandPending: boolean;
|
|
53
|
+
/** The sounding run; null while silent. */
|
|
54
|
+
readonly run: SirenRun | null;
|
|
55
|
+
readonly adjustable: SirenAdjustable;
|
|
56
|
+
/** The siren's options were asked and failed: the chips are unknown, not absent. */
|
|
57
|
+
readonly optionsUnavailable: boolean;
|
|
58
|
+
/** The switch's timed run; null when the device binds none. */
|
|
59
|
+
readonly timer: SwitchTimerModel | null;
|
|
60
|
+
}
|
|
61
|
+
export interface SirenCardActions extends CardCommonActions, SwitchTimerActions {
|
|
62
|
+
readonly onTrigger: (amount: SirenAmount | null) => void;
|
|
63
|
+
readonly onStop: () => void;
|
|
64
|
+
}
|
|
65
|
+
/** The chips the siren's own options declare; nothing until they answered. */
|
|
66
|
+
export declare function sirenAdjustableOf(options: SirenOptions | undefined): SirenAdjustable;
|
|
67
|
+
type SirenRunStatus = Pick<SirenStatus, "active" | "activeUntil" | "durationSeconds" | "activeUntilEstimated" | "lastTriggeredAt">;
|
|
68
|
+
/**
|
|
69
|
+
* The run the server reports. With the `siren` slice: its end and its length
|
|
70
|
+
* (the reported duration, else the span from the trigger to the end). Without
|
|
71
|
+
* it (a siren that is only a switch): sounding is open-ended.
|
|
72
|
+
*/
|
|
73
|
+
export declare function sirenRunOf(status: SirenRunStatus | undefined, sounding: boolean): SirenRun | null;
|
|
74
|
+
/** The ring for a run, `remainingMs` being what `useCountdown(run.endsAt)` reads. */
|
|
75
|
+
export declare function sirenCountdownOf(run: SirenRun, remainingMs: number | null): SirenCountdown;
|
|
76
|
+
/** The served state: the siren slice when it answered, else the switch. */
|
|
77
|
+
export declare function sirenActivityOf(sirenActive: boolean | undefined, switchOn: boolean | null | undefined): SirenActivity;
|
|
78
|
+
export interface SirenTriggerArgs {
|
|
79
|
+
readonly durationSeconds?: number;
|
|
80
|
+
readonly plays?: number;
|
|
81
|
+
}
|
|
82
|
+
/** A trigger asks seconds OR plays; neither is the camera default. */
|
|
83
|
+
export declare function sirenTriggerInputOf(amount: SirenAmount | null): SirenTriggerArgs;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { CardOrientation } from "../../shell/model";
|
|
3
|
+
import { type UpdateCardActions, type UpdateCardModel } from "./model";
|
|
4
|
+
export interface UpdateCardProps {
|
|
5
|
+
readonly model: UpdateCardModel;
|
|
6
|
+
readonly actions: UpdateCardActions;
|
|
7
|
+
readonly orientation?: CardOrientation;
|
|
8
|
+
readonly showName?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A firmware or software update: installed and available versions on the
|
|
12
|
+
* left, the arrow in the middle, Install while one is pending.
|
|
13
|
+
*/
|
|
14
|
+
export declare function UpdateCard({ model, actions, orientation, showName }: UpdateCardProps): ReactElement;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
2
|
+
/**
|
|
3
|
+
* `available`: the latest version differs from the installed one. `updatable`
|
|
4
|
+
* on the cap means the device SUPPORTS updates, not that one is pending.
|
|
5
|
+
*/
|
|
6
|
+
export type UpdatePhase = "available" | "installing" | "current";
|
|
7
|
+
export interface UpdateCardModel {
|
|
8
|
+
readonly common: CardCommon;
|
|
9
|
+
readonly phase: UpdatePhase;
|
|
10
|
+
readonly current: string | null;
|
|
11
|
+
readonly available: string | null;
|
|
12
|
+
/** The provider's own state word, verbatim; null when it sends none. */
|
|
13
|
+
readonly stateText: string | null;
|
|
14
|
+
/** The binding implements `installUpdate`. */
|
|
15
|
+
readonly installable: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface UpdateCardActions extends CardCommonActions {
|
|
18
|
+
readonly onInstall: () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdateReading {
|
|
21
|
+
readonly currentVersion: string | null;
|
|
22
|
+
readonly availableVersion: string | null;
|
|
23
|
+
readonly inProgress: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function updatePhaseOf(status: UpdateReading): UpdatePhase;
|
|
26
|
+
/** A step of an install the provider names (`state`), as the card words it. */
|
|
27
|
+
export type UpdateStep = "sending" | "ready" | "waiting" | "applying";
|
|
28
|
+
/**
|
|
29
|
+
* What the provider's state word adds to the phase: a known install step, a
|
|
30
|
+
* word the card cannot translate (shown humanised, never as a raw code), or
|
|
31
|
+
* nothing when it only restates the phase (`UP_TO_DATE`, HA's `on` / `off`).
|
|
32
|
+
*/
|
|
33
|
+
export type UpdateStateWord = {
|
|
34
|
+
readonly kind: "step";
|
|
35
|
+
readonly step: UpdateStep;
|
|
36
|
+
} | {
|
|
37
|
+
readonly kind: "other";
|
|
38
|
+
readonly text: string;
|
|
39
|
+
} | null;
|
|
40
|
+
export declare function updateStateWordOf(raw: string | null): UpdateStateWord;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type UiTextFn } from "../../../../contexts/ui-text";
|
|
3
|
+
import type { CardOrientation } from "../../shell/model";
|
|
4
|
+
import type { ValveCardActions, ValveCardModel } from "./model";
|
|
5
|
+
export interface ValveCardProps {
|
|
6
|
+
readonly model: ValveCardModel;
|
|
7
|
+
readonly actions: ValveCardActions;
|
|
8
|
+
readonly orientation?: CardOrientation;
|
|
9
|
+
readonly showName?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function valveStateLabel(model: ValveCardModel, t: UiTextFn): string;
|
|
12
|
+
/** How far open the drawing is: the position when reported, else the state. */
|
|
13
|
+
export declare function valveOpenness(model: Pick<ValveCardModel, "activity" | "position">): number | null;
|
|
14
|
+
/**
|
|
15
|
+
* A water or gas valve: the lever on the pipe says open or closed, the
|
|
16
|
+
* opposite command sits on the right (Stop while it moves), and a valve that
|
|
17
|
+
* takes a position gets the slider on the left.
|
|
18
|
+
*/
|
|
19
|
+
export declare function ValveCard({ model, actions, orientation, showName }: ValveCardProps): ReactElement;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
2
|
+
/** What the valve is doing: the cap's own state. */
|
|
3
|
+
export type ValveActivity = "open" | "opening" | "closing" | "closed" | "stopped";
|
|
4
|
+
export interface ValveCardModel {
|
|
5
|
+
readonly common: CardCommon;
|
|
6
|
+
readonly activity: ValveActivity;
|
|
7
|
+
readonly since: string | null;
|
|
8
|
+
/** 0..100 open; null when the valve does not report a position. */
|
|
9
|
+
readonly position: number | null;
|
|
10
|
+
/** It accepts a position: the slider on the left. */
|
|
11
|
+
readonly positionable: boolean;
|
|
12
|
+
readonly canOpen: boolean;
|
|
13
|
+
readonly canClose: boolean;
|
|
14
|
+
readonly canStop: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ValveCardActions extends CardCommonActions {
|
|
17
|
+
readonly onOpen: () => void;
|
|
18
|
+
readonly onClose: () => void;
|
|
19
|
+
readonly onStop: () => void;
|
|
20
|
+
readonly onPosition: (position: number) => void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type UiTextFn } from "../../../../contexts/ui-text";
|
|
3
|
+
import type { CardOrientation } from "../../shell/model";
|
|
4
|
+
import type { WaterHeaterActivity, WaterHeaterCardActions, WaterHeaterCardModel } from "./model";
|
|
5
|
+
export interface WaterHeaterCardProps {
|
|
6
|
+
readonly model: WaterHeaterCardModel;
|
|
7
|
+
readonly actions: WaterHeaterCardActions;
|
|
8
|
+
readonly orientation?: CardOrientation;
|
|
9
|
+
readonly showName?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** How much of the tank the current temperature fills, never empty. */
|
|
12
|
+
export declare function waterHeaterFill(current: number | null, max: number | null): number;
|
|
13
|
+
export declare function waterHeaterStateLabel(activity: WaterHeaterActivity, t: UiTextFn): string;
|
|
14
|
+
/**
|
|
15
|
+
* A water heater: the target on the left (within the device's range), the
|
|
16
|
+
* tank filled to the water's temperature in the middle, power, mode and away
|
|
17
|
+
* on the right — each only when the device declares it. Off greys the tank
|
|
18
|
+
* and holds the controls that would not take.
|
|
19
|
+
*/
|
|
20
|
+
export declare function WaterHeaterCard({ model, actions, orientation, showName }: WaterHeaterCardProps): ReactElement;
|