@igo2/integration 19.0.0-next.9 → 19.0.1-next.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.
@@ -1,18 +1,24 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { EntityStore } from '@igo2/common/entity';
3
+ import { ContextService } from '@igo2/context';
4
+ import { LanguageService } from '@igo2/core/language';
3
5
  import { StorageService } from '@igo2/core/storage';
4
6
  import { Catalog, CatalogService } from '@igo2/geo';
5
7
  import { ToolState } from '../../tool/tool.state';
6
8
  import { CatalogState } from '../catalog.state';
9
+ import { ListExport } from './catalog-library-tool.interface';
7
10
  import * as i0 from "@angular/core";
8
11
  /**
9
12
  * Tool to browse the list of available catalogs.
10
13
  */
11
- export declare class CatalogLibraryToolComponent implements OnInit {
14
+ export declare class CatalogLibraryToolComponent implements OnInit, OnDestroy {
15
+ private contextService;
12
16
  private catalogService;
13
17
  private catalogState;
14
18
  private toolState;
15
19
  private storageService;
20
+ private languageService;
21
+ private generatelist$$;
16
22
  /**
17
23
  * Store that contains the catalogs
18
24
  * @internal
@@ -22,6 +28,10 @@ export declare class CatalogLibraryToolComponent implements OnInit {
22
28
  * Determine if the form to add a catalog is allowed
23
29
  */
24
30
  addCatalogAllowed: boolean;
31
+ /**
32
+ * Determine if the export button is shown
33
+ */
34
+ exportButton: boolean;
25
35
  /**
26
36
  * List of predefined catalogs
27
37
  */
@@ -29,11 +39,12 @@ export declare class CatalogLibraryToolComponent implements OnInit {
29
39
  set selectedCatalogId(id: any);
30
40
  get currentTool(): string;
31
41
  get lastTool(): string;
32
- constructor(catalogService: CatalogService, catalogState: CatalogState, toolState: ToolState, storageService: StorageService);
42
+ constructor(contextService: ContextService, catalogService: CatalogService, catalogState: CatalogState, toolState: ToolState, storageService: StorageService, languageService: LanguageService);
33
43
  /**
34
44
  * @internal
35
45
  */
36
46
  ngOnInit(): void;
47
+ ngOnDestroy(): void;
37
48
  /**
38
49
  * When the selected catalog changes, toggle the the CatalogBrowser tool.
39
50
  * @internal
@@ -48,6 +59,30 @@ export declare class CatalogLibraryToolComponent implements OnInit {
48
59
  * load them into the store.
49
60
  */
50
61
  private loadCatalogs;
62
+ /**
63
+ * Get the item abstract for getCatalogList
64
+ */
65
+ private getMetadataAbstract;
66
+ /**
67
+ * Get the item url metadata for getCatalogList
68
+ */
69
+ private getMetadataUrl;
70
+ private layersInfoFromContexts;
71
+ private listExportFromCatalogs;
72
+ getCatalogList(): Promise<void>;
73
+ private formatLayer;
74
+ /**
75
+ * Match a list of layer info with an other list derived from contexts
76
+ * @param catalogOutputs The row list to be written into a file
77
+ * @param layerInfosFromDetailedContexts Layers info derived from the context
78
+ * @returns An altered list, with layer/context association
79
+ */
80
+ private matchLayersWithLayersFromContext;
81
+ /**
82
+ * Write a Excel file
83
+ * @param catalogOutputs The row list to be written into a excel file
84
+ */
85
+ exportExcel(catalogOutputs: ListExport[]): Promise<void>;
51
86
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogLibraryToolComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<CatalogLibraryToolComponent, "igo-catalog-library-tool", never, { "addCatalogAllowed": { "alias": "addCatalogAllowed"; "required": false; }; "predefinedCatalogs": { "alias": "predefinedCatalogs"; "required": false; }; }, {}, never, never, true, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatalogLibraryToolComponent, "igo-catalog-library-tool", never, { "addCatalogAllowed": { "alias": "addCatalogAllowed"; "required": false; }; "exportButton": { "alias": "exportButton"; "required": false; }; "predefinedCatalogs": { "alias": "predefinedCatalogs"; "required": false; }; }, {}, never, never, true, never>;
53
88
  }
@@ -0,0 +1,21 @@
1
+ import { AnyDataSourceOptions } from '@igo2/geo';
2
+ export interface ListExport {
3
+ id: string;
4
+ rank: string;
5
+ layerTitle: string;
6
+ layerGroup: string;
7
+ catalog: string;
8
+ provider: string;
9
+ url: string;
10
+ layerName: string;
11
+ context: string;
12
+ metadataAbstract: string;
13
+ metadataUrl: string;
14
+ }
15
+ export interface InfoFromSourceOptions {
16
+ id: string;
17
+ layerName: string;
18
+ url: string;
19
+ sourceOptions: AnyDataSourceOptions;
20
+ context: string;
21
+ }
@@ -0,0 +1,3 @@
1
+ import { AnyDataSourceOptions } from '@igo2/geo';
2
+ import { InfoFromSourceOptions } from './catalog-library-tool.interface';
3
+ export declare function getInfoFromSourceOptions(sourceOptions: AnyDataSourceOptions, context: string): InfoFromSourceOptions;
@@ -1,5 +1,6 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { Action } from '@igo2/common/action';
3
+ import { Widget } from '@igo2/common/widget';
3
4
  import { LanguageService } from '@igo2/core/language';
4
5
  import { MediaService } from '@igo2/core/media';
5
6
  import { StorageService } from '@igo2/core/storage';
@@ -13,15 +14,16 @@ export declare class FeatureActionsService implements OnDestroy {
13
14
  languageService: LanguageService;
14
15
  private toolState;
15
16
  private mediaService;
17
+ private interactiveSelectionFormWidget?;
16
18
  maximize$: BehaviorSubject<boolean>;
17
19
  zoomAuto$: BehaviorSubject<boolean>;
18
20
  private storageChange$$;
19
21
  get storageService(): StorageService;
20
22
  get zoomAuto(): boolean;
21
- constructor(storageState: StorageState, languageService: LanguageService, toolState: ToolState, mediaService: MediaService);
23
+ constructor(storageState: StorageState, languageService: LanguageService, toolState: ToolState, mediaService: MediaService, interactiveSelectionFormWidget?: Widget);
22
24
  ngOnDestroy(): void;
23
25
  loadActions(workspace: FeatureWorkspace, rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>, selectOnlyCheckCondition$: BehaviorSubject<boolean>): void;
24
26
  buildActions(workspace: FeatureWorkspace, rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>, selectOnlyCheckCondition$: BehaviorSubject<boolean>): Action[];
25
- static ɵfac: i0.ɵɵFactoryDeclaration<FeatureActionsService, never>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureActionsService, [null, null, null, null, { optional: true; }]>;
26
28
  static ɵprov: i0.ɵɵInjectableDeclaration<FeatureActionsService>;
27
29
  }
@@ -10,21 +10,22 @@ import { StorageState } from '../../storage/storage.state';
10
10
  import { ToolState } from '../../tool/tool.state';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare class WfsActionsService implements OnDestroy {
13
- private ogcFilterWidget;
14
13
  private storageState;
15
14
  languageService: LanguageService;
16
15
  private mediaService;
17
16
  private toolState;
17
+ private interactiveSelectionFormWidget?;
18
+ private ogcFilterWidget?;
18
19
  maximize$: BehaviorSubject<boolean>;
19
20
  selectOnlyCheckCondition$: BehaviorSubject<boolean>;
20
21
  zoomAuto$: BehaviorSubject<boolean>;
21
22
  private storageChange$$;
22
23
  get storageService(): StorageService;
23
24
  get zoomAuto(): boolean;
24
- constructor(ogcFilterWidget: Widget, storageState: StorageState, languageService: LanguageService, mediaService: MediaService, toolState: ToolState);
25
+ constructor(storageState: StorageState, languageService: LanguageService, mediaService: MediaService, toolState: ToolState, interactiveSelectionFormWidget?: Widget, ogcFilterWidget?: Widget);
25
26
  ngOnDestroy(): void;
26
27
  loadActions(workspace: WfsWorkspace, rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>, selectOnlyCheckCondition$: BehaviorSubject<boolean>): void;
27
28
  buildActions(workspace: WfsWorkspace, rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>, selectOnlyCheckCondition$: BehaviorSubject<boolean>): Action[];
28
- static ɵfac: i0.ɵɵFactoryDeclaration<WfsActionsService, [{ optional: true; }, null, null, null, null]>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<WfsActionsService, [null, null, null, null, { optional: true; }, { optional: true; }]>;
29
30
  static ɵprov: i0.ɵɵInjectableDeclaration<WfsActionsService>;
30
31
  }
@@ -7,4 +7,4 @@ import { EditionWorkspace, FeatureWorkspace, WfsWorkspace } from '@igo2/geo';
7
7
  import { BehaviorSubject } from 'rxjs';
8
8
  import { ToolState } from '../../tool';
9
9
  export declare function handleZoomAuto(workspace: FeatureWorkspace | WfsWorkspace | EditionWorkspace, storageService: any): void;
10
- export declare function getWorkspaceActions(workspace: FeatureWorkspace | WfsWorkspace | EditionWorkspace, rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>, selectOnlyCheckCondition$: BehaviorSubject<boolean>, ogcFilterWidget: Widget, zoomAuto$: BehaviorSubject<boolean>, maximize$: BehaviorSubject<boolean>, storageService: StorageService, languageService: LanguageService, mediaService: MediaService, toolState: ToolState): Action[];
10
+ export declare function getWorkspaceActions(workspace: FeatureWorkspace | WfsWorkspace | EditionWorkspace, rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>, selectOnlyCheckCondition$: BehaviorSubject<boolean>, ogcFilterWidget: Widget, zoomAuto$: BehaviorSubject<boolean>, maximize$: BehaviorSubject<boolean>, storageService: StorageService, languageService: LanguageService, mediaService: MediaService, toolState: ToolState, interactiveSelectionFormWidget?: Widget): Action[];
@@ -22,6 +22,24 @@
22
22
  "advancedMap": "Advanced map tools",
23
23
  "closestFeature": "Closest feature tool"
24
24
  },
25
+ "catalog": {
26
+ "library.getCatalogList": "Get the catalogs's content list",
27
+ "listExport": {
28
+ "rank": "Rank",
29
+ "layerTitle": "Layer Title",
30
+ "layerGroup": "Layer Group",
31
+ "catalog": "Catalog",
32
+ "externalProvider": "Provider",
33
+ "url": "URL",
34
+ "layerName": "Layer name",
35
+ "context": "Context/Thematic",
36
+ "metadataAbstract": "Data description",
37
+ "metadataUrl": "Metadata hyperlink",
38
+ "documentName": "LayerList_{{value}}",
39
+ "internal": "Internal",
40
+ "external": "External"
41
+ }
42
+ },
25
43
  "dataIssueReporterTool": {
26
44
  "submit": {
27
45
  "title": "Submit a data inconsistency",
@@ -29,9 +47,7 @@
29
47
  "setupMessage": "Please configure a server component to submit an inconsistency",
30
48
  "button": "Submit location"
31
49
  },
32
- "reset": {
33
- "button": "Reset input"
34
- },
50
+ "reset": { "button": "Reset input" },
35
51
  "geometry": "Enter geometry",
36
52
  "drawGuidePlaceholder": "Drawing Guide",
37
53
  "layer": "Layers of information",
@@ -85,7 +101,9 @@
85
101
  "maximize": "Extend",
86
102
  "maximizeTooltip": "Extend panel",
87
103
  "standardExtent": "Reduce",
88
- "standardExtentTooltip": "Reduce panel"
104
+ "standardExtentTooltip": "Reduce panel",
105
+ "interactiveSelection.title": "Select features by geometry",
106
+ "interactiveSelection.tooltip": "Select features by geometry"
89
107
  },
90
108
  "directions": {
91
109
  "warning": {
@@ -22,6 +22,25 @@
22
22
  "advancedMap": "Outils avancés",
23
23
  "closestFeature": "Entités à proximité"
24
24
  },
25
+ "catalog": {
26
+ "library.getCatalogList": "Obtenir la liste du contenu des catalogues",
27
+ "listExport": {
28
+ "rank": "Rang",
29
+ "layerTitle": "Titre de la couche",
30
+ "layerGroup": "Nom du groupe de couches",
31
+ "catalog": "Catalogue",
32
+ "externalProvider": "Fournisseur",
33
+ "url": "URL",
34
+ "layerName": "Nom système de la couche d'informaiton",
35
+ "context": "Contexte/Thématique",
36
+ "dataDescription": "Description de la donnée",
37
+ "metadataAbstract": "Description de la donnée",
38
+ "metadataUrl": "Lien des métadonnées",
39
+ "documentName": "ListeCouchesInformation_{{value}}",
40
+ "internal": "Interne",
41
+ "external": "Externe"
42
+ }
43
+ },
25
44
  "dataIssueReporterTool": {
26
45
  "submit": {
27
46
  "title": "Soumettre une incohérence de donnée",
@@ -29,9 +48,7 @@
29
48
  "setupMessage": "Veuillez configurer une composante serveur pour soumettre une incohérence",
30
49
  "button": "Soumettre la localisation"
31
50
  },
32
- "reset": {
33
- "button": "Réinitialiser la saisie"
34
- },
51
+ "reset": { "button": "Réinitialiser la saisie" },
35
52
  "geometry": "Saisir une géométrie",
36
53
  "drawGuidePlaceholder": "Guide de dessin",
37
54
  "layer": "Couches d'informations",
@@ -85,7 +102,9 @@
85
102
  "maximize": "Agrandir",
86
103
  "maximizeTooltip": "Agrandir la fenêtre",
87
104
  "standardExtent": "Réduire",
88
- "standardExtentTooltip": "Réduire la fenêtre"
105
+ "standardExtentTooltip": "Réduire la fenêtre",
106
+ "interactiveSelection.title": "Sélectioner les entités par géométrie",
107
+ "interactiveSelection.tooltip": "Sélectioner les entités par géométrie"
89
108
  },
90
109
  "directions": {
91
110
  "warning": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/integration",
3
- "version": "19.0.0-next.9",
3
+ "version": "19.0.1-next.1",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -30,12 +30,12 @@
30
30
  "peerDependencies": {
31
31
  "@angular/common": "^19.0.0",
32
32
  "@angular/core": "^19.0.0",
33
- "@igo2/auth": "^19.0.0-next.9",
34
- "@igo2/context": "^19.0.0-next.9",
35
- "@igo2/geo": "^19.0.0-next.9",
36
- "@turf/point-on-feature": "^6.5.0",
37
- "jspdf": "^3.0.0",
33
+ "@igo2/auth": "^19.0.1-next.1",
34
+ "@igo2/context": "^19.0.1-next.1",
35
+ "@igo2/geo": "^19.0.1-next.1",
36
+ "@turf/point-on-feature": "^7.2.0",
38
37
  "jspdf-autotable": "^5.0.0",
38
+ "jspdf": "^3.0.0",
39
39
  "rxjs": "^7.8.0"
40
40
  },
41
41
  "engines": {