@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.
@@ -11,7 +11,8 @@
11
11
  style?: string;
12
12
  alignment?: ObcTextboxAlignment;
13
13
  size?: ObcTextboxSize;
14
- fontWeight?: ObcTextboxFontWeight
14
+ fontWeight?: ObcTextboxFontWeight;
15
+ tabularNums?: boolean
15
16
  }
16
17
  export interface Events {
17
18
 
@@ -7,6 +7,7 @@ export interface Props {
7
7
  alignment?: ObcTextboxAlignment;
8
8
  size?: ObcTextboxSize;
9
9
  fontWeight?: ObcTextboxFontWeight;
10
+ tabularNums?: boolean;
10
11
  }
11
12
  export interface Events {
12
13
  }
@@ -1,47 +1,54 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {ReadoutListItemSize, ReadoutListItemStacking, ReadoutListItemPriority, ReadoutListItemDataState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
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, ReadoutListItemPriority, ReadoutListItemDataState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
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
- size?: ReadoutListItemSize;
15
- stacking?: ReadoutListItemStacking;
16
- priority?: ReadoutListItemPriority;
17
- dataState?: ReadoutListItemDataState;
18
- alert?: boolean | AlertFrameConfig;
19
- label?: string;
20
- unit?: string;
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
- hasDegree?: boolean;
26
- hasUnit?: boolean;
27
- hasLabel?: boolean;
28
- hasSource?: boolean;
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
- hasValueIcon?: boolean;
30
+ hasDegree?: boolean;
31
+ hasDegreeSpacer?: boolean;
31
32
  fractionDigits?: number;
32
- showZeroPadding?: boolean;
33
- minValueLength?: number;
34
- hasHintedZeros?: boolean;
35
- labelOnly?: boolean
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, ReadoutListItemPriority, ReadoutListItemDataState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
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
- size?: ReadoutListItemSize;
9
- stacking?: ReadoutListItemStacking;
10
- priority?: ReadoutListItemPriority;
11
- dataState?: ReadoutListItemDataState;
12
- alert?: boolean | AlertFrameConfig;
13
- label?: string;
14
- unit?: string;
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
- hasDegree?: boolean;
20
- hasUnit?: boolean;
21
- hasLabel?: boolean;
22
- hasSource?: boolean;
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
- hasValueIcon?: boolean;
24
+ hasDegree?: boolean;
25
+ hasDegreeSpacer?: boolean;
25
26
  fractionDigits?: number;
26
- showZeroPadding?: boolean;
27
- minValueLength?: number;
28
- hasHintedZeros?: boolean;
29
- labelOnly?: boolean;
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
- ReadoutListItemDataState: typeof ReadoutListItemDataState;
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.83",
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.82"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.83"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"