@oicl/openbridge-webcomponents-svelte 2.0.0-next.151 → 2.0.0-next.152
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 +14 -2
- package/dist/bars-graphs/area-graph/ObcAreaGraph.svelte.d.ts +15 -1
- package/dist/bars-graphs/line-graph/ObcLineGraph.svelte +14 -2
- package/dist/bars-graphs/line-graph/ObcLineGraph.svelte.d.ts +15 -1
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte +6 -0
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte.d.ts +6 -0
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte +6 -0
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte.d.ts +6 -0
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte +14 -2
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +15 -1
- package/dist/components/alert-button/ObcAlertButton.svelte +4 -2
- package/dist/components/alert-button/ObcAlertButton.svelte.d.ts +4 -1
- package/dist/components/alert-frame/ObcAlertFrame.svelte +8 -4
- package/dist/components/alert-frame/ObcAlertFrame.svelte.d.ts +8 -2
- package/dist/components/alert-icon/ObcAlertIcon.svelte +5 -3
- package/dist/components/alert-icon/ObcAlertIcon.svelte.d.ts +4 -1
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte +14 -2
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte.d.ts +15 -1
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ChartLineDataItem, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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';
|
|
@@ -41,6 +41,12 @@ import type {AreaFillMode} from '@oicl/openbridge-webcomponents/dist/bars-graphs
|
|
|
41
41
|
yAxisPosition?: YAxisPosition;
|
|
42
42
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
43
43
|
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference.
|
|
46
|
+
*
|
|
47
|
+
* Available when `xAxisType!=category`.
|
|
48
|
+
*/
|
|
49
|
+
xAxis?: ChartLineXAxisConfig | undefined;
|
|
44
50
|
/** Show grid lines. */
|
|
45
51
|
showGrid?: boolean;
|
|
46
52
|
/**
|
|
@@ -73,6 +79,12 @@ and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
|
73
79
|
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
74
80
|
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
75
81
|
hasLabelPadding?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false.
|
|
84
|
+
*
|
|
85
|
+
* Available when `hasLabelPadding==true`.
|
|
86
|
+
*/
|
|
87
|
+
rangeLabels?: RangeLabels;
|
|
76
88
|
/** Show point markers on data points. Default: false. */
|
|
77
89
|
showPoints?: boolean;
|
|
78
90
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/area-graph/area-graph.js';
|
|
2
|
-
import type { ChartLineDataItem, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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';
|
|
@@ -33,6 +33,12 @@ export interface Props {
|
|
|
33
33
|
yAxisPosition?: YAxisPosition;
|
|
34
34
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
35
35
|
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference.
|
|
38
|
+
*
|
|
39
|
+
* Available when `xAxisType!=category`.
|
|
40
|
+
*/
|
|
41
|
+
xAxis?: ChartLineXAxisConfig | undefined;
|
|
36
42
|
/** Show grid lines. */
|
|
37
43
|
showGrid?: boolean;
|
|
38
44
|
/**
|
|
@@ -65,6 +71,12 @@ and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
|
65
71
|
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
66
72
|
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
67
73
|
hasLabelPadding?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false.
|
|
76
|
+
*
|
|
77
|
+
* Available when `hasLabelPadding==true`.
|
|
78
|
+
*/
|
|
79
|
+
rangeLabels?: RangeLabels;
|
|
68
80
|
/** Show point markers on data points. Default: false. */
|
|
69
81
|
showPoints?: boolean;
|
|
70
82
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -123,6 +135,8 @@ declare const ObcAreaGraph: import("svelte").Component<$$ComponentProps, {
|
|
|
123
135
|
XAxisType: typeof XAxisType;
|
|
124
136
|
YAxisPosition: typeof YAxisPosition;
|
|
125
137
|
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
|
138
|
+
ChartLineXAxisConfig: typeof ChartLineXAxisConfig;
|
|
139
|
+
RangeLabels: typeof RangeLabels;
|
|
126
140
|
LineMode: typeof LineMode;
|
|
127
141
|
TimeDisplay: typeof TimeDisplay;
|
|
128
142
|
ChartDataset: typeof ChartDataset;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ChartLineDataItem, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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';
|
|
@@ -39,6 +39,12 @@ import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '
|
|
|
39
39
|
yAxisPosition?: YAxisPosition;
|
|
40
40
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
41
41
|
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference.
|
|
44
|
+
*
|
|
45
|
+
* Available when `xAxisType!=category`.
|
|
46
|
+
*/
|
|
47
|
+
xAxis?: ChartLineXAxisConfig | undefined;
|
|
42
48
|
/** Show grid lines. */
|
|
43
49
|
showGrid?: boolean;
|
|
44
50
|
/**
|
|
@@ -71,6 +77,12 @@ and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
|
71
77
|
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
72
78
|
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
73
79
|
hasLabelPadding?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false.
|
|
82
|
+
*
|
|
83
|
+
* Available when `hasLabelPadding==true`.
|
|
84
|
+
*/
|
|
85
|
+
rangeLabels?: RangeLabels;
|
|
74
86
|
/** Show point markers on data points. Default: false. */
|
|
75
87
|
showPoints?: boolean;
|
|
76
88
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/line-graph/line-graph.js';
|
|
2
|
-
import type { ChartLineDataItem, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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';
|
|
@@ -32,6 +32,12 @@ export interface Props {
|
|
|
32
32
|
yAxisPosition?: YAxisPosition;
|
|
33
33
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
34
34
|
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference.
|
|
37
|
+
*
|
|
38
|
+
* Available when `xAxisType!=category`.
|
|
39
|
+
*/
|
|
40
|
+
xAxis?: ChartLineXAxisConfig | undefined;
|
|
35
41
|
/** Show grid lines. */
|
|
36
42
|
showGrid?: boolean;
|
|
37
43
|
/**
|
|
@@ -64,6 +70,12 @@ and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
|
64
70
|
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
65
71
|
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
66
72
|
hasLabelPadding?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false.
|
|
75
|
+
*
|
|
76
|
+
* Available when `hasLabelPadding==true`.
|
|
77
|
+
*/
|
|
78
|
+
rangeLabels?: RangeLabels;
|
|
67
79
|
/** Show point markers on data points. Default: false. */
|
|
68
80
|
showPoints?: boolean;
|
|
69
81
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -115,6 +127,8 @@ declare const ObcLineGraph: import("svelte").Component<$$ComponentProps, {
|
|
|
115
127
|
XAxisType: typeof XAxisType;
|
|
116
128
|
YAxisPosition: typeof YAxisPosition;
|
|
117
129
|
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
|
130
|
+
ChartLineXAxisConfig: typeof ChartLineXAxisConfig;
|
|
131
|
+
RangeLabels: typeof RangeLabels;
|
|
118
132
|
LineMode: typeof LineMode;
|
|
119
133
|
TimeDisplay: typeof TimeDisplay;
|
|
120
134
|
ChartDataset: typeof ChartDataset;
|
|
@@ -61,6 +61,12 @@ animateSetpoint?: boolean;
|
|
|
61
61
|
/** Show scale tickmarks */
|
|
62
62
|
hasScale?: boolean;
|
|
63
63
|
showLabels?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Label the main tickmarks (min / 0 / max) instead of the primary interval ladder, for a scale too short for a ladder. A chart sets it on its slotted scales below its label threshold.
|
|
66
|
+
*
|
|
67
|
+
* Available when `showLabels==true`.
|
|
68
|
+
*/
|
|
69
|
+
showMainTickmarkLabels?: boolean;
|
|
64
70
|
/** Show bar */
|
|
65
71
|
hasBar?: boolean;
|
|
66
72
|
/** Show background behind the scale tickmarks. */
|
|
@@ -54,6 +54,12 @@ regardless of instrument state. */
|
|
|
54
54
|
/** Show scale tickmarks */
|
|
55
55
|
hasScale?: boolean;
|
|
56
56
|
showLabels?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Label the main tickmarks (min / 0 / max) instead of the primary interval ladder, for a scale too short for a ladder. A chart sets it on its slotted scales below its label threshold.
|
|
59
|
+
*
|
|
60
|
+
* Available when `showLabels==true`.
|
|
61
|
+
*/
|
|
62
|
+
showMainTickmarkLabels?: boolean;
|
|
57
63
|
/** Show bar */
|
|
58
64
|
hasBar?: boolean;
|
|
59
65
|
/** Show background behind the scale tickmarks. */
|
|
@@ -57,6 +57,12 @@ animateSetpoint?: boolean;
|
|
|
57
57
|
/** Show scale tickmarks */
|
|
58
58
|
hasScale?: boolean;
|
|
59
59
|
showLabels?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Label the main tickmarks (min / 0 / max) instead of the primary interval ladder, for a scale too short for a ladder. A chart sets it on its slotted scales below its label threshold.
|
|
62
|
+
*
|
|
63
|
+
* Available when `showLabels==true`.
|
|
64
|
+
*/
|
|
65
|
+
showMainTickmarkLabels?: boolean;
|
|
60
66
|
/** Show bar */
|
|
61
67
|
hasBar?: boolean;
|
|
62
68
|
/** Show background behind the scale tickmarks. */
|
|
@@ -50,6 +50,12 @@ regardless of instrument state. */
|
|
|
50
50
|
/** Show scale tickmarks */
|
|
51
51
|
hasScale?: boolean;
|
|
52
52
|
showLabels?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Label the main tickmarks (min / 0 / max) instead of the primary interval ladder, for a scale too short for a ladder. A chart sets it on its slotted scales below its label threshold.
|
|
55
|
+
*
|
|
56
|
+
* Available when `showLabels==true`.
|
|
57
|
+
*/
|
|
58
|
+
showMainTickmarkLabels?: boolean;
|
|
53
59
|
/** Show bar */
|
|
54
60
|
hasBar?: boolean;
|
|
55
61
|
/** Show background behind the scale tickmarks. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ChartLineDataItem, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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';
|
|
@@ -39,6 +39,12 @@ import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '
|
|
|
39
39
|
yAxisPosition?: YAxisPosition;
|
|
40
40
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
41
41
|
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference.
|
|
44
|
+
*
|
|
45
|
+
* Available when `xAxisType!=category`.
|
|
46
|
+
*/
|
|
47
|
+
xAxis?: ChartLineXAxisConfig | undefined;
|
|
42
48
|
/** Show grid lines. */
|
|
43
49
|
showGrid?: boolean;
|
|
44
50
|
/**
|
|
@@ -71,6 +77,12 @@ and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
|
71
77
|
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
72
78
|
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
73
79
|
hasLabelPadding?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false.
|
|
82
|
+
*
|
|
83
|
+
* Available when `hasLabelPadding==true`.
|
|
84
|
+
*/
|
|
85
|
+
rangeLabels?: RangeLabels;
|
|
74
86
|
/** Show point markers on data points. Default: false. */
|
|
75
87
|
showPoints?: boolean;
|
|
76
88
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@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';
|
|
2
|
+
import type { ChartLineDataItem, ChartLinePoint, XAxisType, YAxisPosition, ChartLineYAxisConfig, ChartLineXAxisConfig, RangeLabels, 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';
|
|
@@ -32,6 +32,12 @@ export interface Props {
|
|
|
32
32
|
yAxisPosition?: YAxisPosition;
|
|
33
33
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
34
34
|
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference.
|
|
37
|
+
*
|
|
38
|
+
* Available when `xAxisType!=category`.
|
|
39
|
+
*/
|
|
40
|
+
xAxis?: ChartLineXAxisConfig | undefined;
|
|
35
41
|
/** Show grid lines. */
|
|
36
42
|
showGrid?: boolean;
|
|
37
43
|
/**
|
|
@@ -64,6 +70,12 @@ and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
|
64
70
|
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
65
71
|
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
66
72
|
hasLabelPadding?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false.
|
|
75
|
+
*
|
|
76
|
+
* Available when `hasLabelPadding==true`.
|
|
77
|
+
*/
|
|
78
|
+
rangeLabels?: RangeLabels;
|
|
67
79
|
/** Show point markers on data points. Default: false. */
|
|
68
80
|
showPoints?: boolean;
|
|
69
81
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -115,6 +127,8 @@ declare const ObcChartLineBase: import("svelte").Component<$$ComponentProps, {
|
|
|
115
127
|
XAxisType: typeof XAxisType;
|
|
116
128
|
YAxisPosition: typeof YAxisPosition;
|
|
117
129
|
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
|
130
|
+
ChartLineXAxisConfig: typeof ChartLineXAxisConfig;
|
|
131
|
+
RangeLabels: typeof RangeLabels;
|
|
118
132
|
LineMode: typeof LineMode;
|
|
119
133
|
TimeDisplay: typeof TimeDisplay;
|
|
120
134
|
ChartDataset: typeof ChartDataset;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
3
|
+
export type {AlertType, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
4
|
export type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
6
6
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
|
-
import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
7
|
+
import type {AlertType, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
8
8
|
import type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
10
10
|
|
|
@@ -47,6 +47,8 @@ counter?: boolean;
|
|
|
47
47
|
|
|
48
48
|
Blinking is only shown for alarm and warning types, not for caution. */
|
|
49
49
|
blinking?: boolean;
|
|
50
|
+
/** Flash tempo while `blinking` is on: `default` resolves from `alertType`, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. */
|
|
51
|
+
flashingSpeed?: FlashingSpeed;
|
|
50
52
|
/** Maximum width (in px) for normal/enhanced mode.
|
|
51
53
|
|
|
52
54
|
If the available width is less than this value, the button switches to flat mode.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
2
|
-
import type { AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
2
|
+
import type { AlertType, FlashingSpeed } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
3
3
|
import type { ObcAlertButtonType } from '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
4
4
|
import type { Snippet } from 'svelte';
|
|
5
5
|
export interface Props {
|
|
@@ -41,6 +41,8 @@ Only shown when there are active alerts and the button is not in flat mode. */
|
|
|
41
41
|
|
|
42
42
|
Blinking is only shown for alarm and warning types, not for caution. */
|
|
43
43
|
blinking?: boolean;
|
|
44
|
+
/** Flash tempo while `blinking` is on: `default` resolves from `alertType`, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. */
|
|
45
|
+
flashingSpeed?: FlashingSpeed;
|
|
44
46
|
/** Maximum width (in px) for normal/enhanced mode.
|
|
45
47
|
|
|
46
48
|
If the available width is less than this value, the button switches to flat mode.
|
|
@@ -62,6 +64,7 @@ export interface Slots {
|
|
|
62
64
|
type $$ComponentProps = Props & Events & Slots;
|
|
63
65
|
declare const ObcAlertButton: import("svelte").Component<$$ComponentProps, {
|
|
64
66
|
AlertType: typeof AlertType;
|
|
67
|
+
FlashingSpeed: typeof FlashingSpeed;
|
|
65
68
|
ObcAlertButtonType: typeof ObcAlertButtonType;
|
|
66
69
|
}, "">;
|
|
67
70
|
type ObcAlertButton = ReturnType<typeof ObcAlertButton>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode, AlertFrameTextSize} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
4
|
-
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
3
|
+
export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode, ObcAlertFrameFlashEffect, AlertFrameTextSize} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
4
|
+
export type {AlertType, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
7
|
import NamedSlot from "../../NamedSlot.svelte";
|
|
8
|
-
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode, AlertFrameTextSize} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
9
|
-
import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
8
|
+
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode, ObcAlertFrameFlashEffect, AlertFrameTextSize} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
9
|
+
import type {AlertType, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
10
10
|
import type { Snippet } from 'svelte';
|
|
11
11
|
|
|
12
12
|
export interface Props {
|
|
@@ -35,6 +35,10 @@ status?: AlertType;
|
|
|
35
35
|
- `unacked-active`: Active and not yet acknowledged; blinks.
|
|
36
36
|
- `unacked-rectified`: Condition cleared but not yet acknowledged. */
|
|
37
37
|
mode?: ObcAlertFrameMode;
|
|
38
|
+
/** Flash tempo: `default` resolves from the alert type and mode (critical/alarm/high fast, warning/medium slow, low very slow, every rectified alert very slow, caution and diagnostic fixed), `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. Acknowledged frames are always steady. */
|
|
39
|
+
flashingSpeed?: FlashingSpeed;
|
|
40
|
+
/** `outline` (default) grows the outline by 2 px while on in one step; `outline-eased` grows it over a 50 ms transition, a design-evaluation option. */
|
|
41
|
+
flashEffect?: ObcAlertFrameFlashEffect;
|
|
38
42
|
/** When true, the frame wraps and sizes itself to its slotted content instead of overlaying a fixed region. Reflected to an attribute for CSS styling. */
|
|
39
43
|
wrapContent?: boolean;
|
|
40
44
|
/** When true, the frame stretches to fill the full width of its container instead of hugging its content. Reflected to an attribute for CSS styling. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
2
|
-
import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode, AlertFrameTextSize } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
3
|
-
import type { AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
2
|
+
import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode, ObcAlertFrameFlashEffect, AlertFrameTextSize } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
3
|
+
import type { AlertType, FlashingSpeed } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
4
|
import type { Snippet } from 'svelte';
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
@@ -28,6 +28,10 @@ Default: `small-side-flip` */
|
|
|
28
28
|
- `unacked-active`: Active and not yet acknowledged; blinks.
|
|
29
29
|
- `unacked-rectified`: Condition cleared but not yet acknowledged. */
|
|
30
30
|
mode?: ObcAlertFrameMode;
|
|
31
|
+
/** Flash tempo: `default` resolves from the alert type and mode (critical/alarm/high fast, warning/medium slow, low very slow, every rectified alert very slow, caution and diagnostic fixed), `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. Acknowledged frames are always steady. */
|
|
32
|
+
flashingSpeed?: FlashingSpeed;
|
|
33
|
+
/** `outline` (default) grows the outline by 2 px while on in one step; `outline-eased` grows it over a 50 ms transition, a design-evaluation option. */
|
|
34
|
+
flashEffect?: ObcAlertFrameFlashEffect;
|
|
31
35
|
/** When true, the frame wraps and sizes itself to its slotted content instead of overlaying a fixed region. Reflected to an attribute for CSS styling. */
|
|
32
36
|
wrapContent?: boolean;
|
|
33
37
|
/** When true, the frame stretches to fill the full width of its container instead of hugging its content. Reflected to an attribute for CSS styling. */
|
|
@@ -57,8 +61,10 @@ declare const ObcAlertFrame: import("svelte").Component<$$ComponentProps, {
|
|
|
57
61
|
ObcAlertFrameType: typeof ObcAlertFrameType;
|
|
58
62
|
ObcAlertFrameThickness: typeof ObcAlertFrameThickness;
|
|
59
63
|
ObcAlertFrameMode: typeof ObcAlertFrameMode;
|
|
64
|
+
ObcAlertFrameFlashEffect: typeof ObcAlertFrameFlashEffect;
|
|
60
65
|
AlertFrameTextSize: typeof AlertFrameTextSize;
|
|
61
66
|
AlertType: typeof AlertType;
|
|
67
|
+
FlashingSpeed: typeof FlashingSpeed;
|
|
62
68
|
}, "">;
|
|
63
69
|
type ObcAlertFrame = ReturnType<typeof ObcAlertFrame>;
|
|
64
70
|
export default ObcAlertFrame;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
3
|
+
export type {AlertType, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/alert-icon/alert-icon.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
6
|
+
import type {AlertType, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
acknowledged?: boolean | undefined;
|
|
16
16
|
/** Available when `type in [Alarm, Warning, LevelCritical, LevelHigh, LevelMedium, LevelLow]`. */
|
|
17
17
|
active?: boolean | undefined;
|
|
18
|
-
silenced?: boolean | undefined
|
|
18
|
+
silenced?: boolean | undefined;
|
|
19
|
+
/** Flash tempo: `default` resolves from the alert type and state, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. Acknowledged icons are always steady. */
|
|
20
|
+
flashingSpeed?: FlashingSpeed
|
|
19
21
|
}
|
|
20
22
|
export interface Events {
|
|
21
23
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/alert-icon/alert-icon.js';
|
|
2
|
-
import type { AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
2
|
+
import type { AlertType, FlashingSpeed } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
@@ -11,6 +11,8 @@ export interface Props {
|
|
|
11
11
|
/** Available when `type in [Alarm, Warning, LevelCritical, LevelHigh, LevelMedium, LevelLow]`. */
|
|
12
12
|
active?: boolean | undefined;
|
|
13
13
|
silenced?: boolean | undefined;
|
|
14
|
+
/** Flash tempo: `default` resolves from the alert type and state, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. Acknowledged icons are always steady. */
|
|
15
|
+
flashingSpeed?: FlashingSpeed;
|
|
14
16
|
}
|
|
15
17
|
export interface Events {
|
|
16
18
|
}
|
|
@@ -20,6 +22,7 @@ export interface Slots {
|
|
|
20
22
|
type $$ComponentProps = Props & Events & Slots;
|
|
21
23
|
declare const ObcAlertIcon: import("svelte").Component<$$ComponentProps, {
|
|
22
24
|
AlertType: typeof AlertType;
|
|
25
|
+
FlashingSpeed: typeof FlashingSpeed;
|
|
23
26
|
}, "">;
|
|
24
27
|
type ObcAlertIcon = ReturnType<typeof ObcAlertIcon>;
|
|
25
28
|
export default ObcAlertIcon;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ChartLineDataItem, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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';
|
|
@@ -64,6 +64,12 @@ animateSetpoint?: boolean;
|
|
|
64
64
|
yAxisPosition?: YAxisPosition;
|
|
65
65
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
66
66
|
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference.
|
|
69
|
+
*
|
|
70
|
+
* Available when `xAxisType!=category`.
|
|
71
|
+
*/
|
|
72
|
+
xAxis?: ChartLineXAxisConfig | undefined;
|
|
67
73
|
/** Show grid lines. */
|
|
68
74
|
showGrid?: boolean;
|
|
69
75
|
/**
|
|
@@ -96,6 +102,12 @@ and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
|
96
102
|
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
97
103
|
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
98
104
|
hasLabelPadding?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false.
|
|
107
|
+
*
|
|
108
|
+
* Available when `hasLabelPadding==true`.
|
|
109
|
+
*/
|
|
110
|
+
rangeLabels?: RangeLabels;
|
|
99
111
|
/** Show point markers on data points. Default: false. */
|
|
100
112
|
showPoints?: boolean;
|
|
101
113
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js';
|
|
2
|
-
import type { ChartLineDataItem, ChartLinePoint, 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, ChartLineXAxisConfig, RangeLabels, 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';
|
|
@@ -55,6 +55,12 @@ regardless of instrument state. */
|
|
|
55
55
|
yAxisPosition?: YAxisPosition;
|
|
56
56
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
57
57
|
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference.
|
|
60
|
+
*
|
|
61
|
+
* Available when `xAxisType!=category`.
|
|
62
|
+
*/
|
|
63
|
+
xAxis?: ChartLineXAxisConfig | undefined;
|
|
58
64
|
/** Show grid lines. */
|
|
59
65
|
showGrid?: boolean;
|
|
60
66
|
/**
|
|
@@ -87,6 +93,12 @@ and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
|
87
93
|
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
88
94
|
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
89
95
|
hasLabelPadding?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false.
|
|
98
|
+
*
|
|
99
|
+
* Available when `hasLabelPadding==true`.
|
|
100
|
+
*/
|
|
101
|
+
rangeLabels?: RangeLabels;
|
|
90
102
|
/** Show point markers on data points. Default: false. */
|
|
91
103
|
showPoints?: boolean;
|
|
92
104
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -213,6 +225,8 @@ declare const ObcGaugeTrend: import("svelte").Component<$$ComponentProps, {
|
|
|
213
225
|
XAxisType: typeof XAxisType;
|
|
214
226
|
YAxisPosition: typeof YAxisPosition;
|
|
215
227
|
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
|
228
|
+
ChartLineXAxisConfig: typeof ChartLineXAxisConfig;
|
|
229
|
+
RangeLabels: typeof RangeLabels;
|
|
216
230
|
LineMode: typeof LineMode;
|
|
217
231
|
TimeDisplay: typeof TimeDisplay;
|
|
218
232
|
ChartDataset: typeof ChartDataset;
|
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.152",
|
|
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.152"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|