@oicl/openbridge-webcomponents 2.0.0-next.97 → 2.0.0-next.99
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 +34 -125
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +29 -10
- package/dist/automation/automation-tank/automation-tank.css.js +8 -87
- package/dist/automation/automation-tank/automation-tank.css.js.map +1 -1
- package/dist/automation/automation-tank/automation-tank.d.ts +13 -33
- package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js +12 -28
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/navigation-instruments/readout/readout.css.js +11 -9
- package/dist/navigation-instruments/readout/readout.css.js.map +1 -1
- package/dist/navigation-instruments/readout/readout.d.ts.map +1 -1
- package/dist/navigation-instruments/readout/readout.js +3 -1
- package/dist/navigation-instruments/readout/readout.js.map +1 -1
- package/package.json +1 -1
|
@@ -19609,94 +19609,15 @@ const compentStyle$18 = i$7`* {
|
|
|
19609
19609
|
margin-top: 8px;
|
|
19610
19610
|
}
|
|
19611
19611
|
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
|
|
19615
|
-
|
|
19616
|
-
|
|
19617
|
-
grid-template-columns: 1fr auto auto;
|
|
19618
|
-
align-items: baseline;
|
|
19619
|
-
row-gap: 4px;
|
|
19620
|
-
padding-top: 8px;
|
|
19621
|
-
white-space: nowrap;
|
|
19622
|
-
font-family: var(--global-typography-font-family);
|
|
19623
|
-
font-size: var(--global-typography-instrument-unit-font-size);
|
|
19624
|
-
line-height: var(--global-typography-instrument-unit-line-height);
|
|
19625
|
-
font-feature-settings:
|
|
19626
|
-
"liga" off,
|
|
19627
|
-
"clig" off,
|
|
19628
|
-
"ss04" on;
|
|
19629
|
-
}
|
|
19630
|
-
|
|
19631
|
-
.rich-row {
|
|
19632
|
-
display: grid;
|
|
19633
|
-
grid-template-columns: subgrid;
|
|
19634
|
-
grid-column: 1 / -1;
|
|
19635
|
-
align-items: baseline;
|
|
19636
|
-
padding-left: var(
|
|
19637
|
-
--instrument-components-readout-new-list-item-regular-container-padding-horizontal
|
|
19638
|
-
);
|
|
19639
|
-
padding-right: var(
|
|
19640
|
-
--instrument-components-readout-new-list-item-regular-container-padding-horizontal
|
|
19641
|
-
);
|
|
19642
|
-
}
|
|
19643
|
-
|
|
19644
|
-
.rich-label {
|
|
19645
|
-
font-family: var(--global-typography-font-family);
|
|
19646
|
-
font-size: var(--global-typography-instrument-label-font-size);
|
|
19647
|
-
line-height: var(--global-typography-instrument-label-line-height);
|
|
19648
|
-
font-feature-settings:
|
|
19649
|
-
"liga" off,
|
|
19650
|
-
"clig" off,
|
|
19651
|
-
"ss04" on;
|
|
19652
|
-
color: var(--element-inactive-color);
|
|
19653
|
-
padding-right: 8px;
|
|
19654
|
-
text-align: left;
|
|
19655
|
-
}
|
|
19656
|
-
|
|
19657
|
-
.rich-value {
|
|
19658
|
-
font-family: var(--global-typography-font-family);
|
|
19659
|
-
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
19660
|
-
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
19661
|
-
font-feature-settings:
|
|
19662
|
-
"liga" off,
|
|
19663
|
-
"clig" off,
|
|
19664
|
-
"ss04" on;
|
|
19665
|
-
color: var(--element-neutral-color);
|
|
19666
|
-
font-variant-numeric: tabular-nums;
|
|
19667
|
-
text-align: right;
|
|
19668
|
-
}
|
|
19612
|
+
/* Rich detail rows are consumer-slotted into \`slot="rich"\` — canonical usage is
|
|
19613
|
+
* an \`<obc-readout-list>\` of \`<obc-readout-list-item>\` rows, which owns its own
|
|
19614
|
+
* cap-height (textbox) typography and cross-row column alignment. The tank only
|
|
19615
|
+
* spaces the slotted content below the divider; the divider itself is shown only
|
|
19616
|
+
* when the slot is filled (\`?hidden\` bound to \`_hasRichSlot\`). */
|
|
19669
19617
|
|
|
19670
|
-
|
|
19671
|
-
display:
|
|
19672
|
-
|
|
19673
|
-
/* Default 2px gap between value and unit when there is no degree/percent
|
|
19674
|
-
* glyph. When a glyph is present it sits flush against the value and the
|
|
19675
|
-
* unit follows flush after the glyph (see \`.rich-glyph + .rich-unit\`). */
|
|
19676
|
-
padding-left: 2px;
|
|
19677
|
-
}
|
|
19678
|
-
|
|
19679
|
-
.rich-suffix:has(.rich-glyph) {
|
|
19680
|
-
padding-left: 0;
|
|
19681
|
-
}
|
|
19682
|
-
|
|
19683
|
-
.rich-glyph {
|
|
19684
|
-
font-family: var(--global-typography-font-family);
|
|
19685
|
-
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
19686
|
-
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
19687
|
-
font-feature-settings:
|
|
19688
|
-
"liga" off,
|
|
19689
|
-
"clig" off,
|
|
19690
|
-
"ss04" on;
|
|
19691
|
-
color: var(--element-neutral-color);
|
|
19692
|
-
}
|
|
19693
|
-
|
|
19694
|
-
.rich-unit {
|
|
19695
|
-
color: var(--element-inactive-color);
|
|
19696
|
-
}
|
|
19697
|
-
|
|
19698
|
-
.rich-glyph + .rich-unit {
|
|
19699
|
-
padding-left: 0;
|
|
19618
|
+
::slotted(obc-readout-list) {
|
|
19619
|
+
display: block;
|
|
19620
|
+
margin-top: 8px;
|
|
19700
19621
|
}
|
|
19701
19622
|
|
|
19702
19623
|
/* The chart cell is a plain sizing/clipping box. Both child renderers —
|
|
@@ -37655,7 +37576,6 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
37655
37576
|
this.showAlertIcon = false;
|
|
37656
37577
|
this.showTrendSymbol = true;
|
|
37657
37578
|
this.percentFractionDigits = 0;
|
|
37658
|
-
this.readout = [];
|
|
37659
37579
|
this.badgeControl = AutomationButtonBadgeControl.None;
|
|
37660
37580
|
this.badgeAlert = AutomationButtonBadgeAlert.None;
|
|
37661
37581
|
this.badgeInterlock = AutomationButtonBadgeInterlock.None;
|
|
@@ -37664,6 +37584,7 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
37664
37584
|
this._cellHeight = 0;
|
|
37665
37585
|
this._hasBadges = false;
|
|
37666
37586
|
this._hasTagSlot = false;
|
|
37587
|
+
this._hasRichSlot = false;
|
|
37667
37588
|
}
|
|
37668
37589
|
get isCompact() {
|
|
37669
37590
|
return this.compact || this.static;
|
|
@@ -37739,6 +37660,12 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
37739
37660
|
(n3) => n3.nodeType === Node.ELEMENT_NODE || n3.nodeType === Node.TEXT_NODE && !!n3.textContent?.trim()
|
|
37740
37661
|
);
|
|
37741
37662
|
}
|
|
37663
|
+
_onRichSlotChange(e2) {
|
|
37664
|
+
const slot = e2.target;
|
|
37665
|
+
this._hasRichSlot = slot.assignedNodes({ flatten: true }).some(
|
|
37666
|
+
(n3) => n3.nodeType === Node.ELEMENT_NODE || n3.nodeType === Node.TEXT_NODE && !!n3.textContent?.trim()
|
|
37667
|
+
);
|
|
37668
|
+
}
|
|
37742
37669
|
disconnectedCallback() {
|
|
37743
37670
|
super.disconnectedCallback();
|
|
37744
37671
|
this._chartResizeObserver?.disconnect();
|
|
@@ -38014,30 +37941,8 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
38014
37941
|
<slot class="unit" name="unit">m<sup>3</sup></slot>
|
|
38015
37942
|
</div>
|
|
38016
37943
|
</div>
|
|
38017
|
-
<
|
|
38018
|
-
|
|
38019
|
-
<div class="rich-divider"></div>
|
|
38020
|
-
<div class="rich">
|
|
38021
|
-
${this.readout.map(
|
|
38022
|
-
(row) => b`
|
|
38023
|
-
<div class="rich-row">
|
|
38024
|
-
<span class="rich-label">${row.label}</span>
|
|
38025
|
-
<span class="rich-value"
|
|
38026
|
-
>${row.value.toFixed(
|
|
38027
|
-
this.percentFractionDigits
|
|
38028
|
-
)}</span
|
|
38029
|
-
>
|
|
38030
|
-
<span class="rich-suffix"
|
|
38031
|
-
>${row.hasDegree ? b`<span class="rich-glyph">°</span>` : A}${row.hasPercentage ? b`<span class="rich-glyph">%</span>` : A}<span class="rich-unit"
|
|
38032
|
-
>${row.unit}</span
|
|
38033
|
-
></span
|
|
38034
|
-
>
|
|
38035
|
-
</div>
|
|
38036
|
-
`
|
|
38037
|
-
)}
|
|
38038
|
-
</div>
|
|
38039
|
-
` : A}
|
|
38040
|
-
</slot>
|
|
37944
|
+
<div class="rich-divider" ?hidden=${!this._hasRichSlot}></div>
|
|
37945
|
+
<slot name="rich" @slotchange=${this._onRichSlotChange}></slot>
|
|
38041
37946
|
</slot>
|
|
38042
37947
|
</div>
|
|
38043
37948
|
`;
|
|
@@ -38264,9 +38169,6 @@ __decorateClass$z6([
|
|
|
38264
38169
|
__decorateClass$z6([
|
|
38265
38170
|
n$3({ type: Number })
|
|
38266
38171
|
], ObcAutomationTank.prototype, "percentFractionDigits", 2);
|
|
38267
|
-
__decorateClass$z6([
|
|
38268
|
-
n$3({ type: Array, attribute: false })
|
|
38269
|
-
], ObcAutomationTank.prototype, "readout", 2);
|
|
38270
38172
|
__decorateClass$z6([
|
|
38271
38173
|
n$3({ type: String })
|
|
38272
38174
|
], ObcAutomationTank.prototype, "badgeControl", 2);
|
|
@@ -38291,6 +38193,9 @@ __decorateClass$z6([
|
|
|
38291
38193
|
__decorateClass$z6([
|
|
38292
38194
|
r$3()
|
|
38293
38195
|
], ObcAutomationTank.prototype, "_hasTagSlot", 2);
|
|
38196
|
+
__decorateClass$z6([
|
|
38197
|
+
r$3()
|
|
38198
|
+
], ObcAutomationTank.prototype, "_hasRichSlot", 2);
|
|
38294
38199
|
ObcAutomationTank = __decorateClass$z6([
|
|
38295
38200
|
customElement("obc-automation-tank")
|
|
38296
38201
|
], ObcAutomationTank);
|
|
@@ -56399,6 +56304,14 @@ obc-readout-block {
|
|
|
56399
56304
|
align-self: center;
|
|
56400
56305
|
}
|
|
56401
56306
|
|
|
56307
|
+
.label-only:is(.readout.direction-horizontal .meta.meta-stacked) {
|
|
56308
|
+
align-self: flex-start;
|
|
56309
|
+
}
|
|
56310
|
+
|
|
56311
|
+
.unit-only:is(.readout.direction-horizontal .meta.meta-stacked) {
|
|
56312
|
+
align-self: flex-end;
|
|
56313
|
+
}
|
|
56314
|
+
|
|
56402
56315
|
.label {
|
|
56403
56316
|
color: var(--obc-readout-label-color, var(--element-neutral-color));
|
|
56404
56317
|
}
|
|
@@ -56751,9 +56664,7 @@ obc-readout-block {
|
|
|
56751
56664
|
--_readout-trim: var(
|
|
56752
56665
|
--instrument-components-readout-new-group-horizontal-regular-horizontal-trim-padding
|
|
56753
56666
|
);
|
|
56754
|
-
--_readout-value-gap:
|
|
56755
|
-
--instrument-components-readout-new-group-horizontal-regular-horizontal-value-container-gap
|
|
56756
|
-
);
|
|
56667
|
+
--_readout-value-gap: 0;
|
|
56757
56668
|
--_readout-value-pad-v: var(
|
|
56758
56669
|
--instrument-components-readout-new-group-horizontal-regular-value-container-padding-vertical
|
|
56759
56670
|
);
|
|
@@ -56775,9 +56686,7 @@ obc-readout-block {
|
|
|
56775
56686
|
--_readout-trim: var(
|
|
56776
56687
|
--instrument-components-readout-new-group-horizontal-medium-horizontal-trim-padding
|
|
56777
56688
|
);
|
|
56778
|
-
--_readout-value-gap:
|
|
56779
|
-
--instrument-components-readout-new-group-horizontal-medium-horizontal-value-container-gap
|
|
56780
|
-
);
|
|
56689
|
+
--_readout-value-gap: 0;
|
|
56781
56690
|
--_readout-value-pad-v: var(
|
|
56782
56691
|
--instrument-components-readout-new-group-horizontal-medium-value-container-padding-vertical
|
|
56783
56692
|
);
|
|
@@ -56796,9 +56705,7 @@ obc-readout-block {
|
|
|
56796
56705
|
--_readout-trim: var(
|
|
56797
56706
|
--instrument-components-readout-new-group-horizontal-enhanced-horizontal-trim-padding
|
|
56798
56707
|
);
|
|
56799
|
-
--_readout-value-gap:
|
|
56800
|
-
--instrument-components-readout-new-group-horizontal-enhanced-value-container-gap
|
|
56801
|
-
);
|
|
56708
|
+
--_readout-value-gap: 4px;
|
|
56802
56709
|
--_readout-value-pad-v: var(
|
|
56803
56710
|
--instrument-components-readout-new-group-horizontal-enhanced-value-container-padding
|
|
56804
56711
|
);
|
|
@@ -63118,7 +63025,9 @@ let ObcReadout = class extends i$4 {
|
|
|
63118
63025
|
class=${e$1({
|
|
63119
63026
|
meta: true,
|
|
63120
63027
|
"meta-inline": !stacked,
|
|
63121
|
-
"meta-stacked": stacked
|
|
63028
|
+
"meta-stacked": stacked,
|
|
63029
|
+
"label-only": !!this.label && !this.unit,
|
|
63030
|
+
"unit-only": !!this.unit && !this.label
|
|
63122
63031
|
})}
|
|
63123
63032
|
part="meta-wrapper"
|
|
63124
63033
|
>
|