@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
|
@@ -6,6 +6,7 @@ export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation
|
|
|
6
6
|
export type {GaugeGeneratorType} from '@oicl/openbridge-webcomponents/dist/automation/gauge-generator/gauge-generator.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/automation/gauge-generator/gauge-generator.js';
|
|
8
8
|
import { setProperties } from "../../util.js";
|
|
9
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
9
10
|
import type {InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
11
|
import type {GaugeProportionalSector, GaugeProportionalAlignment, GaugeProportionalPriority, GaugeProportionalAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-proportional/gauge-proportional.js';
|
|
11
12
|
import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
@@ -117,14 +118,10 @@ animateSetpoint?: boolean;
|
|
|
117
118
|
>
|
|
118
119
|
|
|
119
120
|
{#if icon}
|
|
120
|
-
<
|
|
121
|
-
{@render icon()}
|
|
122
|
-
</div>
|
|
121
|
+
<NamedSlot name="icon" content={icon} />
|
|
123
122
|
{/if}
|
|
124
123
|
|
|
125
124
|
{#if secondaryIcon}
|
|
126
|
-
<
|
|
127
|
-
{@render secondaryIcon()}
|
|
128
|
-
</div>
|
|
125
|
+
<NamedSlot name="secondary-icon" content={secondaryIcon} />
|
|
129
126
|
{/if}
|
|
130
127
|
</obc-gauge-generator>
|
|
@@ -6,6 +6,7 @@ export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation
|
|
|
6
6
|
export type {GaugeMotorsAndPumpsType} from '@oicl/openbridge-webcomponents/dist/automation/gauge-motors-and-pumps/gauge-motors-and-pumps.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/automation/gauge-motors-and-pumps/gauge-motors-and-pumps.js';
|
|
8
8
|
import { setProperties } from "../../util.js";
|
|
9
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
9
10
|
import type {InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
11
|
import type {GaugeProportionalSector, GaugeProportionalAlignment, GaugeProportionalPriority, GaugeProportionalAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-proportional/gauge-proportional.js';
|
|
11
12
|
import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
@@ -117,14 +118,10 @@ animateSetpoint?: boolean;
|
|
|
117
118
|
>
|
|
118
119
|
|
|
119
120
|
{#if icon}
|
|
120
|
-
<
|
|
121
|
-
{@render icon()}
|
|
122
|
-
</div>
|
|
121
|
+
<NamedSlot name="icon" content={icon} />
|
|
123
122
|
{/if}
|
|
124
123
|
|
|
125
124
|
{#if secondaryIcon}
|
|
126
|
-
<
|
|
127
|
-
{@render secondaryIcon()}
|
|
128
|
-
</div>
|
|
125
|
+
<NamedSlot name="secondary-icon" content={secondaryIcon} />
|
|
129
126
|
{/if}
|
|
130
127
|
</obc-gauge-motors-and-pumps>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {GaugeValveScalePosition} from '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve-geometry.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {GaugeValveType, GaugeValvePriority, GaugeValveStyle} from '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve.js';
|
|
8
9
|
import type {GaugeValveScalePosition} from '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve-geometry.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -92,8 +93,6 @@ animateSetpoint?: boolean;
|
|
|
92
93
|
>
|
|
93
94
|
|
|
94
95
|
{#if icon}
|
|
95
|
-
<
|
|
96
|
-
{@render icon()}
|
|
97
|
-
</div>
|
|
96
|
+
<NamedSlot name="icon" content={icon} />
|
|
98
97
|
{/if}
|
|
99
98
|
</obc-gauge-valve>
|
|
@@ -7,6 +7,7 @@ export type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-w
|
|
|
7
7
|
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
8
8
|
import '@oicl/openbridge-webcomponents/dist/automation/heat-exchanger/heat-exchanger.js';
|
|
9
9
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
10
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
10
11
|
import type {SpecialtyTankMedium} from '@oicl/openbridge-webcomponents/dist/automation/specialty-tank/abstract-specialty-tank.js';
|
|
11
12
|
import type {TankPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/tank-positioning.js';
|
|
12
13
|
import type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
@@ -96,32 +97,22 @@ import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
96
97
|
use:forwardEvents={{'click': onClick}} >
|
|
97
98
|
|
|
98
99
|
{#if badges}
|
|
99
|
-
<
|
|
100
|
-
{@render badges()}
|
|
101
|
-
</div>
|
|
100
|
+
<NamedSlot name="badges" content={badges} />
|
|
102
101
|
{/if}
|
|
103
102
|
|
|
104
103
|
{#if tagSnippet}
|
|
105
|
-
<
|
|
106
|
-
{@render tagSnippet()}
|
|
107
|
-
</div>
|
|
104
|
+
<NamedSlot name="tag" content={tagSnippet} />
|
|
108
105
|
{/if}
|
|
109
106
|
|
|
110
107
|
{#if alertIcon}
|
|
111
|
-
<
|
|
112
|
-
{@render alertIcon()}
|
|
113
|
-
</div>
|
|
108
|
+
<NamedSlot name="alert-icon" content={alertIcon} />
|
|
114
109
|
{/if}
|
|
115
110
|
|
|
116
111
|
{#if alertLabel}
|
|
117
|
-
<
|
|
118
|
-
{@render alertLabel()}
|
|
119
|
-
</div>
|
|
112
|
+
<NamedSlot name="alert-label" content={alertLabel} />
|
|
120
113
|
{/if}
|
|
121
114
|
|
|
122
115
|
{#if alertTimer}
|
|
123
|
-
<
|
|
124
|
-
{@render alertTimer()}
|
|
125
|
-
</div>
|
|
116
|
+
<NamedSlot name="alert-timer" content={alertTimer} />
|
|
126
117
|
{/if}
|
|
127
118
|
</obc-heat-exchanger>
|
|
@@ -7,6 +7,7 @@ export type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-w
|
|
|
7
7
|
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
8
8
|
import '@oicl/openbridge-webcomponents/dist/automation/heat-pump/heat-pump.js';
|
|
9
9
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
10
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
10
11
|
import type {SpecialtyTankMedium} from '@oicl/openbridge-webcomponents/dist/automation/specialty-tank/abstract-specialty-tank.js';
|
|
11
12
|
import type {TankPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/tank-positioning.js';
|
|
12
13
|
import type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
@@ -96,32 +97,22 @@ import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
96
97
|
use:forwardEvents={{'click': onClick}} >
|
|
97
98
|
|
|
98
99
|
{#if badges}
|
|
99
|
-
<
|
|
100
|
-
{@render badges()}
|
|
101
|
-
</div>
|
|
100
|
+
<NamedSlot name="badges" content={badges} />
|
|
102
101
|
{/if}
|
|
103
102
|
|
|
104
103
|
{#if tagSnippet}
|
|
105
|
-
<
|
|
106
|
-
{@render tagSnippet()}
|
|
107
|
-
</div>
|
|
104
|
+
<NamedSlot name="tag" content={tagSnippet} />
|
|
108
105
|
{/if}
|
|
109
106
|
|
|
110
107
|
{#if alertIcon}
|
|
111
|
-
<
|
|
112
|
-
{@render alertIcon()}
|
|
113
|
-
</div>
|
|
108
|
+
<NamedSlot name="alert-icon" content={alertIcon} />
|
|
114
109
|
{/if}
|
|
115
110
|
|
|
116
111
|
{#if alertLabel}
|
|
117
|
-
<
|
|
118
|
-
{@render alertLabel()}
|
|
119
|
-
</div>
|
|
112
|
+
<NamedSlot name="alert-label" content={alertLabel} />
|
|
120
113
|
{/if}
|
|
121
114
|
|
|
122
115
|
{#if alertTimer}
|
|
123
|
-
<
|
|
124
|
-
{@render alertTimer()}
|
|
125
|
-
</div>
|
|
116
|
+
<NamedSlot name="alert-timer" content={alertTimer} />
|
|
126
117
|
{/if}
|
|
127
118
|
</obc-heat-pump>
|
|
@@ -7,6 +7,7 @@ export type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-w
|
|
|
7
7
|
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
8
8
|
import '@oicl/openbridge-webcomponents/dist/automation/hydraulic-separator/hydraulic-separator.js';
|
|
9
9
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
10
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
10
11
|
import type {SpecialtyTankMedium} from '@oicl/openbridge-webcomponents/dist/automation/specialty-tank/abstract-specialty-tank.js';
|
|
11
12
|
import type {TankPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/tank-positioning.js';
|
|
12
13
|
import type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
@@ -96,32 +97,22 @@ import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
96
97
|
use:forwardEvents={{'click': onClick}} >
|
|
97
98
|
|
|
98
99
|
{#if badges}
|
|
99
|
-
<
|
|
100
|
-
{@render badges()}
|
|
101
|
-
</div>
|
|
100
|
+
<NamedSlot name="badges" content={badges} />
|
|
102
101
|
{/if}
|
|
103
102
|
|
|
104
103
|
{#if tagSnippet}
|
|
105
|
-
<
|
|
106
|
-
{@render tagSnippet()}
|
|
107
|
-
</div>
|
|
104
|
+
<NamedSlot name="tag" content={tagSnippet} />
|
|
108
105
|
{/if}
|
|
109
106
|
|
|
110
107
|
{#if alertIcon}
|
|
111
|
-
<
|
|
112
|
-
{@render alertIcon()}
|
|
113
|
-
</div>
|
|
108
|
+
<NamedSlot name="alert-icon" content={alertIcon} />
|
|
114
109
|
{/if}
|
|
115
110
|
|
|
116
111
|
{#if alertLabel}
|
|
117
|
-
<
|
|
118
|
-
{@render alertLabel()}
|
|
119
|
-
</div>
|
|
112
|
+
<NamedSlot name="alert-label" content={alertLabel} />
|
|
120
113
|
{/if}
|
|
121
114
|
|
|
122
115
|
{#if alertTimer}
|
|
123
|
-
<
|
|
124
|
-
{@render alertTimer()}
|
|
125
|
-
</div>
|
|
116
|
+
<NamedSlot name="alert-timer" content={alertTimer} />
|
|
126
117
|
{/if}
|
|
127
118
|
</obc-hydraulic-separator>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {IndicatorBatteryVariant, IndicatorBatteryValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-battery/indicator-battery.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/automation/indicator-battery/indicator-battery.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {IndicatorDirection} from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
|
|
8
9
|
import type {IndicatorBatteryVariant, IndicatorBatteryValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-battery/indicator-battery.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -36,8 +37,6 @@ import type {IndicatorBatteryVariant, IndicatorBatteryValue} from '@oicl/openbri
|
|
|
36
37
|
>
|
|
37
38
|
|
|
38
39
|
{#if icon}
|
|
39
|
-
<
|
|
40
|
-
{@render icon()}
|
|
41
|
-
</div>
|
|
40
|
+
<NamedSlot name="icon" content={icon} />
|
|
42
41
|
{/if}
|
|
43
42
|
</obc-indicator-battery>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {IndicatorGeneratorVariant, IndicatorGeneratorValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-generator/indicator-generator.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/automation/indicator-generator/indicator-generator.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {IndicatorGeneratorVariant, IndicatorGeneratorValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-generator/indicator-generator.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -32,8 +33,6 @@
|
|
|
32
33
|
>
|
|
33
34
|
|
|
34
35
|
{#if icon}
|
|
35
|
-
<
|
|
36
|
-
{@render icon()}
|
|
37
|
-
</div>
|
|
36
|
+
<NamedSlot name="icon" content={icon} />
|
|
38
37
|
{/if}
|
|
39
38
|
</obc-indicator-generator>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {IndicatorTankAtmosphericVariant, IndicatorTankAtmosphericValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {IndicatorDirection} from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
|
|
8
9
|
import type {IndicatorTankAtmosphericVariant, IndicatorTankAtmosphericValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -36,8 +37,6 @@ import type {IndicatorTankAtmosphericVariant, IndicatorTankAtmosphericValue} fro
|
|
|
36
37
|
>
|
|
37
38
|
|
|
38
39
|
{#if icon}
|
|
39
|
-
<
|
|
40
|
-
{@render icon()}
|
|
41
|
-
</div>
|
|
40
|
+
<NamedSlot name="icon" content={icon} />
|
|
42
41
|
{/if}
|
|
43
42
|
</obc-indicator-tank-atmospheric>
|
|
@@ -5,6 +5,7 @@ export type {LineType} from '@oicl/openbridge-webcomponents/dist/automation/inde
|
|
|
5
5
|
export type {TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
8
9
|
import type {TransmitterOrientation, TransmitterType} from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
9
10
|
import type {LineType} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
10
11
|
import type {TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
@@ -57,8 +58,6 @@ import type {TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/au
|
|
|
57
58
|
>
|
|
58
59
|
|
|
59
60
|
{#if icon}
|
|
60
|
-
<
|
|
61
|
-
{@render icon()}
|
|
62
|
-
</div>
|
|
61
|
+
<NamedSlot name="icon" content={icon} />
|
|
63
62
|
{/if}
|
|
64
63
|
</obc-transmitter>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {TransmitterButtonVariant, TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {TransmitterButtonVariant, TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -45,8 +46,6 @@
|
|
|
45
46
|
>
|
|
46
47
|
|
|
47
48
|
{#if icon}
|
|
48
|
-
<
|
|
49
|
-
{@render icon()}
|
|
50
|
-
</div>
|
|
49
|
+
<NamedSlot name="icon" content={icon} />
|
|
51
50
|
{/if}
|
|
52
51
|
</obc-transmitter-button>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/alert-list/alert-list.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -34,20 +35,14 @@
|
|
|
34
35
|
{/if}
|
|
35
36
|
|
|
36
37
|
{#if emptyIcon}
|
|
37
|
-
<
|
|
38
|
-
{@render emptyIcon()}
|
|
39
|
-
</div>
|
|
38
|
+
<NamedSlot name="empty-icon" content={emptyIcon} />
|
|
40
39
|
{/if}
|
|
41
40
|
|
|
42
41
|
{#if emptyTitle}
|
|
43
|
-
<
|
|
44
|
-
{@render emptyTitle()}
|
|
45
|
-
</div>
|
|
42
|
+
<NamedSlot name="empty-title" content={emptyTitle} />
|
|
46
43
|
{/if}
|
|
47
44
|
|
|
48
45
|
{#if emptyDescription}
|
|
49
|
-
<
|
|
50
|
-
{@render emptyDescription()}
|
|
51
|
-
</div>
|
|
46
|
+
<NamedSlot name="empty-description" content={emptyDescription} />
|
|
52
47
|
{/if}
|
|
53
48
|
</obc-alert-list>
|
|
@@ -6,6 +6,7 @@ export type {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@o
|
|
|
6
6
|
export type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
8
8
|
import { setProperties } from "../../util.js";
|
|
9
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
9
10
|
import type {ReadoutBlockVariant, ReadoutBlockSize, ReadoutAdviceCategory, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
|
|
10
11
|
import type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
|
|
11
12
|
import type {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
|
|
@@ -102,8 +103,6 @@ import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/compone
|
|
|
102
103
|
>
|
|
103
104
|
|
|
104
105
|
{#if icon}
|
|
105
|
-
<
|
|
106
|
-
{@render icon()}
|
|
107
|
-
</div>
|
|
106
|
+
<NamedSlot name="icon" content={icon} />
|
|
108
107
|
{/if}
|
|
109
108
|
</obc-readout-block>
|
|
@@ -5,6 +5,7 @@ export type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-w
|
|
|
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
7
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
8
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
8
9
|
import type {Position, AccordionSize} from '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
|
|
9
10
|
import type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
10
11
|
import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
@@ -88,32 +89,22 @@ size?: AccordionSize;
|
|
|
88
89
|
use:forwardEvents={{'accordion-toggle': onAccordionToggle}} >
|
|
89
90
|
|
|
90
91
|
{#if leadingIcon}
|
|
91
|
-
<
|
|
92
|
-
{@render leadingIcon()}
|
|
93
|
-
</div>
|
|
92
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
94
93
|
{/if}
|
|
95
94
|
|
|
96
95
|
{#if expandedContent}
|
|
97
|
-
<
|
|
98
|
-
{@render expandedContent()}
|
|
99
|
-
</div>
|
|
96
|
+
<NamedSlot name="expanded-content" content={expandedContent} />
|
|
100
97
|
{/if}
|
|
101
98
|
|
|
102
99
|
{#if alertIcon}
|
|
103
|
-
<
|
|
104
|
-
{@render alertIcon()}
|
|
105
|
-
</div>
|
|
100
|
+
<NamedSlot name="alert-icon" content={alertIcon} />
|
|
106
101
|
{/if}
|
|
107
102
|
|
|
108
103
|
{#if alertLabel}
|
|
109
|
-
<
|
|
110
|
-
{@render alertLabel()}
|
|
111
|
-
</div>
|
|
104
|
+
<NamedSlot name="alert-label" content={alertLabel} />
|
|
112
105
|
{/if}
|
|
113
106
|
|
|
114
107
|
{#if alertTimer}
|
|
115
|
-
<
|
|
116
|
-
{@render alertTimer()}
|
|
117
|
-
</div>
|
|
108
|
+
<NamedSlot name="alert-timer" content={alertTimer} />
|
|
118
109
|
{/if}
|
|
119
110
|
</obc-accordion-card>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/accordion-item/accordion-item.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -34,8 +35,6 @@
|
|
|
34
35
|
use:forwardEvents={{'accordion-item-toggle': onAccordionItemToggle}} >
|
|
35
36
|
|
|
36
37
|
{#if expandedContent}
|
|
37
|
-
<
|
|
38
|
-
{@render expandedContent()}
|
|
39
|
-
</div>
|
|
38
|
+
<NamedSlot name="expanded-content" content={expandedContent} />
|
|
40
39
|
{/if}
|
|
41
40
|
</obc-accordion-item>
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {AdviceButtonClickEvent, AdviceButtonStyle} from '@oicl/openbridge-webcomponents/dist/components/advice-button/advice-button.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -44,8 +45,6 @@ buttonStyle?: AdviceButtonStyle;
|
|
|
44
45
|
use:forwardEvents={{'obc-click': onObcClick}} >
|
|
45
46
|
|
|
46
47
|
{#if icon}
|
|
47
|
-
<
|
|
48
|
-
{@render icon()}
|
|
49
|
-
</div>
|
|
48
|
+
<NamedSlot name="icon" content={icon} />
|
|
50
49
|
{/if}
|
|
51
50
|
</obc-advice-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/advice-floating-item/advice-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-advice-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/advice-menu-item/advice-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-advice-menu-item>
|
|
@@ -3,6 +3,7 @@
|
|
|
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
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcAdviceMessageItemType, ObcAdviceMessageItemSize} from '@oicl/openbridge-webcomponents/dist/components/advice-message-item/advice-message-item.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -107,8 +108,6 @@ size?: ObcAdviceMessageItemSize;
|
|
|
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-advice-message-item>
|
|
@@ -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/alert-floating-item/alert-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
|
|
|
@@ -41,44 +42,30 @@
|
|
|
41
42
|
use:forwardEvents={{'action-click': onActionClick, 'action2-click': onAction2Click, 'dismiss-click': onDismissClick}} >
|
|
42
43
|
|
|
43
44
|
{#if primaryIcon}
|
|
44
|
-
<
|
|
45
|
-
{@render primaryIcon()}
|
|
46
|
-
</div>
|
|
45
|
+
<NamedSlot name="primary-icon" content={primaryIcon} />
|
|
47
46
|
{/if}
|
|
48
47
|
|
|
49
48
|
{#if title}
|
|
50
|
-
<
|
|
51
|
-
{@render title()}
|
|
52
|
-
</div>
|
|
49
|
+
<NamedSlot name="title" content={title} />
|
|
53
50
|
{/if}
|
|
54
51
|
|
|
55
52
|
{#if description}
|
|
56
|
-
<
|
|
57
|
-
{@render description()}
|
|
58
|
-
</div>
|
|
53
|
+
<NamedSlot name="description" content={description} />
|
|
59
54
|
{/if}
|
|
60
55
|
|
|
61
56
|
{#if time}
|
|
62
|
-
<
|
|
63
|
-
{@render time()}
|
|
64
|
-
</div>
|
|
57
|
+
<NamedSlot name="time" content={time} />
|
|
65
58
|
{/if}
|
|
66
59
|
|
|
67
60
|
{#if day}
|
|
68
|
-
<
|
|
69
|
-
{@render day()}
|
|
70
|
-
</div>
|
|
61
|
+
<NamedSlot name="day" content={day} />
|
|
71
62
|
{/if}
|
|
72
63
|
|
|
73
64
|
{#if actionSnippet}
|
|
74
|
-
<
|
|
75
|
-
{@render actionSnippet()}
|
|
76
|
-
</div>
|
|
65
|
+
<NamedSlot name="action" content={actionSnippet} />
|
|
77
66
|
{/if}
|
|
78
67
|
|
|
79
68
|
{#if action2Snippet}
|
|
80
|
-
<
|
|
81
|
-
{@render action2Snippet()}
|
|
82
|
-
</div>
|
|
69
|
+
<NamedSlot name="action2" content={action2Snippet} />
|
|
83
70
|
{/if}
|
|
84
71
|
</obc-alert-floating-item>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode, AlertFrameTextSize} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
8
9
|
import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -73,20 +74,14 @@ mode?: ObcAlertFrameMode;
|
|
|
73
74
|
{/if}
|
|
74
75
|
|
|
75
76
|
{#if icon}
|
|
76
|
-
<
|
|
77
|
-
{@render icon()}
|
|
78
|
-
</div>
|
|
77
|
+
<NamedSlot name="icon" content={icon} />
|
|
79
78
|
{/if}
|
|
80
79
|
|
|
81
80
|
{#if label}
|
|
82
|
-
<
|
|
83
|
-
{@render label()}
|
|
84
|
-
</div>
|
|
81
|
+
<NamedSlot name="label" content={label} />
|
|
85
82
|
{/if}
|
|
86
83
|
|
|
87
84
|
{#if timer}
|
|
88
|
-
<
|
|
89
|
-
{@render timer()}
|
|
90
|
-
</div>
|
|
85
|
+
<NamedSlot name="timer" content={timer} />
|
|
91
86
|
{/if}
|
|
92
87
|
</obc-alert-frame>
|