@oicl/openbridge-webcomponents 2.2.0-next.2 → 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 +15 -5
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +57 -5
- 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/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
|