@oicl/openbridge-webcomponents-full-bundle 2.1.0-next.1 → 2.1.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/.storybook/main.ts +2 -0
  2. package/bundle/openbridge-webcomponents.bundle.js +390 -301
  3. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  4. package/custom-elements.json +1066 -102
  5. package/dist/automation/valve-analoge-two-way-icon/valve-analog-two-way-icon.d.ts +21 -0
  6. package/dist/automation/valve-analoge-two-way-icon/valve-analog-two-way-icon.d.ts.map +1 -1
  7. package/dist/automation/valve-analoge-two-way-icon/valve-analog-two-way-icon.js +39 -58
  8. package/dist/automation/valve-analoge-two-way-icon/valve-analog-two-way-icon.js.map +1 -1
  9. package/dist/building-blocks/alert-list/alert-list-base.d.ts +60 -0
  10. package/dist/building-blocks/alert-list/alert-list-base.d.ts.map +1 -0
  11. package/dist/building-blocks/alert-list/alert-list-base.js +191 -0
  12. package/dist/building-blocks/alert-list/alert-list-base.js.map +1 -0
  13. package/dist/building-blocks/alert-list/alert-list.css.js.map +1 -1
  14. package/dist/building-blocks/alert-list/alert-list.d.ts +13 -26
  15. package/dist/building-blocks/alert-list/alert-list.d.ts.map +1 -1
  16. package/dist/building-blocks/alert-list/alert-list.js +7 -142
  17. package/dist/building-blocks/alert-list/alert-list.js.map +1 -1
  18. package/dist/components/alert-icon/alert-icon.d.ts.map +1 -1
  19. package/dist/components/alert-icon/alert-icon.js +6 -5
  20. package/dist/components/alert-icon/alert-icon.js.map +1 -1
  21. package/dist/components/alert-list-details/alert-list-details.css.js +4 -1
  22. package/dist/components/alert-list-details/alert-list-details.css.js.map +1 -1
  23. package/dist/components/alert-menu/alert-menu.css.js +3 -42
  24. package/dist/components/alert-menu/alert-menu.css.js.map +1 -1
  25. package/dist/components/alert-menu/alert-menu.d.ts +28 -6
  26. package/dist/components/alert-menu/alert-menu.d.ts.map +1 -1
  27. package/dist/components/alert-menu/alert-menu.js +81 -60
  28. package/dist/components/alert-menu/alert-menu.js.map +1 -1
  29. package/dist/components/alert-menu-item/alert-menu-item.d.ts +16 -6
  30. package/dist/components/alert-menu-item/alert-menu-item.d.ts.map +1 -1
  31. package/dist/components/alert-menu-item/alert-menu-item.js +11 -2
  32. package/dist/components/alert-menu-item/alert-menu-item.js.map +1 -1
  33. package/dist/components/number-input-field/number-input-field.css.js +8 -2
  34. package/dist/components/number-input-field/number-input-field.css.js.map +1 -1
  35. package/dist/components/number-input-field/number-input-field.d.ts +15 -1
  36. package/dist/components/number-input-field/number-input-field.d.ts.map +1 -1
  37. package/dist/components/number-input-field/number-input-field.js +38 -44
  38. package/dist/components/number-input-field/number-input-field.js.map +1 -1
  39. package/dist/components/textbox/textbox.css.js +3 -9
  40. package/dist/components/textbox/textbox.css.js.map +1 -1
  41. package/dist/components/textbox/textbox.d.ts +3 -0
  42. package/dist/components/textbox/textbox.d.ts.map +1 -1
  43. package/dist/components/textbox/textbox.js.map +1 -1
  44. package/dist/generated/locales/es-419.d.ts +1 -1
  45. package/dist/generated/locales/es-419.js +1 -1
  46. package/dist/generated/locales/es-419.js.map +1 -1
  47. package/dist/navigation-instruments/readout-list-item/readout-list-item.css.js +2 -1
  48. package/dist/navigation-instruments/readout-list-item/readout-list-item.css.js.map +1 -1
  49. package/dist/pages/alert-detail-page/alert-detail-page.js +1 -1
  50. package/dist/pages/alert-detail-page/alert-detail-page.js.map +1 -1
  51. package/dist/pages/alert-list-page-small/alert-list-page-small-base.d.ts +59 -0
  52. package/dist/pages/alert-list-page-small/alert-list-page-small-base.d.ts.map +1 -0
  53. package/dist/pages/alert-list-page-small/alert-list-page-small-base.js +126 -0
  54. package/dist/pages/alert-list-page-small/alert-list-page-small-base.js.map +1 -0
  55. package/dist/pages/alert-list-page-small/alert-list-page-small.d.ts +12 -15
  56. package/dist/pages/alert-list-page-small/alert-list-page-small.d.ts.map +1 -1
  57. package/dist/pages/alert-list-page-small/alert-list-page-small.js +41 -92
  58. package/dist/pages/alert-list-page-small/alert-list-page-small.js.map +1 -1
  59. package/docs/GettingStarted.mdx +1 -0
  60. package/docs/MigrationGuide.mdx +2 -0
  61. package/package.json +1 -1
  62. package/src/automation/valve-analoge-two-way-icon/valve-analog-two-way-icon.stories.ts +63 -0
  63. package/src/automation/valve-analoge-two-way-icon/valve-analog-two-way-icon.ts +58 -60
  64. package/src/building-blocks/alert-list/alert-list-base.ts +266 -0
  65. package/src/building-blocks/alert-list/alert-list.css +1 -23
  66. package/src/building-blocks/alert-list/alert-list.spec.ts +22 -0
  67. package/src/building-blocks/alert-list/alert-list.ts +15 -207
  68. package/src/components/alert-icon/alert-icon.spec.ts +39 -0
  69. package/src/components/alert-icon/alert-icon.ts +11 -7
  70. package/src/components/alert-list-details/alert-list-details.css +1 -20
  71. package/src/components/alert-menu/alert-menu.css +5 -28
  72. package/src/components/alert-menu/alert-menu.spec.ts +113 -0
  73. package/src/components/alert-menu/alert-menu.ts +142 -79
  74. package/src/components/alert-menu-item/alert-menu-item.spec.ts +39 -0
  75. package/src/components/alert-menu-item/alert-menu-item.stories.ts +22 -0
  76. package/src/components/alert-menu-item/alert-menu-item.ts +22 -6
  77. package/src/components/number-input-field/number-input-field.css +8 -2
  78. package/src/components/number-input-field/number-input-field.spec.ts +260 -2
  79. package/src/components/number-input-field/number-input-field.stories.ts +74 -0
  80. package/src/components/number-input-field/number-input-field.ts +45 -74
  81. package/src/components/textbox/textbox.css +3 -9
  82. package/src/components/textbox/textbox.stories.ts +24 -0
  83. package/src/components/textbox/textbox.ts +3 -0
  84. package/src/generated/locales/es-419.ts +1 -1
  85. package/src/mixins/alert-list-empty.css +32 -0
  86. package/src/navigation-instruments/readout-list-item/readout-list-item.css +2 -1
  87. package/src/pages/alert-detail-page/alert-detail-page.spec.ts +41 -0
  88. package/src/pages/alert-detail-page/alert-detail-page.ts +1 -1
  89. package/src/pages/alert-list-page-small/alert-list-page-small-base.ts +152 -0
  90. package/src/pages/alert-list-page-small/alert-list-page-small.spec.ts +84 -0
  91. package/src/pages/alert-list-page-small/alert-list-page-small.ts +43 -112
@@ -2886,7 +2886,7 @@
2886
2886
  {
2887
2887
  "kind": "variable",
2888
2888
  "name": "ObcValveAnalogTwoWayIcon",
2889
- "default": "class ObcValveAnalogTwoWayIcon extends LitElement { constructor(..._args) { super(..._args); this.value = 0; this.closed = false; this.vertical = false; } render() { const transform = this.vertical ? \"transform: rotate(90deg);\" : \"\"; if (this.closed) return html` <div class=\"wrapper\" style=\"${transform}\"> <obi-twoway-analog-closed useCssColor> </obi-twoway-analog-closed> </div>`; const handleRotation = -(1 - this.value / 100) * 90; const handleTranslation = (1 - this.value / 100) * 2; const handle = svg` <g transform=\"translate(0, ${handleTranslation}) rotate(${handleRotation} 12 3.5) \"> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9.5 5H14.5C15.3284 5 16 4.32843 16 3.5C16 2.67157 15.3284 2 14.5 2H9.5C8.67157 2 8 2.67157 8 3.5C8 4.32843 8.67157 5 9.5 5ZM9.5 4L14.5 4C14.7761 4 15 3.77614 15 3.5C15 3.22386 14.7761 3 14.5 3L9.5 3C9.22386 3 9 3.22386 9 3.5C9 3.77614 9.22386 4 9.5 4Z\" fill=\"var(--automation-device-tertiary-color)\"/> <path d=\"M9.5 4L14.5 4C14.7761 4 15 3.77614 15 3.5C15 3.22386 14.7761 3 14.5 3L9.5 3C9.22386 3 9 3.22386 9 3.5C9 3.77614 9.22386 4 9.5 4Z\" fill=\"var(--automation-device-primary-color)\"/> </g> `; const xmin = 10.5; const xmax = 2.5; const x = xmin + -8 * this.value / 100; return html` <div class=\"wrapper\" style=\"${transform}\"> <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" > <path d=\"M11 11L3.5547 6.03645C2.89015 5.59342 2 6.06981 2 6.8685V19.1315C2 19.9302 2.89015 20.4066 3.5547 19.9635L11 15H13L20.4453 19.9635C21.1099 20.4066 22 19.9302 22 19.1315V6.8685C22 6.06981 21.1099 5.59342 20.4453 6.03645L13 11H11ZM3 6.8685L3 19.1315L10.6972 14H13.3028L21 19.1315V6.8685L13.3028 12H10.6972L3 6.8685Z\" fill=\"var(--automation-device-tertiary-color)\" /> <path d=\"M10.6972 12H13.3028L21 6.8685V19.1315L13.3028 14H10.6972L3 19.1315V6.8685L10.6972 12Z\" fill=\"var(--automation-device-primary-color)\" /> ${handle} <g clip-path=\"url(#clip0)\"> <rect x=${xmax} y=\"0\" width=${x - xmax} height=\"24\" fill=\"var(--automation-device-secondary-color)\" /> <line x1=${x} y1=\"0\" x2=${x} y2=\"24\" stroke=\"var(--automation-device-tertiary-color)\" stroke-width=\"1\" /> <rect x=${24 - x} y=\"0\" width=${x - xmax} height=\"24\" fill=\"var(--automation-device-secondary-color)\" /> <line x1=${24 - x} y1=\"0\" x2=${24 - x} y2=\"24\" stroke=\"var(--automation-device-tertiary-color)\" stroke-width=\"1\" /> </g> <defs> <clipPath id=\"clip0\"> <path d=\"M10.6972 12H13.3028L21 6.8685V19.1315L13.3028 14H10.6972L3 19.1315V6.8685L10.6972 12Z\" /> </clipPath> </defs> </svg> </div> `; } static { this.styles = unsafeCSS(valve_analog_two_way_icon_default); } }"
2889
+ "default": "class ObcValveAnalogTwoWayIcon extends LitElement { constructor(..._args) { super(..._args); this.value = 0; this.closed = false; this.vertical = false; } renderBands(width) { if (width <= 0) return null; const left = 3 + width; const right = 21 - width; return svg`<g clip-path=\"url(#body)\"> <rect x=\"2\" y=\"0\" width=${left - 2} height=\"24\" style=${SECONDARY}/> <rect x=${left} y=\"0\" width=\"1\" height=\"24\" style=${TERTIARY}/> <rect x=${right} y=\"0\" width=${22 - right} height=\"24\" style=${SECONDARY}/> <rect x=${right - 1} y=\"0\" width=\"1\" height=\"24\" style=${TERTIARY}/> </g>`; } /** * Horizontal at the top when open, turning to vertical and moving 2 units * down as the valve shuts, matching `obi-twoway-analog-open` at 100 %. */ renderHandle(value) { const shut = 1 - value / 100; const angle = -90 * shut; const cx = 12; const cy = 3.5 + 2 * shut; return svg`<g transform=\"rotate(${angle} ${cx} ${cy})\"> <rect x=${8} y=${cy - 1.5} width=\"8\" height=\"3\" rx=\"1.5\" style=${TERTIARY}/> <rect x=${9} y=${cy - .5} width=\"6\" height=\"1\" rx=\"0.5\" style=${PRIMARY}/> </g>`; } render() { const transform = this.vertical ? \"transform: rotate(90deg);\" : \"\"; if (this.closed) return html` <div class=\"wrapper\" style=\"${transform}\"> <obi-twoway-analog-closed useCssColor> </obi-twoway-analog-closed> </div>`; const value = clampPercent(this.value); return html` <div class=\"wrapper\" style=\"${transform}\"> <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" > <defs> <clipPath id=\"body\"><path d=${BODY} /></clipPath> </defs> <path d=${OUTLINE} style=${TERTIARY} /> <path d=${BODY} style=${PRIMARY} /> ${this.renderBands(BAND_RANGE * (100 - value) / 100)} ${this.renderHandle(value)} </svg> </div> `; } static { this.styles = unsafeCSS(valve_analog_two_way_icon_default); } }"
2890
2890
  }
2891
2891
  ],
2892
2892
  "exports": [
@@ -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 LitElement { constructor(..._args) { super(..._args); this.filter = () => true; this.oldElementTop = /* @__PURE__ */ new Map(); this.mutationObserver = null; this.intersectionObserver = null; this.hasRenderedPanel = false; this._empty = false; } firstUpdated() { this.updateEmpty(); 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() { if (this.mutationObserver) { this.mutationObserver.disconnect(); this.mutationObserver = null; } if (this.intersectionObserver) { this.intersectionObserver.disconnect(); this.intersectionObserver = null; } } willUpdate(_changedProperties) { if (_changedProperties.has(\"filter\")) { this.updateEmpty(); this.updateOldElementTop(); } } updateEmpty() { this._empty = this.getAlertItems().length === 0; } getAlertItems() { return this.alertItems.filter(this.filter); } 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: [\"status\", \"shelved\"] }); }); } handleSlotChange() { this.handleElementsChange(); this.setupMutationObserver(); } handleElementsChange() { this.mutationObserver?.takeRecords(); this.updateEmpty(); 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() { 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\"></slot> </div> <div class=\"empty-title\"> <slot name=\"empty-title\"></slot> </div> <div class=\"empty-description\"> <slot name=\"empty-description\"></slot> </div> </div>` : nothing} </obc-scrollbar>`; } static { this.styles = unsafeCSS(alert_list_default); } }"
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) { if (this.active === false) return mapping[\"warning-rectified\"]; else if (this.acknowledged) return mapping[\"warning-silenced\"]; else return mapping[\"warning-unack\"]; } 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 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); } } `; } }"
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.status === \"unacknowledged\" ? \"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.status !== \"unacknowledged\"; } 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); } }"
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; this._selectedTabIndex = 1; } handleAckAllVisibleClick() { const visibleElements = this.alertList.getVisibleElements(); this.dispatchEvent(new CustomEvent(\"ack-all-visible-click\", { detail: { visibleElements, tabName: this.getSelectedTab().name } })); } onTabChange(e) { this._selectedTabIndex = e.detail.tab; } getSelectedTab() { if (this._selectedTabIndex === 0) return { name: \"unacked\", emptyTitle: msg(\"No unacknowledged alerts\"), emptyDescription: msg(\"Go to the 'Alert list' for more details or to manage existing alerts.\"), emptyIcon: html`<obi-unacknowledged></obi-unacknowledged>`, class: \"unacked\", filter: (item) => { return item.getAttribute(\"status\") === ObcAlertMenuItemStatus.Unacknowledged && !item.hasAttribute(\"shelved\"); } }; else if (this._selectedTabIndex === 2) return { name: \"shelved\", emptyTitle: msg(\"No shelved alerts\"), emptyDescription: msg(\"Go to the 'Alert list' for more details or to manage existing alerts.\"), emptyIcon: html`<obi-alerts-shelf></obi-alerts-shelf>`, class: \"shelved\", filter: (item) => { return item.hasAttribute(\"shelved\"); } }; else return { name: \"all\", emptyTitle: msg(\"No active alerts\"), emptyDescription: msg(\"Go to the 'Alert list' for more details or to manage existing alerts.\"), emptyIcon: html`<obi-alerts></obi-alerts>`, class: \"all\", filter: (item) => { return !item.hasAttribute(\"shelved\"); } }; } render() { const t = this.getSelectedTab(); return html` <obc-tabbed-card .nTabs=${this.hasShelved ? 3 : 2} class=\"wrapper\" part=\"wrapper\" .selectedTab=${this._selectedTabIndex} hasDefaultSlotOnly @tab-change=${this.onTabChange} > <span slot=\"tab-title-0\">${msg(\"Unacked\")}</span> <span slot=\"tab-title-1\">${msg(\"Active\")}</span> ${this.hasShelved ? html`<span slot=\"tab-title-2\">${msg(\"Shelved\")}</span>` : nothing} <div class=\"container\"> <obc-alert-list class=\"alert-list ${t.class}\" .filter=${t.filter}> <slot></slot> <slot name=\"empty-${t.name}-title\" slot=\"empty-title\" >${t.emptyTitle}</slot > <slot name=\"empty-${t.name}-description\" slot=\"empty-description\" >${t.emptyDescription}</slot > <slot name=\"empty-${t.name}-icon\" slot=\"empty-icon\" >${t.emptyIcon}</slot > </obc-alert-list> <div class=\"action\"> <obc-button variant=\"raised\" .disabled=${!this.canAckAll} fullWidth class=\"btn\" data-testid=\"ack-all-visible-button\" @click=${this.handleAckAllVisibleClick} > ${msg(\"ACK visible\")} </obc-button> ${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); } }"
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.updateCenterAlignedInputWidth(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; 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; } updateCenterAlignedInputWidth(value) { if (this.textAlign !== \"center\") { this.style.removeProperty(\"--obc-number-input-center-width\"); return; } const fontSize = Number.parseFloat(getCssVariableValue(this, \"--global-typography-instrument-value-regular-font-size\")); const characters = value.replaceAll(/[.,]/g, \"\"); const symbols = value.length - characters.length; const calculatedWidth = characters.length * characterWidth + symbols * symbolWidth; const measuredWidth = Math.ceil(calculatedWidth * fontSize / baseFontSize); this.style.setProperty(\"--obc-number-input-center-width\", `${measuredWidth}px`); } firstUpdated() { if (!this.displayText && !this.displayOverride) this.displayText = this.formatValueForDisplay(this.value); this.lastCommittedValue = this.value; this.updateCenterAlignedInputWidth(this.getEffectiveDisplay()); } 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; this.updateCenterAlignedInputWidth(this.getEffectiveDisplay()); } 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>`; } onPointerDown(e) { if (this.disabled) return; if (this.readonly) return; if (this.inputElement) { e.stopPropagation(); e.preventDefault(); this.inputElement.focus(); const inputBox = this.inputElement.getBoundingClientRect(); let selectionStart; if (e.clientX < inputBox.left) selectionStart = 0; else if (e.clientX > inputBox.right) selectionStart = this.inputElement.value.length; else { const mouseX = e.clientX; let inputX = inputBox.right; const text = this.inputElement.value; for (let i = text.length - 1; i >= 0; i--) { const width = text[i].match(/[.,]/) ? symbolWidth : characterWidth; if (mouseX > inputX - width / 2) { selectionStart = i + 1; break; } inputX -= width; } if (selectionStart === void 0) selectionStart = 0; } this.inputElement.setSelectionRange(selectionStart, selectionStart); } } 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); } }"
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 LitElement { constructor(..._args) { super(..._args); this.hasShelved = false; this.selectedMode = \"all\"; this.alerts = []; this.showTime = false; this.timeFormatter = (time) => time.toLocaleTimeString(void 0, { hour12: false }); this._mode = \"all\"; } willUpdate(changedProperties) { if (changedProperties.has(\"selectedMode\") && this._mode !== this.selectedMode) this._mode = this.selectedMode; } handleAckAllVisibleClick() { const tabName = this.selectedMode; const visibleElements = this.alertList.getVisibleAlerts(); this.dispatchEvent(new CustomEvent(\"ack-all-visible-click\", { detail: { alerts: visibleElements, mode: tabName } })); } onModeSelect(e) { this._mode = e.detail.value; } get metadata() { return getAlertListModeData(this.selectedMode); } onAckClick(e) { this.dispatchEvent(new CustomEvent(\"ack-click\", { detail: { alert: e.detail.alert } })); } onRowClick(e) { this.dispatchEvent(new CustomEvent(\"row-click\", { detail: { alert: e.detail.alert } })); } render() { const lists = [{ name: \"all\", title: msg(\"All\") }, { name: \"unacked\", title: msg(\"Unacked\") }]; if (this.hasShelved) lists.push({ name: \"shelved\", title: msg(\"Shelved\") }); const metadata = this.metadata; const canAckAll = this.alerts.some(canAckFilter(metadata.filter)); return html` <div class=\"wrapper\"> <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> <div class=\"action\"> <div class=\"btn-group\"> <obc-dropdown-button .value=${this._mode} @change=${this.onModeSelect} .options=${lists.map((v) => ({ value: v.name, label: v.title }))} > </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> <obc-button .variant=${ButtonVariant.raised} .disabled=${!canAckAll} fullWidth class=\"btn\" data-testid=\"ack-all-visible-button\" @click=${() => this.handleAckAllVisibleClick()} > ${msg(\"ACK visible\")} </obc-button> </div> </div> </div> `; } static { this.styles = unsafeCSS(alert_list_page_small_default); } }"
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": [
@@ -40906,7 +40950,7 @@
40906
40950
  "declarations": [
40907
40951
  {
40908
40952
  "kind": "class",
40909
- "description": "",
40953
+ "description": "Two-way analog valve symbol whose opening moves continuously from 0 to\n100 %.\n\nDraws the same symbol as the `obi-twoway-analog-*` icons. The shut bands at\nthe port ends and the handle are linear in the opening: exact at 100 %\n(`obi-twoway-analog-open`) and at 0 % (vertical handle, ports shut to the\ncentre), and close to the icons' 10/25/50/75 % steps in between. Used as\nthe icon of `obc-analog-valve`.",
40910
40954
  "name": "ObcValveAnalogTwoWayIcon",
40911
40955
  "members": [
40912
40956
  {
@@ -40915,7 +40959,8 @@
40915
40959
  "type": {
40916
40960
  "text": "number"
40917
40961
  },
40918
- "default": "0"
40962
+ "default": "0",
40963
+ "description": "Opening in percent (0–100)."
40919
40964
  },
40920
40965
  {
40921
40966
  "kind": "field",
@@ -40923,7 +40968,8 @@
40923
40968
  "type": {
40924
40969
  "text": "boolean"
40925
40970
  },
40926
- "default": "false"
40971
+ "default": "false",
40972
+ "description": "Shows the closed symbol."
40927
40973
  },
40928
40974
  {
40929
40975
  "kind": "field",
@@ -40931,7 +40977,35 @@
40931
40977
  "type": {
40932
40978
  "text": "boolean"
40933
40979
  },
40934
- "default": "false"
40980
+ "default": "false",
40981
+ "description": "Turns the symbol 90° for a vertical pipe."
40982
+ },
40983
+ {
40984
+ "kind": "method",
40985
+ "name": "renderBands",
40986
+ "privacy": "private",
40987
+ "parameters": [
40988
+ {
40989
+ "name": "width",
40990
+ "type": {
40991
+ "text": "number"
40992
+ }
40993
+ }
40994
+ ]
40995
+ },
40996
+ {
40997
+ "kind": "method",
40998
+ "name": "renderHandle",
40999
+ "privacy": "private",
41000
+ "parameters": [
41001
+ {
41002
+ "name": "value",
41003
+ "type": {
41004
+ "text": "number"
41005
+ }
41006
+ }
41007
+ ],
41008
+ "description": "Horizontal at the top when open, turning to vertical and moving 2 units\ndown as the valve shuts, matching `obi-twoway-analog-open` at 100 %."
40935
41009
  },
40936
41010
  {
40937
41011
  "kind": "method",
@@ -45136,13 +45210,233 @@
45136
45210
  }
45137
45211
  ]
45138
45212
  },
45213
+ {
45214
+ "kind": "javascript-module",
45215
+ "path": "src/building-blocks/alert-list/alert-list-base.ts",
45216
+ "declarations": [
45217
+ {
45218
+ "kind": "class",
45219
+ "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.",
45220
+ "name": "ObcAlertListBase",
45221
+ "members": [
45222
+ {
45223
+ "kind": "field",
45224
+ "name": "oldElementTop",
45225
+ "type": {
45226
+ "text": "Map<HTMLElement, number>"
45227
+ },
45228
+ "privacy": "private",
45229
+ "default": "new Map()"
45230
+ },
45231
+ {
45232
+ "kind": "field",
45233
+ "name": "mutationObserver",
45234
+ "type": {
45235
+ "text": "MutationObserver | null"
45236
+ },
45237
+ "privacy": "private",
45238
+ "default": "null"
45239
+ },
45240
+ {
45241
+ "kind": "field",
45242
+ "name": "intersectionObserver",
45243
+ "type": {
45244
+ "text": "IntersectionObserver | null"
45245
+ },
45246
+ "privacy": "private",
45247
+ "default": "null"
45248
+ },
45249
+ {
45250
+ "kind": "field",
45251
+ "name": "hasRenderedPanel",
45252
+ "type": {
45253
+ "text": "boolean"
45254
+ },
45255
+ "privacy": "private",
45256
+ "default": "false"
45257
+ },
45258
+ {
45259
+ "kind": "field",
45260
+ "name": "_empty",
45261
+ "type": {
45262
+ "text": "boolean"
45263
+ },
45264
+ "default": "false"
45265
+ },
45266
+ {
45267
+ "kind": "field",
45268
+ "name": "alertItems",
45269
+ "type": {
45270
+ "text": "HTMLElement[]"
45271
+ },
45272
+ "privacy": "protected"
45273
+ },
45274
+ {
45275
+ "kind": "field",
45276
+ "name": "scrollbar",
45277
+ "type": {
45278
+ "text": "ObcScrollbar"
45279
+ },
45280
+ "privacy": "private"
45281
+ },
45282
+ {
45283
+ "kind": "method",
45284
+ "name": "matchesFilter",
45285
+ "privacy": "protected",
45286
+ "return": {
45287
+ "type": {
45288
+ "text": "boolean"
45289
+ }
45290
+ },
45291
+ "parameters": [
45292
+ {
45293
+ "name": "_item",
45294
+ "type": {
45295
+ "text": "HTMLElement"
45296
+ }
45297
+ }
45298
+ ],
45299
+ "description": "Whether the list counts an item as one it shows."
45300
+ },
45301
+ {
45302
+ "kind": "method",
45303
+ "name": "filterChanged",
45304
+ "privacy": "protected",
45305
+ "return": {
45306
+ "type": {
45307
+ "text": "boolean"
45308
+ }
45309
+ },
45310
+ "parameters": [
45311
+ {
45312
+ "name": "_changed",
45313
+ "type": {
45314
+ "text": "PropertyValues"
45315
+ }
45316
+ }
45317
+ ],
45318
+ "description": "Whether this update changed what `matchesFilter` decides."
45319
+ },
45320
+ {
45321
+ "kind": "field",
45322
+ "name": "observedItemAttributes",
45323
+ "type": {
45324
+ "text": "string[]"
45325
+ },
45326
+ "privacy": "protected",
45327
+ "description": "Item attributes whose changes can change what `matchesFilter` decides.",
45328
+ "readonly": true
45329
+ },
45330
+ {
45331
+ "kind": "field",
45332
+ "name": "emptyFallback",
45333
+ "type": {
45334
+ "text": "AlertListEmptyFallback"
45335
+ },
45336
+ "privacy": "protected",
45337
+ "readonly": true
45338
+ },
45339
+ {
45340
+ "kind": "method",
45341
+ "name": "firstUpdated"
45342
+ },
45343
+ {
45344
+ "kind": "method",
45345
+ "name": "willUpdate",
45346
+ "privacy": "protected",
45347
+ "return": {
45348
+ "type": {
45349
+ "text": "void"
45350
+ }
45351
+ },
45352
+ "parameters": [
45353
+ {
45354
+ "name": "_changedProperties",
45355
+ "type": {
45356
+ "text": "PropertyValues"
45357
+ }
45358
+ }
45359
+ ]
45360
+ },
45361
+ {
45362
+ "kind": "method",
45363
+ "name": "applyFilter",
45364
+ "privacy": "protected",
45365
+ "description": "Runs whenever the items or the filter change; a subclass extends it to act on each item."
45366
+ },
45367
+ {
45368
+ "kind": "method",
45369
+ "name": "getAlertItems",
45370
+ "privacy": "private"
45371
+ },
45372
+ {
45373
+ "kind": "method",
45374
+ "name": "updateOldElementTop",
45375
+ "privacy": "private"
45376
+ },
45377
+ {
45378
+ "kind": "method",
45379
+ "name": "setupMutationObserver",
45380
+ "privacy": "private"
45381
+ },
45382
+ {
45383
+ "kind": "method",
45384
+ "name": "handleSlotChange",
45385
+ "privacy": "private"
45386
+ },
45387
+ {
45388
+ "kind": "method",
45389
+ "name": "handleElementsChange",
45390
+ "privacy": "private"
45391
+ },
45392
+ {
45393
+ "kind": "method",
45394
+ "name": "getVisibleElements",
45395
+ "privacy": "public",
45396
+ "return": {
45397
+ "type": {
45398
+ "text": "{element: HTMLElement; index: number}[]"
45399
+ }
45400
+ }
45401
+ },
45402
+ {
45403
+ "kind": "method",
45404
+ "name": "render"
45405
+ },
45406
+ {
45407
+ "kind": "field",
45408
+ "name": "styles",
45409
+ "type": {
45410
+ "text": "CSSResultGroup"
45411
+ },
45412
+ "static": true
45413
+ }
45414
+ ],
45415
+ "superclass": {
45416
+ "name": "LitElement",
45417
+ "package": "lit"
45418
+ },
45419
+ "customElement": true
45420
+ }
45421
+ ],
45422
+ "exports": [
45423
+ {
45424
+ "kind": "js",
45425
+ "name": "ObcAlertListBase",
45426
+ "declaration": {
45427
+ "name": "ObcAlertListBase",
45428
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45429
+ }
45430
+ }
45431
+ ]
45432
+ },
45139
45433
  {
45140
45434
  "kind": "javascript-module",
45141
45435
  "path": "src/building-blocks/alert-list/alert-list.ts",
45142
45436
  "declarations": [
45143
45437
  {
45144
45438
  "kind": "class",
45145
- "description": "",
45439
+ "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
45440
  "name": "ObcAlertList",
45147
45441
  "slots": [
45148
45442
  {
@@ -45168,6 +45462,53 @@
45168
45462
  "name": "filter",
45169
45463
  "type": {
45170
45464
  "text": "(item: HTMLElement) => boolean"
45465
+ },
45466
+ "description": "Predicate that picks the items the list counts as shown."
45467
+ },
45468
+ {
45469
+ "kind": "method",
45470
+ "name": "matchesFilter",
45471
+ "privacy": "protected",
45472
+ "return": {
45473
+ "type": {
45474
+ "text": "boolean"
45475
+ }
45476
+ },
45477
+ "parameters": [
45478
+ {
45479
+ "name": "item",
45480
+ "type": {
45481
+ "text": "HTMLElement"
45482
+ }
45483
+ }
45484
+ ],
45485
+ "description": "Whether the list counts an item as one it shows.",
45486
+ "inheritedFrom": {
45487
+ "name": "ObcAlertListBase",
45488
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45489
+ }
45490
+ },
45491
+ {
45492
+ "kind": "method",
45493
+ "name": "filterChanged",
45494
+ "privacy": "protected",
45495
+ "return": {
45496
+ "type": {
45497
+ "text": "boolean"
45498
+ }
45499
+ },
45500
+ "parameters": [
45501
+ {
45502
+ "name": "changed",
45503
+ "type": {
45504
+ "text": "PropertyValues"
45505
+ }
45506
+ }
45507
+ ],
45508
+ "description": "Whether this update changed what `matchesFilter` decides.",
45509
+ "inheritedFrom": {
45510
+ "name": "ObcAlertListBase",
45511
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45171
45512
  }
45172
45513
  },
45173
45514
  {
@@ -45177,7 +45518,11 @@
45177
45518
  "text": "Map<HTMLElement, number>"
45178
45519
  },
45179
45520
  "privacy": "private",
45180
- "default": "new Map()"
45521
+ "default": "new Map()",
45522
+ "inheritedFrom": {
45523
+ "name": "ObcAlertListBase",
45524
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45525
+ }
45181
45526
  },
45182
45527
  {
45183
45528
  "kind": "field",
@@ -45186,7 +45531,11 @@
45186
45531
  "text": "MutationObserver | null"
45187
45532
  },
45188
45533
  "privacy": "private",
45189
- "default": "null"
45534
+ "default": "null",
45535
+ "inheritedFrom": {
45536
+ "name": "ObcAlertListBase",
45537
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45538
+ }
45190
45539
  },
45191
45540
  {
45192
45541
  "kind": "field",
@@ -45195,7 +45544,11 @@
45195
45544
  "text": "IntersectionObserver | null"
45196
45545
  },
45197
45546
  "privacy": "private",
45198
- "default": "null"
45547
+ "default": "null",
45548
+ "inheritedFrom": {
45549
+ "name": "ObcAlertListBase",
45550
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45551
+ }
45199
45552
  },
45200
45553
  {
45201
45554
  "kind": "field",
@@ -45204,7 +45557,11 @@
45204
45557
  "text": "boolean"
45205
45558
  },
45206
45559
  "privacy": "private",
45207
- "default": "false"
45560
+ "default": "false",
45561
+ "inheritedFrom": {
45562
+ "name": "ObcAlertListBase",
45563
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45564
+ }
45208
45565
  },
45209
45566
  {
45210
45567
  "kind": "field",
@@ -45212,7 +45569,11 @@
45212
45569
  "type": {
45213
45570
  "text": "boolean"
45214
45571
  },
45215
- "default": "false"
45572
+ "default": "false",
45573
+ "inheritedFrom": {
45574
+ "name": "ObcAlertListBase",
45575
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45576
+ }
45216
45577
  },
45217
45578
  {
45218
45579
  "kind": "field",
@@ -45220,7 +45581,11 @@
45220
45581
  "type": {
45221
45582
  "text": "HTMLElement[]"
45222
45583
  },
45223
- "privacy": "private"
45584
+ "privacy": "protected",
45585
+ "inheritedFrom": {
45586
+ "name": "ObcAlertListBase",
45587
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45588
+ }
45224
45589
  },
45225
45590
  {
45226
45591
  "kind": "field",
@@ -45228,11 +45593,46 @@
45228
45593
  "type": {
45229
45594
  "text": "ObcScrollbar"
45230
45595
  },
45231
- "privacy": "private"
45596
+ "privacy": "private",
45597
+ "inheritedFrom": {
45598
+ "name": "ObcAlertListBase",
45599
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45600
+ }
45601
+ },
45602
+ {
45603
+ "kind": "field",
45604
+ "name": "observedItemAttributes",
45605
+ "type": {
45606
+ "text": "string[]"
45607
+ },
45608
+ "privacy": "protected",
45609
+ "description": "Item attributes whose changes can change what `matchesFilter` decides.",
45610
+ "readonly": true,
45611
+ "inheritedFrom": {
45612
+ "name": "ObcAlertListBase",
45613
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45614
+ }
45615
+ },
45616
+ {
45617
+ "kind": "field",
45618
+ "name": "emptyFallback",
45619
+ "type": {
45620
+ "text": "AlertListEmptyFallback"
45621
+ },
45622
+ "privacy": "protected",
45623
+ "readonly": true,
45624
+ "inheritedFrom": {
45625
+ "name": "ObcAlertListBase",
45626
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45627
+ }
45232
45628
  },
45233
45629
  {
45234
45630
  "kind": "method",
45235
- "name": "firstUpdated"
45631
+ "name": "firstUpdated",
45632
+ "inheritedFrom": {
45633
+ "name": "ObcAlertListBase",
45634
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45635
+ }
45236
45636
  },
45237
45637
  {
45238
45638
  "kind": "method",
@@ -45250,37 +45650,66 @@
45250
45650
  "text": "PropertyValues"
45251
45651
  }
45252
45652
  }
45253
- ]
45653
+ ],
45654
+ "inheritedFrom": {
45655
+ "name": "ObcAlertListBase",
45656
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45657
+ }
45254
45658
  },
45255
45659
  {
45256
45660
  "kind": "method",
45257
- "name": "updateEmpty",
45258
- "privacy": "private"
45661
+ "name": "applyFilter",
45662
+ "privacy": "protected",
45663
+ "description": "Runs whenever the items or the filter change; a subclass extends it to act on each item.",
45664
+ "inheritedFrom": {
45665
+ "name": "ObcAlertListBase",
45666
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45667
+ }
45259
45668
  },
45260
45669
  {
45261
45670
  "kind": "method",
45262
45671
  "name": "getAlertItems",
45263
- "privacy": "private"
45672
+ "privacy": "private",
45673
+ "inheritedFrom": {
45674
+ "name": "ObcAlertListBase",
45675
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45676
+ }
45264
45677
  },
45265
45678
  {
45266
45679
  "kind": "method",
45267
45680
  "name": "updateOldElementTop",
45268
- "privacy": "private"
45681
+ "privacy": "private",
45682
+ "inheritedFrom": {
45683
+ "name": "ObcAlertListBase",
45684
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45685
+ }
45269
45686
  },
45270
45687
  {
45271
45688
  "kind": "method",
45272
45689
  "name": "setupMutationObserver",
45273
- "privacy": "private"
45690
+ "privacy": "private",
45691
+ "inheritedFrom": {
45692
+ "name": "ObcAlertListBase",
45693
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45694
+ }
45274
45695
  },
45275
45696
  {
45276
45697
  "kind": "method",
45277
45698
  "name": "handleSlotChange",
45278
- "privacy": "private"
45699
+ "privacy": "private",
45700
+ "inheritedFrom": {
45701
+ "name": "ObcAlertListBase",
45702
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45703
+ }
45279
45704
  },
45280
45705
  {
45281
45706
  "kind": "method",
45282
45707
  "name": "handleElementsChange",
45283
- "privacy": "private"
45708
+ "privacy": "private",
45709
+ "inheritedFrom": {
45710
+ "name": "ObcAlertListBase",
45711
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45712
+ }
45284
45713
  },
45285
45714
  {
45286
45715
  "kind": "method",
@@ -45290,23 +45719,37 @@
45290
45719
  "type": {
45291
45720
  "text": "{element: HTMLElement; index: number}[]"
45292
45721
  }
45722
+ },
45723
+ "inheritedFrom": {
45724
+ "name": "ObcAlertListBase",
45725
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45293
45726
  }
45294
45727
  },
45295
45728
  {
45296
45729
  "kind": "method",
45297
- "name": "render"
45730
+ "name": "render",
45731
+ "inheritedFrom": {
45732
+ "name": "ObcAlertListBase",
45733
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45734
+ }
45298
45735
  },
45299
45736
  {
45300
45737
  "kind": "field",
45301
45738
  "name": "styles",
45302
- "static": true
45739
+ "type": {
45740
+ "text": "CSSResultGroup"
45741
+ },
45742
+ "static": true,
45743
+ "inheritedFrom": {
45744
+ "name": "ObcAlertListBase",
45745
+ "module": "src/building-blocks/alert-list/alert-list-base.ts"
45746
+ }
45303
45747
  }
45304
45748
  ],
45305
45749
  "superclass": {
45306
- "name": "LitElement",
45307
- "package": "lit"
45308
- },
45309
- "customElement": true
45750
+ "name": "ObcAlertListBase",
45751
+ "module": "/src/building-blocks/alert-list/alert-list-base.js"
45752
+ }
45310
45753
  }
45311
45754
  ],
45312
45755
  "exports": [
@@ -51487,7 +51930,7 @@
51487
51930
  "declarations": [
51488
51931
  {
51489
51932
  "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 alerts 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.\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```",
51933
+ "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
51934
  "name": "ObcAlertMenuItem",
51492
51935
  "slots": [
51493
51936
  {
@@ -51526,6 +51969,15 @@
51526
51969
  "default": "false",
51527
51970
  "description": "Indicates if the alert is shelved (temporarily deferred). When true, a tertiary icon is shown to represent the shelved state."
51528
51971
  },
51972
+ {
51973
+ "kind": "field",
51974
+ "name": "blocked",
51975
+ "type": {
51976
+ "text": "boolean"
51977
+ },
51978
+ "default": "false",
51979
+ "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."
51980
+ },
51529
51981
  {
51530
51982
  "kind": "field",
51531
51983
  "name": "title",
@@ -51565,7 +52017,7 @@
51565
52017
  {
51566
52018
  "kind": "field",
51567
52019
  "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'."
52020
+ "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
52021
  },
51570
52022
  {
51571
52023
  "kind": "field",
@@ -51618,6 +52070,12 @@
51618
52070
  },
51619
52071
  "description": "Appearance of the secondary action: `enabled`, `disabled` or `none`, which hides it."
51620
52072
  },
52073
+ {
52074
+ "kind": "field",
52075
+ "name": "canAck",
52076
+ "privacy": "private",
52077
+ "readonly": true
52078
+ },
51621
52079
  {
51622
52080
  "kind": "field",
51623
52081
  "name": "primaryActionLabel",
@@ -51744,7 +52202,7 @@
51744
52202
  "declarations": [
51745
52203
  {
51746
52204
  "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 (e.g., \"Unacked\" shows only unacknowledged, non-shelved items).\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```",
52205
+ "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
52206
  "name": "ObcAlertMenu",
51749
52207
  "slots": [
51750
52208
  {
@@ -51828,18 +52286,18 @@
51828
52286
  },
51829
52287
  {
51830
52288
  "kind": "field",
51831
- "name": "_selectedTabIndex",
52289
+ "name": "_selectedTabName",
51832
52290
  "type": {
51833
- "text": "number"
52291
+ "text": "string | undefined"
51834
52292
  },
51835
52293
  "privacy": "private",
51836
- "default": "1"
52294
+ "description": "The `name` of the tab the user picked; the second tab shows until then."
51837
52295
  },
51838
52296
  {
51839
52297
  "kind": "field",
51840
52298
  "name": "alertList",
51841
52299
  "type": {
51842
- "text": "ObcAlertList"
52300
+ "text": "ObcAlertListBase"
51843
52301
  },
51844
52302
  "privacy": "private"
51845
52303
  },
@@ -51863,8 +52321,113 @@
51863
52321
  },
51864
52322
  {
51865
52323
  "kind": "method",
51866
- "name": "getSelectedTab",
51867
- "privacy": "private"
52324
+ "name": "willUpdate",
52325
+ "privacy": "protected",
52326
+ "parameters": [
52327
+ {
52328
+ "name": "changedProperties",
52329
+ "type": {
52330
+ "text": "PropertyValues<this>"
52331
+ }
52332
+ }
52333
+ ]
52334
+ },
52335
+ {
52336
+ "kind": "field",
52337
+ "name": "offersAckAll",
52338
+ "type": {
52339
+ "text": "boolean"
52340
+ },
52341
+ "privacy": "protected",
52342
+ "description": "Whether the menu offers \"ACK visible\" at all; `canAckAll` enables it.",
52343
+ "readonly": true
52344
+ },
52345
+ {
52346
+ "kind": "field",
52347
+ "name": "tabs",
52348
+ "type": {
52349
+ "text": "AlertMenuTab[]"
52350
+ },
52351
+ "privacy": "protected",
52352
+ "description": "The tabs in display order; the menu opens on the second one.",
52353
+ "readonly": true
52354
+ },
52355
+ {
52356
+ "kind": "method",
52357
+ "name": "selectedTabIndex",
52358
+ "privacy": "private",
52359
+ "return": {
52360
+ "type": {
52361
+ "text": "number"
52362
+ }
52363
+ },
52364
+ "parameters": [
52365
+ {
52366
+ "name": "tabs",
52367
+ "type": {
52368
+ "text": "AlertMenuTab[]"
52369
+ }
52370
+ }
52371
+ ],
52372
+ "description": "Where the selected tab sits in `tabs`: the one the user picked, else the second."
52373
+ },
52374
+ {
52375
+ "kind": "field",
52376
+ "name": "selectedTab",
52377
+ "type": {
52378
+ "text": "AlertMenuTab"
52379
+ },
52380
+ "privacy": "private",
52381
+ "readonly": true
52382
+ },
52383
+ {
52384
+ "kind": "method",
52385
+ "name": "renderList",
52386
+ "privacy": "protected",
52387
+ "return": {
52388
+ "type": {
52389
+ "text": "TemplateResult"
52390
+ }
52391
+ },
52392
+ "parameters": [
52393
+ {
52394
+ "name": "tab",
52395
+ "type": {
52396
+ "text": "AlertMenuTab"
52397
+ }
52398
+ },
52399
+ {
52400
+ "name": "content",
52401
+ "type": {
52402
+ "text": "TemplateResult"
52403
+ }
52404
+ }
52405
+ ],
52406
+ "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."
52407
+ },
52408
+ {
52409
+ "kind": "method",
52410
+ "name": "tabFilter",
52411
+ "privacy": "private",
52412
+ "return": {
52413
+ "type": {
52414
+ "text": "boolean"
52415
+ }
52416
+ },
52417
+ "parameters": [
52418
+ {
52419
+ "name": "name",
52420
+ "type": {
52421
+ "text": "string"
52422
+ }
52423
+ },
52424
+ {
52425
+ "name": "item",
52426
+ "type": {
52427
+ "text": "HTMLElement"
52428
+ }
52429
+ }
52430
+ ]
51868
52431
  },
51869
52432
  {
51870
52433
  "kind": "method",
@@ -51873,6 +52436,9 @@
51873
52436
  {
51874
52437
  "kind": "field",
51875
52438
  "name": "styles",
52439
+ "type": {
52440
+ "text": "CSSResultGroup"
52441
+ },
51876
52442
  "static": true
51877
52443
  }
51878
52444
  ],
@@ -62248,6 +62814,15 @@
62248
62814
  "privacy": "private",
62249
62815
  "default": "NaN"
62250
62816
  },
62817
+ {
62818
+ "kind": "field",
62819
+ "name": "focusFromValueClick",
62820
+ "type": {
62821
+ "text": "boolean"
62822
+ },
62823
+ "privacy": "private",
62824
+ "default": "false"
62825
+ },
62251
62826
  {
62252
62827
  "kind": "field",
62253
62828
  "name": "inputElement",
@@ -62341,6 +62916,17 @@
62341
62916
  "name": "onFocus",
62342
62917
  "privacy": "private"
62343
62918
  },
62919
+ {
62920
+ "kind": "method",
62921
+ "name": "ungroupKeepingSelection",
62922
+ "privacy": "private",
62923
+ "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."
62924
+ },
62925
+ {
62926
+ "kind": "method",
62927
+ "name": "ungroupDisplay",
62928
+ "privacy": "private"
62929
+ },
62344
62930
  {
62345
62931
  "kind": "method",
62346
62932
  "name": "onBlur",
@@ -62380,19 +62966,6 @@
62380
62966
  }
62381
62967
  }
62382
62968
  },
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
62969
  {
62397
62970
  "kind": "method",
62398
62971
  "name": "firstUpdated"
@@ -62457,7 +63030,8 @@
62457
63030
  "text": "PointerEvent"
62458
63031
  }
62459
63032
  }
62460
- ]
63033
+ ],
63034
+ "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
63035
  },
62462
63036
  {
62463
63037
  "kind": "method",
@@ -71145,7 +71719,7 @@
71145
71719
  "declarations": [
71146
71720
  {
71147
71721
  "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. |",
71722
+ "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
71723
  "name": "ObcTextbox",
71150
71724
  "slots": [
71151
71725
  {
@@ -99062,12 +99636,12 @@
99062
99636
  },
99063
99637
  {
99064
99638
  "kind": "javascript-module",
99065
- "path": "src/pages/alert-list-page-small/alert-list-page-small.ts",
99639
+ "path": "src/pages/alert-list-page-small/alert-list-page-small-base.ts",
99066
99640
  "declarations": [
99067
99641
  {
99068
99642
  "kind": "class",
99069
- "description": "",
99070
- "name": "ObcAlertListPageSmall",
99643
+ "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.",
99644
+ "name": "ObcAlertListPageSmallBase",
99071
99645
  "members": [
99072
99646
  {
99073
99647
  "kind": "field",
@@ -99075,36 +99649,224 @@
99075
99649
  "type": {
99076
99650
  "text": "boolean"
99077
99651
  },
99078
- "default": "false"
99652
+ "default": "false",
99653
+ "description": "Whether the dropdown offers the shelved alerts."
99079
99654
  },
99080
99655
  {
99081
99656
  "kind": "field",
99082
- "name": "selectedMode",
99657
+ "name": "showTime",
99083
99658
  "type": {
99084
- "text": "AlertListMode"
99085
- }
99659
+ "text": "boolean"
99660
+ },
99661
+ "default": "false",
99662
+ "description": "Whether the list shows when each alert was raised."
99086
99663
  },
99087
99664
  {
99088
99665
  "kind": "field",
99089
- "name": "alerts",
99666
+ "name": "timeFormatter",
99090
99667
  "type": {
99091
- "text": "Alert[]"
99668
+ "text": "(time: Date) => string"
99092
99669
  },
99093
- "default": "[]"
99670
+ "description": "Formats the time the list shows."
99094
99671
  },
99095
99672
  {
99096
99673
  "kind": "field",
99097
- "name": "showTime",
99674
+ "name": "modes",
99675
+ "type": {
99676
+ "text": "AlertListPageMode[]"
99677
+ },
99678
+ "privacy": "protected",
99679
+ "description": "The dropdown's options, in order.",
99680
+ "readonly": true
99681
+ },
99682
+ {
99683
+ "kind": "field",
99684
+ "name": "mode",
99685
+ "type": {
99686
+ "text": "string"
99687
+ },
99688
+ "privacy": "protected",
99689
+ "description": "The mode the list filters by and the dropdown shows.",
99690
+ "readonly": true
99691
+ },
99692
+ {
99693
+ "kind": "method",
99694
+ "name": "selectMode",
99695
+ "privacy": "protected",
99696
+ "parameters": [
99697
+ {
99698
+ "name": "_mode",
99699
+ "type": {
99700
+ "text": "string"
99701
+ }
99702
+ }
99703
+ ]
99704
+ },
99705
+ {
99706
+ "kind": "field",
99707
+ "name": "canAckAll",
99098
99708
  "type": {
99099
99709
  "text": "boolean"
99100
99710
  },
99101
- "default": "false"
99711
+ "privacy": "protected",
99712
+ "description": "Whether an alert the list shows in `mode` can still be acknowledged.",
99713
+ "readonly": true
99102
99714
  },
99103
99715
  {
99104
99716
  "kind": "field",
99105
- "name": "timeFormatter",
99717
+ "name": "offersAckAll",
99106
99718
  "type": {
99107
- "text": "(time: Date) => string"
99719
+ "text": "boolean"
99720
+ },
99721
+ "privacy": "protected",
99722
+ "description": "Whether the page offers \"ACK visible\" at all; `canAckAll` enables it.",
99723
+ "readonly": true
99724
+ },
99725
+ {
99726
+ "kind": "method",
99727
+ "name": "visibleAlerts",
99728
+ "privacy": "protected",
99729
+ "return": {
99730
+ "type": {
99731
+ "text": "unknown[]"
99732
+ }
99733
+ },
99734
+ "description": "The alerts in view, which \"ACK visible\" reports."
99735
+ },
99736
+ {
99737
+ "kind": "method",
99738
+ "name": "renderList",
99739
+ "privacy": "protected",
99740
+ "return": {
99741
+ "type": {
99742
+ "text": "TemplateResult | typeof nothing"
99743
+ }
99744
+ }
99745
+ },
99746
+ {
99747
+ "kind": "method",
99748
+ "name": "dispatchAckClick",
99749
+ "privacy": "protected",
99750
+ "parameters": [
99751
+ {
99752
+ "name": "alert",
99753
+ "type": {
99754
+ "text": "unknown"
99755
+ }
99756
+ }
99757
+ ]
99758
+ },
99759
+ {
99760
+ "kind": "method",
99761
+ "name": "dispatchRowClick",
99762
+ "privacy": "protected",
99763
+ "parameters": [
99764
+ {
99765
+ "name": "alert",
99766
+ "type": {
99767
+ "text": "unknown"
99768
+ }
99769
+ }
99770
+ ]
99771
+ },
99772
+ {
99773
+ "kind": "method",
99774
+ "name": "handleAckAllVisibleClick",
99775
+ "privacy": "private"
99776
+ },
99777
+ {
99778
+ "kind": "method",
99779
+ "name": "onModeSelect",
99780
+ "privacy": "private",
99781
+ "parameters": [
99782
+ {
99783
+ "name": "e",
99784
+ "type": {
99785
+ "text": "ObcDropdownButtonChangeEvent"
99786
+ }
99787
+ }
99788
+ ]
99789
+ },
99790
+ {
99791
+ "kind": "method",
99792
+ "name": "render"
99793
+ },
99794
+ {
99795
+ "kind": "field",
99796
+ "name": "styles",
99797
+ "type": {
99798
+ "text": "CSSResultGroup"
99799
+ },
99800
+ "static": true
99801
+ }
99802
+ ],
99803
+ "events": [
99804
+ {
99805
+ "name": "ack-click",
99806
+ "type": {
99807
+ "text": "CustomEvent"
99808
+ }
99809
+ },
99810
+ {
99811
+ "name": "row-click",
99812
+ "type": {
99813
+ "text": "CustomEvent"
99814
+ }
99815
+ },
99816
+ {
99817
+ "name": "ack-all-visible-click",
99818
+ "type": {
99819
+ "text": "CustomEvent"
99820
+ }
99821
+ },
99822
+ {
99823
+ "name": "silence-click",
99824
+ "type": {
99825
+ "text": "CustomEvent"
99826
+ }
99827
+ }
99828
+ ],
99829
+ "superclass": {
99830
+ "name": "LitElement",
99831
+ "package": "lit"
99832
+ },
99833
+ "customElement": true
99834
+ }
99835
+ ],
99836
+ "exports": [
99837
+ {
99838
+ "kind": "js",
99839
+ "name": "ObcAlertListPageSmallBase",
99840
+ "declaration": {
99841
+ "name": "ObcAlertListPageSmallBase",
99842
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
99843
+ }
99844
+ }
99845
+ ]
99846
+ },
99847
+ {
99848
+ "kind": "javascript-module",
99849
+ "path": "src/pages/alert-list-page-small/alert-list-page-small.ts",
99850
+ "declarations": [
99851
+ {
99852
+ "kind": "class",
99853
+ "description": "",
99854
+ "name": "ObcAlertListPageSmall",
99855
+ "members": [
99856
+ {
99857
+ "kind": "field",
99858
+ "name": "alerts",
99859
+ "type": {
99860
+ "text": "Alert[]"
99861
+ },
99862
+ "default": "[]",
99863
+ "description": "Alerts to list."
99864
+ },
99865
+ {
99866
+ "kind": "field",
99867
+ "name": "selectedMode",
99868
+ "type": {
99869
+ "text": "AlertListMode"
99108
99870
  }
99109
99871
  },
99110
99872
  {
@@ -99141,28 +99903,78 @@
99141
99903
  ]
99142
99904
  },
99143
99905
  {
99144
- "kind": "method",
99145
- "name": "handleAckAllVisibleClick",
99146
- "privacy": "private"
99906
+ "kind": "field",
99907
+ "name": "modes",
99908
+ "type": {
99909
+ "text": "AlertListPageMode[]"
99910
+ },
99911
+ "privacy": "protected",
99912
+ "description": "The dropdown's options, in order.",
99913
+ "readonly": true,
99914
+ "inheritedFrom": {
99915
+ "name": "ObcAlertListPageSmallBase",
99916
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
99917
+ }
99918
+ },
99919
+ {
99920
+ "kind": "field",
99921
+ "name": "mode",
99922
+ "type": {
99923
+ "text": "string"
99924
+ },
99925
+ "privacy": "protected",
99926
+ "description": "The mode the list filters by and the dropdown shows.",
99927
+ "readonly": true,
99928
+ "inheritedFrom": {
99929
+ "name": "ObcAlertListPageSmallBase",
99930
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
99931
+ }
99147
99932
  },
99148
99933
  {
99149
99934
  "kind": "method",
99150
- "name": "onModeSelect",
99151
- "privacy": "private",
99935
+ "name": "selectMode",
99936
+ "privacy": "protected",
99152
99937
  "parameters": [
99153
99938
  {
99154
- "name": "e",
99939
+ "name": "mode",
99155
99940
  "type": {
99156
- "text": "ObcDropdownButtonChangeEvent"
99941
+ "text": "string"
99157
99942
  }
99158
99943
  }
99159
- ]
99944
+ ],
99945
+ "inheritedFrom": {
99946
+ "name": "ObcAlertListPageSmallBase",
99947
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
99948
+ }
99160
99949
  },
99161
99950
  {
99162
99951
  "kind": "field",
99163
- "name": "metadata",
99164
- "privacy": "private",
99165
- "readonly": true
99952
+ "name": "canAckAll",
99953
+ "type": {
99954
+ "text": "boolean"
99955
+ },
99956
+ "privacy": "protected",
99957
+ "description": "Whether an alert the list shows in `mode` can still be acknowledged.",
99958
+ "readonly": true,
99959
+ "inheritedFrom": {
99960
+ "name": "ObcAlertListPageSmallBase",
99961
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
99962
+ }
99963
+ },
99964
+ {
99965
+ "kind": "method",
99966
+ "name": "visibleAlerts",
99967
+ "privacy": "protected",
99968
+ "return": {
99969
+ "type": {
99970
+ "text": "Alert[]"
99971
+ }
99972
+ },
99973
+ "description": "The alerts in view, which \"ACK visible\" reports.",
99974
+ "inheritedFrom": {
99975
+ "name": "ObcAlertListPageSmallBase",
99976
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
99977
+ }
99166
99978
  },
99167
99979
  {
99168
99980
  "kind": "method",
@@ -99192,49 +100004,201 @@
99192
100004
  },
99193
100005
  {
99194
100006
  "kind": "method",
99195
- "name": "render"
100007
+ "name": "renderList",
100008
+ "privacy": "protected",
100009
+ "return": {
100010
+ "type": {
100011
+ "text": "TemplateResult | typeof nothing"
100012
+ }
100013
+ },
100014
+ "inheritedFrom": {
100015
+ "name": "ObcAlertListPageSmallBase",
100016
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100017
+ }
100018
+ },
100019
+ {
100020
+ "kind": "field",
100021
+ "name": "hasShelved",
100022
+ "type": {
100023
+ "text": "boolean"
100024
+ },
100025
+ "default": "false",
100026
+ "description": "Whether the dropdown offers the shelved alerts.",
100027
+ "inheritedFrom": {
100028
+ "name": "ObcAlertListPageSmallBase",
100029
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100030
+ }
100031
+ },
100032
+ {
100033
+ "kind": "field",
100034
+ "name": "showTime",
100035
+ "type": {
100036
+ "text": "boolean"
100037
+ },
100038
+ "default": "false",
100039
+ "description": "Whether the list shows when each alert was raised.",
100040
+ "inheritedFrom": {
100041
+ "name": "ObcAlertListPageSmallBase",
100042
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100043
+ }
100044
+ },
100045
+ {
100046
+ "kind": "field",
100047
+ "name": "timeFormatter",
100048
+ "type": {
100049
+ "text": "(time: Date) => string"
100050
+ },
100051
+ "description": "Formats the time the list shows.",
100052
+ "inheritedFrom": {
100053
+ "name": "ObcAlertListPageSmallBase",
100054
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100055
+ }
100056
+ },
100057
+ {
100058
+ "kind": "field",
100059
+ "name": "offersAckAll",
100060
+ "type": {
100061
+ "text": "boolean"
100062
+ },
100063
+ "privacy": "protected",
100064
+ "description": "Whether the page offers \"ACK visible\" at all; `canAckAll` enables it.",
100065
+ "readonly": true,
100066
+ "inheritedFrom": {
100067
+ "name": "ObcAlertListPageSmallBase",
100068
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100069
+ }
100070
+ },
100071
+ {
100072
+ "kind": "method",
100073
+ "name": "dispatchAckClick",
100074
+ "privacy": "protected",
100075
+ "parameters": [
100076
+ {
100077
+ "name": "alert",
100078
+ "type": {
100079
+ "text": "unknown"
100080
+ }
100081
+ }
100082
+ ],
100083
+ "inheritedFrom": {
100084
+ "name": "ObcAlertListPageSmallBase",
100085
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100086
+ }
100087
+ },
100088
+ {
100089
+ "kind": "method",
100090
+ "name": "dispatchRowClick",
100091
+ "privacy": "protected",
100092
+ "parameters": [
100093
+ {
100094
+ "name": "alert",
100095
+ "type": {
100096
+ "text": "unknown"
100097
+ }
100098
+ }
100099
+ ],
100100
+ "inheritedFrom": {
100101
+ "name": "ObcAlertListPageSmallBase",
100102
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100103
+ }
100104
+ },
100105
+ {
100106
+ "kind": "method",
100107
+ "name": "handleAckAllVisibleClick",
100108
+ "privacy": "private",
100109
+ "inheritedFrom": {
100110
+ "name": "ObcAlertListPageSmallBase",
100111
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100112
+ }
100113
+ },
100114
+ {
100115
+ "kind": "method",
100116
+ "name": "onModeSelect",
100117
+ "privacy": "private",
100118
+ "parameters": [
100119
+ {
100120
+ "name": "e",
100121
+ "type": {
100122
+ "text": "ObcDropdownButtonChangeEvent"
100123
+ }
100124
+ }
100125
+ ],
100126
+ "inheritedFrom": {
100127
+ "name": "ObcAlertListPageSmallBase",
100128
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100129
+ }
100130
+ },
100131
+ {
100132
+ "kind": "method",
100133
+ "name": "render",
100134
+ "inheritedFrom": {
100135
+ "name": "ObcAlertListPageSmallBase",
100136
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100137
+ }
99196
100138
  },
99197
100139
  {
99198
100140
  "kind": "field",
99199
100141
  "name": "styles",
99200
- "static": true
100142
+ "type": {
100143
+ "text": "CSSResultGroup"
100144
+ },
100145
+ "static": true,
100146
+ "inheritedFrom": {
100147
+ "name": "ObcAlertListPageSmallBase",
100148
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100149
+ }
99201
100150
  }
99202
100151
  ],
99203
100152
  "events": [
99204
100153
  {
99205
- "name": "silence-click",
100154
+ "name": "ack-all-visible-click",
99206
100155
  "type": {
99207
- "text": "CustomEvent<void>"
100156
+ "text": "CustomEvent"
99208
100157
  },
99209
- "description": "Fired when the user clicks the \"Silence\" button."
100158
+ "description": "Fired when the user clicks the \"ACK visible\" button.",
100159
+ "inheritedFrom": {
100160
+ "name": "ObcAlertListPageSmallBase",
100161
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100162
+ }
99210
100163
  },
99211
100164
  {
100165
+ "name": "ack-click",
99212
100166
  "type": {
99213
- "text": "ObcAlertListPageAckAllClickEvent"
100167
+ "text": "CustomEvent"
99214
100168
  },
99215
- "description": "Fired when the user clicks the \"ACK visible\" button.",
99216
- "name": "ack-all-visible-click"
100169
+ "description": "Fired when the user clicks the \"ACK\" button.",
100170
+ "inheritedFrom": {
100171
+ "name": "ObcAlertListPageSmallBase",
100172
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100173
+ }
99217
100174
  },
99218
100175
  {
100176
+ "name": "row-click",
99219
100177
  "type": {
99220
- "text": "ObcAckClickEvent"
100178
+ "text": "CustomEvent"
99221
100179
  },
99222
- "description": "Fired when the user clicks the \"ACK\" button.",
99223
- "name": "ack-click"
100180
+ "description": "Fired when the user clicks a row.",
100181
+ "inheritedFrom": {
100182
+ "name": "ObcAlertListPageSmallBase",
100183
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100184
+ }
99224
100185
  },
99225
100186
  {
100187
+ "name": "silence-click",
99226
100188
  "type": {
99227
- "text": "ObcRowClickEvent"
100189
+ "text": "CustomEvent"
99228
100190
  },
99229
- "description": "Fired when the user clicks a row.",
99230
- "name": "row-click"
100191
+ "description": "Fired when the user clicks the \"Silence\" button.",
100192
+ "inheritedFrom": {
100193
+ "name": "ObcAlertListPageSmallBase",
100194
+ "module": "src/pages/alert-list-page-small/alert-list-page-small-base.ts"
100195
+ }
99231
100196
  }
99232
100197
  ],
99233
100198
  "superclass": {
99234
- "name": "LitElement",
99235
- "package": "lit"
99236
- },
99237
- "customElement": true
100199
+ "name": "ObcAlertListPageSmallBase",
100200
+ "module": "/src/pages/alert-list-page-small/alert-list-page-small-base.js"
100201
+ }
99238
100202
  }
99239
100203
  ],
99240
100204
  "exports": [