adb-shared 6.2.20 → 6.2.21
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/README.md +56 -6
- package/fesm2022/adb-shared-src-map.mjs +824 -0
- package/fesm2022/adb-shared-src-map.mjs.map +1 -0
- package/fesm2022/adb-shared.mjs +490 -1159
- package/fesm2022/adb-shared.mjs.map +1 -1
- package/package.json +8 -5
- package/types/adb-shared-src-map.d.ts +260 -0
- package/types/adb-shared.d.ts +12 -259
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adb-shared",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.21",
|
|
4
4
|
"author": "ADB",
|
|
5
|
-
"license": "ISC",
|
|
6
5
|
"peerDependencies": {
|
|
7
6
|
"@angular/common": ">= 19.x",
|
|
8
7
|
"@angular/core": ">= 19.x ",
|
|
9
8
|
"@angular/router": ">= 19.x ",
|
|
10
9
|
"@ngx-translate/core": ">= 17.x",
|
|
11
10
|
"@ngx-translate/http-loader": ">= 17.x",
|
|
12
|
-
"date-fns": ">=
|
|
11
|
+
"date-fns": ">= 2.x.x",
|
|
13
12
|
"leaflet": "1.9.4"
|
|
14
13
|
},
|
|
15
14
|
"dependencies": {
|
|
16
15
|
"tslib": "^2.3.0"
|
|
17
16
|
},
|
|
17
|
+
"sideEffects": false,
|
|
18
18
|
"module": "fesm2022/adb-shared.mjs",
|
|
19
19
|
"typings": "types/adb-shared.d.ts",
|
|
20
20
|
"exports": {
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
".": {
|
|
25
25
|
"types": "./types/adb-shared.d.ts",
|
|
26
26
|
"default": "./fesm2022/adb-shared.mjs"
|
|
27
|
+
},
|
|
28
|
+
"./src/map": {
|
|
29
|
+
"types": "./types/adb-shared-src-map.d.ts",
|
|
30
|
+
"default": "./fesm2022/adb-shared-src-map.mjs"
|
|
27
31
|
}
|
|
28
|
-
}
|
|
29
|
-
"sideEffects": false
|
|
32
|
+
}
|
|
30
33
|
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, AfterViewInit, OnInit, OnDestroy, ChangeDetectorRef, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import * as Leaflet from 'leaflet';
|
|
4
|
+
import Leaflet__default from 'leaflet';
|
|
5
|
+
import * as i7 from '@angular/router';
|
|
6
|
+
import { Params, ParamMap, ActivatedRoute, Router } from '@angular/router';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import * as i6 from '@angular/forms';
|
|
9
|
+
import { ControlValueAccessor, FormGroup, FormArray } from '@angular/forms';
|
|
10
|
+
import { Subscription } from 'rxjs';
|
|
11
|
+
import * as i5 from '@angular/common';
|
|
12
|
+
import * as i8 from 'adb-shared';
|
|
13
|
+
import * as i9 from '@ngx-translate/core';
|
|
14
|
+
|
|
15
|
+
interface AdbMapConfig {
|
|
16
|
+
api: string;
|
|
17
|
+
artfaktaTaxonLists: string;
|
|
18
|
+
observationPage?: string;
|
|
19
|
+
filters?: AdbMapFilterType[];
|
|
20
|
+
log?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare enum AdbMapFilterType {
|
|
23
|
+
Taxon = "taxon",
|
|
24
|
+
Area = "area",
|
|
25
|
+
OwnArea = "ownArea",
|
|
26
|
+
Time = "time",
|
|
27
|
+
RedList = "redlist",
|
|
28
|
+
RiskList = "risklist",
|
|
29
|
+
TaxaLists = "taxonLists",
|
|
30
|
+
Datasources = "datasources"
|
|
31
|
+
}
|
|
32
|
+
declare class VisibleFilters {
|
|
33
|
+
showTaxon: boolean;
|
|
34
|
+
showTime: boolean;
|
|
35
|
+
showArea: boolean;
|
|
36
|
+
showOwnArea: boolean;
|
|
37
|
+
showTaxaLists: boolean;
|
|
38
|
+
showDatasets: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const ADB_MAP_CONFIG: InjectionToken<AdbMapConfig>;
|
|
41
|
+
declare class AdbMapConfigService {
|
|
42
|
+
readonly log: boolean;
|
|
43
|
+
readonly artfaktaTaxonLists: string;
|
|
44
|
+
readonly observationFeatures: string;
|
|
45
|
+
readonly taxaListsApi: string;
|
|
46
|
+
readonly filters: VisibleFilters;
|
|
47
|
+
readonly observationPage: string;
|
|
48
|
+
constructor(config: AdbMapConfig);
|
|
49
|
+
private hasFilter;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapConfigService, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdbMapConfigService>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class AdbObsMapComponent implements AfterViewInit, OnInit, OnDestroy {
|
|
55
|
+
private activatedRoute;
|
|
56
|
+
private config;
|
|
57
|
+
private router;
|
|
58
|
+
private http;
|
|
59
|
+
private subscriptions;
|
|
60
|
+
error: null;
|
|
61
|
+
mapLoading: i0.WritableSignal<boolean>;
|
|
62
|
+
siteLayer: Leaflet.FeatureGroup;
|
|
63
|
+
hasBox: boolean;
|
|
64
|
+
count: any;
|
|
65
|
+
mapId: string;
|
|
66
|
+
map: any;
|
|
67
|
+
mapReady: i0.WritableSignal<boolean>;
|
|
68
|
+
hasQueryParams: boolean;
|
|
69
|
+
hasUrlParams: boolean;
|
|
70
|
+
queryParams: Params;
|
|
71
|
+
urlParams: ParamMap;
|
|
72
|
+
constructor(activatedRoute: ActivatedRoute, config: AdbMapConfigService, router: Router, http: HttpClient);
|
|
73
|
+
ngAfterViewInit(): void;
|
|
74
|
+
private tryLoad;
|
|
75
|
+
ngOnInit(): void;
|
|
76
|
+
private loadFeature;
|
|
77
|
+
private buildMap;
|
|
78
|
+
private getPolygonClassName;
|
|
79
|
+
private getMapBoundsToBbox;
|
|
80
|
+
ngOnDestroy(): void;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbObsMapComponent, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbObsMapComponent, "adb-obs-map", never, {}, {}, never, never, false, never>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare class PolygonDrawerInput implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
|
|
86
|
+
private subscriptions;
|
|
87
|
+
mapId: string;
|
|
88
|
+
map: Leaflet__default.Map;
|
|
89
|
+
polygonDraw: boolean;
|
|
90
|
+
shapeLayer: Leaflet__default.GeoJSON | null;
|
|
91
|
+
geoJson: any;
|
|
92
|
+
ngAfterViewInit(): void;
|
|
93
|
+
ngOnInit(): void;
|
|
94
|
+
ngOnDestroy(): void;
|
|
95
|
+
private initDraw;
|
|
96
|
+
private renderInitialShape;
|
|
97
|
+
private clearShape;
|
|
98
|
+
onDrawPolygon(): void;
|
|
99
|
+
onUndoStep(): void;
|
|
100
|
+
onDeleteShape(): void;
|
|
101
|
+
onChange: any;
|
|
102
|
+
onTouched: any;
|
|
103
|
+
writeValue(geoJson: any): void;
|
|
104
|
+
registerOnChange(fn: any): void;
|
|
105
|
+
registerOnTouched(fn: any): void;
|
|
106
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PolygonDrawerInput, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PolygonDrawerInput, "adb-polygon-drawer", never, {}, {}, never, never, false, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
type GeoJsonGeometry = {
|
|
112
|
+
type: "Point";
|
|
113
|
+
coordinates: [number, number];
|
|
114
|
+
} | {
|
|
115
|
+
type: "LineString";
|
|
116
|
+
coordinates: [number, number][];
|
|
117
|
+
} | {
|
|
118
|
+
type: "Polygon";
|
|
119
|
+
coordinates: [number, number][][];
|
|
120
|
+
} | {
|
|
121
|
+
type: "MultiPoint";
|
|
122
|
+
coordinates: [number, number][];
|
|
123
|
+
} | {
|
|
124
|
+
type: "MultiLineString";
|
|
125
|
+
coordinates: [number, number][][];
|
|
126
|
+
} | {
|
|
127
|
+
type: "MultiPolygon";
|
|
128
|
+
coordinates: [number, number][][][];
|
|
129
|
+
} | {
|
|
130
|
+
type: "GeometryCollection";
|
|
131
|
+
geometries: GeoJsonGeometry[];
|
|
132
|
+
};
|
|
133
|
+
interface GeoJsonFeature {
|
|
134
|
+
type: "Feature";
|
|
135
|
+
geometry: GeoJsonGeometry;
|
|
136
|
+
properties?: any;
|
|
137
|
+
}
|
|
138
|
+
interface MapOptions {
|
|
139
|
+
providers?: boolean;
|
|
140
|
+
zoom?: boolean;
|
|
141
|
+
scrollZoom?: boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class AdbMapFilters implements OnInit, OnDestroy {
|
|
145
|
+
private cdr;
|
|
146
|
+
private config;
|
|
147
|
+
private http;
|
|
148
|
+
private router;
|
|
149
|
+
private activatedRoute;
|
|
150
|
+
inline: boolean;
|
|
151
|
+
static datasets: string[];
|
|
152
|
+
subscriptions: Subscription;
|
|
153
|
+
form: FormGroup;
|
|
154
|
+
thisYear: Date;
|
|
155
|
+
lastYear: Date;
|
|
156
|
+
queryParamsMap: ParamMap;
|
|
157
|
+
hasOwnArea: boolean;
|
|
158
|
+
geo: GeoJsonFeature;
|
|
159
|
+
area: {
|
|
160
|
+
areaType: string;
|
|
161
|
+
featureId: string;
|
|
162
|
+
};
|
|
163
|
+
areasArray: FormArray<any>;
|
|
164
|
+
dataSetCount: number;
|
|
165
|
+
taxonListCount: number;
|
|
166
|
+
riskListCount: number;
|
|
167
|
+
redListCount: number;
|
|
168
|
+
areaCount: number;
|
|
169
|
+
periodCount: number;
|
|
170
|
+
listsError: any;
|
|
171
|
+
filters: VisibleFilters;
|
|
172
|
+
taxaLists: any[];
|
|
173
|
+
hasTaxonInUrlParameter: any;
|
|
174
|
+
dsControls: any;
|
|
175
|
+
dateStartConfig: {
|
|
176
|
+
maxDate: Date;
|
|
177
|
+
};
|
|
178
|
+
dateEndConfig: {
|
|
179
|
+
minDate: Date;
|
|
180
|
+
maxDate: Date;
|
|
181
|
+
};
|
|
182
|
+
artfakta: string;
|
|
183
|
+
constructor(cdr: ChangeDetectorRef, config: AdbMapConfigService, http: HttpClient, router: Router, activatedRoute: ActivatedRoute);
|
|
184
|
+
ngOnInit(): void;
|
|
185
|
+
removeArea(index: number): void;
|
|
186
|
+
addArea(): void;
|
|
187
|
+
onSubmit(): void;
|
|
188
|
+
private createForm;
|
|
189
|
+
private updateCustomDate;
|
|
190
|
+
ngOnDestroy(): void;
|
|
191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapFilters, never>;
|
|
192
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbMapFilters, "adb-map-filters", never, { "inline": { "alias": "inline"; "required": false; }; }, {}, never, never, false, never>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class TreeviewComponent implements ControlValueAccessor {
|
|
196
|
+
nodes: ListItem[];
|
|
197
|
+
private selectedIds;
|
|
198
|
+
private onChange;
|
|
199
|
+
private onTouched;
|
|
200
|
+
writeValue(ids: number[] | null): void;
|
|
201
|
+
registerOnChange(fn: (value: number[]) => void): void;
|
|
202
|
+
registerOnTouched(fn: () => void): void;
|
|
203
|
+
setDisabledState(isDisabled: boolean): void;
|
|
204
|
+
onLeafToggle(node: ListItem): void;
|
|
205
|
+
private applySelection;
|
|
206
|
+
private setReadOnly;
|
|
207
|
+
private static collectSelectedLeafIds;
|
|
208
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeviewComponent, never>;
|
|
209
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeviewComponent, "app-treeview", never, { "nodes": { "alias": "nodes"; "required": false; }; }, {}, never, never, false, never>;
|
|
210
|
+
}
|
|
211
|
+
interface ListItem {
|
|
212
|
+
id: number;
|
|
213
|
+
name?: string;
|
|
214
|
+
children?: ListItem[];
|
|
215
|
+
_selected?: boolean;
|
|
216
|
+
_readOnly?: boolean;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare class AdbMapModule {
|
|
220
|
+
static forRoot(config?: AdbMapConfig): ModuleWithProviders<AdbMapModule>;
|
|
221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapModule, never>;
|
|
222
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbMapModule, [typeof AdbObsMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters, typeof TreeviewComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.RouterModule, typeof i6.ReactiveFormsModule, typeof i8.AdbDatePickerModule, typeof i9.TranslateModule, typeof i8.AdbPipesModule, typeof i8.AdbFilterSectionModule, typeof i8.AdbPickerModule], [typeof AdbObsMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters]>;
|
|
223
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbMapModule>;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare class AdbMapUtils {
|
|
227
|
+
static readonly INITIAL_CENTER_LAT = 62;
|
|
228
|
+
static readonly INITIAL_CENTER_LNG = 17;
|
|
229
|
+
static OverlayMaps: {
|
|
230
|
+
Altitude: any;
|
|
231
|
+
Fjällkarta: any;
|
|
232
|
+
Kommuner: any;
|
|
233
|
+
Län: any;
|
|
234
|
+
Ortnamn: any;
|
|
235
|
+
'Ekonomisk zon': any;
|
|
236
|
+
};
|
|
237
|
+
static Providers: MapProvider[];
|
|
238
|
+
static redListMapper2: {
|
|
239
|
+
VU: string;
|
|
240
|
+
EN: string;
|
|
241
|
+
CR: string;
|
|
242
|
+
RE: string;
|
|
243
|
+
DD: string;
|
|
244
|
+
NT: string;
|
|
245
|
+
};
|
|
246
|
+
static createMap(elementId: string, options?: MapOptions): Leaflet.Map;
|
|
247
|
+
private static addProviders;
|
|
248
|
+
}
|
|
249
|
+
interface MapProvider {
|
|
250
|
+
name: string;
|
|
251
|
+
id: number;
|
|
252
|
+
url: string;
|
|
253
|
+
minZoom: number;
|
|
254
|
+
maxZoom: number;
|
|
255
|
+
wms: boolean;
|
|
256
|
+
params?: any;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export { ADB_MAP_CONFIG, AdbMapConfigService, AdbMapFilterType, AdbMapFilters, AdbMapModule, AdbMapUtils, AdbObsMapComponent, PolygonDrawerInput, VisibleFilters };
|
|
260
|
+
export type { AdbMapConfig };
|
package/types/adb-shared.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, EventEmitter, ElementRef, AfterViewInit, Renderer2, ModuleWithProviders, PipeTransform, ComponentRef, ViewContainerRef, ComponentFactoryResolver, RendererFactory2, ApplicationRef, Injector, TemplateRef, InjectionToken
|
|
2
|
+
import { OnInit, OnDestroy, EventEmitter, ElementRef, AfterViewInit, Renderer2, ModuleWithProviders, PipeTransform, ComponentRef, ViewContainerRef, ComponentFactoryResolver, RendererFactory2, ApplicationRef, Injector, TemplateRef, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i4 from '@ngx-translate/core';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
6
6
|
import * as i5 from '@angular/router';
|
|
7
|
-
import { Router, ActivatedRoute
|
|
7
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
8
8
|
import * as i2 from '@angular/common';
|
|
9
|
-
import * as
|
|
10
|
-
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors
|
|
9
|
+
import * as i4$1 from '@angular/forms';
|
|
10
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
11
11
|
import * as rxjs from 'rxjs';
|
|
12
|
-
import { Observable
|
|
13
|
-
import * as Leaflet from 'leaflet';
|
|
14
|
-
import Leaflet__default from 'leaflet';
|
|
12
|
+
import { Observable } from 'rxjs';
|
|
15
13
|
|
|
16
14
|
interface Navigation {
|
|
17
15
|
home: Link2;
|
|
@@ -630,7 +628,7 @@ declare class RichTextComponent {
|
|
|
630
628
|
declare class AdbRichEditorModule {
|
|
631
629
|
static forRoot(config: RichModuleConfig): ModuleWithProviders<AdbRichEditorModule>;
|
|
632
630
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorModule, never>;
|
|
633
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbRichEditorModule, [typeof AdbRichEditorComponent, typeof RichTextComponent], [typeof i2.CommonModule, typeof
|
|
631
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbRichEditorModule, [typeof AdbRichEditorComponent, typeof RichTextComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule], [typeof AdbRichEditorComponent, typeof RichTextComponent]>;
|
|
634
632
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbRichEditorModule>;
|
|
635
633
|
}
|
|
636
634
|
|
|
@@ -650,7 +648,7 @@ declare class FilterSectionComponent implements OnInit, OnDestroy {
|
|
|
650
648
|
|
|
651
649
|
declare class AdbFilterSectionModule {
|
|
652
650
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbFilterSectionModule, never>;
|
|
653
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof FilterSectionComponent], [typeof i2.CommonModule, typeof
|
|
651
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof FilterSectionComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof i4.TranslateModule, typeof AdbButtonsModule], [typeof FilterSectionComponent, typeof AdbButtonsModule]>;
|
|
654
652
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbFilterSectionModule>;
|
|
655
653
|
}
|
|
656
654
|
|
|
@@ -802,7 +800,7 @@ declare class GenericPickerComponent<T> implements OnInit, OnDestroy {
|
|
|
802
800
|
onModelChange(): void;
|
|
803
801
|
onArrowDown(): void;
|
|
804
802
|
onArrowUp(): void;
|
|
805
|
-
onEnter(event:
|
|
803
|
+
onEnter(event: Event): void;
|
|
806
804
|
resetPopup(): void;
|
|
807
805
|
selectItem(item: T | null): void;
|
|
808
806
|
resetModel(): void;
|
|
@@ -829,7 +827,7 @@ declare class AdbAreaPickerComponent implements ControlValueAccessor {
|
|
|
829
827
|
getAreas: (query: string) => rxjs.Observable<PagedResult<Area>>;
|
|
830
828
|
displayArea: (area: SOSArea) => string;
|
|
831
829
|
loadAreaId: (id: any) => rxjs.Observable<Area>;
|
|
832
|
-
onSelect(area:
|
|
830
|
+
onSelect(area: any | null): void;
|
|
833
831
|
onFocus(): void;
|
|
834
832
|
writeValue(value: any): void;
|
|
835
833
|
registerOnChange(fn: any): void;
|
|
@@ -873,254 +871,9 @@ declare class AdbTaxonPickerComponent implements ControlValueAccessor {
|
|
|
873
871
|
declare class AdbPickerModule {
|
|
874
872
|
static forRoot(config?: AdbPickerConfig): ModuleWithProviders<AdbPickerModule>;
|
|
875
873
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbPickerModule, never>;
|
|
876
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof
|
|
874
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof i4.TranslateModule, typeof AdbPipesModule, typeof AdbDirectivesModule], [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent]>;
|
|
877
875
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbPickerModule>;
|
|
878
876
|
}
|
|
879
877
|
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
artfaktaTaxonLists: string;
|
|
883
|
-
observationPage?: string;
|
|
884
|
-
filters?: AdbMapFilterType[];
|
|
885
|
-
log?: boolean;
|
|
886
|
-
}
|
|
887
|
-
declare enum AdbMapFilterType {
|
|
888
|
-
Taxon = "taxon",
|
|
889
|
-
Area = "area",
|
|
890
|
-
OwnArea = "ownArea",
|
|
891
|
-
Time = "time",
|
|
892
|
-
RedList = "redlist",
|
|
893
|
-
RiskList = "risklist",
|
|
894
|
-
TaxaLists = "taxonLists",
|
|
895
|
-
Datasources = "datasources"
|
|
896
|
-
}
|
|
897
|
-
declare class VisibleFilters {
|
|
898
|
-
showTaxon: boolean;
|
|
899
|
-
showTime: boolean;
|
|
900
|
-
showArea: boolean;
|
|
901
|
-
showOwnArea: boolean;
|
|
902
|
-
showTaxaLists: boolean;
|
|
903
|
-
showDatasets: boolean;
|
|
904
|
-
}
|
|
905
|
-
declare const ADB_MAP_CONFIG: InjectionToken<AdbMapConfig>;
|
|
906
|
-
declare class AdbMapConfigService {
|
|
907
|
-
readonly log: boolean;
|
|
908
|
-
readonly artfaktaTaxonLists: string;
|
|
909
|
-
readonly observationFeatures: string;
|
|
910
|
-
readonly taxaListsApi: string;
|
|
911
|
-
readonly filters: VisibleFilters;
|
|
912
|
-
readonly observationPage: string;
|
|
913
|
-
constructor(config: AdbMapConfig);
|
|
914
|
-
private hasFilter;
|
|
915
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapConfigService, never>;
|
|
916
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AdbMapConfigService>;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
declare class AdbObsMapComponent implements AfterViewInit, OnInit, OnDestroy {
|
|
920
|
-
private activatedRoute;
|
|
921
|
-
private config;
|
|
922
|
-
private router;
|
|
923
|
-
private http;
|
|
924
|
-
private subscriptions;
|
|
925
|
-
error: null;
|
|
926
|
-
mapLoading: i0.WritableSignal<boolean>;
|
|
927
|
-
siteLayer: Leaflet.FeatureGroup;
|
|
928
|
-
hasBox: boolean;
|
|
929
|
-
count: any;
|
|
930
|
-
mapId: string;
|
|
931
|
-
map: any;
|
|
932
|
-
mapReady: i0.WritableSignal<boolean>;
|
|
933
|
-
hasQueryParams: boolean;
|
|
934
|
-
hasUrlParams: boolean;
|
|
935
|
-
queryParams: Params;
|
|
936
|
-
urlParams: ParamMap;
|
|
937
|
-
constructor(activatedRoute: ActivatedRoute, config: AdbMapConfigService, router: Router, http: HttpClient);
|
|
938
|
-
ngAfterViewInit(): void;
|
|
939
|
-
private tryLoad;
|
|
940
|
-
ngOnInit(): void;
|
|
941
|
-
private loadFeature;
|
|
942
|
-
private buildMap;
|
|
943
|
-
private getPolygonClassName;
|
|
944
|
-
private getMapBoundsToBbox;
|
|
945
|
-
ngOnDestroy(): void;
|
|
946
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AdbObsMapComponent, never>;
|
|
947
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AdbObsMapComponent, "adb-obs-map", never, {}, {}, never, never, false, never>;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
declare class PolygonDrawerInput implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
|
|
951
|
-
private subscriptions;
|
|
952
|
-
mapId: string;
|
|
953
|
-
map: Leaflet__default.Map;
|
|
954
|
-
polygonDraw: boolean;
|
|
955
|
-
shapeLayer: any;
|
|
956
|
-
geoJson: any;
|
|
957
|
-
ngAfterViewInit(): void;
|
|
958
|
-
ngOnInit(): void;
|
|
959
|
-
ngOnDestroy(): void;
|
|
960
|
-
private initDraw;
|
|
961
|
-
private renderInitialShape;
|
|
962
|
-
private clearShape;
|
|
963
|
-
onDrawPolygon(): void;
|
|
964
|
-
onDrawCircle(): void;
|
|
965
|
-
onUndoStep(): void;
|
|
966
|
-
onDeleteShape(): void;
|
|
967
|
-
onChange: any;
|
|
968
|
-
onTouched: any;
|
|
969
|
-
writeValue(geoJson: any): void;
|
|
970
|
-
registerOnChange(fn: any): void;
|
|
971
|
-
registerOnTouched(fn: any): void;
|
|
972
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
973
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PolygonDrawerInput, never>;
|
|
974
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PolygonDrawerInput, "adb-polygon-drawer", never, {}, {}, never, never, false, never>;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
type GeoJsonGeometry = {
|
|
978
|
-
type: "Point";
|
|
979
|
-
coordinates: [number, number];
|
|
980
|
-
} | {
|
|
981
|
-
type: "LineString";
|
|
982
|
-
coordinates: [number, number][];
|
|
983
|
-
} | {
|
|
984
|
-
type: "Polygon";
|
|
985
|
-
coordinates: [number, number][][];
|
|
986
|
-
} | {
|
|
987
|
-
type: "MultiPoint";
|
|
988
|
-
coordinates: [number, number][];
|
|
989
|
-
} | {
|
|
990
|
-
type: "MultiLineString";
|
|
991
|
-
coordinates: [number, number][][];
|
|
992
|
-
} | {
|
|
993
|
-
type: "MultiPolygon";
|
|
994
|
-
coordinates: [number, number][][][];
|
|
995
|
-
} | {
|
|
996
|
-
type: "GeometryCollection";
|
|
997
|
-
geometries: GeoJsonGeometry[];
|
|
998
|
-
};
|
|
999
|
-
interface GeoJsonFeature {
|
|
1000
|
-
type: "Feature";
|
|
1001
|
-
geometry: GeoJsonGeometry;
|
|
1002
|
-
properties?: any;
|
|
1003
|
-
}
|
|
1004
|
-
interface MapOptions {
|
|
1005
|
-
providers?: boolean;
|
|
1006
|
-
zoom?: boolean;
|
|
1007
|
-
scrollZoom?: boolean;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
declare class AdbMapFilters implements OnInit, OnDestroy {
|
|
1011
|
-
private cdr;
|
|
1012
|
-
private config;
|
|
1013
|
-
private http;
|
|
1014
|
-
private router;
|
|
1015
|
-
private activatedRoute;
|
|
1016
|
-
inline: boolean;
|
|
1017
|
-
static datasets: string[];
|
|
1018
|
-
artfakta: string;
|
|
1019
|
-
subscriptions: Subscription;
|
|
1020
|
-
form: FormGroup;
|
|
1021
|
-
thisYear: Date;
|
|
1022
|
-
lastYear: Date;
|
|
1023
|
-
queryParamsMap: ParamMap;
|
|
1024
|
-
hasOwnArea: boolean;
|
|
1025
|
-
geo: GeoJsonFeature;
|
|
1026
|
-
area: {
|
|
1027
|
-
areaType: string;
|
|
1028
|
-
featureId: string;
|
|
1029
|
-
};
|
|
1030
|
-
areasArray: FormArray<any>;
|
|
1031
|
-
dataSetCount: number;
|
|
1032
|
-
taxonListCount: number;
|
|
1033
|
-
riskListCount: number;
|
|
1034
|
-
redListCount: number;
|
|
1035
|
-
areaCount: number;
|
|
1036
|
-
periodCount: number;
|
|
1037
|
-
listsError: any;
|
|
1038
|
-
filters: VisibleFilters;
|
|
1039
|
-
taxaLists: any[];
|
|
1040
|
-
hasTaxonInUrlParameter: any;
|
|
1041
|
-
dsControls: any;
|
|
1042
|
-
dateStartConfig: {
|
|
1043
|
-
maxDate: Date;
|
|
1044
|
-
};
|
|
1045
|
-
dateEndConfig: {
|
|
1046
|
-
minDate: Date;
|
|
1047
|
-
maxDate: Date;
|
|
1048
|
-
};
|
|
1049
|
-
constructor(cdr: ChangeDetectorRef, config: AdbMapConfigService, http: HttpClient, router: Router, activatedRoute: ActivatedRoute);
|
|
1050
|
-
ngOnInit(): void;
|
|
1051
|
-
removeArea(index: number): void;
|
|
1052
|
-
addArea(): void;
|
|
1053
|
-
onSubmit(): void;
|
|
1054
|
-
private createForm;
|
|
1055
|
-
private updateCustomDate;
|
|
1056
|
-
ngOnDestroy(): void;
|
|
1057
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapFilters, never>;
|
|
1058
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AdbMapFilters, "adb-map-filters", never, { "inline": { "alias": "inline"; "required": false; }; }, {}, never, never, false, never>;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
declare class TreeviewComponent implements ControlValueAccessor {
|
|
1062
|
-
nodes: ListItem[];
|
|
1063
|
-
private selectedIds;
|
|
1064
|
-
private onChange;
|
|
1065
|
-
private onTouched;
|
|
1066
|
-
writeValue(ids: number[] | null): void;
|
|
1067
|
-
registerOnChange(fn: (value: number[]) => void): void;
|
|
1068
|
-
registerOnTouched(fn: () => void): void;
|
|
1069
|
-
setDisabledState(isDisabled: boolean): void;
|
|
1070
|
-
onLeafToggle(node: ListItem): void;
|
|
1071
|
-
private applySelection;
|
|
1072
|
-
private setReadOnly;
|
|
1073
|
-
private static collectSelectedLeafIds;
|
|
1074
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TreeviewComponent, never>;
|
|
1075
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeviewComponent, "app-treeview", never, { "nodes": { "alias": "nodes"; "required": false; }; }, {}, never, never, false, never>;
|
|
1076
|
-
}
|
|
1077
|
-
interface ListItem {
|
|
1078
|
-
id: number;
|
|
1079
|
-
name?: string;
|
|
1080
|
-
children?: ListItem[];
|
|
1081
|
-
_selected?: boolean;
|
|
1082
|
-
_readOnly?: boolean;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
declare class AdbMapModule {
|
|
1086
|
-
static forRoot(config?: AdbMapConfig): ModuleWithProviders<AdbMapModule>;
|
|
1087
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapModule, never>;
|
|
1088
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbMapModule, [typeof AdbObsMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters, typeof TreeviewComponent], [typeof i2.CommonModule, typeof i6.FormsModule, typeof i5.RouterModule, typeof i6.ReactiveFormsModule, typeof AdbDatePickerModule, typeof i4.TranslateModule, typeof AdbPipesModule, typeof AdbFilterSectionModule, typeof AdbPickerModule], [typeof AdbObsMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters]>;
|
|
1089
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AdbMapModule>;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
declare class AdbMapUtils {
|
|
1093
|
-
static readonly INITIAL_CENTER_LAT = 62;
|
|
1094
|
-
static readonly INITIAL_CENTER_LNG = 17;
|
|
1095
|
-
static OverlayMaps: {
|
|
1096
|
-
Altitude: any;
|
|
1097
|
-
Fjällkarta: any;
|
|
1098
|
-
Kommuner: any;
|
|
1099
|
-
Län: any;
|
|
1100
|
-
Ortnamn: any;
|
|
1101
|
-
'Ekonomisk zon': any;
|
|
1102
|
-
};
|
|
1103
|
-
static Providers: MapProvider[];
|
|
1104
|
-
static redListMapper2: {
|
|
1105
|
-
VU: string;
|
|
1106
|
-
EN: string;
|
|
1107
|
-
CR: string;
|
|
1108
|
-
RE: string;
|
|
1109
|
-
DD: string;
|
|
1110
|
-
NT: string;
|
|
1111
|
-
};
|
|
1112
|
-
static createMap(elementId: string, options?: MapOptions): Leaflet.Map;
|
|
1113
|
-
private static addProviders;
|
|
1114
|
-
}
|
|
1115
|
-
interface MapProvider {
|
|
1116
|
-
name: string;
|
|
1117
|
-
id: number;
|
|
1118
|
-
url: string;
|
|
1119
|
-
minZoom: number;
|
|
1120
|
-
maxZoom: number;
|
|
1121
|
-
wms: boolean;
|
|
1122
|
-
params?: any;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
export { ADB_MAP_CONFIG, ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, AdbDropdown2Directive, AdbDropdownDirective, AdbDropdownModule, AdbFilterSectionModule, AdbHelpButtonComponent, AdbMapConfigService, AdbMapFilterType, AdbMapFilters, AdbMapModule, AdbMapUtils, AdbModalModule, AdbModalService, AdbObsMapComponent, AdbPagersModule, AdbPickerConfigService, AdbPickerModule, AdbPipesModule, AdbRichEditorComponent, AdbRichEditorModule, AdbTaxonPickerComponent, AdbToast, AdbToastModule, AdbToastService, AdbUserInterceptor, AdbUserModule, AdbUserService, ArtportalenFooterComponent, ArtportalenNavComponent, ArtportalenNavModule, AuthCallbackComponent, ClickOutsideDirective, DEFAULT_ADB_USER_SERVICE_CONFIG, EmptyValuePipe, EnvironmentService, FileUploadDirective, FilterSectionComponent, FocusDirective, GenericPickerComponent, HighlightHtmlPipe, HighlightPipe, ImageLoaderDirective, InfiniteScrollComponent, LocaleDatePipe, NumberSpacingPipe, PagerComponent, PagerInlineComponent, PolygonDrawerInput, RedListBadgeClassDirective, RichTextComponent, RiskClassDirective, RouterLinkActiveFragmentDirective, ToastType, UserModuleConstants, VisibleFilters };
|
|
1126
|
-
export type { AdbMapConfig, AdbPickerConfig, AdbUserServiceConfig, DialogModel, PickerDay, PickerWeek, RichTextPart, ToastMessage };
|
|
878
|
+
export { ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, AdbDropdown2Directive, AdbDropdownDirective, AdbDropdownModule, AdbFilterSectionModule, AdbHelpButtonComponent, AdbModalModule, AdbModalService, AdbPagersModule, AdbPickerConfigService, AdbPickerModule, AdbPipesModule, AdbRichEditorComponent, AdbRichEditorModule, AdbTaxonPickerComponent, AdbToast, AdbToastModule, AdbToastService, AdbUserInterceptor, AdbUserModule, AdbUserService, ArtportalenFooterComponent, ArtportalenNavComponent, ArtportalenNavModule, AuthCallbackComponent, ClickOutsideDirective, DEFAULT_ADB_USER_SERVICE_CONFIG, EmptyValuePipe, EnvironmentService, FileUploadDirective, FilterSectionComponent, FocusDirective, GenericPickerComponent, HighlightHtmlPipe, HighlightPipe, ImageLoaderDirective, InfiniteScrollComponent, LocaleDatePipe, NumberSpacingPipe, PagerComponent, PagerInlineComponent, RedListBadgeClassDirective, RichTextComponent, RiskClassDirective, RouterLinkActiveFragmentDirective, ToastType, UserModuleConstants };
|
|
879
|
+
export type { AdbPickerConfig, AdbUserServiceConfig, DialogModel, PickerDay, PickerWeek, RichTextPart, ToastMessage };
|