@igo2/integration 1.14.2 → 1.15.1

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 (86) hide show
  1. package/esm2020/lib/about/about-tool/about-tool.component.mjs +2 -2
  2. package/esm2020/lib/about/about.module.mjs +1 -1
  3. package/esm2020/lib/analytics/analytics-listener.service.mjs +59 -4
  4. package/esm2020/lib/analytics/analytics.module.mjs +1 -1
  5. package/esm2020/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.mjs +2 -2
  6. package/esm2020/lib/catalog/catalog-browser-tool/catalog-browser-tool.module.mjs +1 -1
  7. package/esm2020/lib/catalog/catalog-library-tool/catalog-library-tool.component.mjs +2 -2
  8. package/esm2020/lib/catalog/catalog-library-tool/catalog-library-tool.module.mjs +1 -1
  9. package/esm2020/lib/catalog/catalog.module.mjs +1 -1
  10. package/esm2020/lib/catalog/catalog.state.mjs +1 -1
  11. package/esm2020/lib/context/context-editor-tool/context-editor-tool.component.mjs +2 -2
  12. package/esm2020/lib/context/context-manager-tool/context-manager-tool.component.mjs +2 -2
  13. package/esm2020/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.mjs +2 -2
  14. package/esm2020/lib/context/context-share-tool/context-share-tool.component.mjs +2 -2
  15. package/esm2020/lib/context/context.module.mjs +1 -1
  16. package/esm2020/lib/context/context.state.mjs +1 -1
  17. package/esm2020/lib/directions/directions-tool/directions-tool.component.mjs +3 -6
  18. package/esm2020/lib/directions/directions.module.mjs +1 -1
  19. package/esm2020/lib/directions/directions.state.mjs +1 -1
  20. package/esm2020/lib/draw/draw.module.mjs +1 -1
  21. package/esm2020/lib/draw/draw.state.mjs +1 -2
  22. package/esm2020/lib/draw/drawing-tool/drawing-tool.component.mjs +2 -2
  23. package/esm2020/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.animation.mjs +1 -1
  24. package/esm2020/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.mjs +2 -2
  25. package/esm2020/lib/filter/active-time-filter-tool/active-time-filter-tool.animation.mjs +1 -1
  26. package/esm2020/lib/filter/active-time-filter-tool/active-time-filter-tool.component.mjs +2 -2
  27. package/esm2020/lib/filter/filter.module.mjs +1 -1
  28. package/esm2020/lib/filter/ogc-filter-tool/ogc-filter-tool.component.mjs +2 -2
  29. package/esm2020/lib/filter/spatial-filter-tool/spatial-filter-tool.component.mjs +4 -4
  30. package/esm2020/lib/filter/time-filter-tool/time-filter-tool.component.mjs +2 -2
  31. package/esm2020/lib/import-export/import-export-tool/import-export-tool.component.mjs +26 -22
  32. package/esm2020/lib/import-export/import-export.module.mjs +8 -5
  33. package/esm2020/lib/import-export/import-export.state.mjs +1 -1
  34. package/esm2020/lib/integration.module.mjs +1 -1
  35. package/esm2020/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.mjs +64 -65
  36. package/esm2020/lib/map/advanced-map-tool/advanced-map-tool.component.mjs +2 -2
  37. package/esm2020/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.mjs +2 -2
  38. package/esm2020/lib/map/layer-list-tool.state.mjs +1 -1
  39. package/esm2020/lib/map/map-details-tool/map-details-tool.component.mjs +2 -2
  40. package/esm2020/lib/map/map-legend/map-legend-tool.component.mjs +2 -2
  41. package/esm2020/lib/map/map-proximity-tool/map-proximity-tool.component.mjs +5 -8
  42. package/esm2020/lib/map/map-proximity.state.mjs +9 -5
  43. package/esm2020/lib/map/map-tool/map-tool.component.mjs +2 -2
  44. package/esm2020/lib/map/map-tools/map-tools.component.mjs +78 -61
  45. package/esm2020/lib/map/map.module.mjs +5 -2
  46. package/esm2020/lib/map/map.state.mjs +1 -1
  47. package/esm2020/lib/measure/measure.module.mjs +1 -1
  48. package/esm2020/lib/measure/measure.state.mjs +1 -1
  49. package/esm2020/lib/measure/measurer-tool/measurer-tool.component.mjs +2 -2
  50. package/esm2020/lib/measure/measurer-tool/measurer-tool.module.mjs +1 -1
  51. package/esm2020/lib/print/print-tool/print-tool.component.mjs +2 -2
  52. package/esm2020/lib/print/print.module.mjs +1 -1
  53. package/esm2020/lib/search/query.state.mjs +1 -1
  54. package/esm2020/lib/search/search-bar/search-bar-binding.directive.mjs +1 -1
  55. package/esm2020/lib/search/search-bar/search-bar.module.mjs +1 -1
  56. package/esm2020/lib/search/search-results-tool/search-results-tool.component.mjs +20 -20
  57. package/esm2020/lib/search/search-results-tool/search-results-tool.module.mjs +1 -1
  58. package/esm2020/lib/search/search.module.mjs +1 -1
  59. package/esm2020/lib/search/search.state.mjs +29 -4
  60. package/esm2020/lib/storage/storage.module.mjs +1 -1
  61. package/esm2020/lib/storage/storage.state.mjs +1 -1
  62. package/esm2020/lib/tool/tool.module.mjs +1 -1
  63. package/esm2020/lib/tool/tool.state.mjs +1 -1
  64. package/esm2020/lib/workspace/shared/edition-actions.service.mjs +1 -1
  65. package/esm2020/lib/workspace/shared/feature-actions.service.mjs +1 -1
  66. package/esm2020/lib/workspace/shared/index.mjs +1 -1
  67. package/esm2020/lib/workspace/shared/wfs-actions.service.mjs +1 -1
  68. package/esm2020/lib/workspace/shared/workspace.utils.mjs +1 -1
  69. package/esm2020/lib/workspace/workspace-button/workspace-button.component.mjs +2 -2
  70. package/esm2020/lib/workspace/workspace.module.mjs +1 -1
  71. package/esm2020/lib/workspace/workspace.state.mjs +1 -1
  72. package/fesm2015/igo2-integration.mjs +318 -216
  73. package/fesm2015/igo2-integration.mjs.map +1 -1
  74. package/fesm2020/igo2-integration.mjs +314 -216
  75. package/fesm2020/igo2-integration.mjs.map +1 -1
  76. package/lib/analytics/analytics-listener.service.d.ts +7 -1
  77. package/lib/draw/draw.state.d.ts +0 -1
  78. package/lib/import-export/import-export-tool/import-export-tool.component.d.ts +3 -1
  79. package/lib/import-export/import-export.module.d.ts +1 -1
  80. package/lib/map/map-proximity.state.d.ts +4 -1
  81. package/lib/map/map-tools/map-tools.component.d.ts +1 -0
  82. package/lib/map/map.module.d.ts +1 -1
  83. package/lib/search/search-results-tool/search-results-tool.component.d.ts +4 -5
  84. package/lib/search/search.state.d.ts +8 -2
  85. package/ngcc.config.js +3 -3
  86. package/package.json +8 -5
@@ -3,6 +3,7 @@ import { AuthService } from '@igo2/auth';
3
3
  import { ContextState } from '../context/context.state';
4
4
  import { SearchState } from '../search/search.state';
5
5
  import { ToolState } from '../tool/tool.state';
6
+ import { MapState } from '../map/map.state';
6
7
  import * as i0 from "@angular/core";
7
8
  /**
8
9
  * Service that holds the state of the search module
@@ -13,15 +14,20 @@ export declare class AnalyticsListenerService {
13
14
  private contextState;
14
15
  private searchState;
15
16
  private toolState;
17
+ private mapState;
16
18
  /**
17
19
  * Toolbox that holds main tools
18
20
  */
19
- constructor(analyticsService: AnalyticsService, authService: AuthService, contextState: ContextState, searchState: SearchState, toolState: ToolState);
21
+ constructor(analyticsService: AnalyticsService, authService: AuthService, contextState: ContextState, searchState: SearchState, toolState: ToolState, mapState: MapState);
20
22
  listen(): void;
21
23
  listenUser(): void;
22
24
  listenContext(): void;
23
25
  listenTool(): void;
24
26
  listenSearch(): void;
27
+ /**
28
+ * Listener for adding layers to the map
29
+ */
30
+ listenLayer(): void;
25
31
  static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsListenerService, never>;
26
32
  static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsListenerService>;
27
33
  }
@@ -6,7 +6,6 @@ import * as i0 from "@angular/core";
6
6
  */
7
7
  export declare class DrawState {
8
8
  private mapState;
9
- searchLayerStores: FeatureStore<FeatureWithDraw>[];
10
9
  stores: FeatureStore<FeatureWithDraw>[];
11
10
  layersID: string[];
12
11
  drawControls: [string, DrawControl][];
@@ -4,11 +4,13 @@ import { IgoMap, ExportOptions, ProjectionsLimitationsOptions } from '@igo2/geo'
4
4
  import { MapState } from '../../map/map.state';
5
5
  import { ImportExportMode, ImportExportState, ImportExportType } from '../import-export.state';
6
6
  import { WorkspaceState } from '../../workspace/workspace.state';
7
+ import { ContextState } from '../../context/context.state';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ImportExportToolComponent implements OnInit {
9
10
  private mapState;
10
11
  importExportState: ImportExportState;
11
12
  private workspaceState;
13
+ contextState: ContextState;
12
14
  projectionsLimitations: ProjectionsLimitationsOptions;
13
15
  selectFirstProj: boolean;
14
16
  /**
@@ -19,7 +21,7 @@ export declare class ImportExportToolComponent implements OnInit {
19
21
  get workspaceStore(): WorkspaceStore;
20
22
  importExportType: ImportExportType;
21
23
  importExportShowBothType: boolean;
22
- constructor(mapState: MapState, importExportState: ImportExportState, workspaceState: WorkspaceState);
24
+ constructor(mapState: MapState, importExportState: ImportExportState, workspaceState: WorkspaceState, contextState: ContextState);
23
25
  ngOnInit(): void;
24
26
  private selectType;
25
27
  private selectMode;
@@ -10,6 +10,6 @@ import * as i7 from "@angular/material/tabs";
10
10
  export declare class IgoAppImportExportModule {
11
11
  static forRoot(): ModuleWithProviders<IgoAppImportExportModule>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoAppImportExportModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoAppImportExportModule, [typeof i1.ImportExportToolComponent], [typeof i2.IgoImportExportModule, typeof i3.IgoContextImportExportModule, typeof i4.CommonModule, typeof i5.IgoLanguageModule, typeof i6.MatButtonToggleModule, typeof i7.MatTabsModule], [typeof i1.ImportExportToolComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoAppImportExportModule, [typeof i1.ImportExportToolComponent], [typeof i2.IgoImportExportModule, typeof i3.IgoContextImportExportModule, typeof i4.CommonModule, typeof i5.IgoLanguageModule, typeof i6.MatButtonToggleModule, typeof i7.MatTabsModule, typeof i2.IgoStyleModule], [typeof i1.ImportExportToolComponent]>;
14
14
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoAppImportExportModule>;
15
15
  }
@@ -1,12 +1,15 @@
1
1
  import { FeatureStore, Feature, IgoMap, Layer } from '@igo2/geo';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import { MapState } from '../map/map.state';
4
+ import { StorageService } from '@igo2/core';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
6
7
  * Service that holds the state of the direction module
7
8
  */
8
9
  export declare class MapProximityState {
9
10
  private mapState;
11
+ private storageService;
12
+ private defaultProximityRadiusValue;
10
13
  enabled$: BehaviorSubject<boolean>;
11
14
  proximityRadiusValue$: BehaviorSubject<number>;
12
15
  proximitylocationType$: BehaviorSubject<string>;
@@ -14,7 +17,7 @@ export declare class MapProximityState {
14
17
  private subs$$;
15
18
  currentPositionCoordinate$: BehaviorSubject<[number, number]>;
16
19
  get map(): IgoMap;
17
- constructor(mapState: MapState);
20
+ constructor(mapState: MapState, storageService: StorageService);
18
21
  subscribeProximityMonitor(): void;
19
22
  /**
20
23
  * Add a feature with proximity properties to the store
@@ -60,6 +60,7 @@ export declare class MapToolsComponent implements OnInit, OnDestroy {
60
60
  isTimeFilterButton(layer: any): boolean;
61
61
  isOGCFilterButton(layer: any): boolean;
62
62
  isExportButton(layer: Layer): boolean;
63
+ isStyleEditButton(layer: Layer): boolean;
63
64
  static ɵfac: i0.ɵɵFactoryDeclaration<MapToolsComponent, never>;
64
65
  static ɵcmp: i0.ɵɵComponentDeclaration<MapToolsComponent, "igo-map-tools", never, { "allowShowAllLegends": "allowShowAllLegends"; "showAllLegendsValue": "showAllLegendsValue"; "toggleLegendOnVisibilityChange": "toggleLegendOnVisibilityChange"; "expandLegendOfVisibleLayers": "expandLegendOfVisibleLayers"; "updateLegendOnResolutionChange": "updateLegendOnResolutionChange"; "selectedTabAtOpening": "selectedTabAtOpening"; "ogcButton": "ogcButton"; "timeButton": "timeButton"; "layerAdditionAllowed": "layerAdditionAllowed"; "layerListControls": "layerListControls"; "queryBadge": "queryBadge"; }, {}, never, never, false>;
65
66
  }
@@ -33,6 +33,6 @@ import * as i30 from "@angular/material/tooltip";
33
33
  export declare class IgoAppMapModule {
34
34
  static forRoot(): ModuleWithProviders<IgoAppMapModule>;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoAppMapModule, never>;
36
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoAppMapModule, [typeof i1.AdvancedMapToolComponent, typeof i2.MapProximityToolComponent, typeof i3.MapToolComponent, typeof i4.MapToolsComponent, typeof i5.MapDetailsToolComponent, typeof i6.MapLegendToolComponent, typeof i7.AdvancedSwipeComponent, typeof i8.AdvancedCoordinatesComponent], [typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.MatButtonToggleModule, typeof i11.MatDividerModule, typeof i12.MatSelectModule, typeof i13.MatOptionModule, typeof i14.MatFormFieldModule, typeof i15.MatInputModule, typeof i16.MatCheckboxModule, typeof i17.IgoSpinnerModule, typeof i18.CommonModule, typeof i19.MatTabsModule, typeof i20.MatListModule, typeof i21.MatIconModule, typeof i22.IgoLanguageModule, typeof i23.IgoLayerModule, typeof i23.IgoMetadataModule, typeof i23.IgoDownloadModule, typeof i23.IgoImportExportModule, typeof i23.IgoFilterModule, typeof i24.MatRadioModule, typeof i25.IgoContextModule, typeof i26.IgoAppWorkspaceModule, typeof i27.MatSlideToggleModule, typeof i28.MatMenuModule, typeof i29.MatButtonModule, typeof i30.MatTooltipModule, typeof i17.IgoEntityTableModule], [typeof i1.AdvancedMapToolComponent, typeof i2.MapProximityToolComponent, typeof i3.MapToolComponent, typeof i4.MapToolsComponent, typeof i5.MapDetailsToolComponent, typeof i6.MapLegendToolComponent]>;
36
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoAppMapModule, [typeof i1.AdvancedMapToolComponent, typeof i2.MapProximityToolComponent, typeof i3.MapToolComponent, typeof i4.MapToolsComponent, typeof i5.MapDetailsToolComponent, typeof i6.MapLegendToolComponent, typeof i7.AdvancedSwipeComponent, typeof i8.AdvancedCoordinatesComponent], [typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.MatButtonToggleModule, typeof i11.MatDividerModule, typeof i12.MatSelectModule, typeof i13.MatOptionModule, typeof i14.MatFormFieldModule, typeof i15.MatInputModule, typeof i16.MatCheckboxModule, typeof i17.IgoSpinnerModule, typeof i18.CommonModule, typeof i19.MatTabsModule, typeof i20.MatListModule, typeof i21.MatIconModule, typeof i22.IgoLanguageModule, typeof i23.IgoLayerModule, typeof i23.IgoMetadataModule, typeof i23.IgoDownloadModule, typeof i23.IgoImportExportModule, typeof i23.IgoStyleModule, typeof i23.IgoFilterModule, typeof i24.MatRadioModule, typeof i25.IgoContextModule, typeof i26.IgoAppWorkspaceModule, typeof i27.MatSlideToggleModule, typeof i28.MatMenuModule, typeof i29.MatButtonModule, typeof i30.MatTooltipModule, typeof i17.IgoEntityTableModule], [typeof i1.AdvancedMapToolComponent, typeof i2.MapProximityToolComponent, typeof i3.MapToolComponent, typeof i4.MapToolsComponent, typeof i5.MapDetailsToolComponent, typeof i6.MapLegendToolComponent]>;
37
37
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoAppMapModule>;
38
38
  }
@@ -2,12 +2,11 @@ import { OnInit, ElementRef, OnDestroy } from '@angular/core';
2
2
  import { Observable, BehaviorSubject } from 'rxjs';
3
3
  import { ConfigService } from '@igo2/core';
4
4
  import { EntityStore, FlexibleState } from '@igo2/common';
5
- import { Feature, SearchResult, IgoMap, Research, FeatureWithDraw, FeatureStore } from '@igo2/geo';
5
+ import { Feature, SearchResult, IgoMap, Research, FeatureStore } from '@igo2/geo';
6
6
  import { MapState } from '../../map/map.state';
7
7
  import { SearchState } from '../search.state';
8
8
  import { ToolState } from '../../tool/tool.state';
9
9
  import { DirectionState } from '../../directions/directions.state';
10
- import { DrawState } from '../../draw';
11
10
  import * as i0 from "@angular/core";
12
11
  /**
13
12
  * Tool to browse the search results
@@ -18,7 +17,6 @@ export declare class SearchResultsToolComponent implements OnInit, OnDestroy {
18
17
  private elRef;
19
18
  toolState: ToolState;
20
19
  private directionState;
21
- private drawState;
22
20
  /**
23
21
  * to show hide results icons
24
22
  */
@@ -28,6 +26,7 @@ export declare class SearchResultsToolComponent implements OnInit, OnDestroy {
28
26
  */
29
27
  topPanelStateDefault: string;
30
28
  private hasFeatureEmphasisOnSelection;
29
+ saveSearchResultInLayer: boolean;
31
30
  private showResultsGeometries$$;
32
31
  private getRoute$$;
33
32
  private shownResultsGeometries;
@@ -61,8 +60,8 @@ export declare class SearchResultsToolComponent implements OnInit, OnDestroy {
61
60
  get topPanelState(): FlexibleState;
62
61
  get termSplitter(): string;
63
62
  private format;
64
- get stores(): FeatureStore<FeatureWithDraw>[];
65
- constructor(mapState: MapState, searchState: SearchState, elRef: ElementRef, toolState: ToolState, directionState: DirectionState, configService: ConfigService, drawState: DrawState);
63
+ get stores(): FeatureStore<Feature>[];
64
+ constructor(mapState: MapState, searchState: SearchState, elRef: ElementRef, toolState: ToolState, directionState: DirectionState, configService: ConfigService);
66
65
  ngOnInit(): void;
67
66
  private monitorResultOutOfView;
68
67
  private buildResultEmphasis;
@@ -1,7 +1,9 @@
1
1
  import { EntityStore } from '@igo2/common';
2
2
  import { ConfigService, StorageService } from '@igo2/core';
3
- import { SearchResult, SearchSourceService, CommonVectorStyleOptions } from '@igo2/geo';
3
+ import { SearchResult, SearchSourceService, CommonVectorStyleOptions, FeatureStore, Feature } from '@igo2/geo';
4
4
  import { BehaviorSubject, Subscription } from 'rxjs';
5
+ import { WorkspaceState } from '../workspace/workspace.state';
6
+ import { MapState } from '../map';
5
7
  import * as i0 from "@angular/core";
6
8
  /**
7
9
  * Service that holds the state of the search module
@@ -9,7 +11,10 @@ import * as i0 from "@angular/core";
9
11
  export declare class SearchState {
10
12
  private searchSourceService;
11
13
  private storageService;
14
+ private workspaceState;
12
15
  private configService;
16
+ private mapState;
17
+ searchLayerStores: FeatureStore<Feature>[];
13
18
  searchOverlayStyle: CommonVectorStyleOptions;
14
19
  searchOverlayStyleSelection: CommonVectorStyleOptions;
15
20
  searchOverlayStyleFocus: CommonVectorStyleOptions;
@@ -30,7 +35,8 @@ export declare class SearchState {
30
35
  * Search types currently enabled in the search source service
31
36
  */
32
37
  get searchTypes(): string[];
33
- constructor(searchSourceService: SearchSourceService, storageService: StorageService, configService: ConfigService);
38
+ constructor(searchSourceService: SearchSourceService, storageService: StorageService, workspaceState: WorkspaceState, configService: ConfigService, mapState: MapState);
39
+ private monitorLayerDeletion;
34
40
  private createCustomFilterTermStrategy;
35
41
  /**
36
42
  * Activate custom strategy
package/ngcc.config.js CHANGED
@@ -1,3 +1,3 @@
1
- module.exports = {
2
- ignorableDeepImportMatchers: [/ol\//]
3
- };
1
+ module.exports = {
2
+ ignorableDeepImportMatchers: [/ol\//]
3
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/integration",
3
- "version": "1.14.2",
3
+ "version": "1.15.1",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -16,15 +16,18 @@
16
16
  "url": "https://github.com/infra-geo-ouverte/igo2-lib/issues"
17
17
  },
18
18
  "peerDependencies": {
19
- "@angular/common": "^14.1.2",
20
- "@angular/core": "^14.1.2",
21
- "@igo2/geo": "1.14.2",
22
- "@igo2/context": "1.14.2",
19
+ "@angular/common": "^14.3.0",
20
+ "@angular/core": "^14.3.0",
21
+ "@igo2/geo": "1.15.1",
22
+ "@igo2/context": "1.15.1",
23
23
  "rxjs": "^7.5.6"
24
24
  },
25
25
  "dependencies": {
26
26
  "tslib": "^2.4.0"
27
27
  },
28
+ "engines": {
29
+ "node": ">=16.19.0"
30
+ },
28
31
  "module": "fesm2015/igo2-integration.mjs",
29
32
  "es2020": "fesm2020/igo2-integration.mjs",
30
33
  "esm2020": "esm2020/igo2-integration.mjs",