@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,103 @@
1
+ # `<obc-card>`
2
+
3
+ A flexible container component for grouping related content and actions.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-sections-card--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/card/card.ts)
6
+
7
+ `<obc-card>` – A flexible container component for grouping related content and actions.
8
+
9
+ The card component visually separates content from the surrounding UI, providing a distinct surface for information, controls, or interactive elements. It can be used as a static section or as an interactive element that opens a dialog for additional details or actions.
10
+
11
+ ---
12
+
13
+ ## Features
14
+ - **Standard Card:** Renders as a simple section with a header (title slot) and content area. Use for grouping information or controls.
15
+ - **Dialog Mode:** When `hasDialog` is set, the card becomes clickable and opens a modal dialog anchored to the card. The dialog displays additional content and a title, with an optional auto-dismiss countdown.
16
+ - **Dialog Auto-Dismiss:** The dialog can automatically close after a configurable timeout (`dialogTimeOutSeconds`). A visible countdown indicator appears for the last portion of the dialog's visibility (`dialogVisibleTimerSeconds`).
17
+ - **User Activity Reset:** Dialog timeout resets on user activity (mouse, keyboard, or touch), ensuring dialogs don't close while the user is interacting.
18
+ - **Header Actions:** In dialog mode, a close button is provided in the dialog header, with a progress indicator during countdown.
19
+
20
+ ---
21
+
22
+ ## Usage Guidelines
23
+ - Use `<obc-card>` to visually group related content, such as summaries, settings, or preview information.
24
+ - Enable `hasDialog` when you want to provide additional details or actions in a modal overlay, without navigating away from the main context.
25
+ - The dialog is ideal for secondary information, quick edits, or contextual actions that should not disrupt the main workflow.
26
+ - Avoid placing critical or persistent information only in the dialog, as it may be dismissed automatically.
27
+ - **TODO(designer):** Confirm recommended use cases for dialog mode vs. regular card, and any specific design constraints for dialog content.
28
+
29
+ ---
30
+
31
+ ## Slots
32
+ | Slot Name | Renders When... | Purpose |
33
+ |------------------|-------------------------|----------------------------------------------------|
34
+ | `title` | `showTitle` is true | Main card header/title. |
35
+ | (default) | Always | Main card content area. |
36
+ | `dialog-title` | `hasDialog` is true | Title/header for the dialog overlay. |
37
+ | `dialog-content` | `hasDialog` is true | Content area for the dialog overlay. |
38
+
39
+ ---
40
+
41
+ ## Properties
42
+ - `showTitle` (boolean): Controls whether the title header is rendered. (Default: true)
43
+ - `hasDialog` (boolean): Enables dialog mode. When true, the card acts as a button and opens a modal dialog on click. (Default: false)
44
+ - `dialogTimeOutSeconds` (number): Total time in seconds before the dialog auto-closes. Use `0` to disable auto-close. (Default: 20)
45
+ - `dialogVisibleTimerSeconds` (number): Duration in seconds for which the countdown indicator is shown before auto-dismiss. (Default: 10)
46
+ - The countdown indicator appears for the last `dialogVisibleTimerSeconds` seconds of the dialog's lifetime.
47
+ - User activity resets the dialog timer, preventing premature dismissal.
48
+
49
+ ---
50
+
51
+ ## Best Practices & Constraints
52
+ - The dialog overlay is anchored to the card and overlays the main content.
53
+ - Only use dialog mode for supplemental or transient information.
54
+ - Ensure dialog content is concise and actionable, as dialogs may auto-dismiss.
55
+ - The close button in the dialog header allows manual dismissal at any time.
56
+ - **TODO(designer):** Specify if there are recommended minimum/maximum content lengths or layout constraints for dialog content.
57
+
58
+ ---
59
+
60
+ ## Example:
61
+ ```html
62
+ <obc-card hasDialog>
63
+ <div slot="title">Settings</div>
64
+ <div>Summary content here</div>
65
+ <div slot="dialog-title">Edit Settings</div>
66
+ <div slot="dialog-content">Dialog details and actions</div>
67
+ </obc-card>
68
+ ```
69
+
70
+ ## Properties
71
+
72
+ | Property | Attribute | Type | Default | Description |
73
+ | --- | --- | --- | --- | --- |
74
+ | showTitle | | `boolean` | `true` | |
75
+ | hasDialog | hasDialog | `boolean` | `false` | Enables dialog mode. When true, the card acts as a button and opens a modal dialog on click. When `hasDialog` is false, the card is a static container. When true, clicking the card opens a modal dialog overlay, displaying content from the `dialog-title` and `dialog-content` slots. |
76
+ | dialogTimeOutSeconds | dialogTimeOutSeconds | `number` | `20` | Total time in seconds before the dialog auto-closes. Use `0` to disable auto-close. When greater than zero, the dialog closes after this duration unless reset by user activity. The countdown indicator appears for the last `dialogVisibleTimerSeconds` seconds. Available when `hasDialog==true`. |
77
+ | dialogVisibleTimerSeconds | dialogVisibleTimerSeconds | `number` | `10` | Duration in seconds for which the countdown indicator is shown before auto-dismiss. The countdown indicator is visible for the last `dialogVisibleTimerSeconds` seconds of the dialog's lifetime when auto-close is enabled. User activity resets the timer. Available when `hasDialog==true`. |
78
+ | dialog | | `HTMLDialogElement` | | |
79
+
80
+ ## Events
81
+
82
+ None.
83
+
84
+ ## Slots
85
+
86
+ | Slot | Description |
87
+ | --- | --- |
88
+ | title | Card header/title slot. |
89
+ | (default) | Default slot for main card content. |
90
+ | dialog-title | Dialog overlay header/title (shown when `hasDialog` is true). |
91
+ | dialog-content | Dialog overlay content (shown when `hasDialog` is true). |
92
+
93
+ ## Stories
94
+
95
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-card--regular)
96
+ - [With Dialog](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-card--with-dialog)
97
+ - [With Dialog No Autoclose](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-card--with-dialog-no-autoclose)
98
+ - [With Dialog Short Timeout](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-card--with-dialog-short-timeout)
99
+ - [No Title](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-card--no-title)
100
+
101
+ ## See also
102
+
103
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,103 @@
1
+ # `<obc-chart-object-vessel-button>`
2
+
3
+ Vessel marker button/flat visual with heading, speed/turn indicators, and optional metadata labels.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-chart-object-vessel-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/chart-object-vessel-button/chart-object-vessel-button.ts)
6
+
7
+ `<obc-chart-object-vessel-button>` - Vessel marker button/flat visual with heading, speed/turn indicators, and optional metadata labels.
8
+
9
+ ## Overview
10
+ Use this component to render a vessel-shaped marker with configurable states and optional text badges.
11
+ Keywords/synonyms: vessel marker, chart object button, heading marker, target symbol.
12
+
13
+ ## Features/Variants
14
+ - `type` (default `flat`): `flat`, `button`, `flat-large`, `large`, `flat-speed-rot`, `button-speed-rot`.
15
+ - `state` (default `enabled`): `enabled`, `active`, `disabled`, `caution`, `warning`, `alarm`.
16
+ - `selected` (default `false`): toggles selection frame.
17
+ - `heading` (default `0`): rotates visible wrapper.
18
+ - `speedIndicator` (default `two`): `stopped`, `one`, `two`, `three`, `anchored`.
19
+ - `turnRate` (default `0`): contributes to turn-rate arc shape when speed/turn variants are used.
20
+ - `course` + `courseArrowPx`: renders optional course arrow line with provided height.
21
+ - `ownShipIndicator` (default `false`): renders cross-line indicator overlay.
22
+ - `vesselImage` + `vesselImageSize`: renders preset vessel image or slotted fallback.
23
+ - `number` and `name`: show optional text chips with overridable slots.
24
+ - TODO(designer): Confirm intended interaction differences between `button` and `flat` families.
25
+
26
+ ## Usage Guidelines
27
+ - Use `button`/`large`/`button-speed-rot` when the marker should behave like a button element.
28
+ - Use `flat` variants for non-button rendering where semantic button behavior is not required.
29
+ - Provide either `vesselImage` or `vessel-image` slot content for custom imagery.
30
+
31
+ ## Slots/Content
32
+ - Default slot: Primary vessel icon.
33
+ - `silhouette`: Optional secondary vessel silhouette icon.
34
+ - `number`: Optional content for the number badge.
35
+ - `name`: Optional content for the name badge.
36
+ - `vessel-image`: Optional vessel image content used when `vesselImage` is not set.
37
+
38
+ ## Events
39
+ This component does not emit custom events.
40
+
41
+ ## Best Practices
42
+ - Keep `heading` and `course` values in degrees from the same source to avoid visual drift.
43
+ - Use `speedIndicator` and `turnRate` together only with speed/turn-capable `type` variants.
44
+
45
+ ## Example
46
+ ```html
47
+ <obc-chart-object-vessel-button type="button" state="enabled" selected>
48
+ <obi-placeholder></obi-placeholder>
49
+ <obi-placeholder slot="silhouette"></obi-placeholder>
50
+ </obc-chart-object-vessel-button>
51
+ ```
52
+
53
+ ## Properties
54
+
55
+ | Property | Attribute | Type | Default | Description |
56
+ | --- | --- | --- | --- | --- |
57
+ | heading | heading | `number` | `0` | Heading in degrees |
58
+ | course | course | `number` | `0` | Course over ground in degrees Available when `courseArrowPx!=undefined`. |
59
+ | speedIndicator | speedIndicator | `SpeedIndicator` | | Available when `type in [ButtonSpeedRot, FlatSpeedRot]`. |
60
+ | turnRate | turnRate | `number` | `0` | Available when `type in [ButtonSpeedRot, FlatSpeedRot]`. |
61
+ | number | number | `number \| undefined` | `undefined` | |
62
+ | name | name | `string \| undefined` | `undefined` | |
63
+ | state | state | `State` | | |
64
+ | type | type | `Type` | | |
65
+ | selected | selected | `boolean` | `false` | |
66
+ | courseArrowPx | courseArrowPx | `number \| undefined` | `undefined` | |
67
+ | ownShipIndicator | ownShipIndicator | `boolean` | `false` | |
68
+ | vesselImage | vesselImage | `VesselImage \| null` | `null` | |
69
+ | vesselImageSize | vesselImageSize | `number` | `80` | |
70
+
71
+ ## Events
72
+
73
+ None.
74
+
75
+ ## Slots
76
+
77
+ | Slot | Description |
78
+ | --- | --- |
79
+ | (default) | Primary vessel icon. |
80
+ | silhouette | Optional secondary vessel silhouette icon. |
81
+ | number | Optional content for the number badge. |
82
+ | name | Optional content for the name badge. |
83
+ | vessel-image | Optional vessel image content used when `vesselImage` is not set. |
84
+
85
+ ## Stories
86
+
87
+ - [Flat](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--flat)
88
+ - [Flat Placeholder](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--flat-placeholder)
89
+ - [Flat Active](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--flat-active)
90
+ - [Flat Selected](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--flat-selected)
91
+ - [Flat Alarm](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--flat-alarm)
92
+ - [Button](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--button)
93
+ - [Button Selected](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--button-selected)
94
+ - [Button Alarm](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--button-alarm)
95
+ - [Flat Large](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--flat-large)
96
+ - [Flat Large Alarm](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--flat-large-alarm)
97
+ - [Large](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--large)
98
+ - [Large Alarm](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--large-alarm)
99
+ - [Flat Speed Rot](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--flat-speed-rot)
100
+ - [Button Speed Rot](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--button-speed-rot)
101
+ - [Speed Rot Cog](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--speed-rot-cog)
102
+ - [Cross Line](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--cross-line)
103
+ - [Button Animated](https://openbridge-next-storybook.web.app/?path=/story/ar-chart-object-vessel-button--button-animated)
@@ -0,0 +1,35 @@
1
+ # `<obc-chat-message>`
2
+
3
+ A single chat message bubble with optional name and date header.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-chat-chat-message--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/chat-message/chat-message.ts)
6
+
7
+ `<obc-chat-message>` – A single chat message bubble with optional name and date header.
8
+
9
+ ## Properties
10
+
11
+ | Property | Attribute | Type | Default | Description |
12
+ | --- | --- | --- | --- | --- |
13
+ | name | name | `string` | | Available when `showName==true`. |
14
+ | showName | showName | `boolean` | `false` | |
15
+ | date | | `Date` | | Available when `showDate==true`. |
16
+ | showDate | showDate | `boolean` | `false` | |
17
+ | position | position | `ObcChatMessagePosition` | | |
18
+ | dateFormatter | | `(date: Date) => string` | | Available when `showDate==true`. |
19
+ | self | self | `boolean` | `false` | |
20
+
21
+ ## Events
22
+
23
+ None.
24
+
25
+ ## Slots
26
+
27
+ | Slot | Description |
28
+ | --- | --- |
29
+ | (default) | The message content (body of the chat bubble). |
30
+
31
+ ## Stories
32
+
33
+ - [Self](https://openbridge-next-storybook.web.app/?path=/story/ui-components-chat-chat-message--self)
34
+ - [Other](https://openbridge-next-storybook.web.app/?path=/story/ui-components-chat-chat-message--other)
35
+ - [Chats](https://openbridge-next-storybook.web.app/?path=/story/ui-components-chat-chat-message--chats)
@@ -0,0 +1,104 @@
1
+ # `<obc-check-button>`
2
+
3
+ A versatile **state‑toggle component** used to represent persistent settings (on/off, enabled/disabled, selected/unselected).
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-selection-controls-and-switches-check-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/check-button/check-button.ts)
6
+
7
+ `<obc-check-button>` – A versatile **state‑toggle component** used to represent
8
+ persistent settings (on/off, enabled/disabled, selected/unselected). It is
9
+ **not** intended for transient command actions such as “Send”, “Save”, or
10
+ navigation – use a standard `<button>` or action component for those.
11
+
12
+ The element supports two visual variants, both exposing the same checked /
13
+ unchecked semantics:
14
+
15
+ ### Regular (toggle button)
16
+ * Entire surface changes color when checked.
17
+ * Optional single icon (via `icon` slot) is *identical* in both states; the
18
+ button’s styling conveys the difference.
19
+ * Ideal for equipment controls, system modes, feature enable/disable, etc.
20
+
21
+ ### Checkbox (icon‑swap)
22
+ * Renders a familiar checkbox frame but allows *custom* icons for checked and
23
+ unchecked states (`checked-icon` / `unchecked-icon` slots). Falls back to
24
+ built‑in checkbox icons when none supplied.
25
+ * Useful for semantic pairs such as microphone on/off, volume mute/unmute,
26
+ communication link active/inactive, etc.
27
+
28
+ ## Difference from `<obc-checkbox>`
29
+ `<obc-checkbox>` is a classic form control with a fixed check/mixed visual and
30
+ built‑in change events. `<obc-check-button>` focuses on *state indication*
31
+ and leaves business logic to the host via the `check-button-click` event, plus
32
+ offers width, icon, and full customization options.
33
+
34
+ ## Features
35
+ * **Two Variants** – `regular` & `checkbox` (see above).
36
+ * **Checkbox Appearance** – Optional `checkboxAppearance` mode for updated visuals.
37
+ * **Icon Support** – Single icon (regular) or paired icons (checkbox).
38
+ * **Width Control** – `fullWidth` (hug content vs. expand) and `width` for a
39
+ fixed size when `fullWidth` is true.
40
+ * **State API** – `checked`, `disabled`, and `check-button-click` event.
41
+ * **Accessibility** – Uses `aria-pressed` (regular) or `aria-checked` with
42
+ `role="checkbox"` (checkbox) so assistive tech announces state correctly.
43
+
44
+ ## Usage Guidelines
45
+ 1. Prefer **regular** when a solid background change is the clearest cue and
46
+ the meaning of the state does not rely on an icon transformation.
47
+ 2. Choose **checkbox** when the *icon itself* conveys the before/after state
48
+ (e.g., microphone on or off). Provide both icons for maximum clarity.
49
+ 3. Group independent toggles freely; for mutually exclusive choices use radio
50
+ buttons or segmented controls instead.
51
+ 4. Keep labels concise. For icon‑only checkbox buttons supply an
52
+ `aria-label`.
53
+
54
+ ## Slots
55
+ | Slot Name | When Rendered | Purpose |
56
+ | -------------- | ----------------------------------------- | ------------------------------------ |
57
+ | (default) | Always | Button label text/content |
58
+ | icon | type="regular" & showIcon | Icon before label (same for both states) |
59
+ | checked-icon | type="checkbox" & hasCheckedIcon | Custom icon for *checked* state |
60
+ | unchecked-icon | type="checkbox" & hasUncheckedIcon | Custom icon for *unchecked* state |
61
+
62
+ ## Events
63
+ * `check-button-click` – Fired after user toggles the control. Detail:
64
+ `{ checked: boolean, type: 'regular' | 'checkbox' }`.
65
+
66
+ ## Properties
67
+
68
+ | Property | Attribute | Type | Default | Description |
69
+ | --- | --- | --- | --- | --- |
70
+ | type | type | `CheckButtonType` | `'regular'` | Visual style and toggle behaviour: `regular` (default) is a standard button with an optional icon and label, `checkbox` is a checkbox-style toggle with checked and unchecked icons. |
71
+ | checked | checked | `boolean` | `false` | Whether the button is currently checked (selected/on). When clicked, this state toggles and the `check-button-click` event is fired. |
72
+ | disabled | disabled | `boolean` | `false` | Disables the button, preventing user interaction and applying disabled styling. |
73
+ | fullWidth | fullWidth | `boolean` | `false` | If false, button width adapts to its content (fit-content). If true, uses the `width` property (if set) or expands to 100% of parent. |
74
+ | width | width | `string` | `''` | Specific width for the button (e.g., "200px", "10rem"). Only applies when `fullWidth` is true. Available when `fullWidth==true`. |
75
+ | showIcon | showIcon | `boolean` | `false` | Whether to show the icon in regular mode (icon slot). Ignored in checkbox mode. Available when `type==regular`. |
76
+ | hasCheckedIcon | hasCheckedIcon | `boolean` | `false` | If true, uses the `checked-icon` slot for the checked state in checkbox mode. Otherwise, uses the default checked icon. Available when `type==checkbox`. |
77
+ | hasUncheckedIcon | hasUncheckedIcon | `boolean` | `false` | If true, uses the `unchecked-icon` slot for the unchecked state in checkbox mode. Otherwise, uses the default unchecked icon. Available when `type==checkbox`. |
78
+ | checkboxAppearance | checkbox-appearance | `CheckButtonCheckboxAppearance` | `'default'` | Optional appearance mode for checkbox type. Keep `default` for existing behavior. Use `updated` for the new checkbox visuals. Available when `type==checkbox`. |
79
+
80
+ ## Events
81
+
82
+ | Event | Type | Description |
83
+ | --- | --- | --- |
84
+ | check-button-click | `CustomEvent<{checked: boolean, type: string}>` | Fired after the user toggles the control. |
85
+
86
+ ## Slots
87
+
88
+ | Slot | Description |
89
+ | --- | --- |
90
+ | (default) | Default slot for button label/content |
91
+ | icon | Icon before label (regular mode, if showIcon is true) |
92
+ | checked-icon | Custom icon for checked state (checkbox mode) |
93
+ | unchecked-icon | Custom icon for unchecked state (checkbox mode) |
94
+
95
+ ## Stories
96
+
97
+ - [Checkbox](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-check-button--checkbox)
98
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-check-button--regular)
99
+ - [Regular No Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-check-button--regular-no-icon)
100
+ - [Hug Text](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-check-button--hug-text)
101
+ - [Full Width](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-check-button--full-width)
102
+ - [Custom Width](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-check-button--custom-width)
103
+ - [Custom Checked Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-check-button--custom-checked-icon)
104
+ - [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-check-button--disabled)
@@ -0,0 +1,95 @@
1
+ # `<obc-checkbox-item>`
2
+
3
+ A list row that pairs `<obc-checkbox>` with a label, an optional description, and hierarchy affordances for nested lists.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-selection-controls-and-switches-checkbox-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/checkbox-item/checkbox-item.ts)
6
+
7
+ `<obc-checkbox-item>` – A list row that pairs `<obc-checkbox>` with a label,
8
+ an optional description, and hierarchy affordances for nested lists.
9
+
10
+ ## Overview
11
+ The row is the touch target: clicking anywhere on it toggles the checkbox,
12
+ except on the chevron button, which only asks to expand or collapse. Depth
13
+ is a number (`level`); the row indents itself so a flat sequence of rows
14
+ reads as a tree. `<obc-checkbox-list>` builds on this to hide the rows
15
+ under a collapsed parent.
16
+
17
+ ## Features
18
+ - Three statuses: `unchecked`, `checked`, `mixed`.
19
+ - `touch-target` or `visual-target` hover treatment.
20
+ - `level` indentation: level 1 reserves the chevron slot, each further
21
+ level adds a spacer.
22
+ - `expandable` rows show a chevron button that fires `expand-toggle`; the
23
+ host owns `expanded`.
24
+ - Optional `description` line under the label.
25
+ - Forwards `aria-describedby` to the inner checkbox.
26
+
27
+ ## Usage Guidelines
28
+ - Keep `status` as the source of truth; update it from the `change` event.
29
+ - Set `expanded` in response to `expand-toggle` — the row never flips it
30
+ itself, so a parent (or `<obc-checkbox-list>`) can veto or persist it.
31
+ - Use `level` 0 for a plain list; start at 1 when any row in the list is
32
+ expandable so chevrons and checkboxes line up.
33
+ - Prefer `hoverStyle="touch-target"` for standard list behaviour.
34
+
35
+ ## Accessibility
36
+ The checkbox and the chevron are separate controls in the natural tab
37
+ order. The chevron is a native button named by the row's label, with the
38
+ state in `aria-expanded`, following the WAI-ARIA checkbox and disclosure
39
+ button patterns.
40
+
41
+ ## Example
42
+ ```html
43
+ <obc-checkbox-item
44
+ level="1"
45
+ expandable
46
+ expanded
47
+ status="mixed"
48
+ label="Reports"
49
+ ></obc-checkbox-item>
50
+ <obc-checkbox-item
51
+ level="2"
52
+ status="checked"
53
+ label="Monthly"
54
+ description="Sent on the 1st"
55
+ ></obc-checkbox-item>
56
+ ```
57
+
58
+ ## Properties
59
+
60
+ | Property | Attribute | Type | Default | Description |
61
+ | --- | --- | --- | --- | --- |
62
+ | status | status | `CheckboxStatus` | | Checkbox status: `unchecked`, `checked` or `mixed`. |
63
+ | state | state | `ObcCheckboxItemState` | | Item state: `enabled` or `disabled`. |
64
+ | disabled | disabled | `boolean` | `false` | Disables the row and the inner checkbox. |
65
+ | focusable | | `boolean` | `true` | Whether the row's checkbox is in the tab order. `obc-context-menu-input` manages this as a roving tabindex (one item focusable at a time); a standalone row stays tabbable. |
66
+ | label | label | `string` | `''` | Text label; also the accessible name of the checkbox and the chevron button, so it must not be empty. |
67
+ | description | description | `string` | `''` | Secondary line under the label; hidden when empty. |
68
+ | level | level | `number` | `0` | Depth in a nested list. 0 is a plain row; 1 reserves the chevron slot; each level above 1 adds a spacer. |
69
+ | expandable | expandable | `boolean` | `false` | Shows the chevron button that fires `expand-toggle`. |
70
+ | expanded | expanded | `boolean` | `false` | Whether the row's children are shown; drives the chevron direction and `aria-expanded`. Available when `expandable==true`. |
71
+ | hoverStyle | hoverStyle | `ObcCheckboxItemHoverStyle` | | Which box shows hover and focus: the whole row (`touch-target`) or the checkbox (`visual-target`). |
72
+ | ariaDescribedBy | aria-describedby | `string` | `''` | Forwarded to the inner checkbox as `aria-describedby`. |
73
+
74
+ ## Events
75
+
76
+ | Event | Type | Description |
77
+ | --- | --- | --- |
78
+ | change | `ObcCheckboxChangeEvent` | Emitted when status changes. |
79
+ | expand-toggle | `ObcCheckboxItemExpandToggleEvent` | Emitted when the chevron is activated; detail is the next `expanded` value. Bubbles and is composed. |
80
+
81
+ ## Slots
82
+
83
+ None.
84
+
85
+ ## Stories
86
+
87
+ - [Playground](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-item--playground)
88
+ - [Nested](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-item--nested)
89
+ - [Expandable](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-item--expandable)
90
+ - [Level 2](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-item--level-2)
91
+ - [With Description](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-item--with-description)
92
+
93
+ ## See also
94
+
95
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,73 @@
1
+ # `<obc-checkbox-list>`
2
+
3
+ A vertical list of `<obc-checkbox-item>` rows that collapses the rows under a closed parent.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-selection-controls-and-switches-checkbox-list--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/checkbox-list/checkbox-list.ts)
6
+
7
+ `<obc-checkbox-list>` – A vertical list of `<obc-checkbox-item>` rows that
8
+ collapses the rows under a closed parent.
9
+
10
+ ## Overview
11
+ Rows are slotted flat, in document order; the tree is read from each row's
12
+ `level`. When an expandable row is collapsed, the list sets `hidden` on
13
+ every following row with a greater level until a row of equal or smaller
14
+ level. The list also applies its `hoverStyle` to every row so a list reads
15
+ as one surface.
16
+
17
+ ## Features
18
+ - Flat markup, level-driven hierarchy — no nesting of elements required.
19
+ - Handles `expand-toggle`: sets the row's `expanded` and recomputes.
20
+ - Reacts to `expandable`, `expanded` and `level` changes made from outside.
21
+ - `hoverStyle` forwarded to slotted rows, including rows added later.
22
+
23
+ ## Usage Guidelines
24
+ - Start levels at 1 when any row is expandable so chevrons and checkboxes
25
+ align; use level 0 for a plain list.
26
+ - The list owns the `hidden` attribute of its rows; do not bind it yourself.
27
+ - Selection stays per row: listen to each row's `change`.
28
+
29
+ ## Accessibility
30
+ The host is the `role="group"`; rows are ordinary checkboxes and buttons in
31
+ the natural tab order and hidden rows leave it. This is a group of
32
+ checkboxes with disclosure buttons, not a tree widget, so there is no
33
+ roving tabindex. Name the group with `aria-label` or `aria-labelledby` on
34
+ the host.
35
+
36
+ ## Example
37
+ ```html
38
+ <obc-checkbox-list aria-label="Report types">
39
+ <obc-checkbox-item level="1" expandable expanded status="mixed" label="Reports"></obc-checkbox-item>
40
+ <obc-checkbox-item level="2" status="checked" label="Monthly"></obc-checkbox-item>
41
+ <obc-checkbox-item level="2" label="Quarterly"></obc-checkbox-item>
42
+ <obc-checkbox-item level="1" expandable label="Archive"></obc-checkbox-item>
43
+ </obc-checkbox-list>
44
+ ```
45
+
46
+ ## Properties
47
+
48
+ | Property | Attribute | Type | Default | Description |
49
+ | --- | --- | --- | --- | --- |
50
+ | hoverStyle | hoverStyle | `ObcCheckboxItemHoverStyle` | | Hover treatment applied to every slotted row: `touch-target` or `visual-target`. |
51
+
52
+ ## Events
53
+
54
+ None.
55
+
56
+ ## Slots
57
+
58
+ | Slot | Description |
59
+ | --- | --- |
60
+ | (default) | `obc-checkbox-item` rows in document order; hierarchy comes from each row's `level`. |
61
+
62
+ ## Stories
63
+
64
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-list--regular)
65
+ - [Nested](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-list--nested)
66
+ - [Regular Visual Target](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-list--regular-visual-target)
67
+ - [Nested Visual Target](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-list--nested-visual-target)
68
+ - [With Descriptions](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-list--with-descriptions)
69
+ - [Deep Nesting](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox-list--deep-nesting): `level` is not capped at 2: each level above 1 adds one more spacer.
70
+
71
+ ## See also
72
+
73
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,97 @@
1
+ # `<obc-checkbox>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-selection-controls-and-switches-checkbox--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/checkbox/checkbox.ts)
6
+
7
+ ## Overview
8
+ `<obc-checkbox>` is a selectable input for binary and mixed states.
9
+ It supports `checked`, `unchecked`, and `mixed` (indeterminate) status
10
+ and is intended for forms, lists, and settings.
11
+
12
+ Keywords: checkbox, check box, tickbox, tri-state, indeterminate, select all.
13
+
14
+ ## Features
15
+ - **Three‑state support:** Allows `checked`, `unchecked`, and `mixed` (indeterminate) status for parent/child
16
+ selection scenarios.
17
+ - **Visual state support:** `state` allows `enabled` and `loading` visual behavior.
18
+ - **Disabled state:** Can be set to non‑interactive, visually indicating its disabled status.
19
+ - **Accessible:** Implements proper ARIA role and keyboard interaction (Space **or** Enter toggles state).
20
+ - **Touch target:** Uses a minimum 48x48 interactive area.
21
+ - **Icon display:** Uses `<obi-check-google>` for checked and `<obi-check-mixed>` for mixed states.
22
+ - **Loading display:** Uses an indeterminate spinner when `state="loading"`.
23
+
24
+ ## Variants
25
+ - **Unchecked** (default): Empty checkbox.
26
+ - **Checked:** Filled checkbox with a check‑mark icon.
27
+ - **Mixed:** Partially filled checkbox with a mixed icon.
28
+ - **Loading:** Spinner is shown and interaction is locked.
29
+
30
+ ## Usage Guidelines
31
+ - Use `obc-checkbox` for independent binary choices or when representing a group selection with a mixed state.
32
+ - For mutually exclusive choices, use a radio group instead.
33
+ - The **mixed** state should be applied by application logic; users should not toggle into or out of it directly.
34
+ - Use the `disabled` property to prevent interaction and visually indicate the option is unavailable.
35
+ - Use `state="loading"` for transient async state while preserving layout.
36
+ - If there is no visible external label, provide an `aria-label` or `aria-labelledby`.
37
+
38
+ ## Properties and Attributes
39
+ - `status` (`checked` | `unchecked` | `mixed`) · *default:* `unchecked` – Controls the checkbox status.
40
+ - `state` (`enabled` | `loading`) · *default:* `enabled` – Controls the checkbox visual state.
41
+ - `disabled` (`boolean`) · Disables interaction and applies disabled styling.
42
+ - `aria-label` (`string`) · Accessible name for screen readers.
43
+ - `aria-labelledby` (`string`) · ID reference to an external visible label.
44
+ - `aria-describedby` (`string`) · ID reference(s) for supplementary description.
45
+
46
+ ## Events
47
+ - `change` – Fired when the checkbox status changes.
48
+ **detail:** `{ status, disabled }`
49
+ - `disabled` – Fired when the `disabled` property changes.
50
+ **detail:** `{ status, disabled }`
51
+
52
+ ## Example
53
+ ```html
54
+ <obc-checkbox
55
+ status="mixed"
56
+ state="enabled"
57
+ aria-label="Select all items"
58
+ ></obc-checkbox>
59
+ ```
60
+
61
+ ## Keyboard
62
+ [APG Checkbox](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/): `Space`
63
+ toggles it, and `mixed` is announced as a mixed state. `Enter` toggles it as
64
+ well, which the pattern does not ask for, so a checkbox inside a menu answers
65
+ the menu's keys.
66
+
67
+ Left out: nothing.
68
+
69
+ ## Properties
70
+
71
+ | Property | Attribute | Type | Default | Description |
72
+ | --- | --- | --- | --- | --- |
73
+ | status | status | `CheckboxStatus` | | Controls the checkbox status: `checked`, `unchecked`, or `mixed` (indeterminate). Defaults to `unchecked`. |
74
+ | state | state | `CheckboxState` | | Controls the visual state: `enabled` or `loading`. Defaults to `enabled`. |
75
+ | disabled | disabled | `boolean` | `false` | Disables the checkbox and prevents user interaction. When `true`, the checkbox is visually styled as disabled and does not respond to user input. Interaction is also locked when `state === loading`. |
76
+ | hasHoverEffects | | `boolean` | `true` | Internal: controls hover effects on the checkbox. Used by wrapper components such as `obc-checkbox-item`. |
77
+ | focusable | | `boolean` | `true` | Whether the checkbox is in the tab order. A menu that owns a roving tabindex manages this through `obc-checkbox-item`; a standalone checkbox stays tabbable. |
78
+
79
+ ## Events
80
+
81
+ | Event | Type | Description |
82
+ | --- | --- | --- |
83
+ | disabled | `ObcCheckboxChangeEvent` | Emitted when the disabled state changes. |
84
+ | change | `ObcCheckboxChangeEvent` | Emitted when the status changes. |
85
+
86
+ ## Slots
87
+
88
+ | Slot | Description |
89
+ | --- | --- |
90
+ | (default) | No named slots. |
91
+
92
+ ## Stories
93
+
94
+ - [Playground](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox--playground)
95
+ - [Enabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox--enabled)
96
+ - [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox--disabled)
97
+ - [Loading](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-checkbox--loading)
@@ -0,0 +1,36 @@
1
+ # `<obc-circular-progress>`
2
+
3
+ Ring-shaped progress indicator.
4
+
5
+ Lifecycle: stable. [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/building-blocks/circular-progress/circular-progress.ts)
6
+
7
+ `<obc-circular-progress>` — Ring-shaped progress indicator.
8
+
9
+ Draws a single SVG circle whose stroke shows progress. Three modes:
10
+ `determinate` sweeps the arc to `value`, `indeterminate` spins a fixed arc
11
+ for work of unknown length, and `progressiveIndeterminate` spins an arc
12
+ whose length grows with `value` — for work that reports rough progress.
13
+
14
+ ## Usage Guidelines
15
+
16
+ A building block rather than a page-level control: `obc-progress-bar`,
17
+ `obc-progress-button` and the automation buttons compose it. `viewBoxSize`,
18
+ `strokeWidth` and `padding` let a host match the ring to its own geometry.
19
+
20
+ ## Properties
21
+
22
+ | Property | Attribute | Type | Default | Description |
23
+ | --- | --- | --- | --- | --- |
24
+ | mode | mode | `CircularProgressMode` | | Progress mode: `determinate`, `indeterminate` or `progressive-indeterminate`. |
25
+ | value | value | `number` | `0` | Progress in percent, clamped to 0–100. Available when `mode!=indeterminate`. |
26
+ | strokeWidth | strokeWidth | `number` | `4` | Ring stroke width in viewBox units. |
27
+ | viewBoxSize | viewBoxSize | `number` | `42` | Side of the square viewBox the ring is drawn in. |
28
+ | padding | padding | `number` | `0` | Extra inset in viewBox units, shrinking the ring inside its box. |
29
+
30
+ ## Events
31
+
32
+ None.
33
+
34
+ ## Slots
35
+
36
+ None.