@devicechain/widgets 0.14.0-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/LICENSE +201 -0
- package/README.md +159 -0
- package/dist/basemap-context.d.ts +27 -0
- package/dist/chart-options.d.ts +14 -0
- package/dist/chunks/natural-earth-data-VMKQ6LY3.js +8 -0
- package/dist/chunks/natural-earth-data-VMKQ6LY3.js.map +7 -0
- package/dist/connected-widget.d.ts +8 -0
- package/dist/dashboard-renderer.d.ts +17 -0
- package/dist/definition-options.d.ts +9 -0
- package/dist/echart.d.ts +8 -0
- package/dist/flash.d.ts +13 -0
- package/dist/format.d.ts +3 -0
- package/dist/frame.d.ts +25 -0
- package/dist/hooks.d.ts +54 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +2671 -0
- package/dist/index.js.map +7 -0
- package/dist/map-runtime-context.d.ts +91 -0
- package/dist/options.d.ts +312 -0
- package/dist/registry.d.ts +44 -0
- package/dist/theme.d.ts +9 -0
- package/dist/vite.d.ts +19 -0
- package/dist/vite.js +10 -0
- package/dist/vite.js.map +7 -0
- package/dist/widget.d.ts +16 -0
- package/dist/widgets/alarm-count.d.ts +3 -0
- package/dist/widgets/alarm-table.d.ts +3 -0
- package/dist/widgets/command-button.d.ts +3 -0
- package/dist/widgets/command-params.d.ts +7 -0
- package/dist/widgets/command-status.d.ts +3 -0
- package/dist/widgets/entity-selector.d.ts +2 -0
- package/dist/widgets/gauge.d.ts +2 -0
- package/dist/widgets/image.d.ts +2 -0
- package/dist/widgets/label.d.ts +2 -0
- package/dist/widgets/latest-card.d.ts +2 -0
- package/dist/widgets/map-geometry.d.ts +17 -0
- package/dist/widgets/map.d.ts +3 -0
- package/dist/widgets/natural-earth-data.d.ts +5 -0
- package/dist/widgets/severity.d.ts +4 -0
- package/dist/widgets/table.d.ts +2 -0
- package/dist/widgets/time-series-chart.d.ts +2 -0
- package/package.json +77 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { DashboardRenderer, widgetSubjectLabel, type DashboardRendererProps } from './dashboard-renderer';
|
|
2
|
+
export { ConnectedWidget, type ConnectedWidgetProps } from './connected-widget';
|
|
3
|
+
export { WIDGET_REGISTRY, ALARM_WIDGET_REGISTRY, CONTROL_WIDGET_REGISTRY, SELECTION_WIDGET_REGISTRY, LOCATION_WIDGET_REGISTRY, WIDGET_CHANNEL, WIDGET_BINDS_DATASOURCE, type WidgetChannel, } from './registry';
|
|
4
|
+
export { pickSample, optBoolean, type WidgetProps, type WidgetComponent } from './widget';
|
|
5
|
+
export { TenantBasemapProvider, useTenantBasemap } from './basemap-context';
|
|
6
|
+
export { MapRuntimeProvider, useMapRuntime, type MapRuntime } from './map-runtime-context';
|
|
7
|
+
export { WIDGET_OPTIONS, validateWidgetOptions, numberOptionSpec, clampNumberOption, enumOptionValues, type WidgetOptions, type WidgetOptionSpecs, type OptionSpec, type StringOptionSpec, type NumberOptionSpec, type BooleanOptionSpec, type EnumOptionSpec, type OptionIssue, type OptionIssueCode, } from './options';
|
|
8
|
+
export { validateDefinitionOptions, stripUnknownOptions, type DefinitionOptionIssue, } from './definition-options';
|
|
9
|
+
export { useFlashOnChange, flashTextStyle, flashBackgroundStyle, FlashValue, type FlashDirection, } from './flash';
|
|
10
|
+
export { LatestCard } from './widgets/latest-card';
|
|
11
|
+
export { Gauge } from './widgets/gauge';
|
|
12
|
+
export { TimeSeriesChart } from './widgets/time-series-chart';
|
|
13
|
+
export { Table } from './widgets/table';
|
|
14
|
+
export { Label } from './widgets/label';
|
|
15
|
+
export { Image } from './widgets/image';
|
|
16
|
+
export { AlarmTable } from './widgets/alarm-table';
|
|
17
|
+
export { AlarmCount } from './widgets/alarm-count';
|
|
18
|
+
export { CommandButton } from './widgets/command-button';
|
|
19
|
+
export { EntitySelector } from './widgets/entity-selector';
|
|
20
|
+
export { MapWidget } from './widgets/map';
|
|
21
|
+
export { placeable, projectToPanel, describePosition, formatDegrees, rasterStyleFor, landStyleFrom, loadLandStyle, BUNDLED_BASEMAP_ATTRIBUTION, type PlaceableLocation, type PanelPoint, } from './widgets/map-geometry';
|
|
22
|
+
export { severityColor, severityLabel, severityRank, highestSeverity, } from './widgets/severity';
|
|
23
|
+
export { commandStatusColor, commandStatusLabel, isTerminalStatus } from './widgets/command-status';
|
|
24
|
+
export { parseParameterSchema, defaultValues, validateParams, buildPayload, isScalar, } from './widgets/command-params';
|
|
25
|
+
export { WidgetFrame, WidgetSubjectProvider, WidgetSelectProvider, useWidgetSelect, WidgetCandidatesProvider, useWidgetCandidates, type WidgetFrameProps, type WidgetSelect, type WidgetCandidates, } from './frame';
|
|
26
|
+
export { EChart, type EChartOption } from './echart';
|
|
27
|
+
export { useMeasurementStream, useAlarmStream, useCommandStream, useLocationStream, useDatasourceAvailability, useResolvedBindings, useSlotCandidates, useCandidates, useChartTheme, type MeasurementStreamState, type AlarmStreamState, type CommandStreamState, type LocationStreamState, type CandidatesState, type DatasourceAvailability, } from './hooks';
|
|
28
|
+
export { buildLineOption, buildGaugeOption, type LineChartOptions, type GaugeChartOptions, } from './chart-options';
|
|
29
|
+
export { css, resolveChartTheme, type ChartTheme, type ThemeVar } from './theme';
|