@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,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The clips browser's on-screen state, decided once, in one place.
|
|
3
|
+
*
|
|
4
|
+
* Four states have to be TELLABLE APART on screen, and that is the whole point
|
|
5
|
+
* of the external-videoclips line (D549 § 7b):
|
|
6
|
+
*
|
|
7
|
+
* - `loading` — never rendered as empty. A list drawn while a query is still
|
|
8
|
+
* pending is a claim the data does not support.
|
|
9
|
+
* - `empty` — a band with no rows, carrying the BAND and the sources that
|
|
10
|
+
* answered for it. "No clips" with neither of those is the lie this whole
|
|
11
|
+
* surface exists to stop telling.
|
|
12
|
+
* - `refused` — the selected band is wider than the bound `clip-band.ts`
|
|
13
|
+
* sets, so nothing was asked. Added with the timebar (D564): a band can be
|
|
14
|
+
* made arbitrarily wide and a day could not, and a range that answered
|
|
15
|
+
* partly would read as the whole of it.
|
|
16
|
+
* - `listed` — rows, plus every source that could NOT contribute, named with
|
|
17
|
+
* its reason verbatim. One unreachable source never empties the others
|
|
18
|
+
* (the dispatcher's rule 2), and the operator must see both halves: today
|
|
19
|
+
* a hub child lists `onboard` and shows `native:reolink:hub` unreachable.
|
|
20
|
+
* - `failed` — the read itself failed. Not an answer, so not "empty" either.
|
|
21
|
+
*
|
|
22
|
+
* There is no client-side source filter here, and that is a decision, not an
|
|
23
|
+
* omission. `listClips` is asked of ONE provider at a time, and NAMING it is
|
|
24
|
+
* required (`provider`, D554 amended) — the operator settled it on 2026-09-20,
|
|
25
|
+
* *"l'utilizzatore è uno solo"* [there is only one user] — so what arrives is already the answer for
|
|
26
|
+
* the provider on screen and there is nothing to filter out of it. What
|
|
27
|
+
* survives unchanged is the rule the old filter existed to protect: every
|
|
28
|
+
* source a camera HAS is still described here, with its availability,
|
|
29
|
+
* whichever provider was asked.
|
|
30
|
+
*/
|
|
31
|
+
import type { Clip, ClipSource } from "@dominevo/types";
|
|
32
|
+
import type { ClipBand, ClipBandPlan } from "./clip-band.js";
|
|
33
|
+
import { type UiTextFn } from "../../contexts/ui-text.js";
|
|
34
|
+
import { type ClipSourceNotice } from "./clip-source-state.js";
|
|
35
|
+
/** React Query's settled-ness, narrowed to what this decision needs. */
|
|
36
|
+
export type ClipQueryStatus = "pending" | "error" | "success";
|
|
37
|
+
export interface ClipsViewInput {
|
|
38
|
+
/**
|
|
39
|
+
* The period the list is about, and whether it may be asked for at all
|
|
40
|
+
* (`clip-band.ts`). A refused plan means NO query was fired, which is why
|
|
41
|
+
* the refusal has to be decided here rather than inferred from a query that
|
|
42
|
+
* will stay `pending` for ever.
|
|
43
|
+
*/
|
|
44
|
+
readonly plan: ClipBandPlan;
|
|
45
|
+
/**
|
|
46
|
+
* The provider the clip list was asked of, or `null` when the camera lists
|
|
47
|
+
* NO source to ask.
|
|
48
|
+
*
|
|
49
|
+
* Naming one is required (D554 amended), so "nobody to ask" is a real state and it
|
|
50
|
+
* has to be told apart from "not answered yet": the query never fires, its
|
|
51
|
+
* status stays `pending` for ever, and a surface that only consults the
|
|
52
|
+
* status spins against a question with no addressee. Exactly the trap
|
|
53
|
+
* `too-wide` has, arriving from the other end.
|
|
54
|
+
*/
|
|
55
|
+
readonly provider: string | null;
|
|
56
|
+
readonly clipsStatus: ClipQueryStatus;
|
|
57
|
+
readonly clips: readonly Clip[];
|
|
58
|
+
readonly sourcesStatus: ClipQueryStatus;
|
|
59
|
+
readonly sources: readonly ClipSource[];
|
|
60
|
+
readonly clipsError?: string;
|
|
61
|
+
readonly sourcesError?: string;
|
|
62
|
+
}
|
|
63
|
+
export type ClipsViewState = {
|
|
64
|
+
readonly kind: "loading";
|
|
65
|
+
} | {
|
|
66
|
+
readonly kind: "failed";
|
|
67
|
+
readonly message: string;
|
|
68
|
+
} | {
|
|
69
|
+
/** The band is wider than the bound, so nothing was asked. */
|
|
70
|
+
readonly kind: "refused";
|
|
71
|
+
readonly band: ClipBand;
|
|
72
|
+
readonly localDays: number;
|
|
73
|
+
readonly maxLocalDays: number;
|
|
74
|
+
} | {
|
|
75
|
+
readonly kind: "empty";
|
|
76
|
+
readonly band: ClipBand;
|
|
77
|
+
readonly answered: readonly ClipSourceNotice[];
|
|
78
|
+
readonly silent: readonly ClipSourceNotice[];
|
|
79
|
+
/** No source could answer at all — a different fact from a quiet day. */
|
|
80
|
+
readonly nobodyAnswered: boolean;
|
|
81
|
+
} | {
|
|
82
|
+
readonly kind: "listed";
|
|
83
|
+
readonly clips: readonly Clip[];
|
|
84
|
+
readonly answered: readonly ClipSourceNotice[];
|
|
85
|
+
readonly silent: readonly ClipSourceNotice[];
|
|
86
|
+
};
|
|
87
|
+
export declare function resolveClipsView(input: ClipsViewInput, t?: UiTextFn): ClipsViewState;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CommandSlider — a range input that sends a device command once, on release.
|
|
3
|
+
*
|
|
4
|
+
* It renders the served value, except during the gesture and its trailing
|
|
5
|
+
* commit, where the thumb stays under the hand (`useDragValue`). Use it for any
|
|
6
|
+
* slider that sends a command: a slider that sends on every move and renders
|
|
7
|
+
* the served value snaps back while it is dragged.
|
|
8
|
+
*/
|
|
9
|
+
import type { ReactElement, ReactNode } from "react";
|
|
10
|
+
import { type SliderProps } from "../primitives/slider";
|
|
11
|
+
export interface CommandSliderProps extends Omit<SliderProps, "value" | "defaultValue" | "onChange" | "onPointerUp" | "onPointerCancel" | "onKeyUp" | "onBlur"> {
|
|
12
|
+
/** The value the hub serves. */
|
|
13
|
+
readonly value: number;
|
|
14
|
+
/** Sends the command with the released value. */
|
|
15
|
+
readonly onCommit: (value: number) => void;
|
|
16
|
+
/** Drawn after the track with the value the thumb shows (the "45%" beside it). */
|
|
17
|
+
readonly valueLabel?: (shown: number) => ReactNode;
|
|
18
|
+
readonly settleMs?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function CommandSlider({ value, onCommit, valueLabel, settleMs, ...rest }: CommandSliderProps): ReactElement;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AutomationLeafCategory, AutomationLeafContext, AutomationLeafKind } from "@dominevo/types";
|
|
2
|
+
import { type JSX } from "react";
|
|
3
|
+
import { type KindDisabledReason, type KindTexts } from "./condition-kind-picker-model";
|
|
4
|
+
export interface ConditionKindPickerProps {
|
|
5
|
+
readonly open: boolean;
|
|
6
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
7
|
+
readonly title: string;
|
|
8
|
+
/** Where the row is added: a trigger tree, or a step's guard (states only). */
|
|
9
|
+
readonly context: AutomationLeafContext;
|
|
10
|
+
/** The row sits under a NOT: an instant cannot be negated. */
|
|
11
|
+
readonly underNot: boolean;
|
|
12
|
+
/** Adding to a tree already at its row bound. False when changing a row's type. */
|
|
13
|
+
readonly treeFull: boolean;
|
|
14
|
+
readonly suggested?: readonly AutomationLeafKind[];
|
|
15
|
+
/** Kinds with no meaning in this place: left out entirely, not disabled. */
|
|
16
|
+
readonly hidden?: readonly AutomationLeafKind[];
|
|
17
|
+
/** Remembers the kinds picked here last time (per place). */
|
|
18
|
+
readonly recentKey?: string;
|
|
19
|
+
readonly textsOf: (kind: AutomationLeafKind) => KindTexts;
|
|
20
|
+
readonly categoryLabelOf: (category: AutomationLeafCategory) => string;
|
|
21
|
+
readonly reasonOf: (reason: KindDisabledReason) => string;
|
|
22
|
+
/**
|
|
23
|
+
* The kind of the row being changed: highlighted when the search is empty.
|
|
24
|
+
* Absent (adding a row) = nothing is highlighted until the operator types.
|
|
25
|
+
*/
|
|
26
|
+
readonly current?: AutomationLeafKind;
|
|
27
|
+
readonly onPick: (kind: AutomationLeafKind) => void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The modal that adds (or retypes) a `when`-tree row: search, groups by
|
|
31
|
+
* category, an icon / label / description / example per kind, and a kind this
|
|
32
|
+
* place cannot take shown disabled with the reason. All filtering and ranking
|
|
33
|
+
* is `buildKindPicker`; this renders it. The body mounts only while open, so a
|
|
34
|
+
* reopen starts with an empty search and a focused field.
|
|
35
|
+
*/
|
|
36
|
+
export declare function ConditionKindPicker(props: ConditionKindPickerProps): JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AutomationLeafKind } from "@dominevo/types";
|
|
2
|
+
import { type LucideIcon } from "lucide-react";
|
|
3
|
+
/** One icon per row kind. Total by its type: a new kind without an icon does not compile. */
|
|
4
|
+
export declare const CONDITION_KIND_ICONS: Readonly<Record<AutomationLeafKind, LucideIcon>>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The condition kind picker's model: which row kinds a place may add, how a
|
|
3
|
+
* search narrows and ranks them, how they group, and why one is disabled.
|
|
4
|
+
*
|
|
5
|
+
* Framework-free: no React, no DOM, no i18n. The caller resolves the texts
|
|
6
|
+
* (`textsOf`, `categoryLabelOf`) so the same model serves the admin modal and a
|
|
7
|
+
* phone sheet. The kinds themselves come from `AUTOMATION_LEAF_CATALOG` — this
|
|
8
|
+
* file lists none.
|
|
9
|
+
*/
|
|
10
|
+
import { type AutomationLeafCategory, type AutomationLeafContext, type AutomationLeafKind, type AutomationLeafRole } from "@dominevo/types";
|
|
11
|
+
/** The resolved texts of one kind, in the viewer's language. */
|
|
12
|
+
export interface KindTexts {
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly description: string;
|
|
15
|
+
readonly example: string;
|
|
16
|
+
}
|
|
17
|
+
/** Why a kind is shown but cannot be picked here. */
|
|
18
|
+
export type KindDisabledReason = "event-in-guard" | "event-under-not" | "tree-full";
|
|
19
|
+
export interface KindPickerItem extends KindTexts {
|
|
20
|
+
readonly kind: AutomationLeafKind;
|
|
21
|
+
readonly category: AutomationLeafCategory;
|
|
22
|
+
readonly role: AutomationLeafRole;
|
|
23
|
+
readonly needsDeviceValue: boolean;
|
|
24
|
+
readonly disabled: KindDisabledReason | null;
|
|
25
|
+
}
|
|
26
|
+
export interface KindPickerGroup {
|
|
27
|
+
readonly category: AutomationLeafCategory;
|
|
28
|
+
readonly label: string;
|
|
29
|
+
readonly count: number;
|
|
30
|
+
readonly items: readonly KindPickerItem[];
|
|
31
|
+
}
|
|
32
|
+
export interface KindPickerInput {
|
|
33
|
+
readonly context: AutomationLeafContext;
|
|
34
|
+
readonly query: string;
|
|
35
|
+
readonly textsOf: (kind: AutomationLeafKind) => KindTexts;
|
|
36
|
+
readonly categoryLabelOf: (category: AutomationLeafCategory) => string;
|
|
37
|
+
/** The row sits under a NOT: an instant cannot be negated. */
|
|
38
|
+
readonly underNot: boolean;
|
|
39
|
+
/** Adding a row to a tree already at its row bound. False when CHANGING a row's type. */
|
|
40
|
+
readonly treeFull: boolean;
|
|
41
|
+
/** The operator's last picks, newest first. */
|
|
42
|
+
readonly recent: readonly AutomationLeafKind[];
|
|
43
|
+
/** Kinds the surrounding page suggests (a camera page suggests detection). */
|
|
44
|
+
readonly suggested: readonly AutomationLeafKind[];
|
|
45
|
+
/**
|
|
46
|
+
* Kinds that have no meaning in this place and are left out entirely — unlike
|
|
47
|
+
* a kind the place cannot take NOW, which stays, disabled with its reason.
|
|
48
|
+
*/
|
|
49
|
+
readonly hidden?: readonly AutomationLeafKind[];
|
|
50
|
+
}
|
|
51
|
+
export interface KindPickerView {
|
|
52
|
+
/** Shown above the groups while the search is empty. */
|
|
53
|
+
readonly suggested: readonly KindPickerItem[];
|
|
54
|
+
readonly recent: readonly KindPickerItem[];
|
|
55
|
+
readonly groups: readonly KindPickerGroup[];
|
|
56
|
+
/** What Enter picks: the best match that is not disabled, or nothing. */
|
|
57
|
+
readonly firstEnabled: AutomationLeafKind | null;
|
|
58
|
+
}
|
|
59
|
+
/** How many recent kinds are kept and shown. */
|
|
60
|
+
export declare const RECENT_KIND_LIMIT = 4;
|
|
61
|
+
export declare function buildKindPicker(input: KindPickerInput): KindPickerView;
|
|
62
|
+
/** The recent list after a pick: newest first, once, bounded. */
|
|
63
|
+
export declare function rememberRecentKind(recent: readonly AutomationLeafKind[], picked: AutomationLeafKind): readonly AutomationLeafKind[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AutomationLeafKind } from "@dominevo/types";
|
|
2
|
+
/**
|
|
3
|
+
* The kinds one picker offered last time, newest first — a per-viewer
|
|
4
|
+
* convenience only: storage can be absent or throw, and the picker is whole
|
|
5
|
+
* without it.
|
|
6
|
+
*/
|
|
7
|
+
export interface RecentKinds {
|
|
8
|
+
readonly kinds: readonly AutomationLeafKind[];
|
|
9
|
+
readonly push: (kind: AutomationLeafKind) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function useRecentKinds(key: string | undefined): RecentKinds;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A `select` whose options come from a notification kind's `discoverTargets`,
|
|
3
|
+
* asked for the form's CURRENT values.
|
|
4
|
+
*
|
|
5
|
+
* Nothing is fetched until every `dependsOn` field has a value, so a kind that
|
|
6
|
+
* needs a broker or a token is never asked without it. Each state is its own
|
|
7
|
+
* line (not yet / loading / failed / nothing found) and the field stays a free
|
|
8
|
+
* text input in all of them but "found", so the operator is never stuck behind
|
|
9
|
+
* a list that did not come.
|
|
10
|
+
*/
|
|
11
|
+
import { type JSX } from "react";
|
|
12
|
+
import type { ConfigSelectField } from "@dominevo/types";
|
|
13
|
+
import { useNotificationOutputDiscoverTargets } from "../generated/system-hooks";
|
|
14
|
+
export interface DiscoveredOption {
|
|
15
|
+
readonly value: string;
|
|
16
|
+
readonly label: string;
|
|
17
|
+
/** The name of the existing target this candidate already is; absent when it is new or not yet known. */
|
|
18
|
+
readonly adoptedBy?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface DiscoveredOptionsState {
|
|
21
|
+
readonly ready: boolean;
|
|
22
|
+
readonly settled: boolean;
|
|
23
|
+
readonly query: ReturnType<typeof useNotificationOutputDiscoverTargets>;
|
|
24
|
+
/** The options the provider answered with; empty until it did. */
|
|
25
|
+
readonly found: readonly DiscoveredOption[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The discovery query behind a `select` field with `discoverOptions`, asked for
|
|
29
|
+
* the form's CURRENT values. The control and the host form share one react-query
|
|
30
|
+
* entry (same key), so a host that needs the option labels (a name derived from
|
|
31
|
+
* the picked device) pays no second request.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useDiscoveredOptions(field: ConfigSelectField, values: Readonly<Record<string, unknown>>): DiscoveredOptionsState;
|
|
34
|
+
export declare function ConfigDiscoveredSelectControl({ field, values, value, onChange, disabled, controlId }: {
|
|
35
|
+
readonly field: ConfigSelectField;
|
|
36
|
+
readonly values: Readonly<Record<string, unknown>>;
|
|
37
|
+
readonly value: unknown;
|
|
38
|
+
readonly onChange: (next: string | string[]) => void;
|
|
39
|
+
readonly disabled?: boolean;
|
|
40
|
+
readonly controlId: string;
|
|
41
|
+
}): JSX.Element;
|
|
42
|
+
/** The values a multi picker holds: a stored single value reads as one pick. */
|
|
43
|
+
export declare function pickedValues(value: unknown): string[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
2
|
+
import type { ConfigUISchema, FieldProbeResult } from "@dominevo/types";
|
|
3
|
+
import type { ProbeState } from "./config-form-field";
|
|
4
|
+
export type TranslationFn = (key: string) => string;
|
|
5
|
+
/** A field's action, routed by the host: `(action, fieldKey, input)` -> the action's result. */
|
|
6
|
+
export type FieldActionFn = (action: string, key: string, value?: unknown) => Promise<unknown>;
|
|
7
|
+
export declare function resolveLabel(value: string | undefined, t?: TranslationFn): string | undefined;
|
|
8
|
+
interface FormBuilderProps {
|
|
9
|
+
schema: ConfigUISchema;
|
|
10
|
+
values: Record<string, unknown>;
|
|
11
|
+
onChange: (values: Record<string, unknown>) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
translationFn?: TranslationFn;
|
|
14
|
+
onTestField?: (key: string, value: unknown) => Promise<FieldProbeResult>;
|
|
15
|
+
/** External probe results from useProbeAll hook */
|
|
16
|
+
probeResults?: Record<string, ProbeState>;
|
|
17
|
+
/** Callback to clear a probe result when a field value changes */
|
|
18
|
+
onClearProbe?: (key: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* A field's action (an account sign-in's begin / complete / sign out, an inline icon action):
|
|
21
|
+
* the host routes it to the owning addon. A field that needs it and has none is disabled.
|
|
22
|
+
*/
|
|
23
|
+
onAction?: FieldActionFn;
|
|
24
|
+
/**
|
|
25
|
+
* Fields only — no section border, title or description. For a parent that
|
|
26
|
+
* already frames the form (or wants a single field with no chrome).
|
|
27
|
+
*/
|
|
28
|
+
bare?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Container-query driven responsive grid. Each section is its own
|
|
32
|
+
* `@container` so the column count adapts to the SECTION's width
|
|
33
|
+
* (not the viewport) — important inside narrow hosts like the
|
|
34
|
+
* device-detail right column / ItemFormDialog. Behavior:
|
|
35
|
+
* columns=1 → always 1 col
|
|
36
|
+
* columns=2 (default) → 1 col below 480px container, 2 cols above
|
|
37
|
+
* columns=3 → 1 → 2 → 3 col at 480px / 880px
|
|
38
|
+
* columns=4 → 1 → 2 → 4 col at 480px / 1140px
|
|
39
|
+
*/
|
|
40
|
+
export declare function sectionGridClass(columns: 1 | 2 | 3 | 4 | undefined): string;
|
|
41
|
+
export declare function ConfigFormBuilder({ schema, values, onChange, disabled, translationFn, onTestField, probeResults, onClearProbe, onAction, bare }: FormBuilderProps): JSX.Element;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
2
|
+
import type { ConfigField, ConfigSelectField, ConfigNodeSelectField, ConfigNodeMultiSelectField, FieldProbeResult } from "@dominevo/types";
|
|
3
|
+
import type { TranslationFn } from "./config-form-builder";
|
|
4
|
+
/** Probe state for a single field — exported for callers that need to track probe lifecycle externally. */
|
|
5
|
+
export interface ProbeState {
|
|
6
|
+
status: "probing" | "ok" | "error";
|
|
7
|
+
result?: FieldProbeResult;
|
|
8
|
+
}
|
|
9
|
+
interface FormFieldProps {
|
|
10
|
+
field: ConfigField;
|
|
11
|
+
values: Record<string, unknown>;
|
|
12
|
+
onChange: (key: string, value: unknown) => void;
|
|
13
|
+
/** Apply several form keys in one update (e.g. addon-action-button assignResult). */
|
|
14
|
+
onChangeMany?: (patch: Record<string, unknown>) => void;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
translationFn?: TranslationFn;
|
|
17
|
+
/**
|
|
18
|
+
* Dedicated probe callback — used by the device-creation dialog where
|
|
19
|
+
* the device doesn't exist yet so the generic `onAction` routing
|
|
20
|
+
* cannot resolve an addon owner. For existing-device forms prefer
|
|
21
|
+
* `onAction` with action `'test-probe'`: the probe field falls back
|
|
22
|
+
* to it when `onTestField` is absent, so the two paths converge.
|
|
23
|
+
*/
|
|
24
|
+
onTestField?: (key: string, value: unknown) => Promise<FieldProbeResult>;
|
|
25
|
+
/** External probe result (from "Test All" button) */
|
|
26
|
+
externalProbe?: {
|
|
27
|
+
status: "probing" | "ok" | "error";
|
|
28
|
+
result?: FieldProbeResult;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Inline-action callback. Fired by icon buttons on any field
|
|
32
|
+
* (copy-value, regenerate-rtsp-token, …) and by the probe field's
|
|
33
|
+
* Test button when `onTestField` is not provided — in that case the
|
|
34
|
+
* action name is `'test-probe'` and the current field value flows
|
|
35
|
+
* through the third arg so the handler can probe it.
|
|
36
|
+
*
|
|
37
|
+
* Returns `Promise<unknown>` (not `void`) because some actions yield
|
|
38
|
+
* a result the caller wants (the probe returns a `FieldProbeResult`).
|
|
39
|
+
*/
|
|
40
|
+
onAction?: (action: string, key: string, value?: unknown) => Promise<unknown>;
|
|
41
|
+
/** All fields in the section — used to resolve defaults for showWhen conditions */
|
|
42
|
+
allFields?: readonly ConfigField[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The "— Select —" entry stands for "no value yet": offered only when the
|
|
46
|
+
* field is optional, has no default to fall back on, and the schema defines no
|
|
47
|
+
* empty option of its own.
|
|
48
|
+
*/
|
|
49
|
+
export declare function selectOffersPlaceholder(field: ConfigSelectField): boolean;
|
|
50
|
+
interface NodeSelectFieldProps {
|
|
51
|
+
field: ConfigNodeSelectField;
|
|
52
|
+
value: unknown;
|
|
53
|
+
onChange: (v: unknown) => void;
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
translationFn?: TranslationFn;
|
|
56
|
+
}
|
|
57
|
+
export declare function NodeSelectField(props: NodeSelectFieldProps): JSX.Element | null;
|
|
58
|
+
export declare function NodeMultiSelectField({ field, value, onChange, disabled, translationFn }: {
|
|
59
|
+
field: ConfigNodeMultiSelectField;
|
|
60
|
+
value: unknown;
|
|
61
|
+
onChange: (v: unknown) => void;
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
translationFn?: TranslationFn;
|
|
64
|
+
}): JSX.Element | null;
|
|
65
|
+
/**
|
|
66
|
+
* Resolve a `ConfigCondition` against the form's flat values bag and the
|
|
67
|
+
* sibling-field list (used to recover schema defaults when the
|
|
68
|
+
* referenced field hasn't been touched yet). Returns `true` for fields
|
|
69
|
+
* with no `showWhen` — i.e. always visible — and for fields whose
|
|
70
|
+
* condition is missing a recognised operator (forward-compat: a future
|
|
71
|
+
* operator added to `ConfigCondition` won't accidentally hide every
|
|
72
|
+
* field on older clients).
|
|
73
|
+
*
|
|
74
|
+
* Exported so callers (FormBuilder section renderer, future
|
|
75
|
+
* sub-tab visibility checks, …) can pre-evaluate which fields would be
|
|
76
|
+
* rendered without instantiating a React subtree.
|
|
77
|
+
*/
|
|
78
|
+
export declare function isFieldVisible(field: ConfigField, values: Record<string, unknown>, allFields?: readonly ConfigField[]): boolean;
|
|
79
|
+
export declare function FormField({ field, values, onChange, onChangeMany, disabled, translationFn, onTestField, externalProbe, allFields, onAction }: FormFieldProps): JSX.Element | null;
|
|
80
|
+
export { FormField as ConfigFormField };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
2
|
+
export interface ConfigIconFieldControlProps {
|
|
3
|
+
/** The field's label — names the picker for assistive tech. */
|
|
4
|
+
readonly label: string;
|
|
5
|
+
/** The stored value (anything — only a vocabulary key is honoured). */
|
|
6
|
+
readonly value: unknown;
|
|
7
|
+
/** The field's default key; `''` when the schema declares none. */
|
|
8
|
+
readonly defaultKey: string;
|
|
9
|
+
readonly disabled?: boolean;
|
|
10
|
+
readonly onChange: (key: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function ConfigIconFieldControl({ label, value, defaultKey, disabled, onChange }: ConfigIconFieldControlProps): JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `instance-select` — the control of a schema field that links to an instance of one function cap
|
|
3
|
+
* (D1013 rule 5). The host's picker (list + "Create new…") when it provided one, else a plain
|
|
4
|
+
* select over the existing instances. The cap and kind are data, never named here.
|
|
5
|
+
*/
|
|
6
|
+
import type { JSX } from "react";
|
|
7
|
+
import type { ConfigInstanceSelectField } from "@dominevo/types";
|
|
8
|
+
import type { LinkableInstance } from "../hooks/use-instances-of-cap";
|
|
9
|
+
export interface InstancePlainSelectProps {
|
|
10
|
+
readonly functionCap: string;
|
|
11
|
+
readonly kind?: string;
|
|
12
|
+
readonly value: string;
|
|
13
|
+
readonly onChange: (instanceId: string) => void;
|
|
14
|
+
/** The words of the empty choice, already translated. */
|
|
15
|
+
readonly noneLabel?: string;
|
|
16
|
+
readonly disabled?: boolean;
|
|
17
|
+
readonly controlId: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The words of one option: the instance's name, then the status its provider reported (e.g. "Not
|
|
21
|
+
* signed in"), so a linked instance that is offered but not ready says so before it is picked.
|
|
22
|
+
*/
|
|
23
|
+
export declare function instanceOptionLabel(row: LinkableInstance): string;
|
|
24
|
+
/** A plain select over the existing instances of one function cap; it never picks for the operator. */
|
|
25
|
+
export declare function InstancePlainSelect({ functionCap, kind, value, onChange, noneLabel, disabled, controlId }: InstancePlainSelectProps): JSX.Element;
|
|
26
|
+
export declare function ConfigInstanceSelectControl({ field, value, onChange, disabled, controlId }: {
|
|
27
|
+
readonly field: ConfigInstanceSelectField;
|
|
28
|
+
readonly value: unknown;
|
|
29
|
+
readonly onChange: (instanceId: string) => void;
|
|
30
|
+
readonly disabled?: boolean;
|
|
31
|
+
readonly controlId: string;
|
|
32
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A keychain-stored secret in a settings form (D787, D789) — drawn as ONE
|
|
3
|
+
* password input with an eye.
|
|
4
|
+
*
|
|
5
|
+
* The form never holds the value. It receives the field's VIEW —
|
|
6
|
+
* `{ $secret, v, set: true }` when something is stored, `null` when nothing
|
|
7
|
+
* is — and sends back exactly one of three things:
|
|
8
|
+
*
|
|
9
|
+
* - the view, unchanged ........ KEEP (an untouched field sends nothing, so
|
|
10
|
+
* the hydrated view stays the value; a revealed
|
|
11
|
+
* value left as it was sends the view again);
|
|
12
|
+
* - a non-empty typed string ... CHANGE (the owner stores it in the keychain);
|
|
13
|
+
* - `{ $secretClear: true }` ... CLEAR — only when the operator emptied a box
|
|
14
|
+
* that showed a value they revealed or typed.
|
|
15
|
+
*
|
|
16
|
+
* `''` is never sent for "remove": the save path reads it as KEEP, because an
|
|
17
|
+
* empty string is what a defaults fallback writes back. An untouched field
|
|
18
|
+
* looks empty (a masked placeholder) and so can never clear by accident.
|
|
19
|
+
*
|
|
20
|
+
* The eye on an untouched stored secret asks the host's audited
|
|
21
|
+
* `keychain-admin.reveal` (provided with {@link SecretRevealProvider}) for the
|
|
22
|
+
* value; a host that provides none, or a pre-keychain inline value (no ref),
|
|
23
|
+
* cannot reveal — the eye then only shows what the operator types.
|
|
24
|
+
*/
|
|
25
|
+
import { type ConfigField, type SecretFieldView } from "@dominevo/types";
|
|
26
|
+
import { type ReactNode, type JSX } from "react";
|
|
27
|
+
/** Returns the stored value of a ref (audited by the host). */
|
|
28
|
+
export type SecretRevealFn = (ref: string) => Promise<string>;
|
|
29
|
+
/** How long the System → Secrets page shows a revealed value. */
|
|
30
|
+
export declare const SECRET_REVEAL_MS = 1e4;
|
|
31
|
+
/** What an untouched stored secret shows in place of its value. */
|
|
32
|
+
export declare const SECRET_MASK_PLACEHOLDER = "••••••••";
|
|
33
|
+
export declare function SecretRevealProvider({ reveal, children }: {
|
|
34
|
+
readonly reveal: SecretRevealFn;
|
|
35
|
+
readonly children: ReactNode;
|
|
36
|
+
}): JSX.Element;
|
|
37
|
+
/** Does this value belong to the keychain rendering (a view, or "not set")? */
|
|
38
|
+
export declare function isKeychainFieldValue(value: unknown): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* What the operator has done to the field. `untouched` shows nothing and
|
|
41
|
+
* sends nothing; `visible` holds text the operator can see — revealed (then
|
|
42
|
+
* `revealed` is the stored value) or typed.
|
|
43
|
+
*/
|
|
44
|
+
export type SecretEntry = {
|
|
45
|
+
readonly kind: "untouched";
|
|
46
|
+
} | {
|
|
47
|
+
readonly kind: "visible";
|
|
48
|
+
readonly text: string;
|
|
49
|
+
readonly revealed: string | null;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The value the form sends for an entry. `stored` — something is stored (or
|
|
53
|
+
* already marked for removal) — is what makes an emptied box a CLEAR.
|
|
54
|
+
*/
|
|
55
|
+
export declare function secretSubmitValue(entry: SecretEntry, original: SecretFieldView | null, stored: boolean): unknown;
|
|
56
|
+
export interface SecretFieldProps {
|
|
57
|
+
readonly field: ConfigField;
|
|
58
|
+
/** The view (or null) the form was hydrated with, or what the operator has done since. */
|
|
59
|
+
readonly value: unknown;
|
|
60
|
+
readonly onChange: (value: unknown) => void;
|
|
61
|
+
readonly disabled?: boolean;
|
|
62
|
+
/** Multi-line entry (a PEM key). */
|
|
63
|
+
readonly multiline?: boolean;
|
|
64
|
+
}
|
|
65
|
+
export declare function SecretFieldControl({ field, value, onChange, disabled, multiline }: SecretFieldProps): JSX.Element;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ConfirmActionButton — destructive-action button with a modal confirm.
|
|
3
|
+
*
|
|
4
|
+
* Two-step UX for any operation operators shouldn't trigger by accident:
|
|
5
|
+
* reboot device, restart addon, regenerate token, etc. The trigger is a
|
|
6
|
+
* normal Button that opens a Dialog; confirming runs the async action,
|
|
7
|
+
* the trigger spinner-disables itself for the duration, and the dialog
|
|
8
|
+
* closes on success. Errors surface inline at the dialog's bottom.
|
|
9
|
+
*
|
|
10
|
+
* Generic on `TResult` so callers don't have to discard the return
|
|
11
|
+
* value. Pass an `icon` to render it inside the trigger (e.g. RotateCw
|
|
12
|
+
* for reboot, RefreshCw for restart).
|
|
13
|
+
*
|
|
14
|
+
* `ConfirmActionDialog` is the dialog half on its own, for a trigger that is
|
|
15
|
+
* not a button of its own — a menu row (`PageActions` on a phone).
|
|
16
|
+
*/
|
|
17
|
+
import { type ReactNode, type ComponentType, type JSX } from "react";
|
|
18
|
+
import { type ButtonProps } from "../primitives/button";
|
|
19
|
+
export interface ConfirmActionButtonProps<TResult> {
|
|
20
|
+
/** Visible label on the trigger button. */
|
|
21
|
+
readonly label: string;
|
|
22
|
+
/** Icon component (lucide-react) rendered inside the trigger. */
|
|
23
|
+
readonly icon?: ComponentType<{
|
|
24
|
+
className?: string;
|
|
25
|
+
}>;
|
|
26
|
+
/** Dialog title. Defaults to "Confirm action". */
|
|
27
|
+
readonly title?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Dialog body — accepts either a string (rendered as DialogDescription)
|
|
30
|
+
* or arbitrary ReactNode for callers that need lists, code blocks, etc.
|
|
31
|
+
*/
|
|
32
|
+
readonly description?: ReactNode;
|
|
33
|
+
/** Label on the confirm button inside the dialog. Defaults to `label`. */
|
|
34
|
+
readonly confirmLabel?: string;
|
|
35
|
+
/** Visual variant for the trigger button (defaults to `outline`). */
|
|
36
|
+
readonly triggerVariant?: ButtonProps["variant"];
|
|
37
|
+
/**
|
|
38
|
+
* Visual variant for the confirm button inside the dialog. Defaults to
|
|
39
|
+
* `danger` since this component is meant for destructive actions.
|
|
40
|
+
*/
|
|
41
|
+
readonly confirmVariant?: ButtonProps["variant"];
|
|
42
|
+
/** Trigger button size — propagated to the underlying Button. */
|
|
43
|
+
readonly size?: ButtonProps["size"];
|
|
44
|
+
/** Disable the trigger entirely (gates rendering instead of UX state). */
|
|
45
|
+
readonly disabled?: boolean;
|
|
46
|
+
/** Optional extra class name on the trigger. */
|
|
47
|
+
readonly className?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The async action to run on confirm. Must throw on failure so this
|
|
50
|
+
* component can surface the error inline. The result is returned to
|
|
51
|
+
* `onSuccess` for callers that need it (e.g. to invalidate queries).
|
|
52
|
+
*/
|
|
53
|
+
readonly action: () => Promise<TResult>;
|
|
54
|
+
/** Called after `action` resolves, with the result. */
|
|
55
|
+
readonly onSuccess?: (result: TResult) => void;
|
|
56
|
+
}
|
|
57
|
+
export interface ConfirmActionDialogProps<TResult> {
|
|
58
|
+
readonly open: boolean;
|
|
59
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
60
|
+
/** Dialog title. Defaults to "Confirm action". */
|
|
61
|
+
readonly title?: string;
|
|
62
|
+
readonly description?: ReactNode;
|
|
63
|
+
/** Label on the confirm button. */
|
|
64
|
+
readonly confirmLabel: string;
|
|
65
|
+
/** Defaults to `danger`. */
|
|
66
|
+
readonly confirmVariant?: ButtonProps["variant"];
|
|
67
|
+
readonly size?: ButtonProps["size"];
|
|
68
|
+
/** Must throw on failure; the message is shown in the dialog. */
|
|
69
|
+
readonly action: () => Promise<TResult>;
|
|
70
|
+
readonly onSuccess?: (result: TResult) => void;
|
|
71
|
+
}
|
|
72
|
+
/** The confirm step of a destructive action, opened by the caller. */
|
|
73
|
+
export declare function ConfirmActionDialog<TResult>({ open, onOpenChange, title, description, confirmLabel, confirmVariant, size, action, onSuccess }: ConfirmActionDialogProps<TResult>): JSX.Element;
|
|
74
|
+
export declare function ConfirmActionButton<TResult>({ label, icon: Icon, title, description, confirmLabel, triggerVariant, confirmVariant, size, disabled, className, action, onSuccess }: ConfirmActionButtonProps<TResult>): JSX.Element;
|