@oicl/openbridge-webcomponents 2.0.0-next.96 → 2.0.0-next.98
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 +39 -124
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +343 -142
- package/dist/ar/poi/poi.d.ts +4 -2
- package/dist/ar/poi/poi.d.ts.map +1 -1
- package/dist/ar/poi/poi.js.map +1 -1
- package/dist/ar/poi-layer/poi-layer.d.ts +1 -0
- package/dist/ar/poi-layer/poi-layer.d.ts.map +1 -1
- package/dist/ar/poi-layer/poi-layer.js.map +1 -1
- package/dist/ar/poi-object/poi-object-aton.d.ts +1 -0
- package/dist/ar/poi-object/poi-object-aton.d.ts.map +1 -1
- package/dist/ar/poi-object/poi-object-aton.js.map +1 -1
- package/dist/automation/automation-badge/automation-badge.d.ts +2 -0
- package/dist/automation/automation-badge/automation-badge.d.ts.map +1 -1
- package/dist/automation/automation-badge/automation-badge.js.map +1 -1
- package/dist/automation/automation-button/automation-button.d.ts +9 -0
- package/dist/automation/automation-button/automation-button.d.ts.map +1 -1
- package/dist/automation/automation-button/automation-button.js.map +1 -1
- package/dist/automation/automation-input-modal/automation-input-modal.d.ts +4 -0
- package/dist/automation/automation-input-modal/automation-input-modal.d.ts.map +1 -1
- package/dist/automation/automation-input-modal/automation-input-modal.js.map +1 -1
- 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/building-blocks/alert-list/alert-list.d.ts +4 -0
- package/dist/building-blocks/alert-list/alert-list.d.ts.map +1 -1
- package/dist/building-blocks/alert-list/alert-list.js.map +1 -1
- package/dist/building-blocks/bar-horizontal/bar-horizontal.d.ts +2 -0
- package/dist/building-blocks/bar-horizontal/bar-horizontal.d.ts.map +1 -1
- package/dist/building-blocks/bar-horizontal/bar-horizontal.js.map +1 -1
- package/dist/building-blocks/bar-vertical/bar-vertical.d.ts +2 -0
- package/dist/building-blocks/bar-vertical/bar-vertical.d.ts.map +1 -1
- package/dist/building-blocks/bar-vertical/bar-vertical.js.map +1 -1
- package/dist/components/advice-floating-item/advice-floating-item.d.ts +2 -4
- package/dist/components/advice-floating-item/advice-floating-item.d.ts.map +1 -1
- package/dist/components/advice-floating-item/advice-floating-item.js.map +1 -1
- package/dist/components/advice-message-item/advice-message-item.d.ts +6 -19
- package/dist/components/advice-message-item/advice-message-item.d.ts.map +1 -1
- package/dist/components/advice-message-item/advice-message-item.js.map +1 -1
- package/dist/components/alert-floating-item/alert-floating-item.d.ts +12 -0
- package/dist/components/alert-floating-item/alert-floating-item.d.ts.map +1 -1
- package/dist/components/alert-floating-item/alert-floating-item.js.map +1 -1
- package/dist/components/alert-menu/alert-menu.d.ts +6 -20
- package/dist/components/alert-menu/alert-menu.d.ts.map +1 -1
- package/dist/components/alert-menu/alert-menu.js.map +1 -1
- package/dist/components/alert-menu-item/alert-menu-item.d.ts +4 -0
- package/dist/components/alert-menu-item/alert-menu-item.d.ts.map +1 -1
- package/dist/components/alert-menu-item/alert-menu-item.js.map +1 -1
- package/dist/components/chat-message/chat-message.d.ts +3 -0
- package/dist/components/chat-message/chat-message.d.ts.map +1 -1
- package/dist/components/chat-message/chat-message.js.map +1 -1
- package/dist/components/elevated-card-radio/elevated-card-radio.d.ts +2 -6
- package/dist/components/elevated-card-radio/elevated-card-radio.d.ts.map +1 -1
- package/dist/components/elevated-card-radio/elevated-card-radio.js.map +1 -1
- package/dist/components/keyboard-numeric/keyboard-numeric.d.ts +6 -0
- package/dist/components/keyboard-numeric/keyboard-numeric.d.ts.map +1 -1
- package/dist/components/keyboard-numeric/keyboard-numeric.js.map +1 -1
- package/dist/components/notification-floating-item/notification-floating-item.d.ts +2 -4
- package/dist/components/notification-floating-item/notification-floating-item.d.ts.map +1 -1
- package/dist/components/notification-floating-item/notification-floating-item.js.map +1 -1
- package/dist/components/sequence-card/sequence-card.d.ts +9 -0
- package/dist/components/sequence-card/sequence-card.d.ts.map +1 -1
- package/dist/components/sequence-card/sequence-card.js.map +1 -1
- package/dist/components/sequence-item/sequence-item.d.ts +5 -0
- package/dist/components/sequence-item/sequence-item.d.ts.map +1 -1
- package/dist/components/sequence-item/sequence-item.js.map +1 -1
- package/dist/components/sequence-modal/sequence-modal.d.ts +4 -0
- package/dist/components/sequence-modal/sequence-modal.d.ts.map +1 -1
- package/dist/components/sequence-modal/sequence-modal.js.map +1 -1
- package/dist/components/sequence-step/sequence-step.d.ts.map +1 -1
- package/dist/components/sequence-step/sequence-step.js.map +1 -1
- package/dist/components/slider-double/slider-double.d.ts +4 -8
- package/dist/components/slider-double/slider-double.d.ts.map +1 -1
- package/dist/components/slider-double/slider-double.js.map +1 -1
- package/dist/components/status-indicator/status-indicator.d.ts +1 -0
- package/dist/components/status-indicator/status-indicator.d.ts.map +1 -1
- package/dist/components/status-indicator/status-indicator.js.map +1 -1
- package/dist/components/system-menu/system-menu.d.ts +2 -0
- package/dist/components/system-menu/system-menu.d.ts.map +1 -1
- package/dist/components/system-menu/system-menu.js.map +1 -1
- package/dist/components/table-header-item/table-header-item.d.ts +2 -0
- package/dist/components/table-header-item/table-header-item.d.ts.map +1 -1
- package/dist/components/table-header-item/table-header-item.js.map +1 -1
- package/dist/components/tag/tag.d.ts +1 -0
- package/dist/components/tag/tag.d.ts.map +1 -1
- package/dist/components/tag/tag.js.map +1 -1
- package/dist/components/toggletip/toggletip.d.ts +4 -4
- package/dist/components/toggletip/toggletip.js.map +1 -1
- package/dist/components/user-menu/user-menu.d.ts +1 -0
- package/dist/components/user-menu/user-menu.d.ts.map +1 -1
- package/dist/components/user-menu/user-menu.js.map +1 -1
- package/dist/integration-systems/integration-app-bar/integration-app-bar.d.ts +1 -0
- package/dist/integration-systems/integration-app-bar/integration-app-bar.d.ts.map +1 -1
- package/dist/integration-systems/integration-app-bar/integration-app-bar.js.map +1 -1
- package/dist/integration-systems/integration-bar/integration-bar.d.ts +0 -1
- package/dist/integration-systems/integration-bar/integration-bar.d.ts.map +1 -1
- package/dist/integration-systems/integration-bar/integration-bar.js.map +1 -1
- package/dist/integration-systems/integration-bar-dropdown/integration-bar-dropdown.d.ts +9 -9
- package/dist/integration-systems/integration-bar-dropdown/integration-bar-dropdown.js.map +1 -1
- package/dist/integration-systems/integration-fleet-button/integration-fleet-button.d.ts +1 -0
- package/dist/integration-systems/integration-fleet-button/integration-fleet-button.d.ts.map +1 -1
- package/dist/integration-systems/integration-fleet-button/integration-fleet-button.js.map +1 -1
- package/dist/integration-systems/integration-tabs/integration-tabs.d.ts +1 -0
- package/dist/integration-systems/integration-tabs/integration-tabs.d.ts.map +1 -1
- package/dist/integration-systems/integration-tabs/integration-tabs.js.map +1 -1
- package/dist/navigation-instruments/compass-sector/compass-sector.d.ts +0 -1
- package/dist/navigation-instruments/compass-sector/compass-sector.d.ts.map +1 -1
- package/dist/navigation-instruments/compass-sector/compass-sector.js.map +1 -1
- package/dist/navigation-instruments/watch/tickmark.d.ts.map +1 -1
- package/dist/navigation-instruments/watch/tickmark.js +17 -7
- package/dist/navigation-instruments/watch/tickmark.js.map +1 -1
- package/dist/navigation-instruments/watch/watch.d.ts.map +1 -1
- package/dist/navigation-instruments/watch/watch.js +2 -2
- package/dist/navigation-instruments/watch/watch.js.map +1 -1
- package/dist/navigation-instruments/wind-propulsion/wind-propulsion.d.ts +0 -1
- package/dist/navigation-instruments/wind-propulsion/wind-propulsion.d.ts.map +1 -1
- package/dist/navigation-instruments/wind-propulsion/wind-propulsion.js.map +1 -1
- package/dist/pages/alert-detail-page/alert-detail-page.d.ts.map +1 -1
- package/dist/pages/alert-detail-page/alert-detail-page.js.map +1 -1
- package/package.json +3 -2
|
@@ -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
|
-
}
|
|
19669
|
-
|
|
19670
|
-
.rich-suffix {
|
|
19671
|
-
display: inline-flex;
|
|
19672
|
-
align-items: baseline;
|
|
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
|
-
}
|
|
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\`). */
|
|
19693
19617
|
|
|
19694
|
-
|
|
19695
|
-
|
|
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 —
|
|
@@ -33182,13 +33103,11 @@ function tickmark$1(angle, {
|
|
|
33182
33103
|
radiusOffset = 0,
|
|
33183
33104
|
endLabelsMaxMin = false
|
|
33184
33105
|
}) {
|
|
33185
|
-
|
|
33186
|
-
throw new Error("Tick scale is not valid");
|
|
33187
|
-
}
|
|
33106
|
+
const safeScale = Number.isFinite(scale) && scale > 0 ? scale : 1;
|
|
33188
33107
|
const rOff = radiusOffset;
|
|
33189
33108
|
let innerRadius;
|
|
33190
33109
|
let outerRadius;
|
|
33191
|
-
textRadius = textRadius + (3 /
|
|
33110
|
+
textRadius = textRadius + (3 / safeScale + 3) * (inside ? -1 : 1);
|
|
33192
33111
|
const rad = angle * Math.PI / 180;
|
|
33193
33112
|
if (size === "primary") {
|
|
33194
33113
|
innerRadius = 328 / 2 + rOff;
|
|
@@ -33207,7 +33126,13 @@ function tickmark$1(angle, {
|
|
|
33207
33126
|
outerRadius = 336 / 2 + rOff;
|
|
33208
33127
|
} else {
|
|
33209
33128
|
return [
|
|
33210
|
-
textSvg(text ?? "", {
|
|
33129
|
+
textSvg(text ?? "", {
|
|
33130
|
+
angle,
|
|
33131
|
+
inside,
|
|
33132
|
+
scale: safeScale,
|
|
33133
|
+
textRadius,
|
|
33134
|
+
endLabelsMaxMin
|
|
33135
|
+
})
|
|
33211
33136
|
];
|
|
33212
33137
|
}
|
|
33213
33138
|
if (inside) {
|
|
@@ -33229,10 +33154,16 @@ function tickmark$1(angle, {
|
|
|
33229
33154
|
if (rotation === void 0) {
|
|
33230
33155
|
return [
|
|
33231
33156
|
tick,
|
|
33232
|
-
textSvg(text, {
|
|
33157
|
+
textSvg(text, {
|
|
33158
|
+
angle,
|
|
33159
|
+
inside,
|
|
33160
|
+
scale: safeScale,
|
|
33161
|
+
textRadius,
|
|
33162
|
+
endLabelsMaxMin
|
|
33163
|
+
})
|
|
33233
33164
|
];
|
|
33234
33165
|
} else {
|
|
33235
|
-
const newRadius = textRadius + (4 /
|
|
33166
|
+
const newRadius = textRadius + (4 / safeScale + 5) * (inside ? -1 : 1) * maxDigits / 2;
|
|
33236
33167
|
const textX = Math.sin(rad) * newRadius;
|
|
33237
33168
|
const textY = -Math.cos(rad) * newRadius;
|
|
33238
33169
|
return [
|
|
@@ -37645,7 +37576,6 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
37645
37576
|
this.showAlertIcon = false;
|
|
37646
37577
|
this.showTrendSymbol = true;
|
|
37647
37578
|
this.percentFractionDigits = 0;
|
|
37648
|
-
this.readout = [];
|
|
37649
37579
|
this.badgeControl = AutomationButtonBadgeControl.None;
|
|
37650
37580
|
this.badgeAlert = AutomationButtonBadgeAlert.None;
|
|
37651
37581
|
this.badgeInterlock = AutomationButtonBadgeInterlock.None;
|
|
@@ -37654,6 +37584,7 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
37654
37584
|
this._cellHeight = 0;
|
|
37655
37585
|
this._hasBadges = false;
|
|
37656
37586
|
this._hasTagSlot = false;
|
|
37587
|
+
this._hasRichSlot = false;
|
|
37657
37588
|
}
|
|
37658
37589
|
get isCompact() {
|
|
37659
37590
|
return this.compact || this.static;
|
|
@@ -37729,6 +37660,12 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
37729
37660
|
(n3) => n3.nodeType === Node.ELEMENT_NODE || n3.nodeType === Node.TEXT_NODE && !!n3.textContent?.trim()
|
|
37730
37661
|
);
|
|
37731
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
|
+
}
|
|
37732
37669
|
disconnectedCallback() {
|
|
37733
37670
|
super.disconnectedCallback();
|
|
37734
37671
|
this._chartResizeObserver?.disconnect();
|
|
@@ -38004,30 +37941,8 @@ let ObcAutomationTank = class extends i$4 {
|
|
|
38004
37941
|
<slot class="unit" name="unit">m<sup>3</sup></slot>
|
|
38005
37942
|
</div>
|
|
38006
37943
|
</div>
|
|
38007
|
-
<
|
|
38008
|
-
|
|
38009
|
-
<div class="rich-divider"></div>
|
|
38010
|
-
<div class="rich">
|
|
38011
|
-
${this.readout.map(
|
|
38012
|
-
(row) => b`
|
|
38013
|
-
<div class="rich-row">
|
|
38014
|
-
<span class="rich-label">${row.label}</span>
|
|
38015
|
-
<span class="rich-value"
|
|
38016
|
-
>${row.value.toFixed(
|
|
38017
|
-
this.percentFractionDigits
|
|
38018
|
-
)}</span
|
|
38019
|
-
>
|
|
38020
|
-
<span class="rich-suffix"
|
|
38021
|
-
>${row.hasDegree ? b`<span class="rich-glyph">°</span>` : A}${row.hasPercentage ? b`<span class="rich-glyph">%</span>` : A}<span class="rich-unit"
|
|
38022
|
-
>${row.unit}</span
|
|
38023
|
-
></span
|
|
38024
|
-
>
|
|
38025
|
-
</div>
|
|
38026
|
-
`
|
|
38027
|
-
)}
|
|
38028
|
-
</div>
|
|
38029
|
-
` : A}
|
|
38030
|
-
</slot>
|
|
37944
|
+
<div class="rich-divider" ?hidden=${!this._hasRichSlot}></div>
|
|
37945
|
+
<slot name="rich" @slotchange=${this._onRichSlotChange}></slot>
|
|
38031
37946
|
</slot>
|
|
38032
37947
|
</div>
|
|
38033
37948
|
`;
|
|
@@ -38254,9 +38169,6 @@ __decorateClass$z6([
|
|
|
38254
38169
|
__decorateClass$z6([
|
|
38255
38170
|
n$3({ type: Number })
|
|
38256
38171
|
], ObcAutomationTank.prototype, "percentFractionDigits", 2);
|
|
38257
|
-
__decorateClass$z6([
|
|
38258
|
-
n$3({ type: Array, attribute: false })
|
|
38259
|
-
], ObcAutomationTank.prototype, "readout", 2);
|
|
38260
38172
|
__decorateClass$z6([
|
|
38261
38173
|
n$3({ type: String })
|
|
38262
38174
|
], ObcAutomationTank.prototype, "badgeControl", 2);
|
|
@@ -38281,6 +38193,9 @@ __decorateClass$z6([
|
|
|
38281
38193
|
__decorateClass$z6([
|
|
38282
38194
|
r$3()
|
|
38283
38195
|
], ObcAutomationTank.prototype, "_hasTagSlot", 2);
|
|
38196
|
+
__decorateClass$z6([
|
|
38197
|
+
r$3()
|
|
38198
|
+
], ObcAutomationTank.prototype, "_hasRichSlot", 2);
|
|
38284
38199
|
ObcAutomationTank = __decorateClass$z6([
|
|
38285
38200
|
customElement("obc-automation-tank")
|
|
38286
38201
|
], ObcAutomationTank);
|
|
@@ -54367,8 +54282,8 @@ let ObcWatch = class extends i$4 {
|
|
|
54367
54282
|
}
|
|
54368
54283
|
}
|
|
54369
54284
|
const scale = Math.min(clientWidth / width, clientHeight / height);
|
|
54370
|
-
if (scale
|
|
54371
|
-
|
|
54285
|
+
if (!Number.isFinite(scale) || scale <= 0) {
|
|
54286
|
+
return 1;
|
|
54372
54287
|
}
|
|
54373
54288
|
return scale;
|
|
54374
54289
|
}
|