@stadiamaps/ferrostar-webcomponents 0.40.0 → 0.42.0

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.
@@ -1,5 +1,5 @@
1
1
  import { ReactiveElement, PropertyValues } from 'lit';
2
- import { SerializableNavState, NavigationController, RouteAdapter, TripState } from '@stadiamaps/ferrostar';
2
+ import { SerializableNavState, NavigationController, RouteAdapter, TripState, Route } from '@stadiamaps/ferrostar';
3
3
  import { StateProvider } from './types';
4
4
  /**
5
5
  * A core navigation component that handles navigation logic without UI.
@@ -25,8 +25,8 @@ export declare class FerrostarCore extends ReactiveElement implements StateProvi
25
25
  lastSpokenUtteranceId: string | null;
26
26
  constructor();
27
27
  updated(changedProperties: PropertyValues<this>): void;
28
- getRoutes(initialLocation: any, waypoints: any): Promise<any>;
29
- startNavigation(route: any, config: any): void;
28
+ getRoutes(initialLocation: any, waypoints: any): Promise<Route[]>;
29
+ startNavigation(route: Route, config: any): void;
30
30
  private saveRecording;
31
31
  stopNavigation(): Promise<void>;
32
32
  provideState(tripState: TripState): void;
@@ -1 +1 @@
1
- {"version":3,"file":"ferrostar-core.d.ts","sourceRoot":"","sources":["../src/ferrostar-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,SAAS,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,qBACa,aAAc,SAAQ,eAAgB,YAAW,aAAa;IAEzE,mBAAmB,EAAE,MAAM,CAAM;IAGjC,OAAO,EAAE,MAAM,CAAM;IAGrB,UAAU,CAAC,EAAE,QAAQ,CAAS;IAI9B,gBAAgB,EAAG,GAAG,CAAC;IAIvB,OAAO,EAAE,MAAM,CAAM;IAGrB,SAAS,CAAC,SAAS,EAAE,o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OAAO,EAAE,MAAM,CAAM;IAGrB,SAAS,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IAGxD,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAG/B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAG9B,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAEzD;;;OAGG;IAEH,gBAAgB,EAAE,OAAO,CAAS;IAGlC,YAAY,EAAE,OAAO,CAAS;IAE9B,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IACzC,oBAAoB,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IACzD,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAQ;;IAW5C,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAOzC,SAAS,CAAC,eAAe,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IAoCpD,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG;IA4BzC,OAAO,CAAC,aAAa;IAaf,cAAc;IAWpB,YAAY,CAAC,SAAS,EAAE,SAAS;IAUjC,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;CAoC1B"}
@@ -1,6 +1,6 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
2
  import { default as maplibregl, GeolocateControl } from 'maplibre-gl';
3
- import { TripState } from '@stadiamaps/ferrostar';
3
+ import { Route, TripState } from '@stadiamaps/ferrostar';
4
4
  import { StateProvider as StateProvider } from './types';
5
5
  /**
6
6
  * A MapLibre-based map component.
@@ -20,7 +20,7 @@ export declare class FerrostarMap extends LitElement {
20
20
  */
21
21
  customStyles?: object;
22
22
  tripState: TripState | null;
23
- route: any;
23
+ route: Route | null;
24
24
  /**
25
25
  * Determines whether the navigation user interface is displayed.
26
26
  */
@@ -89,14 +89,12 @@ export declare class FerrostarMap extends LitElement {
89
89
  */
90
90
  private clearUserLocationMarker;
91
91
  /**
92
- * Clears the current navigation state, including route, user location marker, and navigation-related data.
93
- */
94
- clearNavigation(): void;
95
- /**
96
- * Handles the logic for stopping the navigation process. It clears the navigation state,
97
- * resets the simulation flag, and invokes the optional onStopNavigation callback if provided.
92
+ * Stops the navigation process, and clears the navigation state.
93
+ *
94
+ * This includes resetting the simulation flag,
95
+ * and invoking the optional onStopNavigation callback if provided.
98
96
  */
99
- private handleStopNavigation;
97
+ stopNavigation(): void;
100
98
  render(): import('lit-html').TemplateResult<1>;
101
99
  }
102
100
  //# sourceMappingURL=ferrostar-map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ferrostar-map.d.ts","sourceRoot":"","sources":["../src/ferrostar-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE5D,OAAO,UAAU,EAAE,EAAE,gBAAgB,EAAU,MAAM,aAAa,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAEzD;;GAEG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C;;;;;;OAMG;IAEH,GAAG,EAAG,UAAU,CAAC,GAAG,CAAC;IAGrB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAQ;IAE3C;;OAEG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAQ;IAGnC,KAAK,EAAE,GAAG,CAAQ;IAElB;;OAEG;IAEH,gBAAgB,EAAE,OAAO,CAAS;IAElC;;;OAGG;IAEH,cAAc,EAAE,OAAO,CAAS;IAEhC;;;;;OAKG;IAEH,eAAe,EAAE,OAAO,CAAQ;IAEhC;;;;;OAKG;IAEH,mBAAmB,EAAE,OAAO,CAAQ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C;IAGtB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAQ;IAGnC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAQ;IAE3B;;OAEG;IAEH,gBAAgB,EAAE,OAAO,CAAS;IAElC;;;OAGG;IAEH,cAAc,EAAE,OAAO,CAAS;IAEhC;;;;;OAKG;IAEH,eAAe,EAAE,OAAO,CAAQ;IAEhC;;;;;OAKG;IAEH,mBAAmB,EAAE,OAAO,CAAQ;IAEpC;;;OAGG;IAEH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE9B;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAEjD,OAAO,CAAC,kBAAkB,CAAuB;IAEjD,MAAM,CAAC,MAAM,4BAyEX;;IAMF,YAAY;IAmBZ,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAgB/C,QAAQ,CAAC,aAAa,EAAE,aAAa,EAAE,cAAc,GAAE,OAAe;IA8BtE;;OAEG;IACH,OAAO,CAAC,eAAe;IASvB;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAqDnB;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAsBhC;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAapB;;OAEG;IACH,OAAO,CAAC,UAAU;IAMlB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAO/B;;;;;OAKG;IACH,cAAc;IAYd,MAAM;CAgCP"}
@@ -697,17 +697,17 @@ var I3 = Object.defineProperty, A3 = Object.getOwnPropertyDescriptor, B = (i, t,
697
697
  };
698
698
  const x3 = /* @__PURE__ */ Object.assign({ "./assets/directions/arrive.svg": m0, "./assets/directions/arrive_left.svg": w0, "./assets/directions/arrive_right.svg": b0, "./assets/directions/arrive_straight.svg": N0, "./assets/directions/close.svg": _0, "./assets/directions/continue.svg": y0, "./assets/directions/continue_left.svg": A0, "./assets/directions/continue_right.svg": M0, "./assets/directions/continue_slight_left.svg": R0, "./assets/directions/continue_slight_right.svg": G0, "./assets/directions/continue_straight.svg": P0, "./assets/directions/continue_uturn.svg": H0, "./assets/directions/depart.svg": Z0, "./assets/directions/depart_left.svg": T0, "./assets/directions/depart_right.svg": B0, "./assets/directions/depart_straight.svg": U0, "./assets/directions/end_of_road_left.svg": D0, "./assets/directions/end_of_road_right.svg": q0, "./assets/directions/flag.svg": X0, "./assets/directions/fork.svg": Y0, "./assets/directions/fork_left.svg": et, "./assets/directions/fork_right.svg": at, "./assets/directions/fork_slight_left.svg": st, "./assets/directions/fork_slight_right.svg": rt, "./assets/directions/fork_straight.svg": ct, "./assets/directions/invalid.svg": gt, "./assets/directions/invalid_left.svg": _t, "./assets/directions/invalid_right.svg": ut, "./assets/directions/invalid_slight_left.svg": mt, "./assets/directions/invalid_slight_right.svg": wt, "./assets/directions/invalid_straight.svg": bt, "./assets/directions/invalid_uturn.svg": Nt, "./assets/directions/merge_left.svg": yt, "./assets/directions/merge_right.svg": At, "./assets/directions/merge_slight_left.svg": Mt, "./assets/directions/merge_slight_right.svg": Rt, "./assets/directions/merge_straight.svg": Gt, "./assets/directions/new_name_left.svg": Pt, "./assets/directions/new_name_right.svg": Ht, "./assets/directions/new_name_sharp_left.svg": Zt, "./assets/directions/new_name_sharp_right.svg": Tt, "./assets/directions/new_name_slight_left.svg": Bt, "./assets/directions/new_name_slight_right.svg": Ut, "./assets/directions/new_name_straight.svg": Dt, "./assets/directions/notification_left.svg": qt, "./assets/directions/notification_right.svg": Xt, "./assets/directions/notification_sharp_left.svg": Yt, "./assets/directions/notification_sharp_right.svg": e2, "./assets/directions/notification_slight_left.svg": a2, "./assets/directions/notification_slight_right.svg": s2, "./assets/directions/notification_straight.svg": r2, "./assets/directions/off_ramp_left.svg": c2, "./assets/directions/off_ramp_right.svg": g2, "./assets/directions/off_ramp_slight_left.svg": _2, "./assets/directions/off_ramp_slight_right.svg": u2, "./assets/directions/on_ramp_left.svg": m2, "./assets/directions/on_ramp_right.svg": w2, "./assets/directions/on_ramp_sharp_left.svg": b2, "./assets/directions/on_ramp_sharp_right.svg": N2, "./assets/directions/on_ramp_slight_left.svg": y2, "./assets/directions/on_ramp_slight_right.svg": A2, "./assets/directions/on_ramp_straight.svg": M2, "./assets/directions/rotary.svg": R2, "./assets/directions/rotary_left.svg": G2, "./assets/directions/rotary_right.svg": P2, "./assets/directions/rotary_sharp_left.svg": H2, "./assets/directions/rotary_sharp_right.svg": Z2, "./assets/directions/rotary_slight_left.svg": T2, "./assets/directions/rotary_slight_right.svg": B2, "./assets/directions/rotary_straight.svg": U2, "./assets/directions/roundabout.svg": D2, "./assets/directions/roundabout_left.svg": q2, "./assets/directions/roundabout_right.svg": X2, "./assets/directions/roundabout_sharp_left.svg": Y2, "./assets/directions/roundabout_sharp_right.svg": e3, "./assets/directions/roundabout_slight_left.svg": a3, "./assets/directions/roundabout_slight_right.svg": s3, "./assets/directions/roundabout_straight.svg": r3, "./assets/directions/turn_left.svg": c3, "./assets/directions/turn_right.svg": g3, "./assets/directions/turn_sharp_left.svg": _3, "./assets/directions/turn_sharp_right.svg": u3, "./assets/directions/turn_slight_left.svg": m3, "./assets/directions/turn_slight_right.svg": w3, "./assets/directions/turn_straight.svg": b3, "./assets/directions/updown.svg": N3, "./assets/directions/uturn.svg": y3 });
699
699
  let y = class extends M {
700
- constructor() {
701
- super(...arguments), this.visualInstruction = null;
702
- }
703
700
  getManeuverType() {
704
- return this.visualInstruction.primaryContent.maneuverType;
701
+ var _a;
702
+ return (_a = this.visualInstruction) == null ? void 0 : _a.primaryContent.maneuverType;
705
703
  }
706
704
  getManeuverModifier() {
707
- return this.visualInstruction.primaryContent.maneuverModifier;
705
+ var _a;
706
+ return (_a = this.visualInstruction) == null ? void 0 : _a.primaryContent.maneuverModifier;
708
707
  }
709
708
  getImageUrl() {
710
- return x3[`./assets/directions/${this.getManeuverType().replaceAll(" ", "_")}_${this.getManeuverModifier().replaceAll(" ", "_")}.svg`].default;
709
+ var _a, _b;
710
+ return x3[`./assets/directions/${(_a = this.getManeuverType()) == null ? void 0 : _a.replaceAll(" ", "_")}_${(_b = this.getManeuverModifier()) == null ? void 0 : _b.replaceAll(" ", "_")}.svg`].default;
711
711
  }
712
712
  render() {
713
713
  return O`<img
@@ -742,24 +742,25 @@ let I = class extends M {
742
742
  }
743
743
  render() {
744
744
  var _a;
745
- if ((_a = this.tripState) == null ? void 0 : _a.Navigating)
745
+ const i = this.tripState;
746
+ if (i && "Navigating" in i) {
747
+ const t = i.Navigating;
746
748
  return O`
747
749
  <div class="instructions-view-card">
748
750
  <maneuver-image
749
- .visualInstruction=${this.tripState.Navigating.visualInstruction}
751
+ .visualInstruction=${t.visualInstruction}
750
752
  ></maneuver-image>
751
753
  <div class="text-container">
752
754
  <p class="distance-text">
753
- ${this.tripState.Navigating.visualInstruction.primaryContent.text}
755
+ ${(_a = t.visualInstruction) == null ? void 0 : _a.primaryContent.text}
754
756
  </p>
755
757
  <p class="instruction-text">
756
- ${R3.format(
757
- this.tripState.Navigating.progress.distanceToNextManeuver
758
- )}
758
+ ${R3.format(t.progress.distanceToNextManeuver)}
759
759
  </p>
760
760
  </div>
761
761
  </div>
762
762
  `;
763
+ }
763
764
  }
764
765
  };
765
766
  I.styles = [
@@ -820,30 +821,28 @@ let A = class extends M {
820
821
  return new Date((/* @__PURE__ */ new Date()).getTime() + i * 1e3);
821
822
  }
822
823
  render() {
823
- var _a;
824
- if ((_a = this.tripState) == null ? void 0 : _a.Navigating)
824
+ const i = this.tripState;
825
+ if (i && "Navigating" in i) {
826
+ const t = i.Navigating;
825
827
  return O`
826
828
  <div class="progress-view-card">
827
829
  <p class="arrival-text">
828
830
  ${this.getEstimatedArrival(
829
- this.tripState.Navigating.progress.durationRemaining
831
+ t.progress.durationRemaining
830
832
  ).toLocaleTimeString([], {
831
833
  hour: "2-digit",
832
834
  minute: "2-digit"
833
835
  })}
834
836
  </p>
835
837
  <p class="arrival-text">
836
- ${W3.format(
837
- this.tripState.Navigating.progress.durationRemaining
838
- )}
838
+ ${W3.format(t.progress.durationRemaining)}
839
839
  </p>
840
840
  <p class="arrival-text">
841
- ${P3.format(
842
- this.tripState.Navigating.progress.distanceRemaining
843
- )}
841
+ ${P3.format(t.progress.distanceRemaining)}
844
842
  </p>
845
843
  </div>
846
844
  `;
845
+ }
847
846
  }
848
847
  };
849
848
  A.styles = [
@@ -1028,17 +1027,13 @@ let _ = class extends M {
1028
1027
  this.userLocationMarker && (this.userLocationMarker.remove(), this.userLocationMarker = null);
1029
1028
  }
1030
1029
  /**
1031
- * Clears the current navigation state, including route, user location marker, and navigation-related data.
1032
- */
1033
- clearNavigation() {
1034
- this.clearRoute(), this.clearUserLocationMarker(), this.route = null, this.tripState = null;
1035
- }
1036
- /**
1037
- * Handles the logic for stopping the navigation process. It clears the navigation state,
1038
- * resets the simulation flag, and invokes the optional onStopNavigation callback if provided.
1030
+ * Stops the navigation process, and clears the navigation state.
1031
+ *
1032
+ * This includes resetting the simulation flag,
1033
+ * and invoking the optional onStopNavigation callback if provided.
1039
1034
  */
1040
- handleStopNavigation() {
1041
- this.clearNavigation(), this.showUserMarker = false, this.showNavigationUI = false, this.stateProvider = null, this.onStopNavigation && this.onStopNavigation();
1035
+ stopNavigation() {
1036
+ this.clearUserLocationMarker(), this.route = null, this.tripState = null, this.showUserMarker = false, this.showNavigationUI = false, this.stateProvider = null, this.onStopNavigation && this.onStopNavigation();
1042
1037
  }
1043
1038
  render() {
1044
1039
  return O`
@@ -1060,7 +1055,7 @@ let _ = class extends M {
1060
1055
  ></trip-progress-view>
1061
1056
  <button
1062
1057
  id="stop-button"
1063
- @click=${this.handleStopNavigation}
1058
+ @click=${this.stopNavigation}
1064
1059
  ?hidden=${!this.tripState}
1065
1060
  >
1066
1061
  <img src=${z} alt="Stop navigation" class="icon" />
@@ -1190,7 +1185,7 @@ let v = class extends k {
1190
1185
  updated(i) {
1191
1186
  i.has("locationProvider") && this.locationProvider && (this.locationProvider.updateCallback = this.onLocationUpdated.bind(this));
1192
1187
  }
1193
- // TODO: type
1188
+ // @ts-ignore: We don't have a type/interface for these yet
1194
1189
  async getRoutes(i, t) {
1195
1190
  this.routeAdapter = new q(
1196
1191
  this.valhallaEndpointUrl,
@@ -1213,7 +1208,7 @@ let v = class extends k {
1213
1208
  throw console.error("Error parsing route response:", n), n;
1214
1209
  }
1215
1210
  }
1216
- // TODO: types
1211
+ // @ts-ignore: We don't have a type/interface for these yet
1217
1212
  startNavigation(i, t) {
1218
1213
  this.locationProvider.start(), this.onNavigationStart && this.onNavigationStart(), this.navigationController = new J(
1219
1214
  i,