@oicl/openbridge-webcomponents 2.0.0-next.129 → 2.0.0-next.130
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 +17 -6
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +1 -1
- package/dist/building-blocks/readout-block/readout-block.d.ts +9 -2
- package/dist/building-blocks/readout-block/readout-block.d.ts.map +1 -1
- package/dist/building-blocks/readout-block/readout-block.js +17 -6
- package/dist/building-blocks/readout-block/readout-block.js.map +1 -1
- package/package.json +1 -1
|
@@ -63629,20 +63629,31 @@ let ObcReadoutBlock = class extends i$4 {
|
|
|
63629
63629
|
/**
|
|
63630
63630
|
* The advice marker for the current category / triggered state. Resting
|
|
63631
63631
|
* categories carry a neutral outline glyph (tinted via `currentColor`);
|
|
63632
|
-
* triggered alert categories swap to the filled IEC status icon
|
|
63633
|
-
*
|
|
63632
|
+
* triggered alert categories swap to the filled IEC status icon rendered
|
|
63633
|
+
* with `useCssColor`, which selects the icon's token-coloured variant
|
|
63634
|
+
* (alert fill + on-alert glyph, e.g. `--alert-caution-color` +
|
|
63635
|
+
* `--on-caution-active-color`) — without it the same icon is a
|
|
63636
|
+
* single-colour `currentColor` silhouette. This mirrors `obc-alert-icon`.
|
|
63637
|
+
* The resting icons and the advice diamond deliberately stay on
|
|
63638
|
+
* `currentColor`: their css-colour variants hard-code
|
|
63639
|
+
* `--element-active-color`, which would defeat the neutral tint and the
|
|
63640
|
+
* optimal / eco triggered tint applied from CSS.
|
|
63634
63641
|
*/
|
|
63635
63642
|
adviceFallbackIcon() {
|
|
63636
63643
|
const active = this.active;
|
|
63637
63644
|
switch (this.category) {
|
|
63638
63645
|
case "caution":
|
|
63639
|
-
return active ? b`<obi-caution-color-iec></obi-caution-color-iec>` : b`<obi-caution-google></obi-caution-google>`;
|
|
63646
|
+
return active ? b`<obi-caution-color-iec useCssColor></obi-caution-color-iec>` : b`<obi-caution-google></obi-caution-google>`;
|
|
63640
63647
|
case "warning":
|
|
63641
|
-
return active ? b`<obi-warning-unacknowledged-iec
|
|
63648
|
+
return active ? b`<obi-warning-unacknowledged-iec
|
|
63649
|
+
useCssColor
|
|
63650
|
+
></obi-warning-unacknowledged-iec>` : b`<obi-warning-unacknowledged-outlined></obi-warning-unacknowledged-outlined>`;
|
|
63642
63651
|
case "alarm":
|
|
63643
|
-
return active ? b`<obi-alarm-unacknowledged-iec
|
|
63652
|
+
return active ? b`<obi-alarm-unacknowledged-iec
|
|
63653
|
+
useCssColor
|
|
63654
|
+
></obi-alarm-unacknowledged-iec>` : b`<obi-alarm></obi-alarm>`;
|
|
63644
63655
|
case "running":
|
|
63645
|
-
return active ? b`<obi-running-color-iec></obi-running-color-iec>` : b`<obi-running></obi-running>`;
|
|
63656
|
+
return active ? b`<obi-running-color-iec useCssColor></obi-running-color-iec>` : b`<obi-running></obi-running>`;
|
|
63646
63657
|
default:
|
|
63647
63658
|
return active ? b`<obi-notification-advice-active></obi-notification-advice-active>` : b`<obi-notification-advice></obi-notification-advice>`;
|
|
63648
63659
|
}
|