@oicl/openbridge-webcomponents-svelte 2.2.0-next.6 → 2.2.0-next.8
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/analog-threeway-valve/ObcAnalogThreewayValve.svelte +4 -1
- package/dist/automation/analog-threeway-valve/ObcAnalogThreewayValve.svelte.d.ts +4 -1
- package/dist/automation/analog-valve/ObcAnalogValve.svelte +4 -1
- package/dist/automation/analog-valve/ObcAnalogValve.svelte.d.ts +4 -1
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte +4 -1
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte.d.ts +4 -1
- package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte +4 -1
- package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte.d.ts +4 -1
- package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte +4 -1
- package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte.d.ts +4 -1
- package/dist/automation/automation-button/ObcAutomationButton.svelte +25 -4
- package/dist/automation/automation-button/ObcAutomationButton.svelte.d.ts +21 -1
- package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte +4 -1
- package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte.d.ts +4 -1
- package/dist/automation/capacitor/ObcCapacitor.svelte +4 -1
- package/dist/automation/capacitor/ObcCapacitor.svelte.d.ts +4 -1
- package/dist/automation/converter/ObcConverter.svelte +4 -1
- package/dist/automation/converter/ObcConverter.svelte.d.ts +4 -1
- package/dist/automation/damper/ObcDamper.svelte +4 -1
- package/dist/automation/damper/ObcDamper.svelte.d.ts +4 -1
- package/dist/automation/digital-threeway-valve/ObcDigitalThreewayValve.svelte +4 -1
- package/dist/automation/digital-threeway-valve/ObcDigitalThreewayValve.svelte.d.ts +4 -1
- package/dist/automation/digital-valve/ObcDigitalValve.svelte +28 -6
- package/dist/automation/digital-valve/ObcDigitalValve.svelte.d.ts +27 -3
- package/dist/automation/diodes/ObcDiodes.svelte +4 -1
- package/dist/automation/diodes/ObcDiodes.svelte.d.ts +4 -1
- package/dist/automation/direction-valve-shared/ObcDirectionValveBase.svelte +87 -0
- package/dist/automation/direction-valve-shared/ObcDirectionValveBase.svelte.d.ts +79 -0
- package/dist/automation/direction-valve-shared/ObcPressureValveBase.svelte +91 -0
- package/dist/automation/direction-valve-shared/ObcPressureValveBase.svelte.d.ts +84 -0
- package/dist/automation/direction-valve-shared/direction-valve-shared.d.ts +2 -0
- package/dist/automation/direction-valve-shared/direction-valve-shared.js +2 -0
- package/dist/automation/electricity-battery/ObcElectricityBattery.svelte +105 -0
- package/dist/automation/electricity-battery/ObcElectricityBattery.svelte.d.ts +85 -0
- package/dist/automation/fan/ObcFan.svelte +4 -1
- package/dist/automation/fan/ObcFan.svelte.d.ts +4 -1
- package/dist/automation/filter/ObcFilter.svelte +4 -1
- package/dist/automation/filter/ObcFilter.svelte.d.ts +4 -1
- package/dist/automation/ground/ObcGround.svelte +4 -1
- package/dist/automation/ground/ObcGround.svelte.d.ts +4 -1
- package/dist/automation/logic/ObcLogic.svelte +4 -1
- package/dist/automation/logic/ObcLogic.svelte.d.ts +4 -1
- package/dist/automation/mosfet/ObcMosfet.svelte +4 -1
- package/dist/automation/mosfet/ObcMosfet.svelte.d.ts +4 -1
- package/dist/automation/motor/ObcMotor.svelte +4 -1
- package/dist/automation/motor/ObcMotor.svelte.d.ts +4 -1
- package/dist/automation/non-return-valve/ObcNonReturnValve.svelte +87 -0
- package/dist/automation/non-return-valve/ObcNonReturnValve.svelte.d.ts +79 -0
- package/dist/automation/pressure-reduction-valve/ObcPressureReductionValve.svelte +91 -0
- package/dist/automation/pressure-reduction-valve/ObcPressureReductionValve.svelte.d.ts +84 -0
- package/dist/automation/pressure-sustain-valve/ObcPressureSustainValve.svelte +91 -0
- package/dist/automation/pressure-sustain-valve/ObcPressureSustainValve.svelte.d.ts +84 -0
- package/dist/automation/pump/ObcPump.svelte +4 -1
- package/dist/automation/pump/ObcPump.svelte.d.ts +4 -1
- package/dist/automation/resistor/ObcResistor.svelte +4 -1
- package/dist/automation/resistor/ObcResistor.svelte.d.ts +4 -1
- package/dist/automation/router/ObcRouter.svelte +4 -1
- package/dist/automation/router/ObcRouter.svelte.d.ts +4 -1
- package/dist/automation/source/ObcSource.svelte +4 -1
- package/dist/automation/source/ObcSource.svelte.d.ts +4 -1
- package/dist/automation/switch/ObcSwitch.svelte +4 -1
- package/dist/automation/switch/ObcSwitch.svelte.d.ts +4 -1
- package/dist/automation/transformer/ObcTransformer.svelte +4 -1
- package/dist/automation/transformer/ObcTransformer.svelte.d.ts +4 -1
- package/dist/icons/ObiConverterAcacOff.svelte +34 -0
- package/dist/icons/ObiConverterAcacOff.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterAcacOn.svelte +34 -0
- package/dist/icons/ObiConverterAcacOn.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterAcacStatic.svelte +34 -0
- package/dist/icons/ObiConverterAcacStatic.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterAcvacOff.svelte +34 -0
- package/dist/icons/ObiConverterAcvacOff.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterAcvacOn.svelte +34 -0
- package/dist/icons/ObiConverterAcvacOn.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterAcvacStatic.svelte +34 -0
- package/dist/icons/ObiConverterAcvacStatic.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterVacacOff.svelte +34 -0
- package/dist/icons/ObiConverterVacacOff.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterVacacOn.svelte +34 -0
- package/dist/icons/ObiConverterVacacOn.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterVacacStatic.svelte +34 -0
- package/dist/icons/ObiConverterVacacStatic.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterVacvacOff.svelte +34 -0
- package/dist/icons/ObiConverterVacvacOff.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterVacvacOn.svelte +34 -0
- package/dist/icons/ObiConverterVacvacOn.svelte.d.ts +16 -0
- package/dist/icons/ObiConverterVacvacStatic.svelte +34 -0
- package/dist/icons/ObiConverterVacvacStatic.svelte.d.ts +16 -0
- package/dist/icons/ObiElectricityBatteryOff.svelte +34 -0
- package/dist/icons/ObiElectricityBatteryOff.svelte.d.ts +16 -0
- package/dist/icons/ObiElectricityBatteryOn.svelte +34 -0
- package/dist/icons/ObiElectricityBatteryOn.svelte.d.ts +16 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/package.json +2 -2
|
@@ -30,10 +30,13 @@ import type {LogicAlternativeIcon} from '@oicl/openbridge-webcomponents/dist/aut
|
|
|
30
30
|
variant?: SquaredVariant;
|
|
31
31
|
orientation?: AutomationButtonOrientation;
|
|
32
32
|
showReadoutStack?: boolean;
|
|
33
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
34
|
+
static?: boolean;
|
|
33
35
|
/** Available when `showReadoutStack==true`. */
|
|
34
|
-
readoutPosition?: AutomationButtonReadoutPosition;
|
|
36
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
35
37
|
/** Available when `showReadoutStack==true`. */
|
|
36
38
|
showStatus?: boolean;
|
|
39
|
+
showStatusIcon?: boolean;
|
|
37
40
|
/** Available when `showReadoutStack==true`. */
|
|
38
41
|
readoutSize?: AutomationButtonReadoutStackSize;
|
|
39
42
|
/** Available when `showReadoutStack==true`. */
|
|
@@ -18,10 +18,13 @@ export interface Props {
|
|
|
18
18
|
variant?: SquaredVariant;
|
|
19
19
|
orientation?: AutomationButtonOrientation;
|
|
20
20
|
showReadoutStack?: boolean;
|
|
21
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
22
|
+
static?: boolean;
|
|
21
23
|
/** Available when `showReadoutStack==true`. */
|
|
22
|
-
readoutPosition?: AutomationButtonReadoutPosition;
|
|
24
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
23
25
|
/** Available when `showReadoutStack==true`. */
|
|
24
26
|
showStatus?: boolean;
|
|
27
|
+
showStatusIcon?: boolean;
|
|
25
28
|
/** Available when `showReadoutStack==true`. */
|
|
26
29
|
readoutSize?: AutomationButtonReadoutStackSize;
|
|
27
30
|
/** Available when `showReadoutStack==true`. */
|
|
@@ -30,10 +30,13 @@ import type {MosfetAlternativeIcon} from '@oicl/openbridge-webcomponents/dist/au
|
|
|
30
30
|
variant?: SquaredVariant;
|
|
31
31
|
orientation?: AutomationButtonOrientation;
|
|
32
32
|
showReadoutStack?: boolean;
|
|
33
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
34
|
+
static?: boolean;
|
|
33
35
|
/** Available when `showReadoutStack==true`. */
|
|
34
|
-
readoutPosition?: AutomationButtonReadoutPosition;
|
|
36
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
35
37
|
/** Available when `showReadoutStack==true`. */
|
|
36
38
|
showStatus?: boolean;
|
|
39
|
+
showStatusIcon?: boolean;
|
|
37
40
|
/** Available when `showReadoutStack==true`. */
|
|
38
41
|
readoutSize?: AutomationButtonReadoutStackSize;
|
|
39
42
|
/** Available when `showReadoutStack==true`. */
|
|
@@ -18,10 +18,13 @@ export interface Props {
|
|
|
18
18
|
variant?: SquaredVariant;
|
|
19
19
|
orientation?: AutomationButtonOrientation;
|
|
20
20
|
showReadoutStack?: boolean;
|
|
21
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
22
|
+
static?: boolean;
|
|
21
23
|
/** Available when `showReadoutStack==true`. */
|
|
22
|
-
readoutPosition?: AutomationButtonReadoutPosition;
|
|
24
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
23
25
|
/** Available when `showReadoutStack==true`. */
|
|
24
26
|
showStatus?: boolean;
|
|
27
|
+
showStatusIcon?: boolean;
|
|
25
28
|
/** Available when `showReadoutStack==true`. */
|
|
26
29
|
readoutSize?: AutomationButtonReadoutStackSize;
|
|
27
30
|
/** Available when `showReadoutStack==true`. */
|
|
@@ -34,10 +34,13 @@ import type {AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, A
|
|
|
34
34
|
/** Available when `variant in [double, forward, flatForward]`. */
|
|
35
35
|
direction?: AutomationButtonDirection;
|
|
36
36
|
showReadoutStack?: boolean;
|
|
37
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
38
|
+
static?: boolean;
|
|
37
39
|
/** Available when `showReadoutStack==true`. */
|
|
38
|
-
readoutPosition?: AutomationButtonReadoutPosition;
|
|
40
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
39
41
|
/** Available when `showReadoutStack==true`. */
|
|
40
42
|
showStatus?: boolean;
|
|
43
|
+
showStatusIcon?: boolean;
|
|
41
44
|
/** Available when `showReadoutStack==true`. */
|
|
42
45
|
readoutSize?: AutomationButtonReadoutStackSize;
|
|
43
46
|
/** Available when `showReadoutStack==true`. */
|
|
@@ -23,10 +23,13 @@ export interface Props {
|
|
|
23
23
|
/** Available when `variant in [double, forward, flatForward]`. */
|
|
24
24
|
direction?: AutomationButtonDirection;
|
|
25
25
|
showReadoutStack?: boolean;
|
|
26
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
27
|
+
static?: boolean;
|
|
26
28
|
/** Available when `showReadoutStack==true`. */
|
|
27
|
-
readoutPosition?: AutomationButtonReadoutPosition;
|
|
29
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
28
30
|
/** Available when `showReadoutStack==true`. */
|
|
29
31
|
showStatus?: boolean;
|
|
32
|
+
showStatusIcon?: boolean;
|
|
30
33
|
/** Available when `showReadoutStack==true`. */
|
|
31
34
|
readoutSize?: AutomationButtonReadoutStackSize;
|
|
32
35
|
/** Available when `showReadoutStack==true`. */
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {Direction, AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
|
+
export type {DirectionValveVariant} from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
5
|
+
export type {AutomationButtonReadoutPosition, AutomationButtonPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
6
|
+
export type {AutomationButtonReadoutStackSize} from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
7
|
+
export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
8
|
+
export type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
9
|
+
export type {AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
10
|
+
import '@oicl/openbridge-webcomponents/dist/automation/non-return-valve/non-return-valve.js';
|
|
11
|
+
import { setProperties } from "../../util.js";
|
|
12
|
+
import type {Direction, AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
13
|
+
import type {DirectionValveVariant} from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
14
|
+
import type {AutomationButtonReadoutPosition, AutomationButtonPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
15
|
+
import type {AutomationButtonReadoutStackSize} from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
16
|
+
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
17
|
+
import type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
18
|
+
import type {AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
19
|
+
import type { Snippet } from 'svelte';
|
|
20
|
+
|
|
21
|
+
export interface Props {
|
|
22
|
+
class?: string;
|
|
23
|
+
style?: string;
|
|
24
|
+
/** The direction the valve lets the medium through; the symbol turns with it. */
|
|
25
|
+
flowDirection?: Direction;
|
|
26
|
+
/** `regular` draws the round button, `flat` only the symbol. */
|
|
27
|
+
variant?: DirectionValveVariant;
|
|
28
|
+
showReadoutStack?: boolean;
|
|
29
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
30
|
+
static?: boolean;
|
|
31
|
+
/** Available when `showReadoutStack==true`. */
|
|
32
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
33
|
+
/** Available when `showReadoutStack==true`. */
|
|
34
|
+
showStatus?: boolean;
|
|
35
|
+
showStatusIcon?: boolean;
|
|
36
|
+
/** Available when `showReadoutStack==true`. */
|
|
37
|
+
readoutSize?: AutomationButtonReadoutStackSize;
|
|
38
|
+
/** Available when `showReadoutStack==true`. */
|
|
39
|
+
tag?: string | null;
|
|
40
|
+
positioning?: AutomationButtonPositioning;
|
|
41
|
+
/** Enables the activated background color, used to indicate that the button is activated/selected. */
|
|
42
|
+
activated?: boolean;
|
|
43
|
+
alert?: boolean;
|
|
44
|
+
/** Available when `alert==true`. */
|
|
45
|
+
alertFrameType?: ObcAlertFrameType;
|
|
46
|
+
/** Available when `alert==true`. */
|
|
47
|
+
alertFrameThickness?: ObcAlertFrameThickness;
|
|
48
|
+
/** Available when `alert==true`. */
|
|
49
|
+
alertFrameStatus?: AlertType;
|
|
50
|
+
/** Available when `alert==true`. */
|
|
51
|
+
alertFrameMode?: ObcAlertFrameMode;
|
|
52
|
+
/** Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
53
|
+
showAlertCategoryIcon?: boolean;
|
|
54
|
+
/** Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
55
|
+
showAlertIcon?: boolean;
|
|
56
|
+
/** Shows a progress indicator, used to indicate that an user action is in progress */
|
|
57
|
+
progress?: boolean;
|
|
58
|
+
/** Available when `progress==true`. */
|
|
59
|
+
progressMode?: CircularProgressMode;
|
|
60
|
+
/** Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. */
|
|
61
|
+
progressValue?: number;
|
|
62
|
+
badgeControl?: AutomationButtonBadgeControl;
|
|
63
|
+
badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
|
|
64
|
+
badgeInterlock?: AutomationButtonBadgeInterlock;
|
|
65
|
+
badgeAlert?: AutomationButtonBadgeAlert
|
|
66
|
+
}
|
|
67
|
+
export interface Events {
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
export interface Slots {
|
|
71
|
+
children?: Snippet
|
|
72
|
+
}
|
|
73
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
</script>
|
|
77
|
+
<obc-non-return-valve
|
|
78
|
+
use:setProperties={props}
|
|
79
|
+
|
|
80
|
+
class={className}
|
|
81
|
+
style={style}
|
|
82
|
+
>
|
|
83
|
+
|
|
84
|
+
{#if children}
|
|
85
|
+
{@render children()}
|
|
86
|
+
{/if}
|
|
87
|
+
</obc-non-return-valve>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/automation/non-return-valve/non-return-valve.js';
|
|
2
|
+
import type { Direction, AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
3
|
+
import type { DirectionValveVariant } from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
4
|
+
import type { AutomationButtonReadoutPosition, AutomationButtonPositioning } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
5
|
+
import type { AutomationButtonReadoutStackSize } from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
6
|
+
import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
7
|
+
import type { CircularProgressMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
8
|
+
import type { AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
9
|
+
import type { Snippet } from 'svelte';
|
|
10
|
+
export interface Props {
|
|
11
|
+
class?: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
/** The direction the valve lets the medium through; the symbol turns with it. */
|
|
14
|
+
flowDirection?: Direction;
|
|
15
|
+
/** `regular` draws the round button, `flat` only the symbol. */
|
|
16
|
+
variant?: DirectionValveVariant;
|
|
17
|
+
showReadoutStack?: boolean;
|
|
18
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
19
|
+
static?: boolean;
|
|
20
|
+
/** Available when `showReadoutStack==true`. */
|
|
21
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
22
|
+
/** Available when `showReadoutStack==true`. */
|
|
23
|
+
showStatus?: boolean;
|
|
24
|
+
showStatusIcon?: boolean;
|
|
25
|
+
/** Available when `showReadoutStack==true`. */
|
|
26
|
+
readoutSize?: AutomationButtonReadoutStackSize;
|
|
27
|
+
/** Available when `showReadoutStack==true`. */
|
|
28
|
+
tag?: string | null;
|
|
29
|
+
positioning?: AutomationButtonPositioning;
|
|
30
|
+
/** Enables the activated background color, used to indicate that the button is activated/selected. */
|
|
31
|
+
activated?: boolean;
|
|
32
|
+
alert?: boolean;
|
|
33
|
+
/** Available when `alert==true`. */
|
|
34
|
+
alertFrameType?: ObcAlertFrameType;
|
|
35
|
+
/** Available when `alert==true`. */
|
|
36
|
+
alertFrameThickness?: ObcAlertFrameThickness;
|
|
37
|
+
/** Available when `alert==true`. */
|
|
38
|
+
alertFrameStatus?: AlertType;
|
|
39
|
+
/** Available when `alert==true`. */
|
|
40
|
+
alertFrameMode?: ObcAlertFrameMode;
|
|
41
|
+
/** Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
42
|
+
showAlertCategoryIcon?: boolean;
|
|
43
|
+
/** Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
44
|
+
showAlertIcon?: boolean;
|
|
45
|
+
/** Shows a progress indicator, used to indicate that an user action is in progress */
|
|
46
|
+
progress?: boolean;
|
|
47
|
+
/** Available when `progress==true`. */
|
|
48
|
+
progressMode?: CircularProgressMode;
|
|
49
|
+
/** Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. */
|
|
50
|
+
progressValue?: number;
|
|
51
|
+
badgeControl?: AutomationButtonBadgeControl;
|
|
52
|
+
badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
|
|
53
|
+
badgeInterlock?: AutomationButtonBadgeInterlock;
|
|
54
|
+
badgeAlert?: AutomationButtonBadgeAlert;
|
|
55
|
+
}
|
|
56
|
+
export interface Events {
|
|
57
|
+
}
|
|
58
|
+
export interface Slots {
|
|
59
|
+
children?: Snippet;
|
|
60
|
+
}
|
|
61
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
62
|
+
declare const ObcNonReturnValve: import("svelte").Component<$$ComponentProps, {
|
|
63
|
+
Direction: typeof Direction;
|
|
64
|
+
AlertType: typeof AlertType;
|
|
65
|
+
DirectionValveVariant: typeof DirectionValveVariant;
|
|
66
|
+
AutomationButtonReadoutPosition: typeof AutomationButtonReadoutPosition;
|
|
67
|
+
AutomationButtonPositioning: typeof AutomationButtonPositioning;
|
|
68
|
+
AutomationButtonReadoutStackSize: typeof AutomationButtonReadoutStackSize;
|
|
69
|
+
ObcAlertFrameType: typeof ObcAlertFrameType;
|
|
70
|
+
ObcAlertFrameThickness: typeof ObcAlertFrameThickness;
|
|
71
|
+
ObcAlertFrameMode: typeof ObcAlertFrameMode;
|
|
72
|
+
CircularProgressMode: typeof CircularProgressMode;
|
|
73
|
+
AutomationButtonBadgeControl: typeof AutomationButtonBadgeControl;
|
|
74
|
+
AutomationButtonBadgeCommandLocked: typeof AutomationButtonBadgeCommandLocked;
|
|
75
|
+
AutomationButtonBadgeInterlock: typeof AutomationButtonBadgeInterlock;
|
|
76
|
+
AutomationButtonBadgeAlert: typeof AutomationButtonBadgeAlert;
|
|
77
|
+
}, "">;
|
|
78
|
+
type ObcNonReturnValve = ReturnType<typeof ObcNonReturnValve>;
|
|
79
|
+
export default ObcNonReturnValve;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {AutomationButtonHandleSize, AutomationButtonReadoutPosition, AutomationButtonPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
4
|
+
export type {Direction, AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
5
|
+
export type {DirectionValveVariant} from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
6
|
+
export type {AutomationButtonReadoutStackSize} from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
7
|
+
export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
8
|
+
export type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
9
|
+
export type {AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
10
|
+
import '@oicl/openbridge-webcomponents/dist/automation/pressure-reduction-valve/pressure-reduction-valve.js';
|
|
11
|
+
import { setProperties } from "../../util.js";
|
|
12
|
+
import type {AutomationButtonHandleSize, AutomationButtonReadoutPosition, AutomationButtonPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
13
|
+
import type {Direction, AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
14
|
+
import type {DirectionValveVariant} from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
15
|
+
import type {AutomationButtonReadoutStackSize} from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
16
|
+
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
17
|
+
import type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
18
|
+
import type {AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
19
|
+
import type { Snippet } from 'svelte';
|
|
20
|
+
|
|
21
|
+
export interface Props {
|
|
22
|
+
class?: string;
|
|
23
|
+
style?: string;
|
|
24
|
+
/** Puts the actuator on the opposite side of the pipe. */
|
|
25
|
+
invertHandlePosition?: boolean;
|
|
26
|
+
/** Size of the handle: `small` draws it from the symbol's centre, for symbols without a button around them. */
|
|
27
|
+
handleSize?: AutomationButtonHandleSize;
|
|
28
|
+
/** The direction the medium flows through the valve; the actuator and the self-actuation line turn with it. */
|
|
29
|
+
flowDirection?: Direction;
|
|
30
|
+
/** `regular` draws the round button, `flat` only the symbol. */
|
|
31
|
+
variant?: DirectionValveVariant;
|
|
32
|
+
showReadoutStack?: boolean;
|
|
33
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
34
|
+
static?: boolean;
|
|
35
|
+
/** Available when `showReadoutStack==true`. */
|
|
36
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
37
|
+
/** Available when `showReadoutStack==true`. */
|
|
38
|
+
showStatus?: boolean;
|
|
39
|
+
showStatusIcon?: boolean;
|
|
40
|
+
/** Available when `showReadoutStack==true`. */
|
|
41
|
+
readoutSize?: AutomationButtonReadoutStackSize;
|
|
42
|
+
/** Available when `showReadoutStack==true`. */
|
|
43
|
+
tag?: string | null;
|
|
44
|
+
positioning?: AutomationButtonPositioning;
|
|
45
|
+
/** Enables the activated background color, used to indicate that the button is activated/selected. */
|
|
46
|
+
activated?: boolean;
|
|
47
|
+
alert?: boolean;
|
|
48
|
+
/** Available when `alert==true`. */
|
|
49
|
+
alertFrameType?: ObcAlertFrameType;
|
|
50
|
+
/** Available when `alert==true`. */
|
|
51
|
+
alertFrameThickness?: ObcAlertFrameThickness;
|
|
52
|
+
/** Available when `alert==true`. */
|
|
53
|
+
alertFrameStatus?: AlertType;
|
|
54
|
+
/** Available when `alert==true`. */
|
|
55
|
+
alertFrameMode?: ObcAlertFrameMode;
|
|
56
|
+
/** Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
57
|
+
showAlertCategoryIcon?: boolean;
|
|
58
|
+
/** Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
59
|
+
showAlertIcon?: boolean;
|
|
60
|
+
/** Shows a progress indicator, used to indicate that an user action is in progress */
|
|
61
|
+
progress?: boolean;
|
|
62
|
+
/** Available when `progress==true`. */
|
|
63
|
+
progressMode?: CircularProgressMode;
|
|
64
|
+
/** Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. */
|
|
65
|
+
progressValue?: number;
|
|
66
|
+
badgeControl?: AutomationButtonBadgeControl;
|
|
67
|
+
badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
|
|
68
|
+
badgeInterlock?: AutomationButtonBadgeInterlock;
|
|
69
|
+
badgeAlert?: AutomationButtonBadgeAlert
|
|
70
|
+
}
|
|
71
|
+
export interface Events {
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
export interface Slots {
|
|
75
|
+
children?: Snippet
|
|
76
|
+
}
|
|
77
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</script>
|
|
81
|
+
<obc-pressure-reduction-valve
|
|
82
|
+
use:setProperties={props}
|
|
83
|
+
|
|
84
|
+
class={className}
|
|
85
|
+
style={style}
|
|
86
|
+
>
|
|
87
|
+
|
|
88
|
+
{#if children}
|
|
89
|
+
{@render children()}
|
|
90
|
+
{/if}
|
|
91
|
+
</obc-pressure-reduction-valve>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/automation/pressure-reduction-valve/pressure-reduction-valve.js';
|
|
2
|
+
import type { AutomationButtonHandleSize, AutomationButtonReadoutPosition, AutomationButtonPositioning } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
3
|
+
import type { Direction, AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
|
+
import type { DirectionValveVariant } from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
5
|
+
import type { AutomationButtonReadoutStackSize } from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
6
|
+
import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
7
|
+
import type { CircularProgressMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
8
|
+
import type { AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
9
|
+
import type { Snippet } from 'svelte';
|
|
10
|
+
export interface Props {
|
|
11
|
+
class?: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
/** Puts the actuator on the opposite side of the pipe. */
|
|
14
|
+
invertHandlePosition?: boolean;
|
|
15
|
+
/** Size of the handle: `small` draws it from the symbol's centre, for symbols without a button around them. */
|
|
16
|
+
handleSize?: AutomationButtonHandleSize;
|
|
17
|
+
/** The direction the medium flows through the valve; the actuator and the self-actuation line turn with it. */
|
|
18
|
+
flowDirection?: Direction;
|
|
19
|
+
/** `regular` draws the round button, `flat` only the symbol. */
|
|
20
|
+
variant?: DirectionValveVariant;
|
|
21
|
+
showReadoutStack?: boolean;
|
|
22
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
23
|
+
static?: boolean;
|
|
24
|
+
/** Available when `showReadoutStack==true`. */
|
|
25
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
26
|
+
/** Available when `showReadoutStack==true`. */
|
|
27
|
+
showStatus?: boolean;
|
|
28
|
+
showStatusIcon?: boolean;
|
|
29
|
+
/** Available when `showReadoutStack==true`. */
|
|
30
|
+
readoutSize?: AutomationButtonReadoutStackSize;
|
|
31
|
+
/** Available when `showReadoutStack==true`. */
|
|
32
|
+
tag?: string | null;
|
|
33
|
+
positioning?: AutomationButtonPositioning;
|
|
34
|
+
/** Enables the activated background color, used to indicate that the button is activated/selected. */
|
|
35
|
+
activated?: boolean;
|
|
36
|
+
alert?: boolean;
|
|
37
|
+
/** Available when `alert==true`. */
|
|
38
|
+
alertFrameType?: ObcAlertFrameType;
|
|
39
|
+
/** Available when `alert==true`. */
|
|
40
|
+
alertFrameThickness?: ObcAlertFrameThickness;
|
|
41
|
+
/** Available when `alert==true`. */
|
|
42
|
+
alertFrameStatus?: AlertType;
|
|
43
|
+
/** Available when `alert==true`. */
|
|
44
|
+
alertFrameMode?: ObcAlertFrameMode;
|
|
45
|
+
/** Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
46
|
+
showAlertCategoryIcon?: boolean;
|
|
47
|
+
/** Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
48
|
+
showAlertIcon?: boolean;
|
|
49
|
+
/** Shows a progress indicator, used to indicate that an user action is in progress */
|
|
50
|
+
progress?: boolean;
|
|
51
|
+
/** Available when `progress==true`. */
|
|
52
|
+
progressMode?: CircularProgressMode;
|
|
53
|
+
/** Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. */
|
|
54
|
+
progressValue?: number;
|
|
55
|
+
badgeControl?: AutomationButtonBadgeControl;
|
|
56
|
+
badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
|
|
57
|
+
badgeInterlock?: AutomationButtonBadgeInterlock;
|
|
58
|
+
badgeAlert?: AutomationButtonBadgeAlert;
|
|
59
|
+
}
|
|
60
|
+
export interface Events {
|
|
61
|
+
}
|
|
62
|
+
export interface Slots {
|
|
63
|
+
children?: Snippet;
|
|
64
|
+
}
|
|
65
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
66
|
+
declare const ObcPressureReductionValve: import("svelte").Component<$$ComponentProps, {
|
|
67
|
+
AutomationButtonHandleSize: typeof AutomationButtonHandleSize;
|
|
68
|
+
AutomationButtonReadoutPosition: typeof AutomationButtonReadoutPosition;
|
|
69
|
+
AutomationButtonPositioning: typeof AutomationButtonPositioning;
|
|
70
|
+
Direction: typeof Direction;
|
|
71
|
+
AlertType: typeof AlertType;
|
|
72
|
+
DirectionValveVariant: typeof DirectionValveVariant;
|
|
73
|
+
AutomationButtonReadoutStackSize: typeof AutomationButtonReadoutStackSize;
|
|
74
|
+
ObcAlertFrameType: typeof ObcAlertFrameType;
|
|
75
|
+
ObcAlertFrameThickness: typeof ObcAlertFrameThickness;
|
|
76
|
+
ObcAlertFrameMode: typeof ObcAlertFrameMode;
|
|
77
|
+
CircularProgressMode: typeof CircularProgressMode;
|
|
78
|
+
AutomationButtonBadgeControl: typeof AutomationButtonBadgeControl;
|
|
79
|
+
AutomationButtonBadgeCommandLocked: typeof AutomationButtonBadgeCommandLocked;
|
|
80
|
+
AutomationButtonBadgeInterlock: typeof AutomationButtonBadgeInterlock;
|
|
81
|
+
AutomationButtonBadgeAlert: typeof AutomationButtonBadgeAlert;
|
|
82
|
+
}, "">;
|
|
83
|
+
type ObcPressureReductionValve = ReturnType<typeof ObcPressureReductionValve>;
|
|
84
|
+
export default ObcPressureReductionValve;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {AutomationButtonHandleSize, AutomationButtonReadoutPosition, AutomationButtonPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
4
|
+
export type {Direction, AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
5
|
+
export type {DirectionValveVariant} from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
6
|
+
export type {AutomationButtonReadoutStackSize} from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
7
|
+
export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
8
|
+
export type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
9
|
+
export type {AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
10
|
+
import '@oicl/openbridge-webcomponents/dist/automation/pressure-sustain-valve/pressure-sustain-valve.js';
|
|
11
|
+
import { setProperties } from "../../util.js";
|
|
12
|
+
import type {AutomationButtonHandleSize, AutomationButtonReadoutPosition, AutomationButtonPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
13
|
+
import type {Direction, AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
14
|
+
import type {DirectionValveVariant} from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
15
|
+
import type {AutomationButtonReadoutStackSize} from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
16
|
+
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
17
|
+
import type {CircularProgressMode} from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
18
|
+
import type {AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
19
|
+
import type { Snippet } from 'svelte';
|
|
20
|
+
|
|
21
|
+
export interface Props {
|
|
22
|
+
class?: string;
|
|
23
|
+
style?: string;
|
|
24
|
+
/** Puts the actuator on the opposite side of the pipe. */
|
|
25
|
+
invertHandlePosition?: boolean;
|
|
26
|
+
/** Size of the handle: `small` draws it from the symbol's centre, for symbols without a button around them. */
|
|
27
|
+
handleSize?: AutomationButtonHandleSize;
|
|
28
|
+
/** The direction the medium flows through the valve; the actuator and the self-actuation line turn with it. */
|
|
29
|
+
flowDirection?: Direction;
|
|
30
|
+
/** `regular` draws the round button, `flat` only the symbol. */
|
|
31
|
+
variant?: DirectionValveVariant;
|
|
32
|
+
showReadoutStack?: boolean;
|
|
33
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
34
|
+
static?: boolean;
|
|
35
|
+
/** Available when `showReadoutStack==true`. */
|
|
36
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
37
|
+
/** Available when `showReadoutStack==true`. */
|
|
38
|
+
showStatus?: boolean;
|
|
39
|
+
showStatusIcon?: boolean;
|
|
40
|
+
/** Available when `showReadoutStack==true`. */
|
|
41
|
+
readoutSize?: AutomationButtonReadoutStackSize;
|
|
42
|
+
/** Available when `showReadoutStack==true`. */
|
|
43
|
+
tag?: string | null;
|
|
44
|
+
positioning?: AutomationButtonPositioning;
|
|
45
|
+
/** Enables the activated background color, used to indicate that the button is activated/selected. */
|
|
46
|
+
activated?: boolean;
|
|
47
|
+
alert?: boolean;
|
|
48
|
+
/** Available when `alert==true`. */
|
|
49
|
+
alertFrameType?: ObcAlertFrameType;
|
|
50
|
+
/** Available when `alert==true`. */
|
|
51
|
+
alertFrameThickness?: ObcAlertFrameThickness;
|
|
52
|
+
/** Available when `alert==true`. */
|
|
53
|
+
alertFrameStatus?: AlertType;
|
|
54
|
+
/** Available when `alert==true`. */
|
|
55
|
+
alertFrameMode?: ObcAlertFrameMode;
|
|
56
|
+
/** Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
57
|
+
showAlertCategoryIcon?: boolean;
|
|
58
|
+
/** Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
59
|
+
showAlertIcon?: boolean;
|
|
60
|
+
/** Shows a progress indicator, used to indicate that an user action is in progress */
|
|
61
|
+
progress?: boolean;
|
|
62
|
+
/** Available when `progress==true`. */
|
|
63
|
+
progressMode?: CircularProgressMode;
|
|
64
|
+
/** Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. */
|
|
65
|
+
progressValue?: number;
|
|
66
|
+
badgeControl?: AutomationButtonBadgeControl;
|
|
67
|
+
badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
|
|
68
|
+
badgeInterlock?: AutomationButtonBadgeInterlock;
|
|
69
|
+
badgeAlert?: AutomationButtonBadgeAlert
|
|
70
|
+
}
|
|
71
|
+
export interface Events {
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
export interface Slots {
|
|
75
|
+
children?: Snippet
|
|
76
|
+
}
|
|
77
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</script>
|
|
81
|
+
<obc-pressure-sustain-valve
|
|
82
|
+
use:setProperties={props}
|
|
83
|
+
|
|
84
|
+
class={className}
|
|
85
|
+
style={style}
|
|
86
|
+
>
|
|
87
|
+
|
|
88
|
+
{#if children}
|
|
89
|
+
{@render children()}
|
|
90
|
+
{/if}
|
|
91
|
+
</obc-pressure-sustain-valve>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/automation/pressure-sustain-valve/pressure-sustain-valve.js';
|
|
2
|
+
import type { AutomationButtonHandleSize, AutomationButtonReadoutPosition, AutomationButtonPositioning } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/automation-button.js';
|
|
3
|
+
import type { Direction, AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
4
|
+
import type { DirectionValveVariant } from '@oicl/openbridge-webcomponents/dist/automation/direction-valve-shared/direction-valve-shared.js';
|
|
5
|
+
import type { AutomationButtonReadoutStackSize } from '@oicl/openbridge-webcomponents/dist/components/automation-button-readout-stack/automation-button-readout-stack.js';
|
|
6
|
+
import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
7
|
+
import type { CircularProgressMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/circular-progress/circular-progress.js';
|
|
8
|
+
import type { AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, AutomationButtonBadgeInterlock, AutomationButtonBadgeAlert } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
9
|
+
import type { Snippet } from 'svelte';
|
|
10
|
+
export interface Props {
|
|
11
|
+
class?: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
/** Puts the actuator on the opposite side of the pipe. */
|
|
14
|
+
invertHandlePosition?: boolean;
|
|
15
|
+
/** Size of the handle: `small` draws it from the symbol's centre, for symbols without a button around them. */
|
|
16
|
+
handleSize?: AutomationButtonHandleSize;
|
|
17
|
+
/** The direction the medium flows through the valve; the actuator and the self-actuation line turn with it. */
|
|
18
|
+
flowDirection?: Direction;
|
|
19
|
+
/** `regular` draws the round button, `flat` only the symbol. */
|
|
20
|
+
variant?: DirectionValveVariant;
|
|
21
|
+
showReadoutStack?: boolean;
|
|
22
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
23
|
+
static?: boolean;
|
|
24
|
+
/** Available when `showReadoutStack==true`. */
|
|
25
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
26
|
+
/** Available when `showReadoutStack==true`. */
|
|
27
|
+
showStatus?: boolean;
|
|
28
|
+
showStatusIcon?: boolean;
|
|
29
|
+
/** Available when `showReadoutStack==true`. */
|
|
30
|
+
readoutSize?: AutomationButtonReadoutStackSize;
|
|
31
|
+
/** Available when `showReadoutStack==true`. */
|
|
32
|
+
tag?: string | null;
|
|
33
|
+
positioning?: AutomationButtonPositioning;
|
|
34
|
+
/** Enables the activated background color, used to indicate that the button is activated/selected. */
|
|
35
|
+
activated?: boolean;
|
|
36
|
+
alert?: boolean;
|
|
37
|
+
/** Available when `alert==true`. */
|
|
38
|
+
alertFrameType?: ObcAlertFrameType;
|
|
39
|
+
/** Available when `alert==true`. */
|
|
40
|
+
alertFrameThickness?: ObcAlertFrameThickness;
|
|
41
|
+
/** Available when `alert==true`. */
|
|
42
|
+
alertFrameStatus?: AlertType;
|
|
43
|
+
/** Available when `alert==true`. */
|
|
44
|
+
alertFrameMode?: ObcAlertFrameMode;
|
|
45
|
+
/** Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
46
|
+
showAlertCategoryIcon?: boolean;
|
|
47
|
+
/** Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. */
|
|
48
|
+
showAlertIcon?: boolean;
|
|
49
|
+
/** Shows a progress indicator, used to indicate that an user action is in progress */
|
|
50
|
+
progress?: boolean;
|
|
51
|
+
/** Available when `progress==true`. */
|
|
52
|
+
progressMode?: CircularProgressMode;
|
|
53
|
+
/** Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. */
|
|
54
|
+
progressValue?: number;
|
|
55
|
+
badgeControl?: AutomationButtonBadgeControl;
|
|
56
|
+
badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
|
|
57
|
+
badgeInterlock?: AutomationButtonBadgeInterlock;
|
|
58
|
+
badgeAlert?: AutomationButtonBadgeAlert;
|
|
59
|
+
}
|
|
60
|
+
export interface Events {
|
|
61
|
+
}
|
|
62
|
+
export interface Slots {
|
|
63
|
+
children?: Snippet;
|
|
64
|
+
}
|
|
65
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
66
|
+
declare const ObcPressureSustainValve: import("svelte").Component<$$ComponentProps, {
|
|
67
|
+
AutomationButtonHandleSize: typeof AutomationButtonHandleSize;
|
|
68
|
+
AutomationButtonReadoutPosition: typeof AutomationButtonReadoutPosition;
|
|
69
|
+
AutomationButtonPositioning: typeof AutomationButtonPositioning;
|
|
70
|
+
Direction: typeof Direction;
|
|
71
|
+
AlertType: typeof AlertType;
|
|
72
|
+
DirectionValveVariant: typeof DirectionValveVariant;
|
|
73
|
+
AutomationButtonReadoutStackSize: typeof AutomationButtonReadoutStackSize;
|
|
74
|
+
ObcAlertFrameType: typeof ObcAlertFrameType;
|
|
75
|
+
ObcAlertFrameThickness: typeof ObcAlertFrameThickness;
|
|
76
|
+
ObcAlertFrameMode: typeof ObcAlertFrameMode;
|
|
77
|
+
CircularProgressMode: typeof CircularProgressMode;
|
|
78
|
+
AutomationButtonBadgeControl: typeof AutomationButtonBadgeControl;
|
|
79
|
+
AutomationButtonBadgeCommandLocked: typeof AutomationButtonBadgeCommandLocked;
|
|
80
|
+
AutomationButtonBadgeInterlock: typeof AutomationButtonBadgeInterlock;
|
|
81
|
+
AutomationButtonBadgeAlert: typeof AutomationButtonBadgeAlert;
|
|
82
|
+
}, "">;
|
|
83
|
+
type ObcPressureSustainValve = ReturnType<typeof ObcPressureSustainValve>;
|
|
84
|
+
export default ObcPressureSustainValve;
|
|
@@ -34,10 +34,13 @@ import type {AutomationButtonBadgeControl, AutomationButtonBadgeCommandLocked, A
|
|
|
34
34
|
/** Available when `variant in [double, forward, flatForward]`. */
|
|
35
35
|
direction?: AutomationButtonDirection;
|
|
36
36
|
showReadoutStack?: boolean;
|
|
37
|
+
/** Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. */
|
|
38
|
+
static?: boolean;
|
|
37
39
|
/** Available when `showReadoutStack==true`. */
|
|
38
|
-
readoutPosition?: AutomationButtonReadoutPosition;
|
|
40
|
+
readoutPosition?: AutomationButtonReadoutPosition | undefined;
|
|
39
41
|
/** Available when `showReadoutStack==true`. */
|
|
40
42
|
showStatus?: boolean;
|
|
43
|
+
showStatusIcon?: boolean;
|
|
41
44
|
/** Available when `showReadoutStack==true`. */
|
|
42
45
|
readoutSize?: AutomationButtonReadoutStackSize;
|
|
43
46
|
/** Available when `showReadoutStack==true`. */
|