@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,138 @@
1
+ # `<obc-advice-message-item>`
2
+
3
+ A compact, actionable message component for displaying system advice, recommendations, or notifications.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-notifications-advice-message-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/advice-message-item/advice-message-item.ts)
6
+
7
+ `<obc-advice-message-item>` – A compact, actionable message component for displaying system advice, recommendations, or notifications.
8
+
9
+ This component presents a brief advice or recommendation message, optionally with a title, description, timestamp(s), and action(s). It is designed for use in notification panels, topbars, or summary lists where users need to quickly review and act on advice items. The component supports several display variants, including simple messages, messages with action buttons, and inactive/empty states.
10
+
11
+ ---
12
+
13
+ ## Features
14
+ - **Display Types:**
15
+ - `simple`: Standard advice message with optional title, description, and timestamp.
16
+ - `with-button`: Includes a text action button (label set via `actionLabel`).
17
+ - `with-icon-button`: Shows an icon button for quick actions (e.g., dismiss or close).
18
+ - `inactive`: Indicates an empty or inactive state, typically used when there are no active advice messages.
19
+ - **Size Variants:**
20
+ - `regular`: Default compact layout.
21
+ - `tall`: Provides a larger, more spacious layout for increased content or emphasis.
22
+ - **Content Options:**
23
+ - Title and description can be shown or hidden independently.
24
+ - Supports one or two timestamps (primary and secondary) for time or duration display.
25
+ - Optional secondary icon overlay for additional status or categorization.
26
+ - Customizable empty state text for when no advice is present.
27
+ - **Actions:**
28
+ - Text action button (with customizable label) or icon button, depending on type.
29
+ - Clickable message area for additional interactions.
30
+ - **Accessibility & Responsiveness:**
31
+ - Truncates long titles/descriptions with ellipsis for readability.
32
+ - Layout adapts to size variant and content presence.
33
+
34
+ ---
35
+
36
+ ## Usage Guidelines
37
+ Use `<obc-advice-message-item>` to present actionable advice, recommendations, or notifications that require user attention or review. Ideal for notification panels, summary lists, or topbars where users may need to quickly scan and act on advice items. Choose the `with-button` or `with-icon-button` types when an immediate action (such as "View", "Acknowledge", or "Dismiss") is needed. Use the `inactive` type (or set `empty` to true) to indicate that there are currently no active advice messages.
38
+
39
+ - For persistent or critical alerts, consider using a dedicated alert/banner component.
40
+ - For simple, informational messages without actions, use the `simple` type.
41
+ - Use the `tall` size for layouts where more space is available or when emphasizing the advice.
42
+ - The secondary icon slot can be used to indicate priority, category, or additional status.
43
+
44
+ **TODO(designer):** Confirm if there are recommended icon choices or color conventions for different advice types, and if there are character limits for title/description.
45
+
46
+ ---
47
+
48
+ ## Slots
49
+ | Slot Name | Renders When... | Purpose |
50
+ |-------------------|----------------------------|----------------------------------------------------------|
51
+ | `secondary-icon` | `hasSecondaryIcon` is true | Optional overlay icon for additional status or category. |
52
+
53
+ All other content (title, description, timestamps, action label/icon, empty-state
54
+ text) is driven by properties and rendered internally; it is not exposed as slots.
55
+
56
+ ---
57
+
58
+ ## Events
59
+ - `message-click` – Fired when the main message area is clicked.
60
+ - `action-click` – Fired when the action button (text or icon) is clicked.
61
+
62
+ ---
63
+
64
+ ## Best Practices & Constraints
65
+ - Only one action (text or icon) is shown at a time, depending on the `type`.
66
+ - Use concise titles and descriptions for optimal readability; long content will be truncated.
67
+ - The `large` and `empty` properties are deprecated; use `size="tall"` and `type="inactive"` instead.
68
+ - For accessibility, ensure action labels are descriptive and icons have appropriate meaning.
69
+
70
+ ---
71
+
72
+ **Example:**
73
+ ```html
74
+ <obc-advice-message-item
75
+ title="System Recommendation"
76
+ description="Your system performance can be improved"
77
+ time="10:30:15"
78
+ type="with-button"
79
+ actionLabel="View"
80
+ >
81
+ </obc-advice-message-item>
82
+ ```
83
+
84
+ In this example, the advice message displays a title, description, timestamp, and a "View" action button.
85
+
86
+ ## Properties
87
+
88
+ | Property | Attribute | Type | Default | Description |
89
+ | --- | --- | --- | --- | --- |
90
+ | title | title | `string` | `''` | Title or heading of the advice message. Shown in the `title` slot if `hasTitle` is true. Available when `showTitle==true && type!=Inactive`. |
91
+ | description | description | `string` | `''` | Detailed message text for the advice. Shown in the `description` slot if `hasDescription` is true. Available when `showDescription==true && type!=Inactive`. |
92
+ | time | time | `string` | `''` | Primary timestamp to display (e.g., time of advice). Shown in the `time` slot if `hasTimestamp` is true. Available when `showTimestamp==true && type!=Inactive`. |
93
+ | timeSecondary | timeSecondary | `string` | `''` | Secondary timestamp (e.g., duration, relative time). Shown in the `time-secondary` slot if `hasTimestamp2` is true. Available when `hasTimestamp2==true && type!=Inactive`. |
94
+ | actionLabel | actionLabel | `string` | `'View'` | Label for the action button (when `type` is "with-button"). The icon action button shows the close icon and is named "Close". Shown in the `action-text` slot. Available when `type==WithButton`. |
95
+ | type | type | `ObcAdviceMessageItemType` | | Display type: `simple` (default) is title, description and timestamp, `with-button` adds a text action button, `with-icon-button` an icon action button, and `inactive` shows the empty state. |
96
+ | size | size | `ObcAdviceMessageItemSize` | | Size variant: `regular` (default) is the compact layout, `tall` is the more spacious one. |
97
+ | showTitle | | `boolean` | `true` | Whether to show the title. If false, the title is hidden even if set. Available when `type!=Inactive`. |
98
+ | showDescription | | `boolean` | `true` | Whether to show the description. If false, the description is hidden even if set. Available when `type!=Inactive`. |
99
+ | showTimestamp | | `boolean` | `true` | Whether to show the primary timestamp. If false, the `time` slot is not rendered. Available when `type!=Inactive`. |
100
+ | hasTimestamp2 | hasTimestamp2 | `boolean` | `false` | Whether to show the secondary timestamp. If true, the `time-secondary` slot is rendered. Available when `type!=Inactive`. |
101
+ | hasSecondaryIcon | hasSecondaryIcon | `boolean` | `false` | Whether to show the secondary icon overlay. If true, the `secondary-icon` slot is rendered. Available when `type!=Inactive`. |
102
+ | emptyText | emptyText | `string` | `'No active advice'` | Text to display in the empty/inactive state. Shown in the `empty` slot when `type="inactive"` or `empty` is true. Available when `type==Inactive`. |
103
+
104
+ ## Events
105
+
106
+ | Event | Type | Description |
107
+ | --- | --- | --- |
108
+ | message-click | `CustomEvent<void>` | When the main message area is clicked |
109
+ | action-click | `CustomEvent<void>` | When the action button (text or icon) is clicked |
110
+
111
+ ## Slots
112
+
113
+ | Slot | Description |
114
+ | --- | --- |
115
+ | secondary-icon | Optional overlay icon for additional status/category (shown when `hasSecondaryIcon` is true) |
116
+
117
+ ## Stories
118
+
119
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--default)
120
+ - [Basic Advice](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--basic-advice)
121
+ - [Advice With Button](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-with-button)
122
+ - [Advice With Icon Button](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-with-icon-button)
123
+ - [No Advice](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--no-advice)
124
+ - [Basic Advice Tall](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--basic-advice-tall)
125
+ - [Advice With Button Tall](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-with-button-tall)
126
+ - [Advice With Icon Button Tall](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-with-icon-button-tall)
127
+ - [No Advice Tall](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--no-advice-tall)
128
+ - [Advice With Secondary Icon](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-with-secondary-icon)
129
+ - [Advice With Both Timestamps](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-with-both-timestamps)
130
+ - [Advice Only Secondary Timestamp](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-only-secondary-timestamp)
131
+ - [Advice No Title](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-no-title)
132
+ - [Advice No Description](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-no-description)
133
+ - [Minimal Advice](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--minimal-advice)
134
+ - [Full Featured Advice](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--full-featured-advice)
135
+ - [Interactive Advice](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--interactive-advice)
136
+ - [Multiple Advice Items](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--multiple-advice-items)
137
+ - [Long Advice Content](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--long-advice-content)
138
+ - [Advice Size Comparison](https://openbridge-next-storybook.web.app/?path=/story/application-components-notifications-advice-message-item--advice-size-comparison)
@@ -0,0 +1,117 @@
1
+ # `<obc-alert-button-item>`
2
+
3
+ The bell button that shows the alert state and count.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-button-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-button-item/alert-button-item.ts)
6
+
7
+ `<obc-alert-button-item>` – The bell button that shows the alert state and count.
8
+
9
+ Shows the alert status as a bell in the style of the given alert type, with
10
+ an optional counter, or as a global counter: one badge per severity, then
11
+ the bell and the total. `obc-alert-button` renders the item next to its
12
+ silence button; use the item on its own where no silence button is needed.
13
+
14
+ ---
15
+
16
+ ## Features
17
+ - **Variants (`type`):** `flat` (icon only), `normal` (bordered, icon and
18
+ counter) and `enhanced` (filled in the severity colour).
19
+ - **Alert types:** `alarm`, `warning`, `caution` and the `level-*` family;
20
+ `nAlerts` of 0 shows the idle bell.
21
+ - **Counter:** `counter` shows `nAlerts` next to the bell, except in `flat`.
22
+ - **Global counter:** `globalCounter` shows the per-severity `counts` as
23
+ badges, then the bell and `nAlerts`, always in the normal style;
24
+ `globalCounterType` picks filled badges or the severity shapes.
25
+ - **Flashing:** `blinking` flashes the bell at the tempo `flashingSpeed`
26
+ resolves (#1224).
27
+ - **Fill height:** `fillHeight` stretches the visible button to the host
28
+ height, as the tall `obc-alert-button` does.
29
+ - **Icon slot:** the `icon` slot replaces the bell with any icon; the item
30
+ then never flashes.
31
+ - **Activated:** `activated` draws the selected style, for a button whose
32
+ panel is showing.
33
+
34
+ ---
35
+
36
+ ## Usage Guidelines
37
+ - Keep `nAlerts` and `counts` consistent; the item shows both as given.
38
+ - The generated label reads e.g. "Alerts, 12, 2 Alarm, 4 Warning,
39
+ 6 Caution"; an `aria-label` on the host replaces it. A visually hidden
40
+ polite live region repeats that name, so a change of counts is announced
41
+ without the button holding focus; the name attribute alone would change
42
+ silently.
43
+ - A native button, so Enter and Space activate it (APG button pattern).
44
+ - A parent that joins another button to the item's end sets the
45
+ `data-group-item-not-last` attribute on the host.
46
+ - **TODO(designer):** the Figma file draws the flat item's hover, active and
47
+ focused variants at 20 % opacity; the item uses the standard flat states.
48
+ - **TODO(designer):** the Figma file defines no flashing for the global
49
+ counter, so it never flashes.
50
+
51
+ ---
52
+
53
+ ## Example
54
+
55
+ ```html
56
+ <obc-alert-button-item alertType="alarm" nAlerts="3" counter blinking></obc-alert-button-item>
57
+ <obc-alert-button-item
58
+ globalCounter
59
+ nAlerts="12"
60
+ .counts=${{countAlarm: 2, countWarning: 4, countCaution: 6}}
61
+ ></obc-alert-button-item>
62
+ ```
63
+
64
+ ## Properties
65
+
66
+ | Property | Attribute | Type | Default | Description |
67
+ | --- | --- | --- | --- | --- |
68
+ | type | type | `ObcAlertButtonType` | | Visual variant: `flat` (icon only), `normal` (default, bordered with the counter) or `enhanced` (filled in the severity colour). Available when `globalCounter==false`. |
69
+ | alertType | alertType | `AlertType \| undefined` | | Alert type that selects the icon and colours: `alarm`, `warning`, `caution` or a `level-*` severity. Available when `globalCounter==false`. |
70
+ | nAlerts | nAlerts | `number` | `0` | Number of active alerts; 0 shows the idle bell and hides the counter. |
71
+ | counter | counter | `boolean` | `false` | Shows `nAlerts` next to the bell (not in `flat`). Available when `globalCounter==false`. |
72
+ | globalCounter | globalCounter | `boolean` | `false` | Shows the per-severity counts, the bell and the total instead of a single alert status. |
73
+ | globalCounterType | globalCounterType | `ObcAlertCounterItemType` | | How the global counter draws each count: `badges` (filled severity badges, default) or `alert-level` (the severity shape beside the count). Available when `globalCounter==true`. |
74
+ | counts | | `AlertCounts` | `{}` | Alert count per severity for the global counter badges. Available when `globalCounter==true`. |
75
+ | shelvedCount | shelvedCount | `number` | `0` | Number of shelved alerts, shown after the global counter badges. Available when `globalCounter==true`. |
76
+ | blinking | blinking | `boolean` | `false` | Flashes the bell while there are active alerts of a flashing alert type. Available when `globalCounter==false`. |
77
+ | flashingSpeed | flashingSpeed | `FlashingSpeed` | | Flash tempo while `blinking` is on: `default` resolves from `alertType`, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. Available when `blinking==true`. |
78
+ | fillHeight | fillHeight | `boolean` | `false` | Stretches the visible button to the host height instead of the 32 px visual target. |
79
+ | activated | activated | `boolean` | `false` | Draws the button in the selected style, for a button whose panel is showing. |
80
+ | ariaLabel | aria-label | `string \| null` | `null` | Accessible name forwarded to the inner `<button>`, mapped to the `aria-label` attribute; replaces the generated label. `aria-labelledby` is not supported: ID references cannot cross the shadow boundary. |
81
+ | ariaExpanded | aria-expanded | `string \| null` | `null` | Whether the panel the button opens is showing, forwarded to the inner `<button>` as `aria-expanded`; mapped to the `aria-expanded` attribute. Set it with `activated` from the flag that drives the panel; left unset, the button announces no panel. |
82
+ | resolvedFlashingSpeed | | `ResolvedFlashingSpeed` | | |
83
+
84
+ ## Events
85
+
86
+ | Event | Type | Description |
87
+ | --- | --- | --- |
88
+ | click | | Fired when the button is clicked. |
89
+
90
+ ## Slots
91
+
92
+ | Slot | Description |
93
+ | --- | --- |
94
+ | icon | Replaces the bell. The flash cross-fades two bells, so a slotted icon never flashes and `blinking` has no effect while the slot is filled. |
95
+
96
+ ## Stories
97
+
98
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--default)
99
+ - [Without Counter](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--without-counter)
100
+ - [Flat](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--flat)
101
+ - [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--enhanced)
102
+ - [No Alerts](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--no-alerts)
103
+ - [Blinking](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--blinking)
104
+ - [Enabled Variants](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--enabled-variants): The Enabled row of the Figma Alert button item: flat and normal without alerts; flat, normal and enhanced for caution, warning and alarm; the global counter.
105
+ - [Level Severities](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--level-severities)
106
+ - [Global Counter](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--global-counter)
107
+ - [Global Counter With Shelved](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--global-counter-with-shelved)
108
+ - [Global Counter Alert Level](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--global-counter-alert-level)
109
+ - [Global Counter Alert Level With Shelved](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--global-counter-alert-level-with-shelved)
110
+ - [Global Counter Level Severities](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--global-counter-level-severities)
111
+ - [Fill Height](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--fill-height)
112
+ - [Activated](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--activated)
113
+ - [Slotted Icon](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button-item--slotted-icon): The slot takes any icon; the item then never flashes.
114
+
115
+ ## See also
116
+
117
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,134 @@
1
+ # `<obc-alert-button>`
2
+
3
+ A compact, icon-based button for displaying alert or notification status and count.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-button/alert-button.ts)
6
+
7
+ `<obc-alert-button>` – A compact, icon-based button for displaying alert or notification status and count.
8
+
9
+ This component provides a visual indicator for active alerts or notifications, supporting different alert types (such as alarm, warning, or caution) and an optional counter badge. It can also include a secondary "silence" action button for muting alerts, adapting its layout responsively for different screen widths.
10
+
11
+ Appears in toolbars or notification areas to give users a quick overview of alert status and provide direct access to alert-related actions. The bell itself is an `obc-alert-button-item`; use the item directly where no silence button or breakpoints are needed, or for its global counter.
12
+
13
+ ## Features
14
+
15
+ - **Variants:**
16
+ - **Flat:** Minimal, icon-only button for space-constrained layouts.
17
+ - **Normal:** Standard button with icon and optional alert counter.
18
+ - **Enhanced:** Visually prominent button for high-priority alerts, with accent styling.
19
+ - **Alert Types:** Supports `alarm`, `warning`, `caution`, or no alert (idle). Icon and color adapt to the alert type.
20
+ - **Alert Counter:** Optional badge displays the number of active alerts (except in flat mode).
21
+ - **Global Counter:** `globalCounter` shows the per-severity `counts` and an optional `shelvedCount` before the bell and the total, as `obc-alert-button-item` draws them; `globalCounterType` picks filled badges or the severity shapes.
22
+ - **Silence Button:** Optional secondary button to mute or silence alerts, shown when enabled and at sufficient width.
23
+ - **Blinking Animation:** Can animate (blink) to draw attention to active alerts (except for caution type).
24
+ - **Responsive Layout:** Automatically switches to flat mode below a configurable width, and hides the silence button below another configurable width.
25
+ - **Large Size Option:** Increases button height and padding for touch-friendly or prominent use.
26
+
27
+ ## Usage Guidelines
28
+
29
+ Use `<obc-alert-button>` to provide a persistent, easily accessible indicator of alert or notification status. Ideal for toolbars, headers, or notification panels where users need to be aware of active alerts and may need to silence them quickly.
30
+
31
+ - Use the counter to show the number of active alerts when relevant.
32
+ - Use the silence button to provide a quick mute action, but only when space allows.
33
+ - Choose the variant (`flat`, `normal`, `enhanced`) based on available space and the importance of the alert.
34
+ - The blinking feature should be reserved for urgent or high-priority alerts to avoid unnecessary distraction.
35
+
36
+ **TODO(designer):** Confirm if there are recommended default behaviors for auto-blinking, and if there are any design constraints for when to use each variant.
37
+
38
+ **TODO(designer):** The Figma Alert button has no flat Global counter, so below `flatMaxBreakpointPx` the button shows the flat bell without the counts.
39
+
40
+ ## Events
41
+
42
+ - `click-alert` – Fired when the main alert button is clicked.
43
+ - `click-silence` – Fired when the silence button is clicked.
44
+
45
+ ## Best Practices & Constraints
46
+
47
+ - Only show the counter when there are active alerts and the button is not in flat mode.
48
+ - The silence button is only visible if enabled, the width is above the minimum breakpoint, and the button is not flat.
49
+ - Blinking should be used sparingly to avoid overwhelming the user.
50
+ - Use the large variant for touch interfaces or when the button needs to stand out.
51
+
52
+ ## Example
53
+
54
+ ```html
55
+ <obc-alert-button
56
+ nAlerts="3"
57
+ alertType="alarm"
58
+ type="enhanced"
59
+ counter
60
+ showSilenceButton
61
+ blinking
62
+ large
63
+ flatMaxBreakpointPx="600"
64
+ silenceButtonMinBreakpointPx="600"
65
+ ></obc-alert-button>
66
+ ```
67
+
68
+ In this example, the button shows an alarm icon, a counter badge with "3", is styled as enhanced, blinks to indicate urgency, and includes a silence button if the width allows.
69
+
70
+ ## Properties
71
+
72
+ | Property | Attribute | Type | Default | Description |
73
+ | --- | --- | --- | --- | --- |
74
+ | nAlerts | nAlerts | `number` | `0` | Number of active alerts shown in the counter; 0 shows the idle state. |
75
+ | alertType | alertType | `AlertType \| undefined` | | Alert type that selects the icon and colours: `alarm`, `warning`, `caution`, a `level-*` severity, or unset for the idle state. |
76
+ | type | type | | | Visual variant: `flat` (icon only), `normal` (default, icon and optional counter) or `enhanced` (emphasized for high-priority alerts). |
77
+ | large | large | `boolean` | `false` | Increases the button height and padding for touch-friendly or prominent use. |
78
+ | showSilenceButton | showSilenceButton | `boolean` | `false` | Shows the silence button when the width is at least `silenceButtonMinBreakpointPx` and the button is not flat. |
79
+ | silenceButtonDisabled | silenceButtonDisabled | `boolean` | `false` | Disables the silence button when true. Available when `showSilenceButton==true`. |
80
+ | counter | counter | `boolean` | `false` | Shows the alert counter when there are active alerts and the button is not flat. |
81
+ | globalCounter | globalCounter | `boolean` | `false` | Shows the per-severity counts and the shelved count before the bell and the total (the item's global counter); a flat button shows the plain bell. |
82
+ | globalCounterType | globalCounterType | `ObcAlertCounterItemType` | | How the global counter draws each count: `badges` (filled severity badges, default) or `alert-level` (the severity shape beside the count). Available when `globalCounter==true`. |
83
+ | counts | | `AlertCounts` | `{}` | Alert count per severity for the global counter badges (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts). Available when `globalCounter==true`. |
84
+ | shelvedCount | shelvedCount | `number` | `0` | Number of shelved alerts, shown after the global counter badges; hidden at zero. Available when `globalCounter==true`. |
85
+ | blinking | blinking | `boolean` | `false` | Flashes the bell for active alerts of a flashing alert type (never for caution). |
86
+ | flashingSpeed | flashingSpeed | `FlashingSpeed` | | Flash tempo while `blinking` is on: `default` resolves from `alertType`, `fast`, `slow`, `very-slow` force a tempo, `fixed` never flashes. Available when `blinking==true`. |
87
+ | flatMaxBreakpointPx | flatMaxBreakpointPx | `number` | `0` | Window width in px below which a `normal` or `enhanced` button switches to flat mode. Available when `type!=flat`. |
88
+ | silenceButtonMinBreakpointPx | silenceButtonMinBreakpointPx | `number` | `0` | Minimum window width in px for showing the silence button. Available when `showSilenceButton==true`. |
89
+
90
+ ## Events
91
+
92
+ | Event | Type | Description |
93
+ | --- | --- | --- |
94
+ | click-alert | `CustomEvent<void>` | Fired when the main alert button is clicked. |
95
+ | click-silence | `CustomEvent<void>` | Fired when the silence button is clicked. |
96
+
97
+ ## Slots
98
+
99
+ None.
100
+
101
+ ## Stories
102
+
103
+ - [Dynamic Sizing To Flat](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--dynamic-sizing-to-flat)
104
+ - [Dynamic Sizing To Hide Silence](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--dynamic-sizing-to-hide-silence)
105
+ - [Flat](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--flat)
106
+ - [Normal](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal)
107
+ - [Flat Alarm](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--flat-alarm)
108
+ - [Normal Alarm](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-alarm)
109
+ - [Normal Alarm Blinking](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-alarm-blinking)
110
+ - [Enhanced Alarm](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--enhanced-alarm)
111
+ - [Enhanced Alarm Blinking](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--enhanced-alarm-blinking)
112
+ - [Normal Alarm Silence](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-alarm-silence)
113
+ - [Normal Alarm Silence Disabled](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-alarm-silence-disabled)
114
+ - [Normal Alarm Silence Large](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-alarm-silence-large)
115
+ - [Flat Warning](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--flat-warning)
116
+ - [Flat Warning Blinking](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--flat-warning-blinking)
117
+ - [Normal Warning](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-warning)
118
+ - [Enhanced Warning](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--enhanced-warning)
119
+ - [Flat Caution](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--flat-caution)
120
+ - [Normal Caution](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-caution)
121
+ - [Enhanced Caution](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--enhanced-caution)
122
+ - [Enhanced Level Critical](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--enhanced-level-critical)
123
+ - [Normal Level High](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-level-high)
124
+ - [Normal Level Medium](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-level-medium)
125
+ - [Flat Level Low](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--flat-level-low)
126
+ - [Normal Level Diagnostic](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--normal-level-diagnostic)
127
+ - [Global Counter](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--global-counter)
128
+ - [Global Counter Shelved Silence](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--global-counter-shelved-silence)
129
+ - [Global Counter Alert Level](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--global-counter-alert-level)
130
+ - [Global Counter Alert Level Shelved Silence](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-button--global-counter-alert-level-shelved-silence)
131
+
132
+ ## See also
133
+
134
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,74 @@
1
+ # `<obc-alert-counter-item>`
2
+
3
+ A row of alert counts, one badge per severity.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-counter-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-counter-item/alert-counter-item.ts)
6
+
7
+ `<obc-alert-counter-item>` – A row of alert counts, one badge per severity.
8
+
9
+ Renders a large `obc-badge` for every severity with a count above zero, most
10
+ severe first, followed by an optional shelved count. Nothing renders when
11
+ nothing is counted.
12
+
13
+ ---
14
+
15
+ ## Features
16
+ - **Two types:** `badges` draws filled badges in the severity colour;
17
+ `alert-level` draws flat badges with the severity glyph.
18
+ - **Every severity:** `counts` takes the whole `AlertType` vocabulary,
19
+ including the `level-*` family, ordered by `ALERT_SEVERITY_PRIORITY`.
20
+ - **Shelved count:** `shelvedCount` adds a neutral badge with the timer icon
21
+ at the end, the icon the Figma counter swaps into its shelved badge.
22
+ - **Accessible summary:** the row is announced as one image labelled with
23
+ the counts, e.g. "2 Alarm, 4 Warning, 6 Caution".
24
+
25
+ ---
26
+
27
+ ## Usage Guidelines
28
+ - Show how many alerts are outstanding per severity in a compact space;
29
+ `obc-alert-button-item` nests the counter for its global counter.
30
+ - Pass the counts as one object: `.counts=${{countAlarm: 2, countWarning: 4}}`.
31
+ - The counter is display-only: it renders no button and fires no events.
32
+ - For a framed per-subsystem summary with a label, see
33
+ `obc-alert-subsystem-counter`.
34
+ - **TODO(designer):** the Figma component also has an Unacked counter type;
35
+ how its icons map to counts is not defined yet.
36
+ - **TODO(designer):** the Figma component draws alarm, warning and caution;
37
+ critical and diagnostic use the `level-critical` and `level-diagnostic`
38
+ badges of `obc-badge` (#1389).
39
+
40
+ ---
41
+
42
+ ## Example
43
+
44
+ ```html
45
+ <obc-alert-counter-item
46
+ .counts=${{countAlarm: 2, countWarning: 4, countCaution: 6}}
47
+ shelvedCount="9"
48
+ ></obc-alert-counter-item>
49
+ ```
50
+
51
+ ## Properties
52
+
53
+ | Property | Attribute | Type | Default | Description |
54
+ | --- | --- | --- | --- | --- |
55
+ | type | type | `ObcAlertCounterItemType` | | How each count is drawn: `badges` (filled severity badges, default) or `alert-level` (flat badges with the severity glyph). |
56
+ | counts | | `AlertCounts` | `{}` | Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown. |
57
+ | shelvedCount | shelvedCount | `number` | `0` | Number of shelved alerts, shown as a neutral badge with the timer icon after the severities; hidden at zero. |
58
+
59
+ ## Events
60
+
61
+ None.
62
+
63
+ ## Slots
64
+
65
+ None.
66
+
67
+ ## Stories
68
+
69
+ - [Badges](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-counter-item--badges)
70
+ - [Badges With Shelved](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-counter-item--badges-with-shelved)
71
+ - [Alert Level](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-counter-item--alert-level)
72
+ - [Alert Level With Shelved](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-counter-item--alert-level-with-shelved)
73
+ - [Level Severities](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-counter-item--level-severities)
74
+ - [Level Severities Alert Level](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-counter-item--level-severities-alert-level)
@@ -0,0 +1,45 @@
1
+ # `<obc-alert-detail-page>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/pages-alert-detail-page--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/pages/alert-detail-page/alert-detail-page.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | type | type | `AlertDetailPageType` | | |
12
+ | alert | | `Alert` | | |
13
+ | hasNote | hasNote | `boolean` | `false` | |
14
+ | hasActions | hasActions | `boolean` | `false` | |
15
+ | hasTagId | hasTagId | `boolean` | `false` | |
16
+ | hasCategory | hasCategory | `boolean` | `false` | |
17
+ | hasActivated | hasActivated | `boolean` | `false` | |
18
+ | hasTimer | hasTimer | `boolean` | `false` | |
19
+ | hasAcknowledged | hasAcknowledged | `boolean` | `false` | |
20
+ | hasAcknowledgedBy | hasAcknowledgedBy | `boolean` | `false` | |
21
+ | hasRectified | hasRectified | `boolean` | `false` | |
22
+ | hasShelvingTimer | hasShelvingTimer | `boolean` | `false` | |
23
+ | hasShelvedBy | hasShelvedBy | `boolean` | `false` | |
24
+ | hasReadoutGraph | hasReadoutGraph | `boolean` | `false` | |
25
+ | timeFormatter | | `(time: Date) => string` | | |
26
+ | timeSinceFormatter | | `TimeSinceFn` | `formatTimeSince` | |
27
+ | alertStatusIcon | | | | |
28
+
29
+ ## Events
30
+
31
+ None.
32
+
33
+ ## Slots
34
+
35
+ None.
36
+
37
+ ## Stories
38
+
39
+ - [Page](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-detail-page--page)
40
+ - [Card](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-detail-page--card)
41
+ - [Modal](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-detail-page--modal)
42
+ - [Resolved](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-detail-page--resolved)
43
+ - [Shelved](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-detail-page--shelved)
44
+ - [Blocked](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-detail-page--blocked)
45
+ - [No Readout Graph](https://openbridge-next-storybook.web.app/?path=/story/pages-alert-detail-page--no-readout-graph)
@@ -0,0 +1,53 @@
1
+ # `<obc-alert-floating-item>`
2
+
3
+ A floating alert message that overlays the interface with a built-in alert icon.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-alert-floating-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/alert-floating-item/alert-floating-item.ts)
6
+
7
+ `<obc-alert-floating-item>` – A floating alert message that overlays the interface with a built-in alert icon.
8
+
9
+ ## Properties
10
+
11
+ | Property | Attribute | Type | Default | Description |
12
+ | --- | --- | --- | --- | --- |
13
+ | type | type | | | |
14
+ | direction | direction | | | |
15
+ | hasTimestamp | hasTimestamp | `boolean` | `false` | |
16
+ | hasDay | hasDay | `boolean` | `false` | |
17
+ | action | action | `boolean` | `false` | |
18
+ | action2 | action2 | `boolean` | `false` | |
19
+ | lineType | lineType | | | |
20
+
21
+ ## Events
22
+
23
+ | Event | Type | Description |
24
+ | --- | --- | --- |
25
+ | action-click | `CustomEvent` | When the primary action button is clicked. |
26
+ | action2-click | `CustomEvent` | When the secondary action button is clicked. |
27
+ | dismiss-click | `CustomEvent` | When the alert message is dismissed. |
28
+
29
+ ## Slots
30
+
31
+ | Slot | Description |
32
+ | --- | --- |
33
+ | primary-icon | Custom main icon, projected into the child only when `type="application"` (the built-in alert icon is used otherwise). |
34
+ | title | Title or heading of the alert message. |
35
+ | description | Detailed message text. |
36
+ | time | Timestamp label (e.g., "09:12:46"). |
37
+ | day | Day label (e.g., "Yesterday"). |
38
+ | action | Primary action button label/content. |
39
+ | action2 | Secondary action button label/content. |
40
+
41
+ ## Stories
42
+
43
+ - [Alert Vertical Single Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-vertical-single-regular)
44
+ - [Alert Vertical Multi Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-vertical-multi-regular)
45
+ - [Alert Vertical Single Application](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-vertical-single-application)
46
+ - [Alert Vertical Multi Application](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-vertical-multi-application)
47
+ - [Alert Horizontal Single Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-horizontal-single-regular)
48
+ - [Alert Horizontal Multi Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-horizontal-multi-regular)
49
+ - [Alert Horizontal Single Application](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-horizontal-single-application)
50
+ - [Alert Horizontal Multi Application](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-horizontal-multi-application)
51
+ - [Alert All Props On](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-all-props-on)
52
+ - [Alert All Props Off](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-all-props-off)
53
+ - [Alert Long Message](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-alert-floating-item--alert-long-message)