@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.173 → 2.0.0-next.174

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.
@@ -4,9 +4,14 @@ import {Meta} from '@storybook/addon-docs/blocks';
4
4
 
5
5
  # 🚀 Project Status
6
6
 
7
- **v1.0.0 is now released!** It has been an incredibly productive first year, with more than 200 components already
8
- implemented. The code was officially opened by **Prince Sverre Magnus of Norway** and is now publicly available,
9
- marking our first stable milestone.
7
+ **v2.0.0 is out.** It adds close to 60 components, among them motion and depth instruments, propulsion and
8
+ hydraulic automation symbols, tree navigation and a new readout family, together with about 100 fixes. Keyboard
9
+ navigation and accessibility are now tested on every change, next to the visual snapshots, so what works in your
10
+ application keeps working. Coming from 1.x? The [migration guide](?path=/docs/introduction-migration-guide--docs)
11
+ shows what to update.
12
+
13
+ v1.0.0 closed an incredibly productive first year, with more than 200 components implemented. The code was
14
+ officially opened by **Prince Sverre Magnus of Norway** and is publicly available, marking our first stable milestone.
10
15
 
11
16
  # Getting Started
12
17
 
@@ -47,7 +47,7 @@ The [Changelog](?path=/docs/introduction-changelog--docs) lists every change. If
47
47
  - **Svelte:** eight components renamed a snippet prop, and named slots no longer render a wrapping `div`. See [Svelte](#svelte).
48
48
  - **Alert flashing:** `--alarm-blink-*` and `--warning-blink-*` no longer animate; use `--flash-*` and `blinkingAll()`. See [Alert Flashing Variables](#alert-flashing-variables).
49
49
  - **CSS variables:** 141 were renamed or removed, and the old names fail without an error. See [Renamed CSS Variables](#renamed-css-variables).
50
- - **Component APIs:** properties were renamed, retyped or given new defaults, among them the [automation badges](#badges-take-values-silent), [wind speeds in knots](#wind-speed-in-knots-silent), [`obc-card` timeouts in seconds](#obc-card-timeouts-in-seconds-silent), [`obc-number-input-field` values as numbers](#obc-number-input-field-value-and-events) and [the motorized buttons' `on` as `turnedOn`](#on-is-now-turnedon-silent). See [Component Changes](#component-changes) and [API Mapping by Component](#api-mapping-by-component).
50
+ - **Component APIs:** properties were renamed, retyped or given new defaults, among them the [automation badges](#badges-take-values-silent), [wind speeds in knots](#wind-speed-in-knots-silent), [`obc-card` timeouts in seconds](#obc-card-timeouts-in-seconds-silent) and [`obc-number-input-field` values as numbers](#obc-number-input-field-value-and-events). See [Component Changes](#component-changes) and [API Mapping by Component](#api-mapping-by-component).
51
51
  - **Keyboard:** the tab row, the toggle button group and the context menu are one tab stop each, with the arrow keys moving between their items, and the modals take focus when they connect. See [Keyboard, Focus and Events](#keyboard-focus-and-events).
52
52
  - **Icons:** 50 icons were renamed, and the wind icons ending in `-1`, `-5` and `-10` kept their names but show a different glyph. See [Icons](#icons).
53
53
  - **Deprecations:** 11 components are deprecated. They still work in 2.0. See [Deprecated Components](#deprecated-components).
@@ -399,12 +399,14 @@ The tank follows the OpenBridge 6.1 design and is larger at every size ([#862](h
399
399
 
400
400
  The value and setpoint rows under a device render through `obc-readout-block` ([#1097](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1097)). A missing value shows the figure dash `‒` instead of the text `NaN`, and hinted zeros are drawn in a dimmed color. The device icon colors moved from the pipe tokens to the automation button tokens, and the new `activated` property draws the selected background ([#967](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/967)).
401
401
 
402
- #### `on` Is Now `turnedOn` _(silent)_
402
+ #### `on` Is Now `turnedOn`
403
403
 
404
- The run state of `obc-motor`, `obc-pump` and `obc-fan` is `turnedOn` ([#1090](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/issues/1090)). The old name begins with `on`, which Svelte and other frameworks read as an event binding, so `on={running}` in a Svelte template registered a listener for an empty event name and left the property at `false`. An `on` attribute is ignored in 2.0 and the device draws its off state.
404
+ The on/off property of the seventeen two-state devices, `obc-fan`, `obc-motor`, `obc-pump` and the fourteen devices on the squared base, is `turnedOn` ([#1317](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1317)). `on` stays as a deprecated alias that sets `turnedOn`, so 1.x markup keeps working and the rename can wait until you next touch the page. Removing `on` is a 3.0 change.
405
+
406
+ The old name begins with `on`, which Svelte compiles into an event listener, and Vue binds `on` followed by anything but a lowercase letter the same way, so `on={running}` in a template never reached the property. The new attribute is Lit's default, `turnedon`.
405
407
 
406
408
  ```html
407
- <!-- 1.0.1 -->
409
+ <!-- 1.0.1, still works in 2.0 -->
408
410
  <obc-pump on></obc-pump>
409
411
 
410
412
  <!-- 2.0 -->
@@ -741,6 +743,7 @@ row.tabs = [
741
743
  - Buttons with and without a border share one visible height ([#830](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/830)).
742
744
  - `obc-top-bar` keeps its controls on screen and shortens the title first when space runs out ([#1213](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1213)).
743
745
  - `obc-navigation-menu` scrolls its items and keeps the footer and logo in place ([#895](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/895)).
746
+ - `obc-accordion-card` and `obc-accordion-item` slide open and closed over `--obc-accordion-expand-duration` (200 ms), and `prefers-reduced-motion: reduce` switches instantly ([#1304](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1304)). 1.0.1 rendered no panel while collapsed; the panel is now always in the DOM, `inert` while closed, so a query or a test that expected the collapsed content to be absent finds it.
744
747
 
745
748
  ### Readouts
746
749
 
@@ -807,14 +810,25 @@ The point-of-interest components are experimental in 2.0. Besides the [import pa
807
810
  - `obc-poi-layer` reads the `is-selected` attribute instead of `isselected`.
808
811
  - `ObcPoiObjectAtonState` and `ObcPoiObjectDataState` are merged into `ObcPoiObjectState`, and `ObcPoiObjectDataStyle` is now `ObcPoiObjectStyle`. The old names are still exported from `dist/ar/poi-button/poi-button-aton.js` and `dist/ar/poi-button/poi-button-data.js`.
809
812
 
813
+ The POI components also stopped touching the consumer's light DOM, and selection and grouping became public APIs ([#1060](https://github.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/pull/1060)):
814
+
815
+ - `obc-poi-group` reads the `position-vertical` attribute instead of `positionvertical`.
816
+ - A bare `obc-poi` places its button 192 px above the anchor instead of 96.
817
+ - `--obc-poi-layer-line-length` is removed.
818
+ - `obc-poi-layer-stack` leaves the selected target where you put it instead of moving it into the selected layer, and projects its button instead. Read `selectedTargets`, or listen for `selection-change`, in place of reading the DOM. `selectTarget`, `deselectTarget` and `clearSelection` drive the selection from script.
819
+ - `obc-poi-layer` builds its auto-groups inside its own shadow DOM and assigns the members to them through slots. 1.0.1 inserted the group elements among the layer's own children, so a page that read them from its markup reads `layer.autoGroups` after `grouping-change` instead.
820
+ - Header content slotted into a POI stays in your markup. 1.0.1 moved those nodes into the button the component renders inside its shadow DOM, so they left `poi.children`; 2.0 forwards them through a chain of `<slot name="header">` and leaves them where you wrote them. The markup does not change, only where the nodes are found.
821
+
810
822
  ```html
811
823
  <!-- 1.0.1 -->
812
824
  <obc-poi-data line-compensation-y="12"></obc-poi-data>
813
825
  <obc-poi-layer isSelected></obc-poi-layer>
826
+ <obc-poi-group positionVertical="240px"></obc-poi-group>
814
827
 
815
828
  <!-- 2.0 -->
816
829
  <obc-poi-data></obc-poi-data>
817
830
  <obc-poi-layer is-selected></obc-poi-layer>
831
+ <obc-poi-group position-vertical="240px"></obc-poi-group>
818
832
  ```
819
833
 
820
834
  ## Keyboard, Focus and Events
@@ -1,7 +1,9 @@
1
- | Element | 1.0.1 | 2.0 |
2
- | --------------------------------------------------------------------- | ----------------------- | -------------------------------------- |
3
- | `obc-poi`, `obc-poi-aton`, `obc-poi-data`, `obc-poi-vessel` | `buttonY` = `null` | `buttonY` = `0` |
4
- | `obc-poi-aton`, `obc-poi-data`, `obc-poi-vessel` | `lineCompensationY` | removed; the layer computes the offset |
5
- | `obc-poi-layer` | attribute `isselected` | attribute `is-selected` |
6
- | `obc-poi-object-aton`, `obc-poi-object-data`, `obc-poi-object-vessel` | `colorStyleVars` | removed |
7
- | `obc-poi-object-data`, `obc-poi-object-vessel` | `objectStyle`: `string` | `objectStyle`: `ObcPoiObjectStyle` |
1
+ | Element | 1.0.1 | 2.0 |
2
+ | --------------------------------------------------------------------- | ---------------------------- | -------------------------------------- |
3
+ | `obc-poi`, `obc-poi-aton`, `obc-poi-data`, `obc-poi-vessel` | `buttonY` = `null` | `buttonY` = `0` |
4
+ | `obc-poi` | `y` = `96` | `y` = `192` |
5
+ | `obc-poi-aton`, `obc-poi-data`, `obc-poi-vessel` | `lineCompensationY` | removed; the layer computes the offset |
6
+ | `obc-poi-group` | attribute `positionvertical` | attribute `position-vertical` |
7
+ | `obc-poi-layer` | attribute `isselected` | attribute `is-selected` |
8
+ | `obc-poi-object-aton`, `obc-poi-object-data`, `obc-poi-object-vessel` | `colorStyleVars` | removed |
9
+ | `obc-poi-object-data`, `obc-poi-object-vessel` | `objectStyle`: `string` | `objectStyle`: `ObcPoiObjectStyle` |
@@ -9,4 +9,3 @@
9
9
  | all automation devices | `tag` = `''` | `tag` = `null` |
10
10
  | `obc-automation-button`, `obc-automation-button-readout-stack` | `tag`: `AutomationButtonReadoutStackTag` or `null` | `tag`: `string` or `null` |
11
11
  | `obc-automation-tank` | `variant` | `orientation`; `variant="compact"` is now `compact` |
12
- | `obc-fan`, `obc-motor`, `obc-pump` | `on` | `turnedOn` |
@@ -1,8 +1,9 @@
1
- | Element | Deprecated | Use instead |
2
- | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
3
- | `obc-alert-icon` | `type` | `alertType` |
4
- | `obc-compass`, `obc-compass-flat`, `obc-compass-sector`, `obc-rate-of-turn`, `obc-rot-indicator`, `obc-watch`, `obc-watch-flat` | `rotationsPerMinute` | `rateOfTurnDegreesPerMinute`; the old property applies only while the new one is unset |
5
- | `obc-depth-actual` | `instrumentRange` | `maxDepth` |
6
- | `obc-fan`, `obc-motor`, `obc-pump` | `speedInPercent` | `speed` with `speedUnit`; `speed` wins when both are set |
7
- | `obc-tab-item`, and the `tabs` of `obc-tab-row` | `hasBadge`, `badgeCount`, `badgeType`, `badgeSize`, `badgeShowNumber`, `showLeadingBadgeIcon` | `badges` |
8
- | `obc-wind-indicator` | `angle` | `currentWindFromDirection` |
1
+ | Element | Deprecated | Use instead |
2
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
3
+ | `obc-alert-icon` | `type` | `alertType` |
4
+ | `obc-bipolar-transistor`, `obc-capacitor`, `obc-converter`, `obc-damper`, `obc-diodes`, `obc-fan`, `obc-filter`, `obc-ground`, `obc-logic`, `obc-mosfet`, `obc-motor`, `obc-pump`, `obc-resistor`, `obc-router`, `obc-source`, `obc-switch`, `obc-transformer` | `on` | `turnedOn`; setting `on` sets `turnedOn` |
5
+ | `obc-compass`, `obc-compass-flat`, `obc-compass-sector`, `obc-rate-of-turn`, `obc-rot-indicator`, `obc-watch`, `obc-watch-flat` | `rotationsPerMinute` | `rateOfTurnDegreesPerMinute`; the old property applies only while the new one is unset |
6
+ | `obc-depth-actual` | `instrumentRange` | `maxDepth` |
7
+ | `obc-fan`, `obc-motor`, `obc-pump` | `speedInPercent` | `speed` with `speedUnit`; `speed` wins when both are set |
8
+ | `obc-tab-item`, and the `tabs` of `obc-tab-row` | `hasBadge`, `badgeCount`, `badgeType`, `badgeSize`, `badgeShowNumber`, `showLeadingBadgeIcon` | `badges` |
9
+ | `obc-wind-indicator` | `angle` | `currentWindFromDirection` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-full-bundle",
3
- "version": "2.0.0-next.173",
3
+ "version": "2.0.0-next.174",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",