@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.22 → 2.2.0-next.23

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 (338) hide show
  1. package/custom-elements-manifest.config.mjs +2 -1
  2. package/custom-elements.json +312 -17
  3. package/llms/components/obc-accordion-card.md +141 -0
  4. package/llms/components/obc-accordion-item.md +90 -0
  5. package/llms/components/obc-advice-button.md +87 -0
  6. package/llms/components/obc-advice-floating-item.md +113 -0
  7. package/llms/components/obc-advice-menu-item.md +87 -0
  8. package/llms/components/obc-advice-message-item.md +138 -0
  9. package/llms/components/obc-alert-button-item.md +117 -0
  10. package/llms/components/obc-alert-button.md +134 -0
  11. package/llms/components/obc-alert-counter-item.md +74 -0
  12. package/llms/components/obc-alert-detail-page.md +45 -0
  13. package/llms/components/obc-alert-floating-item.md +53 -0
  14. package/llms/components/obc-alert-frame.md +142 -0
  15. package/llms/components/obc-alert-icon.md +79 -0
  16. package/llms/components/obc-alert-list-details-experimental.md +89 -0
  17. package/llms/components/obc-alert-list-details.md +38 -0
  18. package/llms/components/obc-alert-list-page-small.md +39 -0
  19. package/llms/components/obc-alert-list.md +37 -0
  20. package/llms/components/obc-alert-menu-item.md +128 -0
  21. package/llms/components/obc-alert-menu.md +115 -0
  22. package/llms/components/obc-alert-subsystem-button.md +88 -0
  23. package/llms/components/obc-alert-subsystem-counter.md +110 -0
  24. package/llms/components/obc-analog-threeway-valve.md +106 -0
  25. package/llms/components/obc-analog-valve.md +74 -0
  26. package/llms/components/obc-app-button.md +83 -0
  27. package/llms/components/obc-app-menu.md +69 -0
  28. package/llms/components/obc-area-graph.md +333 -0
  29. package/llms/components/obc-attachment-list-item.md +49 -0
  30. package/llms/components/obc-audio-output.md +59 -0
  31. package/llms/components/obc-audio-recording-item.md +91 -0
  32. package/llms/components/obc-automation-badge.md +66 -0
  33. package/llms/components/obc-automation-button-readout-stack.md +71 -0
  34. package/llms/components/obc-automation-button.md +86 -0
  35. package/llms/components/obc-automation-input-modal.md +48 -0
  36. package/llms/components/obc-automation-readout.md +32 -0
  37. package/llms/components/obc-automation-tank.md +156 -0
  38. package/llms/components/obc-azimuth-thruster-labeled.md +56 -0
  39. package/llms/components/obc-azimuth-thruster.md +80 -0
  40. package/llms/components/obc-badge-command.md +26 -0
  41. package/llms/components/obc-badge.md +151 -0
  42. package/llms/components/obc-bar-horizontal.md +123 -0
  43. package/llms/components/obc-bar-vertical.md +125 -0
  44. package/llms/components/obc-battery-icon.md +38 -0
  45. package/llms/components/obc-bearing-indicator.md +27 -0
  46. package/llms/components/obc-bipolar-transistor.md +64 -0
  47. package/llms/components/obc-breadcrumb.md +58 -0
  48. package/llms/components/obc-brilliance-menu.md +115 -0
  49. package/llms/components/obc-bus.md +64 -0
  50. package/llms/components/obc-button.md +110 -0
  51. package/llms/components/obc-calendar.md +91 -0
  52. package/llms/components/obc-capacitor.md +64 -0
  53. package/llms/components/obc-card.md +103 -0
  54. package/llms/components/obc-chart-object-vessel-button.md +103 -0
  55. package/llms/components/obc-chat-message.md +35 -0
  56. package/llms/components/obc-check-button.md +104 -0
  57. package/llms/components/obc-checkbox-item.md +95 -0
  58. package/llms/components/obc-checkbox-list.md +73 -0
  59. package/llms/components/obc-checkbox.md +97 -0
  60. package/llms/components/obc-circular-progress.md +36 -0
  61. package/llms/components/obc-clock.md +86 -0
  62. package/llms/components/obc-command-button.md +56 -0
  63. package/llms/components/obc-command-menu.md +135 -0
  64. package/llms/components/obc-communication-table.md +31 -0
  65. package/llms/components/obc-compass-flat.md +79 -0
  66. package/llms/components/obc-compass-indicator.md +61 -0
  67. package/llms/components/obc-compass-sector.md +110 -0
  68. package/llms/components/obc-compass.md +157 -0
  69. package/llms/components/obc-context-menu-input.md +191 -0
  70. package/llms/components/obc-converter.md +64 -0
  71. package/llms/components/obc-corner-line.md +29 -0
  72. package/llms/components/obc-current.md +79 -0
  73. package/llms/components/obc-damper.md +62 -0
  74. package/llms/components/obc-date-item.md +66 -0
  75. package/llms/components/obc-depth-actual.md +69 -0
  76. package/llms/components/obc-depth-indicator.md +31 -0
  77. package/llms/components/obc-depth-top-band.md +43 -0
  78. package/llms/components/obc-depth.md +94 -0
  79. package/llms/components/obc-diagnostic-button.md +71 -0
  80. package/llms/components/obc-diagnostic-menu.md +88 -0
  81. package/llms/components/obc-digital-threeway-valve.md +112 -0
  82. package/llms/components/obc-digital-valve.md +78 -0
  83. package/llms/components/obc-diodes.md +64 -0
  84. package/llms/components/obc-direction-line.md +28 -0
  85. package/llms/components/obc-divider.md +44 -0
  86. package/llms/components/obc-donut-chart.md +116 -0
  87. package/llms/components/obc-draft-trim.md +67 -0
  88. package/llms/components/obc-dropdown-button.md +99 -0
  89. package/llms/components/obc-electricity-battery.md +83 -0
  90. package/llms/components/obc-elevated-card-radio-group.md +103 -0
  91. package/llms/components/obc-elevated-card-radio.md +104 -0
  92. package/llms/components/obc-elevated-card.md +146 -0
  93. package/llms/components/obc-end-point-line.md +29 -0
  94. package/llms/components/obc-event-item.md +47 -0
  95. package/llms/components/obc-event-list.md +37 -0
  96. package/llms/components/obc-fan.md +68 -0
  97. package/llms/components/obc-filter-chip.md +91 -0
  98. package/llms/components/obc-filter.md +64 -0
  99. package/llms/components/obc-floating-item.md +125 -0
  100. package/llms/components/obc-form-container.md +45 -0
  101. package/llms/components/obc-form-footer-container.md +34 -0
  102. package/llms/components/obc-form-group.md +80 -0
  103. package/llms/components/obc-form-item.md +95 -0
  104. package/llms/components/obc-gauge-bar-indicator.md +46 -0
  105. package/llms/components/obc-gauge-generator.md +102 -0
  106. package/llms/components/obc-gauge-horizontal.md +169 -0
  107. package/llms/components/obc-gauge-motors-and-pumps.md +110 -0
  108. package/llms/components/obc-gauge-proportional.md +134 -0
  109. package/llms/components/obc-gauge-radial-indicator.md +76 -0
  110. package/llms/components/obc-gauge-radial.md +163 -0
  111. package/llms/components/obc-gauge-trend-indicator.md +53 -0
  112. package/llms/components/obc-gauge-trend.md +271 -0
  113. package/llms/components/obc-gauge-valve.md +114 -0
  114. package/llms/components/obc-gauge-vertical.md +169 -0
  115. package/llms/components/obc-gnss-skyplot.md +80 -0
  116. package/llms/components/obc-graph-mini.md +28 -0
  117. package/llms/components/obc-ground.md +64 -0
  118. package/llms/components/obc-heading-indicator.md +42 -0
  119. package/llms/components/obc-heading.md +106 -0
  120. package/llms/components/obc-heat-exchanger.md +80 -0
  121. package/llms/components/obc-heat-pump.md +79 -0
  122. package/llms/components/obc-heave-indicator.md +38 -0
  123. package/llms/components/obc-heave.md +60 -0
  124. package/llms/components/obc-horizontal-line.md +29 -0
  125. package/llms/components/obc-hydraulic-check-valve.md +36 -0
  126. package/llms/components/obc-hydraulic-separator.md +80 -0
  127. package/llms/components/obc-hydraulic-valve-4-3.md +71 -0
  128. package/llms/components/obc-hydraulic-valve-x-2.md +68 -0
  129. package/llms/components/obc-icon-button.md +117 -0
  130. package/llms/components/obc-icon-check-button.md +85 -0
  131. package/llms/components/obc-indicator-battery.md +69 -0
  132. package/llms/components/obc-indicator-engine.md +39 -0
  133. package/llms/components/obc-indicator-generator.md +59 -0
  134. package/llms/components/obc-indicator-graph.md +33 -0
  135. package/llms/components/obc-indicator-tank-atmospheric.md +69 -0
  136. package/llms/components/obc-input-chip.md +96 -0
  137. package/llms/components/obc-instrument-field.md +172 -0
  138. package/llms/components/obc-instrument-radial.md +77 -0
  139. package/llms/components/obc-integration-app-bar.md +41 -0
  140. package/llms/components/obc-integration-bar-dropdown.md +71 -0
  141. package/llms/components/obc-integration-bar.md +72 -0
  142. package/llms/components/obc-integration-button.md +62 -0
  143. package/llms/components/obc-integration-dropdown-button.md +75 -0
  144. package/llms/components/obc-integration-fleet-button.md +41 -0
  145. package/llms/components/obc-integration-tabs.md +28 -0
  146. package/llms/components/obc-integration-vessel-menu.md +58 -0
  147. package/llms/components/obc-integration-vessel-selector.md +32 -0
  148. package/llms/components/obc-keyboard-full.md +175 -0
  149. package/llms/components/obc-keyboard-numeric.md +77 -0
  150. package/llms/components/obc-line-cross.md +28 -0
  151. package/llms/components/obc-line-graph.md +164 -0
  152. package/llms/components/obc-line-overlap.md +28 -0
  153. package/llms/components/obc-logic.md +64 -0
  154. package/llms/components/obc-main-engine-indicator.md +55 -0
  155. package/llms/components/obc-main-engine.md +54 -0
  156. package/llms/components/obc-menu-button.md +158 -0
  157. package/llms/components/obc-message-menu-item.md +165 -0
  158. package/llms/components/obc-modal-window.md +139 -0
  159. package/llms/components/obc-mosfet.md +64 -0
  160. package/llms/components/obc-motor.md +73 -0
  161. package/llms/components/obc-navigation-item-group.md +82 -0
  162. package/llms/components/obc-navigation-item.md +138 -0
  163. package/llms/components/obc-navigation-menu.md +135 -0
  164. package/llms/components/obc-non-return-valve.md +79 -0
  165. package/llms/components/obc-notification-badge-button.md +87 -0
  166. package/llms/components/obc-notification-button.md +92 -0
  167. package/llms/components/obc-notification-floating-item.md +121 -0
  168. package/llms/components/obc-notification-menu-item.md +87 -0
  169. package/llms/components/obc-notification-message-item.md +127 -0
  170. package/llms/components/obc-number-input-field.md +97 -0
  171. package/llms/components/obc-pagination.md +95 -0
  172. package/llms/components/obc-pie-chart.md +120 -0
  173. package/llms/components/obc-pitch-indicator.md +39 -0
  174. package/llms/components/obc-pitch-roll-heave.md +86 -0
  175. package/llms/components/obc-pitch-roll-yaw.md +72 -0
  176. package/llms/components/obc-pitch-roll.md +63 -0
  177. package/llms/components/obc-pitch.md +81 -0
  178. package/llms/components/obc-pivot-item-group.md +79 -0
  179. package/llms/components/obc-pivot-item.md +75 -0
  180. package/llms/components/obc-poi-aton.md +68 -0
  181. package/llms/components/obc-poi-button-aton.md +54 -0
  182. package/llms/components/obc-poi-button-data.md +53 -0
  183. package/llms/components/obc-poi-button-vessel.md +55 -0
  184. package/llms/components/obc-poi-button.md +94 -0
  185. package/llms/components/obc-poi-card-header.md +90 -0
  186. package/llms/components/obc-poi-card.md +110 -0
  187. package/llms/components/obc-poi-controller.md +151 -0
  188. package/llms/components/obc-poi-data.md +72 -0
  189. package/llms/components/obc-poi-graphic-line.md +70 -0
  190. package/llms/components/obc-poi-group.md +85 -0
  191. package/llms/components/obc-poi-header.md +71 -0
  192. package/llms/components/obc-poi-layer-stack.md +85 -0
  193. package/llms/components/obc-poi-layer.md +110 -0
  194. package/llms/components/obc-poi-line.md +70 -0
  195. package/llms/components/obc-poi-object-aton.md +45 -0
  196. package/llms/components/obc-poi-object-data.md +48 -0
  197. package/llms/components/obc-poi-object-vessel.md +95 -0
  198. package/llms/components/obc-poi-object.md +82 -0
  199. package/llms/components/obc-poi-pointer.md +70 -0
  200. package/llms/components/obc-poi-selection-frame.md +66 -0
  201. package/llms/components/obc-poi-vessel.md +70 -0
  202. package/llms/components/obc-poi.md +140 -0
  203. package/llms/components/obc-polar-chart.md +126 -0
  204. package/llms/components/obc-position-deviation.md +84 -0
  205. package/llms/components/obc-pressure-reduction-valve.md +88 -0
  206. package/llms/components/obc-pressure-sustain-valve.md +85 -0
  207. package/llms/components/obc-progress-bar.md +102 -0
  208. package/llms/components/obc-progress-button.md +111 -0
  209. package/llms/components/obc-progress-indicator-dots.md +57 -0
  210. package/llms/components/obc-propulsion-azimuth-indicator.md +48 -0
  211. package/llms/components/obc-pump.md +76 -0
  212. package/llms/components/obc-radial-bar-chart.md +103 -0
  213. package/llms/components/obc-radio.md +82 -0
  214. package/llms/components/obc-rate-of-turn.md +95 -0
  215. package/llms/components/obc-readout-block.md +137 -0
  216. package/llms/components/obc-readout-list-item.md +142 -0
  217. package/llms/components/obc-readout-list.md +85 -0
  218. package/llms/components/obc-readout.md +169 -0
  219. package/llms/components/obc-resistor.md +64 -0
  220. package/llms/components/obc-rich-button.md +92 -0
  221. package/llms/components/obc-roll-indicator.md +38 -0
  222. package/llms/components/obc-roll.md +56 -0
  223. package/llms/components/obc-rot-indicator.md +32 -0
  224. package/llms/components/obc-rot-linear.md +68 -0
  225. package/llms/components/obc-rot-sector.md +125 -0
  226. package/llms/components/obc-router.md +64 -0
  227. package/llms/components/obc-rudder-indicator.md +54 -0
  228. package/llms/components/obc-rudder.md +112 -0
  229. package/llms/components/obc-ruler-pointer.md +57 -0
  230. package/llms/components/obc-scrollbar.md +57 -0
  231. package/llms/components/obc-sequence-card.md +119 -0
  232. package/llms/components/obc-sequence-connector.md +70 -0
  233. package/llms/components/obc-sequence-item.md +64 -0
  234. package/llms/components/obc-sequence-loading-spinner.md +70 -0
  235. package/llms/components/obc-sequence-modal.md +89 -0
  236. package/llms/components/obc-sequence-step.md +48 -0
  237. package/llms/components/obc-sequence-toolbar.md +108 -0
  238. package/llms/components/obc-slide-button.md +111 -0
  239. package/llms/components/obc-slider-double.md +137 -0
  240. package/llms/components/obc-slider.md +143 -0
  241. package/llms/components/obc-source.md +64 -0
  242. package/llms/components/obc-speed-arrows.md +39 -0
  243. package/llms/components/obc-speed-directions.md +66 -0
  244. package/llms/components/obc-speed-gauge.md +124 -0
  245. package/llms/components/obc-speed-indicator.md +37 -0
  246. package/llms/components/obc-split-button.md +144 -0
  247. package/llms/components/obc-start-stop-switch.md +126 -0
  248. package/llms/components/obc-status-indicator.md +30 -0
  249. package/llms/components/obc-stepper-box.md +90 -0
  250. package/llms/components/obc-surge-sway-yaw.md +95 -0
  251. package/llms/components/obc-switch.md +69 -0
  252. package/llms/components/obc-system-button.md +112 -0
  253. package/llms/components/obc-system-menu.md +67 -0
  254. package/llms/components/obc-tab-item.md +161 -0
  255. package/llms/components/obc-tab-row.md +151 -0
  256. package/llms/components/obc-tabbed-card.md +148 -0
  257. package/llms/components/obc-table-header-item.md +42 -0
  258. package/llms/components/obc-table.md +124 -0
  259. package/llms/components/obc-tag.md +41 -0
  260. package/llms/components/obc-text-input-field.md +94 -0
  261. package/llms/components/obc-textarea-field.md +186 -0
  262. package/llms/components/obc-textbox.md +80 -0
  263. package/llms/components/obc-three-way-line.md +29 -0
  264. package/llms/components/obc-thruster.md +64 -0
  265. package/llms/components/obc-title-container.md +81 -0
  266. package/llms/components/obc-toggle-button-group.md +184 -0
  267. package/llms/components/obc-toggle-button-option.md +126 -0
  268. package/llms/components/obc-toggle-button-three-state.md +38 -0
  269. package/llms/components/obc-toggle-button-vertical-group.md +142 -0
  270. package/llms/components/obc-toggle-button-vertical-option.md +110 -0
  271. package/llms/components/obc-toggle-switch.md +126 -0
  272. package/llms/components/obc-toggletip.md +135 -0
  273. package/llms/components/obc-tooltip.md +106 -0
  274. package/llms/components/obc-top-bar.md +194 -0
  275. package/llms/components/obc-top-view-propulsion.md +84 -0
  276. package/llms/components/obc-topbar-message-item.md +150 -0
  277. package/llms/components/obc-transformer.md +64 -0
  278. package/llms/components/obc-transmitter-button.md +101 -0
  279. package/llms/components/obc-transmitter-stack.md +79 -0
  280. package/llms/components/obc-transmitter.md +114 -0
  281. package/llms/components/obc-tree-navigation-group.md +69 -0
  282. package/llms/components/obc-tree-navigation-item.md +110 -0
  283. package/llms/components/obc-tree-navigation.md +73 -0
  284. package/llms/components/obc-tunnel-thruster.md +59 -0
  285. package/llms/components/obc-user-button.md +107 -0
  286. package/llms/components/obc-user-menu.md +154 -0
  287. package/llms/components/obc-valve-analog-three-way-icon.md +69 -0
  288. package/llms/components/obc-valve-analog-two-way-icon.md +39 -0
  289. package/llms/components/obc-velocity-projection-plot.md +34 -0
  290. package/llms/components/obc-vendor-button.md +63 -0
  291. package/llms/components/obc-vertical-line.md +33 -0
  292. package/llms/components/obc-watch-flat.md +54 -0
  293. package/llms/components/obc-watch.md +206 -0
  294. package/llms/components/obc-wind-indicator.md +52 -0
  295. package/llms/components/obc-wind-propulsion.md +92 -0
  296. package/llms/components/obc-wind.md +46 -0
  297. package/llms/docs/ar-poi-projection.md +36 -0
  298. package/llms/docs/automation-sequence-step-diagram-playground.md +13 -0
  299. package/llms/docs/building-blocks-advice.md +31 -0
  300. package/llms/docs/building-blocks-external-scale.md +138 -0
  301. package/llms/docs/building-blocks-setpoint.md +119 -0
  302. package/llms/docs/introduction-advice-system.md +161 -0
  303. package/llms/docs/introduction-getting-started.md +94 -0
  304. package/llms/docs/introduction-introduction.md +27 -0
  305. package/llms/docs/introduction-join-the-project.md +11 -0
  306. package/llms/docs/introduction-migration-guide-2-0-to-2-1.md +126 -0
  307. package/llms/docs/introduction-migration-guide-2-1-to-2-2.md +106 -0
  308. package/llms/docs/introduction-migration-guide.md +1063 -0
  309. package/llms/docs/palettes-categorical-colour.md +9 -0
  310. package/llms/llms-full.txt +28380 -0
  311. package/llms/llms.txt +368 -0
  312. package/package.json +12 -2
  313. package/script/cem-plugins/lifecycle.d.mts +6 -0
  314. package/script/cem-plugins/lifecycle.mjs +48 -0
  315. package/script/cem-plugins.test.ts +52 -1
  316. package/script/generate-llms-txt.ts +34 -0
  317. package/script/llms/channel.test.ts +69 -0
  318. package/script/llms/channel.ts +63 -0
  319. package/script/llms/generate.test.ts +143 -0
  320. package/script/llms/generate.ts +229 -0
  321. package/script/llms/manifest.test.ts +160 -0
  322. package/script/llms/manifest.ts +109 -0
  323. package/script/llms/markdown.test.ts +22 -0
  324. package/script/llms/markdown.ts +37 -0
  325. package/script/llms/mdx.test.ts +172 -0
  326. package/script/llms/mdx.ts +171 -0
  327. package/script/llms/render-component.test.ts +290 -0
  328. package/script/llms/render-component.ts +208 -0
  329. package/script/llms/render-guides.test.ts +105 -0
  330. package/script/llms/render-guides.ts +51 -0
  331. package/script/llms/render-llms-txt.test.ts +222 -0
  332. package/script/llms/render-llms-txt.ts +185 -0
  333. package/script/llms/sources.test.ts +118 -0
  334. package/script/llms/sources.ts +89 -0
  335. package/script/llms/stories.test.ts +193 -0
  336. package/script/llms/stories.ts +256 -0
  337. package/script/llms/types.ts +95 -0
  338. package/script/prepare-full-bundle.ts +1 -0
@@ -0,0 +1,142 @@
1
+ # `<obc-alert-frame>`
2
+
3
+ A bordered frame component for visually emphasizing alert or status messages.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-message-and-alerts-alert-frame--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-frame/alert-frame.ts)
6
+
7
+ `<obc-alert-frame>` – A bordered frame component for visually emphasizing alert or status messages.
8
+
9
+ The alert frame provides a prominent outline and optional "flap" with status icon to draw attention to critical information or UI regions. It supports multiple visual variants and thicknesses, and can be configured to indicate different alert statuses (alarm, warning, caution). The component is designed to wrap content and visually distinguish it from the surrounding UI.
10
+
11
+ ## Features
12
+ - **Variants (type):**
13
+ - `regular`: Standard outlined frame with no flap or icon.
14
+ - `small-side-flip`: Adds a small side flap with a status icon at the top right.
15
+ - `large-side-flip`: Adds a larger, vertical side flap with a status icon and optional custom icon.
16
+ - `bottom-flip`: Adds a bottom flap with a status icon, label, and timer slots.
17
+ - **Thickness options:** Choose between `small` (thin border) and `large` (thick border) for visual emphasis.
18
+ - **Centred stroke:** The stroke straddles the frame edge, half over the content and half outside, so frames on touching components share one edge. While flashing it grows by 1 px on each side.
19
+ - **Status indication:** Displays different color schemes and icons for the legacy statuses (`alarm`, `warning`, `caution`) and the level statuses (`level-critical`, `level-high`, `level-medium`, `level-low`, `level-diagnostic`).
20
+ - **Acknowledgement mode:** The `mode` property reflects the alert lifecycle state — `acked-active` (default, steady), `unacked-active` (flashes) and `unacked-rectified` (dashed, flashes) — and `flashingSpeed` picks the tempo.
21
+ - **Content wrapping:** When `wrapContent` is true, the frame wraps and sizes itself to its slotted content rather than overlaying a fixed region.
22
+ - **Customizable corners:** Each corner can be set to a sharp (non-rounded) edge for integration with other UI elements.
23
+ - **Slot-based content:** Supports custom icons, labels, and timers in flap variants via named slots.
24
+
25
+ ## Usage Guidelines
26
+ Use `obc-alert-frame` to highlight important content, such as alerts, warnings, or status panels. The flap variants are ideal for drawing extra attention to urgent or time-sensitive information, while the regular type provides a subtle but clear border. Choose the status to match the severity of the message (alarm, warning, caution). Adjust thickness for visual hierarchy—use large for high-priority alerts and small for less critical notices.
27
+
28
+ **TODO(designer):** Provide guidance on when to use each flap type (small-side-flip, large-side-flip, bottom-flip) and recommended scenarios for sharp edge usage.
29
+
30
+ ## Features/Variants
31
+ - **Type (Visual Variant):**
32
+ - `regular`: Simple outlined frame, no flap or icon.
33
+ - `small-side-flip`: Small right-side flap with status icon.
34
+ - `large-side-flip`: Large vertical right-side flap with status icon and optional custom icon.
35
+ - `bottom-flip`: Bottom flap with status icon, label, and timer.
36
+ - **Thickness:** `small` (default) or `large` for border width.
37
+ - **Status:** `alarm`, `warning`, `caution`, or the level severities (`level-critical`, `level-high`, `level-medium`, `level-low`, `level-diagnostic`)—affects color and icon.
38
+ - **Mode:** `acked-active` (default), `unacked-active`, or `unacked-rectified`—affects blinking/animation.
39
+ - **Corner Customization:** Each corner can be made sharp (not rounded) via boolean properties.
40
+
41
+ ## Slots and Content Structure
42
+
43
+ | Slot Name | Renders When... | Purpose |
44
+ |-----------|-----------------|---------|
45
+ | (default) | Always | Main content inside the alert frame. |
46
+ | icon | `large-side-flip` or `bottom-flip` | Custom icon displayed in the flap (in addition to status icon). |
47
+ | label | `bottom-flip` only | Label text shown in the bottom flap. |
48
+ | timer | `bottom-flip` only | Timer or time label in the bottom flap. |
49
+
50
+ ## Properties and Attributes
51
+ - `type`: Selects the visual variant/flap style. Default is `small-side-flip`.
52
+ - `thickness`: Controls border thickness (`small` or `large`). Default is `small`.
53
+ - `status`: Sets the alert status and color/icon (`alarm`, `warning`, `caution`, or the `level-*` severities). Default is `alarm`.
54
+ - `mode`: Acknowledgement lifecycle state (`acked-active`, `unacked-active`, `unacked-rectified`) controlling blinking/animation. Default is `acked-active`.
55
+ - `wrapContent`: When true, the frame wraps and sizes to its slotted content instead of overlaying a fixed region. Default is `false`.
56
+ - `sharpEdgeTopLeft`, `sharpEdgeTopRight`, `sharpEdgeBottomLeft`, `sharpEdgeBottomRight`: Boolean flags to make each corner sharp instead of rounded.
57
+
58
+ ## Best Practices and Constraints
59
+ - Use the status property to match the severity of the alert.
60
+ - Only use the bottom-flip variant when both label and timer are relevant.
61
+ - For visual consistency, align sharp edge settings with adjacent UI elements.
62
+ - The default slot is for the main content; use named slots for icons, labels, and timers as needed.
63
+
64
+ ## Example:
65
+ ```
66
+ <obc-alert-frame
67
+ type="bottom-flip"
68
+ thickness="large"
69
+ status="warning"
70
+ sharpEdgeTopLeft
71
+ >
72
+ <obi-placeholder slot="icon"></obi-placeholder>
73
+ <div slot="label">Low Battery</div>
74
+ <div slot="timer">00:15</div>
75
+ <div>Critical system message goes here.</div>
76
+ </obc-alert-frame>
77
+ ```
78
+
79
+ ## Properties
80
+
81
+ | Property | Attribute | Type | Default | Description |
82
+ | --- | --- | --- | --- | --- |
83
+ | type | type | `ObcAlertFrameType` | | Visual variant: `regular` is the outlined frame alone, `small-side-flip` (default) adds a small right-side flap with the status icon, `large-side-flip` a large vertical flap with an optional custom icon, and `bottom-flip` and `top-flip` a flap below or above carrying the status icon, an optional custom icon, a label and a timer. |
84
+ | thickness | thickness | `ObcAlertFrameThickness` | | Border thickness: `small` (default) is the thin border, `large` the thick one for higher emphasis. |
85
+ | status | status | `AlertType` | | Alert status, which picks the colour scheme and the icon: `alarm` (default) is the highest severity, then `warning` and `caution`. The `level-critical`, `level-high`, `level-medium`, `level-low` and `level-diagnostic` severities are styled to match their legacy equivalents. |
86
+ | mode | mode | `ObcAlertFrameMode` | | Acknowledgement state, which drives the frame's flashing: `acked-active` (default) is active and acknowledged and never flashes, `unacked-active` is active and unacknowledged and flashes, and `unacked-rectified` is a cleared condition that has not been acknowledged. |
87
+ | flashingSpeed | flashingSpeed | `FlashingSpeed` | | Flash tempo: `default` resolves from the alert type and mode (critical/alarm/high fast, warning/medium slow, low very slow, every rectified alert very slow, caution and diagnostic fixed), `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. Acknowledged frames are always steady. |
88
+ | flashEffect | flashEffect | `ObcAlertFrameFlashEffect` | | `outline` (default) grows the outline by 2 px, 1 px each side, while on in one step; `outline-eased` grows it over a 50 ms transition, a design-evaluation option. |
89
+ | resolvedFlashingSpeed | | `ResolvedFlashingSpeed` | | |
90
+ | wrapContent | wrapContent | `boolean` | `false` | When true, the frame wraps and sizes itself to its slotted content instead of overlaying a fixed region. Reflected to an attribute for CSS styling. |
91
+ | fullWidth | fullWidth | `boolean` | `false` | When true, the frame stretches to fill the full width of its container instead of hugging its content. Reflected to an attribute for CSS styling. |
92
+ | sharpEdgeTopLeft | sharpEdgeTopLeft | `boolean` | `false` | If true, the top-left corner will be sharp (not rounded). |
93
+ | sharpEdgeTopRight | sharpEdgeTopRight | `boolean` | `false` | If true, the top-right corner will be sharp (not rounded). |
94
+ | sharpEdgeBottomLeft | sharpEdgeBottomLeft | `boolean` | `false` | If true, the bottom-left corner will be sharp (not rounded). |
95
+ | sharpEdgeBottomRight | sharpEdgeBottomRight | `boolean` | `false` | If true, the bottom-right corner will be sharp (not rounded). |
96
+ | textSize | textSize | `AlertFrameTextSize` | | |
97
+ | showIcon | showIcon | `boolean` | `false` | |
98
+ | showAlertCategoryIcon | | `boolean` | `true` | |
99
+
100
+ ## Events
101
+
102
+ None.
103
+
104
+ ## Slots
105
+
106
+ | Slot | Description |
107
+ | --- | --- |
108
+ | (default) | Default slot for main alert content. |
109
+ | icon | Custom icon for the flap (large-side-flip, bottom-flip). |
110
+ | label | Label text for the bottom flap (bottom-flip only). |
111
+ | timer | Timer or time label for the bottom flap (bottom-flip only). |
112
+
113
+ ## Stories
114
+
115
+ - [Alarm Thick](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thick)
116
+ - [Alarm Thinn](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thinn)
117
+ - [Unacked Active Thick](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--unacked-active-thick)
118
+ - [Alarm Thick Small Side Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thick-small-side-flip)
119
+ - [Alarm Thinn Small Side Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thinn-small-side-flip)
120
+ - [Alarm Thick Large Side Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thick-large-side-flip)
121
+ - [Alarm Thinn Large Side Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thinn-large-side-flip)
122
+ - [Alarm Thick Bottom Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thick-bottom-flip)
123
+ - [Alarm Thinn Bottom Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thinn-bottom-flip)
124
+ - [Alarm Thick Bottom Flip Large Text](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thick-bottom-flip-large-text)
125
+ - [Alarm Narrow Bottom Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-narrow-bottom-flip)
126
+ - [Alarm Thick Top Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thick-top-flip)
127
+ - [Alarm Thinn Top Flip](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thinn-top-flip)
128
+ - [Alarm Thick Top Flip Large Text](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thick-top-flip-large-text)
129
+ - [Alarm Thick Top Flip No Icons](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--alarm-thick-top-flip-no-icons)
130
+ - [Level Critical](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--level-critical)
131
+ - [Level High](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--level-high)
132
+ - [Level Medium](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--level-medium)
133
+ - [Level Low](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--level-low)
134
+ - [Level Diagnostic](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--level-diagnostic)
135
+ - [Rectified Unactive](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--rectified-unactive)
136
+ - [Critical Unacked](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--critical-unacked)
137
+ - [Adjacent Frames](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--adjacent-frames): Frames on touching components share one edge: every stroke is centred on the edge of its component. The top frame is in its on phase, so its wider stroke shows on both sides of the thinner one below it.
138
+ - [Flash Comparison](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-alert-frame--flash-comparison)
139
+
140
+ ## See also
141
+
142
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,79 @@
1
+ # `<obc-alert-icon>`
2
+
3
+ Animated alert icon for signaling alarm and warning states.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-icon--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-icon/alert-icon.ts)
6
+
7
+ `obc-alert-icon` – Animated alert icon for signaling alarm and warning states.
8
+
9
+ Displays a specialized icon with a blinking effect to visually indicate alert or warning conditions. The icon type is determined by the `name` property, supporting both alarm and warning variants in different states (such as silenced, unacknowledged, or rectified).
10
+
11
+ Appears in notification areas, alert banners, or status panels to draw attention to active or historical alert conditions. The blinking animation helps highlight urgency or status changes without requiring user interaction.
12
+
13
+ ## Features
14
+ - **Multiple Icon Types:** Supports all alarm and warning types.
15
+ - **Flashing:** Two SVG layers alternate at the design tempo (fast for critical/alarm/high, slow for warning/medium, very slow for low and for every rectified alert); acknowledged icons are steady.
16
+ - **Adaptive Styling:** Applies different CSS variables for alarm and warning types to allow for distinct visual cues (e.g., color, blink timing).
17
+ - **Scalable:** Designed to fit any container size; scales with its parent element.
18
+
19
+ ## Usage Guidelines
20
+ Use `obc-alert-icon` to visually represent the status of alarms or warnings in notification panels, alert lists, or system status areas. The blinking effect is intended to draw user attention to active or recent alert conditions. Select the appropriate `name` value to match the alert state you wish to indicate.
21
+
22
+ **TODO(designer):** Provide guidance on when to use each icon variant (e.g., when to use "rectified" vs. "silenced"), and any best practices for icon placement or blink timing.
23
+
24
+ ## Properties
25
+ - `type` (AlertType): The type of alarm to display.
26
+ - `status` (AlarmStatus): The status of the alarm to display.
27
+
28
+ ## Best Practices
29
+ - Only use the blinking alert icon for states that require immediate or prominent user attention.
30
+ - Ensure the icon is sized appropriately for its context (e.g., 32x32px or 64x64px for status panels).
31
+ - Avoid using multiple blinking icons in close proximity to prevent visual overload.
32
+
33
+ ## Example
34
+ ```html
35
+ <obc-alert-icon .alarmType=${alarm.type} .alarmStatus=${alarm.status}></obc-alert-icon>
36
+ ```
37
+
38
+ ## Properties
39
+
40
+ | Property | Attribute | Type | Default | Description |
41
+ | --- | --- | --- | --- | --- |
42
+ | alertType | alertType | `AlertType` | | |
43
+ | type | type | `AlertType \| undefined` | | |
44
+ | acknowledged | acknowledged | `boolean \| undefined` | | Available when `type in [Alarm, Warning, LevelCritical, LevelHigh, LevelMedium, LevelLow]`. |
45
+ | active | active | `boolean \| undefined` | | Available when `type in [Alarm, Warning, LevelCritical, LevelHigh, LevelMedium, LevelLow]`. |
46
+ | silenced | silenced | `boolean \| undefined` | | |
47
+ | flashingSpeed | flashingSpeed | `FlashingSpeed` | | Flash tempo: `default` resolves from the alert type and state, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. Acknowledged icons are always steady. |
48
+ | resolvedFlashingSpeed | | `ResolvedFlashingSpeed` | | |
49
+ | icon | | | | |
50
+
51
+ ## Events
52
+
53
+ None.
54
+
55
+ ## Slots
56
+
57
+ None.
58
+
59
+ ## Stories
60
+
61
+ - [Alarm Unacknowledged](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--alarm-unacknowledged)
62
+ - [Alarm Rectified](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--alarm-rectified)
63
+ - [Alarm Acknowledged](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--alarm-acknowledged)
64
+ - [Warning Unacknowledged](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--warning-unacknowledged)
65
+ - [Warning Rectified](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--warning-rectified)
66
+ - [Warning Acknowledged](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--warning-acknowledged)
67
+ - [Caution](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--caution)
68
+ - [Level Critical](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--level-critical)
69
+ - [Level High](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--level-high)
70
+ - [Level Medium](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--level-medium)
71
+ - [Level Low](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--level-low)
72
+ - [Level Diagnostic](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--level-diagnostic)
73
+ - [Alarm Rectified No Ack](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--alarm-rectified-no-ack)
74
+ - [Api Matrix](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-icon--api-matrix)
75
+
76
+ ## See also
77
+
78
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
79
+ - [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)
@@ -0,0 +1,89 @@
1
+ # `<obc-alert-list-details-experimental>`
2
+
3
+ lists alerts in a table with consumer-defined columns, grouping alerts through `memberOf`.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-list-details-experimental--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-list-details-experimental/alert-list-details-experimental.ts)
6
+
7
+ `<obc-alert-list-details-experimental>` lists alerts in a table with
8
+ consumer-defined columns, grouping alerts through `memberOf`.
9
+
10
+ ## Features
11
+ - **Columns:** `columns` sets which columns show and in what order. A data
12
+ column renders each cell from `cell(alert)`; a slot column renders
13
+ whatever the consumer places in the cell's slot.
14
+ - **Column factories:** `statusColumn()`, `ackColumn()`, `timeColumn()` and
15
+ `tagIdColumn()` build the standard data columns; each takes overrides
16
+ such as `label`, `width` or `dividerRight`.
17
+ - **Filter modes:** `filterMode` lists unacknowledged, all, shelved,
18
+ blocked or rectified alerts, with an empty state per filter mode.
19
+ - **Grouping:** an alert listing group ids in `memberOf` renders under each
20
+ of those groups; groups nest and can be collapsed.
21
+ - **Selection:** `selectedRowId` highlights one row. When a collapsed group
22
+ hides it, the nearest visible group row is highlighted instead.
23
+
24
+ ## Usage Guidelines
25
+ - Use a slot column when the cell content must be owned by the consumer,
26
+ for example a button the application disables or removes later. Slotted
27
+ content stays in the light DOM, so it can be looked up by id.
28
+ - Slot names are `cell-<key>:<rowId>`. `cellSlots` lists every one, with its
29
+ alert, row id and column key, and `cell-slots-change` fires when the list
30
+ changes. The Svelte wrapper renders its `cell` snippet once per entry. An
31
+ alert in two groups has two rows, so it gets two entries.
32
+ - Without a wrapper, build the names from `getAlertRows(alerts, filterMode)`
33
+ and `alertListCellSlotName(key, rowId)`, or read `cellSlots`.
34
+ - Clicks on buttons, links and inputs in a cell do not fire `row-click`.
35
+ - The consumer owns the selection: set `selectedRowId` from `row-click`, and
36
+ set it to `undefined` on a second click to unselect. The list never changes
37
+ it; clear it when the row is no longer in `getAlertRows(alerts, filterMode)`.
38
+
39
+ ## Example
40
+ ```html
41
+ <obc-alert-list-details-experimental>
42
+ <obc-button slot="cell-ack:radar" id="ack-radar">ACK</obc-button>
43
+ </obc-alert-list-details-experimental>
44
+ ```
45
+ with `columns` set to `[statusColumn(), {key: 'ack', label: 'ACK-status', slot: true}]`.
46
+
47
+ ## Properties
48
+
49
+ | Property | Attribute | Type | Default | Description |
50
+ | --- | --- | --- | --- | --- |
51
+ | ariaLabel | aria-label | `string \| null` | `null` | Accessible name of the list, mapped to the `aria-label` attribute and forwarded to its table. `aria-labelledby` is not supported: ID references cannot cross the shadow boundary. |
52
+ | filterMode | filterMode | `FilterModes` | | Which alerts to list. |
53
+ | alerts | alerts | `Alert[]` | `[]` | Alerts to list. |
54
+ | columns | | `AlertListColumn[]` | `[ statusColumn(), ackColumn({dividerRight: true}), tagIdColumn(), ]` | Columns in display order. |
55
+ | showHeader | | `boolean` | `true` | Whether to show the column header row. |
56
+ | defaultExpanded | | `boolean` | `true` | Whether groups start expanded. Set false to open the list collapsed. |
57
+ | selectedRowId | selectedRowId | `string \| undefined` | | Row id to highlight, as given by `row-click` or `getAlertRows()`. Nothing is highlighted when no row has this id. |
58
+ | cellSlots | | `AlertListCellSlot[]` | | Slot of every cell in a slot column, rows in collapsed groups included. |
59
+
60
+ ## Events
61
+
62
+ | Event | Type | Description |
63
+ | --- | --- | --- |
64
+ | cell-click | `ObcAlertListCellClickEvent` | Fired when the user clicks a button rendered by a data column, such as the one from `ackColumn()`. |
65
+ | row-click | `ObcRowClickEvent` | Fired when the user clicks a row. |
66
+ | cell-slots-change | `ObcAlertListCellSlotsChangeEvent` | Fired when `cellSlots` changes; the detail is the new list. |
67
+
68
+ ## Slots
69
+
70
+ | Slot | Description |
71
+ | --- | --- |
72
+ | cell-<key>:<rowId> | Content of the cell in slot column `<key>` for row `<rowId>`. |
73
+
74
+ ## Stories
75
+
76
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--regular)
77
+ - [Small](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--small)
78
+ - [Empty](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--empty)
79
+ - [One Item](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--one-item)
80
+ - [Level Categories](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--level-categories)
81
+ - [Grouped Alerts](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--grouped-alerts): Alerts are grouped through `memberOf`, which names the alerts a given alert is a member of. Groups nest, and `PWR-01` lists two groups so it appears under both. The `GYRO-01` group row sets `noAck`, so it shows no ACK button of its own.
82
+ - [Selected Row](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--selected-row): The consumer owns the selection. Clicking a row sets `selectedRowId` to its row id, and clicking it again sets it back to `undefined`. Collapse the gyroscope group and the group row is highlighted instead of the hidden sensor row. `PWR-01` has a row under each group, and only the clicked one is highlighted.
83
+ - [Cyclic Grouping](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--cyclic-grouping): Regression guard. Three active alerts go in and three are listed. `buildVisibleRows()` seeds its walk from alerts with no in-set `memberOf`, so this membership cycle produces no root of its own; the alerts it cannot reach become roots instead of being dropped, because an alert list must never quietly omit an active alarm. Remove the standalone alert and both alarms still render.
84
+ - [Cycle With Descendants](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--cycle-with-descendants): Regression guard for both halves of the cycle handling. The Gyroscope cycle sits under a group with no `memberOf`, so the walk reaches it and the `ancestors` guard prunes only the repeat visit; those three must render once each, not be re-listed at top level by the recovery. The Pump cycle has no root, so it is recovered: Pump A becomes a root, and Pump B and Pump sensor render beneath it. Pump sensor is in no cycle and merely names a member of one, so recovering only cycle members would still lose it.
85
+ - [Slotted Ack Buttons](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details-experimental--slotted-ack-buttons): The ACK column is a slot column. The consumer creates each button, gives it its own `id`, and places it in slot `cell-ack:<rowId>`, with the row ids from `getAlertRows()`. `PWR-01` is a member of two groups, so it has two rows and two buttons. Clicking ACK looks up every button for that alert in the DOM and disables it.
86
+
87
+ ## See also
88
+
89
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,38 @@
1
+ # `<obc-alert-list-details>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-list-details--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-list-details/alert-list-details.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | selectedMode | selectedMode | `AlertListMode` | | |
12
+ | alerts | alerts | `Alert[]` | `[]` | |
13
+ | showTime | showTime | `boolean` | `false` | |
14
+ | timeFormatter | | `(time: Date) => string` | | Available when `showTime==true`. |
15
+ | small | small | `boolean` | `false` | |
16
+
17
+ ## Events
18
+
19
+ | Event | Type | Description |
20
+ | --- | --- | --- |
21
+ | ack-click | `ObcAckClickEvent` | Fired when the user clicks the "ACK" button. |
22
+ | row-click | `ObcRowClickEvent` | Fired when the user clicks a row. |
23
+
24
+ ## Slots
25
+
26
+ None.
27
+
28
+ ## Stories
29
+
30
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details--regular)
31
+ - [Small](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details--small)
32
+ - [Empty](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details--empty)
33
+ - [One Item](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details--one-item)
34
+ - [Level Categories](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list-details--level-categories)
35
+
36
+ ## See also
37
+
38
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,39 @@
1
+ # `<obc-alert-list-page-small>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/pages-alert-list-small--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/pages/alert-list-page-small/alert-list-page-small.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | alerts | alerts | `Alert[]` | `[]` | Alerts to list. |
12
+ | selectedMode | selectedMode | `AlertListMode` | | |
13
+ | hasShelved | hasShelved | `boolean` | `false` | Whether the dropdown offers the shelved alerts. |
14
+ | showTime | showTime | `boolean` | `false` | Whether the list shows when each alert was raised. |
15
+ | timeFormatter | | `(time: Date) => string` | | Formats the time the list shows. Available when `showTime==true`. |
16
+
17
+ ## Events
18
+
19
+ | Event | Type | Description |
20
+ | --- | --- | --- |
21
+ | ack-all-visible-click | `CustomEvent` | Fired when the user clicks the "ACK visible" button. |
22
+ | ack-click | `CustomEvent` | Fired when the user clicks the "ACK" button. |
23
+ | row-click | `CustomEvent` | Fired when the user clicks a row. |
24
+ | silence-click | `CustomEvent` | Fired when the user clicks the "Silence" button. |
25
+
26
+ ## Slots
27
+
28
+ None.
29
+
30
+ ## Stories
31
+
32
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-list-small--regular)
33
+ - [Custom Time Formatter](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-list-small--custom-time-formatter)
34
+ - [Empty](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-list-small--empty)
35
+ - [One Item](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-list-small--one-item)
36
+ - [No Shelf](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-list-small--no-shelf)
37
+ - [Acknowledgment Test](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-list-small--acknowledgment-test)
38
+ - [Ack All Test](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-list-small--ack-all-test)
39
+ - [Make Empty Test](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-list-small--make-empty-test)
@@ -0,0 +1,37 @@
1
+ # `<obc-alert-list>`
2
+
3
+ Scrolling list of alert items with an empty state.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-list--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/building-blocks/alert-list/alert-list.ts)
6
+
7
+ `<obc-alert-list>` – Scrolling list of alert items with an empty state.
8
+
9
+ `filter` decides which items count: the empty state shows when none does,
10
+ and `getVisibleElements()` returns only those. Hiding the other items is
11
+ left to the consumer's CSS.
12
+
13
+ ## Properties
14
+
15
+ | Property | Attribute | Type | Default | Description |
16
+ | --- | --- | --- | --- | --- |
17
+ | filter | | `(item: HTMLElement) => boolean` | | Predicate that picks the items the list counts as shown. |
18
+
19
+ ## Events
20
+
21
+ None.
22
+
23
+ ## Slots
24
+
25
+ | Slot | Description |
26
+ | --- | --- |
27
+ | (default) | Default slot for the alert list items. |
28
+ | empty-icon | Icon shown when the list is empty. |
29
+ | empty-title | Title shown when the list is empty. |
30
+ | empty-description | Description shown when the list is empty. |
31
+
32
+ ## Stories
33
+
34
+ - [Primary](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list--primary)
35
+ - [Empty](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list--empty)
36
+ - [With Controls](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list--with-controls)
37
+ - [Make Empty](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-list--make-empty)
@@ -0,0 +1,128 @@
1
+ # `<obc-alert-menu-item>`
2
+
3
+ A list item component for displaying alert or notification entries with status, icons, and action controls.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-menu-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-menu-item/alert-menu-item.ts)
6
+
7
+ `<obc-alert-menu-item>` – A list item component for displaying alert or notification entries with status, icons, and action controls.
8
+
9
+ Presents 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.
10
+
11
+ ## Features
12
+ - **Status Variants:** Supports multiple alert states via the `status` property:
13
+ - **Unacknowledged:** Shows an action button (ACK) for user acknowledgment.
14
+ - **RectifiedUnacknowledged:** The situation that raised the alert has cleared, but the alert still waits for acknowledgment, so the ACK action stays.
15
+ - **Caution, Acknowledged, Rectified:** Display different visual cues for alert progression.
16
+ - **NoAckAlarm / NoAckWarning:** Show special icons indicating unacknowledged alarms or warnings.
17
+ - **Icon Support:** Optional secondary icon (e.g., system or source) and a primary alert icon. Tertiary "shelved" icon appears if the alert is shelved.
18
+ - **Time and Day Display:** Optionally shows day and/or time for the alert occurrence.
19
+ - **Expandable:** Can be toggled open/closed for additional details (via click).
20
+ - **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.
21
+ - Each action's appearance is controlled independently via `primaryActionState` / `secondaryActionState` (`enabled`, `disabled`, or `none`).
22
+ - **Animated Intro:** Optional animation when the item appears.
23
+ - **Size Options:** Supports single-line or multi-line layouts (see `size` property).
24
+
25
+ ## Usage Guidelines
26
+ Use `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.
27
+
28
+ - Use the `status` property to reflect the current state of the alert.
29
+ - Provide a relevant icon in the `alert-icon` slot to visually indicate the alert type.
30
+ - Use the `icon` slot for a source/system icon if needed.
31
+ - Only show the "ACK" action for alerts that require acknowledgment.
32
+ - Provide `secondaryActionLabel` to add a second action alongside ACK.
33
+ - Use `primaryActionState` / `secondaryActionState` to temporarily disable an action (`disabled`) or remove it without leaving a gap (`none`).
34
+ - 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.
35
+
36
+ **TODO(designer):** Should a blocked alert show a marker, as a shelved one shows the shelf icon?
37
+
38
+ ## Slots
39
+ | Slot Name | Renders When... | Purpose |
40
+ |---------------|-------------------------------|------------------------------------------------------|
41
+ | alert-icon | Always | Main alert icon representing the alert type. |
42
+ | title | Always | Title content; falls back to the `title` property. |
43
+ | description | Always | Description content; falls back to the `description` property. |
44
+ | icon | If `hasIcon` is true | Secondary icon (e.g., system/source of alert). |
45
+
46
+ ## Events
47
+ - **ack-click** – Fired when the ACK action button is clicked.
48
+ - **ack-secondary-click** – Fired when the secondary action button is clicked.
49
+ - **item-click** – Fired when the alert menu item is clicked (toggles open/closed).
50
+
51
+ ## Best Practices
52
+ - Only display the ACK action for alerts that require acknowledgment.
53
+ - Use concise titles and descriptions for quick scanning.
54
+ - For grouped alerts, ensure each item has a unique status and icon as appropriate.
55
+ - Avoid overloading with too many icons; use secondary and tertiary icons only when necessary.
56
+ - Follow standard notification design guidelines: keep actionable items prominent, and use color/iconography to indicate severity or status.
57
+
58
+ **Example:**
59
+ ```
60
+ <obc-alert-menu-item
61
+ status="unacknowledged"
62
+ title="Engine Temperature High"
63
+ description="Port main engine temperature exceeds normal operating range"
64
+ time="14:30"
65
+ hasIcon
66
+ >
67
+ <obc-alert-icon slot="alert-icon" type="alarm" active></obc-alert-icon>
68
+ <obi-engine slot="icon"></obi-engine>
69
+ </obc-alert-menu-item>
70
+ ```
71
+
72
+ ## Properties
73
+
74
+ | Property | Attribute | Type | Default | Description |
75
+ | --- | --- | --- | --- | --- |
76
+ | hasIcon | hasIcon | `boolean` | `false` | Whether to display a secondary icon (e.g., system/source) in the item. When true, the `icon` slot is rendered. |
77
+ | shelved | shelved | `boolean` | `false` | Indicates if the alert is shelved (temporarily deferred). When true, a tertiary icon is shown to represent the shelved state. |
78
+ | blocked | blocked | `boolean` | `false` | 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. |
79
+ | title | title | `string` | `''` | The title of the alert. |
80
+ | description | description | `string` | `''` | The description of the alert. |
81
+ | day | day | `string` | `''` | The day label for the alert (e.g., "Yesterday"). |
82
+ | time | time | `string` | `''` | The time label for the alert (e.g., "14:30"). |
83
+ | status | status | | | 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'. |
84
+ | open | open | `boolean` | `false` | Whether the item is expanded/open to show additional details. Toggled by clicking the item. |
85
+ | size | size | `ObcMessageMenuItemSize` | | Layout size of the menu item. Controls whether content is single-line or multi-line. Possible values: 'single-line', 'multi-line'. Default is 'single-line'. |
86
+ | animateIntro | animateIntro | `boolean` | `false` | Whether to animate the item's appearance (intro animation). |
87
+ | secondaryActionLabel | secondaryActionLabel | `string` | `''` | The label for the secondary action button. Unlike the primary (ACK) action, the secondary label is not derived from `status`; it must be provided explicitly. The secondary action is only shown when a non-empty label is set and `secondaryActionState` is not `none`. |
88
+ | primaryActionState | primaryActionState | `ObcAlertMenuItemActionState` | | Appearance of the primary (ACK) action: `enabled`, `disabled` or `none`, which hides it. |
89
+ | secondaryActionState | secondaryActionState | `ObcAlertMenuItemActionState` | | Appearance of the secondary action: `enabled`, `disabled` or `none`, which hides it. |
90
+
91
+ ## Events
92
+
93
+ | Event | Type | Description |
94
+ | --- | --- | --- |
95
+ | item-click | `CustomEvent<void>` | Fired when the alert menu item is clicked. |
96
+ | ack-click | `CustomEvent<void>` | Fired when the ACK action button is clicked. |
97
+ | ack-secondary-click | `CustomEvent<void>` | Fired when the secondary action button is clicked. |
98
+
99
+ ## Slots
100
+
101
+ | Slot | Description |
102
+ | --- | --- |
103
+ | alert-icon | The main alert icon representing the alert type. |
104
+ | title | Title content; falls back to the `title` property when empty. |
105
+ | description | Description content; falls back to the `description` property when empty. |
106
+ | icon | Optional secondary icon (e.g., source/system). |
107
+
108
+ ## Stories
109
+
110
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--default)
111
+ - [Shelved](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--shelved)
112
+ - [Shelved With Icon](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--shelved-with-icon)
113
+ - [Acknowledged](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--acknowledged)
114
+ - [No Ack Alarm](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--no-ack-alarm)
115
+ - [No Ack Warning](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--no-ack-warning)
116
+ - [Rectified Unacknowledged](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--rectified-unacknowledged)
117
+ - [With Secondary Action](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--with-secondary-action)
118
+ - [Secondary Action Disabled](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--secondary-action-disabled)
119
+ - [Primary Action None](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--primary-action-none)
120
+ - [Open With Long Text](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--open-with-long-text)
121
+ - [Open With Long Word](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--open-with-long-word)
122
+ - [Open Shelved With Long Text](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--open-shelved-with-long-text)
123
+ - [Open Shelved With Secondary Action](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-menu-item--open-shelved-with-secondary-action)
124
+
125
+ ## See also
126
+
127
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
128
+ - [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)