@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,135 @@
1
+ # `<obc-toggletip>`
2
+
3
+ A contextual message component for displaying inline notes, feedback, or alerts anchored to a UI element.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-message-and-alerts-toggletip--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/toggletip/toggletip.ts)
6
+
7
+ `<obc-toggletip>` – A contextual message component for displaying inline notes, feedback, or alerts anchored to a UI element.
8
+
9
+ The toggletip provides brief, focused information or actions related to a specific UI context, often appearing as a floating panel with an arrow pointing to its trigger. It supports a range of visual variants for different semantic meanings, from neutral information to critical alerts.
10
+
11
+ Appears above the interface to deliver context-sensitive guidance, warnings, or actions without disrupting the main workflow. Commonly used for tooltips with rich content, inline help, or actionable notifications.
12
+
13
+ ## Features
14
+
15
+ - **Variants for semantic meaning:**
16
+ - `normal` (default): Standard informational note.
17
+ - `raised`: Elevated importance with a dark header for emphasis.
18
+ - `enhanced`: For primary or enhanced information requiring user attention.
19
+ - `eco-feedback`: Positive or environmental feedback.
20
+ - `caution`: Indicates caution or minor issues.
21
+ - `warning`: Highlights warnings or potential problems.
22
+ - `alarm`: Signals critical or urgent conditions.
23
+ - **Customizable layout:**
24
+ - Optional header (title container) and description.
25
+ - Optional content area for custom elements or rich content.
26
+ - Optional action buttons (primary and secondary).
27
+ - Leading and trailing icon slots for visual context.
28
+ - Adjustable width via `customWidth` property.
29
+ - **Icon logic:**
30
+ - Leading icon is shown by default and adapts to the variant (e.g., warning, alarm, eco-feedback).
31
+ - Trailing icon slot for additional context or actions.
32
+ - **Responsive and accessible:**
33
+ - Content adapts to available space.
34
+ - All sections (header, description, content, actions) can be toggled independently.
35
+ - **Events:**
36
+ - `primary-action`: Fired when the primary action button is clicked.
37
+ - `secondary-action`: Fired when the secondary action button is clicked.
38
+
39
+ ## Usage Guidelines
40
+
41
+ Use `obc-toggletip` to provide contextual information, warnings, or actions related to a specific UI element or state. Ideal for:
42
+ - Explaining the purpose or status of a control.
43
+ - Delivering inline feedback or guidance.
44
+ - Presenting warnings, cautions, or critical alerts in context.
45
+ - Offering quick actions related to the message.
46
+
47
+ Avoid using for persistent or global alerts—use a banner or dialog for those cases. For simple tooltips with only text, a lightweight tooltip component may be more appropriate.
48
+
49
+ **TODO(designer):** Confirm if there are recommended maximum lengths for title/description, and if both action buttons should always be shown together or if one is preferred as primary.
50
+
51
+ ## Slots
52
+
53
+ | Slot Name | Renders When... | Purpose |
54
+ | -------------- | --------------------------- | ----------------------------------------------------- |
55
+ | leading-icon | `hasLeadingIcon` is true | Main icon representing the message type or context. |
56
+ | trailing-icon | `hasTrailingIcon` is true | Additional icon for secondary context or actions. |
57
+ | content | `hasContent` is true | Custom content area for rich or interactive elements. |
58
+
59
+ ## Properties and Configuration
60
+
61
+ - `variant`: Controls the visual style and semantic meaning (see Features above for all options).
62
+ - `title`: Sets the header text. The header is shown only when `title` is a non-empty string.
63
+ - `description`: Sets the main message text. Shown whenever `description` is defined.
64
+ - `hasContent`, `hasActions`: Toggle visibility of the custom content area and the action buttons.
65
+ - `hasLeadingIcon`, `hasTrailingIcon`: Toggle visibility of icon slots (only effective when a `title` is set).
66
+ - `primaryButtonLabel`, `secondaryButtonLabel`: Set labels for action buttons (shown if `hasActions` is true).
67
+ - `customWidth`: Sets a custom width for the toggletip (in pixels).
68
+
69
+ ## Events
70
+
71
+ - `primary-action`: Fired when the primary action button is clicked. Event detail contains `{ label: string }`.
72
+ - `secondary-action`: Fired when the secondary action button is clicked. Event detail contains `{ label: string }`.
73
+
74
+ ## Best Practices and Constraints
75
+
76
+ - Use the variant that best matches the message's intent (e.g., `alarm` for critical, `eco-feedback` for positive).
77
+ - Keep messages concise and focused on the immediate context.
78
+ - Only show both action buttons if both are necessary; otherwise, prefer a single primary action.
79
+ - The toggletip should point to its related UI element and not obscure important content.
80
+ - For accessibility, ensure the toggletip is reachable via keyboard and screen reader.
81
+
82
+ ## Example
83
+
84
+ ```html
85
+ <obc-toggletip
86
+ variant="warning"
87
+ title="Unsaved Changes"
88
+ description="You have unsaved edits. Save before leaving."
89
+ hasActions
90
+ primaryButtonLabel="Save"
91
+ secondaryButtonLabel="Discard"
92
+
93
+ ## Properties
94
+
95
+ | Property | Attribute | Type | Default | Description |
96
+ | --- | --- | --- | --- | --- |
97
+ | variant | variant | | `'normal'` | Visual style and meaning: `normal` (default) is informational, `raised` carries a dark header for higher importance, `enhanced` marks primary information, `eco-feedback` positive environmental feedback, and `caution`, `warning` and `alarm` the three alert severities. |
98
+ | title | title | `string` | `''` | Title text displayed in the header. |
99
+ | description | description | `string \| undefined` | | Description text shown in the content area. |
100
+ | hasContent | hasContent | `boolean` | `false` | If true, shows the content slot area. Use the `content` slot to provide custom content. |
101
+ | hasActions | hasActions | `boolean` | `false` | If true, shows the action buttons container. Both primary and secondary buttons are shown if labels are provided. TODO(designer): Should both buttons always be shown, or is one preferred as primary? |
102
+ | hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | If true, shows the leading icon in the header. The icon adapts to the current `variant` by default, or can be overridden via the `leading-icon` slot. Available when `title!=''`. |
103
+ | hasTrailingIcon | hasTrailingIcon | `boolean` | `false` | If true, shows the trailing icon in the header. Use the `trailing-icon` slot to provide a custom icon. Available when `title!=''`. |
104
+ | customWidth | customWidth | `number \| undefined` | | Sets a custom width for the toggletip in pixels. If not set, defaults to 400px. |
105
+ | primaryButtonLabel | primaryButtonLabel | `string` | `'Label'` | Label for the primary action button. Only shown if `hasActions` is true. Available when `hasActions==true`. |
106
+ | secondaryButtonLabel | secondaryButtonLabel | `string` | `'Label'` | Label for the secondary action button. Only shown if `hasActions` is true. Available when `hasActions==true`. |
107
+
108
+ ## Events
109
+
110
+ | Event | Type | Description |
111
+ | --- | --- | --- |
112
+ | primary-action | `CustomEvent` | Fired when the primary action button is clicked |
113
+ | secondary-action | `CustomEvent` | Fired when the secondary action button is clicked |
114
+
115
+ ## Slots
116
+
117
+ | Slot | Description |
118
+ | --- | --- |
119
+ | leading-icon | Main icon representing the message type or context (shown when `hasLeadingIcon` is true) |
120
+ | trailing-icon | Additional icon for secondary context or actions (shown when `hasTrailingIcon` is true) |
121
+ | content | Custom content area for rich or interactive elements (shown when `hasContent` is true) |
122
+
123
+ ## Stories
124
+
125
+ - [Normal](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--normal)
126
+ - [Raised](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--raised)
127
+ - [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--enhanced)
128
+ - [Eco Feedback](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--eco-feedback)
129
+ - [Caution](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--caution)
130
+ - [Warning](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--warning)
131
+ - [Alarm](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--alarm)
132
+ - [No Header](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--no-header)
133
+ - [No Actions](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--no-actions)
134
+ - [No Content](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--no-content)
135
+ - [Minimal Content](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-toggletip--minimal-content)
@@ -0,0 +1,106 @@
1
+ # `<obc-tooltip>`
2
+
3
+ A compact tooltip component for displaying contextual information, status, or alerts.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-message-and-alerts-tooltip--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/tooltip/tooltip.ts)
6
+
7
+ `<obc-tooltip>` – A compact tooltip component for displaying contextual information, status, or alerts.
8
+
9
+ Appears above UI elements to provide brief, non-intrusive feedback or status cues. Supports both icon-only and text-based tooltips, with multiple visual variants for different semantic meanings (such as warning, alarm, or informational).
10
+
11
+ ---
12
+
13
+ ## Features
14
+ - **Display Types:**
15
+ - `label`: Shows a text label, with optional leading icon (default).
16
+ - `icon`: Shows only an icon, for minimal status indication.
17
+ - **Variants:**
18
+ - `normal`: Standard informational tooltip.
19
+ - `enhanced`: Highlighted/important notification (blue).
20
+ - `eco`: Environmental/positive state (green).
21
+ - `raised`: Elevated/raised appearance.
22
+ - `caution`: Indicates caution or minor issues (yellow).
23
+ - `warning`: Highlights warnings or potential problems (orange).
24
+ - `alarm`: Signals critical or urgent conditions (red).
25
+ - **Icon Support:** Slot for custom icon; can be shown in both `icon` and `label` types.
26
+ - **Customizable Label:** Text content can be set for label tooltips.
27
+ - **Responsive Styling:** Adapts color and elevation based on variant.
28
+ - **Bottom Arrow:** Includes a visual arrow pointing to the referenced element.
29
+
30
+ ---
31
+
32
+ ## Usage Guidelines
33
+ Use `obc-tooltip` to provide additional context, status, or alerts related to a UI element. Ideal for:
34
+ - Indicating status or feedback with minimal interruption.
35
+ - Supplementing controls or indicators with brief explanations.
36
+ - Highlighting warnings, cautions, or critical states using the appropriate variant.
37
+
38
+ For icon-only tooltips, use `type="icon"` and supply an icon via the `icon` slot. For text-based tooltips, use `type="label"` and set the `label` property, optionally showing an icon with `showIcon`.
39
+
40
+ **TODO(designer):** Clarify best practices for when to use each variant (e.g., when to use `enhanced` vs. `normal`), and any recommended maximum label length.
41
+
42
+ ---
43
+
44
+ ## Slots
45
+
46
+ | Slot Name | Renders When... | Purpose |
47
+ |-----------|-----------------|---------|
48
+ | `icon` | Always (if `type="icon"` or `type="label"` with `showIcon=true`) | Leading icon representing the tooltip's context or status. |
49
+
50
+ ---
51
+
52
+ ## Properties and Attributes
53
+ - `type`: Controls whether the tooltip displays only an icon or a label (with optional icon). Default is `label`.
54
+ - `variant`: Sets the visual style and semantic meaning. Default is `normal`.
55
+ - `label`: Text content for the tooltip (used only when `type="label"`).
56
+ - `showIcon`: Whether to show the leading icon in label mode. Has no effect in icon mode.
57
+
58
+ ---
59
+
60
+ ## Best Practices and Constraints
61
+ - Keep tooltip content concise for quick readability.
62
+ - Use the semantic variant that matches the importance or type of message (e.g., use `alarm` for critical alerts).
63
+ - For icon-only tooltips, ensure the icon is universally recognizable.
64
+ - Avoid using tooltips for persistent or critical information that requires user action—consider alert banners or dialogs for those cases.
65
+
66
+ ---
67
+
68
+ ## Example:
69
+
70
+ ```html
71
+ <obc-tooltip type="label" variant="warning" label="Low battery" showIcon>
72
+ <obi-placeholder slot="icon"></obi-placeholder>
73
+ </obc-tooltip>
74
+ ```
75
+ In this example, the tooltip displays a warning icon and the label "Low battery" with warning styling.
76
+
77
+ ## Properties
78
+
79
+ | Property | Attribute | Type | Default | Description |
80
+ | --- | --- | --- | --- | --- |
81
+ | type | type | `TooltipType` | | Display type: `label` (default) shows text with an optional leading icon, `icon` shows the icon alone. |
82
+ | variant | variant | `TooltipVariant` | | Visual style and meaning: `normal` (default) is informational, `enhanced` is a highlighted blue notification, `eco` a green positive state, `raised` the elevated style, and `caution`, `warning` and `alarm` the yellow, orange and red alert severities. |
83
+ | label | label | `string` | `'Label'` | Text content displayed in the tooltip (only used when `type="label"`). Available when `type==label`. |
84
+ | showIcon | showIcon | `boolean` | `false` | Whether to show the leading icon when `type="label"`. Has no effect when `type="icon"`. Available when `type==label`. |
85
+
86
+ ## Events
87
+
88
+ None.
89
+
90
+ ## Slots
91
+
92
+ | Slot | Description |
93
+ | --- | --- |
94
+ | icon | Leading icon slot (shown when `type="icon"` or `type="label"` with `showIcon=true`) |
95
+
96
+ ## Stories
97
+
98
+ - [Normal With Label And Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--normal-with-label-and-icon): Displays text with a leading icon. Provides both visual and textual context.
99
+ - [Normal With Label Only](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--normal-with-label-only): Displays only text in the tooltip. Clean and minimal for simple labels.
100
+ - [Normal With Icon Only](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--normal-with-icon-only): Displays only an icon in the tooltip. Useful for status indicators or simple visual cues.
101
+ - [Raised](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--raised): Elevated visual style with raised appearance.
102
+ - [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--enhanced): Enhanced/highlighted tooltip with blue background for important notifications.
103
+ - [Eco](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--eco): Environmental or positive state indicator with green background.
104
+ - [Alarm](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--alarm): Signals critical or urgent conditions with red background.
105
+ - [Warning](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--warning): Highlights warnings or potential problems with orange background.
106
+ - [Caution](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-tooltip--caution): Indicates caution or minor issues with yellow background.
@@ -0,0 +1,194 @@
1
+ # `<obc-top-bar>`
2
+
3
+ A responsive top navigation bar component for application layouts.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-top-elements-topbar--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/top-bar/top-bar.ts)
6
+
7
+ `<obc-top-bar>` – A responsive top navigation bar component for application layouts.
8
+
9
+ Provides a flexible, highly configurable top bar for application interfaces, supporting navigation, context display, quick actions, and status indicators. The top bar adapts to screen size and can show or hide elements such as menu, app icon, breadcrumbs, user/profile, clock, and alert notifications.
10
+
11
+ Appears at the top of the UI, organizing primary navigation and contextual actions in a single, persistent region. Designed for use as the main app bar or header in multi-pane or dashboard-style layouts.
12
+
13
+ ## Features
14
+ - **Configurable Sections:** Supports left and right-aligned groups for navigation, context, and actions.
15
+ - **Menu Button:** Optional menu button for opening navigation drawers or sidebars; can be styled as wide or regular.
16
+ - **App Icon Slot:** Customizable slot for displaying an application or brand icon.
17
+ - **App Title & Page Name:** Displays the current application and page context.
18
+ - **Breadcrumbs:** Optional breadcrumb navigation for hierarchical context (in settings mode).
19
+ - **Command Button Slot:** Slot for inserting a primary command/action button.
20
+ - **Asset Picker Slot:** Slot for a control that switches between the assets the page can show, such as an `obc-dropdown-button` whose label is the current asset.
21
+ - **Alert/Notification Area:** Slot for alert indicators, notification badges, or custom alert components.
22
+ - **Diagnostics Slot:** Slot for the diagnostic button, after the alert area.
23
+ - **Dimming Button:** Optional button for toggling display modes (e.g., day/night).
24
+ - **User/Profile Button:** Optional user icon for profile/account actions.
25
+ - **Apps Button:** Optional button for accessing additional applications or modules.
26
+ - **Clock & Date:** Optional digital clock and date display, responsive to screen size.
27
+ - **Responsive Layout:** Multiple breakpoint properties to control visibility and layout of elements based on viewport width.
28
+ - **Settings Mode:** Special mode with close, back, and forward navigation, breadcrumbs, and app title.
29
+ - **Tall Variant:** Optional increased height for touch or accessibility needs.
30
+ - **Inactive State:** Disables interactive elements and visually de-emphasizes the bar.
31
+
32
+ ## Variants
33
+ - **Regular:** Standard top bar with menu, app icon, title, page name, and action slots.
34
+ - **Settings:** Shows close, back, forward buttons, breadcrumbs, and app title for configuration or settings screens.
35
+ - **Inactive:** Visually muted and disables interaction (e.g., when the app is locked or in a modal state).
36
+ - **Tall:** Increases the height of the bar for improved touch targets.
37
+
38
+ ## Usage Guidelines
39
+ Use `<obc-top-bar>` as the persistent header for your application, providing navigation, context, and quick access to key actions or status. Configure which elements appear via boolean properties and slots. Adjust breakpoint properties to control responsive behavior for each section.
40
+
41
+ - Place navigation, branding, and context (title, breadcrumbs) on the left; actions, alerts, and status (clock, user, apps) on the right.
42
+ - Use the `settings` property for configuration or setup screens to enable close/back/forward navigation and breadcrumbs.
43
+ - Use the `inactive` property to visually disable the bar and its actions when the app is not interactive.
44
+ - Insert custom icons or buttons using the `app-icon` and `command-button` slots.
45
+ - Slot an `obc-dropdown-button` into `asset-picker` when the page shows one of several assets; the app owns the list and the selection and listens for the button's `change`.
46
+ - Use the `alerts` slot to display alert indicators, notification badges, or custom alert components.
47
+ - Slot an `obc-diagnostic-button` into `diagnostics`; open its `obc-diagnostic-menu` from the button's `click` the way the user menu is opened from the user button.
48
+
49
+ **TODO(designer):** Clarify recommended combinations of visible elements for different app contexts (e.g., when to show both user and apps buttons, or best practices for alert placement).
50
+
51
+ ## Slots
52
+
53
+ | Slot Name | Renders When... | Purpose |
54
+ |------------------|---------------------------------|----------------------------------------------------------------|
55
+ | `app-icon` | `showAppIcon` is true | Custom icon representing the application or brand. |
56
+ | `command-button` | `settings` is false (if provided) | Primary command or action button for the current context. |
57
+ | `asset-picker` | `settings` is false (if provided) | Control that switches the asset the page shows; its label is the current asset. |
58
+ | `alerts` | Always (if provided) | Area for alert indicators, notification badges, or alert items.|
59
+ | `diagnostics` | Always (if provided) | The diagnostic button (`obc-diagnostic-button`), after the alert area and before the dimming button. |
60
+ | `clock` | Always (if provided) | Clock component for displaying the current time. |
61
+
62
+ ## Events
63
+ - `menu-button-clicked` – Fired when the menu button is clicked.
64
+ - `dimming-button-clicked` – Fired when the dimming (day/night) button is clicked.
65
+ - `apps-button-clicked` – Fired when the apps button is clicked.
66
+ - `more-button-clicked` – Fired when the more button is clicked.
67
+ - `left-more-button-clicked` – Deprecated alias of `more-button-clicked`, fired with it; removed in 4.0.0.
68
+ - `user-button-clicked` – Fired when the user/profile button is clicked.
69
+ - `close` – Fired in settings mode when the close button is clicked.
70
+ - `back` – Fired in settings mode when the back button is clicked.
71
+ - `forward` – Fired in settings mode when the forward button is clicked.
72
+ - `emergency-brightness-start` – Fired when the menu button is held for 500ms. This should increase the brightness of the screen slowly. Used when the screen is too dark.
73
+ - `emergency-brightness-stop` – Fired when the menu button is released.
74
+
75
+ ## Keyboard
76
+ Every control in the bar is its own tab stop and activates on `Enter` and
77
+ `Space`. The bar is a navigation landmark, not an APG toolbar: its controls
78
+ are separate components and slotted consumer content, so a roving tabindex
79
+ across them is deliberately not implemented. The emergency-brightness hold
80
+ is a pointer gesture only; from the keyboard the menu button opens the menu.
81
+
82
+ ## Best Practices and Constraints
83
+ - Only show interactive elements relevant to the current context to avoid clutter.
84
+ - Use the `alerts` slot for transient or critical notifications; persistent alerts may require a different component.
85
+ - For accessibility, give all interactive elements labels and focus handling.
86
+ - Adjust breakpoint properties to optimize the layout for different device sizes.
87
+ - In settings mode, use breadcrumbs to provide clear navigation context.
88
+
89
+ ## Example
90
+
91
+ ```html
92
+ <obc-top-bar
93
+ appTitle="My App"
94
+ pageName="Dashboard"
95
+ showAppsButton
96
+ showDimmingButton
97
+ showClock
98
+ showUserButton
99
+ showAppIcon
100
+ >
101
+ <obi-placeholder slot="app-icon"></obi-placeholder>
102
+ <obc-command-button slot="command-button"></obc-command-button>
103
+ <obc-topbar-message-item slot="alerts"></obc-topbar-message-item>
104
+ <obc-clock slot="clock"></obc-clock>
105
+ </obc-top-bar>
106
+ ```
107
+
108
+ ## Properties
109
+
110
+ | Property | Attribute | Type | Default | Description |
111
+ | --- | --- | --- | --- | --- |
112
+ | appTitle | appTitle | `string` | `'App'` | Sets the main application title displayed in the top bar. |
113
+ | pageName | pageName | `string` | `'Page'` | Sets the current page or section name displayed in the top bar. Available when `settings==false`. |
114
+ | menuButtonIcon | menuButtonIcon | | | Available when `settings==false && inactive==false`. |
115
+ | menuButtonActivated | menuButtonActivated | `boolean` | `false` | Highlights the menu button as active. Available when `settings==false && inactive==false`. |
116
+ | dimmingButtonActivated | dimmingButtonActivated | `boolean` | `false` | Highlights the dimming (day/night) button as active. Available when `showDimmingButton==true && inactive==false`. |
117
+ | appsButtonActivated | appsButtonActivated | `boolean` | `false` | Highlights the apps button as active. Available when `showAppsButton==true && inactive==false`. |
118
+ | moreButtonActivated | moreButtonActivated | `boolean` | `false` | Highlights the more button as active. Available when `inactive==false`. |
119
+ | leftMoreButtonActivated | leftMoreButtonActivated | `boolean \| undefined` | | Alias of `moreButtonActivated`, which it sets. |
120
+ | userButtonActivated | userButtonActivated | `boolean` | `false` | Highlights the user/profile button as active. Available when `showUserButton==true && inactive==false`. |
121
+ | userButtonDisabled | userButtonDisabled | `boolean` | `false` | Disables the user/profile button. Available when `showUserButton==true && inactive==false`. |
122
+ | tall | tall | `boolean` | `false` | Increases the height of the top bar for larger touch targets. |
123
+ | wideMenuButton | wideMenuButton | `boolean` | `false` | Expands the menu button for wide-rail layouts. Available when `settings==false && inactive==false`. |
124
+ | showAppsButton | showAppsButton | `boolean` | `false` | Shows or hides the apps button. |
125
+ | showDimmingButton | showDimmingButton | `boolean` | `false` | Shows or hides the dimming (day/night) button. |
126
+ | showUserButton | showUserButton | `boolean` | `false` | Shows or hides the user/profile button. |
127
+ | showClock | showClock | `boolean` | `false` | Shows or hides the clock. |
128
+ | showDate | showDate | `boolean` | `false` | Shows or hides the date in the clock display. |
129
+ | showAppIcon | showAppIcon | `boolean` | `false` | Shows or hides the app icon slot. |
130
+ | inactive | inactive | `boolean` | `false` | Disables interaction and visually de-emphasizes the bar. |
131
+ | appButtonBreakpointPx | appButtonBreakpointPx | `number` | `500` | Controls the breakpoint (in px) for showing/hiding the apps button. |
132
+ | dimmingButtonBreakpointPx | dimmingButtonBreakpointPx | `number` | `500` | Controls the breakpoint (in px) for showing/hiding the dimming button. |
133
+ | appTitleBreakpointPx | appTitleBreakpointPx | `number` | `500` | Controls the breakpoint (in px) for showing/hiding the app title. |
134
+ | userButtonBreakpointPx | userButtonBreakpointPx | `number` | `500` | Controls the breakpoint (in px) for showing/hiding the user button. |
135
+ | appIconBreakpointPx | appIconBreakpointPx | `number` | `500` | Controls the breakpoint (in px) for showing/hiding the app icon. |
136
+ | settings | settings | `boolean` | `false` | Enables settings mode, displaying close, back buttons, breadcrumbs, and app title. |
137
+ | breadcrumbItems | breadcrumbItems | `BreadcrumbItem[]` | `[]` | Array of breadcrumb items for navigation (used in settings mode). Available when `settings==true`. |
138
+
139
+ ## Events
140
+
141
+ | Event | Type | Description |
142
+ | --- | --- | --- |
143
+ | dimming-button-clicked | `CustomEvent` | Fired when the dimming (day/night) button is clicked |
144
+ | apps-button-clicked | `CustomEvent` | Fired when the apps button is clicked |
145
+ | more-button-clicked | `CustomEvent` | Fired when the more button is clicked |
146
+ | left-more-button-clicked | `CustomEvent` | Deprecated: listen to `more-button-clicked` instead. Fired together with it; removed in 4.0.0. |
147
+ | user-button-clicked | `CustomEvent` | Fired when the user/profile button is clicked |
148
+ | emergency-brightness-start | `CustomEvent` | Fired when the menu button is held for 500ms. This should increase the brightness of the screen slowly. Used when the screen is too dark. |
149
+ | emergency-brightness-stop | `CustomEvent` | Fired when the menu button is released. |
150
+ | type | `CustomEvent` | |
151
+ | back | `CustomEvent` | Fired in settings mode when the back button is clicked |
152
+ | menu-button-clicked | | Fired when the menu button is clicked |
153
+ | close | | Fired in settings mode when the close button is clicked |
154
+ | breadcrumb-click | `BreadcrumbClickEvent` | Fired when a breadcrumb item is clicked. |
155
+
156
+ ## Slots
157
+
158
+ | Slot | Description |
159
+ | --- | --- |
160
+ | app-icon | Custom icon representing the application or brand (shown when `showAppIcon` is true) |
161
+ | command-button | Primary command/action button for the current context |
162
+ | asset-picker | Control that switches the asset the page shows, with the current asset as its label; an `obc-dropdown-button` fits (regular layout only, not in settings mode) |
163
+ | alerts | Area for alert indicators, notification badges, or alert items |
164
+ | diagnostics | The diagnostic button, after the alert area and before the dimming button |
165
+ | clock | Clock component for displaying the current time (shown when `showClock` is true) |
166
+
167
+ ## CSS parts
168
+
169
+ | Part | Description |
170
+ | --- | --- |
171
+ | more-button | The more button shown below the breakpoints. |
172
+ | left-more-button | Deprecated alias of the `more-button` part; removed in 4.0.0. |
173
+
174
+ ## Stories
175
+
176
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--regular)
177
+ - [Tall](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--tall)
178
+ - [Wide Rail Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--wide-rail-regular)
179
+ - [Inactive](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--inactive)
180
+ - [Settings](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--settings)
181
+ - [Small](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--small)
182
+ - [Reponsive](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--reponsive)
183
+ - [Home Button Icon](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--home-button-icon): For cases where a home screen is used instead of a menu screen the menu button icon is set to home
184
+ - [Asset Picker](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--asset-picker): The `asset-picker` slot takes the control that switches the asset the page shows. An `obc-dropdown-button` fits: its label is the selected asset, a click opens the list, and its `dropdown-change` carries the key of the pick. The app owns the list and the selection: it binds them in and writes the pick back, as the story does with its args `assets` and `selectedAssetKey`.
185
+
186
+ TODO(designer): Figma OpenBridge-ALPHA 703-29119 draws the picker as a plain
187
+ button without a chevron; the dropdown-button rows of the same exploration
188
+ (699-90973) draw one, and so does `obc-dropdown-button`.
189
+ - [Diagnostics](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-topbar--diagnostics): The diagnostic button after the alert area, with its menu showing, as the design places them (Figma scratch file `Qit0iy9CQO8bvNqbcUgzXc`, 213-31927).
190
+
191
+ ## See also
192
+
193
+ - [Getting Started](https://openbridge-next-storybook.web.app/docs/introduction-getting-started.md)
194
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,84 @@
1
+ # `<obc-top-view-propulsion>`
2
+
3
+ Top View Propulsion - a propulsion gauge on a circular watch face with a top-view propeller in the center.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-top-view-propulsion--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/top-view-propulsion/top-view-propulsion.ts)
6
+
7
+ Top View Propulsion - a propulsion gauge on a circular watch face with a
8
+ top-view propeller in the center.
9
+
10
+ ## Features / Variants
11
+ - `power` type: signed percent value shown as a tinted arc on the inner
12
+ track from the thick zero line, with a needle at the arc end.
13
+ - `pitch-rpm` type: rpm on the primary track (same rendering as power)
14
+ plus pitch as a thin secondary arc at the track's inner edge with its
15
+ own zero mark and end nub.
16
+ - Interchangeable center propeller art (`PropellerImage`).
17
+ - Full setpoint support (marker, adjustment preview, at-setpoint states)
18
+ for the primary axis (power or rpm).
19
+ - Loading progress arc on the outer ring while `state` is `loading`.
20
+
21
+ ## Usage Guidelines
22
+ Use for a propulsion unit overview. For an azimuthing unit with a
23
+ direction bar, use `obc-azimuth-thruster` instead.
24
+
25
+ ## Properties
26
+
27
+ | Property | Attribute | Type | Default | Description |
28
+ | --- | --- | --- | --- | --- |
29
+ | type | type | `TopViewPropulsionType` | | |
30
+ | power | power | `number` | `0` | Signed power in percent: 0 at the top, positive clockwise, ±100% = ±180°. Available when `type==power`. |
31
+ | powerSetpoint | powerSetpoint | `number \| undefined` | | Available when `type==power`. |
32
+ | newPowerSetpoint | newPowerSetpoint | `number \| undefined` | | Available when `type==power && powerSetpoint!=undefined`. |
33
+ | atPowerSetpoint | atPowerSetpoint | `boolean` | `false` | Available when `type==power && powerSetpoint!=undefined && autoAtPowerSetpoint==false`. |
34
+ | powerSetpointAtZeroDeadband | powerSetpointAtZeroDeadband | `number` | `0.1` | Available when `type==power && powerSetpoint!=undefined`. |
35
+ | powerSetpointOverride | powerSetpointOverride | `boolean` | `false` | Available when `type==power && powerSetpoint!=undefined`. |
36
+ | autoAtPowerSetpoint | | `boolean` | `true` | Available when `type==power && powerSetpoint!=undefined`. |
37
+ | autoAtPowerSetpointDeadband | autoAtPowerSetpointDeadband | `number` | `1` | Available when `type==power && powerSetpoint!=undefined && autoAtPowerSetpoint==true`. |
38
+ | rpm | rpm | `number` | `0` | Signed rpm in percent of the maximum: 0 at the top, positive clockwise, ±100% = ±180°. Shown on the primary track. Available when `type==pitch-rpm`. |
39
+ | rpmSetpoint | rpmSetpoint | `number \| undefined` | | Available when `type==pitch-rpm`. |
40
+ | newRpmSetpoint | newRpmSetpoint | `number \| undefined` | | Available when `type==pitch-rpm && rpmSetpoint!=undefined`. |
41
+ | atRpmSetpoint | atRpmSetpoint | `boolean` | `false` | Available when `type==pitch-rpm && rpmSetpoint!=undefined && autoAtRpmSetpoint==false`. |
42
+ | rpmSetpointAtZeroDeadband | rpmSetpointAtZeroDeadband | `number` | `0.1` | Available when `type==pitch-rpm && rpmSetpoint!=undefined`. |
43
+ | rpmSetpointOverride | rpmSetpointOverride | `boolean` | `false` | Available when `type==pitch-rpm && rpmSetpoint!=undefined`. |
44
+ | autoAtRpmSetpoint | | `boolean` | `true` | Available when `type==pitch-rpm && rpmSetpoint!=undefined`. |
45
+ | autoAtRpmSetpointDeadband | autoAtRpmSetpointDeadband | `number` | `1` | Available when `type==pitch-rpm && rpmSetpoint!=undefined && autoAtRpmSetpoint==true`. |
46
+ | pitch | pitch | `number` | `0` | Signed pitch in percent: 0 at the top, positive clockwise, ±100% = ±180°. Shown as the thin secondary arc. Available when `type==pitch-rpm`. |
47
+ | touching | touching | `boolean` | `false` | Available when `powerSetpoint!=undefined \|\| rpmSetpoint!=undefined`. |
48
+ | animateSetpoint | animateSetpoint | `boolean` | `false` | Available when `powerSetpoint!=undefined \|\| rpmSetpoint!=undefined`. |
49
+ | state | state | `InstrumentState` | | |
50
+ | priority | priority | `Priority` | | |
51
+ | loading | loading | `number` | `0` | Loading progress in percent, shown as an arc on the outer ring. Available when `state==loading`. |
52
+ | primaryTickmarkInterval | primaryTickmarkInterval | `number \| undefined` | `90` | Interval (in degrees) for primary tickmarks. When undefined or <= 0, no primary tickmarks are shown (only the zero line). |
53
+ | secondaryTickmarkInterval | secondaryTickmarkInterval | `number \| undefined` | `undefined` | Interval (in degrees) for secondary tickmarks. When undefined or <= 0, no secondary tickmarks are shown. |
54
+ | tertiaryTickmarkInterval | tertiaryTickmarkInterval | `number \| undefined` | `undefined` | Interval (in degrees) for tertiary tickmarks. When undefined or <= 0, no tertiary tickmarks are shown. |
55
+ | showLabels | showLabels | `boolean` | `false` | |
56
+ | tickmarksInside | tickmarksInside | `boolean` | `false` | |
57
+ | tickmarkStyle | tickmarkStyle | `TickmarkStyle` | | |
58
+ | hasLabelSpacer | | `boolean` | `true` | |
59
+ | propeller | propeller | `PropellerImage` | | |
60
+ | 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. |
61
+
62
+ ## Events
63
+
64
+ None.
65
+
66
+ ## Slots
67
+
68
+ None.
69
+
70
+ ## Stories
71
+
72
+ - [Power At Setpoint](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--power-at-setpoint)
73
+ - [Power Input](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--power-input)
74
+ - [Power Ready](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--power-ready)
75
+ - [Power Not At Setpoint](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--power-not-at-setpoint)
76
+ - [Power Regular Priority](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--power-regular-priority)
77
+ - [Power Negative](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--power-negative)
78
+ - [Power Loading](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--power-loading)
79
+ - [Power Off](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--power-off)
80
+ - [Propellers](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--propellers)
81
+ - [Pitch Rpm At Setpoint](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--pitch-rpm-at-setpoint)
82
+ - [Pitch Rpm Regular Priority](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--pitch-rpm-regular-priority)
83
+ - [Pitch Rpm Negative](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--pitch-rpm-negative)
84
+ - [Pitch Rpm Off](https://openbridge-next-storybook.web.app/?path=/story/instruments-top-view-propulsion--pitch-rpm-off)