@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.118 → 2.0.0-next.119
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.map +1 -1
- package/custom-elements.json +2 -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/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/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-frame/alert-frame.stories.ts +1 -1
- 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/vitest.browser.config.ts +4 -2
- package/vitest.config.ts +10 -0
package/src/integration-systems/integration-fleet-button/integration-fleet-button.stories.ts
CHANGED
|
@@ -6,7 +6,7 @@ import '../../icons/icon-placeholder.js';
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof ObcIntegrationFleetButton> = {
|
|
8
8
|
title: 'Integration Systems/Fleet Button',
|
|
9
|
-
tags: ['
|
|
9
|
+
tags: ['experimental'],
|
|
10
10
|
component: 'obc-integration-fleet-button',
|
|
11
11
|
args: {
|
|
12
12
|
fleetName: 'Fleet Name',
|
|
@@ -117,7 +117,7 @@ const renderContent = () => html`
|
|
|
117
117
|
const meta: Meta<ObcIntegrationVesselMenu> = {
|
|
118
118
|
title: 'Integration Systems/Integration Vessel Menu',
|
|
119
119
|
component: 'obc-integration-vessel-menu',
|
|
120
|
-
tags: ['
|
|
120
|
+
tags: ['experimental'],
|
|
121
121
|
args: {hasActions: true, hasAlertList: true, hasContent: true},
|
|
122
122
|
argTypes: {
|
|
123
123
|
hasActions: {
|
package/src/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.stories.ts
CHANGED
|
@@ -49,7 +49,7 @@ function renderAzimuthThrusterLabeled(
|
|
|
49
49
|
|
|
50
50
|
const meta: Meta<typeof ObcAzimuthThrusterLabeled> = {
|
|
51
51
|
title: 'Instruments/Azimuth Thruster Labeled',
|
|
52
|
-
tags: ['autodocs', '6.0'],
|
|
52
|
+
tags: ['autodocs', '6.0', 'deprecated'],
|
|
53
53
|
component: 'obc-azimuth-thruster-labeled',
|
|
54
54
|
render: (args) => renderAzimuthThrusterLabeled(args),
|
|
55
55
|
args: {
|
|
@@ -7,7 +7,7 @@ import {topVessels} from '../watch/vessels/storybook-helper.js';
|
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof ObcCurrent> = {
|
|
9
9
|
title: 'Instruments/Current',
|
|
10
|
-
tags: ['autodocs', '
|
|
10
|
+
tags: ['autodocs', 'experimental'],
|
|
11
11
|
component: 'obc-current',
|
|
12
12
|
decorators: [widthDecorator],
|
|
13
13
|
args: {
|
|
@@ -8,7 +8,7 @@ import {sideVessels} from '../watch/vessels/storybook-helper.js';
|
|
|
8
8
|
|
|
9
9
|
const meta: Meta<typeof ObcDraftTrim> = {
|
|
10
10
|
title: 'Instruments/Draft Trim',
|
|
11
|
-
tags: ['autodocs', '6.0', '
|
|
11
|
+
tags: ['autodocs', '6.0', 'experimental'],
|
|
12
12
|
component: 'obc-draft-trim',
|
|
13
13
|
args: {
|
|
14
14
|
width: 384,
|
package/src/navigation-instruments/gauge-radial-proportional/gauge-radial-proportional.stories.ts
CHANGED
|
@@ -20,7 +20,7 @@ type GaugeRadialProportionalStoryArgs = Partial<ObcGaugeRadialProportional> & {
|
|
|
20
20
|
|
|
21
21
|
const meta = {
|
|
22
22
|
title: 'Instruments/Gauge Radial Proportional',
|
|
23
|
-
tags: ['autodocs', '
|
|
23
|
+
tags: ['autodocs', 'skip-test', 'experimental'],
|
|
24
24
|
component: 'obc-gauge-radial-proportional',
|
|
25
25
|
decorators: [widthDecorator],
|
|
26
26
|
args: {
|
|
@@ -8,7 +8,7 @@ import './indicator-graph.js';
|
|
|
8
8
|
import {widthDecorator} from '../../storybook-util.js';
|
|
9
9
|
const meta: Meta<typeof ObcIndicatorGraph> = {
|
|
10
10
|
title: 'Bars and Graphs/Indicator Graph',
|
|
11
|
-
tags: ['6.0', 'autodocs'],
|
|
11
|
+
tags: ['6.0', 'autodocs', 'beta'],
|
|
12
12
|
component: 'obc-indicator-graph',
|
|
13
13
|
decorators: [widthDecorator],
|
|
14
14
|
args: {
|
|
@@ -6,7 +6,7 @@ import '../../components/navigation-item/navigation-item.js';
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof ObcInstrumentField> = {
|
|
8
8
|
title: 'Instruments/Instrument Field',
|
|
9
|
-
tags: ['autodocs', '6.0'],
|
|
9
|
+
tags: ['autodocs', '6.0', 'deprecated'],
|
|
10
10
|
component: 'obc-instrument-field',
|
|
11
11
|
args: {
|
|
12
12
|
setpoint: 0,
|
|
@@ -20,7 +20,7 @@ const historySamples: PitchRollSample[] = Array.from({length: 60}, (_, i) => {
|
|
|
20
20
|
|
|
21
21
|
const meta: Meta<typeof ObcPitchRollYaw> = {
|
|
22
22
|
title: 'Instruments/Pitch Roll Yaw',
|
|
23
|
-
tags: ['autodocs', '6.0', '
|
|
23
|
+
tags: ['autodocs', '6.0', 'experimental'],
|
|
24
24
|
component: 'obc-pitch-roll-yaw',
|
|
25
25
|
args: {
|
|
26
26
|
width: 400,
|
|
@@ -9,7 +9,7 @@ import {widthDecorator} from '../../storybook-util.js';
|
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof ObcPositionDeviation> = {
|
|
11
11
|
title: 'Instruments/Position Deviation',
|
|
12
|
-
tags: ['autodocs', '
|
|
12
|
+
tags: ['autodocs', 'experimental'],
|
|
13
13
|
component: 'obc-position-deviation',
|
|
14
14
|
args: {
|
|
15
15
|
width: 400,
|
|
@@ -301,7 +301,7 @@ function argsToOptions(args: ReadoutStoryArgs): StoryOptions {
|
|
|
301
301
|
|
|
302
302
|
const meta = {
|
|
303
303
|
title: 'Instruments/Readout',
|
|
304
|
-
tags: ['autodocs', '6.0', '
|
|
304
|
+
tags: ['autodocs', '6.0', 'experimental'],
|
|
305
305
|
component: 'obc-readout',
|
|
306
306
|
decorators: [centeredCanvasDecorator],
|
|
307
307
|
render: (args) =>
|
|
@@ -90,7 +90,7 @@ function renderList(rows: Row[], showDebugOverlay: boolean) {
|
|
|
90
90
|
|
|
91
91
|
const meta = {
|
|
92
92
|
title: 'Instruments/Readout List',
|
|
93
|
-
tags: ['autodocs', '6.0', '
|
|
93
|
+
tags: ['autodocs', '6.0', 'experimental'],
|
|
94
94
|
component: 'obc-readout-list',
|
|
95
95
|
args: {
|
|
96
96
|
showDebugOverlay: true,
|
|
@@ -307,7 +307,7 @@ function argsToOptions(args: ReadoutListItemStoryArgs): StoryOptions {
|
|
|
307
307
|
|
|
308
308
|
const meta = {
|
|
309
309
|
title: 'Instruments/Readout List Item',
|
|
310
|
-
tags: ['autodocs', '6.0', '
|
|
310
|
+
tags: ['autodocs', '6.0', 'experimental'],
|
|
311
311
|
component: 'obc-readout-list-item',
|
|
312
312
|
decorators: [centeredCanvasDecorator],
|
|
313
313
|
render: (args) =>
|
|
@@ -11,7 +11,7 @@ import {TickmarkStyle} from '../watch/tickmark.js';
|
|
|
11
11
|
|
|
12
12
|
const meta: Meta<typeof ObcTopViewPropulsion> = {
|
|
13
13
|
title: 'Instruments/Top View Propulsion',
|
|
14
|
-
tags: ['autodocs', '6.0', '
|
|
14
|
+
tags: ['autodocs', '6.0', 'experimental'],
|
|
15
15
|
component: 'obc-top-view-propulsion',
|
|
16
16
|
args: {
|
|
17
17
|
width: 384,
|
package/src/navigation-instruments/velocity-projection-plot/velocity-projection-plot.stories.ts
CHANGED
|
@@ -19,7 +19,7 @@ function scaleGeneratedDataPoints(dataPoints: VelocityProjectionDatapoint[]) {
|
|
|
19
19
|
|
|
20
20
|
const meta: Meta<typeof ObcVelocityProjectionPlot> = {
|
|
21
21
|
title: 'Instruments/Velocity Projection',
|
|
22
|
-
tags: ['autodocs', '6.0'],
|
|
22
|
+
tags: ['autodocs', '6.0', 'experimental'],
|
|
23
23
|
component: 'obc-velocity-projection-plot',
|
|
24
24
|
decorators: [widthDecorator],
|
|
25
25
|
args: {
|
|
@@ -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}},
|
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
|
});
|