@oicl/openbridge-webcomponents-svelte 2.0.0-next.5 → 2.0.0-next.51
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/README.md +2 -0
- 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/automation/automation-tank/ObcAutomationTank.svelte +117 -4
- package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +125 -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 +22 -6
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +22 -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 +6 -4
- package/dist/components/icon-button/ObcIconButton.svelte.d.ts +3 -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 +19 -0
- package/dist/index.js +19 -0
- package/dist/integration-systems/integration-bar/ObcIntegrationBar.svelte +88 -0
- package/dist/integration-systems/integration-bar/ObcIntegrationBar.svelte.d.ts +46 -0
- package/dist/integration-systems/integration-button/ObcIntegrationButton.svelte +19 -7
- package/dist/integration-systems/integration-button/ObcIntegrationButton.svelte.d.ts +10 -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/integration-systems/integration-vessel-menu/ObcIntegrationVesselMenu.svelte +101 -0
- package/dist/integration-systems/integration-vessel-menu/ObcIntegrationVesselMenu.svelte.d.ts +28 -0
- package/dist/integration-systems/integration-vessel-selector/ObcIntegrationVesselSelector.svelte +10 -2
- package/dist/integration-systems/integration-vessel-selector/ObcIntegrationVesselSelector.svelte.d.ts +2 -0
- 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 +18 -2
- package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +17 -1
- 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 +11 -4
- package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte.d.ts +11 -3
- 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 +158 -0
- package/dist/navigation-instruments/readout/ObcReadout.svelte.d.ts +101 -0
- package/dist/navigation-instruments/readout-advice/ObcReadoutAdvice.svelte +53 -0
- package/dist/navigation-instruments/readout-advice/ObcReadoutAdvice.svelte.d.ts +40 -0
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte +60 -0
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte.d.ts +42 -0
- package/dist/navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte +62 -0
- package/dist/navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte.d.ts +46 -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/velocity-projection-plot/ObcVelocityProjectionPlot.svelte +4 -4
- package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte.d.ts +4 -4
- package/dist/navigation-instruments/watch/ObcWatch.svelte +4 -2
- package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +3 -1
- 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 +7 -4
- package/dist/navigation-instruments/wind/ObcWind.svelte.d.ts +6 -2
- package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte +28 -8
- package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte.d.ts +31 -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
|
@@ -16,21 +16,38 @@
|
|
|
16
16
|
|
|
17
17
|
Changing this property updates the icons and directionality of the stepper buttons. */
|
|
18
18
|
type?: ObcStepperBoxType;
|
|
19
|
-
/** If true, displays the `helper-text` slot content below the control for additional guidance or status. */
|
|
20
|
-
hasHelperText?: boolean;
|
|
21
19
|
/** If true, the stepper box is disabled and the buttons are not clickable. */
|
|
22
|
-
disabled?: boolean
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** The current numeric value displayed in the field.
|
|
22
|
+
Pass `null` to clear the value and show the `placeholder` instead. */
|
|
23
|
+
value?: number | null;
|
|
24
|
+
/** Optional lower bound; decrement button disables at this value. */
|
|
25
|
+
min?: number | undefined;
|
|
26
|
+
/** Optional upper bound; increment button disables at this value. */
|
|
27
|
+
max?: number | undefined;
|
|
28
|
+
/** Increment step size (default 1). */
|
|
29
|
+
stepUp?: number;
|
|
30
|
+
/** Decrement step size (default 1). */
|
|
31
|
+
stepDown?: number;
|
|
32
|
+
/** Unit text displayed inside the field. Overridden by the `unit` slot if assigned. */
|
|
33
|
+
unit?: string;
|
|
34
|
+
/** Helper text displayed below the stepper. When set, the helper text is shown. */
|
|
35
|
+
helperText?: string;
|
|
36
|
+
/** Placeholder text shown when the input is empty. */
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
/** If true, the input is non-editable; programmatic value changes still apply. */
|
|
39
|
+
readonly?: boolean
|
|
23
40
|
}
|
|
24
41
|
export interface Events {
|
|
25
|
-
onDown?: (event: CustomEvent<
|
|
26
|
-
onUp?: (event: CustomEvent<
|
|
42
|
+
onDown?: (event: CustomEvent<{value: number}>) => void;
|
|
43
|
+
onUp?: (event: CustomEvent<{value: number}>) => void;
|
|
44
|
+
onInput?: (event: CustomEvent<{value: string}>) => void;
|
|
45
|
+
onChange?: (event: CustomEvent<{value: number | null}>) => void
|
|
27
46
|
}
|
|
28
47
|
export interface Slots {
|
|
29
|
-
|
|
30
|
-
unit?: Snippet;
|
|
31
|
-
helperText?: Snippet
|
|
48
|
+
unitSnippet?: Snippet
|
|
32
49
|
}
|
|
33
|
-
const {onDown, onUp, class: className, style,
|
|
50
|
+
const {onDown, onUp, onInput, onChange, class: className, style, unitSnippet, ...props} = $props<Props & Events & Slots>();
|
|
34
51
|
|
|
35
52
|
</script>
|
|
36
53
|
<obc-stepper-box
|
|
@@ -38,21 +55,13 @@ disabled?: boolean
|
|
|
38
55
|
class={className}
|
|
39
56
|
style={style}
|
|
40
57
|
ondown={onDown}
|
|
41
|
-
onup={onUp}
|
|
58
|
+
onup={onUp}
|
|
59
|
+
oninput={onInput}
|
|
60
|
+
onchange={onChange} >
|
|
42
61
|
|
|
43
|
-
{#if
|
|
44
|
-
{@render children()}
|
|
45
|
-
{/if}
|
|
46
|
-
|
|
47
|
-
{#if unit}
|
|
62
|
+
{#if unitSnippet}
|
|
48
63
|
<div slot="unit">
|
|
49
|
-
{@render
|
|
50
|
-
</div>
|
|
51
|
-
{/if}
|
|
52
|
-
|
|
53
|
-
{#if helperText}
|
|
54
|
-
<div slot="helper-text">
|
|
55
|
-
{@render helperText()}
|
|
64
|
+
{@render unitSnippet()}
|
|
56
65
|
</div>
|
|
57
66
|
{/if}
|
|
58
67
|
</obc-stepper-box>
|
|
@@ -11,19 +11,44 @@ export interface Props {
|
|
|
11
11
|
|
|
12
12
|
Changing this property updates the icons and directionality of the stepper buttons. */
|
|
13
13
|
type?: ObcStepperBoxType;
|
|
14
|
-
/** If true, displays the `helper-text` slot content below the control for additional guidance or status. */
|
|
15
|
-
hasHelperText?: boolean;
|
|
16
14
|
/** If true, the stepper box is disabled and the buttons are not clickable. */
|
|
17
15
|
disabled?: boolean;
|
|
16
|
+
/** The current numeric value displayed in the field.
|
|
17
|
+
Pass `null` to clear the value and show the `placeholder` instead. */
|
|
18
|
+
value?: number | null;
|
|
19
|
+
/** Optional lower bound; decrement button disables at this value. */
|
|
20
|
+
min?: number | undefined;
|
|
21
|
+
/** Optional upper bound; increment button disables at this value. */
|
|
22
|
+
max?: number | undefined;
|
|
23
|
+
/** Increment step size (default 1). */
|
|
24
|
+
stepUp?: number;
|
|
25
|
+
/** Decrement step size (default 1). */
|
|
26
|
+
stepDown?: number;
|
|
27
|
+
/** Unit text displayed inside the field. Overridden by the `unit` slot if assigned. */
|
|
28
|
+
unit?: string;
|
|
29
|
+
/** Helper text displayed below the stepper. When set, the helper text is shown. */
|
|
30
|
+
helperText?: string;
|
|
31
|
+
/** Placeholder text shown when the input is empty. */
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
/** If true, the input is non-editable; programmatic value changes still apply. */
|
|
34
|
+
readonly?: boolean;
|
|
18
35
|
}
|
|
19
36
|
export interface Events {
|
|
20
|
-
onDown?: (event: CustomEvent<
|
|
21
|
-
|
|
37
|
+
onDown?: (event: CustomEvent<{
|
|
38
|
+
value: number;
|
|
39
|
+
}>) => void;
|
|
40
|
+
onUp?: (event: CustomEvent<{
|
|
41
|
+
value: number;
|
|
42
|
+
}>) => void;
|
|
43
|
+
onInput?: (event: CustomEvent<{
|
|
44
|
+
value: string;
|
|
45
|
+
}>) => void;
|
|
46
|
+
onChange?: (event: CustomEvent<{
|
|
47
|
+
value: number | null;
|
|
48
|
+
}>) => void;
|
|
22
49
|
}
|
|
23
50
|
export interface Slots {
|
|
24
|
-
|
|
25
|
-
unit?: Snippet;
|
|
26
|
-
helperText?: Snippet;
|
|
51
|
+
unitSnippet?: Snippet;
|
|
27
52
|
}
|
|
28
53
|
type $$ComponentProps = Props & Events & Slots;
|
|
29
54
|
declare const ObcStepperBox: import("svelte").Component<$$ComponentProps, {
|
|
@@ -59,6 +59,14 @@ Can be overridden by slotting content into the `title` slot.
|
|
|
59
59
|
|
|
60
60
|
Default: 'Tab title' */
|
|
61
61
|
title?: string;
|
|
62
|
+
/** Shows contextual text below the tab title.
|
|
63
|
+
|
|
64
|
+
Default: false */
|
|
65
|
+
showSubtitle?: boolean;
|
|
66
|
+
/** Contextual text shown below the tab title when `showSubtitle` is true.
|
|
67
|
+
|
|
68
|
+
Default: '' */
|
|
69
|
+
subtitle?: string;
|
|
62
70
|
/** Disables the tab, preventing user interaction and applying disabled styles.
|
|
63
71
|
|
|
64
72
|
Default: false */
|
|
@@ -93,10 +101,10 @@ showLeadingBadgeIcon?: boolean
|
|
|
93
101
|
}
|
|
94
102
|
export interface Slots {
|
|
95
103
|
leadingIcon?: Snippet;
|
|
96
|
-
|
|
104
|
+
titleSnippet?: Snippet;
|
|
97
105
|
badgeIcon?: Snippet
|
|
98
106
|
}
|
|
99
|
-
const {onTabClick, onTabClose, class: className, style, leadingIcon,
|
|
107
|
+
const {onTabClick, onTabClose, class: className, style, leadingIcon, titleSnippet, badgeIcon, ...props} = $props<Props & Events & Slots>();
|
|
100
108
|
|
|
101
109
|
</script>
|
|
102
110
|
<obc-tab-item
|
|
@@ -112,9 +120,9 @@ showLeadingBadgeIcon?: boolean
|
|
|
112
120
|
</div>
|
|
113
121
|
{/if}
|
|
114
122
|
|
|
115
|
-
{#if
|
|
123
|
+
{#if titleSnippet}
|
|
116
124
|
<div slot="title">
|
|
117
|
-
{@render
|
|
125
|
+
{@render titleSnippet()}
|
|
118
126
|
</div>
|
|
119
127
|
{/if}
|
|
120
128
|
|
|
@@ -53,6 +53,14 @@ Can be overridden by slotting content into the `title` slot.
|
|
|
53
53
|
|
|
54
54
|
Default: 'Tab title' */
|
|
55
55
|
title?: string;
|
|
56
|
+
/** Shows contextual text below the tab title.
|
|
57
|
+
|
|
58
|
+
Default: false */
|
|
59
|
+
showSubtitle?: boolean;
|
|
60
|
+
/** Contextual text shown below the tab title when `showSubtitle` is true.
|
|
61
|
+
|
|
62
|
+
Default: '' */
|
|
63
|
+
subtitle?: string;
|
|
56
64
|
/** Disables the tab, preventing user interaction and applying disabled styles.
|
|
57
65
|
|
|
58
66
|
Default: false */
|
|
@@ -91,7 +99,7 @@ export interface Events {
|
|
|
91
99
|
}
|
|
92
100
|
export interface Slots {
|
|
93
101
|
leadingIcon?: Snippet;
|
|
94
|
-
|
|
102
|
+
titleSnippet?: Snippet;
|
|
95
103
|
badgeIcon?: Snippet;
|
|
96
104
|
}
|
|
97
105
|
type $$ComponentProps = Props & Events & Slots;
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
/** The list of tabs to display. Each tab is defined by an object with properties such as `id`, `title`, `hasLeadingIcon`, `hasBadge`, `badgeCount`, `badgeType`, `badgeSize`, `badgeShowNumber`, `showLeadingBadgeIcon`, and `disabled`.
|
|
12
|
+
/** The list of tabs to display. Each tab is defined by an object with properties such as `id`, `title`, `subtitle`, `showSubtitle`, `hasLeadingIcon`, `hasBadge`, `badgeCount`, `badgeType`, `badgeSize`, `badgeShowNumber`, `showLeadingBadgeIcon`, and `disabled`.
|
|
13
13
|
|
|
14
14
|
- `id` (string): Unique identifier for the tab.
|
|
15
15
|
- `title` (string): Display label for the tab.
|
|
16
|
+
- `subtitle` (string): Contextual text shown below the title when subtitle display is enabled.
|
|
17
|
+
- `showSubtitle` (boolean): Optional per-tab override for displaying the subtitle.
|
|
16
18
|
- `hasLeadingIcon` (boolean): Whether to show a leading icon (default: true).
|
|
17
19
|
- `hasBadge` (boolean): Whether to show a badge on the tab.
|
|
18
20
|
- `badgeCount` (number): Number to display in the badge.
|
|
@@ -34,6 +36,10 @@ hasClose?: boolean;
|
|
|
34
36
|
|
|
35
37
|
Default: `false`. */
|
|
36
38
|
hug?: boolean;
|
|
39
|
+
/** Whether to display subtitle text for each tab. Individual tabs can override this with `tab.showSubtitle`.
|
|
40
|
+
|
|
41
|
+
Default: `false`. */
|
|
42
|
+
showSubtitle?: boolean;
|
|
37
43
|
/** Whether to display an "add new tab" button at the end of the tab row. When clicked, emits the `add-new-tab` event.
|
|
38
44
|
|
|
39
45
|
Default: `false`. */
|
|
@@ -4,10 +4,12 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
-
/** The list of tabs to display. Each tab is defined by an object with properties such as `id`, `title`, `hasLeadingIcon`, `hasBadge`, `badgeCount`, `badgeType`, `badgeSize`, `badgeShowNumber`, `showLeadingBadgeIcon`, and `disabled`.
|
|
7
|
+
/** The list of tabs to display. Each tab is defined by an object with properties such as `id`, `title`, `subtitle`, `showSubtitle`, `hasLeadingIcon`, `hasBadge`, `badgeCount`, `badgeType`, `badgeSize`, `badgeShowNumber`, `showLeadingBadgeIcon`, and `disabled`.
|
|
8
8
|
|
|
9
9
|
- `id` (string): Unique identifier for the tab.
|
|
10
10
|
- `title` (string): Display label for the tab.
|
|
11
|
+
- `subtitle` (string): Contextual text shown below the title when subtitle display is enabled.
|
|
12
|
+
- `showSubtitle` (boolean): Optional per-tab override for displaying the subtitle.
|
|
11
13
|
- `hasLeadingIcon` (boolean): Whether to show a leading icon (default: true).
|
|
12
14
|
- `hasBadge` (boolean): Whether to show a badge on the tab.
|
|
13
15
|
- `badgeCount` (number): Number to display in the badge.
|
|
@@ -29,6 +31,10 @@ Default: `false`. */
|
|
|
29
31
|
|
|
30
32
|
Default: `false`. */
|
|
31
33
|
hug?: boolean;
|
|
34
|
+
/** Whether to display subtitle text for each tab. Individual tabs can override this with `tab.showSubtitle`.
|
|
35
|
+
|
|
36
|
+
Default: `false`. */
|
|
37
|
+
showSubtitle?: boolean;
|
|
32
38
|
/** Whether to display an "add new tab" button at the end of the tab row. When clicked, emits the `add-new-tab` event.
|
|
33
39
|
|
|
34
40
|
Default: `false`. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {TagColor} from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
|
|
3
|
+
export type {TagColor, TagSize} from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {TagColor} from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
|
|
6
|
+
import type {TagColor, TagSize} from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
style?: string;
|
|
12
12
|
label?: string;
|
|
13
13
|
color?: TagColor;
|
|
14
|
+
size?: TagSize;
|
|
14
15
|
hasIcon?: boolean
|
|
15
16
|
}
|
|
16
17
|
export interface Events {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
|
|
2
|
-
import type { TagColor } from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
|
|
2
|
+
import type { TagColor, TagSize } from '@oicl/openbridge-webcomponents/dist/components/tag/tag.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
7
|
label?: string;
|
|
8
8
|
color?: TagColor;
|
|
9
|
+
size?: TagSize;
|
|
9
10
|
hasIcon?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export interface Events {
|
|
@@ -16,6 +17,7 @@ export interface Slots {
|
|
|
16
17
|
type $$ComponentProps = Props & Events & Slots;
|
|
17
18
|
declare const ObcTag: import("svelte").Component<$$ComponentProps, {
|
|
18
19
|
TagColor: typeof TagColor;
|
|
20
|
+
TagSize: typeof TagSize;
|
|
19
21
|
}, "">;
|
|
20
22
|
type ObcTag = ReturnType<typeof ObcTag>;
|
|
21
23
|
export default ObcTag;
|
|
@@ -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/index.d.ts
CHANGED
|
@@ -2143,11 +2143,13 @@ export { default as ObiWrench } from './icons/ObiWrench.svelte';
|
|
|
2143
2143
|
export { default as ObiYaw } from './icons/ObiYaw.svelte';
|
|
2144
2144
|
export { default as ObiIcon } from './icons/ObiIcon.svelte';
|
|
2145
2145
|
export { default as ObcIntegrationAppBar } from './integration-systems/integration-app-bar/ObcIntegrationAppBar.svelte';
|
|
2146
|
+
export { default as ObcIntegrationBar } from './integration-systems/integration-bar/ObcIntegrationBar.svelte';
|
|
2146
2147
|
export { default as ObcIntegrationBarDropdown } from './integration-systems/integration-bar-dropdown/ObcIntegrationBarDropdown.svelte';
|
|
2147
2148
|
export { default as ObcIntegrationButton } from './integration-systems/integration-button/ObcIntegrationButton.svelte';
|
|
2148
2149
|
export { default as ObcIntegrationDropdownButton } from './integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte';
|
|
2149
2150
|
export { default as ObcIntegrationFleetButton } from './integration-systems/integration-fleet-button/ObcIntegrationFleetButton.svelte';
|
|
2150
2151
|
export { default as ObcIntegrationTabs } from './integration-systems/integration-tabs/ObcIntegrationTabs.svelte';
|
|
2152
|
+
export { default as ObcIntegrationVesselMenu } from './integration-systems/integration-vessel-menu/ObcIntegrationVesselMenu.svelte';
|
|
2151
2153
|
export { default as ObcIntegrationVesselSelector } from './integration-systems/integration-vessel-selector/ObcIntegrationVesselSelector.svelte';
|
|
2152
2154
|
export { default as ObcAzimuthThruster } from './navigation-instruments/azimuth-thruster/ObcAzimuthThruster.svelte';
|
|
2153
2155
|
export { default as ObcAzimuthThrusterLabeled } from './navigation-instruments/azimuth-thruster-labeled/ObcAzimuthThrusterLabeled.svelte';
|
|
@@ -2158,22 +2160,38 @@ export { default as ObcCompassFlat } from './navigation-instruments/compass-flat
|
|
|
2158
2160
|
export { default as ObcCompassIndicator } from './navigation-instruments/compass-indicator/ObcCompassIndicator.svelte';
|
|
2159
2161
|
export { default as ObcCompassSector } from './navigation-instruments/compass-sector/ObcCompassSector.svelte';
|
|
2160
2162
|
export { default as ObcDepthActual } from './navigation-instruments/depth-actual/ObcDepthActual.svelte';
|
|
2163
|
+
export { default as ObcDepthIndicator } from './navigation-instruments/depth-indicator/ObcDepthIndicator.svelte';
|
|
2164
|
+
export { default as ObcGaugeBarIndicator } from './navigation-instruments/gauge-bar-indicator/ObcGaugeBarIndicator.svelte';
|
|
2161
2165
|
export { default as ObcGaugeHorizontal } from './navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte';
|
|
2162
2166
|
export { default as ObcGaugeRadial } from './navigation-instruments/gauge-radial/ObcGaugeRadial.svelte';
|
|
2167
|
+
export { default as ObcGaugeRadialIndicator } from './navigation-instruments/gauge-radial-indicator/ObcGaugeRadialIndicator.svelte';
|
|
2163
2168
|
export { default as ObcGaugeTrend } from './navigation-instruments/gauge-trend/ObcGaugeTrend.svelte';
|
|
2169
|
+
export { default as ObcGaugeTrendIndicator } from './navigation-instruments/gauge-trend-indicator/ObcGaugeTrendIndicator.svelte';
|
|
2164
2170
|
export { default as ObcGaugeVertical } from './navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte';
|
|
2165
2171
|
export { default as ObcGraphMini } from './navigation-instruments/graph-mini/ObcGraphMini.svelte';
|
|
2166
2172
|
export { default as ObcHeading } from './navigation-instruments/heading/ObcHeading.svelte';
|
|
2173
|
+
export { default as ObcHeadingIndicator } from './navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte';
|
|
2167
2174
|
export { default as ObcHeave } from './navigation-instruments/heave/ObcHeave.svelte';
|
|
2175
|
+
export { default as ObcHeaveIndicator } from './navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte';
|
|
2168
2176
|
export { default as ObcInstrumentField } from './navigation-instruments/instrument-field/ObcInstrumentField.svelte';
|
|
2169
2177
|
export { default as ObcMainEngine } from './navigation-instruments/main-engine/ObcMainEngine.svelte';
|
|
2178
|
+
export { default as ObcMainEngineIndicator } from './navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte';
|
|
2170
2179
|
export { default as ObcPitch } from './navigation-instruments/pitch/ObcPitch.svelte';
|
|
2180
|
+
export { default as ObcPitchIndicator } from './navigation-instruments/pitch-indicator/ObcPitchIndicator.svelte';
|
|
2171
2181
|
export { default as ObcPitchRoll } from './navigation-instruments/pitch-roll/ObcPitchRoll.svelte';
|
|
2182
|
+
export { default as ObcPropulsionAzimuthIndicator } from './navigation-instruments/propulsion-azimuth-indicator/ObcPropulsionAzimuthIndicator.svelte';
|
|
2183
|
+
export { default as ObcTunnelThruster } from './navigation-instruments/propulsion-tunnel-thruster/ObcTunnelThruster.svelte';
|
|
2172
2184
|
export { default as ObcRateOfTurn } from './navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte';
|
|
2185
|
+
export { default as ObcReadout } from './navigation-instruments/readout/ObcReadout.svelte';
|
|
2186
|
+
export { default as ObcReadoutAdvice } from './navigation-instruments/readout-advice/ObcReadoutAdvice.svelte';
|
|
2187
|
+
export { default as ObcReadoutListItem } from './navigation-instruments/readout-list-item/ObcReadoutListItem.svelte';
|
|
2188
|
+
export { default as ObcReadoutSetpoint } from './navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte';
|
|
2173
2189
|
export { default as ObcRoll } from './navigation-instruments/roll/ObcRoll.svelte';
|
|
2190
|
+
export { default as ObcRollIndicator } from './navigation-instruments/roll-indicator/ObcRollIndicator.svelte';
|
|
2174
2191
|
export { default as ObcRotIndicator } from './navigation-instruments/rot-indicator/ObcRotIndicator.svelte';
|
|
2175
2192
|
export { default as ObcRotSector } from './navigation-instruments/rot-sector/ObcRotSector.svelte';
|
|
2176
2193
|
export { default as ObcRudder } from './navigation-instruments/rudder/ObcRudder.svelte';
|
|
2194
|
+
export { default as ObcRudderIndicator } from './navigation-instruments/rudder-indicator/ObcRudderIndicator.svelte';
|
|
2177
2195
|
export { default as ObcSpeedArrows } from './navigation-instruments/speed-arrows/ObcSpeedArrows.svelte';
|
|
2178
2196
|
export { default as ObcSpeedGauge } from './navigation-instruments/speed-gauge/ObcSpeedGauge.svelte';
|
|
2179
2197
|
export { default as ObcSpeedIndicator } from './navigation-instruments/speed-indicator/ObcSpeedIndicator.svelte';
|
|
@@ -2183,5 +2201,6 @@ export { default as ObcWatch } from './navigation-instruments/watch/ObcWatch.sve
|
|
|
2183
2201
|
export { default as ObcWatchFlat } from './navigation-instruments/watch-flat/ObcWatchFlat.svelte';
|
|
2184
2202
|
export { default as ObcWind } from './navigation-instruments/wind/ObcWind.svelte';
|
|
2185
2203
|
export { default as ObcWindIndicator } from './navigation-instruments/wind-indicator/ObcWindIndicator.svelte';
|
|
2204
|
+
export { default as ObcWindPropulsion } from './navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte';
|
|
2186
2205
|
export { default as ObcAlertDetailPage } from './pages/alert-detail-page/ObcAlertDetailPage.svelte';
|
|
2187
2206
|
export { default as ObcAlertListPageSmall } from './pages/alert-list-page-small/ObcAlertListPageSmall.svelte';
|
package/dist/index.js
CHANGED
|
@@ -2143,11 +2143,13 @@ export { default as ObiWrench } from './icons/ObiWrench.svelte';
|
|
|
2143
2143
|
export { default as ObiYaw } from './icons/ObiYaw.svelte';
|
|
2144
2144
|
export { default as ObiIcon } from './icons/ObiIcon.svelte';
|
|
2145
2145
|
export { default as ObcIntegrationAppBar } from './integration-systems/integration-app-bar/ObcIntegrationAppBar.svelte';
|
|
2146
|
+
export { default as ObcIntegrationBar } from './integration-systems/integration-bar/ObcIntegrationBar.svelte';
|
|
2146
2147
|
export { default as ObcIntegrationBarDropdown } from './integration-systems/integration-bar-dropdown/ObcIntegrationBarDropdown.svelte';
|
|
2147
2148
|
export { default as ObcIntegrationButton } from './integration-systems/integration-button/ObcIntegrationButton.svelte';
|
|
2148
2149
|
export { default as ObcIntegrationDropdownButton } from './integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte';
|
|
2149
2150
|
export { default as ObcIntegrationFleetButton } from './integration-systems/integration-fleet-button/ObcIntegrationFleetButton.svelte';
|
|
2150
2151
|
export { default as ObcIntegrationTabs } from './integration-systems/integration-tabs/ObcIntegrationTabs.svelte';
|
|
2152
|
+
export { default as ObcIntegrationVesselMenu } from './integration-systems/integration-vessel-menu/ObcIntegrationVesselMenu.svelte';
|
|
2151
2153
|
export { default as ObcIntegrationVesselSelector } from './integration-systems/integration-vessel-selector/ObcIntegrationVesselSelector.svelte';
|
|
2152
2154
|
export { default as ObcAzimuthThruster } from './navigation-instruments/azimuth-thruster/ObcAzimuthThruster.svelte';
|
|
2153
2155
|
export { default as ObcAzimuthThrusterLabeled } from './navigation-instruments/azimuth-thruster-labeled/ObcAzimuthThrusterLabeled.svelte';
|
|
@@ -2158,22 +2160,38 @@ export { default as ObcCompassFlat } from './navigation-instruments/compass-flat
|
|
|
2158
2160
|
export { default as ObcCompassIndicator } from './navigation-instruments/compass-indicator/ObcCompassIndicator.svelte';
|
|
2159
2161
|
export { default as ObcCompassSector } from './navigation-instruments/compass-sector/ObcCompassSector.svelte';
|
|
2160
2162
|
export { default as ObcDepthActual } from './navigation-instruments/depth-actual/ObcDepthActual.svelte';
|
|
2163
|
+
export { default as ObcDepthIndicator } from './navigation-instruments/depth-indicator/ObcDepthIndicator.svelte';
|
|
2164
|
+
export { default as ObcGaugeBarIndicator } from './navigation-instruments/gauge-bar-indicator/ObcGaugeBarIndicator.svelte';
|
|
2161
2165
|
export { default as ObcGaugeHorizontal } from './navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte';
|
|
2162
2166
|
export { default as ObcGaugeRadial } from './navigation-instruments/gauge-radial/ObcGaugeRadial.svelte';
|
|
2167
|
+
export { default as ObcGaugeRadialIndicator } from './navigation-instruments/gauge-radial-indicator/ObcGaugeRadialIndicator.svelte';
|
|
2163
2168
|
export { default as ObcGaugeTrend } from './navigation-instruments/gauge-trend/ObcGaugeTrend.svelte';
|
|
2169
|
+
export { default as ObcGaugeTrendIndicator } from './navigation-instruments/gauge-trend-indicator/ObcGaugeTrendIndicator.svelte';
|
|
2164
2170
|
export { default as ObcGaugeVertical } from './navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte';
|
|
2165
2171
|
export { default as ObcGraphMini } from './navigation-instruments/graph-mini/ObcGraphMini.svelte';
|
|
2166
2172
|
export { default as ObcHeading } from './navigation-instruments/heading/ObcHeading.svelte';
|
|
2173
|
+
export { default as ObcHeadingIndicator } from './navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte';
|
|
2167
2174
|
export { default as ObcHeave } from './navigation-instruments/heave/ObcHeave.svelte';
|
|
2175
|
+
export { default as ObcHeaveIndicator } from './navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte';
|
|
2168
2176
|
export { default as ObcInstrumentField } from './navigation-instruments/instrument-field/ObcInstrumentField.svelte';
|
|
2169
2177
|
export { default as ObcMainEngine } from './navigation-instruments/main-engine/ObcMainEngine.svelte';
|
|
2178
|
+
export { default as ObcMainEngineIndicator } from './navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte';
|
|
2170
2179
|
export { default as ObcPitch } from './navigation-instruments/pitch/ObcPitch.svelte';
|
|
2180
|
+
export { default as ObcPitchIndicator } from './navigation-instruments/pitch-indicator/ObcPitchIndicator.svelte';
|
|
2171
2181
|
export { default as ObcPitchRoll } from './navigation-instruments/pitch-roll/ObcPitchRoll.svelte';
|
|
2182
|
+
export { default as ObcPropulsionAzimuthIndicator } from './navigation-instruments/propulsion-azimuth-indicator/ObcPropulsionAzimuthIndicator.svelte';
|
|
2183
|
+
export { default as ObcTunnelThruster } from './navigation-instruments/propulsion-tunnel-thruster/ObcTunnelThruster.svelte';
|
|
2172
2184
|
export { default as ObcRateOfTurn } from './navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte';
|
|
2185
|
+
export { default as ObcReadout } from './navigation-instruments/readout/ObcReadout.svelte';
|
|
2186
|
+
export { default as ObcReadoutAdvice } from './navigation-instruments/readout-advice/ObcReadoutAdvice.svelte';
|
|
2187
|
+
export { default as ObcReadoutListItem } from './navigation-instruments/readout-list-item/ObcReadoutListItem.svelte';
|
|
2188
|
+
export { default as ObcReadoutSetpoint } from './navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte';
|
|
2173
2189
|
export { default as ObcRoll } from './navigation-instruments/roll/ObcRoll.svelte';
|
|
2190
|
+
export { default as ObcRollIndicator } from './navigation-instruments/roll-indicator/ObcRollIndicator.svelte';
|
|
2174
2191
|
export { default as ObcRotIndicator } from './navigation-instruments/rot-indicator/ObcRotIndicator.svelte';
|
|
2175
2192
|
export { default as ObcRotSector } from './navigation-instruments/rot-sector/ObcRotSector.svelte';
|
|
2176
2193
|
export { default as ObcRudder } from './navigation-instruments/rudder/ObcRudder.svelte';
|
|
2194
|
+
export { default as ObcRudderIndicator } from './navigation-instruments/rudder-indicator/ObcRudderIndicator.svelte';
|
|
2177
2195
|
export { default as ObcSpeedArrows } from './navigation-instruments/speed-arrows/ObcSpeedArrows.svelte';
|
|
2178
2196
|
export { default as ObcSpeedGauge } from './navigation-instruments/speed-gauge/ObcSpeedGauge.svelte';
|
|
2179
2197
|
export { default as ObcSpeedIndicator } from './navigation-instruments/speed-indicator/ObcSpeedIndicator.svelte';
|
|
@@ -2183,5 +2201,6 @@ export { default as ObcWatch } from './navigation-instruments/watch/ObcWatch.sve
|
|
|
2183
2201
|
export { default as ObcWatchFlat } from './navigation-instruments/watch-flat/ObcWatchFlat.svelte';
|
|
2184
2202
|
export { default as ObcWind } from './navigation-instruments/wind/ObcWind.svelte';
|
|
2185
2203
|
export { default as ObcWindIndicator } from './navigation-instruments/wind-indicator/ObcWindIndicator.svelte';
|
|
2204
|
+
export { default as ObcWindPropulsion } from './navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte';
|
|
2186
2205
|
export { default as ObcAlertDetailPage } from './pages/alert-detail-page/ObcAlertDetailPage.svelte';
|
|
2187
2206
|
export { default as ObcAlertListPageSmall } from './pages/alert-list-page-small/ObcAlertListPageSmall.svelte';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-bar/integration-bar.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
hideHomeButton?: boolean;
|
|
13
|
+
showClock?: boolean;
|
|
14
|
+
showLinkButton?: boolean;
|
|
15
|
+
linkButtonActivated?: boolean;
|
|
16
|
+
showUserButton?: boolean;
|
|
17
|
+
userButtonActivated?: boolean;
|
|
18
|
+
showDimmingButton?: boolean;
|
|
19
|
+
dimmingButtonActivated?: boolean;
|
|
20
|
+
showSystemButton?: boolean;
|
|
21
|
+
systemButtonActivated?: boolean;
|
|
22
|
+
showScreenButton?: boolean;
|
|
23
|
+
screenButtonActivated?: boolean;
|
|
24
|
+
showNotificationButton?: boolean;
|
|
25
|
+
notificationButtonActivated?: boolean;
|
|
26
|
+
showAlertButton?: boolean;
|
|
27
|
+
alertButtonActivated?: boolean;
|
|
28
|
+
showFleetButton?: boolean;
|
|
29
|
+
fleetButtonSelected?: boolean;
|
|
30
|
+
fleetButtonActivated?: boolean;
|
|
31
|
+
fleetButtonLabel?: string
|
|
32
|
+
}
|
|
33
|
+
export interface Events {
|
|
34
|
+
onFleetButtonClick?: (event: CustomEvent<unknown>) => void;
|
|
35
|
+
onLinkButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
36
|
+
onAlertButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
37
|
+
onNotificationButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
38
|
+
onScreenButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
39
|
+
onSystemButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
40
|
+
onDimmingButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
41
|
+
onUserButtonClicked?: (event: CustomEvent<unknown>) => void
|
|
42
|
+
}
|
|
43
|
+
export interface Slots {
|
|
44
|
+
clock?: Snippet;
|
|
45
|
+
integrationButtons?: Snippet;
|
|
46
|
+
hugButtons?: Snippet;
|
|
47
|
+
vesselIntegrationMenu?: Snippet
|
|
48
|
+
}
|
|
49
|
+
const {onFleetButtonClick, onLinkButtonClicked, onAlertButtonClicked, onNotificationButtonClicked, onScreenButtonClicked, onSystemButtonClicked, onDimmingButtonClicked, onUserButtonClicked, class: className, style, clock, integrationButtons, hugButtons, vesselIntegrationMenu, ...props} = $props<Props & Events & Slots>();
|
|
50
|
+
|
|
51
|
+
</script>
|
|
52
|
+
<obc-integration-bar
|
|
53
|
+
use:setProperties={props}
|
|
54
|
+
class={className}
|
|
55
|
+
style={style}
|
|
56
|
+
onfleet-button-click={onFleetButtonClick}
|
|
57
|
+
onlink-button-clicked={onLinkButtonClicked}
|
|
58
|
+
onalert-button-clicked={onAlertButtonClicked}
|
|
59
|
+
onnotification-button-clicked={onNotificationButtonClicked}
|
|
60
|
+
onscreen-button-clicked={onScreenButtonClicked}
|
|
61
|
+
onsystem-button-clicked={onSystemButtonClicked}
|
|
62
|
+
ondimming-button-clicked={onDimmingButtonClicked}
|
|
63
|
+
onuser-button-clicked={onUserButtonClicked} >
|
|
64
|
+
|
|
65
|
+
{#if clock}
|
|
66
|
+
<div slot="clock">
|
|
67
|
+
{@render clock()}
|
|
68
|
+
</div>
|
|
69
|
+
{/if}
|
|
70
|
+
|
|
71
|
+
{#if integrationButtons}
|
|
72
|
+
<div slot="integration-buttons">
|
|
73
|
+
{@render integrationButtons()}
|
|
74
|
+
</div>
|
|
75
|
+
{/if}
|
|
76
|
+
|
|
77
|
+
{#if hugButtons}
|
|
78
|
+
<div slot="hug-buttons">
|
|
79
|
+
{@render hugButtons()}
|
|
80
|
+
</div>
|
|
81
|
+
{/if}
|
|
82
|
+
|
|
83
|
+
{#if vesselIntegrationMenu}
|
|
84
|
+
<div slot="vessel-integration-menu">
|
|
85
|
+
{@render vesselIntegrationMenu()}
|
|
86
|
+
</div>
|
|
87
|
+
{/if}
|
|
88
|
+
</obc-integration-bar>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-bar/integration-bar.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
hideHomeButton?: boolean;
|
|
7
|
+
showClock?: boolean;
|
|
8
|
+
showLinkButton?: boolean;
|
|
9
|
+
linkButtonActivated?: boolean;
|
|
10
|
+
showUserButton?: boolean;
|
|
11
|
+
userButtonActivated?: boolean;
|
|
12
|
+
showDimmingButton?: boolean;
|
|
13
|
+
dimmingButtonActivated?: boolean;
|
|
14
|
+
showSystemButton?: boolean;
|
|
15
|
+
systemButtonActivated?: boolean;
|
|
16
|
+
showScreenButton?: boolean;
|
|
17
|
+
screenButtonActivated?: boolean;
|
|
18
|
+
showNotificationButton?: boolean;
|
|
19
|
+
notificationButtonActivated?: boolean;
|
|
20
|
+
showAlertButton?: boolean;
|
|
21
|
+
alertButtonActivated?: boolean;
|
|
22
|
+
showFleetButton?: boolean;
|
|
23
|
+
fleetButtonSelected?: boolean;
|
|
24
|
+
fleetButtonActivated?: boolean;
|
|
25
|
+
fleetButtonLabel?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface Events {
|
|
28
|
+
onFleetButtonClick?: (event: CustomEvent<unknown>) => void;
|
|
29
|
+
onLinkButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
30
|
+
onAlertButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
31
|
+
onNotificationButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
32
|
+
onScreenButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
33
|
+
onSystemButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
34
|
+
onDimmingButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
35
|
+
onUserButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
36
|
+
}
|
|
37
|
+
export interface Slots {
|
|
38
|
+
clock?: Snippet;
|
|
39
|
+
integrationButtons?: Snippet;
|
|
40
|
+
hugButtons?: Snippet;
|
|
41
|
+
vesselIntegrationMenu?: Snippet;
|
|
42
|
+
}
|
|
43
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
44
|
+
declare const ObcIntegrationBar: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
45
|
+
type ObcIntegrationBar = ReturnType<typeof ObcIntegrationBar>;
|
|
46
|
+
export default ObcIntegrationBar;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {IntegrationButtonReadout} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-button/integration-button.js';
|
|
3
|
+
export type {IntegrationButtonReadout, IntegrationButtonVariant, IntegrationButtonType} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-button/integration-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-button/integration-button.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {IntegrationButtonReadout} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-button/integration-button.js';
|
|
6
|
+
import type {IntegrationButtonReadout, IntegrationButtonVariant, IntegrationButtonType} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-button/integration-button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
@@ -12,13 +12,18 @@
|
|
|
12
12
|
hasTrailingIcon?: boolean;
|
|
13
13
|
hasTrailingIcon2?: boolean;
|
|
14
14
|
hasLeadingIcon?: boolean;
|
|
15
|
+
hasStatus?: boolean;
|
|
15
16
|
readouts?: IntegrationButtonReadout[];
|
|
16
17
|
disabled?: boolean;
|
|
18
|
+
activated?: boolean;
|
|
17
19
|
selected?: boolean;
|
|
18
|
-
dividerBottom?: boolean
|
|
20
|
+
dividerBottom?: boolean;
|
|
21
|
+
dividerRight?: boolean;
|
|
22
|
+
variant?: IntegrationButtonVariant;
|
|
23
|
+
type?: IntegrationButtonType
|
|
19
24
|
}
|
|
20
25
|
export interface Events {
|
|
21
|
-
|
|
26
|
+
onClick?: (event: CustomEvent<unknown>) => void
|
|
22
27
|
}
|
|
23
28
|
export interface Slots {
|
|
24
29
|
leadingIcon?: Snippet;
|
|
@@ -27,16 +32,17 @@
|
|
|
27
32
|
label?: Snippet;
|
|
28
33
|
status?: Snippet;
|
|
29
34
|
infoLabel?: Snippet;
|
|
30
|
-
infoStatus?: Snippet
|
|
35
|
+
infoStatus?: Snippet;
|
|
36
|
+
integrationVesselMenu?: Snippet
|
|
31
37
|
}
|
|
32
|
-
const { class: className, style, leadingIcon, trailingIcon, trailingIcon2, label, status, infoLabel, infoStatus, ...props} = $props<Props & Events & Slots>();
|
|
38
|
+
const {onClick, class: className, style, leadingIcon, trailingIcon, trailingIcon2, label, status, infoLabel, infoStatus, integrationVesselMenu, ...props} = $props<Props & Events & Slots>();
|
|
33
39
|
|
|
34
40
|
</script>
|
|
35
41
|
<obc-integration-button
|
|
36
42
|
use:setProperties={props}
|
|
37
43
|
class={className}
|
|
38
44
|
style={style}
|
|
39
|
-
|
|
45
|
+
onclick={onClick} >
|
|
40
46
|
|
|
41
47
|
{#if leadingIcon}
|
|
42
48
|
<div slot="leading-icon">
|
|
@@ -79,4 +85,10 @@
|
|
|
79
85
|
{@render infoStatus()}
|
|
80
86
|
</div>
|
|
81
87
|
{/if}
|
|
88
|
+
|
|
89
|
+
{#if integrationVesselMenu}
|
|
90
|
+
<div slot="integration-vessel-menu">
|
|
91
|
+
{@render integrationVesselMenu()}
|
|
92
|
+
</div>
|
|
93
|
+
{/if}
|
|
82
94
|
</obc-integration-button>
|