@oicl/openbridge-webcomponents-svelte 2.0.0-next.113 → 2.0.0-next.114
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
|
@@ -6,7 +6,7 @@ export type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webco
|
|
|
6
6
|
export type {ObcPoiObjectAtonType, ObcPoiObjectAtonStyle} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-aton.js';
|
|
7
7
|
export type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
8
8
|
import '@oicl/openbridge-webcomponents/dist/ar/poi/poi-aton.js';
|
|
9
|
-
import { setProperties } from "../../util.js";
|
|
9
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
10
10
|
import type {ObcPoiType, ObcPoiValue, ObcPoiState} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
|
|
11
11
|
import type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
12
12
|
import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
@@ -59,7 +59,7 @@ import type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi
|
|
|
59
59
|
use:setProperties={props}
|
|
60
60
|
class={className}
|
|
61
61
|
style={style}
|
|
62
|
-
|
|
62
|
+
use:forwardEvents={{'obc-poi-data-layout-change': onObcPoiDataLayoutChange}} >
|
|
63
63
|
|
|
64
64
|
{#if children}
|
|
65
65
|
{@render children()}
|
|
@@ -5,7 +5,7 @@ export type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webc
|
|
|
5
5
|
export type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
6
6
|
export type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/ar/poi/poi-data.js';
|
|
8
|
-
import { setProperties } from "../../util.js";
|
|
8
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
9
9
|
import type {ObcPoiType, ObcPoiValue, ObcPoiState} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
|
|
10
10
|
import type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
11
11
|
import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
@@ -56,7 +56,7 @@ import type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcom
|
|
|
56
56
|
use:setProperties={props}
|
|
57
57
|
class={className}
|
|
58
58
|
style={style}
|
|
59
|
-
|
|
59
|
+
use:forwardEvents={{'obc-poi-data-layout-change': onObcPoiDataLayoutChange}} >
|
|
60
60
|
|
|
61
61
|
{#if children}
|
|
62
62
|
{@render children()}
|
|
@@ -5,7 +5,7 @@ export type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webc
|
|
|
5
5
|
export type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
6
6
|
export type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVesselState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-vessel.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/ar/poi/poi-vessel.js';
|
|
8
|
-
import { setProperties } from "../../util.js";
|
|
8
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
9
9
|
import type {ObcPoiType, ObcPoiValue, ObcPoiState} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
|
|
10
10
|
import type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
11
11
|
import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
@@ -59,7 +59,7 @@ import type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVessel
|
|
|
59
59
|
use:setProperties={props}
|
|
60
60
|
class={className}
|
|
61
61
|
style={style}
|
|
62
|
-
|
|
62
|
+
use:forwardEvents={{'obc-poi-data-layout-change': onObcPoiDataLayoutChange}} >
|
|
63
63
|
|
|
64
64
|
{#if children}
|
|
65
65
|
{@render children()}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {PoiCardClickDetail, PointerDirection} from '@oicl/openbridge-webcomponents/dist/ar/poi-card/poi-card.js';
|
|
4
4
|
export type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-card/poi-card.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {PoiCardClickDetail, PointerDirection} from '@oicl/openbridge-webcomponents/dist/ar/poi-card/poi-card.js';
|
|
8
8
|
import type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -48,7 +48,7 @@ hasAlert?: boolean
|
|
|
48
48
|
use:setProperties={props}
|
|
49
49
|
class={className}
|
|
50
50
|
style={style}
|
|
51
|
-
|
|
51
|
+
use:forwardEvents={{'card-click': onCardClick}} >
|
|
52
52
|
|
|
53
53
|
{#if children}
|
|
54
54
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -37,7 +37,7 @@ hasCloseButton?: boolean
|
|
|
37
37
|
use:setProperties={props}
|
|
38
38
|
class={className}
|
|
39
39
|
style={style}
|
|
40
|
-
|
|
40
|
+
use:forwardEvents={{'close-click': onCloseClick}} >
|
|
41
41
|
|
|
42
42
|
{#if leadingIcon}
|
|
43
43
|
<div slot="leading-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-group/poi-group.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
|
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
use:setProperties={props}
|
|
29
29
|
class={className}
|
|
30
30
|
style={style}
|
|
31
|
-
|
|
32
|
-
oncollapse-finished={onCollapseFinished} >
|
|
31
|
+
use:forwardEvents={{'expand': onExpand, 'collapse-finished': onCollapseFinished}} >
|
|
33
32
|
|
|
34
33
|
{#if children}
|
|
35
34
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {OverlapMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {OverlapMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
use:setProperties={props}
|
|
31
31
|
class={className}
|
|
32
32
|
style={style}
|
|
33
|
-
|
|
34
|
-
onlayer-selection-changed={onLayerSelectionChanged} >
|
|
33
|
+
use:forwardEvents={{'layer-resize': onLayerResize, 'layer-selection-changed': onLayerSelectionChanged}} >
|
|
35
34
|
|
|
36
35
|
{#if children}
|
|
37
36
|
{@render children()}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export type {FrameStyle, BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/bar-horizontal/bar-horizontal.js';
|
|
7
|
-
import { setProperties } from "../../util.js";
|
|
7
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
8
8
|
import type {ExternalScaleSide, BarContainerStyle, ScaleType, FillMode, AdvicePosition} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
9
9
|
import type {FrameStyle, BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
10
|
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
@@ -132,7 +132,7 @@ highlightCurrentValue?: boolean
|
|
|
132
132
|
use:setProperties={props}
|
|
133
133
|
class={className}
|
|
134
134
|
style={style}
|
|
135
|
-
|
|
135
|
+
use:forwardEvents={{'scale-dimensions-changed': onScaleDimensionsChanged}} >
|
|
136
136
|
|
|
137
137
|
{#if children}
|
|
138
138
|
{@render children()}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export type {FrameStyle, BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
|
|
7
|
-
import { setProperties } from "../../util.js";
|
|
7
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
8
8
|
import type {ExternalScaleSide, BarContainerStyle, ScaleType, FillMode, AdvicePosition} from '@oicl/openbridge-webcomponents/dist/building-blocks/external-scale/external-scale.js';
|
|
9
9
|
import type {FrameStyle, BorderRadiusPosition, Priority, InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
10
|
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
@@ -132,7 +132,7 @@ highlightCurrentValue?: boolean
|
|
|
132
132
|
use:setProperties={props}
|
|
133
133
|
class={className}
|
|
134
134
|
style={style}
|
|
135
|
-
|
|
135
|
+
use:forwardEvents={{'scale-dimensions-changed': onScaleDimensionsChanged}} >
|
|
136
136
|
|
|
137
137
|
{#if children}
|
|
138
138
|
{@render children()}
|
|
@@ -5,7 +5,7 @@ export type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dis
|
|
|
5
5
|
export type {ObcGaugeRadialType, GaugeRadialAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-radial/instrument-radial.js';
|
|
6
6
|
export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-radial/instrument-radial.js';
|
|
8
|
-
import { setProperties } from "../../util.js";
|
|
8
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
9
9
|
import type {RadialFrame} from '@oicl/openbridge-webcomponents/dist/svghelpers/radial-frame.js';
|
|
10
10
|
import type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
11
11
|
import type {ObcGaugeRadialType, GaugeRadialAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-radial/instrument-radial.js';
|
|
@@ -88,7 +88,7 @@ faceDiameter?: number | undefined
|
|
|
88
88
|
use:setProperties={props}
|
|
89
89
|
class={className}
|
|
90
90
|
style={style}
|
|
91
|
-
|
|
91
|
+
use:forwardEvents={{'frame-changed': onFrameChanged}} >
|
|
92
92
|
|
|
93
93
|
{#if children}
|
|
94
94
|
{@render children()}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
5
5
|
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
|
|
7
|
-
import { setProperties } from "../../util.js";
|
|
7
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
8
8
|
import type {Position, AccordionSize} from '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
|
|
9
9
|
import type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
10
10
|
import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
@@ -68,7 +68,7 @@ alertFrameStatus?: AlertType
|
|
|
68
68
|
use:setProperties={props}
|
|
69
69
|
class={className}
|
|
70
70
|
style={style}
|
|
71
|
-
|
|
71
|
+
use:forwardEvents={{'accordion-toggle': onAccordionToggle}} >
|
|
72
72
|
|
|
73
73
|
{#if leadingIcon}
|
|
74
74
|
<div slot="leading-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/accordion-item/accordion-item.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
|
|
|
@@ -33,7 +33,7 @@ showDivider?: boolean
|
|
|
33
33
|
use:setProperties={props}
|
|
34
34
|
class={className}
|
|
35
35
|
style={style}
|
|
36
|
-
|
|
36
|
+
use:forwardEvents={{'accordion-item-toggle': onAccordionItemToggle}} >
|
|
37
37
|
|
|
38
38
|
{#if expandedContent}
|
|
39
39
|
<div slot="expanded-content">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {AdviceButtonClickEvent, AdviceButtonStyle} from '@oicl/openbridge-webcomponents/dist/components/advice-button/advice-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/advice-button/advice-button.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {AdviceButtonClickEvent, AdviceButtonStyle} from '@oicl/openbridge-webcomponents/dist/components/advice-button/advice-button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -41,7 +41,7 @@ ariaLabel?: string
|
|
|
41
41
|
use:setProperties={props}
|
|
42
42
|
class={className}
|
|
43
43
|
style={style}
|
|
44
|
-
|
|
44
|
+
use:forwardEvents={{'obc-click': onObcClick}} >
|
|
45
45
|
|
|
46
46
|
{#if icon}
|
|
47
47
|
<div slot="icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcFloatingItemType, ObcFloatingItemDirection, ObcFloatingItemLineType} from '@oicl/openbridge-webcomponents/dist/components/floating-item/floating-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/advice-floating-item/advice-floating-item.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcFloatingItemType, ObcFloatingItemDirection, ObcFloatingItemLineType} from '@oicl/openbridge-webcomponents/dist/components/floating-item/floating-item.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -59,9 +59,7 @@ lineType?: ObcFloatingItemLineType
|
|
|
59
59
|
use:setProperties={props}
|
|
60
60
|
class={className}
|
|
61
61
|
style={style}
|
|
62
|
-
|
|
63
|
-
onaction2-click={onAction2Click}
|
|
64
|
-
ondismiss-click={onDismissClick} >
|
|
62
|
+
use:forwardEvents={{'action-click': onActionClick, 'action2-click': onAction2Click, 'dismiss-click': onDismissClick}} >
|
|
65
63
|
|
|
66
64
|
{#if primaryIcon}
|
|
67
65
|
<div slot="primary-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-menu-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/advice-menu-item/advice-menu-item.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-menu-item.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -36,9 +36,7 @@ size?: ObcMessageMenuItemSize;
|
|
|
36
36
|
use:setProperties={props}
|
|
37
37
|
class={className}
|
|
38
38
|
style={style}
|
|
39
|
-
|
|
40
|
-
onsecondary-action-click={onSecondaryActionClick}
|
|
41
|
-
onitem-click={onItemClick} >
|
|
39
|
+
use:forwardEvents={{'primary-action-click': onPrimaryActionClick, 'secondary-action-click': onSecondaryActionClick, 'item-click': onItemClick}} >
|
|
42
40
|
|
|
43
41
|
{#if icon}
|
|
44
42
|
<div slot="icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcAdviceMessageItemType, ObcAdviceMessageItemSize} from '@oicl/openbridge-webcomponents/dist/components/advice-message-item/advice-message-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/advice-message-item/advice-message-item.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcAdviceMessageItemType, ObcAdviceMessageItemSize} from '@oicl/openbridge-webcomponents/dist/components/advice-message-item/advice-message-item.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -71,8 +71,7 @@ emptyText?: string
|
|
|
71
71
|
use:setProperties={props}
|
|
72
72
|
class={className}
|
|
73
73
|
style={style}
|
|
74
|
-
|
|
75
|
-
onaction-click={onActionClick} >
|
|
74
|
+
use:forwardEvents={{'message-click': onMessageClick, 'action-click': onActionClick}} >
|
|
76
75
|
|
|
77
76
|
{#if secondaryIcon}
|
|
78
77
|
<div slot="secondary-icon">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
4
|
export type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
8
8
|
import type {ObcAlertButtonType} from '@oicl/openbridge-webcomponents/dist/components/alert-button/alert-button.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -68,8 +68,7 @@ silenceButtonMinBreakpointPx?: number
|
|
|
68
68
|
use:setProperties={props}
|
|
69
69
|
class={className}
|
|
70
70
|
style={style}
|
|
71
|
-
|
|
72
|
-
onclick-silence={onClickSilence} >
|
|
71
|
+
use:forwardEvents={{'click-alert': onClickAlert, 'click-silence': onClickSilence}} >
|
|
73
72
|
|
|
74
73
|
{#if children}
|
|
75
74
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcFloatingItemType, ObcFloatingItemDirection, ObcFloatingItemLineType} from '@oicl/openbridge-webcomponents/dist/components/floating-item/floating-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/alert-floating-item/alert-floating-item.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcFloatingItemType, ObcFloatingItemDirection, ObcFloatingItemLineType} from '@oicl/openbridge-webcomponents/dist/components/floating-item/floating-item.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -38,9 +38,7 @@
|
|
|
38
38
|
use:setProperties={props}
|
|
39
39
|
class={className}
|
|
40
40
|
style={style}
|
|
41
|
-
|
|
42
|
-
onaction2-click={onAction2Click}
|
|
43
|
-
ondismiss-click={onDismissClick} >
|
|
41
|
+
use:forwardEvents={{'action-click': onActionClick, 'action2-click': onAction2Click, 'dismiss-click': onDismissClick}} >
|
|
44
42
|
|
|
45
43
|
{#if primaryIcon}
|
|
46
44
|
<div slot="primary-icon">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {ObcAckClickEvent, ObcRowClickEvent, AlertListMode} from '@oicl/openbridge-webcomponents/dist/components/alert-list-details/alert-list-details.js';
|
|
4
4
|
export type {Alert} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/alert-list-details/alert-list-details.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {ObcAckClickEvent, ObcRowClickEvent, AlertListMode} from '@oicl/openbridge-webcomponents/dist/components/alert-list-details/alert-list-details.js';
|
|
8
8
|
import type {Alert} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -31,8 +31,7 @@ import type {Alert} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
31
31
|
use:setProperties={props}
|
|
32
32
|
class={className}
|
|
33
33
|
style={style}
|
|
34
|
-
|
|
35
|
-
onrow-click={onRowClick} >
|
|
34
|
+
use:forwardEvents={{'ack-click': onAckClick, 'row-click': onRowClick}} >
|
|
36
35
|
|
|
37
36
|
{#if children}
|
|
38
37
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcAckAllVisibleClickEvent} from '@oicl/openbridge-webcomponents/dist/components/alert-menu/alert-menu.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/alert-menu/alert-menu.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcAckAllVisibleClickEvent} from '@oicl/openbridge-webcomponents/dist/components/alert-menu/alert-menu.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -48,9 +48,7 @@ showAlertListButton?: boolean
|
|
|
48
48
|
use:setProperties={props}
|
|
49
49
|
class={className}
|
|
50
50
|
style={style}
|
|
51
|
-
|
|
52
|
-
onsilence-click={onSilenceClick}
|
|
53
|
-
ongo-to-alert-list-click={onGoToAlertListClick} >
|
|
51
|
+
use:forwardEvents={{'ack-all-visible-click': onAckAllVisibleClick, 'silence-click': onSilenceClick, 'go-to-alert-list-click': onGoToAlertListClick}} >
|
|
54
52
|
|
|
55
53
|
{#if children}
|
|
56
54
|
{@render children()}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {ObcAlertMenuItemStatus, ObcAlertMenuItemActionState} from '@oicl/openbridge-webcomponents/dist/components/alert-menu-item/alert-menu-item.js';
|
|
4
4
|
export type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-menu-item.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/alert-menu-item/alert-menu-item.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {ObcAlertMenuItemStatus, ObcAlertMenuItemActionState} from '@oicl/openbridge-webcomponents/dist/components/alert-menu-item/alert-menu-item.js';
|
|
8
8
|
import type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-menu-item.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -69,9 +69,7 @@ secondaryActionState?: ObcAlertMenuItemActionState
|
|
|
69
69
|
use:setProperties={props}
|
|
70
70
|
class={className}
|
|
71
71
|
style={style}
|
|
72
|
-
|
|
73
|
-
onack-secondary-click={onAckSecondaryClick}
|
|
74
|
-
onitem-click={onItemClick} >
|
|
72
|
+
use:forwardEvents={{'ack-click': onAckClick, 'ack-secondary-click': onAckSecondaryClick, 'item-click': onItemClick}} >
|
|
75
73
|
|
|
76
74
|
{#if alertIcon}
|
|
77
75
|
<div slot="alert-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/app-menu/app-menu.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
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
use:setProperties={props}
|
|
25
25
|
class={className}
|
|
26
26
|
style={style}
|
|
27
|
-
|
|
27
|
+
use:forwardEvents={{'search': onSearch}} >
|
|
28
28
|
|
|
29
29
|
{#if children}
|
|
30
30
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/attachment-list-item/attachment-list-item.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
|
|
|
@@ -49,7 +49,7 @@ disabled?: boolean
|
|
|
49
49
|
use:setProperties={props}
|
|
50
50
|
class={className}
|
|
51
51
|
style={style}
|
|
52
|
-
|
|
52
|
+
use:forwardEvents={{'attachment-item-click': onAttachmentItemClick}} >
|
|
53
53
|
|
|
54
54
|
{#if leadingIcon}
|
|
55
55
|
<div slot="leading-icon">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {AudioRecordingStatus} from '@oicl/openbridge-webcomponents/dist/components/audio-recording-item/audio-recording-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/audio-recording-item/audio-recording-item.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {AudioRecordingStatus} from '@oicl/openbridge-webcomponents/dist/components/audio-recording-item/audio-recording-item.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -37,7 +37,7 @@ enhanced?: boolean
|
|
|
37
37
|
use:setProperties={props}
|
|
38
38
|
class={className}
|
|
39
39
|
style={style}
|
|
40
|
-
|
|
40
|
+
use:forwardEvents={{'status-toggle': onStatusToggle}} >
|
|
41
41
|
|
|
42
42
|
{#if children}
|
|
43
43
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {BreadcrumbClickEvent, BreadcrumbItem} from '@oicl/openbridge-webcomponents/dist/components/breadcrumb/breadcrumb.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/breadcrumb/breadcrumb.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {BreadcrumbClickEvent, BreadcrumbItem} from '@oicl/openbridge-webcomponents/dist/components/breadcrumb/breadcrumb.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -30,7 +30,7 @@ items?: BreadcrumbItem[];
|
|
|
30
30
|
use:setProperties={props}
|
|
31
31
|
class={className}
|
|
32
32
|
style={style}
|
|
33
|
-
|
|
33
|
+
use:forwardEvents={{'breadcrumb-click': onBreadcrumbClick}} >
|
|
34
34
|
|
|
35
35
|
{#if children}
|
|
36
36
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcPaletteChangeEvent, ObcBrightnessChangeEvent, ObcLinkPaletteChangeEvent, ObcLinkBrightnessChangeEvent, ObcPalette, ObcBrillianceMenuVariant, ObcBrillianceInputVariant} from '@oicl/openbridge-webcomponents/dist/components/brilliance-menu/brilliance-menu.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/brilliance-menu/brilliance-menu.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcPaletteChangeEvent, ObcBrightnessChangeEvent, ObcLinkPaletteChangeEvent, ObcLinkBrightnessChangeEvent, ObcPalette, ObcBrillianceMenuVariant, ObcBrillianceInputVariant} from '@oicl/openbridge-webcomponents/dist/components/brilliance-menu/brilliance-menu.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -59,11 +59,7 @@ showScreenControlLink?: boolean
|
|
|
59
59
|
use:setProperties={props}
|
|
60
60
|
class={className}
|
|
61
61
|
style={style}
|
|
62
|
-
|
|
63
|
-
onbrightness-changed={onBrightnessChanged}
|
|
64
|
-
onlink-palette-changed={onLinkPaletteChanged}
|
|
65
|
-
onlink-brightness-changed={onLinkBrightnessChanged}
|
|
66
|
-
onscreen-control-link-clicked={onScreenControlLinkClicked} >
|
|
62
|
+
use:forwardEvents={{'palette-changed': onPaletteChanged, 'brightness-changed': onBrightnessChanged, 'link-palette-changed': onLinkPaletteChanged, 'link-brightness-changed': onLinkBrightnessChanged, 'screen-control-link-clicked': onScreenControlLinkClicked}} >
|
|
67
63
|
|
|
68
64
|
{#if children}
|
|
69
65
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ButtonVariant, segmentPosition} from '@oicl/openbridge-webcomponents/dist/components/button/button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/button/button.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ButtonVariant, segmentPosition} from '@oicl/openbridge-webcomponents/dist/components/button/button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -52,7 +52,7 @@ segmentPosition?: segmentPosition
|
|
|
52
52
|
use:setProperties={props}
|
|
53
53
|
class={className}
|
|
54
54
|
style={style}
|
|
55
|
-
|
|
55
|
+
use:forwardEvents={{'click': onClick}} >
|
|
56
56
|
|
|
57
57
|
{#if children}
|
|
58
58
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {CalendarEvent, CalendarType} from '@oicl/openbridge-webcomponents/dist/components/calendar/calendar-utils.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/calendar/calendar.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {CalendarEvent, CalendarType} from '@oicl/openbridge-webcomponents/dist/components/calendar/calendar-utils.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
|
-
ondate-select={onDateSelect}
|
|
42
|
-
ontoday-click={onTodayClick}
|
|
43
|
-
onnew-event-click={onNewEventClick}
|
|
44
|
-
oncalendar-click={onCalendarClick} >
|
|
40
|
+
use:forwardEvents={{'month-change': onMonthChange, 'date-select': onDateSelect, 'today-click': onTodayClick, 'new-event-click': onNewEventClick, 'calendar-click': onCalendarClick}} >
|
|
45
41
|
|
|
46
42
|
{#if children}
|
|
47
43
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {CheckButtonType, CheckButtonCheckboxAppearance} from '@oicl/openbridge-webcomponents/dist/components/check-button/check-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/check-button/check-button.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {CheckButtonType, CheckButtonCheckboxAppearance} from '@oicl/openbridge-webcomponents/dist/components/check-button/check-button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -54,7 +54,7 @@ checkboxAppearance?: CheckButtonCheckboxAppearance
|
|
|
54
54
|
use:setProperties={props}
|
|
55
55
|
class={className}
|
|
56
56
|
style={style}
|
|
57
|
-
|
|
57
|
+
use:forwardEvents={{'check-button-click': onCheckButtonClick}} >
|
|
58
58
|
|
|
59
59
|
{#if children}
|
|
60
60
|
{@render children()}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ObcCheckboxChangeEvent, CheckboxStatus, CheckboxState} from '@oicl/openbridge-webcomponents/dist/components/checkbox/checkbox.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/checkbox/checkbox.js';
|
|
5
|
-
import { setProperties } from "../../util.js";
|
|
5
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
6
|
import type {ObcCheckboxChangeEvent, CheckboxStatus, CheckboxState} from '@oicl/openbridge-webcomponents/dist/components/checkbox/checkbox.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
@@ -39,8 +39,7 @@ hasHoverEffects?: boolean
|
|
|
39
39
|
use:setProperties={props}
|
|
40
40
|
class={className}
|
|
41
41
|
style={style}
|
|
42
|
-
|
|
43
|
-
ondisabled={onDisabled} >
|
|
42
|
+
use:forwardEvents={{'change': onChange, 'disabled': onDisabled}} >
|
|
44
43
|
|
|
45
44
|
{#if children}
|
|
46
45
|
{@render children()}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type {ObcCheckboxChangeEvent, CheckboxStatus} from '@oicl/openbridge-webcomponents/dist/components/checkbox/checkbox.js';
|
|
4
4
|
export type {ObcCheckboxItemState, ObcCheckboxItemHoverStyle} from '@oicl/openbridge-webcomponents/dist/components/checkbox-item/checkbox-item.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/checkbox-item/checkbox-item.js';
|
|
6
|
-
import { setProperties } from "../../util.js";
|
|
6
|
+
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
7
|
import type {ObcCheckboxChangeEvent, CheckboxStatus} from '@oicl/openbridge-webcomponents/dist/components/checkbox/checkbox.js';
|
|
8
8
|
import type {ObcCheckboxItemState, ObcCheckboxItemHoverStyle} from '@oicl/openbridge-webcomponents/dist/components/checkbox-item/checkbox-item.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
@@ -34,7 +34,7 @@ import type {ObcCheckboxItemState, ObcCheckboxItemHoverStyle} from '@oicl/openbr
|
|
|
34
34
|
use:setProperties={props}
|
|
35
35
|
class={className}
|
|
36
36
|
style={style}
|
|
37
|
-
|
|
37
|
+
use:forwardEvents={{'change': onChange}} >
|
|
38
38
|
|
|
39
39
|
{#if children}
|
|
40
40
|
{@render children()}
|