@oicl/openbridge-webcomponents-svelte 0.0.20260325093621 → 0.0.20260326144449
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/integration-systems/integration-bar-dropdown/ObcIntegrationBarDropdown.svelte +5 -3
- package/dist/integration-systems/integration-bar-dropdown/ObcIntegrationBarDropdown.svelte.d.ts +3 -1
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte +1 -1
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte.d.ts +1 -0
- package/package.json +2 -2
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
showClock?: boolean;
|
|
15
15
|
showNotificationButton?: boolean;
|
|
16
16
|
notificationButtonActivated?: boolean;
|
|
17
|
+
notificationCount?: number;
|
|
18
|
+
showNotificationCount?: boolean;
|
|
17
19
|
showUserButton?: boolean;
|
|
18
20
|
userButtonActivated?: boolean;
|
|
19
21
|
showDimmingButton?: boolean;
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
nStatusFields?: number
|
|
24
26
|
}
|
|
25
27
|
export interface Events {
|
|
26
|
-
|
|
28
|
+
onHomeButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
27
29
|
onDimmingButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
28
30
|
onNotificationButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
29
31
|
onUserButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
@@ -39,14 +41,14 @@
|
|
|
39
41
|
statusIcon3?: Snippet;
|
|
40
42
|
clock?: Snippet
|
|
41
43
|
}
|
|
42
|
-
const {
|
|
44
|
+
const {onHomeButtonClicked, onDimmingButtonClicked, onNotificationButtonClicked, onUserButtonClicked, onSystemButtonClicked, class: className, style, vesselSelector, statusLabel1, statusIcon1, statusLabel2, statusIcon2, statusLabel3, statusIcon3, clock, ...props} = $props<Props & Events & Slots>();
|
|
43
45
|
|
|
44
46
|
</script>
|
|
45
47
|
<obc-integration-bar-dropdown
|
|
46
48
|
use:setProperties={props}
|
|
47
49
|
class={className}
|
|
48
50
|
style={style}
|
|
49
|
-
onhome-button-
|
|
51
|
+
onhome-button-clicked={onHomeButtonClicked}
|
|
50
52
|
ondimming-button-clicked={onDimmingButtonClicked}
|
|
51
53
|
onnotification-button-clicked={onNotificationButtonClicked}
|
|
52
54
|
onuser-button-clicked={onUserButtonClicked}
|
package/dist/integration-systems/integration-bar-dropdown/ObcIntegrationBarDropdown.svelte.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface Props {
|
|
|
8
8
|
showClock?: boolean;
|
|
9
9
|
showNotificationButton?: boolean;
|
|
10
10
|
notificationButtonActivated?: boolean;
|
|
11
|
+
notificationCount?: number;
|
|
12
|
+
showNotificationCount?: boolean;
|
|
11
13
|
showUserButton?: boolean;
|
|
12
14
|
userButtonActivated?: boolean;
|
|
13
15
|
showDimmingButton?: boolean;
|
|
@@ -17,7 +19,7 @@ export interface Props {
|
|
|
17
19
|
nStatusFields?: number;
|
|
18
20
|
}
|
|
19
21
|
export interface Events {
|
|
20
|
-
|
|
22
|
+
onHomeButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
21
23
|
onDimmingButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
22
24
|
onNotificationButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
23
25
|
onUserButtonClicked?: (event: CustomEvent<unknown>) => void;
|
package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte
CHANGED
|
@@ -18,7 +18,7 @@ Example:
|
|
|
18
18
|
{ value: 'volvo', label: 'Volvo', icon: html`<obi-ship></obi-ship>` },
|
|
19
19
|
{ value: 'xc90', label: 'XC 90', icon: html`<obi-ship></obi-ship>` }
|
|
20
20
|
] */
|
|
21
|
-
options?: { value: string; label: string; icon: HTMLTemplateResult; disabled?: boolean | undefined; }[];
|
|
21
|
+
options?: { value: string; label: string; status?: string | undefined; icon: HTMLTemplateResult; disabled?: boolean | undefined; }[];
|
|
22
22
|
hasFleet?: boolean;
|
|
23
23
|
fleetLabel?: string;
|
|
24
24
|
/** The value of the currently selected option. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20260326144449",
|
|
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": "^0.0.
|
|
34
|
+
"@oicl/openbridge-webcomponents": "^0.0.20260326144449"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|