@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,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Role display defaults — the operator's per-ROLE icon/unit/precision
|
|
3
|
+
* (`deviceManager.getRoleDisplayDefaults`), published once at the top of a
|
|
4
|
+
* surface and read by every row that draws a device.
|
|
5
|
+
*
|
|
6
|
+
* Why a context and not a hook per row: `deviceLeadIcon` is called in the row
|
|
7
|
+
* header and in the accessory accordion, both of which render in tests and
|
|
8
|
+
* in surfaces with no tRPC provider (a standalone `<DeviceItem>`). A generated
|
|
9
|
+
* query hook throws outside its provider; a context degrades to "no defaults"
|
|
10
|
+
* and the icon falls through to the built-in role glyph — which is exactly
|
|
11
|
+
* what the resolution order says happens when there is no default.
|
|
12
|
+
*
|
|
13
|
+
* `RoleDisplayDefaultsFromServer` is the one component that calls the query
|
|
14
|
+
* hook; mount it once inside `<trpc.Provider>` (the admin app does, in
|
|
15
|
+
* `App.tsx`) and every list below it resolves the operator's role icon.
|
|
16
|
+
*/
|
|
17
|
+
import type { RoleDisplayDefault } from "@dominevo/types";
|
|
18
|
+
import { type ReactNode } from "react";
|
|
19
|
+
/** `role string → default`. Absent role = no default. */
|
|
20
|
+
export type RoleDisplayDefaults = Readonly<Record<string, RoleDisplayDefault>>;
|
|
21
|
+
export interface RoleDisplayDefaultsProviderProps {
|
|
22
|
+
readonly value: RoleDisplayDefaults;
|
|
23
|
+
readonly children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare function RoleDisplayDefaultsProvider({ value, children }: RoleDisplayDefaultsProviderProps): ReactNode;
|
|
26
|
+
/** The defaults published by the nearest provider — an empty record outside
|
|
27
|
+
* one, never `undefined`, so a caller can index it without a guard. */
|
|
28
|
+
export declare function useRoleDisplayDefaults(): RoleDisplayDefaults;
|
|
29
|
+
export interface RoleDisplayDefaultsFromServerProps {
|
|
30
|
+
readonly children: ReactNode;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Reads the defaults from the hub and publishes them. Until the query lands
|
|
34
|
+
* the children see no defaults — the built-in role glyph, which is what they
|
|
35
|
+
* would see with no operator default at all, so nothing flashes wrong.
|
|
36
|
+
*/
|
|
37
|
+
export declare function RoleDisplayDefaultsFromServer({ children }: RoleDisplayDefaultsFromServerProps): ReactNode;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Row models (`heroLayout.getRowModels`, D1023) read ONCE per rendered list: the
|
|
3
|
+
* list publishes the ids of the rows it draws, and every row of the list observes
|
|
4
|
+
* the SAME query (one cache entry, one request) and reads its own entry. A row
|
|
5
|
+
* outside a provider (or not in its ids) asks for itself.
|
|
6
|
+
*
|
|
7
|
+
* Each row observes the query itself rather than reading a value the provider
|
|
8
|
+
* passes down: an answer then re-renders the rows that observe it directly.
|
|
9
|
+
*
|
|
10
|
+
* Live refresh: a row re-reads when one of its device's slices pushes, but every
|
|
11
|
+
* request is throttled to one refetch per `ROW_MODEL_REFRESH_MS`, so a list of
|
|
12
|
+
* chatty sensors costs one query per window, not one per push.
|
|
13
|
+
*/
|
|
14
|
+
import type { HeroRowModel } from "@dominevo/types";
|
|
15
|
+
import { type ReactNode } from "react";
|
|
16
|
+
/** At most one row-model refetch per this window, however many slices push. */
|
|
17
|
+
export declare const ROW_MODEL_REFRESH_MS = 2e3;
|
|
18
|
+
/** Where a row's model stands: unanswered, answered with nothing, or answered. */
|
|
19
|
+
export type RowModelStage = {
|
|
20
|
+
readonly status: "pending";
|
|
21
|
+
} | {
|
|
22
|
+
readonly status: "absent";
|
|
23
|
+
} | {
|
|
24
|
+
readonly status: "ok";
|
|
25
|
+
readonly row: HeroRowModel;
|
|
26
|
+
};
|
|
27
|
+
export interface RowModelHandle {
|
|
28
|
+
readonly stage: RowModelStage;
|
|
29
|
+
/** Re-read now (after a write). */
|
|
30
|
+
readonly refetch: () => Promise<unknown>;
|
|
31
|
+
}
|
|
32
|
+
export interface RowModelsProviderProps {
|
|
33
|
+
/** The devices the list draws now (the visible page, with their accessories). */
|
|
34
|
+
readonly deviceIds: readonly number[];
|
|
35
|
+
readonly children: ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export declare function RowModelsProvider({ deviceIds, children }: RowModelsProviderProps): ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* The row model of one device: its entry in the list's shared query when the list
|
|
40
|
+
* carries it, else a query of its own. Re-read (throttled) when the device's slices push.
|
|
41
|
+
*/
|
|
42
|
+
export declare function useRowModel(deviceId: number): RowModelHandle;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type SwipeActionsState } from "../../primitives/swipe-actions";
|
|
3
|
+
import type { DeviceItemDevice } from "./helpers";
|
|
4
|
+
export interface DeviceRowSwipeTrayProps {
|
|
5
|
+
readonly swipe: SwipeActionsState;
|
|
6
|
+
readonly device: DeviceItemDevice;
|
|
7
|
+
/** The row's label, for the tray's accessible name. */
|
|
8
|
+
readonly rowLabel: string;
|
|
9
|
+
readonly onOpenPage: ((deviceId: number) => void) | null;
|
|
10
|
+
/** Called only after the operator confirms. */
|
|
11
|
+
readonly onDelete: ((device: DeviceItemDevice) => void) | null;
|
|
12
|
+
/** The device's most important action; shown first. */
|
|
13
|
+
readonly lead?: ReactNode;
|
|
14
|
+
/** The remaining controls; shown last. */
|
|
15
|
+
readonly rest?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function DeviceRowSwipeTray(props: DeviceRowSwipeTrayProps): ReactNode;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status indicator dot — parity with the viewer's camera status dot.
|
|
3
|
+
* Pure-render atom; no fetches, no internal state (the row resolves the
|
|
4
|
+
* recording-aware status and passes it in).
|
|
5
|
+
*
|
|
6
|
+
* Colour by fixed priority (the row resolves which one applies):
|
|
7
|
+
* • disabled → black (+ ring so it stays visible) — soft-disabled.
|
|
8
|
+
* • offline → grey — not disabled, not reachable.
|
|
9
|
+
* • recording-continuous → red — online + always-on recording.
|
|
10
|
+
* • recording-events → blue — online + on-motion recording.
|
|
11
|
+
* • online → green — online, recording off.
|
|
12
|
+
*
|
|
13
|
+
* The "alive" states (online + recording) pulse; offline + disabled are static.
|
|
14
|
+
*
|
|
15
|
+
* The online dot carries no tooltip — a reachable device is not labelled
|
|
16
|
+
* "Online" anywhere; only the other states name themselves.
|
|
17
|
+
*
|
|
18
|
+
* When `status === 'offline'` and a `lastChangedAt` (ms epoch of the last
|
|
19
|
+
* online→offline transition) is supplied, the hover tooltip is enriched to
|
|
20
|
+
* "Offline · last seen Xm ago".
|
|
21
|
+
*/
|
|
22
|
+
import type { ReactNode } from "react";
|
|
23
|
+
export type StatusDotStatus = "online" | "offline" | "disabled" | "recording-continuous" | "recording-events";
|
|
24
|
+
export interface StatusDotProps {
|
|
25
|
+
readonly status: StatusDotStatus;
|
|
26
|
+
/** Ms epoch of the last online→offline transition. Only used to enrich
|
|
27
|
+
* the tooltip when `status === 'offline'`. */
|
|
28
|
+
readonly lastChangedAt?: number | null;
|
|
29
|
+
}
|
|
30
|
+
export declare function StatusDot({ status, lastChangedAt }: StatusDotProps): ReactNode;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DeviceAdminLink } from "@dominevo/types";
|
|
2
|
+
import type { UseDeviceProxyTrpc } from "../../hooks/use-device-proxy";
|
|
3
|
+
/**
|
|
4
|
+
* Resolve the link, or null, applying every gate. Split out so the row button
|
|
5
|
+
* and the detail-header button share ONE decision — two copies of a four-state
|
|
6
|
+
* gate is how the two surfaces end up disagreeing about the same device.
|
|
7
|
+
*
|
|
8
|
+
* Asked through the DEVICE PROXY (`cap.getAdminLink`), not through the
|
|
9
|
+
* generated tRPC hook. The generated hook reads ui-library's own tRPC react
|
|
10
|
+
* context, which the device row does not have and must not require: the row
|
|
11
|
+
* takes its `trpc` as a PROP precisely so a caller can render it against a
|
|
12
|
+
* different client. Wiring the generated hook in here turned 120 existing
|
|
13
|
+
* device-item tests red with "Unable to find tRPC Context" — and would have
|
|
14
|
+
* done the same to any embedding that does not sit under ui-library's provider.
|
|
15
|
+
*
|
|
16
|
+
* One read per (device, binding). The answer is a configured address: it
|
|
17
|
+
* changes when an operator edits a connection, which respawns the runner and
|
|
18
|
+
* re-resolves the proxy anyway.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDeviceAdminLink(trpc: UseDeviceProxyTrpc, deviceId: number): DeviceAdminLink | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface DeviceBatchActionsBarProps {
|
|
3
|
+
readonly selectedIds: ReadonlySet<number>;
|
|
4
|
+
readonly onClear: () => void;
|
|
5
|
+
readonly remove: (input: {
|
|
6
|
+
deviceId: number;
|
|
7
|
+
}) => void;
|
|
8
|
+
readonly disable: (input: {
|
|
9
|
+
deviceId: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
readonly enable: (input: {
|
|
12
|
+
deviceId: number;
|
|
13
|
+
}) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function DeviceBatchActionsBar(props: DeviceBatchActionsBarProps): ReactNode;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface DeviceBatchToolbarProps {
|
|
3
|
+
readonly selectedIds: ReadonlySet<number>;
|
|
4
|
+
readonly onClear: () => void;
|
|
5
|
+
readonly remove: (input: {
|
|
6
|
+
deviceId: number;
|
|
7
|
+
}) => void;
|
|
8
|
+
readonly disable: (input: {
|
|
9
|
+
deviceId: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
readonly enable: (input: {
|
|
12
|
+
deviceId: number;
|
|
13
|
+
}) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function DeviceBatchToolbar({ selectedIds, onClear, remove, disable, enable }: DeviceBatchToolbarProps): ReactNode;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Device-mode column model: a fixed catalog, a per-context subset matrix,
|
|
3
|
+
* a responsive priority, and a priority-derived breakpoint mapping. Each
|
|
4
|
+
* consumer declares its `TableContext`; the table renders only the columns
|
|
5
|
+
* that context enables, in catalog order, hiding the optional ones as the
|
|
6
|
+
* viewport narrows.
|
|
7
|
+
*
|
|
8
|
+
* The catalog is intentionally device-mode only. Generic-mode (integration
|
|
9
|
+
* rows) keeps its own `DeviceListColumn[]` defs — reconciled in a later phase.
|
|
10
|
+
*
|
|
11
|
+
* ── Responsive convention (single source of truth) ────────────────────────
|
|
12
|
+
* LOWER priority number = MORE important = hidden at a NARROWER width (kept
|
|
13
|
+
* longest). So as the viewport shrinks the HIGHEST-priority-number column
|
|
14
|
+
* drops first.
|
|
15
|
+
*
|
|
16
|
+
* name (0) — never hidden; pinned left from `md` up (see
|
|
17
|
+
* `NAME_COLUMN_PIN_CLASS`), flexible and shown in
|
|
18
|
+
* full below it
|
|
19
|
+
* previewActions (1) — never hidden; carries the live control + status dot
|
|
20
|
+
* icon (2) — integration badge; rendered INSIDE the name cell,
|
|
21
|
+
* not a standalone column, so it has no breakpoint
|
|
22
|
+
* features (3) — optional; hidden below `md` (kept longer)
|
|
23
|
+
* type (4) — optional; hidden below `lg`
|
|
24
|
+
* manufacturer (5) — optional; hidden below `xl` (drops FIRST,
|
|
25
|
+
* wide-screen-only hardware/identity column)
|
|
26
|
+
*
|
|
27
|
+
* `COLUMN_BREAKPOINT_CLASS` derives ONE Tailwind visibility class per id and
|
|
28
|
+
* is the single source used by BOTH the `<th>` and the `<td>`, so a hidden
|
|
29
|
+
* column folds header + cell in lock-step. The drop order is therefore:
|
|
30
|
+
* `manufacturer` first (below `xl`), then `type` (below `lg`), then
|
|
31
|
+
* `features` (below `md`) — matching the priority numbers above.
|
|
32
|
+
*/
|
|
33
|
+
/** Fixed device-mode column catalog, in render order. `name` is always first.
|
|
34
|
+
* `manufacturer` sits after `type` — a wide-screen-only hardware/identity
|
|
35
|
+
* column (manufacturer · model, full metadata in a tooltip). */
|
|
36
|
+
export declare const DEVICE_COLUMNS: readonly ["name", "icon", "type", "manufacturer", "features", "previewActions"];
|
|
37
|
+
export type DeviceColumnId = (typeof DEVICE_COLUMNS)[number];
|
|
38
|
+
/**
|
|
39
|
+
* The places a device table is rendered; each declares its column subset.
|
|
40
|
+
*
|
|
41
|
+
* Device-detail CHILDREN are deliberately NOT a table context: they render as
|
|
42
|
+
* a stack of `<DeviceItem variant="minimal">` cards (see `ChildrenList`), not
|
|
43
|
+
* through this table, so no `device-children` context exists.
|
|
44
|
+
*/
|
|
45
|
+
export type TableContext = "devices" | "integration-detail";
|
|
46
|
+
export declare function columnsForContext(ctx: TableContext): readonly DeviceColumnId[];
|
|
47
|
+
/**
|
|
48
|
+
* Lower number = higher priority (kept longest as width shrinks). `name` = 0
|
|
49
|
+
* (never dropped); `previewActions` = 1 (always visible). The optional
|
|
50
|
+
* columns drop in REVERSE priority order as width shrinks — highest number
|
|
51
|
+
* (`type`) hides first, then `features`. `icon` is a name-cell badge, not a
|
|
52
|
+
* standalone column. See `COLUMN_BREAKPOINT_CLASS` for the derived classes.
|
|
53
|
+
*/
|
|
54
|
+
export declare const COLUMN_PRIORITY: Record<DeviceColumnId, number>;
|
|
55
|
+
/**
|
|
56
|
+
* Priority-derived Tailwind visibility class per column. Used by BOTH the
|
|
57
|
+
* `<th>` and the `<td>` (single source → header + cell stay in lock-step).
|
|
58
|
+
*
|
|
59
|
+
* - `name` / `previewActions`: empty string — never hidden (always visible).
|
|
60
|
+
* - `icon`: empty string — rendered inside the name cell, no standalone cell.
|
|
61
|
+
* - `features`: `hidden md:table-cell` — visible from `md` up (kept longer).
|
|
62
|
+
* - `type`: `hidden lg:table-cell` — visible only from `lg` up.
|
|
63
|
+
* - `manufacturer`: `hidden xl:table-cell` — visible only from `xl` up (drops
|
|
64
|
+
* first).
|
|
65
|
+
*
|
|
66
|
+
* Drop order as the viewport narrows therefore follows the priority numbers:
|
|
67
|
+
* `manufacturer` (5) disappears below `xl`, then `type` (4) below `lg`, then
|
|
68
|
+
* `features` (3) below `md`.
|
|
69
|
+
*/
|
|
70
|
+
export declare const COLUMN_BREAKPOINT_CLASS: Record<DeviceColumnId, string>;
|
|
71
|
+
/**
|
|
72
|
+
* ── The NAME column pin ───────────────────────────────────────────────────
|
|
73
|
+
*
|
|
74
|
+
* A sticky first column earns its keep only where the remaining columns still
|
|
75
|
+
* fit BESIDE it. Below `md` every optional column is folded away, the table is
|
|
76
|
+
* NAME + the controls cell and it does not scroll sideways at all (see below),
|
|
77
|
+
* so there is nothing to pin against. The pin starts at `md`, the width at
|
|
78
|
+
* which `features` returns and a column exists to scroll under it.
|
|
79
|
+
*/
|
|
80
|
+
export declare const NAME_COLUMN_PIN_BREAKPOINT: "md";
|
|
81
|
+
/** Pin classes for the NAME `<th>`/`<td>` — never unconditional. */
|
|
82
|
+
export declare const NAME_COLUMN_PIN_CLASS: "md:sticky md:left-0 md:z-[1]";
|
|
83
|
+
/**
|
|
84
|
+
* ── Below `md`: a row is its name, its main control and its dot ───────────
|
|
85
|
+
*
|
|
86
|
+
* On a phone the table is NAME + the controls cell and NEVER scrolls sideways.
|
|
87
|
+
* NAME is the flexible column (`w-full`): it takes what the controls leave and
|
|
88
|
+
* shows the device name in FULL, wrapping to a second line when it must — a
|
|
89
|
+
* name is never cut (`DeviceItemHeader fullNameBelowMd`). The controls cell is
|
|
90
|
+
* one nowrap line holding the row's ONE main control and the status dot; the
|
|
91
|
+
* row's other actions live in its swipe tray (`DeviceRowSwipeTray`), so the
|
|
92
|
+
* cell stays narrow enough for the name to keep a readable width
|
|
93
|
+
* (`min-w-[6.5rem]` is the floor).
|
|
94
|
+
*
|
|
95
|
+
* From `md` up the fixed `w-64` width, the one-line truncated name, the pin
|
|
96
|
+
* and the inline actions return.
|
|
97
|
+
*/
|
|
98
|
+
export declare const NAME_COLUMN_TRUNCATE_BREAKPOINT: "md";
|
|
99
|
+
/**
|
|
100
|
+
* NAME column width: flexible below `md` (see above), a fixed capped width from
|
|
101
|
+
* `md` up ([D43]). One constant for the `<th>` and the `<td>`, so they cannot drift.
|
|
102
|
+
*/
|
|
103
|
+
export declare const NAME_COLUMN_WIDTH_CLASS: "w-full min-w-[6.5rem] md:w-64 md:max-w-[16rem]";
|
|
104
|
+
/**
|
|
105
|
+
* The controls cell is one line at every width. It must never wrap: a wrapping
|
|
106
|
+
* cluster stacks its controls one per line and the row grows to several times
|
|
107
|
+
* its height on a phone.
|
|
108
|
+
*/
|
|
109
|
+
export declare const PREVIEW_CELL_CLASS: "whitespace-nowrap";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* resolveDeviceIntegration — the ONE answer to "which integration does this
|
|
3
|
+
* device belong to".
|
|
4
|
+
*
|
|
5
|
+
* A device row carries two different ids:
|
|
6
|
+
* - `integrationId` — the integration that CREATED it (`IntegrationWithState.id`).
|
|
7
|
+
* - `addonId` — the addon that owns and SERVES it.
|
|
8
|
+
*
|
|
9
|
+
* They can differ. A composed device (D659) is created under the "Blocks"
|
|
10
|
+
* integration (`int_0024`, whose own `addonId` is `core-blocks`) but is
|
|
11
|
+
* served by the `composer` addon, so its row reads `addonId: 'composer'`.
|
|
12
|
+
* Resolving by `addonId` put it under no integration at all: the Devices
|
|
13
|
+
* filter, the Integration page's list, the device header and the orphan box
|
|
14
|
+
* each asked the question their own way, and every one of them got it wrong.
|
|
15
|
+
*
|
|
16
|
+
* The rule:
|
|
17
|
+
* 1. `integrationId` present ⇒ it is authoritative. The device belongs to
|
|
18
|
+
* the integration with that `id`, or — when no registered integration has
|
|
19
|
+
* it — to none (orphan), WHATEVER its `addonId` says.
|
|
20
|
+
* 2. No `integrationId` (legacy rows) ⇒ the `addonId` IS the integration
|
|
21
|
+
* link: the device belongs to the first integration whose `addonId`
|
|
22
|
+
* matches, or is orphan when none does.
|
|
23
|
+
* 3. A row that names neither is `unlinked` — it points at nothing, so it
|
|
24
|
+
* cannot be orphaned by a missing integration.
|
|
25
|
+
*
|
|
26
|
+
* And the load-bearing case: `integrations === null | undefined` means the
|
|
27
|
+
* integrations query has NOT ANSWERED. That is `unknown`, never `orphan` —
|
|
28
|
+
* an unanswered list is not an empty one (D315), and classifying against it
|
|
29
|
+
* branded every device orphan for seconds on a slow server (2026-08-18).
|
|
30
|
+
*/
|
|
31
|
+
/** The two fields of a device row the rule reads. */
|
|
32
|
+
export interface DeviceIntegrationLink {
|
|
33
|
+
readonly addonId?: string | null;
|
|
34
|
+
readonly integrationId?: string | null;
|
|
35
|
+
}
|
|
36
|
+
/** The two fields of an `integrations.list` row the rule reads. */
|
|
37
|
+
export interface DeviceIntegrationRef {
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly addonId: string;
|
|
40
|
+
}
|
|
41
|
+
export type DeviceIntegrationResolution<I extends DeviceIntegrationRef = DeviceIntegrationRef> = {
|
|
42
|
+
readonly kind: "resolved";
|
|
43
|
+
readonly integration: I;
|
|
44
|
+
} | {
|
|
45
|
+
readonly kind: "orphan";
|
|
46
|
+
} | {
|
|
47
|
+
readonly kind: "unlinked";
|
|
48
|
+
} | {
|
|
49
|
+
readonly kind: "unknown";
|
|
50
|
+
};
|
|
51
|
+
export type DeviceIntegrationResolver<I extends DeviceIntegrationRef = DeviceIntegrationRef> = (device: DeviceIntegrationLink) => DeviceIntegrationResolution<I>;
|
|
52
|
+
export declare function resolveDeviceIntegration<I extends DeviceIntegrationRef>(device: DeviceIntegrationLink, integrations: readonly I[] | null | undefined): DeviceIntegrationResolution<I>;
|
|
53
|
+
/**
|
|
54
|
+
* The rule itself, prepared once over a list for per-row use on a large
|
|
55
|
+
* fleet (two map lookups per row, not two scans). `resolveDeviceIntegration`
|
|
56
|
+
* is this, applied to one device; `<DeviceList integrationOf>` takes the
|
|
57
|
+
* returned resolver.
|
|
58
|
+
*/
|
|
59
|
+
export declare function deviceIntegrationResolver<I extends DeviceIntegrationRef>(integrations: readonly I[] | null | undefined): DeviceIntegrationResolver<I>;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { UseDeviceProxyTrpc } from "../../hooks/use-device-proxy";
|
|
3
|
+
import type { RowOperationState } from "../../hooks/use-row-operations";
|
|
4
|
+
import type { DeviceItemDevice, DeviceItemParent } from "../device-item/helpers";
|
|
5
|
+
import { type TableContext } from "./columns";
|
|
6
|
+
import type { MultiSelectOption } from "./multi-select";
|
|
7
|
+
import type { DeviceIntegrationResolution, DeviceIntegrationResolver } from "./device-integration";
|
|
8
|
+
/** One chip of the integration filter. `id` is the INTEGRATION id
|
|
9
|
+
* (`IntegrationWithState.id`), matched against `integrationOf(device)` —
|
|
10
|
+
* never a device's `addonId` (a composed device is served by `composer` but
|
|
11
|
+
* belongs to the "Blocks" integration, D659). */
|
|
12
|
+
export interface DeviceListIntegrationOption {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly icon?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/** Kept as a source-compatible name for callers compiled against the old
|
|
18
|
+
* addon-keyed filter API. The values are integration ids now. */
|
|
19
|
+
export type DeviceListAddonOption = DeviceListIntegrationOption;
|
|
20
|
+
export type DeviceListIntegrationIconResolver = (device: DeviceItemDevice, integration: DeviceIntegrationResolution) => ReactNode | null;
|
|
21
|
+
export interface DeviceListDeviceProps {
|
|
22
|
+
/** Discriminant — omit (or 'devices') for the default registry-device list. */
|
|
23
|
+
readonly mode?: "devices";
|
|
24
|
+
/**
|
|
25
|
+
* Where this table is rendered — selects the visible column subset (table
|
|
26
|
+
* view only). Defaults to `'devices'` (all columns) so every existing
|
|
27
|
+
* call site renders unchanged.
|
|
28
|
+
*/
|
|
29
|
+
readonly context?: TableContext;
|
|
30
|
+
readonly devices: readonly DeviceItemDevice[];
|
|
31
|
+
readonly trpc: UseDeviceProxyTrpc;
|
|
32
|
+
/**
|
|
33
|
+
* Integration filter options + an optional TYPE-filter override.
|
|
34
|
+
*
|
|
35
|
+
* The type filter defaults to the EXHAUSTIVE device-type set
|
|
36
|
+
* (`allDeviceTypeFilterOptions`), so a newly added `DeviceType` appears
|
|
37
|
+
* automatically on every general list and nothing is ever missing. A
|
|
38
|
+
* surface that lists only a known subset (e.g. the export panel restricts
|
|
39
|
+
* to an exporter's supported kinds) may pass `typeOptions` to narrow the
|
|
40
|
+
* dropdown to that subset — built from the same shared meta so labels +
|
|
41
|
+
* icons stay identical.
|
|
42
|
+
*/
|
|
43
|
+
readonly filters?: {
|
|
44
|
+
/** Integration chips — ids are integration ids. Requires `integrationOf`. */
|
|
45
|
+
readonly integrations?: readonly DeviceListIntegrationOption[];
|
|
46
|
+
readonly typeOptions?: readonly MultiSelectOption[];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Which integration a row belongs to — build it with
|
|
50
|
+
* `deviceIntegrationResolver(integrations)`, the one rule the whole UI
|
|
51
|
+
* answers that question with. Drives the integration filter
|
|
52
|
+
* (`filters.integrations`, `forceIntegrationId`) and is handed to
|
|
53
|
+
* `resolveIntegrationIcon`. Omitted ⇒ every row is `unknown`, so an
|
|
54
|
+
* integration filter matches nothing.
|
|
55
|
+
*/
|
|
56
|
+
readonly integrationOf?: DeviceIntegrationResolver;
|
|
57
|
+
/** Pre-applied integration filter (an integration id) — hides the chip group. */
|
|
58
|
+
readonly forceIntegrationId?: string;
|
|
59
|
+
/** The badge beside a row's name, given the row and its resolved integration. */
|
|
60
|
+
readonly resolveIntegrationIcon?: DeviceListIntegrationIconResolver;
|
|
61
|
+
readonly resolveParent?: (parentId: number) => DeviceItemParent | null;
|
|
62
|
+
readonly onNavigate?: (deviceId: number) => void;
|
|
63
|
+
readonly pageSize?: {
|
|
64
|
+
readonly cards: number;
|
|
65
|
+
readonly table: number;
|
|
66
|
+
};
|
|
67
|
+
readonly urlScope?: "root" | "nested";
|
|
68
|
+
/** LocalStorage key prefix. Default 'devices' for root scope, 'integrations:nested' for nested. */
|
|
69
|
+
readonly lsKey?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Optional trailing per-row control rendered beside each row's
|
|
72
|
+
* built-in actions (both card + table views, top-level rows only —
|
|
73
|
+
* accessory sub-rows are excluded). Threaded straight through to
|
|
74
|
+
* `<DeviceItem renderRowAction>`. Omitted ⇒ every current call site
|
|
75
|
+
* (Devices, IntegrationDetail, Integrations nested) renders unchanged.
|
|
76
|
+
* Used by `<DeviceExportPanel>` to surface a per-device Expose toggle.
|
|
77
|
+
*/
|
|
78
|
+
readonly renderRowAction?: (device: DeviceItemDevice) => ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* Built-in confirmed per-row DELETE — a first-class TABLE feature. When
|
|
81
|
+
* provided, every top-level table row renders a red trash button in the
|
|
82
|
+
* merged actions cell; clicking it opens the shared centered confirm
|
|
83
|
+
* dialog ("Delete device?") and calls `onDeleteDevice(device)` only on
|
|
84
|
+
* confirm. Accessory sub-rows are excluded (same gate as `renderRowAction`).
|
|
85
|
+
* Context gating is "consumer passes the handler or not" — omit it (default)
|
|
86
|
+
* and no trash renders, so existing call sites are unchanged. Cap-agnostic:
|
|
87
|
+
* delete is generic and never branches on the device's capabilities. The
|
|
88
|
+
* confirm is built in, so consumers must NOT add their own. Table-only for
|
|
89
|
+
* now (card delete is a follow-up).
|
|
90
|
+
*/
|
|
91
|
+
readonly onDeleteDevice?: (device: DeviceItemDevice) => void;
|
|
92
|
+
/**
|
|
93
|
+
* The state of a removal in flight, per row (`useDeviceRemoval().rowOperation`).
|
|
94
|
+
* `pending` shows the row dimmed with "Removing…" and its actions disabled until
|
|
95
|
+
* the removal has completed; `failed` restores it with the error inline.
|
|
96
|
+
* Omitted ⇒ rows render exactly as before.
|
|
97
|
+
*/
|
|
98
|
+
readonly rowOperation?: (device: DeviceItemDevice) => RowOperationState | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* When `true`, renders a leading checkbox on each top-level row
|
|
101
|
+
* (accessory sub-rows are excluded — same gate as `renderRowAction`).
|
|
102
|
+
* Selection state may be controlled via `selectedIds`; when omitted
|
|
103
|
+
* the list maintains internal state.
|
|
104
|
+
*/
|
|
105
|
+
readonly selectable?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Controlled set of selected device ids. Provide together with
|
|
108
|
+
* `onSelectionChange` for a fully controlled selection surface.
|
|
109
|
+
* Omit to let `<DeviceList>` manage internal state.
|
|
110
|
+
*/
|
|
111
|
+
readonly selectedIds?: ReadonlySet<number>;
|
|
112
|
+
/**
|
|
113
|
+
* Called on every toggle with the NEW full selection set.
|
|
114
|
+
* Invoked for both controlled and uncontrolled usage.
|
|
115
|
+
*/
|
|
116
|
+
readonly onSelectionChange?: (ids: ReadonlySet<number>) => void;
|
|
117
|
+
/**
|
|
118
|
+
* Opt into self-managed BATCH MODE. When provided, the list renders an
|
|
119
|
+
* "Select" activation button; batch mode is OFF by default (no
|
|
120
|
+
* checkboxes, no bulk toolbar). Activating it reveals the leading
|
|
121
|
+
* row checkboxes plus a responsive bulk-actions bar wired to these
|
|
122
|
+
* callbacks (full toolbar at `sm+`, a compact menu at L1). Selection
|
|
123
|
+
* state is managed internally for the duration of the activated
|
|
124
|
+
* session and cleared on exit. Mutually independent from the
|
|
125
|
+
* lower-level `selectable`/`selectedIds` controlled API.
|
|
126
|
+
*/
|
|
127
|
+
readonly batchActions?: DeviceListBatchActions;
|
|
128
|
+
}
|
|
129
|
+
/** Self-managed batch-mode bulk-action callbacks (see `batchActions`). */
|
|
130
|
+
export interface DeviceListBatchActions {
|
|
131
|
+
readonly remove: (input: {
|
|
132
|
+
deviceId: number;
|
|
133
|
+
}) => void;
|
|
134
|
+
readonly disable: (input: {
|
|
135
|
+
deviceId: number;
|
|
136
|
+
}) => void;
|
|
137
|
+
readonly enable: (input: {
|
|
138
|
+
deviceId: number;
|
|
139
|
+
}) => void;
|
|
140
|
+
}
|
|
141
|
+
export declare function DeviceModeList(props: DeviceListDeviceProps): ReactNode;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <DeviceListEmptyState> — shown when the filtered device list is empty.
|
|
3
|
+
*
|
|
4
|
+
* Two variants:
|
|
5
|
+
* - `nofilter` — list is empty AND no filters applied. Operator
|
|
6
|
+
* hasn't added any devices yet (or the addon hasn't discovered any).
|
|
7
|
+
* - `filtered` — filters are applied but match nothing. Offer a
|
|
8
|
+
* reset link to clear filters.
|
|
9
|
+
* - `pending` — an integration filter could not judge the rows yet (the
|
|
10
|
+
* integrations query has not answered). Not an absence (D315).
|
|
11
|
+
*/
|
|
12
|
+
import { type ReactNode } from "react";
|
|
13
|
+
export interface EmptyStateProps {
|
|
14
|
+
readonly variant: "nofilter" | "filtered" | "pending";
|
|
15
|
+
readonly onClearFilters?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function DeviceListEmptyState({ variant, onClearFilters }: EmptyStateProps): ReactNode;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type MultiSelectOption } from "./multi-select";
|
|
3
|
+
export interface FilterChipsAddonOption {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly icon?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface FilterChipsProps {
|
|
9
|
+
/**
|
|
10
|
+
* Ready-made options for the shared multi-select type filter. Built once by
|
|
11
|
+
* the caller from the exhaustive device-type meta (`allDeviceTypeFilterOptions`)
|
|
12
|
+
* so the option set is complete + identical everywhere. Omit to hide the
|
|
13
|
+
* type filter entirely.
|
|
14
|
+
*/
|
|
15
|
+
readonly typeOptions?: readonly MultiSelectOption[];
|
|
16
|
+
readonly selectedTypes: readonly string[];
|
|
17
|
+
readonly onTypesChange: (types: readonly string[]) => void;
|
|
18
|
+
readonly addons?: readonly FilterChipsAddonOption[];
|
|
19
|
+
/** Currently-selected integration ids (multi-select). */
|
|
20
|
+
readonly selectedAddons: readonly string[];
|
|
21
|
+
readonly onAddonsChange: (addons: readonly string[]) => void;
|
|
22
|
+
/** When true, the addon group is hidden (used by Integrations expand-row inner DeviceList). */
|
|
23
|
+
readonly hideAddons?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Free-text search, read ONLY to decide whether any filter is set. The input
|
|
26
|
+
* itself lives outside this component; a Clear that ignored it would leave
|
|
27
|
+
* the list filtered after the operator was told it had been cleared.
|
|
28
|
+
*/
|
|
29
|
+
readonly query?: string;
|
|
30
|
+
/** Clear every filter at once. Omit to hide the affordance entirely. */
|
|
31
|
+
readonly onClearFilters?: () => void;
|
|
32
|
+
}
|
|
33
|
+
export declare function FilterChips({ typeOptions, selectedTypes, onTypesChange, addons, selectedAddons, onAddonsChange, hideAddons, query, onClearFilters }: FilterChipsProps): ReactNode;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fuzzy-match — case and separator-insensitive text search helper.
|
|
3
|
+
*
|
|
4
|
+
* Normalization rule: lowercase + strip all runs of hyphens, underscores and
|
|
5
|
+
* whitespace entirely. This makes `Tapparella kitchen` and `tapparella-kitchen`
|
|
6
|
+
* both normalize to `tapparellakitchen`, so a substring match succeeds in
|
|
7
|
+
* either direction.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Strips hyphens, underscores and whitespace runs from `s` and lowercases it.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* normalizeForSearch('Tapparella kitchen') // 'tapparellakitchen'
|
|
14
|
+
* normalizeForSearch('tapparella-kitchen') // 'tapparellakitchen'
|
|
15
|
+
* normalizeForSearch('tapparella_kitchen') // 'tapparellakitchen'
|
|
16
|
+
*/
|
|
17
|
+
export declare function normalizeForSearch(s: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Returns `true` when the normalized form of `target` contains the normalized
|
|
20
|
+
* form of `query`. An empty query always matches.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* fuzzyMatch('Tapparella kitchen', 'tapparella-kitchen') // true
|
|
24
|
+
* fuzzyMatch('tapparella kitchen', 'Tapparella-Kitchen') // true
|
|
25
|
+
* fuzzyMatch('xyz', 'tapparella-kitchen') // false
|
|
26
|
+
*/
|
|
27
|
+
export declare function fuzzyMatch(query: string, target: string): boolean;
|