@dominevo/ui-library 0.0.0-stage → 0.1.1
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 +1371 -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-Bres0ZEA.cjs +1052 -0
- package/dist/SceneMonitorEditor-grGP7vRI.js +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 +51 -0
- package/dist/composites/charts/TimeSeriesChart.d.ts +59 -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 +55 -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 +15 -0
- package/dist/composites/device-card/connected/PrimaryTrend.d.ts +10 -0
- package/dist/composites/device-card/connected/ReadingHistory.d.ts +20 -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 +53 -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 +54 -0
- package/dist/composites/device-card/scenes/sensor/reading-colour.d.ts +32 -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 +131 -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 +108230 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +105060 -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/dominevo-theme.css +334 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface LiveBuffer<T> {
|
|
2
|
+
readonly entries: readonly T[];
|
|
3
|
+
/** Append one entry; oldest is evicted past `max`. */
|
|
4
|
+
readonly append: (entry: T) => void;
|
|
5
|
+
/** Replace all entries — used by Clear / scope-change resets. */
|
|
6
|
+
readonly reset: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useLiveBuffer<T>(max: number): LiveBuffer<T>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CompositionCustomizationRead, DeviceInfo } from "@dominevo/types";
|
|
2
|
+
import { type UseDeviceProxyTrpc } from "./use-device-proxy";
|
|
3
|
+
interface QueryFn<
|
|
4
|
+
I,
|
|
5
|
+
O
|
|
6
|
+
> {
|
|
7
|
+
query(input: I): Promise<O>;
|
|
8
|
+
}
|
|
9
|
+
/** The three reads the link lookup needs; a client without them shows no door row. */
|
|
10
|
+
export interface LockDoorLookupTrpc extends UseDeviceProxyTrpc {
|
|
11
|
+
readonly deviceManager: UseDeviceProxyTrpc["deviceManager"] & {
|
|
12
|
+
readonly getDevice: QueryFn<{
|
|
13
|
+
deviceId: number;
|
|
14
|
+
}, DeviceInfo | null>;
|
|
15
|
+
readonly listAll: QueryFn<{
|
|
16
|
+
addonId: string;
|
|
17
|
+
projection: "slim";
|
|
18
|
+
}, readonly DeviceInfo[]>;
|
|
19
|
+
};
|
|
20
|
+
readonly coreBlocks: {
|
|
21
|
+
readonly getCustomization: QueryFn<{
|
|
22
|
+
addonId: string;
|
|
23
|
+
stableId: string;
|
|
24
|
+
}, CompositionCustomizationRead>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export type LockDoorReading = "open" | "closed" | "unknown";
|
|
28
|
+
export interface LockDoorSensor {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly reading: LockDoorReading;
|
|
31
|
+
}
|
|
32
|
+
/** The linked door contact with its own reading, or `null` while unknown or when none is linked. */
|
|
33
|
+
export declare function useLockDoorSensor(trpc: UseDeviceProxyTrpc, deviceId: number): LockDoorSensor | null;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type LogWireEntry } from "../composites/log-history-paging";
|
|
2
|
+
export type LogHistoryLevel = "debug" | "info" | "warn" | "error";
|
|
3
|
+
/** The filters the SERVER applies; everything but paging. */
|
|
4
|
+
export interface LogHistoryQuery {
|
|
5
|
+
/** A log-destination addonId or `ring`; undefined = the server default. */
|
|
6
|
+
readonly source?: string;
|
|
7
|
+
readonly level: LogHistoryLevel;
|
|
8
|
+
readonly text?: string;
|
|
9
|
+
readonly tags?: Record<string, string | number>;
|
|
10
|
+
}
|
|
11
|
+
export type LogHistoryStatus = "idle" | "loading";
|
|
12
|
+
export interface LogHistory {
|
|
13
|
+
/** Newest first, as paged. */
|
|
14
|
+
readonly entries: readonly LogWireEntry[];
|
|
15
|
+
readonly status: LogHistoryStatus;
|
|
16
|
+
/** True when nothing older exists ("Beginning of logs"). */
|
|
17
|
+
readonly done: boolean;
|
|
18
|
+
/** Bytes scanned by the scan in flight (0 until its first slice answers). */
|
|
19
|
+
readonly scannedBytes: number;
|
|
20
|
+
/** The source that answered (the server may fall back to `ring`). */
|
|
21
|
+
readonly source: string | undefined;
|
|
22
|
+
readonly error: string | null;
|
|
23
|
+
readonly loadOlder: () => void;
|
|
24
|
+
readonly cancel: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function useLogHistory(query: LogHistoryQuery, limit: number): LogHistory;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type NameIndex } from "../composites/log-stream-names";
|
|
2
|
+
export interface LogNames {
|
|
3
|
+
/** null until the list answered: a row then shows the id, not a guess. */
|
|
4
|
+
readonly addons: NameIndex | null;
|
|
5
|
+
readonly devices: NameIndex | null;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Names for the integration and device columns: one addons list and one slim
|
|
9
|
+
* device list for the whole table (cached by the query client, the same keys
|
|
10
|
+
* the pickers use), each fetched only while its column is on screen.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useLogNames(want: {
|
|
13
|
+
readonly integration: boolean;
|
|
14
|
+
readonly device: boolean;
|
|
15
|
+
}): LogNames;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type LogColumnConfig, type LogColumnId, type LogColumnScope } from "../composites/log-stream-columns";
|
|
2
|
+
export interface LogStreamColumns {
|
|
3
|
+
readonly available: readonly LogColumnId[];
|
|
4
|
+
readonly visible: readonly LogColumnId[];
|
|
5
|
+
readonly setVisible: (id: LogColumnId, shown: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
/** The table's optional columns: what the code offers, what the viewer switched on or off. */
|
|
8
|
+
export declare function useLogStreamColumns(scope: LogColumnScope, config: LogColumnConfig | undefined): LogStreamColumns;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { NavigationActionEntry, NavigationActionId, NavigationFeatures, NavigationLightMode, NavigationStatus } from "@dominevo/types";
|
|
2
|
+
import { type UseDeviceProxyTrpc } from "./use-device-proxy";
|
|
3
|
+
export type NavigationDirection = "forward" | "left" | "right" | "spin";
|
|
4
|
+
/** The cadence the robot app drives at while a direction is held. */
|
|
5
|
+
export declare const NAVIGATION_DRIVE_INTERVAL_MS = 1e3;
|
|
6
|
+
export interface UseNavigationOptions {
|
|
7
|
+
readonly enabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface UseNavigationResult {
|
|
10
|
+
readonly features: NavigationFeatures | null;
|
|
11
|
+
readonly actions: readonly NavigationActionEntry[];
|
|
12
|
+
readonly status: NavigationStatus | null;
|
|
13
|
+
/** Start nudging in a direction at 1 Hz until `stopDrive`. */
|
|
14
|
+
readonly startDrive: (direction: NavigationDirection) => void;
|
|
15
|
+
readonly stopDrive: () => Promise<void>;
|
|
16
|
+
readonly runAction: (actionId: NavigationActionId) => Promise<void>;
|
|
17
|
+
readonly playSound: (soundId: number) => Promise<void>;
|
|
18
|
+
readonly setLightOn: (on: boolean) => Promise<void>;
|
|
19
|
+
readonly setLightMode: (mode: NavigationLightMode, level?: number) => Promise<void>;
|
|
20
|
+
readonly setLightLevel: (level: number) => Promise<void>;
|
|
21
|
+
readonly busy: boolean;
|
|
22
|
+
readonly error: string | null;
|
|
23
|
+
/** True while a direction is held. */
|
|
24
|
+
readonly driving: NavigationDirection | null;
|
|
25
|
+
}
|
|
26
|
+
export declare function useNavigation(trpc: UseDeviceProxyTrpc, deviceId: number, hookOptions?: UseNavigationOptions): UseNavigationResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** A command thunk, as `useDeviceCommand` and `reportedCommand` take it. */
|
|
2
|
+
export type OneShotThunk = () => PromiseLike<unknown> | undefined;
|
|
3
|
+
export interface OneShotCommand {
|
|
4
|
+
/** True from the tap until the command settles. */
|
|
5
|
+
readonly inFlight: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* `command`, wrapped to stay in flight until it settles — or `null` when a
|
|
8
|
+
* command is already in flight (the second tap of a double tap), in which
|
|
9
|
+
* case the caller sends nothing.
|
|
10
|
+
*/
|
|
11
|
+
readonly claim: (command: OneShotThunk) => OneShotThunk | null;
|
|
12
|
+
}
|
|
13
|
+
export declare function useOneShotCommand(): OneShotCommand;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export interface OwnsScroll<T extends HTMLElement> {
|
|
3
|
+
readonly ref: RefObject<T | null>;
|
|
4
|
+
/** True while the element's content is taller than the element: its parent bounds its height. */
|
|
5
|
+
readonly owns: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Whether a flexible region is really height-bounded by its parent.
|
|
9
|
+
*
|
|
10
|
+
* A region that scrolls inside itself (`overflow-y-auto overscroll-contain`) is
|
|
11
|
+
* right under a parent that gives it a height (a dialog body, a fixed-height
|
|
12
|
+
* panel) and wrong under one that does not: there it never has anything to
|
|
13
|
+
* scroll, yet it still swallows the wheel and the page behind it sticks. The
|
|
14
|
+
* region owns the scroll only while its content overflows its own box, which
|
|
15
|
+
* only happens when the parent bounds it — read back from the layout, so no
|
|
16
|
+
* caller has to say which case it is.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useOwnsScroll<T extends HTMLElement>(): OwnsScroll<T>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** The "All" option — one page holding every row. */
|
|
2
|
+
export declare const PAGE_SIZE_ALL = 0;
|
|
3
|
+
export interface PersistedPageSizeConfig {
|
|
4
|
+
/** localStorage key, or null for a choice that is not remembered. */
|
|
5
|
+
readonly storageKey: string | null;
|
|
6
|
+
/** The selectable sizes, in display order. May include `PAGE_SIZE_ALL`. */
|
|
7
|
+
readonly options: readonly number[];
|
|
8
|
+
/** The size before the viewer picks one. Replaced by `options[0]` if not an option. */
|
|
9
|
+
readonly defaultSize: number;
|
|
10
|
+
}
|
|
11
|
+
export type SetPageSize = (next: number) => void;
|
|
12
|
+
/** @returns `[size, setSize]`; `setSize` ignores a size that is not an option. */
|
|
13
|
+
export declare function usePersistedPageSize({ storageKey, options, defaultSize }: PersistedPageSizeConfig): readonly [number, SetPageSize];
|
|
14
|
+
/**
|
|
15
|
+
* The number of rows one page holds for a chosen size: "All" is every row
|
|
16
|
+
* (at least 1, so the pager arithmetic never divides by zero).
|
|
17
|
+
*/
|
|
18
|
+
export declare function effectivePageSize(size: number, totalItems: number): number;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { type UseDeviceProxyTrpc } from "./use-device-proxy";
|
|
2
|
+
/**
|
|
3
|
+
* Cardinal + intercardinal direction tokens. The hook translates them
|
|
4
|
+
* into normalised `(pan, tilt)` vectors before calling the underlying
|
|
5
|
+
* cap so the cap surface stays speed-vector-shaped.
|
|
6
|
+
*/
|
|
7
|
+
export type PTZDirection = "up" | "down" | "left" | "right" | "up-left" | "up-right" | "down-left" | "down-right";
|
|
8
|
+
/** The camera's idle-return behaviour: whether, and after how long. */
|
|
9
|
+
interface PTZHomeReturn {
|
|
10
|
+
readonly enabled: boolean;
|
|
11
|
+
readonly seconds: number;
|
|
12
|
+
}
|
|
13
|
+
/** Which preset `goHome` targets on this camera, and who decided it. */
|
|
14
|
+
interface PTZHomePreset {
|
|
15
|
+
readonly presetId: string | null;
|
|
16
|
+
readonly source: "operator" | "firmware" | "native" | "none";
|
|
17
|
+
}
|
|
18
|
+
interface PTZPreset {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly name: string;
|
|
21
|
+
/**
|
|
22
|
+
* The firmware function this id performs, or `null` for a stored position.
|
|
23
|
+
* A camera's reserved band shares the preset namespace: the dispensa camera
|
|
24
|
+
* returns `34 Back to origin`, `94 Remote reboot`, `95 Call OSD menu`
|
|
25
|
+
* alongside the operator's own.
|
|
26
|
+
*/
|
|
27
|
+
readonly fn: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the camera accepts a write on this id. Overwriting a reserved one
|
|
30
|
+
* is what produced `PUT .../presets/34 -> HTTP 500`, which reached the
|
|
31
|
+
* operator as a transport failure with no hint of the cause.
|
|
32
|
+
*/
|
|
33
|
+
readonly writable: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Per-camera PTZ availability descriptor returned by `ptz.getOptions`.
|
|
37
|
+
* Drives which controls the UI shows — preset save/delete is gated on
|
|
38
|
+
* `supportsPresets`, and the save button disables once `maxPresets`
|
|
39
|
+
* (when known) is reached.
|
|
40
|
+
*/
|
|
41
|
+
export interface PTZOptions {
|
|
42
|
+
readonly hasPan: boolean;
|
|
43
|
+
readonly hasTilt: boolean;
|
|
44
|
+
readonly hasZoom: boolean;
|
|
45
|
+
readonly supportsPresets: boolean;
|
|
46
|
+
readonly maxPresets?: number;
|
|
47
|
+
/** Whether the camera exposes a controllable autofocus toggle. */
|
|
48
|
+
readonly hasAutofocus: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Backwards-compatible alias for the trpc shape — historically the
|
|
52
|
+
* hook took its own narrow contract; the proxy generalisation
|
|
53
|
+
* supersedes that.
|
|
54
|
+
*/
|
|
55
|
+
export type PTZTrpcProxy = UseDeviceProxyTrpc;
|
|
56
|
+
export interface UsePTZOptions {
|
|
57
|
+
/** Default speed (0..1) for moves when the caller omits one. */
|
|
58
|
+
readonly defaultSpeed?: number;
|
|
59
|
+
/** Pulse duration (ms) for one-shot `move` calls. */
|
|
60
|
+
readonly pulseMs?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Gate the hook's network calls. When `false`, the initial preset
|
|
63
|
+
* refresh is skipped and every method becomes a no-op. Use to avoid
|
|
64
|
+
* "provider not available" errors on devices that don't advertise
|
|
65
|
+
* the `ptz` capability.
|
|
66
|
+
*/
|
|
67
|
+
readonly enabled?: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface UsePTZResult {
|
|
70
|
+
/** One-shot directional pulse. Stops itself after `pulseMs`. */
|
|
71
|
+
readonly move: (direction: PTZDirection, speed?: number) => Promise<void>;
|
|
72
|
+
/** Begin continuous motion in `direction` until `stopContinuous` is called. */
|
|
73
|
+
readonly startContinuous: (direction: PTZDirection, speed?: number) => Promise<void>;
|
|
74
|
+
/** Stop any ongoing continuous motion. Idempotent. */
|
|
75
|
+
readonly stopContinuous: () => Promise<void>;
|
|
76
|
+
/** Discrete zoom step (in or out). */
|
|
77
|
+
readonly zoom: (direction: "in" | "out", speed?: number) => Promise<void>;
|
|
78
|
+
/** Jump to the home preset (0 on most cameras). */
|
|
79
|
+
readonly goHome: () => Promise<void>;
|
|
80
|
+
/** Which preset `goHome` targets and who decided; `null` until loaded. */
|
|
81
|
+
readonly homePreset: PTZHomePreset | null;
|
|
82
|
+
/** Pin the home preset. `null` clears the operator's choice. */
|
|
83
|
+
readonly setHomePreset: (presetId: string | null) => Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Make where the head is pointing RIGHT NOW this camera's home. The natural
|
|
86
|
+
* gesture — aim, then say "here" — and the only one a camera whose home is
|
|
87
|
+
* not a preset can accept.
|
|
88
|
+
*/
|
|
89
|
+
readonly captureHomeHere: () => Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the camera returns home by itself when left idle, and after how
|
|
92
|
+
* long. `null` = it has no such behaviour. The two are ONE fact on the
|
|
93
|
+
* camera and are read and written together.
|
|
94
|
+
*/
|
|
95
|
+
readonly homeReturn: PTZHomeReturn | null;
|
|
96
|
+
readonly setHomeReturn: (enabled: boolean, seconds: number) => Promise<void>;
|
|
97
|
+
/** Jump to a named preset. */
|
|
98
|
+
readonly goToPreset: (presetId: string) => Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Save the camera's current position as a new preset. Picks the
|
|
101
|
+
* lowest unused numeric slot id, then refreshes the presets list.
|
|
102
|
+
* Resolves to the created preset id, or `undefined` on failure.
|
|
103
|
+
*/
|
|
104
|
+
readonly savePreset: (name: string) => Promise<string | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* Overwrite an EXISTING preset with the camera's current position, keeping
|
|
107
|
+
* its id and name. Provider-agnostic: reuses the real id the camera reported
|
|
108
|
+
* (via `getPtzPresets`), so it works regardless of the vendor's slot scheme.
|
|
109
|
+
*/
|
|
110
|
+
readonly updatePreset: (presetId: string) => Promise<void>;
|
|
111
|
+
/** Delete a preset by id, then refresh the presets list. */
|
|
112
|
+
readonly deletePreset: (presetId: string) => Promise<void>;
|
|
113
|
+
/** List of presets reported by the camera. Empty until first refresh. */
|
|
114
|
+
readonly presets: readonly PTZPreset[];
|
|
115
|
+
/** Force a refresh of the presets list. */
|
|
116
|
+
readonly refreshPresets: () => Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Per-camera PTZ availability descriptor, or null until the first
|
|
119
|
+
* `getOptions` refresh resolves (or on cameras without the cap).
|
|
120
|
+
*/
|
|
121
|
+
readonly options: PTZOptions | null;
|
|
122
|
+
/** True while a control call is in flight (any path). */
|
|
123
|
+
readonly busy: boolean;
|
|
124
|
+
/** Last error message from any cap call, or null. */
|
|
125
|
+
readonly error: string | null;
|
|
126
|
+
}
|
|
127
|
+
export declare function usePTZ(trpc: UseDeviceProxyTrpc, deviceId: number, hookOptions?: UsePTZOptions): UsePTZResult;
|
|
128
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type RowOperationState = {
|
|
2
|
+
readonly kind: "pending";
|
|
3
|
+
} | {
|
|
4
|
+
readonly kind: "failed";
|
|
5
|
+
readonly message: string;
|
|
6
|
+
};
|
|
7
|
+
export interface UseRowOperationsResult<K> {
|
|
8
|
+
/** Every row with a state — absent keys are idle. */
|
|
9
|
+
readonly states: ReadonlyMap<K, RowOperationState>;
|
|
10
|
+
readonly stateOf: (key: K) => RowOperationState | undefined;
|
|
11
|
+
readonly isPending: (key: K) => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Run `task` for `key`. Resolves `true` when it completed, `false` when it
|
|
14
|
+
* threw or when `key` was already pending (nothing was started). A failure
|
|
15
|
+
* is reported to `onError` and kept as the key's `failed` state.
|
|
16
|
+
*/
|
|
17
|
+
readonly run: (key: K, task: () => Promise<unknown>, onError?: (message: string) => void) => Promise<boolean>;
|
|
18
|
+
/** Forget a key's failure (the row goes back to idle). */
|
|
19
|
+
readonly clearFailure: (key: K) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Drop every state whose key is not in `keys` (the rows now on screen), and
|
|
22
|
+
* refuse to record a later failure for a key outside them: a row that was
|
|
23
|
+
* refetched away leaks nothing.
|
|
24
|
+
*/
|
|
25
|
+
readonly retain: (keys: ReadonlySet<K>) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare function errorMessageOf(error: unknown): string;
|
|
28
|
+
export declare function useRowOperations<K>(): UseRowOperationsResult<K>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { StationaryOverlayBox } from "@dominevo/types";
|
|
2
|
+
/**
|
|
3
|
+
* The ONE route this hook needs.
|
|
4
|
+
*
|
|
5
|
+
* Deliberately NOT the device proxy. The proxy exposes only the caps BOUND to
|
|
6
|
+
* a device, and `zone-analytics` is not one of them — on device 102 the
|
|
7
|
+
* bindings are `pipeline-analytics` and `motion-zones`. Reading the census
|
|
8
|
+
* through `dev?.zoneAnalytics?.…` therefore resolved to `undefined`, the hook
|
|
9
|
+
* returned an empty census, and the overlay drew nothing while reporting
|
|
10
|
+
* nothing: an unreachable cap was indistinguishable from an empty lot. The cap
|
|
11
|
+
* ROUTE is mounted system-wide and takes the `deviceId` as input, which is how
|
|
12
|
+
* every other caller reaches it.
|
|
13
|
+
*/
|
|
14
|
+
export interface UseStationaryOverlayTrpc {
|
|
15
|
+
readonly zoneAnalytics: {
|
|
16
|
+
readonly getCurrentSnapshot: {
|
|
17
|
+
readonly query: (input: {
|
|
18
|
+
deviceId: number;
|
|
19
|
+
}) => Promise<unknown>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
interface SnapshotStationary {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly className: string;
|
|
26
|
+
readonly bbox: {
|
|
27
|
+
readonly x: number;
|
|
28
|
+
readonly y: number;
|
|
29
|
+
readonly w: number;
|
|
30
|
+
readonly h: number;
|
|
31
|
+
};
|
|
32
|
+
readonly frameWidth: number;
|
|
33
|
+
readonly frameHeight: number;
|
|
34
|
+
readonly becameStationaryAt: number;
|
|
35
|
+
readonly label?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Normalise one census row against the frame it was measured in.
|
|
39
|
+
*
|
|
40
|
+
* A row with no frame dims is DROPPED, not drawn at 0,0: an entry whose own
|
|
41
|
+
* frame is unknown cannot be placed on this one, and a box pinned to the corner
|
|
42
|
+
* reads as a real detection in the wrong place.
|
|
43
|
+
*/
|
|
44
|
+
export declare function toStationaryOverlayBox(row: SnapshotStationary): StationaryOverlayBox | null;
|
|
45
|
+
export declare function useStationaryOverlay(trpc: UseStationaryOverlayTrpc, deviceId: number | null): readonly StationaryOverlayBox[] | undefined;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useSystemQuery / useSystemMutation — generic escape hatches over the
|
|
3
|
+
* unified `System` SDK class for tRPC calls that don't (yet) have a
|
|
4
|
+
* codegen'd named hook.
|
|
5
|
+
*
|
|
6
|
+
* Codegen'd hooks (see `../generated/system-hooks.ts`) cover every
|
|
7
|
+
* `scope: 'system'` capability method automatically; reach for these
|
|
8
|
+
* helpers when:
|
|
9
|
+
* 1. The call goes through a core (non-cap) router, or
|
|
10
|
+
* 2. You want to compose multiple cap calls into a single React
|
|
11
|
+
* Query bookkeeping unit (single staleTime, single retry policy).
|
|
12
|
+
*
|
|
13
|
+
* The query helper takes a `select(system) → () => Promise<T>` factory
|
|
14
|
+
* so the caller picks any tRPC procedure off the System namespaces.
|
|
15
|
+
* Inputs are passed via the closure — keeps deps explicit and avoids
|
|
16
|
+
* the React Query input-as-cache-key magic that surprises new readers.
|
|
17
|
+
*/
|
|
18
|
+
import { type QueryKey, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult } from "@tanstack/react-query";
|
|
19
|
+
import type { System } from "@dominevo/sdk";
|
|
20
|
+
/**
|
|
21
|
+
* `select` MUST return a thunk that, when invoked, performs the
|
|
22
|
+
* request. Two-step factory keeps the query-key + thunk identities
|
|
23
|
+
* stable between renders: the hook re-creates the thunk on every
|
|
24
|
+
* render (cheap), but React Query keys off `[queryKey]` only.
|
|
25
|
+
*/
|
|
26
|
+
export type SystemQuerySelector<TData> = (system: System) => () => Promise<TData>;
|
|
27
|
+
export type SystemMutationSelector<
|
|
28
|
+
TInput,
|
|
29
|
+
TData
|
|
30
|
+
> = (system: System) => (input: TInput) => Promise<TData>;
|
|
31
|
+
export declare function useSystemQuery<TData>(queryKey: QueryKey, select: SystemQuerySelector<TData>, opts?: Omit<UseQueryOptions<TData, Error, TData>, "queryKey" | "queryFn">): UseQueryResult<TData, Error>;
|
|
32
|
+
export declare function useSystemMutation<
|
|
33
|
+
TInput,
|
|
34
|
+
TData
|
|
35
|
+
>(select: SystemMutationSelector<TInput, TData>, opts?: Omit<UseMutationOptions<TData, Error, TInput>, "mutationFn">): UseMutationResult<TData, Error, TInput>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Marks a history entry an editor was opened on, so closing it can go back instead of stacking. */
|
|
2
|
+
export declare const FORM_OPEN_STATE_KEY = "dominevoFormOpen";
|
|
3
|
+
/** Router-made entries keep their `state` option under `usr`. */
|
|
4
|
+
export declare const FORM_OPEN_ROUTER_STATE: {
|
|
5
|
+
readonly dominevoFormOpen: true;
|
|
6
|
+
};
|
|
7
|
+
/** True when the current history entry was pushed by an editor opening. */
|
|
8
|
+
export declare function isFormOpenEntry(): boolean;
|
|
9
|
+
export type UrlWriteMode = "replace" | "push";
|
|
10
|
+
/**
|
|
11
|
+
* Several params in ONE history write. `push` adds an entry (marked as an
|
|
12
|
+
* editor-open entry) so Back returns to the previous view; `replace` rewrites
|
|
13
|
+
* the current one.
|
|
14
|
+
*/
|
|
15
|
+
export declare function writeUrlParams(changes: Readonly<Record<string, string | null>>, mode: UrlWriteMode): void;
|
|
16
|
+
/**
|
|
17
|
+
* One query param as React state. `null` means absent.
|
|
18
|
+
* Changing it replaces the URL without a navigation.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useUrlQueryParam(key: string): readonly [string | null, (next: string | null) => void];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Keys a combo may name. Extend this union to support a new key. */
|
|
2
|
+
export type HotkeyKey = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "escape" | "enter" | "/" | "?";
|
|
3
|
+
/** `mod` is Command on macOS and Ctrl everywhere else. */
|
|
4
|
+
export type HotkeyModifier = "mod" | "shift" | "alt";
|
|
5
|
+
/** `f`, `mod+f`, `mod+shift+k` — typed, so a typo does not compile. */
|
|
6
|
+
export type HotkeyCombo = HotkeyKey | `${HotkeyModifier}+${HotkeyKey}` | `${HotkeyModifier}+${HotkeyModifier}+${HotkeyKey}`;
|
|
7
|
+
export type HotkeyPlatform = "mac" | "other";
|
|
8
|
+
export interface ParsedCombo {
|
|
9
|
+
readonly mod: boolean;
|
|
10
|
+
readonly shift: boolean;
|
|
11
|
+
readonly alt: boolean;
|
|
12
|
+
readonly key: string;
|
|
13
|
+
}
|
|
14
|
+
/** The slice of a `KeyboardEvent` the matcher reads. */
|
|
15
|
+
export interface KeyEventLike {
|
|
16
|
+
readonly key: string;
|
|
17
|
+
readonly metaKey: boolean;
|
|
18
|
+
readonly ctrlKey: boolean;
|
|
19
|
+
readonly altKey: boolean;
|
|
20
|
+
readonly shiftKey: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function parseCombo(combo: HotkeyCombo): ParsedCombo;
|
|
23
|
+
export declare function detectPlatform(): HotkeyPlatform;
|
|
24
|
+
export declare function matchesCombo(event: KeyEventLike, combo: HotkeyCombo, platform: HotkeyPlatform): boolean;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type JSX, type ReactNode } from "react";
|
|
2
|
+
import { type HotkeyCombo, type HotkeyPlatform } from "./combo";
|
|
3
|
+
/** Returning `false` declines the event: nothing is prevented and the next binding is tried. */
|
|
4
|
+
export type HotkeyHandler = (event: KeyboardEvent) => void | boolean;
|
|
5
|
+
export interface UseHotkeyOptions {
|
|
6
|
+
/** Defaults to the enclosing `HotkeyScope`, else the page. */
|
|
7
|
+
readonly scope?: string;
|
|
8
|
+
readonly enabled?: boolean;
|
|
9
|
+
/** Default true — only when the handler did not decline. */
|
|
10
|
+
readonly preventDefault?: boolean;
|
|
11
|
+
/** Fire while typing in a field. Default: only combos that carry `mod`. */
|
|
12
|
+
readonly allowInInput?: boolean;
|
|
13
|
+
/** What the binding does, in the operator's words; shown by the read-only hotkey list. */
|
|
14
|
+
readonly label?: string;
|
|
15
|
+
}
|
|
16
|
+
/** One binding as the registry exposes it for display. */
|
|
17
|
+
export interface RegisteredHotkey {
|
|
18
|
+
readonly combo: HotkeyCombo;
|
|
19
|
+
readonly scope: string;
|
|
20
|
+
readonly label: string | null;
|
|
21
|
+
}
|
|
22
|
+
export declare const PAGE_SCOPE = "page";
|
|
23
|
+
/** Asked last, after the page: a global handler that yields to whatever the page registers. */
|
|
24
|
+
export declare const FALLBACK_SCOPE = "fallback";
|
|
25
|
+
export interface HotkeyProviderProps {
|
|
26
|
+
readonly children: ReactNode;
|
|
27
|
+
/** Override platform detection (tests). */
|
|
28
|
+
readonly platform?: HotkeyPlatform;
|
|
29
|
+
}
|
|
30
|
+
export declare function HotkeyProvider({ children, platform }: HotkeyProviderProps): JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* The bindings registered below the `HotkeyProvider` right now (read-only; there
|
|
33
|
+
* is no rebinding). Empty without a provider.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useRegisteredHotkeys(): readonly RegisteredHotkey[];
|
|
36
|
+
/**
|
|
37
|
+
* Bind a combo for the life of the component. Without a `HotkeyProvider` above
|
|
38
|
+
* it does nothing, so the browser keeps its own shortcut.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useHotkey(combo: HotkeyCombo, handler: HotkeyHandler, options?: UseHotkeyOptions): void;
|
|
41
|
+
export interface HotkeyScopeProps {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly children: ReactNode;
|
|
44
|
+
/** Default true. Turn off while the surface is closed. */
|
|
45
|
+
readonly enabled?: boolean;
|
|
46
|
+
/** Shadows every scope under it, the page included. Default false. */
|
|
47
|
+
readonly modal?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** Bindings made below this component belong to `id`; while enabled it is the topmost scope. */
|
|
50
|
+
export declare function HotkeyScope({ id, children, enabled, modal }: HotkeyScopeProps): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { HotkeyCombo, HotkeyKey, HotkeyModifier, HotkeyPlatform, KeyEventLike } from "./combo";
|
|
2
|
+
export { detectPlatform, matchesCombo, parseCombo } from "./combo";
|
|
3
|
+
export type { HotkeyHandler, HotkeyProviderProps, HotkeyScopeProps, RegisteredHotkey, UseHotkeyOptions } from "./hotkey-provider";
|
|
4
|
+
export { FALLBACK_SCOPE, HotkeyProvider, HotkeyScope, useHotkey, useRegisteredHotkeys } from "./hotkey-provider";
|
|
5
|
+
export type { UseSearchFieldHotkeyOptions } from "./use-search-field-hotkey";
|
|
6
|
+
export { useSearchFieldHotkey } from "./use-search-field-hotkey";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export interface UseSearchFieldHotkeyOptions {
|
|
3
|
+
/** Pass false to leave the browser's find alone for this field. Default true. */
|
|
4
|
+
readonly enabled?: boolean;
|
|
5
|
+
/** Only the app-level search passes `FALLBACK_SCOPE`: it yields to any field on the page. */
|
|
6
|
+
readonly scope?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Register a search field: ⌘F / Ctrl+F and ⌘K / Ctrl+K focus and select it.
|
|
10
|
+
* A field that is hidden or disabled declines, so the browser's find still runs.
|
|
11
|
+
* The library's search inputs call this themselves.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useSearchFieldHotkey(ref: RefObject<HTMLInputElement | null>, options?: UseSearchFieldHotkeyOptions): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translation core for the pages and widgets an addon ships.
|
|
3
|
+
*
|
|
4
|
+
* Serves the strings of an ADDON's own pages and widgets. The strings of
|
|
5
|
+
* ui-library's own components are served by `useUiText` in
|
|
6
|
+
* `../contexts/ui-text`; both follow the admin language (the admin sets
|
|
7
|
+
* `<html lang>` AND mounts `AdminUiTextProvider`).
|
|
8
|
+
*
|
|
9
|
+
* Why this is not i18next: an addon page is a Module Federation remote and
|
|
10
|
+
* i18next is NOT a shared singleton (`addon-admin-ui/vite.config.ts`), so a
|
|
11
|
+
* remote cannot reach the host's instance. This module lives in the ui-library,
|
|
12
|
+
* which IS the host-shared singleton, so every remote sees the same registry.
|
|
13
|
+
*
|
|
14
|
+
* Two seams keep call sites stable when the hub starts serving bundles
|
|
15
|
+
* (`translations.getBundle({ lang, ns })`):
|
|
16
|
+
* - bundles enter ONLY through {@link registerAddonBundle}; a call site never
|
|
17
|
+
* imports a JSON file, it asks `useAddonT(ns)`;
|
|
18
|
+
* - the language comes ONLY from {@link currentAddonLanguage}, which reads the
|
|
19
|
+
* `lang` attribute the host admin sets on `<html>` (and falls back to the
|
|
20
|
+
* browser language for a host-less page such as the agent dashboard).
|
|
21
|
+
*/
|
|
22
|
+
/** A translation bundle: nested keys, leaves are message strings. */
|
|
23
|
+
export interface TranslationTree {
|
|
24
|
+
readonly [key: string]: string | TranslationTree;
|
|
25
|
+
}
|
|
26
|
+
/** Values interpolated into `{{name}}` placeholders; a numeric `count` also picks the plural form. */
|
|
27
|
+
export type TranslationVars = Readonly<Record<string, string | number>>;
|
|
28
|
+
/** `status.ok_one` / `status.ok_other` are addressed as `status.ok`. */
|
|
29
|
+
type StripPlural<K extends string> = K extends `${infer Base}_${"zero" | "one" | "two" | "few" | "many" | "other"}` ? Base : K;
|
|
30
|
+
/** Every dotted key a bundle answers, plural variants collapsed to their base. */
|
|
31
|
+
export type TranslationKey<T> = { [K in keyof T & string]: T[K] extends string ? StripPlural<K> : `${K}.${TranslationKey<T[K]>}` }[keyof T & string];
|
|
32
|
+
/** Lower-cased primary subtag: `it-IT` -> `it`. */
|
|
33
|
+
export declare function normalizeLanguage(raw: string | null | undefined): string;
|
|
34
|
+
/** The language the host admin shows, else the browser's, else English. */
|
|
35
|
+
export declare function currentAddonLanguage(): string;
|
|
36
|
+
/** Install (or replace) one language of one namespace. Subscribers re-render. */
|
|
37
|
+
export declare function registerAddonBundle(ns: string, lang: string, tree: TranslationTree): void;
|
|
38
|
+
/** Subscribe to bundle changes AND to the host switching language. */
|
|
39
|
+
export declare function subscribeAddonI18n(listener: () => void): () => void;
|
|
40
|
+
/** Changes whenever a rendered string could differ (new bundle, new language). */
|
|
41
|
+
export declare function addonI18nSnapshot(): string;
|
|
42
|
+
/** Replace `{{name}}` placeholders; an unknown name is left visible. */
|
|
43
|
+
export declare function interpolate(message: string, vars: TranslationVars | undefined): string;
|
|
44
|
+
/** Resolve a key in `lang`, then in English; an unknown key answers itself. */
|
|
45
|
+
export declare function translateAddonKey(ns: string, lang: string, key: string, vars?: TranslationVars): string;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { currentAddonLanguage, normalizeLanguage, registerAddonBundle, type TranslationKey, type TranslationTree, type TranslationVars, translateAddonKey } from "./addon-i18n";
|
|
2
|
+
export { type AddonBundles, type AddonI18n, type AddonT, type AddonTFunction, type AddonTransProps, createAddonI18n, renderMarkup, useAddonT } from "./use-addon-t";
|