@oicl/openbridge-webcomponents-svelte 2.0.0-next.83 → 2.0.0-next.84
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/components/textbox/ObcTextbox.svelte +2 -1
- package/dist/components/textbox/ObcTextbox.svelte.d.ts +1 -0
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte +42 -23
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte.d.ts +35 -22
- package/package.json +2 -2
|
@@ -1,47 +1,54 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ReadoutListItemSize, ReadoutListItemStacking,
|
|
3
|
+
export type {ReadoutListItemSize, ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutListItemDataQuality, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
4
4
|
export type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
-
import type {ReadoutListItemSize, ReadoutListItemStacking,
|
|
7
|
+
import type {ReadoutListItemSize, ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutListItemDataQuality, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
8
8
|
import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
10
10
|
|
|
11
11
|
export interface Props {
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
src?: string;
|
|
22
|
-
value?: number | undefined;
|
|
23
|
-
setpointValue?: number | undefined;
|
|
14
|
+
label?: string | undefined;
|
|
15
|
+
unit?: string | undefined;
|
|
16
|
+
src?: string | undefined;
|
|
17
|
+
hasValue?: boolean;
|
|
18
|
+
value?: number | null;
|
|
19
|
+
/** Render the value as the literal "OFF" (e.g. equipment powered down). Affects the value only. */
|
|
20
|
+
off?: boolean;
|
|
24
21
|
hasSetpoint?: boolean;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
setpoint?: number | undefined;
|
|
23
|
+
hasAdvice?: boolean;
|
|
24
|
+
advice?: number | undefined;
|
|
25
|
+
size?: ReadoutListItemSize | undefined;
|
|
26
|
+
priority?: ReadoutListItemPriority | undefined;
|
|
27
|
+
stacking?: ReadoutListItemStacking | undefined;
|
|
28
|
+
clickable?: boolean | ReadoutListItemClickable;
|
|
29
29
|
hasLeadingIcon?: boolean;
|
|
30
|
-
|
|
30
|
+
hasDegree?: boolean;
|
|
31
|
+
hasDegreeSpacer?: boolean;
|
|
31
32
|
fractionDigits?: number;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
maxDigits?: number;
|
|
34
|
+
dataQuality?: ReadoutListItemDataQuality | undefined;
|
|
35
|
+
alert?: boolean | AlertFrameConfig;
|
|
36
|
+
valueOptions?: ReadoutValueOptions | undefined;
|
|
37
|
+
setpointOptions?: ReadoutSetpointOptions | undefined;
|
|
38
|
+
adviceOptions?: ReadoutAdviceOptions | undefined;
|
|
39
|
+
unitOptions?: ReadoutReserverOptions | undefined;
|
|
40
|
+
srcOptions?: ReadoutSrcOptions | undefined
|
|
36
41
|
}
|
|
37
42
|
export interface Events {
|
|
38
43
|
|
|
39
44
|
}
|
|
40
45
|
export interface Slots {
|
|
41
46
|
leadingIcon?: Snippet;
|
|
42
|
-
valueIcon?: Snippet
|
|
47
|
+
valueIcon?: Snippet;
|
|
48
|
+
setpointIcon?: Snippet;
|
|
49
|
+
adviceIcon?: Snippet
|
|
43
50
|
}
|
|
44
|
-
const { class: className, style, leadingIcon, valueIcon, ...props} = $props<Props & Events & Slots>();
|
|
51
|
+
const { class: className, style, leadingIcon, valueIcon, setpointIcon, adviceIcon, ...props} = $props<Props & Events & Slots>();
|
|
45
52
|
|
|
46
53
|
</script>
|
|
47
54
|
<obc-readout-list-item
|
|
@@ -61,4 +68,16 @@ import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/compone
|
|
|
61
68
|
{@render valueIcon()}
|
|
62
69
|
</div>
|
|
63
70
|
{/if}
|
|
71
|
+
|
|
72
|
+
{#if setpointIcon}
|
|
73
|
+
<div slot="setpoint-icon">
|
|
74
|
+
{@render setpointIcon()}
|
|
75
|
+
</div>
|
|
76
|
+
{/if}
|
|
77
|
+
|
|
78
|
+
{#if adviceIcon}
|
|
79
|
+
<div slot="advice-icon">
|
|
80
|
+
{@render adviceIcon()}
|
|
81
|
+
</div>
|
|
82
|
+
{/if}
|
|
64
83
|
</obc-readout-list-item>
|
|
@@ -1,45 +1,58 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
2
|
-
import type { ReadoutListItemSize, ReadoutListItemStacking,
|
|
2
|
+
import type { ReadoutListItemSize, ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutListItemDataQuality, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
|
|
3
3
|
import type { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
4
4
|
import type { Snippet } from 'svelte';
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
src?: string;
|
|
16
|
-
value?: number | undefined;
|
|
17
|
-
setpointValue?: number | undefined;
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
unit?: string | undefined;
|
|
10
|
+
src?: string | undefined;
|
|
11
|
+
hasValue?: boolean;
|
|
12
|
+
value?: number | null;
|
|
13
|
+
/** Render the value as the literal "OFF" (e.g. equipment powered down). Affects the value only. */
|
|
14
|
+
off?: boolean;
|
|
18
15
|
hasSetpoint?: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
setpoint?: number | undefined;
|
|
17
|
+
hasAdvice?: boolean;
|
|
18
|
+
advice?: number | undefined;
|
|
19
|
+
size?: ReadoutListItemSize | undefined;
|
|
20
|
+
priority?: ReadoutListItemPriority | undefined;
|
|
21
|
+
stacking?: ReadoutListItemStacking | undefined;
|
|
22
|
+
clickable?: boolean | ReadoutListItemClickable;
|
|
23
23
|
hasLeadingIcon?: boolean;
|
|
24
|
-
|
|
24
|
+
hasDegree?: boolean;
|
|
25
|
+
hasDegreeSpacer?: boolean;
|
|
25
26
|
fractionDigits?: number;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
maxDigits?: number;
|
|
28
|
+
dataQuality?: ReadoutListItemDataQuality | undefined;
|
|
29
|
+
alert?: boolean | AlertFrameConfig;
|
|
30
|
+
valueOptions?: ReadoutValueOptions | undefined;
|
|
31
|
+
setpointOptions?: ReadoutSetpointOptions | undefined;
|
|
32
|
+
adviceOptions?: ReadoutAdviceOptions | undefined;
|
|
33
|
+
unitOptions?: ReadoutReserverOptions | undefined;
|
|
34
|
+
srcOptions?: ReadoutSrcOptions | undefined;
|
|
30
35
|
}
|
|
31
36
|
export interface Events {
|
|
32
37
|
}
|
|
33
38
|
export interface Slots {
|
|
34
39
|
leadingIcon?: Snippet;
|
|
35
40
|
valueIcon?: Snippet;
|
|
41
|
+
setpointIcon?: Snippet;
|
|
42
|
+
adviceIcon?: Snippet;
|
|
36
43
|
}
|
|
37
44
|
type $$ComponentProps = Props & Events & Slots;
|
|
38
45
|
declare const ObcReadoutListItem: import("svelte").Component<$$ComponentProps, {
|
|
39
46
|
ReadoutListItemSize: typeof ReadoutListItemSize;
|
|
40
|
-
ReadoutListItemStacking: typeof ReadoutListItemStacking;
|
|
41
47
|
ReadoutListItemPriority: typeof ReadoutListItemPriority;
|
|
42
|
-
|
|
48
|
+
ReadoutListItemStacking: typeof ReadoutListItemStacking;
|
|
49
|
+
ReadoutListItemClickable: typeof ReadoutListItemClickable;
|
|
50
|
+
ReadoutListItemDataQuality: typeof ReadoutListItemDataQuality;
|
|
51
|
+
ReadoutValueOptions: typeof ReadoutValueOptions;
|
|
52
|
+
ReadoutSetpointOptions: typeof ReadoutSetpointOptions;
|
|
53
|
+
ReadoutAdviceOptions: typeof ReadoutAdviceOptions;
|
|
54
|
+
ReadoutReserverOptions: typeof ReadoutReserverOptions;
|
|
55
|
+
ReadoutSrcOptions: typeof ReadoutSrcOptions;
|
|
43
56
|
AlertFrameConfig: typeof AlertFrameConfig;
|
|
44
57
|
}, "">;
|
|
45
58
|
type ObcReadoutListItem = ReturnType<typeof ObcReadoutListItem>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.84",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run prepack",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
34
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.83"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|