@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,126 @@
1
+ # Migrating from 2.0 to 2.1
2
+
3
+ 2.1 is a minor release for the components: no element, property, attribute, event or slot was removed or renamed, so markup and TypeScript that use them need no change. The design tokens are where the work is ([#1353](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1353)). Two things to do before upgrading: rename the 62 CSS variables you override, which go quiet rather than failing, and the 15 PostCSS mixins if your build compiles the sources from the full-bundle package, which fail the build until you do. Two icons were renamed as well, with their old names kept as aliases, and 711 palette values moved without any API change.
4
+
5
+ Coming from 1.0.1? Read [Migrating from 1.x to 2.0](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md) first; this page is what changed after it. Already on 2.1? See [Migrating from 2.1 to 2.2](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-1-to-2-2.md) for what changed after this page. The [Changelog](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/CHANGELOG.md) lists every change.
6
+
7
+ ## Contents
8
+
9
+ 1. [Renamed CSS Variables](#renamed-css-variables)
10
+ 2. [Font Mixins](#font-mixins)
11
+ 3. [Icons](#icons)
12
+ 4. [Palette Values](#palette-values)
13
+ 5. [Deprecated Properties](#deprecated-properties)
14
+ 6. [Fixes You May See](#fixes-you-may-see)
15
+
16
+ ## Renamed CSS Variables
17
+
18
+ 62 names are gone from `openbridge.css`. A `var()` that names one resolves to nothing, and an override that sets one no longer reaches the component; neither raises an error, so search your stylesheets for the old names.
19
+
20
+ The palette variables are the library's own theming tokens rather than part of the stable component API, which is why a refresh of them lands in a minor release. They are listed here because an override that names one stops working without saying so.
21
+
22
+ ### Automation Colors
23
+
24
+ The automation colors moved from tone-based names to state-based ones: `device` became `symbol` and the pipes became `connector`, and `primary`, `secondary`, `tertiary` and their inverted pairs became the states `on`, `off`, `static` and `no-flow` with a background and a border role each. The whole family was recolored in the same change, so the pairs below match by the role each token plays, not by value.
25
+
26
+ | 2.0 | 2.1 |
27
+ | --------------------------------------------- | -------------------------------------------------------------------------------- |
28
+ | `--automation-device-primary-color` | `--automation-symbol-on-background-color` |
29
+ | `--automation-device-tertiary-color` | `--automation-symbol-on-border-color` |
30
+ | `--automation-device-secondary-color` | `--automation-symbol-static-background-color` |
31
+ | `--automation-device-primary-inverted-color` | `--automation-symbol-off-background-color` |
32
+ | `--automation-device-tertiary-inverted-color` | `--automation-symbol-off-border-color` |
33
+ | `--automation-pipe-primary-color` | `--automation-connector-on-background-color` |
34
+ | `--automation-pipe-tertiary-color` | `--automation-connector-on-border-color` |
35
+ | `--automation-pipe-primary-inverted-color` | `--automation-connector-no-flow-background-color` |
36
+ | `--automation-pipe-tertiary-inverted-color` | `--automation-connector-no-flow-border-color` |
37
+ | `--on-background-color`, `--on-border-color` | `--automation-button-on-background-color`, `--automation-button-on-border-color` |
38
+
39
+ The inverted pipe pair has no exact successor; `no-flow` is the nearest role and is what the library and `@oicl/connector-diagram` now read. `--automation-device-secondary-inverted-color`, `--automation-pipe-secondary-color` and `--automation-pipe-secondary-inverted-color` are gone with no successor: nothing in the library read them.
40
+
41
+ ```css
42
+ /* 2.0 */
43
+ obc-pump {
44
+ --automation-device-primary-color: #2b6ad6;
45
+ }
46
+
47
+ /* 2.1 */
48
+ obc-pump {
49
+ --automation-symbol-on-background-color: #2b6ad6;
50
+ }
51
+ ```
52
+
53
+ ### Typography
54
+
55
+ 47 `--global-typography-generic-*` variables are `--global-typography-general-*`. Only that word changes:
56
+
57
+ ```css
58
+ /* 2.0 */
59
+ font-size: var(--global-typography-generic-m-font-size);
60
+
61
+ /* 2.1 */
62
+ font-size: var(--global-typography-general-m-font-size);
63
+ ```
64
+
65
+ The font-weight primitives were renumbered in the same refresh and every pointer into them was shifted to compensate, so the weight you get from a typography token is unchanged.
66
+
67
+ ## Font Mixins
68
+
69
+ The PostCSS mixins ship with the sources in `@oicl/openbridge-webcomponents-full-bundle`, so this applies only if your build uses them. The 15 `font-generic-beta-*` mixins are `font-general-*`, with the same five sizes and three weights:
70
+
71
+ ```css
72
+ /* 2.0 */
73
+ .label {
74
+ @mixin font-generic-beta-m-semibold;
75
+ }
76
+
77
+ /* 2.1 */
78
+ .label {
79
+ @mixin font-general-m-semibold;
80
+ }
81
+ ```
82
+
83
+ Eight `font-dev-code-*` and `font-dev-console-*` mixins are new.
84
+
85
+ ## Icons
86
+
87
+ Two icons were redrawn under new names, and both old names keep working as deprecated aliases, so markup and deep imports written against 2.0 still resolve:
88
+
89
+ - `obi-log-open-google` is `obi-log-open`
90
+ - `obi-timer-google` is `obi-timer`
91
+
92
+ An alias draws what the current icon draws, so the drawing changed even under the old name. The old names are left out of `iconIds`, so a picker built from it lists every icon once, under its current name. `obc-user-menu` uses the new names.
93
+
94
+ 553 icons changed their drawing and 15 arrived. The seven `obi-critical-*` alert icons are now kept by hand in the repository rather than generated from Figma; their names and drawings are unchanged.
95
+
96
+ ## Palette Values
97
+
98
+ 711 resolved values moved, 80 of them steps in the `--base-*` ramps. No code needs to change, but screenshot tests will show differences. The two visible groups:
99
+
100
+ - The automation devices and connectors carry the design team's recolor.
101
+ - `obc-integration-app-bar` and `obc-integration-bar-dropdown` read `--integration-container-global-color`, the same token `obc-integration-bar` reads, instead of `--integration-container-background-color`. The two values were a shade apart and are now the same, darker one.
102
+
103
+ To keep the 2.0 appearance of those two bars, point the token they now read back at the one they read before:
104
+
105
+ ```css
106
+ obc-integration-app-bar,
107
+ obc-integration-bar-dropdown {
108
+ --integration-container-global-color: var(
109
+ --integration-container-background-color
110
+ );
111
+ }
112
+ ```
113
+
114
+ ## Deprecated Properties
115
+
116
+ `obc-valve-analog-three-way-icon` gained `open1`, `open2`, `open3` and `orientation` ([#1346](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1346)). `value`, `value2` and `horisontal` are deprecated in favor of them, and `closed` in favor of setting every opening to `0`. All four still work. The two new elements built on it, `obc-analog-threeway-valve` and `obc-digital-threeway-valve`, are experimental.
117
+
118
+ ## Fixes You May See
119
+
120
+ These need no change, but they change what you see or what a test asserts:
121
+
122
+ - A component that first renders inside a hidden container, such as a closed tab, a dialog or a collapsed panel, draws correctly once it is shown ([#1351](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1351)). `obc-watch-flat`, `obc-rot-linear`, `obc-line-graph` and `obc-area-graph` were blank or mis-scaled in that case, so a workaround that forced a resize can go.
123
+ - `obc-textbox` paints descenders and diacritics instead of clipping them at the cap-height box ([#1338](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1338)).
124
+ - `obc-number-input-field` lets the browser place the caret and sizes a centered value to its content ([#1239](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1239)).
125
+ - `obc-analog-valve` draws its icon from the `obi-twoway-analog` set ([#1347](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1347)).
126
+ - `obc-alert-icon` draws a silenced warning with the warning's silenced glyph, and an unacknowledged alert held steady by `flashingSpeed="fixed"`; both drew the wrong thing or nothing ([#1340](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1340)). An `obc-alert-menu-item` with the `rectified-unacknowledged` status keeps its ACK action and lists under Unacked.
@@ -0,0 +1,106 @@
1
+ # Migrating from 2.1 to 2.2
2
+
3
+ 2.2 is a minor release: no element, property, attribute, event or slot was removed, so markup and TypeScript written against 2.1 compile and run. The change is the advice system ([#1402](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/1402)): one input shape, one design layer and the 6.1 categories on every instrument that draws an advice, with point advices and the area layer added. The names each instrument used before are kept as deprecated aliases. Two things change on screen without an API change and are listed under [Behaviour Changes](#behaviour-changes), each with the property that restores the old behaviour.
4
+
5
+ Coming from 2.0? Read [Migrating from 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md) first. The [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md) page is the reference for the new vocabulary; the [Changelog](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/CHANGELOG.md) lists every change.
6
+
7
+ ## Contents
8
+
9
+ 1. [Advice Input](#advice-input)
10
+ 2. [Renamed Properties](#renamed-properties)
11
+ 3. [Renamed Types](#renamed-types)
12
+ 4. [Renamed Slots](#renamed-slots)
13
+ 5. [Behaviour Changes](#behaviour-changes)
14
+ 6. [What Moved on Screen](#what-moved-on-screen)
15
+
16
+ ## Advice Input
17
+
18
+ Every instrument takes `advices`, a list of `{min, max}` ranges or `{value}` points with a `category` and an optional `state`. The field names the instruments read before are still read and mapped:
19
+
20
+ | 2.1 | 2.2 |
21
+ | ------------------------------------------------------------------------- | ----------------------------------------------- |
22
+ | `type: AdviceType.advice` / `'advice'` | `category: 'optimal'` |
23
+ | `type: 'safe'` | `category: 'running'` |
24
+ | `type: AdviceType.caution` / `.warning` / `.alarm` | `category: 'caution'` / `'warning'` / `'alarm'` |
25
+ | `hinted: true` | `state: 'hinted'` |
26
+ | `state: 'regular'` | `state: 'enabled'` |
27
+ | `minAngle` / `maxAngle`, `minSpeed` / `maxSpeed`, `minValue` / `maxValue` | `min` / `max` |
28
+
29
+ ```ts
30
+ // 2.1
31
+ compass.headingAdvices = [
32
+ {minAngle: 20, maxAngle: 50, type: AdviceType.advice, hinted: false},
33
+ ];
34
+
35
+ // 2.2
36
+ compass.headingAdvices = [{min: 20, max: 50, category: 'optimal'}];
37
+ ```
38
+
39
+ New on every entry: `category: 'running' | 'eco' | 'ai' | 'exclusion'`, `value` for a point advice, `state: 'active'`, `showArea` for the area layer, `showIcon` for the category's icon beside the band, and `hideMinTickmark` / `hideMaxTickmark` on the radial instruments as well as the linear ones. An entry without a category, or with one the library does not know, throws a `TypeError` instead of drawing a grey band.
40
+
41
+ ## Renamed Properties
42
+
43
+ Every instrument takes its list as `advices`, the shared name, and two properties arrived alongside on every one of them: `adviceTrigger` (`both`, `value`, `setpoint`) and `adviceEmphasis`. A name that says which quantity the list advises stays the instrument's own: `headingAdvices` on the compass, heading and compass sector (a compass also shows a course over ground) and `sailAngleAdvices` on the wind propulsion instrument, as `headingSetpoint` stays beside the shared `setpoint`. A name for an instrument's only quantity is a deprecated alias of `advices`:
44
+
45
+ | Element | 2.1 | 2.2 |
46
+ | -------------------------------------------------------------------------------------------------------- | -------------- | --------- |
47
+ | `obc-speed-gauge` | `speedAdvices` | `advices` |
48
+ | `obc-gauge-trend`, `obc-automation-tank`, `obc-depth`, `obc-depth-actual`, `obc-draft-trim`, `obc-heave` | `advice` | `advices` |
49
+
50
+ Unchanged: `advices` on the watch, the bars and gauges, the thruster, the radial gauges and the rudder; `angleAdvices` and `thrustAdvices` on `obc-azimuth-thruster`, which has two axes; `heaveAdvice` on `obc-pitch-roll-heave`, the heave column's own list. New: `advices` on `obc-line-graph` and `obc-area-graph`, which draw the area layer only.
51
+
52
+ ## Renamed Types
53
+
54
+ The instrument-specific types are aliases of the two shared ones and are deprecated. Deep imports keep resolving.
55
+
56
+ | 2.1 | 2.2 |
57
+ | ------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
58
+ | `AdviceType` (`navigation-instruments/watch/advice.js`) | `AdviceCategory` (`svghelpers/advice.js`) |
59
+ | `AdviceState.regular` | `AdviceState.enabled` |
60
+ | `AngleAdvice`, `AngleAdviceRaw`, `ExternalScaleAdvice`, `LinearAdvice`, `SpeedAdvice`, `GaugeRadialAdvice`, `GaugeProportionalAdvice` | `AdviceInput` |
61
+ | `ExternalScaleAdviceRaw`, `LinearAdviceRaw` | `ResolvedAdvice` |
62
+
63
+ ## Renamed Slots
64
+
65
+ Five slots of `obc-command-menu` were spelled `toogle-…`. The `toggle-…` names replace them; an old name still renders while its new slot is empty, and goes in the next major release ([#1370](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/1370)).
66
+
67
+ | Element | 2.1 | 2.2 |
68
+ | ------------------ | ----------------------------------- | ----------------------------------- |
69
+ | `obc-command-menu` | `toogle-action-to-in-command-label` | `toggle-action-to-in-command-label` |
70
+ | `obc-command-menu` | `toogle-action-to-no-command-label` | `toggle-action-to-no-command-label` |
71
+ | `obc-command-menu` | `toogle-state-in-command-label` | `toggle-state-in-command-label` |
72
+ | `obc-command-menu` | `toogle-state-no-command-label` | `toggle-state-no-command-label` |
73
+ | `obc-command-menu` | `toogle-state-in-command-icon` | `toggle-state-in-command-icon` |
74
+
75
+ ## Behaviour Changes
76
+
77
+ These need no code change, but an instrument shows something different for the same input.
78
+
79
+ ### A reversed angular pair is drawn the short way round
80
+
81
+ A band on a compass, heading or azimuth thruster runs clockwise from `min` to `max`. 2.1 took a pair with the larger angle first as a band the long way round, which is how a 100° band written as `{200, 100}` became a 260° one ([#1358](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/1358)). 2.2 swaps such a pair when its clockwise span would exceed 180°. A band across north written as `{350, 10}` is unchanged, 20°. To draw a band longer than 180° on purpose, write the smaller angle first: `{min: 20, max: 340}` is the 320° band from 20 clockwise to 340.
82
+
83
+ ### An advice triggers on the value as well as the setpoint
84
+
85
+ 2.1's compass, heading and azimuth thruster triggered a band on the setpoint alone, the bars and gauges on the value alone. 2.2 triggers on either by default, which is what the reports asked for ([#1073](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/1073)). `adviceTrigger` restores the old reading:
86
+
87
+ ```html
88
+ <!-- the compass as in 2.1: the setpoint alone -->
89
+ <obc-compass adviceTrigger="setpoint"></obc-compass>
90
+
91
+ <!-- a bar as in 2.1: the value alone -->
92
+ <obc-bar-vertical adviceTrigger="value"></obc-bar-vertical>
93
+ ```
94
+
95
+ The trigger test on the angular instruments is wrap-aware: a heading of 5° is inside `{350, 10}`.
96
+
97
+ ## What Moved on Screen
98
+
99
+ Every band is drawn by the shared layer, so screenshot tests show differences on every instrument with an advice:
100
+
101
+ - A no-go band (`caution`, `warning`, `alarm`, `exclusion`) is square with a 2-unit corner instead of the go-to pill, and two bands that meet are cut flat at the join.
102
+ - A caution band's hatch is the one 45° stripe on every path and at every zoom level; the pre-baked radial tile is kept at the design radius.
103
+ - A band shorter than the pill's two insets is drawn; 2.1 dropped it.
104
+ - A hinted `warning` or `alarm` band is solid light grey rather than hatched; a hinted `caution` band keeps its grey hatch.
105
+ - A `warning` or `alarm` band carries the alert colour with its outline while triggered, where 2.1 drew the caution yellow for every alert ([#1356](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1356)).
106
+ - Pattern at every size: a caution band on a small bar or gauge is hatched rather than solid ([#1062](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/1062)).