@oicl/openbridge-webcomponents-svelte 2.0.0-next.124 → 2.0.0-next.126
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/automation/transmitter/ObcTransmitter.svelte +62 -0
- package/dist/automation/transmitter/ObcTransmitter.svelte.d.ts +48 -0
- package/dist/automation/transmitter-button/ObcTransmitterButton.svelte +50 -0
- package/dist/automation/transmitter-button/ObcTransmitterButton.svelte.d.ts +36 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {TransmitterOrientation, TransmitterType} from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
4
|
+
export type {LineType} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
5
|
+
export type {TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
6
|
+
import '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
7
|
+
import { setProperties } from "../../util.js";
|
|
8
|
+
import type {TransmitterOrientation, TransmitterType} from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
9
|
+
import type {LineType} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
10
|
+
import type {TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
11
|
+
import type { Snippet } from 'svelte';
|
|
12
|
+
|
|
13
|
+
export interface Props {
|
|
14
|
+
class?: string;
|
|
15
|
+
style?: string;
|
|
16
|
+
orientation?: TransmitterOrientation;
|
|
17
|
+
type?: TransmitterType;
|
|
18
|
+
lineType?: LineType | undefined;
|
|
19
|
+
value?: number | null | undefined;
|
|
20
|
+
unit?: string;
|
|
21
|
+
fractionDigits?: number;
|
|
22
|
+
/** Integer digits to reserve / hint (independent of `fractionDigits`). */
|
|
23
|
+
maxDigits?: number;
|
|
24
|
+
hintedZeros?: boolean;
|
|
25
|
+
size?: TransmitterButtonSize;
|
|
26
|
+
hasIcon?: boolean;
|
|
27
|
+
hasAdvice?: boolean;
|
|
28
|
+
/** Wrap the transmitter in an `<obc-alert-frame>` (alarm) when true. */
|
|
29
|
+
hasAlert?: boolean;
|
|
30
|
+
/** Advisory value shown in the leading advice segment when `hasAdvice`. */
|
|
31
|
+
adviceValue?: number | null | undefined;
|
|
32
|
+
hasSetPoint?: boolean;
|
|
33
|
+
/** Target value shown in the setpoint segment when `hasSetPoint`. */
|
|
34
|
+
setpointValue?: number | null | undefined;
|
|
35
|
+
/** Tag identifier shown when `type` is `indicator` (e.g. `TT`). */
|
|
36
|
+
tag?: string;
|
|
37
|
+
/** Optional identifier shown below the chip (e.g. `#0000`). */
|
|
38
|
+
idTag?: string;
|
|
39
|
+
/** Trend data for the graph types: `[xValues, yValues]`. */
|
|
40
|
+
data?: [number[], number[]]
|
|
41
|
+
}
|
|
42
|
+
export interface Events {
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
export interface Slots {
|
|
46
|
+
icon?: Snippet
|
|
47
|
+
}
|
|
48
|
+
const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
|
|
49
|
+
|
|
50
|
+
</script>
|
|
51
|
+
<obc-transmitter
|
|
52
|
+
use:setProperties={props}
|
|
53
|
+
class={className}
|
|
54
|
+
style={style}
|
|
55
|
+
>
|
|
56
|
+
|
|
57
|
+
{#if icon}
|
|
58
|
+
<div slot="icon">
|
|
59
|
+
{@render icon()}
|
|
60
|
+
</div>
|
|
61
|
+
{/if}
|
|
62
|
+
</obc-transmitter>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
2
|
+
import type { TransmitterOrientation, TransmitterType } from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
|
|
3
|
+
import type { LineType } from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
4
|
+
import type { TransmitterButtonSize } from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
5
|
+
import type { Snippet } from 'svelte';
|
|
6
|
+
export interface Props {
|
|
7
|
+
class?: string;
|
|
8
|
+
style?: string;
|
|
9
|
+
orientation?: TransmitterOrientation;
|
|
10
|
+
type?: TransmitterType;
|
|
11
|
+
lineType?: LineType | undefined;
|
|
12
|
+
value?: number | null | undefined;
|
|
13
|
+
unit?: string;
|
|
14
|
+
fractionDigits?: number;
|
|
15
|
+
/** Integer digits to reserve / hint (independent of `fractionDigits`). */
|
|
16
|
+
maxDigits?: number;
|
|
17
|
+
hintedZeros?: boolean;
|
|
18
|
+
size?: TransmitterButtonSize;
|
|
19
|
+
hasIcon?: boolean;
|
|
20
|
+
hasAdvice?: boolean;
|
|
21
|
+
/** Wrap the transmitter in an `<obc-alert-frame>` (alarm) when true. */
|
|
22
|
+
hasAlert?: boolean;
|
|
23
|
+
/** Advisory value shown in the leading advice segment when `hasAdvice`. */
|
|
24
|
+
adviceValue?: number | null | undefined;
|
|
25
|
+
hasSetPoint?: boolean;
|
|
26
|
+
/** Target value shown in the setpoint segment when `hasSetPoint`. */
|
|
27
|
+
setpointValue?: number | null | undefined;
|
|
28
|
+
/** Tag identifier shown when `type` is `indicator` (e.g. `TT`). */
|
|
29
|
+
tag?: string;
|
|
30
|
+
/** Optional identifier shown below the chip (e.g. `#0000`). */
|
|
31
|
+
idTag?: string;
|
|
32
|
+
/** Trend data for the graph types: `[xValues, yValues]`. */
|
|
33
|
+
data?: [number[], number[]];
|
|
34
|
+
}
|
|
35
|
+
export interface Events {
|
|
36
|
+
}
|
|
37
|
+
export interface Slots {
|
|
38
|
+
icon?: Snippet;
|
|
39
|
+
}
|
|
40
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
41
|
+
declare const ObcTransmitter: import("svelte").Component<$$ComponentProps, {
|
|
42
|
+
TransmitterOrientation: typeof TransmitterOrientation;
|
|
43
|
+
TransmitterType: typeof TransmitterType;
|
|
44
|
+
LineType: typeof LineType;
|
|
45
|
+
TransmitterButtonSize: typeof TransmitterButtonSize;
|
|
46
|
+
}, "">;
|
|
47
|
+
type ObcTransmitter = ReturnType<typeof ObcTransmitter>;
|
|
48
|
+
export default ObcTransmitter;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {TransmitterButtonVariant, TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
import type {TransmitterButtonVariant, TransmitterButtonSize} from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
variant?: TransmitterButtonVariant;
|
|
13
|
+
size?: TransmitterButtonSize;
|
|
14
|
+
value?: number | null | undefined;
|
|
15
|
+
unit?: string;
|
|
16
|
+
fractionDigits?: number;
|
|
17
|
+
/** Integer digits to reserve / hint (independent of `fractionDigits`). */
|
|
18
|
+
maxDigits?: number;
|
|
19
|
+
hintedZeros?: boolean;
|
|
20
|
+
hasIcon?: boolean;
|
|
21
|
+
hasAdvice?: boolean;
|
|
22
|
+
/** Advisory value shown in the leading advice segment when `hasAdvice`. */
|
|
23
|
+
adviceValue?: number | null | undefined;
|
|
24
|
+
hasSetPoint?: boolean;
|
|
25
|
+
/** Target value shown in the setpoint segment when `hasSetPoint`. */
|
|
26
|
+
setpointValue?: number | null | undefined;
|
|
27
|
+
/** Short tag identifier shown in the `tag` variant (e.g. `TT`). */
|
|
28
|
+
label?: string
|
|
29
|
+
}
|
|
30
|
+
export interface Events {
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
export interface Slots {
|
|
34
|
+
icon?: Snippet
|
|
35
|
+
}
|
|
36
|
+
const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
|
|
37
|
+
|
|
38
|
+
</script>
|
|
39
|
+
<obc-transmitter-button
|
|
40
|
+
use:setProperties={props}
|
|
41
|
+
class={className}
|
|
42
|
+
style={style}
|
|
43
|
+
>
|
|
44
|
+
|
|
45
|
+
{#if icon}
|
|
46
|
+
<div slot="icon">
|
|
47
|
+
{@render icon()}
|
|
48
|
+
</div>
|
|
49
|
+
{/if}
|
|
50
|
+
</obc-transmitter-button>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
2
|
+
import type { TransmitterButtonVariant, TransmitterButtonSize } from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
export interface Props {
|
|
5
|
+
class?: string;
|
|
6
|
+
style?: string;
|
|
7
|
+
variant?: TransmitterButtonVariant;
|
|
8
|
+
size?: TransmitterButtonSize;
|
|
9
|
+
value?: number | null | undefined;
|
|
10
|
+
unit?: string;
|
|
11
|
+
fractionDigits?: number;
|
|
12
|
+
/** Integer digits to reserve / hint (independent of `fractionDigits`). */
|
|
13
|
+
maxDigits?: number;
|
|
14
|
+
hintedZeros?: boolean;
|
|
15
|
+
hasIcon?: boolean;
|
|
16
|
+
hasAdvice?: boolean;
|
|
17
|
+
/** Advisory value shown in the leading advice segment when `hasAdvice`. */
|
|
18
|
+
adviceValue?: number | null | undefined;
|
|
19
|
+
hasSetPoint?: boolean;
|
|
20
|
+
/** Target value shown in the setpoint segment when `hasSetPoint`. */
|
|
21
|
+
setpointValue?: number | null | undefined;
|
|
22
|
+
/** Short tag identifier shown in the `tag` variant (e.g. `TT`). */
|
|
23
|
+
label?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface Events {
|
|
26
|
+
}
|
|
27
|
+
export interface Slots {
|
|
28
|
+
icon?: Snippet;
|
|
29
|
+
}
|
|
30
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
31
|
+
declare const ObcTransmitterButton: import("svelte").Component<$$ComponentProps, {
|
|
32
|
+
TransmitterButtonVariant: typeof TransmitterButtonVariant;
|
|
33
|
+
TransmitterButtonSize: typeof TransmitterButtonSize;
|
|
34
|
+
}, "">;
|
|
35
|
+
type ObcTransmitterButton = ReturnType<typeof ObcTransmitterButton>;
|
|
36
|
+
export default ObcTransmitterButton;
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export { default as ObcSource } from './automation/source/ObcSource.svelte';
|
|
|
64
64
|
export { default as ObcSwitch } from './automation/switch/ObcSwitch.svelte';
|
|
65
65
|
export { default as ObcThreeWayLine } from './automation/three-way-line/ObcThreeWayLine.svelte';
|
|
66
66
|
export { default as ObcTransformer } from './automation/transformer/ObcTransformer.svelte';
|
|
67
|
+
export { default as ObcTransmitter } from './automation/transmitter/ObcTransmitter.svelte';
|
|
68
|
+
export { default as ObcTransmitterButton } from './automation/transmitter-button/ObcTransmitterButton.svelte';
|
|
67
69
|
export { default as ObcValveAnalogThreeWayIcon } from './automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.svelte';
|
|
68
70
|
export { default as ObcValveAnalogTwoWayIcon } from './automation/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.svelte';
|
|
69
71
|
export { default as ObcVerticalLine } from './automation/vertical-line/ObcVerticalLine.svelte';
|
package/dist/index.js
CHANGED
|
@@ -64,6 +64,8 @@ export { default as ObcSource } from './automation/source/ObcSource.svelte';
|
|
|
64
64
|
export { default as ObcSwitch } from './automation/switch/ObcSwitch.svelte';
|
|
65
65
|
export { default as ObcThreeWayLine } from './automation/three-way-line/ObcThreeWayLine.svelte';
|
|
66
66
|
export { default as ObcTransformer } from './automation/transformer/ObcTransformer.svelte';
|
|
67
|
+
export { default as ObcTransmitter } from './automation/transmitter/ObcTransmitter.svelte';
|
|
68
|
+
export { default as ObcTransmitterButton } from './automation/transmitter-button/ObcTransmitterButton.svelte';
|
|
67
69
|
export { default as ObcValveAnalogThreeWayIcon } from './automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.svelte';
|
|
68
70
|
export { default as ObcValveAnalogTwoWayIcon } from './automation/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.svelte';
|
|
69
71
|
export { default as ObcVerticalLine } from './automation/vertical-line/ObcVerticalLine.svelte';
|
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.126",
|
|
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.126"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|