@oicl/openbridge-webcomponents-svelte 2.0.0-next.150 → 2.0.0-next.152
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/NamedSlot.svelte +26 -0
- package/dist/NamedSlot.svelte.d.ts +11 -0
- package/dist/ar/building-blocks/poi-header/ObcPoiHeader.svelte +2 -3
- package/dist/ar/chart-object-vessel-button/ObcChartObjectVesselButton.svelte +5 -12
- package/dist/ar/poi/ObcPoi.svelte +3 -6
- package/dist/ar/poi/ObcPoiAton.svelte +2 -3
- package/dist/ar/poi/ObcPoiData.svelte +2 -3
- package/dist/ar/poi/ObcPoiVessel.svelte +4 -9
- package/dist/ar/poi-button/ObcPoiButton.svelte +3 -6
- package/dist/ar/poi-button/ObcPoiButtonAton.svelte +3 -6
- package/dist/ar/poi-button/ObcPoiButtonData.svelte +3 -6
- package/dist/ar/poi-button/ObcPoiButtonVessel.svelte +5 -12
- package/dist/ar/poi-card/ObcPoiCard.svelte +3 -6
- package/dist/ar/poi-card-header/ObcPoiCardHeader.svelte +3 -6
- package/dist/ar/poi-controller/ObcPoiController.svelte +3 -6
- package/dist/ar/poi-object/ObcPoiObjectVessel.svelte +3 -6
- package/dist/automation/automation-badge/ObcAutomationBadge.svelte +2 -3
- package/dist/automation/automation-button/ObcAutomationButton.svelte +10 -27
- package/dist/automation/automation-input-modal/ObcAutomationInputModal.svelte +5 -12
- package/dist/automation/automation-tank/ObcAutomationTank.svelte +11 -30
- package/dist/automation/gauge-generator/ObcGaugeGenerator.svelte +3 -6
- package/dist/automation/gauge-motors-and-pumps/ObcGaugeMotorsAndPumps.svelte +3 -6
- package/dist/automation/gauge-valve/ObcGaugeValve.svelte +2 -3
- package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte +6 -15
- package/dist/automation/heat-pump/ObcHeatPump.svelte +6 -15
- package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte +6 -15
- package/dist/automation/indicator-battery/ObcIndicatorBattery.svelte +2 -3
- package/dist/automation/indicator-generator/ObcIndicatorGenerator.svelte +2 -3
- package/dist/automation/indicator-tank-atmospheric/ObcIndicatorTankAtmospheric.svelte +2 -3
- package/dist/automation/transmitter/ObcTransmitter.svelte +2 -3
- package/dist/automation/transmitter-button/ObcTransmitterButton.svelte +2 -3
- package/dist/bars-graphs/area-graph/ObcAreaGraph.svelte +14 -2
- package/dist/bars-graphs/area-graph/ObcAreaGraph.svelte.d.ts +15 -1
- package/dist/bars-graphs/line-graph/ObcLineGraph.svelte +14 -2
- package/dist/bars-graphs/line-graph/ObcLineGraph.svelte.d.ts +15 -1
- package/dist/building-blocks/alert-list/ObcAlertList.svelte +4 -9
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte +6 -0
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte.d.ts +6 -0
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte +6 -0
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte.d.ts +6 -0
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte +14 -2
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +15 -1
- package/dist/building-blocks/readout-block/ObcReadoutBlock.svelte +2 -3
- package/dist/components/accordion-card/ObcAccordionCard.svelte +6 -15
- package/dist/components/accordion-item/ObcAccordionItem.svelte +2 -3
- package/dist/components/advice-button/ObcAdviceButton.svelte +2 -3
- package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte +8 -21
- package/dist/components/advice-menu-item/ObcAdviceMenuItem.svelte +2 -3
- package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte +2 -3
- package/dist/components/alert-button/ObcAlertButton.svelte +4 -2
- package/dist/components/alert-button/ObcAlertButton.svelte.d.ts +4 -1
- package/dist/components/alert-floating-item/ObcAlertFloatingItem.svelte +8 -21
- package/dist/components/alert-frame/ObcAlertFrame.svelte +12 -13
- package/dist/components/alert-frame/ObcAlertFrame.svelte.d.ts +8 -2
- package/dist/components/alert-icon/ObcAlertIcon.svelte +5 -3
- package/dist/components/alert-icon/ObcAlertIcon.svelte.d.ts +4 -1
- package/dist/components/alert-menu/ObcAlertMenu.svelte +4 -9
- package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte +5 -12
- package/dist/components/alert-subsystem-counter/ObcAlertSubsystemCounter.svelte +3 -6
- package/dist/components/app-button/ObcAppButton.svelte +2 -3
- package/dist/components/attachment-list-item/ObcAttachmentListItem.svelte +4 -9
- package/dist/components/badge/ObcBadge.svelte +2 -3
- package/dist/components/button/ObcButton.svelte +3 -6
- package/dist/components/card/ObcCard.svelte +4 -9
- package/dist/components/check-button/ObcCheckButton.svelte +4 -9
- package/dist/components/command-menu/ObcCommandMenu.svelte +10 -27
- package/dist/components/dropdown-button/ObcDropdownButton.svelte +2 -3
- package/dist/components/elevated-card/ObcElevatedCard.svelte +8 -21
- package/dist/components/floating-item/ObcFloatingItem.svelte +9 -24
- package/dist/components/form-container/ObcFormContainer.svelte +4 -9
- package/dist/components/form-group/ObcFormGroup.svelte +3 -6
- package/dist/components/form-item/ObcFormItem.svelte +2 -3
- package/dist/components/icon-button/ObcIconButton.svelte +2 -3
- package/dist/components/icon-check-button/ObcIconCheckButton.svelte +2 -3
- package/dist/components/keyboard-numeric/ObcKeyboardNumeric.svelte +2 -3
- package/dist/components/menu-button/ObcMenuButton.svelte +2 -3
- package/dist/components/message-menu-item/ObcMessageMenuItem.svelte +7 -18
- package/dist/components/modal-window/ObcModalWindow.svelte +7 -18
- package/dist/components/navigation-item/ObcNavigationItem.svelte +3 -6
- package/dist/components/navigation-item-group/ObcNavigationItemGroup.svelte +2 -3
- package/dist/components/navigation-menu/ObcNavigationMenu.svelte +4 -9
- package/dist/components/notification-button/ObcNotificationButton.svelte +2 -3
- package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte +8 -21
- package/dist/components/notification-menu-item/ObcNotificationMenuItem.svelte +2 -3
- package/dist/components/notification-message-item/ObcNotificationMessageItem.svelte +2 -3
- package/dist/components/number-input-field/ObcNumberInputField.svelte +4 -9
- package/dist/components/pivot-item/ObcPivotItem.svelte +2 -3
- package/dist/components/progress-bar/ObcProgressBar.svelte +2 -3
- package/dist/components/progress-button/ObcProgressButton.svelte +4 -9
- package/dist/components/rich-button/ObcRichButton.svelte +3 -6
- package/dist/components/sequence-card/ObcSequenceCard.svelte +8 -21
- package/dist/components/sequence-item/ObcSequenceItem.svelte +5 -12
- package/dist/components/sequence-modal/ObcSequenceModal.svelte +2 -3
- package/dist/components/sequence-toolbar/ObcSequenceToolbar.svelte +5 -12
- package/dist/components/slide-button/ObcSlideButton.svelte +3 -6
- package/dist/components/slider/ObcSlider.svelte +3 -6
- package/dist/components/slider-double/ObcSliderDouble.svelte +3 -6
- package/dist/components/split-button/ObcSplitButton.svelte +2 -3
- package/dist/components/start-stop-switch/ObcStartStopSwitch.svelte +7 -18
- package/dist/components/system-menu/ObcSystemMenu.svelte +2 -3
- package/dist/components/tab-item/ObcTabItem.svelte +4 -9
- package/dist/components/tab-row/ObcTabRow.svelte +3 -6
- package/dist/components/tabbed-card/ObcTabbedCard.svelte +16 -45
- package/dist/components/table-header-item/ObcTableHeaderItem.svelte +2 -3
- package/dist/components/text-input-field/ObcTextInputField.svelte +4 -9
- package/dist/components/textarea-field/ObcTextareaField.svelte +2 -3
- package/dist/components/textbox/ObcTextbox.svelte +2 -3
- package/dist/components/title-container/ObcTitleContainer.svelte +5 -12
- package/dist/components/toggle-button-option/ObcToggleButtonOption.svelte +2 -3
- package/dist/components/toggle-button-vertical-option/ObcToggleButtonVerticalOption.svelte +2 -3
- package/dist/components/toggle-switch/ObcToggleSwitch.svelte +2 -3
- package/dist/components/toggletip/ObcToggletip.svelte +4 -9
- package/dist/components/tooltip/ObcTooltip.svelte +2 -3
- package/dist/components/top-bar/ObcTopBar.svelte +5 -12
- package/dist/components/topbar-message-item/ObcTopbarMessageItem.svelte +10 -27
- package/dist/components/tree-navigation-group/ObcTreeNavigationGroup.svelte +2 -3
- package/dist/components/tree-navigation-item/ObcTreeNavigationItem.svelte +2 -3
- package/dist/components/user-button/ObcUserButton.svelte +2 -3
- package/dist/components/user-menu/ObcUserMenu.svelte +2 -3
- package/dist/icons/ObiBipolarTransistor01.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor01.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor02.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor02.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor02Off.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor02Off.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor02On.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor02On.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor03.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor03.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor03Flat.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor03Flat.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor03Off.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor03Off.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor03On.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor03On.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor04.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor04.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor04Flat.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor04Flat.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor04Off.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor04Off.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistor04On.svelte +32 -0
- package/dist/icons/ObiBipolarTransistor04On.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistorOff.svelte +32 -0
- package/dist/icons/ObiBipolarTransistorOff.svelte.d.ts +16 -0
- package/dist/icons/ObiBipolarTransistorOn.svelte +32 -0
- package/dist/icons/ObiBipolarTransistorOn.svelte.d.ts +16 -0
- package/dist/icons/ObiBypass.svelte +32 -0
- package/dist/icons/ObiBypass.svelte.d.ts +16 -0
- package/dist/icons/{ObiChevronTrippleLeft.svelte → ObiChevronTripleLeft.svelte} +3 -3
- package/dist/icons/{ObiChevronTrippleRight.svelte.d.ts → ObiChevronTripleLeft.svelte.d.ts} +4 -4
- package/dist/icons/{ObiChevronTrippleRight.svelte → ObiChevronTripleRight.svelte} +3 -3
- package/dist/icons/{ObiChevronTrippleLeft.svelte.d.ts → ObiChevronTripleRight.svelte.d.ts} +4 -4
- package/dist/icons/ObiHeatPumpBalance.svelte +32 -0
- package/dist/icons/ObiHeatPumpBalance.svelte.d.ts +16 -0
- package/dist/icons/ObiOutput.svelte +32 -0
- package/dist/icons/ObiOutput.svelte.d.ts +16 -0
- package/dist/icons/ObiPhase.svelte +32 -0
- package/dist/icons/ObiPhase.svelte.d.ts +16 -0
- package/dist/icons/ObiSensorWaterDewpoint.svelte +32 -0
- package/dist/icons/ObiSensorWaterDewpoint.svelte.d.ts +16 -0
- package/dist/icons/ObiSensorWaterHumidity.svelte +32 -0
- package/dist/icons/ObiSensorWaterHumidity.svelte.d.ts +16 -0
- package/dist/index.d.ts +22 -2
- package/dist/index.js +22 -2
- package/dist/integration-systems/integration-app-bar/ObcIntegrationAppBar.svelte +2 -3
- package/dist/integration-systems/integration-bar/ObcIntegrationBar.svelte +4 -9
- package/dist/integration-systems/integration-bar-dropdown/ObcIntegrationBarDropdown.svelte +9 -24
- package/dist/integration-systems/integration-button/ObcIntegrationButton.svelte +9 -24
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte +2 -3
- package/dist/integration-systems/integration-fleet-button/ObcIntegrationFleetButton.svelte +2 -3
- package/dist/integration-systems/integration-vessel-menu/ObcIntegrationVesselMenu.svelte +4 -9
- package/dist/integration-systems/integration-vessel-selector/ObcIntegrationVesselSelector.svelte +3 -6
- package/dist/navigation-instruments/gauge-proportional/ObcGaugeProportional.svelte +3 -6
- package/dist/navigation-instruments/gauge-radial-indicator/ObcGaugeRadialIndicator.svelte +2 -3
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte +14 -2
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte.d.ts +15 -1
- package/dist/navigation-instruments/instrument-field/ObcInstrumentField.svelte +2 -3
- package/dist/navigation-instruments/readout/ObcReadout.svelte +6 -15
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte +5 -12
- package/dist/util.d.ts +20 -0
- package/dist/util.js +42 -0
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {ObcNavigationMenuVariant, ObcNavigationMenuFlyoutVariant} from '@oicl/openbridge-webcomponents/dist/components/navigation-menu/navigation-menu.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/navigation-menu/navigation-menu.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcNavigationMenuVariant, ObcNavigationMenuFlyoutVariant} from '@oicl/openbridge-webcomponents/dist/components/navigation-menu/navigation-menu.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -44,20 +45,14 @@ variant?: ObcNavigationMenuVariant;
|
|
|
44
45
|
>
|
|
45
46
|
|
|
46
47
|
{#if main}
|
|
47
|
-
<
|
|
48
|
-
{@render main()}
|
|
49
|
-
</div>
|
|
48
|
+
<NamedSlot name="main" content={main} />
|
|
50
49
|
{/if}
|
|
51
50
|
|
|
52
51
|
{#if footer}
|
|
53
|
-
<
|
|
54
|
-
{@render footer()}
|
|
55
|
-
</div>
|
|
52
|
+
<NamedSlot name="footer" content={footer} />
|
|
56
53
|
{/if}
|
|
57
54
|
|
|
58
55
|
{#if logo}
|
|
59
|
-
<
|
|
60
|
-
{@render logo()}
|
|
61
|
-
</div>
|
|
56
|
+
<NamedSlot name="logo" content={logo} />
|
|
62
57
|
{/if}
|
|
63
58
|
</obc-navigation-menu>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {NotificationButtonClickEvent, NotificationButtonStyle} from '@oicl/openbridge-webcomponents/dist/components/notification-button/notification-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/notification-button/notification-button.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {NotificationButtonClickEvent, NotificationButtonStyle} from '@oicl/openbridge-webcomponents/dist/components/notification-button/notification-button.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -61,8 +62,6 @@ ariaLabel?: string
|
|
|
61
62
|
use:forwardEvents={{'obc-click': onObcClick}} >
|
|
62
63
|
|
|
63
64
|
{#if icon}
|
|
64
|
-
<
|
|
65
|
-
{@render icon()}
|
|
66
|
-
</div>
|
|
65
|
+
<NamedSlot name="icon" content={icon} />
|
|
67
66
|
{/if}
|
|
68
67
|
</obc-notification-button>
|
|
@@ -3,6 +3,7 @@
|
|
|
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/notification-floating-item/notification-floating-item.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcFloatingItemType, ObcFloatingItemDirection, ObcFloatingItemLineType} from '@oicl/openbridge-webcomponents/dist/components/floating-item/floating-item.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -57,44 +58,30 @@ lineType?: ObcFloatingItemLineType
|
|
|
57
58
|
use:forwardEvents={{'action-click': onActionClick, 'action2-click': onAction2Click, 'dismiss-click': onDismissClick}} >
|
|
58
59
|
|
|
59
60
|
{#if primaryIcon}
|
|
60
|
-
<
|
|
61
|
-
{@render primaryIcon()}
|
|
62
|
-
</div>
|
|
61
|
+
<NamedSlot name="primary-icon" content={primaryIcon} />
|
|
63
62
|
{/if}
|
|
64
63
|
|
|
65
64
|
{#if title}
|
|
66
|
-
<
|
|
67
|
-
{@render title()}
|
|
68
|
-
</div>
|
|
65
|
+
<NamedSlot name="title" content={title} />
|
|
69
66
|
{/if}
|
|
70
67
|
|
|
71
68
|
{#if description}
|
|
72
|
-
<
|
|
73
|
-
{@render description()}
|
|
74
|
-
</div>
|
|
69
|
+
<NamedSlot name="description" content={description} />
|
|
75
70
|
{/if}
|
|
76
71
|
|
|
77
72
|
{#if time}
|
|
78
|
-
<
|
|
79
|
-
{@render time()}
|
|
80
|
-
</div>
|
|
73
|
+
<NamedSlot name="time" content={time} />
|
|
81
74
|
{/if}
|
|
82
75
|
|
|
83
76
|
{#if day}
|
|
84
|
-
<
|
|
85
|
-
{@render day()}
|
|
86
|
-
</div>
|
|
77
|
+
<NamedSlot name="day" content={day} />
|
|
87
78
|
{/if}
|
|
88
79
|
|
|
89
80
|
{#if actionSnippet}
|
|
90
|
-
<
|
|
91
|
-
{@render actionSnippet()}
|
|
92
|
-
</div>
|
|
81
|
+
<NamedSlot name="action" content={actionSnippet} />
|
|
93
82
|
{/if}
|
|
94
83
|
|
|
95
84
|
{#if action2Snippet}
|
|
96
|
-
<
|
|
97
|
-
{@render action2Snippet()}
|
|
98
|
-
</div>
|
|
85
|
+
<NamedSlot name="action2" content={action2Snippet} />
|
|
99
86
|
{/if}
|
|
100
87
|
</obc-notification-floating-item>
|
|
@@ -3,6 +3,7 @@
|
|
|
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/notification-menu-item/notification-menu-item.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-menu-item.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -39,8 +40,6 @@
|
|
|
39
40
|
use:forwardEvents={{'primary-action-click': onPrimaryActionClick, 'secondary-action-click': onSecondaryActionClick, 'item-click': onItemClick}} >
|
|
40
41
|
|
|
41
42
|
{#if icon}
|
|
42
|
-
<
|
|
43
|
-
{@render icon()}
|
|
44
|
-
</div>
|
|
43
|
+
<NamedSlot name="icon" content={icon} />
|
|
45
44
|
{/if}
|
|
46
45
|
</obc-notification-menu-item>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {ObcNotificationMessageItemType, ObcNotificationMessageItemSize} from '@oicl/openbridge-webcomponents/dist/components/notification-message-item/notification-message-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/notification-message-item/notification-message-item.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcNotificationMessageItemType, ObcNotificationMessageItemSize} from '@oicl/openbridge-webcomponents/dist/components/notification-message-item/notification-message-item.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -107,8 +108,6 @@ size?: ObcNotificationMessageItemSize;
|
|
|
107
108
|
use:forwardEvents={{'message-click': onMessageClick, 'action-click': onActionClick}} >
|
|
108
109
|
|
|
109
110
|
{#if secondaryIcon}
|
|
110
|
-
<
|
|
111
|
-
{@render secondaryIcon()}
|
|
112
|
-
</div>
|
|
111
|
+
<NamedSlot name="secondary-icon" content={secondaryIcon} />
|
|
113
112
|
{/if}
|
|
114
113
|
</obc-notification-message-item>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {ObcNumberInputFieldTextAlign, ObcNumberInputFieldSize, ObcNumberInputFieldPlacement} from '@oicl/openbridge-webcomponents/dist/components/number-input-field/number-input-field.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/number-input-field/number-input-field.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcNumberInputFieldTextAlign, ObcNumberInputFieldSize, ObcNumberInputFieldPlacement} from '@oicl/openbridge-webcomponents/dist/components/number-input-field/number-input-field.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -73,20 +74,14 @@
|
|
|
73
74
|
use:forwardEvents={{'input': onInput, 'change': onChange}} >
|
|
74
75
|
|
|
75
76
|
{#if leadingIcon}
|
|
76
|
-
<
|
|
77
|
-
{@render leadingIcon()}
|
|
78
|
-
</div>
|
|
77
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
79
78
|
{/if}
|
|
80
79
|
|
|
81
80
|
{#if labelIcon}
|
|
82
|
-
<
|
|
83
|
-
{@render labelIcon()}
|
|
84
|
-
</div>
|
|
81
|
+
<NamedSlot name="label-icon" content={labelIcon} />
|
|
85
82
|
{/if}
|
|
86
83
|
|
|
87
84
|
{#if helperIcon}
|
|
88
|
-
<
|
|
89
|
-
{@render helperIcon()}
|
|
90
|
-
</div>
|
|
85
|
+
<NamedSlot name="helper-icon" content={helperIcon} />
|
|
91
86
|
{/if}
|
|
92
87
|
</obc-number-input-field>
|
|
@@ -3,6 +3,7 @@
|
|
|
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/pivot-item.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcPivotItemDirection} from '@oicl/openbridge-webcomponents/dist/components/pivot-item/pivot-item.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -55,8 +56,6 @@ disabled?: boolean
|
|
|
55
56
|
use:forwardEvents={{'selected': onSelected}} >
|
|
56
57
|
|
|
57
58
|
{#if icon}
|
|
58
|
-
<
|
|
59
|
-
{@render icon()}
|
|
60
|
-
</div>
|
|
59
|
+
<NamedSlot name="icon" content={icon} />
|
|
61
60
|
{/if}
|
|
62
61
|
</obc-pivot-item>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/progress-bar/progress-bar.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ProgressBarType, ProgressBarMode, CircularProgressState} from '@oicl/openbridge-webcomponents/dist/components/progress-bar/progress-bar.js';
|
|
8
9
|
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -91,8 +92,6 @@ showState?: boolean;
|
|
|
91
92
|
>
|
|
92
93
|
|
|
93
94
|
{#if icon}
|
|
94
|
-
<
|
|
95
|
-
{@render icon()}
|
|
96
|
-
</div>
|
|
95
|
+
<NamedSlot name="icon" content={icon} />
|
|
97
96
|
{/if}
|
|
98
97
|
</obc-progress-bar>
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ProgressButtonClickEvent, ProgressButtonType, ButtonStyle, ProgressMode} from '@oicl/openbridge-webcomponents/dist/components/progress-button/progress-button.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -76,20 +77,14 @@
|
|
|
76
77
|
use:forwardEvents={{'obc-click': onObcClick}} >
|
|
77
78
|
|
|
78
79
|
{#if leadingIcon}
|
|
79
|
-
<
|
|
80
|
-
{@render leadingIcon()}
|
|
81
|
-
</div>
|
|
80
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
82
81
|
{/if}
|
|
83
82
|
|
|
84
83
|
{#if trailingIcon}
|
|
85
|
-
<
|
|
86
|
-
{@render trailingIcon()}
|
|
87
|
-
</div>
|
|
84
|
+
<NamedSlot name="trailing-icon" content={trailingIcon} />
|
|
88
85
|
{/if}
|
|
89
86
|
|
|
90
87
|
{#if icon}
|
|
91
|
-
<
|
|
92
|
-
{@render icon()}
|
|
93
|
-
</div>
|
|
88
|
+
<NamedSlot name="icon" content={icon} />
|
|
94
89
|
{/if}
|
|
95
90
|
</obc-progress-button>
|
|
@@ -4,6 +4,7 @@
|
|
|
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
6
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {HTMLTemplateResult} from 'lit';
|
|
8
9
|
import type {RichButtonDirection} from '@oicl/openbridge-webcomponents/dist/components/rich-button/rich-button.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -45,14 +46,10 @@ direction?: RichButtonDirection;
|
|
|
45
46
|
use:forwardEvents={{'rich-button-click': onRichButtonClick}} >
|
|
46
47
|
|
|
47
48
|
{#if leadingIcon}
|
|
48
|
-
<
|
|
49
|
-
{@render leadingIcon()}
|
|
50
|
-
</div>
|
|
49
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
51
50
|
{/if}
|
|
52
51
|
|
|
53
52
|
{#if trailingIcon}
|
|
54
|
-
<
|
|
55
|
-
{@render trailingIcon()}
|
|
56
|
-
</div>
|
|
53
|
+
<NamedSlot name="trailing-icon" content={trailingIcon} />
|
|
57
54
|
{/if}
|
|
58
55
|
</obc-rich-button>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {SequenceValue, SequenceType, SequenceStyle} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/sequence-card/sequence-card.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcSequenceCardSize, ObcSequenceCardTitleType, ObcSequenceCardProgressType, ObcSequenceCardState} from '@oicl/openbridge-webcomponents/dist/components/sequence-card/sequence-card.js';
|
|
8
9
|
import type {SequenceValue, SequenceType, SequenceStyle} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -64,45 +65,31 @@ import type {SequenceValue, SequenceType, SequenceStyle} from '@oicl/openbridge-
|
|
|
64
65
|
>
|
|
65
66
|
|
|
66
67
|
{#if leadingIcon}
|
|
67
|
-
<
|
|
68
|
-
{@render leadingIcon()}
|
|
69
|
-
</div>
|
|
68
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
70
69
|
{/if}
|
|
71
70
|
|
|
72
71
|
{#if title}
|
|
73
|
-
<
|
|
74
|
-
{@render title()}
|
|
75
|
-
</div>
|
|
72
|
+
<NamedSlot name="title" content={title} />
|
|
76
73
|
{/if}
|
|
77
74
|
|
|
78
75
|
{#if subtitleSnippet}
|
|
79
|
-
<
|
|
80
|
-
{@render subtitleSnippet()}
|
|
81
|
-
</div>
|
|
76
|
+
<NamedSlot name="subtitle" content={subtitleSnippet} />
|
|
82
77
|
{/if}
|
|
83
78
|
|
|
84
79
|
{#if timeStamp}
|
|
85
|
-
<
|
|
86
|
-
{@render timeStamp()}
|
|
87
|
-
</div>
|
|
80
|
+
<NamedSlot name="time-stamp" content={timeStamp} />
|
|
88
81
|
{/if}
|
|
89
82
|
|
|
90
83
|
{#if headerActions}
|
|
91
|
-
<
|
|
92
|
-
{@render headerActions()}
|
|
93
|
-
</div>
|
|
84
|
+
<NamedSlot name="header-actions" content={headerActions} />
|
|
94
85
|
{/if}
|
|
95
86
|
|
|
96
87
|
{#if leftTimeStamp}
|
|
97
|
-
<
|
|
98
|
-
{@render leftTimeStamp()}
|
|
99
|
-
</div>
|
|
88
|
+
<NamedSlot name="left-time-stamp" content={leftTimeStamp} />
|
|
100
89
|
{/if}
|
|
101
90
|
|
|
102
91
|
{#if actions}
|
|
103
|
-
<
|
|
104
|
-
{@render actions()}
|
|
105
|
-
</div>
|
|
92
|
+
<NamedSlot name="actions" content={actions} />
|
|
106
93
|
{/if}
|
|
107
94
|
|
|
108
95
|
{#if children}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {SequenceType, SequenceStyle, SequenceValue} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/sequence-item/sequence-item.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {SequenceItemOrientation, SequenceItemLabelType, SequenceItemState} from '@oicl/openbridge-webcomponents/dist/components/sequence-item/sequence-item.js';
|
|
8
9
|
import type {SequenceType, SequenceStyle, SequenceValue} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -67,26 +68,18 @@ import type {SequenceType, SequenceStyle, SequenceValue} from '@oicl/openbridge-
|
|
|
67
68
|
>
|
|
68
69
|
|
|
69
70
|
{#if titleSnippet}
|
|
70
|
-
<
|
|
71
|
-
{@render titleSnippet()}
|
|
72
|
-
</div>
|
|
71
|
+
<NamedSlot name="title" content={titleSnippet} />
|
|
73
72
|
{/if}
|
|
74
73
|
|
|
75
74
|
{#if descriptionSnippet}
|
|
76
|
-
<
|
|
77
|
-
{@render descriptionSnippet()}
|
|
78
|
-
</div>
|
|
75
|
+
<NamedSlot name="description" content={descriptionSnippet} />
|
|
79
76
|
{/if}
|
|
80
77
|
|
|
81
78
|
{#if meta}
|
|
82
|
-
<
|
|
83
|
-
{@render meta()}
|
|
84
|
-
</div>
|
|
79
|
+
<NamedSlot name="meta" content={meta} />
|
|
85
80
|
{/if}
|
|
86
81
|
|
|
87
82
|
{#if step}
|
|
88
|
-
<
|
|
89
|
-
{@render step()}
|
|
90
|
-
</div>
|
|
83
|
+
<NamedSlot name="step" content={step} />
|
|
91
84
|
{/if}
|
|
92
85
|
</obc-sequence-item>
|
|
@@ -4,6 +4,7 @@
|
|
|
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
6
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcSequenceModalType} from '@oicl/openbridge-webcomponents/dist/components/sequence-modal/sequence-modal.js';
|
|
8
9
|
import type {SequenceValue} from '@oicl/openbridge-webcomponents/dist/components/sequence-step/sequence-step.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -39,9 +40,7 @@ import type {SequenceValue} from '@oicl/openbridge-webcomponents/dist/components
|
|
|
39
40
|
use:forwardEvents={{'close-click': onCloseClick}} >
|
|
40
41
|
|
|
41
42
|
{#if actions}
|
|
42
|
-
<
|
|
43
|
-
{@render actions()}
|
|
44
|
-
</div>
|
|
43
|
+
<NamedSlot name="actions" content={actions} />
|
|
45
44
|
{/if}
|
|
46
45
|
|
|
47
46
|
{#if children}
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {SequenceToolbarType} from '@oicl/openbridge-webcomponents/dist/components/sequence-toolbar/sequence-toolbar.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -39,26 +40,18 @@
|
|
|
39
40
|
{/if}
|
|
40
41
|
|
|
41
42
|
{#if start}
|
|
42
|
-
<
|
|
43
|
-
{@render start()}
|
|
44
|
-
</div>
|
|
43
|
+
<NamedSlot name="start" content={start} />
|
|
45
44
|
{/if}
|
|
46
45
|
|
|
47
46
|
{#if end}
|
|
48
|
-
<
|
|
49
|
-
{@render end()}
|
|
50
|
-
</div>
|
|
47
|
+
<NamedSlot name="end" content={end} />
|
|
51
48
|
{/if}
|
|
52
49
|
|
|
53
50
|
{#if condensedCurrent}
|
|
54
|
-
<
|
|
55
|
-
{@render condensedCurrent()}
|
|
56
|
-
</div>
|
|
51
|
+
<NamedSlot name="condensed-current" content={condensedCurrent} />
|
|
57
52
|
{/if}
|
|
58
53
|
|
|
59
54
|
{#if condensedTotal}
|
|
60
|
-
<
|
|
61
|
-
{@render condensedTotal()}
|
|
62
|
-
</div>
|
|
55
|
+
<NamedSlot name="condensed-total" content={condensedTotal} />
|
|
63
56
|
{/if}
|
|
64
57
|
</obc-sequence-toolbar>
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcSlideButtonSlideEvent} from '@oicl/openbridge-webcomponents/dist/components/slide-button/slide-button.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -35,14 +36,10 @@
|
|
|
35
36
|
use:forwardEvents={{'slide': onSlide}} >
|
|
36
37
|
|
|
37
38
|
{#if leadingIcon}
|
|
38
|
-
<
|
|
39
|
-
{@render leadingIcon()}
|
|
40
|
-
</div>
|
|
39
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
41
40
|
{/if}
|
|
42
41
|
|
|
43
42
|
{#if label}
|
|
44
|
-
<
|
|
45
|
-
{@render label()}
|
|
46
|
-
</div>
|
|
43
|
+
<NamedSlot name="label" content={label} />
|
|
47
44
|
{/if}
|
|
48
45
|
</obc-slide-button>
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcSliderValueEvent, ObcSliderChangeEvent, ObcSliderVariant} from '@oicl/openbridge-webcomponents/dist/components/slider/slider.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -75,14 +76,10 @@ seekingSpeed?: number;
|
|
|
75
76
|
use:forwardEvents={{'value': onValue, 'change': onChange}} >
|
|
76
77
|
|
|
77
78
|
{#if iconLeft}
|
|
78
|
-
<
|
|
79
|
-
{@render iconLeft()}
|
|
80
|
-
</div>
|
|
79
|
+
<NamedSlot name="icon-left" content={iconLeft} />
|
|
81
80
|
{/if}
|
|
82
81
|
|
|
83
82
|
{#if iconRight}
|
|
84
|
-
<
|
|
85
|
-
{@render iconRight()}
|
|
86
|
-
</div>
|
|
83
|
+
<NamedSlot name="icon-right" content={iconRight} />
|
|
87
84
|
{/if}
|
|
88
85
|
</obc-slider>
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcSliderDoubleValueEvent, ObcSliderDoubleChangeEvent, ObcSliderDoubleVariant} from '@oicl/openbridge-webcomponents/dist/components/slider-double/slider-double.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -73,14 +74,10 @@ showRightReadout?: boolean;
|
|
|
73
74
|
use:forwardEvents={{'value': onValue, 'change': onChange}} >
|
|
74
75
|
|
|
75
76
|
{#if leftReadout}
|
|
76
|
-
<
|
|
77
|
-
{@render leftReadout()}
|
|
78
|
-
</div>
|
|
77
|
+
<NamedSlot name="left-readout" content={leftReadout} />
|
|
79
78
|
{/if}
|
|
80
79
|
|
|
81
80
|
{#if rightReadout}
|
|
82
|
-
<
|
|
83
|
-
{@render rightReadout()}
|
|
84
|
-
</div>
|
|
81
|
+
<NamedSlot name="right-readout" content={rightReadout} />
|
|
85
82
|
{/if}
|
|
86
83
|
</obc-slider-double>
|
|
@@ -4,6 +4,7 @@
|
|
|
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
6
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcSplitButtonClickEvent, ObcSplitButtonChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
8
9
|
import type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -69,8 +70,6 @@ import type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbr
|
|
|
69
70
|
use:forwardEvents={{'click': onClick, 'change': onChange}} >
|
|
70
71
|
|
|
71
72
|
{#if icon}
|
|
72
|
-
<
|
|
73
|
-
{@render icon()}
|
|
74
|
-
</div>
|
|
73
|
+
<NamedSlot name="icon" content={icon} />
|
|
75
74
|
{/if}
|
|
76
75
|
</obc-split-button>
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcStartStopSwitchChangeEvent, StartStopSwitchVariant, StartStopSwitchSize} from '@oicl/openbridge-webcomponents/dist/components/start-stop-switch/start-stop-switch.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -84,38 +85,26 @@ description?: string
|
|
|
84
85
|
use:forwardEvents={{'change': onChange}} >
|
|
85
86
|
|
|
86
87
|
{#if checkedStateIcon}
|
|
87
|
-
<
|
|
88
|
-
{@render checkedStateIcon()}
|
|
89
|
-
</div>
|
|
88
|
+
<NamedSlot name="checked-state-icon" content={checkedStateIcon} />
|
|
90
89
|
{/if}
|
|
91
90
|
|
|
92
91
|
{#if uncheckedStateIcon}
|
|
93
|
-
<
|
|
94
|
-
{@render uncheckedStateIcon()}
|
|
95
|
-
</div>
|
|
92
|
+
<NamedSlot name="unchecked-state-icon" content={uncheckedStateIcon} />
|
|
96
93
|
{/if}
|
|
97
94
|
|
|
98
95
|
{#if checkedStateLabel}
|
|
99
|
-
<
|
|
100
|
-
{@render checkedStateLabel()}
|
|
101
|
-
</div>
|
|
96
|
+
<NamedSlot name="checked-state-label" content={checkedStateLabel} />
|
|
102
97
|
{/if}
|
|
103
98
|
|
|
104
99
|
{#if uncheckedStateLabel}
|
|
105
|
-
<
|
|
106
|
-
{@render uncheckedStateLabel()}
|
|
107
|
-
</div>
|
|
100
|
+
<NamedSlot name="unchecked-state-label" content={uncheckedStateLabel} />
|
|
108
101
|
{/if}
|
|
109
102
|
|
|
110
103
|
{#if toCheckedActionLabel}
|
|
111
|
-
<
|
|
112
|
-
{@render toCheckedActionLabel()}
|
|
113
|
-
</div>
|
|
104
|
+
<NamedSlot name="to-checked-action-label" content={toCheckedActionLabel} />
|
|
114
105
|
{/if}
|
|
115
106
|
|
|
116
107
|
{#if toUncheckedActionLabel}
|
|
117
|
-
<
|
|
118
|
-
{@render toUncheckedActionLabel()}
|
|
119
|
-
</div>
|
|
108
|
+
<NamedSlot name="to-unchecked-action-label" content={toUncheckedActionLabel} />
|
|
120
109
|
{/if}
|
|
121
110
|
</obc-start-stop-switch>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
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 NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {VolumeChangeEvent, WifiState, AudioState, MicrophoneState, BatteryState, SystemSubMenu} from '@oicl/openbridge-webcomponents/dist/components/system-menu/system-menu.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -49,8 +50,6 @@
|
|
|
49
50
|
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}} >
|
|
50
51
|
|
|
51
52
|
{#if batteryStatus}
|
|
52
|
-
<
|
|
53
|
-
{@render batteryStatus()}
|
|
54
|
-
</div>
|
|
53
|
+
<NamedSlot name="battery-status" content={batteryStatus} />
|
|
55
54
|
{/if}
|
|
56
55
|
</obc-system-menu>
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {TabItemBadge} from '@oicl/openbridge-webcomponents/dist/components/tab-item/tab-item.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -106,20 +107,14 @@ disabled?: boolean;
|
|
|
106
107
|
use:forwardEvents={{'tab-click': onTabClick, 'tab-close': onTabClose}} >
|
|
107
108
|
|
|
108
109
|
{#if leadingIcon}
|
|
109
|
-
<
|
|
110
|
-
{@render leadingIcon()}
|
|
111
|
-
</div>
|
|
110
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
112
111
|
{/if}
|
|
113
112
|
|
|
114
113
|
{#if titleSnippet}
|
|
115
|
-
<
|
|
116
|
-
{@render titleSnippet()}
|
|
117
|
-
</div>
|
|
114
|
+
<NamedSlot name="title" content={titleSnippet} />
|
|
118
115
|
{/if}
|
|
119
116
|
|
|
120
117
|
{#if badgeIcon}
|
|
121
|
-
<
|
|
122
|
-
{@render badgeIcon()}
|
|
123
|
-
</div>
|
|
118
|
+
<NamedSlot name="badge-icon" content={badgeIcon} />
|
|
124
119
|
{/if}
|
|
125
120
|
</obc-tab-item>
|