@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
|
@@ -39,26 +39,26 @@ type Story = StoryObj<ObcSwitch>;
|
|
|
39
39
|
|
|
40
40
|
export const On: Story = {
|
|
41
41
|
args: {
|
|
42
|
-
|
|
42
|
+
turnedOn: true,
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export const Off: Story = {
|
|
47
47
|
args: {
|
|
48
|
-
|
|
48
|
+
turnedOn: false,
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export const OrientationVerticalRight: Story = {
|
|
53
53
|
args: {
|
|
54
|
-
|
|
54
|
+
turnedOn: false,
|
|
55
55
|
orientation: AutomationButtonOrientation.verticalRight,
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
export const OrientationVerticalLeft: Story = {
|
|
60
60
|
args: {
|
|
61
|
-
|
|
61
|
+
turnedOn: false,
|
|
62
62
|
orientation: AutomationButtonOrientation.verticalLeft,
|
|
63
63
|
},
|
|
64
64
|
};
|
|
@@ -29,7 +29,7 @@ export class ObcSwitch extends ObcAbstractAutomationButtonSquared {
|
|
|
29
29
|
override get icon() {
|
|
30
30
|
switch (this.alternativeIcon) {
|
|
31
31
|
case SwitchAlternativeIcon.s1:
|
|
32
|
-
if (this.
|
|
32
|
+
if (this.turnedOn) {
|
|
33
33
|
return html`<obi-switch-01-on
|
|
34
34
|
usecsscolor
|
|
35
35
|
slot="icon"
|
|
@@ -49,7 +49,7 @@ export class ObcSwitch extends ObcAbstractAutomationButtonSquared {
|
|
|
49
49
|
></obi-switch-01-off>`;
|
|
50
50
|
}
|
|
51
51
|
case SwitchAlternativeIcon.s2:
|
|
52
|
-
if (this.
|
|
52
|
+
if (this.turnedOn) {
|
|
53
53
|
return html`<obi-switch-02-on
|
|
54
54
|
usecsscolor
|
|
55
55
|
slot="icon"
|
|
@@ -69,7 +69,7 @@ export class ObcSwitch extends ObcAbstractAutomationButtonSquared {
|
|
|
69
69
|
></obi-switch-02-off>`;
|
|
70
70
|
}
|
|
71
71
|
case SwitchAlternativeIcon.s3:
|
|
72
|
-
if (this.
|
|
72
|
+
if (this.turnedOn) {
|
|
73
73
|
return html`<obi-switch-03-on
|
|
74
74
|
usecsscolor
|
|
75
75
|
slot="icon"
|
|
@@ -89,7 +89,7 @@ export class ObcSwitch extends ObcAbstractAutomationButtonSquared {
|
|
|
89
89
|
></obi-switch-03-off>`;
|
|
90
90
|
}
|
|
91
91
|
default:
|
|
92
|
-
if (this.
|
|
92
|
+
if (this.turnedOn) {
|
|
93
93
|
return html`<obi-switch-horizontal-on
|
|
94
94
|
usecsscolor
|
|
95
95
|
slot="icon"
|
|
@@ -23,7 +23,7 @@ export class ObcTransformer extends ObcAbstractAutomationButtonSquared {
|
|
|
23
23
|
override get icon() {
|
|
24
24
|
switch (this.alternativeIcon) {
|
|
25
25
|
case TransformerAlternativeIcon.transformer02:
|
|
26
|
-
if (this.
|
|
26
|
+
if (this.turnedOn) {
|
|
27
27
|
return html`<obi-transformer-02-on
|
|
28
28
|
usecsscolor
|
|
29
29
|
slot="icon"
|
|
@@ -43,7 +43,7 @@ export class ObcTransformer extends ObcAbstractAutomationButtonSquared {
|
|
|
43
43
|
></obi-transformer-02-off>`;
|
|
44
44
|
}
|
|
45
45
|
default:
|
|
46
|
-
if (this.
|
|
46
|
+
if (this.turnedOn) {
|
|
47
47
|
return html`<obi-transformer-01-on
|
|
48
48
|
usecsscolor
|
|
49
49
|
slot="icon"
|