@oicl/openbridge-webcomponents-svelte 2.0.0-next.94 → 2.0.0-next.95
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/bars-graphs/area-graph/ObcAreaGraph.svelte +9 -5
- package/dist/bars-graphs/area-graph/ObcAreaGraph.svelte.d.ts +9 -7
- package/dist/bars-graphs/line-graph/ObcLineGraph.svelte +9 -5
- package/dist/bars-graphs/line-graph/ObcLineGraph.svelte.d.ts +9 -7
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte +9 -5
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +9 -7
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte +9 -5
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte.d.ts +9 -7
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
3
|
+
export type {ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
4
4
|
export type {ChartDataset} from 'chart.js';
|
|
5
5
|
export type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
6
|
export type {AreaFillMode} from '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';
|
|
8
8
|
import { setProperties } from "../../util.js";
|
|
9
|
-
import type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
9
|
+
import type {ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
10
10
|
import type {ChartDataset} from 'chart.js';
|
|
11
11
|
import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
12
12
|
import type {AreaFillMode} from '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';
|
|
@@ -15,10 +15,12 @@ import type {AreaFillMode} from '@oicl/openbridge-webcomponents/dist/bars-graphs
|
|
|
15
15
|
export interface Props {
|
|
16
16
|
class?: string;
|
|
17
17
|
style?: string;
|
|
18
|
-
/** Simple single-series data
|
|
18
|
+
/** Simple single-series data. `{label, value}` items for the category axis;
|
|
19
|
+
`{x, value}` items for time/number axes (x: epoch ms, ISO string, Date,
|
|
20
|
+
or Temporal object). Points are drawn in array order (no sorting). */
|
|
19
21
|
data?: ChartLineDataItem[];
|
|
20
22
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
21
|
-
datasets?: ChartDataset<"line",
|
|
23
|
+
datasets?: ChartDataset<"line", ChartLinePoint[]>[] | undefined;
|
|
22
24
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
23
25
|
labels?: (string | number)[] | undefined;
|
|
24
26
|
/** Custom color palette (CSS variable names or color strings). */
|
|
@@ -41,7 +43,9 @@ This value is passed down to external scales to determine their 1:1 Figma design
|
|
|
41
43
|
At this reference size, scales render at native size; above/below they scale proportionally.
|
|
42
44
|
Default: 384 (matches Figma design baseline). */
|
|
43
45
|
scaleReferenceSize?: number;
|
|
44
|
-
/** X-axis mode: 'category' for labeled data points
|
|
46
|
+
/** X-axis mode: 'category' for labeled, evenly spaced data points; 'time'
|
|
47
|
+
for time-based data positioned proportionally; 'number' for plain
|
|
48
|
+
numeric x-values. */
|
|
45
49
|
xAxisType?: XAxisType;
|
|
46
50
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
47
51
|
yAxisPosition?: YAxisPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';
|
|
2
|
-
import type { ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
2
|
+
import type { ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
3
3
|
import type { ChartDataset } from 'chart.js';
|
|
4
4
|
import type { InstrumentState, Priority, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
import type { AreaFillMode } from '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';
|
|
@@ -7,13 +7,12 @@ import type { Snippet } from 'svelte';
|
|
|
7
7
|
export interface Props {
|
|
8
8
|
class?: string;
|
|
9
9
|
style?: string;
|
|
10
|
-
/** Simple single-series data
|
|
10
|
+
/** Simple single-series data. `{label, value}` items for the category axis;
|
|
11
|
+
`{x, value}` items for time/number axes (x: epoch ms, ISO string, Date,
|
|
12
|
+
or Temporal object). Points are drawn in array order (no sorting). */
|
|
11
13
|
data?: ChartLineDataItem[];
|
|
12
14
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
13
|
-
datasets?: ChartDataset<"line",
|
|
14
|
-
x: string | number | Date;
|
|
15
|
-
y: number;
|
|
16
|
-
})[]>[] | undefined;
|
|
15
|
+
datasets?: ChartDataset<"line", ChartLinePoint[]>[] | undefined;
|
|
17
16
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
18
17
|
labels?: (string | number)[] | undefined;
|
|
19
18
|
/** Custom color palette (CSS variable names or color strings). */
|
|
@@ -36,7 +35,9 @@ This value is passed down to external scales to determine their 1:1 Figma design
|
|
|
36
35
|
At this reference size, scales render at native size; above/below they scale proportionally.
|
|
37
36
|
Default: 384 (matches Figma design baseline). */
|
|
38
37
|
scaleReferenceSize?: number;
|
|
39
|
-
/** X-axis mode: 'category' for labeled data points
|
|
38
|
+
/** X-axis mode: 'category' for labeled, evenly spaced data points; 'time'
|
|
39
|
+
for time-based data positioned proportionally; 'number' for plain
|
|
40
|
+
numeric x-values. */
|
|
40
41
|
xAxisType?: XAxisType;
|
|
41
42
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
42
43
|
yAxisPosition?: YAxisPosition;
|
|
@@ -118,6 +119,7 @@ export interface Slots {
|
|
|
118
119
|
type $$ComponentProps = Props & Events & Slots;
|
|
119
120
|
declare const ObcAreaGraph: import("svelte").Component<$$ComponentProps, {
|
|
120
121
|
ChartLineDataItem: typeof ChartLineDataItem;
|
|
122
|
+
ChartLinePoint: typeof ChartLinePoint;
|
|
121
123
|
XAxisType: typeof XAxisType;
|
|
122
124
|
YAxisPosition: typeof YAxisPosition;
|
|
123
125
|
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
3
|
+
export type {ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
4
4
|
export type {ChartDataset} from 'chart.js';
|
|
5
5
|
export type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/line-graph/line-graph.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
|
-
import type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
8
|
+
import type {ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
9
9
|
import type {ChartDataset} from 'chart.js';
|
|
10
10
|
import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
11
11
|
import type { Snippet } from 'svelte';
|
|
@@ -13,10 +13,12 @@ import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '
|
|
|
13
13
|
export interface Props {
|
|
14
14
|
class?: string;
|
|
15
15
|
style?: string;
|
|
16
|
-
/** Simple single-series data
|
|
16
|
+
/** Simple single-series data. `{label, value}` items for the category axis;
|
|
17
|
+
`{x, value}` items for time/number axes (x: epoch ms, ISO string, Date,
|
|
18
|
+
or Temporal object). Points are drawn in array order (no sorting). */
|
|
17
19
|
data?: ChartLineDataItem[];
|
|
18
20
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
19
|
-
datasets?: ChartDataset<"line",
|
|
21
|
+
datasets?: ChartDataset<"line", ChartLinePoint[]>[] | undefined;
|
|
20
22
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
21
23
|
labels?: (string | number)[] | undefined;
|
|
22
24
|
/** Custom color palette (CSS variable names or color strings). */
|
|
@@ -39,7 +41,9 @@ This value is passed down to external scales to determine their 1:1 Figma design
|
|
|
39
41
|
At this reference size, scales render at native size; above/below they scale proportionally.
|
|
40
42
|
Default: 384 (matches Figma design baseline). */
|
|
41
43
|
scaleReferenceSize?: number;
|
|
42
|
-
/** X-axis mode: 'category' for labeled data points
|
|
44
|
+
/** X-axis mode: 'category' for labeled, evenly spaced data points; 'time'
|
|
45
|
+
for time-based data positioned proportionally; 'number' for plain
|
|
46
|
+
numeric x-values. */
|
|
43
47
|
xAxisType?: XAxisType;
|
|
44
48
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
45
49
|
yAxisPosition?: YAxisPosition;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/line-graph/line-graph.js';
|
|
2
|
-
import type { ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
2
|
+
import type { ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
3
3
|
import type { ChartDataset } from 'chart.js';
|
|
4
4
|
import type { InstrumentState, Priority, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
7
7
|
class?: string;
|
|
8
8
|
style?: string;
|
|
9
|
-
/** Simple single-series data
|
|
9
|
+
/** Simple single-series data. `{label, value}` items for the category axis;
|
|
10
|
+
`{x, value}` items for time/number axes (x: epoch ms, ISO string, Date,
|
|
11
|
+
or Temporal object). Points are drawn in array order (no sorting). */
|
|
10
12
|
data?: ChartLineDataItem[];
|
|
11
13
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
12
|
-
datasets?: ChartDataset<"line",
|
|
13
|
-
x: string | number | Date;
|
|
14
|
-
y: number;
|
|
15
|
-
})[]>[] | undefined;
|
|
14
|
+
datasets?: ChartDataset<"line", ChartLinePoint[]>[] | undefined;
|
|
16
15
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
17
16
|
labels?: (string | number)[] | undefined;
|
|
18
17
|
/** Custom color palette (CSS variable names or color strings). */
|
|
@@ -35,7 +34,9 @@ This value is passed down to external scales to determine their 1:1 Figma design
|
|
|
35
34
|
At this reference size, scales render at native size; above/below they scale proportionally.
|
|
36
35
|
Default: 384 (matches Figma design baseline). */
|
|
37
36
|
scaleReferenceSize?: number;
|
|
38
|
-
/** X-axis mode: 'category' for labeled data points
|
|
37
|
+
/** X-axis mode: 'category' for labeled, evenly spaced data points; 'time'
|
|
38
|
+
for time-based data positioned proportionally; 'number' for plain
|
|
39
|
+
numeric x-values. */
|
|
39
40
|
xAxisType?: XAxisType;
|
|
40
41
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
41
42
|
yAxisPosition?: YAxisPosition;
|
|
@@ -109,6 +110,7 @@ export interface Slots {
|
|
|
109
110
|
type $$ComponentProps = Props & Events & Slots;
|
|
110
111
|
declare const ObcLineGraph: import("svelte").Component<$$ComponentProps, {
|
|
111
112
|
ChartLineDataItem: typeof ChartLineDataItem;
|
|
113
|
+
ChartLinePoint: typeof ChartLinePoint;
|
|
112
114
|
XAxisType: typeof XAxisType;
|
|
113
115
|
YAxisPosition: typeof YAxisPosition;
|
|
114
116
|
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
3
|
+
export type {ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
4
4
|
export type {ChartDataset} from 'chart.js';
|
|
5
5
|
export type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
|
-
import type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
8
|
+
import type {ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
9
9
|
import type {ChartDataset} from 'chart.js';
|
|
10
10
|
import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
11
11
|
import type { Snippet } from 'svelte';
|
|
@@ -13,10 +13,12 @@ import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '
|
|
|
13
13
|
export interface Props {
|
|
14
14
|
class?: string;
|
|
15
15
|
style?: string;
|
|
16
|
-
/** Simple single-series data
|
|
16
|
+
/** Simple single-series data. `{label, value}` items for the category axis;
|
|
17
|
+
`{x, value}` items for time/number axes (x: epoch ms, ISO string, Date,
|
|
18
|
+
or Temporal object). Points are drawn in array order (no sorting). */
|
|
17
19
|
data?: ChartLineDataItem[];
|
|
18
20
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
19
|
-
datasets?: ChartDataset<"line",
|
|
21
|
+
datasets?: ChartDataset<"line", ChartLinePoint[]>[] | undefined;
|
|
20
22
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
21
23
|
labels?: (string | number)[] | undefined;
|
|
22
24
|
/** Custom color palette (CSS variable names or color strings). */
|
|
@@ -39,7 +41,9 @@ This value is passed down to external scales to determine their 1:1 Figma design
|
|
|
39
41
|
At this reference size, scales render at native size; above/below they scale proportionally.
|
|
40
42
|
Default: 384 (matches Figma design baseline). */
|
|
41
43
|
scaleReferenceSize?: number;
|
|
42
|
-
/** X-axis mode: 'category' for labeled data points
|
|
44
|
+
/** X-axis mode: 'category' for labeled, evenly spaced data points; 'time'
|
|
45
|
+
for time-based data positioned proportionally; 'number' for plain
|
|
46
|
+
numeric x-values. */
|
|
43
47
|
xAxisType?: XAxisType;
|
|
44
48
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
45
49
|
yAxisPosition?: YAxisPosition;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
2
|
-
import type { ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
2
|
+
import type { ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
3
3
|
import type { ChartDataset } from 'chart.js';
|
|
4
4
|
import type { InstrumentState, Priority, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
7
7
|
class?: string;
|
|
8
8
|
style?: string;
|
|
9
|
-
/** Simple single-series data
|
|
9
|
+
/** Simple single-series data. `{label, value}` items for the category axis;
|
|
10
|
+
`{x, value}` items for time/number axes (x: epoch ms, ISO string, Date,
|
|
11
|
+
or Temporal object). Points are drawn in array order (no sorting). */
|
|
10
12
|
data?: ChartLineDataItem[];
|
|
11
13
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
12
|
-
datasets?: ChartDataset<"line",
|
|
13
|
-
x: string | number | Date;
|
|
14
|
-
y: number;
|
|
15
|
-
})[]>[] | undefined;
|
|
14
|
+
datasets?: ChartDataset<"line", ChartLinePoint[]>[] | undefined;
|
|
16
15
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
17
16
|
labels?: (string | number)[] | undefined;
|
|
18
17
|
/** Custom color palette (CSS variable names or color strings). */
|
|
@@ -35,7 +34,9 @@ This value is passed down to external scales to determine their 1:1 Figma design
|
|
|
35
34
|
At this reference size, scales render at native size; above/below they scale proportionally.
|
|
36
35
|
Default: 384 (matches Figma design baseline). */
|
|
37
36
|
scaleReferenceSize?: number;
|
|
38
|
-
/** X-axis mode: 'category' for labeled data points
|
|
37
|
+
/** X-axis mode: 'category' for labeled, evenly spaced data points; 'time'
|
|
38
|
+
for time-based data positioned proportionally; 'number' for plain
|
|
39
|
+
numeric x-values. */
|
|
39
40
|
xAxisType?: XAxisType;
|
|
40
41
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
41
42
|
yAxisPosition?: YAxisPosition;
|
|
@@ -109,6 +110,7 @@ export interface Slots {
|
|
|
109
110
|
type $$ComponentProps = Props & Events & Slots;
|
|
110
111
|
declare const ObcChartLineBase: import("svelte").Component<$$ComponentProps, {
|
|
111
112
|
ChartLineDataItem: typeof ChartLineDataItem;
|
|
113
|
+
ChartLinePoint: typeof ChartLinePoint;
|
|
112
114
|
XAxisType: typeof XAxisType;
|
|
113
115
|
YAxisPosition: typeof YAxisPosition;
|
|
114
116
|
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
3
|
+
export type {ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
4
4
|
export type {ChartDataset} from 'chart.js';
|
|
5
5
|
export type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
6
|
export type {ScaleType, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
7
7
|
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
8
8
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js';
|
|
9
9
|
import { setProperties } from "../../util.js";
|
|
10
|
-
import type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
10
|
+
import type {ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
11
11
|
import type {ChartDataset} from 'chart.js';
|
|
12
12
|
import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
13
13
|
import type {ScaleType, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
@@ -38,10 +38,12 @@ regardless of instrument state. */
|
|
|
38
38
|
setpointOverride?: boolean;
|
|
39
39
|
/** Enable CSS-animated confirm transition. */
|
|
40
40
|
animateSetpoint?: boolean;
|
|
41
|
-
/** Simple single-series data
|
|
41
|
+
/** Simple single-series data. `{label, value}` items for the category axis;
|
|
42
|
+
`{x, value}` items for time/number axes (x: epoch ms, ISO string, Date,
|
|
43
|
+
or Temporal object). Points are drawn in array order (no sorting). */
|
|
42
44
|
data?: ChartLineDataItem[];
|
|
43
45
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
44
|
-
datasets?: ChartDataset<"line",
|
|
46
|
+
datasets?: ChartDataset<"line", ChartLinePoint[]>[] | undefined;
|
|
45
47
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
46
48
|
labels?: (string | number)[] | undefined;
|
|
47
49
|
/** Custom color palette (CSS variable names or color strings). */
|
|
@@ -64,7 +66,9 @@ This value is passed down to external scales to determine their 1:1 Figma design
|
|
|
64
66
|
At this reference size, scales render at native size; above/below they scale proportionally.
|
|
65
67
|
Default: 384 (matches Figma design baseline). */
|
|
66
68
|
scaleReferenceSize?: number;
|
|
67
|
-
/** X-axis mode: 'category' for labeled data points
|
|
69
|
+
/** X-axis mode: 'category' for labeled, evenly spaced data points; 'time'
|
|
70
|
+
for time-based data positioned proportionally; 'number' for plain
|
|
71
|
+
numeric x-values. */
|
|
68
72
|
xAxisType?: XAxisType;
|
|
69
73
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
70
74
|
yAxisPosition?: YAxisPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js';
|
|
2
|
-
import type { ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
2
|
+
import type { ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
3
3
|
import type { ChartDataset } from 'chart.js';
|
|
4
4
|
import type { InstrumentState, Priority, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
import type { ScaleType, FillMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
@@ -29,13 +29,12 @@ regardless of instrument state. */
|
|
|
29
29
|
setpointOverride?: boolean;
|
|
30
30
|
/** Enable CSS-animated confirm transition. */
|
|
31
31
|
animateSetpoint?: boolean;
|
|
32
|
-
/** Simple single-series data
|
|
32
|
+
/** Simple single-series data. `{label, value}` items for the category axis;
|
|
33
|
+
`{x, value}` items for time/number axes (x: epoch ms, ISO string, Date,
|
|
34
|
+
or Temporal object). Points are drawn in array order (no sorting). */
|
|
33
35
|
data?: ChartLineDataItem[];
|
|
34
36
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
35
|
-
datasets?: ChartDataset<"line",
|
|
36
|
-
x: string | number | Date;
|
|
37
|
-
y: number;
|
|
38
|
-
})[]>[] | undefined;
|
|
37
|
+
datasets?: ChartDataset<"line", ChartLinePoint[]>[] | undefined;
|
|
39
38
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
40
39
|
labels?: (string | number)[] | undefined;
|
|
41
40
|
/** Custom color palette (CSS variable names or color strings). */
|
|
@@ -58,7 +57,9 @@ This value is passed down to external scales to determine their 1:1 Figma design
|
|
|
58
57
|
At this reference size, scales render at native size; above/below they scale proportionally.
|
|
59
58
|
Default: 384 (matches Figma design baseline). */
|
|
60
59
|
scaleReferenceSize?: number;
|
|
61
|
-
/** X-axis mode: 'category' for labeled data points
|
|
60
|
+
/** X-axis mode: 'category' for labeled, evenly spaced data points; 'time'
|
|
61
|
+
for time-based data positioned proportionally; 'number' for plain
|
|
62
|
+
numeric x-values. */
|
|
62
63
|
xAxisType?: XAxisType;
|
|
63
64
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
64
65
|
yAxisPosition?: YAxisPosition;
|
|
@@ -199,6 +200,7 @@ export interface Slots {
|
|
|
199
200
|
type $$ComponentProps = Props & Events & Slots;
|
|
200
201
|
declare const ObcGaugeTrend: import("svelte").Component<$$ComponentProps, {
|
|
201
202
|
ChartLineDataItem: typeof ChartLineDataItem;
|
|
203
|
+
ChartLinePoint: typeof ChartLinePoint;
|
|
202
204
|
XAxisType: typeof XAxisType;
|
|
203
205
|
YAxisPosition: typeof YAxisPosition;
|
|
204
206
|
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.95",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run prepack",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
34
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.94"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|