@oicl/openbridge-webcomponents-svelte 2.0.0-next.151 → 2.0.0-next.153
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 +53 -47
- package/dist/components/alert-button/ObcAlertButton.svelte.d.ts +41 -33
- package/dist/components/alert-button-item/ObcAlertButtonItem.svelte +83 -0
- package/dist/components/alert-button-item/ObcAlertButtonItem.svelte.d.ts +73 -0
- package/dist/components/alert-counter-item/ObcAlertCounterItem.svelte +39 -0
- package/dist/components/alert-counter-item/ObcAlertCounterItem.svelte.d.ts +26 -0
- 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/index.d.ts +2 -0
- package/dist/index.js +2 -0
- 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,62 +1,68 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
|
-
export type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
3
|
+
export type {AlertType, AlertCounts, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
|
+
export type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button-item/alert-button-item.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';
|
|
8
|
-
import type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
7
|
+
import type {AlertType, AlertCounts, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
8
|
+
import type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button-item/alert-button-item.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
10
10
|
|
|
11
11
|
export interface Props {
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
- `flat`: Minimal, icon-only button for compact layouts.
|
|
25
|
-
- `normal`: Standard button with icon and optional counter (default).
|
|
26
|
-
- `enhanced`: Emphasized button for high-priority alerts. */
|
|
27
|
-
type?: ObcAlertButtonType;
|
|
28
|
-
/** Increases button size for touch-friendly or prominent use.
|
|
29
|
-
|
|
30
|
-
Adds extra height and padding. */
|
|
31
|
-
large?: boolean;
|
|
32
|
-
/** Whether to display the silence button.
|
|
33
|
-
|
|
34
|
-
The silence button is only shown if this is true, the width is above `silenceButtonMinBreakpointPx`, and the button is not in flat mode. */
|
|
35
|
-
showSilenceButton?: boolean;
|
|
14
|
+
/** Number of active alerts shown in the counter; 0 shows the idle state. */
|
|
15
|
+
nAlerts?: number;
|
|
16
|
+
/** Alert type that selects the icon and colours: `alarm`, `warning`, `caution`, a `level-*` severity, or unset for the idle state. */
|
|
17
|
+
alertType?: AlertType | undefined;
|
|
18
|
+
/** Visual variant: `flat` (icon only), `normal` (default, icon and optional counter) or `enhanced` (emphasized for high-priority alerts). */
|
|
19
|
+
type?: ObcAlertButtonType;
|
|
20
|
+
/** Increases the button height and padding for touch-friendly or prominent use. */
|
|
21
|
+
large?: boolean;
|
|
22
|
+
/** Shows the silence button when the width is at least `silenceButtonMinBreakpointPx` and the button is not flat. */
|
|
23
|
+
showSilenceButton?: boolean;
|
|
36
24
|
/**
|
|
37
25
|
* Disables the silence button when true.
|
|
38
26
|
*
|
|
39
27
|
* Available when `showSilenceButton==true`.
|
|
40
28
|
*/
|
|
41
29
|
silenceButtonDisabled?: boolean;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
30
|
+
/** Shows the alert counter when there are active alerts and the button is not flat. */
|
|
31
|
+
counter?: boolean;
|
|
32
|
+
/** Shows the per-severity counts and the shelved count before the bell and the total (the item's global counter); a flat button shows the plain bell. */
|
|
33
|
+
globalCounter?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Alert count per severity for the global counter badges (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts).
|
|
36
|
+
*
|
|
37
|
+
* Available when `globalCounter==true`.
|
|
38
|
+
*/
|
|
39
|
+
counts?: AlertCounts;
|
|
40
|
+
/**
|
|
41
|
+
* Number of shelved alerts, shown after the global counter badges; hidden at zero.
|
|
42
|
+
*
|
|
43
|
+
* Available when `globalCounter==true`.
|
|
44
|
+
*/
|
|
45
|
+
shelvedCount?: number;
|
|
46
|
+
/** Flashes the bell for active alerts of a flashing alert type (never for caution). */
|
|
47
|
+
blinking?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Flash tempo while `blinking` is on: `default` resolves from `alertType`, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes.
|
|
50
|
+
*
|
|
51
|
+
* Available when `blinking==true`.
|
|
52
|
+
*/
|
|
53
|
+
flashingSpeed?: FlashingSpeed;
|
|
54
|
+
/**
|
|
55
|
+
* Window width in px below which a `normal` or `enhanced` button switches to flat mode.
|
|
56
|
+
*
|
|
57
|
+
* Available when `type!=flat`.
|
|
58
|
+
*/
|
|
59
|
+
flatMaxBreakpointPx?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Minimum window width in px for showing the silence button.
|
|
62
|
+
*
|
|
63
|
+
* Available when `showSilenceButton==true`.
|
|
64
|
+
*/
|
|
65
|
+
silenceButtonMinBreakpointPx?: number
|
|
60
66
|
}
|
|
61
67
|
export interface Events {
|
|
62
68
|
onClickAlert?: (event: CustomEvent<void>) => void;
|
|
@@ -74,7 +80,7 @@ silenceButtonMinBreakpointPx?: number
|
|
|
74
80
|
style={style}
|
|
75
81
|
use:forwardEvents={{'click-alert': onClickAlert, 'click-silence': onClickSilence}} >
|
|
76
82
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
{#if children}
|
|
84
|
+
{@render children()}
|
|
85
|
+
{/if}
|
|
80
86
|
</obc-alert-button>
|
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
2
|
-
import type { AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
3
|
-
import type { ObcAlertButtonType } from '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
2
|
+
import type { AlertType, AlertCounts, FlashingSpeed } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
3
|
+
import type { ObcAlertButtonType } from '@oicl/openbridge-webcomponents/dist/components/alert-button-item/alert-button-item.js';
|
|
4
4
|
import type { Snippet } from 'svelte';
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
|
-
/** Number of active alerts
|
|
9
|
-
|
|
10
|
-
If set to 0, the button appears in the idle state. */
|
|
8
|
+
/** Number of active alerts shown in the counter; 0 shows the idle state. */
|
|
11
9
|
nAlerts?: number;
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
Determines the icon and color scheme. Can be `alarm`, `warning`, `caution`, or undefined for idle state. */
|
|
10
|
+
/** Alert type that selects the icon and colours: `alarm`, `warning`, `caution`, a `level-*` severity, or unset for the idle state. */
|
|
15
11
|
alertType?: AlertType | undefined;
|
|
16
|
-
/** Visual variant
|
|
17
|
-
|
|
18
|
-
- `flat`: Minimal, icon-only button for compact layouts.
|
|
19
|
-
- `normal`: Standard button with icon and optional counter (default).
|
|
20
|
-
- `enhanced`: Emphasized button for high-priority alerts. */
|
|
12
|
+
/** Visual variant: `flat` (icon only), `normal` (default, icon and optional counter) or `enhanced` (emphasized for high-priority alerts). */
|
|
21
13
|
type?: ObcAlertButtonType;
|
|
22
|
-
/** Increases button
|
|
23
|
-
|
|
24
|
-
Adds extra height and padding. */
|
|
14
|
+
/** Increases the button height and padding for touch-friendly or prominent use. */
|
|
25
15
|
large?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
The silence button is only shown if this is true, the width is above `silenceButtonMinBreakpointPx`, and the button is not in flat mode. */
|
|
16
|
+
/** Shows the silence button when the width is at least `silenceButtonMinBreakpointPx` and the button is not flat. */
|
|
29
17
|
showSilenceButton?: boolean;
|
|
30
18
|
/**
|
|
31
19
|
* Disables the silence button when true.
|
|
@@ -33,23 +21,41 @@ The silence button is only shown if this is true, the width is above `silenceBut
|
|
|
33
21
|
* Available when `showSilenceButton==true`.
|
|
34
22
|
*/
|
|
35
23
|
silenceButtonDisabled?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
Only shown when there are active alerts and the button is not in flat mode. */
|
|
24
|
+
/** Shows the alert counter when there are active alerts and the button is not flat. */
|
|
39
25
|
counter?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
/** Shows the per-severity counts and the shelved count before the bell and the total (the item's global counter); a flat button shows the plain bell. */
|
|
27
|
+
globalCounter?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Alert count per severity for the global counter badges (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts).
|
|
30
|
+
*
|
|
31
|
+
* Available when `globalCounter==true`.
|
|
32
|
+
*/
|
|
33
|
+
counts?: AlertCounts;
|
|
34
|
+
/**
|
|
35
|
+
* Number of shelved alerts, shown after the global counter badges; hidden at zero.
|
|
36
|
+
*
|
|
37
|
+
* Available when `globalCounter==true`.
|
|
38
|
+
*/
|
|
39
|
+
shelvedCount?: number;
|
|
40
|
+
/** Flashes the bell for active alerts of a flashing alert type (never for caution). */
|
|
43
41
|
blinking?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Flash tempo while `blinking` is on: `default` resolves from `alertType`, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes.
|
|
44
|
+
*
|
|
45
|
+
* Available when `blinking==true`.
|
|
46
|
+
*/
|
|
47
|
+
flashingSpeed?: FlashingSpeed;
|
|
48
|
+
/**
|
|
49
|
+
* Window width in px below which a `normal` or `enhanced` button switches to flat mode.
|
|
50
|
+
*
|
|
51
|
+
* Available when `type!=flat`.
|
|
52
|
+
*/
|
|
48
53
|
flatMaxBreakpointPx?: number;
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Minimum window width in px for showing the silence button.
|
|
56
|
+
*
|
|
57
|
+
* Available when `showSilenceButton==true`.
|
|
58
|
+
*/
|
|
53
59
|
silenceButtonMinBreakpointPx?: number;
|
|
54
60
|
}
|
|
55
61
|
export interface Events {
|
|
@@ -62,6 +68,8 @@ export interface Slots {
|
|
|
62
68
|
type $$ComponentProps = Props & Events & Slots;
|
|
63
69
|
declare const ObcAlertButton: import("svelte").Component<$$ComponentProps, {
|
|
64
70
|
AlertType: typeof AlertType;
|
|
71
|
+
AlertCounts: typeof AlertCounts;
|
|
72
|
+
FlashingSpeed: typeof FlashingSpeed;
|
|
65
73
|
ObcAlertButtonType: typeof ObcAlertButtonType;
|
|
66
74
|
}, "">;
|
|
67
75
|
type ObcAlertButton = ReturnType<typeof ObcAlertButton>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button-item/alert-button-item.js';
|
|
4
|
+
export type {AlertType, AlertCounts, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
5
|
+
import '@oicl/openbridge-webcomponents/dist/components/alert-button-item/alert-button-item.js';
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
|
+
import type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button-item/alert-button-item.js';
|
|
8
|
+
import type {AlertType, AlertCounts, FlashingSpeed} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
9
|
+
import type { Snippet } from 'svelte';
|
|
10
|
+
|
|
11
|
+
export interface Props {
|
|
12
|
+
class?: string;
|
|
13
|
+
style?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Visual variant: `flat` (icon only), `normal` (default, bordered with the counter) or `enhanced` (filled in the severity colour).
|
|
16
|
+
*
|
|
17
|
+
* Available when `globalCounter==false`.
|
|
18
|
+
*/
|
|
19
|
+
type?: ObcAlertButtonType;
|
|
20
|
+
/**
|
|
21
|
+
* Alert type that selects the icon and colours: `alarm`, `warning`, `caution` or a `level-*` severity.
|
|
22
|
+
*
|
|
23
|
+
* Available when `globalCounter==false`.
|
|
24
|
+
*/
|
|
25
|
+
alertType?: AlertType | undefined;
|
|
26
|
+
/** Number of active alerts; 0 shows the idle bell and hides the counter. */
|
|
27
|
+
nAlerts?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Shows `nAlerts` next to the bell (not in `flat`).
|
|
30
|
+
*
|
|
31
|
+
* Available when `globalCounter==false`.
|
|
32
|
+
*/
|
|
33
|
+
counter?: boolean;
|
|
34
|
+
/** Shows the per-severity counts, the bell and the total instead of a single alert status. */
|
|
35
|
+
globalCounter?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Alert count per severity for the global counter badges.
|
|
38
|
+
*
|
|
39
|
+
* Available when `globalCounter==true`.
|
|
40
|
+
*/
|
|
41
|
+
counts?: AlertCounts;
|
|
42
|
+
/**
|
|
43
|
+
* Number of shelved alerts, shown after the global counter badges.
|
|
44
|
+
*
|
|
45
|
+
* Available when `globalCounter==true`.
|
|
46
|
+
*/
|
|
47
|
+
shelvedCount?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Flashes the bell while there are active alerts of a flashing alert type.
|
|
50
|
+
*
|
|
51
|
+
* Available when `globalCounter==false`.
|
|
52
|
+
*/
|
|
53
|
+
blinking?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Flash tempo while `blinking` is on: `default` resolves from `alertType`, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes.
|
|
56
|
+
*
|
|
57
|
+
* Available when `blinking==true`.
|
|
58
|
+
*/
|
|
59
|
+
flashingSpeed?: FlashingSpeed;
|
|
60
|
+
/** Stretches the visible button to the host height instead of the 32 px visual target. */
|
|
61
|
+
fillHeight?: boolean;
|
|
62
|
+
/** Accessible name forwarded to the inner `<button>`, mapped to the `aria-label` attribute; replaces the generated label. `aria-labelledby` is not supported: ID references cannot cross the shadow boundary. */
|
|
63
|
+
ariaLabel?: string | null
|
|
64
|
+
}
|
|
65
|
+
export interface Events {
|
|
66
|
+
onClick?: (event: CustomEvent<unknown>) => void
|
|
67
|
+
}
|
|
68
|
+
export interface Slots {
|
|
69
|
+
children?: Snippet
|
|
70
|
+
}
|
|
71
|
+
const {onClick, class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
72
|
+
|
|
73
|
+
</script>
|
|
74
|
+
<obc-alert-button-item
|
|
75
|
+
use:setProperties={props}
|
|
76
|
+
class={className}
|
|
77
|
+
style={style}
|
|
78
|
+
use:forwardEvents={{'click': onClick}} >
|
|
79
|
+
|
|
80
|
+
{#if children}
|
|
81
|
+
{@render children()}
|
|
82
|
+
{/if}
|
|
83
|
+
</obc-alert-button-item>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/components/alert-button-item/alert-button-item.js';
|
|
2
|
+
import type { ObcAlertButtonType } from '@oicl/openbridge-webcomponents/dist/components/alert-button-item/alert-button-item.js';
|
|
3
|
+
import type { AlertType, AlertCounts, FlashingSpeed } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
|
+
import type { Snippet } from 'svelte';
|
|
5
|
+
export interface Props {
|
|
6
|
+
class?: string;
|
|
7
|
+
style?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Visual variant: `flat` (icon only), `normal` (default, bordered with the counter) or `enhanced` (filled in the severity colour).
|
|
10
|
+
*
|
|
11
|
+
* Available when `globalCounter==false`.
|
|
12
|
+
*/
|
|
13
|
+
type?: ObcAlertButtonType;
|
|
14
|
+
/**
|
|
15
|
+
* Alert type that selects the icon and colours: `alarm`, `warning`, `caution` or a `level-*` severity.
|
|
16
|
+
*
|
|
17
|
+
* Available when `globalCounter==false`.
|
|
18
|
+
*/
|
|
19
|
+
alertType?: AlertType | undefined;
|
|
20
|
+
/** Number of active alerts; 0 shows the idle bell and hides the counter. */
|
|
21
|
+
nAlerts?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Shows `nAlerts` next to the bell (not in `flat`).
|
|
24
|
+
*
|
|
25
|
+
* Available when `globalCounter==false`.
|
|
26
|
+
*/
|
|
27
|
+
counter?: boolean;
|
|
28
|
+
/** Shows the per-severity counts, the bell and the total instead of a single alert status. */
|
|
29
|
+
globalCounter?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Alert count per severity for the global counter badges.
|
|
32
|
+
*
|
|
33
|
+
* Available when `globalCounter==true`.
|
|
34
|
+
*/
|
|
35
|
+
counts?: AlertCounts;
|
|
36
|
+
/**
|
|
37
|
+
* Number of shelved alerts, shown after the global counter badges.
|
|
38
|
+
*
|
|
39
|
+
* Available when `globalCounter==true`.
|
|
40
|
+
*/
|
|
41
|
+
shelvedCount?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Flashes the bell while there are active alerts of a flashing alert type.
|
|
44
|
+
*
|
|
45
|
+
* Available when `globalCounter==false`.
|
|
46
|
+
*/
|
|
47
|
+
blinking?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Flash tempo while `blinking` is on: `default` resolves from `alertType`, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes.
|
|
50
|
+
*
|
|
51
|
+
* Available when `blinking==true`.
|
|
52
|
+
*/
|
|
53
|
+
flashingSpeed?: FlashingSpeed;
|
|
54
|
+
/** Stretches the visible button to the host height instead of the 32 px visual target. */
|
|
55
|
+
fillHeight?: boolean;
|
|
56
|
+
/** Accessible name forwarded to the inner `<button>`, mapped to the `aria-label` attribute; replaces the generated label. `aria-labelledby` is not supported: ID references cannot cross the shadow boundary. */
|
|
57
|
+
ariaLabel?: string | null;
|
|
58
|
+
}
|
|
59
|
+
export interface Events {
|
|
60
|
+
onClick?: (event: CustomEvent<unknown>) => void;
|
|
61
|
+
}
|
|
62
|
+
export interface Slots {
|
|
63
|
+
children?: Snippet;
|
|
64
|
+
}
|
|
65
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
66
|
+
declare const ObcAlertButtonItem: import("svelte").Component<$$ComponentProps, {
|
|
67
|
+
ObcAlertButtonType: typeof ObcAlertButtonType;
|
|
68
|
+
AlertType: typeof AlertType;
|
|
69
|
+
AlertCounts: typeof AlertCounts;
|
|
70
|
+
FlashingSpeed: typeof FlashingSpeed;
|
|
71
|
+
}, "">;
|
|
72
|
+
type ObcAlertButtonItem = ReturnType<typeof ObcAlertButtonItem>;
|
|
73
|
+
export default ObcAlertButtonItem;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {ObcAlertCounterItemType} from '@oicl/openbridge-webcomponents/dist/components/alert-counter-item/alert-counter-item.js';
|
|
4
|
+
export type {AlertCounts} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
5
|
+
import '@oicl/openbridge-webcomponents/dist/components/alert-counter-item/alert-counter-item.js';
|
|
6
|
+
import { setProperties } from "../../util.js";
|
|
7
|
+
import type {ObcAlertCounterItemType} from '@oicl/openbridge-webcomponents/dist/components/alert-counter-item/alert-counter-item.js';
|
|
8
|
+
import type {AlertCounts} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
9
|
+
import type { Snippet } from 'svelte';
|
|
10
|
+
|
|
11
|
+
export interface Props {
|
|
12
|
+
class?: string;
|
|
13
|
+
style?: string;
|
|
14
|
+
/** How each count is drawn: `badges` (filled severity badges, default) or `alert-level` (flat badges with the severity glyph). */
|
|
15
|
+
type?: ObcAlertCounterItemType;
|
|
16
|
+
/** Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown. */
|
|
17
|
+
counts?: AlertCounts;
|
|
18
|
+
/** Number of shelved alerts, shown as a neutral badge after the severities; hidden at zero. */
|
|
19
|
+
shelvedCount?: number
|
|
20
|
+
}
|
|
21
|
+
export interface Events {
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
export interface Slots {
|
|
25
|
+
children?: Snippet
|
|
26
|
+
}
|
|
27
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
28
|
+
|
|
29
|
+
</script>
|
|
30
|
+
<obc-alert-counter-item
|
|
31
|
+
use:setProperties={props}
|
|
32
|
+
class={className}
|
|
33
|
+
style={style}
|
|
34
|
+
>
|
|
35
|
+
|
|
36
|
+
{#if children}
|
|
37
|
+
{@render children()}
|
|
38
|
+
{/if}
|
|
39
|
+
</obc-alert-counter-item>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/components/alert-counter-item/alert-counter-item.js';
|
|
2
|
+
import type { ObcAlertCounterItemType } from '@oicl/openbridge-webcomponents/dist/components/alert-counter-item/alert-counter-item.js';
|
|
3
|
+
import type { AlertCounts } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
|
+
import type { Snippet } from 'svelte';
|
|
5
|
+
export interface Props {
|
|
6
|
+
class?: string;
|
|
7
|
+
style?: string;
|
|
8
|
+
/** How each count is drawn: `badges` (filled severity badges, default) or `alert-level` (flat badges with the severity glyph). */
|
|
9
|
+
type?: ObcAlertCounterItemType;
|
|
10
|
+
/** Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown. */
|
|
11
|
+
counts?: AlertCounts;
|
|
12
|
+
/** Number of shelved alerts, shown as a neutral badge after the severities; hidden at zero. */
|
|
13
|
+
shelvedCount?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface Events {
|
|
16
|
+
}
|
|
17
|
+
export interface Slots {
|
|
18
|
+
children?: Snippet;
|
|
19
|
+
}
|
|
20
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
21
|
+
declare const ObcAlertCounterItem: import("svelte").Component<$$ComponentProps, {
|
|
22
|
+
ObcAlertCounterItemType: typeof ObcAlertCounterItemType;
|
|
23
|
+
AlertCounts: typeof AlertCounts;
|
|
24
|
+
}, "">;
|
|
25
|
+
type ObcAlertCounterItem = ReturnType<typeof ObcAlertCounterItem>;
|
|
26
|
+
export default ObcAlertCounterItem;
|
|
@@ -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, 1 px each side, 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, 1 px each side, 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;
|
package/dist/index.d.ts
CHANGED
|
@@ -101,6 +101,8 @@ export { default as ObcAdviceFloatingItem } from './components/advice-floating-i
|
|
|
101
101
|
export { default as ObcAdviceMenuItem } from './components/advice-menu-item/ObcAdviceMenuItem.svelte';
|
|
102
102
|
export { default as ObcAdviceMessageItem } from './components/advice-message-item/ObcAdviceMessageItem.svelte';
|
|
103
103
|
export { default as ObcAlertButton } from './components/alert-button/ObcAlertButton.svelte';
|
|
104
|
+
export { default as ObcAlertButtonItem } from './components/alert-button-item/ObcAlertButtonItem.svelte';
|
|
105
|
+
export { default as ObcAlertCounterItem } from './components/alert-counter-item/ObcAlertCounterItem.svelte';
|
|
104
106
|
export { default as ObcAlertFloatingItem } from './components/alert-floating-item/ObcAlertFloatingItem.svelte';
|
|
105
107
|
export { default as ObcAlertFrame } from './components/alert-frame/ObcAlertFrame.svelte';
|
|
106
108
|
export { default as ObiDiagnosticBadge } from './components/alert-frame/ObiDiagnosticBadge.svelte';
|
package/dist/index.js
CHANGED
|
@@ -101,6 +101,8 @@ export { default as ObcAdviceFloatingItem } from './components/advice-floating-i
|
|
|
101
101
|
export { default as ObcAdviceMenuItem } from './components/advice-menu-item/ObcAdviceMenuItem.svelte';
|
|
102
102
|
export { default as ObcAdviceMessageItem } from './components/advice-message-item/ObcAdviceMessageItem.svelte';
|
|
103
103
|
export { default as ObcAlertButton } from './components/alert-button/ObcAlertButton.svelte';
|
|
104
|
+
export { default as ObcAlertButtonItem } from './components/alert-button-item/ObcAlertButtonItem.svelte';
|
|
105
|
+
export { default as ObcAlertCounterItem } from './components/alert-counter-item/ObcAlertCounterItem.svelte';
|
|
104
106
|
export { default as ObcAlertFloatingItem } from './components/alert-floating-item/ObcAlertFloatingItem.svelte';
|
|
105
107
|
export { default as ObcAlertFrame } from './components/alert-frame/ObcAlertFrame.svelte';
|
|
106
108
|
export { default as ObiDiagnosticBadge } from './components/alert-frame/ObiDiagnosticBadge.svelte';
|
|
@@ -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.153",
|
|
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.153"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|