@oicl/openbridge-webcomponents 2.0.0-next.49 → 2.0.0-next.50
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 +196 -38
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +9 -0
- package/dist/automation/automation-tank/automation-tank.css.js +166 -28
- package/dist/automation/automation-tank/automation-tank.css.js.map +1 -1
- package/dist/automation/automation-tank/automation-tank.d.ts +32 -0
- package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js +28 -0
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/components/message-menu-item/message-menu-item.css.js +2 -10
- package/dist/components/message-menu-item/message-menu-item.css.js.map +1 -1
- package/package.json +1 -1
|
@@ -18510,16 +18510,6 @@ const compentStyle$16 = i$7`
|
|
|
18510
18510
|
flex: 0 0 auto;
|
|
18511
18511
|
}
|
|
18512
18512
|
|
|
18513
|
-
/* Override the global \`min-height: 24px\` on \`.badges\` so empty badge rows
|
|
18514
|
-
* don't reserve space in compact/static — the spec says "if there are no
|
|
18515
|
-
* badges it would grow upward". The slot-driven \`?hidden\` attribute on
|
|
18516
|
-
* empty cells makes them \`display: none\` (see below). */
|
|
18517
|
-
|
|
18518
|
-
:host([compact]) .halo > .badges,
|
|
18519
|
-
:host([static]) .halo > .badges {
|
|
18520
|
-
min-height: 0;
|
|
18521
|
-
}
|
|
18522
|
-
|
|
18523
18513
|
/* \`hidden\` attribute support: needed because the cells set an explicit
|
|
18524
18514
|
* display value (\`flex\` / \`block\`), which would otherwise override
|
|
18525
18515
|
* \`hidden\`'s default \`display: none\`. Removing the cell from the flex
|
|
@@ -18643,7 +18633,7 @@ const compentStyle$16 = i$7`
|
|
|
18643
18633
|
grid-row: 1;
|
|
18644
18634
|
grid-column: 2;
|
|
18645
18635
|
justify-self: end;
|
|
18646
|
-
align-self:
|
|
18636
|
+
align-self: start;
|
|
18647
18637
|
}
|
|
18648
18638
|
|
|
18649
18639
|
.tank-frame:not(.orientation-horizontal) .grid > .readout {
|
|
@@ -18673,7 +18663,7 @@ const compentStyle$16 = i$7`
|
|
|
18673
18663
|
grid-row: 1;
|
|
18674
18664
|
grid-column: 2;
|
|
18675
18665
|
justify-self: end;
|
|
18676
|
-
align-self:
|
|
18666
|
+
align-self: start;
|
|
18677
18667
|
}
|
|
18678
18668
|
|
|
18679
18669
|
.tank-frame.orientation-horizontal .grid > .bar-container {
|
|
@@ -18685,7 +18675,6 @@ const compentStyle$16 = i$7`
|
|
|
18685
18675
|
grid-row: 2;
|
|
18686
18676
|
grid-column: 2;
|
|
18687
18677
|
align-self: stretch;
|
|
18688
|
-
padding-left: 8px;
|
|
18689
18678
|
min-width: 96px;
|
|
18690
18679
|
}
|
|
18691
18680
|
|
|
@@ -18694,7 +18683,7 @@ const compentStyle$16 = i$7`
|
|
|
18694
18683
|
.badges {
|
|
18695
18684
|
display: flex;
|
|
18696
18685
|
justify-content: end;
|
|
18697
|
-
|
|
18686
|
+
gap: 4px;
|
|
18698
18687
|
pointer-events: auto;
|
|
18699
18688
|
}
|
|
18700
18689
|
|
|
@@ -18708,7 +18697,7 @@ const compentStyle$16 = i$7`
|
|
|
18708
18697
|
"liga" off,
|
|
18709
18698
|
"clig" off,
|
|
18710
18699
|
"ss04" on;
|
|
18711
|
-
color: var(--
|
|
18700
|
+
color: var(--element-neutral-color);
|
|
18712
18701
|
/* Tag text must never break across lines — it is a fixed identifier
|
|
18713
18702
|
* (e.g. \`FUEL\`, \`#0000\`) that loses meaning if hyphenated or wrapped. */
|
|
18714
18703
|
white-space: nowrap;
|
|
@@ -18729,28 +18718,63 @@ const compentStyle$16 = i$7`
|
|
|
18729
18718
|
/* Keep \`90%\` together — the parent flex prevents flex-item wrapping but
|
|
18730
18719
|
* not text wrapping inside \`.percent\` (number + \`<span>%</span>\`). */
|
|
18731
18720
|
white-space: nowrap;
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
|
|
18735
|
-
|
|
18721
|
+
color: var(--element-neutral-color);
|
|
18722
|
+
}
|
|
18723
|
+
|
|
18724
|
+
.readout-compact .percent {
|
|
18725
|
+
font-family: var(--global-typography-font-family);
|
|
18726
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
18727
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
18728
|
+
font-feature-settings:
|
|
18736
18729
|
"liga" off,
|
|
18737
18730
|
"clig" off,
|
|
18738
18731
|
"ss04" on;
|
|
18739
|
-
|
|
18740
|
-
}
|
|
18732
|
+
}
|
|
18741
18733
|
|
|
18742
18734
|
.readout-compact .percent-symbol {
|
|
18743
|
-
|
|
18735
|
+
font-family: var(--global-typography-font-family);
|
|
18736
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
18737
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
18738
|
+
font-feature-settings:
|
|
18739
|
+
"liga" off,
|
|
18740
|
+
"clig" off,
|
|
18741
|
+
"ss04" on;
|
|
18742
|
+
margin-left: 1px;
|
|
18743
|
+
}
|
|
18744
|
+
|
|
18745
|
+
/* Static readout: max-value + unit (no percent, no trend icon). Tighter
|
|
18746
|
+
* 2px gap and small-neutral value sizing per design spec. Color is
|
|
18747
|
+
* inherited from \`.readout-compact\`. */
|
|
18748
|
+
|
|
18749
|
+
.readout-static {
|
|
18750
|
+
gap: 2px;
|
|
18744
18751
|
}
|
|
18745
18752
|
|
|
18753
|
+
.readout-static slot[name="max-value"] {
|
|
18754
|
+
font-family: var(--global-typography-font-family);
|
|
18755
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
18756
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
18757
|
+
font-feature-settings:
|
|
18758
|
+
"liga" off,
|
|
18759
|
+
"clig" off,
|
|
18760
|
+
"ss04" on;
|
|
18761
|
+
}
|
|
18762
|
+
|
|
18763
|
+
.readout-static slot[name="unit"] {
|
|
18764
|
+
font-family: var(--global-typography-font-family);
|
|
18765
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
18766
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
18767
|
+
font-feature-settings:
|
|
18768
|
+
"liga" off,
|
|
18769
|
+
"clig" off,
|
|
18770
|
+
"ss04" on;
|
|
18771
|
+
}
|
|
18772
|
+
|
|
18746
18773
|
.header {
|
|
18747
18774
|
display: flex;
|
|
18748
18775
|
align-items: center;
|
|
18749
18776
|
justify-content: flex-end;
|
|
18750
18777
|
gap: 4px;
|
|
18751
|
-
/* TODO: we will need such divider in the future for the 'rich' option */
|
|
18752
|
-
/* border-bottom: 1px solid var(--border-outline-color); */
|
|
18753
|
-
padding-bottom: 2px;
|
|
18754
18778
|
}
|
|
18755
18779
|
|
|
18756
18780
|
.header .percent {
|
|
@@ -18764,18 +18788,26 @@ const compentStyle$16 = i$7`
|
|
|
18764
18788
|
"liga" off,
|
|
18765
18789
|
"clig" off,
|
|
18766
18790
|
"ss04" on;
|
|
18791
|
+
color: var(--element-neutral-color);
|
|
18792
|
+
padding-bottom: var(
|
|
18793
|
+
--global-typography-instrument-value-large-padding-bottom
|
|
18794
|
+
);
|
|
18767
18795
|
/* Keep the number and the trailing \`%\` symbol on one line. */
|
|
18768
18796
|
white-space: nowrap;
|
|
18769
18797
|
}
|
|
18770
18798
|
|
|
18771
18799
|
.header .percent-symbol {
|
|
18772
|
-
font-family: var(--font-family
|
|
18773
|
-
font-size: var(--global-typography-
|
|
18774
|
-
line-height: var(--global-typography-
|
|
18800
|
+
font-family: var(--global-typography-font-family);
|
|
18801
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
18802
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
18775
18803
|
font-feature-settings:
|
|
18776
18804
|
"liga" off,
|
|
18777
18805
|
"clig" off,
|
|
18778
18806
|
"ss04" on;
|
|
18807
|
+
/* \`inline-block\` so \`padding-bottom\` actually applies (ignored on
|
|
18808
|
+
* plain inline text). */
|
|
18809
|
+
display: inline-block;
|
|
18810
|
+
padding-bottom: var(--global-typography-instrument-unit-padding-bottom);
|
|
18779
18811
|
}
|
|
18780
18812
|
|
|
18781
18813
|
.value {
|
|
@@ -18808,11 +18840,15 @@ const compentStyle$16 = i$7`
|
|
|
18808
18840
|
"liga" off,
|
|
18809
18841
|
"clig" off,
|
|
18810
18842
|
"ss04" on;
|
|
18843
|
+
padding-bottom: var(
|
|
18844
|
+
--global-typography-instrument-value-regular-padding-bottom
|
|
18845
|
+
);
|
|
18811
18846
|
}
|
|
18812
18847
|
|
|
18813
18848
|
.value .divider {
|
|
18814
18849
|
padding-left: 4px;
|
|
18815
18850
|
padding-right: 4px;
|
|
18851
|
+
padding-bottom: var(--global-typography-instrument-unit-padding-bottom);
|
|
18816
18852
|
}
|
|
18817
18853
|
|
|
18818
18854
|
.value .max-value {
|
|
@@ -18823,8 +18859,110 @@ const compentStyle$16 = i$7`
|
|
|
18823
18859
|
"liga" off,
|
|
18824
18860
|
"clig" off,
|
|
18825
18861
|
"ss04" on;
|
|
18862
|
+
padding-bottom: var(
|
|
18863
|
+
--global-typography-instrument-value-regular-padding-bottom
|
|
18864
|
+
);
|
|
18826
18865
|
}
|
|
18827
18866
|
|
|
18867
|
+
.value .unit {
|
|
18868
|
+
padding-bottom: var(--global-typography-instrument-unit-padding-bottom);
|
|
18869
|
+
}
|
|
18870
|
+
|
|
18871
|
+
.rich-divider {
|
|
18872
|
+
border-top: 1px solid var(--border-divider-color);
|
|
18873
|
+
margin-top: 8px;
|
|
18874
|
+
}
|
|
18875
|
+
|
|
18876
|
+
.rich {
|
|
18877
|
+
display: grid;
|
|
18878
|
+
/* label takes remaining space; value (right-aligned) and suffix
|
|
18879
|
+
* (left-aligned) form fixed content columns so digit right edges and
|
|
18880
|
+
* suffix left edges align vertically across all rows. */
|
|
18881
|
+
grid-template-columns: 1fr auto auto;
|
|
18882
|
+
align-items: baseline;
|
|
18883
|
+
row-gap: 4px;
|
|
18884
|
+
padding-top: 8px;
|
|
18885
|
+
white-space: nowrap;
|
|
18886
|
+
font-family: var(--global-typography-font-family);
|
|
18887
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
18888
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
18889
|
+
font-feature-settings:
|
|
18890
|
+
"liga" off,
|
|
18891
|
+
"clig" off,
|
|
18892
|
+
"ss04" on;
|
|
18893
|
+
}
|
|
18894
|
+
|
|
18895
|
+
.rich-row {
|
|
18896
|
+
display: grid;
|
|
18897
|
+
grid-template-columns: subgrid;
|
|
18898
|
+
grid-column: 1 / -1;
|
|
18899
|
+
align-items: baseline;
|
|
18900
|
+
padding-left: var(
|
|
18901
|
+
--instrument-components-readout-new-list-item-regular-container-padding-horizontal
|
|
18902
|
+
);
|
|
18903
|
+
padding-right: var(
|
|
18904
|
+
--instrument-components-readout-new-list-item-regular-container-padding-horizontal
|
|
18905
|
+
);
|
|
18906
|
+
}
|
|
18907
|
+
|
|
18908
|
+
.rich-label {
|
|
18909
|
+
font-family: var(--global-typography-font-family);
|
|
18910
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
18911
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
18912
|
+
font-feature-settings:
|
|
18913
|
+
"liga" off,
|
|
18914
|
+
"clig" off,
|
|
18915
|
+
"ss04" on;
|
|
18916
|
+
color: var(--element-inactive-color);
|
|
18917
|
+
padding-right: 8px;
|
|
18918
|
+
text-align: left;
|
|
18919
|
+
}
|
|
18920
|
+
|
|
18921
|
+
.rich-value {
|
|
18922
|
+
font-family: var(--global-typography-font-family);
|
|
18923
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
18924
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
18925
|
+
font-feature-settings:
|
|
18926
|
+
"liga" off,
|
|
18927
|
+
"clig" off,
|
|
18928
|
+
"ss04" on;
|
|
18929
|
+
color: var(--element-neutral-color);
|
|
18930
|
+
font-variant-numeric: tabular-nums;
|
|
18931
|
+
text-align: right;
|
|
18932
|
+
}
|
|
18933
|
+
|
|
18934
|
+
.rich-suffix {
|
|
18935
|
+
display: inline-flex;
|
|
18936
|
+
align-items: baseline;
|
|
18937
|
+
/* Default 2px gap between value and unit when there is no degree/percent
|
|
18938
|
+
* glyph. When a glyph is present it sits flush against the value and the
|
|
18939
|
+
* unit follows flush after the glyph (see \`.rich-glyph + .rich-unit\`). */
|
|
18940
|
+
padding-left: 2px;
|
|
18941
|
+
}
|
|
18942
|
+
|
|
18943
|
+
.rich-suffix:has(.rich-glyph) {
|
|
18944
|
+
padding-left: 0;
|
|
18945
|
+
}
|
|
18946
|
+
|
|
18947
|
+
.rich-glyph {
|
|
18948
|
+
font-family: var(--global-typography-font-family);
|
|
18949
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
18950
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
18951
|
+
font-feature-settings:
|
|
18952
|
+
"liga" off,
|
|
18953
|
+
"clig" off,
|
|
18954
|
+
"ss04" on;
|
|
18955
|
+
color: var(--element-neutral-color);
|
|
18956
|
+
}
|
|
18957
|
+
|
|
18958
|
+
.rich-unit {
|
|
18959
|
+
color: var(--element-inactive-color);
|
|
18960
|
+
}
|
|
18961
|
+
|
|
18962
|
+
.rich-glyph + .rich-unit {
|
|
18963
|
+
padding-left: 0;
|
|
18964
|
+
}
|
|
18965
|
+
|
|
18828
18966
|
/* The chart cell is a plain sizing/clipping box. Both child renderers —
|
|
18829
18967
|
* \`obc-gauge-trend\` (graph / graph-and-bar modes) and \`obc-bar-vertical\`
|
|
18830
18968
|
* (bar mode) — paint their own background, border and border-radius. */
|
|
@@ -36624,6 +36762,7 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
36624
36762
|
this.showAlertIcon = false;
|
|
36625
36763
|
this.showTrendSymbol = true;
|
|
36626
36764
|
this.percentFractionDigits = 0;
|
|
36765
|
+
this.readout = [];
|
|
36627
36766
|
this.badgeControl = AutomationButtonBadgeControl.None;
|
|
36628
36767
|
this.badgeAlert = AutomationButtonBadgeAlert.None;
|
|
36629
36768
|
this.badgeInterlock = AutomationButtonBadgeInterlock.None;
|
|
@@ -36972,6 +37111,30 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
36972
37111
|
<slot class="unit" name="unit">m<sup>3</sup></slot>
|
|
36973
37112
|
</div>
|
|
36974
37113
|
</div>
|
|
37114
|
+
<slot name="rich">
|
|
37115
|
+
${this.readout.length > 0 ? b`
|
|
37116
|
+
<div class="rich-divider"></div>
|
|
37117
|
+
<div class="rich">
|
|
37118
|
+
${this.readout.map(
|
|
37119
|
+
(row) => b`
|
|
37120
|
+
<div class="rich-row">
|
|
37121
|
+
<span class="rich-label">${row.label}</span>
|
|
37122
|
+
<span class="rich-value"
|
|
37123
|
+
>${row.value.toFixed(
|
|
37124
|
+
this.percentFractionDigits
|
|
37125
|
+
)}</span
|
|
37126
|
+
>
|
|
37127
|
+
<span class="rich-suffix"
|
|
37128
|
+
>${row.hasDegree ? b`<span class="rich-glyph">°</span>` : A}${row.hasPercentage ? b`<span class="rich-glyph">%</span>` : A}<span class="rich-unit"
|
|
37129
|
+
>${row.unit}</span
|
|
37130
|
+
></span
|
|
37131
|
+
>
|
|
37132
|
+
</div>
|
|
37133
|
+
`
|
|
37134
|
+
)}
|
|
37135
|
+
</div>
|
|
37136
|
+
` : A}
|
|
37137
|
+
</slot>
|
|
36975
37138
|
</slot>
|
|
36976
37139
|
</div>
|
|
36977
37140
|
`;
|
|
@@ -37194,6 +37357,9 @@ __decorateClass$xq([
|
|
|
37194
37357
|
__decorateClass$xq([
|
|
37195
37358
|
n$3({ type: Number })
|
|
37196
37359
|
], ObcAutomationTank.prototype, "percentFractionDigits", 2);
|
|
37360
|
+
__decorateClass$xq([
|
|
37361
|
+
n$3({ type: Array, attribute: false })
|
|
37362
|
+
], ObcAutomationTank.prototype, "readout", 2);
|
|
37197
37363
|
__decorateClass$xq([
|
|
37198
37364
|
n$3({ type: String })
|
|
37199
37365
|
], ObcAutomationTank.prototype, "badgeControl", 2);
|
|
@@ -54907,18 +55073,10 @@ const compentStyle$$ = i$7`
|
|
|
54907
55073
|
gap: var(--app-components-message-menu-item-label-spacing);
|
|
54908
55074
|
|
|
54909
55075
|
color: var(--element-neutral-color);
|
|
55076
|
+
white-space: nowrap;
|
|
55077
|
+
text-wrap: nowrap;
|
|
54910
55078
|
}
|
|
54911
55079
|
|
|
54912
|
-
:is(.wrapper .date-container) .day,:is(.wrapper .date-container) .time {
|
|
54913
|
-
font-family: var(--font-family-main);
|
|
54914
|
-
font-size: var(--global-typography-ui-label-font-size);
|
|
54915
|
-
line-height: var(--global-typography-ui-label-line-height);
|
|
54916
|
-
font-feature-settings:
|
|
54917
|
-
"liga" off,
|
|
54918
|
-
"clig" off,
|
|
54919
|
-
"ss04" on;
|
|
54920
|
-
}
|
|
54921
|
-
|
|
54922
55080
|
.wrapper .chevron {
|
|
54923
55081
|
grid-area: chevron;
|
|
54924
55082
|
width: var(--app-components-message-menu-item-icon-size-regular);
|