Compare commits

...

15 Commits

Author SHA1 Message Date
Willem Dantuma
9376c236aa Merge branch 'develop' into feature/vectortileselect
# Conflicts:
#	package-lock.json
#	package.json
2021-01-21 11:04:57 +01:00
Willem Dantuma
a1079eb21f update libs
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-21 11:04:22 +01:00
Willem Dantuma
c266ce7d42 Update libs 2021-01-21 11:03:37 +01:00
428e3b002d Fix UTC
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-18 16:45:37 +01:00
65366ff09b Again....
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-18 15:23:44 +01:00
0f1ce45b2f AW-1844 Fix fmHasPackage
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2021-01-18 15:21:34 +01:00
1ade8025ab Fix HasPackageDirective
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2021-01-18 15:01:08 +01:00
Willem Dantuma
ac8815e8f1 Commit 2021-01-13 17:33:01 +01:00
41b1295f9e Move mollie code ( srvice ) uit farmmapslib halen ( is open source ), naar farmmaps
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-13 17:29:48 +01:00
ed5a74ed07 Export new Mollie types
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-13 17:18:45 +01:00
a08eed7c67 AW-1805 Update mollie service (client)
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-13 16:40:35 +01:00
cc421742df AW-1805 Add support for validity
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-12 09:05:27 +01:00
9a38630d01 Fix URL
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-11 19:50:24 +01:00
978360fad0 Build error
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2021-01-11 19:34:39 +01:00
30dab68468 AW-1805 Add mollie service
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2021-01-11 19:32:08 +01:00
6 changed files with 37 additions and 15 deletions

32
package-lock.json generated
View File

@ -423,6 +423,12 @@
"ms": "^2.1.1"
}
},
"ini": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
"dev": true
},
"uuid": {
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.0.tgz",
@ -1767,25 +1773,25 @@
}
},
"@farmmaps/common": {
"version": "0.0.1-prerelease.454",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common/-/common-0.0.1-prerelease.454.tgz",
"integrity": "sha512-qG4p/+7nHkqDU0ZtaBoNFoTWuVimyVEcDKAy9G0fQ+grDw/btos5jDzB0ON7ufituGrSwe5D5NT/1m4BTLu9PQ==",
"version": "0.0.1-prerelease.478",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common/-/common-0.0.1-prerelease.478.tgz",
"integrity": "sha512-6gnsQiMYHpZt8yAUoURKlQQM+4ICB5KV2varDaUZKGyraSQpzlYrSS3Ru0bokpbPpr3DutcyOFSS68li5KsKhA==",
"requires": {
"tslib": "^2.0.0"
}
},
"@farmmaps/common-map": {
"version": "0.0.1-prerelease.454",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common-map/-/common-map-0.0.1-prerelease.454.tgz",
"integrity": "sha512-wn1bNxlUCPMEwUZrs72hL/2+W33iwzSXCZY5+MmeQRH76XhvtHUj4dNyHAPday88BB9ttkYItRCMDFnRLCvnrA==",
"version": "0.0.1-prerelease.478",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common-map/-/common-map-0.0.1-prerelease.478.tgz",
"integrity": "sha512-/Q07gnwvluizvdMqgjJ2n3nJspQKjbKKnGEWyJcy69ZqoSAL5aTS8G1EE/Jl+rJx6/A6NjbR5syxQ5k7ofrl9A==",
"requires": {
"tslib": "^2.0.0"
}
},
"@farmmaps/common-map3d": {
"version": "0.0.1-prerelease.454",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common-map3d/-/common-map3d-0.0.1-prerelease.454.tgz",
"integrity": "sha512-W9wSW6Rmot0ij9U/Id5Dzbnua96hK6jp4Hw0yzLJtwrC3nxxexqnZsgYhS7UN9y1U6DsTOmqFISpLe3JG3N+ZQ==",
"version": "0.0.1-prerelease.478",
"resolved": "https://repository.akkerweb.nl/repository/npm-group/@farmmaps/common-map3d/-/common-map3d-0.0.1-prerelease.478.tgz",
"integrity": "sha512-OZSsQWEsRNsvpI3IngGnT0s0/FzgvLw75DeXPyTFzwa3m1O+ePiFB6V8yei6my+bKW7axhkM0eh98ThMgKojmg==",
"requires": {
"tslib": "^2.0.0"
}
@ -2067,6 +2073,14 @@
"pacote": "9.5.12",
"semver": "7.3.2",
"semver-intersect": "1.4.0"
},
"dependencies": {
"ini": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
"dev": true
}
}
},
"@types/color-name": {

View File

@ -19,9 +19,9 @@
"@angular/platform-browser": "~10.1.3",
"@angular/platform-browser-dynamic": "~10.1.3",
"@angular/router": "~10.1.3",
"@farmmaps/common": ">=0.0.1-prerelease.454 <0.0.1",
"@farmmaps/common-map": ">=0.0.1-prerelease.454 <0.0.1",
"@farmmaps/common-map3d": ">=0.0.1-prerelease.454 <0.0.1",
"@farmmaps/common": ">=0.0.1-prerelease.478 <0.0.1",
"@farmmaps/common-map": ">=0.0.1-prerelease.478 <0.0.1",
"@farmmaps/common-map3d": ">=0.0.1-prerelease.478 <0.0.1",
"@microsoft/signalr": "^3.1.3",
"@ng-bootstrap/ng-bootstrap": "^7.0",
"@ngrx/effects": "^10.0",

View File

@ -386,6 +386,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
}
mapEventHandler = (event) => {
return;
//if(event.type === 'click' && !this.onFeatureSelected.observers.length) return;
//if(event.type === 'pointermode' && !this.onFeatureHover.observers.length) return;
if(this.itemLayer && this.itemLayer.layer) {
@ -394,7 +395,6 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
if(!features.length) return;
let fid = features[0].getId();
this.selectedFeatures[fid] = features[0];
console.debug(features[0]);
})
if(this.selectionLayer) this.selectionLayer.changed();
}

View File

@ -16,7 +16,11 @@ export class HasPackageDirective implements OnInit,OnDestroy{
private packSub:Subscription;
ngOnInit() {
this.packages$.subscribe((packages) => {
if (packages[this.package] && packages[this.package].enabled) {
const today = new Date(new Date(Date.now()).toUTCString()).setHours(0,0,0,0);
if (packages[this.package] &&
packages[this.package].enabled &&
(packages[this.package].dataDate && new Date(packages[this.package].dataDate).setHours(0, 0, 0, 0) <= today) &&
(packages[this.package].dataEndDate == null || new Date(packages[this.package].dataEndDate).setHours(0, 0, 0, 0) >= today)) {
this.viewContainerRef$.createEmbeddedView(this.templateRef$);
this.hasView=true;
} else if (this.hasView) {

View File

@ -2,6 +2,8 @@ export interface IPackage {
id:string
name:string;
enabled?:boolean;
dataDate?:Date;
dataEndDate?:Date;
}
export interface IPackages {

View File

@ -116,7 +116,9 @@ export function reducer(state = initialState, action: appCommonActions.Actions )
let a = action as appCommonActions.InitUserPackagesSuccess;
let packages = {}
a.items.forEach((item) => {
packages[item.data.id]=item.data;
item.data.dataDate = item.dataDate;
item.data.dataEndDate = item.dataEndDate;
packages[item.data.id]=item.data;
});
return tassign(state,{userPackages:packages});