@oicl/openbridge-webcomponents 0.0.15-dev-20241112205851 → 0.0.15-dev-20241119201940

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/.storybook/main.ts +2 -1
  2. package/.storybook/manager.ts +16 -0
  3. package/.storybook/preview.ts +0 -1
  4. package/__snapshots__/building-blocks-poi-graphic-line--primary.png +0 -0
  5. package/__snapshots__/building-blocks-poi-line--primary.png +0 -0
  6. package/__snapshots__/navigation-instruments-azimuth-thruster--active-at-setpoint.png +0 -0
  7. package/__snapshots__/navigation-instruments-azimuth-thruster--active-no-setpoint.png +0 -0
  8. package/__snapshots__/navigation-instruments-azimuth-thruster--active.png +0 -0
  9. package/__snapshots__/navigation-instruments-azimuth-thruster--in-command-at-setpoint-disable-auto-setpoint.png +0 -0
  10. package/__snapshots__/navigation-instruments-azimuth-thruster--in-command-at-setpoint.png +0 -0
  11. package/__snapshots__/navigation-instruments-azimuth-thruster--in-command.png +0 -0
  12. package/__snapshots__/navigation-instruments-azimuth-thruster--loading.png +0 -0
  13. package/__snapshots__/navigation-instruments-azimuth-thruster--off.png +0 -0
  14. package/__snapshots__/navigation-instruments-azimuth-thruster--pod.png +0 -0
  15. package/__snapshots__/navigation-instruments-azimuth-thruster--single-direction-with-propeller.png +0 -0
  16. package/__snapshots__/navigation-instruments-azimuth-thruster--single-direction.png +0 -0
  17. package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--large.png +0 -0
  18. package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--medium.png +0 -0
  19. package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--no-command.png +0 -0
  20. package/__snapshots__/navigation-instruments-compass--primary.png +0 -0
  21. package/__snapshots__/navigation-instruments-compass-flat--primary.png +0 -0
  22. package/__snapshots__/navigation-instruments-compass-flat--with-fov-indicator.png +0 -0
  23. package/__snapshots__/navigation-instruments-main-engine--active.png +0 -0
  24. package/__snapshots__/navigation-instruments-main-engine--in-command.png +0 -0
  25. package/__snapshots__/navigation-instruments-main-engine--off.png +0 -0
  26. package/__snapshots__/navigation-instruments-poi-target--primary.png +0 -0
  27. package/__snapshots__/navigation-instruments-rudder--primary.png +0 -0
  28. package/__snapshots__/navigation-instruments-thruster--active-at-setpoint.png +0 -0
  29. package/__snapshots__/navigation-instruments-thruster--active.png +0 -0
  30. package/__snapshots__/navigation-instruments-thruster--in-command-at-setpoint-manual.png +0 -0
  31. package/__snapshots__/navigation-instruments-thruster--in-command-at-setpoint.png +0 -0
  32. package/__snapshots__/navigation-instruments-thruster--in-command-touching.png +0 -0
  33. package/__snapshots__/navigation-instruments-thruster--in-command.png +0 -0
  34. package/__snapshots__/navigation-instruments-thruster--loading.png +0 -0
  35. package/__snapshots__/navigation-instruments-thruster--no-setpoint.png +0 -0
  36. package/__snapshots__/navigation-instruments-thruster--off.png +0 -0
  37. package/__snapshots__/navigation-instruments-thruster--pulling-pod.png +0 -0
  38. package/__snapshots__/navigation-instruments-thruster--pushing-pod.png +0 -0
  39. package/__snapshots__/navigation-instruments-thruster--single-direction-single-sided-with-advice.png +0 -0
  40. package/__snapshots__/navigation-instruments-thruster--single-direction.png +0 -0
  41. package/__snapshots__/navigation-instruments-thruster--single-sided-with-advice.png +0 -0
  42. package/__snapshots__/navigation-instruments-thruster--single-sided.png +0 -0
  43. package/__snapshots__/navigation-instruments-thruster--tunnel.png +0 -0
  44. package/custom-elements.json +19 -64
  45. package/dist/automation/automation-tank/automation-tank.d.ts +7 -0
  46. package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
  47. package/dist/automation/automation-tank/automation-tank.js.map +1 -1
  48. package/dist/navigation-instruments/compass/compass.d.ts +7 -6
  49. package/dist/navigation-instruments/compass/compass.d.ts.map +1 -1
  50. package/dist/navigation-instruments/compass/compass.js +12 -33
  51. package/dist/navigation-instruments/compass/compass.js.map +1 -1
  52. package/dist/navigation-instruments/compass-flat/compass-flat.css.js +2 -1
  53. package/dist/navigation-instruments/compass-flat/compass-flat.css.js.map +1 -1
  54. package/dist/navigation-instruments/compass-flat/compass-flat.d.ts +6 -0
  55. package/dist/navigation-instruments/compass-flat/compass-flat.d.ts.map +1 -1
  56. package/dist/navigation-instruments/compass-flat/compass-flat.js +10 -2
  57. package/dist/navigation-instruments/compass-flat/compass-flat.js.map +1 -1
  58. package/dist/storybook-util.d.ts +1 -1
  59. package/dist/storybook-util.d.ts.map +1 -1
  60. package/dist/storybook-util.js +3 -28
  61. package/dist/storybook-util.js.map +1 -1
  62. package/package.json +14 -13
  63. package/src/automation/automation-button/automation-button.stories.ts +4 -0
  64. package/src/automation/automation-tank/automation-tank.ts +7 -0
  65. package/src/components/top-bar/top-bar.stories.ts +1 -0
  66. package/src/icons.stories.ts +3 -0
  67. package/src/navigation-instruments/azimuth-thruster/azimuth-thruster.stories.ts +3 -3
  68. package/src/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.stories.ts +3 -3
  69. package/src/navigation-instruments/compass/compass.stories.ts +3 -3
  70. package/src/navigation-instruments/compass/compass.ts +17 -27
  71. package/src/navigation-instruments/compass-flat/compass-flat.css +2 -1
  72. package/src/navigation-instruments/compass-flat/compass-flat.stories.ts +5 -4
  73. package/src/navigation-instruments/compass-flat/compass-flat.ts +13 -2
  74. package/src/navigation-instruments/main-engine/main-engine.stories.ts +3 -3
  75. package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.stories.ts +2 -3
  76. package/src/navigation-instruments/poi-line/poi-line.stories.ts +1 -4
  77. package/src/navigation-instruments/poi-target/poi-target.stories.ts +1 -3
  78. package/src/navigation-instruments/rudder/rudder.stories.ts +3 -3
  79. package/src/navigation-instruments/thruster/thruster.stories.ts +3 -3
  80. package/src/storybook-util.ts +4 -29
@@ -90,39 +90,14 @@ export function crossDecorator(story: () => unknown): HTMLTemplateResult {
90
90
 
91
91
  export function widthDecorator(
92
92
  story: () => unknown,
93
- context: {args: {width: number}}
93
+ context: {args: {width: number; height?: number}}
94
94
  ): HTMLTemplateResult {
95
+ const width = context.args.width;
96
+ const height = context.args.height ?? width;
95
97
  return html` <div
96
98
  class="wrapper"
97
- style="width: ${context.args.width}px; height: ${context.args.width}px"
99
+ style="width: ${width}px; height: ${height}px"
98
100
  >
99
101
  ${story()}
100
102
  </div>`;
101
103
  }
102
-
103
- export function beta6Decorator(story: () => unknown): HTMLTemplateResult {
104
- return html`
105
- <div
106
- style="
107
- border-radius: 100px;
108
- background-color: var(--instrument-enhanced-primary-color);
109
- color: var(--instrument-frame-primary-color);
110
- height: 32px;
111
- padding: 0 24px;
112
- box-sizing: border-box;
113
- width: fit-content;
114
- display: grid;
115
- place-content: center;
116
- font-family: 'Noto Sans';
117
- font-size: 16px;
118
- font-style: normal;
119
- font-weight: 570;
120
- line-height: 24px; /* 150% */
121
- margin-bottom: 64px;
122
- "
123
- >
124
- Beta 6.0
125
- </div>
126
- ${story()}
127
- `;
128
- }