@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
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import {describe, expect, it} from 'vitest';
|
|
2
|
+
import {RuleTester} from 'eslint';
|
|
3
|
+
import tsParser from '@typescript-eslint/parser';
|
|
4
|
+
|
|
5
|
+
// @ts-expect-error - eslint.config.mjs is untyped JavaScript.
|
|
6
|
+
import {__testables} from '../eslint.config.mjs';
|
|
7
|
+
|
|
8
|
+
const {openbridgePlugin, extractComponents, pinComponentIndex} = __testables;
|
|
9
|
+
|
|
10
|
+
// The story rule resolves meta.component through a cross-file index. Pin it so
|
|
11
|
+
// the tests describe the rule's behaviour rather than the current state of src/.
|
|
12
|
+
pinComponentIndex({
|
|
13
|
+
'obc-stable-thing': ['stable'],
|
|
14
|
+
'obc-beta-thing': ['beta'],
|
|
15
|
+
'obc-experimental-thing': ['experimental'],
|
|
16
|
+
'obc-deprecated-thing': ['deprecated'],
|
|
17
|
+
'obc-untagged-thing': [],
|
|
18
|
+
'obc-ambiguous-thing': ['beta', 'deprecated'],
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const ruleTester = new RuleTester({
|
|
22
|
+
languageOptions: {
|
|
23
|
+
parser: tsParser,
|
|
24
|
+
ecmaVersion: 2020,
|
|
25
|
+
sourceType: 'module',
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
function story(body: string) {
|
|
30
|
+
return `const meta = {\n${body}\n} satisfies Meta;\nexport default meta;\n`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
describe('extractComponents', () => {
|
|
34
|
+
it('reads the lifecycle tag from a class JSDoc block', () => {
|
|
35
|
+
expect(
|
|
36
|
+
extractComponents(
|
|
37
|
+
`/**\n * Does a thing.\n * @stable\n */\n@customElement('obc-thing')\nexport class Thing {}`
|
|
38
|
+
)
|
|
39
|
+
).toMatchObject([{tag: 'obc-thing', tags: ['stable']}]);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('tolerates a blank line between the JSDoc and the decorator', () => {
|
|
43
|
+
expect(
|
|
44
|
+
extractComponents(
|
|
45
|
+
`/**\n * @beta\n */\n\n@customElement('obc-thing')\nexport class Thing {}`
|
|
46
|
+
)
|
|
47
|
+
).toMatchObject([{tag: 'obc-thing', tags: ['beta']}]);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('ignores a tag in a plain block comment, which is not JSDoc', () => {
|
|
51
|
+
expect(
|
|
52
|
+
extractComponents(
|
|
53
|
+
`/* Thing\n * @deprecated\n */\n@customElement('obc-thing')\nexport class Thing {}`
|
|
54
|
+
)
|
|
55
|
+
).toMatchObject([{tag: 'obc-thing', tags: []}]);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it('does not stretch an earlier JSDoc block across intervening code', () => {
|
|
59
|
+
expect(
|
|
60
|
+
extractComponents(
|
|
61
|
+
`/**\n * @stable\n */\nexport enum Size {}\n\n/* Thing */\n@customElement('obc-thing')\nexport class Thing {}`
|
|
62
|
+
)
|
|
63
|
+
).toMatchObject([{tag: 'obc-thing', tags: []}]);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('ignores a decorator written inside a JSDoc code fence', () => {
|
|
67
|
+
expect(
|
|
68
|
+
extractComponents(
|
|
69
|
+
`/**\n * \`\`\`js\n * @customElement('my-element')\n * \`\`\`\n */\nexport const customElement = () => {};`
|
|
70
|
+
)
|
|
71
|
+
).toEqual([]);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
it('reports every lifecycle tag when a class declares more than one', () => {
|
|
75
|
+
expect(
|
|
76
|
+
extractComponents(
|
|
77
|
+
`/**\n * @beta\n * @deprecated\n */\n@customElement('obc-thing')\nexport class Thing {}`
|
|
78
|
+
)
|
|
79
|
+
).toMatchObject([{tag: 'obc-thing', tags: ['beta', 'deprecated']}]);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('finds several components in one file', () => {
|
|
83
|
+
expect(
|
|
84
|
+
extractComponents(
|
|
85
|
+
`/**\n * @stable\n */\n@customElement('obc-a')\nexport class A {}\n\n/**\n * @beta\n */\n@customElement('obc-b')\nexport class B {}`
|
|
86
|
+
).map((component: {tag: string; tags: string[]}) => [
|
|
87
|
+
component.tag,
|
|
88
|
+
component.tags,
|
|
89
|
+
])
|
|
90
|
+
).toEqual([
|
|
91
|
+
['obc-a', ['stable']],
|
|
92
|
+
['obc-b', ['beta']],
|
|
93
|
+
]);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
describe('openbridge/component-lifecycle-tag', () => {
|
|
98
|
+
it('accepts and rejects the right shapes', () => {
|
|
99
|
+
ruleTester.run(
|
|
100
|
+
'component-lifecycle-tag',
|
|
101
|
+
openbridgePlugin.rules['component-lifecycle-tag'],
|
|
102
|
+
{
|
|
103
|
+
valid: [
|
|
104
|
+
`/**\n * @stable\n */\n@customElement('obc-thing')\nexport class Thing {}`,
|
|
105
|
+
`/**\n * @deprecated\n */\n@customElement('obc-thing')\nexport class Thing {}`,
|
|
106
|
+
`export class NotAComponent {}`,
|
|
107
|
+
],
|
|
108
|
+
invalid: [
|
|
109
|
+
{
|
|
110
|
+
code: `/**\n * Does a thing.\n */\n@customElement('obc-thing')\nexport class Thing {}`,
|
|
111
|
+
errors: [{message: /has no lifecycle tag/ as unknown as string}],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
code: `@customElement('obc-thing')\nexport class Thing {}`,
|
|
115
|
+
errors: [{message: /has no lifecycle tag/ as unknown as string}],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
code: `/**\n * @beta\n * @deprecated\n */\n@customElement('obc-thing')\nexport class Thing {}`,
|
|
119
|
+
errors: [
|
|
120
|
+
{
|
|
121
|
+
message:
|
|
122
|
+
/declares more than one lifecycle tag/ as unknown as string,
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
describe('openbridge/story-lifecycle-tags', () => {
|
|
133
|
+
it('accepts and fixes the right shapes', () => {
|
|
134
|
+
ruleTester.run(
|
|
135
|
+
'story-lifecycle-tags',
|
|
136
|
+
openbridgePlugin.rules['story-lifecycle-tags'],
|
|
137
|
+
{
|
|
138
|
+
valid: [
|
|
139
|
+
// @stable emits no tag.
|
|
140
|
+
story(` title: 'A/B',\n component: 'obc-stable-thing',`),
|
|
141
|
+
story(
|
|
142
|
+
` title: 'A/B',\n tags: ['autodocs', '6.0'],\n component: 'obc-stable-thing',`
|
|
143
|
+
),
|
|
144
|
+
// Already correct.
|
|
145
|
+
story(
|
|
146
|
+
` title: 'A/B',\n tags: ['autodocs', 'experimental'],\n component: 'obc-experimental-thing',`
|
|
147
|
+
),
|
|
148
|
+
// No meta.component: the pure-function-module pattern.
|
|
149
|
+
story(` title: 'A/B',\n tags: ['autodocs'],`),
|
|
150
|
+
// Unresolvable, or ambiguous, components are the source rule's job.
|
|
151
|
+
story(` title: 'A/B',\n component: 'obc-untagged-thing',`),
|
|
152
|
+
story(` title: 'A/B',\n component: 'obc-ambiguous-thing',`),
|
|
153
|
+
story(` title: 'A/B',\n component: 'obc-unknown-thing',`),
|
|
154
|
+
// A story-level tags array is not meta.tags.
|
|
155
|
+
`const meta = {title: 'A/B', component: 'obc-stable-thing'} satisfies Meta;\nexport const Story = {tags: ['skip-test']};\n`,
|
|
156
|
+
],
|
|
157
|
+
invalid: [
|
|
158
|
+
{
|
|
159
|
+
code: story(
|
|
160
|
+
` title: 'A/B',\n tags: ['autodocs', '6.0'],\n component: 'obc-experimental-thing',`
|
|
161
|
+
),
|
|
162
|
+
output: story(
|
|
163
|
+
` title: 'A/B',\n tags: ['autodocs', '6.0', 'experimental'],\n component: 'obc-experimental-thing',`
|
|
164
|
+
),
|
|
165
|
+
errors: 1,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
// The retired `wip` / `alpha` names are replaced, order preserved.
|
|
169
|
+
code: story(
|
|
170
|
+
` title: 'A/B',\n tags: ['autodocs', 'wip', '6.1'],\n component: 'obc-experimental-thing',`
|
|
171
|
+
),
|
|
172
|
+
output: story(
|
|
173
|
+
` title: 'A/B',\n tags: ['autodocs', '6.1', 'experimental'],\n component: 'obc-experimental-thing',`
|
|
174
|
+
),
|
|
175
|
+
errors: 1,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
code: story(
|
|
179
|
+
` title: 'A/B',\n tags: ['alpha'],\n component: 'obc-beta-thing',`
|
|
180
|
+
),
|
|
181
|
+
output: story(
|
|
182
|
+
` title: 'A/B',\n tags: ['beta'],\n component: 'obc-beta-thing',`
|
|
183
|
+
),
|
|
184
|
+
errors: 1,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
// A @stable component must shed a stale lifecycle tag; the whole
|
|
188
|
+
// property goes when nothing else is left in it.
|
|
189
|
+
code: story(
|
|
190
|
+
` title: 'A/B',\n tags: ['wip'],\n component: 'obc-stable-thing',`
|
|
191
|
+
),
|
|
192
|
+
output: story(` title: 'A/B',\n component: 'obc-stable-thing',`),
|
|
193
|
+
errors: 1,
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
code: story(
|
|
197
|
+
` title: 'A/B',\n tags: ['autodocs', 'wip'],\n component: 'obc-stable-thing',`
|
|
198
|
+
),
|
|
199
|
+
output: story(
|
|
200
|
+
` title: 'A/B',\n tags: ['autodocs'],\n component: 'obc-stable-thing',`
|
|
201
|
+
),
|
|
202
|
+
errors: 1,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
// No tags property at all: one is inserted after title.
|
|
206
|
+
code: story(` title: 'A/B',\n component: 'obc-beta-thing',`),
|
|
207
|
+
output: story(
|
|
208
|
+
` title: 'A/B',\n tags: ['beta'],\n component: 'obc-beta-thing',`
|
|
209
|
+
),
|
|
210
|
+
errors: 1,
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
// No title either: inserted as the first property.
|
|
214
|
+
code: story(` component: 'obc-deprecated-thing',`),
|
|
215
|
+
output: story(
|
|
216
|
+
` tags: ['deprecated'],\n component: 'obc-deprecated-thing',`
|
|
217
|
+
),
|
|
218
|
+
errors: 1,
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
// A plain `const meta = {…}` with no `satisfies` clause.
|
|
222
|
+
code: `const meta = {\n title: 'A/B',\n component: 'obc-deprecated-thing',\n};\nexport default meta;\n`,
|
|
223
|
+
output: `const meta = {\n title: 'A/B',\n tags: ['deprecated'],\n component: 'obc-deprecated-thing',\n};\nexport default meta;\n`,
|
|
224
|
+
errors: 1,
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
});
|
|
230
|
+
});
|
|
@@ -12,7 +12,7 @@ import {crossDecorator} from '../../../storybook-util.js';
|
|
|
12
12
|
import {html} from 'lit';
|
|
13
13
|
const meta: Meta<ObcPoiLine> = {
|
|
14
14
|
title: 'AR/Building Blocks/POI Line',
|
|
15
|
-
tags: ['autodocs'],
|
|
15
|
+
tags: ['autodocs', 'experimental'],
|
|
16
16
|
decorators: [crossDecorator],
|
|
17
17
|
component: 'obc-poi-line',
|
|
18
18
|
argTypes: {
|
|
@@ -9,7 +9,7 @@ import './poi-selection-frame.js';
|
|
|
9
9
|
|
|
10
10
|
const meta: Meta<ObcPoiSelectionFrame> = {
|
|
11
11
|
title: 'AR/Building Blocks/POI Selection Frame',
|
|
12
|
-
tags: ['autodocs', '6.1'],
|
|
12
|
+
tags: ['autodocs', '6.1', 'experimental'],
|
|
13
13
|
component: 'obc-poi-selection-frame',
|
|
14
14
|
args: {
|
|
15
15
|
type: ObcPoiSelectionFrameType.Indicator,
|
|
@@ -101,7 +101,7 @@ const renderPoiAton = (args: ObcPoiAton) => html`
|
|
|
101
101
|
|
|
102
102
|
const meta: Meta<ObcPoiAton> = {
|
|
103
103
|
title: 'AR/POI/POI AtoN',
|
|
104
|
-
tags: ['autodocs'],
|
|
104
|
+
tags: ['autodocs', 'experimental'],
|
|
105
105
|
component: 'obc-poi-aton',
|
|
106
106
|
args: {
|
|
107
107
|
type: ObcPoiType.Line,
|
|
@@ -103,7 +103,7 @@ const renderPoiVessel = (args: ObcPoiVessel) => html`
|
|
|
103
103
|
|
|
104
104
|
const meta: Meta<ObcPoiVessel> = {
|
|
105
105
|
title: 'AR/POI/POI Vessel',
|
|
106
|
-
tags: ['autodocs'],
|
|
106
|
+
tags: ['autodocs', 'experimental'],
|
|
107
107
|
component: 'obc-poi-vessel',
|
|
108
108
|
args: {
|
|
109
109
|
type: ObcPoiType.Line,
|
|
@@ -15,7 +15,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
15
15
|
|
|
16
16
|
const meta: Meta<ObcPoiButtonData> = {
|
|
17
17
|
title: 'AR/POI Button/POI Button Data',
|
|
18
|
-
tags: ['autodocs'],
|
|
18
|
+
tags: ['autodocs', 'experimental'],
|
|
19
19
|
component: 'obc-poi-button-data',
|
|
20
20
|
decorators: [crossDecorator],
|
|
21
21
|
args: {
|
|
@@ -136,7 +136,7 @@ function startOverlappedDataButtonLoop(
|
|
|
136
136
|
|
|
137
137
|
const meta: Meta<ObcPoiButton> = {
|
|
138
138
|
title: 'AR/POI Button/POI Button',
|
|
139
|
-
tags: ['autodocs'],
|
|
139
|
+
tags: ['autodocs', 'experimental'],
|
|
140
140
|
component: 'obc-poi-button',
|
|
141
141
|
decorators: [crossDecorator],
|
|
142
142
|
args: {
|
|
@@ -61,7 +61,7 @@ function renderFixedPlaceholder(text: string = 'Content') {
|
|
|
61
61
|
|
|
62
62
|
const meta: Meta<PoiCardArgs> = {
|
|
63
63
|
title: 'AR/POI Card',
|
|
64
|
-
tags: ['autodocs'],
|
|
64
|
+
tags: ['autodocs', 'experimental'],
|
|
65
65
|
component: 'obc-poi-card',
|
|
66
66
|
args: {
|
|
67
67
|
pointerDirection: PointerDirection.None,
|
|
@@ -18,7 +18,7 @@ interface PoiCardHeaderArgs {
|
|
|
18
18
|
|
|
19
19
|
const meta: Meta<PoiCardHeaderArgs> = {
|
|
20
20
|
title: 'AR/POI Card Header',
|
|
21
|
-
tags: ['autodocs'],
|
|
21
|
+
tags: ['autodocs', 'experimental'],
|
|
22
22
|
component: 'obc-poi-card-header',
|
|
23
23
|
args: {
|
|
24
24
|
variant: ObcPoiCardHeaderVariant.Regular,
|
|
@@ -11,7 +11,7 @@ import '../../icons/icon-beacon-general-east.js';
|
|
|
11
11
|
const meta: Meta = {
|
|
12
12
|
title: 'AR/POI Object/POI Object AtoN',
|
|
13
13
|
component: 'obc-poi-object-aton',
|
|
14
|
-
tags: ['autodocs'],
|
|
14
|
+
tags: ['autodocs', 'experimental'],
|
|
15
15
|
argTypes: {
|
|
16
16
|
type: {
|
|
17
17
|
control: 'select',
|
|
@@ -11,7 +11,7 @@ import '../../icons/icon-vessel-generic-default-filled.js';
|
|
|
11
11
|
const meta: Meta = {
|
|
12
12
|
title: 'AR/POI Object/POI Object Data',
|
|
13
13
|
component: 'obc-poi-object-data',
|
|
14
|
-
tags: ['autodocs'],
|
|
14
|
+
tags: ['autodocs', 'experimental'],
|
|
15
15
|
argTypes: {
|
|
16
16
|
type: {
|
|
17
17
|
control: 'select',
|
|
@@ -12,7 +12,7 @@ import '../../icons/icon-vessel-type-psv-filled.js';
|
|
|
12
12
|
const meta: Meta = {
|
|
13
13
|
title: 'AR/POI Object/POI Object Vessel',
|
|
14
14
|
component: 'obc-poi-object-vessel',
|
|
15
|
-
tags: ['autodocs'],
|
|
15
|
+
tags: ['autodocs', 'experimental'],
|
|
16
16
|
argTypes: {
|
|
17
17
|
type: {
|
|
18
18
|
control: 'select',
|
|
@@ -24,7 +24,7 @@ import {ObcNumberInputFieldTextAlign} from '../../components/number-input-field/
|
|
|
24
24
|
|
|
25
25
|
const meta: Meta<typeof ObcAutomationInputModal> = {
|
|
26
26
|
title: 'Automation/Automation Control',
|
|
27
|
-
tags: ['autodocs'],
|
|
27
|
+
tags: ['autodocs', 'experimental'],
|
|
28
28
|
component: 'obc-automation-input-modal',
|
|
29
29
|
args: {},
|
|
30
30
|
} satisfies Meta<ObcAutomationInputModal>;
|
|
@@ -10,7 +10,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof ObcAutomationReadout> = {
|
|
12
12
|
title: 'Automation/Readouts/Readout',
|
|
13
|
-
tags: ['autodocs'],
|
|
13
|
+
tags: ['autodocs', 'experimental'],
|
|
14
14
|
component: 'obc-automation-readout',
|
|
15
15
|
decorators: [crossDecorator],
|
|
16
16
|
args: {
|
|
@@ -130,7 +130,7 @@ const renderTank = (args: StoryArgs) => renderTankEl(args);
|
|
|
130
130
|
|
|
131
131
|
const meta: Meta<StoryArgs> = {
|
|
132
132
|
title: 'Automation/Tanks/Tank',
|
|
133
|
-
tags: ['autodocs', '6.0'],
|
|
133
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
134
134
|
component: 'obc-automation-tank',
|
|
135
135
|
args: {
|
|
136
136
|
value: 9_000,
|
|
@@ -5,7 +5,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ObcCornerLine> = {
|
|
7
7
|
title: 'Automation/Line/Corner Line',
|
|
8
|
-
tags: ['autodocs'],
|
|
8
|
+
tags: ['autodocs', 'deprecated'],
|
|
9
9
|
decorators: [crossDecorator],
|
|
10
10
|
component: 'obc-corner-line',
|
|
11
11
|
args: {},
|
|
@@ -5,7 +5,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ObcDirectionLine> = {
|
|
7
7
|
title: 'Automation/Line/Direction',
|
|
8
|
-
tags: ['autodocs'],
|
|
8
|
+
tags: ['autodocs', 'deprecated'],
|
|
9
9
|
component: 'obc-direction-line',
|
|
10
10
|
decorators: [crossDecorator],
|
|
11
11
|
args: {},
|
|
@@ -5,7 +5,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ObcEndPointLine> = {
|
|
7
7
|
title: 'Automation/Line/End Point Line',
|
|
8
|
-
tags: ['autodocs'],
|
|
8
|
+
tags: ['autodocs', 'deprecated'],
|
|
9
9
|
component: 'obc-end-point-line',
|
|
10
10
|
decorators: [crossDecorator],
|
|
11
11
|
argTypes: {
|
|
@@ -5,7 +5,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ObcHorizontalLine> = {
|
|
7
7
|
title: 'Automation/Line/Horizontal Line',
|
|
8
|
-
tags: ['autodocs'],
|
|
8
|
+
tags: ['autodocs', 'deprecated'],
|
|
9
9
|
component: 'obc-horizontal-line',
|
|
10
10
|
decorators: [crossDecorator],
|
|
11
11
|
argTypes: {
|
|
@@ -5,7 +5,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ObcLineCross> = {
|
|
7
7
|
title: 'Automation/Line/Cross',
|
|
8
|
-
tags: ['autodocs'],
|
|
8
|
+
tags: ['autodocs', 'deprecated'],
|
|
9
9
|
component: 'obc-line-cross',
|
|
10
10
|
decorators: [crossDecorator],
|
|
11
11
|
argTypes: {
|
|
@@ -5,7 +5,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ObcLineOverlap> = {
|
|
7
7
|
title: 'Automation/Line/Overlap',
|
|
8
|
-
tags: ['autodocs'],
|
|
8
|
+
tags: ['autodocs', 'deprecated'],
|
|
9
9
|
component: 'obc-line-overlap',
|
|
10
10
|
args: {},
|
|
11
11
|
decorators: [crossDecorator],
|
|
@@ -5,7 +5,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ObcThreeWayLine> = {
|
|
7
7
|
title: 'Automation/Line/Three Way Line',
|
|
8
|
-
tags: ['autodocs'],
|
|
8
|
+
tags: ['autodocs', 'deprecated'],
|
|
9
9
|
component: 'obc-three-way-line',
|
|
10
10
|
decorators: [crossDecorator],
|
|
11
11
|
argTypes: {
|
|
@@ -6,7 +6,7 @@ import {crossDecorator} from '../../storybook-util.js';
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof ObcVerticalLine> = {
|
|
8
8
|
title: 'Automation/Line/Vertical Line',
|
|
9
|
-
tags: ['autodocs'],
|
|
9
|
+
tags: ['autodocs', 'deprecated'],
|
|
10
10
|
component: 'obc-vertical-line',
|
|
11
11
|
argTypes: {
|
|
12
12
|
medium: {
|
|
@@ -3,7 +3,8 @@ import {property} from 'lit/decorators.js';
|
|
|
3
3
|
import {LineMedium, lineColor, LineType, lineWidth} from '../index.js';
|
|
4
4
|
import {customElement} from '../../decorator.js';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Vertical line component
|
|
7
8
|
*
|
|
8
9
|
* The vertical line is 24px * length + 1px. +1 px to make sure that connecting lines are overlapping, to hide the gap between them.
|
|
9
10
|
* @deprecated
|
|
@@ -77,7 +77,7 @@ const SAMPLE_MULTI_DATASETS = [
|
|
|
77
77
|
const meta: Meta = {
|
|
78
78
|
title: 'Bars and Graphs/Area Graph',
|
|
79
79
|
component: 'obc-area-graph',
|
|
80
|
-
tags: ['autodocs', '6.0'],
|
|
80
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
81
81
|
render: (_args) => html`
|
|
82
82
|
<obc-area-graph
|
|
83
83
|
.data=${_args.data}
|
|
@@ -15,7 +15,7 @@ const SAMPLE_DATA = [
|
|
|
15
15
|
const meta: Meta = {
|
|
16
16
|
title: 'Bars and Graphs/Donut Chart',
|
|
17
17
|
component: 'obc-donut-chart',
|
|
18
|
-
tags: ['autodocs', '6.0'],
|
|
18
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
19
19
|
argTypes: {
|
|
20
20
|
fixedHeight: {
|
|
21
21
|
control: {type: 'range', min: 48, max: 512},
|