@oicl/openbridge-webcomponents-svelte 2.0.0-next.31 → 2.0.0-next.33
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/components/card/ObcCard.svelte +4 -4
- package/dist/components/card/ObcCard.svelte.d.ts +4 -4
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- 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/readout/ObcReadout.svelte +157 -0
- package/dist/navigation-instruments/readout/ObcReadout.svelte.d.ts +99 -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/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
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
When `hasDialog` is false, the card is a static container. When true, clicking the card opens a modal dialog overlay, displaying content from the `dialog-title` and `dialog-content` slots. */
|
|
16
16
|
hasDialog?: boolean;
|
|
17
|
-
/** Total time in
|
|
17
|
+
/** Total time in seconds before the dialog auto-closes. Use `0` to disable auto-close.
|
|
18
18
|
|
|
19
|
-
When
|
|
19
|
+
When greater than zero, the dialog closes after this duration unless reset by user activity. The countdown indicator appears for the last `dialogVisibleTimerSeconds` seconds. */
|
|
20
20
|
dialogTimeOutSeconds?: number;
|
|
21
|
-
/** Duration in
|
|
21
|
+
/** Duration in seconds for which the countdown indicator is shown before auto-dismiss.
|
|
22
22
|
|
|
23
|
-
The countdown indicator is visible for the last `dialogVisibleTimerSeconds`
|
|
23
|
+
The countdown indicator is visible for the last `dialogVisibleTimerSeconds` seconds of the dialog's lifetime when auto-close is enabled. User activity resets the timer. */
|
|
24
24
|
dialogVisibleTimerSeconds?: number
|
|
25
25
|
}
|
|
26
26
|
export interface Events {
|
|
@@ -8,13 +8,13 @@ export interface Props {
|
|
|
8
8
|
|
|
9
9
|
When `hasDialog` is false, the card is a static container. When true, clicking the card opens a modal dialog overlay, displaying content from the `dialog-title` and `dialog-content` slots. */
|
|
10
10
|
hasDialog?: boolean;
|
|
11
|
-
/** Total time in
|
|
11
|
+
/** Total time in seconds before the dialog auto-closes. Use `0` to disable auto-close.
|
|
12
12
|
|
|
13
|
-
When
|
|
13
|
+
When greater than zero, the dialog closes after this duration unless reset by user activity. The countdown indicator appears for the last `dialogVisibleTimerSeconds` seconds. */
|
|
14
14
|
dialogTimeOutSeconds?: number;
|
|
15
|
-
/** Duration in
|
|
15
|
+
/** Duration in seconds for which the countdown indicator is shown before auto-dismiss.
|
|
16
16
|
|
|
17
|
-
The countdown indicator is visible for the last `dialogVisibleTimerSeconds`
|
|
17
|
+
The countdown indicator is visible for the last `dialogVisibleTimerSeconds` seconds of the dialog's lifetime when auto-close is enabled. User activity resets the timer. */
|
|
18
18
|
dialogVisibleTimerSeconds?: number;
|
|
19
19
|
}
|
|
20
20
|
export interface Events {
|
package/dist/index.d.ts
CHANGED
|
@@ -2171,7 +2171,6 @@ export { default as ObcHeading } from './navigation-instruments/heading/ObcHeadi
|
|
|
2171
2171
|
export { default as ObcHeadingIndicator } from './navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte';
|
|
2172
2172
|
export { default as ObcHeave } from './navigation-instruments/heave/ObcHeave.svelte';
|
|
2173
2173
|
export { default as ObcHeaveIndicator } from './navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte';
|
|
2174
|
-
export { default as ObcInstrumentField } from './navigation-instruments/instrument-field/ObcInstrumentField.svelte';
|
|
2175
2174
|
export { default as ObcMainEngine } from './navigation-instruments/main-engine/ObcMainEngine.svelte';
|
|
2176
2175
|
export { default as ObcMainEngineIndicator } from './navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte';
|
|
2177
2176
|
export { default as ObcPitch } from './navigation-instruments/pitch/ObcPitch.svelte';
|
|
@@ -2180,6 +2179,10 @@ export { default as ObcPitchRoll } from './navigation-instruments/pitch-roll/Obc
|
|
|
2180
2179
|
export { default as ObcPropulsionAzimuthIndicator } from './navigation-instruments/propulsion-azimuth-indicator/ObcPropulsionAzimuthIndicator.svelte';
|
|
2181
2180
|
export { default as ObcTunnelThruster } from './navigation-instruments/propulsion-tunnel-thruster/ObcTunnelThruster.svelte';
|
|
2182
2181
|
export { default as ObcRateOfTurn } from './navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte';
|
|
2182
|
+
export { default as ObcReadout } from './navigation-instruments/readout/ObcReadout.svelte';
|
|
2183
|
+
export { default as ObcReadoutAdvice } from './navigation-instruments/readout-advice/ObcReadoutAdvice.svelte';
|
|
2184
|
+
export { default as ObcReadoutInput } from './navigation-instruments/readout-input/ObcReadoutInput.svelte';
|
|
2185
|
+
export { default as ObcReadoutListItem } from './navigation-instruments/readout-list-item/ObcReadoutListItem.svelte';
|
|
2183
2186
|
export { default as ObcRoll } from './navigation-instruments/roll/ObcRoll.svelte';
|
|
2184
2187
|
export { default as ObcRollIndicator } from './navigation-instruments/roll-indicator/ObcRollIndicator.svelte';
|
|
2185
2188
|
export { default as ObcRotIndicator } from './navigation-instruments/rot-indicator/ObcRotIndicator.svelte';
|
package/dist/index.js
CHANGED
|
@@ -2171,7 +2171,6 @@ export { default as ObcHeading } from './navigation-instruments/heading/ObcHeadi
|
|
|
2171
2171
|
export { default as ObcHeadingIndicator } from './navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte';
|
|
2172
2172
|
export { default as ObcHeave } from './navigation-instruments/heave/ObcHeave.svelte';
|
|
2173
2173
|
export { default as ObcHeaveIndicator } from './navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte';
|
|
2174
|
-
export { default as ObcInstrumentField } from './navigation-instruments/instrument-field/ObcInstrumentField.svelte';
|
|
2175
2174
|
export { default as ObcMainEngine } from './navigation-instruments/main-engine/ObcMainEngine.svelte';
|
|
2176
2175
|
export { default as ObcMainEngineIndicator } from './navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte';
|
|
2177
2176
|
export { default as ObcPitch } from './navigation-instruments/pitch/ObcPitch.svelte';
|
|
@@ -2180,6 +2179,10 @@ export { default as ObcPitchRoll } from './navigation-instruments/pitch-roll/Obc
|
|
|
2180
2179
|
export { default as ObcPropulsionAzimuthIndicator } from './navigation-instruments/propulsion-azimuth-indicator/ObcPropulsionAzimuthIndicator.svelte';
|
|
2181
2180
|
export { default as ObcTunnelThruster } from './navigation-instruments/propulsion-tunnel-thruster/ObcTunnelThruster.svelte';
|
|
2182
2181
|
export { default as ObcRateOfTurn } from './navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte';
|
|
2182
|
+
export { default as ObcReadout } from './navigation-instruments/readout/ObcReadout.svelte';
|
|
2183
|
+
export { default as ObcReadoutAdvice } from './navigation-instruments/readout-advice/ObcReadoutAdvice.svelte';
|
|
2184
|
+
export { default as ObcReadoutInput } from './navigation-instruments/readout-input/ObcReadoutInput.svelte';
|
|
2185
|
+
export { default as ObcReadoutListItem } from './navigation-instruments/readout-list-item/ObcReadoutListItem.svelte';
|
|
2183
2186
|
export { default as ObcRoll } from './navigation-instruments/roll/ObcRoll.svelte';
|
|
2184
2187
|
export { default as ObcRollIndicator } from './navigation-instruments/roll-indicator/ObcRollIndicator.svelte';
|
|
2185
2188
|
export { default as ObcRotIndicator } from './navigation-instruments/rot-indicator/ObcRotIndicator.svelte';
|
package/dist/navigation-instruments/azimuth-thruster-labeled/ObcAzimuthThrusterLabeled.svelte
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {CommandStatus} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/badge-command/badge-command.js';
|
|
4
4
|
export type {AzimuthThrusterLabeledSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.js';
|
|
5
|
+
export type {ReadoutVariant} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
5
6
|
export type {AngleAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';
|
|
6
7
|
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/thruster/advice.js';
|
|
7
8
|
export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
@@ -10,6 +11,7 @@ export type {PropellerType} from '@oicl/openbridge-webcomponents/dist/navigation
|
|
|
10
11
|
import { setProperties } from "../../util.js";
|
|
11
12
|
import type {CommandStatus} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/badge-command/badge-command.js';
|
|
12
13
|
import type {AzimuthThrusterLabeledSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.js';
|
|
14
|
+
import type {ReadoutVariant} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
13
15
|
import type {AngleAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';
|
|
14
16
|
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/thruster/advice.js';
|
|
15
17
|
import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
@@ -22,6 +24,7 @@ import type {PropellerType} from '@oicl/openbridge-webcomponents/dist/navigation
|
|
|
22
24
|
label?: string;
|
|
23
25
|
commandStatus?: CommandStatus;
|
|
24
26
|
size?: AzimuthThrusterLabeledSize;
|
|
27
|
+
readoutVariant?: ReadoutVariant;
|
|
25
28
|
angle?: number;
|
|
26
29
|
angleSetpoint?: number | undefined;
|
|
27
30
|
newAngleSetpoint?: number | undefined;
|
package/dist/navigation-instruments/azimuth-thruster-labeled/ObcAzimuthThrusterLabeled.svelte.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.js';
|
|
2
2
|
import type { CommandStatus } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/badge-command/badge-command.js';
|
|
3
3
|
import type { AzimuthThrusterLabeledSize } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.js';
|
|
4
|
+
import type { ReadoutVariant } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
5
|
import type { AngleAdvice } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';
|
|
5
6
|
import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/thruster/advice.js';
|
|
6
7
|
import type { TickmarkStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
@@ -12,6 +13,7 @@ export interface Props {
|
|
|
12
13
|
label?: string;
|
|
13
14
|
commandStatus?: CommandStatus;
|
|
14
15
|
size?: AzimuthThrusterLabeledSize;
|
|
16
|
+
readoutVariant?: ReadoutVariant;
|
|
15
17
|
angle?: number;
|
|
16
18
|
angleSetpoint?: number | undefined;
|
|
17
19
|
newAngleSetpoint?: number | undefined;
|
|
@@ -44,6 +46,7 @@ type $$ComponentProps = Props & Events & Slots;
|
|
|
44
46
|
declare const ObcAzimuthThrusterLabeled: import("svelte").Component<$$ComponentProps, {
|
|
45
47
|
CommandStatus: typeof CommandStatus;
|
|
46
48
|
AzimuthThrusterLabeledSize: typeof AzimuthThrusterLabeledSize;
|
|
49
|
+
ReadoutVariant: typeof ReadoutVariant;
|
|
47
50
|
AngleAdvice: typeof AngleAdvice;
|
|
48
51
|
LinearAdvice: typeof LinearAdvice;
|
|
49
52
|
TickmarkStyle: typeof TickmarkStyle;
|
|
@@ -0,0 +1,157 @@
|
|
|
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 {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
7
|
+
export type {ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.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 {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
14
|
+
import type {ReadoutInputFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.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
|
+
alignment?: ReadoutStackVerticalAlignment;
|
|
26
|
+
hug?: boolean;
|
|
27
|
+
hasAdvice?: boolean;
|
|
28
|
+
hasInput?: boolean;
|
|
29
|
+
hasInputDivider?: boolean;
|
|
30
|
+
hasSourceDivider?: boolean;
|
|
31
|
+
hasSrc?: boolean;
|
|
32
|
+
value?: string | number | undefined;
|
|
33
|
+
maxDigits?: number;
|
|
34
|
+
showZeroPadding?: boolean;
|
|
35
|
+
fractionDigits?: number;
|
|
36
|
+
valueHasFixedLength?: boolean;
|
|
37
|
+
valueLength?: string;
|
|
38
|
+
valueHasHintedZeros?: boolean;
|
|
39
|
+
hasDegree?: boolean;
|
|
40
|
+
unit?: string;
|
|
41
|
+
src?: string;
|
|
42
|
+
sourceDeltaValue?: string;
|
|
43
|
+
labelOnly?: boolean;
|
|
44
|
+
hasSrcPicker?: boolean;
|
|
45
|
+
hasLeadingIcon?: boolean;
|
|
46
|
+
adviceValue?: string | number | undefined;
|
|
47
|
+
setpointValue?: string | number | undefined;
|
|
48
|
+
label?: string;
|
|
49
|
+
sourceType?: ReadoutSourceType | undefined;
|
|
50
|
+
sourceHug?: boolean;
|
|
51
|
+
hasSourceLeadingIcon?: boolean;
|
|
52
|
+
hasSourceTrailingIcon?: boolean;
|
|
53
|
+
hasLabelFixedLength?: boolean;
|
|
54
|
+
labelLength?: string;
|
|
55
|
+
hasUnitFixedLength?: boolean;
|
|
56
|
+
unitLength?: string;
|
|
57
|
+
adviceFormat?: ReadoutAdviceFormat;
|
|
58
|
+
adviceState?: ReadoutAdviceState;
|
|
59
|
+
advicePriority?: Priority | undefined;
|
|
60
|
+
adviceHasFixedLength?: boolean;
|
|
61
|
+
adviceSecondaryValue?: string;
|
|
62
|
+
adviceDescription?: string;
|
|
63
|
+
adviceValueLength?: string;
|
|
64
|
+
adviceHasHintedZeros?: boolean;
|
|
65
|
+
inputFormat?: ReadoutInputFormat;
|
|
66
|
+
inputHasFixedLength?: boolean;
|
|
67
|
+
inputSecondaryValue?: string;
|
|
68
|
+
inputDescription?: string;
|
|
69
|
+
inputValueLength?: string;
|
|
70
|
+
inputHasHintedZeros?: boolean
|
|
71
|
+
}
|
|
72
|
+
export interface Events {
|
|
73
|
+
onSourceFlyoutClick?: (event: CustomEvent<{src: string, sourceType?: ReadoutSourceType}>) => void;
|
|
74
|
+
onSourceChange?: (event: CustomEvent<{value: string, label?: string}>) => void
|
|
75
|
+
}
|
|
76
|
+
export interface Slots {
|
|
77
|
+
advice?: Snippet;
|
|
78
|
+
adviceIcon?: Snippet;
|
|
79
|
+
input?: Snippet;
|
|
80
|
+
inputIcon?: Snippet;
|
|
81
|
+
leadingIcon?: Snippet;
|
|
82
|
+
valueSnippet?: Snippet;
|
|
83
|
+
labelSnippet?: Snippet;
|
|
84
|
+
unitSnippet?: Snippet;
|
|
85
|
+
source?: Snippet;
|
|
86
|
+
srcPickerContent?: Snippet
|
|
87
|
+
}
|
|
88
|
+
const {onSourceFlyoutClick, onSourceChange, class: className, style, advice, adviceIcon, input, inputIcon, leadingIcon, valueSnippet, labelSnippet, unitSnippet, source, srcPickerContent, ...props} = $props<Props & Events & Slots>();
|
|
89
|
+
|
|
90
|
+
</script>
|
|
91
|
+
<obc-readout
|
|
92
|
+
use:setProperties={props}
|
|
93
|
+
class={className}
|
|
94
|
+
style={style}
|
|
95
|
+
onsource-flyout-click={onSourceFlyoutClick}
|
|
96
|
+
onsource-change={onSourceChange} >
|
|
97
|
+
|
|
98
|
+
{#if advice}
|
|
99
|
+
<div slot="advice">
|
|
100
|
+
{@render advice()}
|
|
101
|
+
</div>
|
|
102
|
+
{/if}
|
|
103
|
+
|
|
104
|
+
{#if adviceIcon}
|
|
105
|
+
<div slot="advice-icon">
|
|
106
|
+
{@render adviceIcon()}
|
|
107
|
+
</div>
|
|
108
|
+
{/if}
|
|
109
|
+
|
|
110
|
+
{#if input}
|
|
111
|
+
<div slot="input">
|
|
112
|
+
{@render input()}
|
|
113
|
+
</div>
|
|
114
|
+
{/if}
|
|
115
|
+
|
|
116
|
+
{#if inputIcon}
|
|
117
|
+
<div slot="input-icon">
|
|
118
|
+
{@render inputIcon()}
|
|
119
|
+
</div>
|
|
120
|
+
{/if}
|
|
121
|
+
|
|
122
|
+
{#if leadingIcon}
|
|
123
|
+
<div slot="leading-icon">
|
|
124
|
+
{@render leadingIcon()}
|
|
125
|
+
</div>
|
|
126
|
+
{/if}
|
|
127
|
+
|
|
128
|
+
{#if valueSnippet}
|
|
129
|
+
<div slot="value">
|
|
130
|
+
{@render valueSnippet()}
|
|
131
|
+
</div>
|
|
132
|
+
{/if}
|
|
133
|
+
|
|
134
|
+
{#if labelSnippet}
|
|
135
|
+
<div slot="label">
|
|
136
|
+
{@render labelSnippet()}
|
|
137
|
+
</div>
|
|
138
|
+
{/if}
|
|
139
|
+
|
|
140
|
+
{#if unitSnippet}
|
|
141
|
+
<div slot="unit">
|
|
142
|
+
{@render unitSnippet()}
|
|
143
|
+
</div>
|
|
144
|
+
{/if}
|
|
145
|
+
|
|
146
|
+
{#if source}
|
|
147
|
+
<div slot="source">
|
|
148
|
+
{@render source()}
|
|
149
|
+
</div>
|
|
150
|
+
{/if}
|
|
151
|
+
|
|
152
|
+
{#if srcPickerContent}
|
|
153
|
+
<div slot="src-picker-content">
|
|
154
|
+
{@render srcPickerContent()}
|
|
155
|
+
</div>
|
|
156
|
+
{/if}
|
|
157
|
+
</obc-readout>
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { ReadoutAdviceFormat, ReadoutAdviceState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
6
|
+
import type { ReadoutInputFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.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
|
+
alignment?: ReadoutStackVerticalAlignment;
|
|
17
|
+
hug?: boolean;
|
|
18
|
+
hasAdvice?: boolean;
|
|
19
|
+
hasInput?: boolean;
|
|
20
|
+
hasInputDivider?: boolean;
|
|
21
|
+
hasSourceDivider?: boolean;
|
|
22
|
+
hasSrc?: boolean;
|
|
23
|
+
value?: string | number | undefined;
|
|
24
|
+
maxDigits?: number;
|
|
25
|
+
showZeroPadding?: boolean;
|
|
26
|
+
fractionDigits?: number;
|
|
27
|
+
valueHasFixedLength?: boolean;
|
|
28
|
+
valueLength?: string;
|
|
29
|
+
valueHasHintedZeros?: boolean;
|
|
30
|
+
hasDegree?: boolean;
|
|
31
|
+
unit?: string;
|
|
32
|
+
src?: string;
|
|
33
|
+
sourceDeltaValue?: string;
|
|
34
|
+
labelOnly?: boolean;
|
|
35
|
+
hasSrcPicker?: boolean;
|
|
36
|
+
hasLeadingIcon?: boolean;
|
|
37
|
+
adviceValue?: string | number | undefined;
|
|
38
|
+
setpointValue?: string | number | undefined;
|
|
39
|
+
label?: string;
|
|
40
|
+
sourceType?: ReadoutSourceType | undefined;
|
|
41
|
+
sourceHug?: boolean;
|
|
42
|
+
hasSourceLeadingIcon?: boolean;
|
|
43
|
+
hasSourceTrailingIcon?: boolean;
|
|
44
|
+
hasLabelFixedLength?: boolean;
|
|
45
|
+
labelLength?: string;
|
|
46
|
+
hasUnitFixedLength?: boolean;
|
|
47
|
+
unitLength?: string;
|
|
48
|
+
adviceFormat?: ReadoutAdviceFormat;
|
|
49
|
+
adviceState?: ReadoutAdviceState;
|
|
50
|
+
advicePriority?: Priority | undefined;
|
|
51
|
+
adviceHasFixedLength?: boolean;
|
|
52
|
+
adviceSecondaryValue?: string;
|
|
53
|
+
adviceDescription?: string;
|
|
54
|
+
adviceValueLength?: string;
|
|
55
|
+
adviceHasHintedZeros?: boolean;
|
|
56
|
+
inputFormat?: ReadoutInputFormat;
|
|
57
|
+
inputHasFixedLength?: boolean;
|
|
58
|
+
inputSecondaryValue?: string;
|
|
59
|
+
inputDescription?: string;
|
|
60
|
+
inputValueLength?: string;
|
|
61
|
+
inputHasHintedZeros?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface Events {
|
|
64
|
+
onSourceFlyoutClick?: (event: CustomEvent<{
|
|
65
|
+
src: string;
|
|
66
|
+
sourceType?: ReadoutSourceType;
|
|
67
|
+
}>) => void;
|
|
68
|
+
onSourceChange?: (event: CustomEvent<{
|
|
69
|
+
value: string;
|
|
70
|
+
label?: string;
|
|
71
|
+
}>) => void;
|
|
72
|
+
}
|
|
73
|
+
export interface Slots {
|
|
74
|
+
advice?: Snippet;
|
|
75
|
+
adviceIcon?: Snippet;
|
|
76
|
+
input?: Snippet;
|
|
77
|
+
inputIcon?: Snippet;
|
|
78
|
+
leadingIcon?: Snippet;
|
|
79
|
+
valueSnippet?: Snippet;
|
|
80
|
+
labelSnippet?: Snippet;
|
|
81
|
+
unitSnippet?: Snippet;
|
|
82
|
+
source?: Snippet;
|
|
83
|
+
srcPickerContent?: Snippet;
|
|
84
|
+
}
|
|
85
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
86
|
+
declare const ObcReadout: import("svelte").Component<$$ComponentProps, {
|
|
87
|
+
ReadoutSourceType: typeof ReadoutSourceType;
|
|
88
|
+
ReadoutVariant: typeof ReadoutVariant;
|
|
89
|
+
ReadoutAlertState: typeof ReadoutAlertState;
|
|
90
|
+
ReadoutInputInteraction: typeof ReadoutInputInteraction;
|
|
91
|
+
ReadoutDirection: typeof ReadoutDirection;
|
|
92
|
+
ReadoutStackVerticalAlignment: typeof ReadoutStackVerticalAlignment;
|
|
93
|
+
Priority: typeof Priority;
|
|
94
|
+
ReadoutAdviceFormat: typeof ReadoutAdviceFormat;
|
|
95
|
+
ReadoutAdviceState: typeof ReadoutAdviceState;
|
|
96
|
+
ReadoutInputFormat: typeof ReadoutInputFormat;
|
|
97
|
+
}, "">;
|
|
98
|
+
type ObcReadout = ReturnType<typeof ObcReadout>;
|
|
99
|
+
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;
|
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.33",
|
|
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.32"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<script lang="ts">
|
|
3
|
-
export type {InstrumentFieldSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
4
|
-
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {InstrumentFieldSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
7
|
-
import type { Snippet } from 'svelte';
|
|
8
|
-
|
|
9
|
-
export interface Props {
|
|
10
|
-
class?: string;
|
|
11
|
-
style?: string;
|
|
12
|
-
/** The size of the instrument field. */
|
|
13
|
-
size?: InstrumentFieldSize;
|
|
14
|
-
/** The setpoint value to display. */
|
|
15
|
-
setpoint?: number | undefined;
|
|
16
|
-
/** Whether to show the setpoint. */
|
|
17
|
-
hasSetpoint?: boolean;
|
|
18
|
-
/** Whether to show the source (src) field. */
|
|
19
|
-
hasSrc?: boolean;
|
|
20
|
-
/** The primary value to display. */
|
|
21
|
-
value?: number | undefined;
|
|
22
|
-
/** The maximum number of integer digits to show (for zero padding). */
|
|
23
|
-
maxDigits?: number;
|
|
24
|
-
/** Whether to show leading zeros up to `maxDigits`. */
|
|
25
|
-
showZeroPadding?: boolean;
|
|
26
|
-
/** The number of decimal places to display. */
|
|
27
|
-
fractionDigits?: number;
|
|
28
|
-
/** The tag or label for the data (e.g., "HDG", "SPD"). */
|
|
29
|
-
tag?: string;
|
|
30
|
-
/** The unit of measurement (e.g., "DEG", "KN"). */
|
|
31
|
-
unit?: string;
|
|
32
|
-
/** The current source name (e.g., "GPS 1"). */
|
|
33
|
-
src?: string;
|
|
34
|
-
/** If true, uses a neutral color scheme instead of the default instrument color. */
|
|
35
|
-
neutralColor?: boolean;
|
|
36
|
-
/** If true, uses a horizontal layout. */
|
|
37
|
-
horizontal?: boolean;
|
|
38
|
-
/** If true, centers the content. */
|
|
39
|
-
center?: boolean;
|
|
40
|
-
/** If true, only the label (tag and unit) is displayed. */
|
|
41
|
-
labelOnly?: boolean;
|
|
42
|
-
/** If true, displays the "off" state (e.g., showing "OFF" instead of value). */
|
|
43
|
-
off?: boolean;
|
|
44
|
-
/** If true, automatically hides the setpoint when the value is close to it. */
|
|
45
|
-
autoHideSetpoint?: boolean;
|
|
46
|
-
/** The deadband within which the setpoint is hidden if `autoHideSetpoint` is true. */
|
|
47
|
-
autoHideDeadband?: number
|
|
48
|
-
}
|
|
49
|
-
export interface Events {
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
export interface Slots {
|
|
53
|
-
offValue?: Snippet
|
|
54
|
-
}
|
|
55
|
-
const { class: className, style, offValue, ...props} = $props<Props & Events & Slots>();
|
|
56
|
-
|
|
57
|
-
</script>
|
|
58
|
-
<obc-instrument-field
|
|
59
|
-
use:setProperties={props}
|
|
60
|
-
class={className}
|
|
61
|
-
style={style}
|
|
62
|
-
>
|
|
63
|
-
|
|
64
|
-
{#if offValue}
|
|
65
|
-
<div slot="off-value">
|
|
66
|
-
{@render offValue()}
|
|
67
|
-
</div>
|
|
68
|
-
{/if}
|
|
69
|
-
</obc-instrument-field>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
2
|
-
import type { InstrumentFieldSize } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
export interface Props {
|
|
5
|
-
class?: string;
|
|
6
|
-
style?: string;
|
|
7
|
-
/** The size of the instrument field. */
|
|
8
|
-
size?: InstrumentFieldSize;
|
|
9
|
-
/** The setpoint value to display. */
|
|
10
|
-
setpoint?: number | undefined;
|
|
11
|
-
/** Whether to show the setpoint. */
|
|
12
|
-
hasSetpoint?: boolean;
|
|
13
|
-
/** Whether to show the source (src) field. */
|
|
14
|
-
hasSrc?: boolean;
|
|
15
|
-
/** The primary value to display. */
|
|
16
|
-
value?: number | undefined;
|
|
17
|
-
/** The maximum number of integer digits to show (for zero padding). */
|
|
18
|
-
maxDigits?: number;
|
|
19
|
-
/** Whether to show leading zeros up to `maxDigits`. */
|
|
20
|
-
showZeroPadding?: boolean;
|
|
21
|
-
/** The number of decimal places to display. */
|
|
22
|
-
fractionDigits?: number;
|
|
23
|
-
/** The tag or label for the data (e.g., "HDG", "SPD"). */
|
|
24
|
-
tag?: string;
|
|
25
|
-
/** The unit of measurement (e.g., "DEG", "KN"). */
|
|
26
|
-
unit?: string;
|
|
27
|
-
/** The current source name (e.g., "GPS 1"). */
|
|
28
|
-
src?: string;
|
|
29
|
-
/** If true, uses a neutral color scheme instead of the default instrument color. */
|
|
30
|
-
neutralColor?: boolean;
|
|
31
|
-
/** If true, uses a horizontal layout. */
|
|
32
|
-
horizontal?: boolean;
|
|
33
|
-
/** If true, centers the content. */
|
|
34
|
-
center?: boolean;
|
|
35
|
-
/** If true, only the label (tag and unit) is displayed. */
|
|
36
|
-
labelOnly?: boolean;
|
|
37
|
-
/** If true, displays the "off" state (e.g., showing "OFF" instead of value). */
|
|
38
|
-
off?: boolean;
|
|
39
|
-
/** If true, automatically hides the setpoint when the value is close to it. */
|
|
40
|
-
autoHideSetpoint?: boolean;
|
|
41
|
-
/** The deadband within which the setpoint is hidden if `autoHideSetpoint` is true. */
|
|
42
|
-
autoHideDeadband?: number;
|
|
43
|
-
}
|
|
44
|
-
export interface Events {
|
|
45
|
-
}
|
|
46
|
-
export interface Slots {
|
|
47
|
-
offValue?: Snippet;
|
|
48
|
-
}
|
|
49
|
-
type $$ComponentProps = Props & Events & Slots;
|
|
50
|
-
declare const ObcInstrumentField: import("svelte").Component<$$ComponentProps, {
|
|
51
|
-
InstrumentFieldSize: typeof InstrumentFieldSize;
|
|
52
|
-
}, "">;
|
|
53
|
-
type ObcInstrumentField = ReturnType<typeof ObcInstrumentField>;
|
|
54
|
-
export default ObcInstrumentField;
|