@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.129 → 2.0.0-next.131

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 (26) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +39 -7
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/custom-elements.json +35 -3
  4. package/dist/building-blocks/readout-block/readout-block.d.ts +9 -2
  5. package/dist/building-blocks/readout-block/readout-block.d.ts.map +1 -1
  6. package/dist/building-blocks/readout-block/readout-block.js +17 -6
  7. package/dist/building-blocks/readout-block/readout-block.js.map +1 -1
  8. package/dist/components/modal-window/modal-window.css.js +5 -0
  9. package/dist/components/modal-window/modal-window.css.js.map +1 -1
  10. package/dist/components/modal-window/modal-window.d.ts +8 -0
  11. package/dist/components/modal-window/modal-window.d.ts.map +1 -1
  12. package/dist/components/modal-window/modal-window.js.map +1 -1
  13. package/dist/components/progress-bar/progress-bar.css.js +8 -0
  14. package/dist/components/progress-bar/progress-bar.css.js.map +1 -1
  15. package/dist/components/progress-bar/progress-bar.d.ts +11 -0
  16. package/dist/components/progress-bar/progress-bar.d.ts.map +1 -1
  17. package/dist/components/progress-bar/progress-bar.js +12 -1
  18. package/dist/components/progress-bar/progress-bar.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/building-blocks/readout-block/readout-block.ts +17 -6
  21. package/src/components/modal-window/modal-window-sizing.stories.ts +155 -0
  22. package/src/components/modal-window/modal-window.css +5 -0
  23. package/src/components/modal-window/modal-window.ts +8 -0
  24. package/src/components/progress-bar/progress-bar.css +8 -0
  25. package/src/components/progress-bar/progress-bar.stories.ts +23 -0
  26. package/src/components/progress-bar/progress-bar.ts +18 -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, whose
63633
- * colours are fixed fills and ignore `currentColor` by design.
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></obi-warning-unacknowledged-iec>` : b`<obi-warning-unacknowledged-outlined></obi-warning-unacknowledged-outlined>`;
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></obi-alarm-unacknowledged-iec>` : b`<obi-alarm></obi-alarm>`;
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
  }
@@ -101706,6 +101717,10 @@ const componentStyle$G = i$7`* {
101706
101717
  box-sizing: border-box;
101707
101718
  }
101708
101719
 
101720
+ :host {
101721
+ display: block;
101722
+ }
101723
+
101709
101724
  .wrapper {
101710
101725
  box-sizing: border-box;
101711
101726
  background: var(--container-background-color);
@@ -101717,6 +101732,7 @@ const componentStyle$G = i$7`* {
101717
101732
  display: flex;
101718
101733
  flex-direction: column;
101719
101734
  width: 100%;
101735
+ height: var(--obc-modal-window-height, auto);
101720
101736
  max-height: 90vh;
101721
101737
  }
101722
101738
 
@@ -103966,6 +103982,10 @@ const componentStyle$A = i$7`* {
103966
103982
  transition: width 0.3s ease-in-out;
103967
103983
  }
103968
103984
 
103985
+ .bar.priority-regular .loaded {
103986
+ background-color: var(--instrument-regular-secondary-color);
103987
+ }
103988
+
103969
103989
  .indeterminate-track {
103970
103990
  position: absolute;
103971
103991
  top: 0;
@@ -103977,6 +103997,10 @@ const componentStyle$A = i$7`* {
103977
103997
  animation: indeterminate-slide 1.5s ease-in-out infinite;
103978
103998
  }
103979
103999
 
104000
+ .bar.priority-regular .indeterminate-track {
104001
+ background-color: var(--instrument-regular-secondary-color);
104002
+ }
104003
+
103980
104004
  @keyframes indeterminate-slide {
103981
104005
  0% {
103982
104006
  transform: translateX(-100%);
@@ -104106,6 +104130,7 @@ let ObcProgressBar = class extends i$4 {
104106
104130
  this.type = "linear";
104107
104131
  this.mode = "determinate";
104108
104132
  this.circularState = "determinate";
104133
+ this.priority = Priority.enhanced;
104109
104134
  this.value = 0;
104110
104135
  this.showValue = false;
104111
104136
  this.showUnit = false;
@@ -104185,11 +104210,15 @@ let ObcProgressBar = class extends i$4 {
104185
104210
  renderLinearProgress() {
104186
104211
  const clampedValue = Math.max(0, Math.min(100, this.value));
104187
104212
  const progressWidth = `${clampedValue}%`;
104213
+ const barClasses = {
104214
+ bar: true,
104215
+ "priority-regular": this.priority === Priority.regular
104216
+ };
104188
104217
  return b`
104189
104218
  <div class="wrapper">
104190
104219
  ${this.showValue ? this.renderLabel() : ""}
104191
104220
 
104192
- <div class="bar">
104221
+ <div class=${e$1(barClasses)}>
104193
104222
  ${this.mode === "determinate" ? b`
104194
104223
  <div
104195
104224
  class="loaded"
@@ -104236,6 +104265,9 @@ __decorateClass$to([
104236
104265
  __decorateClass$to([
104237
104266
  n$3({ type: String })
104238
104267
  ], ObcProgressBar.prototype, "circularState", 2);
104268
+ __decorateClass$to([
104269
+ n$3({ type: String })
104270
+ ], ObcProgressBar.prototype, "priority", 2);
104239
104271
  __decorateClass$to([
104240
104272
  n$3({ type: Number })
104241
104273
  ], ObcProgressBar.prototype, "value", 2);