@oicl/openbridge-webcomponents-full-bundle 2.1.0-next.1 → 2.1.0-next.2
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/.storybook/main.ts +2 -0
- package/bundle/openbridge-webcomponents.bundle.js +352 -244
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +1031 -97
- package/dist/building-blocks/alert-list/alert-list-base.d.ts +60 -0
- package/dist/building-blocks/alert-list/alert-list-base.d.ts.map +1 -0
- package/dist/building-blocks/alert-list/alert-list-base.js +191 -0
- package/dist/building-blocks/alert-list/alert-list-base.js.map +1 -0
- package/dist/building-blocks/alert-list/alert-list.css.js.map +1 -1
- package/dist/building-blocks/alert-list/alert-list.d.ts +13 -26
- package/dist/building-blocks/alert-list/alert-list.d.ts.map +1 -1
- package/dist/building-blocks/alert-list/alert-list.js +7 -142
- package/dist/building-blocks/alert-list/alert-list.js.map +1 -1
- package/dist/components/alert-icon/alert-icon.d.ts.map +1 -1
- package/dist/components/alert-icon/alert-icon.js +6 -5
- package/dist/components/alert-icon/alert-icon.js.map +1 -1
- package/dist/components/alert-list-details/alert-list-details.css.js +4 -1
- package/dist/components/alert-list-details/alert-list-details.css.js.map +1 -1
- package/dist/components/alert-menu/alert-menu.css.js +3 -42
- package/dist/components/alert-menu/alert-menu.css.js.map +1 -1
- package/dist/components/alert-menu/alert-menu.d.ts +28 -6
- package/dist/components/alert-menu/alert-menu.d.ts.map +1 -1
- package/dist/components/alert-menu/alert-menu.js +81 -60
- package/dist/components/alert-menu/alert-menu.js.map +1 -1
- package/dist/components/alert-menu-item/alert-menu-item.d.ts +16 -6
- package/dist/components/alert-menu-item/alert-menu-item.d.ts.map +1 -1
- package/dist/components/alert-menu-item/alert-menu-item.js +11 -2
- package/dist/components/alert-menu-item/alert-menu-item.js.map +1 -1
- package/dist/components/number-input-field/number-input-field.css.js +8 -2
- package/dist/components/number-input-field/number-input-field.css.js.map +1 -1
- package/dist/components/number-input-field/number-input-field.d.ts +15 -1
- package/dist/components/number-input-field/number-input-field.d.ts.map +1 -1
- package/dist/components/number-input-field/number-input-field.js +38 -44
- package/dist/components/number-input-field/number-input-field.js.map +1 -1
- package/dist/components/textbox/textbox.css.js +3 -9
- package/dist/components/textbox/textbox.css.js.map +1 -1
- package/dist/components/textbox/textbox.d.ts +3 -0
- package/dist/components/textbox/textbox.d.ts.map +1 -1
- package/dist/components/textbox/textbox.js.map +1 -1
- package/dist/generated/locales/es-419.d.ts +1 -1
- package/dist/generated/locales/es-419.js +1 -1
- package/dist/generated/locales/es-419.js.map +1 -1
- package/dist/navigation-instruments/readout-list-item/readout-list-item.css.js +2 -1
- package/dist/navigation-instruments/readout-list-item/readout-list-item.css.js.map +1 -1
- package/dist/pages/alert-detail-page/alert-detail-page.js +1 -1
- package/dist/pages/alert-detail-page/alert-detail-page.js.map +1 -1
- package/dist/pages/alert-list-page-small/alert-list-page-small-base.d.ts +59 -0
- package/dist/pages/alert-list-page-small/alert-list-page-small-base.d.ts.map +1 -0
- package/dist/pages/alert-list-page-small/alert-list-page-small-base.js +126 -0
- package/dist/pages/alert-list-page-small/alert-list-page-small-base.js.map +1 -0
- package/dist/pages/alert-list-page-small/alert-list-page-small.d.ts +12 -15
- package/dist/pages/alert-list-page-small/alert-list-page-small.d.ts.map +1 -1
- package/dist/pages/alert-list-page-small/alert-list-page-small.js +41 -92
- package/dist/pages/alert-list-page-small/alert-list-page-small.js.map +1 -1
- package/docs/GettingStarted.mdx +1 -0
- package/docs/MigrationGuide.mdx +2 -0
- package/package.json +1 -1
- package/src/building-blocks/alert-list/alert-list-base.ts +266 -0
- package/src/building-blocks/alert-list/alert-list.css +1 -23
- package/src/building-blocks/alert-list/alert-list.spec.ts +22 -0
- package/src/building-blocks/alert-list/alert-list.ts +15 -207
- package/src/components/alert-icon/alert-icon.spec.ts +39 -0
- package/src/components/alert-icon/alert-icon.ts +11 -7
- package/src/components/alert-list-details/alert-list-details.css +1 -20
- package/src/components/alert-menu/alert-menu.css +5 -28
- package/src/components/alert-menu/alert-menu.spec.ts +113 -0
- package/src/components/alert-menu/alert-menu.ts +142 -79
- package/src/components/alert-menu-item/alert-menu-item.spec.ts +39 -0
- package/src/components/alert-menu-item/alert-menu-item.stories.ts +22 -0
- package/src/components/alert-menu-item/alert-menu-item.ts +22 -6
- package/src/components/number-input-field/number-input-field.css +8 -2
- package/src/components/number-input-field/number-input-field.spec.ts +260 -2
- package/src/components/number-input-field/number-input-field.stories.ts +74 -0
- package/src/components/number-input-field/number-input-field.ts +45 -74
- package/src/components/textbox/textbox.css +3 -9
- package/src/components/textbox/textbox.stories.ts +24 -0
- package/src/components/textbox/textbox.ts +3 -0
- package/src/generated/locales/es-419.ts +1 -1
- package/src/mixins/alert-list-empty.css +32 -0
- package/src/navigation-instruments/readout-list-item/readout-list-item.css +2 -1
- package/src/pages/alert-detail-page/alert-detail-page.spec.ts +41 -0
- package/src/pages/alert-detail-page/alert-detail-page.ts +1 -1
- package/src/pages/alert-list-page-small/alert-list-page-small-base.ts +152 -0
- package/src/pages/alert-list-page-small/alert-list-page-small.spec.ts +84 -0
- package/src/pages/alert-list-page-small/alert-list-page-small.ts +43 -112
package/custom-elements.json
CHANGED
|
@@ -3055,6 +3055,28 @@
|
|
|
3055
3055
|
}
|
|
3056
3056
|
]
|
|
3057
3057
|
},
|
|
3058
|
+
{
|
|
3059
|
+
"kind": "javascript-module",
|
|
3060
|
+
"path": "dist/building-blocks/alert-list/alert-list-base.js",
|
|
3061
|
+
"declarations": [
|
|
3062
|
+
{
|
|
3063
|
+
"kind": "variable",
|
|
3064
|
+
"name": "ObcAlertListBase",
|
|
3065
|
+
"default": "class extends LitElement { constructor(..._args) { super(..._args); this.oldElementTop = /* @__PURE__ */ new Map(); this.mutationObserver = null; this.intersectionObserver = null; this.hasRenderedPanel = false; this._empty = false; } /** Whether the list counts an item as one it shows. */ matchesFilter(_item) { return true; } /** Whether this update changed what `matchesFilter` decides. */ filterChanged(_changed) { return false; } /** Item attributes whose changes can change what `matchesFilter` decides. */ get observedItemAttributes() { return [\"status\", \"shelved\"]; } get emptyFallback() { return {}; } firstUpdated() { this.applyFilter(); this.setupMutationObserver(); } connectedCallback() { super.connectedCallback(); const intersectionObserver = new IntersectionObserver((entries) => { if (entries[0].intersectionRatio === 0) this.hasRenderedPanel = false; }); intersectionObserver.observe(this); this.intersectionObserver = intersectionObserver; this.setupMutationObserver(); } disconnectedCallback() { super.disconnectedCallback(); if (this.mutationObserver) { this.mutationObserver.disconnect(); this.mutationObserver = null; } if (this.intersectionObserver) { this.intersectionObserver.disconnect(); this.intersectionObserver = null; } } willUpdate(_changedProperties) { if (this.filterChanged(_changedProperties)) { this.applyFilter(); this.updateOldElementTop(); } } /** Runs whenever the items or the filter change; a subclass extends it to act on each item. */ applyFilter() { this._empty = this.getAlertItems().length === 0; } getAlertItems() { return this.alertItems.filter((item) => this.matchesFilter(item)); } updateOldElementTop() { const elements = this.getAlertItems(); if (elements.length === 0) return; let top = elements[0].getBoundingClientRect().top; this.oldElementTop.clear(); elements.forEach((element) => { const elementRect = element.getBoundingClientRect(); if (elementRect.height === 0) return; this.oldElementTop.set(element, top); top += elementRect.height; }); } setupMutationObserver() { if (this.mutationObserver) { this.mutationObserver.disconnect(); this.mutationObserver = null; } this.mutationObserver = new MutationObserver(() => { this.handleElementsChange(); }); this.alertItems.forEach((element) => { this.mutationObserver?.observe(element, { attributes: true, attributeFilter: this.observedItemAttributes }); }); } handleSlotChange() { this.handleElementsChange(); this.setupMutationObserver(); } handleElementsChange() { this.mutationObserver?.takeRecords(); this.applyFilter(); if (!this.checkVisibility()) return; const elements = this.getAlertItems(); const oldElementTop = new Map(this.oldElementTop); requestAnimationFrame(() => { this.updateOldElementTop(); let hasNewElements = false; elements.forEach((element) => { const elementRect = element.getBoundingClientRect(); const oldTop = oldElementTop.get(element); if (oldTop === void 0) { element.animateIntro = this.hasRenderedPanel; hasNewElements = true; setTimeout(() => { element.animateIntro = false; }, 101); return; } const diff = oldTop - elementRect.top; if (diff === 0) return; element.style.transform = `translateY(${diff}px)`; element.style.transition = \"none\"; element.offsetHeight; element.style.transition = \"transform 100ms ease-in-out\"; element.style.transform = \"translateY(0px)\"; }); this.hasRenderedPanel = true; if (hasNewElements) setTimeout(() => { this.updateOldElementTop(); }, 101); }); } getVisibleElements() { const scrollbarRect = this.scrollbar.getBoundingClientRect(); return this.getAlertItems().map((element, index) => ({ element, index })).filter(({ element }) => { const style = window.getComputedStyle(element); if (style.display === \"none\" || style.visibility === \"hidden\") return false; const elementRect = element.getBoundingClientRect(); return !(elementRect.top < scrollbarRect.top || elementRect.bottom > scrollbarRect.bottom); }); } render() { const fallback = this.emptyFallback; return html` <obc-scrollbar class=\"alert-list\" id=\"scrollbar\"> <slot @slotchange=${this.handleSlotChange}></slot> ${this._empty ? html` <div class=\"empty-list\"> <div class=\"icon\"> <slot name=\"empty-icon\">${fallback.icon}</slot> </div> <div class=\"empty-title\"> <slot name=\"empty-title\">${fallback.title}</slot> </div> <div class=\"empty-description\"> <slot name=\"empty-description\"></slot> </div> </div>` : nothing} </obc-scrollbar>`; } static { this.styles = unsafeCSS(alert_list_default); } }",
|
|
3066
|
+
"description": "`ObcAlertListBase` – Scrolling list of slotted alert items that animates items\ninto place and shows an empty state when no item passes its filter.\n\nNot registered as an element: the subclasses decide which items pass.\n`obc-alert-list` runs a predicate the consumer sets.\n\n### Features\n- **Filter:** `matchesFilter()` decides which items count; the list re-reads\n it when items are added or removed, when an item attribute named by\n `observedItemAttributes` changes, and when `filterChanged()` reports a\n change of the subclass's filter inputs.\n- **Motion:** items that move slide to their new place; new items play\n their intro animation once the list has been seen.\n- **Empty state:** icon, title and description slots, with fallback content\n from `emptyFallback`.\n- **Visible items:** `getVisibleElements()` returns the items that pass the\n filter and sit inside the scroll viewport."
|
|
3067
|
+
}
|
|
3068
|
+
],
|
|
3069
|
+
"exports": [
|
|
3070
|
+
{
|
|
3071
|
+
"kind": "js",
|
|
3072
|
+
"name": "ObcAlertListBase",
|
|
3073
|
+
"declaration": {
|
|
3074
|
+
"name": "ObcAlertListBase",
|
|
3075
|
+
"module": "dist/building-blocks/alert-list/alert-list-base.js"
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
]
|
|
3079
|
+
},
|
|
3058
3080
|
{
|
|
3059
3081
|
"kind": "javascript-module",
|
|
3060
3082
|
"path": "dist/building-blocks/alert-list/alert-list.js",
|
|
@@ -3062,7 +3084,7 @@
|
|
|
3062
3084
|
{
|
|
3063
3085
|
"kind": "variable",
|
|
3064
3086
|
"name": "ObcAlertList",
|
|
3065
|
-
"default": "class ObcAlertList extends
|
|
3087
|
+
"default": "class ObcAlertList extends ObcAlertListBase { constructor(..._args) { super(..._args); this.filter = () => true; } matchesFilter(item) { return this.filter(item); } filterChanged(changed) { return changed.has(\"filter\"); } }"
|
|
3066
3088
|
}
|
|
3067
3089
|
],
|
|
3068
3090
|
"exports": [
|
|
@@ -3874,7 +3896,7 @@
|
|
|
3874
3896
|
{
|
|
3875
3897
|
"kind": "variable",
|
|
3876
3898
|
"name": "ObcAlertIcon",
|
|
3877
|
-
"default": "class ObcAlertIcon extends LitElement { constructor(..._args) { super(..._args); this.alertType = AlertType.Alarm; this.flashingSpeed = FlashingSpeed.Default; this.flashing = new FlashingController(this, () => this.resolvedFlashingSpeed); } get resolvedFlashingSpeed() { if (this.acknowledged || !this.icon) return FlashingSpeed.Fixed; return resolveFlashingSpeed(this.flashingSpeed, this._effectiveType, this.active === false ? AlertFlashPhase.Rectified : AlertFlashPhase.Active); } get _effectiveType() { if (this.type) return this.type; return this.alertType; } get bamType() { return getBamAlertTypeForBlinking(this._effectiveType); } get _effectiveState() { if (this.active === false) return \"rectified\"; else if (this.acknowledged) return \"acknowledged\"; else if (this.silenced) return \"silenced\"; else if (this.active === true) return \"unacknowledged\"; return \"unacknowledged\"; } get icon() { if (this._effectiveType === AlertType.LevelCritical) switch (this._effectiveState) { case \"rectified\": return mapping[\"critical-rectified\"]; case \"silenced\": return mapping[\"critical-silenced\"]; case \"unacknowledged\": return mapping[\"critical-unack\"]; default: return mapping[\"critical\"]; } else if (this._effectiveType === AlertType.LevelLow) switch (this._effectiveState) { case \"rectified\": return mapping[\"low-rectified\"]; case \"silenced\": return mapping[\"low-silenced\"]; case \"unacknowledged\": return mapping[\"low-unack\"]; default: return mapping[\"low-unack\"]; } else if (this.bamType === AlertType.Alarm) switch (this._effectiveState) { case \"rectified\": return mapping[\"alarm-rectified\"]; case \"silenced\": return mapping[\"alarm-silenced\"]; case \"unacknowledged\": return mapping[\"alarm-unack\"]; default: return null; } else if (this.bamType === AlertType.Warning)
|
|
3899
|
+
"default": "class ObcAlertIcon extends LitElement { constructor(..._args) { super(..._args); this.alertType = AlertType.Alarm; this.flashingSpeed = FlashingSpeed.Default; this.flashing = new FlashingController(this, () => this.resolvedFlashingSpeed); } get resolvedFlashingSpeed() { if (this.acknowledged || !this.icon) return FlashingSpeed.Fixed; return resolveFlashingSpeed(this.flashingSpeed, this._effectiveType, this.active === false ? AlertFlashPhase.Rectified : AlertFlashPhase.Active); } get _effectiveType() { if (this.type) return this.type; return this.alertType; } get bamType() { return getBamAlertTypeForBlinking(this._effectiveType); } get _effectiveState() { if (this.active === false) return \"rectified\"; else if (this.acknowledged) return \"acknowledged\"; else if (this.silenced) return \"silenced\"; else if (this.active === true) return \"unacknowledged\"; return \"unacknowledged\"; } get icon() { if (this._effectiveType === AlertType.LevelCritical) switch (this._effectiveState) { case \"rectified\": return mapping[\"critical-rectified\"]; case \"silenced\": return mapping[\"critical-silenced\"]; case \"unacknowledged\": return mapping[\"critical-unack\"]; default: return mapping[\"critical\"]; } else if (this._effectiveType === AlertType.LevelLow) switch (this._effectiveState) { case \"rectified\": return mapping[\"low-rectified\"]; case \"silenced\": return mapping[\"low-silenced\"]; case \"unacknowledged\": return mapping[\"low-unack\"]; default: return mapping[\"low-unack\"]; } else if (this.bamType === AlertType.Alarm) switch (this._effectiveState) { case \"rectified\": return mapping[\"alarm-rectified\"]; case \"silenced\": return mapping[\"alarm-silenced\"]; case \"unacknowledged\": return mapping[\"alarm-unack\"]; default: return null; } else if (this.bamType === AlertType.Warning) switch (this._effectiveState) { case \"rectified\": return mapping[\"warning-rectified\"]; case \"silenced\": return mapping[\"warning-silenced\"]; case \"unacknowledged\": return mapping[\"warning-unack\"]; default: return null; } return null; } renderStaticIcon() { if (this._effectiveType === AlertType.Caution) return html`<obi-caution-color-iec usecsscolor></obi-caution-color-iec>`; if (this._effectiveType === AlertType.LevelDiagnostic) return html`<obi-diagnostic-badge style=\"color: var(--alert-diagnostic-color);\" ></obi-diagnostic-badge>`; if (this._effectiveState === \"acknowledged\") { if (this._effectiveType === AlertType.LevelCritical) return html`${criticalAcknowledged}`; if (this._effectiveType === AlertType.LevelLow) return html`${lowAcknowledged}`; switch (this.bamType) { case AlertType.Alarm: return html`<obi-alarm-acknowledged-iec usecsscolor ></obi-alarm-acknowledged-iec>`; case AlertType.Warning: return html`<obi-warning-acknowledged-iec usecsscolor ></obi-warning-acknowledged-iec>`; default: return nothing; } } else if (this._effectiveState === \"rectified\") { if (this._effectiveType === AlertType.LevelCritical) return html`${criticalRectifiedB}`; if (this._effectiveType === AlertType.LevelLow) return html`${lowRectifiedB}`; switch (this.bamType) { case AlertType.Alarm: return html`<obi-alarm-rectified-outlined usecsscolor ></obi-alarm-rectified-outlined>`; case AlertType.Warning: return html`<obi-warning-rectified-outlined usecsscolor ></obi-warning-rectified-outlined>`; default: return nothing; } } return this.icon ? html`${this.icon.a}` : nothing; } render() { if (!this._effectiveType) return html`<div>No alarm</div>`; const tempo = this.resolvedFlashingSpeed; const icons = this.icon; if (tempo !== FlashingSpeed.Fixed && icons) return html` <div class=${classMap({ wrapper: true, [`flash-${tempo}`]: true })}> <span class=\"a\">${icons.a}</span> <span class=\"b\">${icons.b}</span> </div> `; return html`<div class=\"wrapper\">${this.renderStaticIcon()}</div>`; } static { this.styles = css` .wrapper { height: 100%; width: 100%; position: relative; obi-diagnostic-badge, obi-critical-badge { display: block; height: 100%; width: 100%; position: absolute; top: 0; left: 0; } svg, .a, .b { height: 100%; width: 100%; position: absolute; top: 0; left: 0; } &.flash-fast .a { opacity: var(--flash-fast-on); } &.flash-fast .b { opacity: var(--flash-fast-off); } &.flash-slow .a { opacity: var(--flash-slow-on); } &.flash-slow .b { opacity: var(--flash-slow-off); } &.flash-very-slow .a { opacity: var(--flash-very-slow-on); } &.flash-very-slow .b { opacity: var(--flash-very-slow-off); } } `; } }"
|
|
3878
3900
|
}
|
|
3879
3901
|
],
|
|
3880
3902
|
"exports": [
|
|
@@ -4042,7 +4064,7 @@
|
|
|
4042
4064
|
{
|
|
4043
4065
|
"kind": "variable",
|
|
4044
4066
|
"name": "ObcAlertMenuItem",
|
|
4045
|
-
"default": "class ObcAlertMenuItem extends LitElement { constructor(..._args) { super(..._args); this.hasIcon = false; this.shelved = false; this.title = \"\"; this.description = \"\"; this.day = \"\"; this.time = \"\"; this.status = \"unacknowledged\"; this.open = false; this.size = ObcMessageMenuItemSize.SingleLine; this.animateIntro = false; this.secondaryActionLabel = \"\"; this.primaryActionState = \"enabled\"; this.secondaryActionState = \"none\"; } get primaryActionLabel() { if (this.primaryActionState === \"none\") return \"\"; return this.
|
|
4067
|
+
"default": "class ObcAlertMenuItem extends LitElement { constructor(..._args) { super(..._args); this.hasIcon = false; this.shelved = false; this.blocked = false; this.title = \"\"; this.description = \"\"; this.day = \"\"; this.time = \"\"; this.status = \"unacknowledged\"; this.open = false; this.size = ObcMessageMenuItemSize.SingleLine; this.animateIntro = false; this.secondaryActionLabel = \"\"; this.primaryActionState = \"enabled\"; this.secondaryActionState = \"none\"; } get canAck() { return this.status === \"unacknowledged\" || this.status === \"rectified-unacknowledged\"; } get primaryActionLabel() { if (this.primaryActionState === \"none\") return \"\"; return this.canAck ? \"ACK\" : \"\"; } get secondaryActionLabelToShow() { if (this.secondaryActionState === \"none\") return \"\"; return this.secondaryActionLabel; } get primaryActionDisabled() { return this.primaryActionState === \"disabled\"; } get secondaryActionDisabled() { return this.secondaryActionState === \"disabled\"; } get hasTrailingIcon() { return !this.canAck; } handleMessageClick(event) { event.stopPropagation(); this.dispatchEvent(new CustomEvent(\"item-click\")); this.open = !this.open; } handleActionClick(event) { event.stopPropagation(); this.dispatchEvent(new CustomEvent(\"ack-click\")); } handleSecondaryActionClick(event) { event.stopPropagation(); this.dispatchEvent(new CustomEvent(\"ack-secondary-click\")); } render() { return html` <obc-message-menu-item .title=${this.title} .description=${this.description} .day=${this.day} .time=${this.time} .primaryActionLabel=${this.primaryActionLabel} .secondaryActionLabel=${this.secondaryActionLabelToShow} .enablePrimaryAction=${!this.primaryActionDisabled} .enableSecondaryAction=${!this.secondaryActionDisabled} .size=${this.size} .open=${this.open} .hasSecondaryIcon=${this.hasIcon} .isShelved=${this.shelved} .hasTrailingIcon=${this.hasTrailingIcon} enhancedIcon hasPrimaryIcon @message-click=${this.handleMessageClick} @primary-action-click=${this.handleActionClick} @secondary-action-click=${this.handleSecondaryActionClick} > <slot name=\"alert-icon\" slot=\"primary-icon\"></slot> <slot name=\"title\" slot=\"title\">${this.title}</slot> <slot name=\"description\" slot=\"description\">${this.description}</slot> ${this.hasIcon ? html`<slot name=\"icon\" slot=\"secondary-icon\"></slot>` : nothing} ${choose(this.status, [[\"no-ack-alarm\", () => html`<obi-alarm-noack-iec slot=\"trailing-icon\" useCssColor ></obi-alarm-noack-iec>`], [\"no-ack-warning\", () => html`<obi-warning-noack-iec slot=\"trailing-icon\" useCssColor ></obi-warning-noack-iec>`]])} </obc-message-menu-item> `; } static { this.styles = unsafeCSS(alert_menu_item_default); } }"
|
|
4046
4068
|
}
|
|
4047
4069
|
],
|
|
4048
4070
|
"exports": [
|
|
@@ -4079,7 +4101,7 @@
|
|
|
4079
4101
|
{
|
|
4080
4102
|
"kind": "variable",
|
|
4081
4103
|
"name": "ObcAlertMenu",
|
|
4082
|
-
"default": "class ObcAlertMenu extends LitElement { constructor(..._args) { super(..._args); this.softDismiss = false; this.open = false; this.softDismissController = new PopoverController(this); this.hasShelved = false; this.canAckAll = false; this.showSilenceButton = true; this.showAlertListButton = true;
|
|
4104
|
+
"default": "class ObcAlertMenu extends LitElement { constructor(..._args) { super(..._args); this.softDismiss = false; this.open = false; this.softDismissController = new PopoverController(this); this.hasShelved = false; this.canAckAll = false; this.showSilenceButton = true; this.showAlertListButton = true; } handleAckAllVisibleClick() { const visibleElements = this.alertList.getVisibleElements(); this.dispatchEvent(new CustomEvent(\"ack-all-visible-click\", { detail: { visibleElements, tabName: this.selectedTab.name } })); } onTabChange(e) { this._selectedTabName = this.tabs[e.detail.tab]?.name; } willUpdate(changedProperties) { super.willUpdate(changedProperties); if (!this.tabs.some((tab) => tab.name === this._selectedTabName)) this._selectedTabName = void 0; } /** Whether the menu offers \"ACK visible\" at all; `canAckAll` enables it. */ get offersAckAll() { return true; } /** The tabs in display order; the menu opens on the second one. */ get tabs() { const tabs = [{ name: \"unacked\", title: msg(\"Unacked\"), emptyTitle: msg(\"No unacknowledged alerts\"), emptyIcon: html`<obi-unacknowledged></obi-unacknowledged>` }, { name: \"all\", title: msg(\"Active\"), emptyTitle: msg(\"No active alerts\"), emptyIcon: html`<obi-alerts></obi-alerts>` }]; if (this.hasShelved) tabs.push({ name: \"shelved\", title: msg(\"Shelved\"), emptyTitle: msg(\"No shelved alerts\"), emptyIcon: html`<obi-alerts-shelf></obi-alerts-shelf>` }); return tabs; } /** Where the selected tab sits in `tabs`: the one the user picked, else the second. */ selectedTabIndex(tabs) { const index = tabs.findIndex((tab) => tab.name === this._selectedTabName); return index === -1 ? 1 : index; } get selectedTab() { const tabs = this.tabs; return tabs[this.selectedTabIndex(tabs)]; } /** * The list that shows the selected tab's items. The CSS hides the items the * tab leaves out; the filter tells the list which ones those are. */ renderList(tab, content) { return html`<obc-alert-list class=\"alert-list ${tab.name}\" .filter=${(item) => this.tabFilter(tab.name, item)} >${content}</obc-alert-list >`; } tabFilter(name, item) { const status = item.getAttribute(\"status\") ?? \"\"; if (name === \"unacked\") return WAITING_FOR_ACK.includes(status) && !item.hasAttribute(\"shelved\"); if (name === \"shelved\") return item.hasAttribute(\"shelved\"); return !item.hasAttribute(\"shelved\") && status !== ObcAlertMenuItemStatus.RectifiedUnacknowledged; } render() { const tabs = this.tabs; const selectedIndex = this.selectedTabIndex(tabs); const t = tabs[selectedIndex]; return html` <obc-tabbed-card .nTabs=${tabs.length} class=\"wrapper\" part=\"wrapper\" .selectedTab=${selectedIndex} hasDefaultSlotOnly @tab-change=${this.onTabChange} > ${tabs.map((tab, index) => html`<span slot=\"tab-title-${index}\">${tab.title}</span>`)} <div class=\"container\"> ${this.renderList(t, html`<slot></slot> <slot name=\"empty-${t.name}-title\" slot=\"empty-title\" >${t.emptyTitle}</slot > <slot name=\"empty-${t.name}-description\" slot=\"empty-description\" >${msg(\"Go to the 'Alert list' for more details or to manage existing alerts.\")}</slot > <slot name=\"empty-${t.name}-icon\" slot=\"empty-icon\" >${t.emptyIcon}</slot >`)} <div class=\"action\"> ${this.offersAckAll ? html`<obc-button variant=\"raised\" .disabled=${!this.canAckAll} fullWidth class=\"btn\" data-testid=\"ack-all-visible-button\" @click=${this.handleAckAllVisibleClick} > ${msg(\"ACK visible\")} </obc-button>` : nothing} ${this.showSilenceButton ? html`<obc-button variant=\"normal\" fullWidth class=\"btn\" showLeadingIcon @click=${() => this.dispatchEvent(new CustomEvent(\"silence-click\"))} > <obi-silence-iec slot=\"leading-icon\"></obi-silence-iec> ${msg(\"Silence\")} </obc-button>` : nothing} ${this.showAlertListButton ? html`<obc-button variant=\"normal\" class=\"btn\" fullWidth showLeadingIcon showTrailingIcon @click=${() => this.dispatchEvent(new CustomEvent(\"go-to-alert-list-click\"))} > <obi-alert-list slot=\"leading-icon\"></obi-alert-list> <obi-chevron-right-google slot=\"trailing-icon\" ></obi-chevron-right-google> ${msg(\"Alerts\")} </obc-button>` : nothing} </div> </div> </obc-tabbed-card> `; } static { this.styles = unsafeCSS(alert_menu_default); } }"
|
|
4083
4105
|
}
|
|
4084
4106
|
],
|
|
4085
4107
|
"exports": [
|
|
@@ -5786,7 +5808,7 @@
|
|
|
5786
5808
|
{
|
|
5787
5809
|
"kind": "variable",
|
|
5788
5810
|
"name": "ObcNumberInputField",
|
|
5789
|
-
"default": "class ObcNumberInputField extends LitElement { constructor(..._args) { super(..._args); this.value = NaN; this.unit = \"\"; this.placeholder = \"\"; this.textAlign = \"right\"; this.disabled = false; this.readonly = false; this.error = false; this.errorText = \"\"; this.rejectUpdatesOnFocus = false; this.rejectUpdates = false; this.rejectDuplicateUpdates = false; this.name = \"\"; this.size = \"regular\"; this.hasLeadingIcon = false; this.helperText = \"\"; this.label = \"\"; this.required = false; this.hasLabelIcon = false; this.labelPlacement = \"left\"; this.hasHelperIcon = false; this.helperPlacement = \"left\"; this.squared = false; this.displayOverride = \"\"; this.minFractionDigits = 0; this.validationPattern = \"\"; this.hasFocus = false; this.displayText = \"\"; this.previousValue = NaN; this.previousDisplayText = \"\"; this.lastCommittedValue = NaN; } get displayValue() { return this.displayText; } getFormatOptions() { return { decimalSeparator: this.decimalSeparator, groupSeparator: this.groupSeparator, minFractionDigits: this.minFractionDigits, maxFractionDigits: this.maxFractionDigits }; } formatValueForDisplay(value) { return formatNumberForDisplay(value, this.getFormatOptions()); } onInput(e) { e.stopPropagation(); const raw = e.target.value; this.displayText = raw; this.displayOverride = \"\"; const parsed = parseNumberInput(raw); this.value = parsed; this.previousDisplayText = raw; this.
|
|
5811
|
+
"default": "class ObcNumberInputField extends LitElement { constructor(..._args) { super(..._args); this.value = NaN; this.unit = \"\"; this.placeholder = \"\"; this.textAlign = \"right\"; this.disabled = false; this.readonly = false; this.error = false; this.errorText = \"\"; this.rejectUpdatesOnFocus = false; this.rejectUpdates = false; this.rejectDuplicateUpdates = false; this.name = \"\"; this.size = \"regular\"; this.hasLeadingIcon = false; this.helperText = \"\"; this.label = \"\"; this.required = false; this.hasLabelIcon = false; this.labelPlacement = \"left\"; this.hasHelperIcon = false; this.helperPlacement = \"left\"; this.squared = false; this.displayOverride = \"\"; this.minFractionDigits = 0; this.validationPattern = \"\"; this.hasFocus = false; this.displayText = \"\"; this.previousValue = NaN; this.previousDisplayText = \"\"; this.lastCommittedValue = NaN; this.focusFromValueClick = false; } get displayValue() { return this.displayText; } getFormatOptions() { return { decimalSeparator: this.decimalSeparator, groupSeparator: this.groupSeparator, minFractionDigits: this.minFractionDigits, maxFractionDigits: this.maxFractionDigits }; } formatValueForDisplay(value) { return formatNumberForDisplay(value, this.getFormatOptions()); } onInput(e) { e.stopPropagation(); const raw = e.target.value; this.displayText = raw; this.displayOverride = \"\"; const parsed = parseNumberInput(raw); this.value = parsed; this.previousDisplayText = raw; this.dispatchInput(); } isProjectedValueAllowed(projected) { if (this.validationPattern) { let regex; try { regex = new RegExp(`^(?:${this.validationPattern})$`); } catch { return isAllowedIntermediateInput(projected, this.getFormatOptions()); } return regex.test(projected); } return isAllowedIntermediateInput(projected, this.getFormatOptions()); } onBeforeInput(e) { if (this.disabled || this.readonly) return; const input = e.target; const incoming = e.data ?? e.dataTransfer?.getData(\"text/plain\") ?? null; if (incoming === null) return; const start = input.selectionStart ?? input.value.length; const end = input.selectionEnd ?? input.value.length; const projected = input.value.slice(0, start) + incoming + input.value.slice(end); if (!this.isProjectedValueAllowed(projected)) e.preventDefault(); } onFocus() { this.hasFocus = true; if (this.readonly) return; if (this.focusFromValueClick) { this.focusFromValueClick = false; requestAnimationFrame(() => void this.ungroupKeepingSelection()); return; } this.ungroupDisplay(); } /** * Ungroups a value the user clicked into, once the browser has placed the * caret, and moves the caret with its digits. Ungrouping before that shifts * the text under the pointer and the caret lands beside the clicked digit. */ async ungroupKeepingSelection() { const input = this.inputElement; if (!input || !this.hasFocus) return; const grouped = input.value; const offsetWithoutGrouping = (offset) => removeGroupingFromDisplay(grouped.slice(0, offset ?? grouped.length), this.getFormatOptions()).length; const start = offsetWithoutGrouping(input.selectionStart); const end = offsetWithoutGrouping(input.selectionEnd); const direction = input.selectionDirection ?? void 0; this.ungroupDisplay(); await this.updateComplete; input.setSelectionRange(start, end, direction); } ungroupDisplay() { const source = this.displayOverride || this.displayText; this.displayText = removeGroupingFromDisplay(source, this.getFormatOptions()); this.displayOverride = \"\"; } onBlur() { this.hasFocus = false; if (this.readonly) return; this.commitDisplay(); if (!valuesEqual(this.value, this.lastCommittedValue)) { this.lastCommittedValue = this.value; this.dispatchChange(); } } commitDisplay() { const trimmed = this.displayText.trim(); if (trimmed === \"\") { this.value = NaN; this.displayText = \"\"; this.displayOverride = \"\"; return; } const forCommit = trimmed.replace(/[.,]$/, \"\"); const parsed = parseNumberInput(forCommit); if (Number.isFinite(parsed)) { this.value = parsed; this.displayText = this.formatValueForDisplay(parsed); } else this.value = NaN; this.displayOverride = \"\"; } dispatchInput() { this.dispatchEvent(new CustomEvent(\"input\", { detail: { value: this.value } })); } dispatchChange() { this.dispatchEvent(new CustomEvent(\"change\", { detail: { value: this.value } })); } get shouldUpdateValue() { if (this.rejectUpdates) return false; if (this.rejectUpdatesOnFocus && this.hasFocus) return false; if (this.rejectDuplicateUpdates && valuesEqual(this.value, this.previousValue)) return false; return true; } getEffectiveDisplay() { if (this.displayOverride) return this.displayOverride; if (!this.shouldUpdateValue && this.inputElement) return this.inputElement.value; return this.displayText; } firstUpdated() { if (!this.displayText && !this.displayOverride) this.displayText = this.formatValueForDisplay(this.value); this.lastCommittedValue = this.value; } get isEmpty() { if (this.inputElement) return this.inputElement.value.trim().length === 0; return isNaN(this.value); } willUpdate(changedProperties) { const formatPropsChanged = changedProperties.has(\"decimalSeparator\") || changedProperties.has(\"groupSeparator\") || changedProperties.has(\"minFractionDigits\") || changedProperties.has(\"maxFractionDigits\"); if (changedProperties.has(\"value\") && this.shouldUpdateValue) { if (!this.hasFocus) { this.displayText = this.formatValueForDisplay(this.value); this.displayOverride = \"\"; this.lastCommittedValue = this.value; } } else if (formatPropsChanged && !this.hasFocus && this.shouldUpdateValue) { this.displayText = this.formatValueForDisplay(this.value); this.displayOverride = \"\"; } if (changedProperties.has(\"value\") && !this.shouldUpdateValue && this.inputElement) this.value = parseNumberInput(this.inputElement.value); } updated() { if (this.rejectDuplicateUpdates && !valuesEqual(this.value, this.previousValue) && (this.previousDisplayText !== this.displayText || !this.hasFocus)) this.previousValue = this.value; } renderFooterText(text, isError) { if (!text) return nothing; return html`<div id=\"helper-text\" class=${classMap({ [isError ? \"error-text\" : \"helper-text\"]: true, [`helper-placement-${this.helperPlacement}`]: true })} > ${this.hasHelperIcon ? html`<div class=\"helper-icon\"> <slot name=\"helper-icon\"></slot> </div>` : nothing} ${text} </div>`; } /** * Keeps focus where it is while the chrome around the value is clicked. * The wrapper is a `<label>`, so the click itself focuses the input; without * this the pointerdown would blur it first and commit an unfinished edit. * A click on the value itself is the browser's; it is only noted, so the * focus it causes ungroups the value without moving the caret. */ onPointerDown(e) { if (this.disabled || this.readonly) return; if (e.target === this.inputElement) { this.focusFromValueClick = !this.hasFocus; return; } e.preventDefault(); } render() { const hasHelperOrError = Boolean(this.helperText) || Boolean(this.error && this.errorText); const unitInside = this.unit && this.textAlign !== \"right-unit-outside\"; const unitOutside = this.unit && this.textAlign === \"right-unit-outside\"; const display = this.getEffectiveDisplay(); return html` <label class=${classMap({ wrapper: true, [`align-${this.textAlign}`]: true, [`size-${this.size}`]: true, error: this.error, disabled: this.disabled, readonly: this.readonly, empty: this.isEmpty, helpertext: hasHelperOrError, haslabel: Boolean(this.label), squared: this.squared })} @pointerdown=${this.onPointerDown} > ${this.label ? html`<div class=${classMap({ \"label-text-container\": true, [`label-placement-${this.labelPlacement}`]: true })} > ${this.hasLabelIcon ? html`<div class=\"label-icon\"> <slot name=\"label-icon\"></slot> </div>` : nothing} <span class=\"label-text\">${this.label}</span> ${this.required ? html`<div class=\"required-indicator\"></div>` : nothing} </div>` : nothing} <div class=\"horizontal-container\"> <div class=\"input-field-container\" part=\"input-field-container\"> ${this.hasLeadingIcon ? html`<div class=\"leading-icon\"> <slot name=\"leading-icon\"></slot> </div>` : nothing} <div class=\"label-container\"> <input type=\"text\" inputmode=\"decimal\" class=\"value-input\" .value=${display} @focus=${this.onFocus} @blur=${this.onBlur} .placeholder=${this.placeholder} name=${ifDefined(this.name || void 0)} ?disabled=${this.disabled} ?readonly=${this.readonly} ?required=${this.required} maxlength=${ifDefined(this.maxlength)} minlength=${ifDefined(this.minlength)} aria-invalid=${this.error ? \"true\" : \"false\"} aria-describedby=${ifDefined(hasHelperOrError ? \"helper-text\" : void 0)} autocomplete=\"off\" @beforeinput=${this.onBeforeInput} @input=${this.onInput} /> ${unitInside ? html`<span class=\"unit-text\">${this.unit}</span>` : nothing} </div> </div> ${unitOutside ? html`<span class=\"unit-text external\">${this.unit}</span>` : nothing} </div> ${this.error && this.errorText ? this.renderFooterText(this.errorText, true) : this.renderFooterText(this.helperText, false)} </label> `; } static { this.styles = unsafeCSS(number_input_field_default); } }"
|
|
5790
5812
|
}
|
|
5791
5813
|
],
|
|
5792
5814
|
"exports": [
|
|
@@ -10381,7 +10403,7 @@
|
|
|
10381
10403
|
{
|
|
10382
10404
|
"kind": "variable",
|
|
10383
10405
|
"name": "ObcAlertDetailPage",
|
|
10384
|
-
"default": "class ObcAlertDetailPage extends LitElement { constructor(..._args) { super(..._args); this.type = \"page\"; this.hasNote = false; this.hasActions = false; this.hasTagId = false; this.hasCategory = false; this.hasActivated = false; this.hasTimer = false; this.hasAcknowledged = false; this.hasAcknowledgedBy = false; this.hasRectified = false; this.hasShelvingTimer = false; this.hasShelvedBy = false; this.hasReadoutGraph = false; this.timeFormatter = (time) => time.toLocaleTimeString(void 0, { hour12: false }); this.timeSinceFormatter = formatTimeSince; this._interval = null; } connectedCallback() { super.connectedCallback(); this._interval = window.setInterval(() => { this.requestUpdate(); }, 1e3); } disconnectedCallback() { super.disconnectedCallback(); if (this._interval) window.clearInterval(this._interval); } get alertStatusIcon() { if (this.alert.shelved) return html`<obi-alerts-shelf class=\"icon status\"></obi-alerts-shelf>`; if (this.alert.blocked) return html`<obi-command-locked-f class=\"icon status\" ></obi-command-locked-f>`; return nothing; } renderDetail(has, slotName, defaultTitle, getValue, options = {}) { if (has) { const rawValue = getValue(this.alert); let value; let isIcon = false; if (rawValue instanceof Date) { if (options.timer) value = this.timeSinceFormatter(rawValue); else value = this.timeFormatter(rawValue); } else if (slotName === \"category\") { isIcon = true; if (rawValue === AlertCategory.a) value = html`<obi-alert-category-a></obi-alert-category-a>`; else if (rawValue === AlertCategory.b) value = html`<obi-alert-category-b></obi-alert-category-b>`; else if (rawValue === AlertCategory.c) value = html`<obi-alert-category-c></obi-alert-category-c>`; } else value = rawValue; return html` <div class=\"detail\"> <div class=\"detail-title\"> <slot name=\"${slotName}-label\">${defaultTitle}</slot> </div> <div class=\"detail-value ${isIcon ? \"icon\" : \"\"}\"> <slot name=\"${slotName}-value\"> ${value} </slot> </div> </div> `; } return nothing; } render() { if (!this.alert) { console.error(\"Alert is not set in alert-detail-page\"); return nothing; } const showCloseButton = [\"modal\"].includes(this.type); return html` <div class=${classMap({ wrapper: true, [`type-${this.type}`]: true, \"status-acknowledged\": isAcknowledged(this.alert) && isActive(this.alert), \"status-unacknowledged\": !isAcknowledged(this.alert) && isActive(this.alert), \"status-resolved\": isActive(this.alert) })} > <div class=\"header\"> ${this.alertStatusIcon} <div class=\"icon alert\"> <obc-alert-icon .type=${this.alert.type} .acknowledged=${isAcknowledged(this.alert)} .active=${isActive(this.alert)} ></obc-alert-icon> </div> <div class=\"title\"> <span>${this.alert.source}</span> </div> ${showCloseButton ? html`<div class=\"close-button\"> <obc-icon-button variant=\"flat\" aria-label=${msg(\"Close\")}> <obi-close-google></obi-close-google> </obc-icon-button> </div>` : nothing} </div> <div class=\"divider\"></div> <div class=\"body\"> <div class=\"description\"> <span>${this.alert.text}</span> </div> ${this.hasNote ? html`<div class=\"description sub-description\"> <div class=\"label\"> <slot name=\"note-label\">${msg(\"Note\")}</slot> </div> <slot name=\"note\">${this.alert.note}</slot> </div>` : nothing} ${this.renderDetail(this.hasTagId, \"tagId\", msg(\"Tag ID\"), (alert) => alert.tagId)} ${this.renderDetail(this.hasCategory, \"category\", msg(\"Category\"), (alert) => alert.category)} ${this.renderDetail(this.hasActivated, \"time\", msg(\"Activated\"), (alert) => alert.time)} ${this.renderDetail(this.hasTimer, \"activated-timer\", msg(\"Alert timer\"), (alert) => alert.time, { timer: true })} ${this.renderDetail(this.hasAcknowledged, \"acknowledgedAt\", msg(\"Acknowledged\"), (alert) => alert.acknowledged && alert.acknowledged.acknowledgedAt)} ${this.renderDetail(this.hasRectified, \"rectified\", msg(\"Rectified\"), (alert) => alert.active !== true && alert.active.rectifiedTime)} ${this.renderDetail(this.hasAcknowledgedBy, \"acknowledged-by\", msg(\"Acknowledged by\"), (alert) => alert.acknowledged && alert.acknowledged.acknowledgedBy)} ${this.renderDetail(this.hasShelvingTimer, \"shelving-timer\", msg(\"Shelfing timer\"), (alert) => alert.shelved && alert.shelved.shelvedStartTime, { timer: true })} ${this.renderDetail(this.hasShelvedBy, \"shelved-by\", msg(\"Shelved by\"), (alert) => alert.shelved && alert.shelved.shelvedBy)} ${this.hasReadoutGraph ? html` <div class=\"readout-graph\"> <div class=\"readout-graph-title\"> <slot name=\"readout-graph-title\">${msg(\"Readout\")}</slot> </div> <div class=\"readout-graph-container\"> <slot name=\"readout-graph\"></slot> </div> </div> ` : nothing} </div> ${this.hasActions ? html`<div class=\"actions\"> <slot name=\"action\"></slot> </div>` : nothing} </div> `; } static { this.styles = unsafeCSS(alert_detail_page_default); } }"
|
|
10406
|
+
"default": "class ObcAlertDetailPage extends LitElement { constructor(..._args) { super(..._args); this.type = \"page\"; this.hasNote = false; this.hasActions = false; this.hasTagId = false; this.hasCategory = false; this.hasActivated = false; this.hasTimer = false; this.hasAcknowledged = false; this.hasAcknowledgedBy = false; this.hasRectified = false; this.hasShelvingTimer = false; this.hasShelvedBy = false; this.hasReadoutGraph = false; this.timeFormatter = (time) => time.toLocaleTimeString(void 0, { hour12: false }); this.timeSinceFormatter = formatTimeSince; this._interval = null; } connectedCallback() { super.connectedCallback(); this._interval = window.setInterval(() => { this.requestUpdate(); }, 1e3); } disconnectedCallback() { super.disconnectedCallback(); if (this._interval) window.clearInterval(this._interval); } get alertStatusIcon() { if (this.alert.shelved) return html`<obi-alerts-shelf class=\"icon status\"></obi-alerts-shelf>`; if (this.alert.blocked) return html`<obi-command-locked-f class=\"icon status\" ></obi-command-locked-f>`; return nothing; } renderDetail(has, slotName, defaultTitle, getValue, options = {}) { if (has) { const rawValue = getValue(this.alert); let value; let isIcon = false; if (rawValue instanceof Date) { if (options.timer) value = this.timeSinceFormatter(rawValue); else value = this.timeFormatter(rawValue); } else if (slotName === \"category\") { isIcon = true; if (rawValue === AlertCategory.a) value = html`<obi-alert-category-a></obi-alert-category-a>`; else if (rawValue === AlertCategory.b) value = html`<obi-alert-category-b></obi-alert-category-b>`; else if (rawValue === AlertCategory.c) value = html`<obi-alert-category-c></obi-alert-category-c>`; } else value = rawValue; return html` <div class=\"detail\"> <div class=\"detail-title\"> <slot name=\"${slotName}-label\">${defaultTitle}</slot> </div> <div class=\"detail-value ${isIcon ? \"icon\" : \"\"}\"> <slot name=\"${slotName}-value\"> ${value} </slot> </div> </div> `; } return nothing; } render() { if (!this.alert) { console.error(\"Alert is not set in alert-detail-page\"); return nothing; } const showCloseButton = [\"modal\"].includes(this.type); return html` <div class=${classMap({ wrapper: true, [`type-${this.type}`]: true, \"status-acknowledged\": isAcknowledged(this.alert) && isActive(this.alert), \"status-unacknowledged\": !isAcknowledged(this.alert) && isActive(this.alert), \"status-resolved\": !isActive(this.alert) })} > <div class=\"header\"> ${this.alertStatusIcon} <div class=\"icon alert\"> <obc-alert-icon .type=${this.alert.type} .acknowledged=${isAcknowledged(this.alert)} .active=${isActive(this.alert)} ></obc-alert-icon> </div> <div class=\"title\"> <span>${this.alert.source}</span> </div> ${showCloseButton ? html`<div class=\"close-button\"> <obc-icon-button variant=\"flat\" aria-label=${msg(\"Close\")}> <obi-close-google></obi-close-google> </obc-icon-button> </div>` : nothing} </div> <div class=\"divider\"></div> <div class=\"body\"> <div class=\"description\"> <span>${this.alert.text}</span> </div> ${this.hasNote ? html`<div class=\"description sub-description\"> <div class=\"label\"> <slot name=\"note-label\">${msg(\"Note\")}</slot> </div> <slot name=\"note\">${this.alert.note}</slot> </div>` : nothing} ${this.renderDetail(this.hasTagId, \"tagId\", msg(\"Tag ID\"), (alert) => alert.tagId)} ${this.renderDetail(this.hasCategory, \"category\", msg(\"Category\"), (alert) => alert.category)} ${this.renderDetail(this.hasActivated, \"time\", msg(\"Activated\"), (alert) => alert.time)} ${this.renderDetail(this.hasTimer, \"activated-timer\", msg(\"Alert timer\"), (alert) => alert.time, { timer: true })} ${this.renderDetail(this.hasAcknowledged, \"acknowledgedAt\", msg(\"Acknowledged\"), (alert) => alert.acknowledged && alert.acknowledged.acknowledgedAt)} ${this.renderDetail(this.hasRectified, \"rectified\", msg(\"Rectified\"), (alert) => alert.active !== true && alert.active.rectifiedTime)} ${this.renderDetail(this.hasAcknowledgedBy, \"acknowledged-by\", msg(\"Acknowledged by\"), (alert) => alert.acknowledged && alert.acknowledged.acknowledgedBy)} ${this.renderDetail(this.hasShelvingTimer, \"shelving-timer\", msg(\"Shelfing timer\"), (alert) => alert.shelved && alert.shelved.shelvedStartTime, { timer: true })} ${this.renderDetail(this.hasShelvedBy, \"shelved-by\", msg(\"Shelved by\"), (alert) => alert.shelved && alert.shelved.shelvedBy)} ${this.hasReadoutGraph ? html` <div class=\"readout-graph\"> <div class=\"readout-graph-title\"> <slot name=\"readout-graph-title\">${msg(\"Readout\")}</slot> </div> <div class=\"readout-graph-container\"> <slot name=\"readout-graph\"></slot> </div> </div> ` : nothing} </div> ${this.hasActions ? html`<div class=\"actions\"> <slot name=\"action\"></slot> </div>` : nothing} </div> `; } static { this.styles = unsafeCSS(alert_detail_page_default); } }"
|
|
10385
10407
|
}
|
|
10386
10408
|
],
|
|
10387
10409
|
"exports": [
|
|
@@ -10403,6 +10425,28 @@
|
|
|
10403
10425
|
}
|
|
10404
10426
|
]
|
|
10405
10427
|
},
|
|
10428
|
+
{
|
|
10429
|
+
"kind": "javascript-module",
|
|
10430
|
+
"path": "dist/pages/alert-list-page-small/alert-list-page-small-base.js",
|
|
10431
|
+
"declarations": [
|
|
10432
|
+
{
|
|
10433
|
+
"kind": "variable",
|
|
10434
|
+
"name": "ObcAlertListPageSmallBase",
|
|
10435
|
+
"default": "class extends LitElement { constructor(..._args) { super(..._args); this.hasShelved = false; this.showTime = false; this.timeFormatter = (time) => time.toLocaleTimeString(void 0, { hour12: false }); } /** The dropdown's options, in order. */ get modes() { return []; } /** The mode the list filters by and the dropdown shows. */ get mode() { return \"\"; } selectMode(_mode) {} /** Whether an alert the list shows in `mode` can still be acknowledged. */ get canAckAll() { return false; } /** Whether the page offers \"ACK visible\" at all; `canAckAll` enables it. */ get offersAckAll() { return true; } /** The alerts in view, which \"ACK visible\" reports. */ visibleAlerts() { return []; } renderList() { return nothing; } dispatchAckClick(alert) { this.dispatchEvent(new CustomEvent(\"ack-click\", { detail: { alert } })); } dispatchRowClick(alert) { this.dispatchEvent(new CustomEvent(\"row-click\", { detail: { alert } })); } handleAckAllVisibleClick() { this.dispatchEvent(new CustomEvent(\"ack-all-visible-click\", { detail: { alerts: this.visibleAlerts(), mode: this.mode } })); } onModeSelect(e) { this.selectMode(e.detail.value); } render() { return html` <div class=\"wrapper\"> ${this.renderList()} <div class=\"action\"> <div class=\"btn-group\"> <obc-dropdown-button .value=${this.mode} @change=${this.onModeSelect} .options=${this.modes} > </obc-dropdown-button> </div> <div class=\"btn-group\"> <obc-icon-button variant=\"normal\" @click=${() => this.dispatchEvent(new CustomEvent(\"silence-click\"))} aria-label=${msg(\"Silence\")} > <obi-silence-iec></obi-silence-iec> </obc-icon-button> ${this.offersAckAll ? html`<obc-button .variant=${ButtonVariant.raised} .disabled=${!this.canAckAll} fullWidth class=\"btn\" data-testid=\"ack-all-visible-button\" @click=${() => this.handleAckAllVisibleClick()} > ${msg(\"ACK visible\")} </obc-button>` : nothing} </div> </div> </div> `; } static { this.styles = unsafeCSS(alert_list_page_small_default); } }",
|
|
10436
|
+
"description": "`ObcAlertListPageSmallBase` – Compact alert list page: a list of alerts over a\nbar with a mode dropdown, a silence button and \"ACK visible\".\n\nNot registered as an element: the subclasses supply the list and the\nmodes. `obc-alert-list-page-small` renders `obc-alert-list-details`.\n\n### Features\n- **Modes:** the dropdown offers `modes` and shows `mode`; picking one calls\n `selectMode()`.\n- **ACK visible:** enabled while `canAckAll` holds; a click reports the\n alerts `visibleAlerts()` returns, and the mode, in `ack-all-visible-click`.\n- **Silence:** the icon button fires `silence-click`.\n\nThe base holds no alerts: each page declares `alerts` in the alert type it\nlists."
|
|
10437
|
+
}
|
|
10438
|
+
],
|
|
10439
|
+
"exports": [
|
|
10440
|
+
{
|
|
10441
|
+
"kind": "js",
|
|
10442
|
+
"name": "ObcAlertListPageSmallBase",
|
|
10443
|
+
"declaration": {
|
|
10444
|
+
"name": "ObcAlertListPageSmallBase",
|
|
10445
|
+
"module": "dist/pages/alert-list-page-small/alert-list-page-small-base.js"
|
|
10446
|
+
}
|
|
10447
|
+
}
|
|
10448
|
+
]
|
|
10449
|
+
},
|
|
10406
10450
|
{
|
|
10407
10451
|
"kind": "javascript-module",
|
|
10408
10452
|
"path": "dist/pages/alert-list-page-small/alert-list-page-small.js",
|
|
@@ -10410,7 +10454,7 @@
|
|
|
10410
10454
|
{
|
|
10411
10455
|
"kind": "variable",
|
|
10412
10456
|
"name": "ObcAlertListPageSmall",
|
|
10413
|
-
"default": "class ObcAlertListPageSmall extends
|
|
10457
|
+
"default": "class ObcAlertListPageSmall extends ObcAlertListPageSmallBase { constructor(..._args) { super(..._args); this.alerts = []; this.selectedMode = \"all\"; this._mode = \"all\"; } willUpdate(changedProperties) { if (changedProperties.has(\"selectedMode\") && this._mode !== this.selectedMode) this._mode = this.selectedMode; } get modes() { const modes = [{ value: \"all\", label: msg(\"All\") }, { value: \"unacked\", label: msg(\"Unacked\") }]; if (this.hasShelved) modes.push({ value: \"shelved\", label: msg(\"Shelved\") }); return modes; } get mode() { return this._mode; } selectMode(mode) { this._mode = mode; } get canAckAll() { return this.alerts.some(canAckFilter(getAlertListModeData(this._mode).filter)); } visibleAlerts() { return this.alertList.getVisibleAlerts(); } onAckClick(e) { this.dispatchAckClick(e.detail.alert); } onRowClick(e) { this.dispatchRowClick(e.detail.alert); } renderList() { return html`<obc-alert-list-details class=\"alert-list\" .small=${true} .alerts=${this.alerts} .selectedMode=${this._mode} .showTime=${this.showTime} .timeFormatter=${this.timeFormatter} @ack-click=${this.onAckClick} @row-click=${this.onRowClick} ></obc-alert-list-details>`; } }"
|
|
10414
10458
|
}
|
|
10415
10459
|
],
|
|
10416
10460
|
"exports": [
|
|
@@ -45136,13 +45180,233 @@
|
|
|
45136
45180
|
}
|
|
45137
45181
|
]
|
|
45138
45182
|
},
|
|
45183
|
+
{
|
|
45184
|
+
"kind": "javascript-module",
|
|
45185
|
+
"path": "src/building-blocks/alert-list/alert-list-base.ts",
|
|
45186
|
+
"declarations": [
|
|
45187
|
+
{
|
|
45188
|
+
"kind": "class",
|
|
45189
|
+
"description": "`ObcAlertListBase` – Scrolling list of slotted alert items that animates items\ninto place and shows an empty state when no item passes its filter.\n\nNot registered as an element: the subclasses decide which items pass.\n`obc-alert-list` runs a predicate the consumer sets.\n\n### Features\n- **Filter:** `matchesFilter()` decides which items count; the list re-reads\n it when items are added or removed, when an item attribute named by\n `observedItemAttributes` changes, and when `filterChanged()` reports a\n change of the subclass's filter inputs.\n- **Motion:** items that move slide to their new place; new items play\n their intro animation once the list has been seen.\n- **Empty state:** icon, title and description slots, with fallback content\n from `emptyFallback`.\n- **Visible items:** `getVisibleElements()` returns the items that pass the\n filter and sit inside the scroll viewport.",
|
|
45190
|
+
"name": "ObcAlertListBase",
|
|
45191
|
+
"members": [
|
|
45192
|
+
{
|
|
45193
|
+
"kind": "field",
|
|
45194
|
+
"name": "oldElementTop",
|
|
45195
|
+
"type": {
|
|
45196
|
+
"text": "Map<HTMLElement, number>"
|
|
45197
|
+
},
|
|
45198
|
+
"privacy": "private",
|
|
45199
|
+
"default": "new Map()"
|
|
45200
|
+
},
|
|
45201
|
+
{
|
|
45202
|
+
"kind": "field",
|
|
45203
|
+
"name": "mutationObserver",
|
|
45204
|
+
"type": {
|
|
45205
|
+
"text": "MutationObserver | null"
|
|
45206
|
+
},
|
|
45207
|
+
"privacy": "private",
|
|
45208
|
+
"default": "null"
|
|
45209
|
+
},
|
|
45210
|
+
{
|
|
45211
|
+
"kind": "field",
|
|
45212
|
+
"name": "intersectionObserver",
|
|
45213
|
+
"type": {
|
|
45214
|
+
"text": "IntersectionObserver | null"
|
|
45215
|
+
},
|
|
45216
|
+
"privacy": "private",
|
|
45217
|
+
"default": "null"
|
|
45218
|
+
},
|
|
45219
|
+
{
|
|
45220
|
+
"kind": "field",
|
|
45221
|
+
"name": "hasRenderedPanel",
|
|
45222
|
+
"type": {
|
|
45223
|
+
"text": "boolean"
|
|
45224
|
+
},
|
|
45225
|
+
"privacy": "private",
|
|
45226
|
+
"default": "false"
|
|
45227
|
+
},
|
|
45228
|
+
{
|
|
45229
|
+
"kind": "field",
|
|
45230
|
+
"name": "_empty",
|
|
45231
|
+
"type": {
|
|
45232
|
+
"text": "boolean"
|
|
45233
|
+
},
|
|
45234
|
+
"default": "false"
|
|
45235
|
+
},
|
|
45236
|
+
{
|
|
45237
|
+
"kind": "field",
|
|
45238
|
+
"name": "alertItems",
|
|
45239
|
+
"type": {
|
|
45240
|
+
"text": "HTMLElement[]"
|
|
45241
|
+
},
|
|
45242
|
+
"privacy": "protected"
|
|
45243
|
+
},
|
|
45244
|
+
{
|
|
45245
|
+
"kind": "field",
|
|
45246
|
+
"name": "scrollbar",
|
|
45247
|
+
"type": {
|
|
45248
|
+
"text": "ObcScrollbar"
|
|
45249
|
+
},
|
|
45250
|
+
"privacy": "private"
|
|
45251
|
+
},
|
|
45252
|
+
{
|
|
45253
|
+
"kind": "method",
|
|
45254
|
+
"name": "matchesFilter",
|
|
45255
|
+
"privacy": "protected",
|
|
45256
|
+
"return": {
|
|
45257
|
+
"type": {
|
|
45258
|
+
"text": "boolean"
|
|
45259
|
+
}
|
|
45260
|
+
},
|
|
45261
|
+
"parameters": [
|
|
45262
|
+
{
|
|
45263
|
+
"name": "_item",
|
|
45264
|
+
"type": {
|
|
45265
|
+
"text": "HTMLElement"
|
|
45266
|
+
}
|
|
45267
|
+
}
|
|
45268
|
+
],
|
|
45269
|
+
"description": "Whether the list counts an item as one it shows."
|
|
45270
|
+
},
|
|
45271
|
+
{
|
|
45272
|
+
"kind": "method",
|
|
45273
|
+
"name": "filterChanged",
|
|
45274
|
+
"privacy": "protected",
|
|
45275
|
+
"return": {
|
|
45276
|
+
"type": {
|
|
45277
|
+
"text": "boolean"
|
|
45278
|
+
}
|
|
45279
|
+
},
|
|
45280
|
+
"parameters": [
|
|
45281
|
+
{
|
|
45282
|
+
"name": "_changed",
|
|
45283
|
+
"type": {
|
|
45284
|
+
"text": "PropertyValues"
|
|
45285
|
+
}
|
|
45286
|
+
}
|
|
45287
|
+
],
|
|
45288
|
+
"description": "Whether this update changed what `matchesFilter` decides."
|
|
45289
|
+
},
|
|
45290
|
+
{
|
|
45291
|
+
"kind": "field",
|
|
45292
|
+
"name": "observedItemAttributes",
|
|
45293
|
+
"type": {
|
|
45294
|
+
"text": "string[]"
|
|
45295
|
+
},
|
|
45296
|
+
"privacy": "protected",
|
|
45297
|
+
"description": "Item attributes whose changes can change what `matchesFilter` decides.",
|
|
45298
|
+
"readonly": true
|
|
45299
|
+
},
|
|
45300
|
+
{
|
|
45301
|
+
"kind": "field",
|
|
45302
|
+
"name": "emptyFallback",
|
|
45303
|
+
"type": {
|
|
45304
|
+
"text": "AlertListEmptyFallback"
|
|
45305
|
+
},
|
|
45306
|
+
"privacy": "protected",
|
|
45307
|
+
"readonly": true
|
|
45308
|
+
},
|
|
45309
|
+
{
|
|
45310
|
+
"kind": "method",
|
|
45311
|
+
"name": "firstUpdated"
|
|
45312
|
+
},
|
|
45313
|
+
{
|
|
45314
|
+
"kind": "method",
|
|
45315
|
+
"name": "willUpdate",
|
|
45316
|
+
"privacy": "protected",
|
|
45317
|
+
"return": {
|
|
45318
|
+
"type": {
|
|
45319
|
+
"text": "void"
|
|
45320
|
+
}
|
|
45321
|
+
},
|
|
45322
|
+
"parameters": [
|
|
45323
|
+
{
|
|
45324
|
+
"name": "_changedProperties",
|
|
45325
|
+
"type": {
|
|
45326
|
+
"text": "PropertyValues"
|
|
45327
|
+
}
|
|
45328
|
+
}
|
|
45329
|
+
]
|
|
45330
|
+
},
|
|
45331
|
+
{
|
|
45332
|
+
"kind": "method",
|
|
45333
|
+
"name": "applyFilter",
|
|
45334
|
+
"privacy": "protected",
|
|
45335
|
+
"description": "Runs whenever the items or the filter change; a subclass extends it to act on each item."
|
|
45336
|
+
},
|
|
45337
|
+
{
|
|
45338
|
+
"kind": "method",
|
|
45339
|
+
"name": "getAlertItems",
|
|
45340
|
+
"privacy": "private"
|
|
45341
|
+
},
|
|
45342
|
+
{
|
|
45343
|
+
"kind": "method",
|
|
45344
|
+
"name": "updateOldElementTop",
|
|
45345
|
+
"privacy": "private"
|
|
45346
|
+
},
|
|
45347
|
+
{
|
|
45348
|
+
"kind": "method",
|
|
45349
|
+
"name": "setupMutationObserver",
|
|
45350
|
+
"privacy": "private"
|
|
45351
|
+
},
|
|
45352
|
+
{
|
|
45353
|
+
"kind": "method",
|
|
45354
|
+
"name": "handleSlotChange",
|
|
45355
|
+
"privacy": "private"
|
|
45356
|
+
},
|
|
45357
|
+
{
|
|
45358
|
+
"kind": "method",
|
|
45359
|
+
"name": "handleElementsChange",
|
|
45360
|
+
"privacy": "private"
|
|
45361
|
+
},
|
|
45362
|
+
{
|
|
45363
|
+
"kind": "method",
|
|
45364
|
+
"name": "getVisibleElements",
|
|
45365
|
+
"privacy": "public",
|
|
45366
|
+
"return": {
|
|
45367
|
+
"type": {
|
|
45368
|
+
"text": "{element: HTMLElement; index: number}[]"
|
|
45369
|
+
}
|
|
45370
|
+
}
|
|
45371
|
+
},
|
|
45372
|
+
{
|
|
45373
|
+
"kind": "method",
|
|
45374
|
+
"name": "render"
|
|
45375
|
+
},
|
|
45376
|
+
{
|
|
45377
|
+
"kind": "field",
|
|
45378
|
+
"name": "styles",
|
|
45379
|
+
"type": {
|
|
45380
|
+
"text": "CSSResultGroup"
|
|
45381
|
+
},
|
|
45382
|
+
"static": true
|
|
45383
|
+
}
|
|
45384
|
+
],
|
|
45385
|
+
"superclass": {
|
|
45386
|
+
"name": "LitElement",
|
|
45387
|
+
"package": "lit"
|
|
45388
|
+
},
|
|
45389
|
+
"customElement": true
|
|
45390
|
+
}
|
|
45391
|
+
],
|
|
45392
|
+
"exports": [
|
|
45393
|
+
{
|
|
45394
|
+
"kind": "js",
|
|
45395
|
+
"name": "ObcAlertListBase",
|
|
45396
|
+
"declaration": {
|
|
45397
|
+
"name": "ObcAlertListBase",
|
|
45398
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45399
|
+
}
|
|
45400
|
+
}
|
|
45401
|
+
]
|
|
45402
|
+
},
|
|
45139
45403
|
{
|
|
45140
45404
|
"kind": "javascript-module",
|
|
45141
45405
|
"path": "src/building-blocks/alert-list/alert-list.ts",
|
|
45142
45406
|
"declarations": [
|
|
45143
45407
|
{
|
|
45144
45408
|
"kind": "class",
|
|
45145
|
-
"description": "",
|
|
45409
|
+
"description": "`<obc-alert-list>` – Scrolling list of alert items with an empty state.\n\n`filter` decides which items count: the empty state shows when none does,\nand `getVisibleElements()` returns only those. Hiding the other items is\nleft to the consumer's CSS.",
|
|
45146
45410
|
"name": "ObcAlertList",
|
|
45147
45411
|
"slots": [
|
|
45148
45412
|
{
|
|
@@ -45168,6 +45432,53 @@
|
|
|
45168
45432
|
"name": "filter",
|
|
45169
45433
|
"type": {
|
|
45170
45434
|
"text": "(item: HTMLElement) => boolean"
|
|
45435
|
+
},
|
|
45436
|
+
"description": "Predicate that picks the items the list counts as shown."
|
|
45437
|
+
},
|
|
45438
|
+
{
|
|
45439
|
+
"kind": "method",
|
|
45440
|
+
"name": "matchesFilter",
|
|
45441
|
+
"privacy": "protected",
|
|
45442
|
+
"return": {
|
|
45443
|
+
"type": {
|
|
45444
|
+
"text": "boolean"
|
|
45445
|
+
}
|
|
45446
|
+
},
|
|
45447
|
+
"parameters": [
|
|
45448
|
+
{
|
|
45449
|
+
"name": "item",
|
|
45450
|
+
"type": {
|
|
45451
|
+
"text": "HTMLElement"
|
|
45452
|
+
}
|
|
45453
|
+
}
|
|
45454
|
+
],
|
|
45455
|
+
"description": "Whether the list counts an item as one it shows.",
|
|
45456
|
+
"inheritedFrom": {
|
|
45457
|
+
"name": "ObcAlertListBase",
|
|
45458
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45459
|
+
}
|
|
45460
|
+
},
|
|
45461
|
+
{
|
|
45462
|
+
"kind": "method",
|
|
45463
|
+
"name": "filterChanged",
|
|
45464
|
+
"privacy": "protected",
|
|
45465
|
+
"return": {
|
|
45466
|
+
"type": {
|
|
45467
|
+
"text": "boolean"
|
|
45468
|
+
}
|
|
45469
|
+
},
|
|
45470
|
+
"parameters": [
|
|
45471
|
+
{
|
|
45472
|
+
"name": "changed",
|
|
45473
|
+
"type": {
|
|
45474
|
+
"text": "PropertyValues"
|
|
45475
|
+
}
|
|
45476
|
+
}
|
|
45477
|
+
],
|
|
45478
|
+
"description": "Whether this update changed what `matchesFilter` decides.",
|
|
45479
|
+
"inheritedFrom": {
|
|
45480
|
+
"name": "ObcAlertListBase",
|
|
45481
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45171
45482
|
}
|
|
45172
45483
|
},
|
|
45173
45484
|
{
|
|
@@ -45177,7 +45488,11 @@
|
|
|
45177
45488
|
"text": "Map<HTMLElement, number>"
|
|
45178
45489
|
},
|
|
45179
45490
|
"privacy": "private",
|
|
45180
|
-
"default": "new Map()"
|
|
45491
|
+
"default": "new Map()",
|
|
45492
|
+
"inheritedFrom": {
|
|
45493
|
+
"name": "ObcAlertListBase",
|
|
45494
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45495
|
+
}
|
|
45181
45496
|
},
|
|
45182
45497
|
{
|
|
45183
45498
|
"kind": "field",
|
|
@@ -45186,7 +45501,11 @@
|
|
|
45186
45501
|
"text": "MutationObserver | null"
|
|
45187
45502
|
},
|
|
45188
45503
|
"privacy": "private",
|
|
45189
|
-
"default": "null"
|
|
45504
|
+
"default": "null",
|
|
45505
|
+
"inheritedFrom": {
|
|
45506
|
+
"name": "ObcAlertListBase",
|
|
45507
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45508
|
+
}
|
|
45190
45509
|
},
|
|
45191
45510
|
{
|
|
45192
45511
|
"kind": "field",
|
|
@@ -45195,7 +45514,11 @@
|
|
|
45195
45514
|
"text": "IntersectionObserver | null"
|
|
45196
45515
|
},
|
|
45197
45516
|
"privacy": "private",
|
|
45198
|
-
"default": "null"
|
|
45517
|
+
"default": "null",
|
|
45518
|
+
"inheritedFrom": {
|
|
45519
|
+
"name": "ObcAlertListBase",
|
|
45520
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45521
|
+
}
|
|
45199
45522
|
},
|
|
45200
45523
|
{
|
|
45201
45524
|
"kind": "field",
|
|
@@ -45204,7 +45527,11 @@
|
|
|
45204
45527
|
"text": "boolean"
|
|
45205
45528
|
},
|
|
45206
45529
|
"privacy": "private",
|
|
45207
|
-
"default": "false"
|
|
45530
|
+
"default": "false",
|
|
45531
|
+
"inheritedFrom": {
|
|
45532
|
+
"name": "ObcAlertListBase",
|
|
45533
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45534
|
+
}
|
|
45208
45535
|
},
|
|
45209
45536
|
{
|
|
45210
45537
|
"kind": "field",
|
|
@@ -45212,7 +45539,11 @@
|
|
|
45212
45539
|
"type": {
|
|
45213
45540
|
"text": "boolean"
|
|
45214
45541
|
},
|
|
45215
|
-
"default": "false"
|
|
45542
|
+
"default": "false",
|
|
45543
|
+
"inheritedFrom": {
|
|
45544
|
+
"name": "ObcAlertListBase",
|
|
45545
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45546
|
+
}
|
|
45216
45547
|
},
|
|
45217
45548
|
{
|
|
45218
45549
|
"kind": "field",
|
|
@@ -45220,7 +45551,11 @@
|
|
|
45220
45551
|
"type": {
|
|
45221
45552
|
"text": "HTMLElement[]"
|
|
45222
45553
|
},
|
|
45223
|
-
"privacy": "
|
|
45554
|
+
"privacy": "protected",
|
|
45555
|
+
"inheritedFrom": {
|
|
45556
|
+
"name": "ObcAlertListBase",
|
|
45557
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45558
|
+
}
|
|
45224
45559
|
},
|
|
45225
45560
|
{
|
|
45226
45561
|
"kind": "field",
|
|
@@ -45228,11 +45563,46 @@
|
|
|
45228
45563
|
"type": {
|
|
45229
45564
|
"text": "ObcScrollbar"
|
|
45230
45565
|
},
|
|
45231
|
-
"privacy": "private"
|
|
45566
|
+
"privacy": "private",
|
|
45567
|
+
"inheritedFrom": {
|
|
45568
|
+
"name": "ObcAlertListBase",
|
|
45569
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45570
|
+
}
|
|
45571
|
+
},
|
|
45572
|
+
{
|
|
45573
|
+
"kind": "field",
|
|
45574
|
+
"name": "observedItemAttributes",
|
|
45575
|
+
"type": {
|
|
45576
|
+
"text": "string[]"
|
|
45577
|
+
},
|
|
45578
|
+
"privacy": "protected",
|
|
45579
|
+
"description": "Item attributes whose changes can change what `matchesFilter` decides.",
|
|
45580
|
+
"readonly": true,
|
|
45581
|
+
"inheritedFrom": {
|
|
45582
|
+
"name": "ObcAlertListBase",
|
|
45583
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45584
|
+
}
|
|
45585
|
+
},
|
|
45586
|
+
{
|
|
45587
|
+
"kind": "field",
|
|
45588
|
+
"name": "emptyFallback",
|
|
45589
|
+
"type": {
|
|
45590
|
+
"text": "AlertListEmptyFallback"
|
|
45591
|
+
},
|
|
45592
|
+
"privacy": "protected",
|
|
45593
|
+
"readonly": true,
|
|
45594
|
+
"inheritedFrom": {
|
|
45595
|
+
"name": "ObcAlertListBase",
|
|
45596
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45597
|
+
}
|
|
45232
45598
|
},
|
|
45233
45599
|
{
|
|
45234
45600
|
"kind": "method",
|
|
45235
|
-
"name": "firstUpdated"
|
|
45601
|
+
"name": "firstUpdated",
|
|
45602
|
+
"inheritedFrom": {
|
|
45603
|
+
"name": "ObcAlertListBase",
|
|
45604
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45605
|
+
}
|
|
45236
45606
|
},
|
|
45237
45607
|
{
|
|
45238
45608
|
"kind": "method",
|
|
@@ -45250,37 +45620,66 @@
|
|
|
45250
45620
|
"text": "PropertyValues"
|
|
45251
45621
|
}
|
|
45252
45622
|
}
|
|
45253
|
-
]
|
|
45623
|
+
],
|
|
45624
|
+
"inheritedFrom": {
|
|
45625
|
+
"name": "ObcAlertListBase",
|
|
45626
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45627
|
+
}
|
|
45254
45628
|
},
|
|
45255
45629
|
{
|
|
45256
45630
|
"kind": "method",
|
|
45257
|
-
"name": "
|
|
45258
|
-
"privacy": "
|
|
45631
|
+
"name": "applyFilter",
|
|
45632
|
+
"privacy": "protected",
|
|
45633
|
+
"description": "Runs whenever the items or the filter change; a subclass extends it to act on each item.",
|
|
45634
|
+
"inheritedFrom": {
|
|
45635
|
+
"name": "ObcAlertListBase",
|
|
45636
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45637
|
+
}
|
|
45259
45638
|
},
|
|
45260
45639
|
{
|
|
45261
45640
|
"kind": "method",
|
|
45262
45641
|
"name": "getAlertItems",
|
|
45263
|
-
"privacy": "private"
|
|
45642
|
+
"privacy": "private",
|
|
45643
|
+
"inheritedFrom": {
|
|
45644
|
+
"name": "ObcAlertListBase",
|
|
45645
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45646
|
+
}
|
|
45264
45647
|
},
|
|
45265
45648
|
{
|
|
45266
45649
|
"kind": "method",
|
|
45267
45650
|
"name": "updateOldElementTop",
|
|
45268
|
-
"privacy": "private"
|
|
45651
|
+
"privacy": "private",
|
|
45652
|
+
"inheritedFrom": {
|
|
45653
|
+
"name": "ObcAlertListBase",
|
|
45654
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45655
|
+
}
|
|
45269
45656
|
},
|
|
45270
45657
|
{
|
|
45271
45658
|
"kind": "method",
|
|
45272
45659
|
"name": "setupMutationObserver",
|
|
45273
|
-
"privacy": "private"
|
|
45660
|
+
"privacy": "private",
|
|
45661
|
+
"inheritedFrom": {
|
|
45662
|
+
"name": "ObcAlertListBase",
|
|
45663
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45664
|
+
}
|
|
45274
45665
|
},
|
|
45275
45666
|
{
|
|
45276
45667
|
"kind": "method",
|
|
45277
45668
|
"name": "handleSlotChange",
|
|
45278
|
-
"privacy": "private"
|
|
45669
|
+
"privacy": "private",
|
|
45670
|
+
"inheritedFrom": {
|
|
45671
|
+
"name": "ObcAlertListBase",
|
|
45672
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45673
|
+
}
|
|
45279
45674
|
},
|
|
45280
45675
|
{
|
|
45281
45676
|
"kind": "method",
|
|
45282
45677
|
"name": "handleElementsChange",
|
|
45283
|
-
"privacy": "private"
|
|
45678
|
+
"privacy": "private",
|
|
45679
|
+
"inheritedFrom": {
|
|
45680
|
+
"name": "ObcAlertListBase",
|
|
45681
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45682
|
+
}
|
|
45284
45683
|
},
|
|
45285
45684
|
{
|
|
45286
45685
|
"kind": "method",
|
|
@@ -45290,23 +45689,37 @@
|
|
|
45290
45689
|
"type": {
|
|
45291
45690
|
"text": "{element: HTMLElement; index: number}[]"
|
|
45292
45691
|
}
|
|
45692
|
+
},
|
|
45693
|
+
"inheritedFrom": {
|
|
45694
|
+
"name": "ObcAlertListBase",
|
|
45695
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45293
45696
|
}
|
|
45294
45697
|
},
|
|
45295
45698
|
{
|
|
45296
45699
|
"kind": "method",
|
|
45297
|
-
"name": "render"
|
|
45700
|
+
"name": "render",
|
|
45701
|
+
"inheritedFrom": {
|
|
45702
|
+
"name": "ObcAlertListBase",
|
|
45703
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45704
|
+
}
|
|
45298
45705
|
},
|
|
45299
45706
|
{
|
|
45300
45707
|
"kind": "field",
|
|
45301
45708
|
"name": "styles",
|
|
45302
|
-
"
|
|
45709
|
+
"type": {
|
|
45710
|
+
"text": "CSSResultGroup"
|
|
45711
|
+
},
|
|
45712
|
+
"static": true,
|
|
45713
|
+
"inheritedFrom": {
|
|
45714
|
+
"name": "ObcAlertListBase",
|
|
45715
|
+
"module": "src/building-blocks/alert-list/alert-list-base.ts"
|
|
45716
|
+
}
|
|
45303
45717
|
}
|
|
45304
45718
|
],
|
|
45305
45719
|
"superclass": {
|
|
45306
|
-
"name": "
|
|
45307
|
-
"
|
|
45308
|
-
}
|
|
45309
|
-
"customElement": true
|
|
45720
|
+
"name": "ObcAlertListBase",
|
|
45721
|
+
"module": "/src/building-blocks/alert-list/alert-list-base.js"
|
|
45722
|
+
}
|
|
45310
45723
|
}
|
|
45311
45724
|
],
|
|
45312
45725
|
"exports": [
|
|
@@ -51487,7 +51900,7 @@
|
|
|
51487
51900
|
"declarations": [
|
|
51488
51901
|
{
|
|
51489
51902
|
"kind": "class",
|
|
51490
|
-
"description": "`<obc-alert-menu-item>` – A list item component for displaying alert or notification entries with status, icons, and action controls.\n\nPresents a concise summary of an alert or message, including status, title, description, and optional icons. Designed for use in alert menus, notification drawers, or similar lists where users need to review and acknowledge alerts efficiently.\n\n### Features\n- **Status Variants:** Supports multiple alert states via the `status` property:\n - **Unacknowledged:** Shows an action button (ACK) for user acknowledgment.\n - **Caution, Acknowledged, Rectified:** Display different visual cues for alert progression.\n - **NoAckAlarm / NoAckWarning:** Show special icons indicating unacknowledged alarms or warnings.\n- **Icon Support:** Optional secondary icon (e.g., system or source) and a primary alert icon. Tertiary \"shelved\" icon appears if the alert is shelved.\n- **Time and Day Display:** Optionally shows day and/or time for the alert occurrence.\n- **Expandable:** Can be toggled open/closed for additional details (via click).\n- **Action Buttons:** Displays an \"ACK\" button for unacknowledged
|
|
51903
|
+
"description": "`<obc-alert-menu-item>` – A list item component for displaying alert or notification entries with status, icons, and action controls.\n\nPresents a concise summary of an alert or message, including status, title, description, and optional icons. Designed for use in alert menus, notification drawers, or similar lists where users need to review and acknowledge alerts efficiently.\n\n### Features\n- **Status Variants:** Supports multiple alert states via the `status` property:\n - **Unacknowledged:** Shows an action button (ACK) for user acknowledgment.\n - **RectifiedUnacknowledged:** The situation that raised the alert has cleared, but the alert still waits for acknowledgment, so the ACK action stays.\n - **Caution, Acknowledged, Rectified:** Display different visual cues for alert progression.\n - **NoAckAlarm / NoAckWarning:** Show special icons indicating unacknowledged alarms or warnings.\n- **Icon Support:** Optional secondary icon (e.g., system or source) and a primary alert icon. Tertiary \"shelved\" icon appears if the alert is shelved.\n- **Time and Day Display:** Optionally shows day and/or time for the alert occurrence.\n- **Expandable:** Can be toggled open/closed for additional details (via click).\n- **Action Buttons:** Displays an \"ACK\" button for the statuses that still wait for acknowledgment (`unacknowledged` and `rectified-unacknowledged`) and an optional secondary action (label set via `secondaryActionLabel`); each triggers an event when clicked.\n - Each action's appearance is controlled independently via `primaryActionState` / `secondaryActionState` (`enabled`, `disabled`, or `none`).\n- **Animated Intro:** Optional animation when the item appears.\n- **Size Options:** Supports single-line or multi-line layouts (see `size` property).\n\n### Usage Guidelines\nUse `obc-alert-menu-item` to represent individual alerts or notifications in a menu, list, or notification center. Ideal for scenarios where users need to quickly scan, identify, and acknowledge alerts. The component is best suited for transient or actionable notifications rather than persistent banners.\n\n- Use the `status` property to reflect the current state of the alert.\n- Provide a relevant icon in the `alert-icon` slot to visually indicate the alert type.\n- Use the `icon` slot for a source/system icon if needed.\n- Only show the \"ACK\" action for alerts that require acknowledgment.\n- Provide `secondaryActionLabel` to add a second action alongside ACK.\n- Use `primaryActionState` / `secondaryActionState` to temporarily disable an action (`disabled`) or remove it without leaving a gap (`none`).\n- Use the `shelved` property to indicate alerts that are temporarily deferred, and `blocked` for alerts another system has set aside. The alert menus sort items into their tabs by `status` and `shelved`; `blocked` is there for menus that list blocked alerts apart.\n\n**TODO(designer):** Should a blocked alert show a marker, as a shelved one shows the shelf icon?\n\n### Slots\n| Slot Name | Renders When... | Purpose |\n|---------------|-------------------------------|------------------------------------------------------|\n| alert-icon | Always | Main alert icon representing the alert type. |\n| title | Always | Title content; falls back to the `title` property. |\n| description | Always | Description content; falls back to the `description` property. |\n| icon | If `hasIcon` is true | Secondary icon (e.g., system/source of alert). |\n\n### Events\n- **ack-click** – Fired when the ACK action button is clicked.\n- **ack-secondary-click** – Fired when the secondary action button is clicked.\n- **item-click** – Fired when the alert menu item is clicked (toggles open/closed).\n\n### Best Practices\n- Only display the ACK action for alerts that require acknowledgment.\n- Use concise titles and descriptions for quick scanning.\n- For grouped alerts, ensure each item has a unique status and icon as appropriate.\n- Avoid overloading with too many icons; use secondary and tertiary icons only when necessary.\n- Follow standard notification design guidelines: keep actionable items prominent, and use color/iconography to indicate severity or status.\n\n**Example:**\n```\n<obc-alert-menu-item\n status=\"unacknowledged\"\n title=\"Engine Temperature High\"\n description=\"Port main engine temperature exceeds normal operating range\"\n time=\"14:30\"\n hasIcon\n>\n <obc-alert-icon slot=\"alert-icon\" type=\"alarm\" active></obc-alert-icon>\n <obi-engine slot=\"icon\"></obi-engine>\n</obc-alert-menu-item>\n```",
|
|
51491
51904
|
"name": "ObcAlertMenuItem",
|
|
51492
51905
|
"slots": [
|
|
51493
51906
|
{
|
|
@@ -51526,6 +51939,15 @@
|
|
|
51526
51939
|
"default": "false",
|
|
51527
51940
|
"description": "Indicates if the alert is shelved (temporarily deferred). When true, a tertiary icon is shown to represent the shelved state."
|
|
51528
51941
|
},
|
|
51942
|
+
{
|
|
51943
|
+
"kind": "field",
|
|
51944
|
+
"name": "blocked",
|
|
51945
|
+
"type": {
|
|
51946
|
+
"text": "boolean"
|
|
51947
|
+
},
|
|
51948
|
+
"default": "false",
|
|
51949
|
+
"description": "Indicates that another system has blocked the alert as not relevant here. For menus that list blocked alerts apart; the item itself shows no marker for it yet."
|
|
51950
|
+
},
|
|
51529
51951
|
{
|
|
51530
51952
|
"kind": "field",
|
|
51531
51953
|
"name": "title",
|
|
@@ -51565,7 +51987,7 @@
|
|
|
51565
51987
|
{
|
|
51566
51988
|
"kind": "field",
|
|
51567
51989
|
"name": "status",
|
|
51568
|
-
"description": "The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified'. Default is 'unacknowledged'."
|
|
51990
|
+
"description": "The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified', 'rectified-unacknowledged'. 'unacknowledged' and 'rectified-unacknowledged' show the ACK action; the other values show a trailing icon instead. Default is 'unacknowledged'."
|
|
51569
51991
|
},
|
|
51570
51992
|
{
|
|
51571
51993
|
"kind": "field",
|
|
@@ -51618,6 +52040,12 @@
|
|
|
51618
52040
|
},
|
|
51619
52041
|
"description": "Appearance of the secondary action: `enabled`, `disabled` or `none`, which hides it."
|
|
51620
52042
|
},
|
|
52043
|
+
{
|
|
52044
|
+
"kind": "field",
|
|
52045
|
+
"name": "canAck",
|
|
52046
|
+
"privacy": "private",
|
|
52047
|
+
"readonly": true
|
|
52048
|
+
},
|
|
51621
52049
|
{
|
|
51622
52050
|
"kind": "field",
|
|
51623
52051
|
"name": "primaryActionLabel",
|
|
@@ -51744,7 +52172,7 @@
|
|
|
51744
52172
|
"declarations": [
|
|
51745
52173
|
{
|
|
51746
52174
|
"kind": "class",
|
|
51747
|
-
"description": "`<obc-alert-menu>` – A tabbed alert summary panel for displaying, acknowledging, and managing active alerts.\n\nProvides a compact, interactive menu for reviewing current alerts, grouped by status (e.g., unacknowledged, active, shelved). Users can acknowledge visible alerts, silence notifications, or navigate to a full alert list. Designed for quick triage and management of alert items in a sidebar or overlay context.\n\n### Features\n- **Tabbed organization:** Switch between \"Unacked\", \"Active\", and (optionally) \"Shelved\" tabs for focused alert review.\n- **Alert filtering:** Each tab displays only relevant alerts
|
|
52175
|
+
"description": "`<obc-alert-menu>` – A tabbed alert summary panel for displaying, acknowledging, and managing active alerts.\n\nProvides a compact, interactive menu for reviewing current alerts, grouped by status (e.g., unacknowledged, active, shelved). Users can acknowledge visible alerts, silence notifications, or navigate to a full alert list. Designed for quick triage and management of alert items in a sidebar or overlay context.\n\n### Features\n- **Tabbed organization:** Switch between \"Unacked\", \"Active\", and (optionally) \"Shelved\" tabs for focused alert review.\n- **Alert filtering:** Each tab displays only relevant alerts: \"Unacked\" shows the non-shelved items still waiting for acknowledgment (`unacknowledged` or `rectified-unacknowledged`), \"Active\" every non-shelved item except the `rectified-unacknowledged` ones. A subclass changes the tabs and the list through the `tabs` and `renderList` hooks.\n- **Bulk actions:** \"ACK visible\" button allows acknowledging all currently visible (filtered) alerts at once.\n- **Silence and navigation:** Dedicated buttons to silence alerts or jump to the full alert list.\n- **Dynamic content:** Supports any number of `<obc-alert-menu-item>` children, with automatic empty-state messaging and icons per tab.\n- **Responsive layout:** Adapts to available space, with scrollable alert lists and sticky action bar.\n- **Customizable:** Optionally show/hide the \"Shelved\" tab via `hasShelved` property; enable/disable bulk ACK via `canAckAll`.\n\n### Usage Guidelines\nUse `<obc-alert-menu>` to provide users with a focused, actionable summary of current alerts, typically in a sidebar, overlay, or dashboard context. Ideal for scenarios where users need to quickly review, acknowledge, or silence multiple alerts without leaving their current workflow. Avoid using for persistent, always-visible alert banners; for that, use a dedicated alert banner or notification system.\n\n- Place one or more `<obc-alert-menu-item>` elements as children to populate the alert list.\n- Use the `hasShelved` property to enable the \"Shelved\" tab if your application supports alert shelving.\n- Use the `canAckAll` property to control whether the \"ACK visible\" button is enabled (e.g., only when there are unacknowledged alerts in view).\n- Listen for custom events (`ack-all-visible-click`, `silence-click`, `go-to-alert-list-click`) to handle user actions.\n\n**TODO(designer):** Confirm if there are recommended maximum numbers of alerts to display, or if there are best practices for when to use the \"Shelved\" tab.\n\n### Slots\n\n| Slot Name | Renders When... | Purpose |\n|----------------------------------|----------------------------------|----------------------------------------------------------------|\n| (default) | Always | Place one or more `<obc-alert-menu-item>` elements as alert rows. |\n| empty-<tab>-title | Selected tab is empty | Custom title for the empty state (`<tab>` is one of `unacked`, `all`, `shelved`). |\n| empty-<tab>-description | Selected tab is empty | Custom description for the empty state (`<tab>` is one of `unacked`, `all`, `shelved`). |\n| empty-<tab>-icon | Selected tab is empty | Custom icon for the empty state (`<tab>` is one of `unacked`, `all`, `shelved`). |\n\n### Properties\n- `hasShelved` (boolean): If true, displays the \"Shelved\" tab and enables shelving support. Default: false.\n- `canAckAll` (boolean): If true, enables the \"ACK visible\" button for bulk acknowledgment. Default: false.\n- `showSilenceButton` (boolean): If true, shows the \"Silence\" button. Default: true.\n- `showAlertListButton` (boolean): If true, shows the \"Alerts\" navigation button. Default: true.\n\n### Events\n- **ack-all-visible-click** – Fired when the \"ACK visible\" button is clicked. The event detail includes the list of visible alert elements and the current tab name.\n- **silence-click** – Fired when the \"Silence\" button is clicked.\n- **go-to-alert-list-click** – Fired when the \"Alerts\" navigation button is clicked.\n\n### Best Practices and Constraints\n- Only enable \"ACK visible\" when there are actionable, unacknowledged alerts in the current view.\n- Use the \"Shelved\" tab only if your application supports shelving alerts; otherwise, omit it for simplicity.\n- For accessibility, keep all alert items and action buttons keyboard navigable.\n- Do not use this component for persistent, always-on-screen alerts; use banners or dialogs for critical, persistent notifications.\n\n### Example\n```\n<obc-alert-menu hasShelved canAckAll>\n <obc-alert-menu-item active hasTime>\n <obi-placeholder slot=\"alert-icon\"></obi-placeholder>\n <span slot=\"title\">Engine Overheat</span>\n <span slot=\"description\">Main engine temperature exceeds threshold</span>\n <span slot=\"time\">09:12:34</span>\n </obc-alert-menu-item>\n <!-- More alert items... -->\n</obc-alert-menu>\n```",
|
|
51748
52176
|
"name": "ObcAlertMenu",
|
|
51749
52177
|
"slots": [
|
|
51750
52178
|
{
|
|
@@ -51828,18 +52256,18 @@
|
|
|
51828
52256
|
},
|
|
51829
52257
|
{
|
|
51830
52258
|
"kind": "field",
|
|
51831
|
-
"name": "
|
|
52259
|
+
"name": "_selectedTabName",
|
|
51832
52260
|
"type": {
|
|
51833
|
-
"text": "
|
|
52261
|
+
"text": "string | undefined"
|
|
51834
52262
|
},
|
|
51835
52263
|
"privacy": "private",
|
|
51836
|
-
"
|
|
52264
|
+
"description": "The `name` of the tab the user picked; the second tab shows until then."
|
|
51837
52265
|
},
|
|
51838
52266
|
{
|
|
51839
52267
|
"kind": "field",
|
|
51840
52268
|
"name": "alertList",
|
|
51841
52269
|
"type": {
|
|
51842
|
-
"text": "
|
|
52270
|
+
"text": "ObcAlertListBase"
|
|
51843
52271
|
},
|
|
51844
52272
|
"privacy": "private"
|
|
51845
52273
|
},
|
|
@@ -51863,8 +52291,113 @@
|
|
|
51863
52291
|
},
|
|
51864
52292
|
{
|
|
51865
52293
|
"kind": "method",
|
|
51866
|
-
"name": "
|
|
51867
|
-
"privacy": "
|
|
52294
|
+
"name": "willUpdate",
|
|
52295
|
+
"privacy": "protected",
|
|
52296
|
+
"parameters": [
|
|
52297
|
+
{
|
|
52298
|
+
"name": "changedProperties",
|
|
52299
|
+
"type": {
|
|
52300
|
+
"text": "PropertyValues<this>"
|
|
52301
|
+
}
|
|
52302
|
+
}
|
|
52303
|
+
]
|
|
52304
|
+
},
|
|
52305
|
+
{
|
|
52306
|
+
"kind": "field",
|
|
52307
|
+
"name": "offersAckAll",
|
|
52308
|
+
"type": {
|
|
52309
|
+
"text": "boolean"
|
|
52310
|
+
},
|
|
52311
|
+
"privacy": "protected",
|
|
52312
|
+
"description": "Whether the menu offers \"ACK visible\" at all; `canAckAll` enables it.",
|
|
52313
|
+
"readonly": true
|
|
52314
|
+
},
|
|
52315
|
+
{
|
|
52316
|
+
"kind": "field",
|
|
52317
|
+
"name": "tabs",
|
|
52318
|
+
"type": {
|
|
52319
|
+
"text": "AlertMenuTab[]"
|
|
52320
|
+
},
|
|
52321
|
+
"privacy": "protected",
|
|
52322
|
+
"description": "The tabs in display order; the menu opens on the second one.",
|
|
52323
|
+
"readonly": true
|
|
52324
|
+
},
|
|
52325
|
+
{
|
|
52326
|
+
"kind": "method",
|
|
52327
|
+
"name": "selectedTabIndex",
|
|
52328
|
+
"privacy": "private",
|
|
52329
|
+
"return": {
|
|
52330
|
+
"type": {
|
|
52331
|
+
"text": "number"
|
|
52332
|
+
}
|
|
52333
|
+
},
|
|
52334
|
+
"parameters": [
|
|
52335
|
+
{
|
|
52336
|
+
"name": "tabs",
|
|
52337
|
+
"type": {
|
|
52338
|
+
"text": "AlertMenuTab[]"
|
|
52339
|
+
}
|
|
52340
|
+
}
|
|
52341
|
+
],
|
|
52342
|
+
"description": "Where the selected tab sits in `tabs`: the one the user picked, else the second."
|
|
52343
|
+
},
|
|
52344
|
+
{
|
|
52345
|
+
"kind": "field",
|
|
52346
|
+
"name": "selectedTab",
|
|
52347
|
+
"type": {
|
|
52348
|
+
"text": "AlertMenuTab"
|
|
52349
|
+
},
|
|
52350
|
+
"privacy": "private",
|
|
52351
|
+
"readonly": true
|
|
52352
|
+
},
|
|
52353
|
+
{
|
|
52354
|
+
"kind": "method",
|
|
52355
|
+
"name": "renderList",
|
|
52356
|
+
"privacy": "protected",
|
|
52357
|
+
"return": {
|
|
52358
|
+
"type": {
|
|
52359
|
+
"text": "TemplateResult"
|
|
52360
|
+
}
|
|
52361
|
+
},
|
|
52362
|
+
"parameters": [
|
|
52363
|
+
{
|
|
52364
|
+
"name": "tab",
|
|
52365
|
+
"type": {
|
|
52366
|
+
"text": "AlertMenuTab"
|
|
52367
|
+
}
|
|
52368
|
+
},
|
|
52369
|
+
{
|
|
52370
|
+
"name": "content",
|
|
52371
|
+
"type": {
|
|
52372
|
+
"text": "TemplateResult"
|
|
52373
|
+
}
|
|
52374
|
+
}
|
|
52375
|
+
],
|
|
52376
|
+
"description": "The list that shows the selected tab's items. The CSS hides the items the\ntab leaves out; the filter tells the list which ones those are."
|
|
52377
|
+
},
|
|
52378
|
+
{
|
|
52379
|
+
"kind": "method",
|
|
52380
|
+
"name": "tabFilter",
|
|
52381
|
+
"privacy": "private",
|
|
52382
|
+
"return": {
|
|
52383
|
+
"type": {
|
|
52384
|
+
"text": "boolean"
|
|
52385
|
+
}
|
|
52386
|
+
},
|
|
52387
|
+
"parameters": [
|
|
52388
|
+
{
|
|
52389
|
+
"name": "name",
|
|
52390
|
+
"type": {
|
|
52391
|
+
"text": "string"
|
|
52392
|
+
}
|
|
52393
|
+
},
|
|
52394
|
+
{
|
|
52395
|
+
"name": "item",
|
|
52396
|
+
"type": {
|
|
52397
|
+
"text": "HTMLElement"
|
|
52398
|
+
}
|
|
52399
|
+
}
|
|
52400
|
+
]
|
|
51868
52401
|
},
|
|
51869
52402
|
{
|
|
51870
52403
|
"kind": "method",
|
|
@@ -51873,6 +52406,9 @@
|
|
|
51873
52406
|
{
|
|
51874
52407
|
"kind": "field",
|
|
51875
52408
|
"name": "styles",
|
|
52409
|
+
"type": {
|
|
52410
|
+
"text": "CSSResultGroup"
|
|
52411
|
+
},
|
|
51876
52412
|
"static": true
|
|
51877
52413
|
}
|
|
51878
52414
|
],
|
|
@@ -62248,6 +62784,15 @@
|
|
|
62248
62784
|
"privacy": "private",
|
|
62249
62785
|
"default": "NaN"
|
|
62250
62786
|
},
|
|
62787
|
+
{
|
|
62788
|
+
"kind": "field",
|
|
62789
|
+
"name": "focusFromValueClick",
|
|
62790
|
+
"type": {
|
|
62791
|
+
"text": "boolean"
|
|
62792
|
+
},
|
|
62793
|
+
"privacy": "private",
|
|
62794
|
+
"default": "false"
|
|
62795
|
+
},
|
|
62251
62796
|
{
|
|
62252
62797
|
"kind": "field",
|
|
62253
62798
|
"name": "inputElement",
|
|
@@ -62341,6 +62886,17 @@
|
|
|
62341
62886
|
"name": "onFocus",
|
|
62342
62887
|
"privacy": "private"
|
|
62343
62888
|
},
|
|
62889
|
+
{
|
|
62890
|
+
"kind": "method",
|
|
62891
|
+
"name": "ungroupKeepingSelection",
|
|
62892
|
+
"privacy": "private",
|
|
62893
|
+
"description": "Ungroups a value the user clicked into, once the browser has placed the\ncaret, and moves the caret with its digits. Ungrouping before that shifts\nthe text under the pointer and the caret lands beside the clicked digit."
|
|
62894
|
+
},
|
|
62895
|
+
{
|
|
62896
|
+
"kind": "method",
|
|
62897
|
+
"name": "ungroupDisplay",
|
|
62898
|
+
"privacy": "private"
|
|
62899
|
+
},
|
|
62344
62900
|
{
|
|
62345
62901
|
"kind": "method",
|
|
62346
62902
|
"name": "onBlur",
|
|
@@ -62380,19 +62936,6 @@
|
|
|
62380
62936
|
}
|
|
62381
62937
|
}
|
|
62382
62938
|
},
|
|
62383
|
-
{
|
|
62384
|
-
"kind": "method",
|
|
62385
|
-
"name": "updateCenterAlignedInputWidth",
|
|
62386
|
-
"privacy": "private",
|
|
62387
|
-
"parameters": [
|
|
62388
|
-
{
|
|
62389
|
-
"name": "value",
|
|
62390
|
-
"type": {
|
|
62391
|
-
"text": "string"
|
|
62392
|
-
}
|
|
62393
|
-
}
|
|
62394
|
-
]
|
|
62395
|
-
},
|
|
62396
62939
|
{
|
|
62397
62940
|
"kind": "method",
|
|
62398
62941
|
"name": "firstUpdated"
|
|
@@ -62457,7 +63000,8 @@
|
|
|
62457
63000
|
"text": "PointerEvent"
|
|
62458
63001
|
}
|
|
62459
63002
|
}
|
|
62460
|
-
]
|
|
63003
|
+
],
|
|
63004
|
+
"description": "Keeps focus where it is while the chrome around the value is clicked.\nThe wrapper is a `<label>`, so the click itself focuses the input; without\nthis the pointerdown would blur it first and commit an unfinished edit.\nA click on the value itself is the browser's; it is only noted, so the\nfocus it causes ungroups the value without moving the caret."
|
|
62461
63005
|
},
|
|
62462
63006
|
{
|
|
62463
63007
|
"kind": "method",
|
|
@@ -71145,7 +71689,7 @@
|
|
|
71145
71689
|
"declarations": [
|
|
71146
71690
|
{
|
|
71147
71691
|
"kind": "class",
|
|
71148
|
-
"description": "`<obc-textbox>` – A text container that renders inline text at a\nprecise, cap-height-trimmed size with configurable alignment and reservable\nwidth.\n\nUse it to present short, read-only strings – such as values, labels, or\nunits – where vertical metrics must line up exactly across rows and the\nhorizontal footprint should stay stable while the text changes (for example\na numeric value that updates frequently). Synonyms: text container, value\nbox, label box.\n\n## Features / Variants\n- **Size:** `xs`, `s`, `m` (default), `l`, `xl` – each maps to a fixed box\n height (16 / 20 / 24 / 32 / 40 px) with 4px padding above and below, giving\n cap heights of 8 / 12 / 16 / 24 / 32 px so text aligns to a predictable\n grid.\n- **Font weight:** `regular` (default), `semibold`, `bold`.\n- **Tabular numbers:** `tabularNums` (default off) renders digits as\n fixed-width, lining numerals (`tabular-nums lining-nums` + the `ss04`/`tnum`/\n `lnum` features) so numeric values stay column-aligned and stable in width\n as they update – use it for readouts and other live numeric displays.\n- **Alignment:** `left`, `center`, `right` (default) – positions the text\n within the box's width when the box is wider than the content.\n- **Reserved width:** content placed in the `length` slot reserves a minimum\n width invisibly, so the box does not resize as the visible text changes.\n The box always shows all content – it never crops.\n\n## Usage Guidelines\n- Pass the longest expected string to the `length` slot (e.g. `\"888.8\"` or\n `\"Wind speed\"`) so the box reserves space and does not jump in width as the\n visible value updates.\n- This is a display primitive for static text – use an input component for\n editable values.\n\n## Slots\n| Slot | Renders when… | Purpose |\n|-----------|--------------------|------------------------------------------------------|\n| (default) | Always | The visible text content. |\n| `length` | Always (invisible) | Reserves a minimum width based on its content width. |",
|
|
71692
|
+
"description": "`<obc-textbox>` – A text container that renders inline text at a\nprecise, cap-height-trimmed size with configurable alignment and reservable\nwidth.\n\nUse it to present short, read-only strings – such as values, labels, or\nunits – where vertical metrics must line up exactly across rows and the\nhorizontal footprint should stay stable while the text changes (for example\na numeric value that updates frequently). Synonyms: text container, value\nbox, label box.\n\n## Features / Variants\n- **Size:** `xs`, `s`, `m` (default), `l`, `xl` – each maps to a fixed box\n height (16 / 20 / 24 / 32 / 40 px) with 4px padding above and below, giving\n cap heights of 8 / 12 / 16 / 24 / 32 px so text aligns to a predictable\n grid.\n- **Font weight:** `regular` (default), `semibold`, `bold`.\n- **Tabular numbers:** `tabularNums` (default off) renders digits as\n fixed-width, lining numerals (`tabular-nums lining-nums` + the `ss04`/`tnum`/\n `lnum` features) so numeric values stay column-aligned and stable in width\n as they update – use it for readouts and other live numeric displays.\n- **Alignment:** `left`, `center`, `right` (default) – positions the text\n within the box's width when the box is wider than the content.\n- **Reserved width:** content placed in the `length` slot reserves a minimum\n width invisibly, so the box does not resize as the visible text changes.\n The box always shows all content – it never crops.\n- **Cap-to-baseline frame:** the box spans the cap top to the baseline plus\n the padding; descenders and diacritics paint past its edges, so an\n ancestor that clips must leave room for them.\n\n## Usage Guidelines\n- Pass the longest expected string to the `length` slot (e.g. `\"888.8\"` or\n `\"Wind speed\"`) so the box reserves space and does not jump in width as the\n visible value updates.\n- This is a display primitive for static text – use an input component for\n editable values.\n\n## Slots\n| Slot | Renders when… | Purpose |\n|-----------|--------------------|------------------------------------------------------|\n| (default) | Always | The visible text content. |\n| `length` | Always (invisible) | Reserves a minimum width based on its content width. |",
|
|
71149
71693
|
"name": "ObcTextbox",
|
|
71150
71694
|
"slots": [
|
|
71151
71695
|
{
|
|
@@ -99062,12 +99606,12 @@
|
|
|
99062
99606
|
},
|
|
99063
99607
|
{
|
|
99064
99608
|
"kind": "javascript-module",
|
|
99065
|
-
"path": "src/pages/alert-list-page-small/alert-list-page-small.ts",
|
|
99609
|
+
"path": "src/pages/alert-list-page-small/alert-list-page-small-base.ts",
|
|
99066
99610
|
"declarations": [
|
|
99067
99611
|
{
|
|
99068
99612
|
"kind": "class",
|
|
99069
|
-
"description": "",
|
|
99070
|
-
"name": "
|
|
99613
|
+
"description": "`ObcAlertListPageSmallBase` – Compact alert list page: a list of alerts over a\nbar with a mode dropdown, a silence button and \"ACK visible\".\n\nNot registered as an element: the subclasses supply the list and the\nmodes. `obc-alert-list-page-small` renders `obc-alert-list-details`.\n\n### Features\n- **Modes:** the dropdown offers `modes` and shows `mode`; picking one calls\n `selectMode()`.\n- **ACK visible:** enabled while `canAckAll` holds; a click reports the\n alerts `visibleAlerts()` returns, and the mode, in `ack-all-visible-click`.\n- **Silence:** the icon button fires `silence-click`.\n\nThe base holds no alerts: each page declares `alerts` in the alert type it\nlists.",
|
|
99614
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99071
99615
|
"members": [
|
|
99072
99616
|
{
|
|
99073
99617
|
"kind": "field",
|
|
@@ -99075,36 +99619,224 @@
|
|
|
99075
99619
|
"type": {
|
|
99076
99620
|
"text": "boolean"
|
|
99077
99621
|
},
|
|
99078
|
-
"default": "false"
|
|
99622
|
+
"default": "false",
|
|
99623
|
+
"description": "Whether the dropdown offers the shelved alerts."
|
|
99079
99624
|
},
|
|
99080
99625
|
{
|
|
99081
99626
|
"kind": "field",
|
|
99082
|
-
"name": "
|
|
99627
|
+
"name": "showTime",
|
|
99083
99628
|
"type": {
|
|
99084
|
-
"text": "
|
|
99085
|
-
}
|
|
99629
|
+
"text": "boolean"
|
|
99630
|
+
},
|
|
99631
|
+
"default": "false",
|
|
99632
|
+
"description": "Whether the list shows when each alert was raised."
|
|
99086
99633
|
},
|
|
99087
99634
|
{
|
|
99088
99635
|
"kind": "field",
|
|
99089
|
-
"name": "
|
|
99636
|
+
"name": "timeFormatter",
|
|
99090
99637
|
"type": {
|
|
99091
|
-
"text": "
|
|
99638
|
+
"text": "(time: Date) => string"
|
|
99092
99639
|
},
|
|
99093
|
-
"
|
|
99640
|
+
"description": "Formats the time the list shows."
|
|
99094
99641
|
},
|
|
99095
99642
|
{
|
|
99096
99643
|
"kind": "field",
|
|
99097
|
-
"name": "
|
|
99644
|
+
"name": "modes",
|
|
99645
|
+
"type": {
|
|
99646
|
+
"text": "AlertListPageMode[]"
|
|
99647
|
+
},
|
|
99648
|
+
"privacy": "protected",
|
|
99649
|
+
"description": "The dropdown's options, in order.",
|
|
99650
|
+
"readonly": true
|
|
99651
|
+
},
|
|
99652
|
+
{
|
|
99653
|
+
"kind": "field",
|
|
99654
|
+
"name": "mode",
|
|
99655
|
+
"type": {
|
|
99656
|
+
"text": "string"
|
|
99657
|
+
},
|
|
99658
|
+
"privacy": "protected",
|
|
99659
|
+
"description": "The mode the list filters by and the dropdown shows.",
|
|
99660
|
+
"readonly": true
|
|
99661
|
+
},
|
|
99662
|
+
{
|
|
99663
|
+
"kind": "method",
|
|
99664
|
+
"name": "selectMode",
|
|
99665
|
+
"privacy": "protected",
|
|
99666
|
+
"parameters": [
|
|
99667
|
+
{
|
|
99668
|
+
"name": "_mode",
|
|
99669
|
+
"type": {
|
|
99670
|
+
"text": "string"
|
|
99671
|
+
}
|
|
99672
|
+
}
|
|
99673
|
+
]
|
|
99674
|
+
},
|
|
99675
|
+
{
|
|
99676
|
+
"kind": "field",
|
|
99677
|
+
"name": "canAckAll",
|
|
99098
99678
|
"type": {
|
|
99099
99679
|
"text": "boolean"
|
|
99100
99680
|
},
|
|
99101
|
-
"
|
|
99681
|
+
"privacy": "protected",
|
|
99682
|
+
"description": "Whether an alert the list shows in `mode` can still be acknowledged.",
|
|
99683
|
+
"readonly": true
|
|
99102
99684
|
},
|
|
99103
99685
|
{
|
|
99104
99686
|
"kind": "field",
|
|
99105
|
-
"name": "
|
|
99687
|
+
"name": "offersAckAll",
|
|
99106
99688
|
"type": {
|
|
99107
|
-
"text": "
|
|
99689
|
+
"text": "boolean"
|
|
99690
|
+
},
|
|
99691
|
+
"privacy": "protected",
|
|
99692
|
+
"description": "Whether the page offers \"ACK visible\" at all; `canAckAll` enables it.",
|
|
99693
|
+
"readonly": true
|
|
99694
|
+
},
|
|
99695
|
+
{
|
|
99696
|
+
"kind": "method",
|
|
99697
|
+
"name": "visibleAlerts",
|
|
99698
|
+
"privacy": "protected",
|
|
99699
|
+
"return": {
|
|
99700
|
+
"type": {
|
|
99701
|
+
"text": "unknown[]"
|
|
99702
|
+
}
|
|
99703
|
+
},
|
|
99704
|
+
"description": "The alerts in view, which \"ACK visible\" reports."
|
|
99705
|
+
},
|
|
99706
|
+
{
|
|
99707
|
+
"kind": "method",
|
|
99708
|
+
"name": "renderList",
|
|
99709
|
+
"privacy": "protected",
|
|
99710
|
+
"return": {
|
|
99711
|
+
"type": {
|
|
99712
|
+
"text": "TemplateResult | typeof nothing"
|
|
99713
|
+
}
|
|
99714
|
+
}
|
|
99715
|
+
},
|
|
99716
|
+
{
|
|
99717
|
+
"kind": "method",
|
|
99718
|
+
"name": "dispatchAckClick",
|
|
99719
|
+
"privacy": "protected",
|
|
99720
|
+
"parameters": [
|
|
99721
|
+
{
|
|
99722
|
+
"name": "alert",
|
|
99723
|
+
"type": {
|
|
99724
|
+
"text": "unknown"
|
|
99725
|
+
}
|
|
99726
|
+
}
|
|
99727
|
+
]
|
|
99728
|
+
},
|
|
99729
|
+
{
|
|
99730
|
+
"kind": "method",
|
|
99731
|
+
"name": "dispatchRowClick",
|
|
99732
|
+
"privacy": "protected",
|
|
99733
|
+
"parameters": [
|
|
99734
|
+
{
|
|
99735
|
+
"name": "alert",
|
|
99736
|
+
"type": {
|
|
99737
|
+
"text": "unknown"
|
|
99738
|
+
}
|
|
99739
|
+
}
|
|
99740
|
+
]
|
|
99741
|
+
},
|
|
99742
|
+
{
|
|
99743
|
+
"kind": "method",
|
|
99744
|
+
"name": "handleAckAllVisibleClick",
|
|
99745
|
+
"privacy": "private"
|
|
99746
|
+
},
|
|
99747
|
+
{
|
|
99748
|
+
"kind": "method",
|
|
99749
|
+
"name": "onModeSelect",
|
|
99750
|
+
"privacy": "private",
|
|
99751
|
+
"parameters": [
|
|
99752
|
+
{
|
|
99753
|
+
"name": "e",
|
|
99754
|
+
"type": {
|
|
99755
|
+
"text": "ObcDropdownButtonChangeEvent"
|
|
99756
|
+
}
|
|
99757
|
+
}
|
|
99758
|
+
]
|
|
99759
|
+
},
|
|
99760
|
+
{
|
|
99761
|
+
"kind": "method",
|
|
99762
|
+
"name": "render"
|
|
99763
|
+
},
|
|
99764
|
+
{
|
|
99765
|
+
"kind": "field",
|
|
99766
|
+
"name": "styles",
|
|
99767
|
+
"type": {
|
|
99768
|
+
"text": "CSSResultGroup"
|
|
99769
|
+
},
|
|
99770
|
+
"static": true
|
|
99771
|
+
}
|
|
99772
|
+
],
|
|
99773
|
+
"events": [
|
|
99774
|
+
{
|
|
99775
|
+
"name": "ack-click",
|
|
99776
|
+
"type": {
|
|
99777
|
+
"text": "CustomEvent"
|
|
99778
|
+
}
|
|
99779
|
+
},
|
|
99780
|
+
{
|
|
99781
|
+
"name": "row-click",
|
|
99782
|
+
"type": {
|
|
99783
|
+
"text": "CustomEvent"
|
|
99784
|
+
}
|
|
99785
|
+
},
|
|
99786
|
+
{
|
|
99787
|
+
"name": "ack-all-visible-click",
|
|
99788
|
+
"type": {
|
|
99789
|
+
"text": "CustomEvent"
|
|
99790
|
+
}
|
|
99791
|
+
},
|
|
99792
|
+
{
|
|
99793
|
+
"name": "silence-click",
|
|
99794
|
+
"type": {
|
|
99795
|
+
"text": "CustomEvent"
|
|
99796
|
+
}
|
|
99797
|
+
}
|
|
99798
|
+
],
|
|
99799
|
+
"superclass": {
|
|
99800
|
+
"name": "LitElement",
|
|
99801
|
+
"package": "lit"
|
|
99802
|
+
},
|
|
99803
|
+
"customElement": true
|
|
99804
|
+
}
|
|
99805
|
+
],
|
|
99806
|
+
"exports": [
|
|
99807
|
+
{
|
|
99808
|
+
"kind": "js",
|
|
99809
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99810
|
+
"declaration": {
|
|
99811
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99812
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
99813
|
+
}
|
|
99814
|
+
}
|
|
99815
|
+
]
|
|
99816
|
+
},
|
|
99817
|
+
{
|
|
99818
|
+
"kind": "javascript-module",
|
|
99819
|
+
"path": "src/pages/alert-list-page-small/alert-list-page-small.ts",
|
|
99820
|
+
"declarations": [
|
|
99821
|
+
{
|
|
99822
|
+
"kind": "class",
|
|
99823
|
+
"description": "",
|
|
99824
|
+
"name": "ObcAlertListPageSmall",
|
|
99825
|
+
"members": [
|
|
99826
|
+
{
|
|
99827
|
+
"kind": "field",
|
|
99828
|
+
"name": "alerts",
|
|
99829
|
+
"type": {
|
|
99830
|
+
"text": "Alert[]"
|
|
99831
|
+
},
|
|
99832
|
+
"default": "[]",
|
|
99833
|
+
"description": "Alerts to list."
|
|
99834
|
+
},
|
|
99835
|
+
{
|
|
99836
|
+
"kind": "field",
|
|
99837
|
+
"name": "selectedMode",
|
|
99838
|
+
"type": {
|
|
99839
|
+
"text": "AlertListMode"
|
|
99108
99840
|
}
|
|
99109
99841
|
},
|
|
99110
99842
|
{
|
|
@@ -99141,28 +99873,78 @@
|
|
|
99141
99873
|
]
|
|
99142
99874
|
},
|
|
99143
99875
|
{
|
|
99144
|
-
"kind": "
|
|
99145
|
-
"name": "
|
|
99146
|
-
"
|
|
99876
|
+
"kind": "field",
|
|
99877
|
+
"name": "modes",
|
|
99878
|
+
"type": {
|
|
99879
|
+
"text": "AlertListPageMode[]"
|
|
99880
|
+
},
|
|
99881
|
+
"privacy": "protected",
|
|
99882
|
+
"description": "The dropdown's options, in order.",
|
|
99883
|
+
"readonly": true,
|
|
99884
|
+
"inheritedFrom": {
|
|
99885
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99886
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
99887
|
+
}
|
|
99888
|
+
},
|
|
99889
|
+
{
|
|
99890
|
+
"kind": "field",
|
|
99891
|
+
"name": "mode",
|
|
99892
|
+
"type": {
|
|
99893
|
+
"text": "string"
|
|
99894
|
+
},
|
|
99895
|
+
"privacy": "protected",
|
|
99896
|
+
"description": "The mode the list filters by and the dropdown shows.",
|
|
99897
|
+
"readonly": true,
|
|
99898
|
+
"inheritedFrom": {
|
|
99899
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99900
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
99901
|
+
}
|
|
99147
99902
|
},
|
|
99148
99903
|
{
|
|
99149
99904
|
"kind": "method",
|
|
99150
|
-
"name": "
|
|
99151
|
-
"privacy": "
|
|
99905
|
+
"name": "selectMode",
|
|
99906
|
+
"privacy": "protected",
|
|
99152
99907
|
"parameters": [
|
|
99153
99908
|
{
|
|
99154
|
-
"name": "
|
|
99909
|
+
"name": "mode",
|
|
99155
99910
|
"type": {
|
|
99156
|
-
"text": "
|
|
99911
|
+
"text": "string"
|
|
99157
99912
|
}
|
|
99158
99913
|
}
|
|
99159
|
-
]
|
|
99914
|
+
],
|
|
99915
|
+
"inheritedFrom": {
|
|
99916
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99917
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
99918
|
+
}
|
|
99160
99919
|
},
|
|
99161
99920
|
{
|
|
99162
99921
|
"kind": "field",
|
|
99163
|
-
"name": "
|
|
99164
|
-
"
|
|
99165
|
-
|
|
99922
|
+
"name": "canAckAll",
|
|
99923
|
+
"type": {
|
|
99924
|
+
"text": "boolean"
|
|
99925
|
+
},
|
|
99926
|
+
"privacy": "protected",
|
|
99927
|
+
"description": "Whether an alert the list shows in `mode` can still be acknowledged.",
|
|
99928
|
+
"readonly": true,
|
|
99929
|
+
"inheritedFrom": {
|
|
99930
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99931
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
99932
|
+
}
|
|
99933
|
+
},
|
|
99934
|
+
{
|
|
99935
|
+
"kind": "method",
|
|
99936
|
+
"name": "visibleAlerts",
|
|
99937
|
+
"privacy": "protected",
|
|
99938
|
+
"return": {
|
|
99939
|
+
"type": {
|
|
99940
|
+
"text": "Alert[]"
|
|
99941
|
+
}
|
|
99942
|
+
},
|
|
99943
|
+
"description": "The alerts in view, which \"ACK visible\" reports.",
|
|
99944
|
+
"inheritedFrom": {
|
|
99945
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99946
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
99947
|
+
}
|
|
99166
99948
|
},
|
|
99167
99949
|
{
|
|
99168
99950
|
"kind": "method",
|
|
@@ -99192,49 +99974,201 @@
|
|
|
99192
99974
|
},
|
|
99193
99975
|
{
|
|
99194
99976
|
"kind": "method",
|
|
99195
|
-
"name": "
|
|
99977
|
+
"name": "renderList",
|
|
99978
|
+
"privacy": "protected",
|
|
99979
|
+
"return": {
|
|
99980
|
+
"type": {
|
|
99981
|
+
"text": "TemplateResult | typeof nothing"
|
|
99982
|
+
}
|
|
99983
|
+
},
|
|
99984
|
+
"inheritedFrom": {
|
|
99985
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99986
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
99987
|
+
}
|
|
99988
|
+
},
|
|
99989
|
+
{
|
|
99990
|
+
"kind": "field",
|
|
99991
|
+
"name": "hasShelved",
|
|
99992
|
+
"type": {
|
|
99993
|
+
"text": "boolean"
|
|
99994
|
+
},
|
|
99995
|
+
"default": "false",
|
|
99996
|
+
"description": "Whether the dropdown offers the shelved alerts.",
|
|
99997
|
+
"inheritedFrom": {
|
|
99998
|
+
"name": "ObcAlertListPageSmallBase",
|
|
99999
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100000
|
+
}
|
|
100001
|
+
},
|
|
100002
|
+
{
|
|
100003
|
+
"kind": "field",
|
|
100004
|
+
"name": "showTime",
|
|
100005
|
+
"type": {
|
|
100006
|
+
"text": "boolean"
|
|
100007
|
+
},
|
|
100008
|
+
"default": "false",
|
|
100009
|
+
"description": "Whether the list shows when each alert was raised.",
|
|
100010
|
+
"inheritedFrom": {
|
|
100011
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100012
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100013
|
+
}
|
|
100014
|
+
},
|
|
100015
|
+
{
|
|
100016
|
+
"kind": "field",
|
|
100017
|
+
"name": "timeFormatter",
|
|
100018
|
+
"type": {
|
|
100019
|
+
"text": "(time: Date) => string"
|
|
100020
|
+
},
|
|
100021
|
+
"description": "Formats the time the list shows.",
|
|
100022
|
+
"inheritedFrom": {
|
|
100023
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100024
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100025
|
+
}
|
|
100026
|
+
},
|
|
100027
|
+
{
|
|
100028
|
+
"kind": "field",
|
|
100029
|
+
"name": "offersAckAll",
|
|
100030
|
+
"type": {
|
|
100031
|
+
"text": "boolean"
|
|
100032
|
+
},
|
|
100033
|
+
"privacy": "protected",
|
|
100034
|
+
"description": "Whether the page offers \"ACK visible\" at all; `canAckAll` enables it.",
|
|
100035
|
+
"readonly": true,
|
|
100036
|
+
"inheritedFrom": {
|
|
100037
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100038
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100039
|
+
}
|
|
100040
|
+
},
|
|
100041
|
+
{
|
|
100042
|
+
"kind": "method",
|
|
100043
|
+
"name": "dispatchAckClick",
|
|
100044
|
+
"privacy": "protected",
|
|
100045
|
+
"parameters": [
|
|
100046
|
+
{
|
|
100047
|
+
"name": "alert",
|
|
100048
|
+
"type": {
|
|
100049
|
+
"text": "unknown"
|
|
100050
|
+
}
|
|
100051
|
+
}
|
|
100052
|
+
],
|
|
100053
|
+
"inheritedFrom": {
|
|
100054
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100055
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100056
|
+
}
|
|
100057
|
+
},
|
|
100058
|
+
{
|
|
100059
|
+
"kind": "method",
|
|
100060
|
+
"name": "dispatchRowClick",
|
|
100061
|
+
"privacy": "protected",
|
|
100062
|
+
"parameters": [
|
|
100063
|
+
{
|
|
100064
|
+
"name": "alert",
|
|
100065
|
+
"type": {
|
|
100066
|
+
"text": "unknown"
|
|
100067
|
+
}
|
|
100068
|
+
}
|
|
100069
|
+
],
|
|
100070
|
+
"inheritedFrom": {
|
|
100071
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100072
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100073
|
+
}
|
|
100074
|
+
},
|
|
100075
|
+
{
|
|
100076
|
+
"kind": "method",
|
|
100077
|
+
"name": "handleAckAllVisibleClick",
|
|
100078
|
+
"privacy": "private",
|
|
100079
|
+
"inheritedFrom": {
|
|
100080
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100081
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100082
|
+
}
|
|
100083
|
+
},
|
|
100084
|
+
{
|
|
100085
|
+
"kind": "method",
|
|
100086
|
+
"name": "onModeSelect",
|
|
100087
|
+
"privacy": "private",
|
|
100088
|
+
"parameters": [
|
|
100089
|
+
{
|
|
100090
|
+
"name": "e",
|
|
100091
|
+
"type": {
|
|
100092
|
+
"text": "ObcDropdownButtonChangeEvent"
|
|
100093
|
+
}
|
|
100094
|
+
}
|
|
100095
|
+
],
|
|
100096
|
+
"inheritedFrom": {
|
|
100097
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100098
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100099
|
+
}
|
|
100100
|
+
},
|
|
100101
|
+
{
|
|
100102
|
+
"kind": "method",
|
|
100103
|
+
"name": "render",
|
|
100104
|
+
"inheritedFrom": {
|
|
100105
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100106
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100107
|
+
}
|
|
99196
100108
|
},
|
|
99197
100109
|
{
|
|
99198
100110
|
"kind": "field",
|
|
99199
100111
|
"name": "styles",
|
|
99200
|
-
"
|
|
100112
|
+
"type": {
|
|
100113
|
+
"text": "CSSResultGroup"
|
|
100114
|
+
},
|
|
100115
|
+
"static": true,
|
|
100116
|
+
"inheritedFrom": {
|
|
100117
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100118
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100119
|
+
}
|
|
99201
100120
|
}
|
|
99202
100121
|
],
|
|
99203
100122
|
"events": [
|
|
99204
100123
|
{
|
|
99205
|
-
"name": "
|
|
100124
|
+
"name": "ack-all-visible-click",
|
|
99206
100125
|
"type": {
|
|
99207
|
-
"text": "CustomEvent
|
|
100126
|
+
"text": "CustomEvent"
|
|
99208
100127
|
},
|
|
99209
|
-
"description": "Fired when the user clicks the \"
|
|
100128
|
+
"description": "Fired when the user clicks the \"ACK visible\" button.",
|
|
100129
|
+
"inheritedFrom": {
|
|
100130
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100131
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100132
|
+
}
|
|
99210
100133
|
},
|
|
99211
100134
|
{
|
|
100135
|
+
"name": "ack-click",
|
|
99212
100136
|
"type": {
|
|
99213
|
-
"text": "
|
|
100137
|
+
"text": "CustomEvent"
|
|
99214
100138
|
},
|
|
99215
|
-
"description": "Fired when the user clicks the \"ACK
|
|
99216
|
-
"
|
|
100139
|
+
"description": "Fired when the user clicks the \"ACK\" button.",
|
|
100140
|
+
"inheritedFrom": {
|
|
100141
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100142
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100143
|
+
}
|
|
99217
100144
|
},
|
|
99218
100145
|
{
|
|
100146
|
+
"name": "row-click",
|
|
99219
100147
|
"type": {
|
|
99220
|
-
"text": "
|
|
100148
|
+
"text": "CustomEvent"
|
|
99221
100149
|
},
|
|
99222
|
-
"description": "Fired when the user clicks
|
|
99223
|
-
"
|
|
100150
|
+
"description": "Fired when the user clicks a row.",
|
|
100151
|
+
"inheritedFrom": {
|
|
100152
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100153
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100154
|
+
}
|
|
99224
100155
|
},
|
|
99225
100156
|
{
|
|
100157
|
+
"name": "silence-click",
|
|
99226
100158
|
"type": {
|
|
99227
|
-
"text": "
|
|
100159
|
+
"text": "CustomEvent"
|
|
99228
100160
|
},
|
|
99229
|
-
"description": "Fired when the user clicks
|
|
99230
|
-
"
|
|
100161
|
+
"description": "Fired when the user clicks the \"Silence\" button.",
|
|
100162
|
+
"inheritedFrom": {
|
|
100163
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100164
|
+
"module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
|
|
100165
|
+
}
|
|
99231
100166
|
}
|
|
99232
100167
|
],
|
|
99233
100168
|
"superclass": {
|
|
99234
|
-
"name": "
|
|
99235
|
-
"
|
|
99236
|
-
}
|
|
99237
|
-
"customElement": true
|
|
100169
|
+
"name": "ObcAlertListPageSmallBase",
|
|
100170
|
+
"module": "/src/pages/alert-list-page-small/alert-list-page-small-base.js"
|
|
100171
|
+
}
|
|
99238
100172
|
}
|
|
99239
100173
|
],
|
|
99240
100174
|
"exports": [
|