@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.
- package/.storybook/main.ts +2 -1
- package/.storybook/manager.ts +16 -0
- package/.storybook/preview.ts +0 -1
- package/__snapshots__/building-blocks-poi-graphic-line--primary.png +0 -0
- package/__snapshots__/building-blocks-poi-line--primary.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--active-at-setpoint.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--active-no-setpoint.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--active.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--in-command-at-setpoint-disable-auto-setpoint.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--in-command-at-setpoint.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--in-command.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--loading.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--off.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--pod.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--single-direction-with-propeller.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster--single-direction.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--large.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--medium.png +0 -0
- package/__snapshots__/navigation-instruments-azimuth-thruster-labeled--no-command.png +0 -0
- package/__snapshots__/navigation-instruments-compass--primary.png +0 -0
- package/__snapshots__/navigation-instruments-compass-flat--primary.png +0 -0
- package/__snapshots__/navigation-instruments-compass-flat--with-fov-indicator.png +0 -0
- package/__snapshots__/navigation-instruments-main-engine--active.png +0 -0
- package/__snapshots__/navigation-instruments-main-engine--in-command.png +0 -0
- package/__snapshots__/navigation-instruments-main-engine--off.png +0 -0
- package/__snapshots__/navigation-instruments-poi-target--primary.png +0 -0
- package/__snapshots__/navigation-instruments-rudder--primary.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--active-at-setpoint.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--active.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--in-command-at-setpoint-manual.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--in-command-at-setpoint.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--in-command-touching.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--in-command.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--loading.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--no-setpoint.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--off.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--pulling-pod.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--pushing-pod.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--single-direction-single-sided-with-advice.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--single-direction.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--single-sided-with-advice.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--single-sided.png +0 -0
- package/__snapshots__/navigation-instruments-thruster--tunnel.png +0 -0
- package/custom-elements.json +19 -64
- package/dist/automation/automation-tank/automation-tank.d.ts +7 -0
- package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/navigation-instruments/compass/compass.d.ts +7 -6
- package/dist/navigation-instruments/compass/compass.d.ts.map +1 -1
- package/dist/navigation-instruments/compass/compass.js +12 -33
- package/dist/navigation-instruments/compass/compass.js.map +1 -1
- package/dist/navigation-instruments/compass-flat/compass-flat.css.js +2 -1
- package/dist/navigation-instruments/compass-flat/compass-flat.css.js.map +1 -1
- package/dist/navigation-instruments/compass-flat/compass-flat.d.ts +6 -0
- package/dist/navigation-instruments/compass-flat/compass-flat.d.ts.map +1 -1
- package/dist/navigation-instruments/compass-flat/compass-flat.js +10 -2
- package/dist/navigation-instruments/compass-flat/compass-flat.js.map +1 -1
- package/dist/storybook-util.d.ts +1 -1
- package/dist/storybook-util.d.ts.map +1 -1
- package/dist/storybook-util.js +3 -28
- package/dist/storybook-util.js.map +1 -1
- package/package.json +14 -13
- package/src/automation/automation-button/automation-button.stories.ts +4 -0
- package/src/automation/automation-tank/automation-tank.ts +7 -0
- package/src/components/top-bar/top-bar.stories.ts +1 -0
- package/src/icons.stories.ts +3 -0
- package/src/navigation-instruments/azimuth-thruster/azimuth-thruster.stories.ts +3 -3
- package/src/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.stories.ts +3 -3
- package/src/navigation-instruments/compass/compass.stories.ts +3 -3
- package/src/navigation-instruments/compass/compass.ts +17 -27
- package/src/navigation-instruments/compass-flat/compass-flat.css +2 -1
- package/src/navigation-instruments/compass-flat/compass-flat.stories.ts +5 -4
- package/src/navigation-instruments/compass-flat/compass-flat.ts +13 -2
- package/src/navigation-instruments/main-engine/main-engine.stories.ts +3 -3
- package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.stories.ts +2 -3
- package/src/navigation-instruments/poi-line/poi-line.stories.ts +1 -4
- package/src/navigation-instruments/poi-target/poi-target.stories.ts +1 -3
- package/src/navigation-instruments/rudder/rudder.stories.ts +3 -3
- package/src/navigation-instruments/thruster/thruster.stories.ts +3 -3
- package/src/storybook-util.ts +4 -29
package/src/storybook-util.ts
CHANGED
@@ -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: ${
|
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
|
-
}
|