@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import type { Snippet } from "svelte";
|
|
4
|
+
import { assignSlot, SLOT_MARKER } from "./util.js";
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
/** Name of the custom element slot to assign the content to. */
|
|
8
|
+
name: string;
|
|
9
|
+
content: Snippet<[any]>;
|
|
10
|
+
/** Argument for parameterized snippets, e.g. `tab-<id>-icon`. */
|
|
11
|
+
arg?: unknown;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const { name, content, arg }: Props = $props();
|
|
15
|
+
|
|
16
|
+
// Text cannot carry a `slot` attribute. Once the snippet renders text, fall
|
|
17
|
+
// back to a display: contents wrapper that carries it instead.
|
|
18
|
+
let wrapped = $state(false);
|
|
19
|
+
const marker = { slot: SLOT_MARKER };
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
{#if wrapped}
|
|
23
|
+
<span {...{ slot: name }} style="display: contents">{@render content(arg)}</span>
|
|
24
|
+
{:else}
|
|
25
|
+
<template {...marker} use:assignSlot={{ name, onText: () => (wrapped = true) }}></template>{@render content(arg)}<template {...marker}></template>
|
|
26
|
+
{/if}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
interface Props {
|
|
3
|
+
/** Name of the custom element slot to assign the content to. */
|
|
4
|
+
name: string;
|
|
5
|
+
content: Snippet<[any]>;
|
|
6
|
+
/** Argument for parameterized snippets, e.g. `tab-<id>-icon`. */
|
|
7
|
+
arg?: unknown;
|
|
8
|
+
}
|
|
9
|
+
declare const NamedSlot: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type NamedSlot = ReturnType<typeof NamedSlot>;
|
|
11
|
+
export default NamedSlot;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {ObcPoiHeaderSize, ObcPoiHeaderState, ObcPoiHeaderType} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-header/poi-header.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-header/poi-header.js';
|
|
5
5
|
import { setProperties } from "../../../util.js";
|
|
6
|
+
import NamedSlot from "../../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcPoiHeaderSize, ObcPoiHeaderState, ObcPoiHeaderType} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-header/poi-header.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -32,8 +33,6 @@
|
|
|
32
33
|
>
|
|
33
34
|
|
|
34
35
|
{#if indicator}
|
|
35
|
-
<
|
|
36
|
-
{@render indicator()}
|
|
37
|
-
</div>
|
|
36
|
+
<NamedSlot name="indicator" content={indicator} />
|
|
38
37
|
{/if}
|
|
39
38
|
</obc-poi-header>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/vessel.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/ar/chart-object-vessel-button/chart-object-vessel-button.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {SpeedIndicator, State, Type} from '@oicl/openbridge-webcomponents/dist/ar/chart-object-vessel-button/chart-object-vessel-button.js';
|
|
8
9
|
import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/vessel.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -57,26 +58,18 @@ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-i
|
|
|
57
58
|
{/if}
|
|
58
59
|
|
|
59
60
|
{#if silhouette}
|
|
60
|
-
<
|
|
61
|
-
{@render silhouette()}
|
|
62
|
-
</div>
|
|
61
|
+
<NamedSlot name="silhouette" content={silhouette} />
|
|
63
62
|
{/if}
|
|
64
63
|
|
|
65
64
|
{#if numberSnippet}
|
|
66
|
-
<
|
|
67
|
-
{@render numberSnippet()}
|
|
68
|
-
</div>
|
|
65
|
+
<NamedSlot name="number" content={numberSnippet} />
|
|
69
66
|
{/if}
|
|
70
67
|
|
|
71
68
|
{#if nameSnippet}
|
|
72
|
-
<
|
|
73
|
-
{@render nameSnippet()}
|
|
74
|
-
</div>
|
|
69
|
+
<NamedSlot name="name" content={nameSnippet} />
|
|
75
70
|
{/if}
|
|
76
71
|
|
|
77
72
|
{#if vesselImageSnippet}
|
|
78
|
-
<
|
|
79
|
-
{@render vesselImageSnippet()}
|
|
80
|
-
</div>
|
|
73
|
+
<NamedSlot name="vessel-image" content={vesselImageSnippet} />
|
|
81
74
|
{/if}
|
|
82
75
|
</obc-chart-object-vessel-button>
|
|
@@ -5,6 +5,7 @@ export type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webc
|
|
|
5
5
|
export type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
8
9
|
import type {ObcPoiType, ObcPoiValue, ObcPoiState} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
|
|
9
10
|
import type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
10
11
|
import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
@@ -65,14 +66,10 @@ import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webco
|
|
|
65
66
|
{/if}
|
|
66
67
|
|
|
67
68
|
{#if button}
|
|
68
|
-
<
|
|
69
|
-
{@render button()}
|
|
70
|
-
</div>
|
|
69
|
+
<NamedSlot name="button" content={button} />
|
|
71
70
|
{/if}
|
|
72
71
|
|
|
73
72
|
{#if header}
|
|
74
|
-
<
|
|
75
|
-
{@render header()}
|
|
76
|
-
</div>
|
|
73
|
+
<NamedSlot name="header" content={header} />
|
|
77
74
|
{/if}
|
|
78
75
|
</obc-poi>
|
|
@@ -7,6 +7,7 @@ export type {ObcPoiObjectAtonType, ObcPoiObjectAtonStyle} from '@oicl/openbridge
|
|
|
7
7
|
export type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
8
8
|
import '@oicl/openbridge-webcomponents/dist/ar/poi/poi-aton.js';
|
|
9
9
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
10
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
10
11
|
import type {ObcPoiType, ObcPoiValue, ObcPoiState} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
|
|
11
12
|
import type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
12
13
|
import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
@@ -66,8 +67,6 @@ import type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi
|
|
|
66
67
|
{/if}
|
|
67
68
|
|
|
68
69
|
{#if header}
|
|
69
|
-
<
|
|
70
|
-
{@render header()}
|
|
71
|
-
</div>
|
|
70
|
+
<NamedSlot name="header" content={header} />
|
|
72
71
|
{/if}
|
|
73
72
|
</obc-poi-aton>
|
|
@@ -6,6 +6,7 @@ export type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webco
|
|
|
6
6
|
export type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/ar/poi/poi-data.js';
|
|
8
8
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
9
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
9
10
|
import type {ObcPoiType, ObcPoiValue, ObcPoiState} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
|
|
10
11
|
import type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
11
12
|
import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
@@ -63,8 +64,6 @@ import type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcom
|
|
|
63
64
|
{/if}
|
|
64
65
|
|
|
65
66
|
{#if header}
|
|
66
|
-
<
|
|
67
|
-
{@render header()}
|
|
68
|
-
</div>
|
|
67
|
+
<NamedSlot name="header" content={header} />
|
|
69
68
|
{/if}
|
|
70
69
|
</obc-poi-data>
|
|
@@ -6,6 +6,7 @@ export type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webco
|
|
|
6
6
|
export type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVesselState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-vessel.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/ar/poi/poi-vessel.js';
|
|
8
8
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
9
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
9
10
|
import type {ObcPoiType, ObcPoiValue, ObcPoiState} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
|
|
10
11
|
import type {ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
11
12
|
import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webcomponents/dist/ar/building-blocks/poi-pointer/poi-pointer.js';
|
|
@@ -66,20 +67,14 @@ import type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVessel
|
|
|
66
67
|
{/if}
|
|
67
68
|
|
|
68
69
|
{#if turnIndicator}
|
|
69
|
-
<
|
|
70
|
-
{@render turnIndicator()}
|
|
71
|
-
</div>
|
|
70
|
+
<NamedSlot name="turn-indicator" content={turnIndicator} />
|
|
72
71
|
{/if}
|
|
73
72
|
|
|
74
73
|
{#if speedIndicator}
|
|
75
|
-
<
|
|
76
|
-
{@render speedIndicator()}
|
|
77
|
-
</div>
|
|
74
|
+
<NamedSlot name="speed-indicator" content={speedIndicator} />
|
|
78
75
|
{/if}
|
|
79
76
|
|
|
80
77
|
{#if header}
|
|
81
|
-
<
|
|
82
|
-
{@render header()}
|
|
83
|
-
</div>
|
|
78
|
+
<NamedSlot name="header" content={header} />
|
|
84
79
|
{/if}
|
|
85
80
|
</obc-poi-vessel>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {ObcPoiButtonLayout, ObcPoiButtonState, PoiButtonVisualState, ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcPoiButtonLayout, ObcPoiButtonState, PoiButtonVisualState, ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -44,14 +45,10 @@
|
|
|
44
45
|
{/if}
|
|
45
46
|
|
|
46
47
|
{#if header}
|
|
47
|
-
<
|
|
48
|
-
{@render header()}
|
|
49
|
-
</div>
|
|
48
|
+
<NamedSlot name="header" content={header} />
|
|
50
49
|
{/if}
|
|
51
50
|
|
|
52
51
|
{#if relation}
|
|
53
|
-
<
|
|
54
|
-
{@render relation()}
|
|
55
|
-
</div>
|
|
52
|
+
<NamedSlot name="relation" content={relation} />
|
|
56
53
|
{/if}
|
|
57
54
|
</obc-poi-button>
|
|
@@ -5,6 +5,7 @@ export type {ObcPoiObjectAtonType, ObcPoiObjectAtonStyle} from '@oicl/openbridge
|
|
|
5
5
|
export type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button-aton.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
8
9
|
import type {ObcPoiButtonLayout, ObcPoiButtonState, PoiButtonVisualState, ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
9
10
|
import type {ObcPoiObjectAtonType, ObcPoiObjectAtonStyle} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-aton.js';
|
|
10
11
|
import type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
@@ -53,14 +54,10 @@ import type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi
|
|
|
53
54
|
{/if}
|
|
54
55
|
|
|
55
56
|
{#if header}
|
|
56
|
-
<
|
|
57
|
-
{@render header()}
|
|
58
|
-
</div>
|
|
57
|
+
<NamedSlot name="header" content={header} />
|
|
59
58
|
{/if}
|
|
60
59
|
|
|
61
60
|
{#if relation}
|
|
62
|
-
<
|
|
63
|
-
{@render relation()}
|
|
64
|
-
</div>
|
|
61
|
+
<NamedSlot name="relation" content={relation} />
|
|
65
62
|
{/if}
|
|
66
63
|
</obc-poi-button-aton>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button-data.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcPoiButtonLayout, ObcPoiButtonState, PoiButtonVisualState, ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
8
9
|
import type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -50,14 +51,10 @@ import type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcom
|
|
|
50
51
|
{/if}
|
|
51
52
|
|
|
52
53
|
{#if header}
|
|
53
|
-
<
|
|
54
|
-
{@render header()}
|
|
55
|
-
</div>
|
|
54
|
+
<NamedSlot name="header" content={header} />
|
|
56
55
|
{/if}
|
|
57
56
|
|
|
58
57
|
{#if relation}
|
|
59
|
-
<
|
|
60
|
-
{@render relation()}
|
|
61
|
-
</div>
|
|
58
|
+
<NamedSlot name="relation" content={relation} />
|
|
62
59
|
{/if}
|
|
63
60
|
</obc-poi-button-data>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVesselState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-vessel.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button-vessel.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcPoiButtonLayout, ObcPoiButtonState, PoiButtonVisualState, ObcPoiButtonType, ObcPoiButtonDataItem} from '@oicl/openbridge-webcomponents/dist/ar/poi-button/poi-button.js';
|
|
8
9
|
import type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVesselState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-vessel.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -53,26 +54,18 @@ import type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVessel
|
|
|
53
54
|
{/if}
|
|
54
55
|
|
|
55
56
|
{#if turnIndicator}
|
|
56
|
-
<
|
|
57
|
-
{@render turnIndicator()}
|
|
58
|
-
</div>
|
|
57
|
+
<NamedSlot name="turn-indicator" content={turnIndicator} />
|
|
59
58
|
{/if}
|
|
60
59
|
|
|
61
60
|
{#if speedIndicator}
|
|
62
|
-
<
|
|
63
|
-
{@render speedIndicator()}
|
|
64
|
-
</div>
|
|
61
|
+
<NamedSlot name="speed-indicator" content={speedIndicator} />
|
|
65
62
|
{/if}
|
|
66
63
|
|
|
67
64
|
{#if header}
|
|
68
|
-
<
|
|
69
|
-
{@render header()}
|
|
70
|
-
</div>
|
|
65
|
+
<NamedSlot name="header" content={header} />
|
|
71
66
|
{/if}
|
|
72
67
|
|
|
73
68
|
{#if relation}
|
|
74
|
-
<
|
|
75
|
-
{@render relation()}
|
|
76
|
-
</div>
|
|
69
|
+
<NamedSlot name="relation" content={relation} />
|
|
77
70
|
{/if}
|
|
78
71
|
</obc-poi-button-vessel>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-card/poi-card.js';
|
|
6
6
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {PoiCardClickDetail, PointerDirection} from '@oicl/openbridge-webcomponents/dist/ar/poi-card/poi-card.js';
|
|
8
9
|
import type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -81,14 +82,10 @@ import type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/
|
|
|
81
82
|
{/if}
|
|
82
83
|
|
|
83
84
|
{#if leadingIcon}
|
|
84
|
-
<
|
|
85
|
-
{@render leadingIcon()}
|
|
86
|
-
</div>
|
|
85
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
87
86
|
{/if}
|
|
88
87
|
|
|
89
88
|
{#if poiIcon}
|
|
90
|
-
<
|
|
91
|
-
{@render poiIcon()}
|
|
92
|
-
</div>
|
|
89
|
+
<NamedSlot name="poi-icon" content={poiIcon} />
|
|
93
90
|
{/if}
|
|
94
91
|
</obc-poi-card>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
5
5
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcPoiCardHeaderVariant} from '@oicl/openbridge-webcomponents/dist/ar/poi-card-header/poi-card-header.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -61,14 +62,10 @@
|
|
|
61
62
|
use:forwardEvents={{'close-click': onCloseClick}} >
|
|
62
63
|
|
|
63
64
|
{#if leadingIcon}
|
|
64
|
-
<
|
|
65
|
-
{@render leadingIcon()}
|
|
66
|
-
</div>
|
|
65
|
+
<NamedSlot name="leading-icon" content={leadingIcon} />
|
|
67
66
|
{/if}
|
|
68
67
|
|
|
69
68
|
{#if poiIcon}
|
|
70
|
-
<
|
|
71
|
-
{@render poiIcon()}
|
|
72
|
-
</div>
|
|
69
|
+
<NamedSlot name="poi-icon" content={poiIcon} />
|
|
73
70
|
{/if}
|
|
74
71
|
</obc-poi-card-header>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {PoiFitMode, PoiFrame, PoiDetection, PoiKeyFn} from '@oicl/openbridge-webcomponents/dist/ar/poi-controller/poi-controller.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-controller/poi-controller.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {PoiFitMode, PoiFrame, PoiDetection, PoiKeyFn} from '@oicl/openbridge-webcomponents/dist/ar/poi-controller/poi-controller.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -34,14 +35,10 @@
|
|
|
34
35
|
>
|
|
35
36
|
|
|
36
37
|
{#if media}
|
|
37
|
-
<
|
|
38
|
-
{@render media()}
|
|
39
|
-
</div>
|
|
38
|
+
<NamedSlot name="media" content={media} />
|
|
40
39
|
{/if}
|
|
41
40
|
|
|
42
41
|
{#if stack}
|
|
43
|
-
<
|
|
44
|
-
{@render stack()}
|
|
45
|
-
</div>
|
|
42
|
+
<NamedSlot name="stack" content={stack} />
|
|
46
43
|
{/if}
|
|
47
44
|
</obc-poi-controller>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export type {ObcPoiObjectVesselType} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-vessel.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-vessel.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
8
|
import type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object.js';
|
|
8
9
|
import type {ObcPoiObjectVesselType} from '@oicl/openbridge-webcomponents/dist/ar/poi-object/poi-object-vessel.js';
|
|
9
10
|
import type { Snippet } from 'svelte';
|
|
@@ -38,14 +39,10 @@ import type {ObcPoiObjectVesselType} from '@oicl/openbridge-webcomponents/dist/a
|
|
|
38
39
|
{/if}
|
|
39
40
|
|
|
40
41
|
{#if turnIndicator}
|
|
41
|
-
<
|
|
42
|
-
{@render turnIndicator()}
|
|
43
|
-
</div>
|
|
42
|
+
<NamedSlot name="turn-indicator" content={turnIndicator} />
|
|
44
43
|
{/if}
|
|
45
44
|
|
|
46
45
|
{#if speedIndicator}
|
|
47
|
-
<
|
|
48
|
-
{@render speedIndicator()}
|
|
49
|
-
</div>
|
|
46
|
+
<NamedSlot name="speed-indicator" content={speedIndicator} />
|
|
50
47
|
{/if}
|
|
51
48
|
</obc-poi-object-vessel>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export type {ObcAutomationBadgeMode, ObcAutomationBadgeType} from '@oicl/openbridge-webcomponents/dist/automation/automation-badge/automation-badge.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/automation/automation-badge/automation-badge.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
6
7
|
import type {ObcAutomationBadgeMode, ObcAutomationBadgeType} from '@oicl/openbridge-webcomponents/dist/automation/automation-badge/automation-badge.js';
|
|
7
8
|
import type { Snippet } from 'svelte';
|
|
8
9
|
|
|
@@ -29,9 +30,7 @@
|
|
|
29
30
|
>
|
|
30
31
|
|
|
31
32
|
{#if iconSilhouette}
|
|
32
|
-
<
|
|
33
|
-
{@render iconSilhouette()}
|
|
34
|
-
</div>
|
|
33
|
+
<NamedSlot name="icon-silhouette" content={iconSilhouette} />
|
|
35
34
|
{/if}
|
|
36
35
|
|
|
37
36
|
{#if children}
|
|
@@ -7,6 +7,7 @@ export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
7
7
|
export type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
8
8
|
import '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
9
9
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
10
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
10
11
|
import type {AutomationButtonVariant, AutomationButtonState, AutomationButtonReadoutPosition, AutomationButtonDirection, AutomationButtonPositioning, AutomationButtonOrientation} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
11
12
|
import type {AutomationButtonReadoutStack, AutomationButtonReadoutStackSize} from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
12
13
|
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
@@ -80,56 +81,38 @@ import type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/bui
|
|
|
80
81
|
use:forwardEvents={{'click': onClick}} >
|
|
81
82
|
|
|
82
83
|
{#if badgeTopRight}
|
|
83
|
-
<
|
|
84
|
-
{@render badgeTopRight()}
|
|
85
|
-
</div>
|
|
84
|
+
<NamedSlot name="badge-top-right" content={badgeTopRight} />
|
|
86
85
|
{/if}
|
|
87
86
|
|
|
88
87
|
{#if badgeTopLeft}
|
|
89
|
-
<
|
|
90
|
-
{@render badgeTopLeft()}
|
|
91
|
-
</div>
|
|
88
|
+
<NamedSlot name="badge-top-left" content={badgeTopLeft} />
|
|
92
89
|
{/if}
|
|
93
90
|
|
|
94
91
|
{#if badgeBottomLeft}
|
|
95
|
-
<
|
|
96
|
-
{@render badgeBottomLeft()}
|
|
97
|
-
</div>
|
|
92
|
+
<NamedSlot name="badge-bottom-left" content={badgeBottomLeft} />
|
|
98
93
|
{/if}
|
|
99
94
|
|
|
100
95
|
{#if badgeBottomRight}
|
|
101
|
-
<
|
|
102
|
-
{@render badgeBottomRight()}
|
|
103
|
-
</div>
|
|
96
|
+
<NamedSlot name="badge-bottom-right" content={badgeBottomRight} />
|
|
104
97
|
{/if}
|
|
105
98
|
|
|
106
99
|
{#if icon}
|
|
107
|
-
<
|
|
108
|
-
{@render icon()}
|
|
109
|
-
</div>
|
|
100
|
+
<NamedSlot name="icon" content={icon} />
|
|
110
101
|
{/if}
|
|
111
102
|
|
|
112
103
|
{#if iconSilhouette}
|
|
113
|
-
<
|
|
114
|
-
{@render iconSilhouette()}
|
|
115
|
-
</div>
|
|
104
|
+
<NamedSlot name="icon-silhouette" content={iconSilhouette} />
|
|
116
105
|
{/if}
|
|
117
106
|
|
|
118
107
|
{#if alertIcon}
|
|
119
|
-
<
|
|
120
|
-
{@render alertIcon()}
|
|
121
|
-
</div>
|
|
108
|
+
<NamedSlot name="alert-icon" content={alertIcon} />
|
|
122
109
|
{/if}
|
|
123
110
|
|
|
124
111
|
{#if alertLabel}
|
|
125
|
-
<
|
|
126
|
-
{@render alertLabel()}
|
|
127
|
-
</div>
|
|
112
|
+
<NamedSlot name="alert-label" content={alertLabel} />
|
|
128
113
|
{/if}
|
|
129
114
|
|
|
130
115
|
{#if alertTimer}
|
|
131
|
-
<
|
|
132
|
-
{@render alertTimer()}
|
|
133
|
-
</div>
|
|
116
|
+
<NamedSlot name="alert-timer" content={alertTimer} />
|
|
134
117
|
{/if}
|
|
135
118
|
</obc-automation-button>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/automation/automation-input-modal/automation-input-modal.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
|
|
|
@@ -30,26 +31,18 @@
|
|
|
30
31
|
>
|
|
31
32
|
|
|
32
33
|
{#if header}
|
|
33
|
-
<
|
|
34
|
-
{@render header()}
|
|
35
|
-
</div>
|
|
34
|
+
<NamedSlot name="header" content={header} />
|
|
36
35
|
{/if}
|
|
37
36
|
|
|
38
37
|
{#if preview}
|
|
39
|
-
<
|
|
40
|
-
{@render preview()}
|
|
41
|
-
</div>
|
|
38
|
+
<NamedSlot name="preview" content={preview} />
|
|
42
39
|
{/if}
|
|
43
40
|
|
|
44
41
|
{#if actionPrimary}
|
|
45
|
-
<
|
|
46
|
-
{@render actionPrimary()}
|
|
47
|
-
</div>
|
|
42
|
+
<NamedSlot name="action-primary" content={actionPrimary} />
|
|
48
43
|
{/if}
|
|
49
44
|
|
|
50
45
|
{#if actionSecondary}
|
|
51
|
-
<
|
|
52
|
-
{@render actionSecondary()}
|
|
53
|
-
</div>
|
|
46
|
+
<NamedSlot name="action-secondary" content={actionSecondary} />
|
|
54
47
|
{/if}
|
|
55
48
|
</obc-automation-input-modal>
|
|
@@ -11,6 +11,7 @@ export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
11
11
|
export type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
12
12
|
import '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
13
13
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
14
|
+
import NamedSlot from "../../NamedSlot.svelte";
|
|
14
15
|
import type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
15
16
|
import type {TankTrend, TankType, TankOrientation, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
16
17
|
import type {TankPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/tank-positioning.js';
|
|
@@ -175,62 +176,42 @@ badgeControl?: AutomationButtonBadgeControl;
|
|
|
175
176
|
use:forwardEvents={{'click': onClick}} >
|
|
176
177
|
|
|
177
178
|
{#if badges}
|
|
178
|
-
<
|
|
179
|
-
{@render badges()}
|
|
180
|
-
</div>
|
|
179
|
+
<NamedSlot name="badges" content={badges} />
|
|
181
180
|
{/if}
|
|
182
181
|
|
|
183
182
|
{#if tagSnippet}
|
|
184
|
-
<
|
|
185
|
-
{@render tagSnippet()}
|
|
186
|
-
</div>
|
|
183
|
+
<NamedSlot name="tag" content={tagSnippet} />
|
|
187
184
|
{/if}
|
|
188
185
|
|
|
189
186
|
{#if readout}
|
|
190
|
-
<
|
|
191
|
-
{@render readout()}
|
|
192
|
-
</div>
|
|
187
|
+
<NamedSlot name="readout" content={readout} />
|
|
193
188
|
{/if}
|
|
194
189
|
|
|
195
190
|
{#if maxValue}
|
|
196
|
-
<
|
|
197
|
-
{@render maxValue()}
|
|
198
|
-
</div>
|
|
191
|
+
<NamedSlot name="max-value" content={maxValue} />
|
|
199
192
|
{/if}
|
|
200
193
|
|
|
201
194
|
{#if unit}
|
|
202
|
-
<
|
|
203
|
-
{@render unit()}
|
|
204
|
-
</div>
|
|
195
|
+
<NamedSlot name="unit" content={unit} />
|
|
205
196
|
{/if}
|
|
206
197
|
|
|
207
198
|
{#if currentValue}
|
|
208
|
-
<
|
|
209
|
-
{@render currentValue()}
|
|
210
|
-
</div>
|
|
199
|
+
<NamedSlot name="current-value" content={currentValue} />
|
|
211
200
|
{/if}
|
|
212
201
|
|
|
213
202
|
{#if rich}
|
|
214
|
-
<
|
|
215
|
-
{@render rich()}
|
|
216
|
-
</div>
|
|
203
|
+
<NamedSlot name="rich" content={rich} />
|
|
217
204
|
{/if}
|
|
218
205
|
|
|
219
206
|
{#if alertIcon}
|
|
220
|
-
<
|
|
221
|
-
{@render alertIcon()}
|
|
222
|
-
</div>
|
|
207
|
+
<NamedSlot name="alert-icon" content={alertIcon} />
|
|
223
208
|
{/if}
|
|
224
209
|
|
|
225
210
|
{#if alertLabel}
|
|
226
|
-
<
|
|
227
|
-
{@render alertLabel()}
|
|
228
|
-
</div>
|
|
211
|
+
<NamedSlot name="alert-label" content={alertLabel} />
|
|
229
212
|
{/if}
|
|
230
213
|
|
|
231
214
|
{#if alertTimer}
|
|
232
|
-
<
|
|
233
|
-
{@render alertTimer()}
|
|
234
|
-
</div>
|
|
215
|
+
<NamedSlot name="alert-timer" content={alertTimer} />
|
|
235
216
|
{/if}
|
|
236
217
|
</obc-automation-tank>
|