@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.
Files changed (173) hide show
  1. package/.storybook/manager.ts +18 -16
  2. package/bundle/openbridge-webcomponents.bundle.js +96 -0
  3. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  4. package/custom-elements.json +46 -1
  5. package/dist/automation/vertical-line/vertical-line.d.ts +6 -0
  6. package/dist/automation/vertical-line/vertical-line.d.ts.map +1 -1
  7. package/dist/automation/vertical-line/vertical-line.js.map +1 -1
  8. package/dist/components/alert-button/alert-button.d.ts +3 -0
  9. package/dist/components/alert-button/alert-button.d.ts.map +1 -1
  10. package/dist/components/alert-button/alert-button.js +12 -0
  11. package/dist/components/alert-button/alert-button.js.map +1 -1
  12. package/dist/components/alert-frame/alert-frame.css.js +1 -0
  13. package/dist/components/alert-frame/alert-frame.css.js.map +1 -1
  14. package/dist/components/alert-frame/alert-frame.d.ts +5 -0
  15. package/dist/components/alert-frame/alert-frame.d.ts.map +1 -1
  16. package/dist/components/alert-frame/alert-frame.js +24 -0
  17. package/dist/components/alert-frame/alert-frame.js.map +1 -1
  18. package/dist/components/alert-icon/alert-icon.d.ts +5 -0
  19. package/dist/components/alert-icon/alert-icon.d.ts.map +1 -1
  20. package/dist/components/alert-icon/alert-icon.js +26 -0
  21. package/dist/components/alert-icon/alert-icon.js.map +1 -1
  22. package/dist/components/pivot-item-group/pivot-item-group.d.ts +1 -0
  23. package/dist/components/pivot-item-group/pivot-item-group.d.ts.map +1 -1
  24. package/dist/components/pivot-item-group/pivot-item-group.js.map +1 -1
  25. package/dist/openbridge.css +0 -73
  26. package/dist/palettes/blinking.d.ts +6 -0
  27. package/dist/palettes/blinking.d.ts.map +1 -0
  28. package/dist/palettes/blinking.js +44 -0
  29. package/dist/palettes/blinking.js.map +1 -0
  30. package/eslint.config.mjs +355 -0
  31. package/package.json +3 -1
  32. package/script/eslint-rules.test.ts +230 -0
  33. package/src/ar/building-blocks/poi-graphic-line/poi-graphic-line.stories.ts +1 -1
  34. package/src/ar/building-blocks/poi-header/poi-header.stories.ts +1 -1
  35. package/src/ar/building-blocks/poi-line/poi-line.stories.ts +1 -1
  36. package/src/ar/building-blocks/poi-pointer/poi-pointer.stories.ts +1 -1
  37. package/src/ar/building-blocks/poi-selection-frame/poi-selection-frame.stories.ts +1 -1
  38. package/src/ar/building-blocks/ruler-pointer/ruler-pointer.stories.ts +1 -1
  39. package/src/ar/chart-object-vessel-button/chart-object-vessel-button.stories.ts +1 -1
  40. package/src/ar/poi/poi-aton.stories.ts +1 -1
  41. package/src/ar/poi/poi-data.stories.ts +1 -1
  42. package/src/ar/poi/poi-vessel.stories.ts +1 -1
  43. package/src/ar/poi/poi.stories.ts +1 -1
  44. package/src/ar/poi-button/poi-button-aton.stories.ts +1 -1
  45. package/src/ar/poi-button/poi-button-data.stories.ts +1 -1
  46. package/src/ar/poi-button/poi-button-vessel.stories.ts +1 -1
  47. package/src/ar/poi-button/poi-button.stories.ts +1 -1
  48. package/src/ar/poi-card/poi-card.stories.ts +1 -1
  49. package/src/ar/poi-card-header/poi-card-header.stories.ts +1 -1
  50. package/src/ar/poi-controller/poi-controller.stories.ts +1 -1
  51. package/src/ar/poi-group/poi-group.stories.ts +1 -1
  52. package/src/ar/poi-layer/poi-layer.stories.ts +1 -1
  53. package/src/ar/poi-layer-stack/poi-layer-stack.stories.ts +1 -1
  54. package/src/ar/poi-object/poi-object-aton.stories.ts +1 -1
  55. package/src/ar/poi-object/poi-object-data.stories.ts +1 -1
  56. package/src/ar/poi-object/poi-object-vessel.stories.ts +1 -1
  57. package/src/ar/poi-object/poi-object.stories.ts +1 -1
  58. package/src/automation/automation-input-modal/automation-input-modal.stories.ts +1 -1
  59. package/src/automation/automation-readout/automation-readout.stories.ts +1 -1
  60. package/src/automation/automation-tank/automation-tank.stories.ts +1 -1
  61. package/src/automation/bus/bus.stories.ts +1 -1
  62. package/src/automation/corner-line/corner-line.stories.ts +1 -1
  63. package/src/automation/direction-line/direction-line.stories.ts +1 -1
  64. package/src/automation/end-point-line/end-point-line.stories.ts +1 -1
  65. package/src/automation/horizontal-line/horizontal-line.stories.ts +1 -1
  66. package/src/automation/line-cross/line-cross.stories.ts +1 -1
  67. package/src/automation/line-overlap/line-overlap.stories.ts +1 -1
  68. package/src/automation/three-way-line/three-way-line.stories.ts +1 -1
  69. package/src/automation/vertical-line/vertical-line.stories.ts +1 -1
  70. package/src/automation/vertical-line/vertical-line.ts +2 -1
  71. package/src/bars-graphs/area-graph/area-graph.stories.ts +1 -1
  72. package/src/bars-graphs/donut-chart/donut-chart.stories.ts +1 -1
  73. package/src/bars-graphs/line-graph/line-graph.stories.ts +1 -1
  74. package/src/bars-graphs/pie-chart/pie-chart.stories.ts +1 -1
  75. package/src/bars-graphs/polar-chart/polar-chart.stories.ts +1 -1
  76. package/src/bars-graphs/radial-bar-chart/radial-bar-chart.stories.ts +1 -1
  77. package/src/building-blocks/bar-horizontal/bar-horizontal.stories.ts +1 -1
  78. package/src/building-blocks/bar-vertical/bar-vertical.stories.ts +1 -1
  79. package/src/building-blocks/chart-line/chart-line-base.stories.ts +1 -1
  80. package/src/building-blocks/instrument-radial/instrument-radial.stories.ts +1 -1
  81. package/src/building-blocks/readout-block/readout-block.stories.ts +1 -1
  82. package/src/components/advice-floating-item/advice-floating-item.stories.ts +1 -1
  83. package/src/components/advice-menu-item/advice-menu-item.stories.ts +1 -1
  84. package/src/components/advice-message-item/advice-message-item.stories.ts +1 -1
  85. package/src/components/alert-button/alert-button.spec.ts +58 -0
  86. package/src/components/alert-button/alert-button.ts +16 -0
  87. package/src/components/alert-frame/alert-frame.css +1 -0
  88. package/src/components/alert-frame/alert-frame.spec.ts +122 -0
  89. package/src/components/alert-frame/alert-frame.stories.ts +13 -1
  90. package/src/components/alert-frame/alert-frame.ts +37 -0
  91. package/src/components/alert-icon/alert-icon.spec.ts +76 -0
  92. package/src/components/alert-icon/alert-icon.ts +38 -0
  93. package/src/components/attachment-list-item/attachment-list-item.stories.ts +1 -1
  94. package/src/components/audio-output/audio-output.stories.ts +1 -1
  95. package/src/components/audio-recording-item/audio-recording-item.stories.ts +1 -1
  96. package/src/components/automation-button-readout-stack/automation-button-readout-stack.stories.ts +1 -1
  97. package/src/components/badge/badge.stories.ts +1 -1
  98. package/src/components/calendar/calendar.stories.ts +1 -1
  99. package/src/components/command-button/command-button.stories.ts +1 -1
  100. package/src/components/command-menu/command-menu.stories.ts +1 -1
  101. package/src/components/communication-table/communication-table.stories.ts +1 -1
  102. package/src/components/context-menu-input/context-menu-input.stories.ts +1 -1
  103. package/src/components/date-item/date-item.stories.ts +1 -1
  104. package/src/components/event-item/event-item.stories.ts +1 -1
  105. package/src/components/event-list/event-list.stories.ts +1 -1
  106. package/src/components/form-container/form-container.stories.ts +1 -0
  107. package/src/components/form-footer-container/form-footer-container.stories.ts +1 -0
  108. package/src/components/form-group/form-group.stories.ts +1 -0
  109. package/src/components/form-item/form-item.stories.ts +1 -1
  110. package/src/components/keyboard-full/keyboard-full.stories.ts +1 -1
  111. package/src/components/keyboard-numeric/keyboard-numeric.stories.ts +1 -1
  112. package/src/components/menu-button/menu-button.stories.ts +1 -1
  113. package/src/components/message-menu-item/message-menu-item.stories.ts +1 -1
  114. package/src/components/notification-badge-button/notification-badge-button.stories.ts +1 -1
  115. package/src/components/notification-floating-item/notification-floating-item.stories.ts +1 -1
  116. package/src/components/notification-menu-item/notification-menu-item.stories.ts +1 -1
  117. package/src/components/notification-message-item/notification-message-item.stories.ts +1 -1
  118. package/src/components/pivot-item-group/pivot-item-group.ts +1 -0
  119. package/src/components/rich-button/rich-button.stories.ts +1 -1
  120. package/src/components/sequence-card/sequence-card.stories.ts +1 -1
  121. package/src/components/sequence-connector/sequence-connector.stories.ts +1 -1
  122. package/src/components/sequence-item/sequence-item.stories.ts +1 -0
  123. package/src/components/sequence-loading-spinner/sequence-loading-spinner.stories.ts +1 -1
  124. package/src/components/sequence-modal/sequence-modal.stories.ts +1 -1
  125. package/src/components/sequence-step/sequence-step.stories.ts +1 -0
  126. package/src/components/sequence-toolbar/sequence-toolbar.stories.ts +1 -0
  127. package/src/components/slide-button/slide-button.stories.ts +1 -1
  128. package/src/components/split-button/split-button.stories.ts +1 -1
  129. package/src/components/status-indicator/status-indicator.stories.ts +1 -1
  130. package/src/components/table/table.stories.ts +1 -1
  131. package/src/components/table-header-item/table-header-item.stories.ts +1 -1
  132. package/src/components/textbox/textbox.stories.ts +1 -1
  133. package/src/components/title-container/title-container.stories.ts +1 -1
  134. package/src/components/toggle-button-three-state/toggle-button-three-state.stories.ts +1 -1
  135. package/src/components/toggletip/toggletip.stories.ts +1 -1
  136. package/src/components/tree-navigation/tree-navigation.stories.ts +1 -1
  137. package/src/components/tree-navigation-item/tree-navigation-item.stories.ts +1 -1
  138. package/src/integration-systems/integration-app-bar/integration-app-bar.stories.ts +1 -1
  139. package/src/integration-systems/integration-bar/integration-bar.stories.ts +1 -1
  140. package/src/integration-systems/integration-bar-dropdown/integration-bar-dropdown.stories.ts +1 -1
  141. package/src/integration-systems/integration-button/integration-button.stories.ts +1 -1
  142. package/src/integration-systems/integration-dropdown-button/integration-dropdown-button.stories.ts +1 -1
  143. package/src/integration-systems/integration-fleet-button/integration-fleet-button.stories.ts +1 -1
  144. package/src/integration-systems/integration-tabs/integration-tabs.stories.ts +1 -1
  145. package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.stories.ts +1 -1
  146. package/src/integration-systems/integration-vessel-selector/integration-vessel-selector.stories.ts +1 -1
  147. package/src/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.stories.ts +1 -1
  148. package/src/navigation-instruments/current/current.stories.ts +1 -1
  149. package/src/navigation-instruments/draft-trim/draft-trim.stories.ts +1 -1
  150. package/src/navigation-instruments/gauge-radial-proportional/gauge-radial-proportional.stories.ts +1 -1
  151. package/src/navigation-instruments/graph-mini/graph-mini.stories.ts +1 -1
  152. package/src/navigation-instruments/indicator-graph/indicator-graph.stories.ts +1 -1
  153. package/src/navigation-instruments/instrument-field/instrument-field.stories.ts +1 -1
  154. package/src/navigation-instruments/pitch-roll-heave/pitch-roll-heave.stories.ts +1 -1
  155. package/src/navigation-instruments/pitch-roll-yaw/pitch-roll-yaw.stories.ts +1 -1
  156. package/src/navigation-instruments/position-deviation/position-deviation.stories.ts +1 -1
  157. package/src/navigation-instruments/readout/readout.stories.ts +1 -1
  158. package/src/navigation-instruments/readout-list/readout-list.stories.ts +1 -1
  159. package/src/navigation-instruments/readout-list-item/readout-list-item.stories.ts +1 -1
  160. package/src/navigation-instruments/speed-arrows/speed-arrows.stories.ts +1 -1
  161. package/src/navigation-instruments/speed-directions/speed-directions.stories.ts +1 -1
  162. package/src/navigation-instruments/top-view-propulsion/top-view-propulsion.stories.ts +1 -1
  163. package/src/navigation-instruments/velocity-projection-plot/velocity-projection-plot.stories.ts +1 -1
  164. package/src/navigation-instruments/watch/watch.stories.ts +1 -1
  165. package/src/navigation-instruments/watch-flat/watch-flat.stories.ts +1 -1
  166. package/src/navigation-instruments/wind-propulsion/wind-propulsion.stories.ts +1 -1
  167. package/src/pages/alert-detail-page/alert-detail-page.stories.ts +1 -1
  168. package/src/pages/alert-list-page-small/alert-list-page-small.stories.ts +1 -1
  169. package/src/palettes/blinking.ts +46 -0
  170. package/src/palettes/manual.css +0 -42
  171. package/src/palettes/variables.css +0 -36
  172. package/vitest.browser.config.ts +4 -2
  173. 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}},
@@ -21,7 +21,7 @@ const alert: Alert = {
21
21
 
22
22
  const meta: Meta<typeof ObcAlertDetailPage> = {
23
23
  title: 'Pages/Alert Detail Page',
24
- tags: ['6.0'],
24
+ tags: ['6.0', 'beta'],
25
25
  component: 'obc-alert-detail-page',
26
26
  args: {
27
27
  hasActions: true,
@@ -60,7 +60,7 @@ const handleSilence = (e: CustomEvent) => {
60
60
 
61
61
  const meta: Meta<typeof ObcAlertListPageSmall> = {
62
62
  title: 'Pages/Alert List Small',
63
- tags: ['6.0'],
63
+ tags: ['6.0', 'beta'],
64
64
  component: 'obc-alert-list-page-small',
65
65
  args: {
66
66
  hasShelved: true,
@@ -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
+ }
@@ -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
- }
@@ -3,8 +3,10 @@ import {playwright} from '@vitest/browser-playwright';
3
3
 
4
4
  export default defineConfig({
5
5
  test: {
6
- // ignore files in dist folder
7
- exclude: ['dist/**', 'node_modules/**'],
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
  });