@igo2/integration 16.1.1 → 16.3.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.
- package/esm2022/lib/analytics/analytics.module.mjs +1 -1
- package/esm2022/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.mjs +7 -16
- package/esm2022/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.mjs +1 -1
- package/esm2022/lib/context/index.mjs +1 -1
- package/esm2022/lib/filter/index.mjs +1 -1
- package/esm2022/lib/filter/ogc-filter-tool/ogc-filter-tool.component.mjs +1 -1
- package/esm2022/lib/filter/spatial-filter-tool/spatial-filter-tool.component.mjs +3 -3
- package/esm2022/lib/filter/time-filter-tool/time-filter-tool.component.mjs +1 -1
- package/esm2022/lib/geometry-form/data-issue-reporter-tool/data-issue-reporter-tool.component.mjs +180 -0
- package/esm2022/lib/geometry-form/data-issue-reporter-tool/index.mjs +2 -0
- package/esm2022/lib/geometry-form/geometry-form.module.mjs +36 -0
- package/esm2022/lib/geometry-form/index.mjs +2 -0
- package/esm2022/lib/integration.module.mjs +8 -4
- package/esm2022/lib/map/index.mjs +1 -1
- package/esm2022/lib/print/print-tool/print-tool.component.mjs +1 -1
- package/esm2022/lib/search/index.mjs +1 -1
- package/esm2022/lib/search/query.state.mjs +3 -3
- package/esm2022/lib/search/search-results-tool/search-results-tool.component.mjs +7 -6
- package/esm2022/lib/search/search.state.mjs +13 -4
- package/esm2022/lib/storage/storage.module.mjs +1 -1
- package/esm2022/lib/tool/tool.module.mjs +1 -1
- package/esm2022/public_api.mjs +3 -1
- package/fesm2022/igo2-integration.mjs +249 -53
- package/fesm2022/igo2-integration.mjs.map +1 -1
- package/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.d.ts +0 -4
- package/lib/filter/spatial-filter-tool/spatial-filter-tool.component.d.ts +2 -2
- package/lib/geometry-form/data-issue-reporter-tool/data-issue-reporter-tool.component.d.ts +44 -0
- package/lib/geometry-form/data-issue-reporter-tool/index.d.ts +1 -0
- package/lib/geometry-form/geometry-form.module.d.ts +11 -0
- package/lib/geometry-form/index.d.ts +1 -0
- package/lib/integration.module.d.ts +2 -1
- package/lib/search/query.state.d.ts +2 -2
- package/lib/search/search-results-tool/search-results-tool.component.d.ts +1 -0
- package/lib/search/search.state.d.ts +16 -3
- package/locale/en.integration.json +17 -0
- package/locale/fr.integration.json +17 -0
- package/package.json +3 -3
- package/public_api.d.ts +2 -0
|
@@ -24,10 +24,6 @@ export declare class CatalogBrowserToolComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
* Subscription to the selected catalog
|
|
25
25
|
*/
|
|
26
26
|
private catalog$$;
|
|
27
|
-
/**
|
|
28
|
-
* Subscription for authentication
|
|
29
|
-
*/
|
|
30
|
-
private authenticate$$;
|
|
31
27
|
/**
|
|
32
28
|
* Whether a group can be toggled when it's collapsed
|
|
33
29
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatIconRegistry } from '@angular/material/icon';
|
|
3
|
-
import { EntityStore
|
|
3
|
+
import { EntityStore } from '@igo2/common';
|
|
4
4
|
import { LanguageService, MessageService } from '@igo2/core';
|
|
5
5
|
import { DataSourceService, Feature, IgoMap, Layer, LayerService, MeasureLengthUnit, SpatialFilterItemType, SpatialFilterQueryType, SpatialFilterService, SpatialFilterThematic, SpatialFilterType } from '@igo2/geo';
|
|
6
6
|
import * as olstyle from 'ol/style';
|
|
@@ -39,7 +39,7 @@ export declare class SpatialFilterToolComponent implements OnInit, OnDestroy {
|
|
|
39
39
|
iterator: number;
|
|
40
40
|
selectedFeature$: BehaviorSubject<Feature>;
|
|
41
41
|
private format;
|
|
42
|
-
store:
|
|
42
|
+
store: EntityStore<Feature>;
|
|
43
43
|
spatialListStore: EntityStore<Feature>;
|
|
44
44
|
loading: boolean;
|
|
45
45
|
thematicLength: number;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { Form, FormService } from '@igo2/common';
|
|
4
|
+
import { LanguageService, MessageService } from '@igo2/core';
|
|
5
|
+
import { IgoMap } from '@igo2/geo';
|
|
6
|
+
import { BehaviorSubject } from 'rxjs';
|
|
7
|
+
import { MapState } from '../../map/map.state';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
interface DataIssueReporterData {
|
|
10
|
+
geometry: object;
|
|
11
|
+
layer: string;
|
|
12
|
+
desc: string;
|
|
13
|
+
email: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class DataIssueReporterToolComponent implements OnInit, OnDestroy {
|
|
16
|
+
private mapState;
|
|
17
|
+
private formService;
|
|
18
|
+
private languageService;
|
|
19
|
+
private messageService;
|
|
20
|
+
private httpClient;
|
|
21
|
+
/**
|
|
22
|
+
* Url to report the data issue. Use the Post protocol to send the form.
|
|
23
|
+
*/
|
|
24
|
+
url: string;
|
|
25
|
+
/**
|
|
26
|
+
* Map to link to the form
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
get map(): IgoMap;
|
|
30
|
+
form$: BehaviorSubject<Form>;
|
|
31
|
+
data$: BehaviorSubject<{
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>;
|
|
34
|
+
submitDisabled: boolean;
|
|
35
|
+
private valueChanges$$;
|
|
36
|
+
constructor(mapState: MapState, formService: FormService, languageService: LanguageService, messageService: MessageService, httpClient: HttpClient);
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
clearForm(): void;
|
|
40
|
+
onSubmit(data: DataIssueReporterData): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataIssueReporterToolComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataIssueReporterToolComponent, "igo-issue-reporter-tool", never, { "url": { "alias": "url"; "required": false; }; }, {}, never, never, false, never>;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './data-issue-reporter-tool.component';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./data-issue-reporter-tool/data-issue-reporter-tool.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/button";
|
|
5
|
+
import * as i4 from "@igo2/core";
|
|
6
|
+
import * as i5 from "@igo2/common";
|
|
7
|
+
export declare class IgoAppGeometryFormModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoAppGeometryFormModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoAppGeometryFormModule, [typeof i1.DataIssueReporterToolComponent], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.IgoLanguageModule, typeof i5.IgoFormModule, typeof i4.IgoMessageModule], [typeof i1.DataIssueReporterToolComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoAppGeometryFormModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './data-issue-reporter-tool';
|
|
@@ -13,8 +13,9 @@ import * as i11 from "./print/print.module";
|
|
|
13
13
|
import * as i12 from "./search/search.module";
|
|
14
14
|
import * as i13 from "./filter/filter.module";
|
|
15
15
|
import * as i14 from "./about/about.module";
|
|
16
|
+
import * as i15 from "./geometry-form/geometry-form.module";
|
|
16
17
|
export declare class IgoIntegrationModule {
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgoIntegrationModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoIntegrationModule, never, never, [typeof i1.IgoAppStorageModule, typeof i2.IgoAppAnalyticsModule, typeof i3.IgoAppContextModule, typeof i4.IgoAppCatalogModule, typeof i5.IgoAppDirectionsModule, typeof i6.IgoAppDrawModule, typeof i7.IgoAppWorkspaceModule, typeof i8.IgoAppImportExportModule, typeof i9.IgoAppMapModule, typeof i10.IgoAppMeasureModule, typeof i11.IgoAppPrintModule, typeof i12.IgoAppSearchModule, typeof i13.IgoAppFilterModule, typeof i14.IgoAppAboutModule]>;
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoIntegrationModule, never, never, [typeof i1.IgoAppStorageModule, typeof i2.IgoAppAnalyticsModule, typeof i3.IgoAppContextModule, typeof i4.IgoAppCatalogModule, typeof i5.IgoAppDirectionsModule, typeof i6.IgoAppDrawModule, typeof i7.IgoAppWorkspaceModule, typeof i8.IgoAppImportExportModule, typeof i9.IgoAppMapModule, typeof i10.IgoAppMeasureModule, typeof i11.IgoAppPrintModule, typeof i12.IgoAppSearchModule, typeof i13.IgoAppFilterModule, typeof i14.IgoAppAboutModule, typeof i15.IgoAppGeometryFormModule]>;
|
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<IgoIntegrationModule>;
|
|
20
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityStore } from '@igo2/common';
|
|
2
2
|
import { ConfigService } from '@igo2/core';
|
|
3
3
|
import { CapabilitiesService, CommonVectorStyleOptions, PropertyTypeDetectorService, SearchResult } from '@igo2/geo';
|
|
4
4
|
import { MapState } from '../map/map.state';
|
|
@@ -14,7 +14,7 @@ export declare class QueryState {
|
|
|
14
14
|
/**
|
|
15
15
|
* Store that holds the query results
|
|
16
16
|
*/
|
|
17
|
-
store:
|
|
17
|
+
store: EntityStore<SearchResult<{
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}>, import("@igo2/common").EntityState>;
|
|
20
20
|
queryOverlayStyle: CommonVectorStyleOptions;
|
|
@@ -91,6 +91,7 @@ export declare class SearchResultsToolComponent implements OnInit, OnDestroy {
|
|
|
91
91
|
/**
|
|
92
92
|
* Try to add a feature to the map overlay
|
|
93
93
|
* @param result A search result that could be a feature
|
|
94
|
+
* @param motion A FeatureMotion to trigger when adding the searchresult to the map search overlay
|
|
94
95
|
*/
|
|
95
96
|
private tryAddFeatureToMap;
|
|
96
97
|
isScrolledIntoView(elemSource: any, elem: any): boolean;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityStore } from '@igo2/common';
|
|
2
2
|
import { ConfigService, StorageService } from '@igo2/core';
|
|
3
|
-
import { CommonVectorStyleOptions, Feature, FeatureStore, SearchResult, SearchSourceService } from '@igo2/geo';
|
|
3
|
+
import { CommonVectorStyleOptions, Feature, FeatureMotion, FeatureStore, SearchResult, SearchSourceService } from '@igo2/geo';
|
|
4
4
|
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
5
5
|
import { MapState } from '../map';
|
|
6
6
|
import { WorkspaceState } from '../workspace/workspace.state';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Define the FeatureMotion to apply when adding the SearchResult to the map as an overlay.
|
|
10
|
+
*/
|
|
11
|
+
export interface SearchFeatureMotion {
|
|
12
|
+
selected?: FeatureMotion;
|
|
13
|
+
focus?: FeatureMotion;
|
|
14
|
+
}
|
|
8
15
|
/**
|
|
9
16
|
* Service that holds the state of the search module
|
|
10
17
|
*/
|
|
@@ -20,6 +27,12 @@ export declare class SearchState {
|
|
|
20
27
|
searchOverlayStyleFocus: CommonVectorStyleOptions;
|
|
21
28
|
focusedOrResolution$$: Subscription;
|
|
22
29
|
selectedOrResolution$$: Subscription;
|
|
30
|
+
/**
|
|
31
|
+
* Default feature motion are:
|
|
32
|
+
* on selection = FeatureMotion.Default and
|
|
33
|
+
* on focus = FeatureMotion.None
|
|
34
|
+
*/
|
|
35
|
+
featureMotion: SearchFeatureMotion;
|
|
23
36
|
readonly searchTermSplitter$: BehaviorSubject<string>;
|
|
24
37
|
readonly searchTerm$: BehaviorSubject<string>;
|
|
25
38
|
readonly searchType$: BehaviorSubject<string>;
|
|
@@ -30,7 +43,7 @@ export declare class SearchState {
|
|
|
30
43
|
/**
|
|
31
44
|
* Store that holds the search results
|
|
32
45
|
*/
|
|
33
|
-
readonly store:
|
|
46
|
+
readonly store: EntityStore<SearchResult<{
|
|
34
47
|
[key: string]: any;
|
|
35
48
|
}>, import("@igo2/common").EntityState>;
|
|
36
49
|
/**
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"contexts": "Contexts",
|
|
7
7
|
"directions": "Directions",
|
|
8
8
|
"draw": "Draw",
|
|
9
|
+
"dataIssueReporter": "Report a data inconsistency",
|
|
9
10
|
"importExport": "Import & Export",
|
|
10
11
|
"ogcFilter": "Filter by",
|
|
11
12
|
"map": "Map",
|
|
@@ -21,6 +22,22 @@
|
|
|
21
22
|
"advancedMap": "Advanced map tools",
|
|
22
23
|
"closestFeature": "Closest feature tool"
|
|
23
24
|
},
|
|
25
|
+
"dataIssueReporterTool": {
|
|
26
|
+
"submit": {
|
|
27
|
+
"title": "Submit a data inconsistency",
|
|
28
|
+
"message": "Your data inconsistency has been sucessfully reported.",
|
|
29
|
+
"setupMessage": "Please configure a server component to submit an inconsistency",
|
|
30
|
+
"button": "Submit location"
|
|
31
|
+
},
|
|
32
|
+
"reset": {
|
|
33
|
+
"button": "Reset input"
|
|
34
|
+
},
|
|
35
|
+
"geometry": "Enter geometry",
|
|
36
|
+
"drawGuidePlaceholder": "Drawing Guide",
|
|
37
|
+
"layer": "Layers of information",
|
|
38
|
+
"description": "Description",
|
|
39
|
+
"email": "Email"
|
|
40
|
+
},
|
|
24
41
|
"searchResultsTool": {
|
|
25
42
|
"noResults": "No results",
|
|
26
43
|
"doSearch": "",
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"contexts": "Contextes",
|
|
7
7
|
"directions": "Itinéraire",
|
|
8
8
|
"draw": "Dessin",
|
|
9
|
+
"dataIssueReporter": "Soumettre une incohérence de donnée",
|
|
9
10
|
"importExport": "Importer et exporter",
|
|
10
11
|
"ogcFilter": "Filtrer par",
|
|
11
12
|
"map": "Carte",
|
|
@@ -21,6 +22,22 @@
|
|
|
21
22
|
"advancedMap": "Outils avancés",
|
|
22
23
|
"closestFeature": "Entités à proximité"
|
|
23
24
|
},
|
|
25
|
+
"dataIssueReporterTool": {
|
|
26
|
+
"submit": {
|
|
27
|
+
"title": "Soumettre une incohérence de donnée",
|
|
28
|
+
"message": "L'incohérence de donnée a été soumise.",
|
|
29
|
+
"setupMessage": "Veuillez configurer une composante serveur pour soumettre une incohérence",
|
|
30
|
+
"button": "Soumettre la localisation"
|
|
31
|
+
},
|
|
32
|
+
"reset": {
|
|
33
|
+
"button": "Réinitialiser la saisie"
|
|
34
|
+
},
|
|
35
|
+
"geometry": "Saisir une géométrie",
|
|
36
|
+
"drawGuidePlaceholder": "Guide de dessin",
|
|
37
|
+
"layer": "Couches d'informations",
|
|
38
|
+
"description": "Description",
|
|
39
|
+
"email": "Courriel"
|
|
40
|
+
},
|
|
24
41
|
"searchResultsTool": {
|
|
25
42
|
"noResults": "Aucun résultat",
|
|
26
43
|
"doSearch": "Veuillez effectuer une recherche dans la barre de recherche ci-dessus.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/integration",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.3.0",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "IGO Community",
|
|
6
6
|
"keywords": [
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@angular/common": "^16.2.5",
|
|
34
34
|
"@angular/core": "^16.2.5",
|
|
35
|
-
"@igo2/context": "^16.
|
|
36
|
-
"@igo2/geo": "^16.
|
|
35
|
+
"@igo2/context": "^16.3.0",
|
|
36
|
+
"@igo2/geo": "^16.3.0",
|
|
37
37
|
"jspdf": "^2.5.1",
|
|
38
38
|
"jspdf-autotable": "^3.5.29",
|
|
39
39
|
"rxjs": "^7.8.0"
|
package/public_api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/integration.module';
|
|
2
2
|
export * from './lib/about/about.module';
|
|
3
|
+
export * from './lib/geometry-form/geometry-form.module';
|
|
3
4
|
export * from './lib/analytics/analytics.module';
|
|
4
5
|
export * from './lib/storage/storage.module';
|
|
5
6
|
export * from './lib/context/context.module';
|
|
@@ -15,6 +16,7 @@ export * from './lib/print/print.module';
|
|
|
15
16
|
export * from './lib/search/search.module';
|
|
16
17
|
export * from './lib/tool/tool.module';
|
|
17
18
|
export * from './lib/about';
|
|
19
|
+
export * from './lib/geometry-form';
|
|
18
20
|
export * from './lib/analytics';
|
|
19
21
|
export * from './lib/context';
|
|
20
22
|
export * from './lib/catalog';
|