@oicl/openbridge-webcomponents 2.0.0-next.148 → 2.0.0-next.149
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 +119 -42
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +269 -8
- package/dist/components/icon-button/icon-button.d.ts +3 -0
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +6 -0
- package/dist/components/icon-button/icon-button.js.map +1 -1
- package/dist/components/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/top-bar/top-bar.js +8 -0
- package/dist/components/top-bar/top-bar.js.map +1 -1
- package/dist/generated/locales/es-419.d.ts +11 -1
- package/dist/generated/locales/es-419.d.ts.map +1 -1
- package/dist/generated/locales/es-419.js +11 -1
- package/dist/generated/locales/es-419.js.map +1 -1
- package/dist/generated/locales/fi-FI.d.ts +11 -1
- package/dist/generated/locales/fi-FI.d.ts.map +1 -1
- package/dist/generated/locales/fi-FI.js +11 -1
- package/dist/generated/locales/fi-FI.js.map +1 -1
- package/dist/integration-systems/integration-bar/integration-bar.d.ts +8 -8
- package/dist/integration-systems/integration-bar/integration-bar.d.ts.map +1 -1
- package/dist/integration-systems/integration-bar/integration-bar.js +13 -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 +112 -7
- package/dist/integration-systems/integration-bar-dropdown/integration-bar-dropdown.d.ts.map +1 -1
- package/dist/integration-systems/integration-bar-dropdown/integration-bar-dropdown.js +99 -41
- package/dist/integration-systems/integration-bar-dropdown/integration-bar-dropdown.js.map +1 -1
- package/package.json +1 -1
|
@@ -7755,6 +7755,7 @@ let ObcIconButton = class extends i$4 {
|
|
|
7755
7755
|
this.progress = void 0;
|
|
7756
7756
|
this.hasLabel = false;
|
|
7757
7757
|
this.showDivider = true;
|
|
7758
|
+
this.ariaLabel = null;
|
|
7758
7759
|
}
|
|
7759
7760
|
get progressSpinner() {
|
|
7760
7761
|
if (this.progress === void 0) {
|
|
@@ -7825,6 +7826,7 @@ let ObcIconButton = class extends i$4 {
|
|
|
7825
7826
|
"hide-divider": !this.showDivider
|
|
7826
7827
|
})}
|
|
7827
7828
|
?disabled=${this.disabled}
|
|
7829
|
+
aria-label=${o$4(this.ariaLabel ?? void 0)}
|
|
7828
7830
|
part="wrapper"
|
|
7829
7831
|
>
|
|
7830
7832
|
${this.progress !== void 0 ? this.progressSpinner : A}
|
|
@@ -7871,6 +7873,9 @@ __decorateClass$B3([
|
|
|
7871
7873
|
__decorateClass$B3([
|
|
7872
7874
|
n$3({ type: Boolean, attribute: false })
|
|
7873
7875
|
], ObcIconButton.prototype, "showDivider", 2);
|
|
7876
|
+
__decorateClass$B3([
|
|
7877
|
+
n$3({ type: String, attribute: "aria-label" })
|
|
7878
|
+
], ObcIconButton.prototype, "ariaLabel", 2);
|
|
7874
7879
|
ObcIconButton = __decorateClass$B3([
|
|
7875
7880
|
customElement("obc-icon-button")
|
|
7876
7881
|
], ObcIconButton);
|
|
@@ -121932,6 +121937,7 @@ let ObcTopBar = class extends i$4 {
|
|
|
121932
121937
|
b`<div class="menu-button">
|
|
121933
121938
|
<obc-icon-button
|
|
121934
121939
|
variant="flat"
|
|
121940
|
+
aria-label=${msg("Close")}
|
|
121935
121941
|
@pointerdown=${() => this.leftButtonDown(new CustomEvent("close"))}
|
|
121936
121942
|
@pointerup=${() => this.leftButtonUp()}
|
|
121937
121943
|
@pointerleave=${() => this.leftButtonLeave()}
|
|
@@ -121943,6 +121949,7 @@ let ObcTopBar = class extends i$4 {
|
|
|
121943
121949
|
leftGroup.push(
|
|
121944
121950
|
b`<obc-icon-button
|
|
121945
121951
|
variant="flat"
|
|
121952
|
+
aria-label=${msg("Back")}
|
|
121946
121953
|
@click=${() => this.dispatchEvent(new CustomEvent("back"))}
|
|
121947
121954
|
>
|
|
121948
121955
|
<obi-arrow-left-google></obi-arrow-left-google>
|
|
@@ -121965,6 +121972,7 @@ let ObcTopBar = class extends i$4 {
|
|
|
121965
121972
|
b`<div class="menu-button ${this.wideMenuButton ? "wide" : null}">
|
|
121966
121973
|
<obc-icon-button
|
|
121967
121974
|
variant="flat"
|
|
121975
|
+
aria-label=${this.menuButtonIcon === "menu" ? msg("Menu") : msg("Home")}
|
|
121968
121976
|
@pointerdown=${() => this.leftButtonDown(new CustomEvent("menu-button-clicked"))}
|
|
121969
121977
|
@pointerup=${() => this.leftButtonUp()}
|
|
121970
121978
|
@pointerleave=${() => this.leftButtonLeave()}
|
|
@@ -122049,6 +122057,7 @@ let ObcTopBar = class extends i$4 {
|
|
|
122049
122057
|
class="dimming-button"
|
|
122050
122058
|
part="dimming-button"
|
|
122051
122059
|
variant="flat"
|
|
122060
|
+
aria-label=${msg("Dimming")}
|
|
122052
122061
|
@click=${this.dimmingButtonClicked}
|
|
122053
122062
|
?activated=${this.dimmingButtonActivated}
|
|
122054
122063
|
>
|
|
@@ -122058,6 +122067,7 @@ let ObcTopBar = class extends i$4 {
|
|
|
122058
122067
|
class="user-button"
|
|
122059
122068
|
variant="flat"
|
|
122060
122069
|
part="user-button"
|
|
122070
|
+
aria-label=${msg("User")}
|
|
122061
122071
|
@click=${this.userButtonClicked}
|
|
122062
122072
|
?activated=${this.userButtonActivated}
|
|
122063
122073
|
?disabled=${this.userButtonDisabled}
|
|
@@ -122068,6 +122078,7 @@ let ObcTopBar = class extends i$4 {
|
|
|
122068
122078
|
class="apps-button"
|
|
122069
122079
|
variant="flat"
|
|
122070
122080
|
part="apps-button"
|
|
122081
|
+
aria-label=${msg("Apps")}
|
|
122071
122082
|
@click=${this.appsButtonClicked}
|
|
122072
122083
|
?activated=${this.appsButtonActivated}
|
|
122073
122084
|
>
|
|
@@ -122078,6 +122089,7 @@ let ObcTopBar = class extends i$4 {
|
|
|
122078
122089
|
class="left-more-button"
|
|
122079
122090
|
part="left-more-button"
|
|
122080
122091
|
variant="flat"
|
|
122092
|
+
aria-label=${msg("More")}
|
|
122081
122093
|
@click=${this.leftMoreButtonClicked}
|
|
122082
122094
|
?activated=${this.leftMoreButtonActivated}
|
|
122083
122095
|
>
|
|
@@ -217529,11 +217541,17 @@ let ObcIntegrationBarDropdown = class extends i$4 {
|
|
|
217529
217541
|
super(...arguments);
|
|
217530
217542
|
this.showHomeButton = false;
|
|
217531
217543
|
this.homeButtonActivated = false;
|
|
217544
|
+
this.showLinkButton = false;
|
|
217545
|
+
this.linkButtonActivated = false;
|
|
217532
217546
|
this.showClock = false;
|
|
217547
|
+
this.showAlertButton = false;
|
|
217548
|
+
this.alertButtonActivated = false;
|
|
217533
217549
|
this.showNotificationButton = false;
|
|
217534
217550
|
this.notificationButtonActivated = false;
|
|
217535
217551
|
this.notificationCount = 0;
|
|
217536
217552
|
this.showNotificationCount = false;
|
|
217553
|
+
this.showScreenButton = false;
|
|
217554
|
+
this.screenButtonActivated = false;
|
|
217537
217555
|
this.showUserButton = false;
|
|
217538
217556
|
this.userButtonActivated = false;
|
|
217539
217557
|
this.showDimmingButton = false;
|
|
@@ -217560,60 +217578,90 @@ let ObcIntegrationBarDropdown = class extends i$4 {
|
|
|
217560
217578
|
}
|
|
217561
217579
|
return b`<div class="status">${result}</div>`;
|
|
217562
217580
|
}
|
|
217581
|
+
// The event name stays a literal at each call site so `cem analyze` can read it.
|
|
217582
|
+
renderIconButton(name, activated, label, icon, onClick) {
|
|
217583
|
+
return b`<obc-icon-button
|
|
217584
|
+
class="${name}-button"
|
|
217585
|
+
part="${name}-button"
|
|
217586
|
+
variant="integration"
|
|
217587
|
+
aria-label=${label}
|
|
217588
|
+
@click=${onClick}
|
|
217589
|
+
?activated=${activated}
|
|
217590
|
+
>
|
|
217591
|
+
${icon}
|
|
217592
|
+
</obc-icon-button>`;
|
|
217593
|
+
}
|
|
217563
217594
|
render() {
|
|
217564
217595
|
return b`
|
|
217565
217596
|
<div class="wrapper">
|
|
217566
217597
|
<div class="left-side">
|
|
217567
|
-
${this.showHomeButton ?
|
|
217568
|
-
|
|
217569
|
-
|
|
217570
|
-
|
|
217571
|
-
|
|
217572
|
-
|
|
217573
|
-
|
|
217574
|
-
|
|
217575
|
-
|
|
217598
|
+
${this.showHomeButton ? this.renderIconButton(
|
|
217599
|
+
"home",
|
|
217600
|
+
this.homeButtonActivated,
|
|
217601
|
+
msg("Home"),
|
|
217602
|
+
b`<obi-home></obi-home>`,
|
|
217603
|
+
() => this.dispatchEvent(new CustomEvent("home-button-clicked"))
|
|
217604
|
+
) : A}
|
|
217605
|
+
${this.showLinkButton ? this.renderIconButton(
|
|
217606
|
+
"link",
|
|
217607
|
+
this.linkButtonActivated,
|
|
217608
|
+
msg("Link"),
|
|
217609
|
+
b`<obi-link></obi-link>`,
|
|
217610
|
+
() => this.dispatchEvent(new CustomEvent("link-button-clicked"))
|
|
217611
|
+
) : A}
|
|
217576
217612
|
<slot name="vessel-selector"></slot>
|
|
217577
217613
|
${this.renderStatusFields()}
|
|
217578
217614
|
</div>
|
|
217579
217615
|
<div class="right-side">
|
|
217580
|
-
${this.
|
|
217616
|
+
${this.showAlertButton ? this.renderIconButton(
|
|
217617
|
+
"alert",
|
|
217618
|
+
this.alertButtonActivated,
|
|
217619
|
+
msg("Alerts"),
|
|
217620
|
+
b`<obi-alerts></obi-alerts>`,
|
|
217621
|
+
() => this.dispatchEvent(new CustomEvent("alert-button-clicked"))
|
|
217622
|
+
) : A}
|
|
217623
|
+
${this.showNotificationButton ? (
|
|
217624
|
+
// TODO(designer): keep the Enhanced badge button here, or match the
|
|
217625
|
+
// sibling bar's plain notification icon button? (#624)
|
|
217626
|
+
b`<obc-notification-button
|
|
217581
217627
|
@click=${() => this.dispatchEvent(
|
|
217582
|
-
|
|
217583
|
-
|
|
217628
|
+
new CustomEvent("notification-button-clicked")
|
|
217629
|
+
)}
|
|
217584
217630
|
.buttonStyle=${NotificationButtonStyle.Enhanced}
|
|
217585
217631
|
.showCount=${this.showNotificationCount}
|
|
217586
217632
|
.count=${this.notificationCount}
|
|
217587
217633
|
?isActive=${this.notificationButtonActivated}
|
|
217588
|
-
></obc-notification-button>`
|
|
217589
|
-
|
|
217590
|
-
|
|
217591
|
-
|
|
217592
|
-
|
|
217593
|
-
|
|
217594
|
-
|
|
217595
|
-
|
|
217596
|
-
|
|
217597
|
-
|
|
217598
|
-
|
|
217599
|
-
|
|
217600
|
-
|
|
217601
|
-
|
|
217602
|
-
|
|
217603
|
-
|
|
217604
|
-
|
|
217605
|
-
|
|
217606
|
-
|
|
217607
|
-
|
|
217608
|
-
|
|
217609
|
-
|
|
217610
|
-
|
|
217611
|
-
|
|
217612
|
-
|
|
217613
|
-
|
|
217614
|
-
|
|
217615
|
-
|
|
217616
|
-
|
|
217634
|
+
></obc-notification-button>`
|
|
217635
|
+
) : A}
|
|
217636
|
+
${this.showScreenButton ? this.renderIconButton(
|
|
217637
|
+
"screen",
|
|
217638
|
+
this.screenButtonActivated,
|
|
217639
|
+
msg("Screen"),
|
|
217640
|
+
b`<obi-screen-desk></obi-screen-desk>`,
|
|
217641
|
+
() => this.dispatchEvent(new CustomEvent("screen-button-clicked"))
|
|
217642
|
+
) : A}
|
|
217643
|
+
${this.showSystemButton ? this.renderIconButton(
|
|
217644
|
+
"system",
|
|
217645
|
+
this.systemButtonActivated,
|
|
217646
|
+
msg("System"),
|
|
217647
|
+
b`<obi-configure></obi-configure>`,
|
|
217648
|
+
() => this.dispatchEvent(new CustomEvent("system-button-clicked"))
|
|
217649
|
+
) : A}
|
|
217650
|
+
${this.showDimmingButton ? this.renderIconButton(
|
|
217651
|
+
"dimming",
|
|
217652
|
+
this.dimmingButtonActivated,
|
|
217653
|
+
msg("Dimming"),
|
|
217654
|
+
b`<obi-palette-day-night-iec></obi-palette-day-night-iec>`,
|
|
217655
|
+
() => this.dispatchEvent(new CustomEvent("dimming-button-clicked"))
|
|
217656
|
+
) : A}
|
|
217657
|
+
${this.showUserButton ? this.renderIconButton(
|
|
217658
|
+
"user",
|
|
217659
|
+
this.userButtonActivated,
|
|
217660
|
+
msg("User"),
|
|
217661
|
+
b`<obi-user></obi-user>`,
|
|
217662
|
+
() => this.dispatchEvent(new CustomEvent("user-button-clicked"))
|
|
217663
|
+
) : A}
|
|
217664
|
+
${this.showClock ? b`<slot name="clock"></slot>` : A}
|
|
217617
217665
|
</div>
|
|
217618
217666
|
</div>
|
|
217619
217667
|
`;
|
|
@@ -217626,9 +217674,21 @@ __decorateClass$$([
|
|
|
217626
217674
|
__decorateClass$$([
|
|
217627
217675
|
n$3({ type: Boolean })
|
|
217628
217676
|
], ObcIntegrationBarDropdown.prototype, "homeButtonActivated", 2);
|
|
217677
|
+
__decorateClass$$([
|
|
217678
|
+
n$3({ type: Boolean })
|
|
217679
|
+
], ObcIntegrationBarDropdown.prototype, "showLinkButton", 2);
|
|
217680
|
+
__decorateClass$$([
|
|
217681
|
+
n$3({ type: Boolean })
|
|
217682
|
+
], ObcIntegrationBarDropdown.prototype, "linkButtonActivated", 2);
|
|
217629
217683
|
__decorateClass$$([
|
|
217630
217684
|
n$3({ type: Boolean })
|
|
217631
217685
|
], ObcIntegrationBarDropdown.prototype, "showClock", 2);
|
|
217686
|
+
__decorateClass$$([
|
|
217687
|
+
n$3({ type: Boolean })
|
|
217688
|
+
], ObcIntegrationBarDropdown.prototype, "showAlertButton", 2);
|
|
217689
|
+
__decorateClass$$([
|
|
217690
|
+
n$3({ type: Boolean })
|
|
217691
|
+
], ObcIntegrationBarDropdown.prototype, "alertButtonActivated", 2);
|
|
217632
217692
|
__decorateClass$$([
|
|
217633
217693
|
n$3({ type: Boolean })
|
|
217634
217694
|
], ObcIntegrationBarDropdown.prototype, "showNotificationButton", 2);
|
|
@@ -217641,6 +217701,12 @@ __decorateClass$$([
|
|
|
217641
217701
|
__decorateClass$$([
|
|
217642
217702
|
n$3({ type: Boolean })
|
|
217643
217703
|
], ObcIntegrationBarDropdown.prototype, "showNotificationCount", 2);
|
|
217704
|
+
__decorateClass$$([
|
|
217705
|
+
n$3({ type: Boolean })
|
|
217706
|
+
], ObcIntegrationBarDropdown.prototype, "showScreenButton", 2);
|
|
217707
|
+
__decorateClass$$([
|
|
217708
|
+
n$3({ type: Boolean })
|
|
217709
|
+
], ObcIntegrationBarDropdown.prototype, "screenButtonActivated", 2);
|
|
217644
217710
|
__decorateClass$$([
|
|
217645
217711
|
n$3({ type: Boolean })
|
|
217646
217712
|
], ObcIntegrationBarDropdown.prototype, "showUserButton", 2);
|
|
@@ -218767,7 +218833,11 @@ let ObcIntegrationBar = class extends i$4 {
|
|
|
218767
218833
|
return b`
|
|
218768
218834
|
<nav class="wrapper">
|
|
218769
218835
|
<div class="content-container">
|
|
218770
|
-
${!this.hideHomeButton ? b`<obc-icon-button
|
|
218836
|
+
${!this.hideHomeButton ? b`<obc-icon-button
|
|
218837
|
+
class="home-button"
|
|
218838
|
+
variant="integration"
|
|
218839
|
+
aria-label=${msg("Home")}
|
|
218840
|
+
>
|
|
218771
218841
|
<obi-home></obi-home>
|
|
218772
218842
|
</obc-icon-button>` : null}
|
|
218773
218843
|
${this.showLinkButton ? b`<obc-icon-button
|
|
@@ -218777,6 +218847,7 @@ let ObcIntegrationBar = class extends i$4 {
|
|
|
218777
218847
|
})}
|
|
218778
218848
|
part="link-button"
|
|
218779
218849
|
variant="integration"
|
|
218850
|
+
aria-label=${msg("Link")}
|
|
218780
218851
|
@click=${() => this.dispatchEvent(new CustomEvent("link-button-clicked"))}
|
|
218781
218852
|
?activated=${this.linkButtonActivated}
|
|
218782
218853
|
>
|
|
@@ -218821,6 +218892,7 @@ let ObcIntegrationBar = class extends i$4 {
|
|
|
218821
218892
|
})}
|
|
218822
218893
|
part="alert-button"
|
|
218823
218894
|
variant="integration"
|
|
218895
|
+
aria-label=${msg("Alerts")}
|
|
218824
218896
|
style=${this.alertButtonActivated ? "anchor-name: --settings-menu-anchor;" : ""}
|
|
218825
218897
|
@click=${() => this.dispatchEvent(new CustomEvent("alert-button-clicked"))}
|
|
218826
218898
|
?activated=${this.alertButtonActivated}
|
|
@@ -218834,6 +218906,7 @@ let ObcIntegrationBar = class extends i$4 {
|
|
|
218834
218906
|
})}
|
|
218835
218907
|
part="notification-button"
|
|
218836
218908
|
variant="integration"
|
|
218909
|
+
aria-label=${msg("Notifications")}
|
|
218837
218910
|
style=${this.notificationButtonActivated ? "anchor-name: --settings-menu-anchor;" : ""}
|
|
218838
218911
|
@click=${() => this.dispatchEvent(
|
|
218839
218912
|
new CustomEvent("notification-button-clicked")
|
|
@@ -218849,6 +218922,7 @@ let ObcIntegrationBar = class extends i$4 {
|
|
|
218849
218922
|
})}
|
|
218850
218923
|
part="screen-button"
|
|
218851
218924
|
variant="integration"
|
|
218925
|
+
aria-label=${msg("Screen")}
|
|
218852
218926
|
style=${this.screenButtonActivated ? "anchor-name: --settings-menu-anchor;" : ""}
|
|
218853
218927
|
@click=${() => this.dispatchEvent(new CustomEvent("screen-button-clicked"))}
|
|
218854
218928
|
?activated=${this.screenButtonActivated}
|
|
@@ -218862,6 +218936,7 @@ let ObcIntegrationBar = class extends i$4 {
|
|
|
218862
218936
|
})}
|
|
218863
218937
|
part="system-button"
|
|
218864
218938
|
variant="integration"
|
|
218939
|
+
aria-label=${msg("System")}
|
|
218865
218940
|
style=${this.systemButtonActivated ? "anchor-name: --settings-menu-anchor;" : ""}
|
|
218866
218941
|
@click=${() => this.dispatchEvent(new CustomEvent("system-button-clicked"))}
|
|
218867
218942
|
?activated=${this.systemButtonActivated}
|
|
@@ -218875,6 +218950,7 @@ let ObcIntegrationBar = class extends i$4 {
|
|
|
218875
218950
|
})}
|
|
218876
218951
|
part="dimming-button"
|
|
218877
218952
|
variant="integration"
|
|
218953
|
+
aria-label=${msg("Dimming")}
|
|
218878
218954
|
style=${this.dimmingButtonActivated ? "anchor-name: --settings-menu-anchor;" : ""}
|
|
218879
218955
|
@click=${() => this.dispatchEvent(new CustomEvent("dimming-button-clicked"))}
|
|
218880
218956
|
?activated=${this.dimmingButtonActivated}
|
|
@@ -218888,6 +218964,7 @@ let ObcIntegrationBar = class extends i$4 {
|
|
|
218888
218964
|
})}
|
|
218889
218965
|
part="user-button"
|
|
218890
218966
|
variant="integration"
|
|
218967
|
+
aria-label=${msg("User")}
|
|
218891
218968
|
style=${this.userButtonActivated ? "anchor-name: --settings-menu-anchor;" : ""}
|
|
218892
218969
|
@click=${() => this.dispatchEvent(new CustomEvent("user-button-clicked"))}
|
|
218893
218970
|
?activated=${this.userButtonActivated}
|