@oicl/openbridge-webcomponents 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.
Files changed (50) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +104 -70
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/custom-elements.json +574 -39
  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/package.json +1 -1
@@ -19783,12 +19783,17 @@ var MotorizedVariant = /* @__PURE__ */ function(MotorizedVariant) {
19783
19783
  * Not registered as a custom element. `obc-fan`, `obc-motor` and `obc-pump`
19784
19784
  * extend it and supply their own `icon` and `variant`.
19785
19785
  *
19786
+ * @property turnedOn - Whether the device is running. Selects the running
19787
+ * icon and the speed readout instead of the `Off` state. Not named `on`,
19788
+ * which Svelte binds as an event listener in markup (#1090).
19789
+ * @property on - Alias of `turnedOn` for 1.x markup: setting it sets
19790
+ * `turnedOn`.
19786
19791
  * @availableWhen direction variant in [double, forward, flatForward]
19787
19792
  */
19788
19793
  var ObcAbstractAutomationButtonMotorized = class extends ObcAbstractAutomationButton {
19789
19794
  constructor(..._args) {
19790
19795
  super(..._args);
19791
- this.on = false;
19796
+ this.turnedOn = false;
19792
19797
  this.speedInPercent = 0;
19793
19798
  this.speedUnit = "%";
19794
19799
  this.speedMaxDigits = 3;
@@ -19799,7 +19804,7 @@ var ObcAbstractAutomationButtonMotorized = class extends ObcAbstractAutomationBu
19799
19804
  get extraReadouts() {
19800
19805
  const speed = this.speed ?? this.speedInPercent;
19801
19806
  if (!this.showStatus) return [];
19802
- if (speed !== void 0 && speed !== null && this.on) return [{
19807
+ if (speed !== void 0 && speed !== null && this.turnedOn) return [{
19803
19808
  type: "value",
19804
19809
  value: speed,
19805
19810
  nDigits: this.speedMaxDigits,
@@ -19807,17 +19812,22 @@ var ObcAbstractAutomationButtonMotorized = class extends ObcAbstractAutomationBu
19807
19812
  direction: this.labelDirection,
19808
19813
  icon: this.labelDirection === AutomationButtonLabelDirection.none ? "none" : "chevron"
19809
19814
  }];
19810
- else if (!this.on) return [{
19815
+ else if (!this.turnedOn) return [{
19811
19816
  type: "state-off",
19812
19817
  value: "Off",
19813
19818
  hasIcon: true
19814
19819
  }];
19815
19820
  return [];
19816
19821
  }
19822
+ willUpdate(changed) {
19823
+ super.willUpdate(changed);
19824
+ if (changed.has("on") && this.on !== void 0) this.turnedOn = this.on;
19825
+ }
19817
19826
  get _on() {
19818
- return this.on;
19827
+ return this.turnedOn;
19819
19828
  }
19820
19829
  };
19830
+ __decorate([n$4({ type: Boolean })], ObcAbstractAutomationButtonMotorized.prototype, "turnedOn", void 0);
19821
19831
  __decorate([n$4({ type: Boolean })], ObcAbstractAutomationButtonMotorized.prototype, "on", void 0);
19822
19832
  __decorate([n$4({ type: Number })], ObcAbstractAutomationButtonMotorized.prototype, "speedInPercent", void 0);
19823
19833
  __decorate([n$4({ type: Number })], ObcAbstractAutomationButtonMotorized.prototype, "speed", void 0);
@@ -19828,10 +19838,29 @@ __decorate([n$4({ type: String })], ObcAbstractAutomationButtonMotorized.prototy
19828
19838
  __decorate([n$4({ type: String })], ObcAbstractAutomationButtonMotorized.prototype, "direction", void 0);
19829
19839
  //#endregion
19830
19840
  //#region src/automation/automation-button/abstract-automation-button-squared.ts
19841
+ /**
19842
+ * Base class for two-state automation buttons.
19843
+ *
19844
+ * Extends `ObcAbstractAutomationButton` with the on/off state: the subclass
19845
+ * picks its icon from `turnedOn`, and the readout adds the `On` or `Off`
19846
+ * state row.
19847
+ *
19848
+ * ## Usage Guidelines
19849
+ *
19850
+ * Not registered as a custom element. `obc-switch`, `obc-converter`,
19851
+ * `obc-diodes` and the other two-state devices extend it and supply their own
19852
+ * `icon`.
19853
+ *
19854
+ * @property turnedOn - Whether the device is on. Selects the on icon and the
19855
+ * `On` state row instead of `Off`. Not named `on`, which Svelte binds as an
19856
+ * event listener in markup (#1090).
19857
+ * @property on - Alias of `turnedOn` for 1.x markup: setting it sets
19858
+ * `turnedOn`.
19859
+ */
19831
19860
  var ObcAbstractAutomationButtonSquared = class extends ObcAbstractAutomationButton {
19832
19861
  constructor(..._args) {
19833
19862
  super(..._args);
19834
- this.on = false;
19863
+ this.turnedOn = false;
19835
19864
  this.variant = "square";
19836
19865
  this.orientation = AutomationButtonOrientation.horizontal;
19837
19866
  }
@@ -19840,7 +19869,7 @@ var ObcAbstractAutomationButtonSquared = class extends ObcAbstractAutomationButt
19840
19869
  }
19841
19870
  get extraReadouts() {
19842
19871
  if (!this.showStatus) return [];
19843
- if (this.on) return [{
19872
+ if (this.turnedOn) return [{
19844
19873
  type: "state-on",
19845
19874
  value: "On",
19846
19875
  hasIcon: true
@@ -19851,10 +19880,15 @@ var ObcAbstractAutomationButtonSquared = class extends ObcAbstractAutomationButt
19851
19880
  hasIcon: true
19852
19881
  }];
19853
19882
  }
19883
+ willUpdate(changed) {
19884
+ super.willUpdate(changed);
19885
+ if (changed.has("on") && this.on !== void 0) this.turnedOn = this.on;
19886
+ }
19854
19887
  get _on() {
19855
- return this.on;
19888
+ return this.turnedOn;
19856
19889
  }
19857
19890
  };
19891
+ __decorate([n$4({ type: Boolean })], ObcAbstractAutomationButtonSquared.prototype, "turnedOn", void 0);
19858
19892
  __decorate([n$4({ type: Boolean })], ObcAbstractAutomationButtonSquared.prototype, "on", void 0);
19859
19893
  __decorate([n$4({ type: String })], ObcAbstractAutomationButtonSquared.prototype, "variant", void 0);
19860
19894
  __decorate([n$4({ type: String })], ObcAbstractAutomationButtonSquared.prototype, "orientation", void 0);
@@ -39230,7 +39264,7 @@ var ObcBipolarTransistor = class ObcBipolarTransistor extends ObcAbstractAutomat
39230
39264
  }
39231
39265
  get icon() {
39232
39266
  switch (this.alternativeIcon) {
39233
- case "bipolarTransistor02": if (this.on) return b`<obi-bipolar-transistor-02-on
39267
+ case "bipolarTransistor02": if (this.turnedOn) return b`<obi-bipolar-transistor-02-on
39234
39268
  usecsscolor
39235
39269
  slot="icon"
39236
39270
  ></obi-bipolar-transistor-02-on>
@@ -39246,7 +39280,7 @@ var ObcBipolarTransistor = class ObcBipolarTransistor extends ObcAbstractAutomat
39246
39280
  usecsscolor
39247
39281
  slot="icon-silhouette"
39248
39282
  ></obi-bipolar-transistor-02-off>`;
39249
- case "bipolarTransistor03": if (this.on) return b`<obi-bipolar-transistor-03-on
39283
+ case "bipolarTransistor03": if (this.turnedOn) return b`<obi-bipolar-transistor-03-on
39250
39284
  usecsscolor
39251
39285
  slot="icon"
39252
39286
  ></obi-bipolar-transistor-03-on>
@@ -39262,7 +39296,7 @@ var ObcBipolarTransistor = class ObcBipolarTransistor extends ObcAbstractAutomat
39262
39296
  usecsscolor
39263
39297
  slot="icon-silhouette"
39264
39298
  ></obi-bipolar-transistor-03-off>`;
39265
- case "bipolarTransistor04": if (this.on) return b`<obi-bipolar-transistor-04-on
39299
+ case "bipolarTransistor04": if (this.turnedOn) return b`<obi-bipolar-transistor-04-on
39266
39300
  usecsscolor
39267
39301
  slot="icon"
39268
39302
  ></obi-bipolar-transistor-04-on>
@@ -39294,7 +39328,7 @@ var ObcBipolarTransistor = class ObcBipolarTransistor extends ObcAbstractAutomat
39294
39328
  usecsscolor
39295
39329
  slot="icon-silhouette"
39296
39330
  ></obi-bipolar-transistor-04-flat>`;
39297
- default: if (this.on) return b`<obi-bipolar-transistor-on
39331
+ default: if (this.turnedOn) return b`<obi-bipolar-transistor-on
39298
39332
  usecsscolor
39299
39333
  slot="icon"
39300
39334
  ></obi-bipolar-transistor-on>
@@ -39817,7 +39851,7 @@ var ObcCapacitor = class ObcCapacitor extends ObcAbstractAutomationButtonSquared
39817
39851
  }
39818
39852
  get icon() {
39819
39853
  switch (this.alternativeIcon) {
39820
- case "capacitor02": if (this.on) return b`<obi-capacitor-02-on
39854
+ case "capacitor02": if (this.turnedOn) return b`<obi-capacitor-02-on
39821
39855
  usecsscolor
39822
39856
  slot="icon"
39823
39857
  ></obi-capacitor-02-on>
@@ -39833,7 +39867,7 @@ var ObcCapacitor = class ObcCapacitor extends ObcAbstractAutomationButtonSquared
39833
39867
  usecsscolor
39834
39868
  slot="icon-silhouette"
39835
39869
  ></obi-capacitor-02-off>`;
39836
- case "capacitor03": if (this.on) return b`<obi-capacitor-03-on
39870
+ case "capacitor03": if (this.turnedOn) return b`<obi-capacitor-03-on
39837
39871
  usecsscolor
39838
39872
  slot="icon"
39839
39873
  ></obi-capacitor-03-on>
@@ -39849,7 +39883,7 @@ var ObcCapacitor = class ObcCapacitor extends ObcAbstractAutomationButtonSquared
39849
39883
  usecsscolor
39850
39884
  slot="icon-silhouette"
39851
39885
  ></obi-capacitor-03-off>`;
39852
- case "capacitor04": if (this.on) return b`<obi-capacitor-04-on
39886
+ case "capacitor04": if (this.turnedOn) return b`<obi-capacitor-04-on
39853
39887
  usecsscolor
39854
39888
  slot="icon"
39855
39889
  ></obi-capacitor-04-on>
@@ -39865,7 +39899,7 @@ var ObcCapacitor = class ObcCapacitor extends ObcAbstractAutomationButtonSquared
39865
39899
  usecsscolor
39866
39900
  slot="icon-silhouette"
39867
39901
  ></obi-capacitor-04-off>`;
39868
- default: if (this.on) return b`<obi-capacitor-01-on
39902
+ default: if (this.turnedOn) return b`<obi-capacitor-01-on
39869
39903
  usecsscolor
39870
39904
  slot="icon"
39871
39905
  ></obi-capacitor-01-on>
@@ -40263,7 +40297,7 @@ var ObcConverter = class ObcConverter extends ObcAbstractAutomationButtonSquared
40263
40297
  }
40264
40298
  get icon() {
40265
40299
  switch (this.alternativeIcon) {
40266
- case "converterDcac": if (this.on) return b`<obi-converter-dcac-on
40300
+ case "converterDcac": if (this.turnedOn) return b`<obi-converter-dcac-on
40267
40301
  usecsscolor
40268
40302
  slot="icon"
40269
40303
  ></obi-converter-dcac-on>
@@ -40279,7 +40313,7 @@ var ObcConverter = class ObcConverter extends ObcAbstractAutomationButtonSquared
40279
40313
  usecsscolor
40280
40314
  slot="icon-silhouette"
40281
40315
  ></obi-converter-dcac-off>`;
40282
- case "converterAcdc": if (this.on) return b`<obi-converter-acdc-on
40316
+ case "converterAcdc": if (this.turnedOn) return b`<obi-converter-acdc-on
40283
40317
  usecsscolor
40284
40318
  slot="icon"
40285
40319
  ></obi-converter-acdc-on>
@@ -40295,7 +40329,7 @@ var ObcConverter = class ObcConverter extends ObcAbstractAutomationButtonSquared
40295
40329
  usecsscolor
40296
40330
  slot="icon-silhouette"
40297
40331
  ></obi-converter-acdc-off>`;
40298
- case "converterFilter1": if (this.on) return b`<obi-converter-filter-1-on
40332
+ case "converterFilter1": if (this.turnedOn) return b`<obi-converter-filter-1-on
40299
40333
  usecsscolor
40300
40334
  slot="icon"
40301
40335
  ></obi-converter-filter-1-on>
@@ -40311,7 +40345,7 @@ var ObcConverter = class ObcConverter extends ObcAbstractAutomationButtonSquared
40311
40345
  usecsscolor
40312
40346
  slot="icon-silhouette"
40313
40347
  ></obi-converter-filter-1-off>`;
40314
- default: if (this.on) return b`<obi-converter-dcdc-on
40348
+ default: if (this.turnedOn) return b`<obi-converter-dcdc-on
40315
40349
  usecsscolor
40316
40350
  slot="icon"
40317
40351
  ></obi-converter-dcdc-on>
@@ -40559,7 +40593,7 @@ ObiDamperHorizontalOff = __decorate([customElement("obi-damper-horizontal-off")]
40559
40593
  //#region src/automation/damper/damper.ts
40560
40594
  var ObcDamper = class ObcDamper extends ObcAbstractAutomationButtonSquared {
40561
40595
  get icon() {
40562
- if (this.on) return b`<obi-damper-horizontal-on
40596
+ if (this.turnedOn) return b`<obi-damper-horizontal-on
40563
40597
  usecsscolor
40564
40598
  slot="icon"
40565
40599
  ></obi-damper-horizontal-on>
@@ -41178,7 +41212,7 @@ var ObcDiodes = class ObcDiodes extends ObcAbstractAutomationButtonSquared {
41178
41212
  }
41179
41213
  get icon() {
41180
41214
  switch (this.alternativeIcon) {
41181
- case "diodes02": if (this.on) return b`<obi-diodes-02-on
41215
+ case "diodes02": if (this.turnedOn) return b`<obi-diodes-02-on
41182
41216
  usecsscolor
41183
41217
  slot="icon"
41184
41218
  ></obi-diodes-02-on>
@@ -41194,7 +41228,7 @@ var ObcDiodes = class ObcDiodes extends ObcAbstractAutomationButtonSquared {
41194
41228
  usecsscolor
41195
41229
  slot="icon-silhouette"
41196
41230
  ></obi-diodes-02-off>`;
41197
- case "diodes03": if (this.on) return b`<obi-diodes-03-on
41231
+ case "diodes03": if (this.turnedOn) return b`<obi-diodes-03-on
41198
41232
  usecsscolor
41199
41233
  slot="icon"
41200
41234
  ></obi-diodes-03-on>
@@ -41210,7 +41244,7 @@ var ObcDiodes = class ObcDiodes extends ObcAbstractAutomationButtonSquared {
41210
41244
  usecsscolor
41211
41245
  slot="icon-silhouette"
41212
41246
  ></obi-diodes-03-off>`;
41213
- case "diodes04": if (this.on) return b`<obi-diodes-04-on
41247
+ case "diodes04": if (this.turnedOn) return b`<obi-diodes-04-on
41214
41248
  usecsscolor
41215
41249
  slot="icon"
41216
41250
  ></obi-diodes-04-on>
@@ -41226,7 +41260,7 @@ var ObcDiodes = class ObcDiodes extends ObcAbstractAutomationButtonSquared {
41226
41260
  usecsscolor
41227
41261
  slot="icon-silhouette"
41228
41262
  ></obi-diodes-04-off>`;
41229
- case "diodes05": if (this.on) return b`<obi-diodes-05-on
41263
+ case "diodes05": if (this.turnedOn) return b`<obi-diodes-05-on
41230
41264
  usecsscolor
41231
41265
  slot="icon"
41232
41266
  ></obi-diodes-05-on>
@@ -41242,7 +41276,7 @@ var ObcDiodes = class ObcDiodes extends ObcAbstractAutomationButtonSquared {
41242
41276
  usecsscolor
41243
41277
  slot="icon-silhouette"
41244
41278
  ></obi-diodes-05-off>`;
41245
- case "diodes06": if (this.on) return b`<obi-diodes-06-on
41279
+ case "diodes06": if (this.turnedOn) return b`<obi-diodes-06-on
41246
41280
  usecsscolor
41247
41281
  slot="icon"
41248
41282
  ></obi-diodes-06-on>
@@ -41258,7 +41292,7 @@ var ObcDiodes = class ObcDiodes extends ObcAbstractAutomationButtonSquared {
41258
41292
  usecsscolor
41259
41293
  slot="icon-silhouette"
41260
41294
  ></obi-diodes-06-off>`;
41261
- default: if (this.on) return b`<obi-diodes-01-on
41295
+ default: if (this.turnedOn) return b`<obi-diodes-01-on
41262
41296
  usecsscolor
41263
41297
  slot="icon"
41264
41298
  ></obi-diodes-01-on>
@@ -41510,7 +41544,7 @@ ObiFanOff = __decorate([customElement("obi-fan-off")], ObiFanOff);
41510
41544
  //#region src/automation/fan/fan.ts
41511
41545
  var ObcFan = class ObcFan extends ObcAbstractAutomationButtonMotorized {
41512
41546
  get icon() {
41513
- if (this.on) return b`<obi-fan-on usecsscolor slot="icon"></obi-fan-on>
41547
+ if (this.turnedOn) return b`<obi-fan-on usecsscolor slot="icon"></obi-fan-on>
41514
41548
  <obi-fan-on usecsscolor slot="icon-silhouette"></obi-fan-on>`;
41515
41549
  else return b`<obi-fan-off usecsscolor slot="icon"></obi-fan-off>
41516
41550
  <obi-fan-off usecsscolor slot="icon-silhouette"></obi-fan-off>`;
@@ -41870,7 +41904,7 @@ var ObcFilter = class ObcFilter extends ObcAbstractAutomationButtonSquared {
41870
41904
  }
41871
41905
  get icon() {
41872
41906
  switch (this.alternativeIcon) {
41873
- case "filter2": if (this.on) return b`<obi-filter-2-on
41907
+ case "filter2": if (this.turnedOn) return b`<obi-filter-2-on
41874
41908
  usecsscolor
41875
41909
  slot="icon"
41876
41910
  ></obi-filter-2-on>
@@ -41886,7 +41920,7 @@ var ObcFilter = class ObcFilter extends ObcAbstractAutomationButtonSquared {
41886
41920
  usecsscolor
41887
41921
  slot="icon-silhouette"
41888
41922
  ></obi-filter-2-off>`;
41889
- case "filter3": if (this.on) return b`<obi-filter-3-on
41923
+ case "filter3": if (this.turnedOn) return b`<obi-filter-3-on
41890
41924
  usecsscolor
41891
41925
  slot="icon"
41892
41926
  ></obi-filter-3-on>
@@ -41902,7 +41936,7 @@ var ObcFilter = class ObcFilter extends ObcAbstractAutomationButtonSquared {
41902
41936
  usecsscolor
41903
41937
  slot="icon-silhouette"
41904
41938
  ></obi-filter-3-off>`;
41905
- case "filter4": if (this.on) return b`<obi-filter-4-on
41939
+ case "filter4": if (this.turnedOn) return b`<obi-filter-4-on
41906
41940
  usecsscolor
41907
41941
  slot="icon"
41908
41942
  ></obi-filter-4-on>
@@ -41918,7 +41952,7 @@ var ObcFilter = class ObcFilter extends ObcAbstractAutomationButtonSquared {
41918
41952
  usecsscolor
41919
41953
  slot="icon-silhouette"
41920
41954
  ></obi-filter-4-off>`;
41921
- default: if (this.on) return b`<obi-filter-1-on
41955
+ default: if (this.turnedOn) return b`<obi-filter-1-on
41922
41956
  usecsscolor
41923
41957
  slot="icon"
41924
41958
  ></obi-filter-1-on>
@@ -55213,7 +55247,7 @@ var ObcGround = class ObcGround extends ObcAbstractAutomationButtonSquared {
55213
55247
  }
55214
55248
  get icon() {
55215
55249
  switch (this.alternativeIcon) {
55216
- case "ground2": if (this.on) return b`<obi-ground-2-on
55250
+ case "ground2": if (this.turnedOn) return b`<obi-ground-2-on
55217
55251
  usecsscolor
55218
55252
  slot="icon"
55219
55253
  ></obi-ground-2-on>
@@ -55229,7 +55263,7 @@ var ObcGround = class ObcGround extends ObcAbstractAutomationButtonSquared {
55229
55263
  usecsscolor
55230
55264
  slot="icon-silhouette"
55231
55265
  ></obi-ground-2-off>`;
55232
- case "ground3": if (this.on) return b`<obi-ground-3-on
55266
+ case "ground3": if (this.turnedOn) return b`<obi-ground-3-on
55233
55267
  usecsscolor
55234
55268
  slot="icon"
55235
55269
  ></obi-ground-3-on>
@@ -55245,7 +55279,7 @@ var ObcGround = class ObcGround extends ObcAbstractAutomationButtonSquared {
55245
55279
  usecsscolor
55246
55280
  slot="icon-silhouette"
55247
55281
  ></obi-ground-3-off>`;
55248
- default: if (this.on) return b`<obi-ground-1-on
55282
+ default: if (this.turnedOn) return b`<obi-ground-1-on
55249
55283
  usecsscolor
55250
55284
  slot="icon"
55251
55285
  ></obi-ground-1-on>
@@ -58619,7 +58653,7 @@ var ObcLogic = class ObcLogic extends ObcAbstractAutomationButtonSquared {
58619
58653
  }
58620
58654
  get icon() {
58621
58655
  switch (this.alternativeIcon) {
58622
- case "logic02": if (this.on) return b`<obi-logic-02-on
58656
+ case "logic02": if (this.turnedOn) return b`<obi-logic-02-on
58623
58657
  usecsscolor
58624
58658
  slot="icon"
58625
58659
  ></obi-logic-02-on>
@@ -58635,7 +58669,7 @@ var ObcLogic = class ObcLogic extends ObcAbstractAutomationButtonSquared {
58635
58669
  usecsscolor
58636
58670
  slot="icon-silhouette"
58637
58671
  ></obi-logic-02-off>`;
58638
- case "logic03": if (this.on) return b`<obi-logic-03-on
58672
+ case "logic03": if (this.turnedOn) return b`<obi-logic-03-on
58639
58673
  usecsscolor
58640
58674
  slot="icon"
58641
58675
  ></obi-logic-03-on>
@@ -58651,7 +58685,7 @@ var ObcLogic = class ObcLogic extends ObcAbstractAutomationButtonSquared {
58651
58685
  usecsscolor
58652
58686
  slot="icon-silhouette"
58653
58687
  ></obi-logic-03-off>`;
58654
- case "logic04": if (this.on) return b`<obi-logic-04-on
58688
+ case "logic04": if (this.turnedOn) return b`<obi-logic-04-on
58655
58689
  usecsscolor
58656
58690
  slot="icon"
58657
58691
  ></obi-logic-04-on>
@@ -58667,7 +58701,7 @@ var ObcLogic = class ObcLogic extends ObcAbstractAutomationButtonSquared {
58667
58701
  usecsscolor
58668
58702
  slot="icon-silhouette"
58669
58703
  ></obi-logic-04-off>`;
58670
- case "logic05": if (this.on) return b`<obi-logic-05-on
58704
+ case "logic05": if (this.turnedOn) return b`<obi-logic-05-on
58671
58705
  usecsscolor
58672
58706
  slot="icon"
58673
58707
  ></obi-logic-05-on>
@@ -58683,7 +58717,7 @@ var ObcLogic = class ObcLogic extends ObcAbstractAutomationButtonSquared {
58683
58717
  usecsscolor
58684
58718
  slot="icon-silhouette"
58685
58719
  ></obi-logic-05-off>`;
58686
- case "logic06": if (this.on) return b`<obi-logic-06-on
58720
+ case "logic06": if (this.turnedOn) return b`<obi-logic-06-on
58687
58721
  usecsscolor
58688
58722
  slot="icon"
58689
58723
  ></obi-logic-06-on>
@@ -58699,7 +58733,7 @@ var ObcLogic = class ObcLogic extends ObcAbstractAutomationButtonSquared {
58699
58733
  usecsscolor
58700
58734
  slot="icon-silhouette"
58701
58735
  ></obi-logic-06-off>`;
58702
- default: if (this.on) return b`<obi-logic-01-on
58736
+ default: if (this.turnedOn) return b`<obi-logic-01-on
58703
58737
  usecsscolor
58704
58738
  slot="icon"
58705
58739
  ></obi-logic-01-on>
@@ -59445,7 +59479,7 @@ var ObcMosfet = class ObcMosfet extends ObcAbstractAutomationButtonSquared {
59445
59479
  }
59446
59480
  get icon() {
59447
59481
  switch (this.alternativeIcon) {
59448
- case "mosfetNtype2": if (this.on) return b`<obi-mosfet-ntype-2-on
59482
+ case "mosfetNtype2": if (this.turnedOn) return b`<obi-mosfet-ntype-2-on
59449
59483
  usecsscolor
59450
59484
  slot="icon"
59451
59485
  ></obi-mosfet-ntype-2-on>
@@ -59461,7 +59495,7 @@ var ObcMosfet = class ObcMosfet extends ObcAbstractAutomationButtonSquared {
59461
59495
  usecsscolor
59462
59496
  slot="icon-silhouette"
59463
59497
  ></obi-mosfet-ntype-2-off>`;
59464
- case "mosfetNtype3": if (this.on) return b`<obi-mosfet-ntype-3-on
59498
+ case "mosfetNtype3": if (this.turnedOn) return b`<obi-mosfet-ntype-3-on
59465
59499
  usecsscolor
59466
59500
  slot="icon"
59467
59501
  ></obi-mosfet-ntype-3-on>
@@ -59477,7 +59511,7 @@ var ObcMosfet = class ObcMosfet extends ObcAbstractAutomationButtonSquared {
59477
59511
  usecsscolor
59478
59512
  slot="icon-silhouette"
59479
59513
  ></obi-mosfet-ntype-3-off>`;
59480
- case "mosfetNtype4": if (this.on) return b`<obi-mosfet-ntype-4-on
59514
+ case "mosfetNtype4": if (this.turnedOn) return b`<obi-mosfet-ntype-4-on
59481
59515
  usecsscolor
59482
59516
  slot="icon"
59483
59517
  ></obi-mosfet-ntype-4-on>
@@ -59493,7 +59527,7 @@ var ObcMosfet = class ObcMosfet extends ObcAbstractAutomationButtonSquared {
59493
59527
  usecsscolor
59494
59528
  slot="icon-silhouette"
59495
59529
  ></obi-mosfet-ntype-4-off>`;
59496
- case "mosfetPtype1": if (this.on) return b`<obi-mosfet-ptype-1-on
59530
+ case "mosfetPtype1": if (this.turnedOn) return b`<obi-mosfet-ptype-1-on
59497
59531
  usecsscolor
59498
59532
  slot="icon"
59499
59533
  ></obi-mosfet-ptype-1-on>
@@ -59509,7 +59543,7 @@ var ObcMosfet = class ObcMosfet extends ObcAbstractAutomationButtonSquared {
59509
59543
  usecsscolor
59510
59544
  slot="icon-silhouette"
59511
59545
  ></obi-mosfet-ptype-1-off>`;
59512
- case "mosfetPtype2": if (this.on) return b`<obi-mosfet-ptype-2-on
59546
+ case "mosfetPtype2": if (this.turnedOn) return b`<obi-mosfet-ptype-2-on
59513
59547
  usecsscolor
59514
59548
  slot="icon"
59515
59549
  ></obi-mosfet-ptype-2-on>
@@ -59525,7 +59559,7 @@ var ObcMosfet = class ObcMosfet extends ObcAbstractAutomationButtonSquared {
59525
59559
  usecsscolor
59526
59560
  slot="icon-silhouette"
59527
59561
  ></obi-mosfet-ptype-2-off>`;
59528
- case "mosfetPtype3": if (this.on) return b`<obi-mosfet-ptype-3-on
59562
+ case "mosfetPtype3": if (this.turnedOn) return b`<obi-mosfet-ptype-3-on
59529
59563
  usecsscolor
59530
59564
  slot="icon"
59531
59565
  ></obi-mosfet-ptype-3-on>
@@ -59541,7 +59575,7 @@ var ObcMosfet = class ObcMosfet extends ObcAbstractAutomationButtonSquared {
59541
59575
  usecsscolor
59542
59576
  slot="icon-silhouette"
59543
59577
  ></obi-mosfet-ptype-3-off>`;
59544
- case "mosfetPtype4": if (this.on) return b`<obi-mosfet-ptype-4-on
59578
+ case "mosfetPtype4": if (this.turnedOn) return b`<obi-mosfet-ptype-4-on
59545
59579
  usecsscolor
59546
59580
  slot="icon"
59547
59581
  ></obi-mosfet-ptype-4-on>
@@ -59557,7 +59591,7 @@ var ObcMosfet = class ObcMosfet extends ObcAbstractAutomationButtonSquared {
59557
59591
  usecsscolor
59558
59592
  slot="icon-silhouette"
59559
59593
  ></obi-mosfet-ptype-4-off>`;
59560
- default: if (this.on) return b`<obi-mosfet-ntype-1-on
59594
+ default: if (this.turnedOn) return b`<obi-mosfet-ntype-1-on
59561
59595
  usecsscolor
59562
59596
  slot="icon"
59563
59597
  ></obi-mosfet-ntype-1-on>
@@ -59759,7 +59793,7 @@ var ObcMotor = class ObcMotor extends ObcAbstractAutomationButtonMotorized {
59759
59793
  }
59760
59794
  get icon() {
59761
59795
  if (this.vertical) {
59762
- if (this.on) return b`<obi-motor-on-vertical
59796
+ if (this.turnedOn) return b`<obi-motor-on-vertical
59763
59797
  usecsscolor
59764
59798
  slot="icon"
59765
59799
  ></obi-motor-on-vertical>
@@ -59775,7 +59809,7 @@ var ObcMotor = class ObcMotor extends ObcAbstractAutomationButtonMotorized {
59775
59809
  usecsscolor
59776
59810
  slot="icon-silhouette"
59777
59811
  ></obi-motor-off-vertical>`;
59778
- } else if (this.on) return b`<obi-motor-on-horizontal
59812
+ } else if (this.turnedOn) return b`<obi-motor-on-horizontal
59779
59813
  usecsscolor
59780
59814
  slot="icon"
59781
59815
  ></obi-motor-on-horizontal>
@@ -59940,7 +59974,7 @@ var ObcPump = class ObcPump extends ObcAbstractAutomationButtonMotorized {
59940
59974
  }
59941
59975
  get icon() {
59942
59976
  if (this.vertical) {
59943
- if (this.on) return b`<obi-pump-on-vertical
59977
+ if (this.turnedOn) return b`<obi-pump-on-vertical
59944
59978
  usecsscolor
59945
59979
  slot="icon"
59946
59980
  ></obi-pump-on-vertical>
@@ -59956,7 +59990,7 @@ var ObcPump = class ObcPump extends ObcAbstractAutomationButtonMotorized {
59956
59990
  usecsscolor
59957
59991
  slot="icon-silhouette"
59958
59992
  ></obi-pump-off-vertical>`;
59959
- } else if (this.on) return b`<obi-pump-on-horizontal
59993
+ } else if (this.turnedOn) return b`<obi-pump-on-horizontal
59960
59994
  usecsscolor
59961
59995
  slot="icon"
59962
59996
  ></obi-pump-on-horizontal>
@@ -60373,7 +60407,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
60373
60407
  }
60374
60408
  get icon() {
60375
60409
  switch (this.alternativeIcon) {
60376
- case "resistor2": if (this.on) return b`<obi-resistor-2-on
60410
+ case "resistor2": if (this.turnedOn) return b`<obi-resistor-2-on
60377
60411
  usecsscolor
60378
60412
  slot="icon"
60379
60413
  ></obi-resistor-2-on>
@@ -60389,7 +60423,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
60389
60423
  usecsscolor
60390
60424
  slot="icon-silhouette"
60391
60425
  ></obi-resistor-2-off>`;
60392
- case "resistor3": if (this.on) return b`<obi-resistor-3-on
60426
+ case "resistor3": if (this.turnedOn) return b`<obi-resistor-3-on
60393
60427
  usecsscolor
60394
60428
  slot="icon"
60395
60429
  ></obi-resistor-3-on>
@@ -60405,7 +60439,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
60405
60439
  usecsscolor
60406
60440
  slot="icon-silhouette"
60407
60441
  ></obi-resistor-3-off>`;
60408
- case "resistor4": if (this.on) return b`<obi-resistor-4-on
60442
+ case "resistor4": if (this.turnedOn) return b`<obi-resistor-4-on
60409
60443
  usecsscolor
60410
60444
  slot="icon"
60411
60445
  ></obi-resistor-4-on>
@@ -60421,7 +60455,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
60421
60455
  usecsscolor
60422
60456
  slot="icon-silhouette"
60423
60457
  ></obi-resistor-4-off>`;
60424
- case "resistor5": if (this.on) return b`<obi-resistor-5-on
60458
+ case "resistor5": if (this.turnedOn) return b`<obi-resistor-5-on
60425
60459
  usecsscolor
60426
60460
  slot="icon"
60427
60461
  ></obi-resistor-5-on>
@@ -60437,7 +60471,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
60437
60471
  usecsscolor
60438
60472
  slot="icon-silhouette"
60439
60473
  ></obi-resistor-5-off>`;
60440
- default: if (this.on) return b`<obi-resistor-1-on
60474
+ default: if (this.turnedOn) return b`<obi-resistor-1-on
60441
60475
  usecsscolor
60442
60476
  slot="icon"
60443
60477
  ></obi-resistor-1-on>
@@ -60651,7 +60685,7 @@ var ObcRouter = class ObcRouter extends ObcAbstractAutomationButtonSquared {
60651
60685
  }
60652
60686
  get icon() {
60653
60687
  switch (this.alternativeIcon) {
60654
- case "router2": if (this.on) return b`<obi-router-2-on
60688
+ case "router2": if (this.turnedOn) return b`<obi-router-2-on
60655
60689
  usecsscolor
60656
60690
  slot="icon"
60657
60691
  ></obi-router-2-on>
@@ -60667,7 +60701,7 @@ var ObcRouter = class ObcRouter extends ObcAbstractAutomationButtonSquared {
60667
60701
  usecsscolor
60668
60702
  slot="icon-silhouette"
60669
60703
  ></obi-router-2-off>`;
60670
- default: if (this.on) return b`<obi-router-on usecsscolor slot="icon"></obi-router-on>
60704
+ default: if (this.turnedOn) return b`<obi-router-on usecsscolor slot="icon"></obi-router-on>
60671
60705
  <obi-router-on usecsscolor slot="icon-silhouette"></obi-router-on>`;
60672
60706
  else return b`<obi-router-off usecsscolor slot="icon"></obi-router-off>
60673
60707
  <obi-router-off
@@ -61148,7 +61182,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
61148
61182
  }
61149
61183
  get icon() {
61150
61184
  switch (this.alternativeIcon) {
61151
- case "sources02": if (this.on) return b`<obi-sources-02-on
61185
+ case "sources02": if (this.turnedOn) return b`<obi-sources-02-on
61152
61186
  usecsscolor
61153
61187
  slot="icon"
61154
61188
  ></obi-sources-02-on>
@@ -61164,7 +61198,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
61164
61198
  usecsscolor
61165
61199
  slot="icon-silhouette"
61166
61200
  ></obi-sources-02-off>`;
61167
- case "sources03": if (this.on) return b`<obi-sources-03-on
61201
+ case "sources03": if (this.turnedOn) return b`<obi-sources-03-on
61168
61202
  usecsscolor
61169
61203
  slot="icon"
61170
61204
  ></obi-sources-03-on>
@@ -61180,7 +61214,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
61180
61214
  usecsscolor
61181
61215
  slot="icon-silhouette"
61182
61216
  ></obi-sources-03-off>`;
61183
- case "sources04": if (this.on) return b`<obi-sources-04-on
61217
+ case "sources04": if (this.turnedOn) return b`<obi-sources-04-on
61184
61218
  usecsscolor
61185
61219
  slot="icon"
61186
61220
  ></obi-sources-04-on>
@@ -61196,7 +61230,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
61196
61230
  usecsscolor
61197
61231
  slot="icon-silhouette"
61198
61232
  ></obi-sources-04-off>`;
61199
- case "sources05": if (this.on) return b`<obi-sources-05-on
61233
+ case "sources05": if (this.turnedOn) return b`<obi-sources-05-on
61200
61234
  usecsscolor
61201
61235
  slot="icon"
61202
61236
  ></obi-sources-05-on>
@@ -61212,7 +61246,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
61212
61246
  usecsscolor
61213
61247
  slot="icon-silhouette"
61214
61248
  ></obi-sources-05-off>`;
61215
- default: if (this.on) return b`<obi-sources-01-on
61249
+ default: if (this.turnedOn) return b`<obi-sources-01-on
61216
61250
  usecsscolor
61217
61251
  slot="icon"
61218
61252
  ></obi-sources-01-on>
@@ -61835,7 +61869,7 @@ var ObcSwitch = class ObcSwitch extends ObcAbstractAutomationButtonSquared {
61835
61869
  }
61836
61870
  get icon() {
61837
61871
  switch (this.alternativeIcon) {
61838
- case "s1": if (this.on) return b`<obi-switch-01-on
61872
+ case "s1": if (this.turnedOn) return b`<obi-switch-01-on
61839
61873
  usecsscolor
61840
61874
  slot="icon"
61841
61875
  ></obi-switch-01-on>
@@ -61851,7 +61885,7 @@ var ObcSwitch = class ObcSwitch extends ObcAbstractAutomationButtonSquared {
61851
61885
  usecsscolor
61852
61886
  slot="icon-silhouette"
61853
61887
  ></obi-switch-01-off>`;
61854
- case "s2": if (this.on) return b`<obi-switch-02-on
61888
+ case "s2": if (this.turnedOn) return b`<obi-switch-02-on
61855
61889
  usecsscolor
61856
61890
  slot="icon"
61857
61891
  ></obi-switch-02-on>
@@ -61867,7 +61901,7 @@ var ObcSwitch = class ObcSwitch extends ObcAbstractAutomationButtonSquared {
61867
61901
  usecsscolor
61868
61902
  slot="icon-silhouette"
61869
61903
  ></obi-switch-02-off>`;
61870
- case "s3": if (this.on) return b`<obi-switch-03-on
61904
+ case "s3": if (this.turnedOn) return b`<obi-switch-03-on
61871
61905
  usecsscolor
61872
61906
  slot="icon"
61873
61907
  ></obi-switch-03-on>
@@ -61883,7 +61917,7 @@ var ObcSwitch = class ObcSwitch extends ObcAbstractAutomationButtonSquared {
61883
61917
  usecsscolor
61884
61918
  slot="icon-silhouette"
61885
61919
  ></obi-switch-03-off>`;
61886
- default: if (this.on) return b`<obi-switch-horizontal-on
61920
+ default: if (this.turnedOn) return b`<obi-switch-horizontal-on
61887
61921
  usecsscolor
61888
61922
  slot="icon"
61889
61923
  ></obi-switch-horizontal-on>
@@ -62196,7 +62230,7 @@ var ObcTransformer = class ObcTransformer extends ObcAbstractAutomationButtonSqu
62196
62230
  }
62197
62231
  get icon() {
62198
62232
  switch (this.alternativeIcon) {
62199
- case "transformer02": if (this.on) return b`<obi-transformer-02-on
62233
+ case "transformer02": if (this.turnedOn) return b`<obi-transformer-02-on
62200
62234
  usecsscolor
62201
62235
  slot="icon"
62202
62236
  ></obi-transformer-02-on>
@@ -62212,7 +62246,7 @@ var ObcTransformer = class ObcTransformer extends ObcAbstractAutomationButtonSqu
62212
62246
  usecsscolor
62213
62247
  slot="icon-silhouette"
62214
62248
  ></obi-transformer-02-off>`;
62215
- default: if (this.on) return b`<obi-transformer-01-on
62249
+ default: if (this.turnedOn) return b`<obi-transformer-01-on
62216
62250
  usecsscolor
62217
62251
  slot="icon"
62218
62252
  ></obi-transformer-01-on>