@oicl/openbridge-webcomponents-svelte 2.2.0-next.5 → 2.2.0-next.7

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