@oicl/openbridge-webcomponents-svelte 2.0.0-next.2 → 2.0.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ar/chart-object-vessel-button/ObcChartObjectVesselButton.svelte +10 -10
- package/dist/ar/chart-object-vessel-button/ObcChartObjectVesselButton.svelte.d.ts +3 -3
- package/dist/ar/{building-blocks/poi → poi}/ObcPoi.svelte +6 -6
- package/dist/ar/{building-blocks/poi → poi}/ObcPoi.svelte.d.ts +3 -3
- package/dist/ar/{poi-aton → poi}/ObcPoiAton.svelte +6 -4
- package/dist/ar/{poi-aton → poi}/ObcPoiAton.svelte.d.ts +5 -4
- package/dist/ar/{poi-data → poi}/ObcPoiData.svelte +5 -5
- package/dist/ar/{poi-data → poi}/ObcPoiData.svelte.d.ts +6 -6
- package/dist/ar/{poi-vessel → poi}/ObcPoiVessel.svelte +3 -3
- package/dist/ar/{poi-vessel → poi}/ObcPoiVessel.svelte.d.ts +2 -2
- package/dist/ar/{building-blocks/poi/ObcPoiBase.svelte → poi/PoiBase.svelte} +9 -10
- package/dist/ar/{building-blocks/poi/ObcPoiBase.svelte.d.ts → poi/PoiBase.svelte.d.ts} +8 -9
- package/dist/ar/{building-blocks/poi-button → poi-button}/ObcPoiButton.svelte +4 -4
- package/dist/ar/{building-blocks/poi-button → poi-button}/ObcPoiButton.svelte.d.ts +2 -2
- package/dist/ar/{poi-button-aton → poi-button}/ObcPoiButtonAton.svelte +6 -4
- package/dist/ar/{poi-button-aton → poi-button}/ObcPoiButtonAton.svelte.d.ts +5 -4
- package/dist/ar/{poi-button-data → poi-button}/ObcPoiButtonData.svelte +5 -5
- package/dist/ar/{poi-button-data → poi-button}/ObcPoiButtonData.svelte.d.ts +6 -6
- package/dist/ar/{poi-button-vessel → poi-button}/ObcPoiButtonVessel.svelte +3 -3
- package/dist/ar/{poi-button-vessel → poi-button}/ObcPoiButtonVessel.svelte.d.ts +2 -2
- package/dist/ar/poi-controller/ObcPoiController.svelte +14 -5
- package/dist/ar/poi-controller/ObcPoiController.svelte.d.ts +2 -1
- package/dist/ar/{building-blocks/poi-object/ObcAbstractPoiObject.svelte → poi-object/AbstractPoiObject.svelte} +5 -5
- package/dist/ar/poi-object/AbstractPoiObject.svelte.d.ts +22 -0
- package/dist/ar/{building-blocks/poi-object → poi-object}/ObcPoiObject.svelte +4 -4
- package/dist/ar/{building-blocks/poi-object → poi-object}/ObcPoiObject.svelte.d.ts +2 -2
- package/dist/ar/{poi-object-aton → poi-object}/ObcPoiObjectAton.svelte +3 -3
- package/dist/ar/{poi-object-aton → poi-object}/ObcPoiObjectAton.svelte.d.ts +2 -2
- package/dist/ar/{poi-object-data → poi-object}/ObcPoiObjectData.svelte +3 -3
- package/dist/ar/{poi-object-data → poi-object}/ObcPoiObjectData.svelte.d.ts +2 -2
- package/dist/ar/{poi-object-vessel → poi-object}/ObcPoiObjectVessel.svelte +3 -3
- package/dist/ar/{poi-object-vessel → poi-object}/ObcPoiObjectVessel.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte +6 -4
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte.d.ts +9 -4
- package/dist/bars-graphs/donut-chart/ObcDonutChart.svelte +5 -3
- package/dist/bars-graphs/donut-chart/ObcDonutChart.svelte.d.ts +3 -4
- package/dist/bars-graphs/pie-chart/ObcPieChart.svelte +5 -3
- package/dist/bars-graphs/pie-chart/ObcPieChart.svelte.d.ts +3 -8
- package/dist/bars-graphs/polar-chart/ObcPolarChart.svelte +5 -3
- package/dist/bars-graphs/polar-chart/ObcPolarChart.svelte.d.ts +3 -4
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte +3 -3
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte.d.ts +3 -8
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte +3 -3
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte.d.ts +3 -8
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte +6 -6
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +6 -13
- package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte +7 -7
- package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte.d.ts +2 -2
- package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte +13 -13
- package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte.d.ts +4 -4
- package/dist/components/alert-menu/ObcAlertMenu.svelte +11 -1
- package/dist/components/alert-menu/ObcAlertMenu.svelte.d.ts +10 -0
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte +4 -4
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte.d.ts +6 -10
- package/dist/components/dropdown-button/ObcDropdownButton.svelte +3 -3
- package/dist/components/dropdown-button/ObcDropdownButton.svelte.d.ts +3 -6
- package/dist/components/elevated-card-radio/ObcElevatedCardRadio.svelte +4 -4
- package/dist/components/elevated-card-radio/ObcElevatedCardRadio.svelte.d.ts +1 -1
- package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte +3 -3
- package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte.d.ts +3 -5
- package/dist/components/floating-item/ObcFloatingItem.svelte +7 -7
- package/dist/components/floating-item/ObcFloatingItem.svelte.d.ts +2 -2
- package/dist/components/form-container/ObcFormContainer.svelte +4 -4
- package/dist/components/form-container/ObcFormContainer.svelte.d.ts +1 -1
- package/dist/components/menu-button/ObcMenuButton.svelte +6 -4
- package/dist/components/menu-button/ObcMenuButton.svelte.d.ts +5 -8
- package/dist/components/message-menu-item/ObcMessageMenuItem.svelte +7 -7
- package/dist/components/message-menu-item/ObcMessageMenuItem.svelte.d.ts +2 -2
- package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte +7 -7
- package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte.d.ts +2 -2
- package/dist/components/slider-double/ObcSliderDouble.svelte +34 -3
- package/dist/components/slider-double/ObcSliderDouble.svelte.d.ts +19 -0
- package/dist/components/split-button/ObcSplitButton.svelte +6 -4
- package/dist/components/split-button/ObcSplitButton.svelte.d.ts +5 -9
- package/dist/components/tab-item/ObcTabItem.svelte +4 -4
- package/dist/components/tab-item/ObcTabItem.svelte.d.ts +1 -1
- package/dist/components/title-container/ObcTitleContainer.svelte +4 -4
- package/dist/components/title-container/ObcTitleContainer.svelte.d.ts +1 -1
- package/dist/index.d.ts +15 -14
- package/dist/index.js +15 -14
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte +3 -5
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte.d.ts +3 -10
- package/dist/navigation-instruments/compass/ObcCompass.svelte +17 -1
- package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +16 -0
- package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte +8 -1
- package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte.d.ts +7 -0
- package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte +16 -1
- package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte.d.ts +15 -0
- package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte +3 -3
- package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte.d.ts +3 -8
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte +3 -3
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte.d.ts +3 -8
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte +3 -3
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte.d.ts +3 -8
- package/dist/navigation-instruments/pitch/ObcPitch.svelte +12 -1
- package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +11 -0
- package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte +13 -1
- package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte.d.ts +12 -0
- package/dist/navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte +6 -0
- package/dist/navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte.d.ts +6 -0
- package/dist/navigation-instruments/roll/ObcRoll.svelte +13 -1
- package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +12 -0
- package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte +10 -0
- package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte.d.ts +10 -0
- package/dist/navigation-instruments/watch/ObcWatch.svelte +3 -1
- package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +2 -0
- package/dist/navigation-instruments/watch-flat/ObcWatchFlat.svelte +3 -1
- package/dist/navigation-instruments/watch-flat/ObcWatchFlat.svelte.d.ts +2 -0
- package/dist/navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte +62 -0
- package/dist/navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte.d.ts +51 -0
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte +5 -3
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte.d.ts +1 -0
- package/package.json +2 -2
- package/dist/ar/building-blocks/poi-object/ObcAbstractPoiObject.svelte.d.ts +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ObcContextMenuInputChangeEvent, ObcContextMenuInputItemClickEvent, ContextMenuType, ContextMenuOption, ColumnGroup } from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
@@ -50,14 +50,8 @@ When enabled, only one option can be selected in each group or column. */
|
|
|
50
50
|
selectPerGroup?: boolean | undefined;
|
|
51
51
|
}
|
|
52
52
|
export interface Events {
|
|
53
|
-
onChange?: (event:
|
|
54
|
-
|
|
55
|
-
selectedOptions: ContextMenuOption[];
|
|
56
|
-
}>) => void;
|
|
57
|
-
onItemClick?: (event: CustomEvent<{
|
|
58
|
-
value: string;
|
|
59
|
-
option: ContextMenuOption;
|
|
60
|
-
}>) => void;
|
|
53
|
+
onChange?: (event: ObcContextMenuInputChangeEvent) => void;
|
|
54
|
+
onItemClick?: (event: ObcContextMenuInputItemClickEvent) => void;
|
|
61
55
|
onClose?: (event: CustomEvent<void>) => void;
|
|
62
56
|
}
|
|
63
57
|
export interface Slots {
|
|
@@ -65,8 +59,10 @@ export interface Slots {
|
|
|
65
59
|
}
|
|
66
60
|
type $$ComponentProps = Props & Events & Slots;
|
|
67
61
|
declare const ObcContextMenuInput: import("svelte").Component<$$ComponentProps, {
|
|
68
|
-
|
|
62
|
+
ObcContextMenuInputChangeEvent: typeof ObcContextMenuInputChangeEvent;
|
|
63
|
+
ObcContextMenuInputItemClickEvent: typeof ObcContextMenuInputItemClickEvent;
|
|
69
64
|
ContextMenuType: typeof ContextMenuType;
|
|
65
|
+
ContextMenuOption: typeof ContextMenuOption;
|
|
70
66
|
ColumnGroup: typeof ColumnGroup;
|
|
71
67
|
}, "">;
|
|
72
68
|
type ObcContextMenuInput = ReturnType<typeof ObcContextMenuInput>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ObcDropdownButtonChangeEvent, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
3
|
+
export type {ObcDropdownButtonChangeEvent, DropdownButtonOption, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {ObcDropdownButtonChangeEvent, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
6
|
+
import type {ObcDropdownButtonChangeEvent, DropdownButtonOption, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
@@ -16,7 +16,7 @@ Example:
|
|
|
16
16
|
{ value: 'volvo', label: 'Volvo' },
|
|
17
17
|
{ value: 'xc90', label: 'XC 90', level: 2 }
|
|
18
18
|
] */
|
|
19
|
-
options?:
|
|
19
|
+
options?: DropdownButtonOption[];
|
|
20
20
|
/** The value of the currently selected option. If not set, defaults to the first option in the list. */
|
|
21
21
|
value?: string | undefined;
|
|
22
22
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
2
|
-
import type { ObcDropdownButtonChangeEvent, DropdownButtonType } from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
2
|
+
import type { ObcDropdownButtonChangeEvent, DropdownButtonOption, DropdownButtonType } from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
@@ -11,11 +11,7 @@ Example:
|
|
|
11
11
|
{ value: 'volvo', label: 'Volvo' },
|
|
12
12
|
{ value: 'xc90', label: 'XC 90', level: 2 }
|
|
13
13
|
] */
|
|
14
|
-
options?:
|
|
15
|
-
value: string;
|
|
16
|
-
label: string;
|
|
17
|
-
level?: number | undefined;
|
|
18
|
-
}[];
|
|
14
|
+
options?: DropdownButtonOption[];
|
|
19
15
|
/** The value of the currently selected option. If not set, defaults to the first option in the list. */
|
|
20
16
|
value?: string | undefined;
|
|
21
17
|
disabled?: boolean;
|
|
@@ -43,6 +39,7 @@ export interface Slots {
|
|
|
43
39
|
type $$ComponentProps = Props & Events & Slots;
|
|
44
40
|
declare const ObcDropdownButton: import("svelte").Component<$$ComponentProps, {
|
|
45
41
|
ObcDropdownButtonChangeEvent: typeof ObcDropdownButtonChangeEvent;
|
|
42
|
+
DropdownButtonOption: typeof DropdownButtonOption;
|
|
46
43
|
DropdownButtonType: typeof DropdownButtonType;
|
|
47
44
|
}, "">;
|
|
48
45
|
type ObcDropdownButton = ReturnType<typeof ObcDropdownButton>;
|
|
@@ -39,9 +39,9 @@ required?: boolean
|
|
|
39
39
|
}
|
|
40
40
|
export interface Slots {
|
|
41
41
|
leadingIcon?: Snippet;
|
|
42
|
-
|
|
42
|
+
labelSnippet?: Snippet
|
|
43
43
|
}
|
|
44
|
-
const {onChange, class: className, style, leadingIcon,
|
|
44
|
+
const {onChange, class: className, style, leadingIcon, labelSnippet, ...props} = $props<Props & Events & Slots>();
|
|
45
45
|
|
|
46
46
|
</script>
|
|
47
47
|
<obc-elevated-card-radio
|
|
@@ -56,9 +56,9 @@ required?: boolean
|
|
|
56
56
|
</div>
|
|
57
57
|
{/if}
|
|
58
58
|
|
|
59
|
-
{#if
|
|
59
|
+
{#if labelSnippet}
|
|
60
60
|
<div slot="label">
|
|
61
|
-
{@render
|
|
61
|
+
{@render labelSnippet()}
|
|
62
62
|
</div>
|
|
63
63
|
{/if}
|
|
64
64
|
</obc-elevated-card-radio>
|
|
@@ -34,7 +34,7 @@ export interface Events {
|
|
|
34
34
|
}
|
|
35
35
|
export interface Slots {
|
|
36
36
|
leadingIcon?: Snippet;
|
|
37
|
-
|
|
37
|
+
labelSnippet?: Snippet;
|
|
38
38
|
}
|
|
39
39
|
type $$ComponentProps = Props & Events & Slots;
|
|
40
40
|
declare const ObcElevatedCardRadio: import("svelte").Component<$$ComponentProps, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ObcElevatedCardRadioGroupChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
3
|
+
export type {ObcElevatedCardRadioGroupChangeEvent, ElevatedCardRadioGroupOption} from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {ObcElevatedCardRadioGroupChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
6
|
+
import type {ObcElevatedCardRadioGroupChangeEvent, ElevatedCardRadioGroupOption} from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/** Array of options to display as card radios. Each option should be an object with a `label` (displayed text) and a `value` (submitted value).
|
|
13
13
|
|
|
14
14
|
Example: `[{label: 'Option 1', value: '1'}, {label: 'Option 2', value: '2'}]` */
|
|
15
|
-
options?:
|
|
15
|
+
options?: ElevatedCardRadioGroupOption[];
|
|
16
16
|
/** Shared name for all radio inputs in the group. Ensures native radio group behavior and correct form submission.
|
|
17
17
|
|
|
18
18
|
Default: `'default'` */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
2
|
-
import type { ObcElevatedCardRadioGroupChangeEvent } from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
2
|
+
import type { ObcElevatedCardRadioGroupChangeEvent, ElevatedCardRadioGroupOption } from '@oicl/openbridge-webcomponents/dist/components/elevated-card-radio-group/elevated-card-radio-group.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
@@ -7,10 +7,7 @@ export interface Props {
|
|
|
7
7
|
/** Array of options to display as card radios. Each option should be an object with a `label` (displayed text) and a `value` (submitted value).
|
|
8
8
|
|
|
9
9
|
Example: `[{label: 'Option 1', value: '1'}, {label: 'Option 2', value: '2'}]` */
|
|
10
|
-
options?:
|
|
11
|
-
label: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
10
|
+
options?: ElevatedCardRadioGroupOption[];
|
|
14
11
|
/** Shared name for all radio inputs in the group. Ensures native radio group behavior and correct form submission.
|
|
15
12
|
|
|
16
13
|
Default: `'default'` */
|
|
@@ -33,6 +30,7 @@ export interface Slots {
|
|
|
33
30
|
type $$ComponentProps = Props & Events & Slots;
|
|
34
31
|
declare const ObcElevatedCardRadioGroup: import("svelte").Component<$$ComponentProps, {
|
|
35
32
|
ObcElevatedCardRadioGroupChangeEvent: typeof ObcElevatedCardRadioGroupChangeEvent;
|
|
33
|
+
ElevatedCardRadioGroupOption: typeof ElevatedCardRadioGroupOption;
|
|
36
34
|
}, "">;
|
|
37
35
|
type ObcElevatedCardRadioGroup = ReturnType<typeof ObcElevatedCardRadioGroup>;
|
|
38
36
|
export default ObcElevatedCardRadioGroup;
|
|
@@ -54,10 +54,10 @@ lineType?: ObcFloatingItemLineType
|
|
|
54
54
|
description?: Snippet;
|
|
55
55
|
time?: Snippet;
|
|
56
56
|
day?: Snippet;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
actionSnippet?: Snippet;
|
|
58
|
+
action2Snippet?: Snippet
|
|
59
59
|
}
|
|
60
|
-
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day,
|
|
60
|
+
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day, actionSnippet, action2Snippet, ...props} = $props<Props & Events & Slots>();
|
|
61
61
|
|
|
62
62
|
</script>
|
|
63
63
|
<obc-floating-item
|
|
@@ -104,15 +104,15 @@ lineType?: ObcFloatingItemLineType
|
|
|
104
104
|
</div>
|
|
105
105
|
{/if}
|
|
106
106
|
|
|
107
|
-
{#if
|
|
107
|
+
{#if actionSnippet}
|
|
108
108
|
<div slot="action">
|
|
109
|
-
{@render
|
|
109
|
+
{@render actionSnippet()}
|
|
110
110
|
</div>
|
|
111
111
|
{/if}
|
|
112
112
|
|
|
113
|
-
{#if
|
|
113
|
+
{#if action2Snippet}
|
|
114
114
|
<div slot="action2">
|
|
115
|
-
{@render
|
|
115
|
+
{@render action2Snippet()}
|
|
116
116
|
</div>
|
|
117
117
|
{/if}
|
|
118
118
|
</obc-floating-item>
|
|
@@ -49,8 +49,8 @@ export interface Slots {
|
|
|
49
49
|
description?: Snippet;
|
|
50
50
|
time?: Snippet;
|
|
51
51
|
day?: Snippet;
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
actionSnippet?: Snippet;
|
|
53
|
+
action2Snippet?: Snippet;
|
|
54
54
|
}
|
|
55
55
|
type $$ComponentProps = Props & Events & Slots;
|
|
56
56
|
declare const ObcFloatingItem: import("svelte").Component<$$ComponentProps, {
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
}
|
|
18
18
|
export interface Slots {
|
|
19
19
|
title?: Snippet;
|
|
20
|
-
|
|
20
|
+
contentTitleSnippet?: Snippet;
|
|
21
21
|
children?: Snippet;
|
|
22
22
|
footer?: Snippet
|
|
23
23
|
}
|
|
24
|
-
const { class: className, style, title,
|
|
24
|
+
const { class: className, style, title, contentTitleSnippet, children, footer, ...props} = $props<Props & Events & Slots>();
|
|
25
25
|
|
|
26
26
|
</script>
|
|
27
27
|
<obc-form-container
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
</div>
|
|
37
37
|
{/if}
|
|
38
38
|
|
|
39
|
-
{#if
|
|
39
|
+
{#if contentTitleSnippet}
|
|
40
40
|
<div slot="content-title">
|
|
41
|
-
{@render
|
|
41
|
+
{@render contentTitleSnippet()}
|
|
42
42
|
</div>
|
|
43
43
|
{/if}
|
|
44
44
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {
|
|
3
|
+
export type {ObcSplitButtonChangeEvent, ObcMenuButtonItemClickEvent} from '@oicl/openbridge-webcomponents/dist/components/menu-button/menu-button.js';
|
|
4
|
+
export type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
4
5
|
import '@oicl/openbridge-webcomponents/dist/components/menu-button/menu-button.js';
|
|
5
6
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {
|
|
7
|
+
import type {ObcSplitButtonChangeEvent, ObcMenuButtonItemClickEvent} from '@oicl/openbridge-webcomponents/dist/components/menu-button/menu-button.js';
|
|
8
|
+
import type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
7
9
|
import type { Snippet } from 'svelte';
|
|
8
10
|
|
|
9
11
|
export interface Props {
|
|
@@ -64,8 +66,8 @@ Disables both the button and the menu. */
|
|
|
64
66
|
disabled?: boolean
|
|
65
67
|
}
|
|
66
68
|
export interface Events {
|
|
67
|
-
onChange?: (event:
|
|
68
|
-
onItemClick?: (event:
|
|
69
|
+
onChange?: (event: ObcSplitButtonChangeEvent) => void;
|
|
70
|
+
onItemClick?: (event: ObcMenuButtonItemClickEvent) => void;
|
|
69
71
|
onOpen?: (event: CustomEvent<void>) => void;
|
|
70
72
|
onClose?: (event: CustomEvent<void>) => void
|
|
71
73
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/menu-button/menu-button.js';
|
|
2
|
+
import type { ObcSplitButtonChangeEvent, ObcMenuButtonItemClickEvent } from '@oicl/openbridge-webcomponents/dist/components/menu-button/menu-button.js';
|
|
2
3
|
import type { ContextMenuOption, ContextMenuType, ColumnGroup } from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
3
4
|
import type { Snippet } from 'svelte';
|
|
4
5
|
export interface Props {
|
|
@@ -59,14 +60,8 @@ Disables both the button and the menu. */
|
|
|
59
60
|
disabled?: boolean;
|
|
60
61
|
}
|
|
61
62
|
export interface Events {
|
|
62
|
-
onChange?: (event:
|
|
63
|
-
|
|
64
|
-
selectedOptions: Array<ContextMenuOption>;
|
|
65
|
-
}>) => void;
|
|
66
|
-
onItemClick?: (event: CustomEvent<{
|
|
67
|
-
value: string;
|
|
68
|
-
option: ContextMenuOption;
|
|
69
|
-
}>) => void;
|
|
63
|
+
onChange?: (event: ObcSplitButtonChangeEvent) => void;
|
|
64
|
+
onItemClick?: (event: ObcMenuButtonItemClickEvent) => void;
|
|
70
65
|
onOpen?: (event: CustomEvent<void>) => void;
|
|
71
66
|
onClose?: (event: CustomEvent<void>) => void;
|
|
72
67
|
}
|
|
@@ -75,6 +70,8 @@ export interface Slots {
|
|
|
75
70
|
}
|
|
76
71
|
type $$ComponentProps = Props & Events & Slots;
|
|
77
72
|
declare const ObcMenuButton: import("svelte").Component<$$ComponentProps, {
|
|
73
|
+
ObcSplitButtonChangeEvent: typeof ObcSplitButtonChangeEvent;
|
|
74
|
+
ObcMenuButtonItemClickEvent: typeof ObcMenuButtonItemClickEvent;
|
|
78
75
|
ContextMenuOption: typeof ContextMenuOption;
|
|
79
76
|
ContextMenuType: typeof ContextMenuType;
|
|
80
77
|
ColumnGroup: typeof ColumnGroup;
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
onSecondaryActionClick?: (event: CustomEvent<void>) => void
|
|
32
32
|
}
|
|
33
33
|
export interface Slots {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
titleSnippet?: Snippet;
|
|
35
|
+
descriptionSnippet?: Snippet;
|
|
36
36
|
actionLabel?: Snippet;
|
|
37
37
|
primaryIcon?: Snippet;
|
|
38
38
|
secondaryIcon?: Snippet;
|
|
39
39
|
trailingIcon?: Snippet
|
|
40
40
|
}
|
|
41
|
-
const {onMessageClick, onPrimaryActionClick, onSecondaryActionClick, class: className, style,
|
|
41
|
+
const {onMessageClick, onPrimaryActionClick, onSecondaryActionClick, class: className, style, titleSnippet, descriptionSnippet, actionLabel, primaryIcon, secondaryIcon, trailingIcon, ...props} = $props<Props & Events & Slots>();
|
|
42
42
|
|
|
43
43
|
</script>
|
|
44
44
|
<obc-message-menu-item
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
onprimary-action-click={onPrimaryActionClick}
|
|
50
50
|
onsecondary-action-click={onSecondaryActionClick} >
|
|
51
51
|
|
|
52
|
-
{#if
|
|
52
|
+
{#if titleSnippet}
|
|
53
53
|
<div slot="title">
|
|
54
|
-
{@render
|
|
54
|
+
{@render titleSnippet()}
|
|
55
55
|
</div>
|
|
56
56
|
{/if}
|
|
57
57
|
|
|
58
|
-
{#if
|
|
58
|
+
{#if descriptionSnippet}
|
|
59
59
|
<div slot="description">
|
|
60
|
-
{@render
|
|
60
|
+
{@render descriptionSnippet()}
|
|
61
61
|
</div>
|
|
62
62
|
{/if}
|
|
63
63
|
|
|
@@ -28,8 +28,8 @@ export interface Events {
|
|
|
28
28
|
onSecondaryActionClick?: (event: CustomEvent<void>) => void;
|
|
29
29
|
}
|
|
30
30
|
export interface Slots {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
titleSnippet?: Snippet;
|
|
32
|
+
descriptionSnippet?: Snippet;
|
|
33
33
|
actionLabel?: Snippet;
|
|
34
34
|
primaryIcon?: Snippet;
|
|
35
35
|
secondaryIcon?: Snippet;
|
|
@@ -50,10 +50,10 @@ lineType?: ObcFloatingItemLineType
|
|
|
50
50
|
description?: Snippet;
|
|
51
51
|
time?: Snippet;
|
|
52
52
|
day?: Snippet;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
actionSnippet?: Snippet;
|
|
54
|
+
action2Snippet?: Snippet
|
|
55
55
|
}
|
|
56
|
-
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day,
|
|
56
|
+
const {onActionClick, onAction2Click, onDismissClick, class: className, style, primaryIcon, secondaryIcon, title, description, time, day, actionSnippet, action2Snippet, ...props} = $props<Props & Events & Slots>();
|
|
57
57
|
|
|
58
58
|
</script>
|
|
59
59
|
<obc-notification-floating-item
|
|
@@ -100,15 +100,15 @@ lineType?: ObcFloatingItemLineType
|
|
|
100
100
|
</div>
|
|
101
101
|
{/if}
|
|
102
102
|
|
|
103
|
-
{#if
|
|
103
|
+
{#if actionSnippet}
|
|
104
104
|
<div slot="action">
|
|
105
|
-
{@render
|
|
105
|
+
{@render actionSnippet()}
|
|
106
106
|
</div>
|
|
107
107
|
{/if}
|
|
108
108
|
|
|
109
|
-
{#if
|
|
109
|
+
{#if action2Snippet}
|
|
110
110
|
<div slot="action2">
|
|
111
|
-
{@render
|
|
111
|
+
{@render action2Snippet()}
|
|
112
112
|
</div>
|
|
113
113
|
{/if}
|
|
114
114
|
</obc-notification-floating-item>
|
|
@@ -45,8 +45,8 @@ export interface Slots {
|
|
|
45
45
|
description?: Snippet;
|
|
46
46
|
time?: Snippet;
|
|
47
47
|
day?: Snippet;
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
actionSnippet?: Snippet;
|
|
49
|
+
action2Snippet?: Snippet;
|
|
50
50
|
}
|
|
51
51
|
type $$ComponentProps = Props & Events & Slots;
|
|
52
52
|
declare const ObcNotificationFloatingItem: import("svelte").Component<$$ComponentProps, {
|
|
@@ -46,16 +46,35 @@ labelUnit?: string;
|
|
|
46
46
|
/** Number of decimal places to display in value labels. */
|
|
47
47
|
labelDecimals?: number;
|
|
48
48
|
/** CSS width for value labels (e.g., "5ch", "60px"). */
|
|
49
|
-
labelWidth?: string
|
|
49
|
+
labelWidth?: string;
|
|
50
|
+
/** Whether to show the left (low) readout label.
|
|
51
|
+
|
|
52
|
+
When false, the left readout is hidden entirely. When true, the readout
|
|
53
|
+
renders the formatted `low` value or the content slotted into `left-readout`.
|
|
54
|
+
|
|
55
|
+
Default is true. Set via JavaScript property (no HTML attribute). */
|
|
56
|
+
showLeftReadout?: boolean;
|
|
57
|
+
/** Whether to show the right (high) readout label.
|
|
58
|
+
|
|
59
|
+
When false, the right readout is hidden entirely. When true, the readout
|
|
60
|
+
renders the formatted `high` value or the content slotted into `right-readout`.
|
|
61
|
+
|
|
62
|
+
Default is true. Set via JavaScript property (no HTML attribute). */
|
|
63
|
+
showRightReadout?: boolean;
|
|
64
|
+
/** Removes spacing between the slider and its container edges for seamless
|
|
65
|
+
layout integration. Reflected to the `hugcontainer` HTML attribute. */
|
|
66
|
+
hugContainer?: boolean
|
|
50
67
|
}
|
|
51
68
|
export interface Events {
|
|
52
69
|
onValue?: (event: ObcSliderDoubleValueEvent) => void
|
|
53
70
|
}
|
|
54
71
|
export interface Slots {
|
|
55
72
|
iconLeft?: Snippet;
|
|
56
|
-
iconRight?: Snippet
|
|
73
|
+
iconRight?: Snippet;
|
|
74
|
+
leftReadout?: Snippet;
|
|
75
|
+
rightReadout?: Snippet
|
|
57
76
|
}
|
|
58
|
-
const {onValue, class: className, style, iconLeft, iconRight, ...props} = $props<Props & Events & Slots>();
|
|
77
|
+
const {onValue, class: className, style, iconLeft, iconRight, leftReadout, rightReadout, ...props} = $props<Props & Events & Slots>();
|
|
59
78
|
|
|
60
79
|
</script>
|
|
61
80
|
<obc-slider-double
|
|
@@ -75,4 +94,16 @@ labelWidth?: string
|
|
|
75
94
|
{@render iconRight()}
|
|
76
95
|
</div>
|
|
77
96
|
{/if}
|
|
97
|
+
|
|
98
|
+
{#if leftReadout}
|
|
99
|
+
<div slot="left-readout">
|
|
100
|
+
{@render leftReadout()}
|
|
101
|
+
</div>
|
|
102
|
+
{/if}
|
|
103
|
+
|
|
104
|
+
{#if rightReadout}
|
|
105
|
+
<div slot="right-readout">
|
|
106
|
+
{@render rightReadout()}
|
|
107
|
+
</div>
|
|
108
|
+
{/if}
|
|
78
109
|
</obc-slider-double>
|
|
@@ -42,6 +42,23 @@ Default is 1/3 (i.e., 3 seconds for full range). */
|
|
|
42
42
|
labelDecimals?: number;
|
|
43
43
|
/** CSS width for value labels (e.g., "5ch", "60px"). */
|
|
44
44
|
labelWidth?: string;
|
|
45
|
+
/** Whether to show the left (low) readout label.
|
|
46
|
+
|
|
47
|
+
When false, the left readout is hidden entirely. When true, the readout
|
|
48
|
+
renders the formatted `low` value or the content slotted into `left-readout`.
|
|
49
|
+
|
|
50
|
+
Default is true. Set via JavaScript property (no HTML attribute). */
|
|
51
|
+
showLeftReadout?: boolean;
|
|
52
|
+
/** Whether to show the right (high) readout label.
|
|
53
|
+
|
|
54
|
+
When false, the right readout is hidden entirely. When true, the readout
|
|
55
|
+
renders the formatted `high` value or the content slotted into `right-readout`.
|
|
56
|
+
|
|
57
|
+
Default is true. Set via JavaScript property (no HTML attribute). */
|
|
58
|
+
showRightReadout?: boolean;
|
|
59
|
+
/** Removes spacing between the slider and its container edges for seamless
|
|
60
|
+
layout integration. Reflected to the `hugcontainer` HTML attribute. */
|
|
61
|
+
hugContainer?: boolean;
|
|
45
62
|
}
|
|
46
63
|
export interface Events {
|
|
47
64
|
onValue?: (event: ObcSliderDoubleValueEvent) => void;
|
|
@@ -49,6 +66,8 @@ export interface Events {
|
|
|
49
66
|
export interface Slots {
|
|
50
67
|
iconLeft?: Snippet;
|
|
51
68
|
iconRight?: Snippet;
|
|
69
|
+
leftReadout?: Snippet;
|
|
70
|
+
rightReadout?: Snippet;
|
|
52
71
|
}
|
|
53
72
|
type $$ComponentProps = Props & Events & Slots;
|
|
54
73
|
declare const ObcSliderDouble: import("svelte").Component<$$ComponentProps, {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {
|
|
3
|
+
export type {ObcSplitButtonClickEvent, ObcSplitButtonChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
4
|
+
export type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
4
5
|
import '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
5
6
|
import { setProperties } from "../../util.js";
|
|
6
|
-
import type {
|
|
7
|
+
import type {ObcSplitButtonClickEvent, ObcSplitButtonChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
8
|
+
import type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
7
9
|
import type { Snippet } from 'svelte';
|
|
8
10
|
|
|
9
11
|
export interface Props {
|
|
@@ -53,8 +55,8 @@ Use instead of `options` for grouped or subtitle layouts. */
|
|
|
53
55
|
columnGroups?: ColumnGroup[]
|
|
54
56
|
}
|
|
55
57
|
export interface Events {
|
|
56
|
-
onClick?: (event:
|
|
57
|
-
onChange?: (event:
|
|
58
|
+
onClick?: (event: ObcSplitButtonClickEvent) => void;
|
|
59
|
+
onChange?: (event: ObcSplitButtonChangeEvent) => void
|
|
58
60
|
}
|
|
59
61
|
export interface Slots {
|
|
60
62
|
icon?: Snippet
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
2
|
+
import type { ObcSplitButtonClickEvent, ObcSplitButtonChangeEvent } from '@oicl/openbridge-webcomponents/dist/components/split-button/split-button.js';
|
|
2
3
|
import type { ContextMenuOption, ContextMenuType, ColumnGroup } from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
|
|
3
4
|
import type { Snippet } from 'svelte';
|
|
4
5
|
export interface Props {
|
|
@@ -48,21 +49,16 @@ Use instead of `options` for grouped or subtitle layouts. */
|
|
|
48
49
|
columnGroups?: ColumnGroup[];
|
|
49
50
|
}
|
|
50
51
|
export interface Events {
|
|
51
|
-
onClick?: (event:
|
|
52
|
-
|
|
53
|
-
value?: string;
|
|
54
|
-
option?: ContextMenuOption;
|
|
55
|
-
}>) => void;
|
|
56
|
-
onChange?: (event: CustomEvent<{
|
|
57
|
-
selectedValues: string[];
|
|
58
|
-
selectedOptions: Array<ContextMenuOption>;
|
|
59
|
-
}>) => void;
|
|
52
|
+
onClick?: (event: ObcSplitButtonClickEvent) => void;
|
|
53
|
+
onChange?: (event: ObcSplitButtonChangeEvent) => void;
|
|
60
54
|
}
|
|
61
55
|
export interface Slots {
|
|
62
56
|
icon?: Snippet;
|
|
63
57
|
}
|
|
64
58
|
type $$ComponentProps = Props & Events & Slots;
|
|
65
59
|
declare const ObcSplitButton: import("svelte").Component<$$ComponentProps, {
|
|
60
|
+
ObcSplitButtonClickEvent: typeof ObcSplitButtonClickEvent;
|
|
61
|
+
ObcSplitButtonChangeEvent: typeof ObcSplitButtonChangeEvent;
|
|
66
62
|
ContextMenuOption: typeof ContextMenuOption;
|
|
67
63
|
ContextMenuType: typeof ContextMenuType;
|
|
68
64
|
ColumnGroup: typeof ColumnGroup;
|
|
@@ -93,10 +93,10 @@ showLeadingBadgeIcon?: boolean
|
|
|
93
93
|
}
|
|
94
94
|
export interface Slots {
|
|
95
95
|
leadingIcon?: Snippet;
|
|
96
|
-
|
|
96
|
+
titleSnippet?: Snippet;
|
|
97
97
|
badgeIcon?: Snippet
|
|
98
98
|
}
|
|
99
|
-
const {onTabClick, onTabClose, class: className, style, leadingIcon,
|
|
99
|
+
const {onTabClick, onTabClose, class: className, style, leadingIcon, titleSnippet, badgeIcon, ...props} = $props<Props & Events & Slots>();
|
|
100
100
|
|
|
101
101
|
</script>
|
|
102
102
|
<obc-tab-item
|
|
@@ -112,9 +112,9 @@ showLeadingBadgeIcon?: boolean
|
|
|
112
112
|
</div>
|
|
113
113
|
{/if}
|
|
114
114
|
|
|
115
|
-
{#if
|
|
115
|
+
{#if titleSnippet}
|
|
116
116
|
<div slot="title">
|
|
117
|
-
{@render
|
|
117
|
+
{@render titleSnippet()}
|
|
118
118
|
</div>
|
|
119
119
|
{/if}
|
|
120
120
|
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
export interface Slots {
|
|
20
20
|
icon?: Snippet;
|
|
21
21
|
title?: Snippet;
|
|
22
|
-
|
|
22
|
+
labelSnippet?: Snippet;
|
|
23
23
|
actions?: Snippet
|
|
24
24
|
}
|
|
25
|
-
const {onActionClick, class: className, style, icon, title,
|
|
25
|
+
const {onActionClick, class: className, style, icon, title, labelSnippet, actions, ...props} = $props<Props & Events & Slots>();
|
|
26
26
|
|
|
27
27
|
</script>
|
|
28
28
|
<obc-title-container
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
{/if}
|
|
45
45
|
|
|
46
|
-
{#if
|
|
46
|
+
{#if labelSnippet}
|
|
47
47
|
<div slot="label">
|
|
48
|
-
{@render
|
|
48
|
+
{@render labelSnippet()}
|
|
49
49
|
</div>
|
|
50
50
|
{/if}
|
|
51
51
|
|