@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,32 @@
|
|
|
1
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
2
|
+
/** What the water heater is doing. */
|
|
3
|
+
export type WaterHeaterActivity = "heat" | "idle" | "away" | "off";
|
|
4
|
+
export interface WaterHeaterModeOption {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly label: string;
|
|
7
|
+
}
|
|
8
|
+
export interface WaterHeaterCardModel {
|
|
9
|
+
readonly common: CardCommon;
|
|
10
|
+
readonly activity: WaterHeaterActivity;
|
|
11
|
+
readonly since: string | null;
|
|
12
|
+
readonly currentTemp: number | null;
|
|
13
|
+
readonly targetTemp: number | null;
|
|
14
|
+
/** False when the device reports a target it does not let the card change. */
|
|
15
|
+
readonly targetSettable: boolean;
|
|
16
|
+
readonly minTemp: number | null;
|
|
17
|
+
readonly maxTemp: number | null;
|
|
18
|
+
/** The current operation mode; null when the device does not report one. */
|
|
19
|
+
readonly mode: string | null;
|
|
20
|
+
/** The modes the device offers; empty hides the menu. */
|
|
21
|
+
readonly modes: readonly WaterHeaterModeOption[];
|
|
22
|
+
/** Null when the device has no away mode. */
|
|
23
|
+
readonly away: boolean | null;
|
|
24
|
+
/** Null when the device cannot be switched off and on; otherwise whether it is on. */
|
|
25
|
+
readonly power: boolean | null;
|
|
26
|
+
}
|
|
27
|
+
export interface WaterHeaterCardActions extends CardCommonActions {
|
|
28
|
+
readonly onPower: (on: boolean) => void;
|
|
29
|
+
readonly onTarget: (temp: number) => void;
|
|
30
|
+
readonly onMode: (mode: string) => void;
|
|
31
|
+
readonly onAway: (on: boolean) => void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReadingQuantity } from "@dominevo/types";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { type UiTextFn } from "../../../../contexts/ui-text";
|
|
4
|
+
import { type UnitPreferences } from "../../../../lib/unit-preferences";
|
|
5
|
+
import type { CardOrientation } from "../../shell/model";
|
|
6
|
+
import { type WeatherCardActions, type WeatherCardModel } from "./model";
|
|
7
|
+
export interface WeatherCardProps {
|
|
8
|
+
readonly model: WeatherCardModel;
|
|
9
|
+
readonly actions?: WeatherCardActions;
|
|
10
|
+
readonly orientation?: CardOrientation;
|
|
11
|
+
readonly showName?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function weatherConditionLabel(condition: string | null, t: UiTextFn): string;
|
|
14
|
+
/** A base-unit reading in the signed-in user's units, symbol included. */
|
|
15
|
+
export declare function formatWeatherReading(value: number | null, quantity: ReadingQuantity, preferences: UnitPreferences): string | null;
|
|
16
|
+
/**
|
|
17
|
+
* A weather source: the temperature large on the left, the sky in the
|
|
18
|
+
* middle, humidity, wind and pressure on the right — each only when the
|
|
19
|
+
* provider reports it ("—" while it has not yet). Units follow the signed-in
|
|
20
|
+
* preferences. It commands nothing.
|
|
21
|
+
*/
|
|
22
|
+
export declare function WeatherCard({ model, actions, orientation, showName }: WeatherCardProps): ReactElement;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
2
|
+
/** The sky the card draws; a condition the card does not know draws as `cloudy`. */
|
|
3
|
+
export type WeatherSky = "sunny" | "night" | "partlyCloudy" | "cloudy" | "rain" | "snow" | "fog" | "wind" | "storm";
|
|
4
|
+
export interface WeatherCardModel {
|
|
5
|
+
readonly common: CardCommon;
|
|
6
|
+
/** The condition as the provider names it (`sunny`, `partlycloudy`); null when none yet. */
|
|
7
|
+
readonly condition: string | null;
|
|
8
|
+
/** "updated 10 min ago". */
|
|
9
|
+
readonly since: string | null;
|
|
10
|
+
/** °C; null when not reported. */
|
|
11
|
+
readonly temperature: number | null;
|
|
12
|
+
/** %; null when not reported. */
|
|
13
|
+
readonly humidity: number | null;
|
|
14
|
+
/** hPa; null when not reported. */
|
|
15
|
+
readonly pressure: number | null;
|
|
16
|
+
/** m/s; null when not reported. */
|
|
17
|
+
readonly windSpeed: number | null;
|
|
18
|
+
/** Degrees, meteorological (where it blows from); null when not reported. */
|
|
19
|
+
readonly windBearing: number | null;
|
|
20
|
+
}
|
|
21
|
+
/** A weather card commands nothing: only the shell's actions. */
|
|
22
|
+
export type WeatherCardActions = CardCommonActions;
|
|
23
|
+
/** The sky drawn for a provider's condition word. */
|
|
24
|
+
export declare function weatherSkyOf(condition: string | null): WeatherSky;
|
|
25
|
+
/** The eight-point compass word for a bearing. */
|
|
26
|
+
export declare function compassOf(bearing: number): string;
|
|
27
|
+
/** m/s to km/h. */
|
|
28
|
+
export declare function kmhOf(metresPerSecond: number): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { CardOrientation } from "../../shell/model";
|
|
3
|
+
import { type WeatherStationCardActions, type WeatherStationCardModel } from "./model";
|
|
4
|
+
export interface WeatherStationCardProps {
|
|
5
|
+
readonly model: WeatherStationCardModel;
|
|
6
|
+
readonly actions?: WeatherStationCardActions;
|
|
7
|
+
readonly orientation?: CardOrientation;
|
|
8
|
+
readonly showName?: boolean;
|
|
9
|
+
/** The primary trend line, drawn under the readings. */
|
|
10
|
+
readonly trend?: ReactElement;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* One outdoor station: the mast draws the modules the readings support, and
|
|
14
|
+
* the numbers sit in categories. A category with nothing to say is omitted;
|
|
15
|
+
* a gap inside one that is drawn is a dash.
|
|
16
|
+
*/
|
|
17
|
+
export declare function WeatherStationCard({ model, actions, orientation, showName, trend }: WeatherStationCardProps): ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type StationModule } from "./model";
|
|
3
|
+
export interface WeatherStationIllustrationProps {
|
|
4
|
+
readonly modules: readonly StationModule[];
|
|
5
|
+
readonly spinRate: number;
|
|
6
|
+
/** Degrees the wind comes from. Null rests the vane on north. */
|
|
7
|
+
readonly bearing: number | null;
|
|
8
|
+
readonly className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The outdoor station: a mast and only the modules the readings support.
|
|
12
|
+
* Cups spin with the wind; the vane eases to the bearing. Both are CSS
|
|
13
|
+
* transforms — nothing moves from a timer.
|
|
14
|
+
*/
|
|
15
|
+
export declare function WeatherStationIllustration({ modules, spinRate, bearing, className }: WeatherStationIllustrationProps): ReactElement;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { CardCommon, CardCommonActions } from "../../shell/model";
|
|
2
|
+
/** Readings the station may report. Null means that sensor is absent. */
|
|
3
|
+
export interface StationReadings {
|
|
4
|
+
readonly temperature: number | null;
|
|
5
|
+
readonly humidity: number | null;
|
|
6
|
+
readonly pressure: number | null;
|
|
7
|
+
readonly windSpeed: number | null;
|
|
8
|
+
readonly windGust: number | null;
|
|
9
|
+
readonly windBearing: number | null;
|
|
10
|
+
readonly rainRate: number | null;
|
|
11
|
+
readonly rainDaily: number | null;
|
|
12
|
+
readonly rainEvent: number | null;
|
|
13
|
+
readonly uv: number | null;
|
|
14
|
+
readonly solarRadiation: number | null;
|
|
15
|
+
readonly dewPoint: number | null;
|
|
16
|
+
}
|
|
17
|
+
/** One physical outdoor station. */
|
|
18
|
+
export interface WeatherStationCardModel extends StationReadings {
|
|
19
|
+
readonly common: CardCommon;
|
|
20
|
+
/** "updated 10 min ago". */
|
|
21
|
+
readonly since: string | null;
|
|
22
|
+
}
|
|
23
|
+
/** A station card commands nothing. */
|
|
24
|
+
export type WeatherStationCardActions = CardCommonActions;
|
|
25
|
+
/** The eight-point compass word for a bearing. */
|
|
26
|
+
export declare function stationCompassOf(bearing: number): string;
|
|
27
|
+
/** Degrees clockwise from north, 0..360. Null when the vane has no bearing. */
|
|
28
|
+
export declare function stationBearingDeg(bearing: number | null): number | null;
|
|
29
|
+
/** Cup revolutions per second for each metre per second of wind. */
|
|
30
|
+
export declare const ANEMOMETER_REVS_PER_MPS: number;
|
|
31
|
+
/**
|
|
32
|
+
* How fast the cups turn. Zero when the wind is unknown, calm, or negative —
|
|
33
|
+
* a higher speed is always a faster spin.
|
|
34
|
+
*/
|
|
35
|
+
export declare function anemometerSpinRate(windSpeed: number | null): number;
|
|
36
|
+
/**
|
|
37
|
+
* Sensor modules on the mast, in drawing order. Chosen from the readings the
|
|
38
|
+
* station actually reports — never from the vendor.
|
|
39
|
+
*/
|
|
40
|
+
export declare const STATION_MODULE_ORDER: readonly ["anemometer", "vane", "shield", "rain", "sun"];
|
|
41
|
+
export type StationModule = (typeof STATION_MODULE_ORDER)[number];
|
|
42
|
+
export declare function stationModules(readings: StationReadings): readonly StationModule[];
|
|
43
|
+
export declare const STATION_CATEGORY_ORDER: readonly ["climate", "wind", "rain", "sun", "pressure"];
|
|
44
|
+
export type StationCategoryId = (typeof STATION_CATEGORY_ORDER)[number];
|
|
45
|
+
export type StationReadingId = "temperature" | "humidity" | "dew" | "speed" | "gust" | "bearing" | "rate" | "daily" | "event" | "solar" | "uv" | "pressure";
|
|
46
|
+
export interface StationReadingSlot {
|
|
47
|
+
readonly id: StationReadingId;
|
|
48
|
+
readonly value: number | null;
|
|
49
|
+
}
|
|
50
|
+
export interface StationCategory {
|
|
51
|
+
readonly id: StationCategoryId;
|
|
52
|
+
readonly readings: readonly StationReadingSlot[];
|
|
53
|
+
}
|
|
54
|
+
/** Categories that have at least one reading. A null slot stays, for the dash. */
|
|
55
|
+
export declare function stationCategories(readings: StationReadings): readonly StationCategory[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** A point in the station drawing's viewBox. The stylesheet uses the same numbers. */
|
|
2
|
+
export interface StationPoint {
|
|
3
|
+
readonly x: number;
|
|
4
|
+
readonly y: number;
|
|
5
|
+
}
|
|
6
|
+
/** Cup hub. The spin animation's origin. */
|
|
7
|
+
export declare const STATION_CUP_HUB: StationPoint;
|
|
8
|
+
/** Vane pivot. North is up; rotation is the wind bearing, clockwise. */
|
|
9
|
+
export declare const STATION_VANE_PIVOT: StationPoint;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { CardOrientation } from "../../shell/model";
|
|
3
|
+
import { type WorkloadCardActions, type WorkloadCardModel } from "./model";
|
|
4
|
+
export interface WorkloadCardProps {
|
|
5
|
+
readonly model: WorkloadCardModel;
|
|
6
|
+
readonly actions: WorkloadCardActions;
|
|
7
|
+
readonly orientation?: CardOrientation;
|
|
8
|
+
readonly showName?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A VM, an app container, an LXC, an app or a host. The hero: a state dot with
|
|
12
|
+
* how long it has been in that state, CPU and RAM as gauges ("—" when not
|
|
13
|
+
* reported), and only the actions its provider declared — start or stop and
|
|
14
|
+
* restart on the right, pause or resume and force stop on the left. Every
|
|
15
|
+
* action shows the served state; nothing is assumed before the hub says so.
|
|
16
|
+
*/
|
|
17
|
+
export declare function WorkloadCard({ model, actions, orientation, showName }: WorkloadCardProps): ReactElement;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type WorkloadAction, type WorkloadControl, type WorkloadPort, type WorkloadResources, type WorkloadSections, type WorkloadState } from "@dominevo/types";
|
|
2
|
+
import type { UiTextFn } from "../../../../contexts/ui-text";
|
|
3
|
+
import type { CardGlyph } from "../../icons";
|
|
4
|
+
import type { RowStat } from "../../shell/bottom-rows";
|
|
5
|
+
import type { CardCommon, CardCommonActions, CardTone } from "../../shell/model";
|
|
6
|
+
/** The five kinds of workload; an unrecognised role is drawn as an app. */
|
|
7
|
+
export type WorkloadRole = "vm" | "app-container" | "lxc" | "app" | "host";
|
|
8
|
+
export interface WorkloadHostLink {
|
|
9
|
+
readonly deviceId: number;
|
|
10
|
+
readonly name: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface WorkloadCardModel {
|
|
13
|
+
readonly common: CardCommon;
|
|
14
|
+
readonly role: WorkloadRole;
|
|
15
|
+
readonly state: WorkloadState | null;
|
|
16
|
+
/** "3d 4h", how long it has been in this state (its uptime while it runs); null when not reported. */
|
|
17
|
+
readonly uptime: string | null;
|
|
18
|
+
/** A command is in flight: every action waits for it to settle (D1061). */
|
|
19
|
+
readonly busy: boolean;
|
|
20
|
+
readonly controls: readonly WorkloadControl[];
|
|
21
|
+
readonly sections: WorkloadSections;
|
|
22
|
+
readonly resources: WorkloadResources;
|
|
23
|
+
readonly image: string | null;
|
|
24
|
+
readonly os: string | null;
|
|
25
|
+
readonly version: string | null;
|
|
26
|
+
readonly autostart: boolean | null;
|
|
27
|
+
readonly ports: readonly WorkloadPort[];
|
|
28
|
+
readonly addresses: readonly string[];
|
|
29
|
+
readonly updateAvailable: boolean | null;
|
|
30
|
+
/** The machine it runs on, when the provider names one. */
|
|
31
|
+
readonly host: WorkloadHostLink | null;
|
|
32
|
+
}
|
|
33
|
+
export interface WorkloadCardActions extends CardCommonActions {
|
|
34
|
+
readonly onAction: (action: WorkloadAction) => void;
|
|
35
|
+
/** Opens another device (the host); absent where the host page offers no device view. */
|
|
36
|
+
readonly onOpenDevice?: (deviceId: number) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare function workloadRoleOf(role: string | null | undefined): WorkloadRole;
|
|
39
|
+
export declare const WORKLOAD_ROLE_GLYPH: Readonly<Record<WorkloadRole, CardGlyph>>;
|
|
40
|
+
/** Off is the cap's power hint: stopped or crashed. Unknown is neither. */
|
|
41
|
+
export declare function workloadIsOn(state: WorkloadState | null): boolean | null;
|
|
42
|
+
export declare const WORKLOAD_STATE_TONE: Readonly<Record<WorkloadState, CardTone>>;
|
|
43
|
+
export declare function workloadStateLabel(state: WorkloadState | null, role: WorkloadRole, t: UiTextFn): string;
|
|
44
|
+
/** The word of an action; a host powers on, shuts down and reboots (the cap's role wording). */
|
|
45
|
+
export declare function workloadActionLabel(action: WorkloadAction, role: WorkloadRole, t: UiTextFn): string;
|
|
46
|
+
/**
|
|
47
|
+
* The hero's actions in two columns, each holding only what the provider
|
|
48
|
+
* declared. Lifecycle (right): start OR stop — the one the served state calls
|
|
49
|
+
* for, both while the state is unknown — then restart. More (left): pause OR
|
|
50
|
+
* resume, then force stop.
|
|
51
|
+
*/
|
|
52
|
+
export interface WorkloadControlColumns {
|
|
53
|
+
readonly lifecycle: readonly WorkloadControl[];
|
|
54
|
+
readonly more: readonly WorkloadControl[];
|
|
55
|
+
}
|
|
56
|
+
export declare function workloadControlColumns(controls: readonly WorkloadControl[], state: WorkloadState | null): WorkloadControlColumns;
|
|
57
|
+
/** What an unreported reading reads as: never 0 (D393). */
|
|
58
|
+
export declare const WORKLOAD_NO_VALUE = "—";
|
|
59
|
+
/** One hero gauge: a share of 0..100, null when not reported. */
|
|
60
|
+
export interface WorkloadGauge {
|
|
61
|
+
readonly id: "cpu" | "memory";
|
|
62
|
+
readonly label: string;
|
|
63
|
+
readonly percent: number | null;
|
|
64
|
+
/** "23%", or the dash when not reported. */
|
|
65
|
+
readonly text: string;
|
|
66
|
+
/** "6.0 GB / 8.0 GB", or "6.0 GB" when only the amount used is reported; null otherwise. */
|
|
67
|
+
readonly detail: string | null;
|
|
68
|
+
}
|
|
69
|
+
/** CPU and RAM, always both: a value the provider did not report reads "—". */
|
|
70
|
+
export declare function workloadGauges(resources: WorkloadResources, t: UiTextFn): readonly [WorkloadGauge, WorkloadGauge];
|
|
71
|
+
/** "3d 4h", "5h 12m", "12m", "<1m": the two largest units, a zero second unit left out. */
|
|
72
|
+
export declare function formatUptime(ms: number, t: UiTextFn): string;
|
|
73
|
+
/** How long since `since` (epoch ms), or null when that is not a real past instant. */
|
|
74
|
+
export declare function workloadUptime(since: number | null, now: number, t: UiTextFn): string | null;
|
|
75
|
+
export declare function formatKbps(kbps: number): string;
|
|
76
|
+
/**
|
|
77
|
+
* The resource readings the provider reported, in a fixed order (what is used
|
|
78
|
+
* first, then the machine, then the traffic); a null is left out.
|
|
79
|
+
*/
|
|
80
|
+
export declare function workloadResourceStats(resources: WorkloadResources, t: UiTextFn): readonly RowStat[];
|
|
81
|
+
/** The readings under the hero: everything but CPU and memory, which are its gauges. */
|
|
82
|
+
export declare function workloadExtraStats(resources: WorkloadResources, t: UiTextFn): readonly RowStat[];
|
|
83
|
+
/** "8096/tcp → 8096", "53/udp": the container port, then where the host publishes it. */
|
|
84
|
+
export declare function workloadPortText(port: WorkloadPort): string;
|
|
85
|
+
/** Splits stats into rows of at most `size`, the most a stats row holds. */
|
|
86
|
+
export declare function chunkStats(stats: readonly RowStat[], size?: number): readonly (readonly RowStat[])[];
|
|
87
|
+
/**
|
|
88
|
+
* Rows of at most `max` stats that share them evenly: four is two and two,
|
|
89
|
+
* never three and a lone one stretched across the card.
|
|
90
|
+
*/
|
|
91
|
+
export declare function balancedStatRows(stats: readonly RowStat[], max?: number): readonly (readonly RowStat[])[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Interactions section of a device card's History view: who changed which
|
|
3
|
+
* field, newest first. The capability is asked, not assumed (an unanswered
|
|
4
|
+
* read is never "no actuations").
|
|
5
|
+
*/
|
|
6
|
+
import { type ReactElement } from "react";
|
|
7
|
+
export interface ActuationHistoryProps {
|
|
8
|
+
readonly deviceId: number;
|
|
9
|
+
}
|
|
10
|
+
/** The actuations of one device. The History view shows this instead of the values. */
|
|
11
|
+
export declare function ActuationHistory({ deviceId }: ActuationHistoryProps): ReactElement | null;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { CardConsumable, CardSupply, CardSupplyAction } from "./model";
|
|
3
|
+
/** Why the card cannot be commanded; nothing when it can. */
|
|
4
|
+
export interface ReasonLineProps {
|
|
5
|
+
/** Why the last command failed; the gating reason wins when both exist. */
|
|
6
|
+
readonly notice?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function ReasonLine({ notice }: ReasonLineProps): ReactElement | null;
|
|
9
|
+
export interface SupplyChipProps {
|
|
10
|
+
readonly supply: CardSupply;
|
|
11
|
+
readonly readOnly: boolean;
|
|
12
|
+
readonly onAction: (action: CardSupplyAction) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The switch that feeds the device. It is ANOTHER device, so an offline card
|
|
16
|
+
* can still restart its supply; only a viewer without permission is refused.
|
|
17
|
+
*/
|
|
18
|
+
export declare function SupplyChip({ supply, readOnly, onAction }: SupplyChipProps): ReactElement;
|
|
19
|
+
export interface ConsumablesButtonProps {
|
|
20
|
+
readonly items: readonly CardConsumable[];
|
|
21
|
+
/** Bound to `consumables` but the slice has not landed: loading, never "none" (D315). */
|
|
22
|
+
readonly loading?: boolean;
|
|
23
|
+
/** A promise lets the row disable its Reset while the call is in flight. */
|
|
24
|
+
readonly onReset: (key: string) => void | PromiseLike<unknown>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The consumables: one chip that warns about the worst item (a part running
|
|
28
|
+
* out, a full bin) and opens the full list. Unknown is never ok (D393) and
|
|
29
|
+
* "none" is only said once the provider answered (D315).
|
|
30
|
+
*/
|
|
31
|
+
export declare function ConsumablesButton({ items, loading, onReset }: ConsumablesButtonProps): ReactElement;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type Context, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type CardPower, type CardState, type CardTone } from "./model";
|
|
3
|
+
export type CornerPlace = "tl" | "tr" | "bl" | "br";
|
|
4
|
+
export declare const CORNER_CLASS: string;
|
|
5
|
+
/**
|
|
6
|
+
* Where the indicators sit: `overlay` (default) pins each to a corner of the
|
|
7
|
+
* scene; `frame` lays them out in a row of the card's frame, so a scene that
|
|
8
|
+
* must stay unobstructed (a camera's player) carries nothing on top of it.
|
|
9
|
+
*/
|
|
10
|
+
export type CornerLayout = "overlay" | "frame";
|
|
11
|
+
export declare const CornerLayoutProvider: Context<CornerLayout>["Provider"];
|
|
12
|
+
export interface CornerProps {
|
|
13
|
+
readonly place: CornerPlace;
|
|
14
|
+
readonly className?: string;
|
|
15
|
+
readonly children: ReactNode;
|
|
16
|
+
readonly testId?: string;
|
|
17
|
+
}
|
|
18
|
+
/** One of the scene's four corners. */
|
|
19
|
+
export declare function Corner({ place, className, children, testId }: CornerProps): ReactElement;
|
|
20
|
+
export declare function cardToneClass(tone: CardTone): string;
|
|
21
|
+
export interface StateCornerProps {
|
|
22
|
+
readonly state: CardState;
|
|
23
|
+
/** Present when the device has history: the corner opens it. */
|
|
24
|
+
readonly onOpenHistory?: () => void;
|
|
25
|
+
}
|
|
26
|
+
/** Top-left: what the device is doing, and since when. */
|
|
27
|
+
export declare function StateCorner({ state, onOpenHistory }: StateCornerProps): ReactElement;
|
|
28
|
+
/** Top-right: the power drawn now; a press lists the other electrical readings. */
|
|
29
|
+
export declare function PowerCorner({ power }: {
|
|
30
|
+
readonly power: CardPower;
|
|
31
|
+
}): ReactElement;
|
|
32
|
+
/** Bottom-left: the device's own battery. */
|
|
33
|
+
export declare function BatteryCorner({ level, binary, voltage, label, shifted }: {
|
|
34
|
+
/** Null: only a voltage is known — no state is drawn, never a flat 0 %. */
|
|
35
|
+
readonly level: number | null;
|
|
36
|
+
/** A low/ok source: `level` is a stand-in, so the state is named, not the percent. */
|
|
37
|
+
readonly binary?: boolean;
|
|
38
|
+
/** Volts, drawn beside the state when known. */
|
|
39
|
+
readonly voltage?: number | null;
|
|
40
|
+
readonly label?: string;
|
|
41
|
+
/** The motion corner holds the corner's start: the battery sits beside it. */
|
|
42
|
+
readonly shifted?: boolean;
|
|
43
|
+
}): ReactElement;
|
|
44
|
+
/** Bottom-right: opens the device's remote. */
|
|
45
|
+
export declare function RemoteCorner({ onOpen }: {
|
|
46
|
+
readonly onOpen: () => void;
|
|
47
|
+
}): ReactElement;
|
|
48
|
+
export interface MotionCornerProps {
|
|
49
|
+
/** Null: not read yet. Drawn neither on nor off; a tap still sets it on. */
|
|
50
|
+
readonly on: boolean | null;
|
|
51
|
+
readonly pending: boolean;
|
|
52
|
+
/** Gating: a blocked card may not be commanded. */
|
|
53
|
+
readonly blocked: boolean;
|
|
54
|
+
readonly onToggle: (enabled: boolean) => void;
|
|
55
|
+
}
|
|
56
|
+
/** Bottom-left: the "on motion" toggle, an icon with no text. */
|
|
57
|
+
export declare function MotionCorner({ on, pending, blocked, onToggle }: MotionCornerProps): ReactElement;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import type { CardCommon, CardCommonActions, CardFault, CardOrientation, CardState } from "./model";
|
|
3
|
+
import { type SceneZones } from "./SceneGrid";
|
|
4
|
+
export interface DeviceCardProps {
|
|
5
|
+
/** The device type the scene draws (`plug`, `climate`): a hook for specs and shots. */
|
|
6
|
+
readonly kind: string;
|
|
7
|
+
readonly common: CardCommon;
|
|
8
|
+
readonly actions?: CardCommonActions;
|
|
9
|
+
readonly orientation?: CardOrientation;
|
|
10
|
+
readonly state: CardState;
|
|
11
|
+
/** What the device is doing, for the scene's colour and animation. */
|
|
12
|
+
readonly activity?: string;
|
|
13
|
+
readonly scene: SceneZones;
|
|
14
|
+
readonly className?: string;
|
|
15
|
+
/** Draw the device name (default true); false when the host already names the device. */
|
|
16
|
+
readonly showName?: boolean;
|
|
17
|
+
/** Controls the remote sheet draws under the keys (a media player's shuffle and repeat). */
|
|
18
|
+
readonly remoteExtra?: ReactNode;
|
|
19
|
+
/** Opens on this view. The shot harness uses `remote` so the sheet is on screen. */
|
|
20
|
+
readonly initialView?: DeviceCardView;
|
|
21
|
+
/**
|
|
22
|
+
* `card` (default): the card's own frame — border, surface, padding, max width
|
|
23
|
+
* and the top line. `bare`: only the scene and what hangs under it, full width
|
|
24
|
+
* on the host's background; the host draws integration and reachability in
|
|
25
|
+
* its own header (the viewer's device sheet). Defaults to the nearest
|
|
26
|
+
* {@link DeviceCardFrameProvider}, so a host frames every card it mounts.
|
|
27
|
+
*/
|
|
28
|
+
readonly frame?: DeviceCardFrame;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the state corner opens the History / Actions view (default true,
|
|
31
|
+
* or what the nearest {@link DeviceCardFrameProvider} says). False draws the
|
|
32
|
+
* state as plain text: no click affordance and no view. A host that shows
|
|
33
|
+
* the same history and actions itself (the quick-detail tabs) turns it off.
|
|
34
|
+
*/
|
|
35
|
+
readonly historyView?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type DeviceCardView = "scene" | "history" | "remote";
|
|
38
|
+
/** How a card is framed: its own card, or bare inside a host that frames it. */
|
|
39
|
+
export type DeviceCardFrame = "card" | "bare";
|
|
40
|
+
export interface DeviceCardFrameProviderProps {
|
|
41
|
+
readonly frame: DeviceCardFrame;
|
|
42
|
+
/**
|
|
43
|
+
* The host gave the card a definite height (the viewer's sheet): the card
|
|
44
|
+
* takes all of it and the History / Remote overlays fill it, so the views
|
|
45
|
+
* swap in one box. The host's own chain must be `h-full` down to the card.
|
|
46
|
+
*/
|
|
47
|
+
readonly fill?: boolean;
|
|
48
|
+
/** False: no card below opens its History / Actions view (see {@link DeviceCardProps.historyView}). */
|
|
49
|
+
readonly historyView?: boolean;
|
|
50
|
+
readonly children: ReactNode;
|
|
51
|
+
}
|
|
52
|
+
/** The frame the nearest {@link DeviceCardFrameProvider} asks for (default `card`). */
|
|
53
|
+
export declare function useDeviceCardFrame(): DeviceCardFrame;
|
|
54
|
+
/** Whether the host gave the card a definite height (see {@link DeviceCardFrameProvider}). */
|
|
55
|
+
export declare function useDeviceCardFill(): boolean;
|
|
56
|
+
/** Whether the nearest {@link DeviceCardFrameProvider} lets cards open their History / Actions view. */
|
|
57
|
+
export declare function useDeviceCardHistoryView(): boolean;
|
|
58
|
+
/** Frames every device card below it — a host page that draws the frame itself. */
|
|
59
|
+
export declare function DeviceCardFrameProvider({ frame, fill, historyView, children }: DeviceCardFrameProviderProps): ReactElement;
|
|
60
|
+
/**
|
|
61
|
+
* The device's current faults, one chip each, in the frame under the name and
|
|
62
|
+
* above the scene — never on the scene. Hidden while the query is unanswered
|
|
63
|
+
* and when the device is clear (the model passes `[]` in both cases).
|
|
64
|
+
*/
|
|
65
|
+
export declare function CardFaults({ faults }: {
|
|
66
|
+
readonly faults: readonly CardFault[];
|
|
67
|
+
}): ReactElement | null;
|
|
68
|
+
/**
|
|
69
|
+
* Integration on the left, reachability on the right. Reachable is the normal
|
|
70
|
+
* state and says nothing (operator rule: the admin never prints "Online");
|
|
71
|
+
* only offline, and a status not yet known, take the corner.
|
|
72
|
+
*/
|
|
73
|
+
export declare function CardTop({ common }: {
|
|
74
|
+
readonly common: CardCommon;
|
|
75
|
+
}): ReactElement | null;
|
|
76
|
+
/**
|
|
77
|
+
* The device card: ONE frame for every device type. It owns the top line, the
|
|
78
|
+
* four corners, the bottom line, the history and remote views and the gating;
|
|
79
|
+
* a scene only fills the zones.
|
|
80
|
+
*/
|
|
81
|
+
export declare function DeviceCard({ kind, common, actions, orientation, state, activity, scene, className, showName, remoteExtra, initialView, frame, historyView }: DeviceCardProps): ReactElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import type { CardHistory, CardRemoteKey, CardRemotePanel, CardState } from "./model";
|
|
3
|
+
export interface HistoryViewProps {
|
|
4
|
+
readonly state: CardState;
|
|
5
|
+
readonly history: CardHistory;
|
|
6
|
+
readonly onBack: () => void;
|
|
7
|
+
/** Present on a live device: the actuations section asks for this device. */
|
|
8
|
+
readonly deviceId?: number;
|
|
9
|
+
}
|
|
10
|
+
/** Replaces the scene: the device's values, or who changed them. */
|
|
11
|
+
export declare function HistoryView(props: HistoryViewProps): ReactElement;
|
|
12
|
+
export interface RemoteViewProps {
|
|
13
|
+
readonly keys: readonly CardRemoteKey[];
|
|
14
|
+
/** The layout grid. Null: the declared keys, as a pad when they have one. */
|
|
15
|
+
readonly panel?: CardRemotePanel | null;
|
|
16
|
+
/** A saved layout has not arrived yet: draw the frame, never the raw keys. */
|
|
17
|
+
readonly layoutPending?: boolean;
|
|
18
|
+
readonly onKey: (id: string) => void;
|
|
19
|
+
readonly onBack: () => void;
|
|
20
|
+
/** Drawn under the keys: what the scene does not (shuffle, repeat). */
|
|
21
|
+
readonly extra?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/** Replaces the scene: the saved layout, or the keys the device declares. */
|
|
24
|
+
export declare function RemoteView({ keys, panel, layoutPending, onKey, onBack, extra }: RemoteViewProps): ReactElement;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import type { BottomRow } from "./bottom-rows";
|
|
3
|
+
import type { ColumnItem } from "./column-items";
|
|
4
|
+
interface SceneZonesBase {
|
|
5
|
+
/** Behind everything: the role animation. */
|
|
6
|
+
readonly fx?: ReactNode;
|
|
7
|
+
readonly image: ReactNode;
|
|
8
|
+
/** Anything longer than a compact control, as typed rows: selectors, pills, stats, buttons, a slider, text. */
|
|
9
|
+
readonly bottom?: readonly BottomRow[];
|
|
10
|
+
/**
|
|
11
|
+
* The device is in an alarm state (triggered, jammed, sounding, blocked, a
|
|
12
|
+
* leak): the scene is washed in the danger colour.
|
|
13
|
+
*/
|
|
14
|
+
readonly alert?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The scene is one full-width piece of content (a camera's player with its
|
|
17
|
+
* own toolbar): no side columns, no bottom rows, no frame of its own and
|
|
18
|
+
* nothing drawn over it. The card's indicators move to a row of its frame.
|
|
19
|
+
*/
|
|
20
|
+
readonly wide?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A scene on the fixed proportions: two equal side columns that take only
|
|
24
|
+
* {@link ColumnItem}s (a compact control or one short value), the drawing in
|
|
25
|
+
* between, and everything longer in `bottom`.
|
|
26
|
+
*/
|
|
27
|
+
export interface FixedSceneZones extends SceneZonesBase {
|
|
28
|
+
readonly columns?: SceneColumns;
|
|
29
|
+
}
|
|
30
|
+
export interface SceneColumns {
|
|
31
|
+
readonly left?: readonly ColumnItem[];
|
|
32
|
+
readonly right?: readonly ColumnItem[];
|
|
33
|
+
}
|
|
34
|
+
export type SceneZones = FixedSceneZones;
|
|
35
|
+
export type SceneGridProps = SceneZones & {
|
|
36
|
+
/** The four corners, placed by the shell. */
|
|
37
|
+
readonly corners: ReactNode;
|
|
38
|
+
/** A bottom corner is drawn: leave room under the zones. */
|
|
39
|
+
readonly bottomCorners: boolean;
|
|
40
|
+
readonly activity?: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* The scene: left column, drawing, right column, and a bottom row — the same
|
|
44
|
+
* four zones for every device type. A zone with nothing in it is not rendered.
|
|
45
|
+
*/
|
|
46
|
+
export declare function SceneGrid(props: SceneGridProps): ReactElement;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
export interface ScenePowerProps {
|
|
3
|
+
readonly on: boolean;
|
|
4
|
+
/** The accessible name of the switch ("Power", the device name). */
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly onToggle: (next: boolean) => void;
|
|
7
|
+
readonly testId?: string;
|
|
8
|
+
/** The drawing. */
|
|
9
|
+
readonly children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Power ON the scene: for a device whose only control is on / off, tapping the
|
|
13
|
+
* drawing toggles it and no separate power button sits beside it. A switch to
|
|
14
|
+
* assistive tech (`role="switch"`, `aria-checked`, the label), a keyboard
|
|
15
|
+
* toggle (Enter and Space), and the shell's gating: offline or read only, the
|
|
16
|
+
* drawing does not answer and says why in its title.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ScenePower({ on, label, onToggle, testId, children }: ScenePowerProps): ReactElement;
|