@oicl/openbridge-webcomponents-svelte 2.0.0-next.19 → 2.0.0-next.20
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/ar/chart-object-vessel-button/ObcChartObjectVesselButton.svelte +10 -10
- package/dist/ar/chart-object-vessel-button/ObcChartObjectVesselButton.svelte.d.ts +3 -3
- package/dist/bars-graphs/donut-chart/ObcDonutChart.svelte +5 -3
- package/dist/bars-graphs/donut-chart/ObcDonutChart.svelte.d.ts +3 -4
- package/dist/bars-graphs/pie-chart/ObcPieChart.svelte +5 -3
- package/dist/bars-graphs/pie-chart/ObcPieChart.svelte.d.ts +3 -8
- package/dist/bars-graphs/polar-chart/ObcPolarChart.svelte +5 -3
- package/dist/bars-graphs/polar-chart/ObcPolarChart.svelte.d.ts +3 -4
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte +3 -3
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte.d.ts +3 -8
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte +3 -3
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte.d.ts +3 -8
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte +6 -6
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +6 -13
- package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte +7 -7
- package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte.d.ts +2 -2
- package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte +13 -13
- package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte.d.ts +4 -4
- package/dist/components/dropdown-button/ObcDropdownButton.svelte +3 -3
- package/dist/components/dropdown-button/ObcDropdownButton.svelte.d.ts +3 -6
- package/dist/components/elevated-card-radio/ObcElevatedCardRadio.svelte +4 -4
- package/dist/components/elevated-card-radio/ObcElevatedCardRadio.svelte.d.ts +1 -1
- package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte +3 -3
- package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte.d.ts +3 -5
- package/dist/components/floating-item/ObcFloatingItem.svelte +7 -7
- package/dist/components/floating-item/ObcFloatingItem.svelte.d.ts +2 -2
- package/dist/components/form-container/ObcFormContainer.svelte +4 -4
- package/dist/components/form-container/ObcFormContainer.svelte.d.ts +1 -1
- package/dist/components/message-menu-item/ObcMessageMenuItem.svelte +7 -7
- package/dist/components/message-menu-item/ObcMessageMenuItem.svelte.d.ts +2 -2
- package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte +7 -7
- package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte.d.ts +2 -2
- package/dist/components/tab-item/ObcTabItem.svelte +4 -4
- package/dist/components/tab-item/ObcTabItem.svelte.d.ts +1 -1
- package/dist/components/title-container/ObcTitleContainer.svelte +4 -4
- package/dist/components/title-container/ObcTitleContainer.svelte.d.ts +1 -1
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte +3 -5
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte.d.ts +3 -10
- package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte +3 -3
- package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte.d.ts +3 -8
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte +3 -3
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte.d.ts +3 -8
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte +3 -3
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte.d.ts +3 -8
- package/package.json +2 -2
|
@@ -33,11 +33,11 @@ course?: number;
|
|
|
33
33
|
export interface Slots {
|
|
34
34
|
children?: Snippet;
|
|
35
35
|
silhouette?: Snippet;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
numberSnippet?: Snippet;
|
|
37
|
+
nameSnippet?: Snippet;
|
|
38
|
+
vesselImageSnippet?: Snippet
|
|
39
39
|
}
|
|
40
|
-
const { class: className, style, children, silhouette,
|
|
40
|
+
const { class: className, style, children, silhouette, numberSnippet, nameSnippet, vesselImageSnippet, ...props} = $props<Props & Events & Slots>();
|
|
41
41
|
|
|
42
42
|
</script>
|
|
43
43
|
<obc-chart-object-vessel-button
|
|
@@ -56,21 +56,21 @@ course?: number;
|
|
|
56
56
|
</div>
|
|
57
57
|
{/if}
|
|
58
58
|
|
|
59
|
-
{#if
|
|
59
|
+
{#if numberSnippet}
|
|
60
60
|
<div slot="number">
|
|
61
|
-
{@render
|
|
61
|
+
{@render numberSnippet()}
|
|
62
62
|
</div>
|
|
63
63
|
{/if}
|
|
64
64
|
|
|
65
|
-
{#if
|
|
65
|
+
{#if nameSnippet}
|
|
66
66
|
<div slot="name">
|
|
67
|
-
{@render
|
|
67
|
+
{@render nameSnippet()}
|
|
68
68
|
</div>
|
|
69
69
|
{/if}
|
|
70
70
|
|
|
71
|
-
{#if
|
|
71
|
+
{#if vesselImageSnippet}
|
|
72
72
|
<div slot="vessel-image">
|
|
73
|
-
{@render
|
|
73
|
+
{@render vesselImageSnippet()}
|
|
74
74
|
</div>
|
|
75
75
|
{/if}
|
|
76
76
|
</obc-chart-object-vessel-button>
|
|
@@ -26,9 +26,9 @@ export interface Events {
|
|
|
26
26
|
export interface Slots {
|
|
27
27
|
children?: Snippet;
|
|
28
28
|
silhouette?: Snippet;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
numberSnippet?: Snippet;
|
|
30
|
+
nameSnippet?: Snippet;
|
|
31
|
+
vesselImageSnippet?: Snippet;
|
|
32
32
|
}
|
|
33
33
|
type $$ComponentProps = Props & Events & Slots;
|
|
34
34
|
declare const ObcChartObjectVesselButton: import("svelte").Component<$$ComponentProps, {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {
|
|
3
|
+
export type {DonutChartDataItem} from '@oicl/openbridge-webcomponents/dist/bars-graphs/donut-chart/donut-chart.js';
|
|
4
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
5
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/donut-chart/donut-chart.js';
|
|
5
6
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {
|
|
7
|
+
import type {DonutChartDataItem} from '@oicl/openbridge-webcomponents/dist/bars-graphs/donut-chart/donut-chart.js';
|
|
8
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
7
9
|
import type { Snippet } from 'svelte';
|
|
8
10
|
|
|
9
11
|
export interface Props {
|
|
10
12
|
class?: string;
|
|
11
13
|
style?: string;
|
|
12
|
-
data?:
|
|
14
|
+
data?: DonutChartDataItem[];
|
|
13
15
|
colors?: string[];
|
|
14
16
|
priority?: Priority;
|
|
15
17
|
half?: boolean;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/donut-chart/donut-chart.js';
|
|
2
|
+
import type { DonutChartDataItem } from '@oicl/openbridge-webcomponents/dist/bars-graphs/donut-chart/donut-chart.js';
|
|
2
3
|
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
3
4
|
import type { Snippet } from 'svelte';
|
|
4
5
|
export interface Props {
|
|
5
6
|
class?: string;
|
|
6
7
|
style?: string;
|
|
7
|
-
data?:
|
|
8
|
-
label: string;
|
|
9
|
-
value: number;
|
|
10
|
-
}[];
|
|
8
|
+
data?: DonutChartDataItem[];
|
|
11
9
|
colors?: string[];
|
|
12
10
|
priority?: Priority;
|
|
13
11
|
half?: boolean;
|
|
@@ -31,6 +29,7 @@ export interface Slots {
|
|
|
31
29
|
}
|
|
32
30
|
type $$ComponentProps = Props & Events & Slots;
|
|
33
31
|
declare const ObcDonutChart: import("svelte").Component<$$ComponentProps, {
|
|
32
|
+
DonutChartDataItem: typeof DonutChartDataItem;
|
|
34
33
|
Priority: typeof Priority;
|
|
35
34
|
}, "">;
|
|
36
35
|
type ObcDonutChart = ReturnType<typeof ObcDonutChart>;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {
|
|
3
|
+
export type {PieChartDataItem} from '@oicl/openbridge-webcomponents/dist/bars-graphs/pie-chart/pie-chart.js';
|
|
4
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
5
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/pie-chart/pie-chart.js';
|
|
5
6
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {
|
|
7
|
+
import type {PieChartDataItem} from '@oicl/openbridge-webcomponents/dist/bars-graphs/pie-chart/pie-chart.js';
|
|
8
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
7
9
|
import type { Snippet } from 'svelte';
|
|
8
10
|
|
|
9
11
|
export interface Props {
|
|
10
12
|
class?: string;
|
|
11
13
|
style?: string;
|
|
12
|
-
data?:
|
|
14
|
+
data?: PieChartDataItem[];
|
|
13
15
|
colors?: string[];
|
|
14
16
|
priority?: Priority;
|
|
15
17
|
showOuterLabels?: boolean;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/pie-chart/pie-chart.js';
|
|
2
|
+
import type { PieChartDataItem } from '@oicl/openbridge-webcomponents/dist/bars-graphs/pie-chart/pie-chart.js';
|
|
2
3
|
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
3
4
|
import type { Snippet } from 'svelte';
|
|
4
5
|
export interface Props {
|
|
5
6
|
class?: string;
|
|
6
7
|
style?: string;
|
|
7
|
-
data?:
|
|
8
|
-
label: string;
|
|
9
|
-
value: number;
|
|
10
|
-
children?: {
|
|
11
|
-
label: string;
|
|
12
|
-
value: number;
|
|
13
|
-
}[] | undefined;
|
|
14
|
-
}[];
|
|
8
|
+
data?: PieChartDataItem[];
|
|
15
9
|
colors?: string[];
|
|
16
10
|
priority?: Priority;
|
|
17
11
|
showOuterLabels?: boolean;
|
|
@@ -31,6 +25,7 @@ export interface Slots {
|
|
|
31
25
|
}
|
|
32
26
|
type $$ComponentProps = Props & Events & Slots;
|
|
33
27
|
declare const ObcPieChart: import("svelte").Component<$$ComponentProps, {
|
|
28
|
+
PieChartDataItem: typeof PieChartDataItem;
|
|
34
29
|
Priority: typeof Priority;
|
|
35
30
|
}, "">;
|
|
36
31
|
type ObcPieChart = ReturnType<typeof ObcPieChart>;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {
|
|
3
|
+
export type {PolarChartDataItem} from '@oicl/openbridge-webcomponents/dist/bars-graphs/polar-chart/polar-chart.js';
|
|
4
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
5
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/polar-chart/polar-chart.js';
|
|
5
6
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {
|
|
7
|
+
import type {PolarChartDataItem} from '@oicl/openbridge-webcomponents/dist/bars-graphs/polar-chart/polar-chart.js';
|
|
8
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
7
9
|
import type { Snippet } from 'svelte';
|
|
8
10
|
|
|
9
11
|
export interface Props {
|
|
10
12
|
class?: string;
|
|
11
13
|
style?: string;
|
|
12
|
-
data?:
|
|
14
|
+
data?: PolarChartDataItem[];
|
|
13
15
|
colors?: string[];
|
|
14
16
|
priority?: Priority;
|
|
15
17
|
monochrome?: boolean;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/bars-graphs/polar-chart/polar-chart.js';
|
|
2
|
+
import type { PolarChartDataItem } from '@oicl/openbridge-webcomponents/dist/bars-graphs/polar-chart/polar-chart.js';
|
|
2
3
|
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
3
4
|
import type { Snippet } from 'svelte';
|
|
4
5
|
export interface Props {
|
|
5
6
|
class?: string;
|
|
6
7
|
style?: string;
|
|
7
|
-
data?:
|
|
8
|
-
label: string;
|
|
9
|
-
value: number;
|
|
10
|
-
}[];
|
|
8
|
+
data?: PolarChartDataItem[];
|
|
11
9
|
colors?: string[];
|
|
12
10
|
priority?: Priority;
|
|
13
11
|
monochrome?: boolean;
|
|
@@ -29,6 +27,7 @@ export interface Slots {
|
|
|
29
27
|
}
|
|
30
28
|
type $$ComponentProps = Props & Events & Slots;
|
|
31
29
|
declare const ObcPolarChart: import("svelte").Component<$$ComponentProps, {
|
|
30
|
+
PolarChartDataItem: typeof PolarChartDataItem;
|
|
32
31
|
Priority: typeof Priority;
|
|
33
32
|
}, "">;
|
|
34
33
|
type ObcPolarChart = ReturnType<typeof ObcPolarChart>;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ExternalScaleSide, BarContainerStyle, ScaleType, FillMode, AdvicePosition} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
4
4
|
export type {FrameStyle, BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
-
export type {
|
|
5
|
+
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/bar-horizontal/bar-horizontal.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
8
|
import type {ExternalScaleSide, BarContainerStyle, ScaleType, FillMode, AdvicePosition} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
9
9
|
import type {FrameStyle, BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
|
-
import type {
|
|
10
|
+
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
11
11
|
import type { Snippet } from 'svelte';
|
|
12
12
|
|
|
13
13
|
export interface Props {
|
|
@@ -92,7 +92,7 @@ state?: InstrumentState;
|
|
|
92
92
|
advicePosition?: AdvicePosition;
|
|
93
93
|
/** Advice/alert overlays with state and positioning.
|
|
94
94
|
When undefined or empty, no advice shown. */
|
|
95
|
-
advices?:
|
|
95
|
+
advices?: LinearAdvice[] | undefined;
|
|
96
96
|
/** When true, displays a dot indicator at the current value position.
|
|
97
97
|
The dot is rendered in the scale band, touching its inner edge (towards the chart).
|
|
98
98
|
This provides an alternative to bar fill for highlighting the current value. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/bar-horizontal/bar-horizontal.js';
|
|
2
2
|
import type { ExternalScaleSide, BarContainerStyle, ScaleType, FillMode, AdvicePosition } from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
3
3
|
import type { FrameStyle, BorderRadiusPosition, Priority, InstrumentState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
7
7
|
class?: string;
|
|
@@ -85,12 +85,7 @@ When instrumentMode=false, this is ignored and border radius is read from CSS va
|
|
|
85
85
|
advicePosition?: AdvicePosition;
|
|
86
86
|
/** Advice/alert overlays with state and positioning.
|
|
87
87
|
When undefined or empty, no advice shown. */
|
|
88
|
-
advices?:
|
|
89
|
-
min: number;
|
|
90
|
-
max: number;
|
|
91
|
-
type: AdviceType;
|
|
92
|
-
hinted: boolean;
|
|
93
|
-
}[] | undefined;
|
|
88
|
+
advices?: LinearAdvice[] | undefined;
|
|
94
89
|
/** When true, displays a dot indicator at the current value position.
|
|
95
90
|
The dot is rendered in the scale band, touching its inner edge (towards the chart).
|
|
96
91
|
This provides an alternative to bar fill for highlighting the current value. */
|
|
@@ -112,7 +107,7 @@ declare const ObcBarHorizontal: import("svelte").Component<$$ComponentProps, {
|
|
|
112
107
|
BorderRadiusPosition: typeof BorderRadiusPosition;
|
|
113
108
|
Priority: typeof Priority;
|
|
114
109
|
InstrumentState: typeof InstrumentState;
|
|
115
|
-
|
|
110
|
+
LinearAdvice: typeof LinearAdvice;
|
|
116
111
|
}, "">;
|
|
117
112
|
type ObcBarHorizontal = ReturnType<typeof ObcBarHorizontal>;
|
|
118
113
|
export default ObcBarHorizontal;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ExternalScaleSide, BarContainerStyle, ScaleType, FillMode, AdvicePosition} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
4
4
|
export type {FrameStyle, BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
-
export type {
|
|
5
|
+
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
8
|
import type {ExternalScaleSide, BarContainerStyle, ScaleType, FillMode, AdvicePosition} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
9
9
|
import type {FrameStyle, BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
|
-
import type {
|
|
10
|
+
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
11
11
|
import type { Snippet } from 'svelte';
|
|
12
12
|
|
|
13
13
|
export interface Props {
|
|
@@ -92,7 +92,7 @@ state?: InstrumentState;
|
|
|
92
92
|
advicePosition?: AdvicePosition;
|
|
93
93
|
/** Advice/alert overlays with state and positioning.
|
|
94
94
|
When undefined or empty, no advice shown. */
|
|
95
|
-
advices?:
|
|
95
|
+
advices?: LinearAdvice[] | undefined;
|
|
96
96
|
/** When true, displays a dot indicator at the current value position.
|
|
97
97
|
The dot is rendered in the scale band, touching its inner edge (towards the chart).
|
|
98
98
|
This provides an alternative to bar fill for highlighting the current value. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
2
2
|
import type { ExternalScaleSide, BarContainerStyle, ScaleType, FillMode, AdvicePosition } from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
3
3
|
import type { FrameStyle, BorderRadiusPosition, Priority, InstrumentState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
7
7
|
class?: string;
|
|
@@ -85,12 +85,7 @@ When instrumentMode=false, this is ignored and border radius is read from CSS va
|
|
|
85
85
|
advicePosition?: AdvicePosition;
|
|
86
86
|
/** Advice/alert overlays with state and positioning.
|
|
87
87
|
When undefined or empty, no advice shown. */
|
|
88
|
-
advices?:
|
|
89
|
-
min: number;
|
|
90
|
-
max: number;
|
|
91
|
-
type: AdviceType;
|
|
92
|
-
hinted: boolean;
|
|
93
|
-
}[] | undefined;
|
|
88
|
+
advices?: LinearAdvice[] | undefined;
|
|
94
89
|
/** When true, displays a dot indicator at the current value position.
|
|
95
90
|
The dot is rendered in the scale band, touching its inner edge (towards the chart).
|
|
96
91
|
This provides an alternative to bar fill for highlighting the current value. */
|
|
@@ -112,7 +107,7 @@ declare const ObcBarVertical: import("svelte").Component<$$ComponentProps, {
|
|
|
112
107
|
BorderRadiusPosition: typeof BorderRadiusPosition;
|
|
113
108
|
Priority: typeof Priority;
|
|
114
109
|
InstrumentState: typeof InstrumentState;
|
|
115
|
-
|
|
110
|
+
LinearAdvice: typeof LinearAdvice;
|
|
116
111
|
}, "">;
|
|
117
112
|
type ObcBarVertical = ReturnType<typeof ObcBarVertical>;
|
|
118
113
|
export default ObcBarVertical;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
3
|
+
export type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
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 {
|
|
9
|
-
import type {
|
|
8
|
+
import type {ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
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';
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ import type {InstrumentState, Priority, FrameStyle, BorderRadiusPosition} from '
|
|
|
14
14
|
class?: string;
|
|
15
15
|
style?: string;
|
|
16
16
|
/** Simple single-series data (array of {label, value}). */
|
|
17
|
-
data?:
|
|
17
|
+
data?: ChartLineDataItem[];
|
|
18
18
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
19
19
|
datasets?: ChartDataset<"line", (number | { x: string | number | Date; y: number; })[]>[] | undefined;
|
|
20
20
|
/** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
|
|
@@ -44,7 +44,7 @@ xAxisType?: XAxisType;
|
|
|
44
44
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
45
45
|
yAxisPosition?: YAxisPosition;
|
|
46
46
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
47
|
-
yAxes?:
|
|
47
|
+
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
48
48
|
/** Show grid lines. */
|
|
49
49
|
showGrid?: boolean;
|
|
50
50
|
/** Show vertical grid lines (x-axis). Default: false. */
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
2
|
+
import type { ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
2
3
|
import type { ChartDataset } from 'chart.js';
|
|
3
|
-
import type { XAxisType, YAxisPosition, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
4
4
|
import type { InstrumentState, Priority, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
7
7
|
class?: string;
|
|
8
8
|
style?: string;
|
|
9
9
|
/** Simple single-series data (array of {label, value}). */
|
|
10
|
-
data?:
|
|
11
|
-
label: string;
|
|
12
|
-
value: number;
|
|
13
|
-
}[];
|
|
10
|
+
data?: ChartLineDataItem[];
|
|
14
11
|
/** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
|
|
15
12
|
datasets?: ChartDataset<"line", (number | {
|
|
16
13
|
x: string | number | Date;
|
|
@@ -43,13 +40,7 @@ Default: 384 (matches Figma design baseline). */
|
|
|
43
40
|
/** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
|
|
44
41
|
yAxisPosition?: YAxisPosition;
|
|
45
42
|
/** Multiple y-axis definitions for complex multi-axis charts. */
|
|
46
|
-
yAxes?:
|
|
47
|
-
id?: string | undefined;
|
|
48
|
-
position?: "left" | "right" | undefined;
|
|
49
|
-
min?: number | undefined;
|
|
50
|
-
max?: number | undefined;
|
|
51
|
-
grid?: boolean | undefined;
|
|
52
|
-
}[] | undefined;
|
|
43
|
+
yAxes?: ChartLineYAxisConfig[] | undefined;
|
|
53
44
|
/** Show grid lines. */
|
|
54
45
|
showGrid?: boolean;
|
|
55
46
|
/** Show vertical grid lines (x-axis). Default: false. */
|
|
@@ -101,11 +92,13 @@ export interface Slots {
|
|
|
101
92
|
}
|
|
102
93
|
type $$ComponentProps = Props & Events & Slots;
|
|
103
94
|
declare const ObcChartLineBase: import("svelte").Component<$$ComponentProps, {
|
|
104
|
-
|
|
95
|
+
ChartLineDataItem: typeof ChartLineDataItem;
|
|
105
96
|
XAxisType: typeof XAxisType;
|
|
106
97
|
YAxisPosition: typeof YAxisPosition;
|
|
98
|
+
ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
|
|
107
99
|
LineMode: typeof LineMode;
|
|
108
100
|
TimeDisplay: typeof TimeDisplay;
|
|
101
|
+
ChartDataset: typeof ChartDataset;
|
|
109
102
|
InstrumentState: typeof InstrumentState;
|
|
110
103
|
Priority: typeof Priority;
|
|
111
104
|
FrameStyle: typeof FrameStyle;
|
|
@@ -50,10 +50,10 @@ lineType?: ObcFloatingItemLineType
|
|
|
50
50
|
description?: Snippet;
|
|
51
51
|
time?: Snippet;
|
|
52
52
|
day?: Snippet;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
actionSnippet?: Snippet;
|
|
54
|
+
action2Snippet?: Snippet
|
|
55
55
|
}
|
|
56
|
-
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day,
|
|
56
|
+
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day, actionSnippet, action2Snippet, ...props} = $props<Props & Events & Slots>();
|
|
57
57
|
|
|
58
58
|
</script>
|
|
59
59
|
<obc-advice-floating-item
|
|
@@ -100,15 +100,15 @@ lineType?: ObcFloatingItemLineType
|
|
|
100
100
|
</div>
|
|
101
101
|
{/if}
|
|
102
102
|
|
|
103
|
-
{#if
|
|
103
|
+
{#if actionSnippet}
|
|
104
104
|
<div slot="action">
|
|
105
|
-
{@render
|
|
105
|
+
{@render actionSnippet()}
|
|
106
106
|
</div>
|
|
107
107
|
{/if}
|
|
108
108
|
|
|
109
|
-
{#if
|
|
109
|
+
{#if action2Snippet}
|
|
110
110
|
<div slot="action2">
|
|
111
|
-
{@render
|
|
111
|
+
{@render action2Snippet()}
|
|
112
112
|
</div>
|
|
113
113
|
{/if}
|
|
114
114
|
</obc-advice-floating-item>
|
|
@@ -45,8 +45,8 @@ export interface Slots {
|
|
|
45
45
|
description?: Snippet;
|
|
46
46
|
time?: Snippet;
|
|
47
47
|
day?: Snippet;
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
actionSnippet?: Snippet;
|
|
49
|
+
action2Snippet?: Snippet;
|
|
50
50
|
}
|
|
51
51
|
type $$ComponentProps = Props & Events & Slots;
|
|
52
52
|
declare const ObcAdviceFloatingItem: import("svelte").Component<$$ComponentProps, {
|
|
@@ -64,15 +64,15 @@ emptyText?: string
|
|
|
64
64
|
export interface Slots {
|
|
65
65
|
primaryIcon?: Snippet;
|
|
66
66
|
secondaryIcon?: Snippet;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
titleSnippet?: Snippet;
|
|
68
|
+
descriptionSnippet?: Snippet;
|
|
69
|
+
timeSnippet?: Snippet;
|
|
70
|
+
timeSecondarySnippet?: Snippet;
|
|
71
71
|
actionText?: Snippet;
|
|
72
72
|
actionIcon?: Snippet;
|
|
73
73
|
empty?: Snippet
|
|
74
74
|
}
|
|
75
|
-
const {onMessageClick, onActionClick, class: className, style, primaryIcon, secondaryIcon,
|
|
75
|
+
const {onMessageClick, onActionClick, class: className, style, primaryIcon, secondaryIcon, titleSnippet, descriptionSnippet, timeSnippet, timeSecondarySnippet, actionText, actionIcon, empty, ...props} = $props<Props & Events & Slots>();
|
|
76
76
|
|
|
77
77
|
</script>
|
|
78
78
|
<obc-advice-message-item
|
|
@@ -94,27 +94,27 @@ emptyText?: string
|
|
|
94
94
|
</div>
|
|
95
95
|
{/if}
|
|
96
96
|
|
|
97
|
-
{#if
|
|
97
|
+
{#if titleSnippet}
|
|
98
98
|
<div slot="title">
|
|
99
|
-
{@render
|
|
99
|
+
{@render titleSnippet()}
|
|
100
100
|
</div>
|
|
101
101
|
{/if}
|
|
102
102
|
|
|
103
|
-
{#if
|
|
103
|
+
{#if descriptionSnippet}
|
|
104
104
|
<div slot="description">
|
|
105
|
-
{@render
|
|
105
|
+
{@render descriptionSnippet()}
|
|
106
106
|
</div>
|
|
107
107
|
{/if}
|
|
108
108
|
|
|
109
|
-
{#if
|
|
109
|
+
{#if timeSnippet}
|
|
110
110
|
<div slot="time">
|
|
111
|
-
{@render
|
|
111
|
+
{@render timeSnippet()}
|
|
112
112
|
</div>
|
|
113
113
|
{/if}
|
|
114
114
|
|
|
115
|
-
{#if
|
|
115
|
+
{#if timeSecondarySnippet}
|
|
116
116
|
<div slot="time-secondary">
|
|
117
|
-
{@render
|
|
117
|
+
{@render timeSecondarySnippet()}
|
|
118
118
|
</div>
|
|
119
119
|
{/if}
|
|
120
120
|
|
|
@@ -59,10 +59,10 @@ export interface Events {
|
|
|
59
59
|
export interface Slots {
|
|
60
60
|
primaryIcon?: Snippet;
|
|
61
61
|
secondaryIcon?: Snippet;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
titleSnippet?: Snippet;
|
|
63
|
+
descriptionSnippet?: Snippet;
|
|
64
|
+
timeSnippet?: Snippet;
|
|
65
|
+
timeSecondarySnippet?: Snippet;
|
|
66
66
|
actionText?: Snippet;
|
|
67
67
|
actionIcon?: Snippet;
|
|
68
68
|
empty?: Snippet;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ObcDropdownButtonChangeEvent, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
3
|
+
export type {ObcDropdownButtonChangeEvent, DropdownButtonOption, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {ObcDropdownButtonChangeEvent, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
6
|
+
import type {ObcDropdownButtonChangeEvent, DropdownButtonOption, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
@@ -16,7 +16,7 @@ Example:
|
|
|
16
16
|
{ value: 'volvo', label: 'Volvo' },
|
|
17
17
|
{ value: 'xc90', label: 'XC 90', level: 2 }
|
|
18
18
|
] */
|
|
19
|
-
options?:
|
|
19
|
+
options?: DropdownButtonOption[];
|
|
20
20
|
/** The value of the currently selected option. If not set, defaults to the first option in the list. */
|
|
21
21
|
value?: string | undefined;
|
|
22
22
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
2
|
-
import type { ObcDropdownButtonChangeEvent, DropdownButtonType } from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
2
|
+
import type { ObcDropdownButtonChangeEvent, DropdownButtonOption, DropdownButtonType } from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
@@ -11,11 +11,7 @@ Example:
|
|
|
11
11
|
{ value: 'volvo', label: 'Volvo' },
|
|
12
12
|
{ value: 'xc90', label: 'XC 90', level: 2 }
|
|
13
13
|
] */
|
|
14
|
-
options?:
|
|
15
|
-
value: string;
|
|
16
|
-
label: string;
|
|
17
|
-
level?: number | undefined;
|
|
18
|
-
}[];
|
|
14
|
+
options?: DropdownButtonOption[];
|
|
19
15
|
/** The value of the currently selected option. If not set, defaults to the first option in the list. */
|
|
20
16
|
value?: string | undefined;
|
|
21
17
|
disabled?: boolean;
|
|
@@ -43,6 +39,7 @@ export interface Slots {
|
|
|
43
39
|
type $$ComponentProps = Props & Events & Slots;
|
|
44
40
|
declare const ObcDropdownButton: import("svelte").Component<$$ComponentProps, {
|
|
45
41
|
ObcDropdownButtonChangeEvent: typeof ObcDropdownButtonChangeEvent;
|
|
42
|
+
DropdownButtonOption: typeof DropdownButtonOption;
|
|
46
43
|
DropdownButtonType: typeof DropdownButtonType;
|
|
47
44
|
}, "">;
|
|
48
45
|
type ObcDropdownButton = ReturnType<typeof ObcDropdownButton>;
|
|
@@ -39,9 +39,9 @@ required?: boolean
|
|
|
39
39
|
}
|
|
40
40
|
export interface Slots {
|
|
41
41
|
leadingIcon?: Snippet;
|
|
42
|
-
|
|
42
|
+
labelSnippet?: Snippet
|
|
43
43
|
}
|
|
44
|
-
const {onChange, class: className, style, leadingIcon,
|
|
44
|
+
const {onChange, class: className, style, leadingIcon, labelSnippet, ...props} = $props<Props & Events & Slots>();
|
|
45
45
|
|
|
46
46
|
</script>
|
|
47
47
|
<obc-elevated-card-radio
|
|
@@ -56,9 +56,9 @@ required?: boolean
|
|
|
56
56
|
</div>
|
|
57
57
|
{/if}
|
|
58
58
|
|
|
59
|
-
{#if
|
|
59
|
+
{#if labelSnippet}
|
|
60
60
|
<div slot="label">
|
|
61
|
-
{@render
|
|
61
|
+
{@render labelSnippet()}
|
|
62
62
|
</div>
|
|
63
63
|
{/if}
|
|
64
64
|
</obc-elevated-card-radio>
|
|
@@ -34,7 +34,7 @@ export interface Events {
|
|
|
34
34
|
}
|
|
35
35
|
export interface Slots {
|
|
36
36
|
leadingIcon?: Snippet;
|
|
37
|
-
|
|
37
|
+
labelSnippet?: Snippet;
|
|
38
38
|
}
|
|
39
39
|
type $$ComponentProps = Props & Events & Slots;
|
|
40
40
|
declare const ObcElevatedCardRadio: import("svelte").Component<$$ComponentProps, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ObcElevatedCardRadioGroupChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
3
|
+
export type {ObcElevatedCardRadioGroupChangeEvent, ElevatedCardRadioGroupOption} from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {ObcElevatedCardRadioGroupChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
6
|
+
import type {ObcElevatedCardRadioGroupChangeEvent, ElevatedCardRadioGroupOption} from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/** Array of options to display as card radios. Each option should be an object with a `label` (displayed text) and a `value` (submitted value).
|
|
13
13
|
|
|
14
14
|
Example: `[{label: 'Option 1', value: '1'}, {label: 'Option 2', value: '2'}]` */
|
|
15
|
-
options?:
|
|
15
|
+
options?: ElevatedCardRadioGroupOption[];
|
|
16
16
|
/** Shared name for all radio inputs in the group. Ensures native radio group behavior and correct form submission.
|
|
17
17
|
|
|
18
18
|
Default: `'default'` */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
2
|
-
import type { ObcElevatedCardRadioGroupChangeEvent } from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
2
|
+
import type { ObcElevatedCardRadioGroupChangeEvent, ElevatedCardRadioGroupOption } from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
@@ -7,10 +7,7 @@ export interface Props {
|
|
|
7
7
|
/** Array of options to display as card radios. Each option should be an object with a `label` (displayed text) and a `value` (submitted value).
|
|
8
8
|
|
|
9
9
|
Example: `[{label: 'Option 1', value: '1'}, {label: 'Option 2', value: '2'}]` */
|
|
10
|
-
options?:
|
|
11
|
-
label: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
10
|
+
options?: ElevatedCardRadioGroupOption[];
|
|
14
11
|
/** Shared name for all radio inputs in the group. Ensures native radio group behavior and correct form submission.
|
|
15
12
|
|
|
16
13
|
Default: `'default'` */
|
|
@@ -33,6 +30,7 @@ export interface Slots {
|
|
|
33
30
|
type $$ComponentProps = Props & Events & Slots;
|
|
34
31
|
declare const ObcElevatedCardRadioGroup: import("svelte").Component<$$ComponentProps, {
|
|
35
32
|
ObcElevatedCardRadioGroupChangeEvent: typeof ObcElevatedCardRadioGroupChangeEvent;
|
|
33
|
+
ElevatedCardRadioGroupOption: typeof ElevatedCardRadioGroupOption;
|
|
36
34
|
}, "">;
|
|
37
35
|
type ObcElevatedCardRadioGroup = ReturnType<typeof ObcElevatedCardRadioGroup>;
|
|
38
36
|
export default ObcElevatedCardRadioGroup;
|
|
@@ -54,10 +54,10 @@ lineType?: ObcFloatingItemLineType
|
|
|
54
54
|
description?: Snippet;
|
|
55
55
|
time?: Snippet;
|
|
56
56
|
day?: Snippet;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
actionSnippet?: Snippet;
|
|
58
|
+
action2Snippet?: Snippet
|
|
59
59
|
}
|
|
60
|
-
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day,
|
|
60
|
+
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day, actionSnippet, action2Snippet, ...props} = $props<Props & Events & Slots>();
|
|
61
61
|
|
|
62
62
|
</script>
|
|
63
63
|
<obc-floating-item
|
|
@@ -104,15 +104,15 @@ lineType?: ObcFloatingItemLineType
|
|
|
104
104
|
</div>
|
|
105
105
|
{/if}
|
|
106
106
|
|
|
107
|
-
{#if
|
|
107
|
+
{#if actionSnippet}
|
|
108
108
|
<div slot="action">
|
|
109
|
-
{@render
|
|
109
|
+
{@render actionSnippet()}
|
|
110
110
|
</div>
|
|
111
111
|
{/if}
|
|
112
112
|
|
|
113
|
-
{#if
|
|
113
|
+
{#if action2Snippet}
|
|
114
114
|
<div slot="action2">
|
|
115
|
-
{@render
|
|
115
|
+
{@render action2Snippet()}
|
|
116
116
|
</div>
|
|
117
117
|
{/if}
|
|
118
118
|
</obc-floating-item>
|
|
@@ -49,8 +49,8 @@ export interface Slots {
|
|
|
49
49
|
description?: Snippet;
|
|
50
50
|
time?: Snippet;
|
|
51
51
|
day?: Snippet;
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
actionSnippet?: Snippet;
|
|
53
|
+
action2Snippet?: Snippet;
|
|
54
54
|
}
|
|
55
55
|
type $$ComponentProps = Props & Events & Slots;
|
|
56
56
|
declare const ObcFloatingItem: import("svelte").Component<$$ComponentProps, {
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
}
|
|
18
18
|
export interface Slots {
|
|
19
19
|
title?: Snippet;
|
|
20
|
-
|
|
20
|
+
contentTitleSnippet?: Snippet;
|
|
21
21
|
children?: Snippet;
|
|
22
22
|
footer?: Snippet
|
|
23
23
|
}
|
|
24
|
-
const { class: className, style, title,
|
|
24
|
+
const { class: className, style, title, contentTitleSnippet, children, footer, ...props} = $props<Props & Events & Slots>();
|
|
25
25
|
|
|
26
26
|
</script>
|
|
27
27
|
<obc-form-container
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
</div>
|
|
37
37
|
{/if}
|
|
38
38
|
|
|
39
|
-
{#if
|
|
39
|
+
{#if contentTitleSnippet}
|
|
40
40
|
<div slot="content-title">
|
|
41
|
-
{@render
|
|
41
|
+
{@render contentTitleSnippet()}
|
|
42
42
|
</div>
|
|
43
43
|
{/if}
|
|
44
44
|
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
onSecondaryActionClick?: (event: CustomEvent<void>) => void
|
|
32
32
|
}
|
|
33
33
|
export interface Slots {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
titleSnippet?: Snippet;
|
|
35
|
+
descriptionSnippet?: Snippet;
|
|
36
36
|
actionLabel?: Snippet;
|
|
37
37
|
primaryIcon?: Snippet;
|
|
38
38
|
secondaryIcon?: Snippet;
|
|
39
39
|
trailingIcon?: Snippet
|
|
40
40
|
}
|
|
41
|
-
const {onMessageClick, onPrimaryActionClick, onSecondaryActionClick, class: className, style,
|
|
41
|
+
const {onMessageClick, onPrimaryActionClick, onSecondaryActionClick, class: className, style, titleSnippet, descriptionSnippet, actionLabel, primaryIcon, secondaryIcon, trailingIcon, ...props} = $props<Props & Events & Slots>();
|
|
42
42
|
|
|
43
43
|
</script>
|
|
44
44
|
<obc-message-menu-item
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
onprimary-action-click={onPrimaryActionClick}
|
|
50
50
|
onsecondary-action-click={onSecondaryActionClick} >
|
|
51
51
|
|
|
52
|
-
{#if
|
|
52
|
+
{#if titleSnippet}
|
|
53
53
|
<div slot="title">
|
|
54
|
-
{@render
|
|
54
|
+
{@render titleSnippet()}
|
|
55
55
|
</div>
|
|
56
56
|
{/if}
|
|
57
57
|
|
|
58
|
-
{#if
|
|
58
|
+
{#if descriptionSnippet}
|
|
59
59
|
<div slot="description">
|
|
60
|
-
{@render
|
|
60
|
+
{@render descriptionSnippet()}
|
|
61
61
|
</div>
|
|
62
62
|
{/if}
|
|
63
63
|
|
|
@@ -28,8 +28,8 @@ export interface Events {
|
|
|
28
28
|
onSecondaryActionClick?: (event: CustomEvent<void>) => void;
|
|
29
29
|
}
|
|
30
30
|
export interface Slots {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
titleSnippet?: Snippet;
|
|
32
|
+
descriptionSnippet?: Snippet;
|
|
33
33
|
actionLabel?: Snippet;
|
|
34
34
|
primaryIcon?: Snippet;
|
|
35
35
|
secondaryIcon?: Snippet;
|
|
@@ -50,10 +50,10 @@ lineType?: ObcFloatingItemLineType
|
|
|
50
50
|
description?: Snippet;
|
|
51
51
|
time?: Snippet;
|
|
52
52
|
day?: Snippet;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
actionSnippet?: Snippet;
|
|
54
|
+
action2Snippet?: Snippet
|
|
55
55
|
}
|
|
56
|
-
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day,
|
|
56
|
+
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day, actionSnippet, action2Snippet, ...props} = $props<Props & Events & Slots>();
|
|
57
57
|
|
|
58
58
|
</script>
|
|
59
59
|
<obc-notification-floating-item
|
|
@@ -100,15 +100,15 @@ lineType?: ObcFloatingItemLineType
|
|
|
100
100
|
</div>
|
|
101
101
|
{/if}
|
|
102
102
|
|
|
103
|
-
{#if
|
|
103
|
+
{#if actionSnippet}
|
|
104
104
|
<div slot="action">
|
|
105
|
-
{@render
|
|
105
|
+
{@render actionSnippet()}
|
|
106
106
|
</div>
|
|
107
107
|
{/if}
|
|
108
108
|
|
|
109
|
-
{#if
|
|
109
|
+
{#if action2Snippet}
|
|
110
110
|
<div slot="action2">
|
|
111
|
-
{@render
|
|
111
|
+
{@render action2Snippet()}
|
|
112
112
|
</div>
|
|
113
113
|
{/if}
|
|
114
114
|
</obc-notification-floating-item>
|
|
@@ -45,8 +45,8 @@ export interface Slots {
|
|
|
45
45
|
description?: Snippet;
|
|
46
46
|
time?: Snippet;
|
|
47
47
|
day?: Snippet;
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
actionSnippet?: Snippet;
|
|
49
|
+
action2Snippet?: Snippet;
|
|
50
50
|
}
|
|
51
51
|
type $$ComponentProps = Props & Events & Slots;
|
|
52
52
|
declare const ObcNotificationFloatingItem: import("svelte").Component<$$ComponentProps, {
|
|
@@ -93,10 +93,10 @@ showLeadingBadgeIcon?: boolean
|
|
|
93
93
|
}
|
|
94
94
|
export interface Slots {
|
|
95
95
|
leadingIcon?: Snippet;
|
|
96
|
-
|
|
96
|
+
titleSnippet?: Snippet;
|
|
97
97
|
badgeIcon?: Snippet
|
|
98
98
|
}
|
|
99
|
-
const {onTabClick, onTabClose, class: className, style, leadingIcon,
|
|
99
|
+
const {onTabClick, onTabClose, class: className, style, leadingIcon, titleSnippet, badgeIcon, ...props} = $props<Props & Events & Slots>();
|
|
100
100
|
|
|
101
101
|
</script>
|
|
102
102
|
<obc-tab-item
|
|
@@ -112,9 +112,9 @@ showLeadingBadgeIcon?: boolean
|
|
|
112
112
|
</div>
|
|
113
113
|
{/if}
|
|
114
114
|
|
|
115
|
-
{#if
|
|
115
|
+
{#if titleSnippet}
|
|
116
116
|
<div slot="title">
|
|
117
|
-
{@render
|
|
117
|
+
{@render titleSnippet()}
|
|
118
118
|
</div>
|
|
119
119
|
{/if}
|
|
120
120
|
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
export interface Slots {
|
|
20
20
|
icon?: Snippet;
|
|
21
21
|
title?: Snippet;
|
|
22
|
-
|
|
22
|
+
labelSnippet?: Snippet;
|
|
23
23
|
actions?: Snippet
|
|
24
24
|
}
|
|
25
|
-
const {onActionClick, class: className, style, icon, title,
|
|
25
|
+
const {onActionClick, class: className, style, icon, title, labelSnippet, actions, ...props} = $props<Props & Events & Slots>();
|
|
26
26
|
|
|
27
27
|
</script>
|
|
28
28
|
<obc-title-container
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
{/if}
|
|
45
45
|
|
|
46
|
-
{#if
|
|
46
|
+
{#if labelSnippet}
|
|
47
47
|
<div slot="label">
|
|
48
|
-
{@render
|
|
48
|
+
{@render labelSnippet()}
|
|
49
49
|
</div>
|
|
50
50
|
{/if}
|
|
51
51
|
|
package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ObcIntegrationDropdownButtonChangeEvent} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js';
|
|
4
|
-
export type {HTMLTemplateResult} from 'lit';
|
|
3
|
+
export type {ObcIntegrationDropdownButtonChangeEvent, IntegrationDropdownOption} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js';
|
|
5
4
|
import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js';
|
|
6
5
|
import { setProperties } from "../../util.js";
|
|
7
|
-
import type {ObcIntegrationDropdownButtonChangeEvent} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js';
|
|
8
|
-
import type {HTMLTemplateResult} from 'lit';
|
|
6
|
+
import type {ObcIntegrationDropdownButtonChangeEvent, IntegrationDropdownOption} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js';
|
|
9
7
|
import type { Snippet } from 'svelte';
|
|
10
8
|
|
|
11
9
|
export interface Props {
|
|
@@ -18,7 +16,7 @@ Example:
|
|
|
18
16
|
{ value: 'volvo', label: 'Volvo', icon: html`<obi-ship></obi-ship>` },
|
|
19
17
|
{ value: 'xc90', label: 'XC 90', icon: html`<obi-ship></obi-ship>` }
|
|
20
18
|
] */
|
|
21
|
-
options?:
|
|
19
|
+
options?: IntegrationDropdownOption[];
|
|
22
20
|
hasFleet?: boolean;
|
|
23
21
|
fleetLabel?: string;
|
|
24
22
|
/** The value of the currently selected option. */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js';
|
|
2
|
-
import type { ObcIntegrationDropdownButtonChangeEvent } from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js';
|
|
3
|
-
import type { HTMLTemplateResult } from 'lit';
|
|
2
|
+
import type { ObcIntegrationDropdownButtonChangeEvent, IntegrationDropdownOption } from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js';
|
|
4
3
|
import type { Snippet } from 'svelte';
|
|
5
4
|
export interface Props {
|
|
6
5
|
class?: string;
|
|
@@ -12,13 +11,7 @@ Example:
|
|
|
12
11
|
{ value: 'volvo', label: 'Volvo', icon: html`<obi-ship></obi-ship>` },
|
|
13
12
|
{ value: 'xc90', label: 'XC 90', icon: html`<obi-ship></obi-ship>` }
|
|
14
13
|
] */
|
|
15
|
-
options?:
|
|
16
|
-
value: string;
|
|
17
|
-
label: string;
|
|
18
|
-
status?: string | undefined;
|
|
19
|
-
icon: HTMLTemplateResult;
|
|
20
|
-
disabled?: boolean | undefined;
|
|
21
|
-
}[];
|
|
14
|
+
options?: IntegrationDropdownOption[];
|
|
22
15
|
hasFleet?: boolean;
|
|
23
16
|
fleetLabel?: string;
|
|
24
17
|
/** The value of the currently selected option. */
|
|
@@ -39,7 +32,7 @@ export interface Slots {
|
|
|
39
32
|
type $$ComponentProps = Props & Events & Slots;
|
|
40
33
|
declare const ObcIntegrationDropdownButton: import("svelte").Component<$$ComponentProps, {
|
|
41
34
|
ObcIntegrationDropdownButtonChangeEvent: typeof ObcIntegrationDropdownButtonChangeEvent;
|
|
42
|
-
|
|
35
|
+
IntegrationDropdownOption: typeof IntegrationDropdownOption;
|
|
43
36
|
}, "">;
|
|
44
37
|
type ObcIntegrationDropdownButton = ReturnType<typeof ObcIntegrationDropdownButton>;
|
|
45
38
|
export default ObcIntegrationDropdownButton;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ExternalScaleSide, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
4
4
|
export type {BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
-
export type {
|
|
5
|
+
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
8
|
import type {ExternalScaleSide, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
9
9
|
import type {BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
|
-
import type {
|
|
10
|
+
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
11
11
|
import type { Snippet } from 'svelte';
|
|
12
12
|
|
|
13
13
|
export interface Props {
|
|
@@ -45,7 +45,7 @@ value?: number | undefined;
|
|
|
45
45
|
state?: InstrumentState;
|
|
46
46
|
focused?: boolean;
|
|
47
47
|
/** Advice/alert overlays with min, max, type, and hinted state. When undefined or empty, no advice shown. */
|
|
48
|
-
advices?:
|
|
48
|
+
advices?: LinearAdvice[] | undefined;
|
|
49
49
|
/** When true, displays a dot indicator at the current value position.
|
|
50
50
|
The dot is rendered in the scale band, touching its inner edge (towards the chart).
|
|
51
51
|
This provides an alternative to bar fill for highlighting the current value. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.js';
|
|
2
2
|
import type { ExternalScaleSide, FillMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
3
3
|
import type { BorderRadiusPosition, Priority, InstrumentState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
7
7
|
class?: string;
|
|
@@ -38,12 +38,7 @@ export interface Props {
|
|
|
38
38
|
state?: InstrumentState;
|
|
39
39
|
focused?: boolean;
|
|
40
40
|
/** Advice/alert overlays with min, max, type, and hinted state. When undefined or empty, no advice shown. */
|
|
41
|
-
advices?:
|
|
42
|
-
min: number;
|
|
43
|
-
max: number;
|
|
44
|
-
type: AdviceType;
|
|
45
|
-
hinted: boolean;
|
|
46
|
-
}[] | undefined;
|
|
41
|
+
advices?: LinearAdvice[] | undefined;
|
|
47
42
|
/** When true, displays a dot indicator at the current value position.
|
|
48
43
|
The dot is rendered in the scale band, touching its inner edge (towards the chart).
|
|
49
44
|
This provides an alternative to bar fill for highlighting the current value. */
|
|
@@ -62,7 +57,7 @@ declare const ObcGaugeHorizontal: import("svelte").Component<$$ComponentProps, {
|
|
|
62
57
|
BorderRadiusPosition: typeof BorderRadiusPosition;
|
|
63
58
|
Priority: typeof Priority;
|
|
64
59
|
InstrumentState: typeof InstrumentState;
|
|
65
|
-
|
|
60
|
+
LinearAdvice: typeof LinearAdvice;
|
|
66
61
|
}, "">;
|
|
67
62
|
type ObcGaugeHorizontal = ReturnType<typeof ObcGaugeHorizontal>;
|
|
68
63
|
export default ObcGaugeHorizontal;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ScaleType, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
4
|
-
export type {
|
|
4
|
+
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
7
|
import type {ScaleType, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
8
|
-
import type {
|
|
8
|
+
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
10
10
|
|
|
11
11
|
export interface Props {
|
|
@@ -67,7 +67,7 @@ In `'tint'` mode, this defines the upper bound of the highlighted range.
|
|
|
67
67
|
When `undefined`, defaults to `value`. */
|
|
68
68
|
fillMax?: number | undefined;
|
|
69
69
|
/** Advice/alert overlays for the vertical scale. */
|
|
70
|
-
advice?:
|
|
70
|
+
advice?: LinearAdvice[];
|
|
71
71
|
/** Primary tick interval for the vertical scale (longest ticks with labels). */
|
|
72
72
|
primaryTickmarkInterval?: number | undefined;
|
|
73
73
|
/** Secondary tick interval for the vertical scale (medium ticks). */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js';
|
|
2
2
|
import type { ScaleType, FillMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
4
4
|
import type { Snippet } from 'svelte';
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
@@ -61,12 +61,7 @@ In `'tint'` mode, this defines the upper bound of the highlighted range.
|
|
|
61
61
|
When `undefined`, defaults to `value`. */
|
|
62
62
|
fillMax?: number | undefined;
|
|
63
63
|
/** Advice/alert overlays for the vertical scale. */
|
|
64
|
-
advice?:
|
|
65
|
-
min: number;
|
|
66
|
-
max: number;
|
|
67
|
-
type: AdviceType;
|
|
68
|
-
hinted: boolean;
|
|
69
|
-
}[];
|
|
64
|
+
advice?: LinearAdvice[];
|
|
70
65
|
/** Primary tick interval for the vertical scale (longest ticks with labels). */
|
|
71
66
|
primaryTickmarkInterval?: number | undefined;
|
|
72
67
|
/** Secondary tick interval for the vertical scale (medium ticks). */
|
|
@@ -87,7 +82,7 @@ type $$ComponentProps = Props & Events & Slots;
|
|
|
87
82
|
declare const ObcGaugeTrend: import("svelte").Component<$$ComponentProps, {
|
|
88
83
|
ScaleType: typeof ScaleType;
|
|
89
84
|
FillMode: typeof FillMode;
|
|
90
|
-
|
|
85
|
+
LinearAdvice: typeof LinearAdvice;
|
|
91
86
|
}, "">;
|
|
92
87
|
type ObcGaugeTrend = ReturnType<typeof ObcGaugeTrend>;
|
|
93
88
|
export default ObcGaugeTrend;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ExternalScaleSide, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
4
4
|
export type {BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
-
export type {
|
|
5
|
+
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-vertical/gauge-vertical.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
8
|
import type {ExternalScaleSide, FillMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
9
9
|
import type {BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
|
-
import type {
|
|
10
|
+
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
11
11
|
import type { Snippet } from 'svelte';
|
|
12
12
|
|
|
13
13
|
export interface Props {
|
|
@@ -45,7 +45,7 @@ value?: number | undefined;
|
|
|
45
45
|
state?: InstrumentState;
|
|
46
46
|
focused?: boolean;
|
|
47
47
|
/** Advice/alert overlays with min, max, type, and hinted state. When undefined or empty, no advice shown. */
|
|
48
|
-
advices?:
|
|
48
|
+
advices?: LinearAdvice[] | undefined;
|
|
49
49
|
/** When true, displays a dot indicator at the current value position.
|
|
50
50
|
The dot is rendered in the scale band, touching its inner edge (towards the chart).
|
|
51
51
|
This provides an alternative to bar fill for highlighting the current value. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-vertical/gauge-vertical.js';
|
|
2
2
|
import type { ExternalScaleSide, FillMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
3
3
|
import type { BorderRadiusPosition, Priority, InstrumentState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
7
7
|
class?: string;
|
|
@@ -38,12 +38,7 @@ export interface Props {
|
|
|
38
38
|
state?: InstrumentState;
|
|
39
39
|
focused?: boolean;
|
|
40
40
|
/** Advice/alert overlays with min, max, type, and hinted state. When undefined or empty, no advice shown. */
|
|
41
|
-
advices?:
|
|
42
|
-
min: number;
|
|
43
|
-
max: number;
|
|
44
|
-
type: AdviceType;
|
|
45
|
-
hinted: boolean;
|
|
46
|
-
}[] | undefined;
|
|
41
|
+
advices?: LinearAdvice[] | undefined;
|
|
47
42
|
/** When true, displays a dot indicator at the current value position.
|
|
48
43
|
The dot is rendered in the scale band, touching its inner edge (towards the chart).
|
|
49
44
|
This provides an alternative to bar fill for highlighting the current value. */
|
|
@@ -62,7 +57,7 @@ declare const ObcGaugeVertical: import("svelte").Component<$$ComponentProps, {
|
|
|
62
57
|
BorderRadiusPosition: typeof BorderRadiusPosition;
|
|
63
58
|
Priority: typeof Priority;
|
|
64
59
|
InstrumentState: typeof InstrumentState;
|
|
65
|
-
|
|
60
|
+
LinearAdvice: typeof LinearAdvice;
|
|
66
61
|
}, "">;
|
|
67
62
|
type ObcGaugeVertical = ReturnType<typeof ObcGaugeVertical>;
|
|
68
63
|
export default ObcGaugeVertical;
|
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.20",
|
|
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.19"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|