@oicl/openbridge-webcomponents-svelte 2.0.0-next.4 → 2.0.0-next.41
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/automation/automation-button/ObcAbstractAutomationButton.svelte +7 -6
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte.d.ts +10 -6
- package/dist/automation/automation-button/ObcAutomationButton.svelte +3 -4
- package/dist/automation/automation-button/ObcAutomationButton.svelte.d.ts +2 -4
- 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/alert-menu/ObcAlertMenu.svelte +11 -1
- package/dist/components/alert-menu/ObcAlertMenu.svelte.d.ts +10 -0
- package/dist/components/automation-button-readout-stack/ObcAutomationButtonReadoutStack.svelte +4 -5
- package/dist/components/automation-button-readout-stack/ObcAutomationButtonReadoutStack.svelte.d.ts +2 -4
- package/dist/components/card/ObcCard.svelte +4 -4
- package/dist/components/card/ObcCard.svelte.d.ts +4 -4
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte +4 -4
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte.d.ts +6 -10
- 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/icon-button/ObcIconButton.svelte +3 -1
- package/dist/components/icon-button/ObcIconButton.svelte.d.ts +2 -0
- package/dist/components/menu-button/ObcMenuButton.svelte +6 -4
- package/dist/components/menu-button/ObcMenuButton.svelte.d.ts +5 -8
- 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/modal-window/ObcModalWindow.svelte +5 -1
- package/dist/components/modal-window/ObcModalWindow.svelte.d.ts +4 -0
- 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/number-input-field/ObcNumberInputField.svelte +14 -5
- package/dist/components/number-input-field/ObcNumberInputField.svelte.d.ts +14 -2
- package/dist/components/slider-double/ObcSliderDouble.svelte +34 -3
- package/dist/components/slider-double/ObcSliderDouble.svelte.d.ts +19 -0
- package/dist/components/split-button/ObcSplitButton.svelte +6 -4
- package/dist/components/split-button/ObcSplitButton.svelte.d.ts +5 -9
- package/dist/components/stepper-box/ObcStepperBox.svelte +31 -22
- package/dist/components/stepper-box/ObcStepperBox.svelte.d.ts +32 -7
- package/dist/components/tab-item/ObcTabItem.svelte +12 -4
- package/dist/components/tab-item/ObcTabItem.svelte.d.ts +9 -1
- package/dist/components/tab-row/ObcTabRow.svelte +7 -1
- package/dist/components/tab-row/ObcTabRow.svelte.d.ts +7 -1
- package/dist/components/tag/ObcTag.svelte +3 -2
- package/dist/components/tag/ObcTag.svelte.d.ts +3 -1
- package/dist/components/title-container/ObcTitleContainer.svelte +4 -4
- package/dist/components/title-container/ObcTitleContainer.svelte.d.ts +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +17 -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/azimuth-thruster-labeled/ObcAzimuthThrusterLabeled.svelte +3 -0
- package/dist/navigation-instruments/azimuth-thruster-labeled/ObcAzimuthThrusterLabeled.svelte.d.ts +3 -0
- package/dist/navigation-instruments/compass/ObcCompass.svelte +17 -1
- package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +16 -0
- package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte +8 -1
- package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte.d.ts +7 -0
- package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte +4 -4
- package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte.d.ts +5 -4
- package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte +16 -1
- package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte.d.ts +15 -0
- package/dist/navigation-instruments/depth-indicator/ObcDepthIndicator.svelte +33 -0
- package/dist/navigation-instruments/depth-indicator/ObcDepthIndicator.svelte.d.ts +20 -0
- package/dist/navigation-instruments/gauge-bar-indicator/ObcGaugeBarIndicator.svelte +34 -0
- package/dist/navigation-instruments/gauge-bar-indicator/ObcGaugeBarIndicator.svelte.d.ts +18 -0
- 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-radial-indicator/ObcGaugeRadialIndicator.svelte +40 -0
- package/dist/navigation-instruments/gauge-radial-indicator/ObcGaugeRadialIndicator.svelte.d.ts +25 -0
- 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-trend-indicator/ObcGaugeTrendIndicator.svelte +38 -0
- package/dist/navigation-instruments/gauge-trend-indicator/ObcGaugeTrendIndicator.svelte.d.ts +25 -0
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte +3 -3
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte.d.ts +3 -8
- package/dist/navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte +35 -0
- package/dist/navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte.d.ts +22 -0
- package/dist/navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte +33 -0
- package/dist/navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte.d.ts +20 -0
- package/dist/navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte +38 -0
- package/dist/navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte.d.ts +26 -0
- package/dist/navigation-instruments/pitch/ObcPitch.svelte +12 -1
- package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +11 -0
- package/dist/navigation-instruments/pitch-indicator/ObcPitchIndicator.svelte +33 -0
- package/dist/navigation-instruments/pitch-indicator/ObcPitchIndicator.svelte.d.ts +20 -0
- package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte +13 -1
- package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte.d.ts +12 -0
- package/dist/navigation-instruments/propulsion-azimuth-indicator/ObcPropulsionAzimuthIndicator.svelte +38 -0
- package/dist/navigation-instruments/propulsion-azimuth-indicator/ObcPropulsionAzimuthIndicator.svelte.d.ts +25 -0
- package/dist/navigation-instruments/propulsion-tunnel-thruster/ObcTunnelThruster.svelte +35 -0
- package/dist/navigation-instruments/propulsion-tunnel-thruster/ObcTunnelThruster.svelte.d.ts +19 -0
- package/dist/navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte +6 -0
- package/dist/navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte.d.ts +6 -0
- package/dist/navigation-instruments/readout/ObcReadout.svelte +169 -0
- package/dist/navigation-instruments/readout/ObcReadout.svelte.d.ts +112 -0
- package/dist/navigation-instruments/readout-advice/ObcReadoutAdvice.svelte +54 -0
- package/dist/navigation-instruments/readout-advice/ObcReadoutAdvice.svelte.d.ts +41 -0
- package/dist/navigation-instruments/readout-input/ObcReadoutInput.svelte +63 -0
- package/dist/navigation-instruments/readout-input/ObcReadoutInput.svelte.d.ts +47 -0
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte +62 -0
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte.d.ts +44 -0
- package/dist/navigation-instruments/roll/ObcRoll.svelte +13 -1
- package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +12 -0
- package/dist/navigation-instruments/roll-indicator/ObcRollIndicator.svelte +33 -0
- package/dist/navigation-instruments/roll-indicator/ObcRollIndicator.svelte.d.ts +20 -0
- package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte +13 -2
- package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte.d.ts +15 -1
- package/dist/navigation-instruments/rudder-indicator/ObcRudderIndicator.svelte +35 -0
- package/dist/navigation-instruments/rudder-indicator/ObcRudderIndicator.svelte.d.ts +22 -0
- package/dist/navigation-instruments/speed-indicator/ObcSpeedIndicator.svelte +5 -3
- package/dist/navigation-instruments/speed-indicator/ObcSpeedIndicator.svelte.d.ts +6 -1
- package/dist/navigation-instruments/watch/ObcWatch.svelte +3 -1
- package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +2 -0
- package/dist/navigation-instruments/watch-flat/ObcWatchFlat.svelte +3 -1
- package/dist/navigation-instruments/watch-flat/ObcWatchFlat.svelte.d.ts +2 -0
- package/dist/navigation-instruments/wind/ObcWind.svelte +6 -3
- package/dist/navigation-instruments/wind/ObcWind.svelte.d.ts +5 -1
- package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte +18 -8
- package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte.d.ts +21 -6
- package/dist/navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte +62 -0
- package/dist/navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte.d.ts +51 -0
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte +5 -3
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte.d.ts +1 -0
- package/package.json +2 -2
- package/dist/navigation-instruments/instrument-field/ObcInstrumentField.svelte +0 -69
- package/dist/navigation-instruments/instrument-field/ObcInstrumentField.svelte.d.ts +0 -54
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
|
|
4
|
+
export type {ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
5
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
|
+
export type {ReadoutInputSize, ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
7
|
+
export type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
8
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
9
|
+
import { setProperties } from "../../util.js";
|
|
10
|
+
import type {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
|
|
11
|
+
import type {ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
12
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
13
|
+
import type {ReadoutInputSize, ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
14
|
+
import type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
15
|
+
import type { Snippet } from 'svelte';
|
|
16
|
+
|
|
17
|
+
export interface Props {
|
|
18
|
+
class?: string;
|
|
19
|
+
style?: string;
|
|
20
|
+
variant?: ReadoutVariant;
|
|
21
|
+
valuePriority?: Priority | undefined;
|
|
22
|
+
alertState?: ReadoutAlertState;
|
|
23
|
+
inputInteraction?: ReadoutInputInteraction;
|
|
24
|
+
direction?: ReadoutDirection;
|
|
25
|
+
/** Override the size of the input segment (when `hasInput` is true).
|
|
26
|
+
|
|
27
|
+
- In `alwaysVisible` and `popUp` interaction modes: any size value applies.
|
|
28
|
+
- In `flipFlop` mode: the override is honored only when strictly smaller
|
|
29
|
+
than the variant's base size (medium for `regular`, large for
|
|
30
|
+
`enhanced`/`stack`). Larger overrides are ignored, falling back to the
|
|
31
|
+
default secondary size to preserve the flip-flop visual effect and
|
|
32
|
+
prevent input/value overlap.
|
|
33
|
+
|
|
34
|
+
When unset, the input size is derived from `variant` (and adjusted for
|
|
35
|
+
multi-line formats). */
|
|
36
|
+
inputSize?: ReadoutInputSize | undefined;
|
|
37
|
+
alignment?: ReadoutStackVerticalAlignment;
|
|
38
|
+
hug?: boolean;
|
|
39
|
+
hasAdvice?: boolean;
|
|
40
|
+
hasInput?: boolean;
|
|
41
|
+
hasInputDivider?: boolean;
|
|
42
|
+
hasSourceDivider?: boolean;
|
|
43
|
+
hasSrc?: boolean;
|
|
44
|
+
value?: string | number | undefined;
|
|
45
|
+
maxDigits?: number;
|
|
46
|
+
showZeroPadding?: boolean;
|
|
47
|
+
fractionDigits?: number;
|
|
48
|
+
valueHasFixedLength?: boolean;
|
|
49
|
+
valueLength?: string;
|
|
50
|
+
valueHasHintedZeros?: boolean;
|
|
51
|
+
hasDegree?: boolean;
|
|
52
|
+
unit?: string;
|
|
53
|
+
src?: string;
|
|
54
|
+
sourceDeltaValue?: string;
|
|
55
|
+
labelOnly?: boolean;
|
|
56
|
+
hasSrcPicker?: boolean;
|
|
57
|
+
hasLeadingIcon?: boolean;
|
|
58
|
+
adviceValue?: string | number | undefined;
|
|
59
|
+
setpointValue?: string | number | undefined;
|
|
60
|
+
label?: string;
|
|
61
|
+
sourceType?: ReadoutSourceType | undefined;
|
|
62
|
+
sourceHug?: boolean;
|
|
63
|
+
hasSourceLeadingIcon?: boolean;
|
|
64
|
+
hasSourceTrailingIcon?: boolean;
|
|
65
|
+
hasLabelFixedLength?: boolean;
|
|
66
|
+
labelLength?: string;
|
|
67
|
+
hasUnitFixedLength?: boolean;
|
|
68
|
+
unitLength?: string;
|
|
69
|
+
adviceFormat?: ReadoutAdviceFormat;
|
|
70
|
+
adviceState?: ReadoutAdviceState;
|
|
71
|
+
advicePriority?: Priority | undefined;
|
|
72
|
+
adviceHasFixedLength?: boolean;
|
|
73
|
+
adviceSecondaryValue?: string;
|
|
74
|
+
adviceDescription?: string;
|
|
75
|
+
adviceValueLength?: string;
|
|
76
|
+
adviceHasHintedZeros?: boolean;
|
|
77
|
+
inputFormat?: ReadoutInputFormat;
|
|
78
|
+
inputHasFixedLength?: boolean;
|
|
79
|
+
inputSecondaryValue?: string;
|
|
80
|
+
inputDescription?: string;
|
|
81
|
+
inputValueLength?: string;
|
|
82
|
+
inputHasHintedZeros?: boolean
|
|
83
|
+
}
|
|
84
|
+
export interface Events {
|
|
85
|
+
onSourceFlyoutClick?: (event: CustomEvent<{src: string, sourceType?: ReadoutSourceType}>) => void;
|
|
86
|
+
onSourceChange?: (event: CustomEvent<{value: string, label?: string}>) => void
|
|
87
|
+
}
|
|
88
|
+
export interface Slots {
|
|
89
|
+
advice?: Snippet;
|
|
90
|
+
adviceIcon?: Snippet;
|
|
91
|
+
input?: Snippet;
|
|
92
|
+
inputIcon?: Snippet;
|
|
93
|
+
leadingIcon?: Snippet;
|
|
94
|
+
valueSnippet?: Snippet;
|
|
95
|
+
labelSnippet?: Snippet;
|
|
96
|
+
unitSnippet?: Snippet;
|
|
97
|
+
source?: Snippet;
|
|
98
|
+
srcPickerContent?: Snippet
|
|
99
|
+
}
|
|
100
|
+
const {onSourceFlyoutClick, onSourceChange, class: className, style, advice, adviceIcon, input, inputIcon, leadingIcon, valueSnippet, labelSnippet, unitSnippet, source, srcPickerContent, ...props} = $props<Props & Events & Slots>();
|
|
101
|
+
|
|
102
|
+
</script>
|
|
103
|
+
<obc-readout
|
|
104
|
+
use:setProperties={props}
|
|
105
|
+
class={className}
|
|
106
|
+
style={style}
|
|
107
|
+
onsource-flyout-click={onSourceFlyoutClick}
|
|
108
|
+
onsource-change={onSourceChange} >
|
|
109
|
+
|
|
110
|
+
{#if advice}
|
|
111
|
+
<div slot="advice">
|
|
112
|
+
{@render advice()}
|
|
113
|
+
</div>
|
|
114
|
+
{/if}
|
|
115
|
+
|
|
116
|
+
{#if adviceIcon}
|
|
117
|
+
<div slot="advice-icon">
|
|
118
|
+
{@render adviceIcon()}
|
|
119
|
+
</div>
|
|
120
|
+
{/if}
|
|
121
|
+
|
|
122
|
+
{#if input}
|
|
123
|
+
<div slot="input">
|
|
124
|
+
{@render input()}
|
|
125
|
+
</div>
|
|
126
|
+
{/if}
|
|
127
|
+
|
|
128
|
+
{#if inputIcon}
|
|
129
|
+
<div slot="input-icon">
|
|
130
|
+
{@render inputIcon()}
|
|
131
|
+
</div>
|
|
132
|
+
{/if}
|
|
133
|
+
|
|
134
|
+
{#if leadingIcon}
|
|
135
|
+
<div slot="leading-icon">
|
|
136
|
+
{@render leadingIcon()}
|
|
137
|
+
</div>
|
|
138
|
+
{/if}
|
|
139
|
+
|
|
140
|
+
{#if valueSnippet}
|
|
141
|
+
<div slot="value">
|
|
142
|
+
{@render valueSnippet()}
|
|
143
|
+
</div>
|
|
144
|
+
{/if}
|
|
145
|
+
|
|
146
|
+
{#if labelSnippet}
|
|
147
|
+
<div slot="label">
|
|
148
|
+
{@render labelSnippet()}
|
|
149
|
+
</div>
|
|
150
|
+
{/if}
|
|
151
|
+
|
|
152
|
+
{#if unitSnippet}
|
|
153
|
+
<div slot="unit">
|
|
154
|
+
{@render unitSnippet()}
|
|
155
|
+
</div>
|
|
156
|
+
{/if}
|
|
157
|
+
|
|
158
|
+
{#if source}
|
|
159
|
+
<div slot="source">
|
|
160
|
+
{@render source()}
|
|
161
|
+
</div>
|
|
162
|
+
{/if}
|
|
163
|
+
|
|
164
|
+
{#if srcPickerContent}
|
|
165
|
+
<div slot="src-picker-content">
|
|
166
|
+
{@render srcPickerContent()}
|
|
167
|
+
</div>
|
|
168
|
+
{/if}
|
|
169
|
+
</obc-readout>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
2
|
+
import type { ReadoutSourceType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
|
|
3
|
+
import type { ReadoutVariant, ReadoutAlertState, ReadoutInputInteraction, ReadoutDirection, ReadoutStackVerticalAlignment } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
|
+
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
+
import type { ReadoutInputSize, ReadoutInputFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
6
|
+
import type { ReadoutAdviceFormat, ReadoutAdviceState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
export interface Props {
|
|
9
|
+
class?: string;
|
|
10
|
+
style?: string;
|
|
11
|
+
variant?: ReadoutVariant;
|
|
12
|
+
valuePriority?: Priority | undefined;
|
|
13
|
+
alertState?: ReadoutAlertState;
|
|
14
|
+
inputInteraction?: ReadoutInputInteraction;
|
|
15
|
+
direction?: ReadoutDirection;
|
|
16
|
+
/** Override the size of the input segment (when `hasInput` is true).
|
|
17
|
+
|
|
18
|
+
- In `alwaysVisible` and `popUp` interaction modes: any size value applies.
|
|
19
|
+
- In `flipFlop` mode: the override is honored only when strictly smaller
|
|
20
|
+
than the variant's base size (medium for `regular`, large for
|
|
21
|
+
`enhanced`/`stack`). Larger overrides are ignored, falling back to the
|
|
22
|
+
default secondary size to preserve the flip-flop visual effect and
|
|
23
|
+
prevent input/value overlap.
|
|
24
|
+
|
|
25
|
+
When unset, the input size is derived from `variant` (and adjusted for
|
|
26
|
+
multi-line formats). */
|
|
27
|
+
inputSize?: ReadoutInputSize | undefined;
|
|
28
|
+
alignment?: ReadoutStackVerticalAlignment;
|
|
29
|
+
hug?: boolean;
|
|
30
|
+
hasAdvice?: boolean;
|
|
31
|
+
hasInput?: boolean;
|
|
32
|
+
hasInputDivider?: boolean;
|
|
33
|
+
hasSourceDivider?: boolean;
|
|
34
|
+
hasSrc?: boolean;
|
|
35
|
+
value?: string | number | undefined;
|
|
36
|
+
maxDigits?: number;
|
|
37
|
+
showZeroPadding?: boolean;
|
|
38
|
+
fractionDigits?: number;
|
|
39
|
+
valueHasFixedLength?: boolean;
|
|
40
|
+
valueLength?: string;
|
|
41
|
+
valueHasHintedZeros?: boolean;
|
|
42
|
+
hasDegree?: boolean;
|
|
43
|
+
unit?: string;
|
|
44
|
+
src?: string;
|
|
45
|
+
sourceDeltaValue?: string;
|
|
46
|
+
labelOnly?: boolean;
|
|
47
|
+
hasSrcPicker?: boolean;
|
|
48
|
+
hasLeadingIcon?: boolean;
|
|
49
|
+
adviceValue?: string | number | undefined;
|
|
50
|
+
setpointValue?: string | number | undefined;
|
|
51
|
+
label?: string;
|
|
52
|
+
sourceType?: ReadoutSourceType | undefined;
|
|
53
|
+
sourceHug?: boolean;
|
|
54
|
+
hasSourceLeadingIcon?: boolean;
|
|
55
|
+
hasSourceTrailingIcon?: boolean;
|
|
56
|
+
hasLabelFixedLength?: boolean;
|
|
57
|
+
labelLength?: string;
|
|
58
|
+
hasUnitFixedLength?: boolean;
|
|
59
|
+
unitLength?: string;
|
|
60
|
+
adviceFormat?: ReadoutAdviceFormat;
|
|
61
|
+
adviceState?: ReadoutAdviceState;
|
|
62
|
+
advicePriority?: Priority | undefined;
|
|
63
|
+
adviceHasFixedLength?: boolean;
|
|
64
|
+
adviceSecondaryValue?: string;
|
|
65
|
+
adviceDescription?: string;
|
|
66
|
+
adviceValueLength?: string;
|
|
67
|
+
adviceHasHintedZeros?: boolean;
|
|
68
|
+
inputFormat?: ReadoutInputFormat;
|
|
69
|
+
inputHasFixedLength?: boolean;
|
|
70
|
+
inputSecondaryValue?: string;
|
|
71
|
+
inputDescription?: string;
|
|
72
|
+
inputValueLength?: string;
|
|
73
|
+
inputHasHintedZeros?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export interface Events {
|
|
76
|
+
onSourceFlyoutClick?: (event: CustomEvent<{
|
|
77
|
+
src: string;
|
|
78
|
+
sourceType?: ReadoutSourceType;
|
|
79
|
+
}>) => void;
|
|
80
|
+
onSourceChange?: (event: CustomEvent<{
|
|
81
|
+
value: string;
|
|
82
|
+
label?: string;
|
|
83
|
+
}>) => void;
|
|
84
|
+
}
|
|
85
|
+
export interface Slots {
|
|
86
|
+
advice?: Snippet;
|
|
87
|
+
adviceIcon?: Snippet;
|
|
88
|
+
input?: Snippet;
|
|
89
|
+
inputIcon?: Snippet;
|
|
90
|
+
leadingIcon?: Snippet;
|
|
91
|
+
valueSnippet?: Snippet;
|
|
92
|
+
labelSnippet?: Snippet;
|
|
93
|
+
unitSnippet?: Snippet;
|
|
94
|
+
source?: Snippet;
|
|
95
|
+
srcPickerContent?: Snippet;
|
|
96
|
+
}
|
|
97
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
98
|
+
declare const ObcReadout: import("svelte").Component<$$ComponentProps, {
|
|
99
|
+
ReadoutSourceType: typeof ReadoutSourceType;
|
|
100
|
+
ReadoutVariant: typeof ReadoutVariant;
|
|
101
|
+
ReadoutAlertState: typeof ReadoutAlertState;
|
|
102
|
+
ReadoutInputInteraction: typeof ReadoutInputInteraction;
|
|
103
|
+
ReadoutDirection: typeof ReadoutDirection;
|
|
104
|
+
ReadoutStackVerticalAlignment: typeof ReadoutStackVerticalAlignment;
|
|
105
|
+
Priority: typeof Priority;
|
|
106
|
+
ReadoutInputSize: typeof ReadoutInputSize;
|
|
107
|
+
ReadoutInputFormat: typeof ReadoutInputFormat;
|
|
108
|
+
ReadoutAdviceFormat: typeof ReadoutAdviceFormat;
|
|
109
|
+
ReadoutAdviceState: typeof ReadoutAdviceState;
|
|
110
|
+
}, "">;
|
|
111
|
+
type ObcReadout = ReturnType<typeof ObcReadout>;
|
|
112
|
+
export default ObcReadout;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {ReadoutVariant, ReadoutDirection} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
|
+
export type {ReadoutInputSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
5
|
+
export type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
6
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
7
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
8
|
+
import { setProperties } from "../../util.js";
|
|
9
|
+
import type {ReadoutVariant, ReadoutDirection} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
10
|
+
import type {ReadoutInputSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
11
|
+
import type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
12
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
13
|
+
import type { Snippet } from 'svelte';
|
|
14
|
+
|
|
15
|
+
export interface Props {
|
|
16
|
+
class?: string;
|
|
17
|
+
style?: string;
|
|
18
|
+
readoutStyle?: ReadoutVariant | undefined;
|
|
19
|
+
direction?: ReadoutDirection | undefined;
|
|
20
|
+
size?: ReadoutInputSize;
|
|
21
|
+
format?: ReadoutAdviceFormat | undefined;
|
|
22
|
+
priority?: Priority | undefined;
|
|
23
|
+
state?: ReadoutAdviceState;
|
|
24
|
+
hugContent?: boolean;
|
|
25
|
+
hasFixedLength?: boolean;
|
|
26
|
+
value?: string | number | undefined;
|
|
27
|
+
secondaryValue?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
valueLength?: string;
|
|
30
|
+
hasHintedZeros?: boolean;
|
|
31
|
+
fractionDigits?: number;
|
|
32
|
+
hasDegree?: boolean
|
|
33
|
+
}
|
|
34
|
+
export interface Events {
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
export interface Slots {
|
|
38
|
+
icon?: Snippet
|
|
39
|
+
}
|
|
40
|
+
const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
|
|
41
|
+
|
|
42
|
+
</script>
|
|
43
|
+
<obc-readout-advice
|
|
44
|
+
use:setProperties={props}
|
|
45
|
+
class={className}
|
|
46
|
+
style={style}
|
|
47
|
+
>
|
|
48
|
+
|
|
49
|
+
{#if icon}
|
|
50
|
+
<div slot="icon">
|
|
51
|
+
{@render icon()}
|
|
52
|
+
</div>
|
|
53
|
+
{/if}
|
|
54
|
+
</obc-readout-advice>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
2
|
+
import type { ReadoutVariant, ReadoutDirection } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
3
|
+
import type { ReadoutInputSize } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
4
|
+
import type { ReadoutAdviceFormat, ReadoutAdviceState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
5
|
+
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
export interface Props {
|
|
8
|
+
class?: string;
|
|
9
|
+
style?: string;
|
|
10
|
+
readoutStyle?: ReadoutVariant | undefined;
|
|
11
|
+
direction?: ReadoutDirection | undefined;
|
|
12
|
+
size?: ReadoutInputSize;
|
|
13
|
+
format?: ReadoutAdviceFormat | undefined;
|
|
14
|
+
priority?: Priority | undefined;
|
|
15
|
+
state?: ReadoutAdviceState;
|
|
16
|
+
hugContent?: boolean;
|
|
17
|
+
hasFixedLength?: boolean;
|
|
18
|
+
value?: string | number | undefined;
|
|
19
|
+
secondaryValue?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
valueLength?: string;
|
|
22
|
+
hasHintedZeros?: boolean;
|
|
23
|
+
fractionDigits?: number;
|
|
24
|
+
hasDegree?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface Events {
|
|
27
|
+
}
|
|
28
|
+
export interface Slots {
|
|
29
|
+
icon?: Snippet;
|
|
30
|
+
}
|
|
31
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
32
|
+
declare const ObcReadoutAdvice: import("svelte").Component<$$ComponentProps, {
|
|
33
|
+
ReadoutVariant: typeof ReadoutVariant;
|
|
34
|
+
ReadoutDirection: typeof ReadoutDirection;
|
|
35
|
+
ReadoutInputSize: typeof ReadoutInputSize;
|
|
36
|
+
ReadoutAdviceFormat: typeof ReadoutAdviceFormat;
|
|
37
|
+
ReadoutAdviceState: typeof ReadoutAdviceState;
|
|
38
|
+
Priority: typeof Priority;
|
|
39
|
+
}, "">;
|
|
40
|
+
type ObcReadoutAdvice = ReturnType<typeof ObcReadoutAdvice>;
|
|
41
|
+
export default ObcReadoutAdvice;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {ReadoutInputVariant, ReadoutInputSize, ReadoutInputValueTypography, ReadoutInputFormat, ReadoutInputMode} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
4
|
+
export type {ReadoutVariant, ReadoutDirection} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
5
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
7
|
+
import { setProperties } from "../../util.js";
|
|
8
|
+
import type {ReadoutInputVariant, ReadoutInputSize, ReadoutInputValueTypography, ReadoutInputFormat, ReadoutInputMode} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
9
|
+
import type {ReadoutVariant, ReadoutDirection} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
10
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
11
|
+
import type { Snippet } from 'svelte';
|
|
12
|
+
|
|
13
|
+
export interface Props {
|
|
14
|
+
class?: string;
|
|
15
|
+
style?: string;
|
|
16
|
+
variant?: ReadoutInputVariant;
|
|
17
|
+
readoutStyle?: ReadoutVariant | undefined;
|
|
18
|
+
direction?: ReadoutDirection | undefined;
|
|
19
|
+
size?: ReadoutInputSize;
|
|
20
|
+
valueTypography?: ReadoutInputValueTypography | undefined;
|
|
21
|
+
format?: ReadoutInputFormat | undefined;
|
|
22
|
+
mode?: ReadoutInputMode | undefined;
|
|
23
|
+
priority?: Priority | undefined;
|
|
24
|
+
hugContent?: boolean;
|
|
25
|
+
hasFixedLength?: boolean;
|
|
26
|
+
value?: string | number | undefined;
|
|
27
|
+
secondaryValue?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
valueLength?: string;
|
|
30
|
+
hasHintedZeros?: boolean;
|
|
31
|
+
hasDegree?: boolean;
|
|
32
|
+
showZeroPadding?: boolean;
|
|
33
|
+
maxDigits?: number;
|
|
34
|
+
fractionDigits?: number
|
|
35
|
+
}
|
|
36
|
+
export interface Events {
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
export interface Slots {
|
|
40
|
+
icon?: Snippet;
|
|
41
|
+
valueSnippet?: Snippet
|
|
42
|
+
}
|
|
43
|
+
const { class: className, style, icon, valueSnippet, ...props} = $props<Props & Events & Slots>();
|
|
44
|
+
|
|
45
|
+
</script>
|
|
46
|
+
<obc-readout-input
|
|
47
|
+
use:setProperties={props}
|
|
48
|
+
class={className}
|
|
49
|
+
style={style}
|
|
50
|
+
>
|
|
51
|
+
|
|
52
|
+
{#if icon}
|
|
53
|
+
<div slot="icon">
|
|
54
|
+
{@render icon()}
|
|
55
|
+
</div>
|
|
56
|
+
{/if}
|
|
57
|
+
|
|
58
|
+
{#if valueSnippet}
|
|
59
|
+
<div slot="value">
|
|
60
|
+
{@render valueSnippet()}
|
|
61
|
+
</div>
|
|
62
|
+
{/if}
|
|
63
|
+
</obc-readout-input>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
2
|
+
import type { ReadoutInputVariant, ReadoutInputSize, ReadoutInputValueTypography, ReadoutInputFormat, ReadoutInputMode } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
3
|
+
import type { ReadoutVariant, ReadoutDirection } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
|
+
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
+
import type { Snippet } from 'svelte';
|
|
6
|
+
export interface Props {
|
|
7
|
+
class?: string;
|
|
8
|
+
style?: string;
|
|
9
|
+
variant?: ReadoutInputVariant;
|
|
10
|
+
readoutStyle?: ReadoutVariant | undefined;
|
|
11
|
+
direction?: ReadoutDirection | undefined;
|
|
12
|
+
size?: ReadoutInputSize;
|
|
13
|
+
valueTypography?: ReadoutInputValueTypography | undefined;
|
|
14
|
+
format?: ReadoutInputFormat | undefined;
|
|
15
|
+
mode?: ReadoutInputMode | undefined;
|
|
16
|
+
priority?: Priority | undefined;
|
|
17
|
+
hugContent?: boolean;
|
|
18
|
+
hasFixedLength?: boolean;
|
|
19
|
+
value?: string | number | undefined;
|
|
20
|
+
secondaryValue?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
valueLength?: string;
|
|
23
|
+
hasHintedZeros?: boolean;
|
|
24
|
+
hasDegree?: boolean;
|
|
25
|
+
showZeroPadding?: boolean;
|
|
26
|
+
maxDigits?: number;
|
|
27
|
+
fractionDigits?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface Events {
|
|
30
|
+
}
|
|
31
|
+
export interface Slots {
|
|
32
|
+
icon?: Snippet;
|
|
33
|
+
valueSnippet?: Snippet;
|
|
34
|
+
}
|
|
35
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
36
|
+
declare const ObcReadoutInput: import("svelte").Component<$$ComponentProps, {
|
|
37
|
+
ReadoutInputVariant: typeof ReadoutInputVariant;
|
|
38
|
+
ReadoutInputSize: typeof ReadoutInputSize;
|
|
39
|
+
ReadoutInputValueTypography: typeof ReadoutInputValueTypography;
|
|
40
|
+
ReadoutInputFormat: typeof ReadoutInputFormat;
|
|
41
|
+
ReadoutInputMode: typeof ReadoutInputMode;
|
|
42
|
+
ReadoutVariant: typeof ReadoutVariant;
|
|
43
|
+
ReadoutDirection: typeof ReadoutDirection;
|
|
44
|
+
Priority: typeof Priority;
|
|
45
|
+
}, "">;
|
|
46
|
+
type ObcReadoutInput = ReturnType<typeof ObcReadoutInput>;
|
|
47
|
+
export default ObcReadoutInput;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {ReadoutListItemSize, ReadoutListItemStacking, ReadoutListItemPriority, ReadoutListItemAlertState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
import type {ReadoutListItemSize, ReadoutListItemStacking, ReadoutListItemPriority, ReadoutListItemAlertState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
size?: ReadoutListItemSize;
|
|
13
|
+
stacking?: ReadoutListItemStacking;
|
|
14
|
+
priority?: ReadoutListItemPriority;
|
|
15
|
+
alertState?: ReadoutListItemAlertState;
|
|
16
|
+
label?: string;
|
|
17
|
+
unit?: string;
|
|
18
|
+
src?: string;
|
|
19
|
+
value?: string | number | undefined;
|
|
20
|
+
inputValue?: string | number | undefined;
|
|
21
|
+
hasInput?: boolean;
|
|
22
|
+
hasDegree?: boolean;
|
|
23
|
+
hasUnit?: boolean;
|
|
24
|
+
hasLabel?: boolean;
|
|
25
|
+
hasSource?: boolean;
|
|
26
|
+
hasLeadingIcon?: boolean;
|
|
27
|
+
hasValueIcon?: boolean;
|
|
28
|
+
maxDigits?: number;
|
|
29
|
+
fractionDigits?: number;
|
|
30
|
+
showZeroPadding?: boolean;
|
|
31
|
+
hasFixedLength?: boolean;
|
|
32
|
+
valueLength?: string;
|
|
33
|
+
hasHintedZeros?: boolean
|
|
34
|
+
}
|
|
35
|
+
export interface Events {
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
export interface Slots {
|
|
39
|
+
leadingIcon?: Snippet;
|
|
40
|
+
valueIcon?: Snippet
|
|
41
|
+
}
|
|
42
|
+
const { class: className, style, leadingIcon, valueIcon, ...props} = $props<Props & Events & Slots>();
|
|
43
|
+
|
|
44
|
+
</script>
|
|
45
|
+
<obc-readout-list-item
|
|
46
|
+
use:setProperties={props}
|
|
47
|
+
class={className}
|
|
48
|
+
style={style}
|
|
49
|
+
>
|
|
50
|
+
|
|
51
|
+
{#if leadingIcon}
|
|
52
|
+
<div slot="leading-icon">
|
|
53
|
+
{@render leadingIcon()}
|
|
54
|
+
</div>
|
|
55
|
+
{/if}
|
|
56
|
+
|
|
57
|
+
{#if valueIcon}
|
|
58
|
+
<div slot="value-icon">
|
|
59
|
+
{@render valueIcon()}
|
|
60
|
+
</div>
|
|
61
|
+
{/if}
|
|
62
|
+
</obc-readout-list-item>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
2
|
+
import type { ReadoutListItemSize, ReadoutListItemStacking, ReadoutListItemPriority, ReadoutListItemAlertState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
export interface Props {
|
|
5
|
+
class?: string;
|
|
6
|
+
style?: string;
|
|
7
|
+
size?: ReadoutListItemSize;
|
|
8
|
+
stacking?: ReadoutListItemStacking;
|
|
9
|
+
priority?: ReadoutListItemPriority;
|
|
10
|
+
alertState?: ReadoutListItemAlertState;
|
|
11
|
+
label?: string;
|
|
12
|
+
unit?: string;
|
|
13
|
+
src?: string;
|
|
14
|
+
value?: string | number | undefined;
|
|
15
|
+
inputValue?: string | number | undefined;
|
|
16
|
+
hasInput?: boolean;
|
|
17
|
+
hasDegree?: boolean;
|
|
18
|
+
hasUnit?: boolean;
|
|
19
|
+
hasLabel?: boolean;
|
|
20
|
+
hasSource?: boolean;
|
|
21
|
+
hasLeadingIcon?: boolean;
|
|
22
|
+
hasValueIcon?: boolean;
|
|
23
|
+
maxDigits?: number;
|
|
24
|
+
fractionDigits?: number;
|
|
25
|
+
showZeroPadding?: boolean;
|
|
26
|
+
hasFixedLength?: boolean;
|
|
27
|
+
valueLength?: string;
|
|
28
|
+
hasHintedZeros?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface Events {
|
|
31
|
+
}
|
|
32
|
+
export interface Slots {
|
|
33
|
+
leadingIcon?: Snippet;
|
|
34
|
+
valueIcon?: Snippet;
|
|
35
|
+
}
|
|
36
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
37
|
+
declare const ObcReadoutListItem: import("svelte").Component<$$ComponentProps, {
|
|
38
|
+
ReadoutListItemSize: typeof ReadoutListItemSize;
|
|
39
|
+
ReadoutListItemStacking: typeof ReadoutListItemStacking;
|
|
40
|
+
ReadoutListItemPriority: typeof ReadoutListItemPriority;
|
|
41
|
+
ReadoutListItemAlertState: typeof ReadoutListItemAlertState;
|
|
42
|
+
}, "">;
|
|
43
|
+
type ObcReadoutListItem = ReturnType<typeof ObcReadoutListItem>;
|
|
44
|
+
export default ObcReadoutListItem;
|
|
@@ -13,8 +13,20 @@
|
|
|
13
13
|
minAvgRoll?: number;
|
|
14
14
|
maxAvgRoll?: number;
|
|
15
15
|
vesselImageFore?: VesselImage;
|
|
16
|
+
scaleForeImage?: number;
|
|
16
17
|
maxRollAdvice?: number | undefined;
|
|
17
|
-
triggerRollAdvice?: boolean
|
|
18
|
+
triggerRollAdvice?: boolean;
|
|
19
|
+
zoomToFitArc?: boolean;
|
|
20
|
+
/** Half-extent of the watch arc in degrees. The arc spans `180° ± arcAngle`
|
|
21
|
+
and roll values are placed at their true position within it. Default
|
|
22
|
+
`45` reproduces the historical 90°-wide arc.
|
|
23
|
+
|
|
24
|
+
Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
|
|
25
|
+
narrower arc is enlarged (its radius grows) on its own layer, while the
|
|
26
|
+
vessel image and the rotating indicator line stay at their natural size
|
|
27
|
+
and position on a separate central layer. The two layers are
|
|
28
|
+
intentionally visually disconnected. */
|
|
29
|
+
arcAngle?: number
|
|
18
30
|
}
|
|
19
31
|
export interface Events {
|
|
20
32
|
|
|
@@ -8,8 +8,20 @@ export interface Props {
|
|
|
8
8
|
minAvgRoll?: number;
|
|
9
9
|
maxAvgRoll?: number;
|
|
10
10
|
vesselImageFore?: VesselImage;
|
|
11
|
+
scaleForeImage?: number;
|
|
11
12
|
maxRollAdvice?: number | undefined;
|
|
12
13
|
triggerRollAdvice?: boolean;
|
|
14
|
+
zoomToFitArc?: boolean;
|
|
15
|
+
/** Half-extent of the watch arc in degrees. The arc spans `180° ± arcAngle`
|
|
16
|
+
and roll values are placed at their true position within it. Default
|
|
17
|
+
`45` reproduces the historical 90°-wide arc.
|
|
18
|
+
|
|
19
|
+
Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
|
|
20
|
+
narrower arc is enlarged (its radius grows) on its own layer, while the
|
|
21
|
+
vessel image and the rotating indicator line stay at their natural size
|
|
22
|
+
and position on a separate central layer. The two layers are
|
|
23
|
+
intentionally visually disconnected. */
|
|
24
|
+
arcAngle?: number;
|
|
13
25
|
}
|
|
14
26
|
export interface Events {
|
|
15
27
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {RollIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll-indicator/roll-indicator.js';
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll-indicator/roll-indicator.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
import type {RollIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll-indicator/roll-indicator.js';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
type?: RollIndicatorType;
|
|
13
|
+
value?: number
|
|
14
|
+
}
|
|
15
|
+
export interface Events {
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
export interface Slots {
|
|
19
|
+
children?: Snippet
|
|
20
|
+
}
|
|
21
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
22
|
+
|
|
23
|
+
</script>
|
|
24
|
+
<obc-roll-indicator
|
|
25
|
+
use:setProperties={props}
|
|
26
|
+
class={className}
|
|
27
|
+
style={style}
|
|
28
|
+
>
|
|
29
|
+
|
|
30
|
+
{#if children}
|
|
31
|
+
{@render children()}
|
|
32
|
+
{/if}
|
|
33
|
+
</obc-roll-indicator>
|