@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,111 @@
1
+ # `<obc-progress-button>`
2
+
3
+ A button with a built-in progress indicator for actions that take time to complete, such as uploads, downloads, or background processing.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-messages-and-notifications-progress-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/progress-button/progress-button.ts)
6
+
7
+ `<obc-progress-button>` – A button with a built-in progress indicator for actions
8
+ that take time to complete, such as uploads, downloads, or background processing.
9
+
10
+ Combines a clickable button with an embedded progress visualization so a single
11
+ control can both trigger a long-running action and communicate its ongoing status.
12
+ The progress indicator is shown on demand (via `showProgress`) and can report either
13
+ a known percentage or an open-ended "working" state.
14
+
15
+ ## Features / Variants
16
+
17
+ **Layout types (`type`)**
18
+ - **Linear** (default): A text button (optionally with leading/trailing icons) with a
19
+ thin horizontal progress bar rendered above the label. Best for primary actions where
20
+ a descriptive label is helpful (e.g. "Upload File", "Download").
21
+ - **Circular**: A compact icon-only button wrapped by a circular progress ring, with an
22
+ optional label rendered below it. Best for space-constrained or icon-driven actions.
23
+
24
+ **Button styles (`buttonStyle`, Linear only)**
25
+ - `regular` (default), `flat`, and `raised` elevation variants. The circular type always
26
+ uses a flat visual treatment.
27
+
28
+ **Progress modes (`mode`)**
29
+ - **Determinate** (default): Fills the bar/ring proportionally to `value` (0–100).
30
+ - **Indeterminate**: Animated, looping indicator for work of unknown duration.
31
+ - **Progressive indeterminate** (Circular only, via `progressiveIndeterminate`): A hybrid
32
+ ring that animates while still advancing toward `value`.
33
+
34
+ **Other**
35
+ - **Alert state** (`hasAlert`): Draws a red ring/border to flag an error or failed action.
36
+ - **Disabled** (`disabled`): Blocks interaction; the `obc-click` event is suppressed.
37
+
38
+ ## Usage Guidelines
39
+
40
+ Use a progress button when a single action both starts and tracks a time-consuming task,
41
+ keeping the trigger and its feedback in one place. Toggle `showProgress` on when the task
42
+ begins and update `value` as it advances; switch to `mode="indeterminate"` (or
43
+ `progressiveIndeterminate` for circular) when the duration or completion percentage is
44
+ unknown. Choose the **linear** type when a text label aids comprehension, and the
45
+ **circular** type for compact, icon-led actions. For a plain action with no progress
46
+ tracking, prefer a standard button instead.
47
+
48
+ ## Slots
49
+
50
+ | Slot | Renders When... | Purpose |
51
+ | --------------- | ---------------------------------- | ---------------------------------------------------- |
52
+ | `leading-icon` | `type="linear"` && `hasLeadingIcon`| Icon shown before the label. |
53
+ | `trailing-icon` | `type="linear"` && `hasTrailingIcon`| Icon shown after the label. |
54
+ | `icon` | `type="circular"` | Central icon inside the circular progress ring. |
55
+
56
+ ## Events
57
+
58
+ - `obc-click` – Fired when the button is activated (suppressed while `disabled`); the detail
59
+ carries the current progress `value`.
60
+
61
+ ## Properties
62
+
63
+ | Property | Attribute | Type | Default | Description |
64
+ | --- | --- | --- | --- | --- |
65
+ | type | type | `ProgressButtonType` | | Layout type of the button: `linear` (label + bar) or `circular` (icon + ring). |
66
+ | buttonStyle | buttonStyle | `ButtonStyle` | | Elevation style of the button surface. Available when `type==linear`. |
67
+ | mode | mode | `ProgressMode` | | Progress mode: `determinate` tracks `value`, `indeterminate` loops indefinitely. Available when `showProgress==true`. |
68
+ | value | value | `number` | `0` | Progress percentage (0–100); clamped when rendered. |
69
+ | label | label | `string` | `''` | Text shown in the button (linear) or below it (circular, when `showLabel`). |
70
+ | disabled | disabled | `boolean` | `false` | Blocks interaction and suppresses the `obc-click` event. |
71
+ | showProgress | showProgress | `boolean` | `false` | Reveals the progress bar/ring. |
72
+ | hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | Renders the `leading-icon` slot. Available when `type==linear`. |
73
+ | hasTrailingIcon | hasTrailingIcon | `boolean` | `false` | Renders the `trailing-icon` slot. Available when `type==linear`. |
74
+ | hasAlert | hasAlert | `boolean` | `false` | Shows an alert (error) ring/border around the button. |
75
+ | progressiveIndeterminate | progressiveIndeterminate | `boolean` | `false` | Uses a progressive indeterminate ring that animates while advancing toward `value`. Available when `type==circular && showProgress==true`. |
76
+ | showLabel | showLabel | `boolean` | `false` | Shows the `label` below the circular button. Available when `type==circular`. |
77
+
78
+ ## Events
79
+
80
+ | Event | Type | Description |
81
+ | --- | --- | --- |
82
+ | obc-click | `CustomEvent<ProgressButtonClickEvent>` | When the button is activated; detail holds the current `value`. |
83
+
84
+ ## Slots
85
+
86
+ | Slot | Description |
87
+ | --- | --- |
88
+ | leading-icon | Icon before the label (`type="linear"` && `hasLeadingIcon`). |
89
+ | trailing-icon | Icon after the label (`type="linear"` && `hasTrailingIcon`). |
90
+ | icon | Central icon for the circular variant (`type="circular"`). |
91
+
92
+ ## Stories
93
+
94
+ - [Linear - Regular](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-regular)
95
+ - [Linear - Flat](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-flat)
96
+ - [Linear - Raised](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-raised)
97
+ - [Linear - With Progress](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-with-progress)
98
+ - [Linear - Indeterminate Progress](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-indeterminate)
99
+ - [Linear - With Icons](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-with-icons)
100
+ - [Linear - Alert State](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-with-alert)
101
+ - [Linear - Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-disabled)
102
+ - [Circular](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--circular)
103
+ - [Circular - With Label](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--circular-with-label)
104
+ - [Circular - Determinate Progress](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--circular-determinate)
105
+ - [Circular - Indeterminate Progress](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--circular-indeterminate)
106
+ - [Circular - Progressive Indeterminate](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--circular-progressive-indeterminate)
107
+ - [Circular - Alert State](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--circular-with-alert)
108
+ - [Circular - With Label and Alert](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--circular-with-label-and-alert)
109
+ - [Linear - Progress Animation Demo](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--linear-progress-animation)
110
+ - [Circular - Progress Animation Demo](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--circular-progress-animation)
111
+ - [Interactive Demo](https://openbridge-next-storybook.web.app/?path=/story/ui-components-messages-and-notifications-progress-button--interactive-demo)
@@ -0,0 +1,57 @@
1
+ # `<obc-progress-indicator-dots>`
2
+
3
+ A visual step indicator component that displays a horizontal row of dots to represent progress through a sequence of steps (also known as a stepper, pagination indicator, or progress dots).
4
+
5
+ Lifecycle: stable. [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/progress-indicator-dots/progress-indicator-dots.ts)
6
+
7
+ `<obc-progress-indicator-dots>` – A visual step indicator component that displays a horizontal row of dots to represent progress through a sequence of steps (also known as a stepper, pagination indicator, or progress dots).
8
+
9
+ This component visually communicates the user's current position within a multi-step process, such as onboarding flows, carousels, or paginated content. The active step is highlighted, while inactive steps are shown as neutral dots. The number of steps and the current step are configurable.
10
+
11
+ ## Features
12
+ - **Step Count:** Displays a configurable number of steps as dots (minimum 1).
13
+ - **Active Step Highlight:** Clearly indicates the current/active step.
14
+ - **Fullwidth Option:** Can stretch to fill the container width or remain compact.
15
+ - **Responsive Layout:** Dots are spaced evenly and adapt to available space.
16
+ - **Accessible State:** The active step is visually distinct for clarity.
17
+
18
+ ## Usage Guidelines
19
+ Use `obc-progress-indicator-dots` to show progress through a linear, discrete process where each step is equally weighted (such as onboarding, multi-page forms, or image carousels). It is best suited for scenarios where users need a quick visual reference of their progress and the total number of steps.
20
+
21
+ - Ideal for wizard-style flows, paginated content, or navigation between sequential screens.
22
+ - Not intended for displaying progress percentages or indeterminate progress—use a linear or circular progress bar for those cases.
23
+ - Avoid using for processes with more steps than can be comfortably displayed as dots (e.g., more than 7–10).
24
+ - **TODO(designer):** Confirm if there are recommended maximum/minimum step counts or accessibility guidelines for color contrast.
25
+
26
+ ## Properties
27
+ - `totalSteps` (number): Sets the total number of steps/dots to display (minimum 1; default: 5).
28
+ - `currentStep` (number): Indicates the currently active step (1-based index; default: 1). Values outside the valid range are clamped.
29
+ - `fullwidth` (boolean): If true, the indicator stretches to fill the container width; otherwise, it uses a compact layout (default: false).
30
+
31
+ ## Best Practices
32
+ - Ensure `currentStep` is always within the range of 1 to `totalSteps` for accurate highlighting.
33
+ - For accessibility, pair with descriptive labels or ARIA attributes as needed (not included by default).
34
+ - Use in conjunction with navigation controls (e.g., Next/Previous buttons) to allow users to move between steps.
35
+
36
+ ## Example:
37
+ ```html
38
+ <obc-progress-indicator-dots totalSteps="4" currentStep="2" fullwidth></obc-progress-indicator-dots>
39
+ ```
40
+
41
+ ## Properties
42
+
43
+ | Property | Attribute | Type | Default | Description |
44
+ | --- | --- | --- | --- | --- |
45
+ | totalSteps | totalSteps | `number` | `5` | Sets the total number of steps/dots to display. Must be at least 1. Defaults to 5. |
46
+ | currentStep | currentStep | `number` | `1` | Indicates the currently active step (1-based index). Values outside the valid range are clamped to [1, totalSteps]. Defaults to 1. |
47
+ | fullwidth | fullwidth | `boolean` | `false` | If true, the indicator stretches to fill the container width. If false, uses a compact layout sized to its content. Defaults to false. |
48
+
49
+ ## Events
50
+
51
+ None.
52
+
53
+ ## Slots
54
+
55
+ | Slot | Description |
56
+ | --- | --- |
57
+ | (default) | (none) This component does not use content slots. |
@@ -0,0 +1,48 @@
1
+ # `<obc-propulsion-azimuth-indicator>`
2
+
3
+ A compact circular indicator with a top reference mark, rotating face, vertical level track, and centered value bar.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-propulsion-azimuth-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/propulsion-azimuth-indicator/propulsion-azimuth-indicator.ts)
6
+
7
+ `<obc-propulsion-azimuth-indicator>` – A compact circular indicator with a top reference mark, rotating face, vertical level track, and centered value bar.
8
+
9
+ Renders a **48×48** graphic: outer ring, top reference triangle, a pill-shaped vertical track, and a square value block. **`azimuth`** rotates the **track + value bar** around the center while keeping the outer ring and top reference mark fixed.
10
+
11
+ ## Features
12
+
13
+ - **Variants:** `enhanced` and `regular` select the secondary palette token for the value bar.
14
+ - **Azimuth:** Degrees; rotation is applied around the **48×48** view center to the track layer, **`value`** moves the bar along the track’s local vertical axis.
15
+ - **Value:** Normalized **−1…1**; **0** centers the bar on the reference line, **−1** and **1** clamp to the inner ends of the track.
16
+
17
+ ## Usage Guidelines
18
+
19
+ Use for a small combined direction and magnitude cue next to numeric readouts. For a full azimuth instrument with scales and setpoints, use **`obc-azimuth-thruster`** instead.
20
+
21
+ ## Properties
22
+
23
+ | Property | Attribute | Type | Default | Description |
24
+ | --- | --- | --- | --- | --- |
25
+ | type | type | `PropulsionAzimuthIndicatorType` | | |
26
+ | hasSilhouette | has-silhouette | `boolean` | `false` | |
27
+ | azimuth | azimuth | `number` | `0` | |
28
+ | value | value | `number` | `0` | |
29
+ | state | state | `InstrumentState` | | |
30
+
31
+ ## Events
32
+
33
+ None.
34
+
35
+ ## Slots
36
+
37
+ None.
38
+
39
+ ## Stories
40
+
41
+ - [In Command](https://openbridge-next-storybook.web.app/?path=/story/indicators-propulsion-azimuth-indicator--default)
42
+ - [With Silhouette](https://openbridge-next-storybook.web.app/?path=/story/indicators-propulsion-azimuth-indicator--with-silhouette)
43
+ - [Azimuth 0°](https://openbridge-next-storybook.web.app/?path=/story/indicators-propulsion-azimuth-indicator--azimuth-0)
44
+ - [Azimuth 90°](https://openbridge-next-storybook.web.app/?path=/story/indicators-propulsion-azimuth-indicator--azimuth-90)
45
+ - [Azimuth 180°](https://openbridge-next-storybook.web.app/?path=/story/indicators-propulsion-azimuth-indicator--azimuth-180)
46
+ - [Azimuth 270°](https://openbridge-next-storybook.web.app/?path=/story/indicators-propulsion-azimuth-indicator--azimuth-270)
47
+ - [Not In Command](https://openbridge-next-storybook.web.app/?path=/story/indicators-propulsion-azimuth-indicator--regular)
48
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/indicators-propulsion-azimuth-indicator--off)
@@ -0,0 +1,76 @@
1
+ # `<obc-pump>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-pump--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/pump/pump.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | vertical | vertical | `boolean` | `false` | |
12
+ | icon | | `TemplateResult` | | |
13
+ | turnedOn | turnedOn | `boolean` | `false` | Whether the device is running. Selects the running icon and the speed readout instead of the `Off` state. Not named `on`, which Svelte binds as an event listener in markup (#1090). |
14
+ | on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
15
+ | speedInPercent | speedInPercent | `number` | `0` | Speed in percent, read only while `speed` is unset. |
16
+ | speed | speed | `number \| undefined` | | |
17
+ | speedUnit | speedUnit | `string` | `'%'` | |
18
+ | speedMaxDigits | speedMaxDigits | `number` | `3` | |
19
+ | labelDirection | labelDirection | `AutomationButtonLabelDirection` | | |
20
+ | variant | variant | `MotorizedVariant` | | |
21
+ | direction | direction | `AutomationButtonDirection` | | Available when `variant in [double, forward, flatForward]`. |
22
+ | extraReadouts | | `AutomationButtonReadoutStack[]` | | |
23
+ | showReadoutStack | | `boolean` | `true` | |
24
+ | 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. |
25
+ | readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
26
+ | showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
27
+ | showStatusIcon | | `boolean` | `false` | |
28
+ | readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
29
+ | tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
30
+ | positioning | positioning | `AutomationButtonPositioning` | | |
31
+ | activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
32
+ | alert | alert | `boolean` | `false` | |
33
+ | alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
34
+ | alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
35
+ | alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
36
+ | alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
37
+ | showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
38
+ | showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
39
+ | progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
40
+ | progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
41
+ | progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
42
+ | badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
43
+ | badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
44
+ | badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
45
+ | badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
46
+ | 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. |
47
+ | 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. |
48
+ | badgeTopRight | | `HTMLElement[]` | | |
49
+ | badgeTopLeft | | `HTMLElement[]` | | |
50
+ | badgeBottomLeft | | `HTMLElement[]` | | |
51
+ | badgeBottomRight | | `HTMLElement[]` | | |
52
+
53
+ ## Events
54
+
55
+ None.
56
+
57
+ ## Slots
58
+
59
+ None.
60
+
61
+ ## Stories
62
+
63
+ - [On Verical](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--on-verical)
64
+ - [On Horizontal](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--on-horizontal)
65
+ - [Off Vertical](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--off-vertical)
66
+ - [Off Horizontal](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--off-horizontal)
67
+ - [Variant Double Size Large](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--variant-double-size-large)
68
+ - [Badge Layout Local](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--badge-layout-local): Alert and control swap corners on this pump only, and command-locked is hidden.
69
+ - [Badge Layout Global](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--badge-layout-global): The app-wide layout from `setAutomationBadgeLayout()` puts interlock top-left and control bottom-left on every device.
70
+ - [Badge Symbols Local](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--badge-symbols-local): This pump draws A for auto and S for simulation on the command-locked corner; the interlock corner keeps the simulation cube.
71
+ - [Badge Symbols Global](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-pump--badge-symbols-global): The app-wide override from `setAutomationBadgeSymbolOverride()` draws S for simulation on every device.
72
+
73
+ ## See also
74
+
75
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
76
+ - [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)
@@ -0,0 +1,103 @@
1
+ # `<obc-radial-bar-chart>`
2
+
3
+ A customizable radial bar chart for visualizing multiple metrics as concentric rings, with dynamic ring thickness and cutout calculation.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/bars-and-graphs-radial-bar-chart--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/bars-graphs/radial-bar-chart/radial-bar-chart.ts)
6
+
7
+ `<obc-radial-bar-chart>` – A customizable radial bar chart for visualizing multiple metrics as concentric rings, with dynamic ring thickness and cutout calculation.
8
+
9
+ This component renders multiple data values as concentric arcs (rings), each representing a different metric. It supports full circle (360°) or three-quarter circle (270°) layouts, dynamic ring thickness, and automatic cutout calculation to ensure all rings fit within the available space. The chart adapts its layout based on the number of rings and available space, and hides labels when the chart is too small (< 192px height) for clarity.
10
+
11
+ ## Features
12
+ - **Fixed Height ⇒ Fixed Circumference:** The chart's circumference is determined by the `fixedHeight` property (default: 320px). This ensures the chart's circumference remains consistent and matches other radial instruments, regardless of the available browser or container width. The chart does not scale to fill the width; instead, it always uses the specified fixed height to define its size and circumference.
13
+ - **Layout:**
14
+ - Full 360° or 270° (three-quarter) circle layout, controlled by the `circumference` property.
15
+ - Multiple concentric rings, each representing a data value.
16
+ - **Dynamic Ring Thickness:**
17
+ - All rings maintain equal thickness when possible.
18
+ - The `cutout` value serves as the maximum/preferred cutout percentage.
19
+ - When many rings are present, cutout is automatically reduced to fit rings at `minRingThickness`.
20
+ - Cutout will not go below 20% (minimum to maintain visible center).
21
+ - If rings still don't fit with 20% cutout, ring thickness is reduced proportionally.
22
+ - **Customization:**
23
+ - Custom ring colors (with automatic fallback to theme palette).
24
+ - Adjustable minimum ring thickness (`minRingThickness`).
25
+ - Adjustable arc span (`circumference`).
26
+ - **Color Priority:** Set `priority` to `Priority.enhanced` to use the blue/enhanced
27
+ color palette instead of the default gray/regular palette (default: `Priority.regular`).
28
+ - **Capacity Visualization:**
29
+ - Each ring shows a filled and remaining segment based on the `max` value.
30
+ - **Responsive Behavior:**
31
+ - Automatically hides labels and reduces spacing when height < 192px.
32
+ - Maintains aspect ratio and adjusts padding for optimal ring positioning.
33
+ - **Theme Integration:**
34
+ - Colors update automatically when the `data-obc-theme` attribute changes on the `<html>` element.
35
+ - Example:
36
+ ```html
37
+ <html lang="en" data-obc-theme="day"></html>
38
+ ```
39
+
40
+ ## Example
41
+
42
+ **Basic Usage**
43
+ ```html
44
+ <obc-radial-bar-chart></obc-radial-bar-chart>
45
+ <script>
46
+ document.querySelector('obc-radial-bar-chart').data = [70, 50, 30];
47
+ </script>
48
+ ```
49
+
50
+ **Three-Quarter Circle with Custom Colors**
51
+ ```html
52
+ <obc-radial-bar-chart></obc-radial-bar-chart>
53
+ <script>
54
+ const chart = document.querySelector('obc-radial-bar-chart');
55
+ chart.circumference = 270;
56
+ chart.data = [80, 60, 40, 20];
57
+ chart.colors = ['#e74c3c', '#f39c12', '#2ecc71', '#3498db'];
58
+ </script>
59
+ ```
60
+
61
+ **Custom Minimum Ring Thickness and Max Value**
62
+ ```html
63
+ <obc-radial-bar-chart></obc-radial-bar-chart>
64
+ <script>
65
+ const chart = document.querySelector('obc-radial-bar-chart');
66
+ chart.minRingThickness = 20;
67
+ chart.max = 200;
68
+ chart.data = [120, 80, 40];
69
+ </script>
70
+ ```
71
+
72
+ ## Properties
73
+
74
+ | Property | Attribute | Type | Default | Description |
75
+ | --- | --- | --- | --- | --- |
76
+ | data | | `number[]` | `[]` | Array of values for each ring (set via JavaScript) |
77
+ | colors | | `string[]` | `[]` | Custom ring colors (set via JavaScript) with fallback to theme palette |
78
+ | priority | priority | `Priority` | | |
79
+ | max | max | `number` | `100` | Maximum value for calculating remaining empty area, default: 100 |
80
+ | circumference | circumference | `number` | `270` | Arc span in degrees: 360 for full circle, 270 for 3/4 circle, default: 270 |
81
+ | legend | legend | `boolean` | `false` | Whether to display the legend below the chart, default: false |
82
+ | showDebugOverlay | showDebugOverlay | `boolean` | `false` | Show debug overlay for development, default: false |
83
+ | fixedHeight | fixedHeight | `number` | `320` | Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. |
84
+ | minRingThickness | minRingThickness | `number` | `16` | Minimum thickness of each ring in pixels, excluding borders, default: 16 |
85
+
86
+ ## Events
87
+
88
+ None.
89
+
90
+ ## Slots
91
+
92
+ None.
93
+
94
+ ## Stories
95
+
96
+ - [Default Radial Bar](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-radial-bar-chart--default)
97
+ - [Full Circle Radial Bar (360°)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-radial-bar-chart--full-circle)
98
+ - [Minimal Height Radial Bar (48px)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-radial-bar-chart--min-height)
99
+ - [Many Rings Radial Bar](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-radial-bar-chart--many-rings)
100
+ - [Auto-Shrink Ring Thickness (8 rings)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-radial-bar-chart--auto-shrink-rings)
101
+ - [With Legend Radial Bar](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-radial-bar-chart--with-legend)
102
+ - [Custom Colors Radial Bar](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-radial-bar-chart--custom-colors)
103
+ - [Realtime Radial Bar](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-radial-bar-chart--realtime)
@@ -0,0 +1,82 @@
1
+ # `<obc-radio>`
2
+
3
+ A single radio button component for selecting one option from a set.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-selection-controls-and-switches-radio-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/radio/radio.ts)
6
+
7
+ `<obc-radio>` – A single radio button component for selecting one option from a set.
8
+
9
+ Provides a standard radio input with optional label, supporting grouping via the native `name` attribute. Designed for use in forms or option groups where only one selection is allowed at a time. Renders in the light DOM to ensure correct browser-managed group behavior.
10
+
11
+ ---
12
+
13
+ ## Features
14
+ - **Native grouping:** Multiple `<obc-radio>` elements with the same `name` behave as a group, allowing only one to be selected at a time (uses the browser's native radio input mechanics).
15
+ - **Optional label:** Supports an inline label via the `label` property, or can be rendered without a label for custom layouts.
16
+ - **State options:** Supports `checked`, `disabled`, and `required` states for form integration.
17
+ - **Customizable value:** The `value` property sets the value submitted with the form when selected.
18
+ - **Accessible:** Associates the label with the input via `inputId` for improved accessibility.
19
+ - **No Shadow DOM:** Renders in the light DOM to ensure radios with the same `name` are grouped correctly by the browser.
20
+
21
+ ---
22
+
23
+ ## Usage Guidelines
24
+ - Use `<obc-radio>` when you need users to select one option from a list. For multiple independent selections, use a checkbox component instead.
25
+ - To create a group, render multiple `<obc-radio>` elements with the same `name` property. Only one can be checked at a time within the group.
26
+ - Always provide a unique `inputId` if you use the `label` property, to ensure the label is correctly associated with the input for accessibility.
27
+ - If a label is not needed, omit the `label` property to render a standalone radio input.
28
+ - For form submission, set the `value` property to the value you want submitted when this radio is selected.
29
+ - The `checked` property can be controlled for programmatic selection.
30
+
31
+ ---
32
+
33
+ ## Best Practices and Constraints
34
+ - Ensure all radios in a group share the same `name` attribute for correct group behavior.
35
+ - Only one radio in a group should have `checked` set to true.
36
+ - Use the `disabled` property to prevent user interaction when needed.
37
+ - Use the `required` property on at least one radio in a group if the selection is mandatory.
38
+ - For accessibility, always associate the label with the input using `inputId`.
39
+ - This component does not emit custom events; use standard form events or listen to the native input's change event if needed.
40
+
41
+ ---
42
+
43
+ **Example:**
44
+ ```html
45
+ <obc-radio label="Option A" name="group1" value="A" inputId="radioA"></obc-radio>
46
+ <obc-radio label="Option B" name="group1" value="B" inputId="radioB"></obc-radio>
47
+ ```
48
+ In this example, only one radio can be selected at a time within the "group1" group.
49
+
50
+ ## Properties
51
+
52
+ | Property | Attribute | Type | Default | Description |
53
+ | --- | --- | --- | --- | --- |
54
+ | label | label | `string \| undefined` | | The label text displayed next to the radio button. If omitted, the radio renders without a label. |
55
+ | name | name | `string \| undefined` | | The name attribute for grouping radios. Radios with the same name are grouped, allowing only one to be selected at a time. |
56
+ | value | value | `string \| undefined` | | The value submitted with the form when this radio is selected. |
57
+ | checked | checked | `boolean` | `false` | Whether the radio is currently selected. Only one radio in a group should be checked at a time. |
58
+ | disabled | disabled | `boolean` | `false` | Disables the radio button, preventing user interaction. |
59
+ | required | required | `boolean` | `false` | Marks the radio as required for form validation. At least one radio in a group should be required if selection is mandatory. |
60
+ | inputId | inputId | `string` | `''` | The id attribute for the underlying input element. Should be unique within the document and used to associate the label for accessibility. |
61
+
62
+ ## Events
63
+
64
+ | Event | Type | Description |
65
+ | --- | --- | --- |
66
+ | change | `CustomEvent` | Fired when the radio is changed. |
67
+
68
+ ## Slots
69
+
70
+ | Slot | Description |
71
+ | --- | --- |
72
+ | (default) | No named slots; content is provided via properties. |
73
+
74
+ ## Stories
75
+
76
+ - [With Label](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-radio-button--with-label)
77
+ - [Without Label](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-radio-button--without-label)
78
+ - [Checked With Label](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-radio-button--checked-with-label)
79
+ - [Multiple](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-radio-button--multiple)
80
+ - [Disabled Checked With Label](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-radio-button--disabled-checked-with-label)
81
+ - [Disabled With Label](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-radio-button--disabled-with-label)
82
+ - [Disabled Without Label](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-radio-button--disabled-without-label)
@@ -0,0 +1,95 @@
1
+ # `<obc-rate-of-turn>`
2
+
3
+ Standalone rate-of-turn indicator rendered on a circular watch face.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-rate-of-turn--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/rate-of-turn/rate-of-turn.ts)
6
+
7
+ `<obc-rate-of-turn>` — Standalone rate-of-turn indicator rendered on a circular watch face.
8
+
9
+ Wraps `<obc-watch>` to display a spinning-dot or arc-bar ROT visualization
10
+ without any additional instrument overlays. Useful for isolating the ROT
11
+ indicator in layouts where heading/compass elements are handled separately.
12
+
13
+ ## Features
14
+
15
+ - **Dot mode** (`rotType="dots"`): Five evenly-spaced dots spin at the
16
+ resolved rotations-per-minute (derived from
17
+ `rateOfTurnDegreesPerMinute × rotDotAnimationFactor / 360`).
18
+ - **Bar mode** (`rotType="bar"`): A banana-shaped arc from `barStartAngle`
19
+ to `barEndAngle` with clipped spinning dots inside.
20
+ - **Track position**: Place the indicator on the outer scale ring
21
+ (`rotPosition="scale"`) or the inner circle
22
+ (`rotPosition="innerCircle"`).
23
+ - **Track bar** (`hasTrackBar`): A bar in the ring band growing from the
24
+ twelve o'clock position to the measured rate of turn, with a needle
25
+ marker at its end and sector tickmarks (pairs with
26
+ `watchCircleType="double"` for the banded face, or `"triple"` when the
27
+ ROT dots sit on the inner circle).
28
+ - **Center readout** (`hasReadout`): A centered readout showing the
29
+ measured rate of turn (label `ROT`, unit `DEG/min` by default).
30
+ - **Color priority**: Uses `priority` to select regular or enhanced color
31
+ palette; `rotPortStarboard` colors the track bar and needle by turn
32
+ direction.
33
+
34
+ ## Usage Guidelines
35
+
36
+ - Set `rateOfTurnDegreesPerMinute` to the current sensor value in degrees
37
+ per minute (the maritime/AIS convention). Sign controls direction
38
+ (positive = starboard / clockwise).
39
+ - Tune `rotDotAnimationFactor` to amplify the dot animation independently
40
+ of the physical value (default `18` ≈ 1 rpm at 20°/min).
41
+ - In bar mode, `barStartAngle` and `barEndAngle` define the static arc
42
+ span (0° = 12 o'clock, clockwise).
43
+ - Change `watchCircleType` to match the surrounding instrument ring style
44
+ (e.g. `triple` for compass contexts).
45
+
46
+ ## Properties
47
+
48
+ | Property | Attribute | Type | Default | Description |
49
+ | --- | --- | --- | --- | --- |
50
+ | rateOfTurnDegreesPerMinute | rateOfTurnDegreesPerMinute | `number \| undefined` | | Measured rate of turn in degrees per minute (positive = starboard). When `undefined`, the legacy `rotationsPerMinute` value is used. |
51
+ | rotDotAnimationFactor | rotDotAnimationFactor | `number` | `18` | Visual amplification applied to the spinning dot animation. Default `18` keeps the legacy visual feel (≈1 rpm at 20°/min). |
52
+ | rotationsPerMinute | rotationsPerMinute | `number` | `0` | Legacy visual input, read only while `rateOfTurnDegreesPerMinute` is unset: the dot ring's spin in rotations per minute; the track bar ignores it. A measured rate of turn goes in `rateOfTurnDegreesPerMinute`. |
53
+ | rotType | rotType | `RotType` | | |
54
+ | rotPosition | rotPosition | `RotPosition` | | |
55
+ | priority | priority | `Priority` | | |
56
+ | barStartAngle | barStartAngle | `number` | `0` | |
57
+ | barEndAngle | barEndAngle | `number` | `30` | |
58
+ | watchCircleType | watchCircleType | `WatchCircleType` | | |
59
+ | rotPortStarboard | rotPortStarboard | `boolean` | `false` | |
60
+ | rotAtZeroDeadband | rotAtZeroDeadband | `number` | `ROT_ZERO_DEADBAND_DEG` | |
61
+ | hasTrackBar | hasTrackBar | `boolean` | `false` | When `true`, shows a bar in the ring band from the twelve o'clock position to the measured rate of turn, with a needle marker at its end and sector tickmarks. Pairs with `watchCircleType="double"` for the banded face — or `"triple"` when `rotPosition` is `innerCircle`, so the dots get their inner track too. Driven by `rateOfTurnDegreesPerMinute` only. |
62
+ | rotMaxValue | rotMaxValue | `number` | `60` | Bar-extent reference value in **degrees per minute**: the track bar reaches ±`rotArcExtent` when the measured ROT equals ±`rotMaxValue`. Default `60` aligns with ES-TRIN 2025/1 Art. 3.02. Available when `hasTrackBar==true`. |
63
+ | rotArcExtent | rotArcExtent | `number` | `60` | Arc extent of the track bar in degrees per direction. Default `60`. Available when `hasTrackBar==true`. |
64
+ | hasReadout | hasReadout | `boolean` | `false` | When `true`, shows a centered `<obc-readout>` with the measured rate of turn. Shows a dash while `rateOfTurnDegreesPerMinute` is unset. |
65
+ | label | label | `string` | `'ROT'` | Readout label. Default `ROT`. Available when `hasReadout==true`. |
66
+ | unit | unit | `string` | `'DEG/min'` | Readout unit. Default `DEG/min`. Available when `hasReadout==true`. |
67
+ | fractionDigits | fractionDigits | `number` | `0` | Number of fraction digits shown in the readout. Default `0`. Available when `hasReadout==true`. |
68
+
69
+ ## Events
70
+
71
+ None.
72
+
73
+ ## Slots
74
+
75
+ None.
76
+
77
+ ## Stories
78
+
79
+ - [Dots](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--dots)
80
+ - [Dots Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--dots-enhanced)
81
+ - [Dots Inner Circle](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--dots-inner-circle)
82
+ - [Bar](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--bar)
83
+ - [Bar Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--bar-enhanced)
84
+ - [Bar Enhanced Inner Circle Port Starboard](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--bar-enhanced-inner-circle-port-starboard)
85
+ - [Bar Enhanced Inner Circle Port Starboard Port](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--bar-enhanced-inner-circle-port-starboard-port)
86
+ - [With Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--with-readout)
87
+ - [With Track Bar](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--with-track-bar)
88
+ - [With Track Bar Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--with-track-bar-enhanced)
89
+ - [With Track Bar Port Starboard](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--with-track-bar-port-starboard)
90
+ - [Demo](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--demo)
91
+ - [Rate Of Turn Degrees Per Minute](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn--rate-of-turn-degrees-per-minute)
92
+
93
+ ## See also
94
+
95
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)