@oicl/openbridge-webcomponents-svelte 2.0.0 → 2.1.0-next.10

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/dist/automation/analog-threeway-valve/ObcAnalogThreewayValve.svelte +110 -0
  2. package/dist/automation/analog-threeway-valve/ObcAnalogThreewayValve.svelte.d.ts +90 -0
  3. package/dist/automation/analog-valve/ObcAnalogValve.svelte +2 -2
  4. package/dist/automation/analog-valve/ObcAnalogValve.svelte.d.ts +2 -2
  5. package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte +2 -2
  6. package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte.d.ts +2 -2
  7. package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte +2 -2
  8. package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte.d.ts +2 -2
  9. package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte +2 -2
  10. package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte.d.ts +2 -2
  11. package/dist/automation/automation-button/ObcAutomationButton.svelte +2 -2
  12. package/dist/automation/automation-button/ObcAutomationButton.svelte.d.ts +2 -2
  13. package/dist/automation/automation-tank/ObcAutomationTank.svelte +34 -3
  14. package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +34 -2
  15. package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte +2 -2
  16. package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte.d.ts +2 -2
  17. package/dist/automation/capacitor/ObcCapacitor.svelte +2 -2
  18. package/dist/automation/capacitor/ObcCapacitor.svelte.d.ts +2 -2
  19. package/dist/automation/converter/ObcConverter.svelte +2 -2
  20. package/dist/automation/converter/ObcConverter.svelte.d.ts +2 -2
  21. package/dist/automation/damper/ObcDamper.svelte +2 -2
  22. package/dist/automation/damper/ObcDamper.svelte.d.ts +2 -2
  23. package/dist/automation/digital-threeway-valve/ObcDigitalThreewayValve.svelte +110 -0
  24. package/dist/automation/digital-threeway-valve/ObcDigitalThreewayValve.svelte.d.ts +90 -0
  25. package/dist/automation/digital-valve/ObcDigitalValve.svelte +2 -2
  26. package/dist/automation/digital-valve/ObcDigitalValve.svelte.d.ts +2 -2
  27. package/dist/automation/diodes/ObcDiodes.svelte +2 -2
  28. package/dist/automation/diodes/ObcDiodes.svelte.d.ts +2 -2
  29. package/dist/automation/fan/ObcFan.svelte +2 -2
  30. package/dist/automation/fan/ObcFan.svelte.d.ts +2 -2
  31. package/dist/automation/filter/ObcFilter.svelte +2 -2
  32. package/dist/automation/filter/ObcFilter.svelte.d.ts +2 -2
  33. package/dist/automation/ground/ObcGround.svelte +2 -2
  34. package/dist/automation/ground/ObcGround.svelte.d.ts +2 -2
  35. package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte +10 -4
  36. package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte.d.ts +10 -3
  37. package/dist/automation/heat-pump/ObcHeatPump.svelte +10 -4
  38. package/dist/automation/heat-pump/ObcHeatPump.svelte.d.ts +10 -3
  39. package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte +10 -4
  40. package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte.d.ts +10 -3
  41. package/dist/automation/logic/ObcLogic.svelte +2 -2
  42. package/dist/automation/logic/ObcLogic.svelte.d.ts +2 -2
  43. package/dist/automation/mosfet/ObcMosfet.svelte +2 -2
  44. package/dist/automation/mosfet/ObcMosfet.svelte.d.ts +2 -2
  45. package/dist/automation/motor/ObcMotor.svelte +2 -2
  46. package/dist/automation/motor/ObcMotor.svelte.d.ts +2 -2
  47. package/dist/automation/pump/ObcPump.svelte +2 -2
  48. package/dist/automation/pump/ObcPump.svelte.d.ts +2 -2
  49. package/dist/automation/resistor/ObcResistor.svelte +2 -2
  50. package/dist/automation/resistor/ObcResistor.svelte.d.ts +2 -2
  51. package/dist/automation/router/ObcRouter.svelte +2 -2
  52. package/dist/automation/router/ObcRouter.svelte.d.ts +2 -2
  53. package/dist/automation/source/ObcSource.svelte +2 -2
  54. package/dist/automation/source/ObcSource.svelte.d.ts +2 -2
  55. package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte +10 -4
  56. package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte.d.ts +10 -3
  57. package/dist/automation/switch/ObcSwitch.svelte +2 -2
  58. package/dist/automation/switch/ObcSwitch.svelte.d.ts +2 -2
  59. package/dist/automation/transformer/ObcTransformer.svelte +2 -2
  60. package/dist/automation/transformer/ObcTransformer.svelte.d.ts +2 -2
  61. package/dist/automation/transmitter/ObcTransmitter.svelte +58 -3
  62. package/dist/automation/transmitter/ObcTransmitter.svelte.d.ts +46 -1
  63. package/dist/automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.svelte +20 -6
  64. package/dist/automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.svelte.d.ts +22 -5
  65. package/dist/automation/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.svelte +7 -1
  66. package/dist/automation/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.svelte.d.ts +7 -1
  67. package/dist/building-blocks/alert-list/ObcAlertList.svelte +1 -0
  68. package/dist/building-blocks/alert-list/ObcAlertList.svelte.d.ts +1 -0
  69. package/dist/building-blocks/alert-list/ObcAlertListBase.svelte +34 -0
  70. package/dist/building-blocks/alert-list/ObcAlertListBase.svelte.d.ts +15 -0
  71. package/dist/components/accordion-card/ObcAccordionCard.svelte +22 -4
  72. package/dist/components/accordion-card/ObcAccordionCard.svelte.d.ts +21 -2
  73. package/dist/components/alert-menu/ObcAlertMenu.svelte +2 -2
  74. package/dist/components/alert-menu/ObcAlertMenu.svelte.d.ts +2 -2
  75. package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte +3 -1
  76. package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte.d.ts +3 -1
  77. package/dist/components/app-menu/ObcAppMenu.svelte +2 -2
  78. package/dist/components/app-menu/ObcAppMenu.svelte.d.ts +2 -2
  79. package/dist/components/brilliance-menu/ObcBrillianceMenu.svelte +6 -4
  80. package/dist/components/brilliance-menu/ObcBrillianceMenu.svelte.d.ts +5 -4
  81. package/dist/components/command-menu/ObcCommandMenu.svelte +2 -2
  82. package/dist/components/command-menu/ObcCommandMenu.svelte.d.ts +2 -2
  83. package/dist/components/context-menu-input/ObcContextMenuInput.svelte +2 -2
  84. package/dist/components/context-menu-input/ObcContextMenuInput.svelte.d.ts +2 -2
  85. package/dist/components/navigation-menu/ObcNavigationMenu.svelte +2 -2
  86. package/dist/components/navigation-menu/ObcNavigationMenu.svelte.d.ts +2 -2
  87. package/dist/components/system-menu/ObcSystemMenu.svelte +2 -2
  88. package/dist/components/system-menu/ObcSystemMenu.svelte.d.ts +2 -2
  89. package/dist/components/user-menu/ObcUserMenu.svelte +2 -2
  90. package/dist/components/user-menu/ObcUserMenu.svelte.d.ts +2 -2
  91. package/dist/icons/ObiElectricBolt.svelte +34 -0
  92. package/dist/icons/ObiElectricBolt.svelte.d.ts +16 -0
  93. package/dist/icons/ObiElectricLightning.svelte +34 -0
  94. package/dist/icons/ObiElectricLightning.svelte.d.ts +16 -0
  95. package/dist/icons/ObiFormatBoldGoogle.svelte +34 -0
  96. package/dist/icons/ObiFormatBoldGoogle.svelte.d.ts +16 -0
  97. package/dist/icons/ObiFormatItalicGoogle.svelte +34 -0
  98. package/dist/icons/ObiFormatItalicGoogle.svelte.d.ts +16 -0
  99. package/dist/icons/ObiFormatListBulletedGoogle.svelte +34 -0
  100. package/dist/icons/ObiFormatListBulletedGoogle.svelte.d.ts +16 -0
  101. package/dist/icons/ObiFormatListNumberedGoogle.svelte +34 -0
  102. package/dist/icons/ObiFormatListNumberedGoogle.svelte.d.ts +16 -0
  103. package/dist/icons/ObiFormatUnderlineGoogle.svelte +34 -0
  104. package/dist/icons/ObiFormatUnderlineGoogle.svelte.d.ts +16 -0
  105. package/dist/icons/ObiLevelDisplacementTransmitter.svelte +34 -0
  106. package/dist/icons/ObiLevelDisplacementTransmitter.svelte.d.ts +16 -0
  107. package/dist/icons/ObiLink2.svelte +34 -0
  108. package/dist/icons/ObiLink2.svelte.d.ts +16 -0
  109. package/dist/icons/ObiLogOpen.svelte +34 -0
  110. package/dist/icons/ObiLogOpen.svelte.d.ts +16 -0
  111. package/dist/icons/ObiQuantity.svelte +34 -0
  112. package/dist/icons/ObiQuantity.svelte.d.ts +16 -0
  113. package/dist/icons/ObiSimulate.svelte +34 -0
  114. package/dist/icons/ObiSimulate.svelte.d.ts +16 -0
  115. package/dist/icons/ObiTestTube.svelte +34 -0
  116. package/dist/icons/ObiTestTube.svelte.d.ts +16 -0
  117. package/dist/icons/ObiTimer.svelte +34 -0
  118. package/dist/icons/ObiTimer.svelte.d.ts +16 -0
  119. package/dist/icons/ObiTimer2.svelte +34 -0
  120. package/dist/icons/ObiTimer2.svelte.d.ts +16 -0
  121. package/dist/index.d.ts +26 -7
  122. package/dist/index.js +26 -7
  123. package/dist/{icons → manual-icon}/ObiCriticalAcknowledged.svelte +1 -1
  124. package/dist/{icons → manual-icon}/ObiCriticalAcknowledged.svelte.d.ts +1 -1
  125. package/dist/{icons → manual-icon}/ObiCriticalBadge.svelte +1 -1
  126. package/dist/{icons → manual-icon}/ObiCriticalBadge.svelte.d.ts +1 -1
  127. package/dist/{icons → manual-icon}/ObiCriticalNoack.svelte +1 -1
  128. package/dist/{icons → manual-icon}/ObiCriticalNoack.svelte.d.ts +1 -1
  129. package/dist/{icons → manual-icon}/ObiCriticalRectified.svelte +1 -1
  130. package/dist/{icons → manual-icon}/ObiCriticalRectified.svelte.d.ts +1 -1
  131. package/dist/{icons → manual-icon}/ObiCriticalSilenced.svelte +1 -1
  132. package/dist/{icons → manual-icon}/ObiCriticalSilenced.svelte.d.ts +1 -1
  133. package/dist/{icons → manual-icon}/ObiCriticalTransferred.svelte +1 -1
  134. package/dist/{icons → manual-icon}/ObiCriticalTransferred.svelte.d.ts +1 -1
  135. package/dist/{icons → manual-icon}/ObiCriticalUnacknowledged.svelte +1 -1
  136. package/dist/{icons → manual-icon}/ObiCriticalUnacknowledged.svelte.d.ts +1 -1
  137. package/dist/navigation-instruments/compass/ObcCompass.svelte +8 -2
  138. package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +8 -1
  139. package/dist/navigation-instruments/current/ObcCurrent.svelte +8 -2
  140. package/dist/navigation-instruments/current/ObcCurrent.svelte.d.ts +8 -1
  141. package/dist/navigation-instruments/depth/ObcDepth.svelte +8 -2
  142. package/dist/navigation-instruments/depth/ObcDepth.svelte.d.ts +8 -1
  143. package/dist/navigation-instruments/depth/ObcDepthTopBand.svelte +8 -0
  144. package/dist/navigation-instruments/depth/ObcDepthTopBand.svelte.d.ts +8 -0
  145. package/dist/navigation-instruments/depth-actual/ObcDepthActual.svelte +4 -0
  146. package/dist/navigation-instruments/depth-actual/ObcDepthActual.svelte.d.ts +4 -0
  147. package/dist/navigation-instruments/draft-trim/ObcDraftTrim.svelte +4 -0
  148. package/dist/navigation-instruments/draft-trim/ObcDraftTrim.svelte.d.ts +4 -0
  149. package/dist/navigation-instruments/heading/ObcHeading.svelte +8 -2
  150. package/dist/navigation-instruments/heading/ObcHeading.svelte.d.ts +8 -1
  151. package/dist/navigation-instruments/heave/ObcHeave.svelte +8 -0
  152. package/dist/navigation-instruments/heave/ObcHeave.svelte.d.ts +8 -0
  153. package/dist/navigation-instruments/pitch/ObcPitch.svelte +4 -2
  154. package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +4 -1
  155. package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte +14 -2
  156. package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte.d.ts +14 -1
  157. package/dist/navigation-instruments/pitch-roll-heave/ObcPitchRollHeave.svelte +14 -2
  158. package/dist/navigation-instruments/pitch-roll-heave/ObcPitchRollHeave.svelte.d.ts +14 -1
  159. package/dist/navigation-instruments/pitch-roll-yaw/ObcPitchRollYaw.svelte +8 -2
  160. package/dist/navigation-instruments/pitch-roll-yaw/ObcPitchRollYaw.svelte.d.ts +8 -1
  161. package/dist/navigation-instruments/roll/ObcRoll.svelte +4 -2
  162. package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +4 -1
  163. package/dist/navigation-instruments/speed-directions/ObcSpeedDirections.svelte +5 -3
  164. package/dist/navigation-instruments/speed-directions/ObcSpeedDirections.svelte.d.ts +4 -1
  165. package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte +5 -3
  166. package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte.d.ts +4 -1
  167. package/dist/navigation-instruments/wind/ObcWind.svelte +4 -2
  168. package/dist/navigation-instruments/wind/ObcWind.svelte.d.ts +4 -1
  169. package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte +11 -3
  170. package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte.d.ts +10 -2
  171. package/dist/pages/alert-list-page-small/ObcAlertListPageSmallBase.svelte +43 -0
  172. package/dist/pages/alert-list-page-small/ObcAlertListPageSmallBase.svelte.d.ts +25 -0
  173. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-directions/speed-directions.js';
2
2
  import type { SpeedDirectionsType, SpeedDirectionsFrameStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-directions/speed-directions-geometry.js';
3
- import type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
3
+ import type { VesselImage, VesselImageSrc } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
4
4
  import type { Snippet } from 'svelte';
5
5
  export interface Props {
6
6
  class?: string;
@@ -51,6 +51,8 @@ export interface Props {
51
51
  tintedArrows?: boolean;
52
52
  /** Vessel image drawn at the center of the instrument. The standalone style draws it at twice the size for the chevron types, as in the design. */
53
53
  vesselImage?: VesselImage;
54
+ /** Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). */
55
+ vesselImageSrc?: VesselImageSrc | undefined;
54
56
  }
55
57
  export interface Events {
56
58
  }
@@ -62,6 +64,7 @@ declare const ObcSpeedDirections: import("svelte").Component<$$ComponentProps, {
62
64
  SpeedDirectionsType: typeof SpeedDirectionsType;
63
65
  SpeedDirectionsFrameStyle: typeof SpeedDirectionsFrameStyle;
64
66
  VesselImage: typeof VesselImage;
67
+ VesselImageSrc: typeof VesselImageSrc;
65
68
  }, "">;
66
69
  type ObcSpeedDirections = ReturnType<typeof ObcSpeedDirections>;
67
70
  export default ObcSpeedDirections;
@@ -1,11 +1,11 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {VelocityProjectionDatapoint} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.js';
4
- export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
4
+ export type {VesselImage, VesselImageSrc} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
5
5
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.js';
6
6
  import { setProperties } from "../../util.js";
7
7
  import type {VelocityProjectionDatapoint} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.js';
8
- import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
8
+ import type {VesselImage, VesselImageSrc} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
9
9
  import type { Snippet } from 'svelte';
10
10
 
11
11
  export interface Props {
@@ -16,7 +16,9 @@ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-i
16
16
  currentWindSpeedKnots?: number | null;
17
17
  currentFromDirection?: number | null;
18
18
  currentSpeedKnots?: number | null;
19
- vesselImage?: VesselImage
19
+ vesselImage?: VesselImage;
20
+ /** Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). */
21
+ vesselImageSrc?: VesselImageSrc | undefined
20
22
  }
21
23
  export interface Events {
22
24
 
@@ -1,6 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.js';
2
2
  import type { VelocityProjectionDatapoint } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.js';
3
- import type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
3
+ import type { VesselImage, VesselImageSrc } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
4
4
  import type { Snippet } from 'svelte';
5
5
  export interface Props {
6
6
  class?: string;
@@ -11,6 +11,8 @@ export interface Props {
11
11
  currentFromDirection?: number | null;
12
12
  currentSpeedKnots?: number | null;
13
13
  vesselImage?: VesselImage;
14
+ /** Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). */
15
+ vesselImageSrc?: VesselImageSrc | undefined;
14
16
  }
15
17
  export interface Events {
16
18
  }
@@ -21,6 +23,7 @@ type $$ComponentProps = Props & Events & Slots;
21
23
  declare const ObcVelocityProjectionPlot: import("svelte").Component<$$ComponentProps, {
22
24
  VelocityProjectionDatapoint: typeof VelocityProjectionDatapoint;
23
25
  VesselImage: typeof VesselImage;
26
+ VesselImageSrc: typeof VesselImageSrc;
24
27
  }, "">;
25
28
  type ObcVelocityProjectionPlot = ReturnType<typeof ObcVelocityProjectionPlot>;
26
29
  export default ObcVelocityProjectionPlot;
@@ -1,12 +1,12 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {WindHistogramData, WindVariant, WindVisualization} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
4
- export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
4
+ export type {VesselImage, VesselImageSrc} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
5
5
  export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
6
6
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
7
7
  import { setProperties } from "../../util.js";
8
8
  import type {WindHistogramData, WindVariant, WindVisualization} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
9
- import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
9
+ import type {VesselImage, VesselImageSrc} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
10
10
  import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
11
11
  import type { Snippet } from 'svelte';
12
12
 
@@ -17,6 +17,8 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
17
17
  currentWindSpeedKnots?: number;
18
18
  windHistogramData?: WindHistogramData[];
19
19
  vesselImage?: VesselImage;
20
+ /** Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). */
21
+ vesselImageSrc?: VesselImageSrc | undefined;
20
22
  vesselHeadingDeg?: number;
21
23
  variant?: WindVariant;
22
24
  smallVariantMaxPx?: number;
@@ -1,6 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
2
2
  import type { WindHistogramData, WindVariant, WindVisualization } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
3
- import type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
3
+ import type { VesselImage, VesselImageSrc } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
4
4
  import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
5
5
  import type { Snippet } from 'svelte';
6
6
  export interface Props {
@@ -10,6 +10,8 @@ export interface Props {
10
10
  currentWindSpeedKnots?: number;
11
11
  windHistogramData?: WindHistogramData[];
12
12
  vesselImage?: VesselImage;
13
+ /** Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). */
14
+ vesselImageSrc?: VesselImageSrc | undefined;
13
15
  vesselHeadingDeg?: number;
14
16
  variant?: WindVariant;
15
17
  smallVariantMaxPx?: number;
@@ -30,6 +32,7 @@ declare const ObcWind: import("svelte").Component<$$ComponentProps, {
30
32
  WindVariant: typeof WindVariant;
31
33
  WindVisualization: typeof WindVisualization;
32
34
  VesselImage: typeof VesselImage;
35
+ VesselImageSrc: typeof VesselImageSrc;
33
36
  Priority: typeof Priority;
34
37
  }, "">;
35
38
  type ObcWind = ReturnType<typeof ObcWind>;
@@ -11,11 +11,19 @@ import type {Alert} from '@oicl/openbridge-webcomponents/dist/types.js';
11
11
  export interface Props {
12
12
  class?: string;
13
13
  style?: string;
14
+ /** Whether the dropdown offers the shelved alerts. */
14
15
  hasShelved?: boolean;
15
- selectedMode?: AlertListMode;
16
- alerts?: Alert[];
16
+ /** Whether the list shows when each alert was raised. */
17
17
  showTime?: boolean;
18
- timeFormatter?: (time: Date) => string
18
+ /**
19
+ * Formats the time the list shows.
20
+ *
21
+ * Available when `showTime==true`.
22
+ */
23
+ timeFormatter?: (time: Date) => string;
24
+ /** Alerts to list. */
25
+ alerts?: Alert[];
26
+ selectedMode?: AlertListMode
19
27
  }
20
28
  export interface Events {
21
29
  onAckAllVisibleClick?: (event: ObcAlertListPageAckAllClickEvent) => void;
@@ -5,11 +5,19 @@ import type { Snippet } from 'svelte';
5
5
  export interface Props {
6
6
  class?: string;
7
7
  style?: string;
8
+ /** Whether the dropdown offers the shelved alerts. */
8
9
  hasShelved?: boolean;
9
- selectedMode?: AlertListMode;
10
- alerts?: Alert[];
10
+ /** Whether the list shows when each alert was raised. */
11
11
  showTime?: boolean;
12
+ /**
13
+ * Formats the time the list shows.
14
+ *
15
+ * Available when `showTime==true`.
16
+ */
12
17
  timeFormatter?: (time: Date) => string;
18
+ /** Alerts to list. */
19
+ alerts?: Alert[];
20
+ selectedMode?: AlertListMode;
13
21
  }
14
22
  export interface Events {
15
23
  onAckAllVisibleClick?: (event: ObcAlertListPageAckAllClickEvent) => void;
@@ -0,0 +1,43 @@
1
+
2
+ <script lang="ts">
3
+
4
+ import '@oicl/openbridge-webcomponents/dist/pages/alert-list-page-small/alert-list-page-small-base.js';
5
+ import { setProperties } from "../../util.js";
6
+
7
+ import type { Snippet } from 'svelte';
8
+
9
+ export interface Props {
10
+ class?: string;
11
+ style?: string;
12
+ /** Whether the dropdown offers the shelved alerts. */
13
+ hasShelved?: boolean;
14
+ /** Whether the list shows when each alert was raised. */
15
+ showTime?: boolean;
16
+ /**
17
+ * Formats the time the list shows.
18
+ *
19
+ * Available when `showTime==true`.
20
+ */
21
+ timeFormatter?: (time: Date) => string
22
+ }
23
+ export interface Events {
24
+
25
+ }
26
+ export interface Slots {
27
+ children?: Snippet
28
+ }
29
+ const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
30
+
31
+
32
+ </script>
33
+ <undefined
34
+ use:setProperties={props}
35
+
36
+ class={className}
37
+ style={style}
38
+ >
39
+
40
+ {#if children}
41
+ {@render children()}
42
+ {/if}
43
+ </undefined>
@@ -0,0 +1,25 @@
1
+ import '@oicl/openbridge-webcomponents/dist/pages/alert-list-page-small/alert-list-page-small-base.js';
2
+ import type { Snippet } from 'svelte';
3
+ export interface Props {
4
+ class?: string;
5
+ style?: string;
6
+ /** Whether the dropdown offers the shelved alerts. */
7
+ hasShelved?: boolean;
8
+ /** Whether the list shows when each alert was raised. */
9
+ showTime?: boolean;
10
+ /**
11
+ * Formats the time the list shows.
12
+ *
13
+ * Available when `showTime==true`.
14
+ */
15
+ timeFormatter?: (time: Date) => string;
16
+ }
17
+ export interface Events {
18
+ }
19
+ export interface Slots {
20
+ children?: Snippet;
21
+ }
22
+ type $$ComponentProps = Props & Events & Slots;
23
+ declare const ObcAlertListPageSmallBase: import("svelte").Component<$$ComponentProps, {}, "">;
24
+ type ObcAlertListPageSmallBase = ReturnType<typeof ObcAlertListPageSmallBase>;
25
+ export default ObcAlertListPageSmallBase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0",
3
+ "version": "2.1.0-next.10",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -34,7 +34,7 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@oicl/openbridge-webcomponents": "^2.0.0"
37
+ "@oicl/openbridge-webcomponents": "^2.1.0-next.10"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "svelte": "^5.0.0"