@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.118 → 2.0.0-next.120
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.
- package/.storybook/manager.ts +18 -16
- package/bundle/openbridge-webcomponents.bundle.js +96 -0
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +46 -1
- package/dist/automation/vertical-line/vertical-line.d.ts +6 -0
- package/dist/automation/vertical-line/vertical-line.d.ts.map +1 -1
- package/dist/automation/vertical-line/vertical-line.js.map +1 -1
- package/dist/components/alert-button/alert-button.d.ts +3 -0
- package/dist/components/alert-button/alert-button.d.ts.map +1 -1
- package/dist/components/alert-button/alert-button.js +12 -0
- package/dist/components/alert-button/alert-button.js.map +1 -1
- package/dist/components/alert-frame/alert-frame.css.js +1 -0
- package/dist/components/alert-frame/alert-frame.css.js.map +1 -1
- package/dist/components/alert-frame/alert-frame.d.ts +5 -0
- package/dist/components/alert-frame/alert-frame.d.ts.map +1 -1
- package/dist/components/alert-frame/alert-frame.js +24 -0
- package/dist/components/alert-frame/alert-frame.js.map +1 -1
- package/dist/components/alert-icon/alert-icon.d.ts +5 -0
- package/dist/components/alert-icon/alert-icon.d.ts.map +1 -1
- package/dist/components/alert-icon/alert-icon.js +26 -0
- package/dist/components/alert-icon/alert-icon.js.map +1 -1
- package/dist/components/pivot-item-group/pivot-item-group.d.ts +1 -0
- package/dist/components/pivot-item-group/pivot-item-group.d.ts.map +1 -1
- package/dist/components/pivot-item-group/pivot-item-group.js.map +1 -1
- package/dist/openbridge.css +0 -73
- package/dist/palettes/blinking.d.ts +6 -0
- package/dist/palettes/blinking.d.ts.map +1 -0
- package/dist/palettes/blinking.js +44 -0
- package/dist/palettes/blinking.js.map +1 -0
- package/eslint.config.mjs +355 -0
- package/package.json +3 -1
- package/script/eslint-rules.test.ts +230 -0
- package/src/ar/building-blocks/poi-graphic-line/poi-graphic-line.stories.ts +1 -1
- package/src/ar/building-blocks/poi-header/poi-header.stories.ts +1 -1
- package/src/ar/building-blocks/poi-line/poi-line.stories.ts +1 -1
- package/src/ar/building-blocks/poi-pointer/poi-pointer.stories.ts +1 -1
- package/src/ar/building-blocks/poi-selection-frame/poi-selection-frame.stories.ts +1 -1
- package/src/ar/building-blocks/ruler-pointer/ruler-pointer.stories.ts +1 -1
- package/src/ar/chart-object-vessel-button/chart-object-vessel-button.stories.ts +1 -1
- package/src/ar/poi/poi-aton.stories.ts +1 -1
- package/src/ar/poi/poi-data.stories.ts +1 -1
- package/src/ar/poi/poi-vessel.stories.ts +1 -1
- package/src/ar/poi/poi.stories.ts +1 -1
- package/src/ar/poi-button/poi-button-aton.stories.ts +1 -1
- package/src/ar/poi-button/poi-button-data.stories.ts +1 -1
- package/src/ar/poi-button/poi-button-vessel.stories.ts +1 -1
- package/src/ar/poi-button/poi-button.stories.ts +1 -1
- package/src/ar/poi-card/poi-card.stories.ts +1 -1
- package/src/ar/poi-card-header/poi-card-header.stories.ts +1 -1
- package/src/ar/poi-controller/poi-controller.stories.ts +1 -1
- package/src/ar/poi-group/poi-group.stories.ts +1 -1
- package/src/ar/poi-layer/poi-layer.stories.ts +1 -1
- package/src/ar/poi-layer-stack/poi-layer-stack.stories.ts +1 -1
- package/src/ar/poi-object/poi-object-aton.stories.ts +1 -1
- package/src/ar/poi-object/poi-object-data.stories.ts +1 -1
- package/src/ar/poi-object/poi-object-vessel.stories.ts +1 -1
- package/src/ar/poi-object/poi-object.stories.ts +1 -1
- package/src/automation/automation-input-modal/automation-input-modal.stories.ts +1 -1
- package/src/automation/automation-readout/automation-readout.stories.ts +1 -1
- package/src/automation/automation-tank/automation-tank.stories.ts +1 -1
- package/src/automation/bus/bus.stories.ts +1 -1
- package/src/automation/corner-line/corner-line.stories.ts +1 -1
- package/src/automation/direction-line/direction-line.stories.ts +1 -1
- package/src/automation/end-point-line/end-point-line.stories.ts +1 -1
- package/src/automation/horizontal-line/horizontal-line.stories.ts +1 -1
- package/src/automation/line-cross/line-cross.stories.ts +1 -1
- package/src/automation/line-overlap/line-overlap.stories.ts +1 -1
- package/src/automation/three-way-line/three-way-line.stories.ts +1 -1
- package/src/automation/vertical-line/vertical-line.stories.ts +1 -1
- package/src/automation/vertical-line/vertical-line.ts +2 -1
- package/src/bars-graphs/area-graph/area-graph.stories.ts +1 -1
- package/src/bars-graphs/donut-chart/donut-chart.stories.ts +1 -1
- package/src/bars-graphs/line-graph/line-graph.stories.ts +1 -1
- package/src/bars-graphs/pie-chart/pie-chart.stories.ts +1 -1
- package/src/bars-graphs/polar-chart/polar-chart.stories.ts +1 -1
- package/src/bars-graphs/radial-bar-chart/radial-bar-chart.stories.ts +1 -1
- package/src/building-blocks/bar-horizontal/bar-horizontal.stories.ts +1 -1
- package/src/building-blocks/bar-vertical/bar-vertical.stories.ts +1 -1
- package/src/building-blocks/chart-line/chart-line-base.stories.ts +1 -1
- package/src/building-blocks/instrument-radial/instrument-radial.stories.ts +1 -1
- package/src/building-blocks/readout-block/readout-block.stories.ts +1 -1
- package/src/components/advice-floating-item/advice-floating-item.stories.ts +1 -1
- package/src/components/advice-menu-item/advice-menu-item.stories.ts +1 -1
- package/src/components/advice-message-item/advice-message-item.stories.ts +1 -1
- package/src/components/alert-button/alert-button.spec.ts +58 -0
- package/src/components/alert-button/alert-button.ts +16 -0
- package/src/components/alert-frame/alert-frame.css +1 -0
- package/src/components/alert-frame/alert-frame.spec.ts +122 -0
- package/src/components/alert-frame/alert-frame.stories.ts +13 -1
- package/src/components/alert-frame/alert-frame.ts +37 -0
- package/src/components/alert-icon/alert-icon.spec.ts +76 -0
- package/src/components/alert-icon/alert-icon.ts +38 -0
- package/src/components/attachment-list-item/attachment-list-item.stories.ts +1 -1
- package/src/components/audio-output/audio-output.stories.ts +1 -1
- package/src/components/audio-recording-item/audio-recording-item.stories.ts +1 -1
- package/src/components/automation-button-readout-stack/automation-button-readout-stack.stories.ts +1 -1
- package/src/components/badge/badge.stories.ts +1 -1
- package/src/components/calendar/calendar.stories.ts +1 -1
- package/src/components/command-button/command-button.stories.ts +1 -1
- package/src/components/command-menu/command-menu.stories.ts +1 -1
- package/src/components/communication-table/communication-table.stories.ts +1 -1
- package/src/components/context-menu-input/context-menu-input.stories.ts +1 -1
- package/src/components/date-item/date-item.stories.ts +1 -1
- package/src/components/event-item/event-item.stories.ts +1 -1
- package/src/components/event-list/event-list.stories.ts +1 -1
- package/src/components/form-container/form-container.stories.ts +1 -0
- package/src/components/form-footer-container/form-footer-container.stories.ts +1 -0
- package/src/components/form-group/form-group.stories.ts +1 -0
- package/src/components/form-item/form-item.stories.ts +1 -1
- package/src/components/keyboard-full/keyboard-full.stories.ts +1 -1
- package/src/components/keyboard-numeric/keyboard-numeric.stories.ts +1 -1
- package/src/components/menu-button/menu-button.stories.ts +1 -1
- package/src/components/message-menu-item/message-menu-item.stories.ts +1 -1
- package/src/components/notification-badge-button/notification-badge-button.stories.ts +1 -1
- package/src/components/notification-floating-item/notification-floating-item.stories.ts +1 -1
- package/src/components/notification-menu-item/notification-menu-item.stories.ts +1 -1
- package/src/components/notification-message-item/notification-message-item.stories.ts +1 -1
- package/src/components/pivot-item-group/pivot-item-group.ts +1 -0
- package/src/components/rich-button/rich-button.stories.ts +1 -1
- package/src/components/sequence-card/sequence-card.stories.ts +1 -1
- package/src/components/sequence-connector/sequence-connector.stories.ts +1 -1
- package/src/components/sequence-item/sequence-item.stories.ts +1 -0
- package/src/components/sequence-loading-spinner/sequence-loading-spinner.stories.ts +1 -1
- package/src/components/sequence-modal/sequence-modal.stories.ts +1 -1
- package/src/components/sequence-step/sequence-step.stories.ts +1 -0
- package/src/components/sequence-toolbar/sequence-toolbar.stories.ts +1 -0
- package/src/components/slide-button/slide-button.stories.ts +1 -1
- package/src/components/split-button/split-button.stories.ts +1 -1
- package/src/components/status-indicator/status-indicator.stories.ts +1 -1
- package/src/components/table/table.stories.ts +1 -1
- package/src/components/table-header-item/table-header-item.stories.ts +1 -1
- package/src/components/textbox/textbox.stories.ts +1 -1
- package/src/components/title-container/title-container.stories.ts +1 -1
- package/src/components/toggle-button-three-state/toggle-button-three-state.stories.ts +1 -1
- package/src/components/toggletip/toggletip.stories.ts +1 -1
- package/src/components/tree-navigation/tree-navigation.stories.ts +1 -1
- package/src/components/tree-navigation-item/tree-navigation-item.stories.ts +1 -1
- package/src/integration-systems/integration-app-bar/integration-app-bar.stories.ts +1 -1
- package/src/integration-systems/integration-bar/integration-bar.stories.ts +1 -1
- package/src/integration-systems/integration-bar-dropdown/integration-bar-dropdown.stories.ts +1 -1
- package/src/integration-systems/integration-button/integration-button.stories.ts +1 -1
- package/src/integration-systems/integration-dropdown-button/integration-dropdown-button.stories.ts +1 -1
- package/src/integration-systems/integration-fleet-button/integration-fleet-button.stories.ts +1 -1
- package/src/integration-systems/integration-tabs/integration-tabs.stories.ts +1 -1
- package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.stories.ts +1 -1
- package/src/integration-systems/integration-vessel-selector/integration-vessel-selector.stories.ts +1 -1
- package/src/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.stories.ts +1 -1
- package/src/navigation-instruments/current/current.stories.ts +1 -1
- package/src/navigation-instruments/draft-trim/draft-trim.stories.ts +1 -1
- package/src/navigation-instruments/gauge-radial-proportional/gauge-radial-proportional.stories.ts +1 -1
- package/src/navigation-instruments/graph-mini/graph-mini.stories.ts +1 -1
- package/src/navigation-instruments/indicator-graph/indicator-graph.stories.ts +1 -1
- package/src/navigation-instruments/instrument-field/instrument-field.stories.ts +1 -1
- package/src/navigation-instruments/pitch-roll-heave/pitch-roll-heave.stories.ts +1 -1
- package/src/navigation-instruments/pitch-roll-yaw/pitch-roll-yaw.stories.ts +1 -1
- package/src/navigation-instruments/position-deviation/position-deviation.stories.ts +1 -1
- package/src/navigation-instruments/readout/readout.stories.ts +1 -1
- package/src/navigation-instruments/readout-list/readout-list.stories.ts +1 -1
- package/src/navigation-instruments/readout-list-item/readout-list-item.stories.ts +1 -1
- package/src/navigation-instruments/speed-arrows/speed-arrows.stories.ts +1 -1
- package/src/navigation-instruments/speed-directions/speed-directions.stories.ts +1 -1
- package/src/navigation-instruments/top-view-propulsion/top-view-propulsion.stories.ts +1 -1
- package/src/navigation-instruments/velocity-projection-plot/velocity-projection-plot.stories.ts +1 -1
- package/src/navigation-instruments/watch/watch.stories.ts +1 -1
- package/src/navigation-instruments/watch-flat/watch-flat.stories.ts +1 -1
- package/src/navigation-instruments/wind-propulsion/wind-propulsion.stories.ts +1 -1
- package/src/pages/alert-detail-page/alert-detail-page.stories.ts +1 -1
- package/src/pages/alert-list-page-small/alert-list-page-small.stories.ts +1 -1
- package/src/palettes/blinking.ts +46 -0
- package/src/palettes/manual.css +0 -42
- package/src/palettes/variables.css +0 -36
- package/vitest.browser.config.ts +4 -2
- package/vitest.config.ts +10 -0
|
@@ -10,7 +10,7 @@ import {WindPropulsionPriorityElement} from './wind-propulsion.js';
|
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof ObcWindPropulsion> = {
|
|
12
12
|
title: 'Instruments/Wind Propulsion',
|
|
13
|
-
tags: ['autodocs', '6.0'],
|
|
13
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
14
14
|
component: 'obc-wind-propulsion',
|
|
15
15
|
argTypes: {
|
|
16
16
|
forceAngle: {control: {type: 'range', min: -180, max: 180, step: 1}},
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const CRITICAL_PERIOD = 1000; // ms
|
|
2
|
+
const ALARM_PERIOD = 2000; // ms
|
|
3
|
+
const WARNING_PERIOD = 4000; // ms
|
|
4
|
+
const LOW_PERIOD = 8000; // ms
|
|
5
|
+
|
|
6
|
+
function blinkingInstall(
|
|
7
|
+
el: HTMLElement,
|
|
8
|
+
period: number,
|
|
9
|
+
label: string
|
|
10
|
+
): () => void {
|
|
11
|
+
const anim = el.animate(
|
|
12
|
+
[
|
|
13
|
+
{[label + '-on']: 1, [label + '-off']: 0},
|
|
14
|
+
{[label + '-on']: 0, [label + '-off']: 1},
|
|
15
|
+
],
|
|
16
|
+
{duration: period, iterations: Infinity, easing: 'steps(2, jump-none)'}
|
|
17
|
+
);
|
|
18
|
+
anim.startTime = 0; // Common time origin for all animations, so they blink in sync.
|
|
19
|
+
return () => anim.cancel();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function blinkingCritical(el: HTMLElement): () => void {
|
|
23
|
+
return blinkingInstall(el, CRITICAL_PERIOD, '--critical-blink');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function blinkingAlarm(el: HTMLElement): () => void {
|
|
27
|
+
return blinkingInstall(el, ALARM_PERIOD, '--alarm-blink');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function blinkingWarning(el: HTMLElement): () => void {
|
|
31
|
+
return blinkingInstall(el, WARNING_PERIOD, '--warning-blink');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function blinkingLow(el: HTMLElement): () => void {
|
|
35
|
+
return blinkingInstall(el, LOW_PERIOD, '--low-blink');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function blinkingAll(el: HTMLElement): () => void {
|
|
39
|
+
const animes = [
|
|
40
|
+
blinkingCritical(el),
|
|
41
|
+
blinkingAlarm(el),
|
|
42
|
+
blinkingWarning(el),
|
|
43
|
+
blinkingLow(el),
|
|
44
|
+
];
|
|
45
|
+
return () => animes.forEach((anim) => anim());
|
|
46
|
+
}
|
package/src/palettes/manual.css
CHANGED
|
@@ -121,45 +121,3 @@
|
|
|
121
121
|
inherits: true;
|
|
122
122
|
initial-value: 0;
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
@keyframes critical-blink {
|
|
126
|
-
0% {
|
|
127
|
-
--critical-blink-on: 1;
|
|
128
|
-
--critical-blink-off: 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
50% {
|
|
132
|
-
--critical-blink-on: 0;
|
|
133
|
-
--critical-blink-off: 1;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
100% {
|
|
137
|
-
--critical-blink-on: 1;
|
|
138
|
-
--critical-blink-off: 0;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@keyframes low-blink {
|
|
143
|
-
0% {
|
|
144
|
-
--low-blink-on: 1;
|
|
145
|
-
--low-blink-off: 0;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
50% {
|
|
149
|
-
--low-blink-on: 0;
|
|
150
|
-
--low-blink-off: 1;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
100% {
|
|
154
|
-
--low-blink-on: 1;
|
|
155
|
-
--low-blink-off: 0;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
:root {
|
|
160
|
-
animation:
|
|
161
|
-
warning-blink 4s infinite,
|
|
162
|
-
critical-blink 1s infinite,
|
|
163
|
-
low-blink 8s infinite;
|
|
164
|
-
animation-timing-function: steps(1);
|
|
165
|
-
}
|
|
@@ -14740,37 +14740,6 @@
|
|
|
14740
14740
|
initial-value: 0;
|
|
14741
14741
|
}
|
|
14742
14742
|
|
|
14743
|
-
@keyframes warning-blink {
|
|
14744
|
-
0% {
|
|
14745
|
-
--warning-blink-on: 1;
|
|
14746
|
-
--warning-blink-off: 0;
|
|
14747
|
-
--alarm-blink-on: 1;
|
|
14748
|
-
--alarm-blink-off: 0;
|
|
14749
|
-
}
|
|
14750
|
-
|
|
14751
|
-
25% {
|
|
14752
|
-
--alarm-blink-on: 0;
|
|
14753
|
-
--alarm-blink-off: 1;
|
|
14754
|
-
}
|
|
14755
|
-
|
|
14756
|
-
50% {
|
|
14757
|
-
--warning-blink-on: 0;
|
|
14758
|
-
--warning-blink-off: 1;
|
|
14759
|
-
--alarm-blink-on: 1;
|
|
14760
|
-
--alarm-blink-off: 0;
|
|
14761
|
-
}
|
|
14762
|
-
|
|
14763
|
-
75% {
|
|
14764
|
-
--alarm-blink-on: 0;
|
|
14765
|
-
--alarm-blink-off: 1;
|
|
14766
|
-
}
|
|
14767
|
-
|
|
14768
|
-
100% {
|
|
14769
|
-
--warning-blink-on: 1;
|
|
14770
|
-
--warning-blink-off: 0;
|
|
14771
|
-
}
|
|
14772
|
-
}
|
|
14773
|
-
|
|
14774
14743
|
@property --warning-blink-on {
|
|
14775
14744
|
syntax: "<number>";
|
|
14776
14745
|
inherits: true;
|
|
@@ -14782,8 +14751,3 @@
|
|
|
14782
14751
|
inherits: true;
|
|
14783
14752
|
initial-value: 0;
|
|
14784
14753
|
}
|
|
14785
|
-
|
|
14786
|
-
:root {
|
|
14787
|
-
animation: warning-blink 4s infinite;
|
|
14788
|
-
animation-timing-function: steps(1);
|
|
14789
|
-
}
|
package/vitest.browser.config.ts
CHANGED
|
@@ -3,8 +3,10 @@ import {playwright} from '@vitest/browser-playwright';
|
|
|
3
3
|
|
|
4
4
|
export default defineConfig({
|
|
5
5
|
test: {
|
|
6
|
-
//
|
|
7
|
-
|
|
6
|
+
// Browser tests live in src/. `script/` holds node-only tests for the
|
|
7
|
+
// repo's own tooling (the custom ESLint rules) — they import node
|
|
8
|
+
// packages and cannot run in Chromium; `npm run test:rules` runs those.
|
|
9
|
+
exclude: ['dist/**', 'node_modules/**', 'script/**'],
|
|
8
10
|
browser: {
|
|
9
11
|
enabled: true,
|
|
10
12
|
provider: playwright(),
|
package/vitest.config.ts
CHANGED
|
@@ -52,6 +52,16 @@ export default defineConfig({
|
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
|
+
{
|
|
56
|
+
// Node-side unit tests for the repo's own tooling (the custom ESLint
|
|
57
|
+
// rules). Kept out of the `storybook` project so it stays browser-only.
|
|
58
|
+
extends: true,
|
|
59
|
+
test: {
|
|
60
|
+
name: 'rules',
|
|
61
|
+
environment: 'node',
|
|
62
|
+
include: ['script/**/*.test.ts'],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
55
65
|
],
|
|
56
66
|
},
|
|
57
67
|
});
|