@oicl/openbridge-webcomponents 2.0.0-next.72 → 2.0.0-next.74
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 +89 -22
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +311 -13
- package/dist/automation/automation-button/abstract-automation-button-motorized.d.ts +7 -0
- package/dist/automation/automation-button/abstract-automation-button-motorized.d.ts.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-motorized.js +16 -4
- package/dist/automation/automation-button/abstract-automation-button-motorized.js.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.d.ts +16 -0
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.d.ts.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.js +11 -1
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.js.map +1 -1
- package/dist/components/toggle-button-vertical-group/toggle-button-vertical-group.d.ts +14 -0
- package/dist/components/toggle-button-vertical-group/toggle-button-vertical-group.d.ts.map +1 -1
- package/dist/components/toggle-button-vertical-group/toggle-button-vertical-group.js +25 -5
- package/dist/components/toggle-button-vertical-group/toggle-button-vertical-group.js.map +1 -1
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.css.js +17 -2
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.css.js.map +1 -1
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.d.ts +24 -2
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.d.ts.map +1 -1
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js +32 -11
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js.map +1 -1
- package/package.json +1 -1
|
@@ -18403,17 +18403,20 @@ class ObcAbstractAutomationButtonMotorized extends ObcAbstractAutomationButton {
|
|
|
18403
18403
|
super(...arguments);
|
|
18404
18404
|
this.on = false;
|
|
18405
18405
|
this.speedInPercent = 0;
|
|
18406
|
+
this.speedUnit = "%";
|
|
18407
|
+
this.speedMaxDigits = 3;
|
|
18406
18408
|
this.labelDirection = AutomationButtonLabelDirection.right;
|
|
18407
18409
|
this.variant = "regular";
|
|
18408
18410
|
}
|
|
18409
18411
|
get extraReadouts() {
|
|
18410
|
-
|
|
18412
|
+
const speed = this.speed ?? this.speedInPercent;
|
|
18413
|
+
if (speed !== void 0 && speed !== null && this.on) {
|
|
18411
18414
|
return [
|
|
18412
18415
|
{
|
|
18413
18416
|
type: "value",
|
|
18414
|
-
value:
|
|
18415
|
-
nDigits:
|
|
18416
|
-
unit:
|
|
18417
|
+
value: speed,
|
|
18418
|
+
nDigits: this.speedMaxDigits,
|
|
18419
|
+
unit: this.speedUnit,
|
|
18417
18420
|
direction: this.labelDirection,
|
|
18418
18421
|
icon: "chevron"
|
|
18419
18422
|
}
|
|
@@ -18439,6 +18442,15 @@ __decorateClass$zi([
|
|
|
18439
18442
|
__decorateClass$zi([
|
|
18440
18443
|
n$3({ type: Number })
|
|
18441
18444
|
], ObcAbstractAutomationButtonMotorized.prototype, "speedInPercent");
|
|
18445
|
+
__decorateClass$zi([
|
|
18446
|
+
n$3({ type: Number })
|
|
18447
|
+
], ObcAbstractAutomationButtonMotorized.prototype, "speed");
|
|
18448
|
+
__decorateClass$zi([
|
|
18449
|
+
n$3({ type: String })
|
|
18450
|
+
], ObcAbstractAutomationButtonMotorized.prototype, "speedUnit");
|
|
18451
|
+
__decorateClass$zi([
|
|
18452
|
+
n$3({ type: Number })
|
|
18453
|
+
], ObcAbstractAutomationButtonMotorized.prototype, "speedMaxDigits");
|
|
18442
18454
|
__decorateClass$zi([
|
|
18443
18455
|
n$3({ type: String })
|
|
18444
18456
|
], ObcAbstractAutomationButtonMotorized.prototype, "labelDirection");
|
|
@@ -107320,6 +107332,7 @@ let ObcToggleButtonVerticalGroup = class extends i$4 {
|
|
|
107320
107332
|
this.value = "";
|
|
107321
107333
|
this.type = ObcToggleButtonVerticalOptionType.regular;
|
|
107322
107334
|
this.hugWidth = false;
|
|
107335
|
+
this.allowEmptySelection = false;
|
|
107323
107336
|
this.disabled = false;
|
|
107324
107337
|
this._originalDisabledStates = /* @__PURE__ */ new Map();
|
|
107325
107338
|
}
|
|
@@ -107356,8 +107369,12 @@ let ObcToggleButtonVerticalGroup = class extends i$4 {
|
|
|
107356
107369
|
this.updateDividers();
|
|
107357
107370
|
return;
|
|
107358
107371
|
}
|
|
107359
|
-
|
|
107360
|
-
|
|
107372
|
+
if (this.allowEmptySelection) {
|
|
107373
|
+
newValue = "";
|
|
107374
|
+
} else {
|
|
107375
|
+
const fallback = this.getFirstSelectableOption();
|
|
107376
|
+
newValue = fallback?.value || "";
|
|
107377
|
+
}
|
|
107361
107378
|
}
|
|
107362
107379
|
this.value = newValue;
|
|
107363
107380
|
this.options.forEach((option) => {
|
|
@@ -107400,9 +107417,13 @@ let ObcToggleButtonVerticalGroup = class extends i$4 {
|
|
|
107400
107417
|
}
|
|
107401
107418
|
});
|
|
107402
107419
|
if (!this.value || !this.getOptionByValue(this.value)) {
|
|
107403
|
-
|
|
107404
|
-
|
|
107405
|
-
|
|
107420
|
+
if (this.allowEmptySelection) {
|
|
107421
|
+
this.updateSelection("", false);
|
|
107422
|
+
} else {
|
|
107423
|
+
const firstSelectable = this.getFirstSelectableOption();
|
|
107424
|
+
if (firstSelectable) {
|
|
107425
|
+
this.updateSelection(firstSelectable.value, false);
|
|
107426
|
+
}
|
|
107406
107427
|
}
|
|
107407
107428
|
} else {
|
|
107408
107429
|
this.updateSelection(this.value, false);
|
|
@@ -107411,6 +107432,10 @@ let ObcToggleButtonVerticalGroup = class extends i$4 {
|
|
|
107411
107432
|
handleOptionDisabledChange() {
|
|
107412
107433
|
const currentOption = this.getOptionByValue(this.value);
|
|
107413
107434
|
if (currentOption?.disabled && this.hasAnyEnabledOption()) {
|
|
107435
|
+
if (this.allowEmptySelection) {
|
|
107436
|
+
this.updateSelection("");
|
|
107437
|
+
return;
|
|
107438
|
+
}
|
|
107414
107439
|
const firstSelectable = this.getFirstSelectableOption();
|
|
107415
107440
|
if (firstSelectable) {
|
|
107416
107441
|
this.updateSelection(firstSelectable.value);
|
|
@@ -107443,6 +107468,10 @@ let ObcToggleButtonVerticalGroup = class extends i$4 {
|
|
|
107443
107468
|
super.updated(changedProperties);
|
|
107444
107469
|
const currentOption = this.getOptionByValue(this.value);
|
|
107445
107470
|
if (currentOption?.disabled && this.hasAnyEnabledOption()) {
|
|
107471
|
+
if (this.allowEmptySelection) {
|
|
107472
|
+
this.updateSelection("");
|
|
107473
|
+
return;
|
|
107474
|
+
}
|
|
107446
107475
|
const firstSelectable = this.getFirstSelectableOption();
|
|
107447
107476
|
if (firstSelectable) {
|
|
107448
107477
|
this.updateSelection(firstSelectable.value);
|
|
@@ -107485,6 +107514,9 @@ __decorateClass$sS([
|
|
|
107485
107514
|
__decorateClass$sS([
|
|
107486
107515
|
n$3({ type: Boolean })
|
|
107487
107516
|
], ObcToggleButtonVerticalGroup.prototype, "hugWidth", 2);
|
|
107517
|
+
__decorateClass$sS([
|
|
107518
|
+
n$3({ type: Boolean })
|
|
107519
|
+
], ObcToggleButtonVerticalGroup.prototype, "allowEmptySelection", 2);
|
|
107488
107520
|
__decorateClass$sS([
|
|
107489
107521
|
n$3({ type: Boolean, reflect: true })
|
|
107490
107522
|
], ObcToggleButtonVerticalGroup.prototype, "disabled", 2);
|
|
@@ -206944,6 +206976,10 @@ const componentStyle$h = i$7`
|
|
|
206944
206976
|
box-sizing: border-box;
|
|
206945
206977
|
}
|
|
206946
206978
|
|
|
206979
|
+
:host {
|
|
206980
|
+
display: block;
|
|
206981
|
+
}
|
|
206982
|
+
|
|
206947
206983
|
.wrapper {
|
|
206948
206984
|
border-color: var(--integration-normal-enabled-border-color);
|
|
206949
206985
|
background-color: var(--integration-normal-enabled-background-color);
|
|
@@ -206954,6 +206990,7 @@ const componentStyle$h = i$7`
|
|
|
206954
206990
|
display: flex;
|
|
206955
206991
|
flex-direction: column;
|
|
206956
206992
|
align-items: center;
|
|
206993
|
+
height: 100%;
|
|
206957
206994
|
background: var(--container-global-color);
|
|
206958
206995
|
border-radius: var(
|
|
206959
206996
|
--app-components-integration-system-dropdown-menu-border-radius
|
|
@@ -206980,6 +207017,10 @@ const componentStyle$h = i$7`
|
|
|
206980
207017
|
border-radius: 12px;
|
|
206981
207018
|
}
|
|
206982
207019
|
|
|
207020
|
+
.footer-container.hidden {
|
|
207021
|
+
display: none;
|
|
207022
|
+
}
|
|
207023
|
+
|
|
206983
207024
|
.content-area {
|
|
206984
207025
|
display: flex;
|
|
206985
207026
|
flex-direction: column;
|
|
@@ -206989,6 +207030,10 @@ const componentStyle$h = i$7`
|
|
|
206989
207030
|
border-radius: 8px;
|
|
206990
207031
|
}
|
|
206991
207032
|
|
|
207033
|
+
.content-area.hidden {
|
|
207034
|
+
display: none;
|
|
207035
|
+
}
|
|
207036
|
+
|
|
206992
207037
|
.footer-container slot[name="buttons"]::slotted(*) {
|
|
206993
207038
|
display: flex;
|
|
206994
207039
|
flex: 1 1 0px;
|
|
@@ -207003,7 +207048,8 @@ const componentStyle$h = i$7`
|
|
|
207003
207048
|
gap: var(--app-components-integration-system-menu-action-spacing);
|
|
207004
207049
|
}
|
|
207005
207050
|
|
|
207006
|
-
.buttons-slot
|
|
207051
|
+
.buttons-slot,
|
|
207052
|
+
.content-slot {
|
|
207007
207053
|
display: contents;
|
|
207008
207054
|
}
|
|
207009
207055
|
|
|
@@ -207017,12 +207063,13 @@ const componentStyle$h = i$7`
|
|
|
207017
207063
|
border-radius: 8px;
|
|
207018
207064
|
}
|
|
207019
207065
|
|
|
207020
|
-
.content-container.
|
|
207066
|
+
.content-container.hidden {
|
|
207021
207067
|
display: none;
|
|
207022
207068
|
}
|
|
207023
207069
|
|
|
207024
207070
|
.alertlist {
|
|
207025
207071
|
width: 100%;
|
|
207072
|
+
height: 100%;
|
|
207026
207073
|
}
|
|
207027
207074
|
|
|
207028
207075
|
.leading-icon {
|
|
@@ -207046,29 +207093,43 @@ var __decorateClass$O = (decorators, target, key, kind) => {
|
|
|
207046
207093
|
let ObcIntegrationVesselMenu = class extends i$4 {
|
|
207047
207094
|
constructor() {
|
|
207048
207095
|
super(...arguments);
|
|
207049
|
-
this.
|
|
207096
|
+
this.hasActions = true;
|
|
207097
|
+
this.hasAlertList = true;
|
|
207098
|
+
this.hasContent = true;
|
|
207050
207099
|
}
|
|
207051
207100
|
render() {
|
|
207052
207101
|
return b`
|
|
207053
|
-
<div
|
|
207054
|
-
|
|
207055
|
-
|
|
207102
|
+
<div class="wrapper">
|
|
207103
|
+
<div
|
|
207104
|
+
class=${e$1({
|
|
207105
|
+
"footer-container": true,
|
|
207106
|
+
hidden: !this.hasActions
|
|
207056
207107
|
})}
|
|
207057
|
-
|
|
207058
|
-
<div class="footer-container">
|
|
207108
|
+
>
|
|
207059
207109
|
<slot name="buttons" class="buttons-slot"></slot>
|
|
207060
207110
|
</div>
|
|
207061
|
-
<div
|
|
207062
|
-
|
|
207111
|
+
<div
|
|
207112
|
+
class=${e$1({
|
|
207113
|
+
"content-area": true,
|
|
207114
|
+
hidden: !this.hasContent
|
|
207115
|
+
})}
|
|
207116
|
+
>
|
|
207117
|
+
<slot name="content" class="content-slot"></slot>
|
|
207063
207118
|
</div>
|
|
207064
207119
|
<div
|
|
207065
207120
|
class=${e$1({
|
|
207066
207121
|
"content-container": true,
|
|
207067
|
-
|
|
207122
|
+
hidden: !this.hasAlertList
|
|
207068
207123
|
})}
|
|
207069
207124
|
>
|
|
207070
207125
|
<obc-alert-list class="alertlist"
|
|
207071
207126
|
><slot name="alarms"></slot>
|
|
207127
|
+
<div slot="empty-icon">
|
|
207128
|
+
<obi-unacknowledged></obi-unacknowledged>
|
|
207129
|
+
</div>
|
|
207130
|
+
<div slot="empty-title">
|
|
207131
|
+
<span>No alerts</span>
|
|
207132
|
+
</div>
|
|
207072
207133
|
</obc-alert-list>
|
|
207073
207134
|
</div>
|
|
207074
207135
|
</div>
|
|
@@ -207077,8 +207138,14 @@ let ObcIntegrationVesselMenu = class extends i$4 {
|
|
|
207077
207138
|
};
|
|
207078
207139
|
ObcIntegrationVesselMenu.styles = r$7(componentStyle$h);
|
|
207079
207140
|
__decorateClass$O([
|
|
207080
|
-
n$3({ type: Boolean })
|
|
207081
|
-
], ObcIntegrationVesselMenu.prototype, "
|
|
207141
|
+
n$3({ type: Boolean, attribute: false })
|
|
207142
|
+
], ObcIntegrationVesselMenu.prototype, "hasActions", 2);
|
|
207143
|
+
__decorateClass$O([
|
|
207144
|
+
n$3({ type: Boolean, attribute: false })
|
|
207145
|
+
], ObcIntegrationVesselMenu.prototype, "hasAlertList", 2);
|
|
207146
|
+
__decorateClass$O([
|
|
207147
|
+
n$3({ type: Boolean, attribute: false })
|
|
207148
|
+
], ObcIntegrationVesselMenu.prototype, "hasContent", 2);
|
|
207082
207149
|
ObcIntegrationVesselMenu = __decorateClass$O([
|
|
207083
207150
|
customElement("obc-integration-vessel-menu")
|
|
207084
207151
|
], ObcIntegrationVesselMenu);
|