@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,157 @@
1
+ # `<obc-compass>`
2
+
3
+ Full-featured compass with HDG/COG arrows, rate-of-turn indicator, and environmental overlays.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-compass--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/compass/compass.ts)
6
+
7
+ `<obc-compass>` – Full-featured compass with HDG/COG arrows, rate-of-turn indicator, and environmental overlays.
8
+
9
+ Renders a circular compass instrument that displays heading (HDG) and
10
+ course-over-ground (COG) as rotating arrows over a triple-ring watch face.
11
+ It supports wind and current indicators, a vessel silhouette, heading
12
+ setpoint with auto at-setpoint detection, advice zones, and a rate-of-turn
13
+ (ROT) dot indicator. The compass can be oriented north-up, heading-up, or
14
+ course-up.
15
+
16
+ ## Features
17
+
18
+ - **Direction modes**: `northUp` (default), `headingUp`, or `courseUp`
19
+ via the `direction` property.
20
+ - **HDG / COG arrows**: Two styled arrows overlay the watch face,
21
+ rotating independently.
22
+ - **Heading setpoint**: Optional setpoint marker with auto at-setpoint
23
+ detection via `headingSetpoint`, `atHeadingSetpoint`, and deadband
24
+ tuning properties.
25
+ - **Advice zones**: Pass `headingAdvices` (or the shared `advices`) to render caution/alert arcs;
26
+ triggered state is derived from whether the current heading falls
27
+ inside the advice range.
28
+ - **Rate of turn**: Animated ROT indicator driven by
29
+ `rateOfTurnDegreesPerMinute` (deg/min, the maritime / AIS convention).
30
+ Supports spinning dots (`rotType="dots"`) — the dot animation is
31
+ amplified by `rotDotAnimationFactor` so small physical values still
32
+ read at a glance — and a banana-shaped arc bar (`rotType="bar"`)
33
+ showing the rate of turn as an arc anchored at the current heading.
34
+ Bar extent is driven by the physical value only (gain is not applied).
35
+ Position on the outer scale ring or inner circle via `rotPosition`.
36
+ - **Environmental overlays**: Wind speed/direction and current
37
+ speed/direction indicators on the watch face.
38
+ - **Vessel image**: Configurable vessel silhouette centered on the
39
+ compass, rotating with heading.
40
+ - **Arrow styles**: The HDG and COG arrows each select their look via
41
+ `hdgArrowStyle` (`arrowHead` default, `needle`, `vector`, `beamLine`)
42
+ and `cogArrowStyle` (`arrowHead` default, `needle`, `vector`,
43
+ `velocityVector`).
44
+ - **Center readouts**: `centerReadouts` replaces the vessel with up to
45
+ three readouts (first on top, the rest below a horizontal divider);
46
+ values bind to the instrument's own inputs per entry `source`.
47
+ - **Color priority**: Set `priority` to `Priority.enhanced` to use the
48
+ blue/enhanced color palette instead of the default gray/regular palette
49
+ (default: `Priority.regular`).
50
+
51
+ ## Usage Guidelines
52
+
53
+ - Set `heading` and `courseOverGround` to the current sensor values
54
+ in degrees.
55
+ - Use `direction` to control the compass orientation mode.
56
+ - Use `headingSetpoint` to show a target heading marker.
57
+ - Pass `headingAdvices` as an array of `AdviceInput` entries for
58
+ caution/alert zones.
59
+ - Set `currentWindSpeedKnots` / `windFromDirection` and `currentSpeed` /
60
+ `currentFromDirection` to display environmental indicators.
61
+
62
+ ## Example
63
+
64
+ ```html
65
+ <obc-compass
66
+ heading="45"
67
+ courseOverGround="50"
68
+ direction="northUp"
69
+ headingSetpoint="90"
70
+ priority="regular"
71
+ vesselImage="genericTop"
72
+ ></obc-compass>
73
+ ```
74
+
75
+ ## Properties
76
+
77
+ | Property | Attribute | Type | Default | Description |
78
+ | --- | --- | --- | --- | --- |
79
+ | heading | heading | `number` | `0` | The current heading of the vessel in degrees. |
80
+ | courseOverGround | courseOverGround | `number` | `0` | The current course over ground in degrees. |
81
+ | headingSetpoint | headingSetpoint | `number \| null` | `null` | The set point for the heading in degrees. |
82
+ | newHeadingSetpoint | newHeadingSetpoint | `number \| undefined` | | Available when `headingSetpoint!=null`. |
83
+ | atHeadingSetpoint | atHeadingSetpoint | `boolean` | `false` | Indicates if the vessel is at the heading set point. Available when `headingSetpoint!=null && autoAtHeadingSetpoint==false`. |
84
+ | headingSetpointAtZeroDeadband | headingSetpointAtZeroDeadband | `number` | `0.5` | Available when `headingSetpoint!=null`. |
85
+ | headingSetpointOverride | headingSetpointOverride | `boolean` | `false` | Available when `headingSetpoint!=null`. |
86
+ | autoAtHeadingSetpoint | | `boolean` | `true` | Enables automatic at heading set point calculation. Available when `headingSetpoint!=null`. |
87
+ | autoAtHeadingSetpointDeadband | autoAtHeadingSetpointDeadband | `number` | `2` | The deadband for the heading set point in degrees. Available when `headingSetpoint!=null && autoAtHeadingSetpoint==true`. |
88
+ | animateSetpoint | animateSetpoint | `boolean` | `false` | Available when `headingSetpoint!=null`. |
89
+ | touching | touching | `boolean` | `false` | Indicates if the compass is being touched. Available when `headingSetpoint!=null`. |
90
+ | headingAdvices | | `AdviceInput[] \| undefined` | | Heading advices: ranges and points in degrees, resolved against `heading` and `headingSetpoint`. The same list as `advices`, the name every instrument shares; `adviceTrigger` and `adviceEmphasis` come from the advice mixin (`svghelpers/advice-mixin.ts`). |
91
+ | currentWindSpeedKnots | currentWindSpeedKnots | `number \| null` | `null` | The wind speed in knots. Available when `windFromDirection!=null`. |
92
+ | windFromDirection | windFromDirection | `number \| null` | `null` | The direction the wind is coming from in degrees. Available when `currentWindSpeedKnots!=null`. |
93
+ | currentSpeed | currentSpeed | `number \| null` | `null` | The current speed, number of arrows. Available when `currentFromDirection!=null`. |
94
+ | currentFromDirection | currentFromDirection | `number \| null` | `null` | The direction the current is coming from in degrees. Available when `currentSpeed!=null`. |
95
+ | vesselImage | vesselImage | `VesselImage` | | The image of the vessel. Hidden while `centerReadouts` is non-empty. Available when `centerReadouts==[]`. |
96
+ | vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). Available when `centerReadouts==[]`. |
97
+ | centerReadouts | | `CompassCenterReadout[]` | `[]` | Center readouts replacing the vessel: the first entry renders on top, the rest side by side below a horizontal divider. Values bind per entry `source` (`hdg` → `heading`, `cog` → `courseOverGround`, `rot` → `rateOfTurnDegreesPerMinute`, a dash when unset) and colors follow `priorityElements`. While non-empty, the crosshair's center is cut out so the readouts sit on a clean face. |
98
+ | hdgArrowStyle | hdgArrowStyle | `HdgArrowStyle` | | HDG arrow style: `arrowHead` (default), `needle`, `vector`, or `beamLine`. |
99
+ | cogArrowStyle | cogArrowStyle | `CogArrowStyle` | | COG arrow style: `arrowHead` (default), `needle`, `vector`, or `velocityVector`. |
100
+ | rateOfTurnDegreesPerMinute | rateOfTurnDegreesPerMinute | `number \| undefined` | | Measured rate of turn in degrees per minute (positive = starboard). Drives both the bar extent and (after multiplication by `rotDotAnimationFactor`) the spinning dot animation. When `undefined`, falls back to the deprecated `rotationsPerMinute`. |
101
+ | rotDotAnimationFactor | rotDotAnimationFactor | `number` | `18` | Visual amplification applied only to the spinning dot animation (not to the bar extent). Default `18` keeps the legacy visual feel (≈1 rpm at 20°/min). Available when `rotType==dots`. |
102
+ | rotationsPerMinute | rotationsPerMinute | `number` | `0` | Legacy rate-of-turn input, in rotations per minute. When `rateOfTurnDegreesPerMinute` is `undefined`, this value is used (unconverted) as the fallback ROT, driving both the spinning dot ring and the bar extent. |
103
+ | rotType | rotType | `RotType` | | ROT display mode: `'dots'` (spinning dots, default) or `'bar'` (a rate-of-turn arc anchored at the current heading, its length proportional to the rate of turn). |
104
+ | rotPosition | rotPosition | `RotPosition` | | ROT track position: `'innerCircle'` (default) or `'scale'` (on the outer ring). |
105
+ | rotMaxValue | rotMaxValue | `number` | `60` | Bar-extent reference value in degrees per minute: the bar fills the full ±`rotArcExtent` arc when the measured rate of turn reaches ±`rotMaxValue`. The default `60` aligns with ES-TRIN 2025/1 Art. 3.02. Available when `rotType==bar`. |
106
+ | rotArcExtent | rotArcExtent | `number` | `60` | Available when `rotType==bar`. |
107
+ | rotPortStarboard | rotPortStarboard | `boolean` | `false` | |
108
+ | rotAtZeroDeadband | rotAtZeroDeadband | `number` | `ROT_ZERO_DEADBAND_DEG` | Available when `rotType==bar`. |
109
+ | direction | direction | `CompassDirection` | | |
110
+ | state | state | `InstrumentState` | | |
111
+ | priority | priority | `Priority` | | Color priority: `Priority.enhanced` uses the blue/enhanced color palette, `Priority.regular` (default) uses the standard palette. |
112
+ | priorityElements | | `CompassPriorityElement[]` | `[CompassPriorityElement.hdg]` | Available when `priority==enhanced`. |
113
+ | showLabels | showLabels | `boolean` | `false` | Show compass NSEW labels. The north arrow is always shown, independent of this flag. |
114
+ | tickmarksInside | tickmarksInside | `boolean` | `false` | When true, labels and north arrow are placed inside the outer ring. |
115
+ | faceDiameter | face-diameter | `number \| undefined` | | Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size derived from the ring, arc shape and label reserve — so instruments sharing the same value have identical ring circumference regardless of label width or arc extent (like obc-donut-chart's fixedHeight). When unset (default), the instrument fills its container. |
116
+ | advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
117
+ | adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
118
+ | adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
119
+
120
+ ## Events
121
+
122
+ None.
123
+
124
+ ## Slots
125
+
126
+ None.
127
+
128
+ ## Stories
129
+
130
+ - [North Up In Command](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--north-up-in-command)
131
+ - [North Up Not In Command](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--north-up-not-in-command)
132
+ - [Heading Up In Command](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--heading-up-in-command)
133
+ - [Course Up In Command](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--course-up-in-command)
134
+ - [Course Advice Point](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--course-advice-point): A point advice on the course over ground: the dot sits on the ring at the course, `active` until the heading reaches it.
135
+ - [With Custom Vessel Image Svg](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-custom-vessel-image-svg)
136
+ - [With Custom Vessel Image Png](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-custom-vessel-image-png)
137
+ - [With Labels Outside](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-labels-outside)
138
+ - [With Labels Inside](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-labels-inside)
139
+ - [With Rot Bar](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-rot-bar)
140
+ - [With Rot Bar Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-rot-bar-enhanced)
141
+ - [With Rate Of Turn Degrees Per Minute](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-rate-of-turn-degrees-per-minute)
142
+ - [With Center Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-center-readout)
143
+ - [With Two Primary Readouts](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-two-primary-readouts)
144
+ - [With Primary Secondary Readouts](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-primary-secondary-readouts)
145
+ - [With Three Readouts](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-three-readouts)
146
+ - [Map Graphics](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--map-graphics): The "map graphics" recipe: vessel, HDG vector with beam crossbar and astern line, COG arrow head, the rate-of-turn bar, and outside NSWE labels.
147
+ - [With HDG Arrow Styles](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-hdg-arrow-styles)
148
+ - [With COG Arrow Styles](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--with-cog-arrow-styles)
149
+ - [Small Container (250px, Labels + Decor Reserve)](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--small-container)
150
+ - [Sizing Playground — FaceDiameter + Resizable (Manual)](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--sizing-playground): Interactive sizing playground: drag the dashed box's bottom-right corner to resize it. The first compass is pinned to a fixed intrinsic size by the `faceDiameter` control, while the second adapts to the remaining flex space, reserving room for the NSWE labels, north arrow and wind symbols adaptively (issue #1021). Enable `lockFaceDiameter` to pin both to the same circumference. Related: *Sizing Playground* stories under Building Blocks/Watch, Building Blocks/Instrument Radial and Instruments/Gauge Radial.
151
+ - [Advice Icons](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass--advice-icons): Icons outside the ring at each band's mid-angle, upright under the heading-up rotation.
152
+
153
+ ## See also
154
+
155
+ - [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
156
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
157
+ - [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,191 @@
1
+ # `<obc-context-menu-input>`
2
+
3
+ A flexible context menu component for presenting selectable lists, actions, or multi-column menus with support for single or multiple selection, checkboxes, flyout groups, and icons.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-menus-and-navigation-context-menu-input--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/context-menu-input/context-menu-input.ts)
6
+
7
+ `<obc-context-menu-input>` – A flexible context menu component for presenting selectable lists, actions, or multi-column menus with support for single or multiple selection, checkboxes, flyout groups, and icons.
8
+
9
+ This component provides a highly configurable menu surface for displaying options, actions, or grouped selections. It supports several variants including regular single-select menus, checkbox lists, nested checkboxes, flyout (cascading) groups, and multi-column layouts with or without group subtitles. Options can include icons and hierarchical nesting.
10
+
11
+ Appears as a popover or dropdown menu, allowing users to select one or more items from a list, optionally organized into columns or groups. Suitable for use as a context menu, dropdown, action menu, or feature selector.
12
+
13
+ ## Features
14
+
15
+ - **Variants:**
16
+ - **Regular:** Single-select menu with navigation items (optionally with icons).
17
+ - **Checkboxes:** List of options with checkboxes for multi-selection.
18
+ - **NestedCheckboxes:** Checkbox list supporting hierarchical/nested options (with indentation).
19
+ - **Flyout:** Menu with expandable/cascading groups; supports both single and multi-select, and group/child icons.
20
+ - **Multi:** Multi-column menu for large option sets; supports single or multi-select per column.
21
+ - **MultiWithSubtitles:** Multi-column menu with group subtitles/headers; each group can have its own set of options and columns.
22
+
23
+ - **Selection Modes:**
24
+ - Single-select, multi-select, or per-group/column single-select (configurable via `multiSelect` and `selectPerGroup`).
25
+ - Persistent selection (selected items remain highlighted after interaction).
26
+
27
+ - **Icons:**
28
+ - Options can display leading icons (e.g., `<obi-placeholder></obi-placeholder>`).
29
+ - Group headers in flyout and multi-column modes can also include icons.
30
+
31
+ - **Title Bar:**
32
+ - Optional title bar with customizable text and a close button.
33
+
34
+ - **Column Grouping:**
35
+ - Multi-column layouts can be grouped with subtitles and custom column counts per group.
36
+
37
+ - **Nested Options:**
38
+ - Nested checkboxes and flyout groups support hierarchical option structures.
39
+
40
+ - **Accessibility:**
41
+ - Uses ARIA roles for menu and menuitem.
42
+
43
+ ## Usage Guidelines
44
+
45
+ Use `<obc-context-menu-input>` when you need to present a list of actions or options in a popover, dropdown, or context menu format, especially when:
46
+ - Options may require icons, grouping, or hierarchical structure.
47
+ - You need to support both single and multiple selection, including per-group or per-column selection.
48
+ - The menu may contain a large number of options, requiring multi-column or grouped layouts.
49
+ - You want to provide a familiar menu or action sheet experience with optional checkboxes or flyout groups.
50
+
51
+ Common use cases include: context menus, dropdown selectors, feature pickers, action menus, filter menus, or any scenario where users need to choose from a structured list of options.
52
+
53
+ **Do not use** for persistent navigation (use a sidebar or navigation menu instead), or for simple single-action buttons.
54
+
55
+ **TODO(designer):** Confirm if there are recommended limits for the number of columns/groups, or best practices for deeply nested options.
56
+
57
+ ## Features and Variants
58
+
59
+ - **Regular:**
60
+ - Single-select, navigation-style menu with optional icons.
61
+ - **Checkboxes:**
62
+ - Multi-select list with checkboxes. Each option can be toggled independently.
63
+ - **NestedCheckboxes:**
64
+ - Multi-select with hierarchical/nested options. Indentation reflects nesting level.
65
+ - **Flyout:**
66
+ - Groups of options expand into submenus (flyouts). Supports both single and multi-select. Group and child options can have icons.
67
+ - **Multi:**
68
+ - Options are distributed across multiple columns. Can be single or multi-select. Optionally restrict to one selection per column.
69
+ - **MultiWithSubtitles:**
70
+ - Like Multi, but columns are grouped under subtitles/headers. Each group can have its own column count and options.
71
+
72
+ ## Properties
73
+
74
+ - `type` (`ContextMenuType`): Sets the menu variant. Defaults to `'regular'`.
75
+ - `options` (`ContextMenuOption[]`): Array of menu options. Each option can have `value`, `label`, optional `icon`, `level` (for nesting), and `children` (for flyout/nested).
76
+ - `selectedValues` (string[]): Array of currently selected option values.
77
+ - `hasTitleBar` (boolean): If true, displays a title bar with close button.
78
+ - `title` (string): Text for the title bar (shown if `hasTitleBar` is true).
79
+ - `columnGroups` (ColumnGroup[]): Used for `multi-with-subtitles` variant to define groupings and columns.
80
+ - `itemsPerColumn` (number): Number of options per column in multi-column layouts.
81
+ - `multiSelect` (boolean): If true, allows multiple selections. Defaults based on variant.
82
+ - `selectPerGroup` (boolean): If true, restricts selection to one per group/column (used in flyout and multi-column).
83
+ - `persistSelection` (boolean): If true, keeps selected items highlighted after interaction.
84
+
85
+ ## Keyboard
86
+ [APG Menu](https://www.w3.org/WAI/ARIA/apg/patterns/menu/): the menu is one
87
+ tab stop, entered on the selected item or the first one; `Up` and `Down`
88
+ move between items and stop at the ends, `Home` and `End` jump to them,
89
+ `Enter` and `Space` select through the item, and `Escape` fires `close`, which
90
+ is also why the title bar's close button stays out of the tab sequence.
91
+ Single-select items are `menuitemradio` with `aria-checked` on their
92
+ control, not on the host; checkbox menus
93
+ keep their checkboxes and move between them the same way.
94
+
95
+ Left out: wrapping at the ends, and type-ahead. The checkbox variants put
96
+ `role="checkbox"` items in the menu where the pattern asks for
97
+ `menuitemcheckbox`. A flyout's header is a plain button without
98
+ `aria-haspopup` or `aria-expanded`, its children sit in a `group` rather
99
+ than a nested `menu`, and `Right` and `Left` do not open and close it.
100
+
101
+ ## Events
102
+
103
+ - `change` – Fired when the selection changes.
104
+ Detail includes the selected values array and the selected option objects.
105
+ - `item-click` – Fired when a menu item is clicked (even if not changing selection).
106
+ Detail includes the clicked value and its option object.
107
+ - `close` – Fired when the close button in the title bar is clicked.
108
+
109
+ ## Best Practices and Constraints
110
+
111
+ - Use icons to help users quickly identify options, especially in long or complex menus.
112
+ - For multi-column layouts, keep the number of columns manageable to avoid overwhelming users.
113
+ - Use the `multi-with-subtitles` variant for grouped feature selection or when options need to be categorized.
114
+ - For nested checkboxes, avoid excessive nesting for clarity.
115
+ - In flyout menus, use group icons to visually distinguish categories.
116
+ - Only use the close button if the menu is presented as a modal or overlay that requires explicit dismissal.
117
+ - For accessibility, ensure all options have clear labels.
118
+
119
+ ## Example
120
+
121
+ ```html
122
+ <obc-context-menu-input
123
+ type="flyout"
124
+ .options=${[
125
+ {
126
+ value: 'file',
127
+ label: 'File',
128
+ icon: html`<obi-placeholder slot="icon"></obi-placeholder>`,
129
+ children: [
130
+ { value: 'new', label: 'New' },
131
+ { value: 'open', label: 'Open' },
132
+ { value: 'save', label: 'Save' }
133
+ ]
134
+ },
135
+ { value: 'edit', label: 'Edit' }
136
+ ]}
137
+ .selectedValues=${['save']}
138
+ hasTitleBar
139
+ title="Menu"
140
+ ></obc-context-menu-input>
141
+ ```
142
+
143
+ In this example, a flyout menu is shown with a title bar, group icons, and a selected child option.
144
+
145
+ ## Properties
146
+
147
+ | Property | Attribute | Type | Default | Description |
148
+ | --- | --- | --- | --- | --- |
149
+ | 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. |
150
+ | 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`. |
151
+ | type | type | `ContextMenuType` | | Menu variant: `regular` (default) is a single-select navigation menu, `checkboxes` and `nested-checkboxes` are flat and hierarchical multi-select, `flyout` has expandable cascading groups, and `multi` and `multi-with-subtitles` lay the menu out in columns, the latter with group subtitles. |
152
+ | options | options | `ContextMenuOption[]` | `[]` | Menu options, each with a unique `value` and a `label`, and optionally an `icon` template for the leading icon, a `level` giving the nesting depth for nested checkboxes, and `children` for a flyout or nested menu. |
153
+ | selectedValues | selectedValues | `string[]` | `[]` | Array of currently selected option values. For multi-select variants, can contain multiple values. For single-select, contains at most one value. |
154
+ | hasTitleBar | hasTitleBar | `boolean` | `false` | Whether to show a title bar with close button at the top of the menu. If true, displays the `title` property and a close icon button. |
155
+ | title | title | `string` | `''` | Title text displayed in the title bar (if `hasTitleBar` is true). Available when `hasTitleBar==true`. |
156
+ | columnGroups | columnGroups | `ColumnGroup[]` | `[]` | Array of column groups for the `multi-with-subtitles` layout. Each group defines a `title`, `columns` (number of columns in the group), and `options` (array of options for that group). Available when `type==MultiWithSubtitles`. |
157
+ | itemsPerColumn | itemsPerColumn | `number` | `5` | Number of items per column in multi-column layouts. Used in `multi` and `multi-with-subtitles` variants to control column splitting. Available when `type in [Multi, MultiWithSubtitles]`. |
158
+ | multiSelect | multiSelect | `boolean \| undefined` | | Whether multiple selections are allowed. If not set, defaults to true for checkbox/multi variants, false for regular/flyout. |
159
+ | selectPerGroup | selectPerGroup | `boolean \| undefined` | | If true, restricts selection to one option per group or column (used in flyout and multi-column). When enabled, only one option can be selected in each group or column. |
160
+
161
+ ## Events
162
+
163
+ | Event | Type | Description |
164
+ | --- | --- | --- |
165
+ | close | `CustomEvent<void>` | Fired when the close button is clicked, on `Escape`, and, with `softDismiss` on, when the menu closed on its own from a click outside or another menu opening. Reset the flag you bind to `open` here in every case: after a self-dismissal `open` is already `false`, while the close button and `Escape` without `softDismiss` leave `open` as it was and only ask. |
166
+ | item-click | `ObcContextMenuInputItemClickEvent` | Fired when a menu item is clicked. |
167
+ | change | `ObcContextMenuInputChangeEvent` | Fired when the selection changes. |
168
+
169
+ ## Slots
170
+
171
+ | Slot | Description |
172
+ | --- | --- |
173
+ | (default) | Optionally used for custom icons in options (e.g., `<obi-placeholder slot="icon"></obi-placeholder>`) |
174
+
175
+ ## Stories
176
+
177
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--regular): Default regular context menu with label-only and icon items.
178
+ - [Checkboxes](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--checkboxes): Checkbox variant, some with icons.
179
+ - [Nested Checkboxes](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--nested-checkboxes): Nested checkboxes, some nested items with icons.
180
+ - [Action Only Flyout](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--action-only-flyout): Flyout menu with group icons and some child icons.
181
+ - [Multi Select Flyout](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--multi-select-flyout): Multi-select flyout menu with group and child icons.
182
+ - [Single Select Flyout](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--single-select-flyout): Single selection flyout menu with group and child icons.
183
+ - [Per Group Select Flyout](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--per-group-select-flyout): Per-group selection flyout menu with group and child icons.
184
+ - [Multi Column](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--multi-column): Multi-column menu (no groups), mix of icons.
185
+ - [Multi Column With Subtitles](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--multi-column-with-subtitles): Multi-column with subtitles/groups, group options have some icons.
186
+ - [Multi Column Group Selection](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--multi-column-group-selection): Multi-column menu, only one option per column can be selected (group selection).
187
+ - [Multi Column With Subtitles Group Selection](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-context-menu-input--multi-column-with-subtitles-group-selection): Multi-column with subtitles/groups, only one option per group/column can be selected.
188
+
189
+ ## See also
190
+
191
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,64 @@
1
+ # `<obc-converter>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-converter--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/converter/converter.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | alternativeIcon | alternativeIcon | `ConverterAlternativeIcon` | | |
12
+ | icon | | `TemplateResult` | | |
13
+ | turnedOn | turnedOn | `boolean` | `false` | Whether the device is on. Selects the on icon and the `On` state row instead of `Off`. Not named `on`, which Svelte binds as an event listener in markup (#1090). |
14
+ | on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
15
+ | variant | variant | `SquaredVariant` | | |
16
+ | orientation | orientation | `AutomationButtonOrientation` | | |
17
+ | extraReadouts | | `AutomationButtonReadoutStack[]` | | |
18
+ | showReadoutStack | | `boolean` | `true` | |
19
+ | static | static | `boolean` | `false` | Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. |
20
+ | readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
21
+ | showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
22
+ | showStatusIcon | | `boolean` | `false` | |
23
+ | readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
24
+ | tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
25
+ | positioning | positioning | `AutomationButtonPositioning` | | |
26
+ | activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
27
+ | alert | alert | `boolean` | `false` | |
28
+ | alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
29
+ | alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
30
+ | alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
31
+ | alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
32
+ | showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
33
+ | showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
34
+ | progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
35
+ | progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
36
+ | progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
37
+ | badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
38
+ | badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
39
+ | badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
40
+ | badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
41
+ | badgeLayout | | `AutomationButtonBadgeLayout \| undefined` | `undefined` | Which badge kind each corner shows, on top of the app-wide layout set with `setAutomationBadgeLayout()`. A corner left out keeps the app-wide badge, `null` leaves it empty, and a badge moved here leaves the corner it came from. |
42
+ | badgeSymbolOverride | | `AutomationBadgeSymbolOverride \| undefined` | `undefined` | Letters that replace badge symbols on this device, per badge property and value, on top of the app-wide ones set with `setAutomationBadgeSymbolOverride()`; for example `{commandLocked: {simulation: 's'}}`. `null` brings the symbol back. |
43
+ | badgeTopRight | | `HTMLElement[]` | | |
44
+ | badgeTopLeft | | `HTMLElement[]` | | |
45
+ | badgeBottomLeft | | `HTMLElement[]` | | |
46
+ | badgeBottomRight | | `HTMLElement[]` | | |
47
+
48
+ ## Events
49
+
50
+ None.
51
+
52
+ ## Slots
53
+
54
+ None.
55
+
56
+ ## Stories
57
+
58
+ - [On](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-converter--on)
59
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-converter--off)
60
+ - [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-converter--static)
61
+
62
+ ## See also
63
+
64
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,29 @@
1
+ # `<obc-corner-line>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: deprecated. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-line-corner-line--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/corner-line/corner-line.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | medium | medium | `LineMedium` | | |
12
+ | direction | direction | `CornerLineDirection` | | |
13
+ | lineType | lineType | `LineType` | | |
14
+
15
+ ## Events
16
+
17
+ None.
18
+
19
+ ## Slots
20
+
21
+ None.
22
+
23
+ ## Stories
24
+
25
+ - [Primary](https://openbridge-next-storybook.web.app/?path=/story/automation-line-corner-line--primary)
26
+
27
+ ## See also
28
+
29
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,79 @@
1
+ # `<obc-current>`
2
+
3
+ Water-current instrument with direction chevrons and a force-graphics band pattern.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-current--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/current/current.ts)
6
+
7
+ `<obc-current>` – Water-current instrument with direction chevrons and a
8
+ force-graphics band pattern.
9
+
10
+ Renders the current's from-direction and strength on a circular watch
11
+ face. Two layouts are available via `type`: `vessel` (default) shows a
12
+ vessel silhouette on a double-ring track face with a chevron icon at the
13
+ periphery pointing with the flow; `direction` shows a single-ring face
14
+ with a large centered chevron icon. In both, a soft band pattern fills the
15
+ face, rotated perpendicular to the flow.
16
+
17
+ ## Features
18
+
19
+ - **Types**: `vessel` (track face + vessel + peripheral icon) or
20
+ `direction` (single ring + large centered icon) via `type`.
21
+ - **Strength buckets**: `currentSpeed` selects the chevron icon
22
+ (`0`–`4` = number of chevrons); values are rounded and clamped.
23
+ - **Color priority**: `priority=enhanced` switches the pattern and icon to
24
+ the enhanced (blue) palette.
25
+ - **Vessel image**: configurable silhouette rotating with
26
+ `vesselHeadingDeg` (vessel type).
27
+ - **Pattern toggle & wave tuning**: `hasPattern` switches the band pattern
28
+ off; `waveLength`, `waveHeight` and `waveSpeed` tune the band spacing,
29
+ intensity and drift motion.
30
+
31
+ ## Usage Guidelines
32
+
33
+ Set `currentSpeed` and `currentFromDirection` to the sensor values. Use
34
+ `obc-wind` for the analogous wind instrument; use `obc-compass` when the
35
+ current indicator should overlay a full compass.
36
+
37
+ ## Example
38
+
39
+ ```html
40
+ <obc-current
41
+ currentSpeed="3"
42
+ currentFromDirection="330"
43
+ vesselHeadingDeg="15"
44
+ ></obc-current>
45
+ ```
46
+
47
+ ## Properties
48
+
49
+ | Property | Attribute | Type | Default | Description |
50
+ | --- | --- | --- | --- | --- |
51
+ | type | type | `CurrentType` | | Layout type: `vessel` (track face with vessel) or `direction` (large centered icon). |
52
+ | currentSpeed | currentSpeed | `number \| null` | `null` | The current strength as a chevron bucket (0–4 = number of chevrons); rounded and clamped. `null` hides the icon. Available when `currentFromDirection!=null`. |
53
+ | currentFromDirection | currentFromDirection | `number \| null` | `null` | The direction the current is coming from in degrees. |
54
+ | priority | priority | `Priority` | | Color priority: `Priority.enhanced` uses the blue/enhanced palette (default: `Priority.regular`). |
55
+ | hasPattern | | `boolean` | `true` | Show the force-graphics band pattern behind the watch face. Available when `currentFromDirection!=null`. |
56
+ | waveLength | waveLength | `number` | `1` | Wavelength of the pattern bands as a multiplier on the design spacing (1 = design, 0.5 = twice as dense). Available when `hasPattern==true && currentFromDirection!=null`. |
57
+ | waveHeight | waveHeight | `number` | `1` | Wave intensity: the peak opacity the pattern bands fade up to (0–1). Available when `hasPattern==true && currentFromDirection!=null`. |
58
+ | waveSpeed | waveSpeed | `number` | `0` | Drift speed of the pattern in wavelengths per second, moving with the flow (negative drifts against it); 0 keeps the pattern static. Available when `hasPattern==true && currentFromDirection!=null`. |
59
+ | vesselImage | vesselImage | `VesselImage` | | The image of the vessel. Available when `type==vessel`. |
60
+ | vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). Available when `type==vessel`. |
61
+ | vesselHeadingDeg | vesselHeadingDeg | `number` | `0` | Vessel heading in degrees. Available when `type==vessel`. |
62
+
63
+ ## Events
64
+
65
+ None.
66
+
67
+ ## Slots
68
+
69
+ None.
70
+
71
+ ## Stories
72
+
73
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/instruments-current--default)
74
+ - [Direction](https://openbridge-next-storybook.web.app/?path=/story/instruments-current--direction)
75
+ - [Vessel Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-current--vessel-enhanced)
76
+ - [Direction Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-current--direction-enhanced)
77
+ - [Without Pattern](https://openbridge-next-storybook.web.app/?path=/story/instruments-current--without-pattern)
78
+ - [Wave Tuned](https://openbridge-next-storybook.web.app/?path=/story/instruments-current--wave-tuned): Denser, softer waves: half the design wavelength at reduced intensity.
79
+ - [Animated Waves](https://openbridge-next-storybook.web.app/?path=/story/instruments-current--animated-waves): The pattern drifts with the flow at `waveSpeed` wavelengths per second (excluded from visual tests because it animates continuously).
@@ -0,0 +1,62 @@
1
+ # `<obc-damper>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-damper--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/damper/damper.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | icon | | `TemplateResult` | | |
12
+ | turnedOn | turnedOn | `boolean` | `false` | Whether the device is on. Selects the on icon and the `On` state row instead of `Off`. Not named `on`, which Svelte binds as an event listener in markup (#1090). |
13
+ | on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
14
+ | variant | variant | `SquaredVariant` | | |
15
+ | orientation | orientation | `AutomationButtonOrientation` | | |
16
+ | extraReadouts | | `AutomationButtonReadoutStack[]` | | |
17
+ | showReadoutStack | | `boolean` | `true` | |
18
+ | static | static | `boolean` | `false` | Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. |
19
+ | readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
20
+ | showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
21
+ | showStatusIcon | | `boolean` | `false` | |
22
+ | readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
23
+ | tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
24
+ | positioning | positioning | `AutomationButtonPositioning` | | |
25
+ | activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
26
+ | alert | alert | `boolean` | `false` | |
27
+ | alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
28
+ | alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
29
+ | alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
30
+ | alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
31
+ | showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
32
+ | showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
33
+ | progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
34
+ | progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
35
+ | progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
36
+ | badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
37
+ | badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
38
+ | badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
39
+ | badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
40
+ | badgeLayout | | `AutomationButtonBadgeLayout \| undefined` | `undefined` | Which badge kind each corner shows, on top of the app-wide layout set with `setAutomationBadgeLayout()`. A corner left out keeps the app-wide badge, `null` leaves it empty, and a badge moved here leaves the corner it came from. |
41
+ | badgeSymbolOverride | | `AutomationBadgeSymbolOverride \| undefined` | `undefined` | Letters that replace badge symbols on this device, per badge property and value, on top of the app-wide ones set with `setAutomationBadgeSymbolOverride()`; for example `{commandLocked: {simulation: 's'}}`. `null` brings the symbol back. |
42
+ | badgeTopRight | | `HTMLElement[]` | | |
43
+ | badgeTopLeft | | `HTMLElement[]` | | |
44
+ | badgeBottomLeft | | `HTMLElement[]` | | |
45
+ | badgeBottomRight | | `HTMLElement[]` | | |
46
+
47
+ ## Events
48
+
49
+ None.
50
+
51
+ ## Slots
52
+
53
+ None.
54
+
55
+ ## Stories
56
+
57
+ - [On](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-damper--on)
58
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-damper--off)
59
+
60
+ ## See also
61
+
62
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)