@oicl/openbridge-webcomponents-svelte 2.0.0-next.113 → 2.0.0-next.115
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/ar/poi/ObcPoiAton.svelte +2 -2
- package/dist/ar/poi/ObcPoiData.svelte +2 -2
- package/dist/ar/poi/ObcPoiVessel.svelte +2 -2
- package/dist/ar/poi-card/ObcPoiCard.svelte +2 -2
- package/dist/ar/poi-card-header/ObcPoiCardHeader.svelte +2 -2
- package/dist/ar/poi-group/ObcPoiGroup.svelte +2 -3
- package/dist/ar/poi-layer/ObcPoiLayer.svelte +2 -3
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte +2 -2
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte +2 -2
- package/dist/building-blocks/instrument-radial/ObcInstrumentRadial.svelte +2 -2
- package/dist/components/accordion-card/ObcAccordionCard.svelte +2 -2
- package/dist/components/accordion-item/ObcAccordionItem.svelte +2 -2
- package/dist/components/advice-button/ObcAdviceButton.svelte +2 -2
- package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte +2 -4
- package/dist/components/advice-menu-item/ObcAdviceMenuItem.svelte +2 -4
- package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte +2 -3
- package/dist/components/alert-button/ObcAlertButton.svelte +2 -3
- package/dist/components/alert-floating-item/ObcAlertFloatingItem.svelte +2 -4
- package/dist/components/alert-list-details/ObcAlertListDetails.svelte +2 -3
- package/dist/components/alert-menu/ObcAlertMenu.svelte +2 -4
- package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte +2 -4
- package/dist/components/app-menu/ObcAppMenu.svelte +2 -2
- package/dist/components/attachment-list-item/ObcAttachmentListItem.svelte +2 -2
- package/dist/components/audio-recording-item/ObcAudioRecordingItem.svelte +2 -2
- package/dist/components/breadcrumb/ObcBreadcrumb.svelte +2 -2
- package/dist/components/brilliance-menu/ObcBrillianceMenu.svelte +2 -6
- package/dist/components/button/ObcButton.svelte +2 -2
- package/dist/components/calendar/ObcCalendar.svelte +2 -6
- package/dist/components/check-button/ObcCheckButton.svelte +2 -2
- package/dist/components/checkbox/ObcCheckbox.svelte +2 -3
- package/dist/components/checkbox-item/ObcCheckboxItem.svelte +2 -2
- package/dist/components/command-menu/ObcCommandMenu.svelte +2 -2
- package/dist/components/communication-table/ObcCommunicationTable.svelte +2 -2
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte +2 -4
- package/dist/components/date-item/ObcDateItem.svelte +2 -2
- package/dist/components/dropdown-button/ObcDropdownButton.svelte +2 -3
- package/dist/components/elevated-card/ObcElevatedCard.svelte +2 -2
- package/dist/components/elevated-card-radio/ObcElevatedCardRadio.svelte +2 -2
- package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte +2 -2
- package/dist/components/event-item/ObcEventItem.svelte +2 -2
- package/dist/components/filter-chip/ObcFilterChip.svelte +2 -2
- package/dist/components/floating-item/ObcFloatingItem.svelte +2 -4
- package/dist/components/form-footer-container/ObcFormFooterContainer.svelte +2 -2
- package/dist/components/form-group/ObcFormGroup.svelte +2 -2
- package/dist/components/form-item/ObcFormItem.svelte +2 -2
- package/dist/components/icon-button/ObcIconButton.svelte +2 -2
- package/dist/components/icon-check-button/ObcIconCheckButton.svelte +2 -2
- package/dist/components/input-chip/ObcInputChip.svelte +2 -2
- package/dist/components/keyboard-full/ObcKeyboardFull.svelte +2 -4
- package/dist/components/keyboard-numeric/ObcKeyboardNumeric.svelte +2 -4
- package/dist/components/menu-button/ObcMenuButton.svelte +2 -5
- package/dist/components/message-menu-item/ObcMessageMenuItem.svelte +2 -4
- package/dist/components/modal-window/ObcModalWindow.svelte +2 -5
- package/dist/components/navigation-item/ObcNavigationItem.svelte +2 -2
- package/dist/components/navigation-item-group/ObcNavigationItemGroup.svelte +2 -2
- package/dist/components/notification-button/ObcNotificationButton.svelte +2 -2
- package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte +2 -4
- package/dist/components/notification-menu-item/ObcNotificationMenuItem.svelte +2 -4
- package/dist/components/notification-message-item/ObcNotificationMessageItem.svelte +2 -3
- package/dist/components/number-input-field/ObcNumberInputField.svelte +2 -3
- package/dist/components/pagination/ObcPagination.svelte +2 -4
- package/dist/components/pivot-item/ObcPivotItem.svelte +2 -2
- package/dist/components/pivot-item-group/ObcPivotItemGroup.svelte +2 -2
- package/dist/components/progress-button/ObcProgressButton.svelte +2 -2
- package/dist/components/radio/ObcRadio.svelte +2 -2
- package/dist/components/rich-button/ObcRichButton.svelte +2 -2
- package/dist/components/sequence-modal/ObcSequenceModal.svelte +2 -2
- package/dist/components/sequence-toolbar/ObcSequenceToolbar.svelte +2 -4
- package/dist/components/slide-button/ObcSlideButton.svelte +2 -2
- package/dist/components/slider/ObcSlider.svelte +2 -3
- package/dist/components/slider-double/ObcSliderDouble.svelte +2 -3
- package/dist/components/split-button/ObcSplitButton.svelte +2 -3
- package/dist/components/start-stop-switch/ObcStartStopSwitch.svelte +2 -2
- package/dist/components/stepper-box/ObcStepperBox.svelte +2 -5
- package/dist/components/system-button/ObcSystemButton.svelte +2 -6
- package/dist/components/system-menu/ObcSystemMenu.svelte +2 -16
- package/dist/components/tab-item/ObcTabItem.svelte +2 -3
- package/dist/components/tab-row/ObcTabRow.svelte +2 -4
- package/dist/components/tabbed-card/ObcTabbedCard.svelte +2 -2
- package/dist/components/table/ObcTable.svelte +2 -6
- package/dist/components/text-input-field/ObcTextInputField.svelte +2 -5
- package/dist/components/textarea-field/ObcTextareaField.svelte +2 -11
- package/dist/components/title-container/ObcTitleContainer.svelte +2 -2
- package/dist/components/toggle-button-group/ObcToggleButtonGroup.svelte +2 -3
- package/dist/components/toggle-button-option/ObcToggleButtonOption.svelte +2 -2
- package/dist/components/toggle-button-three-state/ObcToggleButtonThreeState.svelte +2 -2
- package/dist/components/toggle-button-vertical-group/ObcToggleButtonVerticalGroup.svelte +2 -3
- package/dist/components/toggle-button-vertical-option/ObcToggleButtonVerticalOption.svelte +2 -2
- package/dist/components/toggle-switch/ObcToggleSwitch.svelte +2 -3
- package/dist/components/toggletip/ObcToggletip.svelte +2 -3
- package/dist/components/top-bar/ObcTopBar.svelte +2 -11
- package/dist/components/topbar-message-item/ObcTopbarMessageItem.svelte +2 -3
- package/dist/components/tree-navigation-group/ObcTreeNavigationGroup.svelte +2 -2
- package/dist/components/tree-navigation-item/ObcTreeNavigationItem.svelte +2 -3
- package/dist/components/user-menu/ObcUserMenu.svelte +2 -5
- package/dist/integration-systems/integration-bar/ObcIntegrationBar.svelte +2 -9
- package/dist/integration-systems/integration-bar-dropdown/ObcIntegrationBarDropdown.svelte +2 -6
- package/dist/integration-systems/integration-button/ObcIntegrationButton.svelte +2 -2
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte +2 -2
- package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte +2 -2
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte +2 -2
- package/dist/navigation-instruments/readout/ObcReadout.svelte +2 -3
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte +2 -5
- package/dist/util.d.ts +6 -0
- package/dist/util.js +19 -0
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcPivotItemDirection} from '@oicl/openbridge-webcomponents/dist/components/pivot-item/pivot-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/pivot-item-group/pivot-item-group.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcPivotItemDirection} from '@oicl/openbridge-webcomponents/dist/components/pivot-item/pivot-item.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -33,7 +33,7 @@ allowDeselect?: boolean
|
|
|
33
33
|
use:setProperties={props}
|
|
34
34
|
class={className}
|
|
35
35
|
style={style}
|
|
36
|
-
|
|
36
|
+
use:forwardEvents={{'change': onChange}} >
|
|
37
37
|
|
|
38
38
|
{#if children}
|
|
39
39
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ProgressButtonClickEvent, ProgressButtonType, ButtonStyle, ProgressMode} from '@oicl/openbridge-webcomponents/dist/components/progress-button/progress-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/progress-button/progress-button.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ProgressButtonClickEvent, ProgressButtonType, ButtonStyle, ProgressMode} from '@oicl/openbridge-webcomponents/dist/components/progress-button/progress-button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -49,7 +49,7 @@ showLabel?: boolean
|
|
|
49
49
|
use:setProperties={props}
|
|
50
50
|
class={className}
|
|
51
51
|
style={style}
|
|
52
|
-
|
|
52
|
+
use:forwardEvents={{'obc-click': onObcClick}} >
|
|
53
53
|
|
|
54
54
|
{#if leadingIcon}
|
|
55
55
|
<div slot="leading-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/radio/radio.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
|
|
|
@@ -42,7 +42,7 @@ inputId?: string
|
|
|
42
42
|
use:setProperties={props}
|
|
43
43
|
class={className}
|
|
44
44
|
style={style}
|
|
45
|
-
|
|
45
|
+
use:forwardEvents={{'change': onChange}} >
|
|
46
46
|
|
|
47
47
|
{#if children}
|
|
48
48
|
{@render children()}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {HTMLTemplateResult} from 'lit';
|
|
4
4
|
export type {RichButtonDirection} from '@oicl/openbridge-webcomponents/dist/components/rich-button/rich-button.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/rich-button/rich-button.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {HTMLTemplateResult} from 'lit';
|
|
8
8
|
import type {RichButtonDirection} from '@oicl/openbridge-webcomponents/dist/components/rich-button/rich-button.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -42,7 +42,7 @@ disabled?: boolean;
|
|
|
42
42
|
use:setProperties={props}
|
|
43
43
|
class={className}
|
|
44
44
|
style={style}
|
|
45
|
-
|
|
45
|
+
use:forwardEvents={{'rich-button-click': onRichButtonClick}} >
|
|
46
46
|
|
|
47
47
|
{#if leadingIcon}
|
|
48
48
|
<div slot="leading-icon">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {ObcSequenceModalType} from '@oicl/openbridge-webcomponents/dist/components/sequence-modal/sequence-modal.js';
|
|
4
4
|
export type {SequenceValue} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/sequence-modal/sequence-modal.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {ObcSequenceModalType} from '@oicl/openbridge-webcomponents/dist/components/sequence-modal/sequence-modal.js';
|
|
8
8
|
import type {SequenceValue} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -36,7 +36,7 @@ import type {SequenceValue} from '@oicl/openbridge-webcomponents/dist/components
|
|
|
36
36
|
use:setProperties={props}
|
|
37
37
|
class={className}
|
|
38
38
|
style={style}
|
|
39
|
-
|
|
39
|
+
use:forwardEvents={{'close-click': onCloseClick}} >
|
|
40
40
|
|
|
41
41
|
{#if actions}
|
|
42
42
|
<div slot="actions">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {SequenceToolbarType} from '@oicl/openbridge-webcomponents/dist/components/sequence-toolbar/sequence-toolbar.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/sequence-toolbar/sequence-toolbar.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {SequenceToolbarType} from '@oicl/openbridge-webcomponents/dist/components/sequence-toolbar/sequence-toolbar.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -31,9 +31,7 @@
|
|
|
31
31
|
use:setProperties={props}
|
|
32
32
|
class={className}
|
|
33
33
|
style={style}
|
|
34
|
-
|
|
35
|
-
onnext-click={onNextClick}
|
|
36
|
-
onadd-click={onAddClick} >
|
|
34
|
+
use:forwardEvents={{'prev-click': onPrevClick, 'next-click': onNextClick, 'add-click': onAddClick}} >
|
|
37
35
|
|
|
38
36
|
{#if children}
|
|
39
37
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcSlideButtonSlideEvent} from '@oicl/openbridge-webcomponents/dist/components/slide-button/slide-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/slide-button/slide-button.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcSlideButtonSlideEvent} from '@oicl/openbridge-webcomponents/dist/components/slide-button/slide-button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -32,7 +32,7 @@ autoDisable?: boolean
|
|
|
32
32
|
use:setProperties={props}
|
|
33
33
|
class={className}
|
|
34
34
|
style={style}
|
|
35
|
-
|
|
35
|
+
use:forwardEvents={{'slide': onSlide}} >
|
|
36
36
|
|
|
37
37
|
{#if leadingIcon}
|
|
38
38
|
<div slot="leading-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcSliderValueEvent, ObcSliderChangeEvent, ObcSliderVariant} from '@oicl/openbridge-webcomponents/dist/components/slider/slider.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/slider/slider.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcSliderValueEvent, ObcSliderChangeEvent, ObcSliderVariant} from '@oicl/openbridge-webcomponents/dist/components/slider/slider.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -72,8 +72,7 @@ seekingSpeed?: number;
|
|
|
72
72
|
use:setProperties={props}
|
|
73
73
|
class={className}
|
|
74
74
|
style={style}
|
|
75
|
-
|
|
76
|
-
onchange={onChange} >
|
|
75
|
+
use:forwardEvents={{'value': onValue, 'change': onChange}} >
|
|
77
76
|
|
|
78
77
|
{#if iconLeft}
|
|
79
78
|
<div slot="icon-left">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcSliderDoubleValueEvent, ObcSliderDoubleChangeEvent, ObcSliderDoubleVariant} from '@oicl/openbridge-webcomponents/dist/components/slider-double/slider-double.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/slider-double/slider-double.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcSliderDoubleValueEvent, ObcSliderDoubleChangeEvent, ObcSliderDoubleVariant} from '@oicl/openbridge-webcomponents/dist/components/slider-double/slider-double.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -80,8 +80,7 @@ hugContainer?: boolean
|
|
|
80
80
|
use:setProperties={props}
|
|
81
81
|
class={className}
|
|
82
82
|
style={style}
|
|
83
|
-
|
|
84
|
-
onchange={onChange} >
|
|
83
|
+
use:forwardEvents={{'value': onValue, 'change': onChange}} >
|
|
85
84
|
|
|
86
85
|
{#if leftReadout}
|
|
87
86
|
<div slot="left-readout">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {ObcSplitButtonClickEvent, ObcSplitButtonChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
4
4
|
export type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {ObcSplitButtonClickEvent, ObcSplitButtonChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
8
8
|
import type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -68,8 +68,7 @@ columnGroups?: ColumnGroup[]
|
|
|
68
68
|
use:setProperties={props}
|
|
69
69
|
class={className}
|
|
70
70
|
style={style}
|
|
71
|
-
|
|
72
|
-
onchange={onChange} >
|
|
71
|
+
use:forwardEvents={{'click': onClick, 'change': onChange}} >
|
|
73
72
|
|
|
74
73
|
{#if icon}
|
|
75
74
|
<div slot="icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcStartStopSwitchChangeEvent, StartStopSwitchVariant, StartStopSwitchSize} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcStartStopSwitchChangeEvent, StartStopSwitchVariant, StartStopSwitchSize} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -81,7 +81,7 @@ description?: string
|
|
|
81
81
|
use:setProperties={props}
|
|
82
82
|
class={className}
|
|
83
83
|
style={style}
|
|
84
|
-
|
|
84
|
+
use:forwardEvents={{'change': onChange}} >
|
|
85
85
|
|
|
86
86
|
{#if checkedStateIcon}
|
|
87
87
|
<div slot="checked-state-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcStepperBoxType} from '@oicl/openbridge-webcomponents/dist/components/stepper-box/stepper-box.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/stepper-box/stepper-box.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcStepperBoxType} from '@oicl/openbridge-webcomponents/dist/components/stepper-box/stepper-box.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -54,10 +54,7 @@ readonly?: boolean
|
|
|
54
54
|
use:setProperties={props}
|
|
55
55
|
class={className}
|
|
56
56
|
style={style}
|
|
57
|
-
|
|
58
|
-
onup={onUp}
|
|
59
|
-
oninput={onInput}
|
|
60
|
-
onchange={onChange} >
|
|
57
|
+
use:forwardEvents={{'down': onDown, 'up': onUp, 'input': onInput, 'change': onChange}} >
|
|
61
58
|
|
|
62
59
|
{#if children}
|
|
63
60
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {SystemState, SystemButtonVariant, ActivePanel} from '@oicl/openbridge-webcomponents/dist/components/system-button/system-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/system-button/system-button.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {SystemState, SystemButtonVariant, ActivePanel} from '@oicl/openbridge-webcomponents/dist/components/system-button/system-button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -48,11 +48,7 @@ activePanel?: ActivePanel | null
|
|
|
48
48
|
use:setProperties={props}
|
|
49
49
|
class={className}
|
|
50
50
|
style={style}
|
|
51
|
-
|
|
52
|
-
onsystem-state-change={onSystemStateChange}
|
|
53
|
-
onmicrophone-panel-open={onMicrophonePanelOpen}
|
|
54
|
-
onvolume-panel-open={onVolumePanelOpen}
|
|
55
|
-
onsystem-icons-panel-open={onSystemIconsPanelOpen} >
|
|
51
|
+
use:forwardEvents={{'menu-toggle': onMenuToggle, 'system-state-change': onSystemStateChange, 'microphone-panel-open': onMicrophonePanelOpen, 'volume-panel-open': onVolumePanelOpen, 'system-icons-panel-open': onSystemIconsPanelOpen}} >
|
|
56
52
|
|
|
57
53
|
{#if children}
|
|
58
54
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {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
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {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
|
|
|
@@ -46,21 +46,7 @@
|
|
|
46
46
|
use:setProperties={props}
|
|
47
47
|
class={className}
|
|
48
48
|
style={style}
|
|
49
|
-
|
|
50
|
-
onaudio-click={onAudioClick}
|
|
51
|
-
onaudio-volume-change={onAudioVolumeChange}
|
|
52
|
-
onmicrophone-click={onMicrophoneClick}
|
|
53
|
-
onpush-to-talk-change={onPushToTalkChange}
|
|
54
|
-
onbattery-usage-click={onBatteryUsageClick}
|
|
55
|
-
onbattery-saving-mode-change={onBatterySavingModeChange}
|
|
56
|
-
onbattery-mode-change={onBatteryModeChange}
|
|
57
|
-
onwifi-network-change={onWifiNetworkChange}
|
|
58
|
-
onaudio-output-change={onAudioOutputChange}
|
|
59
|
-
onmicrophone-input-change={onMicrophoneInputChange}
|
|
60
|
-
onsettings-click={onSettingsClick}
|
|
61
|
-
onto-sub-menu-click={onToSubMenuClick}
|
|
62
|
-
onwifi-options-click={onWifiOptionsClick}
|
|
63
|
-
onwifi-disconnect-click={onWifiDisconnectClick} >
|
|
49
|
+
use:forwardEvents={{'wifi-click': onWifiClick, 'audio-click': onAudioClick, 'audio-volume-change': onAudioVolumeChange, 'microphone-click': onMicrophoneClick, 'push-to-talk-change': onPushToTalkChange, 'battery-usage-click': onBatteryUsageClick, 'battery-saving-mode-change': onBatterySavingModeChange, 'battery-mode-change': onBatteryModeChange, 'wifi-network-change': onWifiNetworkChange, 'audio-output-change': onAudioOutputChange, 'microphone-input-change': onMicrophoneInputChange, 'settings-click': onSettingsClick, 'to-sub-menu-click': onToSubMenuClick, 'wifi-options-click': onWifiOptionsClick, 'wifi-disconnect-click': onWifiDisconnectClick}} >
|
|
64
50
|
|
|
65
51
|
{#if batteryStatus}
|
|
66
52
|
<div slot="battery-status">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {TabItemBadge} from '@oicl/openbridge-webcomponents/dist/components/tab-item/tab-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/tab-item/tab-item.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {TabItemBadge} from '@oicl/openbridge-webcomponents/dist/components/tab-item/tab-item.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -98,8 +98,7 @@ disabled?: boolean;
|
|
|
98
98
|
use:setProperties={props}
|
|
99
99
|
class={className}
|
|
100
100
|
style={style}
|
|
101
|
-
|
|
102
|
-
ontab-close={onTabClose} >
|
|
101
|
+
use:forwardEvents={{'tab-click': onTabClick, 'tab-close': onTabClose}} >
|
|
103
102
|
|
|
104
103
|
{#if leadingIcon}
|
|
105
104
|
<div slot="leading-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {TabData} from '@oicl/openbridge-webcomponents/dist/components/tab-row/tab-row.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/tab-row/tab-row.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {TabData} from '@oicl/openbridge-webcomponents/dist/components/tab-row/tab-row.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -63,9 +63,7 @@ hasAddNewTab?: boolean
|
|
|
63
63
|
use:setProperties={props}
|
|
64
64
|
class={className}
|
|
65
65
|
style={style}
|
|
66
|
-
|
|
67
|
-
ontab-closed={onTabClosed}
|
|
68
|
-
onadd-new-tab={onAddNewTab} >
|
|
66
|
+
use:forwardEvents={{'tab-selected': onTabSelected, 'tab-closed': onTabClosed, 'add-new-tab': onAddNewTab}} >
|
|
69
67
|
|
|
70
68
|
{#if props.tabs && tabIcon}
|
|
71
69
|
{#each props.tabs as item}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/tabbed-card/tabbed-card.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
|
|
|
@@ -47,7 +47,7 @@ hasTabIcons?: boolean
|
|
|
47
47
|
use:setProperties={props}
|
|
48
48
|
class={className}
|
|
49
49
|
style={style}
|
|
50
|
-
|
|
50
|
+
use:forwardEvents={{'tab-change': onTabChange}} >
|
|
51
51
|
|
|
52
52
|
{#if children}
|
|
53
53
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcTableRowClickEvent, ObcTableCellClickEvent, ObcTableCellCheckboxChangeEvent, ObcTableCellTagClickEvent, ObcTableSelectionChangeEvent, ObcTableRow, ObcTableColumn, ObcTableCellData} from '@oicl/openbridge-webcomponents/dist/components/table/table.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/table/table.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcTableRowClickEvent, ObcTableCellClickEvent, ObcTableCellCheckboxChangeEvent, ObcTableCellTagClickEvent, ObcTableSelectionChangeEvent, ObcTableRow, ObcTableColumn, ObcTableCellData} from '@oicl/openbridge-webcomponents/dist/components/table/table.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -37,11 +37,7 @@
|
|
|
37
37
|
use:setProperties={props}
|
|
38
38
|
class={className}
|
|
39
39
|
style={style}
|
|
40
|
-
|
|
41
|
-
oncell-button-click={onCellButtonClick}
|
|
42
|
-
oncell-checkbox-change={onCellCheckboxChange}
|
|
43
|
-
oncell-tag-click={onCellTagClick}
|
|
44
|
-
onselection-change={onSelectionChange} >
|
|
40
|
+
use:forwardEvents={{'row-click': onRowClick, 'cell-button-click': onCellButtonClick, 'cell-checkbox-change': onCellCheckboxChange, 'cell-tag-click': onCellTagClick, 'selection-change': onSelectionChange}} >
|
|
45
41
|
|
|
46
42
|
{#if children}
|
|
47
43
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {HTMLInputTypeAttribute, ObcTextInputFieldTextAlign, ObcTextInputFieldSize, ObcTextInputFieldPlacement} from '@oicl/openbridge-webcomponents/dist/components/text-input-field/text-input-field.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/text-input-field/text-input-field.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {HTMLInputTypeAttribute, ObcTextInputFieldTextAlign, ObcTextInputFieldSize, ObcTextInputFieldPlacement} from '@oicl/openbridge-webcomponents/dist/components/text-input-field/text-input-field.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -60,10 +60,7 @@ hasClearButton?: boolean;
|
|
|
60
60
|
use:setProperties={props}
|
|
61
61
|
class={className}
|
|
62
62
|
style={style}
|
|
63
|
-
|
|
64
|
-
onchange={onChange}
|
|
65
|
-
onclear={onClear}
|
|
66
|
-
onblur={onBlur} >
|
|
63
|
+
use:forwardEvents={{'input': onInput, 'change': onChange, 'clear': onClear, 'blur': onBlur}} >
|
|
67
64
|
|
|
68
65
|
{#if leadingIcon}
|
|
69
66
|
<div slot="leading-icon">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {VoiceActionDetail, TextareaFieldType, Attachment} from '@oicl/openbridge-webcomponents/dist/components/textarea-field/textarea-field.js';
|
|
4
4
|
export type {AudioRecordingStatus} from '@oicl/openbridge-webcomponents/dist/components/audio-recording-item/audio-recording-item.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/textarea-field/textarea-field.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {VoiceActionDetail, TextareaFieldType, Attachment} from '@oicl/openbridge-webcomponents/dist/components/textarea-field/textarea-field.js';
|
|
8
8
|
import type {AudioRecordingStatus} from '@oicl/openbridge-webcomponents/dist/components/audio-recording-item/audio-recording-item.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -85,16 +85,7 @@ attachments?: Attachment[]
|
|
|
85
85
|
use:setProperties={props}
|
|
86
86
|
class={className}
|
|
87
87
|
style={style}
|
|
88
|
-
|
|
89
|
-
oninput={onInput}
|
|
90
|
-
onblur={onBlur}
|
|
91
|
-
onsend-click={onSendClick}
|
|
92
|
-
onadd-click={onAddClick}
|
|
93
|
-
onscreenshot-click={onScreenshotClick}
|
|
94
|
-
onimage-click={onImageClick}
|
|
95
|
-
onattachment-click={onAttachmentClick}
|
|
96
|
-
onvoice-action={onVoiceAction}
|
|
97
|
-
onattachment-remove={onAttachmentRemove} >
|
|
88
|
+
use:forwardEvents={{'change': onChange, 'input': onInput, 'blur': onBlur, 'send-click': onSendClick, 'add-click': onAddClick, 'screenshot-click': onScreenshotClick, 'image-click': onImageClick, 'attachment-click': onAttachmentClick, 'voice-action': onVoiceAction, 'attachment-remove': onAttachmentRemove}} >
|
|
98
89
|
|
|
99
90
|
{#if leadingIcon}
|
|
100
91
|
<div slot="leading-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcTitleContainerState} from '@oicl/openbridge-webcomponents/dist/components/title-container/title-container.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/title-container/title-container.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcTitleContainerState} from '@oicl/openbridge-webcomponents/dist/components/title-container/title-container.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
use:setProperties={props}
|
|
30
30
|
class={className}
|
|
31
31
|
style={style}
|
|
32
|
-
|
|
32
|
+
use:forwardEvents={{'action-click': onActionClick}} >
|
|
33
33
|
|
|
34
34
|
{#if icon}
|
|
35
35
|
<div slot="icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcToggleButtonOptionType, ObcToggleButtonOptionVariant} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-option/toggle-button-option.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/toggle-button-group/toggle-button-group.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcToggleButtonOptionType, ObcToggleButtonOptionVariant} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-option/toggle-button-option.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -78,8 +78,7 @@ large?: boolean
|
|
|
78
78
|
use:setProperties={props}
|
|
79
79
|
class={className}
|
|
80
80
|
style={style}
|
|
81
|
-
|
|
82
|
-
onchange={onChange} >
|
|
81
|
+
use:forwardEvents={{'value': onValue, 'change': onChange}} >
|
|
83
82
|
|
|
84
83
|
{#if children}
|
|
85
84
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcToggleButtonOptionType, ObcToggleButtonOptionVariant} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-option/toggle-button-option.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/toggle-button-option/toggle-button-option.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcToggleButtonOptionType, ObcToggleButtonOptionVariant} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-option/toggle-button-option.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -45,7 +45,7 @@ large?: boolean
|
|
|
45
45
|
use:setProperties={props}
|
|
46
46
|
class={className}
|
|
47
47
|
style={style}
|
|
48
|
-
|
|
48
|
+
use:forwardEvents={{'selected': onSelected}} >
|
|
49
49
|
|
|
50
50
|
{#if children}
|
|
51
51
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcToggleButtonThreeStateChangeEvent, ObcToggleButtonThreeStateValue} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-three-state/toggle-button-three-state.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/toggle-button-three-state/toggle-button-three-state.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcToggleButtonThreeStateChangeEvent, ObcToggleButtonThreeStateValue} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-three-state/toggle-button-three-state.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -27,7 +27,7 @@ disabled?: boolean
|
|
|
27
27
|
use:setProperties={props}
|
|
28
28
|
class={className}
|
|
29
29
|
style={style}
|
|
30
|
-
|
|
30
|
+
use:forwardEvents={{'change': onChange}} >
|
|
31
31
|
|
|
32
32
|
{#if children}
|
|
33
33
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcToggleButtonVerticalOptionType} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-vertical-option/toggle-button-vertical-option.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/toggle-button-vertical-group/toggle-button-vertical-group.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcToggleButtonVerticalOptionType} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-vertical-option/toggle-button-vertical-option.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -50,8 +50,7 @@ disabled?: boolean
|
|
|
50
50
|
use:setProperties={props}
|
|
51
51
|
class={className}
|
|
52
52
|
style={style}
|
|
53
|
-
|
|
54
|
-
onchange={onChange} >
|
|
53
|
+
use:forwardEvents={{'value': onValue, 'change': onChange}} >
|
|
55
54
|
|
|
56
55
|
{#if children}
|
|
57
56
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcToggleButtonVerticalOptionType, ObcToggleButtonLabelPlacement} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-vertical-option/toggle-button-vertical-option.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/toggle-button-vertical-option/toggle-button-vertical-option.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcToggleButtonVerticalOptionType, ObcToggleButtonLabelPlacement} from '@oicl/openbridge-webcomponents/dist/components/toggle-button-vertical-option/toggle-button-vertical-option.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -45,7 +45,7 @@ labelPlacement?: ObcToggleButtonLabelPlacement
|
|
|
45
45
|
use:setProperties={props}
|
|
46
46
|
class={className}
|
|
47
47
|
style={style}
|
|
48
|
-
|
|
48
|
+
use:forwardEvents={{'selected': onSelected}} >
|
|
49
49
|
|
|
50
50
|
{#if icon}
|
|
51
51
|
<div slot="icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/toggle-switch/toggle-switch.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
|
|
|
@@ -45,8 +45,7 @@ externalControl?: boolean
|
|
|
45
45
|
use:setProperties={props}
|
|
46
46
|
class={className}
|
|
47
47
|
style={style}
|
|
48
|
-
|
|
49
|
-
onchange={onChange} >
|
|
48
|
+
use:forwardEvents={{'input': onInput, 'change': onChange}} >
|
|
50
49
|
|
|
51
50
|
{#if icon}
|
|
52
51
|
<div slot="icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ToggletipVariant} from '@oicl/openbridge-webcomponents/dist/components/toggletip/toggletip.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/toggletip/toggletip.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ToggletipVariant} from '@oicl/openbridge-webcomponents/dist/components/toggletip/toggletip.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -62,8 +62,7 @@ secondaryButtonLabel?: string
|
|
|
62
62
|
use:setProperties={props}
|
|
63
63
|
class={className}
|
|
64
64
|
style={style}
|
|
65
|
-
|
|
66
|
-
onsecondary-action={onSecondaryAction} >
|
|
65
|
+
use:forwardEvents={{'primary-action': onPrimaryAction, 'secondary-action': onSecondaryAction}} >
|
|
67
66
|
|
|
68
67
|
{#if leadingIcon}
|
|
69
68
|
<div slot="leading-icon">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {BreadcrumbClickEvent, BreadcrumbItem} from '@oicl/openbridge-webcomponents/dist/components/breadcrumb/breadcrumb.js';
|
|
4
4
|
export type {ObcTopBarMenuButtonIcon} from '@oicl/openbridge-webcomponents/dist/components/top-bar/top-bar.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/top-bar/top-bar.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {BreadcrumbClickEvent, BreadcrumbItem} from '@oicl/openbridge-webcomponents/dist/components/breadcrumb/breadcrumb.js';
|
|
8
8
|
import type {ObcTopBarMenuButtonIcon} from '@oicl/openbridge-webcomponents/dist/components/top-bar/top-bar.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -86,16 +86,7 @@ breadcrumbItems?: BreadcrumbItem[]
|
|
|
86
86
|
use:setProperties={props}
|
|
87
87
|
class={className}
|
|
88
88
|
style={style}
|
|
89
|
-
|
|
90
|
-
ondimming-button-clicked={onDimmingButtonClicked}
|
|
91
|
-
onapps-button-clicked={onAppsButtonClicked}
|
|
92
|
-
onleft-more-button-clicked={onLeftMoreButtonClicked}
|
|
93
|
-
onuser-button-clicked={onUserButtonClicked}
|
|
94
|
-
onclose={onClose}
|
|
95
|
-
onback={onBack}
|
|
96
|
-
onemergency-brightness-start={onEmergencyBrightnessStart}
|
|
97
|
-
onemergency-brightness-stop={onEmergencyBrightnessStop}
|
|
98
|
-
onbreadcrumb-click={onBreadcrumbClick} >
|
|
89
|
+
use:forwardEvents={{'menu-button-clicked': onMenuButtonClicked, 'dimming-button-clicked': onDimmingButtonClicked, 'apps-button-clicked': onAppsButtonClicked, 'left-more-button-clicked': onLeftMoreButtonClicked, 'user-button-clicked': onUserButtonClicked, 'close': onClose, 'back': onBack, 'emergency-brightness-start': onEmergencyBrightnessStart, 'emergency-brightness-stop': onEmergencyBrightnessStop, 'breadcrumb-click': onBreadcrumbClick}} >
|
|
99
90
|
|
|
100
91
|
{#if appIcon}
|
|
101
92
|
<div slot="app-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcTopbarMessageItemType, ObcTopbarMessageItemSize} from '@oicl/openbridge-webcomponents/dist/components/topbar-message-item/topbar-message-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/topbar-message-item/topbar-message-item.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcTopbarMessageItemType, ObcTopbarMessageItemSize} from '@oicl/openbridge-webcomponents/dist/components/topbar-message-item/topbar-message-item.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -58,8 +58,7 @@ hasSecondaryIcon?: boolean
|
|
|
58
58
|
use:setProperties={props}
|
|
59
59
|
class={className}
|
|
60
60
|
style={style}
|
|
61
|
-
|
|
62
|
-
onaction-click={onActionClick} >
|
|
61
|
+
use:forwardEvents={{'message-click': onMessageClick, 'action-click': onActionClick}} >
|
|
63
62
|
|
|
64
63
|
{#if primaryIcon}
|
|
65
64
|
<div slot="primary-icon">
|