@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,66 @@
1
+ # `<obc-date-item>`
2
+
3
+ A calendar date cell component for displaying a single day, with optional event indicators and details.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-calendar-date-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/date-item/date-item.ts)
6
+
7
+ `<obc-date-item>` – A calendar date cell component for displaying a single day, with optional event indicators and details.
8
+
9
+ ## Properties
10
+
11
+ | Property | Attribute | Type | Default | Description |
12
+ | --- | --- | --- | --- | --- |
13
+ | size | size | | `DateItemSize.Small` | Size of the date item: `small` (default) shows only the date and the event dots, `large` shows titles and descriptions for as many events as its height fits and aggregates the rest into a count. |
14
+ | disabled | disabled | `boolean` | `false` | Whether the date item is disabled. When true, the button is visually muted and not interactive. |
15
+ | events | | `DateItemEvent[]` | `[]` | Array of events to display on this date. In small size, shows an event dot indicator. In large size, displays event details using obc-event-item components. |
16
+ | eventCount | eventCount | `number` | `0` | Number of events to display from the events array. When 0, shows all events. In small size, always caps at 2 dots regardless of this value. |
17
+ | isToday | isToday | `boolean` | `false` | Whether the date item represents today. When true, displays the "Today" label (in large size) and uses amplified styling. |
18
+ | checked | checked | `boolean` | `false` | Whether the date item is checked/selected. When true, uses selected styling (blue filled background). |
19
+ | date | date | | `1` | The numeric day of the month to display (1–31). Values outside this range are clamped. |
20
+
21
+ ## Events
22
+
23
+ | Event | Type | Description |
24
+ | --- | --- | --- |
25
+ | date-click | `CustomEvent<{date: number, events: DateItemEvent[], isToday: boolean, checked: boolean}>` | Fired when the date item is clicked. |
26
+ | event-click | `CustomEvent<{title: string, startTime: string, endTime: string}>` | Passed on from the event items in the cell when one is clicked, with its title, start and end time. |
27
+
28
+ ## Slots
29
+
30
+ | Slot | Description |
31
+ | --- | --- |
32
+ | (default) | No slots. All content is provided via properties. |
33
+
34
+ ## Stories
35
+
36
+ - [Large](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large)
37
+ - [Large With Event](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-with-event)
38
+ - [Large With Multiple Events](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-with-multiple-events)
39
+ - [Large With Double Line Event](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-with-double-line-event)
40
+ - [Large With Aggregated Event](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-with-aggregated-event)
41
+ - [Large With Color Coded Event](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-with-color-coded-event)
42
+ - [Large With Disabled Event](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-with-disabled-event)
43
+ - [Small Is Today](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--small-is-today)
44
+ - [Today](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--today)
45
+ - [Checked](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--checked)
46
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--regular)
47
+ - [Disabled Is Today](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--disabled-is-today)
48
+ - [Disabled Checked](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--disabled-checked)
49
+ - [Disabled Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--disabled-regular)
50
+ - [Large Today Disabled](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-today-disabled)
51
+ - [Large Checked Disabled](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-checked-disabled)
52
+ - [Large Regular Disabled](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-regular-disabled)
53
+ - [With Event](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--with-event)
54
+ - [Checked With Event](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--checked-with-event)
55
+ - [Regular With Event](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--regular-with-event)
56
+ - [With Multiple Events](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--with-multiple-events)
57
+ - [Test Event Count](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--test-event-count)
58
+ - [Large Today Enabled](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-today-enabled)
59
+ - [Large Regular Enabled](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-regular-enabled)
60
+ - [Large Regular Checked](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-regular-checked)
61
+ - [Large Today Checked](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--large-today-checked)
62
+ - [Auto Aggregation](https://openbridge-next-storybook.web.app/?path=/story/application-components-calendar-date-item--auto-aggregation)
63
+
64
+ ## See also
65
+
66
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,69 @@
1
+ # `<obc-depth-actual>`
2
+
3
+ draught and depth below the keel in cross section.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-depth-actual--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/depth-actual/depth-actual.ts)
6
+
7
+ `<obc-depth-actual>` — draught and depth below the keel in cross section.
8
+
9
+ A vessel sits on the waterline with its keel on the draft line; the seabed
10
+ pattern starts at the depth line. The gauge pill on the right fills from
11
+ the surface to the draft (dark) and to the depth (light) and marks the
12
+ depth with a pill. The three design ranges (Shallow 25, Regular 100, Deep
13
+ 1000) also decide how much air shows above the waterline and how large
14
+ the vessel is drawn; `autoRange` steps between them as the depth changes.
15
+
16
+ With `showLabels` the box grows by the design's label spacing on every
17
+ side so the label column fits inside it, the way the external scale
18
+ reserves its label band; without labels the box is the bare frame margin.
19
+
20
+ ## Properties
21
+
22
+ | Property | Attribute | Type | Default | Description |
23
+ | --- | --- | --- | --- | --- |
24
+ | depth | depth | `number` | `0` | Depth below the surface. |
25
+ | draft | draft | `number` | `0` | Draught, drawn as the vessel's keel line. |
26
+ | advice | advice | `AdviceInput[] \| undefined` | | Advice zones on the gauge, in depth units. |
27
+ | vesselScale | vesselScale | `number` | `1` | Factor on the range's vessel size. Available when `vesselImage!=''`. |
28
+ | vesselImage | vesselImage | `VesselImage` | | Fore-view silhouette. |
29
+ | vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). |
30
+ | priority | priority | `Priority` | | `enhanced` draws the fills and lines in the enhanced palette. |
31
+ | showLabels | | `boolean` | `true` | Label the scale ends and the primary ladder beside the frame. |
32
+ | ranges | | `readonly DepthRange[]` | `DEPTH_RANGES` | Range ladder shared with `obc-depth`. |
33
+ | maxDepth | maxDepth | `number \| undefined` | `undefined` | Explicit scale maximum; wins over `autoRange`. |
34
+ | autoRange | autoRange | `boolean` | `false` | Steps the ladder with `depth`. |
35
+ | primaryTickmarkInterval | primaryTickmarkInterval | `number \| undefined` | `undefined` | Overrides the range's primary tick interval. |
36
+ | secondaryTickmarkInterval | secondaryTickmarkInterval | `number \| undefined` | `undefined` | Overrides the range's secondary tick interval. |
37
+ | instrumentRange | instrumentRange | `number \| undefined` | | Alias of `maxDepth`, kept for existing consumers. |
38
+ | range | | `DepthRange` | | The range in use. |
39
+ | advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
40
+ | adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
41
+ | adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
42
+
43
+ ## Events
44
+
45
+ None.
46
+
47
+ ## Slots
48
+
49
+ None.
50
+
51
+ ## Stories
52
+
53
+ - [Regular (0 to 100)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--default)
54
+ - [Regular Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--enhanced)
55
+ - [Shallow (0 to 25)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--shallow)
56
+ - [Shallow Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--shallow-enhanced)
57
+ - [Deep (0 to 1000)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--deep)
58
+ - [Deep Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--deep-enhanced)
59
+ - [Advice](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--advice)
60
+ - [Advice Icons](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--advice-icons): The icon column sits past the label column, and the box grows for it.
61
+ - [Custom Range (0 to 50, off the ladder)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--custom-range): A `maxDepth` that is not a rung takes the layout of the nearest rung above it and a 1-2-5 tick ladder; the tick intervals can still be set explicitly.
62
+ - [Auto Range (Live)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--auto-range-live): The depth sweeps from 5 m to 400 m and back; `autoRange` climbs the ladder as soon as the depth exceeds a rung and steps down one rung at a time once it is well inside the smaller one.
63
+ - [With Custom Vessel Image](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth-actual--with-custom-vessel-image)
64
+
65
+ ## See also
66
+
67
+ - [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
68
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
69
+ - [Migration Guide 2.1 to 2.2](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-1-to-2-2.md)
@@ -0,0 +1,31 @@
1
+ # `<obc-depth-indicator>`
2
+
3
+ A compact depth indicator with outline and filled variants.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-depth-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/depth-indicator/depth-indicator.ts)
6
+
7
+ `<obc-depth-indicator>` – A compact depth indicator with outline and filled variants.
8
+
9
+ Renders a framed mini line indicator driven by pre-normalized values (0–1),
10
+ with an optional filled area above the line.
11
+
12
+ ## Properties
13
+
14
+ | Property | Attribute | Type | Default | Description |
15
+ | --- | --- | --- | --- | --- |
16
+ | variant | variant | `ObcDepthIndicatorVariant` | | |
17
+ | values | values | `number[]` | `[]` | |
18
+
19
+ ## Events
20
+
21
+ None.
22
+
23
+ ## Slots
24
+
25
+ None.
26
+
27
+ ## Stories
28
+
29
+ - [Outline](https://openbridge-next-storybook.web.app/?path=/story/indicators-depth-indicator--outline)
30
+ - [Filled](https://openbridge-next-storybook.web.app/?path=/story/indicators-depth-indicator--filled)
31
+ - [Streaming Demo](https://openbridge-next-storybook.web.app/?path=/story/indicators-depth-indicator--streaming-demo)
@@ -0,0 +1,43 @@
1
+ # `<obc-depth-top-band>`
2
+
3
+ the strip above a depth chart, slotted into the chart's `top-scale` slot: either the label row of the x range (min, 0, max) or the frame band with the vessel silhouette placed over the now-line.
4
+
5
+ Lifecycle: experimental. [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/depth/depth-top-band.ts)
6
+
7
+ `<obc-depth-top-band>` — the strip above a depth chart, slotted into the
8
+ chart's `top-scale` slot: either the label row of the x range (min, 0, max)
9
+ or the frame band with the vessel silhouette placed over the now-line.
10
+
11
+ The hosting chart pushes the x range, its width and its horizontal paddings
12
+ the way it does for any slotted scale, and reserves the band's thickness
13
+ from the `scale-dimensions-changed` event. The band draws no bar and no
14
+ ladder, so the chart keeps drawing its own full frame underneath it.
15
+
16
+ ## Properties
17
+
18
+ | Property | Attribute | Type | Default | Description |
19
+ | --- | --- | --- | --- | --- |
20
+ | type | type | `DepthTopBandType` | | `labels` (24 px row) or `vessel` (48 px band). |
21
+ | now | now | `number \| undefined` | `undefined` | x value the vessel sits over; the range's end when unset. Available when `type==vessel`. |
22
+ | vesselImage | vesselImage | `VesselImage` | | Side-view silhouette. Available when `type==vessel`. |
23
+ | vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). Available when `type==vessel`. |
24
+ | minValue | minValue | `number` | `0` | Start of the x range; pushed by the hosting chart. |
25
+ | maxValue | maxValue | `number` | `0` | End of the x range; pushed by the hosting chart. |
26
+ | paddingLeft | paddingLeft | `number` | `0` | Plot inset from the left edge; pushed by the hosting chart. |
27
+ | paddingRight | paddingRight | `number` | `0` | Plot inset from the right edge; pushed by the hosting chart. |
28
+ | width | width | `number` | `384` | The chart's width in px; pushed by the hosting chart. |
29
+ | fixedAspectRatio | fixedAspectRatio | `boolean` | `false` | Whether the paddings arrive in `scaleReferenceSize` units rather than px; pushed by the hosting chart. |
30
+ | scaleReferenceSize | scaleReferenceSize | `number` | `384` | Reference width the paddings are expressed in under `fixedAspectRatio`; pushed by the hosting chart. Available when `fixedAspectRatio==true`. |
31
+ | hasBar | | `boolean` | `false` | A slotted element without a bar or a ladder counts as invisible to the chart's border plugin, which then keeps its own top edge under the band. |
32
+ | hasScale | | `boolean` | `false` | |
33
+ | thickness | | `number` | | Height of the band in px for the measured width. |
34
+
35
+ ## Events
36
+
37
+ | Event | Type | Description |
38
+ | --- | --- | --- |
39
+ | scale-dimensions-changed | `CustomEvent` | Reports `{side: 'top', thickness}` so the chart reserves the band's height. It bubbles to the chart slot the band sits in and does not leave the shadow root around it. |
40
+
41
+ ## Slots
42
+
43
+ None.
@@ -0,0 +1,94 @@
1
+ # `<obc-depth>`
2
+
3
+ history and current depth on a chart.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-depth--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/depth/depth.ts)
6
+
7
+ `<obc-depth>` — history and current depth on a chart.
8
+
9
+ A square instrument built on `obc-gauge-trend`: the depth axis runs
10
+ downward from 0 at the top, the right band carries the condensed scale and
11
+ the current-value dot, and the chart shows the history as a line with the
12
+ echo return band under it.
13
+
14
+ ## Types (`type`)
15
+ - `regular` — history only; now is the right edge.
16
+ - `prediction` — now in the middle with a now-line and dot, predicted depths
17
+ ahead as a dashed line, and the x range labelled above the frame.
18
+ - `scanned` — history astern as a dotted past track, the scanned seabed
19
+ ahead with the water column filled up to the surface and cut off at the
20
+ scan range, and a dotted line at the predicted depth beyond it.
21
+
22
+ ## Range
23
+ `ranges` is the ladder of range steps (default: the design's 25 / 100 / 1000);
24
+ `maxDepth` picks one explicitly, `autoRange` climbs and descends it with
25
+ hysteresis as the data changes.
26
+
27
+ `regular` history takes `{x, value}` samples on a time axis (`x` as epoch
28
+ ms, ISO string, Date or Temporal) or `{label, value}` on a category axis;
29
+ `prediction` and `scan` are `{x, value}` with `x` a distance along the
30
+ track, negative astern.
31
+
32
+ ## Properties
33
+
34
+ | Property | Attribute | Type | Default | Description |
35
+ | --- | --- | --- | --- | --- |
36
+ | type | type | `DepthType` | | `regular`, `prediction` or `scanned`. |
37
+ | data | | `DepthDataItem[]` | `[]` | History samples; `echoValue` draws the echo band under the line. |
38
+ | prediction | | `ChartLineDataItem[]` | `[]` | Predicted depths ahead, `x` a distance from the vessel. Available when `type==prediction`. |
39
+ | scan | | `ChartLineDataItem[]` | `[]` | Scanned seabed ahead, `x` a distance from the vessel. Available when `type==scanned`. |
40
+ | scanRange | scanRange | `number \| undefined` | `undefined` | Sonar range in the distance unit, which is also the slant range that cuts the water column off; the last scan sample when unset. Available when `type==scanned`. |
41
+ | predictedDepth | predictedDepth | `number \| undefined` | `undefined` | Depth drawn as a dotted line beyond the scan range. Available when `type==scanned`. |
42
+ | value | value | `number \| undefined` | `undefined` | Current depth; the last history sample when unset. |
43
+ | hasValueLine | hasValueLine | `boolean` | `false` | Draws the current depth as a line across the chart. |
44
+ | now | now | `number` | `0` | x of the now-line; 0 for `prediction` and `scanned`. Available when `type!=regular`. |
45
+ | xAxis | | `ChartLineXAxisConfig \| undefined` | `undefined` | Pinned x range; defaults to the history's extent for `regular` (so now is the right edge), ±200 for `prediction` and −100…250 for `scanned`. |
46
+ | ranges | | `readonly DepthRange[]` | `DEPTH_RANGES` | Range ladder. |
47
+ | maxDepth | maxDepth | `number \| undefined` | `undefined` | Explicit scale maximum; wins over `autoRange`. |
48
+ | autoRange | autoRange | `boolean` | `false` | Steps the ladder with the data. |
49
+ | primaryTickmarkInterval | primaryTickmarkInterval | `number \| undefined` | `undefined` | Overrides the range's primary tick interval. Available when `hasScale==true`. |
50
+ | secondaryTickmarkInterval | secondaryTickmarkInterval | `number \| undefined` | `undefined` | Overrides the range's secondary tick interval. Available when `hasScale==true`. |
51
+ | hasScale | hasScale | `boolean` | `false` | Condensed tick ladder in the right band (Figma style "Condenced"). |
52
+ | showVessel | showVessel | `boolean` | `false` | Frame band with the vessel silhouette above the chart (Figma style "Vessel scale"). |
53
+ | vesselImage | vesselImage | `VesselImage` | | Side-view silhouette in the vessel band. Available when `showVessel==true`. |
54
+ | vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). Available when `showVessel==true`. |
55
+ | hasAdvice | hasAdvice | `boolean` | `false` | Advice overlays on the right band. |
56
+ | advice | | `AdviceInput[] \| undefined` | | Advice zones in depth units. Available when `hasAdvice==true`. |
57
+ | priority | priority | `Priority` | | `enhanced` draws the live series in the enhanced palette. |
58
+ | state | state | `InstrumentState` | | Instrument state, passed to the chart and the scale. |
59
+ | range | | `DepthRange` | | The range in use. |
60
+ | currentDepth | | `number \| undefined` | | Current depth: the property, else the last history sample. |
61
+ | advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
62
+ | adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
63
+ | adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
64
+
65
+ ## Events
66
+
67
+ None.
68
+
69
+ ## Slots
70
+
71
+ None.
72
+
73
+ ## Stories
74
+
75
+ - [Regular (History, Dot in the Band)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--default)
76
+ - [Regular Condensed](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--regular-condensed)
77
+ - [Regular Vessel Scale](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--regular-vessel-scale)
78
+ - [With Custom Vessel Image](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--with-custom-vessel-image)
79
+ - [Prediction (Now-line, Dashed Prediction, Range Labels)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--prediction)
80
+ - [Prediction Condensed](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--prediction-condensed)
81
+ - [Prediction Vessel Scale](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--prediction-vessel-scale)
82
+ - [Scanned (Past Track, Scan Range, Predicted Depth)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--scanned)
83
+ - [Scanned Condensed](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--scanned-condensed)
84
+ - [Scanned Vessel Scale](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--scanned-vessel-scale)
85
+ - [Actual Line (Current Depth Across the Chart)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--actual-line)
86
+ - [Advice (Caution Zone on the Scale)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--advice)
87
+ - [Regular Priority (Grey Palette)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--regular-priority)
88
+ - [Shallow Range (0 to 25 m)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--shallow-range)
89
+ - [Auto Range (Live)](https://openbridge-next-storybook.web.app/?path=/story/instruments-depth--auto-range-live): The bottom drops from 20 m to 400 m and back over a minute; `autoRange` climbs the ladder as soon as the data exceeds a rung and steps down one rung at a time once the data is well inside it.
90
+
91
+ ## See also
92
+
93
+ - [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
94
+ - [Migration Guide 2.1 to 2.2](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-1-to-2-2.md)
@@ -0,0 +1,71 @@
1
+ # `<obc-diagnostic-button>`
2
+
3
+ The top bar's diagnostic button: the asterisk and the number of diagnostics, selected while its menu is showing.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-diagnostic-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/diagnostic-button/diagnostic-button.ts)
6
+
7
+ `<obc-diagnostic-button>` – The top bar's diagnostic button: the asterisk
8
+ and the number of diagnostics, selected while its menu is showing.
9
+
10
+ The diagnostic counterpart of `obc-alert-button`: `obc-alert-button-item`
11
+ with the diagnostic asterisk in its icon slot and a name of its own. It
12
+ opens `obc-diagnostic-menu`, as the alert button opens the alert menu.
13
+
14
+ ---
15
+
16
+ ## Features
17
+ - **Counter:** `nAlerts` is drawn next to the asterisk; 0 shows the
18
+ asterisk alone.
19
+ - **Activated:** `activated` draws the selected style while the diagnostic
20
+ menu is showing.
21
+ - **Name:** "Diagnostics, 3" is announced, and repeated when the count
22
+ changes; `aria-label` replaces it.
23
+
24
+ ---
25
+
26
+ ## Usage Guidelines
27
+ - Slot it into `obc-top-bar`'s `diagnostics` slot, after the alert button,
28
+ or place it in a toolbar on its own.
29
+ - Open the menu from `click` the way a bar button opens a menu: flip a
30
+ flag of your own, bind it to the menu's `open`, to `activated` and to
31
+ `aria-expanded`, and reset it on the menu's `close`.
32
+ - A native button, so Enter and Space activate it
33
+ ([APG button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/)).
34
+ Left out: nothing.
35
+ - **TODO(designer):** the design draws a six-armed asterisk with rounded
36
+ arms that is not in the icon library; the button draws
37
+ `obi-diagnostic-badge`, the sharp asterisk of the diagnostic alert icon,
38
+ until the icon is added (#1396).
39
+
40
+ ---
41
+
42
+ ## Example
43
+
44
+ ```html
45
+ <obc-diagnostic-button nAlerts="3" activated></obc-diagnostic-button>
46
+ ```
47
+
48
+ ## Properties
49
+
50
+ | Property | Attribute | Type | Default | Description |
51
+ | --- | --- | --- | --- | --- |
52
+ | nAlerts | nAlerts | `number` | `0` | Number of diagnostics, drawn as the counter; 0 shows the asterisk alone. |
53
+ | activated | activated | `boolean` | `false` | Draws the selected style while the diagnostic menu is showing; bind it to the flag that drives the menu's `open`. |
54
+ | ariaLabel | aria-label | `string \| null` | `null` | Accessible name forwarded to the inner `<button>`, mapped to the `aria-label` attribute; replaces the generated "Diagnostics, 3". `aria-labelledby` is not supported: ID references cannot cross the shadow boundary. |
55
+ | ariaExpanded | aria-expanded | `string \| null` | `null` | Whether the diagnostic menu is showing, forwarded to the inner `<button>` as `aria-expanded`; mapped to the `aria-expanded` attribute. Bind it with `activated`; left unset, the button announces no menu. |
56
+
57
+ ## Events
58
+
59
+ | Event | Type | Description |
60
+ | --- | --- | --- |
61
+ | click | | Fired when the button is clicked. |
62
+
63
+ ## Slots
64
+
65
+ None.
66
+
67
+ ## Stories
68
+
69
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-diagnostic-button--default)
70
+ - [Activated](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-diagnostic-button--activated): The selected style, for the button whose menu is showing.
71
+ - [No Diagnostics](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-diagnostic-button--no-diagnostics)
@@ -0,0 +1,88 @@
1
+ # `<obc-diagnostic-menu>`
2
+
3
+ The panel the diagnostic button opens: a titled list of diagnostics with an acknowledge-all and a list button.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-alerts-diagnostic-menu--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/diagnostic-menu/diagnostic-menu.ts)
6
+
7
+ `<obc-diagnostic-menu>` – The panel the diagnostic button opens: a titled
8
+ list of diagnostics with an acknowledge-all and a list button.
9
+
10
+ The diagnostic counterpart of `obc-alert-menu`, without its tabs and its
11
+ silence button: a title row, the slotted `obc-message-menu-item` rows in a
12
+ scrolling list with an empty state, and a footer with "ACK all visible" and
13
+ "Diagnostics list".
14
+
15
+ ---
16
+
17
+ ## Features
18
+ - **Title row:** `menuTitle`, "Diagnostics" when left empty.
19
+ - **Rows:** any number of `obc-message-menu-item` children; the list
20
+ scrolls, slides new rows into place and shows an empty state the
21
+ `empty-*` slots replace.
22
+ - **ACK all visible:** enabled by `canAckAll`; fires
23
+ `ack-all-visible-click` with the rows in view, as the alert menu does.
24
+ - **Diagnostics list:** `showDiagnosticListButton` shows the button that
25
+ fires `go-to-diagnostic-list-click` for the full list page.
26
+ - **Soft dismiss:** `softDismiss` and `open` close the menu on a click
27
+ outside or `Escape`, as every menu does.
28
+
29
+ ---
30
+
31
+ ## Usage Guidelines
32
+ - Open it from `obc-diagnostic-button`'s `click` with a flag of your own,
33
+ bound to `open` and to the button's `activated`, and reset on `close`.
34
+ - A row is acknowledged through its own `primary-action-click`; the footer
35
+ button reports every row in view at once.
36
+ - Position it yourself, under the top bar's diagnostic button.
37
+ - **TODO(designer):** the design draws an open-in-new glyph after
38
+ "Diagnostics list" and a 696 px card that hugs its rows; neither the
39
+ glyph nor a width token is in the library, so the button draws the
40
+ chevron of the alert menu's "Alerts" button and the card keeps the alert
41
+ menu's width and height (#1396).
42
+
43
+ ---
44
+
45
+ ## Example
46
+
47
+ ```html
48
+ <obc-diagnostic-menu canAckAll>
49
+ <obc-message-menu-item title="Simulate" description="Value is simulated" day="Yesterday" time="09:12:34" primaryActionLabel="Action" hasPrimaryIcon>
50
+ <obi-placeholder slot="primary-icon"></obi-placeholder>
51
+ </obc-message-menu-item>
52
+ </obc-diagnostic-menu>
53
+ ```
54
+
55
+ ## Properties
56
+
57
+ | Property | Attribute | Type | Default | Description |
58
+ | --- | --- | --- | --- | --- |
59
+ | softDismiss | softDismiss | `boolean` | `false` | Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click. Leave it off to show and hide the menu yourself. |
60
+ | open | open | `boolean` | `false` | Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`. Available when `softDismiss==true`. |
61
+ | menuTitle | menuTitle | `string` | `''` | Title of the menu; "Diagnostics" when left empty. |
62
+ | canAckAll | canAckAll | `boolean` | `false` | Enables the "ACK all visible" button; set it while a row in view can be acknowledged. Available when `showAckAllButton==true`. |
63
+ | showAckAllButton | | `boolean` | `true` | Shows the "ACK all visible" button in the footer. |
64
+ | showDiagnosticListButton | | `boolean` | `true` | Shows the "Diagnostics list" button in the footer. |
65
+
66
+ ## Events
67
+
68
+ | Event | Type | Description |
69
+ | --- | --- | --- |
70
+ | ack-all-visible-click | `ObcDiagnosticMenuAckAllVisibleClickEvent` | Fired when the "ACK all visible" button is clicked, with the rows in view. |
71
+ | go-to-diagnostic-list-click | `CustomEvent<void>` | Fired when the "Diagnostics list" button is clicked. |
72
+ | close | `CustomEvent<void>` | Fired when the menu closed on its own, from a click outside, `Escape`, or another menu opening. `open` is already `false` by the time it arrives; reset the flag you bind to `open` here, or the next click on the button finds it still set and asks a closed menu to close. |
73
+
74
+ ## Slots
75
+
76
+ | Slot | Description |
77
+ | --- | --- |
78
+ | (default) | The diagnostics as `obc-message-menu-item` rows. |
79
+ | empty-title | Title of the empty state, "No diagnostics" when left unfilled. |
80
+ | empty-description | Description of the empty state. |
81
+ | empty-icon | Icon of the empty state, the diagnostic asterisk when left unfilled. |
82
+
83
+ ## Stories
84
+
85
+ - [Regular](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-diagnostic-menu--regular)
86
+ - [Empty](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-diagnostic-menu--empty)
87
+ - [No Diagnostic List Button](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-diagnostic-menu--no-diagnostic-list-button)
88
+ - [Soft Dismiss From A Top Bar Button](https://openbridge-next-storybook.web.app/?path=/story/application-components-alerts-diagnostic-menu--soft-dismiss-from-a-top-bar-button): The menu opened from the top bar's diagnostic button, with the three bindings every soft-dismiss menu needs: a flag the app keeps, bound to `open` and to the button's `activated` and `aria-expanded`, flipped on the button's `click` and reset on `close`. A click outside closes the menu and reaches nothing else; the bar stays clickable.
@@ -0,0 +1,112 @@
1
+ # `<obc-digital-threeway-valve>`
2
+
3
+ three-way on/off valve for process diagrams, with one open/closed state per port.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-digital-threeway-valve--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/digital-threeway-valve/digital-threeway-valve.ts)
6
+
7
+ `<obc-digital-threeway-valve>` – three-way on/off valve for process
8
+ diagrams, with one open/closed state per port.
9
+
10
+ ## Features
11
+
12
+ - **Three ports:** `open1`, `open2` and `open3` open or close each port.
13
+ Ports are numbered from the side without a port: with `orientation`
14
+ `bottom`, port 1 is left, port 2 is the stem at the bottom and port 3 is
15
+ right. The numbering turns with the symbol.
16
+ - **Orientation:** `bottom` and `top` lay the valve on a horizontal pipe,
17
+ `left` and `right` on a vertical one; the value names the side the stem
18
+ points to.
19
+ - **Flow readout:** `flows` lists one readout row per flow, each with an
20
+ optional arrow direction and either a value with a unit (`%` when left out)
21
+ or a state, `{open}`, shown as `Open` or `Closed` after the arrow, or
22
+ after the on/off icon when there is no direction. Without flows the
23
+ readout shows `Open` or `Closed`.
24
+ - Badges, alert frame, progress and readout placement come from the shared
25
+ automation button base.
26
+
27
+ ## Usage Guidelines
28
+
29
+ Use where a valve directs flow between three pipes and each port is either
30
+ open or closed. With one port closed the symbol shows that port plugged;
31
+ with fewer than two ports open no flow can pass, and the valve shows as
32
+ closed. For a valve that opens its ports continuously use
33
+ `obc-analog-threeway-valve`; for a two-port valve use `obc-digital-valve`.
34
+
35
+ TODO(designer): no icon shows a single open port, so that case uses the
36
+ closed symbol.
37
+
38
+ ## Properties
39
+
40
+ | Property | Attribute | Type | Default | Description |
41
+ | --- | --- | --- | --- | --- |
42
+ | open1 | open1 | `boolean` | `false` | Opens port 1. |
43
+ | open2 | open2 | `boolean` | `false` | Opens port 2, the stem. |
44
+ | open3 | open3 | `boolean` | `false` | Opens port 3. |
45
+ | orientation | orientation | `ThreewayValveOrientation` | | Side the stem points to. |
46
+ | flows | | `ThreewayValveFlow[]` | `[]` | Readout rows, one per flow: an optional arrow direction with either a value and optional unit (default `%`) or `open` for an `Open`/`Closed` state. |
47
+ | variant | variant | `DigitalThreewayValveVariant` | | Visual style of the button surround. |
48
+ | extraReadouts | | `AutomationButtonReadoutStack[]` | | |
49
+ | icon | | `TemplateResult` | | |
50
+ | showReadoutStack | | `boolean` | `true` | |
51
+ | 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. |
52
+ | readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
53
+ | showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
54
+ | showStatusIcon | | `boolean` | `false` | |
55
+ | readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
56
+ | tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
57
+ | positioning | positioning | `AutomationButtonPositioning` | | |
58
+ | activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
59
+ | alert | alert | `boolean` | `false` | |
60
+ | alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
61
+ | alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
62
+ | alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
63
+ | alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
64
+ | showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
65
+ | showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
66
+ | progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
67
+ | progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
68
+ | progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
69
+ | badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
70
+ | badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
71
+ | badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
72
+ | badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
73
+ | 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. |
74
+ | 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. |
75
+ | badgeTopRight | | `HTMLElement[]` | | |
76
+ | badgeTopLeft | | `HTMLElement[]` | | |
77
+ | badgeBottomLeft | | `HTMLElement[]` | | |
78
+ | badgeBottomRight | | `HTMLElement[]` | | |
79
+
80
+ ## Events
81
+
82
+ | Event | Type | Description |
83
+ | --- | --- | --- |
84
+ | click | | Fired when the valve is clicked. |
85
+
86
+ ## Slots
87
+
88
+ | Slot | Description |
89
+ | --- | --- |
90
+ | badge-top-right | Content projected into the top-right badge position; overrides the badge `badgeLayout` puts in that corner. |
91
+ | badge-top-left | Content projected into the top-left badge position; overrides the badge `badgeLayout` puts in that corner. |
92
+ | badge-bottom-left | Content projected into the bottom-left badge position; overrides the badge `badgeLayout` puts in that corner. |
93
+ | badge-bottom-right | Content projected into the bottom-right badge position; overrides the badge `badgeLayout` puts in that corner. |
94
+
95
+ ## Stories
96
+
97
+ - [Open](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--open)
98
+ - [Open Explicit](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--open-explicit)
99
+ - [Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--closed)
100
+ - [Port 1 Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--port-1-closed)
101
+ - [Port 1 Explicit Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--port-1-explicit-closed)
102
+ - [Port 2 Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--port-2-closed)
103
+ - [Port 3 Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--port-3-closed)
104
+ - [Orientation Left](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--orientation-left)
105
+ - [Orientation Top](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--orientation-top)
106
+ - [Orientation Right](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--orientation-right)
107
+ - [With Value Flows](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--with-value-flows)
108
+ - [With Value Percentage Flows](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-threeway-valve--with-value-percentage-flows)
109
+
110
+ ## See also
111
+
112
+ - [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)