@oicl/openbridge-webcomponents-svelte 2.0.0-next.150 → 2.0.0-next.151
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/building-blocks/alert-list/ObcAlertList.svelte +4 -9
- 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-floating-item/ObcAlertFloatingItem.svelte +8 -21
- package/dist/components/alert-frame/ObcAlertFrame.svelte +4 -9
- 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/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 {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-menu-item.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-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
|
|
|
@@ -52,38 +53,26 @@
|
|
|
52
53
|
use:forwardEvents={{'message-click': onMessageClick, 'primary-action-click': onPrimaryActionClick, 'secondary-action-click': onSecondaryActionClick}} >
|
|
53
54
|
|
|
54
55
|
{#if titleSnippet}
|
|
55
|
-
<
|
|
56
|
-
{@render titleSnippet()}
|
|
57
|
-
</div>
|
|
56
|
+
<NamedSlot name="title" content={titleSnippet} />
|
|
58
57
|
{/if}
|
|
59
58
|
|
|
60
59
|
{#if descriptionSnippet}
|
|
61
|
-
<
|
|
62
|
-
{@render descriptionSnippet()}
|
|
63
|
-
</div>
|
|
60
|
+
<NamedSlot name="description" content={descriptionSnippet} />
|
|
64
61
|
{/if}
|
|
65
62
|
|
|
66
63
|
{#if actionLabel}
|
|
67
|
-
<
|
|
68
|
-
{@render actionLabel()}
|
|
69
|
-
</div>
|
|
64
|
+
<NamedSlot name="action-label" content={actionLabel} />
|
|
70
65
|
{/if}
|
|
71
66
|
|
|
72
67
|
{#if primaryIcon}
|
|
73
|
-
<
|
|
74
|
-
{@render primaryIcon()}
|
|
75
|
-
</div>
|
|
68
|
+
<NamedSlot name="primary-icon" content={primaryIcon} />
|
|
76
69
|
{/if}
|
|
77
70
|
|
|
78
71
|
{#if secondaryIcon}
|
|
79
|
-
<
|
|
80
|
-
{@render secondaryIcon()}
|
|
81
|
-
</div>
|
|
72
|
+
<NamedSlot name="secondary-icon" content={secondaryIcon} />
|
|
82
73
|
{/if}
|
|
83
74
|
|
|
84
75
|
{#if trailingIcon}
|
|
85
|
-
<
|
|
86
|
-
{@render trailingIcon()}
|
|
87
|
-
</div>
|
|
76
|
+
<NamedSlot name="trailing-icon" content={trailingIcon} />
|
|
88
77
|
{/if}
|
|
89
78
|
</obc-message-menu-item>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {ObcModalWindowSize} from '@oicl/openbridge-webcomponents/dist/components/modal-window/modal-window.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/modal-window/modal-window.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcModalWindowSize} from '@oicl/openbridge-webcomponents/dist/components/modal-window/modal-window.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -44,38 +45,26 @@
|
|
|
44
45
|
use:forwardEvents={{'close-click': onCloseClick, 'cancel-click': onCancelClick, 'done-click': onDoneClick, 'option-click': onOptionClick}} >
|
|
45
46
|
|
|
46
47
|
{#if leadingIcon}
|
|
47
|
-
<
|
|
48
|
-
{@render leadingIcon()}
|
|
49
|
-
</div>
|
|
48
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
50
49
|
{/if}
|
|
51
50
|
|
|
52
51
|
{#if title}
|
|
53
|
-
<
|
|
54
|
-
{@render title()}
|
|
55
|
-
</div>
|
|
52
|
+
<NamedSlot name="title" content={title} />
|
|
56
53
|
{/if}
|
|
57
54
|
|
|
58
55
|
{#if content}
|
|
59
|
-
<
|
|
60
|
-
{@render content()}
|
|
61
|
-
</div>
|
|
56
|
+
<NamedSlot name="content" content={content} />
|
|
62
57
|
{/if}
|
|
63
58
|
|
|
64
59
|
{#if optionLabel}
|
|
65
|
-
<
|
|
66
|
-
{@render optionLabel()}
|
|
67
|
-
</div>
|
|
60
|
+
<NamedSlot name="option-label" content={optionLabel} />
|
|
68
61
|
{/if}
|
|
69
62
|
|
|
70
63
|
{#if cancelLabel}
|
|
71
|
-
<
|
|
72
|
-
{@render cancelLabel()}
|
|
73
|
-
</div>
|
|
64
|
+
<NamedSlot name="cancel-label" content={cancelLabel} />
|
|
74
65
|
{/if}
|
|
75
66
|
|
|
76
67
|
{#if doneLabel}
|
|
77
|
-
<
|
|
78
|
-
{@render doneLabel()}
|
|
79
|
-
</div>
|
|
68
|
+
<NamedSlot name="done-label" content={doneLabel} />
|
|
80
69
|
{/if}
|
|
81
70
|
</obc-modal-window>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {TreeBranchType, TreeNavigationItemAlerts} from '@oicl/openbridge-webcomponents/dist/components/tree-navigation-item/tree-navigation-item.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/navigation-item/navigation-item.js';
|
|
6
6
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcNavigationMenuVariant} from '@oicl/openbridge-webcomponents/dist/components/navigation-menu/navigation-menu.js';
|
|
8
9
|
import type {TreeBranchType, TreeNavigationItemAlerts} from '@oicl/openbridge-webcomponents/dist/components/tree-navigation-item/tree-navigation-item.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -61,14 +62,10 @@ alerts?: TreeNavigationItemAlerts | undefined
|
|
|
61
62
|
use:forwardEvents={{'click': onClick}} >
|
|
62
63
|
|
|
63
64
|
{#if icon}
|
|
64
|
-
<
|
|
65
|
-
{@render icon()}
|
|
66
|
-
</div>
|
|
65
|
+
<NamedSlot name="icon" content={icon} />
|
|
67
66
|
{/if}
|
|
68
67
|
|
|
69
68
|
{#if trailingIcon}
|
|
70
|
-
<
|
|
71
|
-
{@render trailingIcon()}
|
|
72
|
-
</div>
|
|
69
|
+
<NamedSlot name="trailing-icon" content={trailingIcon} />
|
|
73
70
|
{/if}
|
|
74
71
|
</obc-navigation-item>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {TreeBranchType, TreeNavigationItemAlerts} from '@oicl/openbridge-webcomponents/dist/components/tree-navigation-item/tree-navigation-item.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/navigation-item-group/navigation-item-group.js';
|
|
6
6
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcNavigationMenuVariant} from '@oicl/openbridge-webcomponents/dist/components/navigation-menu/navigation-menu.js';
|
|
8
9
|
import type {TreeBranchType, TreeNavigationItemAlerts} from '@oicl/openbridge-webcomponents/dist/components/tree-navigation-item/tree-navigation-item.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -50,9 +51,7 @@ alerts?: TreeNavigationItemAlerts | undefined;
|
|
|
50
51
|
use:forwardEvents={{'open': onOpen}} >
|
|
51
52
|
|
|
52
53
|
{#if icon}
|
|
53
|
-
<
|
|
54
|
-
{@render icon()}
|
|
55
|
-
</div>
|
|
54
|
+
<NamedSlot name="icon" content={icon} />
|
|
56
55
|
{/if}
|
|
57
56
|
|
|
58
57
|
{#if children}
|
|
@@ -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>
|