@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,110 @@
1
+ # `<obc-tree-navigation-item>`
2
+
3
+ A single row in a tree- or file-explorer-style navigation list, with indentation guide lines, an optional expand/collapse chevron, a leading icon, a label, and an optional alert badge.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-menus-and-navigation-tree-navigation-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/tree-navigation-item/tree-navigation-item.ts)
6
+
7
+ `<obc-tree-navigation-item>` – A single row in a tree- or file-explorer-style
8
+ navigation list, with indentation guide lines, an optional expand/collapse
9
+ chevron, a leading icon, a label, and an optional alert badge.
10
+
11
+ Each row represents one node in a hierarchy. Depth is expressed through the
12
+ `branches` array: one entry per ancestor level, each describing the guide line
13
+ to draw for that level. The expand chevron lets a node disclose its children,
14
+ emitting `expand-toggle` so a parent can manage the open/closed state.
15
+
16
+ ## Features
17
+ - **Indentation guides:** Render one 32px guide column per `branches` entry —
18
+ pass-through vertical lines for ancestors that continue, and an elbow
19
+ (`intersection`) connecting the row to its parent.
20
+ - **Expand/collapse:** Set `expandable` to show a chevron that rotates when
21
+ `expanded`. The chevron is a visual indicator only — activating the row
22
+ fires `expand-toggle` with the next state; manage `expanded` in response.
23
+ When `expanded`, a vertical guide descends from the chevron to connect to
24
+ the revealed child rows below.
25
+ - **Terminal type:** `terminalType` adds an alert-header marker in the terminal
26
+ (`aggregatedHeader` or `groupHeader`), indicating the node heads a set of
27
+ aggregated or grouped alerts.
28
+ - **Leading icon:** Provide an icon via the `icon` slot (shown when
29
+ `hasLeadingIcon`).
30
+ - **Alert badges:** Trailing counter badges driven by the `alerts` object — a
31
+ per-severity count map with one field per level severity (critical, high,
32
+ medium, low, diagnostic). By default each non-zero count renders its own
33
+ badge, ordered most to least severe by `ALERT_SEVERITY_PRIORITY`; set
34
+ `alerts.combine` to instead show a single badge with the combined total,
35
+ styled as the highest category present.
36
+ - **Checked state:** `checked` highlights the current selection using the
37
+ amplified elevation style. A checked row is the current item and is not
38
+ re-selectable — it shows no hover/pressed feedback and fires no `click` or
39
+ navigation. An expandable checked row still toggles (fires `expand-toggle`),
40
+ so a group that is the current selection can be opened and closed. It stays
41
+ keyboard-focusable.
42
+ - **Link or button:** Set `href` to render the row as a link; otherwise it acts
43
+ as a button.
44
+
45
+ ## Usage Guidelines
46
+ - Use for hierarchical navigation such as file trees, layer panels, or nested
47
+ menus. For flat navigation lists, use `obc-navigation-item` instead.
48
+ - Build `branches` from the row's ancestry: `intersection` for the level that
49
+ owns this row, `straight` for ancestors with siblings still to come, and
50
+ `blank` for ancestors whose subtrees have ended. When placed inside
51
+ `obc-tree-navigation`, the container computes `branches` automatically.
52
+ - Keep one row `checked` at a time within a tree to mark the current location.
53
+ - Leaf nodes should leave `expandable` as `false` so no chevron is shown.
54
+
55
+ ## Slots
56
+
57
+ | Slot Name | Renders When... | Purpose |
58
+ |----------------|---------------------------------|-------------------------------------------------------------------------|
59
+ | icon | `hasLeadingIcon` is true | Leading icon for the row, e.g. `<obi-placeholder slot="icon">`. |
60
+
61
+ ### Keyboard
62
+ One item of the [APG Tree View](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/):
63
+ `Enter` and `Space` activate it, and the tree it sits in owns the arrow keys
64
+ and the single tab stop.
65
+
66
+ Left out: nothing at the item level.
67
+
68
+ ## Properties
69
+
70
+ | Property | Attribute | Type | Default | Description |
71
+ | --- | --- | --- | --- | --- |
72
+ | label | label | `string` | `'List item'` | The text label displayed for the row. |
73
+ | branches | branches | `TreeBranchType[]` | `[]` | Guide line for each ancestor level, outermost first; one 32px column per entry. Computed by `obc-tree-navigation` — rarely set by hand. |
74
+ | expandable | expandable | `boolean` | `false` | Whether the row shows an expand/collapse chevron. Leave false for leaf nodes. |
75
+ | expanded | expanded | `boolean` | `false` | Whether the node is expanded. Rotates the chevron and sets `aria-expanded`. |
76
+ | checked | checked | `boolean` | `false` | Whether the row is the current selection. Applies the amplified style and makes the row inert to re-selection (no hover/pressed feedback, no `click` or navigation); it remains keyboard-focusable. An expandable checked row still fires `expand-toggle` so a selected group can open and close. |
77
+ | disabled | disabled | `boolean` | `false` | Disables the row, removing it from the tab order and dimming its appearance. |
78
+ | focusable | | `boolean` | `true` | Whether the row is in the tab order. A tree container manages this as a roving tabindex (one row focusable at a time); standalone rows stay tabbable. |
79
+ | hasLeadingIcon | | `boolean` | `true` | Whether the row shows a leading icon (provided via the `icon` slot). |
80
+ | terminalType | terminalType | `string` | | Terminal type, controlling the alert-header marker shown in the terminal. One of `regular` (default), `aggregated-header`, or `group-header`. |
81
+ | alerts | alerts | `TreeNavigationItemAlerts \| undefined` | | Per-severity alert counts for the row's trailing badges; omit it, or leave every count at 0, for a row with no alerts. Its `combine` flag collapses them into one badge carrying the total and the highest severity present; otherwise each non-zero count gets its own badge, ordered most to least severe. |
82
+ | href | href | `string \| undefined` | | The URL to navigate to when the row is activated. If set, the row renders as a link; otherwise it acts as a button. |
83
+
84
+ ## Events
85
+
86
+ | Event | Type | Description |
87
+ | --- | --- | --- |
88
+ | expand-toggle | `CustomEvent<boolean>` | Fired when an expandable row is activated; detail is the next `expanded` value. |
89
+ | click | `CustomEvent<void>` | Fired when the row is activated. |
90
+
91
+ ## Slots
92
+
93
+ | Slot | Description |
94
+ | --- | --- |
95
+ | icon | Leading icon slot (shown when `hasLeadingIcon` is true). |
96
+
97
+ ## Stories
98
+
99
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--default)
100
+ - [Checked](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--checked)
101
+ - [Expanded](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--expanded)
102
+ - [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--disabled)
103
+ - [Leaf](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--leaf)
104
+ - [Root](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--root)
105
+ - [Indented No Connectors](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--indented-no-connectors)
106
+ - [With Alert Badge](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--with-alert-badge): A single alert badge from one non-zero count in the `alerts` map.
107
+ - [Multiple Alert Badges](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--multiple-alert-badges): Several severities at once. With `combine` unset, each non-zero count renders its own badge, ordered most to least severe and spaced by `var(--app-components-alert-counter-item-badge-spacing)`.
108
+ - [Aggregated Alert Badge](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--aggregated-alert-badge): The same counts as `MultipleAlertBadges`, but `combine: true` collapses them into one badge: the number is the combined total (18) and the style is the highest category present (level-critical).
109
+ - [Aggregated Header](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--aggregated-header)
110
+ - [Group Header](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation-item--group-header)
@@ -0,0 +1,73 @@
1
+ # `<obc-tree-navigation>`
2
+
3
+ The container for a tree- or file-explorer-style navigation list.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-menus-and-navigation-tree-navigation--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/tree-navigation/tree-navigation.ts)
6
+
7
+ `<obc-tree-navigation>` – The container for a tree- or file-explorer-style
8
+ navigation list. Holds nested `<obc-tree-navigation-group>` and
9
+ `<obc-tree-navigation-item>` rows and computes each row's indentation guide
10
+ lines automatically from its position in the hierarchy.
11
+
12
+ Consumers write the tree as plain nested markup; the container assigns every
13
+ row's `branches` array so the guide lines (pass-through verticals, elbows, and
14
+ the last-child corner) connect correctly — there is no need to compute depth or
15
+ branch types by hand. It re-derives the guides whenever rows are added, removed,
16
+ or groups expand and collapse.
17
+
18
+ ## Features
19
+ - **Automatic guide lines:** Each row receives a `branches` array derived from
20
+ its depth and whether each ancestor still has siblings below it. Last children
21
+ get a corner (`└`); rows with siblings below get an intersection (`├`); and
22
+ ancestor columns become a pass-through (`│`) or blank as appropriate.
23
+ - **Live updates:** Reacts to slotted content changes and to group expand state,
24
+ recomputing the guides so they always match the visible structure.
25
+ - **Composable:** Works with any nesting depth of groups and items.
26
+
27
+ ## Usage Guidelines
28
+ - Use as the root of a hierarchical navigation list. For flat navigation, use
29
+ `obc-navigation-menu` instead.
30
+ - Place `<obc-tree-navigation-group>` for expandable parents and
31
+ `<obc-tree-navigation-item>` for leaves; nest groups to any depth.
32
+ - Do not set each row's `branches` manually — the container manages them.
33
+
34
+ ## Slots
35
+
36
+ | Slot Name | Renders When... | Purpose |
37
+ |-----------|-----------------|----------------------------------------------------|
38
+ | (default) | Always | Top-level rows (`obc-tree-navigation-group`/`-item`). |
39
+
40
+ ### Keyboard
41
+ [APG Tree View](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/): the tree
42
+ is one tab stop. `Up` and `Down` move between visible items, `Right` opens a
43
+ closed group or moves into an open one, `Left` closes an open group or moves
44
+ to its parent, and `Home` and `End` go to the first and last visible item;
45
+ the items handle `Enter` and `Space`. Name the tree with `aria-label`.
46
+
47
+ Left out: type-ahead, and `*` to expand every group at one level. The
48
+ `group` that holds a parent's children is a sibling of the parent's row,
49
+ not inside its `treeitem`, and `aria-owns` cannot reach across the shadow
50
+ boundary to say so.
51
+
52
+ ## Properties
53
+
54
+ | Property | Attribute | Type | Default | Description |
55
+ | --- | --- | --- | --- | --- |
56
+ | ariaLabel | aria-label | `string \| null` | `null` | Accessible name of the tree, mapped to the `aria-label` attribute and forwarded to the `role="tree"` element. `aria-labelledby` is not supported: ID references cannot cross the shadow boundary. |
57
+
58
+ ## Events
59
+
60
+ None.
61
+
62
+ ## Slots
63
+
64
+ | Slot | Description |
65
+ | --- | --- |
66
+ | (default) | Top-level tree rows (groups and items). |
67
+
68
+ ## Stories
69
+
70
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation--default): A fully expanded tree. The guide lines — pass-through verticals, intersections, and last-child corners — are all computed by the container from the nested markup. The header rows are groups; the leaves are items.
71
+ - [Interactive](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation--interactive): Click a leaf to select it; click a group chevron to expand or collapse. The container keeps the guide lines correct through every change — the consumer only tracks the selected item.
72
+ - [Aggregated Alert Counts](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation--aggregated-alert-counts): Alerts spread across leaves at several depths, every row with `combine: true`. Each group header carries a single badge whose number is the sum of all alerts beneath it (child groups roll up into their parent in turn), styled as the most severe category present — e.g. "Auxiliary engine" totals 9 (1 critical + 6 medium + 2 low) and shows as critical, and "Vessel" totals 19 (1 critical + 3 high + 10 medium + 5 low) and also shows as critical.
73
+ - [Per Severity Alert Counts](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tree-navigation--per-severity-alert-counts): The same tree and the same rolled-up totals, but every row with `combine: false`: each row renders one badge per non-zero severity instead of a single combined badge. Group headers still sum their whole subtree — e.g. "Auxiliary engine" shows separate critical (1), medium (6), and low (2) badges.
@@ -0,0 +1,59 @@
1
+ # `<obc-tunnel-thruster>`
2
+
3
+ Compact bidirectional tunnel-thruster level indicator.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-tunnel-thruster--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/propulsion-tunnel-thruster/propulsion-tunnel-thruster.ts)
6
+
7
+ `<obc-tunnel-thruster>` – Compact bidirectional tunnel-thruster level indicator.
8
+
9
+ Renders a **36×12** rounded frame inside a **48×48** canvas with a central zero
10
+ line with rounded caps, extended downward by the full frame stroke width so it
11
+ masks the bottom border at the center (the top aligns with the frame body).
12
+ A bottom-half thrust fill extends from the
13
+ center. The thrust fill extends by a full stroke width at the bottom so it
14
+ can mask the entire bottom border. The fill and center line paint above the
15
+ frame stroke where they overlap so the active color also masks the border at
16
+ the sides at extreme thrust. Thrust width uses the stroke **outer** edges
17
+ (0 and VIEW_W+1), so the right bar is 1px longer than the left to match SVG
18
+ stroke centers at 0.5 and 36.5.
19
+
20
+ ## Features
21
+
22
+ - **Value:** `value` is clamped to **-1…1**; the fill extends from the center
23
+ toward either side of the zero line.
24
+ - **States:** `in-command`, `not-in-command`, and `off` switch the accent
25
+ palette (enhanced vs regular vs inactive).
26
+ - **Silhouette:** `hasSilhouette` adds an optional silhouette stroke behind the
27
+ frame when not `off`.
28
+
29
+ ## Usage Guidelines
30
+
31
+ Use for a compact tunnel-thruster cue where the full tunnel-thruster watch
32
+ layout is not required.
33
+
34
+ ## Properties
35
+
36
+ | Property | Attribute | Type | Default | Description |
37
+ | --- | --- | --- | --- | --- |
38
+ | value | value | `number` | | |
39
+ | thrust | thrust | `number` | | |
40
+ | state | state | `string` | | |
41
+ | hasSilhouette | hasSilhouette | `boolean` | `false` | |
42
+
43
+ ## Events
44
+
45
+ None.
46
+
47
+ ## Slots
48
+
49
+ None.
50
+
51
+ ## Stories
52
+
53
+ - [In command](https://openbridge-next-storybook.web.app/?path=/story/indicators-tunnel-thruster--in-command)
54
+ - [Not in command](https://openbridge-next-storybook.web.app/?path=/story/indicators-tunnel-thruster--not-in-command)
55
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/indicators-tunnel-thruster--off)
56
+ - [Value -1](https://openbridge-next-storybook.web.app/?path=/story/indicators-tunnel-thruster--value-min)
57
+ - [Value 0](https://openbridge-next-storybook.web.app/?path=/story/indicators-tunnel-thruster--value-zero)
58
+ - [Value 1](https://openbridge-next-storybook.web.app/?path=/story/indicators-tunnel-thruster--value-max)
59
+ - [Not in command + Silhouette](https://openbridge-next-storybook.web.app/?path=/story/indicators-tunnel-thruster--with-silhouette)
@@ -0,0 +1,107 @@
1
+ # `<obc-user-button>`
2
+
3
+ A compact, circular button for representing a user via icon or initials.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-buttons-user-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/user-button/user-button.ts)
6
+
7
+ `obc-user-button` – A compact, circular button for representing a user via icon or initials.
8
+
9
+ Displays either a user icon or user initials inside a circular button, with optional label text. Commonly used for user profile access, account switching, or avatar actions in toolbars and navigation. The button supports multiple visual styles and can be rendered as a static (non-interactive) element.
10
+
11
+ Appears as a button by default, but switches to a non-interactive div when the `static` property is set.
12
+
13
+ ## Features
14
+ - **Variants:**
15
+ - `icon`: Shows a user icon (default, fallback if initials are invalid or missing).
16
+ - `initials`: Shows up to two uppercase initials (falls back to icon if input is empty or longer than two characters).
17
+ - **Style Types:**
18
+ - `flat`: Minimal, flat appearance (default).
19
+ - `normal`: Outlined with background and border.
20
+ - `selected`: Highlighted to indicate selection or active state.
21
+ - **Static Mode:**
22
+ - Set `static` to render as a non-interactive element for use in read-only or decorative contexts.
23
+ - **Disabled State:**
24
+ - Set `disabled` to visually and functionally disable the button.
25
+ - **Custom Icon Slot:**
26
+ - Provide a custom icon via the `icon` slot when using the `icon` variant.
27
+ - **Label Support:**
28
+ - Optional `label` property displays text next to the button (not shown in static mode).
29
+ - Optional `sublabel` adds a second, lighter line under the label, for a
30
+ secondary detail such as the user's role.
31
+
32
+ ## Usage Guidelines
33
+ Use `obc-user-button` to represent a user in navigation bars, toolbars, or menus where a compact, recognizable user indicator is needed. Ideal for profile menus, account switching, or user-related quick actions.
34
+ - Use the `icon` variant for generic user representation, or when no initials are available.
35
+ - Use the `initials` variant to personalize the button with user initials (max two characters).
36
+ - Use `styleType="selected"` to indicate the current user or active selection.
37
+ - Use `static` for non-interactive displays, such as in lists or summaries.
38
+ - Avoid using for critical actions or as a replacement for full user profile cards.
39
+
40
+ **TODO(designer):** Confirm if there are recommended scenarios for when to use `flat`, `normal`, or `selected` style types, and if there are accessibility guidelines for initials fallback.
41
+
42
+ ## Slots
43
+
44
+ | Slot Name | Renders When... | Purpose |
45
+ |-----------|-----------------|---------|
46
+ | `icon` | `variant="icon"` | Custom icon to display instead of the default user icon. |
47
+
48
+ ## Best Practices & Constraints
49
+ - Initials longer than two characters are truncated and a warning is logged.
50
+ - If `initials` is empty or invalid, the button falls back to the user icon.
51
+ - The `label` is only visible when the button is interactive (not static).
52
+ - For accessibility, the button is named after its visible text — `label` and
53
+ `sublabel` — falling back to the initials when it shows no text.
54
+ - Only use the `static` property for non-interactive contexts; otherwise, the button is clickable.
55
+
56
+ ## Example:
57
+ ```html
58
+ <obc-user-button variant="initials" initials="JD" styleType="normal" label="John Doe"></obc-user-button>
59
+ <obc-user-button variant="icon" styleType="flat">
60
+ <obi-placeholder slot="icon"></obi-placeholder>
61
+ </obc-user-button>
62
+ ```
63
+
64
+ ## Properties
65
+
66
+ | Property | Attribute | Type | Default | Description |
67
+ | --- | --- | --- | --- | --- |
68
+ | variant | variant | `Variant` | | What the button displays: `icon` (default) a user icon, `initials` up to two uppercase initials — falling back to the icon when `initials` is empty or longer than two characters. |
69
+ | size | size | `Size` | | |
70
+ | styleType | styleType | `StyleType` | | Visual style: `flat` (default) is the minimal appearance, `normal` adds a background and border, `selected` highlights the active state. |
71
+ | static | static | `boolean` | `false` | If true, renders the button as a static (non-interactive) element using a `<div>`. Use for decorative or read-only contexts where user interaction is not required. |
72
+ | disabled | disabled | `boolean` | `false` | Disables the button, preventing user interaction and applying a disabled style. Available when `static==false`. |
73
+ | initials | initials | `string` | `''` | Initials shown when `variant` is `initials`. Whitespace is stripped and the rest uppercased, then truncated to two characters — three at the `large` size. An empty value falls back to the user icon. |
74
+ | label | label | `string \| undefined` | | Optional label text to display next to the button (not shown in static mode). Available when `static==false`. |
75
+ | sublabel | sublabel | `string \| undefined` | | Optional second line under the label, for a secondary detail such as a role (not shown in static mode). Available when `static==false`. |
76
+
77
+ ## Events
78
+
79
+ None.
80
+
81
+ ## Slots
82
+
83
+ | Slot | Description |
84
+ | --- | --- |
85
+ | icon | Custom icon for the user button (used only in `icon` variant; defaults to <obi-user> if not provided) |
86
+
87
+ ## Stories
88
+
89
+ - [Primary](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--primary)
90
+ - [Large](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--large)
91
+ - [With Initials](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--with-initials)
92
+ - [Initials Normal](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--initials-normal)
93
+ - [Initials Selected](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--initials-selected)
94
+ - [Large With Initials](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--large-with-initials)
95
+ - [Large With Initials Selected](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--large-with-initials-selected)
96
+ - [Icon Normal](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--icon-normal)
97
+ - [Icon Selected](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--icon-selected)
98
+ - [Disabled With Initials](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--disabled-with-initials)
99
+ - [Disabled Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--disabled-icon)
100
+ - [Static With Initials](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--static-with-initials)
101
+ - [Static Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--static-icon)
102
+ - [Static With Initials Large](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--static-with-initials-large)
103
+ - [Invalid Initials (Falls back to Icon)](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--invalid-initials)
104
+ - [Too Many Initials (Falls back to Icon)](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--too-many-initials)
105
+ - [With Sublabel](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--with-sublabel)
106
+ - [Large With Sublabel](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--large-with-sublabel)
107
+ - [Static With Sublabel](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-user-button--static-with-sublabel)
@@ -0,0 +1,154 @@
1
+ # `<obc-user-menu>`
2
+
3
+ A user menu component with sign-in and signed-in layouts.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-menus-user-menu--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/user-menu/user-menu.ts)
6
+
7
+ `<obc-user-menu>` – A user menu component with sign-in and signed-in layouts.
8
+
9
+ Provides multiple layouts for authentication and account access states, including
10
+ sign-in forms, user-specific sign-in, loading states, and signed-in navigation.
11
+
12
+ ## Features
13
+ - **Multiple States:** Supports sign-in, user sign-in, loading, and signed-in layouts.
14
+ - **Size Options:** Regular and small sizes for compact layouts.
15
+ - **Recent Users:** Optional "Recently signed in" section for quick access.
16
+ - **Navigation Actions:** Signed-in state lists the actions it is given.
17
+
18
+ ## Variants
19
+ - `type`: `sign-in`, `user-sign-in`, `loading-sign-in`, `signed-in`
20
+ - `size`: `regular`, `small`
21
+
22
+ ## Usage Guidelines
23
+ Use `obc-user-menu` in authentication or account panels where quick access to
24
+ sign-in, profile, or account actions is needed. The `user-sign-in` type is
25
+ best for fast re-auth flows; `loading-sign-in` is for pending auth states.
26
+
27
+ ## Properties and Configuration
28
+ - `type` (`ObcUserMenuType`): Controls the layout state. Defaults to `sign-in`.
29
+ - `size` (`ObcUserMenuSize`): Controls the overall size. Defaults to `regular`.
30
+ - `hasRecentlySignedIn` (`boolean`): Toggles the recent users section.
31
+ Defaults to `false`.
32
+ - `showUsername` (`boolean`): Toggles the username field. Defaults to `true`.
33
+ - `showPassword` (`boolean`): Toggles the password field. Defaults to `true`.
34
+ - `username` (`string`): Current username value for sign-in layouts.
35
+ - `password` (`string`): Current password value for sign-in layouts.
36
+ - `usernameError` (`string`): Error message for the username field.
37
+ - `passwordError` (`string`): Error message for the password field.
38
+ - `userInitials` (`string`): Initials for the primary user profile.
39
+ - `userLabel` (`string`): Label for the primary user profile.
40
+ - `userRole` (`string`): Role shown under the primary user's label. Omit it
41
+ to show no role; only the regular size draws one.
42
+ - `recentUsers` (`ObcUserMenuUser[]`): List of recent users shown in the
43
+ "Recently signed in" section. Empty renders no section. Each user may
44
+ carry its own `role`.
45
+ - `showUseAnotherAccount` (`boolean`): Toggles the "Use another account"
46
+ button in the `user-sign-in` layouts, both sizes. Defaults to `true`.
47
+ - `signedInActions` (`ObcUserMenuSignedInAction[]`): Actions shown in the
48
+ signed-in navigation list. Empty renders no actions.
49
+ - `primaryActionId` (`string`): Id of the action promoted to a button in the
50
+ small signed-in layout.
51
+
52
+ ## Events
53
+ - `sign-in-click` – Fired when a sign-in button is clicked.
54
+ - `sign-out-click` – Fired when the sign-out button is clicked.
55
+ - `use-another-account-click` – Fired when the "Use another account" button
56
+ is clicked. The menu does not change its own type; set it to `sign-in` in
57
+ the handler to show the full form.
58
+ - `signed-in-action-click` – Fired when a signed-in action is clicked.
59
+ - `recent-user-click` – Fired when a recent user button is clicked.
60
+
61
+ ## Slots
62
+ - `signed-in-action-icon-{id}`: Optional icon for a signed-in action. The
63
+ `{id}` is the normalized action id.
64
+
65
+ ## Example
66
+ ```html
67
+ <obc-user-menu
68
+ type="user-sign-in"
69
+ size="small"
70
+ hasRecentlySignedIn="false"
71
+ userInitials="JD"
72
+ userLabel="John Doe"
73
+ ></obc-user-menu>
74
+ ```
75
+
76
+ ## Properties
77
+
78
+ | Property | Attribute | Type | Default | Description |
79
+ | --- | --- | --- | --- | --- |
80
+ | 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. |
81
+ | 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`. |
82
+ | type | type | `ObcUserMenuType` | | Controls the visual layout of the user menu. |
83
+ | size | size | `ObcUserMenuSize` | | Controls the overall size of the user menu. |
84
+ | hasRecentlySignedIn | hasRecentlySignedIn | `boolean` | `false` | Toggles the "Recently signed in" section visibility. Available when `type in [signIn, userSignIn]`. |
85
+ | showUsername | | `boolean` | `true` | Controls the visibility of the username field. Available when `type==signIn`. |
86
+ | username | username | `string` | `''` | Current username value for sign-in layouts. Available when `showUsername==true && type==signIn`. |
87
+ | showPassword | | `boolean` | `true` | Controls the visibility of the password field. Available when `type in [signIn, userSignIn]`. |
88
+ | password | password | `string` | `''` | Current password value for sign-in layouts. Available when `showPassword==true && type in [signIn, userSignIn]`. |
89
+ | usernameError | usernameError | `string` | `''` | Error message for the username field. Available when `type==signIn`. |
90
+ | passwordError | passwordError | `string` | `''` | Error message for the password field. Available when `type in [signIn, userSignIn]`. |
91
+ | userInitials | userInitials | `string \| undefined` | | Initials for the primary user profile. Available when `type!=signIn`. |
92
+ | userLabel | userLabel | `string \| undefined` | | Label for the primary user profile. Available when `type!=signIn`. |
93
+ | userRole | userRole | `string \| undefined` | | Role shown under the primary user's label; omit it to show no role. Available when `type!=signIn && size==regular`. |
94
+ | recentUsers | | `ObcUserMenuUser[]` | `[]` | Recent users for the "Recently signed in" section. |
95
+ | signedInActions | | `ObcUserMenuSignedInAction[]` | `[]` | Actions shown in the signed-in navigation list. Available when `type==signedIn`. |
96
+ | primaryActionId | primaryActionId | `string \| undefined` | | Id of the action promoted to a button in the small signed-in layout. Available when `type==signedIn && size==small`. |
97
+ | showUseAnotherAccount | | `boolean` | `true` | Controls the visibility of the "Use another account" button. Available when `type==userSignIn`. |
98
+
99
+ ## Events
100
+
101
+ | Event | Type | Description |
102
+ | --- | --- | --- |
103
+ | signed-in-action-click | `CustomEvent<{id: string, label: string}>` | Fired when a signed-in action is clicked. |
104
+ | recent-user-click | `ObcUserMenuRecentUserClickEvent` | Fired when a recent user button is clicked, carrying that user's entry. |
105
+ | sign-in-click | `CustomEvent<{username?: string, password?: string}>` | Fired when a sign-in button is clicked. |
106
+ | sign-out-click | `CustomEvent<void>` | Fired when the sign-out button is clicked. |
107
+ | use-another-account-click | `CustomEvent<void>` | Fired when the "Use another account" button is clicked. |
108
+ | 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. |
109
+
110
+ ## Slots
111
+
112
+ | Slot | Description |
113
+ | --- | --- |
114
+ | signed-in-action-icon-<id> | Optional icon for a signed-in action, one per action; `<id>` is the normalized action id (shown in the `signed-in` type). |
115
+
116
+ ## Stories
117
+
118
+ - [Sign In Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--sign-in-regular)
119
+ - [User Sign In Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--user-sign-in-regular)
120
+ - [Loading Sign In Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--loading-sign-in-regular)
121
+ - [Signed In Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--signed-in-regular)
122
+ - [Loading Sign In Small](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--loading-sign-in-small)
123
+ - [Signed In Small](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--signed-in-small)
124
+ - [Sign In Small](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--sign-in-small)
125
+ - [User Sign In Small](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--user-sign-in-small)
126
+ - [Sign In Without Fields](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--sign-in-without-fields)
127
+ - [User Sign In Without Password Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--user-sign-in-without-password-regular)
128
+ - [User Sign In Without Password Small](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--user-sign-in-without-password-small)
129
+ - [Signed In Without Actions](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--signed-in-without-actions)
130
+ - [User Sign In With Roles](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--user-sign-in-with-roles)
131
+ - [Signed In With Role](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--signed-in-with-role)
132
+ - [User Sign In Without Use Another Account](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--user-sign-in-without-use-another-account)
133
+ - [User Sign In Small Without Use Another Account](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--user-sign-in-small-without-use-another-account)
134
+ - [User Sign In Small Ignores Role](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--user-sign-in-small-ignores-role)
135
+ - [Sign In Without Recent Users](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--sign-in-without-recent-users)
136
+ - [Soft Dismiss From A Bar Button](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-user-menu--soft-dismiss-from-a-bar-button): A menu opened from a bar's own button, the way `obc-top-bar` and `obc-integration-bar` report theirs: as an event, with no button element to hand. Three bindings do it (#1293):
137
+
138
+ - `softDismiss` on the menu;
139
+ - `open` bound to a flag the app keeps, flipped from the bar's
140
+ `user-button-clicked` event; the same flag drives `userButtonActivated`;
141
+ - `close` resets that flag, so the button stops looking pressed when the
142
+ menu closed on its own, and its next click opens the menu again.
143
+
144
+ The bar stays reachable while the menu is up, so a click on its button
145
+ closes the menu: one click, not two. The rest of the page is covered, so
146
+ the button below is not pressed by the click that closes the menu.
147
+ `bindPopoverTrigger` is not involved; it is for a button the app holds
148
+ itself, as in the brilliance menu's *Soft Dismiss* story. The vue demo runs
149
+ its top bar this way (`packages/vue-demo/src/App.vue`).
150
+
151
+ ## See also
152
+
153
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
154
+ - [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)
@@ -0,0 +1,69 @@
1
+ # `<obc-valve-analog-three-way-icon>`
2
+
3
+ Three-way analog valve symbol whose ports open continuously from 0 to 100 %.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-icon-valve-analog-three-way--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/valve-analog-three-way-icon/valve-analog-three-way-icon.ts)
6
+
7
+ Three-way analog valve symbol whose ports open continuously from 0 to
8
+ 100 %.
9
+
10
+ Draws the same symbol as the `obi-threeway-analog-*` icons. The bands, the
11
+ handle angle and the handle position are linear in the opening: exact at
12
+ 0 and 100 %, within a fraction of a unit of the icons' 25/50/75 steps.
13
+ Used as the icon of `obc-analog-threeway-valve`, and on its
14
+ own inside an `obc-automation-button`.
15
+
16
+ ## Ports
17
+
18
+ Ports are numbered from the side without a port: with `orientation`
19
+ `bottom`, port 1 is left, port 2 is the stem at the bottom and port 3 is
20
+ right. The numbering turns with the symbol.
21
+
22
+ - A port between 0 and 100 % shows its shut part as a band at the port end.
23
+ - A port at 0 % is drawn plugged.
24
+ - With fewer than two ports open no flow can pass, and the closed symbol is
25
+ shown.
26
+ - With all three ports at 100 % the generic open symbol is shown.
27
+
28
+ The handle shows how the most open port (the inlet) splits between the two
29
+ others, the way the `inleft-*` icons do.
30
+
31
+ TODO(designer): the `inleft-bottom` and `inleft-right` icons name their 0
32
+ and 100 steps the other way round from their 25/50/75 steps (at `-0` the
33
+ port the series opens is shut). The symbol follows the 25/50/75 steps.
34
+
35
+ ## Properties
36
+
37
+ | Property | Attribute | Type | Default | Description |
38
+ | --- | --- | --- | --- | --- |
39
+ | open1 | open1 | `number` | `0` | Opening of port 1 in percent (0–100). |
40
+ | open2 | open2 | `number` | `0` | Opening of port 2, the stem, in percent (0–100). |
41
+ | open3 | open3 | `number` | `0` | Opening of port 3 in percent (0–100). |
42
+ | orientation | orientation | `ThreewayValveOrientation` | | Side the stem points to; `bottom` and `top` lay the valve on a horizontal pipe, `left` and `right` on a vertical one. |
43
+ | value | value | `number \| undefined` | | Opening of the right port with the stem up. Setting any of `value`, `value2`, `closed` or `horisontal` draws the symbol stem up, with the left port fully open, and ignores `open1`–`open3` and `orientation`. |
44
+ | value2 | value2 | `number \| undefined` | | Opening of the top port (the stem). |
45
+ | closed | closed | `boolean \| undefined` | | Closes every port. Like `value`, `value2` and `horisontal`, setting it at all, `false` included, switches to the legacy drawing: stem up, `open1`–`open3` and `orientation` ignored. |
46
+ | horisontal | horisontal | `boolean \| undefined` | | Makes the stem the fully open port; `value` then opens the left port and `value2` the right one. |
47
+
48
+ ## Events
49
+
50
+ None.
51
+
52
+ ## Slots
53
+
54
+ None.
55
+
56
+ ## Stories
57
+
58
+ - [Split](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-three-way--split)
59
+ - [Open](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-three-way--open)
60
+ - [Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-three-way--closed)
61
+ - [Plugged](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-three-way--plugged)
62
+ - [Continuous](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-three-way--continuous)
63
+ - [Orientations](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-three-way--orientations)
64
+ - [Matches Icons](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-three-way--matches-icons): Top row: the `obi-threeway-analog-*` icons. Bottom row: this component at the same openings.
65
+ - [Deprecated Value Properties](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-three-way--deprecated-value-properties): The deprecated `value`/`value2` properties draw the symbol stem up with the left port fully open.
66
+
67
+ ## See also
68
+
69
+ - [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)
@@ -0,0 +1,39 @@
1
+ # `<obc-valve-analog-two-way-icon>`
2
+
3
+ Two-way analog valve symbol whose opening moves continuously from 0 to 100 %.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-icon-valve-analog-two-way--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/valve-analoge-two-way-icon/valve-analog-two-way-icon.ts)
6
+
7
+ Two-way analog valve symbol whose opening moves continuously from 0 to
8
+ 100 %.
9
+
10
+ Draws the same symbol as the `obi-twoway-analog-*` icons. The shut bands at
11
+ the port ends and the handle are linear in the opening: exact at 100 %
12
+ (`obi-twoway-analog-open`) and at 0 % (vertical handle, ports shut to the
13
+ centre), and close to the icons' 10/25/50/75 % steps in between. Used as
14
+ the icon of `obc-analog-valve`.
15
+
16
+ ## Properties
17
+
18
+ | Property | Attribute | Type | Default | Description |
19
+ | --- | --- | --- | --- | --- |
20
+ | value | value | `number` | `0` | Opening in percent (0–100). Available when `closed==false`. |
21
+ | closed | closed | `boolean` | `false` | Shows the closed symbol. |
22
+ | vertical | vertical | `boolean` | `false` | Turns the symbol 90° for a vertical pipe. |
23
+
24
+ ## Events
25
+
26
+ None.
27
+
28
+ ## Slots
29
+
30
+ None.
31
+
32
+ ## Stories
33
+
34
+ - [Open](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-two-way--open)
35
+ - [Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-two-way--closed)
36
+ - [Half Open](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-two-way--half-open)
37
+ - [Near Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-two-way--near-closed)
38
+ - [Continuous](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-two-way--continuous)
39
+ - [Matches Icons](https://openbridge-next-storybook.web.app/?path=/story/automation-icon-valve-analog-two-way--matches-icons): Top row: the `obi-twoway-analog-*` icons. Bottom row: this component at the same opening; open and closed match exactly, the steps between are close.