@oicl/openbridge-webcomponents 2.0.0-next.170 → 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 +974 -511
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +1853 -377
- package/dist/ar/poi/poi-aton.d.ts +1 -0
- package/dist/ar/poi/poi-aton.d.ts.map +1 -1
- package/dist/ar/poi/poi-aton.js +1 -0
- package/dist/ar/poi/poi-aton.js.map +1 -1
- package/dist/ar/poi/poi-base.d.ts +39 -5
- package/dist/ar/poi/poi-base.d.ts.map +1 -1
- package/dist/ar/poi/poi-base.js +108 -37
- package/dist/ar/poi/poi-base.js.map +1 -1
- package/dist/ar/poi/poi-data.d.ts +1 -0
- package/dist/ar/poi/poi-data.d.ts.map +1 -1
- package/dist/ar/poi/poi-data.js +1 -0
- package/dist/ar/poi/poi-data.js.map +1 -1
- package/dist/ar/poi/poi-vessel.d.ts +1 -0
- package/dist/ar/poi/poi-vessel.d.ts.map +1 -1
- package/dist/ar/poi/poi-vessel.js +1 -0
- package/dist/ar/poi/poi-vessel.js.map +1 -1
- package/dist/ar/poi/poi.d.ts +4 -12
- package/dist/ar/poi/poi.d.ts.map +1 -1
- package/dist/ar/poi/poi.js +6 -72
- package/dist/ar/poi/poi.js.map +1 -1
- package/dist/ar/poi-button/poi-button.d.ts +6 -2
- package/dist/ar/poi-button/poi-button.d.ts.map +1 -1
- package/dist/ar/poi-button/poi-button.js +10 -1
- package/dist/ar/poi-button/poi-button.js.map +1 -1
- package/dist/ar/poi-card/poi-card.d.ts +12 -1
- package/dist/ar/poi-card/poi-card.d.ts.map +1 -1
- package/dist/ar/poi-card/poi-card.js +4 -1
- package/dist/ar/poi-card/poi-card.js.map +1 -1
- package/dist/ar/poi-controller/poi-controller.d.ts +45 -1
- package/dist/ar/poi-controller/poi-controller.d.ts.map +1 -1
- package/dist/ar/poi-controller/poi-controller.js +72 -14
- package/dist/ar/poi-controller/poi-controller.js.map +1 -1
- package/dist/ar/poi-group/poi-group.d.ts +28 -5
- package/dist/ar/poi-group/poi-group.d.ts.map +1 -1
- package/dist/ar/poi-group/poi-group.js +50 -7
- package/dist/ar/poi-group/poi-group.js.map +1 -1
- package/dist/ar/poi-layer/poi-layer.css.js +69 -18
- package/dist/ar/poi-layer/poi-layer.css.js.map +1 -1
- package/dist/ar/poi-layer/poi-layer.d.ts +64 -5
- package/dist/ar/poi-layer/poi-layer.d.ts.map +1 -1
- package/dist/ar/poi-layer/poi-layer.js +173 -39
- package/dist/ar/poi-layer/poi-layer.js.map +1 -1
- package/dist/ar/poi-layer-stack/poi-layer-stack.d.ts +82 -7
- package/dist/ar/poi-layer-stack/poi-layer-stack.d.ts.map +1 -1
- package/dist/ar/poi-layer-stack/poi-layer-stack.js +172 -100
- package/dist/ar/poi-layer-stack/poi-layer-stack.js.map +1 -1
- package/dist/ar/poi-projection/poi-projection.d.ts +88 -0
- package/dist/ar/poi-projection/poi-projection.d.ts.map +1 -0
- package/dist/ar/poi-projection/poi-projection.js +90 -0
- package/dist/ar/poi-projection/poi-projection.js.map +1 -0
- 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/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motor.js","names":[],"sources":["../../../src/automation/motor/motor.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../automation-button/automation-button.js';\n\nimport '../../icons/icon-motor-on-vertical.js';\nimport '../../icons/icon-motor-off-vertical.js';\nimport '../../icons/icon-motor-on-horizontal.js';\nimport '../../icons/icon-motor-off-horizontal.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonMotorized} from '../automation-button/abstract-automation-button-motorized.js';\n\n/**\n * @stable\n */\n@customElement('obc-motor')\nexport class ObcMotor extends ObcAbstractAutomationButtonMotorized {\n @property({type: Boolean}) vertical: boolean = false;\n\n override get icon() {\n if (this.vertical) {\n if (this.
|
|
1
|
+
{"version":3,"file":"motor.js","names":[],"sources":["../../../src/automation/motor/motor.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../automation-button/automation-button.js';\n\nimport '../../icons/icon-motor-on-vertical.js';\nimport '../../icons/icon-motor-off-vertical.js';\nimport '../../icons/icon-motor-on-horizontal.js';\nimport '../../icons/icon-motor-off-horizontal.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonMotorized} from '../automation-button/abstract-automation-button-motorized.js';\n\n/**\n * @stable\n */\n@customElement('obc-motor')\nexport class ObcMotor extends ObcAbstractAutomationButtonMotorized {\n @property({type: Boolean}) vertical: boolean = false;\n\n override get icon() {\n if (this.vertical) {\n if (this.turnedOn) {\n return html`<obi-motor-on-vertical\n usecsscolor\n slot=\"icon\"\n ></obi-motor-on-vertical>\n <obi-motor-on-vertical\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-motor-on-vertical>`;\n } else {\n return html`<obi-motor-off-vertical\n usecsscolor\n slot=\"icon\"\n ></obi-motor-off-vertical>\n <obi-motor-off-vertical\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-motor-off-vertical>`;\n }\n } else {\n if (this.turnedOn) {\n return html`<obi-motor-on-horizontal\n usecsscolor\n slot=\"icon\"\n ></obi-motor-on-horizontal>\n <obi-motor-on-horizontal\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-motor-on-horizontal>`;\n } else {\n return html`<obi-motor-off-horizontal\n usecsscolor\n slot=\"icon\"\n ></obi-motor-off-horizontal>\n <obi-motor-off-horizontal\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-motor-off-horizontal>`;\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-motor': ObcMotor;\n }\n}\n"],"mappings":";;;;;;;;;;;AAeO,IAAM,WAAN,MAAM,iBAAiB,qCAAqC;;;EAClB,KAAA,WAAA;;CAE/C,IAAa,OAAO;EAClB,IAAI,KAAK,UAAU;GACjB,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;EASf,OACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;OASX,OAAO,IAAI;;;;;;;;CAUjB;AACF;AA7CG,WAAA,CAAA,SAAS,EAAC,MAAM,QAAO,CAAC,CAAA,GAAA,SAAA,WAAA,YAAA,KAAA,CAAA;AAF1B,WAAA,WAAA,CAAA,cAAc,WAAW,CAAA,GAAA,QAAA"}
|
|
@@ -15,7 +15,7 @@ var ObcPump = class ObcPump extends ObcAbstractAutomationButtonMotorized {
|
|
|
15
15
|
}
|
|
16
16
|
get icon() {
|
|
17
17
|
if (this.vertical) {
|
|
18
|
-
if (this.
|
|
18
|
+
if (this.turnedOn) return html`<obi-pump-on-vertical
|
|
19
19
|
usecsscolor
|
|
20
20
|
slot="icon"
|
|
21
21
|
></obi-pump-on-vertical>
|
|
@@ -31,7 +31,7 @@ var ObcPump = class ObcPump extends ObcAbstractAutomationButtonMotorized {
|
|
|
31
31
|
usecsscolor
|
|
32
32
|
slot="icon-silhouette"
|
|
33
33
|
></obi-pump-off-vertical>`;
|
|
34
|
-
} else if (this.
|
|
34
|
+
} else if (this.turnedOn) return html`<obi-pump-on-horizontal
|
|
35
35
|
usecsscolor
|
|
36
36
|
slot="icon"
|
|
37
37
|
></obi-pump-on-horizontal>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pump.js","names":[],"sources":["../../../src/automation/pump/pump.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-pump-off-horizontal.js';\nimport '../../icons/icon-pump-on-horizontal.js';\nimport '../../icons/icon-pump-off-vertical.js';\nimport '../../icons/icon-pump-on-vertical.js';\nimport {ObcAbstractAutomationButtonMotorized} from '../automation-button/abstract-automation-button-motorized.js';\nimport {customElement} from '../../decorator.js';\n\n/**\n * @stable\n */\n@customElement('obc-pump')\nexport class ObcPump extends ObcAbstractAutomationButtonMotorized {\n @property({type: Boolean}) vertical: boolean = false;\n\n override get icon() {\n if (this.vertical) {\n if (this.
|
|
1
|
+
{"version":3,"file":"pump.js","names":[],"sources":["../../../src/automation/pump/pump.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-pump-off-horizontal.js';\nimport '../../icons/icon-pump-on-horizontal.js';\nimport '../../icons/icon-pump-off-vertical.js';\nimport '../../icons/icon-pump-on-vertical.js';\nimport {ObcAbstractAutomationButtonMotorized} from '../automation-button/abstract-automation-button-motorized.js';\nimport {customElement} from '../../decorator.js';\n\n/**\n * @stable\n */\n@customElement('obc-pump')\nexport class ObcPump extends ObcAbstractAutomationButtonMotorized {\n @property({type: Boolean}) vertical: boolean = false;\n\n override get icon() {\n if (this.vertical) {\n if (this.turnedOn) {\n return html`<obi-pump-on-vertical\n usecsscolor\n slot=\"icon\"\n ></obi-pump-on-vertical>\n <obi-pump-on-vertical\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-pump-on-vertical>`;\n } else {\n return html`<obi-pump-off-vertical\n usecsscolor\n slot=\"icon\"\n ></obi-pump-off-vertical>\n <obi-pump-off-vertical\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-pump-off-vertical>`;\n }\n } else {\n if (this.turnedOn) {\n return html`<obi-pump-on-horizontal\n usecsscolor\n slot=\"icon\"\n ></obi-pump-on-horizontal>\n <obi-pump-on-horizontal\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-pump-on-horizontal>`;\n } else {\n return html`<obi-pump-off-horizontal\n usecsscolor\n slot=\"icon\"\n ></obi-pump-off-horizontal>\n <obi-pump-off-horizontal\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-pump-off-horizontal>`;\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-pump': ObcPump;\n }\n}\n"],"mappings":";;;;;;;;;;AAaO,IAAM,UAAN,MAAM,gBAAgB,qCAAqC;;;EACjB,KAAA,WAAA;;CAE/C,IAAa,OAAO;EAClB,IAAI,KAAK,UAAU;GACjB,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;EASf,OACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;OASX,OAAO,IAAI;;;;;;;;CAUjB;AACF;AA7CG,WAAA,CAAA,SAAS,EAAC,MAAM,QAAO,CAAC,CAAA,GAAA,QAAA,WAAA,YAAA,KAAA,CAAA;AAF1B,UAAA,WAAA,CAAA,cAAc,UAAU,CAAA,GAAA,OAAA"}
|
|
@@ -29,7 +29,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
29
29
|
}
|
|
30
30
|
get icon() {
|
|
31
31
|
switch (this.alternativeIcon) {
|
|
32
|
-
case "resistor2": if (this.
|
|
32
|
+
case "resistor2": if (this.turnedOn) return html`<obi-resistor-2-on
|
|
33
33
|
usecsscolor
|
|
34
34
|
slot="icon"
|
|
35
35
|
></obi-resistor-2-on>
|
|
@@ -45,7 +45,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
45
45
|
usecsscolor
|
|
46
46
|
slot="icon-silhouette"
|
|
47
47
|
></obi-resistor-2-off>`;
|
|
48
|
-
case "resistor3": if (this.
|
|
48
|
+
case "resistor3": if (this.turnedOn) return html`<obi-resistor-3-on
|
|
49
49
|
usecsscolor
|
|
50
50
|
slot="icon"
|
|
51
51
|
></obi-resistor-3-on>
|
|
@@ -61,7 +61,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
61
61
|
usecsscolor
|
|
62
62
|
slot="icon-silhouette"
|
|
63
63
|
></obi-resistor-3-off>`;
|
|
64
|
-
case "resistor4": if (this.
|
|
64
|
+
case "resistor4": if (this.turnedOn) return html`<obi-resistor-4-on
|
|
65
65
|
usecsscolor
|
|
66
66
|
slot="icon"
|
|
67
67
|
></obi-resistor-4-on>
|
|
@@ -77,7 +77,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
77
77
|
usecsscolor
|
|
78
78
|
slot="icon-silhouette"
|
|
79
79
|
></obi-resistor-4-off>`;
|
|
80
|
-
case "resistor5": if (this.
|
|
80
|
+
case "resistor5": if (this.turnedOn) return html`<obi-resistor-5-on
|
|
81
81
|
usecsscolor
|
|
82
82
|
slot="icon"
|
|
83
83
|
></obi-resistor-5-on>
|
|
@@ -93,7 +93,7 @@ var ObcResistor = class ObcResistor extends ObcAbstractAutomationButtonSquared {
|
|
|
93
93
|
usecsscolor
|
|
94
94
|
slot="icon-silhouette"
|
|
95
95
|
></obi-resistor-5-off>`;
|
|
96
|
-
default: if (this.
|
|
96
|
+
default: if (this.turnedOn) return html`<obi-resistor-1-on
|
|
97
97
|
usecsscolor
|
|
98
98
|
slot="icon"
|
|
99
99
|
></obi-resistor-1-on>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resistor.js","names":[],"sources":["../../../src/automation/resistor/resistor.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-resistor-1-on.js';\nimport '../../icons/icon-resistor-1-off.js';\nimport '../../icons/icon-resistor-2-on.js';\nimport '../../icons/icon-resistor-2-off.js';\nimport '../../icons/icon-resistor-3-on.js';\nimport '../../icons/icon-resistor-3-off.js';\nimport '../../icons/icon-resistor-4-on.js';\nimport '../../icons/icon-resistor-4-off.js';\nimport '../../icons/icon-resistor-5-on.js';\nimport '../../icons/icon-resistor-5-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\n\nexport enum ResistorAlternativeIcon {\n resistor1 = 'resistor1',\n resistor2 = 'resistor2',\n resistor3 = 'resistor3',\n resistor4 = 'resistor4',\n resistor5 = 'resistor5',\n}\n\n/**\n * @stable\n */\n@customElement('obc-resistor')\nexport class ObcResistor extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: ResistorAlternativeIcon =\n ResistorAlternativeIcon.resistor1;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case ResistorAlternativeIcon.resistor2:\n if (this.
|
|
1
|
+
{"version":3,"file":"resistor.js","names":[],"sources":["../../../src/automation/resistor/resistor.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-resistor-1-on.js';\nimport '../../icons/icon-resistor-1-off.js';\nimport '../../icons/icon-resistor-2-on.js';\nimport '../../icons/icon-resistor-2-off.js';\nimport '../../icons/icon-resistor-3-on.js';\nimport '../../icons/icon-resistor-3-off.js';\nimport '../../icons/icon-resistor-4-on.js';\nimport '../../icons/icon-resistor-4-off.js';\nimport '../../icons/icon-resistor-5-on.js';\nimport '../../icons/icon-resistor-5-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\n\nexport enum ResistorAlternativeIcon {\n resistor1 = 'resistor1',\n resistor2 = 'resistor2',\n resistor3 = 'resistor3',\n resistor4 = 'resistor4',\n resistor5 = 'resistor5',\n}\n\n/**\n * @stable\n */\n@customElement('obc-resistor')\nexport class ObcResistor extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: ResistorAlternativeIcon =\n ResistorAlternativeIcon.resistor1;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case ResistorAlternativeIcon.resistor2:\n if (this.turnedOn) {\n return html`<obi-resistor-2-on\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-2-on>\n <obi-resistor-2-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-2-on>`;\n } else {\n return html`<obi-resistor-2-off\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-2-off>\n <obi-resistor-2-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-2-off>`;\n }\n case ResistorAlternativeIcon.resistor3:\n if (this.turnedOn) {\n return html`<obi-resistor-3-on\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-3-on>\n <obi-resistor-3-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-3-on>`;\n } else {\n return html`<obi-resistor-3-off\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-3-off>\n <obi-resistor-3-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-3-off>`;\n }\n case ResistorAlternativeIcon.resistor4:\n if (this.turnedOn) {\n return html`<obi-resistor-4-on\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-4-on>\n <obi-resistor-4-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-4-on>`;\n } else {\n return html`<obi-resistor-4-off\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-4-off>\n <obi-resistor-4-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-4-off>`;\n }\n case ResistorAlternativeIcon.resistor5:\n if (this.turnedOn) {\n return html`<obi-resistor-5-on\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-5-on>\n <obi-resistor-5-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-5-on>`;\n } else {\n return html`<obi-resistor-5-off\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-5-off>\n <obi-resistor-5-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-5-off>`;\n }\n default:\n if (this.turnedOn) {\n return html`<obi-resistor-1-on\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-1-on>\n <obi-resistor-1-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-1-on>`;\n } else {\n return html`<obi-resistor-1-off\n usecsscolor\n slot=\"icon\"\n ></obi-resistor-1-off>\n <obi-resistor-1-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-resistor-1-off>`;\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-resistor': ObcResistor;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAeA,IAAY,0BAAL,yBAAA,yBAAA;CACL,wBAAA,eAAA;CACA,wBAAA,eAAA;CACA,wBAAA,eAAA;CACA,wBAAA,eAAA;CACA,wBAAA,eAAA;;AACF,EAAA,CAAA,CAAA;AAMO,IAAM,cAAN,MAAM,oBAAoB,mCAAmC;;;;;CAIlE,IAAa,OAAO;EAClB,QAAQ,KAAK,iBAAb;GACE,KAAA,aACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,KAAA,aACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,KAAA,aACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,KAAA,aACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,SACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;EASjB;CACF;AACF;AA3GG,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,YAAA,WAAA,mBAAA,KAAA,CAAA;AAFzB,cAAA,WAAA,CAAA,cAAc,cAAc,CAAA,GAAA,WAAA"}
|
|
@@ -20,7 +20,7 @@ var ObcRouter = class ObcRouter extends ObcAbstractAutomationButtonSquared {
|
|
|
20
20
|
}
|
|
21
21
|
get icon() {
|
|
22
22
|
switch (this.alternativeIcon) {
|
|
23
|
-
case "router2": if (this.
|
|
23
|
+
case "router2": if (this.turnedOn) return html`<obi-router-2-on
|
|
24
24
|
usecsscolor
|
|
25
25
|
slot="icon"
|
|
26
26
|
></obi-router-2-on>
|
|
@@ -36,7 +36,7 @@ var ObcRouter = class ObcRouter extends ObcAbstractAutomationButtonSquared {
|
|
|
36
36
|
usecsscolor
|
|
37
37
|
slot="icon-silhouette"
|
|
38
38
|
></obi-router-2-off>`;
|
|
39
|
-
default: if (this.
|
|
39
|
+
default: if (this.turnedOn) return html`<obi-router-on usecsscolor slot="icon"></obi-router-on>
|
|
40
40
|
<obi-router-on usecsscolor slot="icon-silhouette"></obi-router-on>`;
|
|
41
41
|
else return html`<obi-router-off usecsscolor slot="icon"></obi-router-off>
|
|
42
42
|
<obi-router-off
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.js","names":[],"sources":["../../../src/automation/router/router.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-router-on.js';\nimport '../../icons/icon-router-off.js';\nimport '../../icons/icon-router-2-on.js';\nimport '../../icons/icon-router-2-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\n\nexport enum RouterAlternativeIcon {\n router = 'router',\n router2 = 'router2',\n}\n\n/**\n * @stable\n */\n@customElement('obc-router')\nexport class ObcRouter extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: RouterAlternativeIcon =\n RouterAlternativeIcon.router;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case RouterAlternativeIcon.router2:\n if (this.
|
|
1
|
+
{"version":3,"file":"router.js","names":[],"sources":["../../../src/automation/router/router.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-router-on.js';\nimport '../../icons/icon-router-off.js';\nimport '../../icons/icon-router-2-on.js';\nimport '../../icons/icon-router-2-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\n\nexport enum RouterAlternativeIcon {\n router = 'router',\n router2 = 'router2',\n}\n\n/**\n * @stable\n */\n@customElement('obc-router')\nexport class ObcRouter extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: RouterAlternativeIcon =\n RouterAlternativeIcon.router;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case RouterAlternativeIcon.router2:\n if (this.turnedOn) {\n return html`<obi-router-2-on\n usecsscolor\n slot=\"icon\"\n ></obi-router-2-on>\n <obi-router-2-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-router-2-on>`;\n } else {\n return html`<obi-router-2-off\n usecsscolor\n slot=\"icon\"\n ></obi-router-2-off>\n <obi-router-2-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-router-2-off>`;\n }\n default:\n if (this.turnedOn) {\n return html`<obi-router-on usecsscolor slot=\"icon\"></obi-router-on>\n <obi-router-on usecsscolor slot=\"icon-silhouette\"></obi-router-on>`;\n } else {\n return html`<obi-router-off usecsscolor slot=\"icon\"></obi-router-off>\n <obi-router-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-router-off>`;\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-router': ObcRouter;\n }\n}\n"],"mappings":";;;;;;;;;;AASA,IAAY,wBAAL,yBAAA,uBAAA;CACL,sBAAA,YAAA;CACA,sBAAA,aAAA;;AACF,EAAA,CAAA,CAAA;AAMO,IAAM,YAAN,MAAM,kBAAkB,mCAAmC;;;;;CAIhE,IAAa,OAAO;EAClB,QAAQ,KAAK,iBAAb;GACE,KAAA,WACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,SACE,IAAI,KAAK,UACP,OAAO,IAAI;;QAGX,OAAO,IAAI;;;;;EAMjB;CACF;AACF;AAtCG,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,UAAA,WAAA,mBAAA,KAAA,CAAA;AAFzB,YAAA,WAAA,CAAA,cAAc,YAAY,CAAA,GAAA,SAAA"}
|
|
@@ -29,7 +29,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
29
29
|
}
|
|
30
30
|
get icon() {
|
|
31
31
|
switch (this.alternativeIcon) {
|
|
32
|
-
case "sources02": if (this.
|
|
32
|
+
case "sources02": if (this.turnedOn) return html`<obi-sources-02-on
|
|
33
33
|
usecsscolor
|
|
34
34
|
slot="icon"
|
|
35
35
|
></obi-sources-02-on>
|
|
@@ -45,7 +45,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
45
45
|
usecsscolor
|
|
46
46
|
slot="icon-silhouette"
|
|
47
47
|
></obi-sources-02-off>`;
|
|
48
|
-
case "sources03": if (this.
|
|
48
|
+
case "sources03": if (this.turnedOn) return html`<obi-sources-03-on
|
|
49
49
|
usecsscolor
|
|
50
50
|
slot="icon"
|
|
51
51
|
></obi-sources-03-on>
|
|
@@ -61,7 +61,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
61
61
|
usecsscolor
|
|
62
62
|
slot="icon-silhouette"
|
|
63
63
|
></obi-sources-03-off>`;
|
|
64
|
-
case "sources04": if (this.
|
|
64
|
+
case "sources04": if (this.turnedOn) return html`<obi-sources-04-on
|
|
65
65
|
usecsscolor
|
|
66
66
|
slot="icon"
|
|
67
67
|
></obi-sources-04-on>
|
|
@@ -77,7 +77,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
77
77
|
usecsscolor
|
|
78
78
|
slot="icon-silhouette"
|
|
79
79
|
></obi-sources-04-off>`;
|
|
80
|
-
case "sources05": if (this.
|
|
80
|
+
case "sources05": if (this.turnedOn) return html`<obi-sources-05-on
|
|
81
81
|
usecsscolor
|
|
82
82
|
slot="icon"
|
|
83
83
|
></obi-sources-05-on>
|
|
@@ -93,7 +93,7 @@ var ObcSource = class ObcSource extends ObcAbstractAutomationButtonSquared {
|
|
|
93
93
|
usecsscolor
|
|
94
94
|
slot="icon-silhouette"
|
|
95
95
|
></obi-sources-05-off>`;
|
|
96
|
-
default: if (this.
|
|
96
|
+
default: if (this.turnedOn) return html`<obi-sources-01-on
|
|
97
97
|
usecsscolor
|
|
98
98
|
slot="icon"
|
|
99
99
|
></obi-sources-01-on>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.js","names":[],"sources":["../../../src/automation/source/source.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-sources-01-on.js';\nimport '../../icons/icon-sources-01-off.js';\nimport '../../icons/icon-sources-02-on.js';\nimport '../../icons/icon-sources-02-off.js';\nimport '../../icons/icon-sources-03-on.js';\nimport '../../icons/icon-sources-03-off.js';\nimport '../../icons/icon-sources-04-on.js';\nimport '../../icons/icon-sources-04-off.js';\nimport '../../icons/icon-sources-05-on.js';\nimport '../../icons/icon-sources-05-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\n\nexport enum SourceAlternativeIcon {\n sources01 = 'sources01',\n sources02 = 'sources02',\n sources03 = 'sources03',\n sources04 = 'sources04',\n sources05 = 'sources05',\n}\n\n/**\n * @stable\n */\n@customElement('obc-source')\nexport class ObcSource extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: SourceAlternativeIcon =\n SourceAlternativeIcon.sources01;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case SourceAlternativeIcon.sources02:\n if (this.
|
|
1
|
+
{"version":3,"file":"source.js","names":[],"sources":["../../../src/automation/source/source.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-sources-01-on.js';\nimport '../../icons/icon-sources-01-off.js';\nimport '../../icons/icon-sources-02-on.js';\nimport '../../icons/icon-sources-02-off.js';\nimport '../../icons/icon-sources-03-on.js';\nimport '../../icons/icon-sources-03-off.js';\nimport '../../icons/icon-sources-04-on.js';\nimport '../../icons/icon-sources-04-off.js';\nimport '../../icons/icon-sources-05-on.js';\nimport '../../icons/icon-sources-05-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\n\nexport enum SourceAlternativeIcon {\n sources01 = 'sources01',\n sources02 = 'sources02',\n sources03 = 'sources03',\n sources04 = 'sources04',\n sources05 = 'sources05',\n}\n\n/**\n * @stable\n */\n@customElement('obc-source')\nexport class ObcSource extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: SourceAlternativeIcon =\n SourceAlternativeIcon.sources01;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case SourceAlternativeIcon.sources02:\n if (this.turnedOn) {\n return html`<obi-sources-02-on\n usecsscolor\n slot=\"icon\"\n ></obi-sources-02-on>\n <obi-sources-02-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-02-on>`;\n } else {\n return html`<obi-sources-02-off\n usecsscolor\n slot=\"icon\"\n ></obi-sources-02-off>\n <obi-sources-02-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-02-off>`;\n }\n case SourceAlternativeIcon.sources03:\n if (this.turnedOn) {\n return html`<obi-sources-03-on\n usecsscolor\n slot=\"icon\"\n ></obi-sources-03-on>\n <obi-sources-03-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-03-on>`;\n } else {\n return html`<obi-sources-03-off\n usecsscolor\n slot=\"icon\"\n ></obi-sources-03-off>\n <obi-sources-03-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-03-off>`;\n }\n case SourceAlternativeIcon.sources04:\n if (this.turnedOn) {\n return html`<obi-sources-04-on\n usecsscolor\n slot=\"icon\"\n ></obi-sources-04-on>\n <obi-sources-04-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-04-on>`;\n } else {\n return html`<obi-sources-04-off\n usecsscolor\n slot=\"icon\"\n ></obi-sources-04-off>\n <obi-sources-04-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-04-off>`;\n }\n case SourceAlternativeIcon.sources05:\n if (this.turnedOn) {\n return html`<obi-sources-05-on\n usecsscolor\n slot=\"icon\"\n ></obi-sources-05-on>\n <obi-sources-05-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-05-on>`;\n } else {\n return html`<obi-sources-05-off\n usecsscolor\n slot=\"icon\"\n ></obi-sources-05-off>\n <obi-sources-05-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-05-off>`;\n }\n default:\n if (this.turnedOn) {\n return html`<obi-sources-01-on\n usecsscolor\n slot=\"icon\"\n ></obi-sources-01-on>\n <obi-sources-01-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-01-on>`;\n } else {\n return html`<obi-sources-01-off\n usecsscolor\n slot=\"icon\"\n ></obi-sources-01-off>\n <obi-sources-01-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-sources-01-off>`;\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-source': ObcSource;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAeA,IAAY,wBAAL,yBAAA,uBAAA;CACL,sBAAA,eAAA;CACA,sBAAA,eAAA;CACA,sBAAA,eAAA;CACA,sBAAA,eAAA;CACA,sBAAA,eAAA;;AACF,EAAA,CAAA,CAAA;AAMO,IAAM,YAAN,MAAM,kBAAkB,mCAAmC;;;;;CAIhE,IAAa,OAAO;EAClB,QAAQ,KAAK,iBAAb;GACE,KAAA,aACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,KAAA,aACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,KAAA,aACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,KAAA,aACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,SACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;EASjB;CACF;AACF;AA3GG,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,UAAA,WAAA,mBAAA,KAAA,CAAA;AAFzB,YAAA,WAAA,CAAA,cAAc,YAAY,CAAA,GAAA,SAAA"}
|
|
@@ -26,7 +26,7 @@ var ObcSwitch = class ObcSwitch extends ObcAbstractAutomationButtonSquared {
|
|
|
26
26
|
}
|
|
27
27
|
get icon() {
|
|
28
28
|
switch (this.alternativeIcon) {
|
|
29
|
-
case "s1": if (this.
|
|
29
|
+
case "s1": if (this.turnedOn) return html`<obi-switch-01-on
|
|
30
30
|
usecsscolor
|
|
31
31
|
slot="icon"
|
|
32
32
|
></obi-switch-01-on>
|
|
@@ -42,7 +42,7 @@ var ObcSwitch = class ObcSwitch extends ObcAbstractAutomationButtonSquared {
|
|
|
42
42
|
usecsscolor
|
|
43
43
|
slot="icon-silhouette"
|
|
44
44
|
></obi-switch-01-off>`;
|
|
45
|
-
case "s2": if (this.
|
|
45
|
+
case "s2": if (this.turnedOn) return html`<obi-switch-02-on
|
|
46
46
|
usecsscolor
|
|
47
47
|
slot="icon"
|
|
48
48
|
></obi-switch-02-on>
|
|
@@ -58,7 +58,7 @@ var ObcSwitch = class ObcSwitch extends ObcAbstractAutomationButtonSquared {
|
|
|
58
58
|
usecsscolor
|
|
59
59
|
slot="icon-silhouette"
|
|
60
60
|
></obi-switch-02-off>`;
|
|
61
|
-
case "s3": if (this.
|
|
61
|
+
case "s3": if (this.turnedOn) return html`<obi-switch-03-on
|
|
62
62
|
usecsscolor
|
|
63
63
|
slot="icon"
|
|
64
64
|
></obi-switch-03-on>
|
|
@@ -74,7 +74,7 @@ var ObcSwitch = class ObcSwitch extends ObcAbstractAutomationButtonSquared {
|
|
|
74
74
|
usecsscolor
|
|
75
75
|
slot="icon-silhouette"
|
|
76
76
|
></obi-switch-03-off>`;
|
|
77
|
-
default: if (this.
|
|
77
|
+
default: if (this.turnedOn) return html`<obi-switch-horizontal-on
|
|
78
78
|
usecsscolor
|
|
79
79
|
slot="icon"
|
|
80
80
|
></obi-switch-horizontal-on>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","names":[],"sources":["../../../src/automation/switch/switch.ts"],"sourcesContent":["import {html} from 'lit';\nimport '../../icons/icon-switch-horizontal-on.js';\nimport '../../icons/icon-switch-horizontal-off.js';\nimport '../../icons/icon-switch-01-on.js';\nimport '../../icons/icon-switch-01-off.js';\nimport '../../icons/icon-switch-02-on.js';\nimport '../../icons/icon-switch-02-off.js';\nimport '../../icons/icon-switch-03-on.js';\nimport '../../icons/icon-switch-03-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\nimport {property} from 'lit/decorators.js';\n\nexport enum SwitchAlternativeIcon {\n regular = 'regular',\n s1 = 's1',\n s2 = 's2',\n s3 = 's3',\n}\n\n/**\n * @stable\n */\n@customElement('obc-switch')\nexport class ObcSwitch extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: SwitchAlternativeIcon =\n SwitchAlternativeIcon.regular;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case SwitchAlternativeIcon.s1:\n if (this.
|
|
1
|
+
{"version":3,"file":"switch.js","names":[],"sources":["../../../src/automation/switch/switch.ts"],"sourcesContent":["import {html} from 'lit';\nimport '../../icons/icon-switch-horizontal-on.js';\nimport '../../icons/icon-switch-horizontal-off.js';\nimport '../../icons/icon-switch-01-on.js';\nimport '../../icons/icon-switch-01-off.js';\nimport '../../icons/icon-switch-02-on.js';\nimport '../../icons/icon-switch-02-off.js';\nimport '../../icons/icon-switch-03-on.js';\nimport '../../icons/icon-switch-03-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\nimport {property} from 'lit/decorators.js';\n\nexport enum SwitchAlternativeIcon {\n regular = 'regular',\n s1 = 's1',\n s2 = 's2',\n s3 = 's3',\n}\n\n/**\n * @stable\n */\n@customElement('obc-switch')\nexport class ObcSwitch extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: SwitchAlternativeIcon =\n SwitchAlternativeIcon.regular;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case SwitchAlternativeIcon.s1:\n if (this.turnedOn) {\n return html`<obi-switch-01-on\n usecsscolor\n slot=\"icon\"\n ></obi-switch-01-on>\n <obi-switch-01-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-switch-01-on>`;\n } else {\n return html`<obi-switch-01-off\n usecsscolor\n slot=\"icon\"\n ></obi-switch-01-off>\n <obi-switch-01-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-switch-01-off>`;\n }\n case SwitchAlternativeIcon.s2:\n if (this.turnedOn) {\n return html`<obi-switch-02-on\n usecsscolor\n slot=\"icon\"\n ></obi-switch-02-on>\n <obi-switch-02-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-switch-02-on>`;\n } else {\n return html`<obi-switch-02-off\n usecsscolor\n slot=\"icon\"\n ></obi-switch-02-off>\n <obi-switch-02-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-switch-02-off>`;\n }\n case SwitchAlternativeIcon.s3:\n if (this.turnedOn) {\n return html`<obi-switch-03-on\n usecsscolor\n slot=\"icon\"\n ></obi-switch-03-on>\n <obi-switch-03-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-switch-03-on>`;\n } else {\n return html`<obi-switch-03-off\n usecsscolor\n slot=\"icon\"\n ></obi-switch-03-off>\n <obi-switch-03-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-switch-03-off>`;\n }\n default:\n if (this.turnedOn) {\n return html`<obi-switch-horizontal-on\n usecsscolor\n slot=\"icon\"\n ></obi-switch-horizontal-on>\n <obi-switch-horizontal-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-switch-horizontal-on>`;\n } else {\n return html`<obi-switch-horizontal-off\n usecsscolor\n slot=\"icon\"\n ></obi-switch-horizontal-off>\n <obi-switch-horizontal-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-switch-horizontal-off>`;\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-switch': ObcSwitch;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,IAAY,wBAAL,yBAAA,uBAAA;CACL,sBAAA,aAAA;CACA,sBAAA,QAAA;CACA,sBAAA,QAAA;CACA,sBAAA,QAAA;;AACF,EAAA,CAAA,CAAA;AAMO,IAAM,YAAN,MAAM,kBAAkB,mCAAmC;;;;;CAIhE,IAAa,OAAO;EAClB,QAAQ,KAAK,iBAAb;GACE,KAAA,MACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,KAAA,MACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,KAAA,MACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,SACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;EASjB;CACF;AACF;AAvFG,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,UAAA,WAAA,mBAAA,KAAA,CAAA;AAFzB,YAAA,WAAA,CAAA,cAAc,YAAY,CAAA,GAAA,SAAA"}
|
|
@@ -20,7 +20,7 @@ var ObcTransformer = class ObcTransformer extends ObcAbstractAutomationButtonSqu
|
|
|
20
20
|
}
|
|
21
21
|
get icon() {
|
|
22
22
|
switch (this.alternativeIcon) {
|
|
23
|
-
case "transformer02": if (this.
|
|
23
|
+
case "transformer02": if (this.turnedOn) return html`<obi-transformer-02-on
|
|
24
24
|
usecsscolor
|
|
25
25
|
slot="icon"
|
|
26
26
|
></obi-transformer-02-on>
|
|
@@ -36,7 +36,7 @@ var ObcTransformer = class ObcTransformer extends ObcAbstractAutomationButtonSqu
|
|
|
36
36
|
usecsscolor
|
|
37
37
|
slot="icon-silhouette"
|
|
38
38
|
></obi-transformer-02-off>`;
|
|
39
|
-
default: if (this.
|
|
39
|
+
default: if (this.turnedOn) return html`<obi-transformer-01-on
|
|
40
40
|
usecsscolor
|
|
41
41
|
slot="icon"
|
|
42
42
|
></obi-transformer-01-on>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformer.js","names":[],"sources":["../../../src/automation/transformer/transformer.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-transformer-01-on.js';\nimport '../../icons/icon-transformer-01-off.js';\nimport '../../icons/icon-transformer-02-on.js';\nimport '../../icons/icon-transformer-02-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\n\nexport enum TransformerAlternativeIcon {\n transformer01 = 'transformer01',\n transformer02 = 'transformer02',\n}\n\n/**\n * @stable\n */\n@customElement('obc-transformer')\nexport class ObcTransformer extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: TransformerAlternativeIcon =\n TransformerAlternativeIcon.transformer01;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case TransformerAlternativeIcon.transformer02:\n if (this.
|
|
1
|
+
{"version":3,"file":"transformer.js","names":[],"sources":["../../../src/automation/transformer/transformer.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-transformer-01-on.js';\nimport '../../icons/icon-transformer-01-off.js';\nimport '../../icons/icon-transformer-02-on.js';\nimport '../../icons/icon-transformer-02-off.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButtonSquared} from '../automation-button/abstract-automation-button-squared.js';\n\nexport enum TransformerAlternativeIcon {\n transformer01 = 'transformer01',\n transformer02 = 'transformer02',\n}\n\n/**\n * @stable\n */\n@customElement('obc-transformer')\nexport class ObcTransformer extends ObcAbstractAutomationButtonSquared {\n @property({type: String}) alternativeIcon: TransformerAlternativeIcon =\n TransformerAlternativeIcon.transformer01;\n\n override get icon() {\n switch (this.alternativeIcon) {\n case TransformerAlternativeIcon.transformer02:\n if (this.turnedOn) {\n return html`<obi-transformer-02-on\n usecsscolor\n slot=\"icon\"\n ></obi-transformer-02-on>\n <obi-transformer-02-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-transformer-02-on>`;\n } else {\n return html`<obi-transformer-02-off\n usecsscolor\n slot=\"icon\"\n ></obi-transformer-02-off>\n <obi-transformer-02-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-transformer-02-off>`;\n }\n default:\n if (this.turnedOn) {\n return html`<obi-transformer-01-on\n usecsscolor\n slot=\"icon\"\n ></obi-transformer-01-on>\n <obi-transformer-01-on\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-transformer-01-on>`;\n } else {\n return html`<obi-transformer-01-off\n usecsscolor\n slot=\"icon\"\n ></obi-transformer-01-off>\n <obi-transformer-01-off\n usecsscolor\n slot=\"icon-silhouette\"\n ></obi-transformer-01-off>`;\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-transformer': ObcTransformer;\n }\n}\n"],"mappings":";;;;;;;;;;AASA,IAAY,6BAAL,yBAAA,4BAAA;CACL,2BAAA,mBAAA;CACA,2BAAA,mBAAA;;AACF,EAAA,CAAA,CAAA;AAMO,IAAM,iBAAN,MAAM,uBAAuB,mCAAmC;;;;;CAIrE,IAAa,OAAO;EAClB,QAAQ,KAAK,iBAAb;GACE,KAAA,iBACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;GASf,SACE,IAAI,KAAK,UACP,OAAO,IAAI;;;;;;;;QASX,OAAO,IAAI;;;;;;;;EASjB;CACF;AACF;AA/CG,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,eAAA,WAAA,mBAAA,KAAA,CAAA;AAFzB,iBAAA,WAAA,CAAA,cAAc,iBAAiB,CAAA,GAAA,cAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.172",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@vitest/browser-playwright": "^4.1.11",
|
|
115
115
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
116
116
|
"dotenv": "^18.0.0",
|
|
117
|
-
"eslint": "^10.
|
|
117
|
+
"eslint": "^10.11.0",
|
|
118
118
|
"eslint-plugin-storybook": "^10.6.0",
|
|
119
119
|
"figma-api": "^2.2.1-beta",
|
|
120
120
|
"glob": "^13.0.6",
|