@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.171 → 2.0.0-next.173

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 (114) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +286 -105
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/custom-elements.json +736 -46
  4. package/dist/automation/automation-button/abstract-automation-button-motorized.d.ts +11 -1
  5. package/dist/automation/automation-button/abstract-automation-button-motorized.d.ts.map +1 -1
  6. package/dist/automation/automation-button/abstract-automation-button-motorized.js +14 -4
  7. package/dist/automation/automation-button/abstract-automation-button-motorized.js.map +1 -1
  8. package/dist/automation/automation-button/abstract-automation-button-squared.d.ts +25 -1
  9. package/dist/automation/automation-button/abstract-automation-button-squared.d.ts.map +1 -1
  10. package/dist/automation/automation-button/abstract-automation-button-squared.js +27 -3
  11. package/dist/automation/automation-button/abstract-automation-button-squared.js.map +1 -1
  12. package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.d.ts +12 -0
  13. package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.d.ts.map +1 -1
  14. package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.js +8 -0
  15. package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.js.map +1 -1
  16. package/dist/automation/bipolar-transistor/bipolar-transistor.js +4 -4
  17. package/dist/automation/bipolar-transistor/bipolar-transistor.js.map +1 -1
  18. package/dist/automation/capacitor/capacitor.js +4 -4
  19. package/dist/automation/capacitor/capacitor.js.map +1 -1
  20. package/dist/automation/converter/converter.js +4 -4
  21. package/dist/automation/converter/converter.js.map +1 -1
  22. package/dist/automation/damper/damper.js +1 -1
  23. package/dist/automation/damper/damper.js.map +1 -1
  24. package/dist/automation/diodes/diodes.js +6 -6
  25. package/dist/automation/diodes/diodes.js.map +1 -1
  26. package/dist/automation/fan/fan.js +1 -1
  27. package/dist/automation/fan/fan.js.map +1 -1
  28. package/dist/automation/filter/filter.js +4 -4
  29. package/dist/automation/filter/filter.js.map +1 -1
  30. package/dist/automation/ground/ground.js +3 -3
  31. package/dist/automation/ground/ground.js.map +1 -1
  32. package/dist/automation/logic/logic.js +6 -6
  33. package/dist/automation/logic/logic.js.map +1 -1
  34. package/dist/automation/mosfet/mosfet.js +8 -8
  35. package/dist/automation/mosfet/mosfet.js.map +1 -1
  36. package/dist/automation/motor/motor.js +2 -2
  37. package/dist/automation/motor/motor.js.map +1 -1
  38. package/dist/automation/pump/pump.js +2 -2
  39. package/dist/automation/pump/pump.js.map +1 -1
  40. package/dist/automation/resistor/resistor.js +5 -5
  41. package/dist/automation/resistor/resistor.js.map +1 -1
  42. package/dist/automation/router/router.js +2 -2
  43. package/dist/automation/router/router.js.map +1 -1
  44. package/dist/automation/source/source.js +5 -5
  45. package/dist/automation/source/source.js.map +1 -1
  46. package/dist/automation/switch/switch.js +4 -4
  47. package/dist/automation/switch/switch.js.map +1 -1
  48. package/dist/automation/transformer/transformer.js +2 -2
  49. package/dist/automation/transformer/transformer.js.map +1 -1
  50. package/dist/components/accordion-card/accordion-card.css.js +61 -19
  51. package/dist/components/accordion-card/accordion-card.css.js.map +1 -1
  52. package/dist/components/accordion-card/accordion-card.d.ts +12 -3
  53. package/dist/components/accordion-card/accordion-card.d.ts.map +1 -1
  54. package/dist/components/accordion-card/accordion-card.js +23 -5
  55. package/dist/components/accordion-card/accordion-card.js.map +1 -1
  56. package/dist/components/accordion-item/accordion-item.css.js +40 -9
  57. package/dist/components/accordion-item/accordion-item.css.js.map +1 -1
  58. package/dist/components/accordion-item/accordion-item.d.ts +14 -5
  59. package/dist/components/accordion-item/accordion-item.d.ts.map +1 -1
  60. package/dist/components/accordion-item/accordion-item.js +23 -3
  61. package/dist/components/accordion-item/accordion-item.js.map +1 -1
  62. package/dist/internal/focus.d.ts +23 -0
  63. package/dist/internal/focus.d.ts.map +1 -1
  64. package/dist/internal/focus.js +38 -1
  65. package/dist/internal/focus.js.map +1 -1
  66. package/eslint.config.mjs +56 -0
  67. package/package.json +1 -1
  68. package/script/eslint-rules.test.ts +44 -0
  69. package/src/automation/automation-button/abstract-automation-button-motorized.ts +20 -4
  70. package/src/automation/automation-button/abstract-automation-button-squared.ts +33 -3
  71. package/src/automation/automation-button/abstract-automation-button-storybook-helpers.ts +2 -0
  72. package/src/automation/automation-button/turned-on.spec.ts +64 -0
  73. package/src/automation/bipolar-transistor/bipolar-transistor.stories.ts +2 -2
  74. package/src/automation/bipolar-transistor/bipolar-transistor.ts +4 -4
  75. package/src/automation/capacitor/capacitor.stories.ts +2 -2
  76. package/src/automation/capacitor/capacitor.ts +4 -4
  77. package/src/automation/converter/converter.stories.ts +2 -2
  78. package/src/automation/converter/converter.ts +4 -4
  79. package/src/automation/damper/damper.stories.ts +2 -2
  80. package/src/automation/damper/damper.ts +1 -1
  81. package/src/automation/diodes/diodes.stories.ts +2 -2
  82. package/src/automation/diodes/diodes.ts +6 -6
  83. package/src/automation/fan/fan.stories.ts +3 -3
  84. package/src/automation/fan/fan.ts +1 -1
  85. package/src/automation/filter/filter.stories.ts +2 -2
  86. package/src/automation/filter/filter.ts +4 -4
  87. package/src/automation/ground/ground.stories.ts +2 -2
  88. package/src/automation/ground/ground.ts +3 -3
  89. package/src/automation/logic/logic.stories.ts +2 -2
  90. package/src/automation/logic/logic.ts +6 -6
  91. package/src/automation/mosfet/mosfet.stories.ts +2 -2
  92. package/src/automation/mosfet/mosfet.ts +8 -8
  93. package/src/automation/motor/motor.stories.ts +7 -7
  94. package/src/automation/motor/motor.ts +2 -2
  95. package/src/automation/pump/pump.stories.ts +5 -5
  96. package/src/automation/pump/pump.ts +2 -2
  97. package/src/automation/resistor/resistor.stories.ts +2 -2
  98. package/src/automation/resistor/resistor.ts +5 -5
  99. package/src/automation/router/router.stories.ts +2 -2
  100. package/src/automation/router/router.ts +2 -2
  101. package/src/automation/source/source.stories.ts +2 -2
  102. package/src/automation/source/source.ts +5 -5
  103. package/src/automation/switch/switch.stories.ts +4 -4
  104. package/src/automation/switch/switch.ts +4 -4
  105. package/src/automation/transformer/transformer.stories.ts +2 -2
  106. package/src/automation/transformer/transformer.ts +2 -2
  107. package/src/components/accordion-card/accordion-card.css +57 -15
  108. package/src/components/accordion-card/accordion-card.spec.ts +171 -0
  109. package/src/components/accordion-card/accordion-card.ts +32 -12
  110. package/src/components/accordion-item/accordion-item.css +40 -9
  111. package/src/components/accordion-item/accordion-item.spec.ts +161 -0
  112. package/src/components/accordion-item/accordion-item.ts +34 -9
  113. package/src/internal/_test-utils.ts +3 -12
  114. package/src/internal/focus.ts +45 -0
@@ -33,7 +33,7 @@ export class ObcBipolarTransistor extends ObcAbstractAutomationButtonSquared {
33
33
  override get icon() {
34
34
  switch (this.alternativeIcon) {
35
35
  case BipolarTransistorAlternativeIcon.bipolarTransistor02:
36
- if (this.on) {
36
+ if (this.turnedOn) {
37
37
  return html`<obi-bipolar-transistor-02-on
38
38
  usecsscolor
39
39
  slot="icon"
@@ -53,7 +53,7 @@ export class ObcBipolarTransistor extends ObcAbstractAutomationButtonSquared {
53
53
  ></obi-bipolar-transistor-02-off>`;
54
54
  }
55
55
  case BipolarTransistorAlternativeIcon.bipolarTransistor03:
56
- if (this.on) {
56
+ if (this.turnedOn) {
57
57
  return html`<obi-bipolar-transistor-03-on
58
58
  usecsscolor
59
59
  slot="icon"
@@ -73,7 +73,7 @@ export class ObcBipolarTransistor extends ObcAbstractAutomationButtonSquared {
73
73
  ></obi-bipolar-transistor-03-off>`;
74
74
  }
75
75
  case BipolarTransistorAlternativeIcon.bipolarTransistor04:
76
- if (this.on) {
76
+ if (this.turnedOn) {
77
77
  return html`<obi-bipolar-transistor-04-on
78
78
  usecsscolor
79
79
  slot="icon"
@@ -111,7 +111,7 @@ export class ObcBipolarTransistor extends ObcAbstractAutomationButtonSquared {
111
111
  slot="icon-silhouette"
112
112
  ></obi-bipolar-transistor-04-flat>`;
113
113
  default:
114
- if (this.on) {
114
+ if (this.turnedOn) {
115
115
  return html`<obi-bipolar-transistor-on
116
116
  usecsscolor
117
117
  slot="icon"
@@ -34,12 +34,12 @@ type Story = StoryObj<ObcCapacitor>;
34
34
 
35
35
  export const On: Story = {
36
36
  args: {
37
- on: true,
37
+ turnedOn: true,
38
38
  },
39
39
  };
40
40
 
41
41
  export const Off: Story = {
42
42
  args: {
43
- on: false,
43
+ turnedOn: false,
44
44
  },
45
45
  };
@@ -29,7 +29,7 @@ export class ObcCapacitor extends ObcAbstractAutomationButtonSquared {
29
29
  override get icon() {
30
30
  switch (this.alternativeIcon) {
31
31
  case CapacitorAlternativeIcon.capacitor02:
32
- if (this.on) {
32
+ if (this.turnedOn) {
33
33
  return html`<obi-capacitor-02-on
34
34
  usecsscolor
35
35
  slot="icon"
@@ -49,7 +49,7 @@ export class ObcCapacitor extends ObcAbstractAutomationButtonSquared {
49
49
  ></obi-capacitor-02-off>`;
50
50
  }
51
51
  case CapacitorAlternativeIcon.capacitor03:
52
- if (this.on) {
52
+ if (this.turnedOn) {
53
53
  return html`<obi-capacitor-03-on
54
54
  usecsscolor
55
55
  slot="icon"
@@ -69,7 +69,7 @@ export class ObcCapacitor extends ObcAbstractAutomationButtonSquared {
69
69
  ></obi-capacitor-03-off>`;
70
70
  }
71
71
  case CapacitorAlternativeIcon.capacitor04:
72
- if (this.on) {
72
+ if (this.turnedOn) {
73
73
  return html`<obi-capacitor-04-on
74
74
  usecsscolor
75
75
  slot="icon"
@@ -89,7 +89,7 @@ export class ObcCapacitor extends ObcAbstractAutomationButtonSquared {
89
89
  ></obi-capacitor-04-off>`;
90
90
  }
91
91
  default:
92
- if (this.on) {
92
+ if (this.turnedOn) {
93
93
  return html`<obi-capacitor-01-on
94
94
  usecsscolor
95
95
  slot="icon"
@@ -34,12 +34,12 @@ type Story = StoryObj<ObcConverter>;
34
34
 
35
35
  export const On: Story = {
36
36
  args: {
37
- on: true,
37
+ turnedOn: true,
38
38
  },
39
39
  };
40
40
 
41
41
  export const Off: Story = {
42
42
  args: {
43
- on: false,
43
+ turnedOn: false,
44
44
  },
45
45
  };
@@ -29,7 +29,7 @@ export class ObcConverter extends ObcAbstractAutomationButtonSquared {
29
29
  override get icon() {
30
30
  switch (this.alternativeIcon) {
31
31
  case ConverterAlternativeIcon.converterDcac:
32
- if (this.on) {
32
+ if (this.turnedOn) {
33
33
  return html`<obi-converter-dcac-on
34
34
  usecsscolor
35
35
  slot="icon"
@@ -49,7 +49,7 @@ export class ObcConverter extends ObcAbstractAutomationButtonSquared {
49
49
  ></obi-converter-dcac-off>`;
50
50
  }
51
51
  case ConverterAlternativeIcon.converterAcdc:
52
- if (this.on) {
52
+ if (this.turnedOn) {
53
53
  return html`<obi-converter-acdc-on
54
54
  usecsscolor
55
55
  slot="icon"
@@ -69,7 +69,7 @@ export class ObcConverter extends ObcAbstractAutomationButtonSquared {
69
69
  ></obi-converter-acdc-off>`;
70
70
  }
71
71
  case ConverterAlternativeIcon.converterFilter1:
72
- if (this.on) {
72
+ if (this.turnedOn) {
73
73
  return html`<obi-converter-filter-1-on
74
74
  usecsscolor
75
75
  slot="icon"
@@ -89,7 +89,7 @@ export class ObcConverter extends ObcAbstractAutomationButtonSquared {
89
89
  ></obi-converter-filter-1-off>`;
90
90
  }
91
91
  default:
92
- if (this.on) {
92
+ if (this.turnedOn) {
93
93
  return html`<obi-converter-dcdc-on
94
94
  usecsscolor
95
95
  slot="icon"
@@ -35,12 +35,12 @@ type Story = StoryObj<ObcDamper>;
35
35
 
36
36
  export const On: Story = {
37
37
  args: {
38
- on: true,
38
+ turnedOn: true,
39
39
  },
40
40
  };
41
41
 
42
42
  export const Off: Story = {
43
43
  args: {
44
- on: false,
44
+ turnedOn: false,
45
45
  },
46
46
  };
@@ -10,7 +10,7 @@ import {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-
10
10
  @customElement('obc-damper')
11
11
  export class ObcDamper extends ObcAbstractAutomationButtonSquared {
12
12
  override get icon() {
13
- if (this.on) {
13
+ if (this.turnedOn) {
14
14
  return html`<obi-damper-horizontal-on
15
15
  usecsscolor
16
16
  slot="icon"
@@ -34,12 +34,12 @@ type Story = StoryObj<ObcDiodes>;
34
34
 
35
35
  export const On: Story = {
36
36
  args: {
37
- on: true,
37
+ turnedOn: true,
38
38
  },
39
39
  };
40
40
 
41
41
  export const Off: Story = {
42
42
  args: {
43
- on: false,
43
+ turnedOn: false,
44
44
  },
45
45
  };
@@ -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.on) {
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.on) {
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.on) {
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.on) {
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.on) {
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.on) {
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
- on: true,
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
- on: false,
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
- on: true,
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.on) {
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 {
@@ -34,12 +34,12 @@ type Story = StoryObj<ObcFilter>;
34
34
 
35
35
  export const On: Story = {
36
36
  args: {
37
- on: true,
37
+ turnedOn: true,
38
38
  },
39
39
  };
40
40
 
41
41
  export const Off: Story = {
42
42
  args: {
43
- on: false,
43
+ turnedOn: false,
44
44
  },
45
45
  };
@@ -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.on) {
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.on) {
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.on) {
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.on) {
92
+ if (this.turnedOn) {
93
93
  return html`<obi-filter-1-on
94
94
  usecsscolor
95
95
  slot="icon"
@@ -34,12 +34,12 @@ type Story = StoryObj<ObcGround>;
34
34
 
35
35
  export const On: Story = {
36
36
  args: {
37
- on: true,
37
+ turnedOn: true,
38
38
  },
39
39
  };
40
40
 
41
41
  export const Off: Story = {
42
42
  args: {
43
- on: false,
43
+ turnedOn: false,
44
44
  },
45
45
  };
@@ -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.on) {
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.on) {
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.on) {
69
+ if (this.turnedOn) {
70
70
  return html`<obi-ground-1-on
71
71
  usecsscolor
72
72
  slot="icon"
@@ -34,12 +34,12 @@ type Story = StoryObj<ObcLogic>;
34
34
 
35
35
  export const On: Story = {
36
36
  args: {
37
- on: true,
37
+ turnedOn: true,
38
38
  },
39
39
  };
40
40
 
41
41
  export const Off: Story = {
42
42
  args: {
43
- on: false,
43
+ turnedOn: false,
44
44
  },
45
45
  };
@@ -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.on) {
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.on) {
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.on) {
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.on) {
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.on) {
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.on) {
138
+ if (this.turnedOn) {
139
139
  return html`<obi-logic-01-on
140
140
  usecsscolor
141
141
  slot="icon"
@@ -34,12 +34,12 @@ type Story = StoryObj<ObcMosfet>;
34
34
 
35
35
  export const On: Story = {
36
36
  args: {
37
- on: true,
37
+ turnedOn: true,
38
38
  },
39
39
  };
40
40
 
41
41
  export const Off: Story = {
42
42
  args: {
43
- on: false,
43
+ turnedOn: false,
44
44
  },
45
45
  };
@@ -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.on) {
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.on) {
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.on) {
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.on) {
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.on) {
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.on) {
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.on) {
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.on) {
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
- on: true,
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
- on: true,
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
- on: false,
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
- on: false,
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
- on: true,
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
- on: true,
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
- on: true,
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.on) {
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.on) {
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
- on: true,
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
- on: true,
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
- on: false,
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
- on: false,
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
- on: true,
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.on) {
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.on) {
39
+ if (this.turnedOn) {
40
40
  return html`<obi-pump-on-horizontal
41
41
  usecsscolor
42
42
  slot="icon"