@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,137 @@
1
+ # `<obc-readout-block>`
2
+
3
+ the most atomic readout primitive: a single cap-height-aligned, width-reservable numeric segment (value / setpoint / advice).
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/building-blocks-readout-block--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/building-blocks/readout-block/readout-block.ts)
6
+
7
+ `<obc-readout-block>` – the most atomic readout primitive: a single
8
+ cap-height-aligned, width-reservable numeric segment (value / setpoint /
9
+ advice).
10
+
11
+ It renders one `obc-textbox` number with optional hinted leading zeros, a
12
+ reservable width, an optional leading marker icon (via the `icon` slot or the
13
+ role default), an optional trailing degree glyph, an `off`/unavailable text
14
+ state, per-block data-quality and an optional per-block alert frame.
15
+
16
+ Setting `valueType` to `text` renders `value` verbatim (e.g.
17
+ `"Auto"`) instead of a formatted number.
18
+
19
+ This is a building block used inside `obc-readout-list-item` (and, in a future
20
+ refactor, inside `obc-readout`); it is not normally used on its own. Colour is
21
+ inherited from the host context (the parent sets the role colour), so the
22
+ block stays neutral until placed.
23
+
24
+ ## Properties
25
+
26
+ | Property | Attribute | Type | Default | Description |
27
+ | --- | --- | --- | --- | --- |
28
+ | variant | variant | `ReadoutBlockVariant` | | Semantic variant (value / setpoint / advice). |
29
+ | value | value | `number \| string \| null` | `null` | The value; `null`/`undefined` renders a dash. A number by default, or text when `valueType` is `text`. |
30
+ | valueType | valueType | `ReadoutValueType` | | How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. |
31
+ | size | size | `ReadoutBlockSize` | | Density tier — icon size, gap, degree tier. |
32
+ | valueSize | valueSize | `ObcTextboxSize \| undefined` | | Resolved number-typography size. When unset it is derived from `size` (small→s, medium→m, large→l), so a parent that de-emphasises a block (e.g. a secondary setpoint) can pass a smaller size without changing the tier. |
33
+ | enhanced | enhanced | `boolean` | `false` | Accent (in-command) colour tone. |
34
+ | weight | weight | `ObcTextboxFontWeight` | | Number font weight (regular / semibold / bold); colour is independent. |
35
+ | hasDegree | hasDegree | `boolean` | `false` | Render the trailing cap-height degree glyph (`°`). |
36
+ | hasIcon | hasIcon | `boolean` | `false` | Show the leading marker-icon container (always on for setpoint/advice). |
37
+ | fractionDigits | fractionDigits | `number` | `0` | Number of fraction digits. Must be between 0 and 100 — the range `Number.prototype.toFixed` accepts; outside it throws a `RangeError`. A fractional count truncates (`2.7` → `2`). A count that never arrived (`NaN`, `null` or unset) renders the reading as the unavailable dash — formatting with a precision the author never chose would let a critical `0.4` pass for a healthy `0`. Available when `valueType==number`. |
38
+ | maxDigits | maxDigits | `number` | `0` | Integer digits to reserve / hint (independent of `fractionDigits`). Bounded before use: a fractional count truncates (`2.7` → `2`), anything above 100 — including `Infinity` — caps at 100, and a negative count reserves nothing. A count that never arrived (`NaN`, `null` or unset) renders the reading as the unavailable dash, consistent with `fractionDigits`. Available when `valueType==number`. |
39
+ | hintedZeros | hintedZeros | `boolean` | `false` | Render muted leading zeros filling the integer part to `maxDigits`. A negative value keeps them all — the sign is prepended and never consumes a zero (`maxDigits` 3: `12.3` → `012.3`, `-12.3` → `-012.3`) — so a negative reading is one character wider than a positive one unless `hasSignSpacer` reserves the sign column. An unavailable value renders dashes across the whole reserved width (`‒‒‒.‒`) instead of the short placeholder. Available when `valueType==number`. |
40
+ | hasSignSpacer | hasSignSpacer | `boolean` | `false` | Reserve a minus-sign column ahead of the digits: an invisible sign placeholder holds the column open while the value is non-negative and the real sign fills it when negative, so the width does not change across zero. Enable it on readouts whose value can go negative; all-positive readouts reserve nothing. Available when `valueType==number`. |
41
+ | spaceReserver | spaceReserver | `string \| undefined` | | Explicit longest string to reserve width for (e.g. `"0000.0"`). Combined with the `maxDigits`-derived reserve by taking whichever is wider, so it can never reserve less than the formatted value needs. |
42
+ | off | off | `boolean` | `false` | Render `offText` instead of a number (e.g. equipment powered down). |
43
+ | offText | offText | `string` | `'OFF'` | Text shown when `off` is true. |
44
+ | alignment | alignment | `ObcTextboxAlignment` | | Text alignment of the number within its reserved width. |
45
+ | category | category | `ReadoutAdviceCategory` | | Semantic category of an advice block — picks the default marker icon and the `active` styling. Only meaningful for `variant="advice"`. Available when `variant==advice`. |
46
+ | active | active | `boolean` | `false` | The advice is triggered: the marker swaps to its filled/status icon and the number takes the category's triggered styling (SemiBold for regular/optimal/eco, active text colour for the alert categories). Only meaningful for `variant="advice"`. Available when `variant==advice`. |
47
+ | dataQuality | dataQuality | `ReadoutBlockDataQuality \| undefined` | | Per-block measurement quality (outline chip). |
48
+ | alert | alert | `boolean \| AlertFrameConfig` | `false` | Per-block alert frame; nests inside any parent alert frame. |
49
+ | touching | touching | `boolean` | `false` | Setpoint focus (touch) state — only meaningful for `role="setpoint"`. |
50
+ | hidePhase | hidePhase | `ReadoutBlockHidePhase` | | Setpoint pop-up fade phase — only meaningful for `role="setpoint"`. |
51
+
52
+ ## Events
53
+
54
+ None.
55
+
56
+ ## Slots
57
+
58
+ | Slot | Description |
59
+ | --- | --- |
60
+ | icon | Replaces the role's default marker icon. |
61
+
62
+ ## CSS parts
63
+
64
+ | Part | Description |
65
+ | --- | --- |
66
+ | block | The block container (carries role / tone / data-quality). |
67
+ | block-content | The number + degree group. |
68
+ | block-text | The `obc-textbox` rendering the number. |
69
+ | block-icon | The leading marker-icon container. |
70
+ | degree | The trailing degree-glyph column. |
71
+
72
+ ## Stories
73
+
74
+ - [Playground](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--playground)
75
+ - [Variants](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--variants)
76
+ - [Sizes](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--sizes)
77
+ - [Tone](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--tone)
78
+ - [Weight](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--weight)
79
+ - [Degree](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--degree)
80
+ - [Off Text](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--off-text): `off` renders `offText` (default `"OFF"`) in place of the value.
81
+ - [Text Value](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--text-value): `valueType="text"` renders `value` verbatim instead of formatting it as a number — for readings that are states rather than quantities.
82
+
83
+ The numeric format options (`fractionDigits`, `maxDigits`, `hintedZeros`) are
84
+ ignored in this mode; an explicit `spaceReserver` still applies. Passing text
85
+ while `valueType` is `number` throws a `TypeError` rather than rendering
86
+ `NaN`, while a numeric-looking string such as `"12.4"` is accepted and parsed
87
+ so plain-HTML `value="12.4"` keeps working.
88
+ - [Hinted Zeros](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--hinted-zeros): Hinted zeros pad the integer part up to `maxDigits` as muted leading zeros.
89
+
90
+ A **negative** value keeps them all: the sign is prepended and never
91
+ consumes a zero (`maxDigits` 4: `12` → `0012`, `-12` → `-0012`), so a
92
+ negative reading is one character wider than a positive one. Where the
93
+ width must not change across zero, `hasSignSpacer` reserves a minus-sign
94
+ column: an invisible sign placeholder holds it open while the value is
95
+ non-negative and the real sign fills it when negative — the pair below
96
+ shares one width. The wider of an explicit `spaceReserver` and the
97
+ `maxDigits`-derived reserve always wins.
98
+ - [Sign Spacer](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--sign-spacer): The sign column without hinted zeros: `hasSignSpacer` reserves minus-sign width on any numeric block, so a value that crosses zero keeps its digits (and everything after them) in place. Works in every alignment — the placeholder is an invisible sign in the text flow, not only a wider reserve.
99
+ - [Max Digits And Fraction Digits](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--max-digits-and-fraction-digits): `maxDigits` reserves INTEGER digits only — independent of `fractionDigits` (the decimal point and fraction digits never count toward `maxDigits`).
100
+ - [Alignment](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--alignment)
101
+ - [Unavailable Values](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--unavailable-values): **Unavailable values — for design review.**
102
+
103
+ 1. **The plain placeholder is short.** `-.--` for `format: 000.00`:
104
+ `maxDigits` already reserves the width, so the dash sits at the right edge
105
+ of the reserve rather than spelling out every reserved digit position.
106
+ With **hinted zeros** the dashes fill the whole reserve instead
107
+ (`---.--`) — they stand in for the zeros that would otherwise mark those
108
+ positions.
109
+ 2. **The dash is digit-width.** It is U+2012 FIGURE DASH, not the ASCII
110
+ hyphen-minus. Measured in Noto Sans with tabular figures, a digit is
111
+ 13.02px and U+2012 is 13.02px, while U+002D is 7.02px — so with a hyphen
112
+ the placeholder's decimal point missed the reading's. `tabular-nums` does
113
+ not help here: it equalises figures with each other and leaves punctuation
114
+ untouched (measured identical with the feature on and off).
115
+ 3. **`NaN` and `±Infinity` count as unavailable.** They would otherwise print
116
+ the literal text `NaN` / `Infinity` in place of a reading. They are a
117
+ runtime data condition (sensor dropout, `0/0`, a bad parse) rather than a
118
+ programmer error, so they resolve to the dash rather than throwing.
119
+
120
+ 4. **A digit knob that never arrived dashes the reading too.** `NaN`,
121
+ `null` or `undefined` in `fractionDigits` / `maxDigits` is a runtime
122
+ failure of the writing system, and formatting with a default the author
123
+ never chose would let a critical `0.4` pass for a healthy `0`. Finite
124
+ out-of-range values are different: `fractionDigits` throws (programmer
125
+ error), `maxDigits` clamps (width-only).
126
+
127
+ An unavailable value is never zero-padded — the hinted rendering swaps to
128
+ the full-width dashes above, so nothing ever reads `000-.-` or `----Na.N`.
129
+ - [Data Quality](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--data-quality)
130
+ - [Alert](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--alert)
131
+ - [Advice Categories](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--advice-categories): Advice semantic categories (Figma 6.1 Readout-block-advice). Resting categories carry a neutral outline marker; `active` swaps in the filled / status icon: SemiBold + tinted diamond for regular / optimal / eco, the coloured IEC status icon + active text colour for the alert categories.
132
+ - [Marker Icon Sizes](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-readout-block--marker-icon-sizes): The marker icon follows the block's rendered number size, not the readout tier (Figma 6.1): a large-tier readout whose setpoint is de-emphasised to `s` carries the 16px arrow, and the emphasised `l` setpoint the 24px one.
133
+
134
+ ## See also
135
+
136
+ - [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
137
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,142 @@
1
+ # `<obc-readout-list-item>`
2
+
3
+ A compact, dense readout row for lists and tables.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-readout-list-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/readout-list-item/readout-list-item.ts)
6
+
7
+ `<obc-readout-list-item>` – A compact, dense readout row for lists and tables.
8
+
9
+ Renders a label, an optional source, an optional unit, and up to three
10
+ cap-height "readout building blocks" – advice, setpoint, and value – each a
11
+ fixed-width-reservable numeric segment. Dynamic data is passed as top-level
12
+ primitives (`value`, `setpoint`, `advice`, `label`, `unit`, `src`). Global
13
+ layout/format is configured via top-level props (`size`, `priority`,
14
+ `stacking`, `hasDegree`, `dataQuality`, `alert`, …) and per-block tweaks via one
15
+ object per block (`valueOptions`, `setpointOptions`, `adviceOptions`,
16
+ `unitOptions`, `srcOptions`).
17
+
18
+ ## Features
19
+ - **Building blocks:** value, optional setpoint, and optional advice segments,
20
+ each cap-height-aligned and able to reserve a stable width.
21
+ - **Sizes:** `small`, `medium`, `large` density scales.
22
+ - **Stacking:** `trailing-unit`, `leading-unit`, `leading-src`,
23
+ `leading-src-inline` placement.
24
+ - **Priority:** `regular`/`enhanced` colour emphasis; per-value `weight`
25
+ (`regular`/`semibold`/`bold`) is independent of colour.
26
+ - **Setpoint flip-flop:** swaps emphasis between value and setpoint as the
27
+ value reaches the setpoint.
28
+ - **Data quality:** `low-integrity`/`invalid` styling, combinable with `alert`.
29
+ - **Alert frame:** optional `alert` wrapper (caution/warning/alarm/level).
30
+ - **Clickable:** optionally rendered as a focusable button with `squared`,
31
+ `round-corners`, or `round` corners.
32
+ - **Formatting:** shared `fractionDigits`, width reservation via `maxDigits`
33
+ and per-segment `hintedZeros`; a `null` value renders a dash (`-`).
34
+ - **Text values:** `valueType="text"` renders `value` verbatim (e.g.
35
+ `"Thermo On"`) instead of formatting it as a number.
36
+
37
+ ## Usage Guidelines
38
+ Use for dense readout rows in lists/tables. Prefer `<obc-readout>` for rich
39
+ multi-segment instrument layouts, source pickers, or flyout behaviour.
40
+
41
+ ## Slots
42
+ | Slot Name | Renders When | Purpose |
43
+ |---------------|-------------------------------|------------------------------------------|
44
+ | leading-icon | `hasLeadingIcon` | Icon before the label. |
45
+ | value-icon | `valueOptions.hasIcon` | Icon before the value. |
46
+ | setpoint-icon | `hasSetpoint` | Overrides the default setpoint icon. |
47
+ | advice-icon | `hasAdvice` | Overrides the default advice icon. |
48
+
49
+ ## Properties
50
+
51
+ | Property | Attribute | Type | Default | Description |
52
+ | --- | --- | --- | --- | --- |
53
+ | label | label | `string \| undefined` | | |
54
+ | unit | unit | `string \| undefined` | | |
55
+ | src | src | `string \| undefined` | | |
56
+ | hasValue | | `boolean` | `true` | Layout switch: `false` renders a deliberately value-less (label-only) row that hugs its remaining parts. For a temporarily missing value keep `hasValue` and set `value` to `null` instead — the dash keeps the value block at full size, so the row does not shift when data arrives. |
57
+ | value | value | `number \| string \| null` | `null` | The value; `null` renders a dash. A number by default, or text when `valueType` is `text`. |
58
+ | valueType | valueType | `ReadoutValueType` | | How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. |
59
+ | off | off | `boolean` | `false` | Render the value as `offText` (e.g. equipment powered down). Affects the value only. |
60
+ | offText | offText | `string` | `'OFF'` | Text shown in place of the value when `off` is true. Available when `off==true`. |
61
+ | hasSetpoint | hasSetpoint | `boolean` | `false` | |
62
+ | setpoint | setpoint | `number \| undefined` | | Available when `hasSetpoint==true`. |
63
+ | hasAdvice | hasAdvice | `boolean` | `false` | |
64
+ | advice | advice | `number \| undefined` | | Available when `hasAdvice==true`. |
65
+ | size | size | `ReadoutListItemSize \| undefined` | | |
66
+ | priority | priority | `ReadoutListItemPriority \| undefined` | | |
67
+ | stacking | stacking | `ReadoutListItemStacking \| undefined` | | |
68
+ | clickable | clickable | `boolean \| ReadoutListItemClickable` | `false` | |
69
+ | hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | |
70
+ | hasDegree | hasDegree | `boolean` | `false` | |
71
+ | hasDegreeSpacer | hasDegreeSpacer | `boolean` | `false` | |
72
+ | fractionDigits | fractionDigits | `number` | `0` | Also formats the numeric setpoint / advice blocks, which stay numeric even when the value is text. Must be between 0 and 100 — the range `Number.prototype.toFixed` accepts; outside it throws a `RangeError`. A fractional count truncates (`2.7` → `2`). A count that never arrived (`NaN`, `null` or unset) renders the reading as the unavailable dash — formatting with a precision the author never chose would let a critical `0.4` pass for a healthy `0`. Available when `valueType==number \|\| hasSetpoint==true \|\| hasAdvice==true`. |
73
+ | maxDigits | maxDigits | `number` | `0` | Also formats the numeric setpoint / advice blocks, which stay numeric even when the value is text. Bounded before use: a fractional count truncates (`2.7` → `2`), anything above 100 — including `Infinity` — caps at 100, and a negative count reserves nothing. A count that never arrived (`NaN`, `null` or unset) renders the reading as the unavailable dash, consistent with `fractionDigits`. Available when `valueType==number \|\| hasSetpoint==true \|\| hasAdvice==true`. |
74
+ | dataQuality | dataQuality | `ReadoutListItemDataQuality \| undefined` | | |
75
+ | alert | alert | `boolean \| AlertFrameConfig` | `false` | |
76
+ | valueOptions | valueOptions | `ReadoutValueOptions \| undefined` | | |
77
+ | setpointOptions | setpointOptions | `ReadoutSetpointOptions \| undefined` | | |
78
+ | adviceOptions | adviceOptions | `ReadoutAdviceOptions \| undefined` | | |
79
+ | labelOptions | labelOptions | `ReadoutLabelOptions \| undefined` | | |
80
+ | unitOptions | unitOptions | `ReadoutReserverOptions \| undefined` | | |
81
+ | srcOptions | srcOptions | `ReadoutSrcOptions \| undefined` | | |
82
+ | showDebugOverlay | showDebugOverlay | `boolean` | `false` | Development aid: outline the readout building blocks (red), the degree columns (blue) and the degree spacer (green) so reserver widths / alignment are visible. Off by default. |
83
+
84
+ ## Events
85
+
86
+ | Event | Type | Description |
87
+ | --- | --- | --- |
88
+ | click | | Fired when the item is activated. Only fired when `clickable` is set; otherwise the item renders as a non-interactive `<div>`. |
89
+
90
+ ## Slots
91
+
92
+ | Slot | Description |
93
+ | --- | --- |
94
+ | leading-icon | Icon before the label. |
95
+ | value-icon | Icon before the value. |
96
+ | setpoint-icon | Overrides the default setpoint icon. |
97
+ | advice-icon | Overrides the default advice icon. |
98
+
99
+ ## Stories
100
+
101
+ - [Playground](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--playground)
102
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--off)
103
+ - [Text Value](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--text-value)
104
+ - [Sizes](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--sizes)
105
+ - [Trailing Unit](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--trailing-unit)
106
+ - [Leading Unit](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--leading-unit)
107
+ - [Leading Src](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--leading-src)
108
+ - [Leading Src Inline](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--leading-src-inline): `leading-src-inline` keeps the source on the label's line, so a row with a source stays one line high (Figma 46596:102880 pairs an `s` label with the `xs` source; the dense default label stays `xs` unless `labelOptions.size` says otherwise).
109
+ - [Setpoint Flip Flop](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-flip-flop)
110
+ - [States](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--states)
111
+ - [Setpoint Pop Up](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-pop-up)
112
+ - [Setpoint Touch](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-touch)
113
+ - [Setpoint Flip Flop Animated](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-flip-flop-animated)
114
+ - [Setpoint Pop Up Animated](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-pop-up-animated)
115
+ - [Setpoint Always Visible Animated](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-always-visible-animated)
116
+ - [Setpoint Equal Size Animated](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-equal-size-animated)
117
+ - [Synced With Azimuth Thruster (Interactive)](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--synced-with-azimuth-thruster): **Synced with an instrument (Azimuth Thruster)** — replays the exact setpoint adjustment flow from `Building Blocks/Setpoint → Setpoint Azimuth Thruster Flow`, with two `obc-readout-list-item`s wired to the same demo state below the instrument.
118
+
119
+ These are **two independent components driven by one shared animation** (synced
120
+ manually, for this demo only): the `obc-azimuth-thruster` instrument and the
121
+ `obc-readout-list-item` rows. `obc-azimuth-thruster-labeled` pairs the thruster
122
+ with the older `obc-readout`; this shows the new readout list item mirroring the
123
+ same angle/thrust adjustment — the setpoint triangle is highlighted while
124
+ touching, the setpoint value slides during "move", and the value catches up
125
+ (with the flip-flop emphasis swap) on "confirm".
126
+
127
+ Press "Play", or use the buttons, to run reset → initiate → move → confirm on
128
+ both at once.
129
+ - [Data Quality](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--data-quality)
130
+ - [Per Block State](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--per-block-state)
131
+ - [Clickable](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--clickable)
132
+ - [Alarm](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--alarm)
133
+ - [Value Alert Frame](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--value-alert-frame)
134
+ - [Stacked Value Frames](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--stacked-value-frames)
135
+ - [Missing Parts](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--missing-parts)
136
+ - [Column Alignment](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--column-alignment)
137
+ - [Setpoint Equal Size](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-equal-size): Figma 6.1 "Equal size": value and setpoint always share the primary size — the fourth interaction beside primary-secondary (`always-visible`), flip-flop and pop-up. Static in both states; only flip-flop / pop-up resize or hide at runtime — see the `SetpointEqualSizeAnimated` story for the in-motion contrast. `touching` keeps the setpoint at the primary size (it only adds the SemiBold focus weight and marker highlight), and the marker arrow follows the block's rendered size, so an equal-size setpoint carries the full-size arrow. The sizing rule lives in `readoutSetpointSize()` (`readout-shared.ts`, unit-tested), shared with `obc-readout`.
138
+ - [Advice Categories](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--advice-categories): Advice semantic categories in a row context (Figma 6.1). The full per-block matrix lives in the Readout Block `AdviceCategories` story.
139
+ - [Source States](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--source-states): Source states + deviation (Figma 6.1 Readout-block-source): `enhanced` renders the amplified chip, `caution` / `warning` the alert chip; `deviation` adds the Δ line under the source name. Outline-based, so a live state change never shifts the row.
140
+ - [Label Size](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--label-size): `labelOptions`: dense rows default the label to `xs`; `size: 's'` opts a row into the larger title (Figma 6.1 gives large stand-alone readouts `s` by default — rows stay dense). The label is SemiBold only on enhanced rows.
141
+ - [Setpoint Pop Up With Value Arrow](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--setpoint-pop-up-with-value-arrow): TODO(designer): open question from the 6.1 review — while a pop-up setpoint is hidden at-setpoint, should the reading keep a setpoint arrow so it still reads as "a value you are in control of"? The existing `value-icon` slot already expresses that today, demonstrated here; no new API until decided.
142
+ - [Figma Matrix](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list-item--figma-matrix): Figma 6.1 bird's-eye matrix — a static expansion of the Readout-list-item sheet (node 46544-270931): Size (3) × Priority (2) × Reference priority / interaction (4, one section each) × State (4) = the sheet's 96 variants, reviewable at a glance without touching controls. Degree is on throughout, matching the sheet's instances. Note the list item keeps its own per-row degree convention (setpoint / advice carry the degree too) — the degree-on-the-actual-value-only rule from the 6.1 review applies to `obc-readout` only.
@@ -0,0 +1,85 @@
1
+ # `<obc-readout-list>`
2
+
3
+ A container that groups `<obc-readout-list-item>` rows and **auto-aligns their columns**.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-readout-list--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/readout-list/readout-list.ts)
6
+
7
+ `<obc-readout-list>` – A container that groups `<obc-readout-list-item>` rows
8
+ and **auto-aligns their columns**.
9
+
10
+ Because each row is its own custom element, cross-row column alignment is not
11
+ automatic. This container inspects its rows and pushes shared width reservers
12
+ down so the unit column, the value / setpoint / advice columns and the source
13
+ column all line up — the same effect the `Readout List Item → ColumnAlignment`
14
+ story achieves by hand, done for you. Alignment is always on.
15
+
16
+ What it equalizes — derived from each row's data and broadcast to every row, so
17
+ the widest value / unit / source is never clipped:
18
+ - **Unit:** the longest `unit` becomes every row's unit space-reserver.
19
+ - **Value / setpoint / advice:** the widest numeric width (max integer digits +
20
+ max fraction digits across rows, derived from each row's `maxDigits` /
21
+ `fractionDigits` / current values) is reserved on every row's numeric blocks.
22
+ Reserving off digit counts keeps it stable as live values update. A row with
23
+ `valueType="text"` is excluded in both directions — it neither contributes
24
+ to the reserve (so a long text value cannot inflate the numeric column) nor
25
+ receives it (so short text is not padded to a digit width); its value block
26
+ sizes to its own content. Its setpoint / advice blocks stay numeric and are
27
+ reserved normally.
28
+ - **Source:** the longest `src` becomes every row's source space-reserver.
29
+ - **Degree:** if any row has a degree, non-degree rows reserve the degree column
30
+ (`hasDegreeSpacer`) so their digits line up with the degree rows; the spacer is
31
+ cleared once no degree rows remain.
32
+ - **Sign:** if any row shows a minus sign (a negative value / setpoint /
33
+ advice) or declares it can (`hasSignSpacer` on a numeric block's options),
34
+ the shared numeric reserve gains a sign column so every row's digits stay
35
+ aligned; the column closes once no such row remains. A live value crossing
36
+ zero re-aligns automatically only when it changes via attribute — rows
37
+ whose values can go negative should set `hasSignSpacer` up front so the
38
+ columns never shift.
39
+
40
+ The list **owns** these reservers: it recomputes them from the rows' data on
41
+ every pass (and clears stale reservers / spacers when rows change), so a
42
+ `spaceReserver` set directly on a row inside the list is overwritten. Drive the
43
+ data (`maxDigits` / `fractionDigits` / `unit` / `src`) rather than setting a
44
+ manual reserver when a row lives in a list.
45
+
46
+ Alignment runs on `slotchange` and on child mutations (added/removed rows and
47
+ HTML-attribute changes). When rows are updated via JS **properties** only (no
48
+ attribute/DOM mutation), call align to recompute.
49
+
50
+ ## Properties
51
+
52
+ | Property | Attribute | Type | Default | Description |
53
+ | --- | --- | --- | --- | --- |
54
+ | showDebugOverlay | showDebugOverlay | `boolean` | `false` | Development aid: outline each row's readout building blocks (red), degree columns (blue) and degree spacer (green) so the reserved column widths are visible. Propagated to every row. Off by default. |
55
+
56
+ ## Events
57
+
58
+ None.
59
+
60
+ ## Slots
61
+
62
+ | Slot | Description |
63
+ | --- | --- |
64
+ | (default) | The `<obc-readout-list-item>` rows. |
65
+
66
+ ## CSS parts
67
+
68
+ | Part | Description |
69
+ | --- | --- |
70
+ | list | The vertical stack container. |
71
+
72
+ ## Stories
73
+
74
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--default)
75
+ - [Text Values](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--text-values)
76
+ - [Degrees](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--degrees)
77
+ - [Sign Column](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--sign-column): **Sign column.** Once any row shows a minus sign — or declares it can via `valueOptions.hasSignSpacer` — the shared numeric reserve gains a sign column, so every row's digits stay aligned; the column closes again when no such row remains. The first list derives it from the negative "Trim" row. The second list is all-positive but reserves it up front (`hasSignSpacer` on the row that can go negative), so nothing shifts the moment that value drops below zero — the recommended shape for live data. A value crossing zero via a property write still needs the documented `align()` call.
78
+ - [Leading Src Inline](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--leading-src-inline)
79
+ - [With Setpoints](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--with-setpoints)
80
+ - [Test Text Row Attributes](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--test-text-row-attributes): Attribute-driven regression test for text rows. Uses plain HTML attributes (not property bindings) so it covers the path where `value` arrives as a raw string: `valuetype="text"` must render verbatim and stay out of the shared numeric reserver, while a numeric `value="1013"` under the default value type must still resolve to a number and drive the reserver.
81
+
82
+ Note the attribute is `valuetype`, all lowercase — Lit lowercases a property
83
+ name to derive its attribute rather than kebab-casing it.
84
+ - [Test Dynamic Row](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--test-dynamic-row)
85
+ - [Manual (Interactive)](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout-list--manual): **Manual (Interactive)** — the rows are slotted children, so they cannot be driven by Storybook controls. Use the buttons to add / remove rows (a structural change the list re-aligns automatically) and to change the first row's value / unit (a property-only change, so it calls the public {@link ObcReadoutList.align} method). The debug overlay shows the reserved column widths reacting to each change. The starting rows include data-quality and alert-frame variations for a quick visual smoke test.
@@ -0,0 +1,169 @@
1
+ # `<obc-readout>`
2
+
3
+ An instrument readout: a value with optional setpoint, advice, label, unit, and source, arranged vertically or horizontally.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-readout--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/readout/readout.ts)
6
+
7
+ `<obc-readout>` – An instrument readout: a value with optional setpoint,
8
+ advice, label, unit, and source, arranged vertically or horizontally.
9
+
10
+ A layout sibling of `<obc-readout-list-item>` built from the same
11
+ cap-height "readout building blocks" (`obc-readout-block`): dynamic data is
12
+ passed as top-level primitives (`value`, `setpoint`, `advice`, `label`,
13
+ `unit`, `src`), global layout/format via top-level props (`size`,
14
+ `priority`, `direction`, `stacking`, `alignment`, `hasDegree`,
15
+ `dataQuality`, `alert`, …) and per-block tweaks via one object per block
16
+ (`valueOptions`, `setpointOptions`, `adviceOptions`, `unitOptions`,
17
+ `srcOptions`).
18
+
19
+ ## Features
20
+ - **Building blocks:** value, optional setpoint, and optional advice
21
+ segments, each cap-height-aligned and able to reserve a stable width.
22
+ - **Sizes:** `small`, `medium`, `large` density scales.
23
+ - **Direction:** `vertical` (blocks above a label+unit meta zone and source
24
+ row) or `horizontal` (all segments on one row).
25
+ - **Stacking & alignment:** vertical readouts arrange label/unit `inline`
26
+ or `stacked`; stacked readouts align `vertical` (right), `left`, or
27
+ `center`.
28
+ - **Priority:** `regular`/`enhanced` colour emphasis; per-value `weight`
29
+ is independent of colour.
30
+ - **Setpoint interactions:** `always-visible`, `flip-flop` (emphasis swap),
31
+ and `pop-up` (fade-out at setpoint), plus the `touching` focus state.
32
+ - **Data quality:** `low-integrity`/`invalid` styling, per block or for the
33
+ whole readout, combinable with `alert`.
34
+ - **Alert frame:** optional `alert` wrapper (caution/warning/alarm/level).
35
+ - **Source:** plain text by default; opt-in `picker` (context menu) or
36
+ `flyout` interactivity via `srcOptions.interaction`.
37
+ - **Formatting:** shared `fractionDigits`, width reservation via
38
+ `maxDigits` and per-segment `hintedZeros`; a `null` value renders a dash.
39
+ - **Text values:** `valueType="text"` renders `value` verbatim (e.g.
40
+ `"Auto"`) instead of formatting it as a number.
41
+
42
+ ## Usage Guidelines
43
+ Use for stand-alone instrument readouts and readouts embedded in
44
+ instruments. Prefer `<obc-readout-list-item>` for dense rows in
45
+ lists/tables (label left, value right) and `<obc-readout-list>` for
46
+ auto-aligned groups of rows.
47
+
48
+ ## Slots
49
+ | Slot Name | Renders When | Purpose |
50
+ |--------------------|---------------------------------------|--------------------------------------|
51
+ | leading-icon | `hasLeadingIcon` | Icon before the label/unit meta zone.|
52
+ | value-icon | `valueOptions.hasIcon` | Icon before the value. |
53
+ | setpoint-icon | `hasSetpoint` | Overrides the default setpoint icon. |
54
+ | advice-icon | `hasAdvice` | Overrides the default advice icon. |
55
+ | src-picker-content | `srcOptions.interaction == 'picker'` | Source picker context-menu content. |
56
+
57
+ ## Properties
58
+
59
+ | Property | Attribute | Type | Default | Description |
60
+ | --- | --- | --- | --- | --- |
61
+ | label | label | `string \| undefined` | | |
62
+ | unit | unit | `string \| undefined` | | |
63
+ | src | src | `string \| undefined` | | |
64
+ | hasValue | | `boolean` | `true` | Layout switch: `false` renders a deliberately value-less (label-only) readout that hugs its remaining parts. For a temporarily missing value keep `hasValue` and set `value` to `null` instead — the dash keeps the value block at full size, so the layout does not shift when data arrives. |
65
+ | value | value | `number \| string \| null` | `null` | The value; `null` renders a dash. A number by default, or text when `valueType` is `text`. |
66
+ | valueType | valueType | `ReadoutValueType` | | How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. |
67
+ | off | off | `boolean` | `false` | Render the value as `offText` (e.g. equipment powered down). Affects the value only. |
68
+ | offText | offText | `string` | `'OFF'` | Text shown in place of the value when `off` is true. Available when `off==true`. |
69
+ | hasSetpoint | hasSetpoint | `boolean` | `false` | |
70
+ | setpoint | setpoint | `number \| undefined` | | Available when `hasSetpoint==true`. |
71
+ | hasAdvice | hasAdvice | `boolean` | `false` | |
72
+ | advice | advice | `number \| undefined` | | Available when `hasAdvice==true`. |
73
+ | size | size | `ReadoutSize \| undefined` | | Density tier. Applies to the vertical direction only — the horizontal arrangement exists in the large tier alone (Figma 6.1: it relies on the label+unit stack aligning with the L-size value caps), so `size` is ignored when `direction` is `horizontal`; a horizontal readout given any other `size` logs a console warning once per element. Available when `direction==vertical`. |
74
+ | priority | priority | `ReadoutPriority \| undefined` | | |
75
+ | direction | direction | `ReadoutDirection \| undefined` | | |
76
+ | stacking | stacking | `ReadoutStacking \| undefined` | | Available when `direction==vertical`. |
77
+ | alignment | alignment | `ReadoutAlignment \| undefined` | | Available when `direction==vertical && stacking==stacked`. |
78
+ | hasDegree | hasDegree | `boolean` | `false` | Render the cap-height degree glyph (`°`) after the ACTUAL VALUE only — the setpoint / advice blocks never carry one (Figma 6.1 review: the unit is written once for the readout, and the degree follows the same rule). |
79
+ | hasDegreeSpacer | hasDegreeSpacer | `boolean` | `false` | Available when `hasDegree==false`. |
80
+ | hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | Show the `leading-icon` slot before the label/unit meta zone. |
81
+ | fractionDigits | fractionDigits | `number` | `0` | Also formats the numeric setpoint / advice blocks, which stay numeric even when the value is text. Must be between 0 and 100 — the range `Number.prototype.toFixed` accepts; outside it throws a `RangeError`. A fractional count truncates (`2.7` → `2`). A count that never arrived (`NaN`, `null` or unset) renders the reading as the unavailable dash — formatting with a precision the author never chose would let a critical `0.4` pass for a healthy `0`. Available when `valueType==number \|\| hasSetpoint==true \|\| hasAdvice==true`. |
82
+ | maxDigits | maxDigits | `number` | `0` | Also formats the numeric setpoint / advice blocks, which stay numeric even when the value is text. Bounded before use: a fractional count truncates (`2.7` → `2`), anything above 100 — including `Infinity` — caps at 100, and a negative count reserves nothing. A count that never arrived (`NaN`, `null` or unset) renders the reading as the unavailable dash, consistent with `fractionDigits`. Available when `valueType==number \|\| hasSetpoint==true \|\| hasAdvice==true`. |
83
+ | dataQuality | dataQuality | `ReadoutDataQuality \| undefined` | | |
84
+ | alert | alert | `boolean \| AlertFrameConfig` | `false` | |
85
+ | valueOptions | valueOptions | `ReadoutValueOptions \| undefined` | | Available when `hasValue==true`. |
86
+ | setpointOptions | setpointOptions | `ReadoutSetpointOptions \| undefined` | | Available when `hasSetpoint==true`. |
87
+ | adviceOptions | adviceOptions | `ReadoutAdviceOptions \| undefined` | | Available when `hasAdvice==true`. |
88
+ | labelOptions | labelOptions | `ReadoutLabelOptions \| undefined` | | Available when `label!=''`. |
89
+ | unitOptions | unitOptions | `ReadoutReserverOptions \| undefined` | | Available when `unit!=''`. |
90
+ | srcOptions | srcOptions | `ReadoutSourceOptions \| undefined` | | Available when `src!=''`. |
91
+ | showDebugOverlay | showDebugOverlay | `boolean` | `false` | Development aid: outline the readout building blocks (red), the degree columns (blue) and the degree spacer (green) so reserved widths / alignment are visible. Off by default. |
92
+
93
+ ## Events
94
+
95
+ | Event | Type | Description |
96
+ | --- | --- | --- |
97
+ | source-flyout-click | `CustomEvent<{src: string}>` | Fired when the source row is clicked while `srcOptions.interaction == 'flyout'`. |
98
+ | source-change | `CustomEvent<{value: string, label?: string}>` | Fired when a source picker option is selected. |
99
+
100
+ ## Slots
101
+
102
+ | Slot | Description |
103
+ | --- | --- |
104
+ | leading-icon | Icon before the label/unit meta zone. |
105
+ | value-icon | Icon before the value. |
106
+ | setpoint-icon | Overrides the default setpoint icon. |
107
+ | advice-icon | Overrides the default advice icon. |
108
+ | src-picker-content | Provides the source picker context menu content. |
109
+
110
+ ## Stories
111
+
112
+ - [Playground](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--playground)
113
+ - [Vertical](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--vertical)
114
+ - [Horizontal](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--horizontal): The horizontal arrangement exists in the large tier only (Figma 6.1: it relies on the label+unit stack aligning with the L-size value caps — label cap top and unit cap bottom line up with the value's cap edges). `size` is ignored when `direction` is `horizontal`.
115
+ - [Stacked](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--stacked)
116
+ - [Advice](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--advice)
117
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--off)
118
+ - [Source](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--source): The picker button opens a context menu built from the `src-picker-content` slot, so the picker case slots two sources (see `SourcePicker` for the standalone form). The flyout button only fires `source-flyout-click` — the consumer opens its own panel, so nothing happens in a story.
119
+ - [Source Picker](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--source-picker)
120
+ - [Data Quality](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--data-quality)
121
+ - [Alarm](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--alarm)
122
+ - [Level Critical](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--level-critical)
123
+ - [Setpoint Touch](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--setpoint-touch)
124
+ - [Setpoint Flip Flop Animated](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--setpoint-flip-flop-animated)
125
+ - [Setpoint Pop Up Animated](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--setpoint-pop-up-animated)
126
+ - [Setpoint Always Visible Animated](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--setpoint-always-visible-animated)
127
+ - [Setpoint Equal Size Animated](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--setpoint-equal-size-animated)
128
+ - [Degree](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--degree): The degree glyph renders on the ACTUAL VALUE only — setpoint and advice blocks never carry one (Figma 6.1 review: the unit is written once for the readout, and the degree follows the same rule).
129
+ - [Missing Parts](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--missing-parts)
130
+ - [Per Block Alert Frame](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--per-block-alert-frame)
131
+ - [Text Value](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--text-value): **Text values** — `valueType="text"` renders `value` verbatim instead of formatting it as a number, for readings that are states rather than quantities ("Auto", "Thermo On", "Standby").
132
+
133
+ The numeric format options (`fractionDigits`, `maxDigits`, `hintedZeros`) are
134
+ ignored in this mode; an explicit `spaceReserver` still applies. Passing text
135
+ while `valueType` is `number` throws a `TypeError` rather than rendering
136
+ `NaN` — a numeric-looking string such as `"12.4"` is still accepted and
137
+ parsed, so plain-HTML `value="12.4"` keeps working.
138
+ - [Unavailable Values](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--unavailable-values): **Unavailable values in a full readout — for design review.**
139
+
140
+ The same change as `Building Blocks/Readout Block → Unavailable Values`, shown
141
+ with a label and unit so the placeholder can be judged in the context an
142
+ instrument actually renders.
143
+
144
+ - The placeholder stays short (`-.-`) and sits at the right edge of the width
145
+ `maxDigits` reserves, rather than spelling out every reserved position.
146
+ - The dash is U+2012 FIGURE DASH, which is digit-width, so its decimal point
147
+ and fraction positions line up with the reading it replaces. The ASCII
148
+ hyphen is 46% narrower and did not align.
149
+ - `NaN` / `±Infinity` render the dash instead of the literal text `NaN` /
150
+ `Infinity`.
151
+
152
+ Each section pairs the placeholder with a live reading under identical
153
+ settings, so the two can be compared directly.
154
+ - [Test Cases](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--test-cases)
155
+ - [Setpoint Equal Size](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--setpoint-equal-size): Figma 6.1 "Equal size": value and setpoint always share the primary size — the missing fourth mode beside primary-secondary (`always-visible`), flip-flop and pop-up. Static in both states; only flip-flop / pop-up resize or hide at runtime — see the `SetpointEqualSizeAnimated` story for the in-motion contrast. `touching` keeps the setpoint at the primary size (it only adds the SemiBold focus weight and marker highlight), and the marker arrow follows the block's rendered size, so an equal-size setpoint carries the large arrow. The sizing rule lives in `readoutSetpointSize()` (`readout-shared.ts`, unit-tested), shared with `obc-readout-list-item` / `obc-readout`.
156
+ - [Label Options](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--label-options): Label ("readout-block-title") options — Figma 6.1. Large readouts default the label to textbox `s` (a scannable label should not sit at the smallest size); `labelOptions.size` opts a tight layout back down to `xs`, and `labelOptions.spaceReserver` aligns ragged labels across stacked readouts. The label is SemiBold only on enhanced readouts.
157
+ - [Leading Icon](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--leading-icon): The `leading-icon` slot before the label/unit meta zone (Figma `has Leading icon`).
158
+ - [Advice Categories](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--advice-categories): Advice semantic categories (Figma 6.1 Readout-block-advice): resting categories carry a neutral outline marker; `active` swaps in the filled / status icon and the triggered text styling. See the Readout Block `AdviceCategories` story for the full per-block matrix.
159
+ - [Source States](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--source-states): Source states + deviation (Figma 6.1 Readout-block-source): `enhanced` renders the amplified chip, `caution` / `warning` the alert chip, and `deviation` adds the Δ line under the source name. The chips use `outline` so a live state change never shifts the layout.
160
+ - [Setpoint Pop Up With Value Arrow](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--setpoint-pop-up-with-value-arrow): TODO(designer): open question from the 6.1 review — while a pop-up setpoint is hidden at-setpoint, should the reading keep a setpoint arrow so it still reads as "a value you are in control of"? The existing `value-icon` slot already expresses that today, demonstrated here; no new API until decided.
161
+ - [Figma Matrix Vertical Always Visible](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--figma-matrix-vertical-always-visible): Readout-vertical-trailing-title (Figma 46390-197995): Size × Priority × State × has Degree, one story per setpoint interaction so each snapshot stays a reviewable size. The `has Leading icon` axis lives in the `LeadingIcon` story. The Readout-vertical-block sheet (46551-303919) differs only in title sizing (the medium-tier label default is an open designer question); the leading-title sheet (46551-341292) is marked WIP in Figma and deliberately not expanded.
162
+ - [Figma Matrix Vertical Equal Size](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--figma-matrix-vertical-equal-size)
163
+ - [Figma Matrix Vertical Flip Flop](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--figma-matrix-vertical-flip-flop)
164
+ - [Figma Matrix Vertical Pop Up](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--figma-matrix-vertical-pop-up)
165
+ - [Figma Matrix Horizontal](https://openbridge-next-storybook.web.app/?path=/story/instruments-readout--figma-matrix-horizontal): Readout-horizontal (Figma 46471-75814): large-only. Its leading-label stacking column is `obc-readout-list-item`'s job — see the Readout List Item `FigmaMatrix` story.
166
+
167
+ ## See also
168
+
169
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,64 @@
1
+ # `<obc-resistor>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-resistor--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/resistor/resistor.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | alternativeIcon | alternativeIcon | `ResistorAlternativeIcon` | | |
12
+ | icon | | `TemplateResult` | | |
13
+ | turnedOn | turnedOn | `boolean` | `false` | Whether the device is on. Selects the on icon and the `On` state row instead of `Off`. Not named `on`, which Svelte binds as an event listener in markup (#1090). |
14
+ | on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
15
+ | variant | variant | `SquaredVariant` | | |
16
+ | orientation | orientation | `AutomationButtonOrientation` | | |
17
+ | extraReadouts | | `AutomationButtonReadoutStack[]` | | |
18
+ | showReadoutStack | | `boolean` | `true` | |
19
+ | 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. |
20
+ | readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
21
+ | showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
22
+ | showStatusIcon | | `boolean` | `false` | |
23
+ | readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
24
+ | tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
25
+ | positioning | positioning | `AutomationButtonPositioning` | | |
26
+ | activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
27
+ | alert | alert | `boolean` | `false` | |
28
+ | alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
29
+ | alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
30
+ | alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
31
+ | alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
32
+ | showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
33
+ | showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
34
+ | progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
35
+ | progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
36
+ | progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
37
+ | badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
38
+ | badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
39
+ | badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
40
+ | badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
41
+ | 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. |
42
+ | 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. |
43
+ | badgeTopRight | | `HTMLElement[]` | | |
44
+ | badgeTopLeft | | `HTMLElement[]` | | |
45
+ | badgeBottomLeft | | `HTMLElement[]` | | |
46
+ | badgeBottomRight | | `HTMLElement[]` | | |
47
+
48
+ ## Events
49
+
50
+ None.
51
+
52
+ ## Slots
53
+
54
+ None.
55
+
56
+ ## Stories
57
+
58
+ - [On](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-resistor--on)
59
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-resistor--off)
60
+ - [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-resistor--static)
61
+
62
+ ## See also
63
+
64
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)