@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.68 → 2.0.0-next.70

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.
@@ -206784,10 +206784,6 @@ const componentStyle$h = i$7`
206784
206784
  border-radius: 8px;
206785
206785
  }
206786
206786
 
206787
- .footer-container slot[name="buttons"]::slotted(:not(obc-button)) {
206788
- display: contents;
206789
- }
206790
-
206791
206787
  .footer-container slot[name="buttons"]::slotted(*) {
206792
206788
  display: flex;
206793
206789
  flex: 1 1 0px;
@@ -206795,6 +206791,13 @@ const componentStyle$h = i$7`
206795
206791
  white-space: nowrap;
206796
206792
  }
206797
206793
 
206794
+ .footer-container slot[name="buttons"]::slotted(:not(obc-button)) {
206795
+ display: grid;
206796
+ grid-auto-flow: column;
206797
+ grid-auto-columns: minmax(auto, 1fr);
206798
+ gap: var(--app-components-integration-system-menu-action-spacing);
206799
+ }
206800
+
206798
206801
  .buttons-slot {
206799
206802
  display: contents;
206800
206803
  }
@@ -218867,8 +218870,8 @@ let ObcIndicatorGraph = class extends i$4 {
218867
218870
  super(...arguments);
218868
218871
  this.data = [[], []];
218869
218872
  this.layout = {};
218870
- this.y = 24;
218871
- this.zeroLineY = 0;
218873
+ this.y = void 0;
218874
+ this.zeroLineY = void 0;
218872
218875
  this.uplot = null;
218873
218876
  this.resizeObserver = null;
218874
218877
  }
@@ -218929,7 +218932,7 @@ let ObcIndicatorGraph = class extends i$4 {
218929
218932
  const { min: minY, max: maxY } = this.layout.y ?? {};
218930
218933
  const range = maxY ?? initMax - (minY ?? initMin);
218931
218934
  let min2 = minY ?? initMin - range * 0.1;
218932
- if (minY === void 0) {
218935
+ if (minY === void 0 && this.layout.y?.showZeroLine !== false) {
218933
218936
  min2 = Math.min(0, min2);
218934
218937
  }
218935
218938
  return [min2, maxY ?? initMax + range * 0.1];
@@ -218976,7 +218979,11 @@ let ObcIndicatorGraph = class extends i$4 {
218976
218979
  }
218977
218980
  const lastY = this.data[1][this.data[1].length - 1];
218978
218981
  const yRatio = this.uplot.scales.y.valToPct(lastY);
218979
- this.y = yRatio * this.chart.clientHeight;
218982
+ if (yRatio < 0 || yRatio > 1) {
218983
+ this.y = void 0;
218984
+ } else {
218985
+ this.y = yRatio * this.chart.clientHeight;
218986
+ }
218980
218987
  this.updateZeroLine();
218981
218988
  }
218982
218989
  updateZeroLine() {
@@ -218984,6 +218991,10 @@ let ObcIndicatorGraph = class extends i$4 {
218984
218991
  return;
218985
218992
  }
218986
218993
  const yRatio = this.uplot.scales.y.valToPct(0);
218994
+ if (yRatio < 0 || yRatio > 1) {
218995
+ this.zeroLineY = void 0;
218996
+ return;
218997
+ }
218987
218998
  this.zeroLineY = yRatio * this.chart.clientHeight;
218988
218999
  }
218989
219000
  updated(changedProperties) {
@@ -219000,15 +219011,15 @@ let ObcIndicatorGraph = class extends i$4 {
219000
219011
  >
219001
219012
  <div
219002
219013
  id="zero-line"
219003
- style="transform: translateY(${-this.zeroLineY}px);
219004
- display: ${this.zeroLineY > -0.5 ? "block" : "none"};
219014
+ style="transform: translateY(${-(this.zeroLineY ?? 0)}px);
219015
+ display: ${this.zeroLineY !== void 0 ? "block" : "none"};
219005
219016
  "
219006
219017
  ></div>
219007
219018
  <div
219008
219019
  id="dot"
219009
- style="transform: translateY(${-this.y}px);
219010
- display: ${this.y > -0.5 ? "block" : "none"};
219011
- "
219020
+ style="transform: translateY(${-(this.y ?? 0)}px);
219021
+ display: ${this.y !== void 0 ? "block" : "none"};
219022
+ "
219012
219023
  ></div>
219013
219024
  </div>
219014
219025
  `;