Compare commits

...

27 Commits

Author SHA1 Message Date
Willem Dantuma
237fd27489 Merge branch 'develop'
All checks were successful
FarmMaps/FarmMapsLib/pipeline/head This commit looks good
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-01-23 15:24:24 +01:00
Willem Dantuma
161717bc7b AW-4406
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-12-21 07:45:00 +01:00
Willem Dantuma
0b8dbf4e2e Some fixes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-10-26 21:31:39 +02:00
2acf13cbac datafilter can now be used with querystate
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-10-24 13:23:33 +02:00
Willem Dantuma
41c7ab15f3 Do not handle map event in 3D mode
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-09-28 21:03:21 +02:00
Willem Dantuma
a9185b86af Upgrade to olcs 2022-09-28 19:20:45 +02:00
Willem Dantuma
eb1b8f18eb Upgrade cesium to 1.97 2022-09-28 18:16:11 +02:00
Willem Dantuma
bce562fb8e Upgrade to ol 6.14.1
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-09-28 17:32:09 +02:00
Willem Dantuma
b652555f37 Update packages
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-09-28 12:02:44 +02:00
Willem Dantuma
3db09c1e2a Fix slide for temporal layer 2022-09-28 12:01:59 +02:00
Willem Dantuma
7502bc54d1 implement layer compare slider
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-09-27 19:58:08 +02:00
Willem Dantuma
15cc2c33f1 Angular cli changes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-09-27 11:42:42 +02:00
Willem Dantuma
eb0e928c6f Make peer dependencies more permissive
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-08-31 11:04:49 +02:00
Willem Dantuma
5631d23355 Fix version
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-08-31 10:01:15 +02:00
Willem Dantuma
0470cb0fa1 Update packages
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-08-31 09:53:57 +02:00
Willem Dantuma
1656b465ee Update libs
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2022-08-31 09:26:26 +02:00
Willem Dantuma
a558b23a98 Fix peer dependency
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-08-29 21:44:55 +02:00
Willem Dantuma
c569076c5d Fix peer dependency
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-08-29 21:28:13 +02:00
Willem Dantuma
be2516a3b8 Revert "Try to fix localization error"
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This reverts commit 7f62a74877.
2022-08-29 18:43:01 +02:00
Willem Dantuma
7f62a74877 Try to fix localization error
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-08-29 17:43:07 +02:00
Willem Dantuma
3b296a1fba Merge branch 'feature/Upgrade_to_angular_14' into develop
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2022-08-19 21:56:17 +02:00
Willem Dantuma
28c9cd353d Fix webpack not found 2022-08-19 21:47:51 +02:00
Willem Dantuma
83a5c1a7d2 Some more fixes 2022-08-19 21:17:13 +02:00
Willem Dantuma
a767502d66 update peer dependencies 2022-08-19 20:59:51 +02:00
Willem Dantuma
897ac3dab5 Update to angular 13 2022-08-19 20:39:00 +02:00
Willem Dantuma
2f165b4b48 npm audit fix 2022-08-19 20:27:38 +02:00
Willem Dantuma
3994818b6a Update @ng-bootstrap/ng-bootstrap 2022-08-19 20:26:10 +02:00
23 changed files with 10186 additions and 20186 deletions

1
.gitignore vendored
View File

@ -33,6 +33,7 @@ speed-measure-plugin.json
.history/* .history/*
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/connect.lock /connect.lock
/coverage /coverage

View File

@ -148,18 +148,6 @@
"src/assets" "src/assets"
] ]
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -179,15 +167,6 @@
"devServerTarget": "farmmaps-lib-app:serve:production" "devServerTarget": "farmmaps-lib-app:serve:production"
} }
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -216,18 +195,6 @@
"tsConfig": "projects/common/tsconfig.spec.json", "tsConfig": "projects/common/tsconfig.spec.json",
"karmaConfig": "projects/common/karma.conf.js" "karmaConfig": "projects/common/karma.conf.js"
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/common/tsconfig.lib.json",
"projects/common/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -256,18 +223,6 @@
"tsConfig": "projects/common-map/tsconfig.spec.json", "tsConfig": "projects/common-map/tsconfig.spec.json",
"karmaConfig": "projects/common-map/karma.conf.js" "karmaConfig": "projects/common-map/karma.conf.js"
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/common-map/tsconfig.lib.json",
"projects/common-map/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -296,21 +251,11 @@
"tsConfig": "projects/common-map3d/tsconfig.spec.json", "tsConfig": "projects/common-map3d/tsconfig.spec.json",
"karmaConfig": "projects/common-map3d/karma.conf.js" "karmaConfig": "projects/common-map3d/karma.conf.js"
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/common-map3d/tsconfig.lib.json",
"projects/common-map3d/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
} }
}, },
"defaultProject": "farmmaps-lib-app" "cli": {
"analytics": false
}
} }

29829
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "farmmaps-lib-app", "name": "farmmaps-lib-app",
"version": "2.1.5", "version": "3.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
@ -11,23 +11,24 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~12.2.8", "@angular/animations": "^14.1.3",
"@angular/common": "~12.2.8", "@angular/common": "^14.1.3",
"@angular/compiler": "~12.2.8", "@angular/compiler": "^14.1.3",
"@angular/core": "~12.2.8", "@angular/core": "^14.1.3",
"@angular/forms": "~12.2.8", "@angular/forms": "^14.1.3",
"@angular/platform-browser": "~12.2.8", "@angular/platform-browser": "^14.1.3",
"@angular/platform-browser-dynamic": "~12.2.8", "@angular/platform-browser-dynamic": "^14.1.3",
"@angular/router": "~12.2.8", "@angular/router": "^14.1.3",
"@farmmaps/common": "file:dist/common", "@farmmaps/common": "file:dist/common",
"@farmmaps/common-map": "file:dist/common-map", "@farmmaps/common-map": "file:dist/common-map",
"@farmmaps/common-map3d": "file:dist/common-map3d", "@farmmaps/common-map3d": "file:dist/common-map3d",
"@microsoft/signalr": "^3.1.16", "@microsoft/signalr": "^3.1.16",
"@ng-bootstrap/ng-bootstrap": "^9.0", "@ng-bootstrap/ng-bootstrap": "^13.0.0",
"@ngrx/effects": "^12.0", "@ngrx/effects": "^14",
"@ngrx/router-store": "^12.0", "@ngrx/router-store": "^14",
"@ngrx/store": "^12.0", "@ngrx/store": "^14",
"angular-oauth2-oidc": "^12.0", "@popperjs/core": "^2.11.6",
"angular-oauth2-oidc": "^13",
"assert": "^2.0.0", "assert": "^2.0.0",
"bootstrap": "^4.6.0", "bootstrap": "^4.6.0",
"browserify-zlib": "^0.2.0", "browserify-zlib": "^0.2.0",
@ -55,28 +56,28 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-builders/custom-webpack": "^12.1.3", "@angular-builders/custom-webpack": "^14",
"@angular-devkit/build-angular": "^12.2.8", "@angular-devkit/build-angular": "^14.1.3",
"@angular/cli": "^12.2.8", "@angular/cli": "^14.1.3",
"@angular/compiler-cli": "~12.2.8", "@angular/compiler-cli": "^14.1.3",
"@angular/language-service": "~12.2.8", "@angular/language-service": "^14.1.3",
"@angular/localize": "^12.2.8", "@angular/localize": "^14.1.3",
"@types/arcgis-rest-api": "^10.4.5", "@types/arcgis-rest-api": "^10.4.5",
"@types/jasmine": "~2.8.8", "@types/jasmine": "~2.8.8",
"@types/jasminewd2": "^2.0.9", "@types/jasminewd2": "^2.0.9",
"@types/node": "^12.20.15", "@types/node": "^12.20.15",
"codelyzer": "^5.1.2", "codelyzer": "^0.0.28",
"jasmine-core": "~3.5.0", "jasmine-core": "^4.3.0",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "^7.0.0",
"karma": "~6.3.3", "karma": "^6.3.20",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2", "karma-coverage-istanbul-reporter": "^3.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "^5.1.0",
"karma-jasmine-html-reporter": "^1.6.0", "karma-jasmine-html-reporter": "^2.0.0",
"ng-packagr": "^12.2.2", "ng-packagr": "^14.1.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "^8.8.1", "ts-node": "^8.8.1",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.3.5" "typescript": "~4.6.4"
} }
} }

View File

@ -8,14 +8,14 @@
"tslib": "^2.0.0" "tslib": "^2.0.0"
}, },
"peerDependencies": { "peerDependencies": {
"@angular/core": "~12.2.8", "@angular/core": ">=14.0.0",
"ngrx-store-localstorage": "^12.0", "ngrx-store-localstorage": ">=14.0.0",
"@ngrx/effects": "^12.0", "@ngrx/effects": ">=14.0.0",
"@ngrx/router-store":"^12.0", "@ngrx/router-store":">=14.0.0",
"@ngrx/store":"^12.0", "@ngrx/store":">=14.0.0",
"tassign": "^1.0.0", "tassign": ">=1.0.0",
"@farmmaps/common": "~2.0", "@farmmaps/common": ">=2.0.0",
"ngx-openlayers": "1.0.0-next.19", "ngx-openlayers": ">=1.0.0-next.19",
"ol": "6.8.1" "ol": ">=6.8.1"
} }
} }

View File

@ -169,134 +169,119 @@ export {
GeometryThumbnailComponent GeometryThumbnailComponent
} }
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
AngularOpenlayersModule, AngularOpenlayersModule,
MapRoutingModule, MapRoutingModule,
StoreModule.forFeature(MODULE_NAME, mapReducers.reducer,{metaReducers:metaReducers}), StoreModule.forFeature(MODULE_NAME, mapReducers.reducer, { metaReducers: metaReducers }),
EffectsModule.forFeature([mapEffects.MapEffects]), EffectsModule.forFeature([mapEffects.MapEffects]),
NgbModule, NgbModule,
FormsModule, FormsModule,
ReactiveFormsModule, ReactiveFormsModule,
AppCommonModule AppCommonModule
], ],
declarations: [ declarations: [
ZoomToExtentComponent, ZoomToExtentComponent,
ItemVectorSourceComponent, ItemVectorSourceComponent,
ItemLayersComponent, ItemLayersComponent,
FileDropTargetComponent, FileDropTargetComponent,
MapComponent, MapComponent,
MetaDataModalComponent, MetaDataModalComponent,
RotationResetComponent, RotationResetComponent,
MapSearchComponent, MapSearchComponent,
SelectPeriodModalComponent, SelectPeriodModalComponent,
LayerListComponent, LayerListComponent,
LegendComponent, LegendComponent,
LayerVectorImageComponent, LayerVectorImageComponent,
FeatureListComponent, FeatureListComponent,
WidgetHostDirective, WidgetHostDirective,
FeatureListContainerComponent, FeatureListContainerComponent,
FeatureListCroppingschemeComponent, FeatureListCroppingschemeComponent,
FeatureListCropfieldComponent, FeatureListCropfieldComponent,
FeatureListFeatureContainerComponent, FeatureListFeatureContainerComponent,
FeatureListFeatureComponent, FeatureListFeatureComponent,
FeatureListFeatureCroppingschemeComponent, FeatureListFeatureCroppingschemeComponent,
FeatureListFeatureCropfieldComponent, FeatureListFeatureCropfieldComponent,
SelectedItemContainerComponent, SelectedItemContainerComponent,
SelectedItemComponent, SelectedItemComponent,
SelectedItemCropfieldComponent, SelectedItemCropfieldComponent,
SelectedItemGeotiffComponent, SelectedItemGeotiffComponent,
SelectedItemTemporalComponent, SelectedItemTemporalComponent,
SelectedItemShapeComponent, SelectedItemShapeComponent,
ItemListItemComponent, ItemListItemComponent,
ItemListItemContainerComponent, ItemListItemContainerComponent,
ItemListComponent, ItemListComponent,
ItemWidgetListComponent, ItemWidgetListComponent,
WidgetStatusComponent, WidgetStatusComponent,
GpsLocation, GpsLocation,
PanToLocation, PanToLocation,
LayerSwitcher, LayerSwitcher,
HistogramDetailsComponent, HistogramDetailsComponent,
StatisticsDetailsComponent, StatisticsDetailsComponent,
ifZoomToShowDirective, ifZoomToShowDirective,
ZoomToShowAlert, ZoomToShowAlert,
LayerValuesComponent, LayerValuesComponent,
GeometryThumbnailComponent GeometryThumbnailComponent
], ],
entryComponents: [ exports: [
FeatureListComponent, ItemVectorSourceComponent,
FeatureListCroppingschemeComponent, ItemLayersComponent,
FeatureListCropfieldComponent, FileDropTargetComponent,
FeatureListFeatureComponent, MetaDataModalComponent,
FeatureListFeatureCroppingschemeComponent, MapComponent,
FeatureListFeatureCropfieldComponent, GpsLocation,
SelectedItemComponent, PanToLocation,
SelectedItemCropfieldComponent, LayerSwitcher,
SelectedItemGeotiffComponent, FeatureListFeatureComponent,
SelectedItemTemporalComponent, FeatureListFeatureCropfieldComponent,
SelectedItemShapeComponent, FeatureListFeatureCroppingschemeComponent,
ItemListComponent, SelectedItemContainerComponent,
ItemListItemComponent, SelectedItemComponent,
], SelectedItemCropfieldComponent,
exports: [ SelectedItemGeotiffComponent,
ItemVectorSourceComponent, SelectedItemTemporalComponent,
ItemLayersComponent, SelectedItemShapeComponent,
FileDropTargetComponent, ItemListItemComponent,
MetaDataModalComponent, ItemListItemContainerComponent,
MapComponent, ItemListComponent,
GpsLocation, ItemWidgetListComponent,
PanToLocation, WidgetStatusComponent,
LayerSwitcher, RotationResetComponent,
FeatureListFeatureComponent, MapSearchComponent,
FeatureListFeatureCropfieldComponent, SelectPeriodModalComponent,
FeatureListFeatureCroppingschemeComponent, LayerListComponent,
SelectedItemContainerComponent, LegendComponent,
SelectedItemComponent, LayerVectorImageComponent,
SelectedItemCropfieldComponent, FeatureListComponent,
SelectedItemGeotiffComponent, WidgetHostDirective,
SelectedItemTemporalComponent, FeatureListContainerComponent,
SelectedItemShapeComponent, FeatureListCroppingschemeComponent,
ItemListItemComponent, FeatureListCropfieldComponent,
ItemListItemContainerComponent, FeatureListFeatureContainerComponent,
ItemListComponent, ZoomToExtentComponent,
ItemWidgetListComponent, ifZoomToShowDirective,
WidgetStatusComponent, ZoomToShowAlert,
RotationResetComponent, GeometryThumbnailComponent
MapSearchComponent, ],
SelectPeriodModalComponent, providers: [
LayerListComponent, FeatureIconService,
LegendComponent, GeolocationService,
LayerVectorImageComponent, DeviceOrientationService,
FeatureListComponent, TemporalService,
WidgetHostDirective, { provide: AbstractFeatureListComponent, useClass: FeatureListCroppingschemeComponent, multi: true },
FeatureListContainerComponent, { provide: AbstractFeatureListComponent, useClass: FeatureListCropfieldComponent, multi: true },
FeatureListCroppingschemeComponent, { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureComponent, multi: true },
FeatureListCropfieldComponent, { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCroppingschemeComponent, multi: true },
FeatureListFeatureContainerComponent, { provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCropfieldComponent, multi: true },
ZoomToExtentComponent, { provide: AbstractSelectedItemComponent, useClass: SelectedItemComponent, multi: true },
ifZoomToShowDirective, { provide: AbstractSelectedItemComponent, useClass: SelectedItemCropfieldComponent, multi: true },
ZoomToShowAlert, { provide: AbstractSelectedItemComponent, useClass: SelectedItemGeotiffComponent, multi: true },
GeometryThumbnailComponent { provide: AbstractSelectedItemComponent, useClass: SelectedItemTemporalComponent, multi: true },
], { provide: AbstractSelectedItemComponent, useClass: SelectedItemShapeComponent, multi: true },
providers: [ { provide: AbstractItemListItemComponent, useClass: ItemListItemComponent, multi: true },
FeatureIconService, { provide: AbstractItemListComponent, useClass: ItemListComponent, multi: true }
GeolocationService, ]
DeviceOrientationService,
TemporalService,
{ provide: AbstractFeatureListComponent, useClass: FeatureListCroppingschemeComponent, multi: true },
{ provide: AbstractFeatureListComponent, useClass: FeatureListCropfieldComponent, multi: true },
{ provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureComponent, multi: true },
{ provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCroppingschemeComponent, multi: true },
{ provide: AbstractFeatureListFeatureComponent, useClass: FeatureListFeatureCropfieldComponent, multi: true },
{ provide: AbstractSelectedItemComponent, useClass: SelectedItemComponent, multi: true },
{ provide: AbstractSelectedItemComponent, useClass: SelectedItemCropfieldComponent, multi: true },
{ provide: AbstractSelectedItemComponent, useClass: SelectedItemGeotiffComponent, multi: true },
{ provide: AbstractSelectedItemComponent, useClass: SelectedItemTemporalComponent, multi: true },
{ provide: AbstractSelectedItemComponent, useClass: SelectedItemShapeComponent, multi: true },
{ provide: AbstractItemListItemComponent, useClass: ItemListItemComponent, multi: true },
{ provide: AbstractItemListComponent, useClass: ItemListComponent, multi: true }
]
}) })

View File

@ -1,5 +1,5 @@
import { Component, Output, ViewChild, EventEmitter, Input, ElementRef, HostListener } from '@angular/core'; import { Component, Output, ViewChild, EventEmitter, Input, ElementRef, HostListener } from '@angular/core';
import { FormGroup,FormBuilder, Validators } from '@angular/forms'; import { UntypedFormGroup,UntypedFormBuilder, Validators } from '@angular/forms';
import { IListItem } from '@farmmaps/common'; import { IListItem } from '@farmmaps/common';
import { IDroppedFile } from '../aol/file-drop-target/file-drop-target.component'; import { IDroppedFile } from '../aol/file-drop-target/file-drop-target.component';
import {NgbModal, NgbModalRef} from "@ng-bootstrap/ng-bootstrap"; import {NgbModal, NgbModalRef} from "@ng-bootstrap/ng-bootstrap";
@ -33,9 +33,9 @@ export class MetaDataModalComponent {
@Output() onCloseModal = new EventEmitter<any>(); @Output() onCloseModal = new EventEmitter<any>();
@Output() onAddFilesWithMetaData = new EventEmitter<IMetaData>(); @Output() onAddFilesWithMetaData = new EventEmitter<IMetaData>();
constructor(private modalService: NgbModal, public fb: FormBuilder) { } constructor(private modalService: NgbModal, public fb: UntypedFormBuilder) { }
public metaDataForm: FormGroup; public metaDataForm: UntypedFormGroup;
handleMetaDataEntered(event) { handleMetaDataEntered(event) {
if (this.metaDataForm.valid) { if (this.metaDataForm.valid) {

View File

@ -126,7 +126,7 @@ export class MapEffects {
var endDate = a.queryState.endDate; var endDate = a.queryState.endDate;
var newAction:Observable<Action>; var newAction:Observable<Action>;
if (a.queryState.itemCode || a.queryState.parentCode || a.queryState.itemType || a.queryState.query || a.queryState.tags) { if (a.queryState.itemCode || a.queryState.parentCode || a.queryState.itemType || a.queryState.query || a.queryState.tags) {
newAction= this.itemService$.getFeatures(a.queryState.bbox, "EPSG:3857", a.queryState.query, a.queryState.tags, startDate, endDate, a.queryState.itemType, a.queryState.parentCode, null, a.queryState.level).pipe( newAction= this.itemService$.getFeatures(a.queryState.bbox, "EPSG:3857", a.queryState.query, a.queryState.tags, startDate, endDate, a.queryState.itemType, a.queryState.parentCode, a.queryState.dataFilter, a.queryState.level).pipe(
switchMap((features: any) => { switchMap((features: any) => {
for (let f of features.features) { for (let f of features.features) {
if (f.properties && f.properties["code"]) { if (f.properties && f.properties["code"]) {
@ -157,7 +157,7 @@ export class MapEffects {
} }
if(action.features && action.features.length >0) { if(action.features && action.features.length >0) {
actions.push(new mapActions.SetExtent(extent)); actions.push(new mapActions.SetExtent(extent));
} }
} }
} }
return actions; return actions;
@ -172,7 +172,7 @@ export class MapEffects {
extend(extent, (f as Feature<Geometry>).getGeometry().getExtent()); extend(extent, (f as Feature<Geometry>).getGeometry().getExtent());
} }
if(action.features.length>0) return of(new mapActions.SetExtent(extent)); if(action.features.length>0) return of(new mapActions.SetExtent(extent));
} }
return EMPTY; return EMPTY;
}))); })));
@ -207,14 +207,14 @@ export class MapEffects {
selectItemSuccessSetLayer$ = createEffect(() => this.actions$.pipe( selectItemSuccessSetLayer$ = createEffect(() => this.actions$.pipe(
ofType(mapActions.SELECTITEMSUCCESS), ofType(mapActions.SELECTITEMSUCCESS),
map((action:mapActions.SelectItemSuccess) => map((action:mapActions.SelectItemSuccess) =>
new mapActions.SetSelectedItemLayer(action.item) new mapActions.SetSelectedItemLayer(action.item)
) )
)); ));
selectItemSuccess$ = createEffect(() => this.actions$.pipe( selectItemSuccess$ = createEffect(() => this.actions$.pipe(
ofType(mapActions.SELECTITEMSUCCESS), ofType(mapActions.SELECTITEMSUCCESS),
switchMap((action:mapActions.SelectItemSuccess) => { switchMap((action:mapActions.SelectItemSuccess) => {
if(!this.overrideSelectedItemLayer) { if(!this.overrideSelectedItemLayer) {
return this.itemService$.getFeature(action.item.code, "EPSG:3857").pipe( return this.itemService$.getFeature(action.item.code, "EPSG:3857").pipe(
map((feature: any) => { map((feature: any) => {
@ -222,7 +222,7 @@ export class MapEffects {
f.setId(action.item.code); f.setId(action.item.code);
return new mapActions.AddFeatureSuccess(f ); return new mapActions.AddFeatureSuccess(f );
}), }),
catchError(error => of(new commonActions.Fail(error)))); catchError(error => of(new commonActions.Fail(error))));
} else { } else {
return EMPTY; return EMPTY;
} }
@ -299,7 +299,7 @@ export class MapEffects {
} else { } else {
newAction= new mapActions.StartSearch(queryState); newAction= new mapActions.StartSearch(queryState);
} }
} else { } else {
newAction = new mapActions.Clear(); newAction = new mapActions.Clear();
} }
@ -322,9 +322,9 @@ export class MapEffects {
return; return;
} }
}); });
a.push(new mapActions.GetLayerValueSuccess({date:action.itemLayer.item.dataDate,value:v,layerName:l.name,quantity:"",unit:l.unit})); a.push(new mapActions.GetLayerValueSuccess({date:action.itemLayer.item.dataDate,value:v,layerName:l.name,quantity:"",unit:l.unit}));
} else { } else {
a.push(new mapActions.GetLayerValueSuccess({date:action.itemLayer.item.dataDate,value:v*scale,layerName:l.name,quantity:l.quantity,unit:l.unit})); a.push(new mapActions.GetLayerValueSuccess({date:action.itemLayer.item.dataDate,value:v*scale,layerName:l.name,quantity:l.quantity,unit:l.unit}));
} }
} }
return a; return a;
@ -346,7 +346,7 @@ export class MapEffects {
withLatestFrom(this.store$.select(mapReducers.selectGetLayerValuesEnabled)), withLatestFrom(this.store$.select(mapReducers.selectGetLayerValuesEnabled)),
withLatestFrom(this.store$.select(mapReducers.selectGetOverlayLayers)), withLatestFrom(this.store$.select(mapReducers.selectGetOverlayLayers)),
mergeMap(([[[action, selected], enabled],overlayLayers]) => { mergeMap(([[[action, selected], enabled],overlayLayers]) => {
let layers = []; let layers = [];
if(selected) { if(selected) {
if(selected && (selected as TemporalItemLayer).selectedItemLayer ) { if(selected && (selected as TemporalItemLayer).selectedItemLayer ) {
selected=(selected as TemporalItemLayer).selectedItemLayer; selected=(selected as TemporalItemLayer).selectedItemLayer;
@ -358,16 +358,16 @@ export class MapEffects {
}); });
let a = action as mapActions.SetLayerValuesLocation; let a = action as mapActions.SetLayerValuesLocation;
let actions = []; let actions = [];
if(enabled) { if(enabled) {
layers.forEach((ol) => { layers.forEach((ol) => {
if("vnd.farmmaps.itemtype.shape.processed,vnd.farmmaps.itemtype.geotiff.processed".indexOf(ol.item.itemType)>=0) { if("vnd.farmmaps.itemtype.shape.processed,vnd.farmmaps.itemtype.geotiff.processed".indexOf(ol.item.itemType)>=0) {
actions.push(new mapActions.GetLayerValue(ol,a.x,a.y)); actions.push(new mapActions.GetLayerValue(ol,a.x,a.y));
} }
}); });
} }
return actions; return actions;
}))); })));
setState$ = createEffect(() => this.actions$.pipe( setState$ = createEffect(() => this.actions$.pipe(
ofType(mapActions.SETSTATE), ofType(mapActions.SETSTATE),
@ -385,7 +385,7 @@ export class MapEffects {
return of(new mapActions.Clear()); return of(new mapActions.Clear());
} else { } else {
return EMPTY; return EMPTY;
} }
}))); })));
setOverride$ = createEffect(() => this.actions$.pipe( setOverride$ = createEffect(() => this.actions$.pipe(
@ -404,6 +404,6 @@ export class MapEffects {
constructor(private actions$: Actions, private store$: Store<mapReducers.State>, private folderService$: FolderService, private itemService$: ItemService,private featureIconService$:FeatureIconService,private itemTypeService$:ItemTypeService) { constructor(private actions$: Actions, private store$: Store<mapReducers.State>, private folderService$: FolderService, private itemService$: ItemService,private featureIconService$:FeatureIconService,private itemTypeService$:ItemTypeService) {
this._geojsonFormat = new GeoJSON(); this._geojsonFormat = new GeoJSON();
this._wktFormat = new WKT(); this._wktFormat = new WKT();
} }
} }

View File

@ -14,7 +14,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -2,7 +2,7 @@
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/lib", "outDir": "../../out-tsc/lib",
"target": "es2015", "target": "es2020",
"module": "es2015", "module": "es2015",
"moduleResolution": "node", "moduleResolution": "node",
"declaration": true, "declaration": true,

View File

@ -2,7 +2,7 @@
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/lib", "outDir": "../../out-tsc/lib",
"target": "es2015", "target": "es2020",
"module": "es2015", "module": "es2015",
"moduleResolution": "node", "moduleResolution": "node",
"declaration": true, "declaration": true,

View File

@ -5,11 +5,11 @@
"registry": "https://repository.akkerweb.nl/repository/npm-hosted/" "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
}, },
"peerDependencies": { "peerDependencies": {
"@angular/common": "~12.2.8", "@angular/common": ">=14.0.0",
"@angular/core": "~12.2.8", "@angular/core": ">=14.0.0",
"ngx-openlayers": "1.0.0-next.19", "ngx-openlayers": "1.0.0-next.19",
"cesium": "^1.82.1", "cesium": ">=1.82.1",
"ol-cesium": "^2.13.0" "ol-cesium": ">=2.13.0"
}, },
"dependencies": { "dependencies": {
"tslib": "^2.0.0" "tslib": "^2.0.0"

View File

@ -18,7 +18,9 @@ declare const require: {
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -2,10 +2,7 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json", "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/common", "dest": "../../dist/common",
"lib": { "lib": {
"entryFile": "src/public-api.ts", "entryFile": "src/public-api.ts"
"umdModuleIds": {
"my-data": "my-data"
}
}, },
"allowedNonPeerDependencies": [ "allowedNonPeerDependencies": [
"." "."

View File

@ -1,27 +1,30 @@
{ {
"name": "@farmmaps/common", "name": "@farmmaps/common",
"version": "0.0.1", "version": "2.0.0",
"lockfileVersion": 1, "lockfileVersion": 2,
"requires": true, "requires": true,
"dependencies": { "packages": {
"is-retina": { "": {
"version": "1.0.3", "name": "@farmmaps/common",
"resolved": "https://registry.npmjs.org/is-retina/-/is-retina-1.0.3.tgz", "version": "2.0.0",
"integrity": "sha1-10AbKGvqKuN/Ykd1iN5QTQuGR+M=" "peerDependencies": {
}, "@angular/common": "^14.0.0",
"ngx-avatar": { "@angular/core": "^14.0.0",
"version": "4.0.0", "@angular/forms": "^14",
"resolved": "https://registry.npmjs.org/ngx-avatar/-/ngx-avatar-4.0.0.tgz", "@microsoft/signalr": "^3.1.3",
"integrity": "sha512-Uk40UXl26RvDy1ori9NDsGFB+f84AaxMnsIwZA6JPJK0pLcbo3F4vZTmzLZeOusOw1Qtgk5IzF630jo06keXwQ==", "@ng-bootstrap/ng-bootstrap": ">=10.0.0",
"requires": { "@ngrx/effects": "^14.0.0",
"is-retina": "^1.0.3", "@ngrx/router-store": "^14.0.0",
"ts-md5": "^1.2.4" "@ngrx/store": "^14.0.0",
"angular-oauth2-oidc": "^13",
"bootstrap": "^4.4.1",
"moment": "^2.27.0",
"ngx-avatar": "^4.1.0",
"ngx-clipboard": "^14.0.1",
"ngx-image-cropper": "^3.3.5",
"ngx-uploadx": "^5.2.0",
"tassign": "^1.0.0"
} }
},
"ts-md5": {
"version": "1.2.7",
"resolved": "https://registry.npmjs.org/ts-md5/-/ts-md5-1.2.7.tgz",
"integrity": "sha512-emODogvKGWi1KO1l9c6YxLMBn6CEH3VrH5mVPIyOtxBG52BvV4jP3GWz6bOZCz61nLgBc3ffQYE4+EHfCD+V7w=="
} }
} }
} }

View File

@ -5,21 +5,21 @@
"registry": "https://repository.akkerweb.nl/repository/npm-hosted/" "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
}, },
"peerDependencies": { "peerDependencies": {
"@ng-bootstrap/ng-bootstrap": "^7.0", "@ng-bootstrap/ng-bootstrap": ">=10.0.0",
"@angular/common": "~12.2.8", "@angular/common": ">=14.0.0",
"@angular/core": "~12.2.8", "@angular/core": ">=14.0.0",
"@angular/forms": "~12.2.8", "@angular/forms": ">=14.0.0",
"@ngrx/effects": "^12.0", "@ngrx/effects": ">=14.0.0",
"@ngrx/router-store": "^12.0", "@ngrx/router-store": ">=14.0.0",
"@ngrx/store": "^12.0", "@ngrx/store": ">=14.0.0",
"tassign": "^1.0.0", "tassign": ">=1.0.0",
"bootstrap": "^4.4.1", "bootstrap": ">=4.4.1",
"@microsoft/signalr": "^3.1.3", "@microsoft/signalr": ">=3.1.3",
"ngx-uploadx": "^3.3.4", "ngx-uploadx": ">=5.1.0",
"angular-oauth2-oidc": "^12.0", "angular-oauth2-oidc": ">=13.0.0",
"moment": "^2.27.0", "moment": ">=2.27.0",
"ngx-avatar": "^4.0.0", "ngx-avatar": ">=4.1.0",
"ngx-image-cropper": "^3.3.5", "ngx-image-cropper": ">=3.3.5",
"ngx-clipboard": "^14.0.1" "ngx-clipboard": ">=14.0.1"
} }
} }

View File

@ -1,6 +1,7 @@
export interface IQueryState { export interface IQueryState {
itemCode: string; itemCode: string;
parentCode: string; parentCode: string;
dataFilter?: string;
level: number; level: number;
itemType: string; itemType: string;
query: string; query: string;

View File

@ -14,7 +14,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -2,7 +2,7 @@
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/lib", "outDir": "../../out-tsc/lib",
"target": "es2015", "target": "es2020",
"module": "es2015", "module": "es2015",
"moduleResolution": "node", "moduleResolution": "node",
"declaration": true, "declaration": true,

View File

@ -2,7 +2,7 @@
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/lib", "outDir": "../../out-tsc/lib",
"target": "es2015", "target": "es2020",
"module": "es2015", "module": "es2015",
"moduleResolution": "node", "moduleResolution": "node",
"declaration": true, "declaration": true,

View File

@ -18,16 +18,6 @@
* BROWSER POLYFILLS * BROWSER POLYFILLS
*/ */
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags

View File

@ -12,7 +12,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -13,7 +13,7 @@
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"importHelpers": true, "importHelpers": true,
"skipLibCheck": true, "skipLibCheck": true,
"target": "es2015", "target": "es2020",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
], ],