@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,29 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { HeroLabels } from "./hero-labels";
|
|
3
|
+
import { type HeroLang } from "./hero-model-view";
|
|
4
|
+
export interface ModelHeroProps {
|
|
5
|
+
readonly deviceId: number;
|
|
6
|
+
readonly canActuate: boolean;
|
|
7
|
+
/** The language the model's own `{ en, it }` texts are picked in. */
|
|
8
|
+
readonly lang: HeroLang;
|
|
9
|
+
/** The words the model does not carry, in `lang`. */
|
|
10
|
+
readonly labels: HeroLabels;
|
|
11
|
+
/** Drawn while the model does not cover the device (or could not be read). */
|
|
12
|
+
readonly fallback: ReactNode;
|
|
13
|
+
/** Opens the device's history; absent when the host has no history to open. */
|
|
14
|
+
readonly onOpenHistory?: () => void;
|
|
15
|
+
/** The remote's foot button for a device whose model carries the `remote` slot; given the device name. */
|
|
16
|
+
readonly renderRemote?: (deviceName: string) => ReactNode;
|
|
17
|
+
/** Told whether the model hero (not the fallback) is what is on screen. */
|
|
18
|
+
readonly onDrawn?: (drawn: boolean) => void;
|
|
19
|
+
/** Draw the device name on the card (default true); false when the host's own header names it. */
|
|
20
|
+
readonly showName?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The device hero drawn from the hero model (D1023), mountable by any host that
|
|
24
|
+
* provides the tRPC client (`TrpcClientProvider` / `SystemProvider`) and a
|
|
25
|
+
* confirm dialog. While the model or the bindings are unanswered a skeleton
|
|
26
|
+
* shows; when the model is absent, errored or does not cover the device's caps
|
|
27
|
+
* yet, `fallback` renders.
|
|
28
|
+
*/
|
|
29
|
+
export declare function ModelHero({ deviceId, canActuate, lang, labels, fallback, onOpenHistory, renderRemote, onDrawn, showName }: ModelHeroProps): ReactNode;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type HeroCall } from "@dominevo/types";
|
|
2
|
+
/** `media-player` -> `mediaPlayer`: the router name the generated client gives a capability. */
|
|
3
|
+
export declare function capRouterName(cap: string): string;
|
|
4
|
+
/** The method names the device in its input: only then does the call carry `deviceId`. */
|
|
5
|
+
export declare function methodTakesDevice(call: HeroCall): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The input a hero call sends. The generated device selectors say whether the method
|
|
8
|
+
* addresses a device; a method that does not (a singleton cap, a void-input method) gets
|
|
9
|
+
* no `deviceId`, and one with nothing to send gets no input at all.
|
|
10
|
+
*/
|
|
11
|
+
export declare function heroCallInput(call: HeroCall, deviceId: number, nodeId: string | undefined): Readonly<Record<string, unknown>> | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Run the cap method an action of the hero model names, on the hero's device.
|
|
14
|
+
* The model carries only `{ cap, method, args }`; the renderer adds the device id
|
|
15
|
+
* when the method addresses a device and, when the binding pins the cap to a node, that node.
|
|
16
|
+
*/
|
|
17
|
+
export declare function callHeroAction(client: unknown, call: HeroCall, deviceId: number, nodeId: string | undefined): Promise<unknown>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The device a hero card draws, as its readings and numeric controls are DISPLAYED:
|
|
3
|
+
* its role, its display override and its chosen quantity. Read once per card
|
|
4
|
+
* (`deviceManager.getDevice`, shared with the page's own query) and published to the
|
|
5
|
+
* scene and the controls below it. Until it lands they use the user's unit
|
|
6
|
+
* preferences alone; outside a card they see `null`.
|
|
7
|
+
*/
|
|
8
|
+
import type { SourceInfo } from "@dominevo/types";
|
|
9
|
+
import { type ReactNode } from "react";
|
|
10
|
+
import type { ReadingDisplaySubject } from "./measurement-display";
|
|
11
|
+
export interface CardDisplaySubject extends ReadingDisplaySubject {
|
|
12
|
+
readonly sourceInfo?: SourceInfo;
|
|
13
|
+
}
|
|
14
|
+
export interface CardDisplaySubjectProviderProps {
|
|
15
|
+
readonly deviceId: number;
|
|
16
|
+
readonly children: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function CardDisplaySubjectProvider({ deviceId, children }: CardDisplaySubjectProviderProps): ReactNode;
|
|
19
|
+
export declare function useCardDisplaySubject(): CardDisplaySubject | null;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { HeroConfirm } from "@dominevo/types";
|
|
2
|
+
/** The words of one confirmation dialog the card asks before a risky action. */
|
|
3
|
+
export interface HeroConfirmLabels {
|
|
4
|
+
readonly title: string;
|
|
5
|
+
readonly message: string;
|
|
6
|
+
readonly confirm: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Every string the hero card draws that the hero model does not carry itself
|
|
10
|
+
* (the model's own texts are `{ en, it }` and are picked with the host's `lang`).
|
|
11
|
+
* The host supplies them in its language; the library holds no copy of its own.
|
|
12
|
+
*/
|
|
13
|
+
export interface HeroLabels {
|
|
14
|
+
/** A picker with no current value. */
|
|
15
|
+
readonly noValue: string;
|
|
16
|
+
/** The dialog title when a command was not accepted. */
|
|
17
|
+
readonly callFailed: string;
|
|
18
|
+
readonly historyTooltip: string;
|
|
19
|
+
readonly consumables: {
|
|
20
|
+
readonly label: string;
|
|
21
|
+
readonly low: (count: number) => string;
|
|
22
|
+
readonly ok: string;
|
|
23
|
+
readonly tooltip: string;
|
|
24
|
+
};
|
|
25
|
+
readonly power: {
|
|
26
|
+
readonly label: string;
|
|
27
|
+
readonly on: string;
|
|
28
|
+
readonly off: string;
|
|
29
|
+
readonly tooltip: string;
|
|
30
|
+
readonly tooltipReadOnly: string;
|
|
31
|
+
};
|
|
32
|
+
readonly confirm: Readonly<Record<HeroConfirm, HeroConfirmLabels>>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hero model -> component props. Pure: it selects and renames what the model
|
|
3
|
+
* already says; it decides nothing about a device type (D1023, D14).
|
|
4
|
+
*/
|
|
5
|
+
import { type HeroFact, type HeroModel, type HeroSideTile, type HeroText, type HeroTone } from "@dominevo/types";
|
|
6
|
+
import type { BadgeVariant } from "../../primitives/badge";
|
|
7
|
+
import type { HeroSceneParams, SceneTile } from "../hero-scene";
|
|
8
|
+
export type HeroLang = "en" | "it";
|
|
9
|
+
export declare function heroLang(language: string): HeroLang;
|
|
10
|
+
export declare function pickText(text: HeroText, lang: HeroLang): string;
|
|
11
|
+
/** The state string the scene resolves its backdrop from. */
|
|
12
|
+
export declare function sceneStateOf(model: HeroModel): string;
|
|
13
|
+
export interface SceneProps {
|
|
14
|
+
readonly scene: HeroModel["scene"]["id"];
|
|
15
|
+
readonly state: string;
|
|
16
|
+
readonly level?: HeroSceneParams["level"];
|
|
17
|
+
}
|
|
18
|
+
export declare function sceneOf(model: HeroModel): SceneProps;
|
|
19
|
+
/** A clock time in the viewer's own time zone ("17:42"). */
|
|
20
|
+
export declare function clockText(at: number, lang: HeroLang): string;
|
|
21
|
+
export declare function tilesOf(tiles: readonly HeroSideTile[], lang: HeroLang): readonly SceneTile[];
|
|
22
|
+
/** Badge variant per tone. */
|
|
23
|
+
export declare function badgeVariantOf(tone: HeroTone): BadgeVariant;
|
|
24
|
+
export declare function factsOf(model: HeroModel): readonly HeroFact[];
|
|
25
|
+
/**
|
|
26
|
+
* Caps bound to the device whose legacy hero parts the model does not carry yet
|
|
27
|
+
* (`LATER_PHASE` in the coverage table). Their presence keeps the legacy hero.
|
|
28
|
+
*/
|
|
29
|
+
export declare function uncoveredCaps(boundCaps: readonly string[]): readonly string[];
|
|
30
|
+
/** The model has something to draw: a known state, a slot or a row. */
|
|
31
|
+
export declare function modelSaysAnything(model: HeroModel): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the hero model draws this device. `false` keeps the legacy hero, which
|
|
34
|
+
* still has parts (brightness, climate modes, ...) the model does not carry.
|
|
35
|
+
*/
|
|
36
|
+
export declare function heroModelCovers(model: HeroModel, boundCaps: readonly string[]): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HeroModel } from "@dominevo/types";
|
|
2
|
+
import type { HeroUtility } from "../hero-scene";
|
|
3
|
+
import type { HeroCardHost } from "./HeroModelCard";
|
|
4
|
+
/**
|
|
5
|
+
* The utilities a hero model offers, in a fixed order: history (when the page has
|
|
6
|
+
* one to open), consumables, power source. One entry per slot the model carries;
|
|
7
|
+
* a device without the slot gets no button. The remote keeps its own foot button.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useHeroUtilities(model: HeroModel, host: HeroCardHost): readonly HeroUtility[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { HeroModelCard, type HeroCardHost, type HeroModelCardProps } from "./HeroModelCard";
|
|
2
|
+
export type { HeroConfirmLabels, HeroLabels } from "./hero-labels";
|
|
3
|
+
export { heroLang, heroModelCovers, pickText, type HeroLang } from "./hero-model-view";
|
|
4
|
+
export { ModelHero, type ModelHeroProps } from "./ModelHero";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A measurement as the operator reads it. The model sends the number in its base
|
|
3
|
+
* unit (`reading`); the row and the card both turn it into text through the ONE
|
|
4
|
+
* display resolution every reading uses (`resolveSensorDisplay`: the user's unit
|
|
5
|
+
* preferences, the device's display override, the role default, precision). A
|
|
6
|
+
* measurement with no number (a contact, a text) is drawn as the model words it;
|
|
7
|
+
* one that has not reported keeps its value empty ("—") but its unit is still the
|
|
8
|
+
* operator's (°F stays °F before the first reading).
|
|
9
|
+
*/
|
|
10
|
+
import { type DeviceDisplayOverride, type HeroMeasurement } from "@dominevo/types";
|
|
11
|
+
import type { UnitPreferences } from "../../lib/unit-preferences";
|
|
12
|
+
import { type RoleDisplayDefaults } from "../device-item/role-display-defaults-context";
|
|
13
|
+
import { type HeroLang } from "./hero-model-view";
|
|
14
|
+
/** What of a device the display resolution reads: its role and its display override. */
|
|
15
|
+
export interface ReadingDisplaySubject {
|
|
16
|
+
readonly role?: string | null;
|
|
17
|
+
readonly display?: DeviceDisplayOverride;
|
|
18
|
+
}
|
|
19
|
+
/** The value and its unit as drawn; `unit` is `null` when there is none. */
|
|
20
|
+
export interface MeasurementText {
|
|
21
|
+
readonly value: string;
|
|
22
|
+
readonly unit: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface MeasurementTextInput {
|
|
25
|
+
readonly measurement: HeroMeasurement;
|
|
26
|
+
readonly lang: HeroLang;
|
|
27
|
+
/** The device, when known; without it only the user's unit preferences apply. */
|
|
28
|
+
readonly subject: ReadingDisplaySubject | null;
|
|
29
|
+
readonly unitPreferences: UnitPreferences;
|
|
30
|
+
readonly roleDefaults: RoleDisplayDefaults;
|
|
31
|
+
}
|
|
32
|
+
export declare function measurementText(input: MeasurementTextInput): MeasurementText;
|
|
33
|
+
/** `measurementText` with the user's preferences and the published role defaults. */
|
|
34
|
+
export declare function useMeasurementText(measurement: HeroMeasurement, lang: HeroLang, subject: ReadingDisplaySubject | null): MeasurementText;
|
|
35
|
+
/**
|
|
36
|
+
* The host's language as the model's `{ en, it }` texts are picked in, for a
|
|
37
|
+
* surface with no `lang` prop of its own: the ui-text catalogue names it
|
|
38
|
+
* (`uiLibrary.language`).
|
|
39
|
+
*/
|
|
40
|
+
export declare function useHeroLang(): HeroLang;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-reads the hero model when any state slice of the device pushes: the same
|
|
3
|
+
* live mechanism the legacy hero reads its slices through (`useDeviceProxy`),
|
|
4
|
+
* instead of polling. Bursts of pushes collapse into one refetch.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useHeroLiveRefresh(deviceId: number, refetch: () => unknown): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { SceneVisual } from "./types";
|
|
3
|
+
interface BackdropProps {
|
|
4
|
+
readonly visual: SceneVisual;
|
|
5
|
+
readonly level?: number;
|
|
6
|
+
readonly points?: readonly number[];
|
|
7
|
+
readonly timer?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The scene draws its own illustration in the centre (`SCENES_WITH_ART`). A backdrop
|
|
10
|
+
* that draws a centred FIGURE (a drum, a ring, a ripple) would then sit behind it at
|
|
11
|
+
* the card's centre — not the illustration's, which side tiles push off-centre — and
|
|
12
|
+
* show as a second machine poking out. Such a scene keeps only the ambient backdrops.
|
|
13
|
+
*/
|
|
14
|
+
readonly withArt?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Normalised polyline `d` in a 100×40 viewBox. */
|
|
17
|
+
export declare function sparkPath(points: readonly number[] | undefined): string;
|
|
18
|
+
/** The one background animation a resolved scene visual draws. */
|
|
19
|
+
export declare function SceneBackdrop({ visual, level, points, timer, withArt }: BackdropProps): ReactNode;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type HeroSceneProps } from "./hero-scene";
|
|
3
|
+
export interface DeviceRowProps {
|
|
4
|
+
/** The mini scene: the same scene id + params a hero would draw. */
|
|
5
|
+
readonly scene: Pick<HeroSceneProps, "scene" | "state" | "level" | "speed" | "timer" | "points" | "tone" | "icon">;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/** The one status line under the name. */
|
|
8
|
+
readonly status?: string;
|
|
9
|
+
/** The primary control (toggle, stepper, button). It stays at phone width. */
|
|
10
|
+
readonly control?: ReactNode;
|
|
11
|
+
/** Trailing fact chip (power, last seen). Hidden at phone width. */
|
|
12
|
+
readonly fact?: ReactNode;
|
|
13
|
+
readonly onSelect?: () => void;
|
|
14
|
+
readonly className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The shared device row: a fixed four-zone grid — mini scene (44×44), name +
|
|
18
|
+
* one status line, primary control, trailing fact. Below `sm` the fact zone is
|
|
19
|
+
* dropped and the control stays.
|
|
20
|
+
*/
|
|
21
|
+
export declare function DeviceRow({ scene, name, status, control, fact, onSelect, className }: DeviceRowProps): ReactNode;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface HeroCardAProps {
|
|
3
|
+
readonly title: string;
|
|
4
|
+
/**
|
|
5
|
+
* Draw the title in the top row. Default true; a host whose own header
|
|
6
|
+
* already names the device (the viewer's device screen) passes false, and the
|
|
7
|
+
* top row keeps only the chips.
|
|
8
|
+
*/
|
|
9
|
+
readonly showTitle?: boolean;
|
|
10
|
+
/** Inline chips next to the title (brand, power, state). Never wrap: the row clips. */
|
|
11
|
+
readonly chips?: ReactNode;
|
|
12
|
+
/** The HeroScene. */
|
|
13
|
+
readonly scene: ReactNode;
|
|
14
|
+
/** Controls / facts under the scene. */
|
|
15
|
+
readonly rows?: ReactNode;
|
|
16
|
+
/** Foot, left: consumable chips. */
|
|
17
|
+
readonly footChips?: ReactNode;
|
|
18
|
+
/** Foot, right: the history action. */
|
|
19
|
+
readonly footAction?: ReactNode;
|
|
20
|
+
/** The utility section: a divided block at the very bottom of the card (`HeroUtilityGrid`). */
|
|
21
|
+
readonly utility?: ReactNode;
|
|
22
|
+
readonly className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Layout A hero shell: one-line top row, scene, rows slot, foot. The top row is
|
|
26
|
+
* `nowrap` — the title ellipsises, the chips stay whole and the overflow clips;
|
|
27
|
+
* it is never two lines.
|
|
28
|
+
*/
|
|
29
|
+
export declare function HeroCardA({ title, showTitle, chips, scene, rows, footChips, footAction, utility, className }: HeroCardAProps): ReactNode;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { SceneTone } from "./types";
|
|
3
|
+
export interface HeroRowLineProps {
|
|
4
|
+
/** The row's label at the left ("Phase", "Mode"). */
|
|
5
|
+
readonly label: string;
|
|
6
|
+
/** The value in the middle: words, a progress bar or a segmented control. */
|
|
7
|
+
readonly children?: ReactNode;
|
|
8
|
+
/** The actions at the right. */
|
|
9
|
+
readonly actions?: ReactNode;
|
|
10
|
+
readonly testId?: string;
|
|
11
|
+
readonly className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* One row of a layout A hero: `label | value | actions`, on a fixed grid so every
|
|
15
|
+
* row of every device lines up. An empty value or action zone leaves no gap.
|
|
16
|
+
*/
|
|
17
|
+
export declare function HeroRowLine({ label, children, actions, testId, className }: HeroRowLineProps): ReactNode;
|
|
18
|
+
export interface HeroProgressBarProps {
|
|
19
|
+
/** 0..1. */
|
|
20
|
+
readonly value: number;
|
|
21
|
+
readonly label: string;
|
|
22
|
+
readonly tone?: SceneTone;
|
|
23
|
+
readonly className?: string;
|
|
24
|
+
}
|
|
25
|
+
/** The progress bar of a cycle or a timer: the scene's tone fills it. */
|
|
26
|
+
export declare function HeroProgressBar({ value, label, tone, className }: HeroProgressBarProps): ReactNode;
|
|
27
|
+
export interface HeroSegmentedProps {
|
|
28
|
+
readonly label: string;
|
|
29
|
+
readonly options: readonly {
|
|
30
|
+
readonly value: string;
|
|
31
|
+
readonly label: string;
|
|
32
|
+
}[];
|
|
33
|
+
readonly value: string | null;
|
|
34
|
+
readonly disabled?: boolean;
|
|
35
|
+
readonly tone?: SceneTone;
|
|
36
|
+
readonly onChange: (value: string) => void;
|
|
37
|
+
}
|
|
38
|
+
/** A segmented control: the options of a mode or a speed, one pressed. */
|
|
39
|
+
export declare function HeroSegmented({ label, options, value, disabled, tone, onChange }: HeroSegmentedProps): ReactNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scoped keyframes + helper classes for the hero scenes. transform/opacity
|
|
3
|
+
* only (compositor-cheap), no colour: tint comes from `currentColor`, set by a
|
|
4
|
+
* theme `text-<tone>` class on the backdrop. Positions and delays are
|
|
5
|
+
* nth-child rules so no element carries an inline style.
|
|
6
|
+
* The airflow / fan scenes reuse the `acv-*` keyframes of ac-panel.
|
|
7
|
+
*/
|
|
8
|
+
export declare const HERO_SCENE_CSS = "\n.hs-fx { --hs-t: 2s; }\n.hs-fx.hs-fast { --hs-t: 1s; }\n.hs-fx.hs-slow { --hs-t: 3.6s; }\n@keyframes hs-fall { 0%{transform:translateY(-130%);opacity:0} 20%,80%{opacity:.7} 100%{transform:translateY(900%);opacity:0} }\n@keyframes hs-rise { 0%{transform:translateY(900%);opacity:0} 20%,80%{opacity:.7} 100%{transform:translateY(-130%);opacity:0} }\n@keyframes hs-spin { to { transform:rotate(360deg) } }\n@keyframes hs-ripple { 0%{transform:scale(.25);opacity:.7} 100%{transform:scale(1.7);opacity:0} }\n@keyframes hs-sweep { 0%,100%{transform:translateX(-45%)} 50%{transform:translateX(45%)} }\n@keyframes hs-bars { 0%,100%{transform:scaleY(.25)} 50%{transform:scaleY(1)} }\n@keyframes hs-breathe { 0%,100%{opacity:.3;transform:scale(1)} 50%{opacity:.6;transform:scale(1.08)} }\n@keyframes hs-draw { 0%{stroke-dashoffset:100} 70%,100%{stroke-dashoffset:0} }\n@keyframes hs-scroll { 0%{transform:translateY(0)} 100%{transform:translateY(-50%)} }\n@keyframes hs-shimmer { 0%,100%{opacity:.35} 50%{opacity:.8} }\n.hs-p { position:absolute; top:0; border-radius:9999px; background:currentColor; opacity:0; animation-duration:var(--hs-t); animation-iteration-count:infinite; animation-timing-function:linear; }\n.hs-fall .hs-p { animation-name:hs-fall }\n.hs-rise .hs-p { animation-name:hs-rise }\n.hs-p:nth-child(1){left:8%;animation-delay:0s}\n.hs-p:nth-child(2){left:23%;animation-delay:.35s}\n.hs-p:nth-child(3){left:38%;animation-delay:.7s}\n.hs-p:nth-child(4){left:53%;animation-delay:.15s}\n.hs-p:nth-child(5){left:68%;animation-delay:.55s}\n.hs-p:nth-child(6){left:83%;animation-delay:.9s}\n.hs-spin { animation:hs-spin calc(var(--hs-t) * 1.6) linear infinite; }\n.hs-ring { position:absolute; left:50%; top:50%; border-radius:9999px; border:2px solid currentColor; opacity:0; animation:hs-ripple calc(var(--hs-t) * 1.5) ease-out infinite; }\n.hs-ring:nth-child(2){animation-delay:.5s}\n.hs-ring:nth-child(3){animation-delay:1s}\n.hs-lane-dot { animation:hs-sweep var(--hs-t) ease-in-out infinite; }\n.hs-lane:nth-child(2) .hs-lane-dot { animation-delay:.4s; animation-direction:reverse }\n.hs-lane:nth-child(3) .hs-lane-dot { animation-delay:.8s }\n.hs-bar { transform-origin:bottom; animation:hs-bars calc(var(--hs-t) * .5) ease-in-out infinite; }\n.hs-bar:nth-child(2){animation-delay:.12s} .hs-bar:nth-child(3){animation-delay:.27s}\n.hs-bar:nth-child(4){animation-delay:.05s} .hs-bar:nth-child(5){animation-delay:.33s}\n.hs-bar:nth-child(6){animation-delay:.18s} .hs-bar:nth-child(7){animation-delay:.4s}\n.hs-glow { animation:hs-breathe calc(var(--hs-t) * 1.6) ease-in-out infinite; }\n.hs-draw { stroke-dasharray:100; animation:hs-draw calc(var(--hs-t) * 2) ease-out infinite; }\n.hs-feed { animation:hs-scroll calc(var(--hs-t) * 3) linear infinite; }\n.hs-orbit { animation:hs-spin calc(var(--hs-t) * 3) linear infinite; }\n.hs-shimmer { animation:hs-shimmer calc(var(--hs-t) * 1.2) ease-in-out infinite; }\n.hs-lv-0{--hs-lv:0} .hs-lv-1{--hs-lv:.1} .hs-lv-2{--hs-lv:.2} .hs-lv-3{--hs-lv:.3} .hs-lv-4{--hs-lv:.4}\n.hs-lv-5{--hs-lv:.5} .hs-lv-6{--hs-lv:.6} .hs-lv-7{--hs-lv:.7} .hs-lv-8{--hs-lv:.8} .hs-lv-9{--hs-lv:.9} .hs-lv-10{--hs-lv:1}\n.hs-slat-block { transform-origin:top; transform:scaleY(var(--hs-lv,1)); }\n.hs-timer { transform-origin:left; transform:scaleX(var(--hs-lv,1)); }\n@keyframes hs-heat { 0%{transform:translateY(0);opacity:0} 30%{opacity:.8} 100%{transform:translateY(-18px);opacity:0} }\n@keyframes hs-bubble { 0%{transform:translateY(0);opacity:0} 15%{opacity:.9} 100%{transform:translateY(-46px);opacity:0} }\n@keyframes hs-wave { to { transform:translateX(-80px) } }\n@keyframes hs-stream { to { stroke-dashoffset:-24 } }\n@keyframes hs-drop { 0%{transform:translateY(0);opacity:0} 10%{opacity:1} 85%{opacity:1} 100%{transform:translateY(40px);opacity:0} }\n@keyframes hs-travel { 0%,100%{transform:translateX(0)} 50%{transform:translateX(70px)} }\n@keyframes hs-rise-up { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }\n@keyframes hs-jiggle { 0%,100%{transform:translateY(0)} 50%{transform:translateY(1.5px)} }\n.art-spin { transform-box:fill-box; transform-origin:center; animation:hs-spin 3s linear infinite; }\n.art-spin-fast { transform-box:fill-box; transform-origin:center; animation:hs-spin 1s linear infinite; }\n.art-heat { animation:hs-heat 1.8s ease-out infinite; }\n.art-heat:nth-child(2){animation-delay:.5s} .art-heat:nth-child(3){animation-delay:1s}\n.art-bubble { animation:hs-bubble 2.4s ease-in infinite; }\n.art-bubble:nth-child(2){animation-delay:.4s} .art-bubble:nth-child(3){animation-delay:.8s}\n.art-bubble:nth-child(4){animation-delay:1.2s} .art-bubble:nth-child(5){animation-delay:1.6s}\n.art-wave { animation:hs-wave 2.6s linear infinite; }\n.art-stream { stroke-dasharray:6 6; animation:hs-stream .5s linear infinite; }\n.hs-wire { stroke-dasharray:6 6; animation:hs-stream calc(var(--hs-t) * .4) linear infinite; }\n.art-kibble { animation:hs-drop 1.1s ease-in infinite; }\n.art-kibble:nth-child(2){animation-delay:.35s} .art-kibble:nth-child(3){animation-delay:.7s}\n.art-sweep { animation:hs-travel 5s ease-in-out infinite; }\n.art-rise { animation:hs-rise-up 1.6s ease-in-out infinite; }\n.art-pile { animation:hs-jiggle 1.1s ease-in-out infinite; }\n@media (prefers-reduced-motion: reduce) {\n .hs-fx *, .hs-fx, .art-spin, .art-spin-fast, .art-heat, .art-bubble, .art-wave, .art-stream, .art-kibble, .art-pile, .art-sweep, .art-rise { animation: none !important; }\n .hs-p { opacity:.35 !important }\n}\n";
|
|
9
|
+
/** level 0..1 → the `hs-lv-N` class (ten steps). */
|
|
10
|
+
export declare function levelClass(level: number | undefined): string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type LucideIcon } from "lucide-react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { HeroSceneId, HeroSceneParams, SceneTile } from "./types";
|
|
4
|
+
/** Default glyph per scene — the type icon shown in front of a row's mini scene. */
|
|
5
|
+
export declare const HERO_SCENE_ICON: Readonly<Record<HeroSceneId, LucideIcon>>;
|
|
6
|
+
/** The device's own on/off, read at the top of the scene; `action` makes that value the switch. */
|
|
7
|
+
export interface HeroScenePower {
|
|
8
|
+
/** The state word ("On", "Off"), printed before the caption. */
|
|
9
|
+
readonly value: string;
|
|
10
|
+
readonly on: boolean;
|
|
11
|
+
/** Absent: the value is only read (a session that may not act). */
|
|
12
|
+
readonly action?: {
|
|
13
|
+
/** The verb the press performs ("Turn off"): the tooltip and the accessible name. */
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly onPress: () => void;
|
|
16
|
+
readonly disabled?: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface HeroSceneProps extends HeroSceneParams {
|
|
20
|
+
readonly scene: HeroSceneId;
|
|
21
|
+
/** Scene-specific state (see `resolveSceneVisual`). */
|
|
22
|
+
readonly state?: string;
|
|
23
|
+
/** `hero`: the full-width box with tiles and centre slot. `mini`: 44×44 for a row. */
|
|
24
|
+
readonly size?: "hero" | "mini";
|
|
25
|
+
/** A short state caption at the top of the scene ("Cooling", "Rinsing"), in the scene's tone. */
|
|
26
|
+
readonly caption?: string;
|
|
27
|
+
/** The device's own on/off: its value leads the caption and, with an `action`, is the switch. */
|
|
28
|
+
readonly power?: HeroScenePower;
|
|
29
|
+
/** Command controls drawn along the scene's foot (a cover's open / stop / close, a player's transport). */
|
|
30
|
+
readonly controls?: ReactNode;
|
|
31
|
+
/** Draws the centre slot in the scene's tone (a setpoint, a countdown) instead of the text colour. */
|
|
32
|
+
readonly toneCentre?: boolean;
|
|
33
|
+
readonly leftTiles?: readonly SceneTile[];
|
|
34
|
+
readonly rightTiles?: readonly SceneTile[];
|
|
35
|
+
/** Centre slot (hero) — the camera thumbnail, the setpoint control, a readout. */
|
|
36
|
+
readonly children?: ReactNode;
|
|
37
|
+
/** Mini only: the glyph in front of the animation. Defaults to the scene's icon. */
|
|
38
|
+
readonly icon?: ReactNode;
|
|
39
|
+
readonly className?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A rectangular scene: an animated backdrop chosen by scene id + state, side
|
|
43
|
+
* tiles and a centre slot. The same ids render at mini size inside a DeviceRow.
|
|
44
|
+
*/
|
|
45
|
+
export declare function HeroScene({ scene, state, size, caption, power, controls, toneCentre, leftTiles, rightTiles, children, icon, className, ...params }: HeroSceneProps): ReactNode;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
/** One utility of a device: a button with an icon, a label and its current state. */
|
|
4
|
+
export interface HeroUtility {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly icon: LucideIcon;
|
|
7
|
+
readonly label: string;
|
|
8
|
+
/** The compact current state ("On", "1 low"); absent when there is none to show. */
|
|
9
|
+
readonly value?: string;
|
|
10
|
+
/** `warning` colours the value when the state wants attention. */
|
|
11
|
+
readonly tone?: "default" | "warning";
|
|
12
|
+
/** What the button opens or does, in one sentence. */
|
|
13
|
+
readonly tooltip: string;
|
|
14
|
+
/** A plain button: runs on press. */
|
|
15
|
+
readonly onPress?: () => void;
|
|
16
|
+
/** A button that opens a small panel; `close` dismisses it. Wins over `onPress`. */
|
|
17
|
+
readonly panel?: (close: () => void) => ReactNode;
|
|
18
|
+
/** Neither `onPress` nor `panel` and no hover state: shows the state only. */
|
|
19
|
+
readonly disabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface HeroUtilityGridProps {
|
|
22
|
+
readonly items: readonly HeroUtility[];
|
|
23
|
+
readonly className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The utility section of the hero card: one button per utility the device has,
|
|
27
|
+
* on a two-column grid (`heroUtilityLayout`), each with its own tooltip. No
|
|
28
|
+
* utility, no section.
|
|
29
|
+
*/
|
|
30
|
+
export declare function HeroUtilityGrid({ items, className }: HeroUtilityGridProps): ReactNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** How many of the two grid columns a utility button takes. */
|
|
2
|
+
export type HeroUtilitySpan = 1 | 2;
|
|
3
|
+
/**
|
|
4
|
+
* How `count` utility buttons lay out on the hero card's two-column grid: pairs
|
|
5
|
+
* share a row and an odd one out takes the last row whole, so no row has a hole
|
|
6
|
+
* (1 = full width, 2 = one row, 3 = two + one full width, 4 = 2x2, 5 = 2x2 + one
|
|
7
|
+
* full width). Zero buttons is an empty list: the section is not drawn.
|
|
8
|
+
* Pure, so another client can mirror it.
|
|
9
|
+
*/
|
|
10
|
+
export declare function heroUtilityLayout(count: number): readonly HeroUtilitySpan[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { SceneBackdrop, sparkPath } from "./backdrops";
|
|
2
|
+
export { DeviceRow, type DeviceRowProps } from "./device-row";
|
|
3
|
+
export { HeroCardA, type HeroCardAProps } from "./hero-card-a";
|
|
4
|
+
export { HeroProgressBar, HeroRowLine, HeroSegmented, type HeroProgressBarProps, type HeroRowLineProps, type HeroSegmentedProps } from "./hero-row";
|
|
5
|
+
export { HeroUtilityGrid, type HeroUtility, type HeroUtilityGridProps } from "./hero-utility-grid";
|
|
6
|
+
export { heroUtilityLayout, type HeroUtilitySpan } from "./hero-utility-layout";
|
|
7
|
+
export { HeroScene, HERO_SCENE_ICON, type HeroSceneProps, type HeroScenePower } from "./hero-scene";
|
|
8
|
+
export { resolveSceneVisual } from "./scene-map";
|
|
9
|
+
export { SCENES_WITH_ART } from "./scene-art";
|
|
10
|
+
export { HERO_SCENE_IDS, type BackdropKind, type HeroSceneId, type HeroSceneParams, type HeroSceneSpec, type SceneSpeed, type SceneTile, type SceneTone, type SceneVisual } from "./types";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { SceneArtProps } from "./scene-art";
|
|
3
|
+
/** The illustration of one home-family scene; `null` for a scene `scene-art.tsx` draws itself. */
|
|
4
|
+
export declare function HomeSceneArt({ scene, running, level, mode }: SceneArtProps): ReactNode;
|
|
5
|
+
export declare const HOME_SCENES_WITH_ART: readonly SceneArtProps["scene"][];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { HeroSceneId } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* The illustrated centre of a hero scene (layout A): the drum with clothes, the
|
|
5
|
+
* dishwasher's spray arm, the fountain, the feeder's auger. Drawn in theme tokens
|
|
6
|
+
* only: the machine is `surface` / `border`, the accent is `currentColor` (the scene's
|
|
7
|
+
* tone), and every motion is a transform or opacity keyframe that stops under
|
|
8
|
+
* `prefers-reduced-motion`. A still scene (`running: false`) draws the same picture with
|
|
9
|
+
* nothing moving — an empty drum, a settled water line.
|
|
10
|
+
*/
|
|
11
|
+
export interface SceneArtProps {
|
|
12
|
+
readonly scene: HeroSceneId;
|
|
13
|
+
readonly running: boolean;
|
|
14
|
+
/** 0..1 — the fountain's water level, the feeder's hopper fill. */
|
|
15
|
+
readonly level?: number;
|
|
16
|
+
/** What the scene is doing when the device says: a lock's or a door's side. */
|
|
17
|
+
readonly mode?: string | null;
|
|
18
|
+
}
|
|
19
|
+
/** The scene ids that have an illustration; every other scene keeps its icon in the centre. */
|
|
20
|
+
export declare const SCENES_WITH_ART: ReadonlySet<HeroSceneId>;
|
|
21
|
+
export declare function SceneArt({ scene, running, level, mode }: SceneArtProps): ReactNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HeroSceneSpec, SceneTone, SceneVisual } from "./types";
|
|
2
|
+
/** Scene id + state → the one background animation for that state. */
|
|
3
|
+
export declare function resolveSceneVisual(spec: HeroSceneSpec): SceneVisual;
|
|
4
|
+
export declare const TONE_CLASS: Readonly<Record<SceneTone, string>>;
|
|
5
|
+
/** A filled control in the scene's tone (a pressed segment): theme fill + its contrast colour. */
|
|
6
|
+
export declare const TONE_FILL: Readonly<Record<SceneTone, string>>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plain-data contract of the hero scene. A model (hero-layout cap) maps onto it
|
|
3
|
+
* 1:1: a scene id, a state string, a few numeric params, side tiles and facts.
|
|
4
|
+
* Nothing here is a component or a colour; tones are theme-token names.
|
|
5
|
+
*/
|
|
6
|
+
import { HERO_SCENES, type HeroSceneId } from "@dominevo/types";
|
|
7
|
+
/** Every scene a device hero (or row mini scene) can draw — the model's list, not a copy. */
|
|
8
|
+
export declare const HERO_SCENE_IDS: typeof HERO_SCENES;
|
|
9
|
+
export type { HeroSceneId };
|
|
10
|
+
/** Theme-token accent of a scene. Resolved to `text-<tone>`; particles use `currentColor`. */
|
|
11
|
+
export type SceneTone = "primary" | "info" | "success" | "warning" | "danger" | "muted" | "subtle";
|
|
12
|
+
export type SceneSpeed = "slow" | "normal" | "fast";
|
|
13
|
+
/** Optional knobs; every scene ignores the ones it has no use for. */
|
|
14
|
+
export interface HeroSceneParams {
|
|
15
|
+
/** 0..1 — cover position, timer progress, fan strength. */
|
|
16
|
+
readonly level?: number;
|
|
17
|
+
readonly speed?: SceneSpeed;
|
|
18
|
+
/** Heater (and any appliance) running on a timer: draws the timer track. */
|
|
19
|
+
readonly timer?: boolean;
|
|
20
|
+
/** sensor-sparkline: raw samples, scaled to the box. */
|
|
21
|
+
readonly points?: readonly number[];
|
|
22
|
+
/** Overrides the tone the scene derives from its state. */
|
|
23
|
+
readonly tone?: SceneTone;
|
|
24
|
+
}
|
|
25
|
+
/** The data a model hands over for one scene. */
|
|
26
|
+
export interface HeroSceneSpec extends HeroSceneParams {
|
|
27
|
+
readonly scene: HeroSceneId;
|
|
28
|
+
/** Scene-specific state (`ac`: cool|heat|dry|fan|auto|off; `washer`: run|idle|done|off; ...). */
|
|
29
|
+
readonly state?: string;
|
|
30
|
+
}
|
|
31
|
+
/** A label + value tile on the left or right of the scene (≤2 per side). */
|
|
32
|
+
export interface SceneTile {
|
|
33
|
+
readonly label: string;
|
|
34
|
+
readonly value: string;
|
|
35
|
+
/** Draws the value in a state tone (an appliance's end time in `warning`). */
|
|
36
|
+
readonly tone?: "success" | "warning" | "danger";
|
|
37
|
+
}
|
|
38
|
+
/** The visual a (scene, state) pair resolves to. */
|
|
39
|
+
export type BackdropKind = "none" | "airflow" | "rise" | "fall" | "drop" | "fan" | "drum" | "ripple" | "sweep" | "bars" | "breathe" | "slats" | "ring" | "spark" | "stream" | "orbit" | "heat" | "wire";
|
|
40
|
+
export interface SceneVisual {
|
|
41
|
+
readonly kind: BackdropKind;
|
|
42
|
+
readonly tone: SceneTone;
|
|
43
|
+
readonly speed: SceneSpeed;
|
|
44
|
+
/** The `ac` mode the airflow backdrop draws (only for `kind: 'airflow'`). */
|
|
45
|
+
readonly airflowMode?: "cool" | "heat" | "dry" | "auto" | "fan_only" | "off";
|
|
46
|
+
/** Nothing moves: the dim "idle / off" look. */
|
|
47
|
+
readonly dim: boolean;
|
|
48
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure helpers for the HLS playback quality selector.
|
|
3
|
+
*
|
|
4
|
+
* Intentionally decoupled from hls.js types so this module can be
|
|
5
|
+
* imported and tested without a DOM or MSE environment.
|
|
6
|
+
*/
|
|
7
|
+
import { type UiTextFn } from "../contexts/ui-text";
|
|
8
|
+
export interface QualityOption {
|
|
9
|
+
readonly value: number;
|
|
10
|
+
readonly label: string;
|
|
11
|
+
}
|
|
12
|
+
export interface HlsLevelInfo {
|
|
13
|
+
readonly height?: number;
|
|
14
|
+
readonly bitrate?: number;
|
|
15
|
+
readonly name?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Build a human-readable label for a single HLS level.
|
|
19
|
+
*
|
|
20
|
+
* Priority:
|
|
21
|
+
* 1. `name` (non-empty) → verbatim. The recorder stamps the master variant
|
|
22
|
+
* NAME with the recording profile (high/mid/low), and the VOD selector must
|
|
23
|
+
* match the live stream-profile selector's labels — the profile name wins
|
|
24
|
+
* over resolution/bitrate.
|
|
25
|
+
* 2. `height` (> 0) → e.g. "1080p"
|
|
26
|
+
* 3. `bitrate` (> 0) → e.g. "2500 kbps"
|
|
27
|
+
* 4. Fallback → "Level N" (1-based)
|
|
28
|
+
*/
|
|
29
|
+
export declare function levelLabel(level: HlsLevelInfo, index: number, t?: UiTextFn): string;
|
|
30
|
+
/**
|
|
31
|
+
* Build the full list of quality options for the selector overlay.
|
|
32
|
+
*
|
|
33
|
+
* Always starts with the Auto entry (`value: -1`), followed by one
|
|
34
|
+
* entry per available HLS level in manifest order.
|
|
35
|
+
*/
|
|
36
|
+
export declare function qualityOptions(levels: readonly HlsLevelInfo[], t?: UiTextFn): QualityOption[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HlsVideo — reusable HLS (VOD) `<video>` for recorded playback.
|
|
3
|
+
*
|
|
4
|
+
* The recorder serves SELF-CONTAINED per-segment fMP4 (each `.m4s` carries
|
|
5
|
+
* its own ftyp+moov) with reset timestamps and NO EXT-X-MAP. hls.js handles
|
|
6
|
+
* that shape; NATIVE Safari HLS rejects it (loads the first frame then stalls
|
|
7
|
+
* building the timeline → "could not load"). So hls.js is PREFERRED and native
|
|
8
|
+
* is a last-resort fallback only.
|
|
9
|
+
*
|
|
10
|
+
* The playback URL is served through the hub data-plane reverse-proxy
|
|
11
|
+
* (`/addon/<addonId>/...`) — same origin/cert as the admin-ui (no mixed
|
|
12
|
+
* content). The route is admin-gated: hls.js sends the stored admin Bearer via
|
|
13
|
+
* `xhrSetup`, and `withCredentials` lets the same-origin session cookie ride
|
|
14
|
+
* too (so the native fallback, which can't set a header, still authenticates).
|
|
15
|
+
*
|
|
16
|
+
* Data-agnostic: the caller fetches the manifest URL + supplies the auth token
|
|
17
|
+
* (ui-library never reaches into localStorage).
|
|
18
|
+
*
|
|
19
|
+
* Quality state is LIFTED to the caller via `onQualityOptions` / `selectedLevel`
|
|
20
|
+
* so the parent (StreamPanel) can render the selector in the header alongside
|
|
21
|
+
* the live stream selector, at the same position and with the same styling.
|
|
22
|
+
*/
|
|
23
|
+
import { type JSX } from "react";
|
|
24
|
+
import { type QualityOption } from "./hls-quality";
|
|
25
|
+
export interface HlsVideoProps {
|
|
26
|
+
/** Media URL (typically relative, through the hub data-plane) — an HLS
|
|
27
|
+
* master `.m3u8`, or a progressive `.mp4` when {@link format} says so. */
|
|
28
|
+
readonly url: string;
|
|
29
|
+
/**
|
|
30
|
+
* What {@link url} is. Absent means `hls` — every existing caller is
|
|
31
|
+
* unchanged by construction.
|
|
32
|
+
*
|
|
33
|
+
* `mp4` is the NATIVE-CLIP path (D549 22): a vendor addon fetched the
|
|
34
|
+
* camera's own file, muxed it once with `+faststart` and serves it with
|
|
35
|
+
* `Range`, so a plain `<video src>` seeks natively and hls.js is not
|
|
36
|
+
* involved at all — handing it an MP4 would have it parse the file as a
|
|
37
|
+
* manifest and fail. **Nothing is appended to the URL**: the hub's
|
|
38
|
+
* `/addon/<id>/<prefix>` proxy takes the same-origin session cookie, which
|
|
39
|
+
* is what the native-Safari branch below already relies on, so the URL is
|
|
40
|
+
* never a credential.
|
|
41
|
+
*/
|
|
42
|
+
readonly format?: "hls" | "mp4";
|
|
43
|
+
/** Bearer token for the admin-gated data-plane route (optional). */
|
|
44
|
+
readonly authToken?: string | null;
|
|
45
|
+
/** Poster painted until the first frame decodes (optional). */
|
|
46
|
+
readonly posterUrl?: string;
|
|
47
|
+
/** Auto-play once the manifest is parsed (default: true). */
|
|
48
|
+
readonly autoPlay?: boolean;
|
|
49
|
+
readonly className?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Called on MANIFEST_PARSED (and reset to `[]` on a new URL) with the
|
|
52
|
+
* full list of quality options (`qualityOptions(hls.levels)`). The caller
|
|
53
|
+
* renders the selector; this component owns only the hls instance.
|
|
54
|
+
* Emits `[]` when the manifest has ≤1 real level (no selector needed).
|
|
55
|
+
*/
|
|
56
|
+
readonly onQualityOptions?: (options: readonly QualityOption[]) => void;
|
|
57
|
+
/**
|
|
58
|
+
* The level index to apply to `hls.currentLevel`. `-1` = Auto/ABR
|
|
59
|
+
* (default). When this prop changes, the component sets `hls.currentLevel`
|
|
60
|
+
* immediately. Has no effect in the native HLS fallback path.
|
|
61
|
+
*/
|
|
62
|
+
readonly selectedLevel?: number;
|
|
63
|
+
}
|
|
64
|
+
export declare function HlsVideo({ url, format, authToken, posterUrl, autoPlay, className, onQualityOptions, selectedLevel }: HlsVideoProps): JSX.Element;
|