@igo2/geo 20.1.0-next.19 → 20.1.0-next.20

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.
@@ -116,7 +116,7 @@ import * as i4$4 from '@angular/material/badge';
116
116
  import { MatBadgeModule } from '@angular/material/badge';
117
117
  import { DomSanitizer } from '@angular/platform-browser';
118
118
  import { IgoBadgeIconDirective } from '@igo2/common/badge';
119
- import { IgoIconComponent, VECTOR_SQUARE_ICON, KEYBOARD_ESC_ICON, ENGINE_ICON } from '@igo2/common/icon';
119
+ import { IgoIconComponent, VECTOR_SQUARE_ICON, KEYBOARD_ESC_ICON } from '@igo2/common/icon';
120
120
  import { stylefunction } from 'ol-mapbox-style';
121
121
  import { optionsFromCapabilities } from 'ol/source/WMTS.js';
122
122
  import { Cacheable } from 'ts-cacheable';
@@ -17613,6 +17613,7 @@ class DirectionsComponent {
17613
17613
  debounce = input(200, ...(ngDevMode ? [{ debugName: "debounce" }] : []));
17614
17614
  length = input(2, ...(ngDevMode ? [{ debugName: "length" }] : []));
17615
17615
  coordRoundedDecimals = input(6, ...(ngDevMode ? [{ debugName: "coordRoundedDecimals" }] : []));
17616
+ zoomToActiveRoute = input.required(...(ngDevMode ? [{ debugName: "zoomToActiveRoute" }] : []));
17616
17617
  authenticated$ = input.required(...(ngDevMode ? [{ debugName: "authenticated$" }] : []));
17617
17618
  /**
17618
17619
  * Wheter one of the direction control is active
@@ -17628,6 +17629,13 @@ class DirectionsComponent {
17628
17629
  return this.directionsSourceService.sources[0].getEnabledProfile()
17629
17630
  .authorization;
17630
17631
  }
17632
+ constructor() {
17633
+ effect(() => {
17634
+ if (this.zoomToActiveRoute()) {
17635
+ this.zoomOnActiveRoute();
17636
+ }
17637
+ });
17638
+ }
17631
17639
  ngOnInit() {
17632
17640
  this.twoSourcesAvailable =
17633
17641
  this.directionsSourceService.sources[0].profiles.length === 2
@@ -17903,7 +17911,7 @@ class DirectionsComponent {
17903
17911
  : ol.removeInteraction(interaction));
17904
17912
  }
17905
17913
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DirectionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17906
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: DirectionsComponent, isStandalone: true, selector: "igo-directions", inputs: { contextUri: { classPropertyName: "contextUri", publicName: "contextUri", isSignal: true, isRequired: false, transformFunction: null }, stopsStore: { classPropertyName: "stopsStore", publicName: "stopsStore", isSignal: true, isRequired: true, transformFunction: null }, stopsFeatureStore: { classPropertyName: "stopsFeatureStore", publicName: "stopsFeatureStore", isSignal: true, isRequired: true, transformFunction: null }, routesFeatureStore: { classPropertyName: "routesFeatureStore", publicName: "routesFeatureStore", isSignal: true, isRequired: true, transformFunction: null }, stepsFeatureStore: { classPropertyName: "stepsFeatureStore", publicName: "stepsFeatureStore", isSignal: true, isRequired: true, transformFunction: null }, debounce: { classPropertyName: "debounce", publicName: "debounce", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, coordRoundedDecimals: { classPropertyName: "coordRoundedDecimals", publicName: "coordRoundedDecimals", isSignal: true, isRequired: false, transformFunction: null }, authenticated$: { classPropertyName: "authenticated$", publicName: "authenticated$", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"directions-options\">\n <mat-slide-toggle\n [checked]=\"directionControlIsActive\"\n [labelPosition]=\"'before'\"\n (change)=\"onToggleDirectionsControl($event.checked)\"\n >\n {{ 'igo.geo.directions.toggle.activateControl' | translate }}\n </mat-slide-toggle>\n</div>\n\n<igo-directions-inputs\n (stopInputHasFocus)=\"onStopInputHasFocusChange($event)\"\n [coordRoundedDecimals]=\"coordRoundedDecimals()\"\n [projection]=\"projection\"\n [stopsFeatureStore]=\"stopsFeatureStore()\"\n [stopsStore]=\"stopsStore()\"\n [debounce]=\"debounce()\"\n [length]=\"length()\"\n/>\n\n@if (routesFeatureStore().all().length > 0) {\n <igo-directions-buttons\n [stepsFeatureStore]=\"stepsFeatureStore()\"\n [contextUri]=\"contextUri()\"\n (zoomOnActiveRoute)=\"zoomOnActiveRoute()\"\n [routesFeatureStore]=\"routesFeatureStore()\"\n [stopsStore]=\"stopsStore()\"\n />\n}\n\n<igo-directions-results\n [stepsFeatureStore]=\"stepsFeatureStore()\"\n [routesFeatureStore]=\"routesFeatureStore()\"\n/>\n", styles: [":host{display:block;padding:16px}.directions-options{display:flex;flex-flow:column;align-items:center;row-gap:8px;margin-bottom:16px}.directions-options mat-slide-toggle{width:100%}.directions-options mat-slide-toggle ::ng-deep .mdc-form-field{width:100%}.directions-options mat-slide-toggle ::ng-deep .mdc-label{margin-left:0;margin-right:auto;width:auto;padding-right:0}.directions-options mat-slide-toggle ::ng-deep .mdc-slide-toggle{margin-left:auto;margin-right:0}\n"], dependencies: [{ kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i1$3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "component", type: DirectionsButtonsComponent, selector: "igo-directions-buttons", inputs: ["contextUri", "stopsStore", "routesFeatureStore", "stepsFeatureStore"], outputs: ["zoomOnActiveRoute"] }, { kind: "component", type: DirectionsInputsComponent, selector: "igo-directions-inputs", inputs: ["stopsStore", "stopsFeatureStore", "projection", "coordRoundedDecimals", "debounce", "length"], outputs: ["stopInputHasFocus"] }, { kind: "component", type: DirectionsResultsComponent, selector: "igo-directions-results", inputs: ["routesFeatureStore", "stepsFeatureStore"] }, { kind: "ngmodule", type: IgoLanguageModule }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
17914
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: DirectionsComponent, isStandalone: true, selector: "igo-directions", inputs: { contextUri: { classPropertyName: "contextUri", publicName: "contextUri", isSignal: true, isRequired: false, transformFunction: null }, stopsStore: { classPropertyName: "stopsStore", publicName: "stopsStore", isSignal: true, isRequired: true, transformFunction: null }, stopsFeatureStore: { classPropertyName: "stopsFeatureStore", publicName: "stopsFeatureStore", isSignal: true, isRequired: true, transformFunction: null }, routesFeatureStore: { classPropertyName: "routesFeatureStore", publicName: "routesFeatureStore", isSignal: true, isRequired: true, transformFunction: null }, stepsFeatureStore: { classPropertyName: "stepsFeatureStore", publicName: "stepsFeatureStore", isSignal: true, isRequired: true, transformFunction: null }, debounce: { classPropertyName: "debounce", publicName: "debounce", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, coordRoundedDecimals: { classPropertyName: "coordRoundedDecimals", publicName: "coordRoundedDecimals", isSignal: true, isRequired: false, transformFunction: null }, zoomToActiveRoute: { classPropertyName: "zoomToActiveRoute", publicName: "zoomToActiveRoute", isSignal: true, isRequired: true, transformFunction: null }, authenticated$: { classPropertyName: "authenticated$", publicName: "authenticated$", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"directions-options\">\n <mat-slide-toggle\n [checked]=\"directionControlIsActive\"\n [labelPosition]=\"'before'\"\n (change)=\"onToggleDirectionsControl($event.checked)\"\n >\n {{ 'igo.geo.directions.toggle.activateControl' | translate }}\n </mat-slide-toggle>\n</div>\n\n<igo-directions-inputs\n (stopInputHasFocus)=\"onStopInputHasFocusChange($event)\"\n [coordRoundedDecimals]=\"coordRoundedDecimals()\"\n [projection]=\"projection\"\n [stopsFeatureStore]=\"stopsFeatureStore()\"\n [stopsStore]=\"stopsStore()\"\n [debounce]=\"debounce()\"\n [length]=\"length()\"\n/>\n\n@if (routesFeatureStore().all().length > 0) {\n <igo-directions-buttons\n [stepsFeatureStore]=\"stepsFeatureStore()\"\n [contextUri]=\"contextUri()\"\n (zoomOnActiveRoute)=\"zoomOnActiveRoute()\"\n [routesFeatureStore]=\"routesFeatureStore()\"\n [stopsStore]=\"stopsStore()\"\n />\n}\n\n<igo-directions-results\n [stepsFeatureStore]=\"stepsFeatureStore()\"\n [routesFeatureStore]=\"routesFeatureStore()\"\n/>\n", styles: [":host{display:block;padding:16px}.directions-options{display:flex;flex-flow:column;align-items:center;row-gap:8px;margin-bottom:16px}.directions-options mat-slide-toggle{width:100%}.directions-options mat-slide-toggle ::ng-deep .mdc-form-field{width:100%}.directions-options mat-slide-toggle ::ng-deep .mdc-label{margin-left:0;margin-right:auto;width:auto;padding-right:0}.directions-options mat-slide-toggle ::ng-deep .mdc-slide-toggle{margin-left:auto;margin-right:0}\n"], dependencies: [{ kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i1$3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "component", type: DirectionsButtonsComponent, selector: "igo-directions-buttons", inputs: ["contextUri", "stopsStore", "routesFeatureStore", "stepsFeatureStore"], outputs: ["zoomOnActiveRoute"] }, { kind: "component", type: DirectionsInputsComponent, selector: "igo-directions-inputs", inputs: ["stopsStore", "stopsFeatureStore", "projection", "coordRoundedDecimals", "debounce", "length"], outputs: ["stopInputHasFocus"] }, { kind: "component", type: DirectionsResultsComponent, selector: "igo-directions-results", inputs: ["routesFeatureStore", "stepsFeatureStore"] }, { kind: "ngmodule", type: IgoLanguageModule }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
17907
17915
  }
17908
17916
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DirectionsComponent, decorators: [{
17909
17917
  type: Component,
@@ -17914,7 +17922,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
17914
17922
  DirectionsResultsComponent,
17915
17923
  IgoLanguageModule
17916
17924
  ], template: "<div class=\"directions-options\">\n <mat-slide-toggle\n [checked]=\"directionControlIsActive\"\n [labelPosition]=\"'before'\"\n (change)=\"onToggleDirectionsControl($event.checked)\"\n >\n {{ 'igo.geo.directions.toggle.activateControl' | translate }}\n </mat-slide-toggle>\n</div>\n\n<igo-directions-inputs\n (stopInputHasFocus)=\"onStopInputHasFocusChange($event)\"\n [coordRoundedDecimals]=\"coordRoundedDecimals()\"\n [projection]=\"projection\"\n [stopsFeatureStore]=\"stopsFeatureStore()\"\n [stopsStore]=\"stopsStore()\"\n [debounce]=\"debounce()\"\n [length]=\"length()\"\n/>\n\n@if (routesFeatureStore().all().length > 0) {\n <igo-directions-buttons\n [stepsFeatureStore]=\"stepsFeatureStore()\"\n [contextUri]=\"contextUri()\"\n (zoomOnActiveRoute)=\"zoomOnActiveRoute()\"\n [routesFeatureStore]=\"routesFeatureStore()\"\n [stopsStore]=\"stopsStore()\"\n />\n}\n\n<igo-directions-results\n [stepsFeatureStore]=\"stepsFeatureStore()\"\n [routesFeatureStore]=\"routesFeatureStore()\"\n/>\n", styles: [":host{display:block;padding:16px}.directions-options{display:flex;flex-flow:column;align-items:center;row-gap:8px;margin-bottom:16px}.directions-options mat-slide-toggle{width:100%}.directions-options mat-slide-toggle ::ng-deep .mdc-form-field{width:100%}.directions-options mat-slide-toggle ::ng-deep .mdc-label{margin-left:0;margin-right:auto;width:auto;padding-right:0}.directions-options mat-slide-toggle ::ng-deep .mdc-slide-toggle{margin-left:auto;margin-right:0}\n"] }]
17917
- }], propDecorators: { contextUri: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextUri", required: false }] }], stopsStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopsStore", required: true }] }], stopsFeatureStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopsFeatureStore", required: true }] }], routesFeatureStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "routesFeatureStore", required: true }] }], stepsFeatureStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepsFeatureStore", required: true }] }], debounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounce", required: false }] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], coordRoundedDecimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "coordRoundedDecimals", required: false }] }], authenticated$: [{ type: i0.Input, args: [{ isSignal: true, alias: "authenticated$", required: true }] }] } });
17925
+ }], ctorParameters: () => [], propDecorators: { contextUri: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextUri", required: false }] }], stopsStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopsStore", required: true }] }], stopsFeatureStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopsFeatureStore", required: true }] }], routesFeatureStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "routesFeatureStore", required: true }] }], stepsFeatureStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepsFeatureStore", required: true }] }], debounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounce", required: false }] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], coordRoundedDecimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "coordRoundedDecimals", required: false }] }], zoomToActiveRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomToActiveRoute", required: true }] }], authenticated$: [{ type: i0.Input, args: [{ isSignal: true, alias: "authenticated$", required: true }] }] } });
17918
17926
 
17919
17927
  class IgoDirectionsModule {
17920
17928
  /**
@@ -33651,9 +33659,13 @@ class SearchResultsComponent {
33651
33659
  }
33652
33660
  }
33653
33661
  displayMoreResults(group) {
33662
+ const sourceId = group.source.getId();
33663
+ if (this.pageIterator[sourceId] === undefined) {
33664
+ this.pageIterator[sourceId] = 1;
33665
+ }
33654
33666
  const options = {
33655
- sourceId: group.source.getId(),
33656
- page: ++this.pageIterator[group.source.getId()]
33667
+ sourceId,
33668
+ page: ++this.pageIterator[sourceId]
33657
33669
  };
33658
33670
  let terms;
33659
33671
  const termSplitter = this.termSplitter();
@@ -34284,31 +34296,43 @@ function withCoordinatesReverseSource() {
34284
34296
  * Icons mappings to be retrocompatible with iCherche
34285
34297
  */
34286
34298
  const ICHERCHE_ICONS = {
34287
- 'map-marker': 'location_on',
34288
- city: 'location_city',
34289
- 'flag-triangle': 'flag',
34290
- 'map-marker-alert': 'fmd_bad',
34291
- 'map-marker-radius': 'pin_drop',
34292
- 'map-marker-multiple': 'local_post_office',
34293
- 'map-legend': 'map',
34299
+ 'airplane-marker': 'travel',
34300
+ ambulance: 'ambulance',
34301
+ 'baby-face-outline': 'child_care',
34294
34302
  bank: 'account_balance',
34295
- 'map-search': 'search_insights',
34296
34303
  'book-open-variant': 'menu_book',
34297
- 'office-building': 'apartment',
34298
- 'table-picnic': 'table_restaurant',
34304
+ 'circle-slice-8': 'circle_circle',
34305
+ city: 'location_city',
34306
+ engine: 'charger',
34307
+ 'fire-truck': 'fire_truck',
34308
+ 'flag-triangle': 'flag',
34299
34309
  flash: 'flash_on',
34300
- engine: ENGINE_ICON,
34301
- 'road-variant': 'add_road',
34302
- 'baby-face-outline': 'child_care',
34310
+ home: 'home',
34303
34311
  'home-account': 'location_home',
34312
+ 'home-city': 'home_work',
34304
34313
  hospital: 'local_hospital',
34314
+ 'map-legend': 'grid_on',
34315
+ 'map-marker': 'location_on',
34316
+ 'map-marker-alert': 'fmd_bad',
34317
+ 'map-marker-multiple': 'local_post_office',
34318
+ 'map-marker-radius': 'pin_drop',
34319
+ 'map-search': 'map_search',
34320
+ 'office-building': 'apartment',
34321
+ 'panorama-horizontal': 'panorama',
34322
+ parking: 'local_parking',
34305
34323
  pharmacy: 'local_pharmacy',
34306
34324
  'police-badge-outline': 'local_police',
34307
- parking: 'local_parking',
34308
- tree: 'nature',
34309
- 'home-city': 'home_work',
34325
+ 'road-variant': 'road',
34326
+ 'scale-balance': 'balance',
34327
+ school: 'school',
34328
+ 'table-picnic': 'rest_area',
34329
+ tent: 'camping',
34310
34330
  terrain: 'landscape',
34311
- 'panorama-horizontal': 'panorama_horizontal'
34331
+ train: 'train',
34332
+ tree: 'nature',
34333
+ 'vector-union': 'location_city',
34334
+ waterfall: 'waves',
34335
+ waves: 'waves'
34312
34336
  };
34313
34337
 
34314
34338
  class IChercheSearchResultFormatter {