@devicechain/dashboards 0.26.0 → 0.27.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/candidates.d.ts +3 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +233 -144
- package/dist/index.js.map +4 -4
- package/dist/internal/alarm-doc.d.ts +6 -0
- package/dist/queries.d.ts +19 -16
- package/dist/recording.d.ts +5 -0
- package/dist/slots.d.ts +2 -1
- package/dist/types.d.ts +5 -0
- package/dist/viewer-bindings.d.ts +4 -0
- package/package.json +3 -3
package/dist/candidates.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { MemberResolver } from './context';
|
|
2
|
-
import type { DashboardDefinition, EntityCandidateLister, SelectionCandidate, SlotBinding } from './types';
|
|
2
|
+
import type { DashboardDefinition, EntityCandidateLister, EntityListKind, SelectionCandidate, SlotBinding, SlotDefinition } from './types';
|
|
3
|
+
export declare const listEntities: (lister: EntityCandidateLister, kind: EntityListKind, typeToken: string | undefined) => ReturnType<EntityCandidateLister>;
|
|
4
|
+
export declare function slotTypeFilter(def: SlotDefinition, targetType: string): string | undefined;
|
|
3
5
|
export declare function resolveSlotCandidates(definition: DashboardDefinition, slot: string, bindings: Record<string, SlotBinding>, resolver: MemberResolver, lister: EntityCandidateLister): Promise<SelectionCandidate[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export type { DashboardDefinition, BoardTimeRange, Canvas, CanvasBackground, CanvasGrid, CanvasSizing, Breakpoints, BreakpointSpec, GridLength, GridPlacement, RelativePlacement, RelativeSize, Placement, PlacementAnchor, PlacementMode, FrameBorder, FrameBorderWidth, FrameHeader, FrameRadius, FrameVariant, ResolvedFrame, SpaceTokenName, ThemeColorToken, WidgetFrameSpec, WidgetInstance, KnownWidgetInstance, ExtensionWidgetInstance, ExtensionWidgetType, ResolvedWidgetInstance, UnknownWidgetInstance, UnknownWidgetType, UnresolvedWidgetCode, UnresolvedWidgetReason, WidgetImplementationRef, WidgetType, WidgetLayout, DatasourceSelector, DeviceSelector, AnchorSelector, AnchorTarget, AnchorAggregation, DevicesSelector, RelatedTraversalSelector, SlotSelector, UnboundSelector, SlotDefinition, SlotScope, SlotBinding, SelectionTarget, SelectionCandidate, EntityCandidateLister, EntityListKind, MeasurementSample, LocationSample, DevicePresence, LocationSeries, LocationSelection, AlarmRow, AlarmDeviceType, AlarmTypeCount, AlarmSeverityCount, CommandRow, CommandParameter, CommandParamDataType, } from './types';
|
|
1
|
+
export type { DashboardDefinition, BoardTimeRange, Canvas, CanvasBackground, CanvasGrid, CanvasSizing, Breakpoints, BreakpointSpec, GridLength, GridPlacement, RelativePlacement, RelativeSize, Placement, PlacementAnchor, PlacementMode, FrameBorder, FrameBorderWidth, FrameHeader, FrameRadius, FrameVariant, ResolvedFrame, SpaceTokenName, ThemeColorToken, WidgetFrameSpec, WidgetInstance, KnownWidgetInstance, ExtensionWidgetInstance, ExtensionWidgetType, ResolvedWidgetInstance, UnknownWidgetInstance, UnknownWidgetType, UnresolvedWidgetCode, UnresolvedWidgetReason, WidgetImplementationRef, WidgetType, WidgetLayout, DatasourceSelector, DeviceSelector, AnchorSelector, AnchorTarget, AnchorAggregation, DevicesSelector, RelatedTraversalSelector, SlotSelector, UnboundSelector, SlotDefinition, SlotCandidates, SlotScope, SlotBinding, SelectionTarget, SelectionCandidate, EntityCandidateLister, EntityListKind, MeasurementSample, LocationSample, DevicePresence, LocationSeries, LocationSelection, AlarmRow, AlarmDeviceType, AlarmTypeCount, AlarmSeverityCount, CommandRow, CommandParameter, CommandParamDataType, } from './types';
|
|
2
2
|
export { COMMAND_STATUSES, isTerminalCommandStatus, isCancellableCommandStatus, type CommandStatus, } from './command-status';
|
|
3
3
|
export { effectiveBindings, parseBindingManifest, resolveWidgetDatasource, stripDefaultBindings, type ParsedBindingManifest, } from './bindings';
|
|
4
|
+
export { hasRootAnchorSlots, resolveViewerBindings } from './viewer-bindings';
|
|
4
5
|
export { resolveContextBindings, hasScopedSlots, applySelection, bindingsWithoutScopedSlots, type MemberResolver, } from './context';
|
|
5
6
|
export { BIND_PARAM_PREFIX, parseBindParams, validateBinds, bindsToSelection, selectionToBinds, withBindParams, bindParamsOf, type BindCheck, type BindParamIssue, type ParsedBinds, } from './deep-link';
|
|
6
|
-
export { migrateToSlots, bindWidgetSlot, clearWidgetDatasource, pruneSlots, widgetBinding, widgetSlotName, sameBinding, resolveConcrete, setSlotScope, anchorSlotNames, type ConcreteSelector, } from './slots';
|
|
7
|
+
export { migrateToSlots, bindWidgetSlot, clearWidgetDatasource, pruneSlots, widgetBinding, widgetSlotName, sameBinding, resolveConcrete, setSlotScope, setSlotCandidates, anchorSlotNames, type ConcreteSelector, } from './slots';
|
|
7
8
|
export { resolveSlotCandidates } from './candidates';
|
|
8
9
|
export { createEntityLister } from './entity-lister';
|
|
9
10
|
export { WIDGET_TYPES, UNKNOWN_WIDGET_TYPE, CURRENT_SCHEMA_VERSION, PLACEMENT_ANCHORS, PLACEMENT_MODES, RESERVED_PLACEMENT_MODES, THEME_COLOR_TOKENS, SPACE_TOKEN_PX, FRAME_VARIANTS, FRAME_RADII, FRAME_BORDER_WIDTHS, FRAME_HEADERS, } from './types';
|
|
@@ -12,7 +13,7 @@ export { sameLabel } from './same-label';
|
|
|
12
13
|
export { ConnectionTracker, OFFLINE_AFTER_MS, type ConnectionHandle, type HubConnectionState } from './connection';
|
|
13
14
|
export { DashboardHub, type DashboardHubConfig, type DeviceResolver, type WidgetStreamSink, type WidgetDataSource, type AlarmSubscription, type AlarmSnapshot, type AlarmStreamSink, type CommandSubscription, type CommandSnapshot, type CommandStreamSink, type CommandDispatch, type LocationSubscription, type LocationSnapshot, type LocationStreamSink, type WidgetActions, } from './hub';
|
|
14
15
|
export { SyntheticDataSource, SYNTHETIC_GENERATORS, type SyntheticGenerator, type SyntheticDataSourceConfig, } from './synthetic';
|
|
15
|
-
export { RECORDING_FORMAT_VERSION, RECORDING_FORMAT_VERSIONS, RECORDING_KIND, RecordingFormatError, parseBoardRecording, recordedWallTimeMs, recordingBounds, simulationScaleAt, type BoardRecording, type RecordedAlarm, type RecordedAlarmEvent, type RecordedAlarmSnapshot, type RecordedChannels, type RecordedChapter, type RecordedClockSegment, type RecordedDevice, type RecordedLocationColumns, type RecordedMeasurementColumns, } from './recording';
|
|
16
|
+
export { RECORDING_FORMAT_VERSION, RECORDING_FORMAT_VERSIONS, RECORDING_KIND, RecordingFormatError, parseBoardRecording, recordedWallTimeMs, recordingBounds, simulationScaleAt, type BoardRecording, type RecordedAnchor, type RecordedAlarm, type RecordedAlarmEvent, type RecordedAlarmSnapshot, type RecordedChannels, type RecordedChapter, type RecordedClockSegment, type RecordedDevice, type RecordedLocationColumns, type RecordedMeasurementColumns, } from './recording';
|
|
16
17
|
export { PLAYBACK_RATES, RECORDED_HISTORY_WINDOW_MS, NotInRecordingError, RecordedClock, RecordedDataSource, createRecordedClock, createRecordedLister, createRecordedResolver, retimeShiftMs, type ClockEvent, type ClockTicker, type PlaybackRate, type RecordedChannel, type RecordedSiteOptions, type RecordedSourceOptions, } from './recorded';
|
|
17
18
|
export { parseDashboardDefinition, type ParseDefinitionOptions, parseSlotBinding, serializeDefinition, storedDefinition, isDirty, withoutConversionMark, generateWidgetId, canScopeSlot, DashboardDefinitionError, BASE_BREAKPOINT, } from './definition';
|
|
18
19
|
export { basePlacement, clampSpan, moveWidget, resizeWidget, setWidgetPlacement, deleteWidget, setTitle, setCanvasGrid, setCanvasSizing, setCanvasDensity, updateWidget, addWidget, canHostRelative, fitToLimits, formatSpan, OFFSET_STEP, OFFSET_STEP_FINE, placeOnGrid, placeRelative, setRelativeAnchor, setRelativeOffset, snapOffset, gridPlacementToPx, pxToGridPlacement, type EditOptions, type PixelRect, type RelativeBounds, type GridGeometry, } from './editor-model';
|