@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,69 @@
1
+ # `<obc-app-menu>`
2
+
3
+ A vertical application menu component with integrated search and customizable app buttons.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-menus-app-menu--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/app-menu/app-menu.ts)
6
+
7
+ `<obc-app-menu>` – A vertical application menu component with integrated search and customizable app buttons.
8
+
9
+ Provides a structured container for displaying a grid of application buttons, typically used for quick navigation or launching key features. Includes a built-in search input at the top to filter or locate specific applications within the menu.
10
+
11
+ ## Features
12
+ - **Integrated Search:** Includes a search field with a leading icon, allowing users to filter or search for menu items.
13
+ - **Customizable Content:** Uses a default slot to accept any number of `<obc-app-button>` elements or other custom content.
14
+ - **Grid Layout:** Arranges child buttons in a responsive grid (4 columns by default) for efficient use of space.
15
+ - **Icon Support:** Each app button can display an icon via its own slot, supporting a wide range of visual representations.
16
+ - **Event Emission:** Dispatches a `search` event whenever the search input changes, enabling live filtering or external handling.
17
+
18
+ ## Usage Guidelines
19
+ Use `<obc-app-menu>` to present a collection of application shortcuts, tools, or frequently accessed features in a compact, visually organized menu. Ideal for dashboards, launchers, or side panels where users need to quickly access multiple apps or modules.
20
+
21
+ The search input is intended for filtering the visible buttons or triggering search-related logic externally. Place `<obc-app-button>` elements as children to represent each app or function.
22
+
23
+ **TODO(designer):** Clarify if the menu is intended only for application launchers, or if it can be used for other grouped actions. Also, specify any recommended maximum number of buttons or best practices for grouping.
24
+
25
+ ## Slots
26
+ | Slot Name | Renders When... | Purpose |
27
+ |-----------|-----------------|---------|
28
+ | (default) | Always | Place one or more `<obc-app-button>` elements or custom content to populate the menu grid. |
29
+
30
+ ## Events
31
+ - `search` – Fired whenever the user types in the search input. The event's `detail` contains the current input value.
32
+
33
+ ## Example
34
+ ```
35
+ <obc-app-menu>
36
+ <obc-app-button label="Radar" checked>
37
+ <obi-placeholder slot="icon"></obi-placeholder>
38
+ </obc-app-button>
39
+ <obc-app-button label="Maps">
40
+ <obi-placeholder slot="icon"></obi-placeholder>
41
+ </obc-app-button>
42
+ <!-- More app buttons... -->
43
+ </obc-app-menu>
44
+ ```
45
+ In this example, the menu displays a search bar and a grid of app buttons, each with an icon.
46
+
47
+ ## Properties
48
+
49
+ | Property | Attribute | Type | Default | Description |
50
+ | --- | --- | --- | --- | --- |
51
+ | softDismiss | softDismiss | `boolean` | `false` | Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. |
52
+ | open | open | `boolean` | `false` | Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`. Available when `softDismiss==true`. |
53
+
54
+ ## Events
55
+
56
+ | Event | Type | Description |
57
+ | --- | --- | --- |
58
+ | search | `CustomEvent<string>` | Fired when the search input value changes, with the current value in `detail`. |
59
+ | close | `CustomEvent<void>` | Fired when the menu closed on its own, from a click outside, `Escape`, or another menu opening. `open` is already `false` by the time it arrives; reset the flag you bind to `open` here, or the next click on the button finds it still set and asks a closed menu to close. |
60
+
61
+ ## Slots
62
+
63
+ | Slot | Description |
64
+ | --- | --- |
65
+ | (default) | Default slot for app buttons or custom menu items |
66
+
67
+ ## Stories
68
+
69
+ - [Primary](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-app-menu--primary)
@@ -0,0 +1,333 @@
1
+ # `<obc-area-graph>`
2
+
3
+ Area graph component - a line chart that is always filled.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/bars-and-graphs-area-graph--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/bars-graphs/area-graph/area-graph.ts)
6
+
7
+ Area graph component - a line chart that is always filled.
8
+ Extends the base line/area chart with fill behavior built-in.
9
+
10
+ Use this component when you want area charts with semitransparent, solid, or threshold fill modes.
11
+ For non-filled line charts, use `<obc-line-graph>` instead.
12
+
13
+ All properties and features from the base class are available:
14
+ - Single or multi-series data
15
+ - Time and category axes
16
+ - Stacked mode for multi-series
17
+ - Threshold fill (single-series only)
18
+ - Theme-aware colors
19
+ - Responsive sizing
20
+ - External axis support via slots
21
+
22
+ ## Usage Examples
23
+
24
+ ### Basic semitransparent area graph (default)
25
+ ```html
26
+ <obc-area-graph></obc-area-graph>
27
+ <script>
28
+ const chart = document.querySelector('obc-area-graph');
29
+ chart.data = [
30
+ {label: 'Jan', value: 10},
31
+ {label: 'Feb', value: 14},
32
+ {label: 'Mar', value: 12}
33
+ ];
34
+ chart.fillMode = 'semitransparent'; // default
35
+ chart.height = 256;
36
+ </script>
37
+ ```
38
+
39
+ ### Solid fill area graph
40
+ ```html
41
+ <obc-area-graph fillMode="solid"></obc-area-graph>
42
+ ```
43
+
44
+ ### Stacked area chart
45
+ ```html
46
+ <obc-area-graph></obc-area-graph>
47
+ <script>
48
+ const chart = document.querySelector('obc-area-graph');
49
+ chart.datasets = [
50
+ {label: 'Series A', data: [2, 3, 4, 3, 5]},
51
+ {label: 'Series B', data: [1, 2, 3, 2, 4]},
52
+ {label: 'Series C', data: [3, 2, 1, 2, 3]}
53
+ ];
54
+ chart.fillMode = 'solid';
55
+ chart.stacked = true;
56
+ chart.legend = true;
57
+ </script>
58
+ ```
59
+
60
+ ### Threshold fill
61
+ Single-series only. Automatically calculates midpoint from data min/max.
62
+ ```html
63
+ <obc-area-graph></obc-area-graph>
64
+ <script>
65
+ const chart = document.querySelector('obc-area-graph');
66
+ chart.data = [{label: '1', value: 20}, {label: '2', value: 45}, {label: '3', value: 35}];
67
+ chart.fillMode = 'threshold'; // Single-series only
68
+ </script>
69
+ ```
70
+
71
+ ### Multi-series with time axis
72
+ ```html
73
+ <obc-area-graph></obc-area-graph>
74
+ <script>
75
+ const chart = document.querySelector('obc-area-graph');
76
+ chart.xAxisType = 'time';
77
+ chart.legend = true;
78
+ chart.datasets = [
79
+ {label: 'CPU', data: [{x: '2025-01-01T10:00', y: 45}, {x: '2025-01-01T11:00', y: 52}]},
80
+ {label: 'Memory', data: [{x: '2025-01-01T10:00', y: 65}, {x: '2025-01-01T11:00', y: 68}]}
81
+ ];
82
+ </script>
83
+ ```
84
+
85
+ Abstract base class for line and area chart components built on Chart.js.
86
+
87
+ ## Concrete implementations
88
+ - `<obc-line-graph>`: Line chart (non-filled)
89
+ - `<obc-area-graph>`: Area chart with fill modes (semitransparent, solid, threshold)
90
+
91
+ ## Features
92
+ - **Single or multi-series**: Use `data` for simple single-series or `datasets` for multi-series charts
93
+ - **Category, time and number axes**: `category` (labels, evenly spaced), `time` (epoch ms,
94
+ ISO strings, `Date` or Temporal objects — positioned proportionally, so uneven intervals
95
+ render unevenly) and `number` (plain numeric x-values on a linear scale)
96
+ - **Line styles**: Choose `smooth` (curved), `straight`, or `stepped` line rendering
97
+ - **Fill modes**: Area fills with `semitransparent`, `solid`, or `threshold` (red/blue above/below midpoint)
98
+ - **Stacked charts**: Enable `stacked` for multi-series datasets to stack values on y-axis
99
+ - **Flexible axes**: Single y-axis via `yAxisPosition` or multi-axis via `yAxes` for complex charts
100
+ - **Theme-aware**: Automatically updates colors on theme changes using CSS variables
101
+ - **Responsive sizing**: Fixed height with 1.5:1 aspect ratio (e.g., 320px height → 480px width)
102
+ - **Grid & ticks**: Toggle grid lines (`showGrid`, `showGridX`, `showGridY`) and tick marks (`showTickMarks`)
103
+ - **Legend support**: Optional HTML legend showing series labels with `legend` property
104
+ - **External axis support**: via slots
105
+ - **Color priority**: Set `priority` to `Priority.enhanced` to use the blue/enhanced
106
+ color palette instead of the default gray/regular palette (default: `Priority.regular`)
107
+
108
+ ## Size Behavior
109
+ - Above 192px: Shows labels, tick marks, and grid lines with standard padding
110
+ - Below 192px: Hides labels/ticks and uses edge-to-edge rendering for compact display
111
+
112
+ ## Examples
113
+
114
+ Basic single-series with category axis:
115
+ ```html
116
+ <obc-line-graph></obc-line-graph>
117
+ <script>
118
+ const chart = document.querySelector('obc-line-graph');
119
+ chart.data = [
120
+ {label: 'Jan', value: 10},
121
+ {label: 'Feb', value: 14},
122
+ {label: 'Mar', value: 12}
123
+ ];
124
+ chart.unit = 'kW';
125
+ chart.height = 256;
126
+ </script>
127
+ ```
128
+
129
+ Multi-series with time axis and legend:
130
+ ```html
131
+ <obc-line-graph></obc-line-graph>
132
+ <script>
133
+ const chart = document.querySelector('obc-line-graph');
134
+ chart.xAxisType = 'time';
135
+ chart.timeDisplay = 'date';
136
+ chart.legend = true;
137
+ chart.datasets = [
138
+ {label: 'Temperature', data: [{x: '2025-01-01', y: 20}, {x: '2025-01-02', y: 22}]},
139
+ {label: 'Humidity', data: [{x: '2025-01-01', y: 65}, {x: '2025-01-02', y: 68}]}
140
+ ];
141
+ </script>
142
+ ```
143
+
144
+ Single-series with time axis (uneven intervals position proportionally;
145
+ x accepts epoch ms, ISO strings, Date or Temporal objects):
146
+ ```html
147
+ <obc-line-graph></obc-line-graph>
148
+ <script>
149
+ const chart = document.querySelector('obc-line-graph');
150
+ chart.xAxisType = 'time';
151
+ chart.timeDisplay = 'minutes';
152
+ chart.data = [
153
+ {x: '2026-07-06T10:00:00Z', value: 10},
154
+ {x: new Date('2026-07-06T10:03:00Z'), value: 14},
155
+ {x: Temporal.Instant.from('2026-07-06T10:15:00Z'), value: 12}
156
+ ];
157
+ </script>
158
+ ```
159
+
160
+ Single-series with numeric x-axis:
161
+ ```html
162
+ <obc-line-graph></obc-line-graph>
163
+ <script>
164
+ const chart = document.querySelector('obc-line-graph');
165
+ chart.xAxisType = 'number';
166
+ chart.data = [
167
+ {x: 0, value: 2},
168
+ {x: 2.5, value: 3},
169
+ {x: 10, value: 6}
170
+ ];
171
+ </script>
172
+ ```
173
+
174
+ Stacked area chart with solid fill:
175
+ ```html
176
+ <obc-line-graph></obc-line-graph>
177
+ <script>
178
+ const chart = document.querySelector('obc-line-graph');
179
+ chart.datasets = [
180
+ {label: 'Series A', data: [2, 3, 4, 3, 5]},
181
+ {label: 'Series B', data: [1, 2, 3, 2, 4]},
182
+ {label: 'Series C', data: [3, 2, 1, 2, 3]}
183
+ ];
184
+ chart.fillMode = 'solid';
185
+ chart.stacked = true;
186
+ chart.legend = true;
187
+ </script>
188
+ ```
189
+
190
+ Threshold fill (single-series only):
191
+ ```html
192
+ <obc-line-graph></obc-line-graph>
193
+ <script>
194
+ const chart = document.querySelector('obc-line-graph');
195
+ chart.data = [{label: '1', value: 20}, {label: '2', value: 45}, {label: '3', value: 35}];
196
+ chart.fillMode = 'threshold';
197
+ </script>
198
+ ```
199
+
200
+ Multi-axis chart with right-side y-axis:
201
+ ```html
202
+ <obc-line-graph></obc-line-graph>
203
+ <script>
204
+ const chart = document.querySelector('obc-line-graph');
205
+ chart.yAxes = [
206
+ {id: 'y-temp', position: 'left', min: 0, max: 100},
207
+ {id: 'y-pressure', position: 'right', min: 0, max: 10}
208
+ ];
209
+ chart.datasets = [
210
+ {label: 'Temperature', data: [20, 25, 30], yAxisID: 'y-temp'},
211
+ {label: 'Pressure', data: [2, 3, 2.5], yAxisID: 'y-pressure'}
212
+ ];
213
+ </script>
214
+ ```
215
+
216
+ ## Properties
217
+
218
+ | Property | Attribute | Type | Default | Description |
219
+ | --- | --- | --- | --- | --- |
220
+ | fillMode | fillMode | `AreaFillMode` | | Fill rendering mode: `semitransparent` (default) fills at 50% alpha, `solid` fills opaque, and `threshold` colours above and below the threshold — single-series only, falling back to semitransparent when the chart has more than one series. |
221
+ | stacked | stacked | `boolean` | `false` | Stack multi-series datasets vertically on y-axis. Ignored for single-series and threshold fill mode. |
222
+ | advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
223
+ | adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
224
+ | adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
225
+ | data | | `ChartLineDataItem[]` | `[]` | Simple single-series data. `{label, value}` items for the category axis; `{x, value}` items for time/number axes (x: epoch ms, ISO string, Date, or Temporal object). Points are drawn in array order (no sorting). |
226
+ | datasets | | `ChartLineDataset[] \| undefined` | `undefined` | Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. Explicit Chart.js styling on an entry (`borderColor`, `backgroundColor`, `borderDash`, `borderCapStyle`, `fill`, `order`, `pointRadius`) wins over the derived defaults (`fill: true` selects the chart's own `'start'`); `ellipseClip` clips the entry's drawing to an ellipse: centre and `rx` in data units, `ry` in data units when given, else round in pixels. |
227
+ | labels | | `(string \| number)[] \| undefined` | `undefined` | Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` |
228
+ | colors | | `string[]` | `[]` | Custom color palette (CSS variable names or color strings). |
229
+ | legend | legend | `boolean` | `false` | Show HTML legend below chart with series labels and colors. |
230
+ | showDebugOverlay | showDebugOverlay | `boolean` | `false` | Development mode: show visual debug overlay with dimension guides. |
231
+ | width | width | `number` | `480` | Width of the chart in pixels. Default: 480. |
232
+ | height | height | `number` | `320` | Height of the chart in pixels. Default: 320. |
233
+ | fixedAspectRatioScaling | fixedAspectRatioScaling | `boolean` | `false` | Enable fixed aspect ratio scaling mode. When true, width/height properties define the aspect ratio (not actual pixels). The component fills 100% of parent width and calculates height from aspect ratio. When false (default), width/height are used as actual pixel dimensions. |
234
+ | scaleReferenceSize | scaleReferenceSize | `number` | `384` | Reference size for external scales when using fixedAspectRatioScaling. This value is passed down to external scales to determine their 1:1 Figma design size. At this reference size, scales render at native size; above/below they scale proportionally. Default: 384 (matches Figma design baseline). |
235
+ | xAxisType | xAxisType | `XAxisType` | | X-axis mode: 'category' for labeled, evenly spaced data points; 'time' for time-based data positioned proportionally; 'number' for plain numeric x-values. |
236
+ | yAxisPosition | yAxisPosition | `YAxisPosition` | | Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. |
237
+ | yAxes | | `ChartLineYAxisConfig[] \| undefined` | `undefined` | Multiple y-axis definitions for complex multi-axis charts. Each entry accepts `min`/`max` to pin the range and `reverse` to plot `min` at the top; the primary axis' `reverse` cascades to slotted left/right scales. |
238
+ | xAxis | | `ChartLineXAxisConfig \| undefined` | `undefined` | Pinned x range (`min`/`max`) for time and number axes. Without it the axis spans exactly the data, so a window that is still filling stretches across the full width. In `minutes` display `max` is the `0min` reference. Available when `xAxisType!=category`. |
239
+ | xMarker | | `ChartLineXMarker \| undefined` | `undefined` | Vertical marker at an x value: solid from the plot top to the dataset's value there (`datasetIndex`, default 0), dotted below it, with a dot on the value unless `showDot` is false. Drawn in the dataset's line colour. |
240
+ | yMarker | | `ChartLineYMarker \| undefined` | `undefined` | Horizontal 2px marker across the plot at a y value, in the dataset's line colour (`datasetIndex`, default 0). |
241
+ | showGrid | showGrid | `boolean` | `false` | Show grid lines. |
242
+ | showGridX | showGridX | `boolean` | `false` | Show vertical grid lines (x-axis). Default: false. Available when `showGrid==true`. |
243
+ | showGridY | showGridY | `boolean` | `false` | Show horizontal grid lines (y-axis). Default: false. Available when `showGrid==true`. |
244
+ | showTickMarks | showTickMarks | `boolean` | `false` | Show axis tick marks and labels. |
245
+ | hasLabelPadding | | `boolean` | `true` | Reserves canvas padding for axis tick labels on the sides that have no slotted external scale. `false` renders those sides edge-to-edge and hides the tick labels so they cannot be clipped, and it also suppresses the automatic edge-to-edge switch below the 192px threshold, removing the padding jump at that crossing. Set it when a host owns the framing and never wants axis labels, as `obc-automation-tank` does. |
246
+ | rangeLabels | rangeLabels | `RangeLabels` | | Labels kept below the 192px threshold, where the axis labels are otherwise hidden: 'y' draws min, max and (inside the range) 0 in a gutter on the y-axis side; 'x' draws the first and last x value in a bottom gutter; 'xy' both. Ignored when `hasLabelPadding` is false. Available when `hasLabelPadding==true`. |
247
+ | showPoints | showPoints | `boolean` | `false` | Show point markers on data points. Default: false. |
248
+ | lineMode | lineMode | `LineMode` | | Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. |
249
+ | unit | unit | `string` | `''` | Unit label displayed in tooltips (e.g., 'kW', 'kg', '%'). |
250
+ | timeDisplay | timeDisplay | `TimeDisplay` | | Time axis label format: 'date' (full date/time) or 'minutes' (relative). Available when `xAxisType==time`. |
251
+ | xTicksLimit | xTicksLimit | `number \| undefined` | `undefined` | Max number of x-axis ticks/grid lines. Useful for matching external axes. |
252
+ | xStepSize | xStepSize | `number \| undefined` | `undefined` | Force x-axis tick interval. Useful for matching external axes. |
253
+ | yTicksLimit | yTicksLimit | `number \| undefined` | `undefined` | Max number of y-axis ticks/grid lines. Useful for matching external axes. |
254
+ | yStepSize | yStepSize | `number \| undefined` | `undefined` | Force y-axis tick interval. Useful for matching external axes. |
255
+ | state | state | `InstrumentState` | | Instrument state affecting colors of external scales. |
256
+ | priority | priority | `Priority` | | Color priority: enhanced uses blue palette instead of default gray. |
257
+ | frameStyle | frameStyle | `FrameStyle` | | Frame style for chart and external scales. |
258
+ | borderRadiusPosition | borderRadiusPosition | `BorderRadiusPosition \| undefined` | `undefined` | Border radius position for the chart's own border. |
259
+ | borderRadiusPositionExternalScales | borderRadiusPositionExternalScales | `BorderRadiusPosition \| undefined` | `undefined` | Border radius position for external scales based on layout. |
260
+ | instrumentMode | instrumentMode | `boolean` | `false` | When true, the chart is used inside an instrument (e.g., gauge-trend). In this mode, only label font size responds to .obc-component-size-* CSS classes. Border radius uses the explicit `borderRadius` property value (or defaults to 8px), rather than reading from CSS variables. |
261
+ | borderRadius | borderRadius | `number \| undefined` | `undefined` | Explicit border radius value in pixels. When instrumentMode=true, this value is used directly (defaults to 8px). When instrumentMode=false, this is ignored and border radius is read from CSS variable. Available when `instrumentMode==true`. |
262
+ | lastMarkers | | `{x?: {x: number; y?: number; dot: boolean}; y?: {y: number}}` | `{}` | |
263
+
264
+ ## Events
265
+
266
+ None.
267
+
268
+ ## Slots
269
+
270
+ None.
271
+
272
+ ## Stories
273
+
274
+ - [Semitransparent Area Graph (default)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--semitransparent)
275
+ - [Uneven Time Intervals (Time Axis)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--uneven-time-intervals)
276
+ - [Number X-Axis](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--number-axis)
277
+ - [Pinned X Range (Filling Buffer)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--pinned-x-range)
278
+ - [Semitransparent Area Graph (with external scales)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--semitransparent-external-scales)
279
+ - [Fixed Frame (Pinned Range With External Scales)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--fixed-frame)
280
+ - [With Points Area Graph](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--with-points)
281
+ - [Straight Area Graph](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--straight-line)
282
+ - [Stepped Area Graph](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--stepped-line)
283
+ - [Solid Area Graph](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--solid)
284
+ - [Threshold Area Graph](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--threshold)
285
+ - [Stacked Area Graph](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--stacked)
286
+ - [Multi-Series Area Graph](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--multi-series-time)
287
+ - [Minimal Height Area Graph (48px)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--min-height)
288
+ - [Minimal Height With Range Labels (48px)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--min-height-range-labels)
289
+ - [Below Threshold With Range Labels (191px, Y Only)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--below-threshold-range-labels)
290
+ - [Threshold Height Area Graph (192px, where labels appear)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--threshold-height-size)
291
+ - [No Labels/ticks Area Graph (but yes 32px padding for optional points)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--no-labels-no-ticks)
292
+ - [With Legend Area Graph](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--with-legend)
293
+ - [Multi-Axis Area Graph (left and right y-axes)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--multi-axis)
294
+ - [Custom Colors](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--custom-colors)
295
+ - [Realtime (squeezing)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--realtime-squeezing)
296
+ - [Realtime (shifting)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--realtime-shifting)
297
+ - [Realtime (Fixed Frame)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--realtime-fixed-frame)
298
+ - [Depth Profile (Fixed Range, Reversed Y, External Scales)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-area-graph--depth-profile): Depth plotted with positive numbers: `yAxes` pins the range to 0–75 and `reverse: true` puts 0 at the top, so the area fill lands on the seabed side. The flag cascades to the slotted left scale. A number x axis running −10…0 keeps "now" at the right edge.
299
+ - [Single-Series Line Graph (category)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--single-series)
300
+ - [With Points Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--with-points)
301
+ - [Straight Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--straight-line)
302
+ - [Stepped Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--stepped-line)
303
+ - [Filled Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--filled)
304
+ - [Filled Solid Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--filled-solid)
305
+ - [Filled Threshold Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--filled-threshold)
306
+ - [Stacked Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--stacked)
307
+ - [Multi-Series Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--multi-series-time)
308
+ - [Minimal Height Line Graph (48px)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--min-height)
309
+ - [Minimal Height With Range Labels (48px)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--min-height-range-labels)
310
+ - [Below Threshold With Range Labels (191px, Y Only)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--below-threshold-range-labels)
311
+ - [Threshold Height Line Graph (192px, where labels appear)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--threshold-height)
312
+ - [No Labels/ticks Line Graph (but yes 32px padding for optional points)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--no-labels-no-ticks)
313
+ - [With Legend Line Graph](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--with-legend)
314
+ - [Multi-Axis Line Graph (left and right y-axes)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--multi-axis)
315
+ - [Custom Colors](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--custom-colors)
316
+ - [Realtime (squeezing)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--realtime-squeezing)
317
+ - [Realtime (shifting)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--realtime-shifting)
318
+ - [External Scales (480×320, bottom + right)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--external-scales-bottom-right)
319
+ - [External Scales (800×600, all 4 sides)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--external-scales-all-sides)
320
+ - [External Scales (192×192, bottom + right, minimal)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--external-scales-minimal)
321
+ - [External Scales With Range Labels (160×160, Bottom + Right)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--external-scales-range-labels)
322
+ - [External Scales Below The Threshold (160×160, No Range Labels)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--external-scales-below-threshold): Below the label threshold the canvas is inset by each slotted scale's reported thickness; `chart-line-base.spec.ts` pins that. No snapshot: canvas anti-aliasing at the capture scale differs between CI runners.
323
+ - [Fixed Aspect Ratio Scaling (responsive)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--fixed-aspect-ratio-scaling)
324
+ - [Styled Datasets (Dashed, Dotted, Fill Between)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--styled-datasets): Explicit Chart.js styling on a `datasets` entry wins over the derived defaults: `borderDash` and `borderCapStyle` give a dashed prediction and a dotted past track, `fill: 0` fills the band between the echo return and the line, and `fill: false` leaves the line unfilled.
325
+ - [Markers (Now Line and Value Line)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--markers): `xMarker` draws a solid line from the plot top down to the first dataset at `x`, a dotted line below it and a dot on the value; `yMarker` draws a 2px line across the plot at `y`. Both follow the dataset colour.
326
+ - [Ellipse Clip (Radial Range, Reversed Y)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-line-area-chart-base--ellipse-clip): A dataset with `ellipseClip` is drawn only inside the ellipse: centre and `rx` in data units (a 150-unit range around the origin at (0, 0)), round in pixels because `ry` is omitted. The fill to `{value: 0}` is cut by the arc; the y axis is reversed so 0 sits at the top.
327
+
328
+ ## See also
329
+
330
+ - [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
331
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
332
+ - [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)
333
+ - [Migration Guide 2.1 to 2.2](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-1-to-2-2.md)
@@ -0,0 +1,49 @@
1
+ # `<obc-attachment-list-item>`
2
+
3
+ A list item for displaying file attachments.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-tables-and-lists-attachment-list-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/attachment-list-item/attachment-list-item.ts)
6
+
7
+ `<obc-attachment-list-item>` - A list item for displaying file attachments.
8
+
9
+ ## Properties
10
+
11
+ | Property | Attribute | Type | Default | Description |
12
+ | --- | --- | --- | --- | --- |
13
+ | label | label | `string` | `'File name'` | The file name or label text displayed in the item. |
14
+ | index | index | `string` | `''` | Optional index text displayed before the icon (e.g., "01"). Available when `hasIndex==true`. |
15
+ | hasIndex | hasIndex | `boolean` | `false` | Whether to show the index. |
16
+ | hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | Whether to show the leading icon slot. |
17
+ | hasTag | hasTag | `boolean` | `false` | Whether to show the tag slot. |
18
+ | hasTimeDate | hasTimeDate | `boolean` | `false` | Whether to show the date and time. |
19
+ | date | date | `string` | `''` | The date string to display (e.g., "09 May 2025"). Available when `hasTimeDate==true`. |
20
+ | time | time | `string` | `''` | The time string to display (e.g., "10:41:32"). Available when `hasTimeDate==true`. |
21
+ | hasTrailingAction | hasTrailingAction | `boolean` | `false` | Whether to show the trailing action slot. |
22
+ | showDivider | showDivider | `boolean` | `false` | Whether to show the bottom divider. |
23
+ | amplified | amplified | `boolean` | `false` | Whether the item is in amplified (highlighted) state. |
24
+ | disabled | disabled | `boolean` | `false` | Whether the item is disabled. |
25
+
26
+ ## Events
27
+
28
+ | Event | Type | Description |
29
+ | --- | --- | --- |
30
+ | attachment-item-click | `CustomEvent<{label: string}>` | Fired when the item is clicked. |
31
+
32
+ ## Slots
33
+
34
+ | Slot | Description |
35
+ | --- | --- |
36
+ | leading-icon | Icon displayed before the file name. |
37
+ | tag | Tag element displayed after the file name. |
38
+ | trailing-action | Trailing action button. |
39
+
40
+ ## Stories
41
+
42
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/ui-components-tables-and-lists-attachment-list-item--default)
43
+ - [With Divider](https://openbridge-next-storybook.web.app/?path=/story/ui-components-tables-and-lists-attachment-list-item--with-divider)
44
+ - [Amplified](https://openbridge-next-storybook.web.app/?path=/story/ui-components-tables-and-lists-attachment-list-item--amplified)
45
+ - [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-tables-and-lists-attachment-list-item--disabled)
46
+ - [With Index](https://openbridge-next-storybook.web.app/?path=/story/ui-components-tables-and-lists-attachment-list-item--with-index)
47
+ - [With Tag](https://openbridge-next-storybook.web.app/?path=/story/ui-components-tables-and-lists-attachment-list-item--with-tag)
48
+ - [Minimal Item](https://openbridge-next-storybook.web.app/?path=/story/ui-components-tables-and-lists-attachment-list-item--minimal-item)
49
+ - [All States](https://openbridge-next-storybook.web.app/?path=/story/ui-components-tables-and-lists-attachment-list-item--all-states)
@@ -0,0 +1,59 @@
1
+ # `<obc-audio-output>`
2
+
3
+ A visual indicator component for representing audio volume levels.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-media-audio-output--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/audio-output/audio-output.ts)
6
+
7
+ `<obc-audio-output>` – A visual indicator component for representing audio volume levels.
8
+
9
+ Displays a horizontal row of bars to visually communicate the current audio volume, similar to classic audio level meters or equalizer displays. The number of highlighted bars corresponds to the set volume level, providing immediate feedback about audio intensity or mute state.
10
+
11
+ ## Features
12
+ - **Volume display:** Shows up to 8 discrete volume levels using a series of bars (0–8).
13
+ - **Active/inactive states:** Bars are visually highlighted up to the current volume; inactive bars remain dim.
14
+ - **Disabled mode:** When `disabled` is true, the entire component appears muted/greyed out to indicate non-interactive or muted status.
15
+ - **Responsive layout:** The bar arrangement adapts to the container's width.
16
+
17
+ ## Usage Guidelines
18
+ Use `obc-audio-output` to provide users with a quick, at-a-glance indication of current audio output or input levels. This is ideal for settings panels, audio controls, or anywhere a visual representation of volume is needed.
19
+ **TODO(designer):** Confirm if this component is intended for both input (microphone) and output (speaker) volume, or only for output.
20
+ Avoid using this component for continuous/analog audio metering (such as real-time waveform or dB meters); it is designed for discrete, stepped volume feedback.
21
+
22
+ ## Properties and Configuration
23
+ - `volume` (number, 0–8): Sets the number of active bars. Defaults to 0 (all bars inactive).
24
+ - `disabled` (boolean): When true, the component is visually muted and should not respond to user interaction.
25
+
26
+ ## Best Practices and Constraints
27
+ - The component is purely visual and does not provide interactive controls; pair it with buttons or sliders for volume adjustment if needed.
28
+ - For accessibility, also convey the volume state through ARIA attributes or alternative text when the component sits in an interactive context.
29
+ **TODO(designer):** Should the component include ARIA labeling or support for screen readers?
30
+
31
+ ## Example:
32
+ ```html
33
+ <obc-audio-output volume="4"></obc-audio-output>
34
+ ```
35
+ In this example, four bars are highlighted to indicate a medium volume level.
36
+
37
+ ## Properties
38
+
39
+ | Property | Attribute | Type | Default | Description |
40
+ | --- | --- | --- | --- | --- |
41
+ | volume | volume | `number` | `0` | The volume level to display, represented as the number of highlighted bars (0–8). Set to 0 for muted/no volume, up to 8 for maximum volume. |
42
+ | disabled | disabled | `boolean` | `false` | If true, the component is visually muted and indicates a disabled or non-interactive state. Use to represent muted audio or when volume control is unavailable. |
43
+
44
+ ## Events
45
+
46
+ None.
47
+
48
+ ## Slots
49
+
50
+ | Slot | Description |
51
+ | --- | --- |
52
+ | (default) | (none) – This component does not use slots; all content is rendered internally. |
53
+
54
+ ## Stories
55
+
56
+ - [Full Volume](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-output--full-volume)
57
+ - [Half Volume](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-output--half-volume)
58
+ - [No Volume](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-output--no-volume)
59
+ - [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-output--disabled)
@@ -0,0 +1,91 @@
1
+ # `<obc-audio-recording-item>`
2
+
3
+ An audio waveform visualization component for voice recording feedback.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-media-audio-recording-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/audio-recording-item/audio-recording-item.ts)
6
+
7
+ `<obc-audio-recording-item>` – An audio waveform visualization component for voice recording feedback.
8
+
9
+ Displays a real-time waveform visualization of audio levels during voice recording, with an optional play/pause control and duration counter. Use this component to provide visual feedback when users are recording voice messages or audio notes.
10
+
11
+ ## Features
12
+
13
+ - **Waveform visualization:**
14
+ - Displays audio levels as animated vertical bars that grow based on input amplitude.
15
+ - Empty slots render as small dots; bars appear from right to left as new audio data arrives.
16
+ - Automatically adapts bar count to container width via ResizeObserver.
17
+ - **Status states:**
18
+ - `recording`: Active recording state with live waveform updates (no play/pause button).
19
+ - `playback`: Playback mode with progress indicator and play/pause button.
20
+ - **Duration display:**
21
+ - Shows elapsed time in MM:SS format (e.g., "01:23").
22
+ - **Play/pause control:**
23
+ - In playback mode, shows play/pause button controlled by `isPlaying` property.
24
+ - Button icon shows pause when playing, play when paused.
25
+ - **Playback indicator:**
26
+ - In playback mode, displays a progress indicator showing current playback position (not interactive).
27
+ - **Enhanced style:**
28
+ - Optional `enhanced` mode applies neutral enhanced color to waveform bars.
29
+
30
+ ## Usage Guidelines
31
+
32
+ Use `<obc-audio-recording-item>` as part of a voice message input flow (e.g., inside `<obc-textarea-field>`). The parent component is responsible for:
33
+ - Capturing actual audio and passing `audioLevels` array (values 0–1).
34
+ - Updating `duration` as recording progresses.
35
+ - Handling the `status-toggle` event to start/stop playback (toggle `isPlaying`).
36
+ - Updating `playbackPosition` as audio plays back.
37
+
38
+ This component provides UI feedback only—it does NOT handle audio capture or playback.
39
+
40
+ **Keywords:** waveform, audio visualization, voice recording, microphone input, audio levels, recording indicator
41
+
42
+ ## Events
43
+
44
+ - `status-toggle` – Fired when the play/pause button is clicked in playback mode, with the desired `isPlaying` state in the event detail.
45
+
46
+ ## Example
47
+
48
+ ```html
49
+ <!-- Recording mode - shows waveform, no play/pause button -->
50
+ <obc-audio-recording-item
51
+ .audioLevels=${[0.2, 0.5, 0.8, 0.3, 0.6]}
52
+ .duration=${45}
53
+ status="recording"
54
+ ></obc-audio-recording-item>
55
+
56
+ <!-- Playback mode - shows slider and play/pause button -->
57
+ <obc-audio-recording-item
58
+ .duration=${45}
59
+ status="playback"
60
+ .playbackPosition=${0.5}
61
+ .isPlaying=${true}
62
+ hasActionButton
63
+
64
+ ## Properties
65
+
66
+ | Property | Attribute | Type | Default | Description |
67
+ | --- | --- | --- | --- | --- |
68
+ | audioLevels | audioLevels | `number[]` | `[]` | Array of audio level values (0-1) for waveform visualization. New values should be added to the end (right side) and old values shift left. |
69
+ | duration | duration | `number` | `0` | Current duration in seconds, displayed as MM:SS. |
70
+ | status | status | `AudioRecordingStatus` | | Recording status - 'recording', 'paused', or 'playback'. |
71
+ | playbackPosition | playbackPosition | `number` | `0` | Current playback position (0-1) for playback mode slider. |
72
+ | isPlaying | isPlaying | `boolean` | `false` | Whether audio is currently playing (only relevant in playback mode). When true, shows pause icon; when false, shows play icon. |
73
+ | enhanced | enhanced | `boolean` | `false` | Enhanced style that displays waveform bars with neutral enhanced color. |
74
+
75
+ ## Events
76
+
77
+ | Event | Type | Description |
78
+ | --- | --- | --- |
79
+ | status-toggle | `CustomEvent<{isPlaying: boolean}>` | Fired when the play/pause button is clicked, containing the desired isPlaying state. |
80
+
81
+ ## Slots
82
+
83
+ None.
84
+
85
+ ## Stories
86
+
87
+ - [Recording](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-recording-item--recording)
88
+ - [Recording Enhanced](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-recording-item--recording-enhanced)
89
+ - [Playback Paused](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-recording-item--playback-paused)
90
+ - [Playback Playing](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-recording-item--playback-playing)
91
+ - [Interactive Demo](https://openbridge-next-storybook.web.app/?path=/story/ui-components-media-audio-recording-item--interactive-demo)