@oicl/openbridge-webcomponents 2.1.0-next.9 → 2.1.0

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 (45) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +23 -32
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/custom-elements.json +42 -42
  4. package/dist/components/alert-menu/alert-menu.d.ts +5 -5
  5. package/dist/components/alert-menu/alert-menu.js.map +1 -1
  6. package/dist/components/app-menu/app-menu.d.ts +5 -5
  7. package/dist/components/app-menu/app-menu.js.map +1 -1
  8. package/dist/components/brilliance-menu/brilliance-menu.d.ts +5 -5
  9. package/dist/components/brilliance-menu/brilliance-menu.js.map +1 -1
  10. package/dist/components/command-menu/command-menu.d.ts +5 -5
  11. package/dist/components/command-menu/command-menu.js.map +1 -1
  12. package/dist/components/context-menu-input/context-menu-input.d.ts +5 -5
  13. package/dist/components/context-menu-input/context-menu-input.js.map +1 -1
  14. package/dist/components/navigation-menu/navigation-menu.d.ts +5 -5
  15. package/dist/components/navigation-menu/navigation-menu.js.map +1 -1
  16. package/dist/components/slide-button/slide-button.d.ts.map +1 -1
  17. package/dist/components/slide-button/slide-button.js +1 -1
  18. package/dist/components/slide-button/slide-button.js.map +1 -1
  19. package/dist/components/start-stop-switch/start-stop-switch.d.ts.map +1 -1
  20. package/dist/components/start-stop-switch/start-stop-switch.js +3 -10
  21. package/dist/components/start-stop-switch/start-stop-switch.js.map +1 -1
  22. package/dist/components/system-menu/system-menu.d.ts +5 -5
  23. package/dist/components/system-menu/system-menu.js.map +1 -1
  24. package/dist/components/user-menu/user-menu.d.ts +5 -5
  25. package/dist/components/user-menu/user-menu.js.map +1 -1
  26. package/dist/internal/popover-controller.d.ts +4 -0
  27. package/dist/internal/popover-controller.d.ts.map +1 -1
  28. package/dist/internal/popover-controller.js +4 -0
  29. package/dist/internal/popover-controller.js.map +1 -1
  30. package/dist/navigation-instruments/readout/readout.css.js +5 -4
  31. package/dist/navigation-instruments/readout/readout.css.js.map +1 -1
  32. package/dist/navigation-instruments/readout/readout.d.ts +3 -4
  33. package/dist/navigation-instruments/readout/readout.d.ts.map +1 -1
  34. package/dist/navigation-instruments/readout/readout.js +3 -4
  35. package/dist/navigation-instruments/readout/readout.js.map +1 -1
  36. package/dist/navigation-instruments/readout-list/readout-list.css.js +3 -5
  37. package/dist/navigation-instruments/readout-list/readout-list.css.js.map +1 -1
  38. package/dist/navigation-instruments/readout-list-item/readout-list-item.css.js +4 -4
  39. package/dist/navigation-instruments/readout-list-item/readout-list-item.css.js.map +1 -1
  40. package/dist/navigation-instruments/readout-list-item/readout-list-item.d.ts +8 -7
  41. package/dist/navigation-instruments/readout-list-item/readout-list-item.d.ts.map +1 -1
  42. package/dist/navigation-instruments/readout-list-item/readout-list-item.js +4 -4
  43. package/dist/navigation-instruments/readout-list-item/readout-list-item.js.map +1 -1
  44. package/dist/openbridge.css +389 -263
  45. package/package.json +1 -1
@@ -46923,14 +46923,15 @@ obc-readout-block {
46923
46923
  }
46924
46924
 
46925
46925
  /* ---------- Value alert overlay ----------
46926
- * Reserves no space, so toggling the frame never shifts content. The box sits
46927
- * on the 4px/2px padding line, where obc-alert-frame centres its stroke. */
46926
+ * Reserves no space, so toggling the frame never shifts content. The box shares
46927
+ * the reading's top and bottom edges, as the design pins the frame to the
46928
+ * readout block (Figma 46282:102156); the inline padding keeps the stroke off
46929
+ * the digits. */
46928
46930
  .value-alert-overlay {
46929
46931
  --_readout-value-frame-padding-horizontal: 4px;
46930
- --_readout-value-frame-padding-vertical: 2px;
46931
46932
  position: absolute;
46932
46933
  inset-inline: calc(-1 * var(--_readout-value-frame-padding-horizontal));
46933
- inset-block: calc(-1 * var(--_readout-value-frame-padding-vertical));
46934
+ inset-block: 0;
46934
46935
  pointer-events: none;
46935
46936
  }
46936
46937
 
@@ -47749,14 +47750,14 @@ obc-readout-block {
47749
47750
 
47750
47751
  /* ---------- Value alert overlay ----------
47751
47752
  * Reserves no space, so the frame never changes the row height or the column
47752
- * alignment. The box sits on the 4px/2px padding line, where obc-alert-frame
47753
- * centres its stroke (Figma 58:10120). */
47753
+ * alignment. The box shares the reading's top and bottom edges, as the design
47754
+ * pins the frame to the readout block (Figma 46282:102156), so touching rows
47755
+ * share one stroke; the inline padding keeps the stroke off the digits. */
47754
47756
  .value-alert-overlay {
47755
47757
  --_obc-readout-value-frame-padding-horizontal: 4px;
47756
- --_obc-readout-value-frame-padding-vertical: 2px;
47757
47758
  position: absolute;
47758
47759
  inset-inline: calc(-1 * var(--_obc-readout-value-frame-padding-horizontal));
47759
- inset-block: calc(-1 * var(--_obc-readout-value-frame-padding-vertical));
47760
+ inset-block: 0;
47760
47761
  /* Display-only: never intercept clicks on a clickable row. */
47761
47762
  pointer-events: none;
47762
47763
  }
@@ -48664,10 +48665,10 @@ var ObcReadoutListItem = class ObcReadoutListItem extends i$4 {
48664
48665
  /**
48665
48666
  * The value alert frame, drawn as a pure overlay around the value reading
48666
48667
  * (value + degree + unit). It reserves no space — the `obc-alert-frame` sits in
48667
- * an absolutely-positioned box offset outward (see `.value-alert-overlay` in
48668
- * the CSS) so its stroke is centred on the 4px/2px padding line and toggling it
48669
- * never shifts content or row height. Renders only when `valueOptions.alert` is
48670
- * a config object.
48668
+ * an absolutely-positioned box on the reading's edges, padded inline only
48669
+ * (see `.value-alert-overlay` in the CSS), so toggling it never shifts
48670
+ * content or row height. Renders only when `valueOptions.alert` is a config
48671
+ * object.
48671
48672
  */
48672
48673
  renderValueAlertOverlay() {
48673
48674
  const alert = this.valueOptions?.alert;
@@ -53899,10 +53900,9 @@ var ObcReadout = class ObcReadout extends i$4 {
53899
53900
  /**
53900
53901
  * The value alert frame, drawn as a pure overlay around the value reading
53901
53902
  * (value + degree). It reserves no space — the `obc-alert-frame` sits in an
53902
- * absolutely-positioned box offset outward (see `.value-alert-overlay` in the
53903
- * CSS) so its stroke is centred on the 4px/2px padding line and toggling it
53904
- * never shifts content. Renders only when `valueOptions.alert` is a config
53905
- * object.
53903
+ * absolutely-positioned box on the reading's edges, padded inline only (see
53904
+ * `.value-alert-overlay` in the CSS), so toggling it never shifts content.
53905
+ * Renders only when `valueOptions.alert` is a config object.
53906
53906
  */
53907
53907
  renderValueAlertOverlay() {
53908
53908
  const alert = this.valueOptions?.alert;
@@ -93921,15 +93921,8 @@ var ObcStartStopSwitch = class ObcStartStopSwitch extends i$4 {
93921
93921
  if (e instanceof MouseEvent) this.dragStartX = e.clientX;
93922
93922
  else this.dragStartX = e.touches[0].clientX;
93923
93923
  this.dragCurrentX = this.dragStartX;
93924
- const trackRect = this.trackRef?.getBoundingClientRect();
93925
- const buttonRect = this.buttonRef?.getBoundingClientRect();
93926
- if (trackRect && buttonRect) {
93927
- this.trackWidth = trackRect.width;
93928
- this.buttonWidth = buttonRect.width;
93929
- } else {
93930
- this.trackWidth = this.trackRef?.offsetWidth || 0;
93931
- this.buttonWidth = this.buttonRef?.offsetWidth || 0;
93932
- }
93924
+ this.trackWidth = this.trackRef?.offsetWidth || 0;
93925
+ this.buttonWidth = this.buttonRef?.offsetWidth || 0;
93933
93926
  window.addEventListener("mousemove", this.onDragMove);
93934
93927
  window.addEventListener("touchmove", this.onDragMove, { passive: false });
93935
93928
  window.addEventListener("mouseup", this.onDragEnd);
@@ -93944,7 +93937,7 @@ var ObcStartStopSwitch = class ObcStartStopSwitch extends i$4 {
93944
93937
  e.preventDefault();
93945
93938
  }
93946
93939
  this.dragCurrentX = clientX;
93947
- this.dragOffset = this.dragCurrentX - this.dragStartX;
93940
+ this.dragOffset = (this.dragCurrentX - this.dragStartX) / (this.currentCSSZoom ?? 1);
93948
93941
  const percent = Math.abs(this.dragOffset / (this.trackWidth - this.buttonWidth));
93949
93942
  this.tmpChecked = this.checked ? percent < .5 : percent > .5;
93950
93943
  this.requestUpdate();
@@ -107079,7 +107072,7 @@ var ObcSlideButton = class ObcSlideButton extends i$4 {
107079
107072
  e.preventDefault();
107080
107073
  }
107081
107074
  this.dragCurrentX = clientX;
107082
- this.dragOffset = this.dragCurrentX - this.dragStartX;
107075
+ this.dragOffset = (this.dragCurrentX - this.dragStartX) / (this.currentCSSZoom ?? 1);
107083
107076
  this.requestUpdate();
107084
107077
  };
107085
107078
  this.onDragEnd = () => {
@@ -207087,14 +207080,12 @@ var readout_list_default = i$7`* {
207087
207080
  width: 100%;
207088
207081
  }
207089
207082
 
207090
- /* Vertical stack of rows. The 8px default row gap leaves room for a value alert
207091
- frame, which overhangs ~3px above and below each row — so two stacked rows that
207092
- both carry an alarm frame never collide. Override via
207093
- \`--obc-readout-list-row-gap\`. */
207083
+ /* Vertical stack of rows. The 4px row gap matches the rich detail rows in
207084
+ \`obc-automation-tank\`; override via \`--obc-readout-list-row-gap\`. */
207094
207085
  .list {
207095
207086
  display: flex;
207096
207087
  flex-direction: column;
207097
- gap: var(--obc-readout-list-row-gap, 8px);
207088
+ gap: var(--obc-readout-list-row-gap, 4px);
207098
207089
  width: 100%;
207099
207090
  }
207100
207091
  `;