@oicl/openbridge-webcomponents 2.0.0-next.126 → 2.0.0-next.127

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.
@@ -1 +1 @@
1
- {"version":3,"file":"analog-valve.d.ts","sourceRoot":"","sources":["../../../src/automation/analog-valve/analog-valve.ts"],"names":[],"mappings":"AAEA,OAAO,4DAA4D,CAAC;AAEpE,OAAO,EAAC,2BAA2B,EAAC,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAC,8BAA8B,EAAC,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAC,4BAA4B,EAAC,MAAM,qFAAqF,CAAC;AAEjI,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED;;GAEG;AACH,qBACa,cAAe,SAAQ,2BAA2B;IAClC,IAAI,EAAE,OAAO,CAAS;IACvB,KAAK,EAAE,MAAM,CAAK;IACjB,QAAQ,EAAE,OAAO,CAAS;IACrD,gCAAgC;IACN,cAAc,EAAE,8BAA8B,CACjC;IACb,OAAO,EAAE,kBAAkB,CACxB;IAE7B,IAAa,aAAa,IAAI,4BAA4B,EAAE,CAwB3D;IAED,IAAa,GAAG,IAAI,OAAO,CAE1B;IAED,IAAa,IAAI,yCAahB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,cAAc,CAAC;KACpC;CACF"}
1
+ {"version":3,"file":"analog-valve.d.ts","sourceRoot":"","sources":["../../../src/automation/analog-valve/analog-valve.ts"],"names":[],"mappings":"AAEA,OAAO,4DAA4D,CAAC;AAEpE,OAAO,EAAC,2BAA2B,EAAC,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAC,8BAA8B,EAAC,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAC,4BAA4B,EAAC,MAAM,qFAAqF,CAAC;AAEjI,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED;;GAEG;AACH,qBACa,cAAe,SAAQ,2BAA2B;IAClC,IAAI,EAAE,OAAO,CAAS;IACvB,KAAK,EAAE,MAAM,CAAK;IACjB,QAAQ,EAAE,OAAO,CAAS;IACrD,gCAAgC;IACN,cAAc,EAAE,8BAA8B,CACjC;IACb,OAAO,EAAE,kBAAkB,CACxB;IAE7B,IAAa,aAAa,IAAI,4BAA4B,EAAE,CA2B3D;IAED,IAAa,GAAG,IAAI,OAAO,CAE1B;IAED,IAAa,IAAI,yCAahB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,cAAc,CAAC;KACpC;CACF"}
@@ -29,6 +29,9 @@ let ObcAnalogValve = class extends ObcAbstractAutomationButton {
29
29
  this.variant = "regular";
30
30
  }
31
31
  get extraReadouts() {
32
+ if (!this.showStatus) {
33
+ return [];
34
+ }
32
35
  if (this.open) {
33
36
  return [
34
37
  {
@@ -1 +1 @@
1
- {"version":3,"file":"analog-valve.js","sources":["../../../src/automation/analog-valve/analog-valve.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../valve-analoge-two-way-icon/valve-analog-two-way-icon.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButton} from '../automation-button/abstract-automation-button.js';\nimport {AutomationButtonLabelDirection} from '../automation-button/automation-button.js';\nimport {AutomationButtonReadoutStack} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\n\nexport enum AnalogValveVariant {\n regular = 'regular',\n flat = 'flat',\n}\n\n/**\n * @stable\n */\n@customElement('obc-analog-valve')\nexport class ObcAnalogValve extends ObcAbstractAutomationButton {\n @property({type: Boolean}) open: boolean = false;\n @property({type: Number}) value: number = 0;\n @property({type: Boolean}) vertical: boolean = false;\n /** @availableWhen open==true */\n @property({type: String}) labelDirection: AutomationButtonLabelDirection =\n AutomationButtonLabelDirection.right;\n @property({type: String}) variant: AnalogValveVariant =\n AnalogValveVariant.regular;\n\n override get extraReadouts(): AutomationButtonReadoutStack[] {\n if (this.open) {\n return [\n {\n type: 'value',\n icon:\n this.labelDirection === AutomationButtonLabelDirection.none\n ? 'none'\n : 'arrow',\n value: this.value,\n nDigits: 3,\n unit: '%',\n direction: this.labelDirection,\n },\n ];\n } else {\n return [\n {\n type: 'state-off',\n value: 'Off',\n hasIcon: true,\n },\n ];\n }\n }\n\n override get _on(): boolean {\n return this.open;\n }\n\n override get icon() {\n return html`<obc-valve-analog-two-way-icon\n .value=${this.value}\n .closed=${!this.open}\n .vertical=${this.vertical}\n slot=\"icon\"\n ></obc-valve-analog-two-way-icon>\n <obc-valve-analog-two-way-icon\n .value=${this.value}\n .closed=${!this.open}\n .vertical=${this.vertical}\n slot=\"icon-silhouette\"\n ></obc-valve-analog-two-way-icon> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-analog-valve': ObcAnalogValve;\n }\n}\n"],"names":["AnalogValveVariant"],"mappings":";;;;;;;;;;;;;;;;AAQO,IAAK,uCAAAA,wBAAL;AACLA,sBAAA,SAAA,IAAU;AACVA,sBAAA,MAAA,IAAO;AAFG,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;AASL,IAAM,iBAAN,cAA6B,4BAA4B;AAAA,EAAzD,cAAA;AAAA,UAAA,GAAA,SAAA;AACsB,SAAA,OAAgB;AACjB,SAAA,QAAgB;AACf,SAAA,WAAoB;AAErB,SAAA,iBACxB,+BAA+B;AACP,SAAA,UACxB;AAAA,EAAA;AAAA,EAEF,IAAa,gBAAgD;AAC3D,QAAI,KAAK,MAAM;AACb,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,MACE,KAAK,mBAAmB,+BAA+B,OACnD,SACA;AAAA,UACN,OAAO,KAAK;AAAA,UACZ,SAAS;AAAA,UACT,MAAM;AAAA,UACN,WAAW,KAAK;AAAA,QAAA;AAAA,MAClB;AAAA,IAEJ,OAAO;AACL,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IAEJ;AAAA,EACF;AAAA,EAEA,IAAa,MAAe;AAC1B,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAa,OAAO;AAClB,WAAO;AAAA,iBACM,KAAK,KAAK;AAAA,kBACT,CAAC,KAAK,IAAI;AAAA,oBACR,KAAK,QAAQ;AAAA;AAAA;AAAA;AAAA,iBAIhB,KAAK,KAAK;AAAA,kBACT,CAAC,KAAK,IAAI;AAAA,oBACR,KAAK,QAAQ;AAAA;AAAA;AAAA,EAG/B;AACF;AArD6B,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GADd,eACgB,WAAA,QAAA,CAAA;AACD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAFb,eAEe,WAAA,SAAA,CAAA;AACC,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAHd,eAGgB,WAAA,YAAA,CAAA;AAED,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GALb,eAKe,WAAA,kBAAA,CAAA;AAEA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAPb,eAOe,WAAA,WAAA,CAAA;AAPf,iBAAN,gBAAA;AAAA,EADN,cAAc,kBAAkB;AAAA,GACpB,cAAA;"}
1
+ {"version":3,"file":"analog-valve.js","sources":["../../../src/automation/analog-valve/analog-valve.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../valve-analoge-two-way-icon/valve-analog-two-way-icon.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButton} from '../automation-button/abstract-automation-button.js';\nimport {AutomationButtonLabelDirection} from '../automation-button/automation-button.js';\nimport {AutomationButtonReadoutStack} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\n\nexport enum AnalogValveVariant {\n regular = 'regular',\n flat = 'flat',\n}\n\n/**\n * @stable\n */\n@customElement('obc-analog-valve')\nexport class ObcAnalogValve extends ObcAbstractAutomationButton {\n @property({type: Boolean}) open: boolean = false;\n @property({type: Number}) value: number = 0;\n @property({type: Boolean}) vertical: boolean = false;\n /** @availableWhen open==true */\n @property({type: String}) labelDirection: AutomationButtonLabelDirection =\n AutomationButtonLabelDirection.right;\n @property({type: String}) variant: AnalogValveVariant =\n AnalogValveVariant.regular;\n\n override get extraReadouts(): AutomationButtonReadoutStack[] {\n if (!this.showStatus) {\n return [];\n }\n if (this.open) {\n return [\n {\n type: 'value',\n icon:\n this.labelDirection === AutomationButtonLabelDirection.none\n ? 'none'\n : 'arrow',\n value: this.value,\n nDigits: 3,\n unit: '%',\n direction: this.labelDirection,\n },\n ];\n } else {\n return [\n {\n type: 'state-off',\n value: 'Off',\n hasIcon: true,\n },\n ];\n }\n }\n\n override get _on(): boolean {\n return this.open;\n }\n\n override get icon() {\n return html`<obc-valve-analog-two-way-icon\n .value=${this.value}\n .closed=${!this.open}\n .vertical=${this.vertical}\n slot=\"icon\"\n ></obc-valve-analog-two-way-icon>\n <obc-valve-analog-two-way-icon\n .value=${this.value}\n .closed=${!this.open}\n .vertical=${this.vertical}\n slot=\"icon-silhouette\"\n ></obc-valve-analog-two-way-icon> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-analog-valve': ObcAnalogValve;\n }\n}\n"],"names":["AnalogValveVariant"],"mappings":";;;;;;;;;;;;;;;;AAQO,IAAK,uCAAAA,wBAAL;AACLA,sBAAA,SAAA,IAAU;AACVA,sBAAA,MAAA,IAAO;AAFG,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;AASL,IAAM,iBAAN,cAA6B,4BAA4B;AAAA,EAAzD,cAAA;AAAA,UAAA,GAAA,SAAA;AACsB,SAAA,OAAgB;AACjB,SAAA,QAAgB;AACf,SAAA,W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AAA,GAPb,eAOe,WAAA,WAAA,CAAA;AAPf,iBAAN,gBAAA;AAAA,EADN,cAAc,kBAAkB;AAAA,GACpB,cAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-automation-button-motorized.d.ts","sourceRoot":"","sources":["../../../src/automation/automation-button/abstract-automation-button-motorized.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC/B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,4BAA4B,EAAC,MAAM,qFAAqF,CAAC;AAEjI,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,WAAW,iBAAiB;CAC7B;AAED,qBAAa,oCAAqC,SAAQ,2BAA2B;IACxD,EAAE,EAAE,OAAO,CAAS;IAC/C;;;OAGG;IACuB,cAAc,EAAE,MAAM,CAAK;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAO;IACxB,cAAc,EAAE,MAAM,CAAK;IAC3B,cAAc,EAAE,8BAA8B,CACjC;IACb,OAAO,EAAE,gBAAgB,CACxB;IAC3B,+DAA+D;IACrC,SAAS,EAAE,yBAAyB,CAC1B;IAEpC,IAAa,aAAa,IAAI,4BAA4B,EAAE,CA0B3D;IAED,IAAa,GAAG,IAAI,OAAO,CAE1B;CACF"}
1
+ {"version":3,"file":"abstract-automation-button-motorized.d.ts","sourceRoot":"","sources":["../../../src/automation/automation-button/abstract-automation-button-motorized.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC/B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,4BAA4B,EAAC,MAAM,qFAAqF,CAAC;AAEjI,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,WAAW,iBAAiB;CAC7B;AAED,qBAAa,oCAAqC,SAAQ,2BAA2B;IACxD,EAAE,EAAE,OAAO,CAAS;IAC/C;;;OAGG;IACuB,cAAc,EAAE,MAAM,CAAK;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAO;IACxB,cAAc,EAAE,MAAM,CAAK;IAC3B,cAAc,EAAE,8BAA8B,CACjC;IACb,OAAO,EAAE,gBAAgB,CACxB;IAC3B,+DAA+D;IACrC,SAAS,EAAE,yBAAyB,CAC1B;IAEpC,IAAa,aAAa,IAAI,4BAA4B,EAAE,CA6B3D;IAED,IAAa,GAAG,IAAI,OAAO,CAE1B;CACF"}
@@ -31,6 +31,9 @@ class ObcAbstractAutomationButtonMotorized extends ObcAbstractAutomationButton {
31
31
  }
32
32
  get extraReadouts() {
33
33
  const speed = this.speed ?? this.speedInPercent;
34
+ if (!this.showStatus) {
35
+ return [];
36
+ }
34
37
  if (speed !== void 0 && speed !== null && this.on) {
35
38
  return [
36
39
  {
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-automation-button-motorized.js","sources":["../../../src/automation/automation-button/abstract-automation-button-motorized.ts"],"sourcesContent":["import {property} from 'lit/decorators.js';\nimport {ObcAbstractAutomationButton} from '../automation-button/abstract-automation-button.js';\nimport {\n AutomationButtonDirection,\n AutomationButtonLabelDirection,\n} from '../automation-button/automation-button.js';\nimport {AutomationButtonReadoutStack} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\n\nexport enum MotorizedVariant {\n regular = 'regular',\n double = 'double',\n forward = 'forward',\n flat = 'flat',\n flatForward = 'flat-forward',\n}\n\nexport class ObcAbstractAutomationButtonMotorized extends ObcAbstractAutomationButton {\n @property({type: Boolean}) on: boolean = false;\n /**\n * @deprecated Use `speed` together with `speedUnit` instead. When `speed`\n * is set it takes precedence over `speedInPercent`.\n */\n @property({type: Number}) speedInPercent: number = 0;\n @property({type: Number}) speed?: number;\n @property({type: String}) speedUnit: string = '%';\n @property({type: Number}) speedMaxDigits: number = 3;\n @property({type: String}) labelDirection: AutomationButtonLabelDirection =\n AutomationButtonLabelDirection.right;\n @property({type: String}) variant: MotorizedVariant =\n MotorizedVariant.regular;\n /** @availableWhen variant in [double, forward, flatForward] */\n @property({type: String}) direction: AutomationButtonDirection =\n AutomationButtonDirection.forward;\n\n override get extraReadouts(): AutomationButtonReadoutStack[] {\n const speed = this.speed ?? this.speedInPercent;\n if (speed !== undefined && speed !== null && this.on) {\n return [\n {\n type: 'value',\n value: speed,\n nDigits: this.speedMaxDigits,\n unit: this.speedUnit,\n direction: this.labelDirection,\n icon:\n this.labelDirection === AutomationButtonLabelDirection.none\n ? 'none'\n : 'chevron',\n },\n ];\n } else if (!this.on) {\n return [\n {\n type: 'state-off',\n value: 'Off',\n hasIcon: true,\n },\n ];\n }\n return [];\n }\n\n override get _on(): boolean {\n return this.on;\n }\n}\n"],"names":["MotorizedVariant"],"mappings":";;;;;;;;;;;;AAQO,IAAK,qCAAAA,sBAAL;AACLA,oBAAA,SAAA,IAAU;AACVA,oBAAA,QAAA,IAAS;AACTA,oBAAA,SAAA,IAAU;AACVA,oBAAA,MAAA,IAAO;AACPA,oBAAA,aAAA,IAAc;AALJ,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAQL,MAAM,6CAA6C,4BAA4B;AAAA,EAA/E,cAAA;AAAA,UAAA,GAAA,SAAA;AACsB,SAAA,KAAc;AAKf,SAAA,iBAAyB;AAEzB,SAAA,YAAoB;AACpB,SAAA,iBAAyB;AACzB,SAAA,iBACxB,+BAA+B;AACP,SAAA,UACxB;AAEwB,SAAA,YACxB,0BAA0B;AAAA,EAAA;AAAA,EAE5B,IAAa,gBAAgD;AAC3D,UAAM,QAAQ,KAAK,SAAS,KAAK;AACjC,QAAI,UAAU,UAAa,UAAU,QAAQ,KAAK,IAAI;AACpD,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS,KAAK;AAAA,UACd,MAAM,KAAK;AAAA,UACX,WAAW,KAAK;AAAA,UAChB,MACE,KAAK,mBAAmB,+BAA+B,OACnD,SACA;AAAA,QAAA;AAAA,MACR;AAAA,IAEJ,WAAW,CAAC,KAAK,IAAI;AACnB,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IAEJ;AACA,WAAO,CAAA;AAAA,EACT;AAAA,EAEA,IAAa,MAAe;AAC1B,WAAO,KAAK;AAAA,EACd;AACF;AAhD6B,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GADd,qCACgB,WAAA,IAAA;AAKD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GANb,qCAMe,WAAA,gBAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAPb,qCAOe,WAAA,OAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GARb,qCAQe,WAAA,WAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GATb,qCASe,WAAA,gBAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAVb,qCAUe,WAAA,gBAAA;AAEA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAZb,qCAYe,WAAA,SAAA;AAGA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAfb,qCAee,WAAA,WAAA;"}
1
+ {"version":3,"file":"abstract-automation-button-motorized.js","sources":["../../../src/automation/automation-button/abstract-automation-button-motorized.ts"],"sourcesContent":["import {property} from 'lit/decorators.js';\nimport {ObcAbstractAutomationButton} from '../automation-button/abstract-automation-button.js';\nimport {\n AutomationButtonDirection,\n AutomationButtonLabelDirection,\n} from '../automation-button/automation-button.js';\nimport {AutomationButtonReadoutStack} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\n\nexport enum MotorizedVariant {\n regular = 'regular',\n double = 'double',\n forward = 'forward',\n flat = 'flat',\n flatForward = 'flat-forward',\n}\n\nexport class ObcAbstractAutomationButtonMotorized extends ObcAbstractAutomationButton {\n @property({type: Boolean}) on: boolean = false;\n /**\n * @deprecated Use `speed` together with `speedUnit` instead. When `speed`\n * is set it takes precedence over `speedInPercent`.\n */\n @property({type: Number}) speedInPercent: number = 0;\n @property({type: Number}) speed?: number;\n @property({type: String}) speedUnit: string = '%';\n @property({type: Number}) speedMaxDigits: number = 3;\n @property({type: String}) labelDirection: AutomationButtonLabelDirection =\n AutomationButtonLabelDirection.right;\n @property({type: String}) variant: MotorizedVariant =\n MotorizedVariant.regular;\n /** @availableWhen variant in [double, forward, flatForward] */\n @property({type: String}) direction: AutomationButtonDirection =\n AutomationButtonDirection.forward;\n\n override get extraReadouts(): AutomationButtonReadoutStack[] {\n const speed = this.speed ?? this.speedInPercent;\n if (!this.showStatus) {\n return [];\n }\n if (speed !== undefined && speed !== null && this.on) {\n return [\n {\n type: 'value',\n value: speed,\n nDigits: this.speedMaxDigits,\n unit: this.speedUnit,\n direction: this.labelDirection,\n icon:\n this.labelDirection === AutomationButtonLabelDirection.none\n ? 'none'\n : 'chevron',\n },\n ];\n } else if (!this.on) {\n return [\n {\n type: 'state-off',\n value: 'Off',\n hasIcon: true,\n },\n ];\n }\n return [];\n }\n\n override get _on(): boolean {\n return this.on;\n }\n}\n"],"names":["MotorizedVariant"],"mappings":";;;;;;;;;;;;AAQO,IAAK,qCAAAA,sBAAL;AACLA,oBAAA,SAAA,IAAU;AACVA,oBAAA,QAAA,IAAS;AACTA,oBAAA,SAAA,IAAU;AACVA,oBAAA,MAAA,IAAO;AACP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,GARb,qCAQe,WAAA,WAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GATb,qCASe,WAAA,gBAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAVb,qCAUe,WAAA,gBAAA;AAEA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAZb,qCAYe,WAAA,SAAA;AAGA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAfb,qCAee,WAAA,WAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-automation-button-squared.d.ts","sourceRoot":"","sources":["../../../src/automation/automation-button/abstract-automation-button-squared.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAC,4BAA4B,EAAC,MAAM,qFAAqF,CAAC;AACjI,OAAO,EAAC,2BAA2B,EAAC,MAAM,wBAAwB,CAAC;AAEnE,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,qBAAa,kCAAmC,SAAQ,2BAA2B;IACtD,EAAE,EAAE,OAAO,CAAS;IACrB,OAAO,EAAE,cAAc,CAAyB;IAChD,WAAW,EAAE,2BAA2B,CACzB;IAEzC,IAAa,YAAY,IAAI,2BAA2B,CAEvD;IAED,IAAa,aAAa,IAAI,4BAA4B,EAAE,CAkB3D;IAED,IAAa,GAAG,IAAI,OAAO,CAE1B;CACF"}
1
+ {"version":3,"file":"abstract-automation-button-squared.d.ts","sourceRoot":"","sources":["../../../src/automation/automation-button/abstract-automation-button-squared.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAC,4BAA4B,EAAC,MAAM,qFAAqF,CAAC;AACjI,OAAO,EAAC,2BAA2B,EAAC,MAAM,wBAAwB,CAAC;AAEnE,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,qBAAa,kCAAmC,SAAQ,2BAA2B;IACtD,EAAE,EAAE,OAAO,CAAS;IACrB,OAAO,EAAE,cAAc,CAAyB;IAChD,WAAW,EAAE,2BAA2B,CACzB;IAEzC,IAAa,YAAY,IAAI,2BAA2B,CAEvD;IAED,IAAa,aAAa,IAAI,4BAA4B,EAAE,CAqB3D;IAED,IAAa,GAAG,IAAI,OAAO,CAE1B;CACF"}
@@ -26,6 +26,9 @@ class ObcAbstractAutomationButtonSquared extends ObcAbstractAutomationButton {
26
26
  return this.orientation;
27
27
  }
28
28
  get extraReadouts() {
29
+ if (!this.showStatus) {
30
+ return [];
31
+ }
29
32
  if (this.on) {
30
33
  return [
31
34
  {
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-automation-button-squared.js","sources":["../../../src/automation/automation-button/abstract-automation-button-squared.ts"],"sourcesContent":["import {property} from 'lit/decorators.js';\nimport {ObcAbstractAutomationButton} from './abstract-automation-button.js';\nimport {AutomationButtonReadoutStack} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\nimport {AutomationButtonOrientation} from './automation-button.js';\n\nexport enum SquaredVariant {\n square = 'square',\n flat = 'flat',\n}\n\nexport class ObcAbstractAutomationButtonSquared extends ObcAbstractAutomationButton {\n @property({type: Boolean}) on: boolean = false;\n @property({type: String}) variant: SquaredVariant = SquaredVariant.square;\n @property({type: String}) orientation: AutomationButtonOrientation =\n AutomationButtonOrientation.horizontal;\n\n override get _orientation(): AutomationButtonOrientation {\n return this.orientation;\n }\n\n override get extraReadouts(): AutomationButtonReadoutStack[] {\n if (this.on) {\n return [\n {\n type: 'state-on',\n value: 'On',\n hasIcon: true,\n },\n ];\n } else {\n return [\n {\n type: 'state-off',\n value: 'Off',\n hasIcon: true,\n },\n ];\n }\n }\n\n override get _on(): boolean {\n return this.on;\n }\n}\n"],"names":["SquaredVariant"],"mappings":";;;;;;;;;;;;AAKO,IAAK,mCAAAA,oBAAL;AACLA,kBAAA,QAAA,IAAS;AACTA,kBAAA,MAAA,IAAO;AAFG,SAAAA;AAAA,GAAA,kBAAA,CAAA,CAAA;AAKL,MAAM,2CAA2C,4BAA4B;AAAA,EAA7E,cAAA;AAAA,UAAA,GAAA,SAAA;AACsB,SAAA,KAAc;AACf,SAAA,UAA0B;AAC1B,SAAA,cACxB,4BAA4B;AAAA,EAAA;AAAA,EAE9B,IAAa,eAA4C;AACvD,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAa,gBAAgD;AAC3D,QAAI,KAAK,IAAI;AACX,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IAEJ,OAAO;AACL,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IAEJ;AAAA,EACF;AAAA,EAEA,IAAa,MAAe;AAC1B,WAAO,KAAK;AAAA,EACd;AACF;AAhC6B,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GADd,mCACgB,WAAA,IAAA;AACD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAFb,mCAEe,WAAA,SAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAHb,mCAGe,WAAA,aAAA;"}
1
+ {"version":3,"file":"abstract-automation-button-squared.js","sources":["../../../src/automation/automation-button/abstract-automation-button-squared.ts"],"sourcesContent":["import {property} from 'lit/decorators.js';\nimport {ObcAbstractAutomationButton} from './abstract-automation-button.js';\nimport {AutomationButtonReadoutStack} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\nimport {AutomationButtonOrientation} from './automation-button.js';\n\nexport enum SquaredVariant {\n square = 'square',\n flat = 'flat',\n}\n\nexport class ObcAbstractAutomationButtonSquared extends ObcAbstractAutomationButton {\n @property({type: Boolean}) on: boolean = false;\n @property({type: String}) variant: SquaredVariant = SquaredVariant.square;\n @property({type: String}) orientation: AutomationButtonOrientation =\n AutomationButtonOrientation.horizontal;\n\n override get _orientation(): AutomationButtonOrientation {\n return this.orientation;\n }\n\n override get extraReadouts(): AutomationButtonReadoutStack[] {\n if (!this.showStatus) {\n return [];\n }\n if (this.on) {\n return [\n {\n type: 'state-on',\n value: 'On',\n hasIcon: true,\n },\n ];\n } else {\n return [\n {\n type: 'state-off',\n value: 'Off',\n hasIcon: true,\n },\n ];\n }\n }\n\n override get _on(): boolean {\n return this.on;\n }\n}\n"],"names":["SquaredVariant"],"mappings":";;;;;;;;;;;;AAKO,IAAK,mCAAAA,oBAAL;AACLA,kBAAA,QAAA,IAAS;AACTA,kBAAA,MAAA,IAAO;AAFG,SAAAA;AAAA,GAAA,kBAAA,CAAA,CAAA;AAKL,MAAM,2CAA2C,4BAA4B;AAAA,EAA7E,cAAA;AAAA,UAAA,GAAA,SAAA;AACsB,SAAA,KAAc;AACf,SAAA,UAA0B;AAC1B,SAAA,cACxB,4BAA4B;AAAA,EAAA;AAAA,EAE9B,IAAa,eAA4C;AACvD,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAa,gBAAgD;AAC3D,QAAI,CAAC,KAAK,YAAY;AACpB,aAAO,CAAA;AAAA,IACT;AACA,QAAI,KAAK,IAAI;AACX,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IAEJ,OAAO;AACL,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IAEJ;AAAA,EACF;AAAA,EAEA,IAAa,MAAe;AAC1B,WAAO,KAAK;AAAA,EACd;AACF;AAnC6B,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GADd,mCACgB,WAAA,IAAA;AACD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAFb,mCAEe,WAAA,SAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAHb,mCAGe,WAAA,aAAA;"}
@@ -40,7 +40,11 @@ export declare class ObcAbstractAutomationButton extends LitElement {
40
40
  /** @availableWhen showReadoutStack==true */
41
41
  readoutPosition: AutomationButtonReadoutPosition;
42
42
  /** @availableWhen showReadoutStack==true */
43
+ showStatus: boolean;
44
+ /** @availableWhen showReadoutStack==true */
43
45
  readoutSize: AutomationButtonReadoutStackSize;
46
+ /** @availableWhen showReadoutStack==true */
47
+ tag: string | null;
44
48
  positioning: AutomationButtonPositioning;
45
49
  /** Enables the activated background color, used to indicate that the button is activated/selected. */
46
50
  activated: boolean;
@@ -63,7 +67,6 @@ export declare class ObcAbstractAutomationButton extends LitElement {
63
67
  progressMode: CircularProgressMode;
64
68
  /** @availableWhen progress==true && progressMode in [determinate, progressiveIndeterminate] */
65
69
  progressValue: number;
66
- tag: string | null;
67
70
  badgeControl: AutomationButtonBadgeControl;
68
71
  badgeCommandLocked: AutomationButtonBadgeCommandLocked;
69
72
  badgeInterlock: AutomationButtonBadgeInterlock;
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-automation-button.d.ts","sourceRoot":"","sources":["../../../src/automation/automation-button/abstract-automation-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,cAAc,EAAgB,MAAM,KAAK,CAAC;AAE9D,OAAO,2CAA2C,CAAC;AACnD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,+BAA+B,EAE/B,uBAAuB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EACjC,MAAM,qFAAqF,CAAC;AAC7F,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EAC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sF;IAC3D,QAAQ,EAAE,OAAO,CAAS;IACrD,oCAAoC;IACV,YAAY,EAAE,oBAAoB,CACvB;IACrC,+FAA+F;IACrE,aAAa,EAAE,MAAM,CAAK;IAC1B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC1B,YAAY,EAAE,4BAA4B,CAChC;IAEpC,kBAAkB,EAAE,kCAAkC,CACZ;IAChB,cAAc,EAAE,8BAA8B,CAClC;IACZ,UAAU,EAAE,0BAA0B,CAC9B;IAElC,IAAI,IAAI,IAAI,cAAc,CAEzB;IAED,IAAI,GAAG,IAAI,OAAO,CAEjB;IAED,IAAI,QAAQ,IAAI,uBAAuB,CAGtC;IAED,IAAI,YAAY,IAAI,2BAA2B,CAE9C;IAED,IAAI,UAAU,IAAI,yBAAyB,CAK1C;IAED,IAAI,aAAa,IAAI,4BAA4B,EAAE,CAElD;IAGD,aAAa,EAAG,WAAW,EAAE,CAAC;IAE9B,YAAY,EAAG,WAAW,EAAE,CAAC;IAE7B,eAAe,EAAG,WAAW,EAAE,CAAC;IAEhC,gBAAgB,EAAG,WAAW,EAAE,CAAC;IAEjC,OAAO,CAAC,cAAc;IA4BtB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,iBAAiB;IAuBzB,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,yBAAyB;IAUxB,MAAM;CAgFhB"}
1
+ {"version":3,"file":"abstract-automation-button.d.ts","sourceRoot":"","sources":["../../../src/automation/automation-button/abstract-automation-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,cAAc,EAAgB,MAAM,KAAK,CAAC;AAE9D,OAAO,2CAA2C,CAAC;AACnD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,+BAA+B,EAE/B,uBAAuB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EACjC,MAAM,qF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SAAS,CAAmB;IACxE,iCAAiC;IACP,cAAc,EAAE,iBAAiB,CAC3B;IAChC,iCAAiC;IACY,qBAAqB,EAAE,OAAO,CACpE;IACP,iCAAiC;IACN,aAAa,EAAE,OAAO,CAAS;IAC1D,sFAAsF;IAC3D,QAAQ,EAAE,OAAO,CAAS;IACrD,oCAAoC;IACV,YAAY,EAAE,oBAAoB,CACvB;IACrC,+FAA+F;IACrE,aAAa,EAAE,MAAM,CAAK;IAE1B,YAAY,EAAE,4BAA4B,CAChC;IAEpC,kBAAkB,EAAE,kCAAkC,CACZ;IAChB,cAAc,EAAE,8BAA8B,CAClC;IACZ,UAAU,EAAE,0BAA0B,CAC9B;IAElC,IAAI,IAAI,IAAI,cAAc,CAEzB;IAED,IAAI,GAAG,IAAI,OAAO,CAEjB;IAED,IAAI,QAAQ,IAAI,uBAAuB,CAGtC;IAED,IAAI,YAAY,IAAI,2BAA2B,CAE9C;IAED,IAAI,UAAU,IAAI,yBAAyB,CAK1C;IAED,IAAI,aAAa,IAAI,4BAA4B,EAAE,CAElD;IAGD,aAAa,EAAG,WAAW,EAAE,CAAC;IAE9B,YAAY,EAAG,WAAW,EAAE,CAAC;IAE7B,eAAe,EAAG,WAAW,EAAE,CAAC;IAEhC,gBAAgB,EAAG,WAAW,EAAE,CAAC;IAEjC,OAAO,CAAC,cAAc;IA4BtB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,iBAAiB;IAuBzB,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,yBAAyB;IAUxB,MAAM;CAgFhB"}
@@ -53,7 +53,9 @@ class ObcAbstractAutomationButton extends LitElement {
53
53
  super(...arguments);
54
54
  this.showReadoutStack = true;
55
55
  this.readoutPosition = AutomationButtonReadoutPosition.bottom;
56
+ this.showStatus = true;
56
57
  this.readoutSize = AutomationButtonReadoutStackSize.regular;
58
+ this.tag = null;
57
59
  this.positioning = AutomationButtonPositioning.point;
58
60
  this.activated = false;
59
61
  this.alert = false;
@@ -66,7 +68,6 @@ class ObcAbstractAutomationButton extends LitElement {
66
68
  this.progress = false;
67
69
  this.progressMode = CircularProgressMode.indeterminate;
68
70
  this.progressValue = 0;
69
- this.tag = null;
70
71
  this.badgeControl = "none";
71
72
  this.badgeCommandLocked = "none";
72
73
  this.badgeInterlock = "none";
@@ -241,9 +242,15 @@ __decorateClass([
241
242
  __decorateClass([
242
243
  property({ type: String })
243
244
  ], ObcAbstractAutomationButton.prototype, "readoutPosition");
245
+ __decorateClass([
246
+ property({ type: Boolean, attribute: false })
247
+ ], ObcAbstractAutomationButton.prototype, "showStatus");
244
248
  __decorateClass([
245
249
  property({ type: String })
246
250
  ], ObcAbstractAutomationButton.prototype, "readoutSize");
251
+ __decorateClass([
252
+ property({ type: String })
253
+ ], ObcAbstractAutomationButton.prototype, "tag");
247
254
  __decorateClass([
248
255
  property({ type: String })
249
256
  ], ObcAbstractAutomationButton.prototype, "positioning");
@@ -280,9 +287,6 @@ __decorateClass([
280
287
  __decorateClass([
281
288
  property({ type: Number })
282
289
  ], ObcAbstractAutomationButton.prototype, "progressValue");
283
- __decorateClass([
284
- property({ type: String })
285
- ], ObcAbstractAutomationButton.prototype, "tag");
286
290
  __decorateClass([
287
291
  property({ type: String })
288
292
  ], ObcAbstractAutomationButton.prototype, "badgeControl");
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-automation-button.js","sources":["../../../src/automation/automation-button/abstract-automation-button.ts"],"sourcesContent":["import {LitElement, TemplateResult, html, nothing} from 'lit';\nimport {property, queryAssignedElements} from 'lit/decorators.js';\nimport '../automation-button/automation-button.js';\nimport {\n AutomationButtonDirection,\n AutomationButtonOrientation,\n AutomationButtonPositioning,\n AutomationButtonReadoutPosition,\n AutomationButtonState,\n AutomationButtonVariant,\n} from '../automation-button/automation-button.js';\nimport {\n AutomationButtonReadoutStack,\n AutomationButtonReadoutStackSize,\n} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\nimport {\n ObcAlertFrameThickness,\n ObcAlertFrameType,\n ObcAlertFrameMode,\n} from '../../components/alert-frame/alert-frame.js';\nimport {AlertType} from '../../types.js';\nimport '../automation-badge/automation-badge.js';\nimport {ObcAutomationBadgeType} from '../automation-badge/automation-badge.js';\nimport {CircularProgressMode} from '../../building-blocks/circular-progress/circular-progress.js';\n\nexport enum AutomationButtonBadgeAlert {\n None = 'none',\n Silence = 'silence',\n Caution = 'caution',\n Warning = 'warning',\n Alarm = 'alarm',\n LevelCritical = 'level-critical',\n LevelHigh = 'level-high',\n LevelMedium = 'level-medium',\n LevelLow = 'level-low',\n LevelDiagnostic = 'level-diagnostic',\n}\n\nexport enum AutomationButtonBadgeInterlock {\n None = 'none',\n Interlock = 'interlock',\n InterlockInhibit = 'interlock-inhibit',\n}\n\nexport enum AutomationButtonBadgeControl {\n None = 'none',\n Local = 'local',\n LocalOnly = 'local-only',\n Manual = 'manual',\n ManualOnly = 'manual-only',\n Auto = 'auto',\n}\n\nexport enum AutomationButtonBadgeCommandLocked {\n None = 'none',\n CommandLocked = 'command-locked',\n}\n\nexport class ObcAbstractAutomationButton extends LitElement {\n @property({type: Boolean, attribute: false}) showReadoutStack: boolean = true;\n /** @availableWhen showReadoutStack==true */\n @property({type: String}) readoutPosition: AutomationButtonReadoutPosition =\n AutomationButtonReadoutPosition.bottom;\n /** @availableWhen showReadoutStack==true */\n @property({type: String}) readoutSize: AutomationButtonReadoutStackSize =\n AutomationButtonReadoutStackSize.regular;\n @property({type: String}) positioning: AutomationButtonPositioning =\n AutomationButtonPositioning.point;\n /** Enables the activated background color, used to indicate that the button is activated/selected. */\n @property({type: Boolean}) activated: boolean = false;\n @property({type: Boolean}) alert: boolean = false;\n /** @availableWhen alert==true */\n @property({type: String}) alertFrameType: ObcAlertFrameType =\n ObcAlertFrameType.SmallSideFlip;\n /** @availableWhen alert==true */\n @property({type: String}) alertFrameThickness: ObcAlertFrameThickness =\n ObcAlertFrameThickness.Small;\n /** @availableWhen alert==true */\n @property({type: String}) alertFrameStatus: AlertType = AlertType.Alarm;\n /** @availableWhen alert==true */\n @property({type: String}) alertFrameMode: ObcAlertFrameMode =\n ObcAlertFrameMode.ackedActive;\n /** @availableWhen alert==true */\n @property({type: Boolean, attribute: false}) showAlertCategoryIcon: boolean =\n true;\n /** @availableWhen alert==true */\n @property({type: Boolean}) showAlertIcon: boolean = false;\n /** Shows a progress indicator, used to indicate that an user action is in progress */\n @property({type: Boolean}) progress: boolean = false;\n /** @availableWhen progress==true */\n @property({type: String}) progressMode: CircularProgressMode =\n CircularProgressMode.indeterminate;\n /** @availableWhen progress==true && progressMode in [determinate, progressiveIndeterminate] */\n @property({type: Number}) progressValue: number = 0;\n @property({type: String}) tag: string | null = null;\n @property({type: String}) badgeControl: AutomationButtonBadgeControl =\n AutomationButtonBadgeControl.None;\n @property({type: String})\n badgeCommandLocked: AutomationButtonBadgeCommandLocked =\n AutomationButtonBadgeCommandLocked.None;\n @property({type: String}) badgeInterlock: AutomationButtonBadgeInterlock =\n AutomationButtonBadgeInterlock.None;\n @property({type: String}) badgeAlert: AutomationButtonBadgeAlert =\n AutomationButtonBadgeAlert.None;\n\n get icon(): TemplateResult {\n throw new Error('Method \"icon\" must be implemented in subclass');\n }\n\n get _on(): boolean {\n throw new Error('Method \"_on\" must be implemented in subclass');\n }\n\n get _variant(): AutomationButtonVariant {\n // @ts-expect-error - property should be defined in subclass\n return this.variant as AutomationButtonVariant;\n }\n\n get _orientation(): AutomationButtonOrientation {\n return AutomationButtonOrientation.horizontal;\n }\n\n get _direction(): AutomationButtonDirection {\n if ('direction' in this) {\n return this.direction as AutomationButtonDirection;\n }\n return AutomationButtonDirection.forward;\n }\n\n get extraReadouts(): AutomationButtonReadoutStack[] {\n return [];\n }\n\n @queryAssignedElements({slot: 'badge-top-right'})\n badgeTopRight!: HTMLElement[];\n @queryAssignedElements({slot: 'badge-top-left'})\n badgeTopLeft!: HTMLElement[];\n @queryAssignedElements({slot: 'badge-bottom-left'})\n badgeBottomLeft!: HTMLElement[];\n @queryAssignedElements({slot: 'badge-bottom-right'})\n badgeBottomRight!: HTMLElement[];\n\n private getBadgeSpacer(): boolean {\n if (!this.showReadoutStack) {\n return false;\n }\n\n const topLeft =\n this.badgeTopLeft.length > 0 || this.getBadgeControlType() !== null;\n const topRight =\n this.badgeTopRight.length > 0 || this.getBadgeAlertType() !== null;\n const bottomLeft =\n this.badgeBottomLeft.length > 0 || this.getBadgeInterlockType() !== null;\n const bottomRight =\n this.badgeBottomRight.length > 0 ||\n this.getBadgeCommandLockedType() !== null;\n if (this.readoutPosition === AutomationButtonReadoutPosition.top) {\n return topRight || topLeft;\n } else if (\n this.readoutPosition === AutomationButtonReadoutPosition.bottom\n ) {\n return bottomLeft || bottomRight;\n } else if (this.readoutPosition === AutomationButtonReadoutPosition.left) {\n return topLeft || bottomLeft;\n } else if (this.readoutPosition === AutomationButtonReadoutPosition.right) {\n return topRight || bottomRight;\n }\n return false;\n }\n\n private handleBadgeSlotChange() {\n this.requestUpdate();\n }\n\n private getBadgeAlertType(): ObcAutomationBadgeType | null {\n if (this.badgeAlert === AutomationButtonBadgeAlert.Silence) {\n return ObcAutomationBadgeType.AlertSilenced;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.Caution) {\n return ObcAutomationBadgeType.Caution;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.Warning) {\n return ObcAutomationBadgeType.Warning;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.Alarm) {\n return ObcAutomationBadgeType.Alarm;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelCritical) {\n return ObcAutomationBadgeType.LevelCritical;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelHigh) {\n return ObcAutomationBadgeType.LevelHigh;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelMedium) {\n return ObcAutomationBadgeType.LevelMedium;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelLow) {\n return ObcAutomationBadgeType.LevelLow;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelDiagnostic) {\n return ObcAutomationBadgeType.LevelDiagnostic;\n }\n return null;\n }\n\n private getBadgeControlType(): ObcAutomationBadgeType | null {\n if (this.badgeControl === AutomationButtonBadgeControl.Local) {\n return ObcAutomationBadgeType.Local;\n } else if (this.badgeControl === AutomationButtonBadgeControl.LocalOnly) {\n return ObcAutomationBadgeType.LocalOnly;\n } else if (this.badgeControl === AutomationButtonBadgeControl.Manual) {\n return ObcAutomationBadgeType.Manual;\n } else if (this.badgeControl === AutomationButtonBadgeControl.ManualOnly) {\n return ObcAutomationBadgeType.ManualOnly;\n } else if (this.badgeControl === AutomationButtonBadgeControl.Auto) {\n return ObcAutomationBadgeType.Auto;\n }\n return null;\n }\n\n private getBadgeInterlockType(): ObcAutomationBadgeType | null {\n if (this.badgeInterlock === AutomationButtonBadgeInterlock.Interlock) {\n return ObcAutomationBadgeType.Interlock;\n } else if (\n this.badgeInterlock === AutomationButtonBadgeInterlock.InterlockInhibit\n ) {\n return ObcAutomationBadgeType.InterlockInhibit;\n }\n return null;\n }\n\n private getBadgeCommandLockedType(): ObcAutomationBadgeType | null {\n if (\n this.badgeCommandLocked ===\n AutomationButtonBadgeCommandLocked.CommandLocked\n ) {\n return ObcAutomationBadgeType.CommandLocked;\n }\n return null;\n }\n\n override render() {\n const readouts: AutomationButtonReadoutStack[] = [...this.extraReadouts];\n const badgeAlertType = this.getBadgeAlertType();\n const badgeControlType = this.getBadgeControlType();\n const badgeInterlockType = this.getBadgeInterlockType();\n const badgeCommandLockedType = this.getBadgeCommandLockedType();\n\n return html`<obc-automation-button\n .state=${this._on\n ? AutomationButtonState.open\n : AutomationButtonState.closed}\n .readouts=${readouts}\n .tag=${this.tag}\n .showReadoutStack=${this.showReadoutStack}\n .readoutPosition=${this.readoutPosition}\n .readoutSize=${this.readoutSize}\n ?alert=${this.alert}\n .alertFrameType=${this.alertFrameType}\n .alertFrameThickness=${this.alertFrameThickness}\n .alertFrameStatus=${this.alertFrameStatus}\n .alertFrameMode=${this.alertFrameMode}\n .showAlertCategoryIcon=${this.showAlertCategoryIcon}\n .showAlertIcon=${this.showAlertIcon}\n ?progress=${this.progress}\n .progressMode=${this.progressMode}\n .progressValue=${this.progressValue}\n .variant=${this._variant}\n .direction=${this._direction}\n .orientation=${this._orientation}\n .hasBadgeSpacer=${this.getBadgeSpacer()}\n .positioning=${this.positioning}\n ?activated=${this.activated}\n >\n ${this.icon}\n <slot\n name=\"badge-top-right\"\n slot=\"badge-top-right\"\n @slotchange=${this.handleBadgeSlotChange}\n >\n ${badgeAlertType\n ? html`<obc-automation-badge\n .type=${badgeAlertType}\n ></obc-automation-badge>`\n : nothing}\n </slot>\n <slot\n name=\"badge-top-left\"\n slot=\"badge-top-left\"\n @slotchange=${this.handleBadgeSlotChange}\n >\n ${badgeControlType\n ? html`<obc-automation-badge\n .type=${badgeControlType}\n ></obc-automation-badge>`\n : nothing}\n </slot>\n <slot\n name=\"badge-bottom-left\"\n slot=\"badge-bottom-left\"\n @slotchange=${this.handleBadgeSlotChange}\n >\n ${badgeInterlockType\n ? html`<obc-automation-badge\n .type=${badgeInterlockType}\n ></obc-automation-badge>`\n : nothing}\n </slot>\n <slot\n name=\"badge-bottom-right\"\n slot=\"badge-bottom-right\"\n @slotchange=${this.handleBadgeSlotChange}\n >\n ${badgeCommandLockedType\n ? html`<obc-automation-badge\n .type=${badgeCommandLockedType}\n ></obc-automation-badge>`\n : nothing}\n </slot>\n </obc-automation-button>`;\n }\n}\n"],"names":["AutomationButtonBadgeAlert","AutomationButtonBadgeInterlock","AutomationButtonBadgeControl","AutomationButtonBadgeCommandLocked"],"mappings":";;;;;;;;;;;;;;;;;AAyBO,IAAK,+CAAAA,gCAAL;AACLA,8BAAA,MAAA,IAAO;AACPA,8BAAA,SAAA,IAAU;AACVA,8BAAA,SAAA,IAAU;AACVA,8BAAA,SAAA,IAAU;AACVA,8BAAA,OAAA,IAAQ;AACRA,8BAAA,eAAA,IAAgB;AAChBA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M,OAAA,CAAO;AAAA,GApCb,4BAoCe,WAAA,KAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GArCb,4BAqCe,WAAA,cAAA;AAG1B,gBAAA;AAAA,EADC,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAvCb,4BAwCX,WAAA,oBAAA;AAE0B,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA1Cb,4BA0Ce,WAAA,gBAAA;AAEA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA5Cb,4BA4Ce,WAAA,YAAA;AAgC1B,gBAAA;AAAA,EADC,sBAAsB,EAAC,MAAM,kBAAA,CAAkB;AAAA,GA3ErC,4BA4EX,WAAA,eAAA;AAEA,gBAAA;AAAA,EADC,sBAAsB,EAAC,MAAM,iBAAA,CAAiB;AAAA,GA7EpC,4BA8EX,WAAA,cAAA;AAEA,gBAAA;AAAA,EADC,sBAAsB,EAAC,MAAM,oBAAA,CAAoB;AAAA,GA/EvC,4BAgFX,WAAA,iBAAA;AAEA,gBAAA;AAAA,EADC,sBAAsB,EAAC,MAAM,qBAAA,CAAqB;AAAA,GAjFxC,4BAkFX,WAAA,kBAAA;"}
1
+ {"version":3,"file":"abstract-automation-button.js","sources":["../../../src/automation/automation-button/abstract-automation-button.ts"],"sourcesContent":["import {LitElement, TemplateResult, html, nothing} from 'lit';\nimport {property, queryAssignedElements} from 'lit/decorators.js';\nimport '../automation-button/automation-button.js';\nimport {\n AutomationButtonDirection,\n AutomationButtonOrientation,\n AutomationButtonPositioning,\n AutomationButtonReadoutPosition,\n AutomationButtonState,\n AutomationButtonVariant,\n} from '../automation-button/automation-button.js';\nimport {\n AutomationButtonReadoutStack,\n AutomationButtonReadoutStackSize,\n} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\nimport {\n ObcAlertFrameThickness,\n ObcAlertFrameType,\n ObcAlertFrameMode,\n} from '../../components/alert-frame/alert-frame.js';\nimport {AlertType} from '../../types.js';\nimport '../automation-badge/automation-badge.js';\nimport {ObcAutomationBadgeType} from '../automation-badge/automation-badge.js';\nimport {CircularProgressMode} from '../../building-blocks/circular-progress/circular-progress.js';\n\nexport enum AutomationButtonBadgeAlert {\n None = 'none',\n Silence = 'silence',\n Caution = 'caution',\n Warning = 'warning',\n Alarm = 'alarm',\n LevelCritical = 'level-critical',\n LevelHigh = 'level-high',\n LevelMedium = 'level-medium',\n LevelLow = 'level-low',\n LevelDiagnostic = 'level-diagnostic',\n}\n\nexport enum AutomationButtonBadgeInterlock {\n None = 'none',\n Interlock = 'interlock',\n InterlockInhibit = 'interlock-inhibit',\n}\n\nexport enum AutomationButtonBadgeControl {\n None = 'none',\n Local = 'local',\n LocalOnly = 'local-only',\n Manual = 'manual',\n ManualOnly = 'manual-only',\n Auto = 'auto',\n}\n\nexport enum AutomationButtonBadgeCommandLocked {\n None = 'none',\n CommandLocked = 'command-locked',\n}\n\nexport class ObcAbstractAutomationButton extends LitElement {\n @property({type: Boolean, attribute: false}) showReadoutStack: boolean = true;\n /** @availableWhen showReadoutStack==true */\n @property({type: String}) readoutPosition: AutomationButtonReadoutPosition =\n AutomationButtonReadoutPosition.bottom;\n /** @availableWhen showReadoutStack==true */\n @property({type: Boolean, attribute: false}) showStatus: boolean = true;\n /** @availableWhen showReadoutStack==true */\n @property({type: String}) readoutSize: AutomationButtonReadoutStackSize =\n AutomationButtonReadoutStackSize.regular;\n /** @availableWhen showReadoutStack==true */\n @property({type: String}) tag: string | null = null;\n\n @property({type: String}) positioning: AutomationButtonPositioning =\n AutomationButtonPositioning.point;\n /** Enables the activated background color, used to indicate that the button is activated/selected. */\n @property({type: Boolean}) activated: boolean = false;\n @property({type: Boolean}) alert: boolean = false;\n /** @availableWhen alert==true */\n @property({type: String}) alertFrameType: ObcAlertFrameType =\n ObcAlertFrameType.SmallSideFlip;\n /** @availableWhen alert==true */\n @property({type: String}) alertFrameThickness: ObcAlertFrameThickness =\n ObcAlertFrameThickness.Small;\n /** @availableWhen alert==true */\n @property({type: String}) alertFrameStatus: AlertType = AlertType.Alarm;\n /** @availableWhen alert==true */\n @property({type: String}) alertFrameMode: ObcAlertFrameMode =\n ObcAlertFrameMode.ackedActive;\n /** @availableWhen alert==true */\n @property({type: Boolean, attribute: false}) showAlertCategoryIcon: boolean =\n true;\n /** @availableWhen alert==true */\n @property({type: Boolean}) showAlertIcon: boolean = false;\n /** Shows a progress indicator, used to indicate that an user action is in progress */\n @property({type: Boolean}) progress: boolean = false;\n /** @availableWhen progress==true */\n @property({type: String}) progressMode: CircularProgressMode =\n CircularProgressMode.indeterminate;\n /** @availableWhen progress==true && progressMode in [determinate, progressiveIndeterminate] */\n @property({type: Number}) progressValue: number = 0;\n\n @property({type: String}) badgeControl: AutomationButtonBadgeControl =\n AutomationButtonBadgeControl.None;\n @property({type: String})\n badgeCommandLocked: AutomationButtonBadgeCommandLocked =\n AutomationButtonBadgeCommandLocked.None;\n @property({type: String}) badgeInterlock: AutomationButtonBadgeInterlock =\n AutomationButtonBadgeInterlock.None;\n @property({type: String}) badgeAlert: AutomationButtonBadgeAlert =\n AutomationButtonBadgeAlert.None;\n\n get icon(): TemplateResult {\n throw new Error('Method \"icon\" must be implemented in subclass');\n }\n\n get _on(): boolean {\n throw new Error('Method \"_on\" must be implemented in subclass');\n }\n\n get _variant(): AutomationButtonVariant {\n // @ts-expect-error - property should be defined in subclass\n return this.variant as AutomationButtonVariant;\n }\n\n get _orientation(): AutomationButtonOrientation {\n return AutomationButtonOrientation.horizontal;\n }\n\n get _direction(): AutomationButtonDirection {\n if ('direction' in this) {\n return this.direction as AutomationButtonDirection;\n }\n return AutomationButtonDirection.forward;\n }\n\n get extraReadouts(): AutomationButtonReadoutStack[] {\n return [];\n }\n\n @queryAssignedElements({slot: 'badge-top-right'})\n badgeTopRight!: HTMLElement[];\n @queryAssignedElements({slot: 'badge-top-left'})\n badgeTopLeft!: HTMLElement[];\n @queryAssignedElements({slot: 'badge-bottom-left'})\n badgeBottomLeft!: HTMLElement[];\n @queryAssignedElements({slot: 'badge-bottom-right'})\n badgeBottomRight!: HTMLElement[];\n\n private getBadgeSpacer(): boolean {\n if (!this.showReadoutStack) {\n return false;\n }\n\n const topLeft =\n this.badgeTopLeft.length > 0 || this.getBadgeControlType() !== null;\n const topRight =\n this.badgeTopRight.length > 0 || this.getBadgeAlertType() !== null;\n const bottomLeft =\n this.badgeBottomLeft.length > 0 || this.getBadgeInterlockType() !== null;\n const bottomRight =\n this.badgeBottomRight.length > 0 ||\n this.getBadgeCommandLockedType() !== null;\n if (this.readoutPosition === AutomationButtonReadoutPosition.top) {\n return topRight || topLeft;\n } else if (\n this.readoutPosition === AutomationButtonReadoutPosition.bottom\n ) {\n return bottomLeft || bottomRight;\n } else if (this.readoutPosition === AutomationButtonReadoutPosition.left) {\n return topLeft || bottomLeft;\n } else if (this.readoutPosition === AutomationButtonReadoutPosition.right) {\n return topRight || bottomRight;\n }\n return false;\n }\n\n private handleBadgeSlotChange() {\n this.requestUpdate();\n }\n\n private getBadgeAlertType(): ObcAutomationBadgeType | null {\n if (this.badgeAlert === AutomationButtonBadgeAlert.Silence) {\n return ObcAutomationBadgeType.AlertSilenced;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.Caution) {\n return ObcAutomationBadgeType.Caution;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.Warning) {\n return ObcAutomationBadgeType.Warning;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.Alarm) {\n return ObcAutomationBadgeType.Alarm;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelCritical) {\n return ObcAutomationBadgeType.LevelCritical;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelHigh) {\n return ObcAutomationBadgeType.LevelHigh;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelMedium) {\n return ObcAutomationBadgeType.LevelMedium;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelLow) {\n return ObcAutomationBadgeType.LevelLow;\n } else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelDiagnostic) {\n return ObcAutomationBadgeType.LevelDiagnostic;\n }\n return null;\n }\n\n private getBadgeControlType(): ObcAutomationBadgeType | null {\n if (this.badgeControl === AutomationButtonBadgeControl.Local) {\n return ObcAutomationBadgeType.Local;\n } else if (this.badgeControl === AutomationButtonBadgeControl.LocalOnly) {\n return ObcAutomationBadgeType.LocalOnly;\n } else if (this.badgeControl === AutomationButtonBadgeControl.Manual) {\n return ObcAutomationBadgeType.Manual;\n } else if (this.badgeControl === AutomationButtonBadgeControl.ManualOnly) {\n return ObcAutomationBadgeType.ManualOnly;\n } else if (this.badgeControl === AutomationButtonBadgeControl.Auto) {\n return ObcAutomationBadgeType.Auto;\n }\n return null;\n }\n\n private getBadgeInterlockType(): ObcAutomationBadgeType | null {\n if (this.badgeInterlock === AutomationButtonBadgeInterlock.Interlock) {\n return ObcAutomationBadgeType.Interlock;\n } else if (\n this.badgeInterlock === AutomationButtonBadgeInterlock.InterlockInhibit\n ) {\n return ObcAutomationBadgeType.InterlockInhibit;\n }\n return null;\n }\n\n private getBadgeCommandLockedType(): ObcAutomationBadgeType | null {\n if (\n this.badgeCommandLocked ===\n AutomationButtonBadgeCommandLocked.CommandLocked\n ) {\n return ObcAutomationBadgeType.CommandLocked;\n }\n return null;\n }\n\n override render() {\n const readouts: AutomationButtonReadoutStack[] = [...this.extraReadouts];\n const badgeAlertType = this.getBadgeAlertType();\n const badgeControlType = this.getBadgeControlType();\n const badgeInterlockType = this.getBadgeInterlockType();\n const badgeCommandLockedType = this.getBadgeCommandLockedType();\n\n return html`<obc-automation-button\n .state=${this._on\n ? AutomationButtonState.open\n : AutomationButtonState.closed}\n .readouts=${readouts}\n .tag=${this.tag}\n .showReadoutStack=${this.showReadoutStack}\n .readoutPosition=${this.readoutPosition}\n .readoutSize=${this.readoutSize}\n ?alert=${this.alert}\n .alertFrameType=${this.alertFrameType}\n .alertFrameThickness=${this.alertFrameThickness}\n .alertFrameStatus=${this.alertFrameStatus}\n .alertFrameMode=${this.alertFrameMode}\n .showAlertCategoryIcon=${this.showAlertCategoryIcon}\n .showAlertIcon=${this.showAlertIcon}\n ?progress=${this.progress}\n .progressMode=${this.progressMode}\n .progressValue=${this.progressValue}\n .variant=${this._variant}\n .direction=${this._direction}\n .orientation=${this._orientation}\n .hasBadgeSpacer=${this.getBadgeSpacer()}\n .positioning=${this.positioning}\n ?activated=${this.activated}\n >\n ${this.icon}\n <slot\n name=\"badge-top-right\"\n slot=\"badge-top-right\"\n @slotchange=${this.handleBadgeSlotChange}\n >\n ${badgeAlertType\n ? html`<obc-automation-badge\n .type=${badgeAlertType}\n ></obc-automation-badge>`\n : nothing}\n </slot>\n <slot\n name=\"badge-top-left\"\n slot=\"badge-top-left\"\n @slotchange=${this.handleBadgeSlotChange}\n >\n ${badgeControlType\n ? html`<obc-automation-badge\n .type=${badgeControlType}\n ></obc-automation-badge>`\n : nothing}\n </slot>\n <slot\n name=\"badge-bottom-left\"\n slot=\"badge-bottom-left\"\n @slotchange=${this.handleBadgeSlotChange}\n >\n ${badgeInterlockType\n ? html`<obc-automation-badge\n .type=${badgeInterlockType}\n ></obc-automation-badge>`\n : nothing}\n </slot>\n <slot\n name=\"badge-bottom-right\"\n slot=\"badge-bottom-right\"\n @slotchange=${this.handleBadgeSlotChange}\n >\n ${badgeCommandLockedType\n ? html`<obc-automation-badge\n .type=${badgeCommandLockedType}\n ></obc-automation-badge>`\n : nothing}\n </slot>\n </obc-automation-button>`;\n }\n}\n"],"names":["AutomationButtonBadgeAlert","AutomationButtonBadgeInterlock","AutomationButtonBadgeControl","AutomationButtonBadgeCommandLocked"],"mappings":";;;;;;;;;;;;;;;;;AAyBO,IAAK,+CAAAA,gCAAL;AACLA,8BAAA,MAAA,IAAO;AACPA,8BAAA,SAAA,IAAU;AACVA,8BAAA,SAAA,IAAU;AACVA,8BAAA,SAAA,IAAU;AACVA,8BAAA,OAA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AEjI,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED;;;;;GAKG;AACH,qBACa,eAAgB,SAAQ,2BAA2B;IACnC,IAAI,EAAE,OAAO,CAAS;IACtB,QAAQ,EAAE,OAAO,CAAS;IAE3B,OAAO,EAAE,mBAAmB,CACxB;IAE9B,IAAa,GAAG,IAAI,OAAO,CAE1B;IAED,IAAa,aAAa,IAAI,4BAA4B,EAAE,CAkB3D;IAED,IAAa,IAAI,yCAyBhB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
1
+ {"version":3,"file":"digital-valve.d.ts","sourceRoot":"","sources":["../../../src/automation/digital-valve/digital-valve.ts"],"names":[],"mappings":"AAEA,OAAO,yCAAyC,CAAC;AACjD,OAAO,2CAA2C,CAAC;AAEnD,OAAO,EAAC,2BAA2B,EAAC,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAC,4BAA4B,EAAC,MAAM,qFAAqF,CAAC;AAEjI,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED;;;;;GAKG;AACH,qBACa,eAAgB,SAAQ,2BAA2B;IACnC,IAAI,EAAE,OAAO,CAAS;IACtB,QAAQ,EAAE,OAAO,CAAS;IAE3B,OAAO,EAAE,mBAAmB,CACxB;IAE9B,IAAa,GAAG,IAAI,OAAO,CAE1B;IAED,IAAa,aAAa,IAAI,4BAA4B,EAAE,CAsB3D;IAED,IAAa,IAAI,yCAyBhB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
@@ -30,6 +30,9 @@ let ObcDigitalValve = class extends ObcAbstractAutomationButton {
30
30
  return this.open;
31
31
  }
32
32
  get extraReadouts() {
33
+ if (!this.showStatus) {
34
+ return [];
35
+ }
33
36
  if (this.open) {
34
37
  return [
35
38
  {
@@ -1 +1 @@
1
- {"version":3,"file":"digital-valve.js","sources":["../../../src/automation/digital-valve/digital-valve.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-twoway-digital-open.js';\nimport '../../icons/icon-twoway-digital-closed.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButton} from '../automation-button/abstract-automation-button.js';\nimport {AutomationButtonReadoutStack} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\n\nexport enum DigitalValveVariant {\n regular = 'regular',\n flat = 'flat',\n}\n\n/**\n * @ignition-base-height: 82px\n * @ignition-base-width: 66px\n * @ignition-center\n * @stable\n */\n@customElement('obc-digital-valve')\nexport class ObcDigitalValve extends ObcAbstractAutomationButton {\n @property({type: Boolean}) open: boolean = false;\n @property({type: Boolean}) vertical: boolean = false;\n\n @property({type: String}) variant: DigitalValveVariant =\n DigitalValveVariant.regular;\n\n override get _on(): boolean {\n return this.open;\n }\n\n override get extraReadouts(): AutomationButtonReadoutStack[] {\n if (this.open) {\n return [\n {\n type: 'state-on',\n value: 'On',\n hasIcon: true,\n },\n ];\n } else {\n return [\n {\n type: 'state-off',\n value: 'Off',\n hasIcon: true,\n },\n ];\n }\n }\n\n override get icon() {\n const transform = this.vertical ? 'transform: rotate(90deg);' : '';\n if (this.open) {\n return html` <obi-twoway-digital-open\n usecsscolor\n slot=\"icon\"\n style=\"display: block; ${transform} line-height: 0;\"\n ></obi-twoway-digital-open>\n <obi-twoway-digital-open\n usecsscolor\n slot=\"icon-silhouette\"\n style=\"display: block; ${transform} line-height: 0;\"\n ></obi-twoway-digital-open>`;\n } else {\n return html` <obi-twoway-digital-closed\n usecsscolor\n slot=\"icon\"\n style=\"display: block; ${transform} line-height: 0;\"\n ></obi-twoway-digital-closed>\n <obi-twoway-digital-closed\n usecsscolor\n slot=\"icon-silhouette\"\n style=\"display: block; ${transform} line-height: 0;\"\n ></obi-twoway-digital-closed>`;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YAAA,CAAA;AAED,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAJb,gBAIe,WAAA,WAAA,CAAA;AAJf,kBAAN,gBAAA;AAAA,EADN,cAAc,mBAAmB;AAAA,GACrB,eAAA;"}
1
+ {"version":3,"file":"digital-valve.js","sources":["../../../src/automation/digital-valve/digital-valve.ts"],"sourcesContent":["import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport '../../icons/icon-twoway-digital-open.js';\nimport '../../icons/icon-twoway-digital-closed.js';\nimport {customElement} from '../../decorator.js';\nimport {ObcAbstractAutomationButton} from '../automation-button/abstract-automation-button.js';\nimport {AutomationButtonReadoutStack} from '../../components/automation-button-readout-stack/automation-button-readout-stack.js';\n\nexport enum DigitalValveVariant {\n regular = 'regular',\n flat = 'flat',\n}\n\n/**\n * @ignition-base-height: 82px\n * @ignition-base-width: 66px\n * @ignition-center\n * @stable\n */\n@customElement('obc-digital-valve')\nexport class ObcDigitalValve extends ObcAbstractAutomationButton {\n @property({type: Boolean}) open: boolean = false;\n @property({type: Boolean}) vertical: boolean = false;\n\n @property({type: String}) variant: DigitalValveVariant =\n DigitalValveVariant.regular;\n\n override get _on(): boolean {\n return this.open;\n }\n\n override get extraReadouts(): AutomationButtonReadoutStack[] {\n if (!this.showStatus) {\n return [];\n }\n\n if (this.open) {\n return [\n {\n type: 'state-on',\n value: 'On',\n hasIcon: true,\n },\n ];\n } else {\n return [\n {\n type: 'state-off',\n value: 'Off',\n hasIcon: true,\n },\n ];\n }\n }\n\n override get icon() {\n const transform = this.vertical ? 'transform: rotate(90deg);' : '';\n if (this.open) {\n return html` <obi-twoway-digital-open\n usecsscolor\n slot=\"icon\"\n style=\"display: block; ${transform} line-height: 0;\"\n ></obi-twoway-digital-open>\n <obi-twoway-digital-open\n usecsscolor\n slot=\"icon-silhouette\"\n style=\"display: block; ${transform} line-height: 0;\"\n ></obi-twoway-digital-open>`;\n } else {\n return html` <obi-twoway-digital-closed\n usecsscolor\n slot=\"icon\"\n style=\"display: block; ${transform} line-height: 0;\"\n ></obi-twoway-digital-closed>\n <obi-twoway-digital-closed\n usecsscolor\n slot=\"icon-silhouette\"\n style=\"display: block; ${transform} line-height: 0;\"\n ></obi-twoway-digital-closed>`;\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-digital-valve': ObcDigitalValve;\n }\n}\n"],"names":["DigitalValveVariant"],"mappings":";;;;;;;;;;;;;;;;AAQO,IAAK,wCAAAA,yBAAL;AACLA,uBAAA,SAAA,IAAU;AACVA,uBAAA,MAAA,IAAO;AAFG,SAAAA;AAAA,GAAA,uBAAA,CAAA,CAAA;AAYL,IAAM,kBAAN,cAA8B,4BAA4B;AAAA,EAA1D,cAAA;AAAA,UAAA,GAAA,SAAA;AACsB,SAAA,OAAgB;AAChB,SAAA,WAAoB;AAErB,SAAA,UACxB;AAAA,EAAA;AAAA,EAEF,IAAa,MAAe;AAC1B,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAa,gBAAgD;AAC3D,QAAI,CAAC,KAAK,YAAY;AACpB,aAAO,CAAA;AAAA,IACT;AAEA,QAAI,KAAK,MAAM;AACb,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IAEJ,OAAO;AACL,aAAO;AAAA,QACL;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IAEJ;AAAA,EACF;AAAA,EAEA,IAAa,OAAO;AAClB,UAAM,YAAY,KAAK,WAAW,8BAA8B;AAChE,QAAI,KAAK,MAAM;AACb,aAAO;AAAA;AAAA;AAAA,mCAGsB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,mCAKT,SAAS;AAAA;AAAA,IAExC,OAAO;AACL,aAAO;AAAA;AAAA;AAAA,mCAGsB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,mCAKT,SAAS;AAAA;AAAA,IAExC;AAAA,EACF;AACF;AA5D6B,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GADd,gBACgB,WAAA,QAAA,CAAA;AACA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAFd,gBAEgB,WAAA,YAAA,CAAA;AAED,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAJb,gBAIe,WAAA,WAAA,CAAA;AAJf,kBAAN,gBAAA;AAAA,EADN,cAAc,mBAAmB;AAAA,GACrB,eAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents",
3
- "version": "2.0.0-next.126",
3
+ "version": "2.0.0-next.127",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,12 +75,12 @@
75
75
  "@eslint/js": "^10.0.1",
76
76
  "@figma/rest-api-spec": "^0.37.0",
77
77
  "@jackolope/ts-lit-plugin": "^3.1.6",
78
- "@lit-labs/cli": "file:lit-labs-cli-0.6.5.tgz",
78
+ "@oicl-lit/cli": "0.6.7",
79
79
  "@lit-labs/cli-localize": "^0.2.2",
80
- "@lit-labs/gen-wrapper-angular": "file:lit-labs-gen-wrapper-angular-bbde8906.tgz",
81
- "@lit-labs/gen-wrapper-react": "^0.3.5",
82
- "@lit-labs/gen-wrapper-svelte": "file:lit-labs-gen-wrapper-svelte-ab2e44ef.tgz",
83
- "@lit-labs/gen-wrapper-vue": "file:lit-labs-gen-wrapper-vue-0.4.1.tgz",
80
+ "@oicl-lit/gen-wrapper-angular": "0.1.6",
81
+ "@oicl-lit/gen-wrapper-react": "0.3.6",
82
+ "@oicl-lit/gen-wrapper-svelte": "0.1.0",
83
+ "@oicl-lit/gen-wrapper-vue": "0.4.4",
84
84
  "@open-wc/lit-helpers": "^0.7.0",
85
85
  "@playwright/test": "1.60.0",
86
86
  "@semantic-release/changelog": "^6.0.3",