@oicl/openbridge-webcomponents 2.0.0-next.76 → 2.0.0-next.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +56 -24
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/dist/automation/analog-valve/analog-valve.d.ts.map +1 -1
  4. package/dist/automation/analog-valve/analog-valve.js +1 -1
  5. package/dist/automation/analog-valve/analog-valve.js.map +1 -1
  6. package/dist/automation/automation-button/abstract-automation-button-motorized.d.ts.map +1 -1
  7. package/dist/automation/automation-button/abstract-automation-button-motorized.js +1 -1
  8. package/dist/automation/automation-button/abstract-automation-button-motorized.js.map +1 -1
  9. package/dist/automation/automation-button/automation-button.d.ts +2 -1
  10. package/dist/automation/automation-button/automation-button.d.ts.map +1 -1
  11. package/dist/automation/automation-button/automation-button.js +1 -0
  12. package/dist/automation/automation-button/automation-button.js.map +1 -1
  13. package/dist/components/automation-button-readout-stack/automation-button-readout-stack.d.ts +1 -1
  14. package/dist/components/automation-button-readout-stack/automation-button-readout-stack.d.ts.map +1 -1
  15. package/dist/components/automation-button-readout-stack/automation-button-readout-stack.js.map +1 -1
  16. package/dist/navigation-instruments/gauge-radial/gauge-radial.css.js +13 -1
  17. package/dist/navigation-instruments/gauge-radial/gauge-radial.css.js.map +1 -1
  18. package/dist/navigation-instruments/indicator-graph/indicator-graph.css.js +34 -20
  19. package/dist/navigation-instruments/indicator-graph/indicator-graph.css.js.map +1 -1
  20. package/dist/navigation-instruments/indicator-graph/indicator-graph.d.ts.map +1 -1
  21. package/dist/navigation-instruments/indicator-graph/indicator-graph.js +2 -1
  22. package/dist/navigation-instruments/indicator-graph/indicator-graph.js.map +1 -1
  23. package/dist/navigation-instruments/watch/watch.css.js +4 -0
  24. package/dist/navigation-instruments/watch/watch.css.js.map +1 -1
  25. package/package.json +1 -1
@@ -16803,6 +16803,7 @@ var AutomationButtonLabelDirection = /* @__PURE__ */ ((AutomationButtonLabelDire
16803
16803
  AutomationButtonLabelDirection2["down"] = "down";
16804
16804
  AutomationButtonLabelDirection2["left"] = "left";
16805
16805
  AutomationButtonLabelDirection2["right"] = "right";
16806
+ AutomationButtonLabelDirection2["none"] = "none";
16806
16807
  return AutomationButtonLabelDirection2;
16807
16808
  })(AutomationButtonLabelDirection || {});
16808
16809
  var AutomationButtonOrientation = /* @__PURE__ */ ((AutomationButtonOrientation2) => {
@@ -18356,7 +18357,7 @@ let ObcAnalogValve = class extends ObcAbstractAutomationButton {
18356
18357
  return [
18357
18358
  {
18358
18359
  type: "value",
18359
- icon: "arrow",
18360
+ icon: this.labelDirection === AutomationButtonLabelDirection.none ? "none" : "arrow",
18360
18361
  value: this.value,
18361
18362
  nDigits: 3,
18362
18363
  unit: "%",
@@ -18447,7 +18448,7 @@ class ObcAbstractAutomationButtonMotorized extends ObcAbstractAutomationButton {
18447
18448
  nDigits: this.speedMaxDigits,
18448
18449
  unit: this.speedUnit,
18449
18450
  direction: this.labelDirection,
18450
- icon: "chevron"
18451
+ icon: this.labelDirection === AutomationButtonLabelDirection.none ? "none" : "chevron"
18451
18452
  }
18452
18453
  ];
18453
18454
  } else if (!this.on) {
@@ -51295,6 +51296,10 @@ const compentStyle$14 = i$7`
51295
51296
  box-sizing: border-box;
51296
51297
  }
51297
51298
 
51299
+ :host {
51300
+ overflow: hidden;
51301
+ }
51302
+
51298
51303
  .label {
51299
51304
  font-family: var(--global-typography-font-family);
51300
51305
  font-weight: var(--global-typography-ui-body-font-weight);
@@ -212827,12 +212832,21 @@ const componentStyle$9 = i$7`
212827
212832
  }
212828
212833
 
212829
212834
  /* Host takes each sector's crop aspect (see \`sectorClips\`): 270/90 square, 180
212830
- wide — so the dial is the same size at any width. */
212835
+ wide — so the dial is the same size at any width.
212836
+
212837
+ \`width\`/\`height: auto\` + \`max-width\`/\`max-height: 100%\` makes the host the
212838
+ largest box of the sector's aspect ratio that fits inside *both* the
212839
+ available width and height. Using \`height: auto\` alone only honours the
212840
+ width, so in a short, wide (e.g. flex) container the square would grow as
212841
+ tall as it is wide and overflow — see issue #992. */
212831
212842
 
212832
212843
  :host([sector="270"]),
212833
212844
  :host([sector="90-left"]),
212834
212845
  :host([sector="90-right"]) {
212846
+ width: auto;
212835
212847
  height: auto;
212848
+ max-width: 100%;
212849
+ max-height: 100%;
212836
212850
  aspect-ratio: 1;
212837
212851
  }
212838
212852
 
@@ -212840,7 +212854,10 @@ const componentStyle$9 = i$7`
212840
212854
  sync with \`sectorClips\` bottom=44 in gauge-radial.ts. */
212841
212855
 
212842
212856
  :host([sector="180"]) {
212857
+ width: auto;
212843
212858
  height: auto;
212859
+ max-width: 100%;
212860
+ max-height: 100%;
212844
212861
  aspect-ratio: 448 / 251;
212845
212862
  }
212846
212863
 
@@ -219118,10 +219135,36 @@ const compentStyle$7 = i$7`
219118
219135
  .chart-container {
219119
219136
  width: 100%;
219120
219137
  height: 100%;
219138
+ box-sizing: border-box;
219121
219139
  display: flex;
219122
219140
  align-items: center;
219123
219141
  justify-content: center;
219124
219142
  position: relative;
219143
+
219144
+ padding-bottom: 0.5px;
219145
+
219146
+ --dot-width: 6px;
219147
+ --dot-radius: calc(var(--dot-width) / 2);
219148
+ }
219149
+
219150
+ .chart-container.medium {
219151
+ --dot-width: 8px;
219152
+ }
219153
+
219154
+ .chart-container.large {
219155
+ --dot-width: 10px;
219156
+ }
219157
+
219158
+ .u-over {
219159
+ position: absolute;
219160
+ }
219161
+
219162
+ #chart {
219163
+ position: absolute;
219164
+ width: calc(100% - var(--dot-radius));
219165
+ left: 0;
219166
+ top: var(--dot-radius);
219167
+ bottom: var(--dot-radius);
219125
219168
  }
219126
219169
 
219127
219170
  canvas {
@@ -219133,11 +219176,12 @@ canvas {
219133
219176
  }
219134
219177
 
219135
219178
  #dot {
219179
+ box-sizing: border-box;
219136
219180
  position: absolute;
219137
- width: 4px;
219138
- height: 4px;
219139
- right: -3px;
219140
- bottom: -3px;
219181
+ width: var(--dot-width);
219182
+ height: var(--dot-width);
219183
+ right: 0;
219184
+ bottom: 0;
219141
219185
  border-radius: 50%;
219142
219186
  background: var(--element-neutral-color);
219143
219187
  border: 1px solid var(--border-silhouette-color);
@@ -219148,25 +219192,12 @@ canvas {
219148
219192
  background: var(--element-neutral-enhanced-color);
219149
219193
  }
219150
219194
 
219151
- .medium #dot {
219152
- width: 6px;
219153
- height: 6px;
219154
- right: -4px;
219155
- bottom: -4px;
219156
- }
219157
-
219158
- .large #dot {
219159
- width: 8px;
219160
- height: 8px;
219161
- right: -5px;
219162
- bottom: -5px;
219163
- }
219164
-
219165
219195
  #zero-line {
219166
219196
  position: absolute;
219167
- width: 100%;
219197
+ left: 0;
219198
+ right: var(--dot-radius);
219168
219199
  height: 1px;
219169
- bottom: -0.5px;
219200
+ bottom: calc(var(--dot-radius) - 0.5px);
219170
219201
  background: var(--element-disabled-color);
219171
219202
  border-radius: 2px;
219172
219203
  }
@@ -219322,6 +219353,7 @@ let ObcIndicatorGraph = class extends i$4 {
219322
219353
  <div
219323
219354
  class="chart-container ${this._effectivePriority} ${this._effectiveSize}"
219324
219355
  >
219356
+ <div id="chart"></div>
219325
219357
  <div
219326
219358
  id="zero-line"
219327
219359
  style="transform: translateY(${-(this.zeroLineY ?? 0)}px);
@@ -219346,7 +219378,7 @@ __decorateClass$p([
219346
219378
  n$3({ type: Object })
219347
219379
  ], ObcIndicatorGraph.prototype, "layout", 2);
219348
219380
  __decorateClass$p([
219349
- e$3(".chart-container")
219381
+ e$3("#chart")
219350
219382
  ], ObcIndicatorGraph.prototype, "chart", 2);
219351
219383
  __decorateClass$p([
219352
219384
  r$3()