@oicl/openbridge-webcomponents-svelte 2.0.0-next.50 → 2.0.0-next.52

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/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';
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';
@@ -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>
@@ -1,5 +1,5 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-button/integration-button.js';
2
- import type { IntegrationButtonReadout } from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-button/integration-button.js';
2
+ import type { IntegrationButtonReadout, IntegrationButtonVariant, IntegrationButtonType } from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-button/integration-button.js';
3
3
  import type { Snippet } from 'svelte';
4
4
  export interface Props {
5
5
  class?: string;
@@ -7,12 +7,18 @@ export interface Props {
7
7
  hasTrailingIcon?: boolean;
8
8
  hasTrailingIcon2?: boolean;
9
9
  hasLeadingIcon?: boolean;
10
+ hasStatus?: boolean;
10
11
  readouts?: IntegrationButtonReadout[];
11
12
  disabled?: boolean;
13
+ activated?: boolean;
12
14
  selected?: boolean;
13
15
  dividerBottom?: boolean;
16
+ dividerRight?: boolean;
17
+ variant?: IntegrationButtonVariant;
18
+ type?: IntegrationButtonType;
14
19
  }
15
20
  export interface Events {
21
+ onClick?: (event: CustomEvent<unknown>) => void;
16
22
  }
17
23
  export interface Slots {
18
24
  leadingIcon?: Snippet;
@@ -22,10 +28,13 @@ export interface Slots {
22
28
  status?: Snippet;
23
29
  infoLabel?: Snippet;
24
30
  infoStatus?: Snippet;
31
+ integrationVesselMenu?: Snippet;
25
32
  }
26
33
  type $$ComponentProps = Props & Events & Slots;
27
34
  declare const ObcIntegrationButton: import("svelte").Component<$$ComponentProps, {
28
35
  IntegrationButtonReadout: typeof IntegrationButtonReadout;
36
+ IntegrationButtonVariant: typeof IntegrationButtonVariant;
37
+ IntegrationButtonType: typeof IntegrationButtonType;
29
38
  }, "">;
30
39
  type ObcIntegrationButton = ReturnType<typeof ObcIntegrationButton>;
31
40
  export default ObcIntegrationButton;
@@ -0,0 +1,101 @@
1
+
2
+ <script lang="ts">
3
+
4
+ import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.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
+ numberOfButtons?: number
13
+ }
14
+ export interface Events {
15
+ onButton1Click?: (event: CustomEvent<unknown>) => void;
16
+ onButton2Click?: (event: CustomEvent<unknown>) => void;
17
+ onButton3Click?: (event: CustomEvent<unknown>) => void
18
+ }
19
+ export interface Slots {
20
+ leadingIcon?: Snippet;
21
+ title?: Snippet;
22
+ button1LeadingIcon?: Snippet;
23
+ button1Label?: Snippet;
24
+ button2LeadingIcon?: Snippet;
25
+ button2Label?: Snippet;
26
+ button3LeadingIcon?: Snippet;
27
+ button3Label?: Snippet;
28
+ content?: Snippet;
29
+ alarms?: Snippet
30
+ }
31
+ const {onButton1Click, onButton2Click, onButton3Click, class: className, style, leadingIcon, title, button1LeadingIcon, button1Label, button2LeadingIcon, button2Label, button3LeadingIcon, button3Label, content, alarms, ...props} = $props<Props & Events & Slots>();
32
+
33
+ </script>
34
+ <obc-integration-vessel-menu
35
+ use:setProperties={props}
36
+ class={className}
37
+ style={style}
38
+ onbutton1-click={onButton1Click}
39
+ onbutton2-click={onButton2Click}
40
+ onbutton3-click={onButton3Click} >
41
+
42
+ {#if leadingIcon}
43
+ <div slot="leading-icon">
44
+ {@render leadingIcon()}
45
+ </div>
46
+ {/if}
47
+
48
+ {#if title}
49
+ <div slot="title">
50
+ {@render title()}
51
+ </div>
52
+ {/if}
53
+
54
+ {#if button1LeadingIcon}
55
+ <div slot="button-1-leading-icon">
56
+ {@render button1LeadingIcon()}
57
+ </div>
58
+ {/if}
59
+
60
+ {#if button1Label}
61
+ <div slot="button-1-label">
62
+ {@render button1Label()}
63
+ </div>
64
+ {/if}
65
+
66
+ {#if button2LeadingIcon}
67
+ <div slot="button-2-leading-icon">
68
+ {@render button2LeadingIcon()}
69
+ </div>
70
+ {/if}
71
+
72
+ {#if button2Label}
73
+ <div slot="button-2-label">
74
+ {@render button2Label()}
75
+ </div>
76
+ {/if}
77
+
78
+ {#if button3LeadingIcon}
79
+ <div slot="button-3-leading-icon">
80
+ {@render button3LeadingIcon()}
81
+ </div>
82
+ {/if}
83
+
84
+ {#if button3Label}
85
+ <div slot="button-3-label">
86
+ {@render button3Label()}
87
+ </div>
88
+ {/if}
89
+
90
+ {#if content}
91
+ <div slot="content">
92
+ {@render content()}
93
+ </div>
94
+ {/if}
95
+
96
+ {#if alarms}
97
+ <div slot="alarms">
98
+ {@render alarms()}
99
+ </div>
100
+ {/if}
101
+ </obc-integration-vessel-menu>
@@ -0,0 +1,28 @@
1
+ import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js';
2
+ import type { Snippet } from 'svelte';
3
+ export interface Props {
4
+ class?: string;
5
+ style?: string;
6
+ numberOfButtons?: number;
7
+ }
8
+ export interface Events {
9
+ onButton1Click?: (event: CustomEvent<unknown>) => void;
10
+ onButton2Click?: (event: CustomEvent<unknown>) => void;
11
+ onButton3Click?: (event: CustomEvent<unknown>) => void;
12
+ }
13
+ export interface Slots {
14
+ leadingIcon?: Snippet;
15
+ title?: Snippet;
16
+ button1LeadingIcon?: Snippet;
17
+ button1Label?: Snippet;
18
+ button2LeadingIcon?: Snippet;
19
+ button2Label?: Snippet;
20
+ button3LeadingIcon?: Snippet;
21
+ button3Label?: Snippet;
22
+ content?: Snippet;
23
+ alarms?: Snippet;
24
+ }
25
+ type $$ComponentProps = Props & Events & Slots;
26
+ declare const ObcIntegrationVesselMenu: import("svelte").Component<$$ComponentProps, {}, "">;
27
+ type ObcIntegrationVesselMenu = ReturnType<typeof ObcIntegrationVesselMenu>;
28
+ export default ObcIntegrationVesselMenu;
@@ -9,6 +9,7 @@
9
9
  export interface Props {
10
10
  class?: string;
11
11
  style?: string;
12
+ hasTopbar?: boolean;
12
13
  hasFleet?: boolean
13
14
  }
14
15
  export interface Events {
@@ -16,9 +17,10 @@
16
17
  }
17
18
  export interface Slots {
18
19
  children?: Snippet;
19
- fleet?: Snippet
20
+ fleet?: Snippet;
21
+ topbar?: Snippet
20
22
  }
21
- const { class: className, style, children, fleet, ...props} = $props<Props & Events & Slots>();
23
+ const { class: className, style, children, fleet, topbar, ...props} = $props<Props & Events & Slots>();
22
24
 
23
25
  </script>
24
26
  <obc-integration-vessel-selector
@@ -36,4 +38,10 @@
36
38
  {@render fleet()}
37
39
  </div>
38
40
  {/if}
41
+
42
+ {#if topbar}
43
+ <div slot="topbar">
44
+ {@render topbar()}
45
+ </div>
46
+ {/if}
39
47
  </obc-integration-vessel-selector>
@@ -3,6 +3,7 @@ import type { Snippet } from 'svelte';
3
3
  export interface Props {
4
4
  class?: string;
5
5
  style?: string;
6
+ hasTopbar?: boolean;
6
7
  hasFleet?: boolean;
7
8
  }
8
9
  export interface Events {
@@ -10,6 +11,7 @@ export interface Events {
10
11
  export interface Slots {
11
12
  children?: Snippet;
12
13
  fleet?: Snippet;
14
+ topbar?: Snippet;
13
15
  }
14
16
  type $$ComponentProps = Props & Events & Slots;
15
17
  declare const ObcIntegrationVesselSelector: import("svelte").Component<$$ComponentProps, {}, "">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.50",
3
+ "version": "2.0.0-next.52",
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.49"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.51"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"