@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,90 @@
1
+ # `<obc-stepper-box>`
2
+
3
+ A compact input control for incrementing or decrementing a value using step buttons.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-input-controls-stepper-box--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/stepper-box/stepper-box.ts)
6
+
7
+ `<obc-stepper-box>` – A compact input control for incrementing or decrementing a value using step buttons.
8
+
9
+ This component displays a value with optional unit and helper text, flanked by two icon buttons for adjusting the value up/down, left/right, or plus/minus depending on the selected type. It is typically used for numeric or enumerated value selection where direct text input is not required or desired.
10
+
11
+ ### Features
12
+ - **Stepper Types:**
13
+ - `plus-minus` (default): Shows plus and minus icons for increment/decrement.
14
+ - `up-down`: Uses up and down chevron icons for vertical adjustment.
15
+ - `left-right`: Uses left and right chevron icons for horizontal adjustment.
16
+ - **Value Display:**
17
+ - Optional unit label via the `unit` property.
18
+ - **Helper Text:**
19
+ - When `helperText` is set, displays additional helper or status text below the control.
20
+ - **Icon Buttons:**
21
+ - Both increment and decrement actions are triggered by icon buttons, with icons adapting to the selected type.
22
+
23
+ ### Usage Guidelines
24
+ Use `obc-stepper-box` for scenarios where users need to adjust a value in discrete steps, such as quantity pickers, setting numeric parameters, or cycling through options. It is ideal when you want to prevent invalid input and provide a clear, touch-friendly interface for value changes.
25
+
26
+ ### Events
27
+ - `down` – Fired when the decrement (left or down) button is clicked.
28
+ - `up` – Fired when the increment (right or up) button is clicked.
29
+
30
+ ### Best Practices
31
+ - Use the type that best matches the adjustment direction (e.g., `up-down` for vertical, `left-right` for horizontal, `plus-minus` for generic increment/decrement).
32
+ - Place concise values and units to maintain compact layout.
33
+ - Avoid using for free-form input; this is for step-based changes only.
34
+
35
+ ## Keyboard
36
+ The keys of the [APG Spinbutton pattern](https://www.w3.org/WAI/ARIA/apg/patterns/spinbutton/),
37
+ wherever focus sits inside the stepper: `Up` and `Down` step the value,
38
+ `Home` and `End` go to `min` and `max` when they are set. While focus is in
39
+ the text field, `Home` and `End` keep moving the caret. The field is
40
+ announced as a text box, not a spinbutton, because it carries no bounds of
41
+ its own (TODO(#1208)).
42
+
43
+ **Example:**
44
+ ```
45
+ <obc-stepper-box type="up-down" value="5" unit="kg" helperText="Set weight"></obc-stepper-box>
46
+ ```
47
+
48
+ ## Properties
49
+
50
+ | Property | Attribute | Type | Default | Description |
51
+ | --- | --- | --- | --- | --- |
52
+ | type | type | `ObcStepperBoxType` | | Icons and directionality of the stepper buttons: `plus-minus` (default) uses plus and minus icons, `up-down` and `left-right` the matching chevrons. |
53
+ | disabled | disabled | `boolean` | `false` | If true, the stepper box is disabled and the buttons are not clickable. |
54
+ | value | value | `number \| null` | `1` | The current numeric value displayed in the field. Pass `null` to clear the value and show the `placeholder` instead. |
55
+ | min | min | `number \| undefined` | | Optional lower bound; decrement button disables at this value. |
56
+ | max | max | `number \| undefined` | | Optional upper bound; increment button disables at this value. |
57
+ | stepUp | stepUp | `number` | `1` | Increment step size (default 1). |
58
+ | stepDown | stepDown | `number` | `1` | Decrement step size (default 1). |
59
+ | unit | unit | `string` | `''` | Unit text displayed inside the field. |
60
+ | helperText | helperText | `string` | `''` | Helper text displayed below the stepper. When set, the helper text is shown. |
61
+ | placeholder | placeholder | `string` | `''` | Placeholder text shown when the input is empty. |
62
+ | readonly | readonly | `boolean` | `false` | If true, the input is non-editable; programmatic value changes still apply. |
63
+ | decrementLabel | decrementLabel | `string` | `'Decrease'` | Accessible name of the decrement button; the icon carries none. |
64
+ | incrementLabel | incrementLabel | `string` | `'Increase'` | Accessible name of the increment button; the icon carries none. |
65
+
66
+ ## Events
67
+
68
+ | Event | Type | Description |
69
+ | --- | --- | --- |
70
+ | input | `CustomEvent<{value: string}>` | Fired when the user types in the number input field |
71
+ | change | `CustomEvent<{value: number \| null}>` | Fired when the value changes through the input field or the increment/decrement buttons; programmatic assignment to `value` does not dispatch it |
72
+ | down | `CustomEvent<{value: number}>` | Fired when the decrement (left or down) button is clicked |
73
+ | up | `CustomEvent<{value: number}>` | Fired when the increment (right or up) button is clicked |
74
+
75
+ ## Slots
76
+
77
+ None.
78
+
79
+ ## Stories
80
+
81
+ - [Plus Minus](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-stepper-box--plus-minus)
82
+ - [Without Unit](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-stepper-box--without-unit)
83
+ - [Up Down](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-stepper-box--up-down)
84
+ - [Left Right](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-stepper-box--left-right)
85
+ - [With Helper Text](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-stepper-box--with-helper-text)
86
+ - [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-stepper-box--disabled)
87
+
88
+ ## See also
89
+
90
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,95 @@
1
+ # `<obc-surge-sway-yaw>`
2
+
3
+ Combined 3-DOF planar motion instrument: two translations on a cross of linear scales and a rotation on the ring.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-surge-sway-yaw--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/surge-sway-yaw/surge-sway-yaw.ts)
6
+
7
+ `<obc-surge-sway-yaw>` — Combined 3-DOF planar motion instrument: two
8
+ translations on a cross of linear scales and a rotation on the ring.
9
+
10
+ Surge is shown on the vertical scale (positive = up/fore), sway on the
11
+ horizontal scale (positive = right/starboard), both in percent of the
12
+ scale (−100…+100). Yaw is an angle in degrees on the ring (0° at the top,
13
+ positive clockwise).
14
+
15
+ ## Features / Variants
16
+ - **`type`:** `input` (default) shows only the three setpoint markers on a
17
+ thin ring with full-length cross scales; `input-output` adds the actual
18
+ values — a band on the ring with a yaw arc swept from 0°, and four
19
+ half-columns with surge/sway bars growing from the centre.
20
+ - **Setpoints:** each axis has the full setpoint bundle (marker,
21
+ adjustment preview via `new*Setpoint`, auto/manual at-setpoint,
22
+ zero-snap, override), matching `obc-azimuth-thruster`'s angle/thrust
23
+ pattern. The yaw setpoint is the ring's triangular marker; surge and
24
+ sway setpoints are triangular markers beside their scales.
25
+ - **Ring ticks:** primary/secondary/tertiary interval configuration in
26
+ degrees, with optional degree labels.
27
+ - **Priority:** `enhanced` switches bars, arc and markers to the blue
28
+ palette.
29
+
30
+ ## Usage Guidelines
31
+ Use to monitor or command planar motion in three degrees of freedom at
32
+ once. For attitude (pitch/roll/yaw) use `obc-pitch-roll-yaw`; for a single
33
+ thrust axis with direction use `obc-azimuth-thruster`.
34
+
35
+ ## Properties
36
+
37
+ | Property | Attribute | Type | Default | Description |
38
+ | --- | --- | --- | --- | --- |
39
+ | type | type | `SurgeSwayYawType` | | `input` (default) shows setpoint markers only; `input-output` adds the yaw arc on the ring band and surge/sway value bars in the cross columns. |
40
+ | surge | surge | `number` | `0` | Longitudinal value in percent of the scale (−100…+100); positive is up (fore). Shown as a vertical bar in `input-output`; always feeds the surge at-setpoint detection. |
41
+ | sway | sway | `number` | `0` | Transverse value in percent of the scale (−100…+100); positive is right (starboard). Shown as a horizontal bar in `input-output`; always feeds the sway at-setpoint detection. |
42
+ | yaw | yaw | `number` | `0` | Rotation in degrees (0° at the top, positive clockwise, clamped to ±180°). Shown as an arc on the ring band in `input-output`; always feeds the yaw at-setpoint detection. |
43
+ | surgeSetpoint | surgeSetpoint | `number \| undefined` | | Surge setpoint in percent; shows a triangular marker beside the vertical scale. |
44
+ | newSurgeSetpoint | newSurgeSetpoint | `number \| undefined` | | Surge setpoint being adjusted (focus preview marker). Available when `surgeSetpoint!=undefined`. |
45
+ | atSurgeSetpoint | atSurgeSetpoint | `boolean` | `false` | Manual surge at-setpoint override. Available when `surgeSetpoint!=undefined && autoAtSurgeSetpoint==false`. |
46
+ | surgeSetpointAtZeroDeadband | surgeSetpointAtZeroDeadband | `number` | `0.1` | Zero-snap tolerance for the surge setpoint marker. Available when `surgeSetpoint!=undefined`. |
47
+ | surgeSetpointOverride | surgeSetpointOverride | `boolean` | `false` | Derive the surge marker color from `priority` regardless of `state`. Available when `surgeSetpoint!=undefined`. |
48
+ | autoAtSurgeSetpoint | | `boolean` | `true` | Auto-detect surge at-setpoint via deadband. Available when `surgeSetpoint!=undefined`. |
49
+ | autoAtSurgeSetpointDeadband | autoAtSurgeSetpointDeadband | `number` | `1` | Tolerance for surge at-setpoint auto-detection. Available when `surgeSetpoint!=undefined && autoAtSurgeSetpoint==true`. |
50
+ | swaySetpoint | swaySetpoint | `number \| undefined` | | Sway setpoint in percent; shows a triangular marker above the horizontal scale. |
51
+ | newSwaySetpoint | newSwaySetpoint | `number \| undefined` | | Sway setpoint being adjusted (focus preview marker). Available when `swaySetpoint!=undefined`. |
52
+ | atSwaySetpoint | atSwaySetpoint | `boolean` | `false` | Manual sway at-setpoint override. Available when `swaySetpoint!=undefined && autoAtSwaySetpoint==false`. |
53
+ | swaySetpointAtZeroDeadband | swaySetpointAtZeroDeadband | `number` | `0.1` | Zero-snap tolerance for the sway setpoint marker. Available when `swaySetpoint!=undefined`. |
54
+ | swaySetpointOverride | swaySetpointOverride | `boolean` | `false` | Derive the sway marker color from `priority` regardless of `state`. Available when `swaySetpoint!=undefined`. |
55
+ | autoAtSwaySetpoint | | `boolean` | `true` | Auto-detect sway at-setpoint via deadband. Available when `swaySetpoint!=undefined`. |
56
+ | autoAtSwaySetpointDeadband | autoAtSwaySetpointDeadband | `number` | `1` | Tolerance for sway at-setpoint auto-detection. Available when `swaySetpoint!=undefined && autoAtSwaySetpoint==true`. |
57
+ | yawSetpoint | yawSetpoint | `number \| undefined` | | Yaw setpoint in degrees; shows the ring's triangular setpoint marker. |
58
+ | newYawSetpoint | newYawSetpoint | `number \| undefined` | | Yaw setpoint being adjusted (focus preview marker). Available when `yawSetpoint!=undefined`. |
59
+ | atYawSetpoint | atYawSetpoint | `boolean` | `false` | Manual yaw at-setpoint override. Available when `yawSetpoint!=undefined && autoAtYawSetpoint==false`. |
60
+ | yawSetpointAtZeroDeadband | yawSetpointAtZeroDeadband | `number` | `0.5` | Zero-snap tolerance for the yaw setpoint marker. Available when `yawSetpoint!=undefined`. |
61
+ | yawSetpointOverride | yawSetpointOverride | `boolean` | `false` | Derive the yaw marker color from `priority` regardless of `state`. Available when `yawSetpoint!=undefined`. |
62
+ | autoAtYawSetpoint | | `boolean` | `true` | Auto-detect yaw at-setpoint via deadband (with 360° wraparound). Available when `yawSetpoint!=undefined`. |
63
+ | autoAtYawSetpointDeadband | autoAtYawSetpointDeadband | `number` | `2` | Tolerance for yaw at-setpoint auto-detection. Available when `yawSetpoint!=undefined && autoAtYawSetpoint==true`. |
64
+ | touching | touching | `boolean` | `false` | User is physically interacting with a control; markers render in the focus state and at-setpoint detection is suppressed. Available when `surgeSetpoint!=undefined \|\| swaySetpoint!=undefined \|\| yawSetpoint!=undefined`. |
65
+ | animateSetpoint | animateSetpoint | `boolean` | `false` | Animate setpoint confirm transitions (marker slides, preview fades). Available when `surgeSetpoint!=undefined \|\| swaySetpoint!=undefined \|\| yawSetpoint!=undefined`. |
66
+ | primaryTickmarkInterval | primaryTickmarkInterval | `number \| undefined` | `45` | Interval (degrees) for primary ring ticks; undefined or <= 0 hides them. |
67
+ | secondaryTickmarkInterval | secondaryTickmarkInterval | `number \| undefined` | `15` | Interval (degrees) for secondary ring ticks; undefined or <= 0 hides them. |
68
+ | tertiaryTickmarkInterval | tertiaryTickmarkInterval | `number \| undefined` | `5` | Interval (degrees) for tertiary ring ticks; undefined or <= 0 hides them. |
69
+ | showLabels | showLabels | `boolean` | `false` | Show degree labels at the main and primary ring ticks. |
70
+ | state | state | `InstrumentState` | | Instrument state (active, loading, off). |
71
+ | priority | priority | `Priority` | | Color priority (enhanced = blue palette, regular = gray palette). |
72
+ | faceDiameter | face-diameter | `number \| undefined` | | Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size; when unset (default), it fills its container. |
73
+
74
+ ## Events
75
+
76
+ None.
77
+
78
+ ## Slots
79
+
80
+ None.
81
+
82
+ ## Stories
83
+
84
+ - [Input](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--input)
85
+ - [Input Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--input-enhanced)
86
+ - [Input Output](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--input-output)
87
+ - [Input Output Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--input-output-enhanced)
88
+ - [Negative Values](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--negative-values)
89
+ - [At Setpoints](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--at-setpoints)
90
+ - [Adjusting Setpoints](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--adjusting-setpoints)
91
+ - [No Setpoints](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--no-setpoints)
92
+ - [With Labels](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--with-labels)
93
+ - [Loading](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--loading)
94
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--off)
95
+ - [Sizing Playground — FaceDiameter + Resizable (Manual)](https://openbridge-next-storybook.web.app/?path=/story/instruments-surge-sway-yaw--sizing-playground): Interactive sizing playground: drag the dashed box's bottom-right corner to resize it. The first instrument is pinned to a fixed intrinsic size by the `faceDiameter` control, while the second (labeled, `input-output`) adapts to the remaining flex space, reserving room for its degree labels adaptively. 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.
@@ -0,0 +1,69 @@
1
+ # `<obc-switch>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-switch--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/switch/switch.ts)
6
+
7
+ **TODO(designer):** the icons file has no static switch symbols, so a
8
+ `static` switch keeps its on or off icon.
9
+
10
+ ## Properties
11
+
12
+ | Property | Attribute | Type | Default | Description |
13
+ | --- | --- | --- | --- | --- |
14
+ | alternativeIcon | alternativeIcon | `SwitchAlternativeIcon` | | |
15
+ | icon | | `TemplateResult` | | |
16
+ | 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). |
17
+ | on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
18
+ | variant | variant | `SquaredVariant` | | |
19
+ | orientation | orientation | `AutomationButtonOrientation` | | |
20
+ | extraReadouts | | `AutomationButtonReadoutStack[]` | | |
21
+ | showReadoutStack | | `boolean` | `true` | |
22
+ | 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. |
23
+ | readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
24
+ | showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
25
+ | showStatusIcon | | `boolean` | `false` | |
26
+ | readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
27
+ | tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
28
+ | positioning | positioning | `AutomationButtonPositioning` | | |
29
+ | activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
30
+ | alert | alert | `boolean` | `false` | |
31
+ | alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
32
+ | alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
33
+ | alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
34
+ | alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
35
+ | showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
36
+ | showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
37
+ | progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
38
+ | progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
39
+ | progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
40
+ | badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
41
+ | badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
42
+ | badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
43
+ | badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
44
+ | 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. |
45
+ | 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. |
46
+ | badgeTopRight | | `HTMLElement[]` | | |
47
+ | badgeTopLeft | | `HTMLElement[]` | | |
48
+ | badgeBottomLeft | | `HTMLElement[]` | | |
49
+ | badgeBottomRight | | `HTMLElement[]` | | |
50
+
51
+ ## Events
52
+
53
+ None.
54
+
55
+ ## Slots
56
+
57
+ None.
58
+
59
+ ## Stories
60
+
61
+ - [On](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-switch--on)
62
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-switch--off)
63
+ - [Orientation Vertical Right](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-switch--orientation-vertical-right)
64
+ - [Orientation Vertical Left](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-switch--orientation-vertical-left)
65
+ - [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-switch--static)
66
+
67
+ ## See also
68
+
69
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,112 @@
1
+ # `<obc-system-button>`
2
+
3
+ A multi-state system status and quick-action button for displaying and controlling core system indicators.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-menus-system-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/system-button/system-button.ts)
6
+
7
+ `<obc-system-button>` – A multi-state system status and quick-action button for displaying and controlling core system indicators.
8
+
9
+ This component provides a compact, interactive summary of system-level statuses such as WiFi, audio, microphone, battery, and GPS. It can be used as a single icon button, an expanded status display, or a segmented set of quick-action buttons, depending on the chosen variant. Designed for use in application toolbars, system menus, or quick-access panels where users need to view and interact with system controls at a glance.
10
+
11
+ Appears as an icon or set of icons representing real-time system states. Supports toggling panels for detailed control or configuration, and adapts its layout to suit condensed, expanded, or action-oriented contexts.
12
+
13
+ ## Features
14
+
15
+ - **Variants**:
16
+ - **Condensed**: Single icon button (typically a settings or system icon) for minimal space usage.
17
+ - **Expanded**: Horizontal button displaying a row of system status icons (WiFi, audio, microphone, battery, GPS) for quick visual overview.
18
+ - **Actions**: Segmented button group, each segment representing a system function (microphone, volume, system icons), with interactive actions for each.
19
+ - **Dynamic Iconography**: Icons update in real time to reflect system state (e.g., WiFi strength, battery level, mute status, GPS quality).
20
+ - **Quick Actions**: In actions variant, clicking a segment opens the corresponding control panel (e.g., microphone settings, volume slider).
21
+ - **State Awareness**: Each system indicator (WiFi, audio, microphone, battery, GPS) can be enabled/disabled independently, and their visual state reflects connection, mute, charge, or quality status.
22
+ - **Accessibility**: Button segments are keyboard accessible and support disabled state.
23
+ - **Customizable**: System state can be controlled via the `systemState` property, allowing for integration with live system data.
24
+
25
+ ## Usage Guidelines
26
+
27
+ Use `<obc-system-button>` to provide users with a compact, always-visible summary of key system statuses and quick access to related controls. Ideal for application toolbars, overlays, or system menus where users need to monitor and adjust system settings without leaving their current context.
28
+
29
+ - Use the **condensed** variant for minimal UI or when only a single system menu entry is needed.
30
+ - Use the **expanded** variant to show multiple system statuses at a glance, especially when space allows and quick status recognition is important.
31
+ - Use the **actions** variant to provide direct access to system controls (e.g., mute/unmute, adjust volume, open system settings).
32
+
33
+ Only enable system indicators that are relevant to your application context. For example, if GPS is not available, set `systemState.gps.enabled` to `false` to hide the GPS icon.
34
+
35
+ **TODO(designer):** Provide guidance on when to use each variant and any best practices for grouping or prioritizing system indicators.
36
+
37
+
38
+ ## Properties and Attributes
39
+
40
+ - `variant` (`condensed` | `expanded` | `actions`): Controls the visual and interactive mode of the button. Default is `condensed`.
41
+ - `disabled` (boolean): Disables all interactions and renders the button(s) in a disabled state.
42
+ - `systemState` (object): Object describing the enabled state and current value for each system indicator (WiFi, audio, microphone, battery, GPS). Each sub-property (e.g., `wifi.connected`, `audio.volume`) controls the presence and state of its corresponding icon.
43
+ - `menuOpen` (boolean): Indicates whether a system panel is currently open (used internally for expanded/actions variants).
44
+ - `activePanel` (string or null): Indicates which panel (if any) is currently active (`microphone`, `volume`, `system-icons`, or `null`).
45
+
46
+ ## Events
47
+
48
+ - `menu-toggle` – Fired when the expanded variant is toggled open or closed.
49
+ - `system-state-change` – Fired when the system state is updated via `updateSystemState()`.
50
+ - `microphone-panel-open` – Fired when the microphone action segment is activated.
51
+ - `volume-panel-open` – Fired when the volume action segment is activated.
52
+ - `system-icons-panel-open` – Fired when the system icons action segment is activated.
53
+
54
+ ## Best Practices and Constraints
55
+
56
+ - Only enable system indicators that are relevant to your application context.
57
+ - In the actions variant, avoid overloading the UI with too many segments; keep the number of quick actions manageable.
58
+ - Each segment in the actions variant should have a clear, distinct purpose.
59
+ - The component is intended for summary/status and quick access, not for detailed configuration (which should be handled in dedicated panels).
60
+ - For accessibility, keep all interactive segments reachable by keyboard and give them labels.
61
+
62
+ ## Example
63
+
64
+ ```html
65
+ <obc-system-button
66
+ variant="actions"
67
+ .systemState="${{
68
+ wifi: {enabled: true, connected: true, strength: 3},
69
+ audio: {enabled: true, muted: false, volume: 65},
70
+ microphone: {enabled: true, muted: false, sensitivity: 80},
71
+ battery: {enabled: true, level: 78, charging: false},
72
+ gps: {enabled: true, connected: true, quality: 'medium'},
73
+ }}"
74
+ >
75
+ <span slot="icon"><obi-placeholder></obi-placeholder></span>
76
+ </obc-system-button>
77
+ ```
78
+
79
+ ## Properties
80
+
81
+ | Property | Attribute | Type | Default | Description |
82
+ | --- | --- | --- | --- | --- |
83
+ | variant | variant | `SystemButtonVariant` | | Visual and interactive mode: `condensed` (default) is a single icon button, `expanded` a horizontal button showing a row of system status icons, and `actions` a segmented group of system controls. |
84
+ | disabled | disabled | `boolean` | `false` | Disables all interactions and renders the button(s) in a disabled state. |
85
+ | systemState | systemState | `SystemState` | `{ wifi: {connected: true, strength: 3}, audio: {muted: false, volume: 65}, microphone: {muted: false, sensitivity: 80}, battery: {level: 78, charging: false}, gps: {connected: false, quality: 'medium'}, }` | Object describing the enabled state and current value for each system indicator (WiFi, audio, microphone, battery, GPS). Each sub-property (e.g., `wifi.connected`, `audio.volume`) controls the presence and state of its corresponding icon. |
86
+ | menuOpen | menuOpen | `boolean` | `false` | Indicates whether a system panel is currently open (used internally for expanded/actions variants). |
87
+ | activePanel | activePanel | `ActivePanel \| null` | `null` | Indicates which panel (if any) is currently active. One of: `'microphone'`, `'volume'`, `'system-icons'`, or `null`. |
88
+
89
+ ## Events
90
+
91
+ | Event | Type | Description |
92
+ | --- | --- | --- |
93
+ | menu-toggle | `CustomEvent<{open: boolean}>` | When the expanded variant is toggled open or closed |
94
+ | system-state-change | `CustomEvent<{state: SystemState}>` | When the system state is updated |
95
+ | microphone-panel-open | `CustomEvent<void>` | When the microphone action segment is activated |
96
+ | volume-panel-open | `CustomEvent<void>` | When the volume action segment is activated |
97
+ | system-icons-panel-open | `CustomEvent<void>` | When the system icons action segment is activated |
98
+
99
+ ## Slots
100
+
101
+ None.
102
+
103
+ ## Stories
104
+
105
+ - [Actions](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-button--actions)
106
+ - [Condensed](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-button--condensed)
107
+ - [Expanded](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-button--expanded)
108
+ - [All Connected](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-button--all-connected)
109
+ - [All Disconnected](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-button--all-disconnected)
110
+ - [Low Signals](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-button--low-signals)
111
+ - [Charging](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-button--charging)
112
+ - [Minimal Features](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-button--minimal-features)
@@ -0,0 +1,67 @@
1
+ # `<obc-system-menu>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-menus-system-menu--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/system-menu/system-menu.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | 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. |
12
+ | 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`. |
13
+ | wifiState | | `WifiState \| undefined` | | |
14
+ | audioState | | `AudioState \| undefined` | | |
15
+ | microphoneState | | `MicrophoneState \| undefined` | | |
16
+ | batteryState | | `BatteryState \| undefined` | | |
17
+ | condensed | condensed | `boolean` | `false` | |
18
+ | showSettingsButton | showSettingsButton | `boolean` | `false` | |
19
+ | activeSubMenu | activeSubMenu | `SystemSubMenu` | | |
20
+ | externalControl | externalControl | `boolean` | `false` | |
21
+ | smallScreen | smallScreen | `boolean` | `false` | |
22
+
23
+ ## Events
24
+
25
+ | Event | Type | Description |
26
+ | --- | --- | --- |
27
+ | eventName | `CustomEvent` | |
28
+ | wifi-click | `CustomEvent` | When the Wi-Fi button is clicked |
29
+ | audio-click | `CustomEvent` | When the Audio button is clicked |
30
+ | audio-volume-change | `VolumeChangeEvent` | When the Audio volume is changed |
31
+ | microphone-click | `CustomEvent` | When the Microphone button is clicked |
32
+ | push-to-talk-change | `CustomEvent` | When the push-to-talk toggle is changed |
33
+ | battery-saving-mode-change | `CustomEvent` | When the Battery saving mode is changed |
34
+ | battery-usage-click | `CustomEvent` | When the Battery usage button is clicked |
35
+ | wifi-network-change | `CustomEvent` | When the Wi-Fi network is changed |
36
+ | audio-output-change | `CustomEvent` | When the Audio output is changed |
37
+ | microphone-input-change | `CustomEvent` | When the Microphone input is changed |
38
+ | battery-mode-change | `CustomEvent` | When the Battery mode is changed |
39
+ | settings-click | | When the Settings button is clicked |
40
+ | to-sub-menu-click | | When the sub menu is clicked |
41
+ | wifi-options-click | | When the Wi-Fi options are clicked |
42
+ | wifi-disconnect-click | | When the Wi-Fi disconnect is clicked |
43
+ | close | `CustomEvent<void>` | Fired when the menu closed on its own, from a click outside, `Escape`, or another menu opening. `open` is already `false` by the time it arrives; reset the flag you bind to `open` here, or the next click on the button finds it still set and asks a closed menu to close. |
44
+
45
+ ## Slots
46
+
47
+ | Slot | Description |
48
+ | --- | --- |
49
+ | battery-status | Custom battery status text (falls back to the built-in charging/battery label). |
50
+
51
+ ## Stories
52
+
53
+ - [Full](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--full)
54
+ - [Condensed](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--condensed)
55
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--off)
56
+ - [No Sub Menu](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--no-sub-menu)
57
+ - [Autio Only](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--autio-only)
58
+ - [Wifi Sub Menu](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--wifi-sub-menu)
59
+ - [Audio Sub Menu](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--audio-sub-menu)
60
+ - [Microphone Sub Menu](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--microphone-sub-menu)
61
+ - [Microphone No Options Sub Menu](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--microphone-no-options-sub-menu)
62
+ - [Battery Sub Menu](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--battery-sub-menu)
63
+ - [Small Screen Main](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--small-screen-main)
64
+ - [Small Screen Wifi](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--small-screen-wifi)
65
+ - [Small Screen Audio](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--small-screen-audio)
66
+ - [Small Screen Microphone](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--small-screen-microphone)
67
+ - [Small Screen Battery](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-system-menu--small-screen-battery)
@@ -0,0 +1,161 @@
1
+ # `<obc-tab-item>`
2
+
3
+ A selectable tab component for navigation menus and tabbed interfaces.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-menus-and-navigation-tab-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/tab-item/tab-item.ts)
6
+
7
+ `<obc-tab-item>` – A selectable tab component for navigation menus and tabbed interfaces.
8
+
9
+ Represents a single tab within a tab bar or navigation group, supporting optional icons, subtitles, badges, close actions, and various layout modes. Designed for use in horizontal or vertical tab sets, allowing users to switch between different views or content panels.
10
+
11
+ Appears as a button-like element that can display a leading icon, a title, an optional subtitle, a badge (for counts or status), and an optional close button. Supports both fixed-width and "hug" (fit-content) layouts, and can be styled as checked (active/selected) or disabled.
12
+
13
+ ## Features
14
+ - **Selectable State:** Indicates active/selected tab via the `checked` property.
15
+ - **Leading Icon:** Optionally displays a leading icon via the `leading-icon` slot.
16
+ - **Title:** Supports a title label, either via property or slot.
17
+ - **Subtitle:** Optionally displays secondary contextual text below the title.
18
+ - **Badge Support:** Can show a badge (count/status) with configurable type, size, and icon.
19
+ - **Close Button:** Optional close action via a trailing icon button.
20
+ - **Layout Modes:**
21
+ - **Hug:** Shrinks to fit content width (`hug` property).
22
+ - **Center Content:** Centers content within the tab (`centerContent` property).
23
+ - **Divider:** Optional divider line for visual separation.
24
+ - **Disabled State:** Prevents interaction and visually indicates non-interactive state.
25
+ - **Keyboard Accessible:** `Enter` and `Space` activate the tab; `Delete` closes it when it has a close button.
26
+
27
+ ## Variants and Configuration
28
+ - **Badge Types:** Supports all badge types from `obc-badge` (e.g., `alarm`, `warning`, `notification`, etc.).
29
+ - **Badge Sizes:** Regular and large badge sizes.
30
+ - **Badge Number Toggle:** Optionally hide the badge number via `badgeShowNumber` for status-only badges.
31
+ - **Show Leading Badge Icon:** Optionally display an icon within the badge.
32
+ - **Subtitle Toggle:** Optionally display a subtitle line using `showSubtitle`.
33
+
34
+ ## Usage Guidelines
35
+ Use `obc-tab-item` within a tab bar or navigation group to represent a single selectable view or section. Ideal for switching between content panels, dashboards, or grouped settings. Use the `checked` property to indicate the active tab, and `disabled` to prevent selection. Use `subtitle` for short contextual information that helps distinguish similarly named tabs. The close button is suitable for user-removable tabs (e.g., in dynamic tab sets).
36
+
37
+ - Use the badge for counts (e.g., notifications, alarms) or status indicators.
38
+ - Use the leading icon for visual context or to reinforce the tab's purpose.
39
+ - Avoid using the close button on non-removable tabs.
40
+ - For best accessibility, ensure each tab has a unique label/title.
41
+
42
+ **TODO(designer):** Confirm if there are recommended maximum title lengths or truncation guidelines for tab labels.
43
+
44
+ ## Slots
45
+
46
+ | Slot Name | Renders When... | Purpose |
47
+ | -------------- | ---------------------- | -------------------------------------------------------- |
48
+ | leading-icon | `hasLeadingIcon` true | Leading icon representing the tab's category or purpose. |
49
+ | title | `hasTitle` true | Tab label or heading text. |
50
+ | badge-icon | `hasBadge` & `showLeadingBadgeIcon` true | Icon inside the badge (e.g., status symbol). |
51
+
52
+ ## Events
53
+ - `tab-click` – Fired when the tab is clicked or activated via keyboard.
54
+ - `tab-close` – Fired when the close button is clicked, or `Delete` is pressed on the tab.
55
+
56
+ ## Keyboard
57
+ One tab of the [APG Tabs pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/):
58
+ `Enter` and `Space` activate it, and `Delete` closes it when it has a close
59
+ button; the arrow keys, `Home` and `End` belong to the row. `aria-selected`
60
+ mirrors `checked`, and `panel` becomes the tab's `aria-controls` through
61
+ element reflection (`ariaControlsElements`). The close
62
+ button stays out of the tab sequence so the row keeps one tab stop, and the
63
+ tab announces `Delete` as its shortcut instead.
64
+
65
+ Left out: a visible hint that `Delete` closes the tab, which only screen
66
+ readers announce; the row lists what it leaves out of the pattern.
67
+
68
+ ## Best Practices
69
+ - Only one tab in a group should have `checked` set to true.
70
+ - Use the badge for concise status/counts; avoid long text in badges.
71
+ - The close button should only be used for tabs that users can remove.
72
+ - For accessibility, ensure tabs are focusable and have clear labels.
73
+
74
+ **Example:**
75
+ ```
76
+ <obc-tab-item
77
+ checked
78
+ has-leading-icon
79
+ has-title
80
+ show-subtitle
81
+ subtitle="Context"
82
+ has-badge
83
+ badgeCount="3"
84
+ badgeType="alarm"
85
+ has-close
86
+ title="Alarms"
87
+ >
88
+ <obi-placeholder slot="leading-icon"></obi-placeholder>
89
+ <obi-placeholder slot="badge-icon"></obi-placeholder>
90
+ </obc-tab-item>
91
+ ```
92
+
93
+ ## Properties
94
+
95
+ | Property | Attribute | Type | Default | Description |
96
+ | --- | --- | --- | --- | --- |
97
+ | hug | hug | `boolean` | `false` | Shrinks the tab width to fit its content instead of using the default fixed width. When enabled, the tab will use `width: fit-content` and a minimum width. |
98
+ | centerContent | centerContent | `boolean` | `false` | Centers the content (icon, title, badge) horizontally within the tab. When enabled, content is centered rather than left-aligned. |
99
+ | checked | checked | `boolean` | `false` | Marks the tab as selected/active. Only one tab in a group should have `checked` set to true. |
100
+ | hasClose | has-close | `boolean` | `false` | Displays a close button at the end of the tab. Use for tabs that can be removed by the user. |
101
+ | hasLeadingIcon | has-leading-icon | `boolean` | `false` | Shows a leading icon at the start of the tab. Supply icon content via the `leading-icon` slot. |
102
+ | hasTitle | has-title | `boolean` | `false` | Displays the tab's title/label. Content can be provided via the `title` slot or the `title` property. |
103
+ | hasDivider | has-divider | `boolean` | `false` | Shows a vertical divider on the left edge of the tab (except when checked). Useful for visually separating tabs. Available when `checked==false`. |
104
+ | badges | | `TabItemBadge[]` | `[]` | Badges shown on the tab. A non-empty array takes precedence over the deprecated single-badge properties (`hasBadge`, `badgeType`, `badgeSize`, `badgeCount`, `badgeShowNumber`, `showLeadingBadgeIcon`); an empty one falls back to them, gated by `hasBadge`. |
105
+ | hasBadge | has-badge | `boolean` | `false` | Shows a badge (a count or a status) on the tab; `badgeCount`, `badgeType` and `badgeSize` configure it. The `badges` array replaces it, and a non-empty `badges` wins over all six. |
106
+ | icon | icon | `string` | `'placeholder'` | (Deprecated/Unused) Icon name for the tab. Icon content should be provided via the `leading-icon` slot. |
107
+ | title | title | `string` | `'Tab title'` | The tab's title/label text. Can be overridden by slotting content into the `title` slot. |
108
+ | showSubtitle | show-subtitle | `boolean` | `false` | Shows contextual text below the tab title. |
109
+ | subtitle | subtitle | `string` | `''` | Contextual text shown below the tab title when `showSubtitle` is true. |
110
+ | disabled | disabled | `boolean` | `false` | Disables the tab, preventing user interaction and applying disabled styles. |
111
+ | focusable | | `boolean` | `true` | Whether the tab is in the tab order. `obc-tab-row` manages this as a roving tabindex (one tab focusable at a time); a standalone tab stays tabbable. |
112
+ | panel | | `Element \| null` | `null` | The panel this tab shows, announced as the tab's `aria-controls`. `obc-tab-row` sets it when it renders panels; the panel has to live in this tab's tree or one it sits inside. |
113
+ | badgeType | badgeType | `string` | | The badge's type, a `BadgeType` member such as `regular`, `alarm` or `warning`. Available when `hasBadge==true && badges==[]`. |
114
+ | badgeSize | badgeSize | `string` | | The badge's size, a `BadgeSize` member: `regular` or `large`. Available when `hasBadge==true && badges==[]`. |
115
+ | badgeShowNumber | | `boolean` | `true` | Shows the badge's number; off, only the badge background shows, for a status badge. Available when `hasBadge==true && badges==[]`. |
116
+ | badgeCount | badgeCount | `number` | `0` | The number shown in the badge. Available when `hasBadge==true && badges==[] && badgeShowNumber==true`. |
117
+ | showLeadingBadgeIcon | showLeadingBadgeIcon | `boolean` | `false` | Shows an icon inside the badge, from the `badge-icon` slot. Available when `hasBadge==true && badges==[]`. |
118
+
119
+ ## Events
120
+
121
+ | Event | Type | Description |
122
+ | --- | --- | --- |
123
+ | tab-click | `CustomEvent<{title: string}>` | When the tab is clicked or activated via keyboard |
124
+ | tab-close | `CustomEvent<{title: string}>` | When the close button is clicked |
125
+
126
+ ## Slots
127
+
128
+ | Slot | Description |
129
+ | --- | --- |
130
+ | leading-icon | Slot for the leading icon (shown when `hasLeadingIcon` is true) |
131
+ | title | Slot for the tab's label/title (shown when `hasTitle` is true) |
132
+ | badge-icon | Slot for an icon inside the badge (shown when `hasBadge` and `showLeadingBadgeIcon` are true) |
133
+
134
+ ## Stories
135
+
136
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--default)
137
+ - [Default Hug](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--default-hug)
138
+ - [Subtitle](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--subtitle)
139
+ - [Badge](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--badge)
140
+ - [Badge Hug](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--badge-hug)
141
+ - [Badge Close](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--badge-close)
142
+ - [Badge Close Hug](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--badge-close-hug)
143
+ - [Has Divider](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--has-divider)
144
+ - [Centered](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--centered)
145
+ - [Centered Hug](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--centered-hug)
146
+ - [Centered Badge](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--centered-badge)
147
+ - [Centered Badge Hug](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--centered-badge-hug)
148
+ - [Centered Badge Close](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--centered-badge-close)
149
+ - [Centered Badge Close Hug](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--centered-badge-close-hug)
150
+ - [No Leading Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--no-leading-icon)
151
+ - [No Leading Icon Hug](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--no-leading-icon-hug)
152
+ - [Checked](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--checked)
153
+ - [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--disabled)
154
+ - [Long Title](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--long-title)
155
+ - [High Badge Count](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--high-badge-count)
156
+ - [Multiple Badges](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--multiple-badges)
157
+ - [Badge Hide Number](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-tab-item--badge-hide-number)
158
+
159
+ ## See also
160
+
161
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)