Compare commits

..

5 Commits

Author SHA1 Message Date
7e17a49dc6 Merge branch 'develop'
Some checks failed
FarmMaps/FarmMapsLib/pipeline/head There was a failure building this commit
# Conflicts:
#	package-lock.json
#	package.json
2024-03-19 16:04:26 +01:00
jenkins
ce52cbdbed [ci skip] Updated packages #2445
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2024-03-05 14:41:30 +00:00
752e1e2c42 added hit tolerance to ngx select interaction
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2024-03-05 15:39:52 +01:00
jenkins
6b617ed4ad [ci skip] Updated packages #2444
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2024-03-04 12:22:37 +00:00
9b19950945 Fix upload json formatting
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
Fix extraAttributes null exception
2024-03-04 13:20:23 +01:00
4 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,10 @@
{ {
"name": "farmmaps-lib-app", "name": "farmmaps-lib-app",
<<<<<<< HEAD
"version": "4.3.1", "version": "4.3.1",
=======
"version": "4.4.0",
>>>>>>> develop
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",

View File

@ -154,7 +154,7 @@ export class ItemService {
putItemFile(item: IItem, jsonObject: any): Observable<IItem> { putItemFile(item: IItem, jsonObject: any): Observable<IItem> {
const formData = new FormData(); const formData = new FormData();
const file = new File([JSON.stringify(jsonObject)], 'data.dat', {type: 'application/json'}); const file = new File([JSON.stringify(jsonObject, undefined, '\t')], 'data.dat', {type: 'application/json'});
formData.append('file', file); formData.append('file', file);
return this.httpClient.put<any>(`${this.ApiEndpoint()}/api/v1/items/${item.code}/data`, formData); return this.httpClient.put<any>(`${this.ApiEndpoint()}/api/v1/items/${item.code}/data`, formData);
} }

View File

@ -27,7 +27,7 @@ export class ItemTypeService {
getExtraAttributes(itemType: string) { getExtraAttributes(itemType: string) {
let extraAttributes = null; let extraAttributes = null;
if (this.itemTypes[itemType]) extraAttributes = this.itemTypes[itemType].extraAttributes; if (this.itemTypes[itemType] && this.itemTypes[itemType].extraAttributes) extraAttributes = this.itemTypes[itemType].extraAttributes;
return extraAttributes; return extraAttributes;
} }

View File

@ -33,6 +33,8 @@ export class SelectInteractionComponent implements OnInit, OnDestroy {
filter?: FilterFunction; filter?: FilterFunction;
@Input() @Input()
wrapX?: boolean; wrapX?: boolean;
@Input()
hitTolerance?: number;
@Output() @Output()
olChange = new EventEmitter<SelectEvent>(); olChange = new EventEmitter<SelectEvent>();