@oicl/openbridge-webcomponents-svelte 2.0.0-next.110 → 2.0.0-next.111

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.
@@ -0,0 +1,43 @@
1
+
2
+ <script lang="ts">
3
+ export type {IndicatorDirection} from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
4
+ export type {IndicatorBatteryVariant, IndicatorBatteryValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-battery/indicator-battery.js';
5
+ import '@oicl/openbridge-webcomponents/dist/automation/indicator-battery/indicator-battery.js';
6
+ import { setProperties } from "../../util.js";
7
+ import type {IndicatorDirection} from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
8
+ import type {IndicatorBatteryVariant, IndicatorBatteryValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-battery/indicator-battery.js';
9
+ import type { Snippet } from 'svelte';
10
+
11
+ export interface Props {
12
+ class?: string;
13
+ style?: string;
14
+ direction?: IndicatorDirection;
15
+ variant?: IndicatorBatteryVariant;
16
+ value?: IndicatorBatteryValue;
17
+ /** Current charge, 0-100 (%) */
18
+ level?: number;
19
+ /** History samples, 0-100 (%) each, oldest first */
20
+ data?: number[];
21
+ hasIcon?: boolean
22
+ }
23
+ export interface Events {
24
+
25
+ }
26
+ export interface Slots {
27
+ icon?: Snippet
28
+ }
29
+ const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
30
+
31
+ </script>
32
+ <obc-indicator-battery
33
+ use:setProperties={props}
34
+ class={className}
35
+ style={style}
36
+ >
37
+
38
+ {#if icon}
39
+ <div slot="icon">
40
+ {@render icon()}
41
+ </div>
42
+ {/if}
43
+ </obc-indicator-battery>
@@ -0,0 +1,29 @@
1
+ import '@oicl/openbridge-webcomponents/dist/automation/indicator-battery/indicator-battery.js';
2
+ import type { IndicatorDirection } from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
3
+ import type { IndicatorBatteryVariant, IndicatorBatteryValue } from '@oicl/openbridge-webcomponents/dist/automation/indicator-battery/indicator-battery.js';
4
+ import type { Snippet } from 'svelte';
5
+ export interface Props {
6
+ class?: string;
7
+ style?: string;
8
+ direction?: IndicatorDirection;
9
+ variant?: IndicatorBatteryVariant;
10
+ value?: IndicatorBatteryValue;
11
+ /** Current charge, 0-100 (%) */
12
+ level?: number;
13
+ /** History samples, 0-100 (%) each, oldest first */
14
+ data?: number[];
15
+ hasIcon?: boolean;
16
+ }
17
+ export interface Events {
18
+ }
19
+ export interface Slots {
20
+ icon?: Snippet;
21
+ }
22
+ type $$ComponentProps = Props & Events & Slots;
23
+ declare const ObcIndicatorBattery: import("svelte").Component<$$ComponentProps, {
24
+ IndicatorDirection: typeof IndicatorDirection;
25
+ IndicatorBatteryVariant: typeof IndicatorBatteryVariant;
26
+ IndicatorBatteryValue: typeof IndicatorBatteryValue;
27
+ }, "">;
28
+ type ObcIndicatorBattery = ReturnType<typeof ObcIndicatorBattery>;
29
+ export default ObcIndicatorBattery;
@@ -0,0 +1,35 @@
1
+
2
+ <script lang="ts">
3
+ export type {IndicatorEngineValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-engine/indicator-engine.js';
4
+ export type {IndicatorDirection} from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
5
+ import '@oicl/openbridge-webcomponents/dist/automation/indicator-engine/indicator-engine.js';
6
+ import { setProperties } from "../../util.js";
7
+ import type {IndicatorEngineValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-engine/indicator-engine.js';
8
+ import type {IndicatorDirection} from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
9
+ import type { Snippet } from 'svelte';
10
+
11
+ export interface Props {
12
+ class?: string;
13
+ style?: string;
14
+ value?: IndicatorEngineValue;
15
+ direction?: IndicatorDirection
16
+ }
17
+ export interface Events {
18
+
19
+ }
20
+ export interface Slots {
21
+ children?: Snippet
22
+ }
23
+ const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
24
+
25
+ </script>
26
+ <obc-indicator-engine
27
+ use:setProperties={props}
28
+ class={className}
29
+ style={style}
30
+ >
31
+
32
+ {#if children}
33
+ {@render children()}
34
+ {/if}
35
+ </obc-indicator-engine>
@@ -0,0 +1,22 @@
1
+ import '@oicl/openbridge-webcomponents/dist/automation/indicator-engine/indicator-engine.js';
2
+ import type { IndicatorEngineValue } from '@oicl/openbridge-webcomponents/dist/automation/indicator-engine/indicator-engine.js';
3
+ import type { IndicatorDirection } from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
4
+ import type { Snippet } from 'svelte';
5
+ export interface Props {
6
+ class?: string;
7
+ style?: string;
8
+ value?: IndicatorEngineValue;
9
+ direction?: IndicatorDirection;
10
+ }
11
+ export interface Events {
12
+ }
13
+ export interface Slots {
14
+ children?: Snippet;
15
+ }
16
+ type $$ComponentProps = Props & Events & Slots;
17
+ declare const ObcIndicatorEngine: import("svelte").Component<$$ComponentProps, {
18
+ IndicatorEngineValue: typeof IndicatorEngineValue;
19
+ IndicatorDirection: typeof IndicatorDirection;
20
+ }, "">;
21
+ type ObcIndicatorEngine = ReturnType<typeof ObcIndicatorEngine>;
22
+ export default ObcIndicatorEngine;
@@ -0,0 +1,39 @@
1
+
2
+ <script lang="ts">
3
+ export type {IndicatorGeneratorVariant, IndicatorGeneratorValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-generator/indicator-generator.js';
4
+ import '@oicl/openbridge-webcomponents/dist/automation/indicator-generator/indicator-generator.js';
5
+ import { setProperties } from "../../util.js";
6
+ import type {IndicatorGeneratorVariant, IndicatorGeneratorValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-generator/indicator-generator.js';
7
+ import type { Snippet } from 'svelte';
8
+
9
+ export interface Props {
10
+ class?: string;
11
+ style?: string;
12
+ variant?: IndicatorGeneratorVariant;
13
+ value?: IndicatorGeneratorValue;
14
+ /** Outer progress ring sweep, 0-100 (%) */
15
+ level?: number;
16
+ /** Inner progress ring sweep, 0-100 (%), double-bar only */
17
+ secondaryLevel?: number
18
+ }
19
+ export interface Events {
20
+
21
+ }
22
+ export interface Slots {
23
+ icon?: Snippet
24
+ }
25
+ const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
26
+
27
+ </script>
28
+ <obc-indicator-generator
29
+ use:setProperties={props}
30
+ class={className}
31
+ style={style}
32
+ >
33
+
34
+ {#if icon}
35
+ <div slot="icon">
36
+ {@render icon()}
37
+ </div>
38
+ {/if}
39
+ </obc-indicator-generator>
@@ -0,0 +1,25 @@
1
+ import '@oicl/openbridge-webcomponents/dist/automation/indicator-generator/indicator-generator.js';
2
+ import type { IndicatorGeneratorVariant, IndicatorGeneratorValue } from '@oicl/openbridge-webcomponents/dist/automation/indicator-generator/indicator-generator.js';
3
+ import type { Snippet } from 'svelte';
4
+ export interface Props {
5
+ class?: string;
6
+ style?: string;
7
+ variant?: IndicatorGeneratorVariant;
8
+ value?: IndicatorGeneratorValue;
9
+ /** Outer progress ring sweep, 0-100 (%) */
10
+ level?: number;
11
+ /** Inner progress ring sweep, 0-100 (%), double-bar only */
12
+ secondaryLevel?: number;
13
+ }
14
+ export interface Events {
15
+ }
16
+ export interface Slots {
17
+ icon?: Snippet;
18
+ }
19
+ type $$ComponentProps = Props & Events & Slots;
20
+ declare const ObcIndicatorGenerator: import("svelte").Component<$$ComponentProps, {
21
+ IndicatorGeneratorVariant: typeof IndicatorGeneratorVariant;
22
+ IndicatorGeneratorValue: typeof IndicatorGeneratorValue;
23
+ }, "">;
24
+ type ObcIndicatorGenerator = ReturnType<typeof ObcIndicatorGenerator>;
25
+ export default ObcIndicatorGenerator;
@@ -0,0 +1,43 @@
1
+
2
+ <script lang="ts">
3
+ export type {IndicatorDirection} from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
4
+ export type {IndicatorTankAtmosphericVariant, IndicatorTankAtmosphericValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js';
5
+ import '@oicl/openbridge-webcomponents/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js';
6
+ import { setProperties } from "../../util.js";
7
+ import type {IndicatorDirection} from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
8
+ import type {IndicatorTankAtmosphericVariant, IndicatorTankAtmosphericValue} from '@oicl/openbridge-webcomponents/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js';
9
+ import type { Snippet } from 'svelte';
10
+
11
+ export interface Props {
12
+ class?: string;
13
+ style?: string;
14
+ direction?: IndicatorDirection;
15
+ variant?: IndicatorTankAtmosphericVariant;
16
+ value?: IndicatorTankAtmosphericValue;
17
+ /** Current level, 0-100 (%) */
18
+ level?: number;
19
+ /** History samples, 0-100 (%) each, oldest first */
20
+ data?: number[];
21
+ hasIcon?: boolean
22
+ }
23
+ export interface Events {
24
+
25
+ }
26
+ export interface Slots {
27
+ icon?: Snippet
28
+ }
29
+ const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
30
+
31
+ </script>
32
+ <obc-indicator-tank-atmospheric
33
+ use:setProperties={props}
34
+ class={className}
35
+ style={style}
36
+ >
37
+
38
+ {#if icon}
39
+ <div slot="icon">
40
+ {@render icon()}
41
+ </div>
42
+ {/if}
43
+ </obc-indicator-tank-atmospheric>
@@ -0,0 +1,29 @@
1
+ import '@oicl/openbridge-webcomponents/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js';
2
+ import type { IndicatorDirection } from '@oicl/openbridge-webcomponents/dist/automation/indicator-shared/linear-indicator.js';
3
+ import type { IndicatorTankAtmosphericVariant, IndicatorTankAtmosphericValue } from '@oicl/openbridge-webcomponents/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js';
4
+ import type { Snippet } from 'svelte';
5
+ export interface Props {
6
+ class?: string;
7
+ style?: string;
8
+ direction?: IndicatorDirection;
9
+ variant?: IndicatorTankAtmosphericVariant;
10
+ value?: IndicatorTankAtmosphericValue;
11
+ /** Current level, 0-100 (%) */
12
+ level?: number;
13
+ /** History samples, 0-100 (%) each, oldest first */
14
+ data?: number[];
15
+ hasIcon?: boolean;
16
+ }
17
+ export interface Events {
18
+ }
19
+ export interface Slots {
20
+ icon?: Snippet;
21
+ }
22
+ type $$ComponentProps = Props & Events & Slots;
23
+ declare const ObcIndicatorTankAtmospheric: import("svelte").Component<$$ComponentProps, {
24
+ IndicatorDirection: typeof IndicatorDirection;
25
+ IndicatorTankAtmosphericVariant: typeof IndicatorTankAtmosphericVariant;
26
+ IndicatorTankAtmosphericValue: typeof IndicatorTankAtmosphericValue;
27
+ }, "">;
28
+ type ObcIndicatorTankAtmospheric = ReturnType<typeof ObcIndicatorTankAtmospheric>;
29
+ export default ObcIndicatorTankAtmospheric;
package/dist/index.d.ts CHANGED
@@ -48,6 +48,10 @@ export { default as ObcFan } from './automation/fan/ObcFan.svelte';
48
48
  export { default as ObcFilter } from './automation/filter/ObcFilter.svelte';
49
49
  export { default as ObcGround } from './automation/ground/ObcGround.svelte';
50
50
  export { default as ObcHorizontalLine } from './automation/horizontal-line/ObcHorizontalLine.svelte';
51
+ export { default as ObcIndicatorBattery } from './automation/indicator-battery/ObcIndicatorBattery.svelte';
52
+ export { default as ObcIndicatorEngine } from './automation/indicator-engine/ObcIndicatorEngine.svelte';
53
+ export { default as ObcIndicatorGenerator } from './automation/indicator-generator/ObcIndicatorGenerator.svelte';
54
+ export { default as ObcIndicatorTankAtmospheric } from './automation/indicator-tank-atmospheric/ObcIndicatorTankAtmospheric.svelte';
51
55
  export { default as ObcLineCross } from './automation/line-cross/ObcLineCross.svelte';
52
56
  export { default as ObcLineOverlap } from './automation/line-overlap/ObcLineOverlap.svelte';
53
57
  export { default as ObcLogic } from './automation/logic/ObcLogic.svelte';
package/dist/index.js CHANGED
@@ -48,6 +48,10 @@ export { default as ObcFan } from './automation/fan/ObcFan.svelte';
48
48
  export { default as ObcFilter } from './automation/filter/ObcFilter.svelte';
49
49
  export { default as ObcGround } from './automation/ground/ObcGround.svelte';
50
50
  export { default as ObcHorizontalLine } from './automation/horizontal-line/ObcHorizontalLine.svelte';
51
+ export { default as ObcIndicatorBattery } from './automation/indicator-battery/ObcIndicatorBattery.svelte';
52
+ export { default as ObcIndicatorEngine } from './automation/indicator-engine/ObcIndicatorEngine.svelte';
53
+ export { default as ObcIndicatorGenerator } from './automation/indicator-generator/ObcIndicatorGenerator.svelte';
54
+ export { default as ObcIndicatorTankAtmospheric } from './automation/indicator-tank-atmospheric/ObcIndicatorTankAtmospheric.svelte';
51
55
  export { default as ObcLineCross } from './automation/line-cross/ObcLineCross.svelte';
52
56
  export { default as ObcLineOverlap } from './automation/line-overlap/ObcLineOverlap.svelte';
53
57
  export { default as ObcLogic } from './automation/logic/ObcLogic.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.110",
3
+ "version": "2.0.0-next.111",
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.109"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.110"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"