Compare commits
214 Commits
2023.08
...
aa5a8f0843
Author | SHA1 | Date | |
---|---|---|---|
|
aa5a8f0843 | ||
|
a10aca92f1 | ||
|
e42e94fcf7 | ||
|
2b83ccad1f | ||
|
e31d428c4b | ||
|
429e54ef8d | ||
|
02e13337bf | ||
|
b4eb7aaeac | ||
|
7e21c725d8 | ||
|
dd889ea7cc | ||
|
4dab5a00b1 | ||
|
5cc58e8988 | ||
|
0944e595d3 | ||
|
32bebec0df | ||
|
c0cf210600 | ||
|
f85a27a8e5 | ||
|
88ae8b829f | ||
|
fcb60ed8bc | ||
|
3d535507fb | ||
|
e89bdac47d | ||
|
4038702841 | ||
|
7ced2d2a7b | ||
|
c53981f4a6 | ||
|
076dec27d5 | ||
|
5354aa8d0a | ||
|
12143c8e69 | ||
|
50519e9236 | ||
|
7f6d007c04 | ||
|
98be4f05cc | ||
|
79558e2168 | ||
|
b966241997 | ||
|
60a7384f88 | ||
|
76f225b996 | ||
|
37a25c6b29 | ||
|
6c45842387 | ||
|
d37b0866d5 | ||
|
270f244128 | ||
|
ebddf688c6 | ||
|
f1c572ecc9 | ||
|
af5361b6c3 | ||
|
6daf0eab4a | ||
|
66fe0e9534 | ||
|
75ccc6dda4 | ||
|
e45ec785d7 | ||
|
b067b50937 | ||
|
0c2e6364ac | ||
|
b232fb2c8e | ||
|
4a19694c1a | ||
|
af766abe54 | ||
|
6333d78eab | ||
|
c06fe315d8 | ||
|
bc1f44f0b7 | ||
|
95bb8da8b7 | ||
|
68f8ff9cdd | ||
|
9e122fefd3 | ||
|
b47ead21be | ||
|
ebe43c3b27 | ||
|
686084f5cf | ||
|
0abaf15101 | ||
|
9dd2b5cdb5 | ||
|
2246a98bbb | ||
|
6265b66baf | ||
|
5488206588 | ||
|
b4f2042aa0 | ||
|
21dca2163b | ||
|
2bc02323ae | ||
|
8b073fb855 | ||
|
5d28b547a1 | ||
|
f2407dc12a | ||
|
f02b317cf4 | ||
|
270b774c33 | ||
|
864b72c82c | ||
|
c5716b0102 | ||
|
ad097121da | ||
|
79b33cff50 | ||
|
e01417f3b3 | ||
|
68ffc6f7d9 | ||
|
ef7cf410b9 | ||
|
151ba2563e | ||
|
78f4dca9a1 | ||
|
52bf963afd | ||
|
e6cfb85b8e | ||
|
6576e7cb6d | ||
|
7d7528ab4c | ||
|
34a79ec833 | ||
|
6cd5b0e5d7 | ||
|
412ddc01d1 | ||
|
10edf0728b | ||
|
57189ce4df | ||
|
e72f933014 | ||
|
782e7adb00 | ||
|
17b78476ee | ||
|
93630d5a09 | ||
|
79f09d0e0e | ||
|
02016eb404 | ||
|
59760ad201 | ||
|
6eca90abb6 | ||
|
b853b4d3f7 | ||
|
6e815e3442 | ||
|
befa82d0f6 | ||
|
5df0e6e423 | ||
|
669f93a327 | ||
|
73ff1fd47f | ||
|
e07c3aeb3d | ||
|
700b29c3d1 | ||
|
0ffdbfd3ca | ||
|
756db80b77 | ||
|
b2559be980 | ||
|
a9754a8eff | ||
|
d5961d4c96 | ||
|
56e35345fc | ||
|
9755f5a635 | ||
|
2ff1aff9f3 | ||
|
164ac7e3ad | ||
|
85a7e890bd | ||
|
8766293966 | ||
|
d2cad491b9 | ||
|
16d2c6abae | ||
|
a212b59d73 | ||
|
3574e34659 | ||
|
13704c6845 | ||
|
bbe337d115 | ||
|
e1b6e59b6a | ||
|
3685644888 | ||
|
050adcbc0f | ||
|
0a12005d5d | ||
|
8a4644049b | ||
|
ca7e5e03be | ||
|
a1ceabec47 | ||
|
917b875732 | ||
|
7df2004671 | ||
|
c50a79d723 | ||
|
519d789281 | ||
|
b5038e9661 | ||
|
bab69698c6 | ||
|
5c6ea6a391 | ||
|
328edc396b | ||
|
9cd8b81149 | ||
|
80e1f8042e | ||
|
1a1bdb314e | ||
|
51ec1bd3b4 | ||
|
c8440ca536 | ||
|
889d1b4f9e | ||
|
97b458e812 | ||
|
0378565b88 | ||
|
8ca8874707 | ||
|
dc2772aabf | ||
|
ce0e561a3f | ||
|
ba9aab03a9 | ||
|
f10686423d | ||
|
c1688f68c2 | ||
|
c916b2f155 | ||
|
5df9ac295d | ||
|
065a45dc98 | ||
|
6b66777699 | ||
|
9927ba0929 | ||
|
a05a29703c | ||
|
76952cac67 | ||
|
9b27a997f3 | ||
|
014e3143fd | ||
|
7eaf1686e1 | ||
|
d4bf2a6667 | ||
|
9d7cf637ee | ||
|
979f80ce89 | ||
|
c677a9b639 | ||
|
9440b91d90 | ||
|
2b18167761 | ||
|
da8b2f1d3a | ||
|
10e4e6abc6 | ||
|
6acfe7c32f | ||
|
d08c1b2008 | ||
|
a47e1d9a63 | ||
|
4187522739 | ||
|
c0d0088f6e | ||
|
d43dff3085 | ||
|
9a04e1f848 | ||
|
621773a6f1 | ||
|
a9672c44bf | ||
|
155c212f89 | ||
|
ee35c3f1b8 | ||
|
0a405f5515 | ||
|
b618b7c40f | ||
|
f10e68c4ad | ||
|
870c3c2c77 | ||
|
1559f15c7f | ||
|
96345e54fb | ||
|
f61590c677 | ||
|
6f1ec4a17a | ||
|
786e9392b1 | ||
|
f229c25b8f | ||
|
9bdd1ff35f | ||
|
4dd7a15b30 | ||
|
a4aa7dbb7d | ||
|
681d2fe273 | ||
78b7ef44d9 | |||
e19ca94653 | |||
|
a85378374b | ||
9e3f6010c3 | |||
e6a637b866 | |||
|
ccf77805a0 | ||
2b2e1bfafa | |||
3fd4ac2f94 | |||
9849eaf1e7 | |||
b516cc07e2 | |||
c9c9a2ddbf | |||
1d0f3b958d | |||
45537cb2e9 | |||
652ddc0cdc | |||
fd3b331cc0 | |||
9facbe76c8 | |||
20dff38cf7 | |||
e374bb8a73 | |||
294b9c6dd3 | |||
d92bf54c8d |
46
Jenkinsfile
vendored
46
Jenkinsfile
vendored
@@ -1,24 +1,24 @@
|
|||||||
@Library('farmmaps-shared-library') _
|
@Library('farmmaps-shared-library') _
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any;
|
agent any;
|
||||||
options {
|
options {
|
||||||
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
||||||
disableConcurrentBuilds abortPrevious: true;
|
disableConcurrentBuilds();
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('FarmmapsLibBuildAll') {
|
stage('FarmmapsLibBuildAll') {
|
||||||
steps {
|
steps {
|
||||||
stepFarmmapsLibBuildAll();
|
stepFarmmapsLibBuildAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
postSuccess();
|
postSuccess();
|
||||||
}
|
}
|
||||||
always {
|
always {
|
||||||
postAlways();
|
postAlways();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,24 +1,24 @@
|
|||||||
@Library('farmmaps-shared-library') _
|
@Library('farmmaps-shared-library') _
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any;
|
agent any;
|
||||||
options {
|
options {
|
||||||
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
||||||
disableConcurrentBuilds abortPrevious: true;
|
disableConcurrentBuilds();
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('FarmmapsLibBuildAll') {
|
stage('FarmmapsLibBuildAll') {
|
||||||
steps {
|
steps {
|
||||||
stepFarmmapsLibBuildAll();
|
stepFarmmapsLibBuildAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
postSuccess();
|
postSuccess();
|
||||||
}
|
}
|
||||||
always {
|
always {
|
||||||
postAlways();
|
postAlways();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
364
package-lock.json
generated
364
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "farmmaps-lib-app",
|
"name": "farmmaps-lib-app",
|
||||||
"version": "3.0.1",
|
"version": "4.0.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "farmmaps-lib-app",
|
"name": "farmmaps-lib-app",
|
||||||
"version": "3.0.1",
|
"version": "4.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular-eslint/eslint-plugin": "^15.2.1",
|
"@angular-eslint/eslint-plugin": "^15.2.1",
|
||||||
"@angular/animations": "^14.1.3",
|
"@angular/animations": "^14.1.3",
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
"ol": "6.14.1",
|
"ol": "6.14.1",
|
||||||
"olcs": "^2.13.1",
|
"olcs": "^2.13.1",
|
||||||
"resumablejs": "^1.1.0",
|
"resumablejs": "^1.1.0",
|
||||||
"rxjs": "^6.6.7",
|
"rxjs": "^7.8.1",
|
||||||
"stream": "^0.0.2",
|
"stream": "^0.0.2",
|
||||||
"stream-http": "^3.2.0",
|
"stream-http": "^3.2.0",
|
||||||
"tassign": "^1.0.0",
|
"tassign": "^1.0.0",
|
||||||
@@ -84,6 +84,62 @@
|
|||||||
"typescript": "~4.6.4"
|
"typescript": "~4.6.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"dist/common": {
|
||||||
|
"name": "@farmmaps/common",
|
||||||
|
"version": "2.0.0",
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^2.3.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@angular/common": ">=14.0.0",
|
||||||
|
"@angular/core": ">=14.0.0",
|
||||||
|
"@angular/forms": ">=14.0.0",
|
||||||
|
"@microsoft/signalr": ">=3.1.3",
|
||||||
|
"@ng-bootstrap/ng-bootstrap": ">=10.0.0",
|
||||||
|
"@ngrx/effects": ">=14.0.0",
|
||||||
|
"@ngrx/router-store": ">=14.0.0",
|
||||||
|
"@ngrx/store": ">=14.0.0",
|
||||||
|
"angular-oauth2-oidc": ">=13.0.0",
|
||||||
|
"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.1.0",
|
||||||
|
"tassign": ">=1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dist/common-map": {
|
||||||
|
"name": "@farmmaps/common-map",
|
||||||
|
"version": "4.0.0-prerelease.2382",
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^2.0.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@angular/core": ">=14.0.0",
|
||||||
|
"@ngrx/effects": ">=14.0.0",
|
||||||
|
"@ngrx/router-store": ">=14.0.0",
|
||||||
|
"@ngrx/store": ">=14.0.0",
|
||||||
|
"ngrx-store-localstorage": ">=14.0.0",
|
||||||
|
"ngx-openlayers": ">=1.0.0-next.19",
|
||||||
|
"ol": ">=6.8.1",
|
||||||
|
"tassign": ">=1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dist/common-map3d": {
|
||||||
|
"name": "@farmmaps/common-map3d",
|
||||||
|
"version": "4.0.0-prerelease.2383",
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^2.0.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@angular/common": ">=14.0.0",
|
||||||
|
"@angular/core": ">=14.0.0",
|
||||||
|
"cesium": ">=1.82.1",
|
||||||
|
"ngx-openlayers": "1.0.0-next.19",
|
||||||
|
"ol-cesium": ">=2.13.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@adobe/css-tools": {
|
"node_modules/@adobe/css-tools": {
|
||||||
"version": "4.0.1",
|
"version": "4.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.0.1.tgz",
|
||||||
@@ -182,6 +238,24 @@
|
|||||||
"yarn": ">= 1.13.0"
|
"yarn": ">= 1.13.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@angular-devkit/architect/node_modules/rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@angular-devkit/architect/node_modules/tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@angular-devkit/build-angular": {
|
"node_modules/@angular-devkit/build-angular": {
|
||||||
"version": "14.2.10",
|
"version": "14.2.10",
|
||||||
"resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-14.2.10.tgz",
|
"resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-14.2.10.tgz",
|
||||||
@@ -331,6 +405,24 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@angular-devkit/build-angular/node_modules/rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@angular-devkit/build-angular/node_modules/rxjs/node_modules/tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@angular-devkit/build-webpack": {
|
"node_modules/@angular-devkit/build-webpack": {
|
||||||
"version": "0.1402.10",
|
"version": "0.1402.10",
|
||||||
"resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1402.10.tgz",
|
"resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1402.10.tgz",
|
||||||
@@ -391,6 +483,24 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@angular-devkit/build-webpack/node_modules/rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@angular-devkit/build-webpack/node_modules/tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@angular-devkit/core": {
|
"node_modules/@angular-devkit/core": {
|
||||||
"version": "14.2.1",
|
"version": "14.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-14.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-14.2.1.tgz",
|
||||||
@@ -417,6 +527,24 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@angular-devkit/core/node_modules/rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@angular-devkit/core/node_modules/tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@angular-devkit/schematics": {
|
"node_modules/@angular-devkit/schematics": {
|
||||||
"version": "14.2.1",
|
"version": "14.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-14.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-14.2.1.tgz",
|
||||||
@@ -435,6 +563,24 @@
|
|||||||
"yarn": ">= 1.13.0"
|
"yarn": ">= 1.13.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@angular-devkit/schematics/node_modules/rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@angular-devkit/schematics/node_modules/tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@angular-eslint/bundled-angular-compiler": {
|
"node_modules/@angular-eslint/bundled-angular-compiler": {
|
||||||
"version": "15.2.1",
|
"version": "15.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-15.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-15.2.1.tgz",
|
||||||
@@ -2881,60 +3027,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@farmmaps/common": {
|
"node_modules/@farmmaps/common": {
|
||||||
"version": "2.0.0",
|
"resolved": "dist/common",
|
||||||
"resolved": "file:dist/common",
|
"link": true
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^2.3.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@angular/common": ">=14.0.0",
|
|
||||||
"@angular/core": ">=14.0.0",
|
|
||||||
"@angular/forms": ">=14.0.0",
|
|
||||||
"@microsoft/signalr": ">=3.1.3",
|
|
||||||
"@ng-bootstrap/ng-bootstrap": ">=10.0.0",
|
|
||||||
"@ngrx/effects": ">=14.0.0",
|
|
||||||
"@ngrx/router-store": ">=14.0.0",
|
|
||||||
"@ngrx/store": ">=14.0.0",
|
|
||||||
"angular-oauth2-oidc": ">=13.0.0",
|
|
||||||
"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.1.0",
|
|
||||||
"tassign": ">=1.0.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/@farmmaps/common-map": {
|
"node_modules/@farmmaps/common-map": {
|
||||||
"version": "2.0.0",
|
"resolved": "dist/common-map",
|
||||||
"resolved": "file:dist/common-map",
|
"link": true
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^2.0.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@angular/core": ">=14.0.0",
|
|
||||||
"@ngrx/effects": ">=14.0.0",
|
|
||||||
"@ngrx/router-store": ">=14.0.0",
|
|
||||||
"@ngrx/store": ">=14.0.0",
|
|
||||||
"ngrx-store-localstorage": ">=14.0.0",
|
|
||||||
"ngx-openlayers": ">=1.0.0-next.19",
|
|
||||||
"ol": ">=6.8.1",
|
|
||||||
"tassign": ">=1.0.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/@farmmaps/common-map3d": {
|
"node_modules/@farmmaps/common-map3d": {
|
||||||
"version": "2.0.0",
|
"resolved": "dist/common-map3d",
|
||||||
"resolved": "file:dist/common-map3d",
|
"link": true
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^2.0.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@angular/common": ">=14.0.0",
|
|
||||||
"@angular/core": ">=14.0.0",
|
|
||||||
"cesium": ">=1.82.1",
|
|
||||||
"ngx-openlayers": "1.0.0-next.19",
|
|
||||||
"ol-cesium": ">=2.13.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/@gar/promisify": {
|
"node_modules/@gar/promisify": {
|
||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
@@ -9491,15 +9593,6 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/inquirer/node_modules/rxjs": {
|
|
||||||
"version": "7.5.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
|
|
||||||
"integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^2.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/inquirer/node_modules/supports-color": {
|
"node_modules/inquirer/node_modules/supports-color": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
@@ -11627,15 +11720,6 @@
|
|||||||
"node": "^12.20.0 || >=14"
|
"node": "^12.20.0 || >=14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ng-packagr/node_modules/rxjs": {
|
|
||||||
"version": "7.5.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
|
|
||||||
"integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^2.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/ngrx-store-localstorage": {
|
"node_modules/ngrx-store-localstorage": {
|
||||||
"version": "14.0.0",
|
"version": "14.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/ngrx-store-localstorage/-/ngrx-store-localstorage-14.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/ngrx-store-localstorage/-/ngrx-store-localstorage-14.0.0.tgz",
|
||||||
@@ -14488,21 +14572,13 @@
|
|||||||
"integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
|
"integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
|
||||||
},
|
},
|
||||||
"node_modules/rxjs": {
|
"node_modules/rxjs": {
|
||||||
"version": "6.6.7",
|
"version": "7.8.1",
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
|
||||||
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
"integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^1.9.0"
|
"tslib": "^2.1.0"
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"npm": ">=2.0.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rxjs/node_modules/tslib": {
|
|
||||||
"version": "1.14.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
|
||||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
|
||||||
},
|
|
||||||
"node_modules/safe-buffer": {
|
"node_modules/safe-buffer": {
|
||||||
"version": "5.1.2",
|
"version": "5.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||||
@@ -17133,6 +17209,23 @@
|
|||||||
"requires": {
|
"requires": {
|
||||||
"@angular-devkit/core": "14.2.1",
|
"@angular-devkit/core": "14.2.1",
|
||||||
"rxjs": "6.6.7"
|
"rxjs": "6.6.7"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@angular-devkit/build-angular": {
|
"@angular-devkit/build-angular": {
|
||||||
@@ -17228,6 +17321,23 @@
|
|||||||
"rxjs": "6.6.7",
|
"rxjs": "6.6.7",
|
||||||
"source-map": "0.7.4"
|
"source-map": "0.7.4"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -17263,6 +17373,21 @@
|
|||||||
"rxjs": "6.6.7",
|
"rxjs": "6.6.7",
|
||||||
"source-map": "0.7.4"
|
"source-map": "0.7.4"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -17277,6 +17402,23 @@
|
|||||||
"jsonc-parser": "3.1.0",
|
"jsonc-parser": "3.1.0",
|
||||||
"rxjs": "6.6.7",
|
"rxjs": "6.6.7",
|
||||||
"source-map": "0.7.4"
|
"source-map": "0.7.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@angular-devkit/schematics": {
|
"@angular-devkit/schematics": {
|
||||||
@@ -17290,6 +17432,23 @@
|
|||||||
"magic-string": "0.26.2",
|
"magic-string": "0.26.2",
|
||||||
"ora": "5.4.1",
|
"ora": "5.4.1",
|
||||||
"rxjs": "6.6.7"
|
"rxjs": "6.6.7"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"rxjs": {
|
||||||
|
"version": "6.6.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tslib": {
|
||||||
|
"version": "1.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||||
|
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@angular-eslint/bundled-angular-compiler": {
|
"@angular-eslint/bundled-angular-compiler": {
|
||||||
@@ -18924,19 +19083,19 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@farmmaps/common": {
|
"@farmmaps/common": {
|
||||||
"version": "2.0.0",
|
"version": "file:dist/common",
|
||||||
"requires": {
|
"requires": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@farmmaps/common-map": {
|
"@farmmaps/common-map": {
|
||||||
"version": "2.0.0",
|
"version": "file:dist/common-map",
|
||||||
"requires": {
|
"requires": {
|
||||||
"tslib": "^2.0.0"
|
"tslib": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@farmmaps/common-map3d": {
|
"@farmmaps/common-map3d": {
|
||||||
"version": "2.0.0",
|
"version": "file:dist/common-map3d",
|
||||||
"requires": {
|
"requires": {
|
||||||
"tslib": "^2.0.0"
|
"tslib": "^2.0.0"
|
||||||
}
|
}
|
||||||
@@ -23816,15 +23975,6 @@
|
|||||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"rxjs": {
|
|
||||||
"version": "7.5.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
|
|
||||||
"integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"tslib": "^2.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"supports-color": {
|
"supports-color": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
@@ -25424,15 +25574,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz",
|
||||||
"integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==",
|
"integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
|
||||||
"rxjs": {
|
|
||||||
"version": "7.5.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
|
|
||||||
"integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"tslib": "^2.1.0"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -27452,18 +27593,11 @@
|
|||||||
"integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
|
"integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
|
||||||
},
|
},
|
||||||
"rxjs": {
|
"rxjs": {
|
||||||
"version": "6.6.7",
|
"version": "7.8.1",
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
|
||||||
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
"integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"tslib": "^1.9.0"
|
"tslib": "^2.1.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"tslib": {
|
|
||||||
"version": "1.14.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
|
||||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"safe-buffer": {
|
"safe-buffer": {
|
||||||
|
12
package.json
12
package.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "farmmaps-lib-app",
|
"name": "farmmaps-lib-app",
|
||||||
"version": "3.4.0",
|
"version": "4.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
"e2e": "ng e2e"
|
"e2e": "ng e2e"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^14.1.3",
|
"@angular/animations": "^14.1.3",
|
||||||
"@angular/common": "^14.1.3",
|
"@angular/common": "^14.1.3",
|
||||||
"@angular/compiler": "^14.1.3",
|
"@angular/compiler": "^14.1.3",
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
"ol": "6.14.1",
|
"ol": "6.14.1",
|
||||||
"olcs": "^2.13.1",
|
"olcs": "^2.13.1",
|
||||||
"resumablejs": "^1.1.0",
|
"resumablejs": "^1.1.0",
|
||||||
"rxjs": "^6.6.7",
|
"rxjs": "^7.8.1",
|
||||||
"stream": "^0.0.2",
|
"stream": "^0.0.2",
|
||||||
"stream-http": "^3.2.0",
|
"stream-http": "^3.2.0",
|
||||||
"tassign": "^1.0.0",
|
"tassign": "^1.0.0",
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
"util": "^0.12.4",
|
"util": "^0.12.4",
|
||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-builders/custom-webpack": "^14",
|
"@angular-builders/custom-webpack": "^14",
|
||||||
"@angular-devkit/build-angular": "^14.1.3",
|
"@angular-devkit/build-angular": "^14.1.3",
|
||||||
"@angular/cli": "^14.1.3",
|
"@angular/cli": "^14.1.3",
|
||||||
@@ -86,4 +86,4 @@
|
|||||||
"ts-node": "^8.8.1",
|
"ts-node": "^8.8.1",
|
||||||
"typescript": "~4.6.4"
|
"typescript": "~4.6.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -5,7 +5,7 @@ import { IItemLayer } from '../models/item.layer';
|
|||||||
import { ILayervalue } from '../models/layer.value';
|
import { ILayervalue } from '../models/layer.value';
|
||||||
import { IQueryState } from '@farmmaps/common';
|
import { IQueryState } from '@farmmaps/common';
|
||||||
import { IItem } from '@farmmaps/common';
|
import { IItem } from '@farmmaps/common';
|
||||||
import { Feature, Observable } from 'ol';
|
import { Feature } from 'ol';
|
||||||
import { Style } from 'ol/style';
|
import { Style } from 'ol/style';
|
||||||
import { Geometry } from 'ol/geom';
|
import { Geometry } from 'ol/geom';
|
||||||
import { IPeriodState } from '../models/period.state';
|
import { IPeriodState } from '../models/period.state';
|
||||||
@@ -56,7 +56,7 @@ export const GETLAYERVALUE = '[Map] GetLayerValue'
|
|||||||
export const GETLAYERVALUESUCCESS = '[Map] GetLayerValueSuccess'
|
export const GETLAYERVALUESUCCESS = '[Map] GetLayerValueSuccess'
|
||||||
export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide'
|
export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide'
|
||||||
export const SETVIEWSTATE = '[Map] SetViewState'
|
export const SETVIEWSTATE = '[Map] SetViewState'
|
||||||
export const SETCODELIST = '[Map] SetCodeList'
|
|
||||||
|
|
||||||
export class Clear implements Action {
|
export class Clear implements Action {
|
||||||
readonly type = CLEAR;
|
readonly type = CLEAR;
|
||||||
@@ -329,12 +329,6 @@ export class SetViewState implements Action {
|
|||||||
constructor(public enabled:boolean) {}
|
constructor(public enabled:boolean) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SetCodeList implements Action {
|
|
||||||
readonly type = SETCODELIST;
|
|
||||||
|
|
||||||
constructor(public itemType:string, public values: IItem[]) { }
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Actions = SetMapState
|
export type Actions = SetMapState
|
||||||
| Init
|
| Init
|
||||||
| Clear
|
| Clear
|
||||||
@@ -380,6 +374,5 @@ export type Actions = SetMapState
|
|||||||
| GetLayerValue
|
| GetLayerValue
|
||||||
| SetPeriod
|
| SetPeriod
|
||||||
| ToggleShowDataLayerSlide
|
| ToggleShowDataLayerSlide
|
||||||
| SetViewState
|
| SetViewState;
|
||||||
| SetCodeList;
|
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import { Component, Host, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, forwardRef, Inject, InjectionToken } from '@angular/core';
|
import { Component, Host, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, forwardRef, Inject, InjectionToken, OnDestroy, LOCALE_ID } from '@angular/core';
|
||||||
import { LayerVectorComponent, SourceVectorComponent, MapComponent } from 'ngx-openlayers';
|
import { LayerVectorComponent, SourceVectorComponent, MapComponent } from 'ngx-openlayers';
|
||||||
import { ItemService, ItemTypeService, IItem, IItemType } from '@farmmaps/common';
|
import { ItemService, ItemTypeService, IItem, IItemType, FolderService } from '@farmmaps/common';
|
||||||
|
|
||||||
import { Feature } from 'ol';
|
import { Feature } from 'ol';
|
||||||
import { Point, Geometry } from 'ol/geom';
|
import { Point, Geometry } from 'ol/geom';
|
||||||
@@ -17,6 +17,9 @@ import { GeoJSON } from 'ol/format';
|
|||||||
import { Select } from 'ol/interaction';
|
import { Select } from 'ol/interaction';
|
||||||
import { IStyles } from '../../../models/style.cache';
|
import { IStyles } from '../../../models/style.cache';
|
||||||
import { FeatureIconService } from '../../../services/feature-icon.service';
|
import { FeatureIconService } from '../../../services/feature-icon.service';
|
||||||
|
import { Subscription } from 'rxjs';
|
||||||
|
import { getCenter } from 'ol/extent';
|
||||||
|
import { formatNumber } from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'fm-map-item-source-vector',
|
selector: 'fm-map-item-source-vector',
|
||||||
@@ -25,7 +28,7 @@ import { FeatureIconService } from '../../../services/feature-icon.service';
|
|||||||
{ provide: SourceVectorComponent, useExisting: forwardRef(() => ItemVectorSourceComponent) }
|
{ provide: SourceVectorComponent, useExisting: forwardRef(() => ItemVectorSourceComponent) }
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class ItemVectorSourceComponent extends SourceVectorComponent implements OnInit, OnChanges {
|
export class ItemVectorSourceComponent extends SourceVectorComponent implements OnInit, OnDestroy, OnChanges {
|
||||||
instance: Vector<Geometry>;
|
instance: Vector<Geometry>;
|
||||||
private _format: GeoJSON;
|
private _format: GeoJSON;
|
||||||
private _select: Select;
|
private _select: Select;
|
||||||
@@ -38,8 +41,10 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
|||||||
@Output() onFeatureSelected: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>();
|
@Output() onFeatureSelected: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>();
|
||||||
@Output() onFeatureHover: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>();
|
@Output() onFeatureHover: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>();
|
||||||
private stylesCache: IStyles = {};
|
private stylesCache: IStyles = {};
|
||||||
|
private sub: Subscription;
|
||||||
|
private displayMapFeatureSettings: { [code: string]: string[] } = defaultDisplayMapFeatureSettings();
|
||||||
|
|
||||||
constructor(@Host() private layer: LayerVectorComponent, private itemService: ItemService, private map: MapComponent, private itemTypeService: ItemTypeService, private featureIconService$: FeatureIconService) {
|
constructor(@Host() private layer: LayerVectorComponent, private itemService: ItemService, private map: MapComponent, private itemTypeService: ItemTypeService, private featureIconService$: FeatureIconService, private folderService: FolderService, @Inject(LOCALE_ID) private locale: string) {
|
||||||
super(layer);
|
super(layer);
|
||||||
this._format = new GeoJSON();
|
this._format = new GeoJSON();
|
||||||
}
|
}
|
||||||
@@ -76,6 +81,17 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.sub = this.folderService.getFolder('my_settings').subscribe(
|
||||||
|
userSettingsRoot => {
|
||||||
|
this.itemService.getChildItemList(userSettingsRoot.code, 'vnd.farmmaps.itemtype.settings.general').subscribe(
|
||||||
|
items => {
|
||||||
|
if (items && items.length > 0 && items[0].data?.displayMapFeatureSettings) {
|
||||||
|
this.displayMapFeatureSettings = items[0].data?.displayMapFeatureSettings;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
);
|
||||||
this.strategy = loadingstrategy.bbox;
|
this.strategy = loadingstrategy.bbox;
|
||||||
this.format = new GeoJSON();
|
this.format = new GeoJSON();
|
||||||
this._select = new Select({
|
this._select = new Select({
|
||||||
@@ -133,7 +149,8 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
|||||||
fill: new style.Fill({
|
fill: new style.Fill({
|
||||||
color: fillColor
|
color: fillColor
|
||||||
}),
|
}),
|
||||||
geometry: (feature: Feature<Geometry>) => this.geometry(feature)
|
geometry: (feature: Feature<Geometry>) => this.geometry(feature),
|
||||||
|
text: this.getDisplayTextForFeature(feature, this.map.instance.getView().getZoom())
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
key = 'file';
|
key = 'file';
|
||||||
@@ -153,6 +170,10 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ngOnDestroy(): void {
|
||||||
|
if (this.sub) this.sub.unsubscribe();
|
||||||
|
}
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges) {
|
ngOnChanges(changes: SimpleChanges) {
|
||||||
if (changes["features"] && this.instance) {
|
if (changes["features"] && this.instance) {
|
||||||
this.instance.clear(true);
|
this.instance.clear(true);
|
||||||
@@ -188,4 +209,51 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getDisplayTextForFeature(feature: Feature<Geometry>, zoom: number, overrule?: style.Text) {
|
||||||
|
if (!feature) return null;
|
||||||
|
|
||||||
|
const propertiesToShow: string[] = this.displayMapFeatureSettings[feature.get('itemType')];
|
||||||
|
if (!propertiesToShow) return null;
|
||||||
|
if (propertiesToShow.length <= 0) return null;
|
||||||
|
if (zoom < 14) return null;
|
||||||
|
|
||||||
|
let displayText = '';
|
||||||
|
for (let i = 0; i < propertiesToShow.length; i++) {
|
||||||
|
let value = feature.get(propertiesToShow[i]);
|
||||||
|
switch (propertiesToShow[i]) {
|
||||||
|
case "area": value = formatNumber(value, this.locale, '0.1-2') + ' ha'; break;
|
||||||
|
case "centroid": {
|
||||||
|
if (feature.getGeometry()) {
|
||||||
|
const centroid = getCenter(feature.getGeometry().getExtent());
|
||||||
|
value = Math.round(centroid[0]) + ',' + Math.round(centroid[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (value) {
|
||||||
|
displayText += value + (i < propertiesToShow.length ? '\n' : '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const styleText = new style.Text({
|
||||||
|
font: '13px Calibri,sans-serif',
|
||||||
|
fill: new style.Fill({ color: '#ffffff' }),
|
||||||
|
stroke: new style.Stroke({ color: '#000000', width: 2 }),
|
||||||
|
text: displayText
|
||||||
|
});
|
||||||
|
|
||||||
|
if (overrule) {
|
||||||
|
if (overrule.getFont()) styleText.setFont(overrule.getFont());
|
||||||
|
if (overrule.getFill()) styleText.setFill(overrule.getFill());
|
||||||
|
if (overrule.getStroke()) styleText.setStroke(overrule.getStroke());
|
||||||
|
}
|
||||||
|
|
||||||
|
return styleText;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function defaultDisplayMapFeatureSettings() {
|
||||||
|
return {
|
||||||
|
'vnd.farmmaps.itemtype.cropfield': ['name', 'cropTypeName', 'area']
|
||||||
|
};
|
||||||
|
}
|
@@ -36,7 +36,6 @@ import {Extent,createEmpty,extend } from 'ol/extent';
|
|||||||
import {transform} from 'ol/proj';
|
import {transform} from 'ol/proj';
|
||||||
import { tassign } from 'tassign';
|
import { tassign } from 'tassign';
|
||||||
import * as style from 'ol/style';
|
import * as style from 'ol/style';
|
||||||
import { ICodeLists } from '../../models/codelist.cache';
|
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -86,8 +85,6 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
|
|||||||
public overlayLayersCollapsed = true;
|
public overlayLayersCollapsed = true;
|
||||||
public extent$: Observable<Extent> = this.store.select(mapReducers.selectGetExtent);
|
public extent$: Observable<Extent> = this.store.select(mapReducers.selectGetExtent);
|
||||||
public styles$:Observable<IStyles> = this.store.select(mapReducers.selectGetStyles);
|
public styles$:Observable<IStyles> = this.store.select(mapReducers.selectGetStyles);
|
||||||
public codeLists$: Observable<ICodeLists> = this.store.select(mapReducers.selectGetCodeLists);
|
|
||||||
public codeList$ = (id: string) => this.store.select(mapReducers.selectGetCodeList(id));
|
|
||||||
public fullscreen$: Observable<boolean> = this.store.select(commonReducers.selectGetFullScreen);
|
public fullscreen$: Observable<boolean> = this.store.select(commonReducers.selectGetFullScreen);
|
||||||
private lastUrl = "";
|
private lastUrl = "";
|
||||||
private initialized = false;
|
private initialized = false;
|
||||||
@@ -368,7 +365,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
|
|||||||
else {
|
else {
|
||||||
return of(null);
|
return of(null);
|
||||||
}
|
}
|
||||||
})).subscribe((newUrlState) =>{
|
})).subscribe((newUrlState: any) => {
|
||||||
if(newUrlState) {
|
if(newUrlState) {
|
||||||
//console.debug(`State to url`);
|
//console.debug(`State to url`);
|
||||||
this.replaceUrl(newUrlState.mapState,newUrlState.queryState,newUrlState.replaceUrl);
|
this.replaceUrl(newUrlState.mapState,newUrlState.queryState,newUrlState.replaceUrl);
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
<li *ngIf="!getItemLayer(item,itemLayer.layerIndex)"><a href="#" (click)="handleAddAsLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-plus" aria-hidden="true" i18n-title title="Add as layer"></i> <span i18n>Add as overlay</span></a></li>
|
<li *ngIf="!getItemLayer(item,itemLayer.layerIndex)"><a href="#" (click)="handleAddAsLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-plus" aria-hidden="true" i18n-title title="Add as layer"></i> <span i18n>Add as overlay</span></a></li>
|
||||||
<li *ngIf="getItemLayer(item,itemLayer.layerIndex)"><a href="#" (click)="handleRemoveLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-minus" aria-hidden="true" i18n-title title="Remove overlay"></i> <span i18n>Remove overlay</span></a></li>
|
<li *ngIf="getItemLayer(item,itemLayer.layerIndex)"><a href="#" (click)="handleRemoveLayer(item,itemLayer.layerIndex)"><i class="fas fa-layer-minus" aria-hidden="true" i18n-title title="Remove overlay"></i> <span i18n>Remove overlay</span></a></li>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<li><fm-item-link class="text-primary p-0" [itemCode]="item.code" pathSuffix="data" [showText]="true"></fm-item-link></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<fm-map-zoom-to-show-alert [layer]="itemLayer?.layer"></fm-map-zoom-to-show-alert>
|
<fm-map-zoom-to-show-alert [layer]="itemLayer?.layer"></fm-map-zoom-to-show-alert>
|
||||||
|
@@ -5,7 +5,7 @@ import { ROUTER_NAVIGATED, RouterReducerState } from '@ngrx/router-store';
|
|||||||
import * as fromRouter from '@ngrx/router-store';
|
import * as fromRouter from '@ngrx/router-store';
|
||||||
import { createEffect, Actions, ofType } from '@ngrx/effects';
|
import { createEffect, Actions, ofType } from '@ngrx/effects';
|
||||||
|
|
||||||
import { EMPTY, Observable, of, forkJoin } from 'rxjs';
|
import { EMPTY, Observable, of } from 'rxjs';
|
||||||
import { withLatestFrom, switchMap, map, catchError, mergeMap } from 'rxjs/operators';
|
import { withLatestFrom, switchMap, map, catchError, mergeMap } from 'rxjs/operators';
|
||||||
|
|
||||||
import { GeoJSON, WKT } from 'ol/format';
|
import { GeoJSON, WKT } from 'ol/format';
|
||||||
@@ -99,65 +99,6 @@ export class MapEffects {
|
|||||||
color: 'rgba(0, 0, 0, 0)'
|
color: 'rgba(0, 0, 0, 0)'
|
||||||
})
|
})
|
||||||
})));
|
})));
|
||||||
// cache code lists
|
|
||||||
forkJoin([
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl017'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl018'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl020'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl022'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl104'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl127'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl232'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl251'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl256'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl259'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl263'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl264'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl290'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl291'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl293'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl405'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl411'),
|
|
||||||
this.itemService$.getItemList('vnd.farmmaps.itemtype.codelist.cl421'),
|
|
||||||
]).subscribe(([
|
|
||||||
cl017,
|
|
||||||
cl018,
|
|
||||||
cl020,
|
|
||||||
cl022,
|
|
||||||
cl104,
|
|
||||||
cl127,
|
|
||||||
cl232,
|
|
||||||
cl251,
|
|
||||||
cl256,
|
|
||||||
cl259,
|
|
||||||
cl263,
|
|
||||||
cl264,
|
|
||||||
cl290,
|
|
||||||
cl291,
|
|
||||||
cl293,
|
|
||||||
cl405,
|
|
||||||
cl411,
|
|
||||||
cl421,
|
|
||||||
]) => {
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl017', cl017));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl018', cl018));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl020', cl020));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl020', cl020));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl104', cl104));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl127', cl127));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl232', cl232));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl251', cl251));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl256', cl256));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl259', cl259));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl263', cl263));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl264', cl264));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl290', cl290));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl291', cl291));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl293', cl293));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl405', cl405));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl411', cl411));
|
|
||||||
actions.push(new mapActions.SetCodeList('vnd.farmmaps.itemtype.codelist.cl421', cl421));
|
|
||||||
});
|
|
||||||
|
|
||||||
return actions;
|
return actions;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +0,0 @@
|
|||||||
import { IItem } from '@farmmaps/common';
|
|
||||||
|
|
||||||
export interface ICodeLists {
|
|
||||||
[id: string]: IItem[];
|
|
||||||
}
|
|
@@ -1,5 +1,5 @@
|
|||||||
import { tassign } from 'tassign';
|
import { tassign } from 'tassign';
|
||||||
import { IItem } from '@farmmaps/common';
|
import { IItem,Item } from '@farmmaps/common';
|
||||||
import { IItemLayer,ItemLayer,ITemporalItemLayer,TemporalItemLayer} from '../models/item.layer';
|
import { IItemLayer,ItemLayer,ITemporalItemLayer,TemporalItemLayer} from '../models/item.layer';
|
||||||
import { IMapState} from '../models/map.state';
|
import { IMapState} from '../models/map.state';
|
||||||
import { IQueryState} from '@farmmaps/common';
|
import { IQueryState} from '@farmmaps/common';
|
||||||
@@ -17,7 +17,6 @@ import {Geometry} from 'ol/geom';
|
|||||||
import { ROUTER_NAVIGATION, RouterNavigationAction } from '@ngrx/router-store';
|
import { ROUTER_NAVIGATION, RouterNavigationAction } from '@ngrx/router-store';
|
||||||
|
|
||||||
import { MODULE_NAME } from '../module-name';
|
import { MODULE_NAME } from '../module-name';
|
||||||
import { ICodeLists } from '../models/codelist.cache';
|
|
||||||
|
|
||||||
const startDate:Date = new Date(new Date(Date.now()).getFullYear(), new Date(Date.now()).getMonth() - 3, 1);
|
const startDate:Date = new Date(new Date(Date.now()).getFullYear(), new Date(Date.now()).getMonth() - 3, 1);
|
||||||
const endDate:Date = new Date(Date.now());
|
const endDate:Date = new Date(Date.now());
|
||||||
@@ -73,8 +72,7 @@ export interface State {
|
|||||||
layerValuesEnabled:boolean,
|
layerValuesEnabled:boolean,
|
||||||
layerValues: Array<ILayervalue>
|
layerValues: Array<ILayervalue>
|
||||||
showDataLayerSlide:boolean,
|
showDataLayerSlide:boolean,
|
||||||
viewEnabled: boolean,
|
viewEnabled:boolean
|
||||||
codeLists:ICodeLists,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const initialState: State = {
|
export const initialState: State = {
|
||||||
@@ -119,8 +117,7 @@ export const initialState: State = {
|
|||||||
layerValuesEnabled:false,
|
layerValuesEnabled:false,
|
||||||
layerValues:[],
|
layerValues:[],
|
||||||
showDataLayerSlide:false,
|
showDataLayerSlide:false,
|
||||||
viewEnabled: true,
|
viewEnabled:true
|
||||||
codeLists: {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function reducer(state = initialState, action: mapActions.Actions | commonActions.Actions | RouterNavigationAction): State {
|
export function reducer(state = initialState, action: mapActions.Actions | commonActions.Actions | RouterNavigationAction): State {
|
||||||
@@ -572,12 +569,6 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
|
|||||||
}
|
}
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
case mapActions.SETCODELIST:{
|
|
||||||
const a = action as mapActions.SetCodeList;
|
|
||||||
const codeLists = tassign(state.codeLists);
|
|
||||||
codeLists[a.itemType] = a.values;
|
|
||||||
return tassign(state,{codeLists:codeLists});
|
|
||||||
}
|
|
||||||
default: {
|
default: {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
@@ -616,7 +607,7 @@ export const getLayerValues = (state:State) => state.layerValues;
|
|||||||
export const getLayerValuesX = (state:State) => state.layerValuesX;
|
export const getLayerValuesX = (state:State) => state.layerValuesX;
|
||||||
export const getLayerValuesY = (state:State) => state.layerValuesY;
|
export const getLayerValuesY = (state:State) => state.layerValuesY;
|
||||||
export const getViewEnabled = (state:State) => state.viewEnabled;
|
export const getViewEnabled = (state:State) => state.viewEnabled;
|
||||||
export const getCodeLists = (state:State) => state.codeLists;
|
|
||||||
|
|
||||||
export const selectMapState = createFeatureSelector<State>(MODULE_NAME);
|
export const selectMapState = createFeatureSelector<State>(MODULE_NAME);
|
||||||
export const selectGetMapState= createSelector(selectMapState, getMapState);
|
export const selectGetMapState= createSelector(selectMapState, getMapState);
|
||||||
@@ -651,5 +642,5 @@ export const selectGetLayerValues = createSelector(selectMapState,getLayerValues
|
|||||||
export const selectGetLayerValuesX = createSelector(selectMapState,getLayerValuesX);
|
export const selectGetLayerValuesX = createSelector(selectMapState,getLayerValuesX);
|
||||||
export const selectGetLayerValuesY = createSelector(selectMapState,getLayerValuesY);
|
export const selectGetLayerValuesY = createSelector(selectMapState,getLayerValuesY);
|
||||||
export const selectGetViewEnabled = createSelector(selectMapState,getViewEnabled);
|
export const selectGetViewEnabled = createSelector(selectMapState,getViewEnabled);
|
||||||
export const selectGetCodeLists = createSelector(selectMapState, getCodeLists);
|
|
||||||
export const selectGetCodeList = (id: string) => createSelector(selectGetCodeLists, (codeLists) => codeLists[id]);
|
|
||||||
|
@@ -42,6 +42,8 @@ import { IEventMessage } from './models/event.message';
|
|||||||
import { IItem, Item } from './models/item';
|
import { IItem, Item } from './models/item';
|
||||||
import { WeatherCurrentObservation } from './models/weatherCurrentObservation';
|
import { WeatherCurrentObservation } from './models/weatherCurrentObservation';
|
||||||
import { IItemType } from './models/item.type';
|
import { IItemType } from './models/item.type';
|
||||||
|
import { IItemLinkType} from './models/itemlink.type';
|
||||||
|
import {IUrlType} from './models/url.type';
|
||||||
import { IItemTypes } from './models/item.types';
|
import { IItemTypes } from './models/item.types';
|
||||||
import { IItemTask, ItemTask } from './models/itemTask';
|
import { IItemTask, ItemTask } from './models/itemTask';
|
||||||
import { IListItem } from './models/list.item';
|
import { IListItem } from './models/list.item';
|
||||||
@@ -65,6 +67,7 @@ import { HelpMenuComponent} from './components/help-menu/help-menu.component';
|
|||||||
import { BackButtonComponent } from './components/back-button/back-button.component';
|
import { BackButtonComponent } from './components/back-button/back-button.component';
|
||||||
import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component';
|
import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component';
|
||||||
import { AvatarComponent } from './components/avatar/avatar.component';
|
import { AvatarComponent } from './components/avatar/avatar.component';
|
||||||
|
import { ItemLinkComponent } from './components/item-link/item-link.component';
|
||||||
import { AvatarModule } from 'ngx-avatar';
|
import { AvatarModule } from 'ngx-avatar';
|
||||||
import { ImageCropperModule } from 'ngx-image-cropper';
|
import { ImageCropperModule } from 'ngx-image-cropper';
|
||||||
|
|
||||||
@@ -92,6 +95,8 @@ export {
|
|||||||
IItem,
|
IItem,
|
||||||
Item,
|
Item,
|
||||||
IItemType,
|
IItemType,
|
||||||
|
IItemLinkType,
|
||||||
|
IUrlType,
|
||||||
IItemTypes,
|
IItemTypes,
|
||||||
IItemTask,
|
IItemTask,
|
||||||
ItemTask,
|
ItemTask,
|
||||||
@@ -115,6 +120,7 @@ export {
|
|||||||
IGradientstop,
|
IGradientstop,
|
||||||
BackButtonComponent,
|
BackButtonComponent,
|
||||||
AvatarComponent,
|
AvatarComponent,
|
||||||
|
ItemLinkComponent,
|
||||||
EditImageModalComponent,
|
EditImageModalComponent,
|
||||||
GradientComponent,
|
GradientComponent,
|
||||||
GradientSelectComponent
|
GradientSelectComponent
|
||||||
@@ -160,7 +166,8 @@ export {
|
|||||||
BackButtonComponent,
|
BackButtonComponent,
|
||||||
ThumbnailComponent,
|
ThumbnailComponent,
|
||||||
EditImageModalComponent,
|
EditImageModalComponent,
|
||||||
AvatarComponent
|
AvatarComponent,
|
||||||
|
ItemLinkComponent
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
NgbModule,
|
NgbModule,
|
||||||
@@ -189,6 +196,7 @@ export {
|
|||||||
BackButtonComponent,
|
BackButtonComponent,
|
||||||
ThumbnailComponent,
|
ThumbnailComponent,
|
||||||
AvatarComponent,
|
AvatarComponent,
|
||||||
|
ItemLinkComponent,
|
||||||
EditImageModalComponent
|
EditImageModalComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
@@ -115,18 +115,11 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
|
|
||||||
async loadItemTypes() {
|
|
||||||
await this.itemTypeService$.load(this.appConfig$)
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.InstallRouteEventHandler();
|
this.InstallRouteEventHandler();
|
||||||
this.InstallEventServiceEventHandler();
|
this.InstallEventServiceEventHandler();
|
||||||
this.InstallAuthenticationEventHandler();
|
this.InstallAuthenticationEventHandler();
|
||||||
this.InstallHealthCheck();
|
this.InstallHealthCheck();
|
||||||
|
|
||||||
//load item types
|
|
||||||
this.loadItemTypes();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@HostListener('document:keyup', ['$event'])
|
@HostListener('document:keyup', ['$event'])
|
||||||
|
@@ -0,0 +1 @@
|
|||||||
|
<span class="item-link" (click)="copylink(copiedtt)" triggers="manual" ngbTooltip="Link copied" #copiedtt="ngbTooltip" ><i ngbTooltip='Copy link' class="fa-solid fa-link"></i> <span *ngIf="showText" i18n>Copy link</span></span>
|
@@ -0,0 +1,44 @@
|
|||||||
|
import { Component, Input, OnDestroy} from '@angular/core';
|
||||||
|
import { IItemLinkType} from '../../models/itemlink.type'
|
||||||
|
import { IUrlType } from '../../models/url.type';
|
||||||
|
import { ItemService } from '../../common-service.module';
|
||||||
|
import { Subscription } from 'rxjs';
|
||||||
|
import { ClipboardService } from 'ngx-clipboard'
|
||||||
|
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'fm-item-link',
|
||||||
|
templateUrl: './item-link.component.html'
|
||||||
|
})
|
||||||
|
export class ItemLinkComponent implements OnDestroy {
|
||||||
|
|
||||||
|
@Input() itemCode:string;
|
||||||
|
@Input() pathSuffix:string;
|
||||||
|
@Input() query:string;
|
||||||
|
@Input() validMinutes:number;
|
||||||
|
@Input() showText:boolean;
|
||||||
|
|
||||||
|
private sub : Subscription = null;
|
||||||
|
|
||||||
|
constructor(private itemService:ItemService,private clipboardService$: ClipboardService) { }
|
||||||
|
|
||||||
|
copylink(tooltip) {
|
||||||
|
if(this.sub) {
|
||||||
|
this.sub.unsubscribe();
|
||||||
|
}
|
||||||
|
let link: IItemLinkType = {itemcode:this.itemCode,pathsuffix:this.pathSuffix,query:this.query,validminutes:this.validMinutes}
|
||||||
|
this.sub = this.itemService.getItemLink(link).subscribe((url:IUrlType) => {
|
||||||
|
this.clipboardService$.copy(url.url);
|
||||||
|
tooltip.open();
|
||||||
|
setTimeout(() => {
|
||||||
|
tooltip.close();
|
||||||
|
}, 2000);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnDestroy(): void {
|
||||||
|
if(this.sub) {
|
||||||
|
this.sub.unsubscribe();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
6
projects/common/src/fm/models/itemlink.type.ts
Normal file
6
projects/common/src/fm/models/itemlink.type.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export interface IItemLinkType {
|
||||||
|
itemcode: string;
|
||||||
|
pathsuffix?: string;
|
||||||
|
query?: string;
|
||||||
|
validminutes?: number;
|
||||||
|
}
|
3
projects/common/src/fm/models/url.type.ts
Normal file
3
projects/common/src/fm/models/url.type.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export interface IUrlType {
|
||||||
|
url: string;
|
||||||
|
}
|
@@ -2,6 +2,8 @@ import { Injectable } from '@angular/core';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
import { IItemType } from '../models/item.type';
|
import { IItemType } from '../models/item.type';
|
||||||
|
import { IItemLinkType } from '../models/itemlink.type';
|
||||||
|
import { IUrlType } from '../models/url.type';
|
||||||
import { IItem } from '../models/item';
|
import { IItem } from '../models/item';
|
||||||
import { IJsonline } from '../models/json-line';
|
import { IJsonline } from '../models/json-line';
|
||||||
import { IItemTask } from '../models/itemTask';
|
import { IItemTask } from '../models/itemTask';
|
||||||
@@ -63,6 +65,10 @@ export class ItemService {
|
|||||||
return this.httpClient.get<IItem>(`${this.ApiEndpoint()}/api/v1/items/${code}`);
|
return this.httpClient.get<IItem>(`${this.ApiEndpoint()}/api/v1/items/${code}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getItemLink(itemLink: IItemLinkType): Observable<any> {
|
||||||
|
return this.httpClient.post<IItemLinkType>(`${this.ApiEndpoint()}/api/v1/itemlink`,itemLink);
|
||||||
|
}
|
||||||
|
|
||||||
getItemData(code: string,start?:number,size?:number): Observable<ArrayBuffer> {
|
getItemData(code: string,start?:number,size?:number): Observable<ArrayBuffer> {
|
||||||
let headers = new HttpHeaders();
|
let headers = new HttpHeaders();
|
||||||
if(start !== undefined && size !== undefined) headers=headers.set("Range",`bytes=${start}-${size-1}`);
|
if(start !== undefined && size !== undefined) headers=headers.set("Range",`bytes=${start}-${size-1}`);
|
||||||
|
@@ -11,7 +11,8 @@ import { IAuthconfigFactory } from './authconfigFactory';
|
|||||||
export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthService: OAuthService, authconfigFactory:IAuthconfigFactory,authStorage:OAuthStorage,itemtypeService:ItemTypeService): () => Promise<any> {
|
export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthService: OAuthService, authconfigFactory:IAuthconfigFactory,authStorage:OAuthStorage,itemtypeService:ItemTypeService): () => Promise<any> {
|
||||||
return (): Promise<any> => {
|
return (): Promise<any> => {
|
||||||
return new Promise<void>((resolve,reject) => {
|
return new Promise<void>((resolve,reject) => {
|
||||||
appConfig.load().then(() => {
|
appConfig.load().then(() => {
|
||||||
|
itemtypeService.load(appConfig);
|
||||||
oauthService.configure(authconfigFactory.getAuthConfig(appConfig));
|
oauthService.configure(authconfigFactory.getAuthConfig(appConfig));
|
||||||
oauthService.setStorage(authStorage);
|
oauthService.setStorage(authStorage);
|
||||||
oauthService.setupAutomaticSilentRefresh();
|
oauthService.setupAutomaticSilentRefresh();
|
||||||
|
Reference in New Issue
Block a user