@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,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a device transition reads on the card: the field's vocabulary label,
|
|
3
|
+
* the from → to the card would show, who asked, and whether the list was
|
|
4
|
+
* answered. Pure — the section only renders what this returns.
|
|
5
|
+
*/
|
|
6
|
+
import { type DeviceTransition, type TransitionActor, type TransitionRowOutcome } from "@dominevo/types";
|
|
7
|
+
/** How many transitions one page of the card asks for. */
|
|
8
|
+
export declare const ACTUATION_PAGE_SIZE = 30;
|
|
9
|
+
export type ActuationPresence = "pending" | "present" | "absent" | "unknown";
|
|
10
|
+
/** Words the host translates. Counts are already numbers. */
|
|
11
|
+
export interface ActuationPhrases {
|
|
12
|
+
readonly today: string;
|
|
13
|
+
readonly yesterday: string;
|
|
14
|
+
readonly on: string;
|
|
15
|
+
readonly off: string;
|
|
16
|
+
readonly unknown: string;
|
|
17
|
+
readonly device: string;
|
|
18
|
+
readonly user: string;
|
|
19
|
+
readonly automation: string;
|
|
20
|
+
readonly addon: string;
|
|
21
|
+
/** Template with `{{addon}}` and `{{principal}}`: the addon, then who it acted for. */
|
|
22
|
+
readonly onBehalf: string;
|
|
23
|
+
readonly scheduler: string;
|
|
24
|
+
readonly composition: string;
|
|
25
|
+
readonly node: string;
|
|
26
|
+
readonly ok: string;
|
|
27
|
+
readonly deviceOutcome: string;
|
|
28
|
+
readonly failed: string;
|
|
29
|
+
}
|
|
30
|
+
/** Names the ledger does not store. Missing means the generic word. */
|
|
31
|
+
export interface ActuationNameBook {
|
|
32
|
+
readonly actionName: (actionId: string) => string | undefined;
|
|
33
|
+
readonly automationName: (automationId: string) => string | undefined;
|
|
34
|
+
readonly addonName: (addonId: string) => string | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface ActuationRowView {
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly absolute: string;
|
|
39
|
+
/** Local calendar day, `YYYY-MM-DD`: the key rows are grouped under. */
|
|
40
|
+
readonly dayKey: string;
|
|
41
|
+
/** The day header: Today, Yesterday, or the localized date. */
|
|
42
|
+
readonly dayLabel: string;
|
|
43
|
+
readonly field: string;
|
|
44
|
+
readonly change: string;
|
|
45
|
+
readonly actor: string;
|
|
46
|
+
/** HH:MM:SS: the row's exact time (the day is its header). */
|
|
47
|
+
readonly time: string;
|
|
48
|
+
/** The detail block (ⓘ): everything the ledger knows about this change. */
|
|
49
|
+
readonly details: ActuationDetails;
|
|
50
|
+
readonly outcome: TransitionRowOutcome;
|
|
51
|
+
}
|
|
52
|
+
export interface ActuationDetails {
|
|
53
|
+
/** Date and time down to the millisecond. */
|
|
54
|
+
readonly exact: string;
|
|
55
|
+
readonly capability: string;
|
|
56
|
+
readonly field: string;
|
|
57
|
+
readonly from: string;
|
|
58
|
+
readonly to: string;
|
|
59
|
+
/** The kind of actor (user, automation, device ...). */
|
|
60
|
+
readonly actorKind: string;
|
|
61
|
+
/** The named actor: the user, the automation, the add-on. */
|
|
62
|
+
readonly actorName: string;
|
|
63
|
+
/** The command that caused the change, with its arguments; null when none was matched. */
|
|
64
|
+
readonly command: string | null;
|
|
65
|
+
readonly outcome: string;
|
|
66
|
+
readonly rowId: string;
|
|
67
|
+
}
|
|
68
|
+
export type ActuationAsk = {
|
|
69
|
+
readonly status: "pending";
|
|
70
|
+
} | {
|
|
71
|
+
readonly status: "error";
|
|
72
|
+
} | {
|
|
73
|
+
readonly status: "ok";
|
|
74
|
+
readonly count: number;
|
|
75
|
+
readonly nextCursor: string | null;
|
|
76
|
+
};
|
|
77
|
+
export type ActuationSectionView = {
|
|
78
|
+
readonly kind: "hidden";
|
|
79
|
+
} | {
|
|
80
|
+
readonly kind: "skeleton";
|
|
81
|
+
} | {
|
|
82
|
+
readonly kind: "unread";
|
|
83
|
+
} | {
|
|
84
|
+
readonly kind: "empty";
|
|
85
|
+
} | {
|
|
86
|
+
readonly kind: "list";
|
|
87
|
+
readonly nextCursor: string | null;
|
|
88
|
+
};
|
|
89
|
+
/** The vocabulary label of a status field, or the field name when it has none. */
|
|
90
|
+
export declare function actuationFieldLabel(cap: string, field: string, locale: string): string;
|
|
91
|
+
/** Who asked, in the operator's words. */
|
|
92
|
+
export declare function actuationActorLabel(actor: TransitionActor, names: ActuationNameBook, phrases: ActuationPhrases): string;
|
|
93
|
+
export declare function actuationAbsoluteTime(at: number, locale: string): string;
|
|
94
|
+
/** HH:MM:SS of the local time. */
|
|
95
|
+
export declare function actuationTime(at: number): string;
|
|
96
|
+
/** The header a day's rows sit under: Today, Yesterday, else the localized date. */
|
|
97
|
+
export declare function actuationDayLabel(at: number, now: number, locale: string, phrases: ActuationPhrases): string;
|
|
98
|
+
/** Full local date and time with milliseconds. */
|
|
99
|
+
export declare function actuationExactTime(at: number, locale: string): string;
|
|
100
|
+
/** The kind of actor, in the operator's words. */
|
|
101
|
+
export declare function actuationActorKindLabel(actor: TransitionActor, phrases: ActuationPhrases): string;
|
|
102
|
+
/** One row, newest-friendly: the caller sorts. */
|
|
103
|
+
export declare function actuationRow(transition: DeviceTransition, now: number, locale: string, phrases: ActuationPhrases, names: ActuationNameBook): ActuationRowView;
|
|
104
|
+
/**
|
|
105
|
+
* What the section is allowed to say. An absent capability is hidden.
|
|
106
|
+
* Pending and a failed read are never "no actuations" — only an answered
|
|
107
|
+
* empty page is.
|
|
108
|
+
*/
|
|
109
|
+
export declare function actuationSection(presence: ActuationPresence, ask: ActuationAsk | null): ActuationSectionView;
|
|
110
|
+
/** Pages concatenated, first occurrence kept, newest `at` first. Does not mutate. */
|
|
111
|
+
export declare function mergeActuationPages(pages: readonly (readonly DeviceTransition[])[]): readonly DeviceTransition[];
|
|
112
|
+
/** `actions.list` as a name book. Anything that is not that list is empty. */
|
|
113
|
+
export declare function actionNamesFromList(data: unknown): ReadonlyMap<string, string>;
|
|
114
|
+
/** `addons.list` as a name book (manifest id to display name). Anything else is empty. */
|
|
115
|
+
export declare function addonNamesFromList(data: unknown): ReadonlyMap<string, string>;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { SceneVisual } from "../../hero-scene/types";
|
|
3
|
+
import type { CardGlyph } from "../icons";
|
|
4
|
+
import { type InfoTileTone } from "../parts/InfoTile";
|
|
5
|
+
import type { SwitchTimerActions, SwitchTimerModel } from "../parts/switch-timer-model";
|
|
6
|
+
import { type ValueEntryProps } from "../parts/ValueEntry";
|
|
7
|
+
export type BottomRowKind = "selector" | "pills" | "stats" | "buttons" | "slider" | "text" | "lines" | "list" | "levels" | "timer" | "entry" | "codepad" | "stepper" | "trend";
|
|
8
|
+
/**
|
|
9
|
+
* One horizontal row of a scene's bottom area: n rows, each of one kind, drawn
|
|
10
|
+
* by the one renderer in `SceneGrid`. A `BottomRow` is made only by the
|
|
11
|
+
* `row*` factories below, so a scene cannot hand the bottom a loose node.
|
|
12
|
+
* `label` is an optional short caption above the row.
|
|
13
|
+
*/
|
|
14
|
+
export declare class BottomRow {
|
|
15
|
+
readonly key: string;
|
|
16
|
+
readonly kind: BottomRowKind;
|
|
17
|
+
readonly label: string | undefined;
|
|
18
|
+
readonly node: ReactElement;
|
|
19
|
+
private constructor();
|
|
20
|
+
}
|
|
21
|
+
interface RowBase {
|
|
22
|
+
/** A short caption over the row ("Battery"), one or two words. */
|
|
23
|
+
readonly label?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface RowSelectorProps extends RowBase {
|
|
26
|
+
/** The selector or menu button itself. */
|
|
27
|
+
readonly control: ReactElement;
|
|
28
|
+
}
|
|
29
|
+
/** A selector, dropdown or segmented choice, on a row of its own. */
|
|
30
|
+
export declare function rowSelector(key: string, props: RowSelectorProps): BottomRow;
|
|
31
|
+
export interface RowPill {
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly text: string;
|
|
34
|
+
readonly tone?: "default" | "danger";
|
|
35
|
+
readonly testId?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface RowPillsProps extends RowBase {
|
|
38
|
+
readonly pills: readonly RowPill[];
|
|
39
|
+
readonly testId?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Short chips that wrap: facts that carry no number to compare. */
|
|
42
|
+
export declare function rowPills(key: string, props: RowPillsProps): BottomRow;
|
|
43
|
+
export interface RowStat {
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly value: string;
|
|
47
|
+
readonly tone?: "default" | "warning";
|
|
48
|
+
readonly testId?: string;
|
|
49
|
+
/** The reading's own motion behind the cell (`measurementVisual`); `null` = still. */
|
|
50
|
+
readonly visual?: SceneVisual | null;
|
|
51
|
+
/** The reading's last day under the value (a compact `SensorTrend`). */
|
|
52
|
+
readonly trend?: ReactNode;
|
|
53
|
+
/** Makes the cell a button: tapping it opens that reading's chart. */
|
|
54
|
+
readonly onSelect?: (id: string) => void;
|
|
55
|
+
readonly selected?: boolean;
|
|
56
|
+
/** Another reading is open: this one dims. */
|
|
57
|
+
readonly dimmed?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface RowStatsProps extends RowBase {
|
|
60
|
+
/** Up to four: they share the row's width equally (a fifth would wrap, so split the row). */
|
|
61
|
+
readonly stats: readonly RowStat[];
|
|
62
|
+
readonly testId?: string;
|
|
63
|
+
/** Test id of each cell. */
|
|
64
|
+
readonly cellTestId?: string;
|
|
65
|
+
}
|
|
66
|
+
/** Name over value, up to four cells sharing a row: the compact way to show readings. */
|
|
67
|
+
export declare function rowStats(key: string, props: RowStatsProps): BottomRow;
|
|
68
|
+
export interface RowButtonsProps extends RowBase {
|
|
69
|
+
/** Buttons, armed buttons or menus, drawn side by side. */
|
|
70
|
+
readonly buttons: readonly ReactElement[];
|
|
71
|
+
readonly testId?: string;
|
|
72
|
+
}
|
|
73
|
+
/** Commands side by side on a row. */
|
|
74
|
+
export declare function rowButtons(key: string, props: RowButtonsProps): BottomRow;
|
|
75
|
+
export interface RowSliderProps extends RowBase {
|
|
76
|
+
/** A `HorizontalSlider`. */
|
|
77
|
+
readonly slider: ReactElement;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* One horizontal track across the card. The track stops at a comfortable width
|
|
81
|
+
* (`HorizontalSlider`), so the row centres it like its siblings instead of
|
|
82
|
+
* leaving it on the left edge of the zone.
|
|
83
|
+
*/
|
|
84
|
+
export declare function rowSlider(key: string, props: RowSliderProps): BottomRow;
|
|
85
|
+
export interface RowTextProps extends RowBase {
|
|
86
|
+
readonly text: string;
|
|
87
|
+
/** A small icon before the sentence (a warning). */
|
|
88
|
+
readonly glyph?: CardGlyph;
|
|
89
|
+
readonly tone?: "default" | "muted" | "warning" | "danger";
|
|
90
|
+
readonly testId?: string;
|
|
91
|
+
}
|
|
92
|
+
/** A sentence or a short fact on a row. */
|
|
93
|
+
export declare function rowText(key: string, props: RowTextProps): BottomRow;
|
|
94
|
+
export interface RowLinesProps extends RowBase {
|
|
95
|
+
/** The bold first line. */
|
|
96
|
+
readonly headline: string;
|
|
97
|
+
/** Smaller lines under it. */
|
|
98
|
+
readonly notes: readonly string[];
|
|
99
|
+
readonly testId?: string;
|
|
100
|
+
readonly headlineTestId?: string;
|
|
101
|
+
}
|
|
102
|
+
/** A headline over a few small notes: the chosen program and its time. */
|
|
103
|
+
export declare function rowLines(key: string, props: RowLinesProps): BottomRow;
|
|
104
|
+
export interface RowListItem {
|
|
105
|
+
readonly id: string;
|
|
106
|
+
readonly label: string;
|
|
107
|
+
/** Null draws a dash; an empty string draws nothing. */
|
|
108
|
+
readonly value: string | null;
|
|
109
|
+
readonly tone?: InfoTileTone;
|
|
110
|
+
readonly glyph?: CardGlyph;
|
|
111
|
+
/** Test id of the item's tile. */
|
|
112
|
+
readonly testId?: string;
|
|
113
|
+
/** Test id of the wrapper around the tile. */
|
|
114
|
+
readonly rowTestId?: string;
|
|
115
|
+
/** Exposed as `data-event-key` on the wrapper. */
|
|
116
|
+
readonly dataKey?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface RowListGroup {
|
|
119
|
+
readonly id: string;
|
|
120
|
+
/** A small heading over the group; absent when there is one group. */
|
|
121
|
+
readonly title?: string;
|
|
122
|
+
readonly items: readonly RowListItem[];
|
|
123
|
+
readonly testId?: string;
|
|
124
|
+
}
|
|
125
|
+
export interface RowListProps extends RowBase {
|
|
126
|
+
readonly groups: readonly RowListGroup[];
|
|
127
|
+
readonly testId?: string;
|
|
128
|
+
}
|
|
129
|
+
/** Grouped one-line tiles (name left, value right): a vocabulary of declared things. */
|
|
130
|
+
export declare function rowList(key: string, props: RowListProps): BottomRow;
|
|
131
|
+
export interface RowLevel {
|
|
132
|
+
readonly id: string;
|
|
133
|
+
readonly label: string;
|
|
134
|
+
/** 0..100, null when not reported. */
|
|
135
|
+
readonly percent: number | null;
|
|
136
|
+
readonly warn?: boolean;
|
|
137
|
+
readonly testId?: string;
|
|
138
|
+
}
|
|
139
|
+
export interface RowLevelsProps extends RowBase {
|
|
140
|
+
readonly levels: readonly RowLevel[];
|
|
141
|
+
}
|
|
142
|
+
/** Level bars, one line each: water, food, tank. */
|
|
143
|
+
export declare function rowLevels(key: string, props: RowLevelsProps): BottomRow;
|
|
144
|
+
export interface RowTimerProps extends RowBase {
|
|
145
|
+
readonly timer: SwitchTimerModel;
|
|
146
|
+
readonly actions: SwitchTimerActions;
|
|
147
|
+
}
|
|
148
|
+
/** The switch's timed run: "- Run 25 min +", then "Stop · mm:ss". */
|
|
149
|
+
export declare function rowTimer(key: string, props: RowTimerProps): BottomRow;
|
|
150
|
+
export interface RowEntryProps extends RowBase, ValueEntryProps {}
|
|
151
|
+
/** A typed value with its Save: a text, a date, a time. */
|
|
152
|
+
export declare function rowEntry(key: string, props: RowEntryProps): BottomRow;
|
|
153
|
+
export interface RowCodePadProps extends RowBase {
|
|
154
|
+
readonly submitLabel: string;
|
|
155
|
+
readonly onSubmit: (code: string) => void;
|
|
156
|
+
readonly onCancel: () => void;
|
|
157
|
+
readonly testId?: string;
|
|
158
|
+
}
|
|
159
|
+
/** The digit pad of a device that asks for a code before it acts. */
|
|
160
|
+
export declare function rowCodePad(key: string, props: RowCodePadProps): BottomRow;
|
|
161
|
+
export interface RowStepperProps extends RowBase {
|
|
162
|
+
/** "Runs for". */
|
|
163
|
+
readonly name: string;
|
|
164
|
+
/** The shown value ("10 min"); null when the device does not report it: "—". */
|
|
165
|
+
readonly valueText: string | null;
|
|
166
|
+
readonly decreaseLabel: string;
|
|
167
|
+
readonly increaseLabel: string;
|
|
168
|
+
readonly canDecrease: boolean;
|
|
169
|
+
readonly canIncrease: boolean;
|
|
170
|
+
readonly onDecrease: () => void;
|
|
171
|
+
readonly onIncrease: () => void;
|
|
172
|
+
readonly testId?: string;
|
|
173
|
+
}
|
|
174
|
+
/** A name, a value and a minus / plus pair on one line. */
|
|
175
|
+
export declare function rowStepper(key: string, props: RowStepperProps): BottomRow;
|
|
176
|
+
export interface RowTrendProps extends RowBase {
|
|
177
|
+
/** The trend line itself (a sparkline). */
|
|
178
|
+
readonly trend: ReactElement;
|
|
179
|
+
}
|
|
180
|
+
/** A small trend line under the scene. */
|
|
181
|
+
export declare function rowTrend(key: string, props: RowTrendProps): BottomRow;
|
|
182
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { CardGlyph } from "../icons";
|
|
3
|
+
import { type CardButtonTone } from "../parts/CardButton";
|
|
4
|
+
import { type CardSliderProps } from "../parts/sliders";
|
|
5
|
+
/**
|
|
6
|
+
* What a side column may hold: a compact control or a single short value. A
|
|
7
|
+
* `ColumnItem` can only be made by the factories below, and the factories take
|
|
8
|
+
* no selector, picker, segmented choice or long text — so a scene cannot put
|
|
9
|
+
* one in a column, the compiler refuses it. Everything longer goes in the
|
|
10
|
+
* scene's `bottom`.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ColumnItem {
|
|
13
|
+
readonly key: string;
|
|
14
|
+
readonly node: ReactElement;
|
|
15
|
+
private constructor();
|
|
16
|
+
}
|
|
17
|
+
export interface ColumnButtonProps {
|
|
18
|
+
/** The face of the button: a glyph of the card's icon map, or `face` for a small drawing of its own. */
|
|
19
|
+
readonly glyph?: CardGlyph;
|
|
20
|
+
readonly face?: ReactElement;
|
|
21
|
+
/** The accessible name; a column button draws the glyph, and a short word at most. */
|
|
22
|
+
readonly label: string;
|
|
23
|
+
readonly onPress: () => void;
|
|
24
|
+
readonly tone?: CardButtonTone;
|
|
25
|
+
/** A word of at most a few letters under the glyph ("Auto", "On"); never a sentence. */
|
|
26
|
+
readonly caption?: string;
|
|
27
|
+
readonly pressed?: boolean;
|
|
28
|
+
readonly disabled?: boolean;
|
|
29
|
+
readonly testId?: string;
|
|
30
|
+
}
|
|
31
|
+
/** A button in a side column: an icon, optionally with one short word. */
|
|
32
|
+
export declare function columnButton(key: string, props: ColumnButtonProps): ColumnItem;
|
|
33
|
+
export interface ColumnArmedButtonProps {
|
|
34
|
+
readonly glyph: CardGlyph;
|
|
35
|
+
readonly label: string;
|
|
36
|
+
readonly onConfirm: () => void;
|
|
37
|
+
readonly caption?: string;
|
|
38
|
+
readonly tone?: CardButtonTone;
|
|
39
|
+
readonly disabled?: boolean;
|
|
40
|
+
readonly testId?: string;
|
|
41
|
+
}
|
|
42
|
+
/** A two-step button in a side column: the first press arms it, Confirm and Cancel stack. */
|
|
43
|
+
export declare function columnArmedButton(key: string, props: ColumnArmedButtonProps): ColumnItem;
|
|
44
|
+
export interface ColumnLinkProps {
|
|
45
|
+
readonly glyph: CardGlyph;
|
|
46
|
+
readonly label: string;
|
|
47
|
+
readonly href: string;
|
|
48
|
+
readonly testId?: string;
|
|
49
|
+
}
|
|
50
|
+
/** A link that leaves the card (opens in a new tab), drawn as a column button. */
|
|
51
|
+
export declare function columnLink(key: string, props: ColumnLinkProps): ColumnItem;
|
|
52
|
+
export interface ColumnPopoverProps {
|
|
53
|
+
readonly glyph: CardGlyph;
|
|
54
|
+
readonly label: string;
|
|
55
|
+
/** Which edge the panel lines up with: `end` for the right column, `start` for the left. */
|
|
56
|
+
readonly align: "start" | "end";
|
|
57
|
+
/** The panel that opens under the button; it may hold anything, the column holds only the button. */
|
|
58
|
+
readonly panel: ReactNode;
|
|
59
|
+
readonly disabled?: boolean;
|
|
60
|
+
readonly testId?: string;
|
|
61
|
+
}
|
|
62
|
+
/** A button that opens a small panel (a palette, a sweep) over the scene. */
|
|
63
|
+
export declare function columnPopover(key: string, props: ColumnPopoverProps): ColumnItem;
|
|
64
|
+
export interface ColumnStepButton {
|
|
65
|
+
readonly glyph: CardGlyph;
|
|
66
|
+
readonly label: string;
|
|
67
|
+
readonly onPress: () => void;
|
|
68
|
+
readonly disabled?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface ColumnStepProps {
|
|
71
|
+
readonly up: ColumnStepButton;
|
|
72
|
+
readonly down: ColumnStepButton;
|
|
73
|
+
/** The current value, one short token; null draws no value (not known). */
|
|
74
|
+
readonly value: string | null;
|
|
75
|
+
/** What it is, one lowercase word. */
|
|
76
|
+
readonly caption?: string;
|
|
77
|
+
readonly tone?: ColumnValueProps["tone"];
|
|
78
|
+
/** The value reads `testId`; the buttons `testId-up` and `testId-down`. */
|
|
79
|
+
readonly testId?: string;
|
|
80
|
+
}
|
|
81
|
+
/** A value with a step above and a step below: three items of the column, in order. */
|
|
82
|
+
export declare function columnStep(key: string, props: ColumnStepProps): readonly ColumnItem[];
|
|
83
|
+
/** A level in a side column. */
|
|
84
|
+
export declare function columnSlider(key: string, props: CardSliderProps): ColumnItem;
|
|
85
|
+
export interface ColumnValueProps {
|
|
86
|
+
/** The reading, one short token ("21.5°", "35"). */
|
|
87
|
+
readonly value: string;
|
|
88
|
+
/** What it is, one lowercase word ("target", "vol"). */
|
|
89
|
+
readonly caption?: string;
|
|
90
|
+
readonly tone?: "primary" | "muted" | "warning";
|
|
91
|
+
readonly testId?: string;
|
|
92
|
+
}
|
|
93
|
+
/** One short reading in a side column. */
|
|
94
|
+
export declare function columnValue(key: string, props: ColumnValueProps): ColumnItem;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a card cannot be commanded, decided ONCE by the shell (offline, or the
|
|
3
|
+
* viewer has no permission) and read by every part that actuates. A scene never
|
|
4
|
+
* re-implements the rule: it draws parts, and the parts ask here.
|
|
5
|
+
*/
|
|
6
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
7
|
+
export interface CardGating {
|
|
8
|
+
/** True when no command may be sent. */
|
|
9
|
+
readonly blocked: boolean;
|
|
10
|
+
/** The sentence the reason line and every blocked control's title show. */
|
|
11
|
+
readonly reason: string | null;
|
|
12
|
+
}
|
|
13
|
+
export declare function CardGatingProvider({ value, children }: {
|
|
14
|
+
readonly value: CardGating;
|
|
15
|
+
readonly children: ReactNode;
|
|
16
|
+
}): ReactElement;
|
|
17
|
+
export declare function useCardGating(): CardGating;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The History view's sections. Values are the landing page. Interactions
|
|
3
|
+
* exist only when this device can list actuations, or when the card still
|
|
4
|
+
* carries the older event list. One section shows at a time.
|
|
5
|
+
*/
|
|
6
|
+
export type HistoryPane = "values" | "interactions";
|
|
7
|
+
export interface HistoryPaneInput {
|
|
8
|
+
readonly hasValues: boolean;
|
|
9
|
+
readonly hasEvents: boolean;
|
|
10
|
+
/** The device-transitions capability is not known to be absent. */
|
|
11
|
+
readonly actuationsOffered: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Values first. A single pane means no switch. */
|
|
14
|
+
export declare function historyPanes(input: HistoryPaneInput): readonly HistoryPane[];
|
|
15
|
+
/** The chosen pane when it is still offered, otherwise the landing pane. */
|
|
16
|
+
export declare function shownHistoryPane(panes: readonly HistoryPane[], chosen: HistoryPane): HistoryPane;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What every device card shows whatever the device is: the shell's data. A
|
|
3
|
+
* scene adds its own zones on top; it never restates any of this.
|
|
4
|
+
*/
|
|
5
|
+
import type { ConsumableForm, ConsumableLevel, RemoteLayoutPayload, RemoteSource } from "@dominevo/types";
|
|
6
|
+
import type { ReactNode } from "react";
|
|
7
|
+
import type { CardGlyph } from "../icons";
|
|
8
|
+
import type { CardEvent } from "../parts/EventList";
|
|
9
|
+
export type CardOrientation = "vertical" | "horizontal";
|
|
10
|
+
export type CardTone = "primary" | "info" | "warning" | "success" | "danger" | "muted";
|
|
11
|
+
export interface CardPowerDetail {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly value: string;
|
|
15
|
+
/** Starts a new group in the popover (a rule above it). */
|
|
16
|
+
readonly group?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface CardPower {
|
|
19
|
+
readonly watts: number | null;
|
|
20
|
+
readonly details: readonly CardPowerDetail[];
|
|
21
|
+
}
|
|
22
|
+
export type CardSupplyState = "on" | "off" | "restarting";
|
|
23
|
+
export type CardSupplyAction = "on" | "off" | "restart";
|
|
24
|
+
export interface CardSupply {
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly state: CardSupplyState;
|
|
27
|
+
/** False when the switch cannot be commanded on/off (restart stays). Absent = settable. */
|
|
28
|
+
readonly settable?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface CardConsumable {
|
|
31
|
+
readonly key: string;
|
|
32
|
+
readonly label: string;
|
|
33
|
+
readonly note?: string;
|
|
34
|
+
/** 0..100, or null when the device reports no level. */
|
|
35
|
+
readonly percent: number | null;
|
|
36
|
+
/** The word of the reset action ("Cleaned"), or null when the item is not resettable. */
|
|
37
|
+
readonly resetLabel: string | null;
|
|
38
|
+
/** The item is resettable but the viewer may not actuate: the button shows, disabled. */
|
|
39
|
+
readonly resetDisabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The kind-aware level (`consumableItemLevel`): a full bin or waste tank is
|
|
42
|
+
* `full`, a low part `low`. `null` = the device reports nothing (unknown,
|
|
43
|
+
* never ok). Absent: derived from `percent` as a wear part.
|
|
44
|
+
*/
|
|
45
|
+
readonly level?: ConsumableLevel | null;
|
|
46
|
+
/** How the item is drawn: a wear bar, a vertical gauge (tank, bin) or three steps. */
|
|
47
|
+
readonly form?: ConsumableForm;
|
|
48
|
+
/** The state said in words ("Low", "Replace", "Refill now"), so colour never carries it alone. */
|
|
49
|
+
readonly levelWord?: string;
|
|
50
|
+
/** One compact line under the label: remaining time or cycles, "Replaced <date>". */
|
|
51
|
+
readonly detail?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface CardRemoteKey {
|
|
54
|
+
readonly id: string;
|
|
55
|
+
readonly label: string;
|
|
56
|
+
readonly glyph?: CardGlyph;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The saved remote layout (or the preset that stands in for one), drawn by the
|
|
60
|
+
* shared grid. A press sends the button's role. Absent: the card lays the
|
|
61
|
+
* declared keys out itself.
|
|
62
|
+
*/
|
|
63
|
+
export interface CardRemotePanel {
|
|
64
|
+
readonly layout: RemoteLayoutPayload;
|
|
65
|
+
readonly boundRoles: readonly string[];
|
|
66
|
+
readonly sources: readonly RemoteSource[];
|
|
67
|
+
readonly currentSource: string;
|
|
68
|
+
readonly deviceId: number;
|
|
69
|
+
}
|
|
70
|
+
export interface CardHistory {
|
|
71
|
+
/** The value history; null hides that section. */
|
|
72
|
+
readonly charts: ReactNode | null;
|
|
73
|
+
/** Older interaction rows. Null hides them; a device that records actuations uses that list instead. */
|
|
74
|
+
readonly events: readonly CardEvent[] | null;
|
|
75
|
+
}
|
|
76
|
+
/** A fault the device reports right now (the `error` cap, `active === true`). */
|
|
77
|
+
export interface CardFault {
|
|
78
|
+
readonly label: string;
|
|
79
|
+
readonly severity: "warning" | "error";
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The faults to draw, empty when none. Only a slice that ANSWERED `active: true`
|
|
83
|
+
* draws: not-yet-read (`null`), clear (`false`) and a cap the device does not
|
|
84
|
+
* have (no slice) are all no row (D315). A device that raises several lists
|
|
85
|
+
* every one; otherwise the principal fault is the only entry.
|
|
86
|
+
*/
|
|
87
|
+
export declare function cardFaultsOf(slice: {
|
|
88
|
+
readonly active: boolean | null;
|
|
89
|
+
readonly label: string | null;
|
|
90
|
+
readonly code: string | null;
|
|
91
|
+
readonly severity: "warning" | "error";
|
|
92
|
+
readonly faults?: readonly {
|
|
93
|
+
readonly label: string;
|
|
94
|
+
readonly code: string;
|
|
95
|
+
readonly severity: "warning" | "error";
|
|
96
|
+
}[];
|
|
97
|
+
} | undefined): readonly CardFault[];
|
|
98
|
+
export interface CardCommon {
|
|
99
|
+
/** Display precision the operator set for this device (Customize → Display); absent = the default number rule. */
|
|
100
|
+
readonly precision?: number;
|
|
101
|
+
/** Set on a live device so the history view can read its actuations. */
|
|
102
|
+
readonly deviceId?: number;
|
|
103
|
+
readonly name: string;
|
|
104
|
+
readonly integration: string | null;
|
|
105
|
+
/** Null when reachability has not been reported: unknown is neither online nor offline. */
|
|
106
|
+
readonly online: boolean | null;
|
|
107
|
+
/** "Offline for 2 h" — shown in place of Online, and leading the reason line. */
|
|
108
|
+
readonly offlineLabel: string | null;
|
|
109
|
+
/** The viewer may look but not command. */
|
|
110
|
+
readonly readOnly: boolean;
|
|
111
|
+
/** Why the last command failed; shown on the reason line until one succeeds. */
|
|
112
|
+
readonly notice: string | null;
|
|
113
|
+
/** Null on every optional block means: the device does not declare it. */
|
|
114
|
+
readonly power: CardPower | null;
|
|
115
|
+
/** `label` replaces the bare percent (a feeder's "Backup 40%"). */
|
|
116
|
+
readonly battery: CardBattery | null;
|
|
117
|
+
readonly supply: CardSupply | null;
|
|
118
|
+
/** The device's active faults (the `error` cap); absent or empty draws no row. */
|
|
119
|
+
readonly faults?: readonly CardFault[];
|
|
120
|
+
/**
|
|
121
|
+
* `null` = the device is not bound to `consumables`; `[]` = bound and the
|
|
122
|
+
* provider reported none (the card says so).
|
|
123
|
+
*/
|
|
124
|
+
readonly consumables: readonly CardConsumable[] | null;
|
|
125
|
+
/** Bound to `consumables` but the slice has not landed: loading, never "none" (D315). */
|
|
126
|
+
readonly consumablesLoading?: boolean;
|
|
127
|
+
readonly remote: readonly CardRemoteKey[] | null;
|
|
128
|
+
/**
|
|
129
|
+
* The layout grid. Set together with `remote` when the device's remote has a
|
|
130
|
+
* layout (saved, or a built-in preset). Null or absent: the key list.
|
|
131
|
+
*/
|
|
132
|
+
readonly remotePanel?: CardRemotePanel | null;
|
|
133
|
+
/** A saved template is still loading: the remote view draws no raw keys. */
|
|
134
|
+
readonly remoteLayoutPending?: boolean;
|
|
135
|
+
readonly history: CardHistory | null;
|
|
136
|
+
/**
|
|
137
|
+
* "On motion" for a device that binds `motion-trigger`: the served value and
|
|
138
|
+
* whether a change is in flight. Null or absent: the device offers none, no corner.
|
|
139
|
+
*/
|
|
140
|
+
readonly motionTrigger?: CardMotionTrigger | null;
|
|
141
|
+
}
|
|
142
|
+
export interface CardMotionTrigger {
|
|
143
|
+
/** Null: the camera was never read, so the corner claims neither on nor off. */
|
|
144
|
+
readonly on: boolean | null;
|
|
145
|
+
readonly pending: boolean;
|
|
146
|
+
}
|
|
147
|
+
export interface CardCommonActions {
|
|
148
|
+
/** Flip "on motion" (the value to set). */
|
|
149
|
+
readonly onMotionTrigger?: (enabled: boolean) => void;
|
|
150
|
+
readonly onSupply?: (action: CardSupplyAction) => void;
|
|
151
|
+
/** A promise lets the card disable that item's Reset while the call is in flight. */
|
|
152
|
+
readonly onConsumableReset?: (key: string) => void | PromiseLike<unknown>;
|
|
153
|
+
readonly onRemoteKey?: (id: string) => void;
|
|
154
|
+
}
|
|
155
|
+
export interface CardState {
|
|
156
|
+
/** Empty when the device does not say what it is doing: nothing is drawn. */
|
|
157
|
+
readonly label: string;
|
|
158
|
+
readonly since: string | null;
|
|
159
|
+
readonly tone: CardTone;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The device's own battery. `level` is null while only a voltage is known;
|
|
163
|
+
* `binary` marks a low/ok source whose level is a coarse stand-in, so the
|
|
164
|
+
* corner draws the state, never a percentage. `voltage` (V) rides beside it.
|
|
165
|
+
*/
|
|
166
|
+
export interface CardBattery {
|
|
167
|
+
readonly level: number | null;
|
|
168
|
+
readonly binary?: boolean;
|
|
169
|
+
readonly voltage?: number | null;
|
|
170
|
+
/** Replaces the bare percent (a feeder's "Backup 40%"). */
|
|
171
|
+
readonly label?: string;
|
|
172
|
+
}
|
|
173
|
+
/** Battery levels under this are drawn as a warning. */
|
|
174
|
+
export declare const BATTERY_LOW_PERCENT = 20;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How tall an overlay (History, Remote) is. It replaces the scene in the same
|
|
3
|
+
* box: filling the host's height (`fill`, the viewer's embedded card), or the
|
|
4
|
+
* measured height of the scene it replaced (admin). No height means natural.
|
|
5
|
+
*/
|
|
6
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
7
|
+
export interface OverlayBox {
|
|
8
|
+
/** The host sized the card: the overlay takes whatever the card has left. */
|
|
9
|
+
readonly fill: boolean;
|
|
10
|
+
/** Pixels of the scene the overlay replaced; null when unmeasured. */
|
|
11
|
+
readonly height: number | null;
|
|
12
|
+
}
|
|
13
|
+
export declare function OverlayBoxProvider({ value, children }: {
|
|
14
|
+
readonly value: OverlayBox;
|
|
15
|
+
readonly children: ReactNode;
|
|
16
|
+
}): ReactElement;
|
|
17
|
+
export declare function useOverlayBox(): OverlayBox;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The remote's keys by ROLE (the `remote` cap's vocabulary): the glyph and the
|
|
3
|
+
* word each known role is drawn with, and the pad rows the remote view lays
|
|
4
|
+
* them out in. A key the device declares with its own label keeps it; a role
|
|
5
|
+
* this table does not know is drawn by its label in the last row.
|
|
6
|
+
*/
|
|
7
|
+
import type { UiTextFn } from "../../../contexts/ui-text";
|
|
8
|
+
import type { CardRemoteKey } from "./model";
|
|
9
|
+
/** The key the card draws for a declared role (its label wins over the default word). */
|
|
10
|
+
export declare function remoteKeyOf(role: string, label: string | null | undefined, t: UiTextFn): CardRemoteKey;
|
|
11
|
+
/** The key is drawn as its glyph alone (its label is the accessible name). */
|
|
12
|
+
export declare function remoteKeyIconOnly(key: CardRemoteKey): boolean;
|
|
13
|
+
export type RemotePadRow = {
|
|
14
|
+
readonly kind: "row";
|
|
15
|
+
readonly keys: readonly CardRemoteKey[];
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: "dpad";
|
|
18
|
+
readonly keys: readonly CardRemoteKey[];
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: "pairs";
|
|
21
|
+
readonly keys: readonly CardRemoteKey[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The pad layout of a remote that declares a direction pad (a TV, a media
|
|
25
|
+
* box): power and source on top, the pad, back / menu / info, volume and
|
|
26
|
+
* channel in pairs, the transport; whatever is left closes it. A remote
|
|
27
|
+
* without a pad is one row; null means: lay it out flat.
|
|
28
|
+
*/
|
|
29
|
+
export declare function remotePadRows(keys: readonly CardRemoteKey[]): readonly RemotePadRow[] | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The scene's proportions, a property of the grid and not of any one scene.
|
|
3
|
+
* Both side columns are EXACTLY the same width; whatever they leave is the
|
|
4
|
+
* drawing, so the drawing never gets less than {@link SCENE_MIN_PCT}.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SCENE_COLUMN_PCT: number;
|
|
7
|
+
/** The share of the card width the drawing keeps at least (two columns subtracted from 100). */
|
|
8
|
+
export declare const SCENE_MIN_PCT: number;
|
|
9
|
+
/**
|
|
10
|
+
* A drawing (an illustration, an SVG) fills the space the columns leave it: the
|
|
11
|
+
* full width of its zone, never smaller than a dial and never larger than the
|
|
12
|
+
* biggest one, its height following its own proportions. Scenes spell no pixel
|
|
13
|
+
* size of their own on a drawing (guard `check-device-card-scene-layout`).
|
|
14
|
+
*/
|
|
15
|
+
export declare const SCENE_DRAWING_CLASS: string;
|
|
16
|
+
/** The same for a glyph standing in for a device that has no drawing of its own. */
|
|
17
|
+
export declare const SCENE_ICON_CLASS: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** One open/closed popover that closes on an outside press and on Escape. */
|
|
2
|
+
import { type RefObject } from "react";
|
|
3
|
+
export interface PopoverState {
|
|
4
|
+
readonly open: boolean;
|
|
5
|
+
readonly toggle: () => void;
|
|
6
|
+
readonly close: () => void;
|
|
7
|
+
readonly rootRef: RefObject<HTMLDivElement | null>;
|
|
8
|
+
}
|
|
9
|
+
export declare function usePopover(): PopoverState;
|