@oicl/openbridge-webcomponents-svelte 2.1.0-next.3 → 2.1.0-next.5

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 (43) 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/digital-threeway-valve/ObcDigitalThreewayValve.svelte +110 -0
  4. package/dist/automation/digital-threeway-valve/ObcDigitalThreewayValve.svelte.d.ts +90 -0
  5. package/dist/automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.svelte +20 -6
  6. package/dist/automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.svelte.d.ts +22 -5
  7. package/dist/components/brilliance-menu/ObcBrillianceMenu.svelte +4 -2
  8. package/dist/components/brilliance-menu/ObcBrillianceMenu.svelte.d.ts +3 -2
  9. package/dist/index.d.ts +2 -0
  10. package/dist/index.js +2 -0
  11. package/dist/navigation-instruments/compass/ObcCompass.svelte +8 -2
  12. package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +8 -1
  13. package/dist/navigation-instruments/current/ObcCurrent.svelte +8 -2
  14. package/dist/navigation-instruments/current/ObcCurrent.svelte.d.ts +8 -1
  15. package/dist/navigation-instruments/depth/ObcDepth.svelte +8 -2
  16. package/dist/navigation-instruments/depth/ObcDepth.svelte.d.ts +8 -1
  17. package/dist/navigation-instruments/depth/ObcDepthTopBand.svelte +8 -0
  18. package/dist/navigation-instruments/depth/ObcDepthTopBand.svelte.d.ts +8 -0
  19. package/dist/navigation-instruments/depth-actual/ObcDepthActual.svelte +4 -0
  20. package/dist/navigation-instruments/depth-actual/ObcDepthActual.svelte.d.ts +4 -0
  21. package/dist/navigation-instruments/draft-trim/ObcDraftTrim.svelte +4 -0
  22. package/dist/navigation-instruments/draft-trim/ObcDraftTrim.svelte.d.ts +4 -0
  23. package/dist/navigation-instruments/heading/ObcHeading.svelte +8 -2
  24. package/dist/navigation-instruments/heading/ObcHeading.svelte.d.ts +8 -1
  25. package/dist/navigation-instruments/heave/ObcHeave.svelte +8 -0
  26. package/dist/navigation-instruments/heave/ObcHeave.svelte.d.ts +8 -0
  27. package/dist/navigation-instruments/pitch/ObcPitch.svelte +4 -2
  28. package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +4 -1
  29. package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte +14 -2
  30. package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte.d.ts +14 -1
  31. package/dist/navigation-instruments/pitch-roll-heave/ObcPitchRollHeave.svelte +14 -2
  32. package/dist/navigation-instruments/pitch-roll-heave/ObcPitchRollHeave.svelte.d.ts +14 -1
  33. package/dist/navigation-instruments/pitch-roll-yaw/ObcPitchRollYaw.svelte +8 -2
  34. package/dist/navigation-instruments/pitch-roll-yaw/ObcPitchRollYaw.svelte.d.ts +8 -1
  35. package/dist/navigation-instruments/roll/ObcRoll.svelte +4 -2
  36. package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +4 -1
  37. package/dist/navigation-instruments/speed-directions/ObcSpeedDirections.svelte +5 -3
  38. package/dist/navigation-instruments/speed-directions/ObcSpeedDirections.svelte.d.ts +4 -1
  39. package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte +5 -3
  40. package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte.d.ts +4 -1
  41. package/dist/navigation-instruments/wind/ObcWind.svelte +4 -2
  42. package/dist/navigation-instruments/wind/ObcWind.svelte.d.ts +4 -1
  43. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch-roll-yaw/pitch-roll-yaw.js';
2
2
  import type { PitchRollYawType, PitchRollSample } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch-roll-yaw/pitch-roll-yaw.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 {
@@ -33,6 +33,12 @@ export interface Props {
33
33
  motionHistory?: PitchRollSample[];
34
34
  /** Available when `type!='level'`. */
35
35
  vesselImage?: VesselImage;
36
+ /**
37
+ * 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`).
38
+ *
39
+ * Available when `type!='level'`.
40
+ */
41
+ vesselImageSrc?: VesselImageSrc | undefined;
36
42
  priority?: Priority;
37
43
  /** When `true`, shows 0/90/180/-90 labels outside the scale. */
38
44
  showLabels?: boolean;
@@ -47,6 +53,7 @@ declare const ObcPitchRollYaw: import("svelte").Component<$$ComponentProps, {
47
53
  PitchRollYawType: typeof PitchRollYawType;
48
54
  PitchRollSample: typeof PitchRollSample;
49
55
  VesselImage: typeof VesselImage;
56
+ VesselImageSrc: typeof VesselImageSrc;
50
57
  Priority: typeof Priority;
51
58
  }, "">;
52
59
  type ObcPitchRollYaw = ReturnType<typeof ObcPitchRollYaw>;
@@ -1,12 +1,12 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.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 {ObcRollType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
6
6
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
7
7
  import { setProperties } from "../../util.js";
8
8
  import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.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 {ObcRollType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
11
11
  import type { Snippet } from 'svelte';
12
12
 
@@ -24,6 +24,8 @@ import type {ObcRollType} from '@oicl/openbridge-webcomponents/dist/navigation-i
24
24
  minAvgRoll?: number;
25
25
  maxAvgRoll?: number;
26
26
  vesselImageFore?: VesselImage;
27
+ /** Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImageFore` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). */
28
+ vesselImageForeSrc?: VesselImageSrc | undefined;
27
29
  scaleForeImage?: number;
28
30
  maxRollAdvice?: number | undefined;
29
31
  triggerRollAdvice?: boolean;
@@ -1,6 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
2
2
  import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.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 { ObcRollType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
5
5
  import type { Snippet } from 'svelte';
6
6
  export interface Props {
@@ -17,6 +17,8 @@ export interface Props {
17
17
  minAvgRoll?: number;
18
18
  maxAvgRoll?: number;
19
19
  vesselImageFore?: VesselImage;
20
+ /** Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImageFore` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). */
21
+ vesselImageForeSrc?: VesselImageSrc | undefined;
20
22
  scaleForeImage?: number;
21
23
  maxRollAdvice?: number | undefined;
22
24
  triggerRollAdvice?: boolean;
@@ -38,6 +40,7 @@ type $$ComponentProps = Props & Events & Slots;
38
40
  declare const ObcRoll: import("svelte").Component<$$ComponentProps, {
39
41
  Priority: typeof Priority;
40
42
  VesselImage: typeof VesselImage;
43
+ VesselImageSrc: typeof VesselImageSrc;
41
44
  ObcRollType: typeof ObcRollType;
42
45
  }, "">;
43
46
  type ObcRoll = ReturnType<typeof ObcRoll>;
@@ -1,11 +1,11 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {SpeedDirectionsType, SpeedDirectionsFrameStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-directions/speed-directions-geometry.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/speed-directions/speed-directions.js';
6
6
  import { setProperties } from "../../util.js";
7
7
  import type {SpeedDirectionsType, SpeedDirectionsFrameStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-directions/speed-directions-geometry.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 {
@@ -56,7 +56,9 @@ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-i
56
56
  */
57
57
  tintedArrows?: boolean;
58
58
  /** 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. */
59
- vesselImage?: VesselImage
59
+ vesselImage?: VesselImage;
60
+ /** 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`). */
61
+ vesselImageSrc?: VesselImageSrc | undefined
60
62
  }
61
63
  export interface Events {
62
64
 
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.1.0-next.3",
3
+ "version": "2.1.0-next.5",
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.1.0-next.3"
37
+ "@oicl/openbridge-webcomponents": "^2.1.0-next.5"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "svelte": "^5.0.0"