@oicl/openbridge-webcomponents-svelte 2.0.0-next.115 → 2.0.0-next.117

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.
Files changed (43) hide show
  1. package/dist/ar/poi/PoiBase.svelte +4 -4
  2. package/dist/ar/poi/PoiBase.svelte.d.ts +1 -0
  3. package/dist/ar/poi-button/ObcPoiButton.svelte +4 -4
  4. package/dist/ar/poi-button/ObcPoiButton.svelte.d.ts +1 -0
  5. package/dist/ar/poi-group/ObcPoiGroup.svelte +6 -5
  6. package/dist/ar/poi-group/ObcPoiGroup.svelte.d.ts +7 -1
  7. package/dist/automation/automation-button/ObcAutomationButton.svelte +4 -4
  8. package/dist/automation/automation-button/ObcAutomationButton.svelte.d.ts +1 -0
  9. package/dist/automation/automation-readout/ObcAutomationReadout.svelte +4 -4
  10. package/dist/automation/automation-readout/ObcAutomationReadout.svelte.d.ts +1 -0
  11. package/dist/automation/automation-tank/ObcAutomationTank.svelte +4 -4
  12. package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +1 -0
  13. package/dist/components/app-button/ObcAppButton.svelte +4 -4
  14. package/dist/components/app-button/ObcAppButton.svelte.d.ts +1 -0
  15. package/dist/components/command-button/ObcCommandButton.svelte +4 -4
  16. package/dist/components/command-button/ObcCommandButton.svelte.d.ts +1 -0
  17. package/dist/components/keyboard-numeric/ObcKeyboardNumeric.svelte +1 -1
  18. package/dist/components/keyboard-numeric/ObcKeyboardNumeric.svelte.d.ts +1 -1
  19. package/dist/components/modal-window/ObcModalWindow.svelte +4 -4
  20. package/dist/components/modal-window/ObcModalWindow.svelte.d.ts +4 -4
  21. package/dist/components/notification-badge-button/ObcNotificationBadgeButton.svelte +4 -4
  22. package/dist/components/notification-badge-button/ObcNotificationBadgeButton.svelte.d.ts +1 -0
  23. package/dist/components/sequence-step/ObcSequenceStep.svelte +4 -4
  24. package/dist/components/sequence-step/ObcSequenceStep.svelte.d.ts +1 -0
  25. package/dist/components/sequence-toolbar/ObcSequenceToolbar.svelte +3 -3
  26. package/dist/components/sequence-toolbar/ObcSequenceToolbar.svelte.d.ts +3 -3
  27. package/dist/components/system-menu/ObcSystemMenu.svelte +3 -3
  28. package/dist/components/system-menu/ObcSystemMenu.svelte.d.ts +3 -2
  29. package/dist/components/text-input-field/ObcTextInputField.svelte +1 -1
  30. package/dist/components/text-input-field/ObcTextInputField.svelte.d.ts +3 -1
  31. package/dist/components/toggle-switch/ObcToggleSwitch.svelte +4 -4
  32. package/dist/components/toggle-switch/ObcToggleSwitch.svelte.d.ts +7 -3
  33. package/dist/components/user-menu/ObcUserMenu.svelte +1 -1
  34. package/dist/components/user-menu/ObcUserMenu.svelte.d.ts +1 -1
  35. package/dist/components/vendor-button/ObcVendorButton.svelte +4 -4
  36. package/dist/components/vendor-button/ObcVendorButton.svelte.d.ts +1 -0
  37. package/dist/integration-systems/integration-fleet-button/ObcIntegrationFleetButton.svelte +4 -4
  38. package/dist/integration-systems/integration-fleet-button/ObcIntegrationFleetButton.svelte.d.ts +1 -0
  39. package/dist/integration-systems/integration-tabs/ObcIntegrationTabs.svelte +4 -4
  40. package/dist/integration-systems/integration-tabs/ObcIntegrationTabs.svelte.d.ts +1 -0
  41. package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte +4 -4
  42. package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte.d.ts +1 -0
  43. package/package.json +2 -2
@@ -4,7 +4,7 @@
4
4
  export type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
5
5
  export type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
6
6
  import '@oicl/openbridge-webcomponents/dist/ar/poi/poi-base.js';
7
- import { setProperties } from "../../util.js";
7
+ import { setProperties, forwardEvents } from "../../util.js";
8
8
  import type {ObcPoiType, ObcPoiValue, ObcPoiState} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
9
9
  import type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
10
10
  import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
@@ -38,19 +38,19 @@ import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webco
38
38
  targetOffsetX?: number
39
39
  }
40
40
  export interface Events {
41
-
41
+ onObcPoiDataLayoutChange?: (event: CustomEvent<void>) => void
42
42
  }
43
43
  export interface Slots {
44
44
  children?: Snippet
45
45
  }
46
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
46
+ const {onObcPoiDataLayoutChange, class: className, style, children, ...props} = $props<Props & Events & Slots>();
47
47
 
48
48
  </script>
49
49
  <undefined
50
50
  use:setProperties={props}
51
51
  class={className}
52
52
  style={style}
53
- >
53
+ use:forwardEvents={{'obc-poi-data-layout-change': onObcPoiDataLayoutChange}} >
54
54
 
55
55
  {#if children}
56
56
  {@render children()}
@@ -31,6 +31,7 @@ export interface Props {
31
31
  targetOffsetX?: number;
32
32
  }
33
33
  export interface Events {
34
+ onObcPoiDataLayoutChange?: (event: CustomEvent<void>) => void;
34
35
  }
35
36
  export interface Slots {
36
37
  children?: Snippet;
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
  export type {ObcPoiButtonLayout, ObcPoiButtonState, PoiButtonVisualState, ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
5
- import { setProperties } from "../../util.js";
5
+ import { setProperties, forwardEvents } from "../../util.js";
6
6
  import type {ObcPoiButtonLayout, ObcPoiButtonState, PoiButtonVisualState, ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
7
7
  import type { Snippet } from 'svelte';
8
8
 
@@ -23,21 +23,21 @@
23
23
  headerContent?: string
24
24
  }
25
25
  export interface Events {
26
-
26
+ onClick?: (event: CustomEvent<unknown>) => void
27
27
  }
28
28
  export interface Slots {
29
29
  children?: Snippet;
30
30
  header?: Snippet;
31
31
  relation?: Snippet
32
32
  }
33
- const { class: className, style, children, header, relation, ...props} = $props<Props & Events & Slots>();
33
+ const {onClick, class: className, style, children, header, relation, ...props} = $props<Props & Events & Slots>();
34
34
 
35
35
  </script>
36
36
  <obc-poi-button
37
37
  use:setProperties={props}
38
38
  class={className}
39
39
  style={style}
40
- >
40
+ use:forwardEvents={{'click': onClick}} >
41
41
 
42
42
  {#if children}
43
43
  {@render children()}
@@ -18,6 +18,7 @@ export interface Props {
18
18
  headerContent?: string;
19
19
  }
20
20
  export interface Events {
21
+ onClick?: (event: CustomEvent<unknown>) => void;
21
22
  }
22
23
  export interface Slots {
23
24
  children?: Snippet;
@@ -1,9 +1,9 @@
1
1
 
2
2
  <script lang="ts">
3
-
3
+ export type {Poi} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/ar/poi-group/poi-group.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
-
6
+ import type {Poi} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
7
7
  import type { Snippet } from 'svelte';
8
8
 
9
9
  export interface Props {
@@ -16,19 +16,20 @@
16
16
  }
17
17
  export interface Events {
18
18
  onExpand?: (event: CustomEvent<{expand:boolean}>) => void;
19
- onCollapseFinished?: (event: CustomEvent<void>) => void
19
+ onCollapseFinished?: (event: CustomEvent<void>) => void;
20
+ onObcPoiGroupTargetReleased?: (event: CustomEvent<{target: Poi}>) => void
20
21
  }
21
22
  export interface Slots {
22
23
  children?: Snippet
23
24
  }
24
- const {onExpand, onCollapseFinished, class: className, style, children, ...props} = $props<Props & Events & Slots>();
25
+ const {onExpand, onCollapseFinished, onObcPoiGroupTargetReleased, class: className, style, children, ...props} = $props<Props & Events & Slots>();
25
26
 
26
27
  </script>
27
28
  <obc-poi-group
28
29
  use:setProperties={props}
29
30
  class={className}
30
31
  style={style}
31
- use:forwardEvents={{'expand': onExpand, 'collapse-finished': onCollapseFinished}} >
32
+ use:forwardEvents={{'expand': onExpand, 'collapse-finished': onCollapseFinished, 'obc-poi-group-target-released': onObcPoiGroupTargetReleased}} >
32
33
 
33
34
  {#if children}
34
35
  {@render children()}
@@ -1,4 +1,5 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/ar/poi-group/poi-group.js';
2
+ import type { Poi } from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
2
3
  import type { Snippet } from 'svelte';
3
4
  export interface Props {
4
5
  class?: string;
@@ -13,11 +14,16 @@ export interface Events {
13
14
  expand: boolean;
14
15
  }>) => void;
15
16
  onCollapseFinished?: (event: CustomEvent<void>) => void;
17
+ onObcPoiGroupTargetReleased?: (event: CustomEvent<{
18
+ target: Poi;
19
+ }>) => void;
16
20
  }
17
21
  export interface Slots {
18
22
  children?: Snippet;
19
23
  }
20
24
  type $$ComponentProps = Props & Events & Slots;
21
- declare const ObcPoiGroup: import("svelte").Component<$$ComponentProps, {}, "">;
25
+ declare const ObcPoiGroup: import("svelte").Component<$$ComponentProps, {
26
+ Poi: typeof Poi;
27
+ }, "">;
22
28
  type ObcPoiGroup = ReturnType<typeof ObcPoiGroup>;
23
29
  export default ObcPoiGroup;
@@ -6,7 +6,7 @@ export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from
6
6
  export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
7
7
  export type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
8
8
  import '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
9
- import { setProperties } from "../../util.js";
9
+ import { setProperties, forwardEvents } from "../../util.js";
10
10
  import type {AutomationButtonVariant, AutomationButtonState, AutomationButtonReadoutPosition, AutomationButtonDirection, AutomationButtonPositioning, AutomationButtonOrientation} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
11
11
  import type {AutomationButtonReadoutStack, AutomationButtonReadoutStackSize} from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
12
12
  import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
@@ -44,7 +44,7 @@ activated?: boolean;
44
44
  hasBadgeSpacer?: boolean
45
45
  }
46
46
  export interface Events {
47
-
47
+ onClick?: (event: CustomEvent<unknown>) => void
48
48
  }
49
49
  export interface Slots {
50
50
  badgeTopRight?: Snippet;
@@ -57,14 +57,14 @@ hasBadgeSpacer?: boolean
57
57
  alertLabel?: Snippet;
58
58
  alertTimer?: Snippet
59
59
  }
60
- const { class: className, style, badgeTopRight, badgeTopLeft, badgeBottomLeft, badgeBottomRight, icon, iconSilhouette, alertIcon, alertLabel, alertTimer, ...props} = $props<Props & Events & Slots>();
60
+ const {onClick, class: className, style, badgeTopRight, badgeTopLeft, badgeBottomLeft, badgeBottomRight, icon, iconSilhouette, alertIcon, alertLabel, alertTimer, ...props} = $props<Props & Events & Slots>();
61
61
 
62
62
  </script>
63
63
  <obc-automation-button
64
64
  use:setProperties={props}
65
65
  class={className}
66
66
  style={style}
67
- >
67
+ use:forwardEvents={{'click': onClick}} >
68
68
 
69
69
  {#if badgeTopRight}
70
70
  <div slot="badge-top-right">
@@ -35,6 +35,7 @@ export interface Props {
35
35
  hasBadgeSpacer?: boolean;
36
36
  }
37
37
  export interface Events {
38
+ onClick?: (event: CustomEvent<unknown>) => void;
38
39
  }
39
40
  export interface Slots {
40
41
  badgeTopRight?: Snippet;
@@ -3,7 +3,7 @@
3
3
  export type {AutomationReadoutPosition} from '@oicl/openbridge-webcomponents/dist/automation/automation-readout/automation-readout.js';
4
4
  export type {LineType} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
5
5
  import '@oicl/openbridge-webcomponents/dist/automation/automation-readout/automation-readout.js';
6
- import { setProperties } from "../../util.js";
6
+ import { setProperties, forwardEvents } from "../../util.js";
7
7
  import type {AutomationReadoutPosition} from '@oicl/openbridge-webcomponents/dist/automation/automation-readout/automation-readout.js';
8
8
  import type {LineType} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
9
9
  import type { Snippet } from 'svelte';
@@ -18,19 +18,19 @@ import type {LineType} from '@oicl/openbridge-webcomponents/dist/automation/inde
18
18
  lineType?: LineType | undefined
19
19
  }
20
20
  export interface Events {
21
-
21
+ onClick?: (event: CustomEvent<unknown>) => void
22
22
  }
23
23
  export interface Slots {
24
24
  children?: Snippet
25
25
  }
26
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
26
+ const {onClick, class: className, style, children, ...props} = $props<Props & Events & Slots>();
27
27
 
28
28
  </script>
29
29
  <obc-automation-readout
30
30
  use:setProperties={props}
31
31
  class={className}
32
32
  style={style}
33
- >
33
+ use:forwardEvents={{'click': onClick}} >
34
34
 
35
35
  {#if children}
36
36
  {@render children()}
@@ -12,6 +12,7 @@ export interface Props {
12
12
  lineType?: LineType | undefined;
13
13
  }
14
14
  export interface Events {
15
+ onClick?: (event: CustomEvent<unknown>) => void;
15
16
  }
16
17
  export interface Slots {
17
18
  children?: Snippet;
@@ -9,7 +9,7 @@ export type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-w
9
9
  export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
10
10
  export type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
11
11
  import '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
12
- import { setProperties } from "../../util.js";
12
+ import { setProperties, forwardEvents } from "../../util.js";
13
13
  import type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
14
14
  import type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
15
15
  import type {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
@@ -145,7 +145,7 @@ badgeControl?: AutomationButtonBadgeControl;
145
145
  badgeCommandLocked?: AutomationButtonBadgeCommandLocked
146
146
  }
147
147
  export interface Events {
148
-
148
+ onClick?: (event: CustomEvent<unknown>) => void
149
149
  }
150
150
  export interface Slots {
151
151
  badges?: Snippet;
@@ -159,14 +159,14 @@ badgeControl?: AutomationButtonBadgeControl;
159
159
  alertLabel?: Snippet;
160
160
  alertTimer?: Snippet
161
161
  }
162
- const { class: className, style, badges, tagSnippet, readout, maxValue, unit, currentValue, rich, alertIcon, alertLabel, alertTimer, ...props} = $props<Props & Events & Slots>();
162
+ const {onClick, class: className, style, badges, tagSnippet, readout, maxValue, unit, currentValue, rich, alertIcon, alertLabel, alertTimer, ...props} = $props<Props & Events & Slots>();
163
163
 
164
164
  </script>
165
165
  <obc-automation-tank
166
166
  use:setProperties={props}
167
167
  class={className}
168
168
  style={style}
169
- >
169
+ use:forwardEvents={{'click': onClick}} >
170
170
 
171
171
  {#if badges}
172
172
  <div slot="badges">
@@ -133,6 +133,7 @@ matching the positional convention used by `ObcAbstractAutomationButton`
133
133
  badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
134
134
  }
135
135
  export interface Events {
136
+ onClick?: (event: CustomEvent<unknown>) => void;
136
137
  }
137
138
  export interface Slots {
138
139
  badges?: Snippet;
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
  export type {AppButtonSize} from '@oicl/openbridge-webcomponents/dist/components/app-button/app-button.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/app-button/app-button.js';
5
- import { setProperties } from "../../util.js";
5
+ import { setProperties, forwardEvents } from "../../util.js";
6
6
  import type {AppButtonSize} from '@oicl/openbridge-webcomponents/dist/components/app-button/app-button.js';
7
7
  import type { Snippet } from 'svelte';
8
8
 
@@ -22,19 +22,19 @@ size?: AppButtonSize;
22
22
  disabled?: boolean
23
23
  }
24
24
  export interface Events {
25
-
25
+ onClick?: (event: CustomEvent<unknown>) => void
26
26
  }
27
27
  export interface Slots {
28
28
  icon?: Snippet
29
29
  }
30
- const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
30
+ const {onClick, class: className, style, icon, ...props} = $props<Props & Events & Slots>();
31
31
 
32
32
  </script>
33
33
  <obc-app-button
34
34
  use:setProperties={props}
35
35
  class={className}
36
36
  style={style}
37
- >
37
+ use:forwardEvents={{'click': onClick}} >
38
38
 
39
39
  {#if icon}
40
40
  <div slot="icon">
@@ -17,6 +17,7 @@ export interface Props {
17
17
  disabled?: boolean;
18
18
  }
19
19
  export interface Events {
20
+ onClick?: (event: CustomEvent<unknown>) => void;
20
21
  }
21
22
  export interface Slots {
22
23
  icon?: Snippet;
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
 
4
4
  import '@oicl/openbridge-webcomponents/dist/components/command-button/command-button.js';
5
- import { setProperties } from "../../util.js";
5
+ import { setProperties, forwardEvents } from "../../util.js";
6
6
 
7
7
  import type { Snippet } from 'svelte';
8
8
 
@@ -18,19 +18,19 @@ Default: `false` */
18
18
  inCommand?: boolean
19
19
  }
20
20
  export interface Events {
21
-
21
+ onClick?: (event: CustomEvent<unknown>) => void
22
22
  }
23
23
  export interface Slots {
24
24
  children?: Snippet
25
25
  }
26
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
26
+ const {onClick, class: className, style, children, ...props} = $props<Props & Events & Slots>();
27
27
 
28
28
  </script>
29
29
  <obc-command-button
30
30
  use:setProperties={props}
31
31
  class={className}
32
32
  style={style}
33
- >
33
+ use:forwardEvents={{'click': onClick}} >
34
34
 
35
35
  {#if children}
36
36
  {@render children()}
@@ -12,6 +12,7 @@ Default: `false` */
12
12
  inCommand?: boolean;
13
13
  }
14
14
  export interface Events {
15
+ onClick?: (event: CustomEvent<unknown>) => void;
15
16
  }
16
17
  export interface Slots {
17
18
  children?: Snippet;
@@ -34,7 +34,7 @@ inputFieldTextAlign?: ObcNumberInputFieldTextAlign;
34
34
  validationPattern?: string
35
35
  }
36
36
  export interface Events {
37
- onCloseClick?: (event: CustomEvent) => void;
37
+ onCloseClick?: (event: CustomEvent<void>) => void;
38
38
  onValueChange?: (event: CustomEvent<{value: string}>) => void;
39
39
  onDoneClick?: (event: CustomEvent<{value: string}>) => void
40
40
  }
@@ -28,7 +28,7 @@ export interface Props {
28
28
  validationPattern?: string;
29
29
  }
30
30
  export interface Events {
31
- onCloseClick?: (event: CustomEvent) => void;
31
+ onCloseClick?: (event: CustomEvent<void>) => void;
32
32
  onValueChange?: (event: CustomEvent<{
33
33
  value: string;
34
34
  }>) => void;
@@ -21,10 +21,10 @@ hasCancelAction?: boolean;
21
21
  hasCloseAction?: boolean
22
22
  }
23
23
  export interface Events {
24
- onCloseClick?: (event: CustomEvent<unknown>) => void;
25
- onCancelClick?: (event: CustomEvent<unknown>) => void;
26
- onDoneClick?: (event: CustomEvent<unknown>) => void;
27
- onOptionClick?: (event: CustomEvent<unknown>) => void
24
+ onCloseClick?: (event: CustomEvent) => void;
25
+ onCancelClick?: (event: CustomEvent) => void;
26
+ onDoneClick?: (event: CustomEvent) => void;
27
+ onOptionClick?: (event: CustomEvent) => void
28
28
  }
29
29
  export interface Slots {
30
30
  leadingIcon?: Snippet;
@@ -16,10 +16,10 @@ export interface Props {
16
16
  hasCloseAction?: boolean;
17
17
  }
18
18
  export interface Events {
19
- onCloseClick?: (event: CustomEvent<unknown>) => void;
20
- onCancelClick?: (event: CustomEvent<unknown>) => void;
21
- onDoneClick?: (event: CustomEvent<unknown>) => void;
22
- onOptionClick?: (event: CustomEvent<unknown>) => void;
19
+ onCloseClick?: (event: CustomEvent) => void;
20
+ onCancelClick?: (event: CustomEvent) => void;
21
+ onDoneClick?: (event: CustomEvent) => void;
22
+ onOptionClick?: (event: CustomEvent) => void;
23
23
  }
24
24
  export interface Slots {
25
25
  leadingIcon?: Snippet;
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
 
4
4
  import '@oicl/openbridge-webcomponents/dist/components/notification-badge-button/notification-badge-button.js';
5
- import { setProperties } from "../../util.js";
5
+ import { setProperties, forwardEvents } from "../../util.js";
6
6
 
7
7
  import type { Snippet } from 'svelte';
8
8
 
@@ -31,19 +31,19 @@ Useful for visually separating the button from others or indicating a secondary
31
31
  indent?: boolean
32
32
  }
33
33
  export interface Events {
34
-
34
+ onClick?: (event: CustomEvent<unknown>) => void
35
35
  }
36
36
  export interface Slots {
37
37
  children?: Snippet
38
38
  }
39
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
39
+ const {onClick, class: className, style, children, ...props} = $props<Props & Events & Slots>();
40
40
 
41
41
  </script>
42
42
  <obc-notification-badge-button
43
43
  use:setProperties={props}
44
44
  class={className}
45
45
  style={style}
46
- >
46
+ use:forwardEvents={{'click': onClick}} >
47
47
 
48
48
  {#if children}
49
49
  {@render children()}
@@ -25,6 +25,7 @@ Useful for visually separating the button from others or indicating a secondary
25
25
  indent?: boolean;
26
26
  }
27
27
  export interface Events {
28
+ onClick?: (event: CustomEvent<unknown>) => void;
28
29
  }
29
30
  export interface Slots {
30
31
  children?: Snippet;
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
  export type {SequenceOrientation, SequenceType, SequenceStyle, SequenceValue, SequenceVariant} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
5
- import { setProperties } from "../../util.js";
5
+ import { setProperties, forwardEvents } from "../../util.js";
6
6
  import type {SequenceOrientation, SequenceType, SequenceStyle, SequenceValue, SequenceVariant} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
7
7
  import type { Snippet } from 'svelte';
8
8
 
@@ -23,19 +23,19 @@ Applies only when `hasInputConnector` is true. */
23
23
  inputConnectorExtended?: boolean
24
24
  }
25
25
  export interface Events {
26
-
26
+ onClick?: (event: CustomEvent<unknown>) => void
27
27
  }
28
28
  export interface Slots {
29
29
  children?: Snippet
30
30
  }
31
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
31
+ const {onClick, class: className, style, children, ...props} = $props<Props & Events & Slots>();
32
32
 
33
33
  </script>
34
34
  <obc-sequence-step
35
35
  use:setProperties={props}
36
36
  class={className}
37
37
  style={style}
38
- >
38
+ use:forwardEvents={{'click': onClick}} >
39
39
 
40
40
  {#if children}
41
41
  {@render children()}
@@ -18,6 +18,7 @@ Applies only when `hasInputConnector` is true. */
18
18
  inputConnectorExtended?: boolean;
19
19
  }
20
20
  export interface Events {
21
+ onClick?: (event: CustomEvent<unknown>) => void;
21
22
  }
22
23
  export interface Slots {
23
24
  children?: Snippet;
@@ -13,9 +13,9 @@
13
13
  hasAdd?: boolean
14
14
  }
15
15
  export interface Events {
16
- onPrevClick?: (event: CustomEvent<unknown>) => void;
17
- onNextClick?: (event: CustomEvent<unknown>) => void;
18
- onAddClick?: (event: CustomEvent<unknown>) => void
16
+ onPrevClick?: (event: CustomEvent<void>) => void;
17
+ onNextClick?: (event: CustomEvent<void>) => void;
18
+ onAddClick?: (event: CustomEvent<void>) => void
19
19
  }
20
20
  export interface Slots {
21
21
  children?: Snippet;
@@ -8,9 +8,9 @@ export interface Props {
8
8
  hasAdd?: boolean;
9
9
  }
10
10
  export interface Events {
11
- onPrevClick?: (event: CustomEvent<unknown>) => void;
12
- onNextClick?: (event: CustomEvent<unknown>) => void;
13
- onAddClick?: (event: CustomEvent<unknown>) => void;
11
+ onPrevClick?: (event: CustomEvent<void>) => void;
12
+ onNextClick?: (event: CustomEvent<void>) => void;
13
+ onAddClick?: (event: CustomEvent<void>) => void;
14
14
  }
15
15
  export interface Slots {
16
16
  children?: Snippet;
@@ -1,9 +1,9 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {WifiState, AudioState, MicrophoneState, BatteryState, SystemSubMenu} from '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
3
+ export type {VolumeChangeEvent, WifiState, AudioState, MicrophoneState, BatteryState, SystemSubMenu} from '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
- import type {WifiState, AudioState, MicrophoneState, BatteryState, SystemSubMenu} from '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
6
+ import type {VolumeChangeEvent, WifiState, AudioState, MicrophoneState, BatteryState, SystemSubMenu} from '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
7
7
  import type { Snippet } from 'svelte';
8
8
 
9
9
  export interface Props {
@@ -22,7 +22,7 @@
22
22
  export interface Events {
23
23
  onWifiClick?: (event: CustomEvent<unknown>) => void;
24
24
  onAudioClick?: (event: CustomEvent<unknown>) => void;
25
- onAudioVolumeChange?: (event: CustomEvent<unknown>) => void;
25
+ onAudioVolumeChange?: (event: VolumeChangeEvent) => void;
26
26
  onMicrophoneClick?: (event: CustomEvent<unknown>) => void;
27
27
  onPushToTalkChange?: (event: CustomEvent<unknown>) => void;
28
28
  onBatteryUsageClick?: (event: CustomEvent<unknown>) => void;
@@ -1,5 +1,5 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
2
- import type { WifiState, AudioState, MicrophoneState, BatteryState, SystemSubMenu } from '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
2
+ import type { VolumeChangeEvent, WifiState, AudioState, MicrophoneState, BatteryState, SystemSubMenu } from '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
3
3
  import type { Snippet } from 'svelte';
4
4
  export interface Props {
5
5
  class?: string;
@@ -17,7 +17,7 @@ export interface Props {
17
17
  export interface Events {
18
18
  onWifiClick?: (event: CustomEvent<unknown>) => void;
19
19
  onAudioClick?: (event: CustomEvent<unknown>) => void;
20
- onAudioVolumeChange?: (event: CustomEvent<unknown>) => void;
20
+ onAudioVolumeChange?: (event: VolumeChangeEvent) => void;
21
21
  onMicrophoneClick?: (event: CustomEvent<unknown>) => void;
22
22
  onPushToTalkChange?: (event: CustomEvent<unknown>) => void;
23
23
  onBatteryUsageClick?: (event: CustomEvent<unknown>) => void;
@@ -36,6 +36,7 @@ export interface Slots {
36
36
  }
37
37
  type $$ComponentProps = Props & Events & Slots;
38
38
  declare const ObcSystemMenu: import("svelte").Component<$$ComponentProps, {
39
+ VolumeChangeEvent: typeof VolumeChangeEvent;
39
40
  WifiState: typeof WifiState;
40
41
  AudioState: typeof AudioState;
41
42
  MicrophoneState: typeof MicrophoneState;
@@ -44,7 +44,7 @@ hasClearButton?: boolean;
44
44
  }
45
45
  export interface Events {
46
46
  onInput?: (event: CustomEvent<unknown>) => void;
47
- onChange?: (event: CustomEvent<unknown>) => void;
47
+ onChange?: (event: CustomEvent<{value: string}>) => void;
48
48
  onClear?: (event: CustomEvent<unknown>) => void;
49
49
  onBlur?: (event: CustomEvent<unknown>) => void
50
50
  }
@@ -39,7 +39,9 @@ This is useful to avoid React re-rendering to reset the value. */
39
39
  }
40
40
  export interface Events {
41
41
  onInput?: (event: CustomEvent<unknown>) => void;
42
- onChange?: (event: CustomEvent<unknown>) => void;
42
+ onChange?: (event: CustomEvent<{
43
+ value: string;
44
+ }>) => void;
43
45
  onClear?: (event: CustomEvent<unknown>) => void;
44
46
  onBlur?: (event: CustomEvent<unknown>) => void;
45
47
  }
@@ -1,9 +1,9 @@
1
1
 
2
2
  <script lang="ts">
3
-
3
+ export type {ObcToggleSwitchInputEvent, ObcToggleSwitchChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/toggle-switch/toggle-switch.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/toggle-switch/toggle-switch.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
-
6
+ import type {ObcToggleSwitchInputEvent, ObcToggleSwitchChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/toggle-switch/toggle-switch.js';
7
7
  import type { Snippet } from 'svelte';
8
8
 
9
9
  export interface Props {
@@ -32,8 +32,8 @@ Use to control the toggle state from outside the component. */
32
32
  externalControl?: boolean
33
33
  }
34
34
  export interface Events {
35
- onInput?: (event: CustomEvent<unknown>) => void;
36
- onChange?: (event: CustomEvent<unknown>) => void
35
+ onInput?: (event: ObcToggleSwitchInputEvent) => void;
36
+ onChange?: (event: ObcToggleSwitchChangeEvent) => void
37
37
  }
38
38
  export interface Slots {
39
39
  icon?: Snippet
@@ -1,4 +1,5 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/components/toggle-switch/toggle-switch.js';
2
+ import type { ObcToggleSwitchInputEvent, ObcToggleSwitchChangeEvent } from '@oicl/openbridge-webcomponents/dist/components/toggle-switch/toggle-switch.js';
2
3
  import type { Snippet } from 'svelte';
3
4
  export interface Props {
4
5
  class?: string;
@@ -26,13 +27,16 @@ Use to control the toggle state from outside the component. */
26
27
  externalControl?: boolean;
27
28
  }
28
29
  export interface Events {
29
- onInput?: (event: CustomEvent<unknown>) => void;
30
- onChange?: (event: CustomEvent<unknown>) => void;
30
+ onInput?: (event: ObcToggleSwitchInputEvent) => void;
31
+ onChange?: (event: ObcToggleSwitchChangeEvent) => void;
31
32
  }
32
33
  export interface Slots {
33
34
  icon?: Snippet;
34
35
  }
35
36
  type $$ComponentProps = Props & Events & Slots;
36
- declare const ObcToggleSwitch: import("svelte").Component<$$ComponentProps, {}, "">;
37
+ declare const ObcToggleSwitch: import("svelte").Component<$$ComponentProps, {
38
+ ObcToggleSwitchInputEvent: typeof ObcToggleSwitchInputEvent;
39
+ ObcToggleSwitchChangeEvent: typeof ObcToggleSwitchChangeEvent;
40
+ }, "">;
37
41
  type ObcToggleSwitch = ReturnType<typeof ObcToggleSwitch>;
38
42
  export default ObcToggleSwitch;
@@ -34,7 +34,7 @@ signedInActions?: ObcUserMenuSignedInAction[]
34
34
  }
35
35
  export interface Events {
36
36
  onSignInClick?: (event: CustomEvent<{username: string, password: string}>) => void;
37
- onSignOutClick?: (event: CustomEvent<unknown>) => void;
37
+ onSignOutClick?: (event: CustomEvent<void>) => void;
38
38
  onSignedInActionClick?: (event: CustomEvent<{id: string, label: string}>) => void;
39
39
  onRecentUserClick?: (event: CustomEvent<{initials: string, label: string}>) => void
40
40
  }
@@ -32,7 +32,7 @@ export interface Events {
32
32
  username: string;
33
33
  password: string;
34
34
  }>) => void;
35
- onSignOutClick?: (event: CustomEvent<unknown>) => void;
35
+ onSignOutClick?: (event: CustomEvent<void>) => void;
36
36
  onSignedInActionClick?: (event: CustomEvent<{
37
37
  id: string;
38
38
  label: string;
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
 
4
4
  import '@oicl/openbridge-webcomponents/dist/components/vendor-button/vendor-button.js';
5
- import { setProperties } from "../../util.js";
5
+ import { setProperties, forwardEvents } from "../../util.js";
6
6
 
7
7
  import type { Snippet } from 'svelte';
8
8
 
@@ -19,19 +19,19 @@ This should describe the logo or vendor for screen readers. */
19
19
  alt?: string
20
20
  }
21
21
  export interface Events {
22
-
22
+ onClick?: (event: CustomEvent<unknown>) => void
23
23
  }
24
24
  export interface Slots {
25
25
  children?: Snippet
26
26
  }
27
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
27
+ const {onClick, class: className, style, children, ...props} = $props<Props & Events & Slots>();
28
28
 
29
29
  </script>
30
30
  <obc-vendor-button
31
31
  use:setProperties={props}
32
32
  class={className}
33
33
  style={style}
34
- >
34
+ use:forwardEvents={{'click': onClick}} >
35
35
 
36
36
  {#if children}
37
37
  {@render children()}
@@ -13,6 +13,7 @@ This should describe the logo or vendor for screen readers. */
13
13
  alt?: string;
14
14
  }
15
15
  export interface Events {
16
+ onClick?: (event: CustomEvent<unknown>) => void;
16
17
  }
17
18
  export interface Slots {
18
19
  children?: Snippet;
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
  export type {IntegrationFleetButtonReadout} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-fleet-button/integration-fleet-button.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-fleet-button/integration-fleet-button.js';
5
- import { setProperties } from "../../util.js";
5
+ import { setProperties, forwardEvents } from "../../util.js";
6
6
  import type {IntegrationFleetButtonReadout} from '@oicl/openbridge-webcomponents/dist/integration-systems/integration-fleet-button/integration-fleet-button.js';
7
7
  import type { Snippet } from 'svelte';
8
8
 
@@ -18,19 +18,19 @@
18
18
  showAlerts?: boolean
19
19
  }
20
20
  export interface Events {
21
-
21
+ onClick?: (event: CustomEvent<unknown>) => void
22
22
  }
23
23
  export interface Slots {
24
24
  alertTopicIcon?: Snippet
25
25
  }
26
- const { class: className, style, alertTopicIcon, ...props} = $props<Props & Events & Slots>();
26
+ const {onClick, class: className, style, alertTopicIcon, ...props} = $props<Props & Events & Slots>();
27
27
 
28
28
  </script>
29
29
  <obc-integration-fleet-button
30
30
  use:setProperties={props}
31
31
  class={className}
32
32
  style={style}
33
- >
33
+ use:forwardEvents={{'click': onClick}} >
34
34
 
35
35
  {#if alertTopicIcon}
36
36
  <div slot="alert-topic-icon">
@@ -17,6 +17,7 @@ export interface Props {
17
17
  showAlerts?: boolean;
18
18
  }
19
19
  export interface Events {
20
+ onClick?: (event: CustomEvent<unknown>) => void;
20
21
  }
21
22
  export interface Slots {
22
23
  alertTopicIcon?: Snippet;
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
 
4
4
  import '@oicl/openbridge-webcomponents/dist/integration-systems/integration-tabs/integration-tabs.js';
5
- import { setProperties } from "../../util.js";
5
+ import { setProperties, forwardEvents } from "../../util.js";
6
6
 
7
7
  import type { Snippet } from 'svelte';
8
8
 
@@ -12,19 +12,19 @@
12
12
  selected?: boolean
13
13
  }
14
14
  export interface Events {
15
-
15
+ onClick?: (event: CustomEvent<unknown>) => void
16
16
  }
17
17
  export interface Slots {
18
18
  children?: Snippet
19
19
  }
20
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
20
+ const {onClick, class: className, style, children, ...props} = $props<Props & Events & Slots>();
21
21
 
22
22
  </script>
23
23
  <obc-integration-tabs
24
24
  use:setProperties={props}
25
25
  class={className}
26
26
  style={style}
27
- >
27
+ use:forwardEvents={{'click': onClick}} >
28
28
 
29
29
  {#if children}
30
30
  {@render children()}
@@ -6,6 +6,7 @@ export interface Props {
6
6
  selected?: boolean;
7
7
  }
8
8
  export interface Events {
9
+ onClick?: (event: CustomEvent<unknown>) => void;
9
10
  }
10
11
  export interface Slots {
11
12
  children?: Snippet;
@@ -5,7 +5,7 @@ export type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-w
5
5
  export type {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
6
6
  export type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
7
7
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
8
- import { setProperties } from "../../util.js";
8
+ import { setProperties, forwardEvents } from "../../util.js";
9
9
  import type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
10
10
  import type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
11
11
  import type {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
@@ -61,7 +61,7 @@ are visible. Off by default. */
61
61
  showDebugOverlay?: boolean
62
62
  }
63
63
  export interface Events {
64
-
64
+ onClick?: (event: CustomEvent<unknown>) => void
65
65
  }
66
66
  export interface Slots {
67
67
  leadingIcon?: Snippet;
@@ -69,14 +69,14 @@ showDebugOverlay?: boolean
69
69
  setpointIcon?: Snippet;
70
70
  adviceIcon?: Snippet
71
71
  }
72
- const { class: className, style, leadingIcon, valueIcon, setpointIcon, adviceIcon, ...props} = $props<Props & Events & Slots>();
72
+ const {onClick, class: className, style, leadingIcon, valueIcon, setpointIcon, adviceIcon, ...props} = $props<Props & Events & Slots>();
73
73
 
74
74
  </script>
75
75
  <obc-readout-list-item
76
76
  use:setProperties={props}
77
77
  class={className}
78
78
  style={style}
79
- >
79
+ use:forwardEvents={{'click': onClick}} >
80
80
 
81
81
  {#if leadingIcon}
82
82
  <div slot="leading-icon">
@@ -53,6 +53,7 @@ are visible. Off by default. */
53
53
  showDebugOverlay?: boolean;
54
54
  }
55
55
  export interface Events {
56
+ onClick?: (event: CustomEvent<unknown>) => void;
56
57
  }
57
58
  export interface Slots {
58
59
  leadingIcon?: Snippet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.115",
3
+ "version": "2.0.0-next.117",
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.114"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.116"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"