@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.4 → 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 +548 -6
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +543 -7
- 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 +101 -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 +103 -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 +6 -0
- package/dist/components/top-bar/top-bar.css.js.map +1 -1
- package/dist/components/top-bar/top-bar.d.ts +9 -1
- package/dist/components/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/top-bar/top-bar.js +2 -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
- package/src/components/alert-button-item/alert-button-item.css +13 -1
- package/src/components/alert-button-item/alert-button-item.spec.ts +69 -0
- package/src/components/alert-button-item/alert-button-item.stories.ts +13 -0
- package/src/components/alert-button-item/alert-button-item.ts +32 -2
- package/src/components/alert-subsystem-button/alert-subsystem-button.css +42 -0
- package/src/components/alert-subsystem-button/alert-subsystem-button.spec.ts +142 -0
- package/src/components/alert-subsystem-button/alert-subsystem-button.stories.ts +69 -0
- package/src/components/alert-subsystem-button/alert-subsystem-button.ts +168 -0
- package/src/components/alert-subsystem-counter/alert-subsystem-counter.css +4 -0
- package/src/components/alert-subsystem-counter/alert-subsystem-counter.ts +10 -2
- package/src/components/diagnostic-button/diagnostic-button.css +7 -0
- package/src/components/diagnostic-button/diagnostic-button.spec.ts +80 -0
- package/src/components/diagnostic-button/diagnostic-button.stories.ts +30 -0
- package/src/components/diagnostic-button/diagnostic-button.ts +100 -0
- package/src/components/diagnostic-menu/diagnostic-menu.css +69 -0
- package/src/components/diagnostic-menu/diagnostic-menu.spec.ts +114 -0
- package/src/components/diagnostic-menu/diagnostic-menu.stories.ts +135 -0
- package/src/components/diagnostic-menu/diagnostic-menu.ts +171 -0
- package/src/components/icon-button/icon-button.stories.ts +51 -1
- package/src/components/icon-button/icon-button.ts +2 -2
- package/src/components/top-bar/top-bar-asset-picker.spec.ts +54 -0
- package/src/components/top-bar/top-bar-diagnostics.spec.ts +59 -0
- package/src/components/top-bar/top-bar.css +6 -0
- package/src/components/top-bar/top-bar.stories.ts +188 -78
- package/src/components/top-bar/top-bar.ts +11 -1
- package/src/generated/locales/es-419.ts +6 -0
- package/src/generated/locales/fi-FI.ts +6 -0
package/custom-elements.json
CHANGED
|
@@ -3790,7 +3790,7 @@
|
|
|
3790
3790
|
{
|
|
3791
3791
|
"kind": "variable",
|
|
3792
3792
|
"name": "ObcAlertButtonItem",
|
|
3793
|
-
"default": "class ObcAlertButtonItem extends LitElement { constructor(..._args) { super(..._args); this.type = \"normal\"; this.nAlerts = 0; this.counter = false; this.globalCounter = false; this.globalCounterType = ObcAlertCounterItemType.Badges; this.counts = {}; this.shelvedCount = 0; this.blinking = false; this.flashingSpeed = FlashingSpeed.Default; this.fillHeight = false; this.ariaLabel = null; this.flashing = new FlashingController(this, () => this.resolvedFlashingSpeed); } get resolvedFlashingSpeed() { if (this.globalCounter || !this.blinking || this.nAlerts <= 0 || this.alertType === void 0) return FlashingSpeed.Fixed; return resolveFlashingSpeed(this.flashingSpeed, this.alertType, AlertFlashPhase.Active); } get accessibleName() { if (this.ariaLabel) return this.ariaLabel; const parts = [msg(\"Alerts\")]; if (this.nAlerts > 0) parts.push(String(this.nAlerts)); if (this.globalCounter) { const breakdown = alertCountsLabel(this.counts, this.shelvedCount); if (breakdown) parts.push(breakdown); } else if (this.nAlerts > 0 && this.alertType) parts.push(alertTypeLabel(this.alertType)); return parts.join(\", \"); } renderTwotoneIcon() { switch (this.alertType ? getAlertTwotoneComponent(this.alertType) : AlertTwotoneComponent.Caution) { case AlertTwotoneComponent.Critical: return html`<obi-alerts-critical-twotone useCssColor class=\"icon\" ></obi-alerts-critical-twotone>`; case AlertTwotoneComponent.Diagnostic: return html`<obi-alerts-diagnostic-twotone useCssColor class=\"icon\" ></obi-alerts-diagnostic-twotone>`; case AlertTwotoneComponent.Warning: return html`<obi-alerts-warning-twotone useCssColor class=\"icon\" ></obi-alerts-warning-twotone>`; case AlertTwotoneComponent.Caution: return html`<obi-alerts-caution-twotone useCssColor class=\"icon\" ></obi-alerts-caution-twotone>`; default: return html`<obi-alerts-alarm-twotone useCssColor class=\"icon\" ></obi-alerts-alarm-twotone>`; } } /** The blink layer shows the opposite of the steady layer in each flash. */ renderIcon(styleType, blinkLayer) { if (this.nAlerts === 0) return html`<obi-alerts class=\"icon\"></obi-alerts>`; const enhanced = styleType === \"enhanced\"; if (blinkLayer) return enhanced ? this.renderTwotoneIcon() : html`<obi-alerts class=\"icon\"></obi-alerts>`; return enhanced || this.globalCounter ? html`<obi-alerts-active class=\"icon\"></obi-alerts-active>` : this.renderTwotoneIcon(); } renderCount() { return html`<span class=\"count\">${this.nAlerts}</span>`; } renderCounts() { if (rankAlertCounts(this.counts).length === 0 && this.shelvedCount <= 0) return nothing; return html`<obc-alert-counter-item .type=${this.globalCounterType} .counts=${this.counts} .shelvedCount=${this.shelvedCount} ></obc-alert-counter-item>`; } render() { const styleType = this.globalCounter ? \"normal\" : this.type; const showCount = this.nAlerts > 0 && (this.globalCounter || this.counter && styleType !== \"flat\"); const tempo = this.resolvedFlashingSpeed; return html` <button class=${classMap({ \"alert-button\": true, [`type-${styleType}`]: true, [`alert-type-${this.alertType ?? \"none\"}`]: true, counter: showCount && !this.globalCounter, \"global-counter\": this.globalCounter, \"fill-height\": this.fillHeight, [`flash-${tempo}`]: true })} aria-label=${this.accessibleName} > ${tempo === FlashingSpeed.Fixed ? nothing : html`<div class=\"blink\" aria-hidden=\"true\"> <div class=\"content\"> ${this.renderIcon(styleType, true)} ${showCount ? this.renderCount() : nothing} </div> </div>`} <div class=\"visible-wrapper\"> ${this.globalCounter ? this.renderCounts() : nothing} <div class=\"content\">
|
|
3793
|
+
"default": "class ObcAlertButtonItem extends LitElement { constructor(..._args) { super(..._args); this.type = \"normal\"; this.nAlerts = 0; this.counter = false; this.globalCounter = false; this.globalCounterType = ObcAlertCounterItemType.Badges; this.counts = {}; this.shelvedCount = 0; this.blinking = false; this.flashingSpeed = FlashingSpeed.Default; this.fillHeight = false; this.activated = false; this.ariaLabel = null; this.ariaExpanded = null; this.hasSlottedIcon = false; this.flashing = new FlashingController(this, () => this.resolvedFlashingSpeed); } willUpdate(changedProperties) { super.willUpdate(changedProperties); this.hasSlottedIcon = this.querySelector(\":scope > [slot=\\\"icon\\\"]\") !== null; } get resolvedFlashingSpeed() { if (this.globalCounter || this.hasSlottedIcon || !this.blinking || this.nAlerts <= 0 || this.alertType === void 0) return FlashingSpeed.Fixed; return resolveFlashingSpeed(this.flashingSpeed, this.alertType, AlertFlashPhase.Active); } get accessibleName() { if (this.ariaLabel) return this.ariaLabel; const parts = [msg(\"Alerts\")]; if (this.nAlerts > 0) parts.push(String(this.nAlerts)); if (this.globalCounter) { const breakdown = alertCountsLabel(this.counts, this.shelvedCount); if (breakdown) parts.push(breakdown); } else if (this.nAlerts > 0 && this.alertType) parts.push(alertTypeLabel(this.alertType)); return parts.join(\", \"); } renderTwotoneIcon() { switch (this.alertType ? getAlertTwotoneComponent(this.alertType) : AlertTwotoneComponent.Caution) { case AlertTwotoneComponent.Critical: return html`<obi-alerts-critical-twotone useCssColor class=\"icon\" ></obi-alerts-critical-twotone>`; case AlertTwotoneComponent.Diagnostic: return html`<obi-alerts-diagnostic-twotone useCssColor class=\"icon\" ></obi-alerts-diagnostic-twotone>`; case AlertTwotoneComponent.Warning: return html`<obi-alerts-warning-twotone useCssColor class=\"icon\" ></obi-alerts-warning-twotone>`; case AlertTwotoneComponent.Caution: return html`<obi-alerts-caution-twotone useCssColor class=\"icon\" ></obi-alerts-caution-twotone>`; default: return html`<obi-alerts-alarm-twotone useCssColor class=\"icon\" ></obi-alerts-alarm-twotone>`; } } /** The blink layer shows the opposite of the steady layer in each flash. */ renderIcon(styleType, blinkLayer) { if (this.nAlerts === 0) return html`<obi-alerts class=\"icon\"></obi-alerts>`; const enhanced = styleType === \"enhanced\"; if (blinkLayer) return enhanced ? this.renderTwotoneIcon() : html`<obi-alerts class=\"icon\"></obi-alerts>`; return enhanced || this.globalCounter ? html`<obi-alerts-active class=\"icon\"></obi-alerts-active>` : this.renderTwotoneIcon(); } renderCount() { return html`<span class=\"count\">${this.nAlerts}</span>`; } renderCounts() { if (rankAlertCounts(this.counts).length === 0 && this.shelvedCount <= 0) return nothing; return html`<obc-alert-counter-item .type=${this.globalCounterType} .counts=${this.counts} .shelvedCount=${this.shelvedCount} ></obc-alert-counter-item>`; } render() { const styleType = this.globalCounter ? \"normal\" : this.type; const showCount = this.nAlerts > 0 && (this.globalCounter || this.counter && styleType !== \"flat\"); const tempo = this.resolvedFlashingSpeed; return html` <button class=${classMap({ \"alert-button\": true, [`type-${styleType}`]: true, [`alert-type-${this.alertType ?? \"none\"}`]: true, counter: showCount && !this.globalCounter, \"global-counter\": this.globalCounter, \"fill-height\": this.fillHeight, selected: this.activated, [`flash-${tempo}`]: true })} aria-label=${this.accessibleName} aria-expanded=${ifDefined(this.ariaExpanded === \"true\" || this.ariaExpanded === \"false\" ? this.ariaExpanded : void 0)} > ${tempo === FlashingSpeed.Fixed ? nothing : html`<div class=\"blink\" aria-hidden=\"true\"> <div class=\"content\"> ${this.renderIcon(styleType, true)} ${showCount ? this.renderCount() : nothing} </div> </div>`} <div class=\"visible-wrapper\"> ${this.globalCounter ? this.renderCounts() : nothing} <div class=\"content\"> <slot name=\"icon\" @slotchange=${() => this.requestUpdate()} >${this.renderIcon(styleType, false)}</slot > ${showCount ? this.renderCount() : nothing} </div> </div> </button> <span class=\"announcement\" aria-live=\"polite\" aria-atomic=\"true\" >${this.accessibleName}</span > `; } static { this.styles = unsafeCSS(alert_button_item_default); } }"
|
|
3794
3794
|
}
|
|
3795
3795
|
],
|
|
3796
3796
|
"exports": [
|
|
@@ -4226,6 +4226,27 @@
|
|
|
4226
4226
|
}
|
|
4227
4227
|
]
|
|
4228
4228
|
},
|
|
4229
|
+
{
|
|
4230
|
+
"kind": "javascript-module",
|
|
4231
|
+
"path": "dist/components/alert-subsystem-button/alert-subsystem-button.js",
|
|
4232
|
+
"declarations": [
|
|
4233
|
+
{
|
|
4234
|
+
"kind": "variable",
|
|
4235
|
+
"name": "ObcAlertSubsystemButton",
|
|
4236
|
+
"default": "class ObcAlertSubsystemButton extends LitElement { constructor(..._args) { super(..._args); this.counts = {}; this.hasAlert = false; this.label = \"\"; this.emptyText = \"No alerts\"; this.disabled = false; this.counterDisabled = false; this.listDisabled = false; this.listButtonLabel = \"\"; this.ariaLabel = null; this.handleCounterClick = (e) => { e.stopPropagation(); this.dispatchEvent(new CustomEvent(\"counter-click\")); }; this.handleListClick = (e) => { e.stopPropagation(); this.dispatchEvent(new CustomEvent(\"alert-list-click\")); }; } /** The flag the counter gets: `hasAlert` with nothing to draw reads as none. */ get showsCounts() { return this.hasAlert && rankAlertCounts(this.counts).length > 0; } get counterName() { if (this.ariaLabel) return this.ariaLabel; const state = this.showsCounts ? alertCountsLabel(this.counts) : this.emptyText; return [this.label, state].filter((part) => part !== \"\").join(\", \") || msg(\"Alerts\"); } render() { return html` <div class=\"wrapper\"> <button class=\"counter-button\" data-testid=\"counter-button\" ?disabled=${this.disabled || this.counterDisabled} aria-label=${this.counterName} @click=${this.handleCounterClick} > <div class=\"visible-wrapper\"> <obc-alert-subsystem-counter class=\"counter\" .label=${this.label} .hasAlert=${this.showsCounts} .emptyText=${this.emptyText} > <slot name=\"icon\" slot=\"icon\"></slot> <obc-alert-counter-item slot=\"badges\" .counts=${this.counts} ></obc-alert-counter-item> </obc-alert-subsystem-counter> </div> </button> <obc-icon-button class=\"list-button\" data-testid=\"list-button\" variant=\"normal\" cornerRight ?disabled=${this.disabled || this.listDisabled} aria-label=${this.listButtonLabel || msg(\"Alert list\")} @click=${this.handleListClick} > <slot name=\"list-icon\" ><obi-alert-list aria-hidden=\"true\"></obi-alert-list ></slot> </obc-icon-button> </div> `; } static { this.styles = unsafeCSS(alert_subsystem_button_default); } }"
|
|
4237
|
+
}
|
|
4238
|
+
],
|
|
4239
|
+
"exports": [
|
|
4240
|
+
{
|
|
4241
|
+
"kind": "js",
|
|
4242
|
+
"name": "ObcAlertSubsystemButton",
|
|
4243
|
+
"declaration": {
|
|
4244
|
+
"name": "ObcAlertSubsystemButton",
|
|
4245
|
+
"module": "dist/components/alert-subsystem-button/alert-subsystem-button.js"
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
]
|
|
4249
|
+
},
|
|
4229
4250
|
{
|
|
4230
4251
|
"kind": "javascript-module",
|
|
4231
4252
|
"path": "dist/components/alert-subsystem-counter/alert-subsystem-counter.js",
|
|
@@ -4238,7 +4259,7 @@
|
|
|
4238
4259
|
{
|
|
4239
4260
|
"kind": "variable",
|
|
4240
4261
|
"name": "ObcAlertSubsystemCounter",
|
|
4241
|
-
"default": "class ObcAlertSubsystemCounter extends LitElement { constructor(..._args) { super(..._args); this.label = \"\"; this.orientation = \"horizontal\"; this.hasAlert = false; this.emptyText = \"No alerts\"; this.hasIcon = false; } handleIconSlotChange(e) { const slot = e.target; this.hasIcon = slot.assignedNodes({ flatten: true }).length > 0; } render() { return html` <div class=${classMap({ frame: true, [\"orientation-\" + this.orientation]: true, \"has-alert\": this.hasAlert })} > <div class
|
|
4262
|
+
"default": "class ObcAlertSubsystemCounter extends LitElement { constructor(..._args) { super(..._args); this.label = \"\"; this.orientation = \"horizontal\"; this.hasAlert = false; this.emptyText = \"No alerts\"; this.hasIcon = false; } handleIconSlotChange(e) { const slot = e.target; this.hasIcon = slot.assignedNodes({ flatten: true }).length > 0; } render() { return html` <div part=\"frame\" class=${classMap({ frame: true, [\"orientation-\" + this.orientation]: true, \"has-alert\": this.hasAlert })} > <div class=${classMap({ \"leading-container\": true, \"no-leading\": !this.hasIcon && this.label === \"\" })} > <div class=${classMap({ icon: true, \"no-icon\": !this.hasIcon })}> <slot name=\"icon\" @slotchange=${this.handleIconSlotChange}></slot> </div> <div class=\"label\">${this.label}</div> </div> <div class=\"trailing-container\"> ${this.hasAlert ? html`<slot name=\"badges\" class=\"badges\"></slot>` : html`<span class=\"empty\">${this.emptyText}</span>`} </div> </div> `; } static { this.styles = unsafeCSS(alert_subsystem_counter_default); } }"
|
|
4242
4263
|
}
|
|
4243
4264
|
],
|
|
4244
4265
|
"exports": [
|
|
@@ -4968,6 +4989,48 @@
|
|
|
4968
4989
|
}
|
|
4969
4990
|
]
|
|
4970
4991
|
},
|
|
4992
|
+
{
|
|
4993
|
+
"kind": "javascript-module",
|
|
4994
|
+
"path": "dist/components/diagnostic-button/diagnostic-button.js",
|
|
4995
|
+
"declarations": [
|
|
4996
|
+
{
|
|
4997
|
+
"kind": "variable",
|
|
4998
|
+
"name": "ObcDiagnosticButton",
|
|
4999
|
+
"default": "class ObcDiagnosticButton extends LitElement { constructor(..._args) { super(..._args); this.nAlerts = 0; this.activated = false; this.ariaLabel = null; this.ariaExpanded = null; } get accessibleName() { if (this.ariaLabel) return this.ariaLabel; return this.nAlerts > 0 ? `${msg(\"Diagnostics\")}, ${this.nAlerts}` : msg(\"Diagnostics\"); } render() { return html`<obc-alert-button-item class=\"item\" .nAlerts=${this.nAlerts} counter .activated=${this.activated} aria-label=${this.accessibleName} aria-expanded=${ifDefined(this.ariaExpanded ?? void 0)} ><obi-diagnostic-badge slot=\"icon\"></obi-diagnostic-badge ></obc-alert-button-item>`; } static { this.styles = unsafeCSS(diagnostic_button_default); } }"
|
|
5000
|
+
}
|
|
5001
|
+
],
|
|
5002
|
+
"exports": [
|
|
5003
|
+
{
|
|
5004
|
+
"kind": "js",
|
|
5005
|
+
"name": "ObcDiagnosticButton",
|
|
5006
|
+
"declaration": {
|
|
5007
|
+
"name": "ObcDiagnosticButton",
|
|
5008
|
+
"module": "dist/components/diagnostic-button/diagnostic-button.js"
|
|
5009
|
+
}
|
|
5010
|
+
}
|
|
5011
|
+
]
|
|
5012
|
+
},
|
|
5013
|
+
{
|
|
5014
|
+
"kind": "javascript-module",
|
|
5015
|
+
"path": "dist/components/diagnostic-menu/diagnostic-menu.js",
|
|
5016
|
+
"declarations": [
|
|
5017
|
+
{
|
|
5018
|
+
"kind": "variable",
|
|
5019
|
+
"name": "ObcDiagnosticMenu",
|
|
5020
|
+
"default": "class ObcDiagnosticMenu extends LitElement { constructor(..._args) { super(..._args); this.softDismiss = false; this.open = false; this.softDismissController = new PopoverController(this); this.menuTitle = \"\"; this.canAckAll = false; this.showAckAllButton = true; this.showDiagnosticListButton = true; } handleAckAllVisibleClick() { this.dispatchEvent(new CustomEvent(\"ack-all-visible-click\", { detail: { visibleElements: this.list.getVisibleElements() } })); } render() { return html` <div class=\"wrapper\" part=\"wrapper\"> <div class=\"title-container\"> <h3 class=\"title\">${this.menuTitle || msg(\"Diagnostics\")}</h3> </div> <obc-alert-list class=\"list\"> <slot></slot> <slot name=\"empty-title\" slot=\"empty-title\" >${msg(\"No diagnostics\")}</slot > <slot name=\"empty-description\" slot=\"empty-description\" >${msg(\"Go to the 'Diagnostics list' for more details.\")}</slot > <slot name=\"empty-icon\" slot=\"empty-icon\" ><obi-diagnostic-badge class=\"empty-badge\"></obi-diagnostic-badge ></slot> </obc-alert-list> <div class=\"action\"> ${this.showAckAllButton ? html`<obc-button variant=\"normal\" .disabled=${!this.canAckAll} data-testid=\"ack-all-visible-button\" @click=${this.handleAckAllVisibleClick} > ${msg(\"ACK all visible\")} </obc-button>` : nothing} ${this.showDiagnosticListButton ? html`<obc-button variant=\"normal\" showTrailingIcon data-testid=\"diagnostic-list-button\" @click=${() => this.dispatchEvent(new CustomEvent(\"go-to-diagnostic-list-click\"))} > ${msg(\"Diagnostics list\")} <obi-chevron-right-google slot=\"trailing-icon\" ></obi-chevron-right-google> </obc-button>` : nothing} </div> </div> `; } static { this.styles = unsafeCSS(diagnostic_menu_default); } }"
|
|
5021
|
+
}
|
|
5022
|
+
],
|
|
5023
|
+
"exports": [
|
|
5024
|
+
{
|
|
5025
|
+
"kind": "js",
|
|
5026
|
+
"name": "ObcDiagnosticMenu",
|
|
5027
|
+
"declaration": {
|
|
5028
|
+
"name": "ObcDiagnosticMenu",
|
|
5029
|
+
"module": "dist/components/diagnostic-menu/diagnostic-menu.js"
|
|
5030
|
+
}
|
|
5031
|
+
}
|
|
5032
|
+
]
|
|
5033
|
+
},
|
|
4971
5034
|
{
|
|
4972
5035
|
"kind": "javascript-module",
|
|
4973
5036
|
"path": "dist/components/divider/divider.js",
|
|
@@ -5420,7 +5483,7 @@
|
|
|
5420
5483
|
{
|
|
5421
5484
|
"kind": "variable",
|
|
5422
5485
|
"name": "ObcIconButton",
|
|
5423
|
-
"default": "class ObcIconButton extends LitElement { constructor(..._args) { super(..._args); this.variant = \"normal\"; this.activated = false; this.cornerLeft = false; this.cornerRight = false; this.activeColor = false; this.wide = false; this.disabled = false; this.progress = void 0; this.hasLabel = false; this.showDivider = true; this.focusable = true; this.ariaLabel = null; } /** Focus lands on the button inside, not on the host. */ focus(options) { this.shadowRoot?.querySelector(\"button\")?.focus(options); } get progressSpinner() { if (this.progress === void 0) return nothing; if (this.progress === 100) return html`<div class=\"progress-spinner\"> <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" > <circle cx=\"20\" cy=\"20\" r=\"18\" stroke=\"
|
|
5486
|
+
"default": "class ObcIconButton extends LitElement { constructor(..._args) { super(..._args); this.variant = \"normal\"; this.activated = false; this.cornerLeft = false; this.cornerRight = false; this.activeColor = false; this.wide = false; this.disabled = false; this.progress = void 0; this.hasLabel = false; this.showDivider = true; this.focusable = true; this.ariaLabel = null; } /** Focus lands on the button inside, not on the host. */ focus(options) { this.shadowRoot?.querySelector(\"button\")?.focus(options); } get progressSpinner() { if (this.progress === void 0) return nothing; if (this.progress === 100) return html`<div class=\"progress-spinner\"> <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" > <circle cx=\"20\" cy=\"20\" r=\"18\" stroke=\"var(--instrument-enhanced-secondary-color)\" stroke-width=\"4\" fill=\"none\" /> </svg> </div>`; const angleRad = degToRad(this.progress * .95 * 3.6); const x = 20 + 18 * Math.sin(angleRad); const y = 20 - 18 * Math.cos(angleRad); return html`<div class=\"progress-spinner\"> <svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" > <circle cx=\"20\" cy=\"20\" r=\"18\" stroke=\"var(--container-backdrop-color)\" stroke-width=\"4\" fill=\"none\" /> <path d=\"M20 2 A18 18 0 ${angleRad > Math.PI ? 1 : 0} 1 ${x} ${y}\" stroke=\"var(--instrument-enhanced-secondary-color)\" stroke-width=\"4\" stroke-linecap=\"round\" /> </svg> </div>`; } render() { return html` <button class=${classMap({ wrapper: true, [\"variant-\" + this.variant]: true, activated: this.activated, \"corner-left\": this.cornerLeft, \"corner-right\": this.cornerRight, \"active-color\": this.activeColor, \"has-label\": this.hasLabel, wide: this.wide, progress: this.progress !== void 0, \"hide-divider\": !this.showDivider })} ?disabled=${this.disabled} aria-label=${ifDefined(this.ariaLabel ?? void 0)} tabindex=${ifDefined(this.focusable ? void 0 : -1)} part=\"wrapper\" > ${this.progress !== void 0 ? this.progressSpinner : nothing} <div class=\"visible-wrapper\" part=\"visible-wrapper\"> <div class=\"icon\" part=\"icon\"> <slot></slot> </div> </div> ${this.hasLabel ? html`<div class=\"label\" part=\"label\"> <slot name=\"label\"></slot> </div>` : nothing} </button> `; } static { this.styles = unsafeCSS(icon_button_default); } }"
|
|
5424
5487
|
}
|
|
5425
5488
|
],
|
|
5426
5489
|
"exports": [
|
|
@@ -7463,7 +7526,7 @@
|
|
|
7463
7526
|
{
|
|
7464
7527
|
"kind": "variable",
|
|
7465
7528
|
"name": "ObcTopBar",
|
|
7466
|
-
"default": "class ObcTopBar extends LitElement { constructor(..._args) { super(..._args); this.appTitle = \"App\"; this.pageName = \"Page\"; this.menuButtonIcon = \"menu\"; this.menuButtonActivated = false; this.dimmingButtonActivated = false; this.appsButtonActivated = false; this.moreButtonActivated = false; this.userButtonActivated = false; this.userButtonDisabled = false; this.tall = false; this.wideMenuButton = false; this.showAppsButton = false; this.showDimmingButton = false; this.showUserButton = false; this.showClock = false; this.showDate = false; this.showAppIcon = false; this.inactive = false; this.appButtonBreakpointPx = 500; this.dimmingButtonBreakpointPx = 500; this.appTitleBreakpointPx = 500; this.userButtonBreakpointPx = 500; this.appIconBreakpointPx = 500; this.settings = false; this.breadcrumbItems = []; this.leftButtonEvent = null; this.leftButtonTimeout = null; this.isLeftButtonDown = false; this.isEmergencyBrightness = false; } dimmingButtonClicked() { /** * Fired when the dimming (day/night) button is clicked. * @event dimming-button-clicked */ this.dispatchEvent(new CustomEvent(\"dimming-button-clicked\")); } appsButtonClicked() { /** * Fired when the apps button is clicked. * @event apps-button-clicked */ this.dispatchEvent(new CustomEvent(\"apps-button-clicked\")); } /** * Copies the deprecated `leftMoreButtonActivated` into * `moreButtonActivated`. A plain field rather than a getter/setter alias: * the Vue wrapper writes every prop back on its second render, and a getter * would then write `false` over the new property. */ willUpdate(changed) { super.willUpdate(changed); if (changed.has(\"leftMoreButtonActivated\") && this.leftMoreButtonActivated !== void 0) this.moreButtonActivated = this.leftMoreButtonActivated; } moreButtonClicked() { /** * Fired when the more button is clicked. * @event more-button-clicked */ this.dispatchEvent(new CustomEvent(\"more-button-clicked\")); /** * Deprecated alias of `more-button-clicked`; removed in 4.0.0. * @event left-more-button-clicked */ this.dispatchEvent(new CustomEvent(\"left-more-button-clicked\")); } userButtonClicked() { /** * Fired when the user/profile button is clicked. * @event user-button-clicked */ this.dispatchEvent(new CustomEvent(\"user-button-clicked\")); } leftButtonDown(event) { this.leftButtonEvent = event; this.isLeftButtonDown = true; this.leftButtonTimeout = setTimeout(() => { this.leftButtonEvent = null; this.dispatchEvent(new CustomEvent(\"emergency-brightness-start\")); this.isEmergencyBrightness = true; }, 500); } /** * Ends a hold. The event a short press stands for is dispatched from the * `click` that follows, not here: a menu opened while the pointer is still * going up gets closed again by that same click in current browsers, which * see it as a click outside a popover that has just opened. */ leftButtonUp() { if (this.leftButtonTimeout) { clearTimeout(this.leftButtonTimeout); this.leftButtonTimeout = null; } if (this.isEmergencyBrightness) { this.dispatchEvent(new CustomEvent(\"emergency-brightness-stop\")); this.isEmergencyBrightness = false; } this.isLeftButtonDown = false; } /** * Sends the event a press of the hold button stands for. * * Enter, Space and a screen reader's activate command arrive as a `click` * with `detail` 0 and no pointer press before it, so they get the event * directly. A pointer click arrives with `detail` 1 after the press: the * event stored on the way down is sent now, unless the press ran long * enough to start emergency brightness, which used it up. */ leftButtonActivate(event, type) { if (event.detail === 0) { this.dispatchEvent(new CustomEvent(type)); return; } if (!this.leftButtonEvent) return; this.dispatchEvent(this.leftButtonEvent); this.leftButtonEvent = null; } leftButtonLeave() { if (!this.isLeftButtonDown) return; if (this.leftButtonTimeout) { clearInterval(this.leftButtonTimeout); this.leftButtonTimeout = null; } if (this.isEmergencyBrightness) { this.dispatchEvent(new CustomEvent(\"emergency-brightness-stop\")); this.isEmergencyBrightness = false; } this.isLeftButtonDown = false; } render() { const leftGroup = []; if (this.settings) { leftGroup.push(html`<div class=\"menu-button\"> <obc-icon-button variant=\"flat\" aria-label=${msg(\"Close\")} @pointerdown=${() => this.leftButtonDown(new CustomEvent(\"close\"))} @pointerup=${() => this.leftButtonUp()} @pointerleave=${() => this.leftButtonLeave()} @click=${(event) => this.leftButtonActivate(event, \"close\")} > <obi-close-google></obi-close-google> </obc-icon-button> </div>`); leftGroup.push(html`<obc-icon-button variant=\"flat\" aria-label=${msg(\"Back\")} @click=${() => this.dispatchEvent(new CustomEvent(\"back\"))} > <obi-arrow-left-google></obi-arrow-left-google> </obc-icon-button>`); leftGroup.push(html`<div class=\"title\">${this.appTitle}</div>`); leftGroup.push(html`<obc-breadcrumb .items=${this.breadcrumbItems} @breadcrumb-click=${(e) => this.dispatchEvent(new CustomEvent(\"breadcrumb-click\", { detail: e.detail }))} ></obc-breadcrumb>`); } else { if (!this.inactive) leftGroup.push(html`<div class=\"menu-button ${this.wideMenuButton ? \"wide\" : null}\"> <obc-icon-button variant=\"flat\" aria-label=${this.menuButtonIcon === \"menu\" ? msg(\"Menu\") : msg(\"Home\")} @pointerdown=${() => this.leftButtonDown(new CustomEvent(\"menu-button-clicked\"))} @pointerup=${() => this.leftButtonUp()} @pointerleave=${() => this.leftButtonLeave()} @click=${(event) => this.leftButtonActivate(event, \"menu-button-clicked\")} ?activated=${this.menuButtonActivated} > ${this.menuButtonIcon === \"menu\" ? html`<obi-menu-iec></obi-menu-iec>` : html`<obi-home></obi-home>`} </obc-icon-button> </div>`); if (this.showAppIcon) leftGroup.push(html`<div class=\"app-icon\"><slot name=\"app-icon\"></slot></div>`); leftGroup.push(html`<div class=\"title\">${this.appTitle}</div>`); leftGroup.push(html`<div class=\"page-name\">${this.pageName}</div>`); leftGroup.push(html`<slot name=\"command-button\"></slot>`); } const breakpointMoreButton = Math.max(this.appButtonBreakpointPx, this.dimmingButtonBreakpointPx, this.userButtonBreakpointPx, this.appIconBreakpointPx); return html` <style> @media (max-width: ${breakpointMoreButton}px) { .more-button { display: revert !important; } .group.left > * { margin-right: 4px; margin-left: 4px; } } @media (max-width: ${this.appButtonBreakpointPx}px) { .apps-button { display: none; } } @media (max-width: ${this.dimmingButtonBreakpointPx}px) { .dimming-button { display: none; } } @media (max-width: ${this.appTitleBreakpointPx}px) { .title { display: none !important; /* the stylesheet's display wins over this inline rule otherwise */ } } @media (max-width: ${this.userButtonBreakpointPx}px) { .user-button { display: none; } } @media (max-width: ${this.appIconBreakpointPx}px) { .app-icon { display: none; } } </style> <nav class=${classMap({ wrapper: true, inactive: this.inactive, settings: this.settings, tall: this.tall })} > <div class=\"left group\">${leftGroup}</div> <div class=\"right group\"> <div class=\"alert-container\"> <slot name=\"alerts\"></slot> </div> ${this.showDimmingButton && !this.inactive ? html`<obc-icon-button class=\"dimming-button\" part=\"dimming-button\" variant=\"flat\" aria-label=${msg(\"Dimming\")} @click=${this.dimmingButtonClicked} ?activated=${this.dimmingButtonActivated} > <obi-palette-day-night-iec></obi-palette-day-night-iec> </obc-icon-button>` : null} ${this.showUserButton && !this.inactive ? html`<obc-icon-button class=\"user-button\" variant=\"flat\" part=\"user-button\" aria-label=${msg(\"User\")} @click=${this.userButtonClicked} ?activated=${this.userButtonActivated} ?disabled=${this.userButtonDisabled} > <obi-user></obi-user> </obc-icon-button>` : null} ${this.showAppsButton && !this.inactive ? html`<obc-icon-button class=\"apps-button\" variant=\"flat\" part=\"apps-button\" aria-label=${msg(\"Apps\")} @click=${this.appsButtonClicked} ?activated=${this.appsButtonActivated} > <obi-applications></obi-applications> </obc-icon-button>` : null} ${this.showClock ? html`<slot name=\"clock\"></slot>` : null} ${!this.inactive ? html`<obc-icon-button class=\"more-button\" part=\"more-button left-more-button\" variant=\"flat\" aria-label=${msg(\"More\")} @click=${this.moreButtonClicked} ?activated=${this.moreButtonActivated} > <obi-more-vertical-google></obi-more-vertical-google> </obc-icon-button>` : null} </div> </nav> `; } static { this.styles = unsafeCSS(top_bar_default); } }"
|
|
7529
|
+
"default": "class ObcTopBar extends LitElement { constructor(..._args) { super(..._args); this.appTitle = \"App\"; this.pageName = \"Page\"; this.menuButtonIcon = \"menu\"; this.menuButtonActivated = false; this.dimmingButtonActivated = false; this.appsButtonActivated = false; this.moreButtonActivated = false; this.userButtonActivated = false; this.userButtonDisabled = false; this.tall = false; this.wideMenuButton = false; this.showAppsButton = false; this.showDimmingButton = false; this.showUserButton = false; this.showClock = false; this.showDate = false; this.showAppIcon = false; this.inactive = false; this.appButtonBreakpointPx = 500; this.dimmingButtonBreakpointPx = 500; this.appTitleBreakpointPx = 500; this.userButtonBreakpointPx = 500; this.appIconBreakpointPx = 500; this.settings = false; this.breadcrumbItems = []; this.leftButtonEvent = null; this.leftButtonTimeout = null; this.isLeftButtonDown = false; this.isEmergencyBrightness = false; } dimmingButtonClicked() { /** * Fired when the dimming (day/night) button is clicked. * @event dimming-button-clicked */ this.dispatchEvent(new CustomEvent(\"dimming-button-clicked\")); } appsButtonClicked() { /** * Fired when the apps button is clicked. * @event apps-button-clicked */ this.dispatchEvent(new CustomEvent(\"apps-button-clicked\")); } /** * Copies the deprecated `leftMoreButtonActivated` into * `moreButtonActivated`. A plain field rather than a getter/setter alias: * the Vue wrapper writes every prop back on its second render, and a getter * would then write `false` over the new property. */ willUpdate(changed) { super.willUpdate(changed); if (changed.has(\"leftMoreButtonActivated\") && this.leftMoreButtonActivated !== void 0) this.moreButtonActivated = this.leftMoreButtonActivated; } moreButtonClicked() { /** * Fired when the more button is clicked. * @event more-button-clicked */ this.dispatchEvent(new CustomEvent(\"more-button-clicked\")); /** * Deprecated alias of `more-button-clicked`; removed in 4.0.0. * @event left-more-button-clicked */ this.dispatchEvent(new CustomEvent(\"left-more-button-clicked\")); } userButtonClicked() { /** * Fired when the user/profile button is clicked. * @event user-button-clicked */ this.dispatchEvent(new CustomEvent(\"user-button-clicked\")); } leftButtonDown(event) { this.leftButtonEvent = event; this.isLeftButtonDown = true; this.leftButtonTimeout = setTimeout(() => { this.leftButtonEvent = null; this.dispatchEvent(new CustomEvent(\"emergency-brightness-start\")); this.isEmergencyBrightness = true; }, 500); } /** * Ends a hold. The event a short press stands for is dispatched from the * `click` that follows, not here: a menu opened while the pointer is still * going up gets closed again by that same click in current browsers, which * see it as a click outside a popover that has just opened. */ leftButtonUp() { if (this.leftButtonTimeout) { clearTimeout(this.leftButtonTimeout); this.leftButtonTimeout = null; } if (this.isEmergencyBrightness) { this.dispatchEvent(new CustomEvent(\"emergency-brightness-stop\")); this.isEmergencyBrightness = false; } this.isLeftButtonDown = false; } /** * Sends the event a press of the hold button stands for. * * Enter, Space and a screen reader's activate command arrive as a `click` * with `detail` 0 and no pointer press before it, so they get the event * directly. A pointer click arrives with `detail` 1 after the press: the * event stored on the way down is sent now, unless the press ran long * enough to start emergency brightness, which used it up. */ leftButtonActivate(event, type) { if (event.detail === 0) { this.dispatchEvent(new CustomEvent(type)); return; } if (!this.leftButtonEvent) return; this.dispatchEvent(this.leftButtonEvent); this.leftButtonEvent = null; } leftButtonLeave() { if (!this.isLeftButtonDown) return; if (this.leftButtonTimeout) { clearInterval(this.leftButtonTimeout); this.leftButtonTimeout = null; } if (this.isEmergencyBrightness) { this.dispatchEvent(new CustomEvent(\"emergency-brightness-stop\")); this.isEmergencyBrightness = false; } this.isLeftButtonDown = false; } render() { const leftGroup = []; if (this.settings) { leftGroup.push(html`<div class=\"menu-button\"> <obc-icon-button variant=\"flat\" aria-label=${msg(\"Close\")} @pointerdown=${() => this.leftButtonDown(new CustomEvent(\"close\"))} @pointerup=${() => this.leftButtonUp()} @pointerleave=${() => this.leftButtonLeave()} @click=${(event) => this.leftButtonActivate(event, \"close\")} > <obi-close-google></obi-close-google> </obc-icon-button> </div>`); leftGroup.push(html`<obc-icon-button variant=\"flat\" aria-label=${msg(\"Back\")} @click=${() => this.dispatchEvent(new CustomEvent(\"back\"))} > <obi-arrow-left-google></obi-arrow-left-google> </obc-icon-button>`); leftGroup.push(html`<div class=\"title\">${this.appTitle}</div>`); leftGroup.push(html`<obc-breadcrumb .items=${this.breadcrumbItems} @breadcrumb-click=${(e) => this.dispatchEvent(new CustomEvent(\"breadcrumb-click\", { detail: e.detail }))} ></obc-breadcrumb>`); } else { if (!this.inactive) leftGroup.push(html`<div class=\"menu-button ${this.wideMenuButton ? \"wide\" : null}\"> <obc-icon-button variant=\"flat\" aria-label=${this.menuButtonIcon === \"menu\" ? msg(\"Menu\") : msg(\"Home\")} @pointerdown=${() => this.leftButtonDown(new CustomEvent(\"menu-button-clicked\"))} @pointerup=${() => this.leftButtonUp()} @pointerleave=${() => this.leftButtonLeave()} @click=${(event) => this.leftButtonActivate(event, \"menu-button-clicked\")} ?activated=${this.menuButtonActivated} > ${this.menuButtonIcon === \"menu\" ? html`<obi-menu-iec></obi-menu-iec>` : html`<obi-home></obi-home>`} </obc-icon-button> </div>`); if (this.showAppIcon) leftGroup.push(html`<div class=\"app-icon\"><slot name=\"app-icon\"></slot></div>`); leftGroup.push(html`<div class=\"title\">${this.appTitle}</div>`); leftGroup.push(html`<div class=\"page-name\">${this.pageName}</div>`); leftGroup.push(html`<slot name=\"asset-picker\"></slot>`); leftGroup.push(html`<slot name=\"command-button\"></slot>`); } const breakpointMoreButton = Math.max(this.appButtonBreakpointPx, this.dimmingButtonBreakpointPx, this.userButtonBreakpointPx, this.appIconBreakpointPx); return html` <style> @media (max-width: ${breakpointMoreButton}px) { .more-button { display: revert !important; } .group.left > * { margin-right: 4px; margin-left: 4px; } } @media (max-width: ${this.appButtonBreakpointPx}px) { .apps-button { display: none; } } @media (max-width: ${this.dimmingButtonBreakpointPx}px) { .dimming-button { display: none; } } @media (max-width: ${this.appTitleBreakpointPx}px) { .title { display: none !important; /* the stylesheet's display wins over this inline rule otherwise */ } } @media (max-width: ${this.userButtonBreakpointPx}px) { .user-button { display: none; } } @media (max-width: ${this.appIconBreakpointPx}px) { .app-icon { display: none; } } </style> <nav class=${classMap({ wrapper: true, inactive: this.inactive, settings: this.settings, tall: this.tall })} > <div class=\"left group\">${leftGroup}</div> <div class=\"right group\"> <div class=\"alert-container\"> <slot name=\"alerts\"></slot> </div> <slot name=\"diagnostics\"></slot> ${this.showDimmingButton && !this.inactive ? html`<obc-icon-button class=\"dimming-button\" part=\"dimming-button\" variant=\"flat\" aria-label=${msg(\"Dimming\")} @click=${this.dimmingButtonClicked} ?activated=${this.dimmingButtonActivated} > <obi-palette-day-night-iec></obi-palette-day-night-iec> </obc-icon-button>` : null} ${this.showUserButton && !this.inactive ? html`<obc-icon-button class=\"user-button\" variant=\"flat\" part=\"user-button\" aria-label=${msg(\"User\")} @click=${this.userButtonClicked} ?activated=${this.userButtonActivated} ?disabled=${this.userButtonDisabled} > <obi-user></obi-user> </obc-icon-button>` : null} ${this.showAppsButton && !this.inactive ? html`<obc-icon-button class=\"apps-button\" variant=\"flat\" part=\"apps-button\" aria-label=${msg(\"Apps\")} @click=${this.appsButtonClicked} ?activated=${this.appsButtonActivated} > <obi-applications></obi-applications> </obc-icon-button>` : null} ${this.showClock ? html`<slot name=\"clock\"></slot>` : null} ${!this.inactive ? html`<obc-icon-button class=\"more-button\" part=\"more-button left-more-button\" variant=\"flat\" aria-label=${msg(\"More\")} @click=${this.moreButtonClicked} ?activated=${this.moreButtonActivated} > <obi-more-vertical-google></obi-more-vertical-google> </obc-icon-button>` : null} </div> </nav> `; } static { this.styles = unsafeCSS(top_bar_default); } }"
|
|
7467
7530
|
}
|
|
7468
7531
|
],
|
|
7469
7532
|
"exports": [
|
|
@@ -51684,8 +51747,14 @@
|
|
|
51684
51747
|
"declarations": [
|
|
51685
51748
|
{
|
|
51686
51749
|
"kind": "class",
|
|
51687
|
-
"description": "`<obc-alert-button-item>` – The bell button that shows the alert state and count.\n\nShows the alert status as a bell in the style of the given alert type, with\nan optional counter, or as a global counter: one badge per severity, then\nthe bell and the total. `obc-alert-button` renders the item next to its\nsilence button; use the item on its own where no silence button is needed.\n\n---\n\n### Features\n- **Variants (`type`):** `flat` (icon only), `normal` (bordered, icon and\n counter) and `enhanced` (filled in the severity colour).\n- **Alert types:** `alarm`, `warning`, `caution` and the `level-*` family;\n `nAlerts` of 0 shows the idle bell.\n- **Counter:** `counter` shows `nAlerts` next to the bell, except in `flat`.\n- **Global counter:** `globalCounter` shows the per-severity `counts` as\n badges, then the bell and `nAlerts`, always in the normal style;\n `globalCounterType` picks filled badges or the severity shapes.\n- **Flashing:** `blinking` flashes the bell at the tempo `flashingSpeed`\n resolves (#1224).\n- **Fill height:** `fillHeight` stretches the visible button to the host\n height, as the tall `obc-alert-button` does.\n\n---\n\n### Usage Guidelines\n- Keep `nAlerts` and `counts` consistent; the item shows both as given.\n- The generated label reads e.g. \"Alerts, 12, 2 Alarm, 4 Warning,\n 6 Caution\"; an `aria-label` on the host replaces it. A visually hidden\n polite live region repeats that name, so a change of counts is announced\n without the button holding focus; the name attribute alone would change\n silently.\n- A native button, so Enter and Space activate it (APG button pattern).\n- A parent that joins another button to the item's end sets the\n `data-group-item-not-last` attribute on the host.\n- **TODO(designer):** the Figma file draws the flat item's hover, active and\n focused variants at 20 % opacity; the item uses the standard flat states.\n- **TODO(designer):** the Figma file defines no flashing for the global\n counter, so it never flashes.\n\n---\n\n### Example\n\n```html\n<obc-alert-button-item alertType=\"alarm\" nAlerts=\"3\" counter blinking></obc-alert-button-item>\n<obc-alert-button-item\n globalCounter\n nAlerts=\"12\"\n .counts=${{countAlarm: 2, countWarning: 4, countCaution: 6}}\n></obc-alert-button-item>\n```",
|
|
51750
|
+
"description": "`<obc-alert-button-item>` – The bell button that shows the alert state and count.\n\nShows the alert status as a bell in the style of the given alert type, with\nan optional counter, or as a global counter: one badge per severity, then\nthe bell and the total. `obc-alert-button` renders the item next to its\nsilence button; use the item on its own where no silence button is needed.\n\n---\n\n### Features\n- **Variants (`type`):** `flat` (icon only), `normal` (bordered, icon and\n counter) and `enhanced` (filled in the severity colour).\n- **Alert types:** `alarm`, `warning`, `caution` and the `level-*` family;\n `nAlerts` of 0 shows the idle bell.\n- **Counter:** `counter` shows `nAlerts` next to the bell, except in `flat`.\n- **Global counter:** `globalCounter` shows the per-severity `counts` as\n badges, then the bell and `nAlerts`, always in the normal style;\n `globalCounterType` picks filled badges or the severity shapes.\n- **Flashing:** `blinking` flashes the bell at the tempo `flashingSpeed`\n resolves (#1224).\n- **Fill height:** `fillHeight` stretches the visible button to the host\n height, as the tall `obc-alert-button` does.\n- **Icon slot:** the `icon` slot replaces the bell with any icon; the item\n then never flashes.\n- **Activated:** `activated` draws the selected style, for a button whose\n panel is showing.\n\n---\n\n### Usage Guidelines\n- Keep `nAlerts` and `counts` consistent; the item shows both as given.\n- The generated label reads e.g. \"Alerts, 12, 2 Alarm, 4 Warning,\n 6 Caution\"; an `aria-label` on the host replaces it. A visually hidden\n polite live region repeats that name, so a change of counts is announced\n without the button holding focus; the name attribute alone would change\n silently.\n- A native button, so Enter and Space activate it (APG button pattern).\n- A parent that joins another button to the item's end sets the\n `data-group-item-not-last` attribute on the host.\n- **TODO(designer):** the Figma file draws the flat item's hover, active and\n focused variants at 20 % opacity; the item uses the standard flat states.\n- **TODO(designer):** the Figma file defines no flashing for the global\n counter, so it never flashes.\n\n---\n\n### Example\n\n```html\n<obc-alert-button-item alertType=\"alarm\" nAlerts=\"3\" counter blinking></obc-alert-button-item>\n<obc-alert-button-item\n globalCounter\n nAlerts=\"12\"\n .counts=${{countAlarm: 2, countWarning: 4, countCaution: 6}}\n></obc-alert-button-item>\n```",
|
|
51688
51751
|
"name": "ObcAlertButtonItem",
|
|
51752
|
+
"slots": [
|
|
51753
|
+
{
|
|
51754
|
+
"description": "Replaces the bell. The flash cross-fades two bells, so a slotted icon never flashes and `blinking` has no effect while the slot is filled.",
|
|
51755
|
+
"name": "icon"
|
|
51756
|
+
}
|
|
51757
|
+
],
|
|
51689
51758
|
"members": [
|
|
51690
51759
|
{
|
|
51691
51760
|
"kind": "field",
|
|
@@ -51782,6 +51851,15 @@
|
|
|
51782
51851
|
"default": "false",
|
|
51783
51852
|
"description": "Stretches the visible button to the host height instead of the 32 px visual target."
|
|
51784
51853
|
},
|
|
51854
|
+
{
|
|
51855
|
+
"kind": "field",
|
|
51856
|
+
"name": "activated",
|
|
51857
|
+
"type": {
|
|
51858
|
+
"text": "boolean"
|
|
51859
|
+
},
|
|
51860
|
+
"default": "false",
|
|
51861
|
+
"description": "Draws the button in the selected style, for a button whose panel is showing."
|
|
51862
|
+
},
|
|
51785
51863
|
{
|
|
51786
51864
|
"kind": "field",
|
|
51787
51865
|
"name": "ariaLabel",
|
|
@@ -51791,6 +51869,37 @@
|
|
|
51791
51869
|
"default": "null",
|
|
51792
51870
|
"description": "Accessible name forwarded to the inner `<button>`, mapped to the `aria-label` attribute; replaces the generated label. `aria-labelledby` is not supported: ID references cannot cross the shadow boundary."
|
|
51793
51871
|
},
|
|
51872
|
+
{
|
|
51873
|
+
"kind": "field",
|
|
51874
|
+
"name": "ariaExpanded",
|
|
51875
|
+
"type": {
|
|
51876
|
+
"text": "string | null"
|
|
51877
|
+
},
|
|
51878
|
+
"default": "null",
|
|
51879
|
+
"description": "Whether the panel the button opens is showing, forwarded to the inner `<button>` as `aria-expanded`; mapped to the `aria-expanded` attribute. Set it with `activated` from the flag that drives the panel; left unset, the button announces no panel."
|
|
51880
|
+
},
|
|
51881
|
+
{
|
|
51882
|
+
"kind": "field",
|
|
51883
|
+
"name": "hasSlottedIcon",
|
|
51884
|
+
"type": {
|
|
51885
|
+
"text": "boolean"
|
|
51886
|
+
},
|
|
51887
|
+
"privacy": "private",
|
|
51888
|
+
"default": "false"
|
|
51889
|
+
},
|
|
51890
|
+
{
|
|
51891
|
+
"kind": "method",
|
|
51892
|
+
"name": "willUpdate",
|
|
51893
|
+
"privacy": "protected",
|
|
51894
|
+
"parameters": [
|
|
51895
|
+
{
|
|
51896
|
+
"name": "changedProperties",
|
|
51897
|
+
"type": {
|
|
51898
|
+
"text": "PropertyValues<this>"
|
|
51899
|
+
}
|
|
51900
|
+
}
|
|
51901
|
+
]
|
|
51902
|
+
},
|
|
51794
51903
|
{
|
|
51795
51904
|
"kind": "field",
|
|
51796
51905
|
"name": "flashing",
|
|
@@ -53869,14 +53978,193 @@
|
|
|
53869
53978
|
}
|
|
53870
53979
|
]
|
|
53871
53980
|
},
|
|
53981
|
+
{
|
|
53982
|
+
"kind": "javascript-module",
|
|
53983
|
+
"path": "src/components/alert-subsystem-button/alert-subsystem-button.ts",
|
|
53984
|
+
"declarations": [
|
|
53985
|
+
{
|
|
53986
|
+
"kind": "class",
|
|
53987
|
+
"description": "`<obc-alert-subsystem-button>` – A subsystem's alert counts as a split\ncontrol: the counts open the alert menu, the list icon goes to the alert\nlist page.\n\nThe left half is `obc-alert-subsystem-counter` with the per-severity\n`counts` drawn by `obc-alert-counter-item`, inside a button of the normal\nstyle; the right half is an icon button with the alert list icon. The two\nshare one edge, as the halves of `obc-split-button` do.\n\n---\n\n### Features\n- **Counts:** `counts` per severity, drawn as badges; `hasAlert` off, or\n on with nothing counted, shows `emptyText` instead.\n- **Label and icon:** `label` and the `icon` slot, as on the counter.\n- **Two halves:** `counter-click` from the counts, `alert-list-click` from\n the list icon; `counterDisabled` and `listDisabled` disable one half,\n `disabled` both.\n- **List icon:** the `list-icon` slot, the alert list icon when empty.\n\n---\n\n### Usage Guidelines\n- Show `obc-alert-menu` on `counter-click` and navigate on\n `alert-list-click`; the button reports the clicks and nothing more.\n- Two native buttons, each a tab stop, activated by Enter and Space\n ([APG button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/)).\n Left out: nothing.\n- **TODO(designer):** the design draws an empty placeholder badge for each\n zero count; no counter in the library does, so only non-zero counts are\n drawn (#1396).\n- **TODO(designer):** a disabled counter half dims its frame, while the\n severity badges keep their colour and the label its active colour; the\n design has no disabled variant.\n\n---\n\n### Example\n\n```html\n<obc-alert-subsystem-button label=\"HVAC\" hasAlert .counts=${{countCaution: 2}}>\n <obi-placeholder slot=\"icon\"></obi-placeholder>\n</obc-alert-subsystem-button>\n```",
|
|
53988
|
+
"name": "ObcAlertSubsystemButton",
|
|
53989
|
+
"slots": [
|
|
53990
|
+
{
|
|
53991
|
+
"description": "Leading icon of the counter half.",
|
|
53992
|
+
"name": "icon"
|
|
53993
|
+
},
|
|
53994
|
+
{
|
|
53995
|
+
"description": "Icon of the list half; the alert list icon when empty.",
|
|
53996
|
+
"name": "list-icon"
|
|
53997
|
+
}
|
|
53998
|
+
],
|
|
53999
|
+
"members": [
|
|
54000
|
+
{
|
|
54001
|
+
"kind": "field",
|
|
54002
|
+
"name": "counts",
|
|
54003
|
+
"type": {
|
|
54004
|
+
"text": "AlertCounts"
|
|
54005
|
+
},
|
|
54006
|
+
"default": "{}",
|
|
54007
|
+
"description": "Alert count per severity, drawn as badges in the counter half."
|
|
54008
|
+
},
|
|
54009
|
+
{
|
|
54010
|
+
"kind": "field",
|
|
54011
|
+
"name": "hasAlert",
|
|
54012
|
+
"type": {
|
|
54013
|
+
"text": "boolean"
|
|
54014
|
+
},
|
|
54015
|
+
"default": "false",
|
|
54016
|
+
"description": "Whether the subsystem has active alerts: `true` draws the badges, `false` the `emptyText`; `true` with nothing counted shows the `emptyText` as well."
|
|
54017
|
+
},
|
|
54018
|
+
{
|
|
54019
|
+
"kind": "field",
|
|
54020
|
+
"name": "label",
|
|
54021
|
+
"type": {
|
|
54022
|
+
"text": "string"
|
|
54023
|
+
},
|
|
54024
|
+
"default": "''",
|
|
54025
|
+
"description": "The subsystem label, before the badges."
|
|
54026
|
+
},
|
|
54027
|
+
{
|
|
54028
|
+
"kind": "field",
|
|
54029
|
+
"name": "emptyText",
|
|
54030
|
+
"type": {
|
|
54031
|
+
"text": "string"
|
|
54032
|
+
},
|
|
54033
|
+
"default": "'No alerts'",
|
|
54034
|
+
"description": "Text shown instead of the badges when `hasAlert` is `false` or nothing is counted."
|
|
54035
|
+
},
|
|
54036
|
+
{
|
|
54037
|
+
"kind": "field",
|
|
54038
|
+
"name": "disabled",
|
|
54039
|
+
"type": {
|
|
54040
|
+
"text": "boolean"
|
|
54041
|
+
},
|
|
54042
|
+
"default": "false",
|
|
54043
|
+
"description": "Disables both halves."
|
|
54044
|
+
},
|
|
54045
|
+
{
|
|
54046
|
+
"kind": "field",
|
|
54047
|
+
"name": "counterDisabled",
|
|
54048
|
+
"type": {
|
|
54049
|
+
"text": "boolean"
|
|
54050
|
+
},
|
|
54051
|
+
"default": "false",
|
|
54052
|
+
"description": "Disables the counter half alone."
|
|
54053
|
+
},
|
|
54054
|
+
{
|
|
54055
|
+
"kind": "field",
|
|
54056
|
+
"name": "listDisabled",
|
|
54057
|
+
"type": {
|
|
54058
|
+
"text": "boolean"
|
|
54059
|
+
},
|
|
54060
|
+
"default": "false",
|
|
54061
|
+
"description": "Disables the list half alone."
|
|
54062
|
+
},
|
|
54063
|
+
{
|
|
54064
|
+
"kind": "field",
|
|
54065
|
+
"name": "listButtonLabel",
|
|
54066
|
+
"type": {
|
|
54067
|
+
"text": "string"
|
|
54068
|
+
},
|
|
54069
|
+
"default": "''",
|
|
54070
|
+
"description": "Accessible name of the list half; \"Alert list\" when left empty."
|
|
54071
|
+
},
|
|
54072
|
+
{
|
|
54073
|
+
"kind": "field",
|
|
54074
|
+
"name": "ariaLabel",
|
|
54075
|
+
"type": {
|
|
54076
|
+
"text": "string | null"
|
|
54077
|
+
},
|
|
54078
|
+
"default": "null",
|
|
54079
|
+
"description": "Accessible name of the counter half, mapped to the `aria-label` attribute; replaces the generated \"HVAC, 2 Caution\", or \"Alerts\" when the half has neither a label nor text. `aria-labelledby` is not supported: ID references cannot cross the shadow boundary."
|
|
54080
|
+
},
|
|
54081
|
+
{
|
|
54082
|
+
"kind": "field",
|
|
54083
|
+
"name": "showsCounts",
|
|
54084
|
+
"type": {
|
|
54085
|
+
"text": "boolean"
|
|
54086
|
+
},
|
|
54087
|
+
"privacy": "private",
|
|
54088
|
+
"description": "The flag the counter gets: `hasAlert` with nothing to draw reads as none.",
|
|
54089
|
+
"readonly": true
|
|
54090
|
+
},
|
|
54091
|
+
{
|
|
54092
|
+
"kind": "field",
|
|
54093
|
+
"name": "counterName",
|
|
54094
|
+
"type": {
|
|
54095
|
+
"text": "string"
|
|
54096
|
+
},
|
|
54097
|
+
"privacy": "private",
|
|
54098
|
+
"readonly": true
|
|
54099
|
+
},
|
|
54100
|
+
{
|
|
54101
|
+
"kind": "field",
|
|
54102
|
+
"name": "handleCounterClick",
|
|
54103
|
+
"privacy": "private"
|
|
54104
|
+
},
|
|
54105
|
+
{
|
|
54106
|
+
"kind": "field",
|
|
54107
|
+
"name": "handleListClick",
|
|
54108
|
+
"privacy": "private"
|
|
54109
|
+
},
|
|
54110
|
+
{
|
|
54111
|
+
"kind": "method",
|
|
54112
|
+
"name": "render"
|
|
54113
|
+
},
|
|
54114
|
+
{
|
|
54115
|
+
"kind": "field",
|
|
54116
|
+
"name": "styles",
|
|
54117
|
+
"static": true
|
|
54118
|
+
}
|
|
54119
|
+
],
|
|
54120
|
+
"events": [
|
|
54121
|
+
{
|
|
54122
|
+
"type": {
|
|
54123
|
+
"text": "CustomEvent<void>"
|
|
54124
|
+
},
|
|
54125
|
+
"description": "Fired when the counter half is clicked.",
|
|
54126
|
+
"name": "counter-click"
|
|
54127
|
+
},
|
|
54128
|
+
{
|
|
54129
|
+
"type": {
|
|
54130
|
+
"text": "CustomEvent<void>"
|
|
54131
|
+
},
|
|
54132
|
+
"description": "Fired when the list half is clicked.",
|
|
54133
|
+
"name": "alert-list-click"
|
|
54134
|
+
}
|
|
54135
|
+
],
|
|
54136
|
+
"superclass": {
|
|
54137
|
+
"name": "LitElement",
|
|
54138
|
+
"package": "lit"
|
|
54139
|
+
},
|
|
54140
|
+
"customElement": true
|
|
54141
|
+
}
|
|
54142
|
+
],
|
|
54143
|
+
"exports": [
|
|
54144
|
+
{
|
|
54145
|
+
"kind": "js",
|
|
54146
|
+
"name": "ObcAlertSubsystemButton",
|
|
54147
|
+
"declaration": {
|
|
54148
|
+
"name": "ObcAlertSubsystemButton",
|
|
54149
|
+
"module": "src/components/alert-subsystem-button/alert-subsystem-button.ts"
|
|
54150
|
+
}
|
|
54151
|
+
}
|
|
54152
|
+
]
|
|
54153
|
+
},
|
|
53872
54154
|
{
|
|
53873
54155
|
"kind": "javascript-module",
|
|
53874
54156
|
"path": "src/components/alert-subsystem-counter/alert-subsystem-counter.ts",
|
|
53875
54157
|
"declarations": [
|
|
53876
54158
|
{
|
|
53877
54159
|
"kind": "class",
|
|
53878
|
-
"description": "`<obc-alert-subsystem-counter>` – A framed summary of a subsystem's alert\ncounts: a leading icon, a label, and a trailing set of slotted count badges.\n\nWhen there are no active alerts it shows a muted label and an empty-state\nmessage instead of the badges. The count badges themselves are supplied by\nthe consumer as slotted `obc-badge` elements; this component provides only\nthe frame, layout, label, and empty state.\n\n---\n\n### Features\n- **Orientation:** `horizontal` (single row) or `vertical` (badges on a line\n below the label).\n- **Alert state:** `hasAlert` toggles between an active (bold label, badges)\n and an inactive (muted label, empty text) presentation.\n- **Freeform label:** Pass a full title or an abbreviation — the label is\n plain text decided by the caller and truncates with an ellipsis.\n- **Configurable empty text:** Customize the message shown when there are no\n alerts via `emptyText`.\n- **Optional leading icon:** Provide an icon through the `icon` slot; omit it\n and the leading box collapses with no empty gap.\n\n---\n\n### Usage Guidelines\n- Use this component to give an at-a-glance count of outstanding alerts for a\n single subsystem, grouped by severity.\n- Provide one slotted badge per severity in the `badges` slot, typically\n `<obc-badge size=\"large\">` with a severity `type` and a `number`. The\n badge `type` values are the same severity vocabulary as `AlertType`\n (`alarm`, `warning`, `caution` and the `level-*` family); order them\n highest severity first, as `ALERT_SEVERITY_PRIORITY` does.\n- Set `hasAlert` to `false` to present the resolved/clear state; the badges\n are then not rendered and `emptyText` is shown. The component does not\n derive the state from the slotted badges — the consumer owns it.\n- Choose `vertical` orientation in narrow containers where the badges do not\n fit beside the label.\n- The counter is display-only: it renders no button and fires no events. For\n a clickable subsystem entry with badges, see `obc-tree-navigation-item`\n (`alertBadges`) or `obc-integration-fleet-button` (`alerts`).\n\n---\n\n### Slots\n\n| Slot Name | Renders When... | Purpose |\n|-----------|------------------------|----------------------------------------------------|\n| `icon` | The slot has content | Leading 24px icon (e.g. `<obi-placeholder>`). |\n| `badges` | `hasAlert` is true | Count badges, one per severity (`<obc-badge>`). |\n\n---\n\n### Example\n\n```html\n<obc-alert-subsystem-counter label=\"Label\" hasAlert>\n <obi-placeholder slot=\"icon\"></obi-placeholder>\n <obc-badge slot=\"badges\" size=\"large\" type=\"alarm\" .number=${9}></obc-badge>\n <obc-badge slot=\"badges\" size=\"large\" type=\"warning\" .number=${4}></obc-badge>\n <obc-badge slot=\"badges\" size=\"large\" type=\"caution\" .number=${2}></obc-badge>\n</obc-alert-subsystem-counter>\n```",
|
|
54160
|
+
"description": "`<obc-alert-subsystem-counter>` – A framed summary of a subsystem's alert\ncounts: a leading icon, a label, and a trailing set of slotted count badges.\n\nWhen there are no active alerts it shows a muted label and an empty-state\nmessage instead of the badges. The count badges themselves are supplied by\nthe consumer as slotted `obc-badge` elements; this component provides only\nthe frame, layout, label, and empty state.\n\n---\n\n### Features\n- **Orientation:** `horizontal` (single row) or `vertical` (badges on a line\n below the label).\n- **Alert state:** `hasAlert` toggles between an active (bold label, badges)\n and an inactive (muted label, empty text) presentation.\n- **Freeform label:** Pass a full title or an abbreviation — the label is\n plain text decided by the caller and truncates with an ellipsis.\n- **Configurable empty text:** Customize the message shown when there are no\n alerts via `emptyText`.\n- **Optional leading icon:** Provide an icon through the `icon` slot; omit it\n and the leading box collapses with no empty gap; with no label either, the\n whole leading column goes and the badges take the frame.\n\n---\n\n### Usage Guidelines\n- Use this component to give an at-a-glance count of outstanding alerts for a\n single subsystem, grouped by severity.\n- Provide one slotted badge per severity in the `badges` slot, typically\n `<obc-badge size=\"large\">` with a severity `type` and a `number`. The\n badge `type` values are the same severity vocabulary as `AlertType`\n (`alarm`, `warning`, `caution` and the `level-*` family); order them\n highest severity first, as `ALERT_SEVERITY_PRIORITY` does.\n- Set `hasAlert` to `false` to present the resolved/clear state; the badges\n are then not rendered and `emptyText` is shown. The component does not\n derive the state from the slotted badges — the consumer owns it.\n- Choose `vertical` orientation in narrow containers where the badges do not\n fit beside the label.\n- The counter is display-only: it renders no button and fires no events. For\n a clickable subsystem entry with badges, see `obc-tree-navigation-item`\n (`alertBadges`) or `obc-integration-fleet-button` (`alerts`).\n\n---\n\n### Slots\n\n| Slot Name | Renders When... | Purpose |\n|-----------|------------------------|----------------------------------------------------|\n| `icon` | The slot has content | Leading 24px icon (e.g. `<obi-placeholder>`). |\n| `badges` | `hasAlert` is true | Count badges, one per severity (`<obc-badge>`). |\n\n---\n\n### Example\n\n```html\n<obc-alert-subsystem-counter label=\"Label\" hasAlert>\n <obi-placeholder slot=\"icon\"></obi-placeholder>\n <obc-badge slot=\"badges\" size=\"large\" type=\"alarm\" .number=${9}></obc-badge>\n <obc-badge slot=\"badges\" size=\"large\" type=\"warning\" .number=${4}></obc-badge>\n <obc-badge slot=\"badges\" size=\"large\" type=\"caution\" .number=${2}></obc-badge>\n</obc-alert-subsystem-counter>\n```",
|
|
53879
54161
|
"name": "ObcAlertSubsystemCounter",
|
|
54162
|
+
"cssParts": [
|
|
54163
|
+
{
|
|
54164
|
+
"description": "The framed box, for a host that draws its own frame around the counter.",
|
|
54165
|
+
"name": "frame"
|
|
54166
|
+
}
|
|
54167
|
+
],
|
|
53880
54168
|
"slots": [
|
|
53881
54169
|
{
|
|
53882
54170
|
"description": "Optional leading 24px icon.",
|
|
@@ -58476,6 +58764,246 @@
|
|
|
58476
58764
|
}
|
|
58477
58765
|
]
|
|
58478
58766
|
},
|
|
58767
|
+
{
|
|
58768
|
+
"kind": "javascript-module",
|
|
58769
|
+
"path": "src/components/diagnostic-button/diagnostic-button.ts",
|
|
58770
|
+
"declarations": [
|
|
58771
|
+
{
|
|
58772
|
+
"kind": "class",
|
|
58773
|
+
"description": "`<obc-diagnostic-button>` – The top bar's diagnostic button: the asterisk\nand the number of diagnostics, selected while its menu is showing.\n\nThe diagnostic counterpart of `obc-alert-button`: `obc-alert-button-item`\nwith the diagnostic asterisk in its icon slot and a name of its own. It\nopens `obc-diagnostic-menu`, as the alert button opens the alert menu.\n\n---\n\n### Features\n- **Counter:** `nAlerts` is drawn next to the asterisk; 0 shows the\n asterisk alone.\n- **Activated:** `activated` draws the selected style while the diagnostic\n menu is showing.\n- **Name:** \"Diagnostics, 3\" is announced, and repeated when the count\n changes; `aria-label` replaces it.\n\n---\n\n### Usage Guidelines\n- Slot it into `obc-top-bar`'s `diagnostics` slot, after the alert button,\n or place it in a toolbar on its own.\n- Open the menu from `click` the way a bar button opens a menu: flip a\n flag of your own, bind it to the menu's `open`, to `activated` and to\n `aria-expanded`, and reset it on the menu's `close`.\n- A native button, so Enter and Space activate it\n ([APG button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/)).\n Left out: nothing.\n- **TODO(designer):** the design draws a six-armed asterisk with rounded\n arms that is not in the icon library; the button draws\n `obi-diagnostic-badge`, the sharp asterisk of the diagnostic alert icon,\n until the icon is added (#1396).\n\n---\n\n### Example\n\n```html\n<obc-diagnostic-button nAlerts=\"3\" activated></obc-diagnostic-button>\n```",
|
|
58774
|
+
"name": "ObcDiagnosticButton",
|
|
58775
|
+
"members": [
|
|
58776
|
+
{
|
|
58777
|
+
"kind": "field",
|
|
58778
|
+
"name": "nAlerts",
|
|
58779
|
+
"type": {
|
|
58780
|
+
"text": "number"
|
|
58781
|
+
},
|
|
58782
|
+
"default": "0",
|
|
58783
|
+
"description": "Number of diagnostics, drawn as the counter; 0 shows the asterisk alone."
|
|
58784
|
+
},
|
|
58785
|
+
{
|
|
58786
|
+
"kind": "field",
|
|
58787
|
+
"name": "activated",
|
|
58788
|
+
"type": {
|
|
58789
|
+
"text": "boolean"
|
|
58790
|
+
},
|
|
58791
|
+
"default": "false",
|
|
58792
|
+
"description": "Draws the selected style while the diagnostic menu is showing; bind it to the flag that drives the menu's `open`."
|
|
58793
|
+
},
|
|
58794
|
+
{
|
|
58795
|
+
"kind": "field",
|
|
58796
|
+
"name": "ariaLabel",
|
|
58797
|
+
"type": {
|
|
58798
|
+
"text": "string | null"
|
|
58799
|
+
},
|
|
58800
|
+
"default": "null",
|
|
58801
|
+
"description": "Accessible name forwarded to the inner `<button>`, mapped to the `aria-label` attribute; replaces the generated \"Diagnostics, 3\". `aria-labelledby` is not supported: ID references cannot cross the shadow boundary."
|
|
58802
|
+
},
|
|
58803
|
+
{
|
|
58804
|
+
"kind": "field",
|
|
58805
|
+
"name": "ariaExpanded",
|
|
58806
|
+
"type": {
|
|
58807
|
+
"text": "string | null"
|
|
58808
|
+
},
|
|
58809
|
+
"default": "null",
|
|
58810
|
+
"description": "Whether the diagnostic menu is showing, forwarded to the inner `<button>` as `aria-expanded`; mapped to the `aria-expanded` attribute. Bind it with `activated`; left unset, the button announces no menu."
|
|
58811
|
+
},
|
|
58812
|
+
{
|
|
58813
|
+
"kind": "field",
|
|
58814
|
+
"name": "accessibleName",
|
|
58815
|
+
"type": {
|
|
58816
|
+
"text": "string"
|
|
58817
|
+
},
|
|
58818
|
+
"privacy": "private",
|
|
58819
|
+
"readonly": true
|
|
58820
|
+
},
|
|
58821
|
+
{
|
|
58822
|
+
"kind": "method",
|
|
58823
|
+
"name": "render"
|
|
58824
|
+
},
|
|
58825
|
+
{
|
|
58826
|
+
"kind": "field",
|
|
58827
|
+
"name": "styles",
|
|
58828
|
+
"static": true
|
|
58829
|
+
}
|
|
58830
|
+
],
|
|
58831
|
+
"events": [
|
|
58832
|
+
{
|
|
58833
|
+
"description": "Fired when the button is clicked.",
|
|
58834
|
+
"name": "click"
|
|
58835
|
+
}
|
|
58836
|
+
],
|
|
58837
|
+
"superclass": {
|
|
58838
|
+
"name": "LitElement",
|
|
58839
|
+
"package": "lit"
|
|
58840
|
+
},
|
|
58841
|
+
"customElement": true
|
|
58842
|
+
}
|
|
58843
|
+
],
|
|
58844
|
+
"exports": [
|
|
58845
|
+
{
|
|
58846
|
+
"kind": "js",
|
|
58847
|
+
"name": "ObcDiagnosticButton",
|
|
58848
|
+
"declaration": {
|
|
58849
|
+
"name": "ObcDiagnosticButton",
|
|
58850
|
+
"module": "src/components/diagnostic-button/diagnostic-button.ts"
|
|
58851
|
+
}
|
|
58852
|
+
}
|
|
58853
|
+
]
|
|
58854
|
+
},
|
|
58855
|
+
{
|
|
58856
|
+
"kind": "javascript-module",
|
|
58857
|
+
"path": "src/components/diagnostic-menu/diagnostic-menu.ts",
|
|
58858
|
+
"declarations": [
|
|
58859
|
+
{
|
|
58860
|
+
"kind": "class",
|
|
58861
|
+
"description": "`<obc-diagnostic-menu>` – The panel the diagnostic button opens: a titled\nlist of diagnostics with an acknowledge-all and a list button.\n\nThe diagnostic counterpart of `obc-alert-menu`, without its tabs and its\nsilence button: a title row, the slotted `obc-message-menu-item` rows in a\nscrolling list with an empty state, and a footer with \"ACK all visible\" and\n\"Diagnostics list\".\n\n---\n\n### Features\n- **Title row:** `menuTitle`, \"Diagnostics\" when left empty.\n- **Rows:** any number of `obc-message-menu-item` children; the list\n scrolls, slides new rows into place and shows an empty state the\n `empty-*` slots replace.\n- **ACK all visible:** enabled by `canAckAll`; fires\n `ack-all-visible-click` with the rows in view, as the alert menu does.\n- **Diagnostics list:** `showDiagnosticListButton` shows the button that\n fires `go-to-diagnostic-list-click` for the full list page.\n- **Soft dismiss:** `softDismiss` and `open` close the menu on a click\n outside or `Escape`, as every menu does.\n\n---\n\n### Usage Guidelines\n- Open it from `obc-diagnostic-button`'s `click` with a flag of your own,\n bound to `open` and to the button's `activated`, and reset on `close`.\n- A row is acknowledged through its own `primary-action-click`; the footer\n button reports every row in view at once.\n- Position it yourself, under the top bar's diagnostic button.\n- **TODO(designer):** the design draws an open-in-new glyph after\n \"Diagnostics list\" and a 696 px card that hugs its rows; neither the\n glyph nor a width token is in the library, so the button draws the\n chevron of the alert menu's \"Alerts\" button and the card keeps the alert\n menu's width and height (#1396).\n\n---\n\n### Example\n\n```html\n<obc-diagnostic-menu canAckAll>\n <obc-message-menu-item title=\"Simulate\" description=\"Value is simulated\" day=\"Yesterday\" time=\"09:12:34\" primaryActionLabel=\"Action\" hasPrimaryIcon>\n <obi-placeholder slot=\"primary-icon\"></obi-placeholder>\n </obc-message-menu-item>\n</obc-diagnostic-menu>\n```",
|
|
58862
|
+
"name": "ObcDiagnosticMenu",
|
|
58863
|
+
"slots": [
|
|
58864
|
+
{
|
|
58865
|
+
"description": "The diagnostics as `obc-message-menu-item` rows.",
|
|
58866
|
+
"name": ""
|
|
58867
|
+
},
|
|
58868
|
+
{
|
|
58869
|
+
"description": "Title of the empty state, \"No diagnostics\" when left unfilled.",
|
|
58870
|
+
"name": "empty-title"
|
|
58871
|
+
},
|
|
58872
|
+
{
|
|
58873
|
+
"description": "Description of the empty state.",
|
|
58874
|
+
"name": "empty-description"
|
|
58875
|
+
},
|
|
58876
|
+
{
|
|
58877
|
+
"description": "Icon of the empty state, the diagnostic asterisk when left unfilled.",
|
|
58878
|
+
"name": "empty-icon"
|
|
58879
|
+
}
|
|
58880
|
+
],
|
|
58881
|
+
"members": [
|
|
58882
|
+
{
|
|
58883
|
+
"kind": "field",
|
|
58884
|
+
"name": "softDismiss",
|
|
58885
|
+
"type": {
|
|
58886
|
+
"text": "boolean"
|
|
58887
|
+
},
|
|
58888
|
+
"default": "false",
|
|
58889
|
+
"description": "Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click. Leave it off to show and hide the menu yourself."
|
|
58890
|
+
},
|
|
58891
|
+
{
|
|
58892
|
+
"kind": "field",
|
|
58893
|
+
"name": "open",
|
|
58894
|
+
"type": {
|
|
58895
|
+
"text": "boolean"
|
|
58896
|
+
},
|
|
58897
|
+
"default": "false",
|
|
58898
|
+
"description": "Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`."
|
|
58899
|
+
},
|
|
58900
|
+
{
|
|
58901
|
+
"kind": "field",
|
|
58902
|
+
"name": "softDismissController",
|
|
58903
|
+
"privacy": "protected",
|
|
58904
|
+
"readonly": true,
|
|
58905
|
+
"default": "new PopoverController(this)"
|
|
58906
|
+
},
|
|
58907
|
+
{
|
|
58908
|
+
"kind": "field",
|
|
58909
|
+
"name": "menuTitle",
|
|
58910
|
+
"type": {
|
|
58911
|
+
"text": "string"
|
|
58912
|
+
},
|
|
58913
|
+
"default": "''",
|
|
58914
|
+
"description": "Title of the menu; \"Diagnostics\" when left empty."
|
|
58915
|
+
},
|
|
58916
|
+
{
|
|
58917
|
+
"kind": "field",
|
|
58918
|
+
"name": "canAckAll",
|
|
58919
|
+
"type": {
|
|
58920
|
+
"text": "boolean"
|
|
58921
|
+
},
|
|
58922
|
+
"default": "false",
|
|
58923
|
+
"description": "Enables the \"ACK all visible\" button; set it while a row in view can be acknowledged."
|
|
58924
|
+
},
|
|
58925
|
+
{
|
|
58926
|
+
"kind": "field",
|
|
58927
|
+
"name": "showAckAllButton",
|
|
58928
|
+
"type": {
|
|
58929
|
+
"text": "boolean"
|
|
58930
|
+
},
|
|
58931
|
+
"default": "true",
|
|
58932
|
+
"description": "Shows the \"ACK all visible\" button in the footer."
|
|
58933
|
+
},
|
|
58934
|
+
{
|
|
58935
|
+
"kind": "field",
|
|
58936
|
+
"name": "showDiagnosticListButton",
|
|
58937
|
+
"type": {
|
|
58938
|
+
"text": "boolean"
|
|
58939
|
+
},
|
|
58940
|
+
"default": "true",
|
|
58941
|
+
"description": "Shows the \"Diagnostics list\" button in the footer."
|
|
58942
|
+
},
|
|
58943
|
+
{
|
|
58944
|
+
"kind": "field",
|
|
58945
|
+
"name": "list",
|
|
58946
|
+
"type": {
|
|
58947
|
+
"text": "ObcAlertList"
|
|
58948
|
+
},
|
|
58949
|
+
"privacy": "private"
|
|
58950
|
+
},
|
|
58951
|
+
{
|
|
58952
|
+
"kind": "method",
|
|
58953
|
+
"name": "handleAckAllVisibleClick",
|
|
58954
|
+
"privacy": "private"
|
|
58955
|
+
},
|
|
58956
|
+
{
|
|
58957
|
+
"kind": "method",
|
|
58958
|
+
"name": "render"
|
|
58959
|
+
},
|
|
58960
|
+
{
|
|
58961
|
+
"kind": "field",
|
|
58962
|
+
"name": "styles",
|
|
58963
|
+
"static": true
|
|
58964
|
+
}
|
|
58965
|
+
],
|
|
58966
|
+
"events": [
|
|
58967
|
+
{
|
|
58968
|
+
"name": "ack-all-visible-click",
|
|
58969
|
+
"type": {
|
|
58970
|
+
"text": "ObcDiagnosticMenuAckAllVisibleClickEvent"
|
|
58971
|
+
},
|
|
58972
|
+
"description": "Fired when the \"ACK all visible\" button is clicked, with the rows in view."
|
|
58973
|
+
},
|
|
58974
|
+
{
|
|
58975
|
+
"name": "go-to-diagnostic-list-click",
|
|
58976
|
+
"type": {
|
|
58977
|
+
"text": "CustomEvent<void>"
|
|
58978
|
+
},
|
|
58979
|
+
"description": "Fired when the \"Diagnostics list\" button is clicked."
|
|
58980
|
+
},
|
|
58981
|
+
{
|
|
58982
|
+
"type": {
|
|
58983
|
+
"text": "CustomEvent<void>"
|
|
58984
|
+
},
|
|
58985
|
+
"description": "Fired when the menu closed on its own, from a click outside, `Escape`, or another menu opening. `open` is already `false` by the time it arrives; reset the flag you bind to `open` here, or the next click on the button finds it still set and asks a closed menu to close.",
|
|
58986
|
+
"name": "close"
|
|
58987
|
+
}
|
|
58988
|
+
],
|
|
58989
|
+
"superclass": {
|
|
58990
|
+
"name": "LitElement",
|
|
58991
|
+
"package": "lit"
|
|
58992
|
+
},
|
|
58993
|
+
"customElement": true
|
|
58994
|
+
}
|
|
58995
|
+
],
|
|
58996
|
+
"exports": [
|
|
58997
|
+
{
|
|
58998
|
+
"kind": "js",
|
|
58999
|
+
"name": "ObcDiagnosticMenu",
|
|
59000
|
+
"declaration": {
|
|
59001
|
+
"name": "ObcDiagnosticMenu",
|
|
59002
|
+
"module": "src/components/diagnostic-menu/diagnostic-menu.ts"
|
|
59003
|
+
}
|
|
59004
|
+
}
|
|
59005
|
+
]
|
|
59006
|
+
},
|
|
58479
59007
|
{
|
|
58480
59008
|
"kind": "javascript-module",
|
|
58481
59009
|
"path": "src/components/divider/divider.ts",
|
|
@@ -74859,7 +75387,7 @@
|
|
|
74859
75387
|
"declarations": [
|
|
74860
75388
|
{
|
|
74861
75389
|
"kind": "class",
|
|
74862
|
-
"description": "`<obc-top-bar>` – A responsive top navigation bar component for application layouts.\n\nProvides a flexible, highly configurable top bar for application interfaces, supporting navigation, context display, quick actions, and status indicators. The top bar adapts to screen size and can show or hide elements such as menu, app icon, breadcrumbs, user/profile, clock, and alert notifications.\n\nAppears at the top of the UI, organizing primary navigation and contextual actions in a single, persistent region. Designed for use as the main app bar or header in multi-pane or dashboard-style layouts.\n\n## Features\n- **Configurable Sections:** Supports left and right-aligned groups for navigation, context, and actions.\n- **Menu Button:** Optional menu button for opening navigation drawers or sidebars; can be styled as wide or regular.\n- **App Icon Slot:** Customizable slot for displaying an application or brand icon.\n- **App Title & Page Name:** Displays the current application and page context.\n- **Breadcrumbs:** Optional breadcrumb navigation for hierarchical context (in settings mode).\n- **Command Button Slot:** Slot for inserting a primary command/action button.\n- **Alert/Notification Area:** Slot for alert indicators, notification badges, or custom alert components.\n- **Dimming Button:** Optional button for toggling display modes (e.g., day/night).\n- **User/Profile Button:** Optional user icon for profile/account actions.\n- **Apps Button:** Optional button for accessing additional applications or modules.\n- **Clock & Date:** Optional digital clock and date display, responsive to screen size.\n- **Responsive Layout:** Multiple breakpoint properties to control visibility and layout of elements based on viewport width.\n- **Settings Mode:** Special mode with close, back, and forward navigation, breadcrumbs, and app title.\n- **Tall Variant:** Optional increased height for touch or accessibility needs.\n- **Inactive State:** Disables interactive elements and visually de-emphasizes the bar.\n\n## Variants\n- **Regular:** Standard top bar with menu, app icon, title, page name, and action slots.\n- **Settings:** Shows close, back, forward buttons, breadcrumbs, and app title for configuration or settings screens.\n- **Inactive:** Visually muted and disables interaction (e.g., when the app is locked or in a modal state).\n- **Tall:** Increases the height of the bar for improved touch targets.\n\n## Usage Guidelines\nUse `<obc-top-bar>` as the persistent header for your application, providing navigation, context, and quick access to key actions or status. Configure which elements appear via boolean properties and slots. Adjust breakpoint properties to control responsive behavior for each section.\n\n- Place navigation, branding, and context (title, breadcrumbs) on the left; actions, alerts, and status (clock, user, apps) on the right.\n- Use the `settings` property for configuration or setup screens to enable close/back/forward navigation and breadcrumbs.\n- Use the `inactive` property to visually disable the bar and its actions when the app is not interactive.\n- Insert custom icons or buttons using the `app-icon` and `command-button` slots.\n- Use the `alerts` slot to display alert indicators, notification badges, or custom alert components.\n\n**TODO(designer):** Clarify recommended combinations of visible elements for different app contexts (e.g., when to show both user and apps buttons, or best practices for alert placement).\n\n## Slots\n\n| Slot Name | Renders When... | Purpose |\n|------------------|---------------------------------|----------------------------------------------------------------|\n| `app-icon` | `showAppIcon` is true | Custom icon representing the application or brand. |\n| `command-button` |
|
|
75390
|
+
"description": "`<obc-top-bar>` – A responsive top navigation bar component for application layouts.\n\nProvides a flexible, highly configurable top bar for application interfaces, supporting navigation, context display, quick actions, and status indicators. The top bar adapts to screen size and can show or hide elements such as menu, app icon, breadcrumbs, user/profile, clock, and alert notifications.\n\nAppears at the top of the UI, organizing primary navigation and contextual actions in a single, persistent region. Designed for use as the main app bar or header in multi-pane or dashboard-style layouts.\n\n## Features\n- **Configurable Sections:** Supports left and right-aligned groups for navigation, context, and actions.\n- **Menu Button:** Optional menu button for opening navigation drawers or sidebars; can be styled as wide or regular.\n- **App Icon Slot:** Customizable slot for displaying an application or brand icon.\n- **App Title & Page Name:** Displays the current application and page context.\n- **Breadcrumbs:** Optional breadcrumb navigation for hierarchical context (in settings mode).\n- **Command Button Slot:** Slot for inserting a primary command/action button.\n- **Asset Picker Slot:** Slot for a control that switches between the assets the page can show, such as an `obc-dropdown-button` whose label is the current asset.\n- **Alert/Notification Area:** Slot for alert indicators, notification badges, or custom alert components.\n- **Diagnostics Slot:** Slot for the diagnostic button, after the alert area.\n- **Dimming Button:** Optional button for toggling display modes (e.g., day/night).\n- **User/Profile Button:** Optional user icon for profile/account actions.\n- **Apps Button:** Optional button for accessing additional applications or modules.\n- **Clock & Date:** Optional digital clock and date display, responsive to screen size.\n- **Responsive Layout:** Multiple breakpoint properties to control visibility and layout of elements based on viewport width.\n- **Settings Mode:** Special mode with close, back, and forward navigation, breadcrumbs, and app title.\n- **Tall Variant:** Optional increased height for touch or accessibility needs.\n- **Inactive State:** Disables interactive elements and visually de-emphasizes the bar.\n\n## Variants\n- **Regular:** Standard top bar with menu, app icon, title, page name, and action slots.\n- **Settings:** Shows close, back, forward buttons, breadcrumbs, and app title for configuration or settings screens.\n- **Inactive:** Visually muted and disables interaction (e.g., when the app is locked or in a modal state).\n- **Tall:** Increases the height of the bar for improved touch targets.\n\n## Usage Guidelines\nUse `<obc-top-bar>` as the persistent header for your application, providing navigation, context, and quick access to key actions or status. Configure which elements appear via boolean properties and slots. Adjust breakpoint properties to control responsive behavior for each section.\n\n- Place navigation, branding, and context (title, breadcrumbs) on the left; actions, alerts, and status (clock, user, apps) on the right.\n- Use the `settings` property for configuration or setup screens to enable close/back/forward navigation and breadcrumbs.\n- Use the `inactive` property to visually disable the bar and its actions when the app is not interactive.\n- Insert custom icons or buttons using the `app-icon` and `command-button` slots.\n- Slot an `obc-dropdown-button` into `asset-picker` when the page shows one of several assets; the app owns the list and the selection and listens for the button's `change`.\n- Use the `alerts` slot to display alert indicators, notification badges, or custom alert components.\n- Slot an `obc-diagnostic-button` into `diagnostics`; open its `obc-diagnostic-menu` from the button's `click` the way the user menu is opened from the user button.\n\n**TODO(designer):** Clarify recommended combinations of visible elements for different app contexts (e.g., when to show both user and apps buttons, or best practices for alert placement).\n\n## Slots\n\n| Slot Name | Renders When... | Purpose |\n|------------------|---------------------------------|----------------------------------------------------------------|\n| `app-icon` | `showAppIcon` is true | Custom icon representing the application or brand. |\n| `command-button` | `settings` is false (if provided) | Primary command or action button for the current context. |\n| `asset-picker` | `settings` is false (if provided) | Control that switches the asset the page shows; its label is the current asset. |\n| `alerts` | Always (if provided) | Area for alert indicators, notification badges, or alert items.|\n| `diagnostics` | Always (if provided) | The diagnostic button (`obc-diagnostic-button`), after the alert area and before the dimming button. |\n| `clock` | Always (if provided) | Clock component for displaying the current time. |\n\n## Events\n- `menu-button-clicked` – Fired when the menu button is clicked.\n- `dimming-button-clicked` – Fired when the dimming (day/night) button is clicked.\n- `apps-button-clicked` – Fired when the apps button is clicked.\n- `more-button-clicked` – Fired when the more button is clicked.\n- `left-more-button-clicked` – Deprecated alias of `more-button-clicked`, fired with it; removed in 4.0.0.\n- `user-button-clicked` – Fired when the user/profile button is clicked.\n- `close` – Fired in settings mode when the close button is clicked.\n- `back` – Fired in settings mode when the back button is clicked.\n- `forward` – Fired in settings mode when the forward button is clicked.\n- `emergency-brightness-start` – Fired when the menu button is held for 500ms. This should increase the brightness of the screen slowly. Used when the screen is too dark.\n- `emergency-brightness-stop` – Fired when the menu button is released.\n\n## Keyboard\nEvery control in the bar is its own tab stop and activates on `Enter` and\n`Space`. The bar is a navigation landmark, not an APG toolbar: its controls\nare separate components and slotted consumer content, so a roving tabindex\nacross them is deliberately not implemented. The emergency-brightness hold\nis a pointer gesture only; from the keyboard the menu button opens the menu.\n\n## Best Practices and Constraints\n- Only show interactive elements relevant to the current context to avoid clutter.\n- Use the `alerts` slot for transient or critical notifications; persistent alerts may require a different component.\n- For accessibility, give all interactive elements labels and focus handling.\n- Adjust breakpoint properties to optimize the layout for different device sizes.\n- In settings mode, use breadcrumbs to provide clear navigation context.\n\n## Example\n\n```html\n<obc-top-bar\n appTitle=\"My App\"\n pageName=\"Dashboard\"\n showAppsButton\n showDimmingButton\n showClock\n showUserButton\n showAppIcon\n>\n <obi-placeholder slot=\"app-icon\"></obi-placeholder>\n <obc-command-button slot=\"command-button\"></obc-command-button>\n <obc-topbar-message-item slot=\"alerts\"></obc-topbar-message-item>\n <obc-clock slot=\"clock\"></obc-clock>\n</obc-top-bar>\n```",
|
|
74863
75391
|
"name": "ObcTopBar",
|
|
74864
75392
|
"cssParts": [
|
|
74865
75393
|
{
|
|
@@ -74880,10 +75408,18 @@
|
|
|
74880
75408
|
"description": "Primary command/action button for the current context",
|
|
74881
75409
|
"name": "command-button"
|
|
74882
75410
|
},
|
|
75411
|
+
{
|
|
75412
|
+
"description": "Control that switches the asset the page shows, with the current asset as its label; an `obc-dropdown-button` fits (regular layout only, not in settings mode)",
|
|
75413
|
+
"name": "asset-picker"
|
|
75414
|
+
},
|
|
74883
75415
|
{
|
|
74884
75416
|
"description": "Area for alert indicators, notification badges, or alert items",
|
|
74885
75417
|
"name": "alerts"
|
|
74886
75418
|
},
|
|
75419
|
+
{
|
|
75420
|
+
"description": "The diagnostic button, after the alert area and before the dimming button",
|
|
75421
|
+
"name": "diagnostics"
|
|
75422
|
+
},
|
|
74887
75423
|
{
|
|
74888
75424
|
"description": "Clock component for displaying the current time (shown when `showClock` is true)",
|
|
74889
75425
|
"name": "clock"
|