@oicl/openbridge-webcomponents 2.2.0-next.1 → 2.2.0-next.3
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 +42 -16
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +99 -13
- package/dist/components/alert-button/alert-button.d.ts +11 -2
- package/dist/components/alert-button/alert-button.d.ts.map +1 -1
- package/dist/components/alert-button/alert-button.js +5 -1
- package/dist/components/alert-button/alert-button.js.map +1 -1
- package/dist/components/alert-button-item/alert-button-item.d.ts +11 -1
- package/dist/components/alert-button-item/alert-button-item.d.ts.map +1 -1
- package/dist/components/alert-button-item/alert-button-item.js +3 -1
- package/dist/components/alert-button-item/alert-button-item.js.map +1 -1
- package/dist/components/alert-counter-item/alert-counter-item.d.ts +7 -4
- package/dist/components/alert-counter-item/alert-counter-item.d.ts.map +1 -1
- package/dist/components/alert-counter-item/alert-counter-item.js +2 -4
- package/dist/components/alert-counter-item/alert-counter-item.js.map +1 -1
- package/dist/components/badge/badge.css.js +7 -0
- package/dist/components/badge/badge.css.js.map +1 -1
- package/dist/components/top-bar/top-bar.css.js +2 -2
- package/dist/components/top-bar/top-bar.css.js.map +1 -1
- package/dist/components/top-bar/top-bar.d.ts +23 -8
- package/dist/components/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/top-bar/top-bar.js +25 -9
- package/dist/components/top-bar/top-bar.js.map +1 -1
- package/package.json +1 -1
|
@@ -51441,6 +51441,13 @@ var badge_default = i$7`* {
|
|
|
51441
51441
|
min-height: var(--ui-components-badge-icon-size);
|
|
51442
51442
|
}
|
|
51443
51443
|
|
|
51444
|
+
/* Figma binds the flat large icon frame to the badge height, not icon-size-large */
|
|
51445
|
+
|
|
51446
|
+
.wrapper.variant-flat.size-large .icon {
|
|
51447
|
+
width: var(--ui-components-badge-min-size-large);
|
|
51448
|
+
height: var(--ui-components-badge-min-size-large);
|
|
51449
|
+
}
|
|
51450
|
+
|
|
51444
51451
|
.wrapper.variant-flat .icon.type-alarm {
|
|
51445
51452
|
color: unset;
|
|
51446
51453
|
border-color: var(--alert-alarm-outline-color);
|
|
@@ -76353,12 +76360,10 @@ var ObcAlertCounterItem = class ObcAlertCounterItem extends i$4 {
|
|
|
76353
76360
|
size=${BadgeSize.large}
|
|
76354
76361
|
type=${BadgeType.regular}
|
|
76355
76362
|
.variant=${variant}
|
|
76356
|
-
|
|
76363
|
+
showIcon
|
|
76357
76364
|
.number=${this.shelvedCount}
|
|
76358
76365
|
>
|
|
76359
|
-
|
|
76360
|
-
slot="badge-icon"
|
|
76361
|
-
></obi-alerts-shelf>` : A}
|
|
76366
|
+
<obi-alerts-shelf slot="badge-icon"></obi-alerts-shelf>
|
|
76362
76367
|
</obc-badge>` : A}
|
|
76363
76368
|
</div>
|
|
76364
76369
|
`;
|
|
@@ -76396,6 +76401,7 @@ var ObcAlertButtonItem = class ObcAlertButtonItem extends i$4 {
|
|
|
76396
76401
|
this.nAlerts = 0;
|
|
76397
76402
|
this.counter = false;
|
|
76398
76403
|
this.globalCounter = false;
|
|
76404
|
+
this.globalCounterType = ObcAlertCounterItemType.Badges;
|
|
76399
76405
|
this.counts = {};
|
|
76400
76406
|
this.shelvedCount = 0;
|
|
76401
76407
|
this.blinking = false;
|
|
@@ -76455,7 +76461,7 @@ var ObcAlertButtonItem = class ObcAlertButtonItem extends i$4 {
|
|
|
76455
76461
|
renderCounts() {
|
|
76456
76462
|
if (rankAlertCounts(this.counts).length === 0 && this.shelvedCount <= 0) return A;
|
|
76457
76463
|
return b`<obc-alert-counter-item
|
|
76458
|
-
.type=${
|
|
76464
|
+
.type=${this.globalCounterType}
|
|
76459
76465
|
.counts=${this.counts}
|
|
76460
76466
|
.shelvedCount=${this.shelvedCount}
|
|
76461
76467
|
></obc-alert-counter-item>`;
|
|
@@ -76505,6 +76511,7 @@ __decorate([n$4({ type: String })], ObcAlertButtonItem.prototype, "alertType", v
|
|
|
76505
76511
|
__decorate([n$4({ type: Number })], ObcAlertButtonItem.prototype, "nAlerts", void 0);
|
|
76506
76512
|
__decorate([n$4({ type: Boolean })], ObcAlertButtonItem.prototype, "counter", void 0);
|
|
76507
76513
|
__decorate([n$4({ type: Boolean })], ObcAlertButtonItem.prototype, "globalCounter", void 0);
|
|
76514
|
+
__decorate([n$4({ type: String })], ObcAlertButtonItem.prototype, "globalCounterType", void 0);
|
|
76508
76515
|
__decorate([n$4({
|
|
76509
76516
|
type: Object,
|
|
76510
76517
|
attribute: false
|
|
@@ -76745,6 +76752,7 @@ var ObcAlertButton = class ObcAlertButton extends i$4 {
|
|
|
76745
76752
|
this.silenceButtonDisabled = false;
|
|
76746
76753
|
this.counter = false;
|
|
76747
76754
|
this.globalCounter = false;
|
|
76755
|
+
this.globalCounterType = ObcAlertCounterItemType.Badges;
|
|
76748
76756
|
this.counts = {};
|
|
76749
76757
|
this.shelvedCount = 0;
|
|
76750
76758
|
this.blinking = false;
|
|
@@ -76788,6 +76796,7 @@ var ObcAlertButton = class ObcAlertButton extends i$4 {
|
|
|
76788
76796
|
.nAlerts=${this.nAlerts}
|
|
76789
76797
|
.counter=${this.counter}
|
|
76790
76798
|
.globalCounter=${this.globalCounter && this.activeType !== ObcAlertButtonType.Flat}
|
|
76799
|
+
.globalCounterType=${this.globalCounterType}
|
|
76791
76800
|
.counts=${this.counts}
|
|
76792
76801
|
.shelvedCount=${this.shelvedCount}
|
|
76793
76802
|
.blinking=${this.blinking}
|
|
@@ -76823,6 +76832,7 @@ __decorate([n$4({ type: Boolean })], ObcAlertButton.prototype, "showSilenceButto
|
|
|
76823
76832
|
__decorate([n$4({ type: Boolean })], ObcAlertButton.prototype, "silenceButtonDisabled", void 0);
|
|
76824
76833
|
__decorate([n$4({ type: Boolean })], ObcAlertButton.prototype, "counter", void 0);
|
|
76825
76834
|
__decorate([n$4({ type: Boolean })], ObcAlertButton.prototype, "globalCounter", void 0);
|
|
76835
|
+
__decorate([n$4({ type: String })], ObcAlertButton.prototype, "globalCounterType", void 0);
|
|
76826
76836
|
__decorate([n$4({
|
|
76827
76837
|
type: Object,
|
|
76828
76838
|
attribute: false
|
|
@@ -113957,7 +113967,7 @@ var top_bar_default = i$7`* {
|
|
|
113957
113967
|
/* Controls never shrink: a squeeze reaches the texts, then overflows the end */
|
|
113958
113968
|
.menu-button,
|
|
113959
113969
|
.app-icon,
|
|
113960
|
-
.
|
|
113970
|
+
.more-button,
|
|
113961
113971
|
.dimming-button,
|
|
113962
113972
|
.user-button,
|
|
113963
113973
|
.apps-button,
|
|
@@ -114013,7 +114023,7 @@ var top_bar_default = i$7`* {
|
|
|
114013
114023
|
"ss04" on;
|
|
114014
114024
|
}
|
|
114015
114025
|
|
|
114016
|
-
.
|
|
114026
|
+
.more-button {
|
|
114017
114027
|
display: none;
|
|
114018
114028
|
}
|
|
114019
114029
|
|
|
@@ -114186,7 +114196,7 @@ var ObcTopBar = class ObcTopBar extends i$4 {
|
|
|
114186
114196
|
this.menuButtonActivated = false;
|
|
114187
114197
|
this.dimmingButtonActivated = false;
|
|
114188
114198
|
this.appsButtonActivated = false;
|
|
114189
|
-
this.
|
|
114199
|
+
this.moreButtonActivated = false;
|
|
114190
114200
|
this.userButtonActivated = false;
|
|
114191
114201
|
this.userButtonDisabled = false;
|
|
114192
114202
|
this.tall = false;
|
|
@@ -114224,9 +114234,24 @@ var ObcTopBar = class ObcTopBar extends i$4 {
|
|
|
114224
114234
|
*/
|
|
114225
114235
|
this.dispatchEvent(new CustomEvent("apps-button-clicked"));
|
|
114226
114236
|
}
|
|
114227
|
-
|
|
114237
|
+
/**
|
|
114238
|
+
* Copies the deprecated `leftMoreButtonActivated` into
|
|
114239
|
+
* `moreButtonActivated`. A plain field rather than a getter/setter alias:
|
|
114240
|
+
* the Vue wrapper writes every prop back on its second render, and a getter
|
|
114241
|
+
* would then write `false` over the new property.
|
|
114242
|
+
*/
|
|
114243
|
+
willUpdate(changed) {
|
|
114244
|
+
super.willUpdate(changed);
|
|
114245
|
+
if (changed.has("leftMoreButtonActivated") && this.leftMoreButtonActivated !== void 0) this.moreButtonActivated = this.leftMoreButtonActivated;
|
|
114246
|
+
}
|
|
114247
|
+
moreButtonClicked() {
|
|
114248
|
+
/**
|
|
114249
|
+
* Fired when the more button is clicked.
|
|
114250
|
+
* @event more-button-clicked
|
|
114251
|
+
*/
|
|
114252
|
+
this.dispatchEvent(new CustomEvent("more-button-clicked"));
|
|
114228
114253
|
/**
|
|
114229
|
-
*
|
|
114254
|
+
* Deprecated alias of `more-button-clicked`; removed in 4.0.0.
|
|
114230
114255
|
* @event left-more-button-clicked
|
|
114231
114256
|
*/
|
|
114232
114257
|
this.dispatchEvent(new CustomEvent("left-more-button-clicked"));
|
|
@@ -114342,8 +114367,8 @@ var ObcTopBar = class ObcTopBar extends i$4 {
|
|
|
114342
114367
|
}
|
|
114343
114368
|
return b`
|
|
114344
114369
|
<style>
|
|
114345
|
-
@media (max-width: ${Math.max(this.appButtonBreakpointPx, this.dimmingButtonBreakpointPx)}px) {
|
|
114346
|
-
.
|
|
114370
|
+
@media (max-width: ${Math.max(this.appButtonBreakpointPx, this.dimmingButtonBreakpointPx, this.userButtonBreakpointPx, this.appIconBreakpointPx)}px) {
|
|
114371
|
+
.more-button {
|
|
114347
114372
|
display: revert !important;
|
|
114348
114373
|
}
|
|
114349
114374
|
|
|
@@ -114429,12 +114454,12 @@ var ObcTopBar = class ObcTopBar extends i$4 {
|
|
|
114429
114454
|
</obc-icon-button>` : null}
|
|
114430
114455
|
${this.showClock ? b`<slot name="clock"></slot>` : null}
|
|
114431
114456
|
${!this.inactive ? b`<obc-icon-button
|
|
114432
|
-
class="
|
|
114433
|
-
part="left-more-button"
|
|
114457
|
+
class="more-button"
|
|
114458
|
+
part="more-button left-more-button"
|
|
114434
114459
|
variant="flat"
|
|
114435
114460
|
aria-label=${msg("More")}
|
|
114436
|
-
@click=${this.
|
|
114437
|
-
?activated=${this.
|
|
114461
|
+
@click=${this.moreButtonClicked}
|
|
114462
|
+
?activated=${this.moreButtonActivated}
|
|
114438
114463
|
>
|
|
114439
114464
|
<obi-more-vertical-google></obi-more-vertical-google>
|
|
114440
114465
|
</obc-icon-button>` : null}
|
|
@@ -114452,6 +114477,7 @@ __decorate([n$4({ type: String })], ObcTopBar.prototype, "menuButtonIcon", void
|
|
|
114452
114477
|
__decorate([n$4({ type: Boolean })], ObcTopBar.prototype, "menuButtonActivated", void 0);
|
|
114453
114478
|
__decorate([n$4({ type: Boolean })], ObcTopBar.prototype, "dimmingButtonActivated", void 0);
|
|
114454
114479
|
__decorate([n$4({ type: Boolean })], ObcTopBar.prototype, "appsButtonActivated", void 0);
|
|
114480
|
+
__decorate([n$4({ type: Boolean })], ObcTopBar.prototype, "moreButtonActivated", void 0);
|
|
114455
114481
|
__decorate([n$4({ type: Boolean })], ObcTopBar.prototype, "leftMoreButtonActivated", void 0);
|
|
114456
114482
|
__decorate([n$4({ type: Boolean })], ObcTopBar.prototype, "userButtonActivated", void 0);
|
|
114457
114483
|
__decorate([n$4({ type: Boolean })], ObcTopBar.prototype, "userButtonDisabled", void 0);
|