@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,40 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { ClimateControlStatus, HvacMode } from "@dominevo/types";
|
|
3
|
+
import type { ControlPanelProps } from "./types.js";
|
|
4
|
+
import { climateOffersCooling } from "./climate-offers-cooling.js";
|
|
5
|
+
export { climateOffersCooling };
|
|
6
|
+
/** Setpoint track bounds. Absent when the integration did not report both ends. */
|
|
7
|
+
export declare function climateSetpointBounds(status: Pick<ClimateControlStatus, "minTemp" | "maxTemp">): {
|
|
8
|
+
readonly min: number;
|
|
9
|
+
readonly max: number;
|
|
10
|
+
} | null;
|
|
11
|
+
/** Map a 0–1 drag fraction onto the setpoint, snapped to `tempStep`. */
|
|
12
|
+
export declare function climateTargetFromFraction(fraction: number, bounds: {
|
|
13
|
+
readonly min: number;
|
|
14
|
+
readonly max: number;
|
|
15
|
+
}, tempStep: number | null | undefined): number;
|
|
16
|
+
export declare const KEYFRAMES = "\n@keyframes acv-fall { 0%{transform:translateY(-1.75rem);opacity:0} 18%{opacity:.7} 82%{opacity:.7} 100%{transform:translateY(7.5rem);opacity:0} }\n@keyframes acv-rise { 0%{transform:translateY(7.5rem);opacity:0} 18%{opacity:.7} 82%{opacity:.7} 100%{transform:translateY(-1.75rem);opacity:0} }\n@keyframes acv-sway { 0%,100%{transform:translateX(-9%)} 50%{transform:translateX(9%)} }\n@keyframes acv-swing-h { 0%,100%{transform:translateX(-22%)} 50%{transform:translateX(22%)} }\n@keyframes acv-swing-v { 0%,100%{transform:translateY(-22%)} 50%{transform:translateY(22%)} }\n@keyframes acv-spin { to { transform:rotate(360deg) } }\n@keyframes acv-glow { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:.6;transform:scale(1.06)} }\n@media (prefers-reduced-motion: reduce) {\n .acv-streak, .acv-fan, .acv-sway-wrap, .acv-glow, .acv-swing { animation: none !important; }\n}\n";
|
|
17
|
+
export declare function AcPanel({ trpc, deviceId }: ControlPanelProps): ReactNode;
|
|
18
|
+
/** Fan strength meter — 5 ascending bars (fill = level) or a wind glyph for
|
|
19
|
+
* auto; the active bars pulse subtly via the spinning fan in the airflow. */
|
|
20
|
+
interface AirflowVizProps {
|
|
21
|
+
readonly mode: HvacMode;
|
|
22
|
+
readonly accent: string;
|
|
23
|
+
readonly periodSec: number;
|
|
24
|
+
readonly swaying: boolean;
|
|
25
|
+
/** Heater: the same streaks always rise, including auto. */
|
|
26
|
+
readonly forceRising?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Animated centerpiece. `fan_only` renders a spinning fan; `off` a dim static
|
|
30
|
+
* vent; every active mode renders drifting particles that FALL (cool/dry/auto)
|
|
31
|
+
* or RISE (heat), with a horizontal sweep overlaid when a swing axis is active.
|
|
32
|
+
*/
|
|
33
|
+
export declare function AirflowViz({ mode, accent, periodSec, swaying, forceRising }: AirflowVizProps): ReactNode;
|
|
34
|
+
/** Big spinning fan for `fan_only` mode. `color` may be `currentColor`, so a
|
|
35
|
+
* caller can tint it with a theme text-token class (HeroScene does). */
|
|
36
|
+
export declare function FanBlades({ color, periodSec, size }: {
|
|
37
|
+
readonly color: string;
|
|
38
|
+
readonly periodSec: number;
|
|
39
|
+
readonly size: number;
|
|
40
|
+
}): ReactNode;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
3
|
+
/**
|
|
4
|
+
* Row-sized alarm control: the shared Disarm + arm-mode segment strip only —
|
|
5
|
+
* no glyph, no state label, no card padding. Cap-gated on `alarm-panel`.
|
|
6
|
+
* Drops into a 200 px control column without towering over sibling rows.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The row/card-sized alarm control — ONE LINE, always.
|
|
10
|
+
*
|
|
11
|
+
* Two earlier attempts were wrong in instructive ways. The first rendered only
|
|
12
|
+
* the segment strip, so the sole sign a panel was armed was which of four
|
|
13
|
+
* buttons happened to be highlighted — and in a grid card the strip overflowed
|
|
14
|
+
* and cut that button off. The second let the strip WRAP, which stopped the
|
|
15
|
+
* overflow by making the row two and three lines tall.
|
|
16
|
+
*
|
|
17
|
+
* A state badge plus four buttons does not fit a phone-width row, and no amount
|
|
18
|
+
* of sizing makes it. So the row shows what a row is for — **the state** — and
|
|
19
|
+
* offers the modes through a select, which is one line at any width. The four
|
|
20
|
+
* segments live in the hero, where there is room for them.
|
|
21
|
+
*
|
|
22
|
+
* A refusal (D630) still has to be visible here, one line or not — it is a
|
|
23
|
+
* small danger badge (icon only, `title` carries the full message, same
|
|
24
|
+
* pattern as `OfflineBadge`) appended after the select. It never grows the
|
|
25
|
+
* row past one line.
|
|
26
|
+
*/
|
|
27
|
+
export declare function AlarmInlineControl({ trpc, deviceId }: DeviceControlProps): ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* AlarmHeroCard — segmented arm/disarm hero for AlarmPanel devices.
|
|
30
|
+
*
|
|
31
|
+
* Renders (Spec §3):
|
|
32
|
+
* - A shield glyph + state label tinted by lifecycle state (disarmed=muted,
|
|
33
|
+
* armed=green, arming/pending=amber, triggered=red).
|
|
34
|
+
* - The shared `AlarmSegments` strip: a Disarm button plus one arm button per
|
|
35
|
+
* `availableModes` entry (Home / Away / Night / …). The currently-active
|
|
36
|
+
* segment is highlighted; transitioning states highlight none.
|
|
37
|
+
*
|
|
38
|
+
* Cap-gated on `alarm-panel` — returns null when the device lacks the cap.
|
|
39
|
+
* PIN entry (when `codeRequired` is not `false`) is deferred to a later task; the segments
|
|
40
|
+
* call arm/disarm without a code, and the provider rejects when a code is
|
|
41
|
+
* required — surfaced upstream.
|
|
42
|
+
*
|
|
43
|
+
* A refusal (D630: an open device, a required code, …) is never a swallowed
|
|
44
|
+
* promise — `useAlarmControl` hands the rejection's message back as
|
|
45
|
+
* `error`, rendered below the segments.
|
|
46
|
+
*/
|
|
47
|
+
export declare function AlarmHeroCard({ trpc, deviceId }: DeviceControlProps): ReactNode;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
export declare const FILL: "fill";
|
|
3
|
+
export declare const RIGHT: "right";
|
|
4
|
+
export declare const CENTER: "center";
|
|
5
|
+
export declare const FIT: "fit";
|
|
6
|
+
export type ControlAlign = typeof FILL | typeof RIGHT | typeof CENTER | typeof FIT;
|
|
7
|
+
interface ControlColumnProps extends ComponentPropsWithoutRef<"div"> {
|
|
8
|
+
readonly align: ControlAlign;
|
|
9
|
+
readonly children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/** The one control column every device-row/hero control sits in.
|
|
12
|
+
* FILL → the child stretches to the full fixed column width (steppers, selects, buttons, cover triad).
|
|
13
|
+
* RIGHT → the child keeps its natural width, flush to the right edge of the fixed column (readouts, toggles — card view).
|
|
14
|
+
* CENTER → the child keeps its natural width, centered in the fixed column (readouts, toggles).
|
|
15
|
+
* FIT → the column DROPS its fixed width and sizes to its content (table view). The control takes
|
|
16
|
+
* its natural width and lays out in sequence with the trailing trash + status dot, so a wide
|
|
17
|
+
* control (climate stepper + mode select, cover triad + %) never overflows a fixed box and
|
|
18
|
+
* collides with the neighbours. FILL has no effect under FIT — a stretchy child in a
|
|
19
|
+
* content-width wrapper simply takes its natural width.
|
|
20
|
+
* FILL, RIGHT and CENTER share the fixed `w-[140px]` box (card / minimal / hero views). */
|
|
21
|
+
export declare function ControlColumn({ align, children, className, ...rest }: ControlColumnProps): ReactNode;
|
|
22
|
+
interface ValueReadoutProps {
|
|
23
|
+
readonly value: string;
|
|
24
|
+
readonly unit?: string;
|
|
25
|
+
}
|
|
26
|
+
/** A value + inline unit suffix (no separator). E.g. `60s`, `22%`. */
|
|
27
|
+
export declare function ValueReadout({ value, unit }: ValueReadoutProps): ReactNode;
|
|
28
|
+
interface StepperProps {
|
|
29
|
+
readonly value: number | string;
|
|
30
|
+
readonly unit?: string;
|
|
31
|
+
readonly onDelta: (d: 1 | -1) => void;
|
|
32
|
+
}
|
|
33
|
+
/** Increment/decrement control with value + unit display. */
|
|
34
|
+
export declare function Stepper({ value, unit, onDelta }: StepperProps): ReactNode;
|
|
35
|
+
interface SlideToggleProps {
|
|
36
|
+
readonly on: boolean;
|
|
37
|
+
readonly targetLabel: string;
|
|
38
|
+
readonly onConfirm: () => void;
|
|
39
|
+
}
|
|
40
|
+
/** Safety slide: onConfirm fires only after the thumb is dragged past threshold, never on a plain tap. */
|
|
41
|
+
export declare function SlideToggle({ on, targetLabel, onConfirm }: SlideToggleProps): ReactNode;
|
|
42
|
+
interface ArcKnobProps {
|
|
43
|
+
readonly fraction: number;
|
|
44
|
+
readonly color: string;
|
|
45
|
+
/**
|
|
46
|
+
* Distance in px from the rotating container's top edge to the knob's top
|
|
47
|
+
* edge. The knob is 20px tall, so its CENTER sits at `knobTopPx + 10` px
|
|
48
|
+
* from the top. For the knob center to ride the ring's centre radius the
|
|
49
|
+
* caller passes `(containerCenter − ringRadius) − 10`. Defaults to the
|
|
50
|
+
* thermostat gauge value (176px container, radius 76 → 88 − 76 − 10 = 2).
|
|
51
|
+
*/
|
|
52
|
+
readonly knobTopPx?: number;
|
|
53
|
+
/**
|
|
54
|
+
* When provided, the knob becomes interactive: dragging it reports the new
|
|
55
|
+
* arc fraction (0..1) to the parent, which owns the value and re-renders the
|
|
56
|
+
* knob at the new `fraction`. When omitted the knob is a display-only
|
|
57
|
+
* indicator (no grab cursor, no pointer handlers).
|
|
58
|
+
*/
|
|
59
|
+
readonly onDragFraction?: (fraction: number) => void;
|
|
60
|
+
}
|
|
61
|
+
/** Half the ArcKnob's 20px (h-5) height. Callers seat the knob centre on a
|
|
62
|
+
* ring by computing `(containerCentre − ringRadius) − KNOB_HALF_PX`. */
|
|
63
|
+
export declare const KNOB_HALF_PX = 10;
|
|
64
|
+
/**
|
|
65
|
+
* White knob riding a circular arc at `fraction` (0..1). For thermostat/light/fan.
|
|
66
|
+
*
|
|
67
|
+
* Display-only by default. Pass `onDragFraction` to make the knob draggable:
|
|
68
|
+
* pointer capture is taken on the knob, and pointer moves are mapped to a new
|
|
69
|
+
* arc fraction reported back to the parent (the parent owns the value).
|
|
70
|
+
*/
|
|
71
|
+
export declare function ArcKnob({ fraction, color, knobTopPx, onDragFraction }: ArcKnobProps): ReactNode;
|
|
72
|
+
interface GripTrackProps {
|
|
73
|
+
readonly fraction: number;
|
|
74
|
+
readonly color?: string;
|
|
75
|
+
/** A progress indication nothing can be dragged on: no grip thumb. */
|
|
76
|
+
readonly readOnly?: boolean;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Horizontal track with a white grip thumb at `fraction` (0..1). For seek/volume/brightness;
|
|
80
|
+
* `readOnly` draws the fill alone (a progress indication).
|
|
81
|
+
* @remarks display-only indicator; interactive drag is deferred to a later task.
|
|
82
|
+
*/
|
|
83
|
+
export declare function GripTrack({ fraction, color, readOnly }: GripTrackProps): ReactNode;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
3
|
+
/**
|
|
4
|
+
* ButtonHeroCard — large press-actuator card for the device-detail hero area.
|
|
5
|
+
*
|
|
6
|
+
* Renders a centred "Press" button with real design-token classes. The cap is
|
|
7
|
+
* fire-only so no state display is needed — the affordance IS the control.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ButtonHeroCard({ trpc, deviceId }: DeviceControlProps): ReactNode;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HvacMode } from "@dominevo/types";
|
|
2
|
+
/**
|
|
3
|
+
* A heater offers heat (and maybe auto/off) and none of the cooling modes. The
|
|
4
|
+
* one test of "can this device cool": the AC panel and the climate card both
|
|
5
|
+
* ask it, so a heat-only thermostat is never drawn as cooling.
|
|
6
|
+
*/
|
|
7
|
+
export declare function climateOffersCooling(modes: readonly HvacMode[]): boolean;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ControlPanelProps } from "./types.js";
|
|
3
|
+
import type { ClimateControlStatus, HvacMode } from "@dominevo/types";
|
|
4
|
+
/** Step size for target ± buttons; defaults to 1 °C when unset or invalid. */
|
|
5
|
+
export declare function resolveClimateTempStep(tempStep: number | null | undefined): number;
|
|
6
|
+
/**
|
|
7
|
+
* Character count of the longest set-temperature the device can show, derived
|
|
8
|
+
* from its range and step (5-30 step 0.5 reserves "30.5" = 4). The big target
|
|
9
|
+
* number reserves this width so the − / + buttons do not move when the value
|
|
10
|
+
* gains decimals or loses a digit.
|
|
11
|
+
*/
|
|
12
|
+
export declare function climateTargetWidthChars(display: Pick<ClimateControlStatus, "tempStep" | "minTemp" | "maxTemp">): number;
|
|
13
|
+
/** `min-w-[Nch]` + right alignment for the big target number. */
|
|
14
|
+
export declare function climateTargetWidthClass(display: Pick<ClimateControlStatus, "tempStep" | "minTemp" | "maxTemp">): string;
|
|
15
|
+
export declare function nextClimateTarget(current: number, deltaSteps: number, display: Pick<ClimateControlStatus, "tempStep" | "minTemp" | "maxTemp">): number;
|
|
16
|
+
/**
|
|
17
|
+
* Exhaustive colour map — one entry per HvacMode. Build will fail if a
|
|
18
|
+
* mode is added to the enum and not reflected here (Record<HvacMode, ...>
|
|
19
|
+
* + `satisfies` means TypeScript enforces full coverage).
|
|
20
|
+
*/
|
|
21
|
+
export declare const MODE_COLOR: Record<HvacMode, string>;
|
|
22
|
+
/**
|
|
23
|
+
* Mode text-accent colour — applied to the compact (inline) temperature value
|
|
24
|
+
* as a subtle cue, replacing the old bordered/filled mode box so the control
|
|
25
|
+
* matches the borderless cover/lock inline visual language.
|
|
26
|
+
*/
|
|
27
|
+
export declare const MODE_TEXT_COLOR: Record<HvacMode, string>;
|
|
28
|
+
/** Active-mode button accent colour (applied to the pressed mode chip). */
|
|
29
|
+
export declare const MODE_CHIP_ACTIVE: Record<HvacMode, string>;
|
|
30
|
+
export declare function ClimatePanel({ trpc, deviceId, features: _features, layout }: ControlPanelProps): ReactNode;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ContainerPrimaryChildPreference } from "@dominevo/types";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { UseDeviceProxyTrpc } from "../../hooks/use-device-proxy";
|
|
4
|
+
import { type ContainerChild } from "./container-primary";
|
|
5
|
+
/** A child row the hero can render. */
|
|
6
|
+
export interface ContainerHeroChild extends ContainerChild {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly features?: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
export interface ContainerPrimaryHeroProps {
|
|
11
|
+
readonly trpc: UseDeviceProxyTrpc;
|
|
12
|
+
/** The container's entity-children (from `deviceManager.getChildren`). */
|
|
13
|
+
readonly children: readonly ContainerHeroChild[];
|
|
14
|
+
/** Container's LEGACY persisted primary-child override (numeric child id) —
|
|
15
|
+
* consulted only when no durable `primaryChildEntityId` is set. */
|
|
16
|
+
readonly linkDeviceId: number | null | undefined;
|
|
17
|
+
/** Container's DURABLE primary-child override (chosen child's entityId) —
|
|
18
|
+
* null/undefined ⇒ no durable override (falls back to linkDeviceId, then
|
|
19
|
+
* priority default). */
|
|
20
|
+
readonly primaryChildEntityId?: string | null | undefined;
|
|
21
|
+
/** The container device's type. A type that stands for itself resolves no child. */
|
|
22
|
+
readonly containerType: string | undefined;
|
|
23
|
+
/** The container's provider-declared preference (`primaryChildPreferenceOf(device)`). */
|
|
24
|
+
readonly primaryChildPreference: ContainerPrimaryChildPreference | undefined;
|
|
25
|
+
}
|
|
26
|
+
export declare function ContainerPrimaryHero({ trpc, children, linkDeviceId, primaryChildEntityId, containerType, primaryChildPreference }: ContainerPrimaryHeroProps): ReactNode;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Container → primary-child resolution glue.
|
|
3
|
+
*
|
|
4
|
+
* A CONTAINER device hosts N entity-children and renders AS its primary child
|
|
5
|
+
* (same row InlineControl, same detail HeroCard). The choice of primary child:
|
|
6
|
+
*
|
|
7
|
+
* - DEFAULT: the highest-priority child by type (lock > climate > light > …),
|
|
8
|
+
* via the pure {@link resolvePrimaryChild} resolver (Task 4.1).
|
|
9
|
+
* - OVERRIDE: an operator picks a child via the discreet primary-child picker.
|
|
10
|
+
* The override is persisted on the container's `linkDeviceId` field (the
|
|
11
|
+
* real, kernel-backed soft-link — see `device-manager.cap.ts` `setLinkDeviceId`).
|
|
12
|
+
*
|
|
13
|
+
* The source of truth for the override is the child's re-sync-stable `entityId`
|
|
14
|
+
* (its `sourceInfo.id`, falling back to `stableId`).
|
|
15
|
+
*
|
|
16
|
+
* DURABLE (preferred): the container persists the chosen child's `entityId`
|
|
17
|
+
* directly on its `primaryChildEntityId` meta field (see
|
|
18
|
+
* `device-manager.setPrimaryChildEntityId`). This survives a re-sync/rename
|
|
19
|
+
* that reallocates the child's numeric id — the resolver matches on entityId.
|
|
20
|
+
*
|
|
21
|
+
* LEGACY (fallback): older picks persist the numeric child id on `linkDeviceId`.
|
|
22
|
+
* At RENDER we re-derive the entityId from the live child set so a re-sync that
|
|
23
|
+
* KEEPS the numeric id still resolves; when the linked numeric id no longer
|
|
24
|
+
* matches any live child (stale link), we pass `undefined` to the resolver → it
|
|
25
|
+
* falls back to the priority default.
|
|
26
|
+
*
|
|
27
|
+
* Resolution prefers `primaryChildEntityId` and only consults `linkDeviceId`
|
|
28
|
+
* when no durable override is present, so existing persisted links keep working.
|
|
29
|
+
*/
|
|
30
|
+
import type { ContainerPrimaryChildPreference } from "@dominevo/types";
|
|
31
|
+
import type { ChildRef } from "./primary-child";
|
|
32
|
+
/**
|
|
33
|
+
* Minimal shape this module needs from a child device row. Structurally
|
|
34
|
+
* compatible with `DeviceItemDevice` / `DeviceInfo` — callers pass the raw
|
|
35
|
+
* `getChildren` rows through.
|
|
36
|
+
*/
|
|
37
|
+
export interface ContainerChild {
|
|
38
|
+
readonly id: number;
|
|
39
|
+
readonly stableId: string;
|
|
40
|
+
readonly type: string;
|
|
41
|
+
readonly sourceInfo?: {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
/** `DeviceRole`, ranked above `type` when picking a container's primary. */
|
|
45
|
+
readonly role?: string | null | undefined;
|
|
46
|
+
/** Operator-facing name — used for the namesake tiebreak. */
|
|
47
|
+
readonly name?: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Re-sync-stable identity of a child. Prefers the upstream-system dispatch key
|
|
51
|
+
* (`sourceInfo.id` — e.g. HA `entity_id`); falls back to `stableId` for
|
|
52
|
+
* providers that never populated SourceInfo. Both survive a re-sync that may
|
|
53
|
+
* reallocate the numeric `id`.
|
|
54
|
+
*/
|
|
55
|
+
export declare function childEntityId(child: ContainerChild): string;
|
|
56
|
+
/** Project a raw child row onto the pure resolver's {@link ChildRef} shape. */
|
|
57
|
+
export declare function containerChildToRef(child: ContainerChild): ChildRef;
|
|
58
|
+
/**
|
|
59
|
+
* Resolve the entityId override from the container's persisted `linkDeviceId`.
|
|
60
|
+
* Returns the linked child's stable entityId, or `undefined` when there is no
|
|
61
|
+
* link or the link is stale (points to a numeric id no longer present) — in
|
|
62
|
+
* which case the resolver falls back to the priority default.
|
|
63
|
+
*/
|
|
64
|
+
export declare function overrideEntityIdFromLink(children: readonly ContainerChild[], linkDeviceId: number | null | undefined): string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Full container → primary-child resolution: project children to refs, resolve
|
|
67
|
+
* the override entityId, and delegate to the pure resolver. Returns `null` for a
|
|
68
|
+
* container with no children (caller degrades gracefully).
|
|
69
|
+
*
|
|
70
|
+
* Override precedence:
|
|
71
|
+
* 1. `primaryChildEntityId` — the DURABLE override (re-sync/rename-stable),
|
|
72
|
+
* passed straight to the resolver which matches on `entityId`. Wins when a
|
|
73
|
+
* non-empty string is supplied.
|
|
74
|
+
* 2. `linkDeviceId` — LEGACY numeric override, re-derived to an entityId from
|
|
75
|
+
* the live child set. Consulted only when there is no durable override.
|
|
76
|
+
*
|
|
77
|
+
* When neither resolves to a live child, the resolver falls back to the
|
|
78
|
+
* priority default.
|
|
79
|
+
*/
|
|
80
|
+
export declare function resolveContainerPrimary(children: readonly ContainerChild[], linkDeviceId: number | null | undefined, primaryChildEntityId: string | null | undefined, containerType: string | undefined, preference: ContainerPrimaryChildPreference | undefined): ChildRef | null;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { UnitPreferences } from "../../lib/unit-preferences.js";
|
|
3
|
+
import type { ControlPanelProps } from "./types.js";
|
|
4
|
+
import { type DeviceDisplayOverride, type ReadingQuantity } from "@dominevo/types";
|
|
5
|
+
/** Trim an HA date value to the `<input type=date>` shape ('YYYY-MM-DD'). */
|
|
6
|
+
export declare function toDateInput(value: string): string;
|
|
7
|
+
/** Trim an HA time value ('HH:MM:SS') to the `<input type=time>` shape ('HH:MM'). */
|
|
8
|
+
export declare function toTimeInput(value: string): string;
|
|
9
|
+
export declare function toDateTimeInput(value: string): string;
|
|
10
|
+
export interface NumericControlProps {
|
|
11
|
+
readonly value: number;
|
|
12
|
+
readonly busy: boolean;
|
|
13
|
+
readonly onCommit: (v: number) => void;
|
|
14
|
+
readonly unit?: string;
|
|
15
|
+
readonly min?: number;
|
|
16
|
+
readonly max?: number;
|
|
17
|
+
readonly step?: number;
|
|
18
|
+
/** Suggested decimal places for display. When present, the committed value and
|
|
19
|
+
* stepper output are formatted with `value.toFixed(precision)`. Does not
|
|
20
|
+
* constrain the stored value — display only. */
|
|
21
|
+
readonly precision?: number;
|
|
22
|
+
}
|
|
23
|
+
/** A number typed in, with − / + steps; shared by the control panel and the hero row. */
|
|
24
|
+
export declare function NumericControl({ value, busy, onCommit, unit, min, max, step, precision }: NumericControlProps): ReactNode;
|
|
25
|
+
export interface TextControlProps {
|
|
26
|
+
readonly value: string;
|
|
27
|
+
readonly busy: boolean;
|
|
28
|
+
readonly onCommit: (v: string) => void;
|
|
29
|
+
}
|
|
30
|
+
/** Free text, committed on blur or Enter; shared by the control panel and the hero row. */
|
|
31
|
+
export declare function TextControl({ value, busy, onCommit }: TextControlProps): ReactNode;
|
|
32
|
+
export interface NumericControlDisplayInput {
|
|
33
|
+
/** The control's quantity (`SourceInfo.quantity`); `undefined` = a bare number. */
|
|
34
|
+
readonly quantity: ReadingQuantity | undefined;
|
|
35
|
+
readonly display: DeviceDisplayOverride | undefined;
|
|
36
|
+
readonly unitPreferences: UnitPreferences;
|
|
37
|
+
}
|
|
38
|
+
/** How a numeric control is shown: the stored base value converted to the display unit and back. */
|
|
39
|
+
export interface NumericControlDisplay {
|
|
40
|
+
readonly toShown: (base: number) => number;
|
|
41
|
+
readonly toBase: (shown: number) => number;
|
|
42
|
+
readonly unit: string | undefined;
|
|
43
|
+
readonly precision: number | undefined;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The display of a numeric control: the same resolution a reading uses, so a °F
|
|
47
|
+
* operator sees and types °F while the device is sent its base unit. Shared by the
|
|
48
|
+
* control panel and the model-drawn row.
|
|
49
|
+
*/
|
|
50
|
+
export declare function numericControlDisplay(input: NumericControlDisplayInput): NumericControlDisplay;
|
|
51
|
+
/** A device's chosen quantity as a numeric control reads it; `undefined` for none. */
|
|
52
|
+
export declare function controlQuantityOf(chosen: unknown): ReadingQuantity | undefined;
|
|
53
|
+
export declare function ControlPanel({ trpc, deviceId, features: _features, layout }: ControlPanelProps): ReactNode;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DeviceType } from "@dominevo/types";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { UseDeviceProxyTrpc } from "../../hooks/use-device-proxy";
|
|
4
|
+
import { type ControlAlign } from "./atoms";
|
|
5
|
+
export { coverHighlight } from "./cover-inline";
|
|
6
|
+
export interface DeviceControlProps {
|
|
7
|
+
readonly trpc: UseDeviceProxyTrpc;
|
|
8
|
+
readonly deviceId: number;
|
|
9
|
+
readonly features: readonly string[] | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface DeviceTypeControl {
|
|
12
|
+
/**
|
|
13
|
+
* Compact, state-aware controls rendered directly in a device-list row. `null` = the
|
|
14
|
+
* row is drawn from the projected row model (`heroLayout.getRowModels`) instead, so
|
|
15
|
+
* the registry holds no second copy of what that device's row offers.
|
|
16
|
+
*/
|
|
17
|
+
readonly InlineControl: ((p: DeviceControlProps) => ReactNode) | null;
|
|
18
|
+
/** Full control surface rendered as a card in the device-detail hero area. */
|
|
19
|
+
readonly HeroCard: (p: DeviceControlProps) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Exhaustive record over DeviceType, DERIVED from the shared decision
|
|
23
|
+
* (`DEVICE_TYPE_CONTROL_KIND`) composed with the web `CONTROL_KIND_COMPONENTS`
|
|
24
|
+
* binding — so the type→control mapping can never diverge from the single
|
|
25
|
+
* source in `@dominevo/types`. Preserved as a public export for consumers/tests
|
|
26
|
+
* that index it by `DeviceType`.
|
|
27
|
+
*
|
|
28
|
+
* The `Object.fromEntries` result is a `{ [k: string]: DeviceTypeControl }`;
|
|
29
|
+
* `Object.values(DeviceType)` (a string enum) yields exactly the enum's members,
|
|
30
|
+
* so the record is fully populated — the assertion narrows that documented
|
|
31
|
+
* enum-record projection boundary.
|
|
32
|
+
*/
|
|
33
|
+
export declare const DEVICE_TYPE_CONTROL: Record<DeviceType, DeviceTypeControl>;
|
|
34
|
+
/**
|
|
35
|
+
* Per-type FILL flag.
|
|
36
|
+
*
|
|
37
|
+
* true — range / choice / button controls (cover ▲■▼ triad, thermostat
|
|
38
|
+
* setpoint stepper, media/control/button action buttons, alarm
|
|
39
|
+
* segmented control). The child STRETCHES to the full column width.
|
|
40
|
+
* false — readouts, tap-toggles, icon controls (lock), and dummy/placeholder
|
|
41
|
+
* types. The child keeps its NATURAL width; where it sits in the
|
|
42
|
+
* column (flush right vs centered) is decided by the caller via a
|
|
43
|
+
* `ControlPlacement` — see `resolveControlAlign`.
|
|
44
|
+
*
|
|
45
|
+
* Dummy types (Camera, Hub, Generic, Weather, Vacuum, Container, and placeholder
|
|
46
|
+
* types Notifier/Script/Automation whose InlineControl renders "—") are `false` —
|
|
47
|
+
* the dash placeholder must not be stretched to the full column width. (AlarmPanel
|
|
48
|
+
* has a real segmented inline control and is `true`.) When a later task gives a
|
|
49
|
+
* remaining placeholder type a real stretchy inline control, flip its flag to true.
|
|
50
|
+
*
|
|
51
|
+
* Exhaustive over DeviceType — a missing member is a TypeScript build error.
|
|
52
|
+
*/
|
|
53
|
+
export declare const CONTROL_FILLS: Record<DeviceType, boolean>;
|
|
54
|
+
/**
|
|
55
|
+
* Where a control sits, and whether the column carries the fixed `w-[140px]` box.
|
|
56
|
+
* 'right' — natural-width content flush to the fixed column's right edge (card / minimal views).
|
|
57
|
+
* 'center' — natural-width content centered in the fixed column.
|
|
58
|
+
* 'table' — the column DROPS its fixed width and sizes to its content (table view). Every type
|
|
59
|
+
* resolves to FIT so the control takes its natural width and lays out in sequence with
|
|
60
|
+
* the trailing trash + status dot, never overflowing a fixed box and colliding.
|
|
61
|
+
* FILL controls ignore 'right'/'center' (they always stretch to the fixed width); under 'table'
|
|
62
|
+
* a FILL control simply takes its natural width in the content-sized wrapper.
|
|
63
|
+
*/
|
|
64
|
+
export type ControlPlacement = "right" | "center" | "table";
|
|
65
|
+
/**
|
|
66
|
+
* Runtime-string-safe lookup: a device row's `type` crosses the wire as a plain
|
|
67
|
+
* string. The type→control-kind DECISION is single-sourced in `@dominevo/types`
|
|
68
|
+
* (`resolveDeviceControlKind`, null for an unrecognised type); this maps the
|
|
69
|
+
* resolved kind onto the web components.
|
|
70
|
+
*/
|
|
71
|
+
export declare function resolveDeviceControl(type: string, role?: string | null | undefined): DeviceTypeControl | null;
|
|
72
|
+
/**
|
|
73
|
+
* Runtime-string-safe alignment lookup for the fixed-width control column.
|
|
74
|
+
*
|
|
75
|
+
* A device's `type` crosses the wire as a plain string;
|
|
76
|
+
* `DEVICE_TYPE_VALUES.has(type)` narrows it to `DeviceType` before indexing
|
|
77
|
+
* `CONTROL_FILLS`, making the cast sound. The `'table'` placement is
|
|
78
|
+
* content-width for EVERY type (returns `FIT`), so a wide control never
|
|
79
|
+
* overflows a fixed box — the FILL flag is irrelevant there. For the fixed-box
|
|
80
|
+
* placements a FILL type always stretches (`FILL`) and a natural-width type is
|
|
81
|
+
* placed by the caller's `placement` — `'center'` → `CENTER`, `'right'` →
|
|
82
|
+
* `RIGHT` (card / minimal view). An unrecognised type falls back to
|
|
83
|
+
* natural-width placement.
|
|
84
|
+
*/
|
|
85
|
+
export declare function resolveControlAlign(type: string, placement: ControlPlacement): ControlAlign;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
3
|
+
/**
|
|
4
|
+
* CoverHeroCard — full control surface for the device-detail hero area.
|
|
5
|
+
*
|
|
6
|
+
* TWO VARIANTS based on whether the cover reports a position:
|
|
7
|
+
*
|
|
8
|
+
* With position (position !== null):
|
|
9
|
+
* - Window graphic with slats descending from top to (100-position)%
|
|
10
|
+
* - Visual (display-only) lever at the slat boundary with % label
|
|
11
|
+
* - Open / Stop / Close buttons with state-aware highlight
|
|
12
|
+
* - Interactive position range input (gated on CoverPositionable)
|
|
13
|
+
* - Tilt range input (gated on CoverTilt)
|
|
14
|
+
*
|
|
15
|
+
* Without position (open/close-only, position === null):
|
|
16
|
+
* - Window graphic showing state via clear pane (open) or full slats (closed)
|
|
17
|
+
* - NO lever, NO % label; the value slot shows the cover STATE text (no %)
|
|
18
|
+
* - Open / Stop / Close buttons with state-aware highlight
|
|
19
|
+
*
|
|
20
|
+
* Position support is detected via `CoverStatus.position !== null`.
|
|
21
|
+
* The interactive setPosition slider is gated on `DeviceFeature.CoverPositionable`.
|
|
22
|
+
*
|
|
23
|
+
* Follows the same `useDeviceCapability` pattern as CoverPanel / CoverInlineControl.
|
|
24
|
+
* Only hides when the device truly has no cover cap — a transient undefined slice
|
|
25
|
+
* renders a neutral "unknown" state with all buttons still mounted.
|
|
26
|
+
*/
|
|
27
|
+
export declare function CoverHeroCard({ trpc, deviceId, features }: DeviceControlProps): ReactNode;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { CoverState } from "@dominevo/types";
|
|
3
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
4
|
+
/** Button highlight variant for cover state-aware colouring. */
|
|
5
|
+
export type CoverHighlightVariant = "accent" | "filled" | "neutral";
|
|
6
|
+
export interface CoverButtonHighlight {
|
|
7
|
+
readonly up: CoverHighlightVariant;
|
|
8
|
+
readonly stop: CoverHighlightVariant;
|
|
9
|
+
readonly down: CoverHighlightVariant;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Pure helper — maps a live CoverState (or undefined when no slice yet)
|
|
13
|
+
* to per-button highlight variants.
|
|
14
|
+
*
|
|
15
|
+
* opening → up:accent (transient/active upward motion)
|
|
16
|
+
* closing → down:accent (transient/active downward motion)
|
|
17
|
+
* open → up:filled (stable fully-open state)
|
|
18
|
+
* closed → down:filled (stable fully-closed state)
|
|
19
|
+
* stopped / undefined → neutral (no active state)
|
|
20
|
+
*/
|
|
21
|
+
export declare function coverHighlight(state: CoverState | undefined): CoverButtonHighlight;
|
|
22
|
+
/**
|
|
23
|
+
* CoverInlineControl — compact, state-aware cover controls for a
|
|
24
|
+
* device-list row. Renders ↑ ■ ↓ buttons + optional % open badge.
|
|
25
|
+
* Reuses `useDeviceCapability` exactly as `CoverPanel` does.
|
|
26
|
+
*/
|
|
27
|
+
export declare function CoverInlineControl({ trpc, deviceId }: DeviceControlProps): ReactNode;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dishwasher controls for a `DeviceType.Dishwasher` device.
|
|
3
|
+
*
|
|
4
|
+
* Reads the `dishwasher` cap status slice and renders the device-list row
|
|
5
|
+
* (`DishwasherInlineControl`). The device-detail hero is the device card
|
|
6
|
+
* (`composites/device-card`, `ConnectedDishwasherCard`).
|
|
7
|
+
*
|
|
8
|
+
* Salt and rinse aid are not here: they are items of the device's `consumables`
|
|
9
|
+
* cap, shown by the device card's consumables chip like every device's (D915, D1023).
|
|
10
|
+
*
|
|
11
|
+
* UNKNOWN IS NOT OFF. The slice carries `null` for everything the appliance has not
|
|
12
|
+
* reported, and this view renders that as "—" / a disabled control, never as an unchecked
|
|
13
|
+
* box or a zero. It also does not echo a command before the appliance confirms it: the
|
|
14
|
+
* slice moves when the appliance says so.
|
|
15
|
+
*/
|
|
16
|
+
import { type UiTextFn } from "../../contexts/ui-text";
|
|
17
|
+
import type { ReactNode } from "react";
|
|
18
|
+
import { type DishwasherOperationState, type DishwasherStatus } from "@dominevo/types";
|
|
19
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
20
|
+
export interface DishwasherStateMeta {
|
|
21
|
+
readonly label: string;
|
|
22
|
+
readonly tone: string;
|
|
23
|
+
}
|
|
24
|
+
/** What the operation state is called to a person, and how it is toned. */
|
|
25
|
+
export declare function dishwasherOperationMeta(operationState: DishwasherOperationState | null, t?: UiTextFn): DishwasherStateMeta;
|
|
26
|
+
/** The headline for the whole slice: the appliance's state, or why there is none. */
|
|
27
|
+
export declare function dishwasherHeadline(status: DishwasherStatus, t?: UiTextFn): DishwasherStateMeta;
|
|
28
|
+
/** Last segment of a feature key, spaced out: `Dishcare.Dishwasher.Program.Eco50` -> `Eco50`. */
|
|
29
|
+
export declare function featureLabel(key: string): string;
|
|
30
|
+
/** Whole seconds as a short duration: `1 h 24 min`, `42 min`, `30 s`. */
|
|
31
|
+
export declare function formatDuration(seconds: number, t?: UiTextFn): string;
|
|
32
|
+
export declare function DishwasherInlineControl(props: DeviceControlProps): ReactNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type BindingMethods } from "../device-card/connected/use-card-common";
|
|
3
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
4
|
+
/**
|
|
5
|
+
* Salt and rinse aid are consumable items (D915). Their events must not
|
|
6
|
+
* reappear here — the device card's consumables chip is the only surface.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isConsumableDishwasherEvent(event: string): boolean;
|
|
9
|
+
/** Raised events the page may name. Consumable events are dropped. */
|
|
10
|
+
export declare function visibleDishwasherEvents(events: readonly string[]): readonly string[];
|
|
11
|
+
export interface DishwasherOptionsPanelProps extends DeviceControlProps {
|
|
12
|
+
/**
|
|
13
|
+
* The device's bindings. Absent until they answered: a toggle is drawn only
|
|
14
|
+
* once its method is declared (an entry with no method list declares all).
|
|
15
|
+
*/
|
|
16
|
+
readonly entries: readonly BindingMethods[] | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The dishwasher's options and reminders, as a page section. Draws nothing
|
|
20
|
+
* when the device has no `dishwasher` cap, or nothing of this to show.
|
|
21
|
+
*/
|
|
22
|
+
export declare function DishwasherOptionsPanel({ trpc, deviceId, entries }: DishwasherOptionsPanelProps): ReactNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
3
|
+
/** Inline placeholder: renders nothing (no-op row atom for types with no inline control). */
|
|
4
|
+
export declare function DummyInline(_p: DeviceControlProps): ReactNode;
|
|
5
|
+
/** Hero card placeholder: shows a muted "Controls coming soon" card for unimplemented types. */
|
|
6
|
+
export declare function DummyHeroCard(_p: DeviceControlProps): ReactNode;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The device-list row of a `DeviceType.EnergySystem` device: what the panels
|
|
3
|
+
* produce and the storage's charge, read from the `energy-system` model. The
|
|
4
|
+
* storage is the model's `storage` part, never the `battery` cap (#522). The
|
|
5
|
+
* device-detail hero is the device card (`EnergyCardHero` in panel-controls.tsx).
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactNode } from "react";
|
|
8
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
9
|
+
/**
|
|
10
|
+
* EnergySystemInlineControl — one pill per reading ("Solar 4.2 kW",
|
|
11
|
+
* "Storage 74%") for a device-list row. A part the system does not report
|
|
12
|
+
* is left out. Natural width.
|
|
13
|
+
*/
|
|
14
|
+
export declare function EnergySystemInlineControl({ trpc, deviceId }: DeviceControlProps): ReactNode;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { DeviceControlProps } from "./control-registry";
|
|
3
|
+
/**
|
|
4
|
+
* FanHeroCard — radial speed-dial hero for Fan devices.
|
|
5
|
+
*
|
|
6
|
+
* Renders:
|
|
7
|
+
* - RadialGauge: draggable speed ArcKnob riding a 270° ring at the speed
|
|
8
|
+
* fraction (drag snaps to the device's percentageStep), centered fan glyph +
|
|
9
|
+
* percentage readout. The gauge is the sole speed control — no slider.
|
|
10
|
+
* - Preset selector (centered) — ONLY when the device advertises
|
|
11
|
+
* DeviceFeature.FanPreset AND the slice exposes a non-empty
|
|
12
|
+
* `availablePresets`.
|
|
13
|
+
* - TAP TOGGLE for on/off (Spec §3 — NOT a SlideToggle; slide is safety-only).
|
|
14
|
+
* - Oscillate toggle button — ONLY when the device advertises
|
|
15
|
+
* DeviceFeature.FanOscillating AND the slice exposes a non-null
|
|
16
|
+
* `oscillating` value.
|
|
17
|
+
*
|
|
18
|
+
* Composes two caps: `switch` (on/off) + `fan-control` (speed / oscillate).
|
|
19
|
+
* Cap-gated on `switch` (always present on a Fan) — returns null without it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function FanHeroCard({ trpc, deviceId, features }: DeviceControlProps): ReactNode;
|