@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.171 → 2.0.0-next.172
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/bundle/openbridge-webcomponents.bundle.js +104 -70
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +691 -41
- package/dist/automation/automation-button/abstract-automation-button-motorized.d.ts +11 -1
- package/dist/automation/automation-button/abstract-automation-button-motorized.d.ts.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-motorized.js +14 -4
- package/dist/automation/automation-button/abstract-automation-button-motorized.js.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-squared.d.ts +25 -1
- package/dist/automation/automation-button/abstract-automation-button-squared.d.ts.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-squared.js +27 -3
- package/dist/automation/automation-button/abstract-automation-button-squared.js.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.d.ts +12 -0
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.d.ts.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.js +8 -0
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.js.map +1 -1
- package/dist/automation/bipolar-transistor/bipolar-transistor.js +4 -4
- package/dist/automation/bipolar-transistor/bipolar-transistor.js.map +1 -1
- package/dist/automation/capacitor/capacitor.js +4 -4
- package/dist/automation/capacitor/capacitor.js.map +1 -1
- package/dist/automation/converter/converter.js +4 -4
- package/dist/automation/converter/converter.js.map +1 -1
- package/dist/automation/damper/damper.js +1 -1
- package/dist/automation/damper/damper.js.map +1 -1
- package/dist/automation/diodes/diodes.js +6 -6
- package/dist/automation/diodes/diodes.js.map +1 -1
- package/dist/automation/fan/fan.js +1 -1
- package/dist/automation/fan/fan.js.map +1 -1
- package/dist/automation/filter/filter.js +4 -4
- package/dist/automation/filter/filter.js.map +1 -1
- package/dist/automation/ground/ground.js +3 -3
- package/dist/automation/ground/ground.js.map +1 -1
- package/dist/automation/logic/logic.js +6 -6
- package/dist/automation/logic/logic.js.map +1 -1
- package/dist/automation/mosfet/mosfet.js +8 -8
- package/dist/automation/mosfet/mosfet.js.map +1 -1
- package/dist/automation/motor/motor.js +2 -2
- package/dist/automation/motor/motor.js.map +1 -1
- package/dist/automation/pump/pump.js +2 -2
- package/dist/automation/pump/pump.js.map +1 -1
- package/dist/automation/resistor/resistor.js +5 -5
- package/dist/automation/resistor/resistor.js.map +1 -1
- package/dist/automation/router/router.js +2 -2
- package/dist/automation/router/router.js.map +1 -1
- package/dist/automation/source/source.js +5 -5
- package/dist/automation/source/source.js.map +1 -1
- package/dist/automation/switch/switch.js +4 -4
- package/dist/automation/switch/switch.js.map +1 -1
- package/dist/automation/transformer/transformer.js +2 -2
- package/dist/automation/transformer/transformer.js.map +1 -1
- package/eslint.config.mjs +56 -0
- package/package.json +1 -1
- package/script/eslint-rules.test.ts +44 -0
- package/src/automation/automation-button/abstract-automation-button-motorized.ts +20 -4
- package/src/automation/automation-button/abstract-automation-button-squared.ts +33 -3
- package/src/automation/automation-button/abstract-automation-button-storybook-helpers.ts +2 -0
- package/src/automation/automation-button/turned-on.spec.ts +64 -0
- package/src/automation/bipolar-transistor/bipolar-transistor.stories.ts +2 -2
- package/src/automation/bipolar-transistor/bipolar-transistor.ts +4 -4
- package/src/automation/capacitor/capacitor.stories.ts +2 -2
- package/src/automation/capacitor/capacitor.ts +4 -4
- package/src/automation/converter/converter.stories.ts +2 -2
- package/src/automation/converter/converter.ts +4 -4
- package/src/automation/damper/damper.stories.ts +2 -2
- package/src/automation/damper/damper.ts +1 -1
- package/src/automation/diodes/diodes.stories.ts +2 -2
- package/src/automation/diodes/diodes.ts +6 -6
- package/src/automation/fan/fan.stories.ts +3 -3
- package/src/automation/fan/fan.ts +1 -1
- package/src/automation/filter/filter.stories.ts +2 -2
- package/src/automation/filter/filter.ts +4 -4
- package/src/automation/ground/ground.stories.ts +2 -2
- package/src/automation/ground/ground.ts +3 -3
- package/src/automation/logic/logic.stories.ts +2 -2
- package/src/automation/logic/logic.ts +6 -6
- package/src/automation/mosfet/mosfet.stories.ts +2 -2
- package/src/automation/mosfet/mosfet.ts +8 -8
- package/src/automation/motor/motor.stories.ts +7 -7
- package/src/automation/motor/motor.ts +2 -2
- package/src/automation/pump/pump.stories.ts +5 -5
- package/src/automation/pump/pump.ts +2 -2
- package/src/automation/resistor/resistor.stories.ts +2 -2
- package/src/automation/resistor/resistor.ts +5 -5
- package/src/automation/router/router.stories.ts +2 -2
- package/src/automation/router/router.ts +2 -2
- package/src/automation/source/source.stories.ts +2 -2
- package/src/automation/source/source.ts +5 -5
- package/src/automation/switch/switch.stories.ts +4 -4
- package/src/automation/switch/switch.ts +4 -4
- package/src/automation/transformer/transformer.stories.ts +2 -2
- package/src/automation/transformer/transformer.ts +2 -2
|
@@ -35,7 +35,7 @@ export class ObcDiodes extends ObcAbstractAutomationButtonSquared {
|
|
|
35
35
|
override get icon() {
|
|
36
36
|
switch (this.alternativeIcon) {
|
|
37
37
|
case DiodesAlternativeIcon.diodes02:
|
|
38
|
-
if (this.
|
|
38
|
+
if (this.turnedOn) {
|
|
39
39
|
return html`<obi-diodes-02-on
|
|
40
40
|
usecsscolor
|
|
41
41
|
slot="icon"
|
|
@@ -55,7 +55,7 @@ export class ObcDiodes extends ObcAbstractAutomationButtonSquared {
|
|
|
55
55
|
></obi-diodes-02-off>`;
|
|
56
56
|
}
|
|
57
57
|
case DiodesAlternativeIcon.diodes03:
|
|
58
|
-
if (this.
|
|
58
|
+
if (this.turnedOn) {
|
|
59
59
|
return html`<obi-diodes-03-on
|
|
60
60
|
usecsscolor
|
|
61
61
|
slot="icon"
|
|
@@ -75,7 +75,7 @@ export class ObcDiodes extends ObcAbstractAutomationButtonSquared {
|
|
|
75
75
|
></obi-diodes-03-off>`;
|
|
76
76
|
}
|
|
77
77
|
case DiodesAlternativeIcon.diodes04:
|
|
78
|
-
if (this.
|
|
78
|
+
if (this.turnedOn) {
|
|
79
79
|
return html`<obi-diodes-04-on
|
|
80
80
|
usecsscolor
|
|
81
81
|
slot="icon"
|
|
@@ -95,7 +95,7 @@ export class ObcDiodes extends ObcAbstractAutomationButtonSquared {
|
|
|
95
95
|
></obi-diodes-04-off>`;
|
|
96
96
|
}
|
|
97
97
|
case DiodesAlternativeIcon.diodes05:
|
|
98
|
-
if (this.
|
|
98
|
+
if (this.turnedOn) {
|
|
99
99
|
return html`<obi-diodes-05-on
|
|
100
100
|
usecsscolor
|
|
101
101
|
slot="icon"
|
|
@@ -115,7 +115,7 @@ export class ObcDiodes extends ObcAbstractAutomationButtonSquared {
|
|
|
115
115
|
></obi-diodes-05-off>`;
|
|
116
116
|
}
|
|
117
117
|
case DiodesAlternativeIcon.diodes06:
|
|
118
|
-
if (this.
|
|
118
|
+
if (this.turnedOn) {
|
|
119
119
|
return html`<obi-diodes-06-on
|
|
120
120
|
usecsscolor
|
|
121
121
|
slot="icon"
|
|
@@ -135,7 +135,7 @@ export class ObcDiodes extends ObcAbstractAutomationButtonSquared {
|
|
|
135
135
|
></obi-diodes-06-off>`;
|
|
136
136
|
}
|
|
137
137
|
default:
|
|
138
|
-
if (this.
|
|
138
|
+
if (this.turnedOn) {
|
|
139
139
|
return html`<obi-diodes-01-on
|
|
140
140
|
usecsscolor
|
|
141
141
|
slot="icon"
|
|
@@ -37,7 +37,7 @@ type Story = StoryObj<ObcFan>;
|
|
|
37
37
|
|
|
38
38
|
export const FanOn: Story = {
|
|
39
39
|
args: {
|
|
40
|
-
|
|
40
|
+
turnedOn: true,
|
|
41
41
|
direction: AutomationButtonDirection.forward,
|
|
42
42
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
43
43
|
},
|
|
@@ -45,7 +45,7 @@ export const FanOn: Story = {
|
|
|
45
45
|
|
|
46
46
|
export const FanOff: Story = {
|
|
47
47
|
args: {
|
|
48
|
-
|
|
48
|
+
turnedOn: false,
|
|
49
49
|
direction: AutomationButtonDirection.backwardFast,
|
|
50
50
|
labelDirection: AutomationButtonLabelDirection.left,
|
|
51
51
|
},
|
|
@@ -53,7 +53,7 @@ export const FanOff: Story = {
|
|
|
53
53
|
|
|
54
54
|
export const FanComponentSize: Story = {
|
|
55
55
|
args: {
|
|
56
|
-
|
|
56
|
+
turnedOn: true,
|
|
57
57
|
direction: AutomationButtonDirection.forward,
|
|
58
58
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
59
59
|
variant: AutomationButtonVariant.double,
|
|
@@ -10,7 +10,7 @@ import {ObcAbstractAutomationButtonMotorized} from '../automation-button/abstrac
|
|
|
10
10
|
@customElement('obc-fan')
|
|
11
11
|
export class ObcFan extends ObcAbstractAutomationButtonMotorized {
|
|
12
12
|
override get icon() {
|
|
13
|
-
if (this.
|
|
13
|
+
if (this.turnedOn) {
|
|
14
14
|
return html`<obi-fan-on usecsscolor slot="icon"></obi-fan-on>
|
|
15
15
|
<obi-fan-on usecsscolor slot="icon-silhouette"></obi-fan-on>`;
|
|
16
16
|
} else {
|
|
@@ -29,7 +29,7 @@ export class ObcFilter extends ObcAbstractAutomationButtonSquared {
|
|
|
29
29
|
override get icon() {
|
|
30
30
|
switch (this.alternativeIcon) {
|
|
31
31
|
case FilterAlternativeIcon.filter2:
|
|
32
|
-
if (this.
|
|
32
|
+
if (this.turnedOn) {
|
|
33
33
|
return html`<obi-filter-2-on
|
|
34
34
|
usecsscolor
|
|
35
35
|
slot="icon"
|
|
@@ -49,7 +49,7 @@ export class ObcFilter extends ObcAbstractAutomationButtonSquared {
|
|
|
49
49
|
></obi-filter-2-off>`;
|
|
50
50
|
}
|
|
51
51
|
case FilterAlternativeIcon.filter3:
|
|
52
|
-
if (this.
|
|
52
|
+
if (this.turnedOn) {
|
|
53
53
|
return html`<obi-filter-3-on
|
|
54
54
|
usecsscolor
|
|
55
55
|
slot="icon"
|
|
@@ -69,7 +69,7 @@ export class ObcFilter extends ObcAbstractAutomationButtonSquared {
|
|
|
69
69
|
></obi-filter-3-off>`;
|
|
70
70
|
}
|
|
71
71
|
case FilterAlternativeIcon.filter4:
|
|
72
|
-
if (this.
|
|
72
|
+
if (this.turnedOn) {
|
|
73
73
|
return html`<obi-filter-4-on
|
|
74
74
|
usecsscolor
|
|
75
75
|
slot="icon"
|
|
@@ -89,7 +89,7 @@ export class ObcFilter extends ObcAbstractAutomationButtonSquared {
|
|
|
89
89
|
></obi-filter-4-off>`;
|
|
90
90
|
}
|
|
91
91
|
default:
|
|
92
|
-
if (this.
|
|
92
|
+
if (this.turnedOn) {
|
|
93
93
|
return html`<obi-filter-1-on
|
|
94
94
|
usecsscolor
|
|
95
95
|
slot="icon"
|
|
@@ -26,7 +26,7 @@ export class ObcGround extends ObcAbstractAutomationButtonSquared {
|
|
|
26
26
|
override get icon() {
|
|
27
27
|
switch (this.alternativeIcon) {
|
|
28
28
|
case GroundAlternativeIcon.ground2:
|
|
29
|
-
if (this.
|
|
29
|
+
if (this.turnedOn) {
|
|
30
30
|
return html`<obi-ground-2-on
|
|
31
31
|
usecsscolor
|
|
32
32
|
slot="icon"
|
|
@@ -46,7 +46,7 @@ export class ObcGround extends ObcAbstractAutomationButtonSquared {
|
|
|
46
46
|
></obi-ground-2-off>`;
|
|
47
47
|
}
|
|
48
48
|
case GroundAlternativeIcon.ground3:
|
|
49
|
-
if (this.
|
|
49
|
+
if (this.turnedOn) {
|
|
50
50
|
return html`<obi-ground-3-on
|
|
51
51
|
usecsscolor
|
|
52
52
|
slot="icon"
|
|
@@ -66,7 +66,7 @@ export class ObcGround extends ObcAbstractAutomationButtonSquared {
|
|
|
66
66
|
></obi-ground-3-off>`;
|
|
67
67
|
}
|
|
68
68
|
default:
|
|
69
|
-
if (this.
|
|
69
|
+
if (this.turnedOn) {
|
|
70
70
|
return html`<obi-ground-1-on
|
|
71
71
|
usecsscolor
|
|
72
72
|
slot="icon"
|
|
@@ -35,7 +35,7 @@ export class ObcLogic extends ObcAbstractAutomationButtonSquared {
|
|
|
35
35
|
override get icon() {
|
|
36
36
|
switch (this.alternativeIcon) {
|
|
37
37
|
case LogicAlternativeIcon.logic02:
|
|
38
|
-
if (this.
|
|
38
|
+
if (this.turnedOn) {
|
|
39
39
|
return html`<obi-logic-02-on
|
|
40
40
|
usecsscolor
|
|
41
41
|
slot="icon"
|
|
@@ -55,7 +55,7 @@ export class ObcLogic extends ObcAbstractAutomationButtonSquared {
|
|
|
55
55
|
></obi-logic-02-off>`;
|
|
56
56
|
}
|
|
57
57
|
case LogicAlternativeIcon.logic03:
|
|
58
|
-
if (this.
|
|
58
|
+
if (this.turnedOn) {
|
|
59
59
|
return html`<obi-logic-03-on
|
|
60
60
|
usecsscolor
|
|
61
61
|
slot="icon"
|
|
@@ -75,7 +75,7 @@ export class ObcLogic extends ObcAbstractAutomationButtonSquared {
|
|
|
75
75
|
></obi-logic-03-off>`;
|
|
76
76
|
}
|
|
77
77
|
case LogicAlternativeIcon.logic04:
|
|
78
|
-
if (this.
|
|
78
|
+
if (this.turnedOn) {
|
|
79
79
|
return html`<obi-logic-04-on
|
|
80
80
|
usecsscolor
|
|
81
81
|
slot="icon"
|
|
@@ -95,7 +95,7 @@ export class ObcLogic extends ObcAbstractAutomationButtonSquared {
|
|
|
95
95
|
></obi-logic-04-off>`;
|
|
96
96
|
}
|
|
97
97
|
case LogicAlternativeIcon.logic05:
|
|
98
|
-
if (this.
|
|
98
|
+
if (this.turnedOn) {
|
|
99
99
|
return html`<obi-logic-05-on
|
|
100
100
|
usecsscolor
|
|
101
101
|
slot="icon"
|
|
@@ -115,7 +115,7 @@ export class ObcLogic extends ObcAbstractAutomationButtonSquared {
|
|
|
115
115
|
></obi-logic-05-off>`;
|
|
116
116
|
}
|
|
117
117
|
case LogicAlternativeIcon.logic06:
|
|
118
|
-
if (this.
|
|
118
|
+
if (this.turnedOn) {
|
|
119
119
|
return html`<obi-logic-06-on
|
|
120
120
|
usecsscolor
|
|
121
121
|
slot="icon"
|
|
@@ -135,7 +135,7 @@ export class ObcLogic extends ObcAbstractAutomationButtonSquared {
|
|
|
135
135
|
></obi-logic-06-off>`;
|
|
136
136
|
}
|
|
137
137
|
default:
|
|
138
|
-
if (this.
|
|
138
|
+
if (this.turnedOn) {
|
|
139
139
|
return html`<obi-logic-01-on
|
|
140
140
|
usecsscolor
|
|
141
141
|
slot="icon"
|
|
@@ -41,7 +41,7 @@ export class ObcMosfet extends ObcAbstractAutomationButtonSquared {
|
|
|
41
41
|
override get icon() {
|
|
42
42
|
switch (this.alternativeIcon) {
|
|
43
43
|
case MosfetAlternativeIcon.mosfetNtype2:
|
|
44
|
-
if (this.
|
|
44
|
+
if (this.turnedOn) {
|
|
45
45
|
return html`<obi-mosfet-ntype-2-on
|
|
46
46
|
usecsscolor
|
|
47
47
|
slot="icon"
|
|
@@ -61,7 +61,7 @@ export class ObcMosfet extends ObcAbstractAutomationButtonSquared {
|
|
|
61
61
|
></obi-mosfet-ntype-2-off>`;
|
|
62
62
|
}
|
|
63
63
|
case MosfetAlternativeIcon.mosfetNtype3:
|
|
64
|
-
if (this.
|
|
64
|
+
if (this.turnedOn) {
|
|
65
65
|
return html`<obi-mosfet-ntype-3-on
|
|
66
66
|
usecsscolor
|
|
67
67
|
slot="icon"
|
|
@@ -81,7 +81,7 @@ export class ObcMosfet extends ObcAbstractAutomationButtonSquared {
|
|
|
81
81
|
></obi-mosfet-ntype-3-off>`;
|
|
82
82
|
}
|
|
83
83
|
case MosfetAlternativeIcon.mosfetNtype4:
|
|
84
|
-
if (this.
|
|
84
|
+
if (this.turnedOn) {
|
|
85
85
|
return html`<obi-mosfet-ntype-4-on
|
|
86
86
|
usecsscolor
|
|
87
87
|
slot="icon"
|
|
@@ -101,7 +101,7 @@ export class ObcMosfet extends ObcAbstractAutomationButtonSquared {
|
|
|
101
101
|
></obi-mosfet-ntype-4-off>`;
|
|
102
102
|
}
|
|
103
103
|
case MosfetAlternativeIcon.mosfetPtype1:
|
|
104
|
-
if (this.
|
|
104
|
+
if (this.turnedOn) {
|
|
105
105
|
return html`<obi-mosfet-ptype-1-on
|
|
106
106
|
usecsscolor
|
|
107
107
|
slot="icon"
|
|
@@ -121,7 +121,7 @@ export class ObcMosfet extends ObcAbstractAutomationButtonSquared {
|
|
|
121
121
|
></obi-mosfet-ptype-1-off>`;
|
|
122
122
|
}
|
|
123
123
|
case MosfetAlternativeIcon.mosfetPtype2:
|
|
124
|
-
if (this.
|
|
124
|
+
if (this.turnedOn) {
|
|
125
125
|
return html`<obi-mosfet-ptype-2-on
|
|
126
126
|
usecsscolor
|
|
127
127
|
slot="icon"
|
|
@@ -141,7 +141,7 @@ export class ObcMosfet extends ObcAbstractAutomationButtonSquared {
|
|
|
141
141
|
></obi-mosfet-ptype-2-off>`;
|
|
142
142
|
}
|
|
143
143
|
case MosfetAlternativeIcon.mosfetPtype3:
|
|
144
|
-
if (this.
|
|
144
|
+
if (this.turnedOn) {
|
|
145
145
|
return html`<obi-mosfet-ptype-3-on
|
|
146
146
|
usecsscolor
|
|
147
147
|
slot="icon"
|
|
@@ -161,7 +161,7 @@ export class ObcMosfet extends ObcAbstractAutomationButtonSquared {
|
|
|
161
161
|
></obi-mosfet-ptype-3-off>`;
|
|
162
162
|
}
|
|
163
163
|
case MosfetAlternativeIcon.mosfetPtype4:
|
|
164
|
-
if (this.
|
|
164
|
+
if (this.turnedOn) {
|
|
165
165
|
return html`<obi-mosfet-ptype-4-on
|
|
166
166
|
usecsscolor
|
|
167
167
|
slot="icon"
|
|
@@ -181,7 +181,7 @@ export class ObcMosfet extends ObcAbstractAutomationButtonSquared {
|
|
|
181
181
|
></obi-mosfet-ptype-4-off>`;
|
|
182
182
|
}
|
|
183
183
|
default:
|
|
184
|
-
if (this.
|
|
184
|
+
if (this.turnedOn) {
|
|
185
185
|
return html`<obi-mosfet-ntype-1-on
|
|
186
186
|
usecsscolor
|
|
187
187
|
slot="icon"
|
|
@@ -40,7 +40,7 @@ type Story = StoryObj<ObcMotor>;
|
|
|
40
40
|
|
|
41
41
|
export const OnVertical: Story = {
|
|
42
42
|
args: {
|
|
43
|
-
|
|
43
|
+
turnedOn: true,
|
|
44
44
|
vertical: true,
|
|
45
45
|
direction: AutomationButtonDirection.forward,
|
|
46
46
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
@@ -49,7 +49,7 @@ export const OnVertical: Story = {
|
|
|
49
49
|
|
|
50
50
|
export const OnHorizontal: Story = {
|
|
51
51
|
args: {
|
|
52
|
-
|
|
52
|
+
turnedOn: true,
|
|
53
53
|
vertical: false,
|
|
54
54
|
direction: AutomationButtonDirection.backwardFast,
|
|
55
55
|
labelDirection: AutomationButtonLabelDirection.left,
|
|
@@ -58,7 +58,7 @@ export const OnHorizontal: Story = {
|
|
|
58
58
|
|
|
59
59
|
export const OffVertical: Story = {
|
|
60
60
|
args: {
|
|
61
|
-
|
|
61
|
+
turnedOn: false,
|
|
62
62
|
vertical: true,
|
|
63
63
|
direction: AutomationButtonDirection.standby,
|
|
64
64
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
@@ -67,7 +67,7 @@ export const OffVertical: Story = {
|
|
|
67
67
|
|
|
68
68
|
export const OffHorizontal: Story = {
|
|
69
69
|
args: {
|
|
70
|
-
|
|
70
|
+
turnedOn: false,
|
|
71
71
|
vertical: false,
|
|
72
72
|
direction: AutomationButtonDirection.backwardStopped,
|
|
73
73
|
labelDirection: AutomationButtonLabelDirection.right,
|
|
@@ -76,7 +76,7 @@ export const OffHorizontal: Story = {
|
|
|
76
76
|
|
|
77
77
|
export const OnVerticalRpm: Story = {
|
|
78
78
|
args: {
|
|
79
|
-
|
|
79
|
+
turnedOn: true,
|
|
80
80
|
vertical: true,
|
|
81
81
|
direction: AutomationButtonDirection.forward,
|
|
82
82
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
@@ -88,7 +88,7 @@ export const OnVerticalRpm: Story = {
|
|
|
88
88
|
|
|
89
89
|
export const IdOnly: Story = {
|
|
90
90
|
args: {
|
|
91
|
-
|
|
91
|
+
turnedOn: true,
|
|
92
92
|
vertical: true,
|
|
93
93
|
direction: AutomationButtonDirection.forward,
|
|
94
94
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
@@ -101,7 +101,7 @@ export const IdOnly: Story = {
|
|
|
101
101
|
|
|
102
102
|
export const VariantDoubleSizeLarge: Story = {
|
|
103
103
|
args: {
|
|
104
|
-
|
|
104
|
+
turnedOn: true,
|
|
105
105
|
vertical: true,
|
|
106
106
|
direction: AutomationButtonDirection.forward,
|
|
107
107
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
@@ -18,7 +18,7 @@ export class ObcMotor extends ObcAbstractAutomationButtonMotorized {
|
|
|
18
18
|
|
|
19
19
|
override get icon() {
|
|
20
20
|
if (this.vertical) {
|
|
21
|
-
if (this.
|
|
21
|
+
if (this.turnedOn) {
|
|
22
22
|
return html`<obi-motor-on-vertical
|
|
23
23
|
usecsscolor
|
|
24
24
|
slot="icon"
|
|
@@ -38,7 +38,7 @@ export class ObcMotor extends ObcAbstractAutomationButtonMotorized {
|
|
|
38
38
|
></obi-motor-off-vertical>`;
|
|
39
39
|
}
|
|
40
40
|
} else {
|
|
41
|
-
if (this.
|
|
41
|
+
if (this.turnedOn) {
|
|
42
42
|
return html`<obi-motor-on-horizontal
|
|
43
43
|
usecsscolor
|
|
44
44
|
slot="icon"
|
|
@@ -33,7 +33,7 @@ type Story = StoryObj<ObcPump>;
|
|
|
33
33
|
|
|
34
34
|
export const OnVerical: Story = {
|
|
35
35
|
args: {
|
|
36
|
-
|
|
36
|
+
turnedOn: true,
|
|
37
37
|
vertical: true,
|
|
38
38
|
direction: AutomationButtonDirection.forward,
|
|
39
39
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
@@ -42,7 +42,7 @@ export const OnVerical: Story = {
|
|
|
42
42
|
|
|
43
43
|
export const OnHorizontal: Story = {
|
|
44
44
|
args: {
|
|
45
|
-
|
|
45
|
+
turnedOn: true,
|
|
46
46
|
vertical: false,
|
|
47
47
|
direction: AutomationButtonDirection.backwardFast,
|
|
48
48
|
labelDirection: AutomationButtonLabelDirection.left,
|
|
@@ -51,7 +51,7 @@ export const OnHorizontal: Story = {
|
|
|
51
51
|
|
|
52
52
|
export const OffVertical: Story = {
|
|
53
53
|
args: {
|
|
54
|
-
|
|
54
|
+
turnedOn: false,
|
|
55
55
|
vertical: true,
|
|
56
56
|
direction: AutomationButtonDirection.standby,
|
|
57
57
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
@@ -60,7 +60,7 @@ export const OffVertical: Story = {
|
|
|
60
60
|
|
|
61
61
|
export const OffHorizontal: Story = {
|
|
62
62
|
args: {
|
|
63
|
-
|
|
63
|
+
turnedOn: false,
|
|
64
64
|
vertical: false,
|
|
65
65
|
direction: AutomationButtonDirection.backwardStopped,
|
|
66
66
|
labelDirection: AutomationButtonLabelDirection.right,
|
|
@@ -69,7 +69,7 @@ export const OffHorizontal: Story = {
|
|
|
69
69
|
|
|
70
70
|
export const VariantDoubleSizeLarge: Story = {
|
|
71
71
|
args: {
|
|
72
|
-
|
|
72
|
+
turnedOn: true,
|
|
73
73
|
vertical: true,
|
|
74
74
|
direction: AutomationButtonDirection.forward,
|
|
75
75
|
labelDirection: AutomationButtonLabelDirection.up,
|
|
@@ -16,7 +16,7 @@ export class ObcPump extends ObcAbstractAutomationButtonMotorized {
|
|
|
16
16
|
|
|
17
17
|
override get icon() {
|
|
18
18
|
if (this.vertical) {
|
|
19
|
-
if (this.
|
|
19
|
+
if (this.turnedOn) {
|
|
20
20
|
return html`<obi-pump-on-vertical
|
|
21
21
|
usecsscolor
|
|
22
22
|
slot="icon"
|
|
@@ -36,7 +36,7 @@ export class ObcPump extends ObcAbstractAutomationButtonMotorized {
|
|
|
36
36
|
></obi-pump-off-vertical>`;
|
|
37
37
|
}
|
|
38
38
|
} else {
|
|
39
|
-
if (this.
|
|
39
|
+
if (this.turnedOn) {
|
|
40
40
|
return html`<obi-pump-on-horizontal
|
|
41
41
|
usecsscolor
|
|
42
42
|
slot="icon"
|
|
@@ -32,7 +32,7 @@ export class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
32
32
|
override get icon() {
|
|
33
33
|
switch (this.alternativeIcon) {
|
|
34
34
|
case ResistorAlternativeIcon.resistor2:
|
|
35
|
-
if (this.
|
|
35
|
+
if (this.turnedOn) {
|
|
36
36
|
return html`<obi-resistor-2-on
|
|
37
37
|
usecsscolor
|
|
38
38
|
slot="icon"
|
|
@@ -52,7 +52,7 @@ export class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
52
52
|
></obi-resistor-2-off>`;
|
|
53
53
|
}
|
|
54
54
|
case ResistorAlternativeIcon.resistor3:
|
|
55
|
-
if (this.
|
|
55
|
+
if (this.turnedOn) {
|
|
56
56
|
return html`<obi-resistor-3-on
|
|
57
57
|
usecsscolor
|
|
58
58
|
slot="icon"
|
|
@@ -72,7 +72,7 @@ export class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
72
72
|
></obi-resistor-3-off>`;
|
|
73
73
|
}
|
|
74
74
|
case ResistorAlternativeIcon.resistor4:
|
|
75
|
-
if (this.
|
|
75
|
+
if (this.turnedOn) {
|
|
76
76
|
return html`<obi-resistor-4-on
|
|
77
77
|
usecsscolor
|
|
78
78
|
slot="icon"
|
|
@@ -92,7 +92,7 @@ export class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
92
92
|
></obi-resistor-4-off>`;
|
|
93
93
|
}
|
|
94
94
|
case ResistorAlternativeIcon.resistor5:
|
|
95
|
-
if (this.
|
|
95
|
+
if (this.turnedOn) {
|
|
96
96
|
return html`<obi-resistor-5-on
|
|
97
97
|
usecsscolor
|
|
98
98
|
slot="icon"
|
|
@@ -112,7 +112,7 @@ export class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
112
112
|
></obi-resistor-5-off>`;
|
|
113
113
|
}
|
|
114
114
|
default:
|
|
115
|
-
if (this.
|
|
115
|
+
if (this.turnedOn) {
|
|
116
116
|
return html`<obi-resistor-1-on
|
|
117
117
|
usecsscolor
|
|
118
118
|
slot="icon"
|
|
@@ -23,7 +23,7 @@ export class ObcRouter extends ObcAbstractAutomationButtonSquared {
|
|
|
23
23
|
override get icon() {
|
|
24
24
|
switch (this.alternativeIcon) {
|
|
25
25
|
case RouterAlternativeIcon.router2:
|
|
26
|
-
if (this.
|
|
26
|
+
if (this.turnedOn) {
|
|
27
27
|
return html`<obi-router-2-on
|
|
28
28
|
usecsscolor
|
|
29
29
|
slot="icon"
|
|
@@ -43,7 +43,7 @@ export class ObcRouter extends ObcAbstractAutomationButtonSquared {
|
|
|
43
43
|
></obi-router-2-off>`;
|
|
44
44
|
}
|
|
45
45
|
default:
|
|
46
|
-
if (this.
|
|
46
|
+
if (this.turnedOn) {
|
|
47
47
|
return html`<obi-router-on usecsscolor slot="icon"></obi-router-on>
|
|
48
48
|
<obi-router-on usecsscolor slot="icon-silhouette"></obi-router-on>`;
|
|
49
49
|
} else {
|
|
@@ -32,7 +32,7 @@ export class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
32
32
|
override get icon() {
|
|
33
33
|
switch (this.alternativeIcon) {
|
|
34
34
|
case SourceAlternativeIcon.sources02:
|
|
35
|
-
if (this.
|
|
35
|
+
if (this.turnedOn) {
|
|
36
36
|
return html`<obi-sources-02-on
|
|
37
37
|
usecsscolor
|
|
38
38
|
slot="icon"
|
|
@@ -52,7 +52,7 @@ export class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
52
52
|
></obi-sources-02-off>`;
|
|
53
53
|
}
|
|
54
54
|
case SourceAlternativeIcon.sources03:
|
|
55
|
-
if (this.
|
|
55
|
+
if (this.turnedOn) {
|
|
56
56
|
return html`<obi-sources-03-on
|
|
57
57
|
usecsscolor
|
|
58
58
|
slot="icon"
|
|
@@ -72,7 +72,7 @@ export class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
72
72
|
></obi-sources-03-off>`;
|
|
73
73
|
}
|
|
74
74
|
case SourceAlternativeIcon.sources04:
|
|
75
|
-
if (this.
|
|
75
|
+
if (this.turnedOn) {
|
|
76
76
|
return html`<obi-sources-04-on
|
|
77
77
|
usecsscolor
|
|
78
78
|
slot="icon"
|
|
@@ -92,7 +92,7 @@ export class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
92
92
|
></obi-sources-04-off>`;
|
|
93
93
|
}
|
|
94
94
|
case SourceAlternativeIcon.sources05:
|
|
95
|
-
if (this.
|
|
95
|
+
if (this.turnedOn) {
|
|
96
96
|
return html`<obi-sources-05-on
|
|
97
97
|
usecsscolor
|
|
98
98
|
slot="icon"
|
|
@@ -112,7 +112,7 @@ export class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
112
112
|
></obi-sources-05-off>`;
|
|
113
113
|
}
|
|
114
114
|
default:
|
|
115
|
-
if (this.
|
|
115
|
+
if (this.turnedOn) {
|
|
116
116
|
return html`<obi-sources-01-on
|
|
117
117
|
usecsscolor
|
|
118
118
|
slot="icon"
|