@oicl/openbridge-webcomponents 2.2.0-next.5 → 2.2.0-next.6
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 +542 -6
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +854 -197
- package/dist/components/alert-button-item/alert-button-item.css.js +65 -1
- package/dist/components/alert-button-item/alert-button-item.css.js.map +1 -1
- package/dist/components/alert-button-item/alert-button-item.d.ts +14 -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 +19 -2
- package/dist/components/alert-button-item/alert-button-item.js.map +1 -1
- package/dist/components/alert-subsystem-button/alert-subsystem-button.css.js +120 -0
- package/dist/components/alert-subsystem-button/alert-subsystem-button.css.js.map +1 -0
- package/dist/components/alert-subsystem-button/alert-subsystem-button.d.ts +105 -0
- package/dist/components/alert-subsystem-button/alert-subsystem-button.d.ts.map +1 -0
- package/dist/components/alert-subsystem-button/alert-subsystem-button.js +107 -0
- package/dist/components/alert-subsystem-button/alert-subsystem-button.js.map +1 -0
- package/dist/components/alert-subsystem-counter/alert-subsystem-counter.css.js +4 -0
- package/dist/components/alert-subsystem-counter/alert-subsystem-counter.css.js.map +1 -1
- package/dist/components/alert-subsystem-counter/alert-subsystem-counter.d.ts +3 -1
- package/dist/components/alert-subsystem-counter/alert-subsystem-counter.d.ts.map +1 -1
- package/dist/components/alert-subsystem-counter/alert-subsystem-counter.js +7 -1
- package/dist/components/alert-subsystem-counter/alert-subsystem-counter.js.map +1 -1
- package/dist/components/diagnostic-button/diagnostic-button.css.js +18 -0
- package/dist/components/diagnostic-button/diagnostic-button.css.js.map +1 -0
- package/dist/components/diagnostic-button/diagnostic-button.d.ts +71 -0
- package/dist/components/diagnostic-button/diagnostic-button.d.ts.map +1 -0
- package/dist/components/diagnostic-button/diagnostic-button.js +52 -0
- package/dist/components/diagnostic-button/diagnostic-button.js.map +1 -0
- package/dist/components/diagnostic-menu/diagnostic-menu.css.js +109 -0
- package/dist/components/diagnostic-menu/diagnostic-menu.css.js.map +1 -0
- package/dist/components/diagnostic-menu/diagnostic-menu.d.ts +111 -0
- package/dist/components/diagnostic-menu/diagnostic-menu.d.ts.map +1 -0
- package/dist/components/diagnostic-menu/diagnostic-menu.js +90 -0
- package/dist/components/diagnostic-menu/diagnostic-menu.js.map +1 -0
- package/dist/components/icon-button/icon-button.js +2 -2
- package/dist/components/icon-button/icon-button.js.map +1 -1
- package/dist/components/top-bar/top-bar.css.js +1 -0
- package/dist/components/top-bar/top-bar.css.js.map +1 -1
- package/dist/components/top-bar/top-bar.d.ts +4 -0
- package/dist/components/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/top-bar/top-bar.js +1 -0
- package/dist/components/top-bar/top-bar.js.map +1 -1
- package/dist/generated/locales/es-419.d.ts +6 -0
- package/dist/generated/locales/es-419.d.ts.map +1 -1
- package/dist/generated/locales/es-419.js +6 -0
- package/dist/generated/locales/es-419.js.map +1 -1
- package/dist/generated/locales/fi-FI.d.ts +6 -0
- package/dist/generated/locales/fi-FI.d.ts.map +1 -1
- package/dist/generated/locales/fi-FI.js +6 -0
- package/dist/generated/locales/fi-FI.js.map +1 -1
- package/package.json +1 -1
|
@@ -7692,7 +7692,7 @@ var ObcIconButton = class ObcIconButton extends i$4 {
|
|
|
7692
7692
|
cx="20"
|
|
7693
7693
|
cy="20"
|
|
7694
7694
|
r="18"
|
|
7695
|
-
stroke="
|
|
7695
|
+
stroke="var(--instrument-enhanced-secondary-color)"
|
|
7696
7696
|
stroke-width="4"
|
|
7697
7697
|
fill="none"
|
|
7698
7698
|
/>
|
|
@@ -7718,7 +7718,7 @@ var ObcIconButton = class ObcIconButton extends i$4 {
|
|
|
7718
7718
|
fill="none"
|
|
7719
7719
|
/>
|
|
7720
7720
|
<path
|
|
7721
|
-
d="
|
|
7721
|
+
d="M20 2 A18 18 0 ${angleRad > Math.PI ? 1 : 0} 1 ${x} ${y}"
|
|
7722
7722
|
stroke="var(--instrument-enhanced-secondary-color)"
|
|
7723
7723
|
stroke-width="4"
|
|
7724
7724
|
stroke-linecap="round"
|
|
@@ -74431,7 +74431,8 @@ var alert_button_item_default = i$7`* {
|
|
|
74431
74431
|
height: 100%;
|
|
74432
74432
|
}
|
|
74433
74433
|
|
|
74434
|
-
.icon
|
|
74434
|
+
.icon,
|
|
74435
|
+
::slotted([slot="icon"]) {
|
|
74435
74436
|
display: block;
|
|
74436
74437
|
width: var(--app-components-alert-button-item-icon-size);
|
|
74437
74438
|
height: var(--app-components-alert-button-item-icon-size);
|
|
@@ -75906,6 +75907,69 @@ var alert_button_item_default = i$7`* {
|
|
|
75906
75907
|
color: var(--on-notification-active-color);
|
|
75907
75908
|
}
|
|
75908
75909
|
|
|
75910
|
+
/* After the type rules, which it ties on specificity. Not named .activated:
|
|
75911
|
+
the mixin's own activated state would match twice, and the selected style
|
|
75912
|
+
has no tokens for it. */
|
|
75913
|
+
.alert-button.selected {
|
|
75914
|
+
cursor: pointer;
|
|
75915
|
+
}
|
|
75916
|
+
.alert-button.selected:focus {
|
|
75917
|
+
outline: none;
|
|
75918
|
+
}
|
|
75919
|
+
.alert-button.selected .visible-wrapper {
|
|
75920
|
+
border-color: var(--selected-enabled-border-color);
|
|
75921
|
+
background-color: var(--selected-enabled-background-color);
|
|
75922
|
+
border-width: 1px;
|
|
75923
|
+
border-style: solid;
|
|
75924
|
+
cursor: pointer;
|
|
75925
|
+
--base-border-color: var(--selected-enabled-border-color);
|
|
75926
|
+
--base-background-color: var(--selected-enabled-background-color);
|
|
75927
|
+
}
|
|
75928
|
+
.alert-button.selected.activated .visible-wrapper {
|
|
75929
|
+
border-color: var(--selected-activated-border-color);
|
|
75930
|
+
background-color: var(--selected-activated-background-color);
|
|
75931
|
+
--base-border-color: var(--selected-activated-border-color);
|
|
75932
|
+
--base-background-color: var(--selected-activated-background-color);
|
|
75933
|
+
}
|
|
75934
|
+
@media (hover:hover) {
|
|
75935
|
+
.alert-button.selected:hover .visible-wrapper {
|
|
75936
|
+
border-color: color-mix(in srgb, var(--selected-hover-border-color) calc(var(--obc-can-hover) * 100%), var(--base-border-color));
|
|
75937
|
+
background-color: color-mix(in srgb, var(--selected-hover-background-color) calc(var(--obc-can-hover) * 100%), var(--base-background-color));
|
|
75938
|
+
}
|
|
75939
|
+
}
|
|
75940
|
+
.alert-button.selected:active .visible-wrapper {
|
|
75941
|
+
border-color: var(--selected-pressed-border-color);
|
|
75942
|
+
background-color: var(--selected-pressed-background-color);
|
|
75943
|
+
}
|
|
75944
|
+
.alert-button.selected:focus-visible .visible-wrapper {
|
|
75945
|
+
outline-color: var(--border-focus-color);
|
|
75946
|
+
outline-width: var(--global-size-spacing-border-weight-focusframe);
|
|
75947
|
+
outline-style: solid;
|
|
75948
|
+
border-color: var(--container-global-color);
|
|
75949
|
+
z-index: 1;
|
|
75950
|
+
}
|
|
75951
|
+
.alert-button.selected:disabled .visible-wrapper {
|
|
75952
|
+
border-color: var(--selected-disabled-border-color);
|
|
75953
|
+
background-color: var(--selected-disabled-background-color);
|
|
75954
|
+
cursor: not-allowed;
|
|
75955
|
+
color: var(--on-selected-disabled-color) !important;
|
|
75956
|
+
}
|
|
75957
|
+
.alert-button.selected.disabled .visible-wrapper {
|
|
75958
|
+
border-color: var(--selected-disabled-border-color);
|
|
75959
|
+
background-color: var(--selected-disabled-background-color);
|
|
75960
|
+
cursor: not-allowed;
|
|
75961
|
+
color: var(--on-selected-disabled-color) !important;
|
|
75962
|
+
}
|
|
75963
|
+
.alert-button.selected:disabled {
|
|
75964
|
+
cursor: not-allowed;
|
|
75965
|
+
}
|
|
75966
|
+
.alert-button.selected.disabled {
|
|
75967
|
+
cursor: not-allowed;
|
|
75968
|
+
}
|
|
75969
|
+
.alert-button.selected .visible-wrapper {
|
|
75970
|
+
color: var(--on-selected-active-color);
|
|
75971
|
+
}
|
|
75972
|
+
|
|
75909
75973
|
.flash-fast .visible-wrapper {
|
|
75910
75974
|
opacity: var(--flash-fast-on);
|
|
75911
75975
|
}
|
|
@@ -76451,11 +76515,18 @@ var ObcAlertButtonItem = class ObcAlertButtonItem extends i$4 {
|
|
|
76451
76515
|
this.blinking = false;
|
|
76452
76516
|
this.flashingSpeed = FlashingSpeed.Default;
|
|
76453
76517
|
this.fillHeight = false;
|
|
76518
|
+
this.activated = false;
|
|
76454
76519
|
this.ariaLabel = null;
|
|
76520
|
+
this.ariaExpanded = null;
|
|
76521
|
+
this.hasSlottedIcon = false;
|
|
76455
76522
|
this.flashing = new FlashingController(this, () => this.resolvedFlashingSpeed);
|
|
76456
76523
|
}
|
|
76524
|
+
willUpdate(changedProperties) {
|
|
76525
|
+
super.willUpdate(changedProperties);
|
|
76526
|
+
this.hasSlottedIcon = this.querySelector(":scope > [slot=\"icon\"]") !== null;
|
|
76527
|
+
}
|
|
76457
76528
|
get resolvedFlashingSpeed() {
|
|
76458
|
-
if (this.globalCounter || !this.blinking || this.nAlerts <= 0 || this.alertType === void 0) return FlashingSpeed.Fixed;
|
|
76529
|
+
if (this.globalCounter || this.hasSlottedIcon || !this.blinking || this.nAlerts <= 0 || this.alertType === void 0) return FlashingSpeed.Fixed;
|
|
76459
76530
|
return resolveFlashingSpeed(this.flashingSpeed, this.alertType, AlertFlashPhase.Active);
|
|
76460
76531
|
}
|
|
76461
76532
|
get accessibleName() {
|
|
@@ -76523,9 +76594,11 @@ var ObcAlertButtonItem = class ObcAlertButtonItem extends i$4 {
|
|
|
76523
76594
|
counter: showCount && !this.globalCounter,
|
|
76524
76595
|
"global-counter": this.globalCounter,
|
|
76525
76596
|
"fill-height": this.fillHeight,
|
|
76597
|
+
selected: this.activated,
|
|
76526
76598
|
[`flash-${tempo}`]: true
|
|
76527
76599
|
})}
|
|
76528
76600
|
aria-label=${this.accessibleName}
|
|
76601
|
+
aria-expanded=${o$4(this.ariaExpanded === "true" || this.ariaExpanded === "false" ? this.ariaExpanded : void 0)}
|
|
76529
76602
|
>
|
|
76530
76603
|
${tempo === FlashingSpeed.Fixed ? A : b`<div class="blink" aria-hidden="true">
|
|
76531
76604
|
<div class="content">
|
|
@@ -76536,7 +76609,9 @@ var ObcAlertButtonItem = class ObcAlertButtonItem extends i$4 {
|
|
|
76536
76609
|
<div class="visible-wrapper">
|
|
76537
76610
|
${this.globalCounter ? this.renderCounts() : A}
|
|
76538
76611
|
<div class="content">
|
|
76539
|
-
|
|
76612
|
+
<slot name="icon" @slotchange=${() => this.requestUpdate()}
|
|
76613
|
+
>${this.renderIcon(styleType, false)}</slot
|
|
76614
|
+
>
|
|
76540
76615
|
${showCount ? this.renderCount() : A}
|
|
76541
76616
|
</div>
|
|
76542
76617
|
</div>
|
|
@@ -76564,10 +76639,15 @@ __decorate([n$4({ type: Number })], ObcAlertButtonItem.prototype, "shelvedCount"
|
|
|
76564
76639
|
__decorate([n$4({ type: Boolean })], ObcAlertButtonItem.prototype, "blinking", void 0);
|
|
76565
76640
|
__decorate([n$4({ type: String })], ObcAlertButtonItem.prototype, "flashingSpeed", void 0);
|
|
76566
76641
|
__decorate([n$4({ type: Boolean })], ObcAlertButtonItem.prototype, "fillHeight", void 0);
|
|
76642
|
+
__decorate([n$4({ type: Boolean })], ObcAlertButtonItem.prototype, "activated", void 0);
|
|
76567
76643
|
__decorate([n$4({
|
|
76568
76644
|
type: String,
|
|
76569
76645
|
attribute: "aria-label"
|
|
76570
76646
|
})], ObcAlertButtonItem.prototype, "ariaLabel", void 0);
|
|
76647
|
+
__decorate([n$4({
|
|
76648
|
+
type: String,
|
|
76649
|
+
attribute: "aria-expanded"
|
|
76650
|
+
})], ObcAlertButtonItem.prototype, "ariaExpanded", void 0);
|
|
76571
76651
|
ObcAlertButtonItem = __decorate([customElement("obc-alert-button-item"), localized()], ObcAlertButtonItem);
|
|
76572
76652
|
//#endregion
|
|
76573
76653
|
//#region src/components/alert-button/alert-button.css?inline
|
|
@@ -82078,6 +82158,122 @@ __decorate([r$3()], ObcAlertMenu.prototype, "_selectedTabName", void 0);
|
|
|
82078
82158
|
__decorate([e$4(".alert-list")], ObcAlertMenu.prototype, "alertList", void 0);
|
|
82079
82159
|
ObcAlertMenu = __decorate([localized(), customElement("obc-alert-menu")], ObcAlertMenu);
|
|
82080
82160
|
//#endregion
|
|
82161
|
+
//#region src/components/alert-subsystem-button/alert-subsystem-button.css?inline
|
|
82162
|
+
var alert_subsystem_button_default = i$7`* {
|
|
82163
|
+
-webkit-tap-highlight-color: transparent;
|
|
82164
|
+
}
|
|
82165
|
+
|
|
82166
|
+
* {
|
|
82167
|
+
box-sizing: border-box;
|
|
82168
|
+
}
|
|
82169
|
+
|
|
82170
|
+
:host {
|
|
82171
|
+
display: inline-flex;
|
|
82172
|
+
}
|
|
82173
|
+
|
|
82174
|
+
.wrapper {
|
|
82175
|
+
display: flex;
|
|
82176
|
+
align-items: stretch;
|
|
82177
|
+
}
|
|
82178
|
+
|
|
82179
|
+
.counter-button {
|
|
82180
|
+
appearance: none;
|
|
82181
|
+
background: none;
|
|
82182
|
+
border: none;
|
|
82183
|
+
padding: 0;
|
|
82184
|
+
display: flex;
|
|
82185
|
+
align-items: center;
|
|
82186
|
+
height: var(--ui-components-button-touch-target-size);
|
|
82187
|
+
color: var(--on-normal-neutral-color);
|
|
82188
|
+
}
|
|
82189
|
+
|
|
82190
|
+
.counter-button {
|
|
82191
|
+
cursor: pointer;
|
|
82192
|
+
}
|
|
82193
|
+
|
|
82194
|
+
.counter-button:focus {
|
|
82195
|
+
outline: none;
|
|
82196
|
+
}
|
|
82197
|
+
|
|
82198
|
+
.counter-button .visible-wrapper {
|
|
82199
|
+
border-color: var(--normal-enabled-border-color);
|
|
82200
|
+
background-color: var(--normal-enabled-background-color);
|
|
82201
|
+
border-width: 1px;
|
|
82202
|
+
border-style: solid;
|
|
82203
|
+
cursor: pointer;
|
|
82204
|
+
--base-border-color: var(--normal-enabled-border-color);
|
|
82205
|
+
--base-background-color: var(--normal-enabled-background-color);
|
|
82206
|
+
}
|
|
82207
|
+
|
|
82208
|
+
.counter-button.activated .visible-wrapper {
|
|
82209
|
+
border-color: var(--normal-activated-border-color);
|
|
82210
|
+
background-color: var(--normal-activated-background-color);
|
|
82211
|
+
--base-border-color: var(--normal-activated-border-color);
|
|
82212
|
+
--base-background-color: var(--normal-activated-background-color);
|
|
82213
|
+
}
|
|
82214
|
+
|
|
82215
|
+
@media (hover:hover) {
|
|
82216
|
+
|
|
82217
|
+
.counter-button:hover .visible-wrapper {
|
|
82218
|
+
border-color: color-mix(in srgb, var(--normal-hover-border-color) calc(var(--obc-can-hover) * 100%), var(--base-border-color));
|
|
82219
|
+
background-color: color-mix(in srgb, var(--normal-hover-background-color) calc(var(--obc-can-hover) * 100%), var(--base-background-color));
|
|
82220
|
+
}
|
|
82221
|
+
}
|
|
82222
|
+
|
|
82223
|
+
.counter-button:active .visible-wrapper {
|
|
82224
|
+
border-color: var(--normal-pressed-border-color);
|
|
82225
|
+
background-color: var(--normal-pressed-background-color);
|
|
82226
|
+
}
|
|
82227
|
+
|
|
82228
|
+
.counter-button:focus-visible .visible-wrapper {
|
|
82229
|
+
outline-color: var(--border-focus-color);
|
|
82230
|
+
outline-width: var(--global-size-spacing-border-weight-focusframe);
|
|
82231
|
+
outline-style: solid;
|
|
82232
|
+
border-color: var(--container-global-color);
|
|
82233
|
+
z-index: 1;
|
|
82234
|
+
}
|
|
82235
|
+
|
|
82236
|
+
.counter-button:disabled .visible-wrapper {
|
|
82237
|
+
border-color: var(--normal-disabled-border-color);
|
|
82238
|
+
background-color: var(--normal-disabled-background-color);
|
|
82239
|
+
cursor: not-allowed;
|
|
82240
|
+
color: var(--on-normal-disabled-color) !important;
|
|
82241
|
+
}
|
|
82242
|
+
|
|
82243
|
+
.counter-button.disabled .visible-wrapper {
|
|
82244
|
+
border-color: var(--normal-disabled-border-color);
|
|
82245
|
+
background-color: var(--normal-disabled-background-color);
|
|
82246
|
+
cursor: not-allowed;
|
|
82247
|
+
color: var(--on-normal-disabled-color) !important;
|
|
82248
|
+
}
|
|
82249
|
+
|
|
82250
|
+
.counter-button:disabled {
|
|
82251
|
+
cursor: not-allowed;
|
|
82252
|
+
}
|
|
82253
|
+
|
|
82254
|
+
.counter-button.disabled {
|
|
82255
|
+
cursor: not-allowed;
|
|
82256
|
+
}
|
|
82257
|
+
|
|
82258
|
+
/* Scoped like the mixin's rules, which it has to outrank for the border */
|
|
82259
|
+
.counter-button .visible-wrapper {
|
|
82260
|
+
display: flex;
|
|
82261
|
+
align-items: center;
|
|
82262
|
+
height: var(--ui-components-icon-button-visual-target-size);
|
|
82263
|
+
padding: 0 8px; /* the design's counter frame inset */
|
|
82264
|
+
border-radius: var(--ui-components-button-border-radius-top-left) 0 0
|
|
82265
|
+
var(--ui-components-button-border-radius-bottom-left);
|
|
82266
|
+
border-right: none; /* the list half's left border is the shared edge */
|
|
82267
|
+
}
|
|
82268
|
+
|
|
82269
|
+
.counter::part(frame) {
|
|
82270
|
+
background: none;
|
|
82271
|
+
border: none;
|
|
82272
|
+
border-radius: 0;
|
|
82273
|
+
padding: 0; /* the counter's own frame gives way to the button's */
|
|
82274
|
+
}
|
|
82275
|
+
`;
|
|
82276
|
+
//#endregion
|
|
82081
82277
|
//#region src/components/alert-subsystem-counter/alert-subsystem-counter.css?inline
|
|
82082
82278
|
var alert_subsystem_counter_default = i$7`* {
|
|
82083
82279
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -82111,6 +82307,10 @@ var alert_subsystem_counter_default = i$7`* {
|
|
|
82111
82307
|
min-width: 0; /* lets the label shrink below its text width */
|
|
82112
82308
|
}
|
|
82113
82309
|
|
|
82310
|
+
.leading-container.no-leading {
|
|
82311
|
+
display: none; /* no label and no icon: the badges take the whole frame, with no leading hole */
|
|
82312
|
+
}
|
|
82313
|
+
|
|
82114
82314
|
.icon {
|
|
82115
82315
|
flex-shrink: 0;
|
|
82116
82316
|
width: var(--global-size-spacing-icon-icon-size-regular);
|
|
@@ -82205,13 +82405,19 @@ var ObcAlertSubsystemCounter = class ObcAlertSubsystemCounter extends i$4 {
|
|
|
82205
82405
|
render() {
|
|
82206
82406
|
return b`
|
|
82207
82407
|
<div
|
|
82408
|
+
part="frame"
|
|
82208
82409
|
class=${e$2({
|
|
82209
82410
|
frame: true,
|
|
82210
82411
|
["orientation-" + this.orientation]: true,
|
|
82211
82412
|
"has-alert": this.hasAlert
|
|
82212
82413
|
})}
|
|
82213
82414
|
>
|
|
82214
|
-
<div
|
|
82415
|
+
<div
|
|
82416
|
+
class=${e$2({
|
|
82417
|
+
"leading-container": true,
|
|
82418
|
+
"no-leading": !this.hasIcon && this.label === ""
|
|
82419
|
+
})}
|
|
82420
|
+
>
|
|
82215
82421
|
<div class=${e$2({
|
|
82216
82422
|
icon: true,
|
|
82217
82423
|
"no-icon": !this.hasIcon
|
|
@@ -82237,6 +82443,99 @@ __decorate([n$4({ type: String })], ObcAlertSubsystemCounter.prototype, "emptyTe
|
|
|
82237
82443
|
__decorate([r$3()], ObcAlertSubsystemCounter.prototype, "hasIcon", void 0);
|
|
82238
82444
|
ObcAlertSubsystemCounter = __decorate([customElement("obc-alert-subsystem-counter")], ObcAlertSubsystemCounter);
|
|
82239
82445
|
//#endregion
|
|
82446
|
+
//#region src/components/alert-subsystem-button/alert-subsystem-button.ts
|
|
82447
|
+
var ObcAlertSubsystemButton = class ObcAlertSubsystemButton extends i$4 {
|
|
82448
|
+
constructor(..._args) {
|
|
82449
|
+
super(..._args);
|
|
82450
|
+
this.counts = {};
|
|
82451
|
+
this.hasAlert = false;
|
|
82452
|
+
this.label = "";
|
|
82453
|
+
this.emptyText = "No alerts";
|
|
82454
|
+
this.disabled = false;
|
|
82455
|
+
this.counterDisabled = false;
|
|
82456
|
+
this.listDisabled = false;
|
|
82457
|
+
this.listButtonLabel = "";
|
|
82458
|
+
this.ariaLabel = null;
|
|
82459
|
+
this.handleCounterClick = (e) => {
|
|
82460
|
+
e.stopPropagation();
|
|
82461
|
+
this.dispatchEvent(new CustomEvent("counter-click"));
|
|
82462
|
+
};
|
|
82463
|
+
this.handleListClick = (e) => {
|
|
82464
|
+
e.stopPropagation();
|
|
82465
|
+
this.dispatchEvent(new CustomEvent("alert-list-click"));
|
|
82466
|
+
};
|
|
82467
|
+
}
|
|
82468
|
+
/** The flag the counter gets: `hasAlert` with nothing to draw reads as none. */
|
|
82469
|
+
get showsCounts() {
|
|
82470
|
+
return this.hasAlert && rankAlertCounts(this.counts).length > 0;
|
|
82471
|
+
}
|
|
82472
|
+
get counterName() {
|
|
82473
|
+
if (this.ariaLabel) return this.ariaLabel;
|
|
82474
|
+
const state = this.showsCounts ? alertCountsLabel(this.counts) : this.emptyText;
|
|
82475
|
+
return [this.label, state].filter((part) => part !== "").join(", ") || msg("Alerts");
|
|
82476
|
+
}
|
|
82477
|
+
render() {
|
|
82478
|
+
return b`
|
|
82479
|
+
<div class="wrapper">
|
|
82480
|
+
<button
|
|
82481
|
+
class="counter-button"
|
|
82482
|
+
data-testid="counter-button"
|
|
82483
|
+
?disabled=${this.disabled || this.counterDisabled}
|
|
82484
|
+
aria-label=${this.counterName}
|
|
82485
|
+
@click=${this.handleCounterClick}
|
|
82486
|
+
>
|
|
82487
|
+
<div class="visible-wrapper">
|
|
82488
|
+
<obc-alert-subsystem-counter
|
|
82489
|
+
class="counter"
|
|
82490
|
+
.label=${this.label}
|
|
82491
|
+
.hasAlert=${this.showsCounts}
|
|
82492
|
+
.emptyText=${this.emptyText}
|
|
82493
|
+
>
|
|
82494
|
+
<slot name="icon" slot="icon"></slot>
|
|
82495
|
+
<obc-alert-counter-item
|
|
82496
|
+
slot="badges"
|
|
82497
|
+
.counts=${this.counts}
|
|
82498
|
+
></obc-alert-counter-item>
|
|
82499
|
+
</obc-alert-subsystem-counter>
|
|
82500
|
+
</div>
|
|
82501
|
+
</button>
|
|
82502
|
+
<obc-icon-button
|
|
82503
|
+
class="list-button"
|
|
82504
|
+
data-testid="list-button"
|
|
82505
|
+
variant="normal"
|
|
82506
|
+
cornerRight
|
|
82507
|
+
?disabled=${this.disabled || this.listDisabled}
|
|
82508
|
+
aria-label=${this.listButtonLabel || msg("Alert list")}
|
|
82509
|
+
@click=${this.handleListClick}
|
|
82510
|
+
>
|
|
82511
|
+
<slot name="list-icon"
|
|
82512
|
+
><obi-alert-list aria-hidden="true"></obi-alert-list
|
|
82513
|
+
></slot>
|
|
82514
|
+
</obc-icon-button>
|
|
82515
|
+
</div>
|
|
82516
|
+
`;
|
|
82517
|
+
}
|
|
82518
|
+
static {
|
|
82519
|
+
this.styles = r$7(alert_subsystem_button_default);
|
|
82520
|
+
}
|
|
82521
|
+
};
|
|
82522
|
+
__decorate([n$4({
|
|
82523
|
+
type: Object,
|
|
82524
|
+
attribute: false
|
|
82525
|
+
})], ObcAlertSubsystemButton.prototype, "counts", void 0);
|
|
82526
|
+
__decorate([n$4({ type: Boolean })], ObcAlertSubsystemButton.prototype, "hasAlert", void 0);
|
|
82527
|
+
__decorate([n$4({ type: String })], ObcAlertSubsystemButton.prototype, "label", void 0);
|
|
82528
|
+
__decorate([n$4({ type: String })], ObcAlertSubsystemButton.prototype, "emptyText", void 0);
|
|
82529
|
+
__decorate([n$4({ type: Boolean })], ObcAlertSubsystemButton.prototype, "disabled", void 0);
|
|
82530
|
+
__decorate([n$4({ type: Boolean })], ObcAlertSubsystemButton.prototype, "counterDisabled", void 0);
|
|
82531
|
+
__decorate([n$4({ type: Boolean })], ObcAlertSubsystemButton.prototype, "listDisabled", void 0);
|
|
82532
|
+
__decorate([n$4({ type: String })], ObcAlertSubsystemButton.prototype, "listButtonLabel", void 0);
|
|
82533
|
+
__decorate([n$4({
|
|
82534
|
+
type: String,
|
|
82535
|
+
attribute: "aria-label"
|
|
82536
|
+
})], ObcAlertSubsystemButton.prototype, "ariaLabel", void 0);
|
|
82537
|
+
ObcAlertSubsystemButton = __decorate([customElement("obc-alert-subsystem-button"), localized()], ObcAlertSubsystemButton);
|
|
82538
|
+
//#endregion
|
|
82240
82539
|
//#region src/components/app-button/app-button.css?inline
|
|
82241
82540
|
var app_button_default = i$7`* {
|
|
82242
82541
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -94509,6 +94808,241 @@ __decorate([n$4({
|
|
|
94509
94808
|
__decorate([n$4({ type: Boolean })], ObcCommunicationTable.prototype, "largeLeadingIcon", void 0);
|
|
94510
94809
|
ObcCommunicationTable = __decorate([customElement("obc-communication-table")], ObcCommunicationTable);
|
|
94511
94810
|
//#endregion
|
|
94811
|
+
//#region src/components/diagnostic-button/diagnostic-button.css?inline
|
|
94812
|
+
var diagnostic_button_default = i$7`* {
|
|
94813
|
+
-webkit-tap-highlight-color: transparent;
|
|
94814
|
+
}
|
|
94815
|
+
|
|
94816
|
+
:host {
|
|
94817
|
+
display: inline-flex;
|
|
94818
|
+
}
|
|
94819
|
+
|
|
94820
|
+
.item {
|
|
94821
|
+
flex-grow: 1; /* fills the width a parent gives the host, as the item does inside the alert button */
|
|
94822
|
+
}
|
|
94823
|
+
`;
|
|
94824
|
+
//#endregion
|
|
94825
|
+
//#region src/components/diagnostic-button/diagnostic-button.ts
|
|
94826
|
+
var ObcDiagnosticButton = class ObcDiagnosticButton extends i$4 {
|
|
94827
|
+
constructor(..._args) {
|
|
94828
|
+
super(..._args);
|
|
94829
|
+
this.nAlerts = 0;
|
|
94830
|
+
this.activated = false;
|
|
94831
|
+
this.ariaLabel = null;
|
|
94832
|
+
this.ariaExpanded = null;
|
|
94833
|
+
}
|
|
94834
|
+
get accessibleName() {
|
|
94835
|
+
if (this.ariaLabel) return this.ariaLabel;
|
|
94836
|
+
return this.nAlerts > 0 ? `${msg("Diagnostics")}, ${this.nAlerts}` : msg("Diagnostics");
|
|
94837
|
+
}
|
|
94838
|
+
render() {
|
|
94839
|
+
return b`<obc-alert-button-item
|
|
94840
|
+
class="item"
|
|
94841
|
+
.nAlerts=${this.nAlerts}
|
|
94842
|
+
counter
|
|
94843
|
+
.activated=${this.activated}
|
|
94844
|
+
aria-label=${this.accessibleName}
|
|
94845
|
+
aria-expanded=${o$4(this.ariaExpanded ?? void 0)}
|
|
94846
|
+
><obi-diagnostic-badge slot="icon"></obi-diagnostic-badge
|
|
94847
|
+
></obc-alert-button-item>`;
|
|
94848
|
+
}
|
|
94849
|
+
static {
|
|
94850
|
+
this.styles = r$7(diagnostic_button_default);
|
|
94851
|
+
}
|
|
94852
|
+
};
|
|
94853
|
+
__decorate([n$4({ type: Number })], ObcDiagnosticButton.prototype, "nAlerts", void 0);
|
|
94854
|
+
__decorate([n$4({ type: Boolean })], ObcDiagnosticButton.prototype, "activated", void 0);
|
|
94855
|
+
__decorate([n$4({
|
|
94856
|
+
type: String,
|
|
94857
|
+
attribute: "aria-label"
|
|
94858
|
+
})], ObcDiagnosticButton.prototype, "ariaLabel", void 0);
|
|
94859
|
+
__decorate([n$4({
|
|
94860
|
+
type: String,
|
|
94861
|
+
attribute: "aria-expanded"
|
|
94862
|
+
})], ObcDiagnosticButton.prototype, "ariaExpanded", void 0);
|
|
94863
|
+
ObcDiagnosticButton = __decorate([customElement("obc-diagnostic-button"), localized()], ObcDiagnosticButton);
|
|
94864
|
+
//#endregion
|
|
94865
|
+
//#region src/components/diagnostic-menu/diagnostic-menu.css?inline
|
|
94866
|
+
var diagnostic_menu_default = i$7`* {
|
|
94867
|
+
-webkit-tap-highlight-color: transparent;
|
|
94868
|
+
}
|
|
94869
|
+
|
|
94870
|
+
:host([popover]) {
|
|
94871
|
+
/* The browser pins a popover to all four edges and lets the automatic
|
|
94872
|
+
margins centre it. Unpinning drops it back where it would normally sit,
|
|
94873
|
+
for the consumer to position from. */
|
|
94874
|
+
inset: auto;
|
|
94875
|
+
margin: 0;
|
|
94876
|
+
|
|
94877
|
+
padding: 0;
|
|
94878
|
+
border: none;
|
|
94879
|
+
background: none;
|
|
94880
|
+
color: inherit;
|
|
94881
|
+
|
|
94882
|
+
/* The menus scroll their own content. */
|
|
94883
|
+
overflow: visible;
|
|
94884
|
+
|
|
94885
|
+
/* The browser shrink-wraps a popover to its contents. */
|
|
94886
|
+
width: auto;
|
|
94887
|
+
height: auto;
|
|
94888
|
+
}
|
|
94889
|
+
|
|
94890
|
+
* {
|
|
94891
|
+
box-sizing: border-box;
|
|
94892
|
+
}
|
|
94893
|
+
|
|
94894
|
+
:host {
|
|
94895
|
+
display: block;
|
|
94896
|
+
}
|
|
94897
|
+
|
|
94898
|
+
.wrapper {
|
|
94899
|
+
border-radius: 8px;
|
|
94900
|
+
background: var(--container-global-color, #fcfcfc);
|
|
94901
|
+
/* Shadow/Floating */
|
|
94902
|
+
box-shadow: var(--shadow-floating);
|
|
94903
|
+
border-radius: var(--app-components-app-menu-border-radius);
|
|
94904
|
+
width: var(
|
|
94905
|
+
--app-components-alert-menu-width
|
|
94906
|
+
); /* beside the alert menu under one bar; the design's 696 px binds no token */
|
|
94907
|
+
height: 560px; /* the alert menu's box, so the two line up; the design hugs its rows */
|
|
94908
|
+
max-width: 100vw;
|
|
94909
|
+
display: flex;
|
|
94910
|
+
flex-direction: column;
|
|
94911
|
+
overflow: hidden; /* the card radius clips the rows and the footer */
|
|
94912
|
+
}
|
|
94913
|
+
|
|
94914
|
+
.title-container {
|
|
94915
|
+
display: flex;
|
|
94916
|
+
align-items: center;
|
|
94917
|
+
padding: var(--app-components-user-menu-margin-vertical)
|
|
94918
|
+
var(--app-components-user-menu-margin-horizontal)
|
|
94919
|
+
var(--app-components-user-menu-padding-vertical);
|
|
94920
|
+
}
|
|
94921
|
+
|
|
94922
|
+
.title {
|
|
94923
|
+
font-family: var(--global-typography-font-family);
|
|
94924
|
+
font-weight: var(--global-typography-ui-overline-font-weight);
|
|
94925
|
+
font-size: var(--global-typography-ui-overline-font-size);
|
|
94926
|
+
line-height: var(--global-typography-ui-overline-line-height);
|
|
94927
|
+
letter-spacing: var(--global-typography-ui-overline-letter-spacing);
|
|
94928
|
+
font-feature-settings:
|
|
94929
|
+
"liga" off,
|
|
94930
|
+
"clig" off,
|
|
94931
|
+
"ss04" on;
|
|
94932
|
+
margin: 0;
|
|
94933
|
+
padding-inline: var(--app-components-system-menu-padding-horizontal);
|
|
94934
|
+
color: var(--element-neutral-color);
|
|
94935
|
+
}
|
|
94936
|
+
|
|
94937
|
+
.list {
|
|
94938
|
+
flex: 1 1 0;
|
|
94939
|
+
min-height: 0; /* the list scrolls instead of growing the card */
|
|
94940
|
+
overflow: hidden;
|
|
94941
|
+
position: relative;
|
|
94942
|
+
padding: 4px; /* the design's row column inset */
|
|
94943
|
+
}
|
|
94944
|
+
|
|
94945
|
+
.empty-badge {
|
|
94946
|
+
display: block;
|
|
94947
|
+
width: 100%;
|
|
94948
|
+
height: 100%;
|
|
94949
|
+
color: var(--element-neutral-color);
|
|
94950
|
+
}
|
|
94951
|
+
|
|
94952
|
+
.action {
|
|
94953
|
+
display: flex;
|
|
94954
|
+
flex-shrink: 0;
|
|
94955
|
+
flex-wrap: wrap;
|
|
94956
|
+
align-items: center;
|
|
94957
|
+
gap: var(--app-components-alert-menu-button-spacing);
|
|
94958
|
+
padding: var(--app-components-user-menu-padding-vertical)
|
|
94959
|
+
var(--app-components-alert-menu-footer-padding-horizontal);
|
|
94960
|
+
border-top: 1px solid var(--border-divider-color);
|
|
94961
|
+
background: var(--container-global-color);
|
|
94962
|
+
}
|
|
94963
|
+
|
|
94964
|
+
::slotted(*) {
|
|
94965
|
+
display: block;
|
|
94966
|
+
will-change: transform;
|
|
94967
|
+
}
|
|
94968
|
+
`;
|
|
94969
|
+
//#endregion
|
|
94970
|
+
//#region src/components/diagnostic-menu/diagnostic-menu.ts
|
|
94971
|
+
var ObcDiagnosticMenu = class ObcDiagnosticMenu extends i$4 {
|
|
94972
|
+
constructor(..._args) {
|
|
94973
|
+
super(..._args);
|
|
94974
|
+
this.softDismiss = false;
|
|
94975
|
+
this.open = false;
|
|
94976
|
+
this.softDismissController = new PopoverController(this);
|
|
94977
|
+
this.menuTitle = "";
|
|
94978
|
+
this.canAckAll = false;
|
|
94979
|
+
this.showAckAllButton = true;
|
|
94980
|
+
this.showDiagnosticListButton = true;
|
|
94981
|
+
}
|
|
94982
|
+
handleAckAllVisibleClick() {
|
|
94983
|
+
this.dispatchEvent(new CustomEvent("ack-all-visible-click", { detail: { visibleElements: this.list.getVisibleElements() } }));
|
|
94984
|
+
}
|
|
94985
|
+
render() {
|
|
94986
|
+
return b`
|
|
94987
|
+
<div class="wrapper" part="wrapper">
|
|
94988
|
+
<div class="title-container">
|
|
94989
|
+
<h3 class="title">${this.menuTitle || msg("Diagnostics")}</h3>
|
|
94990
|
+
</div>
|
|
94991
|
+
<obc-alert-list class="list">
|
|
94992
|
+
<slot></slot>
|
|
94993
|
+
<slot name="empty-title" slot="empty-title"
|
|
94994
|
+
>${msg("No diagnostics")}</slot
|
|
94995
|
+
>
|
|
94996
|
+
<slot name="empty-description" slot="empty-description"
|
|
94997
|
+
>${msg("Go to the 'Diagnostics list' for more details.")}</slot
|
|
94998
|
+
>
|
|
94999
|
+
<slot name="empty-icon" slot="empty-icon"
|
|
95000
|
+
><obi-diagnostic-badge class="empty-badge"></obi-diagnostic-badge
|
|
95001
|
+
></slot>
|
|
95002
|
+
</obc-alert-list>
|
|
95003
|
+
<div class="action">
|
|
95004
|
+
${this.showAckAllButton ? b`<obc-button
|
|
95005
|
+
variant="normal"
|
|
95006
|
+
.disabled=${!this.canAckAll}
|
|
95007
|
+
data-testid="ack-all-visible-button"
|
|
95008
|
+
@click=${this.handleAckAllVisibleClick}
|
|
95009
|
+
>
|
|
95010
|
+
${msg("ACK all visible")}
|
|
95011
|
+
</obc-button>` : A}
|
|
95012
|
+
${this.showDiagnosticListButton ? b`<obc-button
|
|
95013
|
+
variant="normal"
|
|
95014
|
+
showTrailingIcon
|
|
95015
|
+
data-testid="diagnostic-list-button"
|
|
95016
|
+
@click=${() => this.dispatchEvent(new CustomEvent("go-to-diagnostic-list-click"))}
|
|
95017
|
+
>
|
|
95018
|
+
${msg("Diagnostics list")}
|
|
95019
|
+
<obi-chevron-right-google
|
|
95020
|
+
slot="trailing-icon"
|
|
95021
|
+
></obi-chevron-right-google>
|
|
95022
|
+
</obc-button>` : A}
|
|
95023
|
+
</div>
|
|
95024
|
+
</div>
|
|
95025
|
+
`;
|
|
95026
|
+
}
|
|
95027
|
+
static {
|
|
95028
|
+
this.styles = r$7(diagnostic_menu_default);
|
|
95029
|
+
}
|
|
95030
|
+
};
|
|
95031
|
+
__decorate([n$4({ type: Boolean })], ObcDiagnosticMenu.prototype, "softDismiss", void 0);
|
|
95032
|
+
__decorate([n$4({ type: Boolean })], ObcDiagnosticMenu.prototype, "open", void 0);
|
|
95033
|
+
__decorate([n$4({ type: String })], ObcDiagnosticMenu.prototype, "menuTitle", void 0);
|
|
95034
|
+
__decorate([n$4({ type: Boolean })], ObcDiagnosticMenu.prototype, "canAckAll", void 0);
|
|
95035
|
+
__decorate([n$4({
|
|
95036
|
+
type: Boolean,
|
|
95037
|
+
attribute: false
|
|
95038
|
+
})], ObcDiagnosticMenu.prototype, "showAckAllButton", void 0);
|
|
95039
|
+
__decorate([n$4({
|
|
95040
|
+
type: Boolean,
|
|
95041
|
+
attribute: false
|
|
95042
|
+
})], ObcDiagnosticMenu.prototype, "showDiagnosticListButton", void 0);
|
|
95043
|
+
__decorate([e$4(".list")], ObcDiagnosticMenu.prototype, "list", void 0);
|
|
95044
|
+
ObcDiagnosticMenu = __decorate([customElement("obc-diagnostic-menu"), localized()], ObcDiagnosticMenu);
|
|
95045
|
+
//#endregion
|
|
94512
95046
|
//#region src/components/elevated-card-radio-group/elevated-card-radio-group.css?inline
|
|
94513
95047
|
var elevated_card_radio_group_default = i$7`* {
|
|
94514
95048
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -114017,6 +114551,7 @@ var top_bar_default = i$7`* {
|
|
|
114017
114551
|
.apps-button,
|
|
114018
114552
|
::slotted([slot="asset-picker"]),
|
|
114019
114553
|
::slotted([slot="command-button"]),
|
|
114554
|
+
::slotted([slot="diagnostics"]),
|
|
114020
114555
|
::slotted([slot="clock"]) {
|
|
114021
114556
|
flex-shrink: 0;
|
|
114022
114557
|
}
|
|
@@ -114471,6 +115006,7 @@ var ObcTopBar = class ObcTopBar extends i$4 {
|
|
|
114471
115006
|
<div class="alert-container">
|
|
114472
115007
|
<slot name="alerts"></slot>
|
|
114473
115008
|
</div>
|
|
115009
|
+
<slot name="diagnostics"></slot>
|
|
114474
115010
|
${this.showDimmingButton && !this.inactive ? b`<obc-icon-button
|
|
114475
115011
|
class="dimming-button"
|
|
114476
115012
|
part="dimming-button"
|