Compare commits
	
		
			445 Commits
		
	
	
		
			2023.03
			...
			392008ae4b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 392008ae4b | |||
| 093c26c7f3 | |||
|  | a8e1ba6c02 | ||
| e64fbfd014 | |||
| 8cd7b85de2 | |||
|  | ddc7f97e27 | ||
| 24e3765c28 | |||
|  | 86f3ddb34b | ||
| d6c55ef82b | |||
| d977ddfb7b | |||
|  | 0e8bd5343d | ||
| ceeaa89ba3 | |||
|  | c3dbf85eb6 | ||
| ad5fe95b55 | |||
|  | 6b95fb7f77 | ||
| da7e193219 | |||
| 31f9b48bd7 | |||
|  | 1d6b30edff | ||
| 349a76395b | |||
|  | 32b3b98f76 | ||
| 010ed6e010 | |||
| a8675f5c49 | |||
|  | f76ef44dee | ||
| 2387a0e39e | |||
| 98980fc857 | |||
|  | 6f7d8fe248 | ||
| 03a1ccd597 | |||
|  | 9c866e500f | ||
| 3b692359c6 | |||
| 3d4042e8c6 | |||
|  | 3db760dd96 | ||
| b5828cd0fa | |||
| af4e6f45d1 | |||
|  | 79def90bc7 | ||
| 53c60427f1 | |||
|  | 7d7e5bcd37 | ||
| 72a172ccb2 | |||
| 2728a91ab4 | |||
|  | 28d2b5d4a3 | ||
| b70e385097 | |||
| 7392c6170c | |||
| 367348088a | |||
|  | 5efd5b78c9 | ||
| 0498d64c36 | |||
|  | e17ac435b5 | ||
|  | 3e11c7cefd | ||
|  | b3dcd1e58b | ||
|  | 681fc819a6 | ||
| 2a62d2df48 | |||
|  | 004bcea0b6 | ||
| 8efa46fa66 | |||
| cefa788295 | |||
| 2da783d6be | |||
| 749be159f1 | |||
|  | 4e24527950 | ||
| 45263a59f4 | |||
|  | 5cdef30c71 | ||
| cdba2af921 | |||
| 658c2c84cd | |||
| 3f9b4dcdaa | |||
|  | a63159367f | ||
| b9d1c8f61f | |||
|  | eb34de193c | ||
| 5612bb3d66 | |||
| 0e42efac75 | |||
| 3247880b7c | |||
| a250ecdcc1 | |||
| 93e497ec3f | |||
| 10a1f07622 | |||
| 07d6c1bc10 | |||
|  | 1bddc28767 | ||
| a999c05631 | |||
|  | f3252a378d | ||
| 4ab1e43d40 | |||
|  | 2719f2fcf4 | ||
| 55914bf7d2 | |||
| 26ca9be4e7 | |||
| 0ed342404e | |||
|  | 26ae1c7f06 | ||
| f71d0fe256 | |||
|  | 7544203202 | ||
| 41a30e0b64 | |||
| f14fc1a4fc | |||
|  | 21ebda4753 | ||
| 3a80a6f7f3 | |||
| 71a2ef44e6 | |||
|  | 1610391d56 | ||
| b778e5726c | |||
| fc4abf9a5b | |||
|  | d6587bd63b | ||
|  | ede75f63f5 | ||
| 274f33e709 | |||
| 4384b12944 | |||
|  | 10ebdf276a | ||
| 9c270bfe75 | |||
| 9031d3e171 | |||
|  | c3158c1064 | ||
| 315b64a561 | |||
|  | 030dbcec5d | ||
| 876020828e | |||
| 393b881e3b | |||
| 8594a94d62 | |||
|  | c543ac7c94 | ||
| 97d6d569a0 | |||
| 023048a5bb | |||
| 4a685d675d | |||
|  | 1125f4586e | ||
| 3bdba527ec | |||
| fb03cfce44 | |||
| 6f93cf254c | |||
| b5a3a62cee | |||
| d306d5c4c1 | |||
| e79ae2f623 | |||
| bdf4e03b49 | |||
| 7d5c10d902 | |||
| fb192c6e4d | |||
|  | 6356f149a6 | ||
| 5c5914327c | |||
|  | e306bf601f | ||
| f8459aaca4 | |||
|  | ce52cbdbed | ||
| 752e1e2c42 | |||
|  | 6b617ed4ad | ||
| 9b19950945 | |||
|  | c74163976a | ||
|  | c9f43b5b53 | ||
|  | 6a240abc0c | ||
|  | 7d8b18a27d | ||
|  | 4a328054dd | ||
|  | 3e482470b6 | ||
|  | 3bacb8a5d9 | ||
|  | 47afa20a01 | ||
|  | f0646a8f6a | ||
| 36ebc03189 | |||
| c0d40d2d5e | |||
|  | 14e504cc79 | ||
| b060fd34bb | |||
| 0694d4e467 | |||
|  | 7c5867a332 | ||
| 8f958e33f1 | |||
| aa2f305b27 | |||
|  | d02da8f334 | ||
| 253553c534 | |||
| 4641e351fd | |||
|  | 84cf6a3f6e | ||
| 92b29135b5 | |||
|  | f6aebb2f80 | ||
| daf78f32b7 | |||
| 42245612d2 | |||
| a05c1fa874 | |||
| 4bda94c360 | |||
| feaad02c33 | |||
| af9acebaff | |||
|  | 7ba35052ec | ||
| 2e40d023b1 | |||
|  | 4d5ed915ad | ||
| 2fb5967c26 | |||
|  | 820543913f | ||
| ce2f06091b | |||
|  | 5714cdce72 | ||
| 10e43e1ea5 | |||
| 8fa84c6ea8 | |||
|  | 9f872d0af0 | ||
| f6bed668f6 | |||
| f70e30204d | |||
| 7339b91328 | |||
| 88667b3986 | |||
| a996caa73b | |||
| ed6f8f4231 | |||
| 94ef2e269b | |||
| da624f0535 | |||
| 3da646dc4d | |||
| 778e40a26d | |||
|  | 94ff567567 | ||
| b20ab34859 | |||
| 1988b3f74d | |||
| b0587bc4c3 | |||
| 681d372ef3 | |||
| b1922cdb10 | |||
|  | 5774bff8df | ||
| 6254a3be98 | |||
|  | 7943cefddf | ||
| a2a287961c | |||
| 8e8f18ad7c | |||
|  | 5cbb6f32f9 | ||
| b2469f731e | |||
|  | beb439469f | ||
| ef49f62ca2 | |||
|  | 67abc67d9a | ||
|  | 1f7f410916 | ||
| 2f176be8c6 | |||
| 1118c5ca60 | |||
|  | c7831d1d87 | ||
| 31c5e0cb52 | |||
|  | c6a632894d | ||
| e652c7bb5b | |||
| 818e04d1f3 | |||
|  | ebbac409a0 | ||
| 5cc976ddd3 | |||
| 38eae3263e | |||
|  | a3eb2d9617 | ||
| 03e3c7ad95 | |||
| 8fd8675260 | |||
| 187811e4e2 | |||
| 8e304fc6eb | |||
|  | 127dc44917 | ||
|  | 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 | |||
| 914e272fc2 | |||
|  | b182b7fda6 | ||
|  | 22040b43b3 | ||
|  | 50170cf599 | ||
|  | 2deff46a7e | ||
|  | e939a787ba | ||
|  | 4ae9562ce1 | ||
|  | 288e507e6c | ||
| d9848a8ba3 | |||
| a9d42484cc | |||
| a276593c7f | |||
| ff50650c28 | |||
| d7efeb8d59 | |||
| fd71d1f38e | |||
| bc8c9f8bf9 | |||
| 0865ca1a93 | |||
| 1bc3983f55 | |||
| 945d88839f | |||
| 7c06343909 | |||
| b8f8f27794 | |||
| 2a31771ac6 | |||
| 3f17341b2e | |||
| 6165f523cc | |||
| 19dce51a28 | |||
| b29cd8e4c9 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -51,4 +51,5 @@ projects/common-map/node_modules/ | ||||
| .angular/* | ||||
| projects/common-map3d/node_modules/ | ||||
| projects/common-map/node_modules/ | ||||
| projects/ng-openlayers/node_modules/ | ||||
| projects/common/node_modules/ | ||||
|   | ||||
							
								
								
									
										54
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										54
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -1,54 +1,24 @@ | ||||
| @Library('farmmaps-shared-library') _ | ||||
|  | ||||
| pipeline { | ||||
|   agent any | ||||
|   environment { | ||||
|      PACKAGE_VERSION_PREFIX=sh(script: 'jq .version package.json |sed "s/\\"//g"', returnStdout: true).trim() | ||||
|      PACKAGE_VERSION="${PACKAGE_VERSION_PREFIX}" | ||||
|   agent any; | ||||
|   options { | ||||
|     copyArtifactPermission projectNames: env.allProjectsArtifactPermission; | ||||
|     disableConcurrentBuilds(); | ||||
|   } | ||||
|   stages { | ||||
|     stage('npm install'){ | ||||
|     stage('FarmmapsLibBuildAll') { | ||||
|       steps { | ||||
|         sh '''rm -rf node_modules/ | ||||
|         npm install --legacy-peer-deps | ||||
|         cd projects/common | ||||
|         npm install --legacy-peer-deps | ||||
|         cd ../common-map | ||||
|         npm install --legacy-peer-deps | ||||
|         cd ../common-map3d | ||||
|         npm install --legacy-peer-deps | ||||
|         ''' | ||||
|         stepFarmmapsLibBuildAll(); | ||||
|       } | ||||
|     } | ||||
|     stage('build'){ | ||||
|       steps { | ||||
|         sh '''ng build common --configuration production | ||||
|         ng build common-map --configuration production | ||||
|         ng build common-map3d --configuration production''' | ||||
|       } | ||||
|     } | ||||
|     stage('npm publish'){ | ||||
|       steps { | ||||
|         sh '''cd dist/common | ||||
|         npm version ${PACKAGE_VERSION} --allow-same-version | ||||
|         npm publish | ||||
|         cd ../common-map | ||||
|         npm version ${PACKAGE_VERSION} --allow-same-version | ||||
|         npm publish | ||||
|         cd ../common-map3d | ||||
|         npm version ${PACKAGE_VERSION} --allow-same-version | ||||
|         npm publish''' | ||||
|       } | ||||
|     } | ||||
|  | ||||
|   } | ||||
|   post { | ||||
|     success { | ||||
|       postSuccess(); | ||||
|     } | ||||
|     always { | ||||
|       emailext ( | ||||
|         body: '${DEFAULT_CONTENT}', | ||||
|         mimeType: 'text/html', | ||||
|         replyTo: '${DEFAULT_REPLYTO}', | ||||
|         subject: '${DEFAULT_SUBJECT}', | ||||
|         to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']]) | ||||
|       ) | ||||
|       postAlways(); | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @@ -1,54 +1,24 @@ | ||||
| @Library('farmmaps-shared-library') _ | ||||
|  | ||||
| pipeline { | ||||
|   agent any | ||||
|   environment { | ||||
|      PACKAGE_VERSION_PREFIX=sh(script: 'jq .version package.json |sed "s/\\"//g"', returnStdout: true).trim() | ||||
|      PACKAGE_VERSION="${PACKAGE_VERSION_PREFIX + '-prerelease.' + env.BUILD_NUMBER}" | ||||
|   agent any; | ||||
|   options { | ||||
|     copyArtifactPermission projectNames: env.allProjectsArtifactPermission; | ||||
|     disableConcurrentBuilds(); | ||||
|   } | ||||
|   stages { | ||||
|     stage('npm install'){ | ||||
|     stage('FarmmapsLibBuildAll') { | ||||
|       steps { | ||||
|         sh '''rm -rf node_modules/ | ||||
|         npm install --legacy-peer-deps | ||||
|         cd projects/common | ||||
|         npm install --legacy-peer-deps | ||||
|         cd ../common-map | ||||
|         npm install --legacy-peer-deps | ||||
|         cd ../common-map3d | ||||
|         npm install --legacy-peer-deps | ||||
|         ''' | ||||
|         stepFarmmapsLibBuildAll(); | ||||
|       } | ||||
|     } | ||||
|     stage('build'){ | ||||
|       steps { | ||||
|         sh '''ng build common --configuration production | ||||
|         ng build common-map --configuration production | ||||
|         ng build common-map3d --configuration production''' | ||||
|       } | ||||
|     } | ||||
|     stage('npm publish'){ | ||||
|       steps { | ||||
|         sh '''cd dist/common | ||||
|         npm version ${PACKAGE_VERSION} | ||||
|         npm publish | ||||
|         cd ../common-map | ||||
|         npm version ${PACKAGE_VERSION} | ||||
|         npm publish | ||||
|         cd ../common-map3d | ||||
|         npm version ${PACKAGE_VERSION} | ||||
|         npm publish''' | ||||
|       } | ||||
|     } | ||||
|  | ||||
|   } | ||||
|   post { | ||||
|     success { | ||||
|       postSuccess(); | ||||
|     } | ||||
|     always { | ||||
|       emailext ( | ||||
|         body: '${DEFAULT_CONTENT}', | ||||
|         mimeType: 'text/html', | ||||
|         replyTo: '${DEFAULT_REPLYTO}', | ||||
|         subject: '${DEFAULT_SUBJECT}', | ||||
|         to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']]) | ||||
|       ) | ||||
|       postAlways(); | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @@ -2,7 +2,6 @@ | ||||
|  | ||||
| This is a sample FarmMaps client in Angular 7.x. | ||||
|  | ||||
|  | ||||
| ## Quick start | ||||
|  | ||||
| Use one of the two options below to get started. | ||||
| @@ -51,7 +50,7 @@ npm install -g @angular/cli | ||||
| npm install | ||||
| ng serve | ||||
| ``` | ||||
| *Go* | ||||
| *Go*` | ||||
|  | ||||
| Point your browser to http://localhost:4200 | ||||
|  | ||||
|   | ||||
							
								
								
									
										43
									
								
								angular.json
									
									
									
									
									
								
							
							
						
						
									
										43
									
								
								angular.json
									
									
									
									
									
								
							| @@ -209,13 +209,13 @@ | ||||
|           "options": { | ||||
|             "tsConfig": "projects/common-map/tsconfig.lib.json", | ||||
|             "project": "projects/common-map/ng-package.json" | ||||
|           } | ||||
|         ,          "configurations": { | ||||
|           }, | ||||
|           "configurations": { | ||||
|               "production": { | ||||
|                 "tsConfig": "projects/common-map/tsconfig.lib.prod.json" | ||||
|               } | ||||
|           } | ||||
| }, | ||||
|         }, | ||||
|         "test": { | ||||
|           "builder": "@angular-devkit/build-angular:karma", | ||||
|           "options": { | ||||
| @@ -253,6 +253,43 @@ | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "ng-openlayers": { | ||||
|       "projectType": "library", | ||||
|       "root": "projects/ng-openlayers", | ||||
|       "sourceRoot": "projects/ng-openlayers/src", | ||||
|       "prefix": "ng-openlayers", | ||||
|       "architect": { | ||||
|         "build": { | ||||
|           "builder": "@angular-devkit/build-angular:ng-packagr", | ||||
|           "options": { | ||||
|             "tsConfig": "projects/ng-openlayers/tsconfig.lib.json", | ||||
|             "project": "projects/ng-openlayers/ng-package.json" | ||||
|           }, | ||||
|           "configurations": { | ||||
|             "production": { | ||||
|               "tsConfig": "projects/ng-openlayers/tsconfig.lib.prod.json" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "test": { | ||||
|           "builder": "@angular-devkit/build-angular:karma", | ||||
|           "options": { | ||||
|             "main": "projects/ng-openlayers/src/test.ts", | ||||
|             "tsConfig": "projects/ng-openlayers/tsconfig.spec.json", | ||||
|             "karmaConfig": "projects/ng-openlayers/karma.conf.js" | ||||
|           } | ||||
|         }, | ||||
|         "lint": { | ||||
|           "builder": "@angular-eslint/builder:lint", | ||||
|           "options": { | ||||
|             "lintFilePatterns": [ | ||||
|               "projects/ng-openlayers/**/*.ts", | ||||
|               "projects/ng-openlayers/**/*.html" | ||||
|             ] | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   "cli": { | ||||
|   | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 143 KiB | 
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -51,7 +51,17 @@ | ||||
|   content: "i"; | ||||
| } | ||||
|  | ||||
| hallo | ||||
| .fm-carbon:before { | ||||
|   content: "j"; | ||||
| } | ||||
|  | ||||
| .fm-bo-akkerbouw:before { | ||||
|   content: "k"; | ||||
| } | ||||
|  | ||||
| .fm-grass:before { | ||||
|   content: "l"; | ||||
| } | ||||
|  | ||||
| @font-face { | ||||
|   font-family: "FarmMaps"; | ||||
|   | ||||
							
								
								
									
										27271
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										27271
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										82
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										82
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "farmmaps-lib-app", | ||||
|   "version": "3.0.2", | ||||
|   "version": "4.12.0", | ||||
|   "scripts":   { | ||||
|     "ng": "ng", | ||||
|     "start": "ng serve", | ||||
| @@ -11,66 +11,70 @@ | ||||
|   }, | ||||
|   "private": true, | ||||
|   "dependencies":   { | ||||
|     "@angular/animations": "^14.1.3", | ||||
|     "@angular/common": "^14.1.3", | ||||
|     "@angular/compiler": "^14.1.3", | ||||
|     "@angular/core": "^14.1.3", | ||||
|     "@angular-eslint/eslint-plugin": "^15.2.1", | ||||
|     "@angular/forms": "^14.1.3", | ||||
|     "@angular/platform-browser": "^14.1.3", | ||||
|     "@angular/platform-browser-dynamic": "^14.1.3", | ||||
|     "@angular/router": "^14.1.3", | ||||
|     "@angular-eslint/eslint-plugin": "^18.2.0", | ||||
|     "@angular/animations": "^18.2.3", | ||||
|     "@angular/common": "^18.2.3", | ||||
|     "@angular/compiler": "^18.2.3", | ||||
|     "@angular/core": "^18.2.3", | ||||
|     "@angular/forms": "^18.2.3", | ||||
|     "@angular/platform-browser": "^18.2.3", | ||||
|     "@angular/platform-browser-dynamic": "^18.2.3", | ||||
|     "@angular/router": "^18.2.3", | ||||
|     "@farmmaps/common": "file:dist/common", | ||||
|     "@farmmaps/common-map": "file:dist/common-map", | ||||
|     "@farmmaps/common-map3d": "file:dist/common-map3d", | ||||
|     "@farmmaps/ng-openlayers": "file:dist/ng-openlayers", | ||||
|     "@microsoft/signalr": "^3.1.16", | ||||
|     "@ng-bootstrap/ng-bootstrap": "^13.0.0", | ||||
|     "@ngrx/effects": "^14", | ||||
|     "@ngrx/router-store": "^14", | ||||
|     "@ngrx/store": "^14", | ||||
|     "@popperjs/core": "^2.11.6", | ||||
|     "angular-oauth2-oidc": "^13", | ||||
|     "@ng-bootstrap/ng-bootstrap": "^17.0.1", | ||||
|     "@ngrx/effects": "^18.0.2", | ||||
|     "@ngrx/router-store": "^18.0.2", | ||||
|     "@ngrx/store": "^18.0.2", | ||||
|     "@popperjs/core": "^2.11.8", | ||||
|     "angular-oauth2-oidc": "^17.0.2", | ||||
|     "assert": "^2.0.0", | ||||
|     "bootstrap": "^5.2.0", | ||||
|     "bootstrap": "^5.3.3", | ||||
|     "browserify-zlib": "^0.2.0", | ||||
|     "buffer": "^6.0.3", | ||||
|     "cesium": "^1.97.0", | ||||
|     "core-js": "^2.6.12", | ||||
|     "https-browserify": "^1.0.0", | ||||
|     "moment": "^2.29.4", | ||||
|     "ngrx-store-localstorage": "^14", | ||||
|     "ngx-avatar": "^4.1.0", | ||||
|     "ngx-clipboard": "^14.0.1", | ||||
|     "ngx-image-cropper": "^3.3.5", | ||||
|     "ngx-openlayers": "1.0.0-next.19", | ||||
|     "ngx-uploadx": "^5.2.0", | ||||
|     "ol": "6.14.1", | ||||
|     "ngrx-store-localstorage": "^18.0.0", | ||||
|     "ngx-avatars": "^1.8.0", | ||||
|     "ngx-clipboard": "^16.0.0", | ||||
|     "ngx-image-cropper": "^7.0.0", | ||||
|     "ngx-uploadx": "^6.2.0", | ||||
|     "ol": "^8.2.0", | ||||
|     "olcs": "^2.13.1", | ||||
|     "resumablejs": "^1.1.0", | ||||
|     "rxjs": "^6.6.7", | ||||
|     "rxjs": "^7.8.1", | ||||
|     "stream": "^0.0.2", | ||||
|     "stream-http": "^3.2.0", | ||||
|     "tassign": "^1.0.0", | ||||
|     "tslib": "^2.4.0", | ||||
|     "url": "^0.11.0", | ||||
|     "util": "^0.12.4", | ||||
|     "zone.js": "~0.11.4" | ||||
|     "zone.js": "~0.14.10" | ||||
|   }, | ||||
|   "optionalDependencies":   { | ||||
|     "@lmdb/lmdb-linux-x64": "^3.1.0", | ||||
|     "@rollup/rollup-linux-x64-gnu": "^4.21.2" | ||||
|   }, | ||||
|   "devDependencies":   { | ||||
|     "@angular-builders/custom-webpack": "^14", | ||||
|     "@angular-devkit/build-angular": "^14.1.3", | ||||
|     "@angular/cli": "^14.1.3", | ||||
|     "@angular/compiler-cli": "^14.1.3", | ||||
|     "@angular/language-service": "^14.1.3", | ||||
|     "@angular/localize": "^14.1.3", | ||||
|     "@angular-builders/custom-webpack": "^18.0.0", | ||||
|     "@angular-devkit/build-angular": "^18.2.3", | ||||
|     "@angular/cli": "^18.2.3", | ||||
|     "@angular/compiler-cli": "^18.2.3", | ||||
|     "@angular/language-service": "^18.2.3", | ||||
|     "@angular/localize": "^18.2.3", | ||||
|     "@types/arcgis-rest-api": "^10.4.5", | ||||
|     "@types/jasmine": "~2.8.8", | ||||
|     "@types/jasminewd2": "^2.0.9", | ||||
|     "@types/node": "^12.20.15", | ||||
|     "@typescript-eslint/eslint-plugin": "^5.54.0", | ||||
|     "@typescript-eslint/eslint-plugin-tslint": "^5.54.0", | ||||
|     "@typescript-eslint/parser": "^5.54.0", | ||||
|     "codelyzer": "^0.0.28", | ||||
|     "@types/node": "^22.5.4", | ||||
|     "@typescript-eslint/eslint-plugin": "^6.18.0", | ||||
|     "@typescript-eslint/eslint-plugin-tslint": "^6.18.0", | ||||
|     "@typescript-eslint/parser": "^6.18.0", | ||||
|     "codelyzer": "^6.0.2", | ||||
|     "eslint": "^8.35.0", | ||||
|     "eslint-config-prettier": "^8.6.0", | ||||
|     "eslint-plugin-import": "^2.27.5", | ||||
| @@ -81,9 +85,9 @@ | ||||
|     "karma-coverage-istanbul-reporter": "^3.0.3", | ||||
|     "karma-jasmine": "^5.1.0", | ||||
|     "karma-jasmine-html-reporter": "^2.0.0", | ||||
|     "ng-packagr": "^14.1.0", | ||||
|     "ng-packagr": "^18.2.1", | ||||
|     "protractor": "~7.0.0", | ||||
|     "ts-node": "^8.8.1", | ||||
|     "typescript": "~4.6.4" | ||||
|     "typescript": "~5.4.4" | ||||
|   } | ||||
| } | ||||
							
								
								
									
										209
									
								
								projects/common-map/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										209
									
								
								projects/common-map/package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -11,20 +11,207 @@ | ||||
|         "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" | ||||
|         "@angular/core": "^18.2.3", | ||||
|         "@ngrx/effects": "^18.0.2", | ||||
|         "@ngrx/router-store": "^18.0.2", | ||||
|         "@ngrx/store": "^18.0.2", | ||||
|         "ngrx-store-localstorage": "^18", | ||||
|         "tassign": "^1.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "../../dist/libs/ng-openlayers": { | ||||
|       "version": "18.0.0", | ||||
|       "extraneous": true, | ||||
|       "license": "MPL-2.0", | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/common": "^18.2.3", | ||||
|         "@angular/core": "^18.2.3", | ||||
|         "ol": "^8.2.0" | ||||
|       } | ||||
|     }, | ||||
|     "dist/ng-openlayers": { | ||||
|       "extraneous": true | ||||
|     }, | ||||
|     "node_modules/@angular/common": { | ||||
|       "version": "18.2.3", | ||||
|       "resolved": "https://registry.npmjs.org/@angular/common/-/common-18.2.3.tgz", | ||||
|       "integrity": "sha512-NFL4yXXImSCH7i1xnHykUjHa9vl9827fGiwSV2mnf7LjSUsyDzFD8/54dNuYN9OY8AUD+PnK0YdNro6cczVyIA==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^18.19.1 || ^20.11.1 || >=22.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/core": "18.2.3", | ||||
|         "rxjs": "^6.5.3 || ^7.4.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@angular/core": { | ||||
|       "version": "18.2.3", | ||||
|       "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.3.tgz", | ||||
|       "integrity": "sha512-VGhMJxj7d0rYpqVfQrcGRB7EE/BCziotft/I/YPl6bOMPSAvMukG7DXQuJdYpNrr62ks78mlzHlZX/cdmB9Prw==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^18.19.1 || ^20.11.1 || >=22.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "rxjs": "^6.5.3 || ^7.4.0", | ||||
|         "zone.js": "~0.14.10" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@angular/platform-browser": { | ||||
|       "version": "18.2.3", | ||||
|       "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-18.2.3.tgz", | ||||
|       "integrity": "sha512-M2ob4zN7tAcL2mx7U6KnZNqNFPFl9MlPBE0FrjQjIzAjU0wSYPIJXmaPu9aMUp9niyo+He5iX98I+URi2Yc99g==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^18.19.1 || ^20.11.1 || >=22.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/animations": "18.2.3", | ||||
|         "@angular/common": "18.2.3", | ||||
|         "@angular/core": "18.2.3" | ||||
|       }, | ||||
|       "peerDependenciesMeta": { | ||||
|         "@angular/animations": { | ||||
|           "optional": true | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@angular/router": { | ||||
|       "version": "18.2.3", | ||||
|       "resolved": "https://registry.npmjs.org/@angular/router/-/router-18.2.3.tgz", | ||||
|       "integrity": "sha512-fvD9eSDIiIbeYoUokoWkXzu7/ZaxlzKPUHFqX1JuKuH5ciQDeT/d7lp4mj31Bxammhohzi3+z12THJYsCkj/iQ==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^18.19.1 || ^20.11.1 || >=22.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/common": "18.2.3", | ||||
|         "@angular/core": "18.2.3", | ||||
|         "@angular/platform-browser": "18.2.3", | ||||
|         "rxjs": "^6.5.3 || ^7.4.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@ngrx/effects": { | ||||
|       "version": "18.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/@ngrx/effects/-/effects-18.0.2.tgz", | ||||
|       "integrity": "sha512-YojXcOD9Lsq4kl2HCjENccyUM/mOlgBdtddsg9j/ojzSUgu3ZuBVKLN3atrL2TJYkbMX1MN0RzafSkL3TPGFIA==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@ngrx/operators": "18.0.1", | ||||
|         "tslib": "^2.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/core": "^18.0.0", | ||||
|         "@ngrx/store": "18.0.2", | ||||
|         "rxjs": "^6.5.3 || ^7.5.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@ngrx/operators": { | ||||
|       "version": "18.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/@ngrx/operators/-/operators-18.0.1.tgz", | ||||
|       "integrity": "sha512-M+QMrHNKgcuiLaRGZxJ4aQi5/OCRfKC4+T/63dsHyLFZ53/FFpF6a/ytSO1Q+tzOplZ5o99S+i8FVaZqNQ3LmQ==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "rxjs": "^6.5.3 || ^7.4.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@ngrx/router-store": { | ||||
|       "version": "18.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/@ngrx/router-store/-/router-store-18.0.2.tgz", | ||||
|       "integrity": "sha512-jUrQ/uJJ53x8O1XbN2YxH2GpRREZlwS5gRxlCoc4fWL4Us/uS1/K6+QfRmKBPtpTKBIixqsOb+dIUV5iwBrivA==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/common": "^18.0.0", | ||||
|         "@angular/core": "^18.0.0", | ||||
|         "@angular/router": "^18.0.0", | ||||
|         "@ngrx/store": "18.0.2", | ||||
|         "rxjs": "^6.5.3 || ^7.5.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@ngrx/store": { | ||||
|       "version": "18.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/@ngrx/store/-/store-18.0.2.tgz", | ||||
|       "integrity": "sha512-ajwv0+njsO4vzArp9esnFvs1wyUb1U1W8E8LSCKrcW2hWWo9o1Pezj+JRsdQwatxHfrrPFuTDyajsl6GQM/JSA==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/core": "^18.0.0", | ||||
|         "rxjs": "^6.5.3 || ^7.5.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/deepmerge": { | ||||
|       "version": "4.3.1", | ||||
|       "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", | ||||
|       "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", | ||||
|       "peer": true, | ||||
|       "engines": { | ||||
|         "node": ">=0.10.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/ngrx-store-localstorage": { | ||||
|       "version": "18.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/ngrx-store-localstorage/-/ngrx-store-localstorage-18.0.0.tgz", | ||||
|       "integrity": "sha512-WoDePvMWiWF9LQHe+dTqbpm8lxoKCPoIvA0/1enIPTmdLQsOpdDKhMSD5YgwuqDusNfEik3QslProTFGyXZwtw==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "deepmerge": "^4.2.2", | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/common": "^18.0.1", | ||||
|         "@angular/core": "^18.0.1", | ||||
|         "@ngrx/store": "^18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/rxjs": { | ||||
|       "version": "7.8.1", | ||||
|       "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", | ||||
|       "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.1.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/tassign": { | ||||
|       "version": "1.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/tassign/-/tassign-1.0.0.tgz", | ||||
|       "integrity": "sha512-k0Ti9f+A1R0BRdArEbiUHldd+A40kZ5qsiNSNk4czx61wkAoSZYjqkaQs0jC63AfgPdCXVPstDq2ZW5ZLRTCgw==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/tslib": { | ||||
|       "version": "2.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.1.tgz", | ||||
|       "integrity": "sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ==" | ||||
|       "version": "2.7.0", | ||||
|       "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", | ||||
|       "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==" | ||||
|     }, | ||||
|     "node_modules/zone.js": { | ||||
|       "version": "0.14.10", | ||||
|       "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz", | ||||
|       "integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==", | ||||
|       "peer": true | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -8,13 +8,11 @@ | ||||
|     "tslib": "^2.0.0" | ||||
|   }, | ||||
|   "peerDependencies": { | ||||
|     "@angular/core": ">=14.0.0", | ||||
|     "ngrx-store-localstorage": ">=14.0.0", | ||||
|     "@ngrx/effects": ">=14.0.0", | ||||
|     "@ngrx/router-store":">=14.0.0", | ||||
|     "@ngrx/store":">=14.0.0", | ||||
|     "tassign": ">=1.0.0", | ||||
|     "ngx-openlayers": ">=1.0.0-next.19", | ||||
|     "ol": ">=6.8.1" | ||||
|     "@angular/core": "^18.2.3", | ||||
|     "ngrx-store-localstorage": "^18.0.0", | ||||
|     "@ngrx/effects": "^18.0.2", | ||||
|     "@ngrx/router-store": "^18.0.2", | ||||
|     "@ngrx/store": "^18.0.2", | ||||
|     "tassign": "^1.0.0" | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -18,6 +18,7 @@ export const SETPARENT = '[Map] SetParent'; | ||||
| export const SETPERIOD = '[Map] SetPeriod'; | ||||
| export const STARTSEARCH = '[Map] StartSearch'; | ||||
| export const STARTSEARCHSUCCESS = '[Map] StartSearchSuccess'; | ||||
| export const CLICKFEATURE = '[Map] ClickFeature'; | ||||
| export const SELECTFEATURE = '[Map] SelectFeature'; | ||||
| export const SELECTITEM = '[Map] SelectItem'; | ||||
| export const SELECTITEMSUCCESS = '[Map] SelectItemSuccess'; | ||||
| @@ -56,7 +57,8 @@ export const GETLAYERVALUE = '[Map] GetLayerValue' | ||||
| export const GETLAYERVALUESUCCESS = '[Map] GetLayerValueSuccess' | ||||
| export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide' | ||||
| export const SETVIEWSTATE = '[Map] SetViewState' | ||||
|  | ||||
| export const CLEARFEATURES = '[Map] ClearFeatures'; | ||||
| export const SETPANELEXTRAWIDE = '[Map] SetPanelExtraWide'; | ||||
|  | ||||
| export class Clear implements Action { | ||||
|   readonly type = CLEAR; | ||||
| @@ -111,6 +113,12 @@ export class StartSearchSuccess implements Action { | ||||
|   constructor(public features: Array<Feature<Geometry>>, public query:IQueryState) { } | ||||
| } | ||||
|  | ||||
| export class ClickFeature implements Action { | ||||
|   readonly type = CLICKFEATURE; | ||||
|  | ||||
|   constructor(public feature:Feature<Geometry>) { } | ||||
| } | ||||
|  | ||||
| export class SelectFeature implements Action { | ||||
|   readonly type = SELECTFEATURE; | ||||
|  | ||||
| @@ -329,12 +337,23 @@ export class SetViewState implements Action { | ||||
|   constructor(public enabled:boolean) {} | ||||
| } | ||||
|  | ||||
| export class ClearFeatures implements Action { | ||||
|   readonly type = CLEARFEATURES; | ||||
|   constructor() {} | ||||
| } | ||||
|  | ||||
| export class SetPanelExtraWide implements Action { | ||||
|   readonly type = SETPANELEXTRAWIDE; | ||||
|   constructor(public panelExtraWide:boolean) {} | ||||
| } | ||||
|  | ||||
| export type Actions = SetMapState | ||||
|   | Init | ||||
|   | Clear | ||||
|   | SetParent | ||||
|   | StartSearch | ||||
|   | StartSearchSuccess | ||||
|   | ClickFeature | ||||
|   | SelectFeature | ||||
|   | SelectItem | ||||
|   | SelectItemSuccess | ||||
| @@ -374,5 +393,7 @@ export type Actions = SetMapState | ||||
|   | GetLayerValue | ||||
|   | SetPeriod | ||||
|   | ToggleShowDataLayerSlide | ||||
|   | SetViewState; | ||||
|   | SetViewState | ||||
|   | ClearFeatures | ||||
|   | SetPanelExtraWide; | ||||
|  | ||||
|   | ||||
| @@ -1,78 +1,78 @@ | ||||
| import { NgModule ,ModuleWithProviders} from '@angular/core'; | ||||
| import { CommonModule } from '@angular/common'; | ||||
| import { NgModule } from '@angular/core'; | ||||
| import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | ||||
|  | ||||
| //external modules | ||||
| import { AngularOpenlayersModule } from 'ngx-openlayers'; | ||||
| import { StoreModule, ActionReducer, MetaReducer } from '@ngrx/store'; | ||||
| import { EffectsModule } from '@ngrx/effects'; | ||||
| import { NgbModule } from "@ng-bootstrap/ng-bootstrap"; | ||||
| import { EffectsModule } from '@ngrx/effects'; | ||||
| import { ActionReducer, MetaReducer, StoreModule } from '@ngrx/store'; | ||||
| import { AngularOpenlayersModule } from '@farmmaps/ng-openlayers'; | ||||
|  | ||||
| //common modules | ||||
| import { AppCommonModule } from '@farmmaps/common'; | ||||
|  | ||||
| import { MODULE_NAME } from './module-name'; | ||||
| import * as mapReducers from './reducers/map.reducer'; | ||||
| import * as mapActions from './actions/map.actions'; | ||||
| import * as mapEffects from './effects/map.effects'; | ||||
| import { MODULE_NAME } from './module-name'; | ||||
| import * as mapReducers from './reducers/map.reducer'; | ||||
|  | ||||
| import { IMapState} from './models/map.state'; | ||||
| import { ISelectedFeatures } from './models/selected.features'; | ||||
| import { IItemLayer,ItemLayer,ITemporalItemLayer,TemporalItemLayer } from './models/item.layer'; | ||||
| import { IClickedFeature } from './models/clicked.feature'; | ||||
| import { IItemLayer, ItemLayer, ITemporalItemLayer, TemporalItemLayer } from './models/item.layer'; | ||||
| import { IMapState } from './models/map.state'; | ||||
| import { IPeriodState } from './models/period.state'; | ||||
| import { ISelectedFeatures } from './models/selected.features'; | ||||
|  | ||||
| // components | ||||
| import { GpsLocation} from './components/aol/gps-location/gps-location.component'; | ||||
| import {FeatureListFeatureCropfieldComponent } from './components/feature-list-feature-cropfield/feature-list-feature-cropfield.component'; | ||||
| import { FeatureListFeatureCroppingschemeComponent} from './components/feature-list-feature-croppingscheme/feature-list-feature-croppingscheme.component'; | ||||
| import { ItemWidgetListComponent} from './components/item-widget-list/item-widget-list.component'; | ||||
| import { AbstractItemListItemComponent, ItemListItemComponent, AbstractItemWidgetComponent } from './components/item-list-item/item-list-item.component'; | ||||
| import { ItemListItemContainerComponent } from './components/item-list-item-container/item-list-item-container.component'; | ||||
| import { AbstractItemListComponent,ItemListComponent} from './components/item-list/item-list.component'; | ||||
| import { AbstractSelectedItemComponent, SelectedItemComponent } from './components/selected-item/selected-item.component'; | ||||
| import { SelectedItemCropfieldComponent } from './components/selected-item-cropfield/selected-item-cropfield.component'; | ||||
| import { SelectedItemGeotiffComponent } from './components/selected-item-geotiff/selected-item-geotiff.component'; | ||||
| import { SelectedItemTemporalComponent} from './components/selected-item-temporal/selected-item-temporal.component'; | ||||
| import {SelectedItemShapeComponent } from './components/selected-item-shape/selected-item-shape.component'; | ||||
| import { SelectedItemContainerComponent } from './components/selected-item-container/selected-item-container.component'; | ||||
| import { AbstractFeatureListFeatureComponent, FeatureListFeatureComponent } from './components/feature-list-feature/feature-list-feature.component'; | ||||
| import {FeatureListFeatureContainerComponent } from './components/feature-list-feature-container/feature-list-feature-container.component'; | ||||
| import { FeatureListCroppingschemeComponent } from './components/feature-list-croppingscheme/feature-list-croppingscheme.component'; | ||||
| import {FeatureListCropfieldComponent  } from './components/feature-list-cropfield/feature-list-cropfield.component'; | ||||
| import {FeatureListContainerComponent } from './components/feature-list-container/feature-list-container.component'; | ||||
| import { WidgetHostDirective} from './components/widget-host/widget-host.directive'; | ||||
| import { FeatureListComponent,AbstractFeatureListComponent} from './components/feature-list/feature-list.component'; | ||||
| import { MapRoutingModule } from './common-map-routing.module'; | ||||
| import { FileDropTargetComponent } from './components/aol/file-drop-target/file-drop-target.component'; | ||||
| import { ItemVectorSourceComponent } from './components/aol/item-vector-source/item-vector-source.component'; | ||||
| import { GpsLocation } from './components/aol/gps-location/gps-location.component'; | ||||
| import { ItemLayersComponent } from './components/aol/item-layers/item-layers.component'; | ||||
| import { ZoomToExtentComponent } from './components/aol/zoom-to-extent/zoom-to-extent.component'; | ||||
| import { RotationResetComponent } from './components/aol/rotation-reset/rotation-reset.component'; | ||||
| import { ItemVectorSourceComponent } from './components/aol/item-vector-source/item-vector-source.component'; | ||||
| import { LayerListComponent } from './components/aol/layer-list/layer-list.component'; | ||||
| import { LayerValuesComponent } from './components/aol/layer-values/layer-values.component'; | ||||
| import { LayerVectorImageComponent } from './components/aol/layer-vector-image/layer-vector-image.component'; | ||||
| import { PanToLocation } from './components/aol/pan-to-location/pan-to-location.component'; | ||||
| import { RotationResetComponent } from './components/aol/rotation-reset/rotation-reset.component'; | ||||
| import { ZoomToExtentComponent } from './components/aol/zoom-to-extent/zoom-to-extent.component'; | ||||
| import { FeatureListContainerComponent } from './components/feature-list-container/feature-list-container.component'; | ||||
| import { FeatureListCropfieldComponent } from './components/feature-list-cropfield/feature-list-cropfield.component'; | ||||
| import { FeatureListCroppingschemeComponent } from './components/feature-list-croppingscheme/feature-list-croppingscheme.component'; | ||||
| import { FeatureListFeatureContainerComponent } from './components/feature-list-feature-container/feature-list-feature-container.component'; | ||||
| import { FeatureListFeatureCropfieldComponent } from './components/feature-list-feature-cropfield/feature-list-feature-cropfield.component'; | ||||
| import { FeatureListFeatureCroppingschemeComponent } from './components/feature-list-feature-croppingscheme/feature-list-feature-croppingscheme.component'; | ||||
| import { AbstractFeatureListFeatureComponent, FeatureListFeatureComponent } from './components/feature-list-feature/feature-list-feature.component'; | ||||
| import { AbstractFeatureListComponent, FeatureListComponent } from './components/feature-list/feature-list.component'; | ||||
| import { GeometryThumbnailComponent } from './components/feature-thumbnail/feature-thumbnail.component'; | ||||
| import { ForChild } from './components/for-item/for-child.decorator'; | ||||
| import { ForItemType } from './components/for-item/for-itemtype.decorator'; | ||||
| import { ForPackage } from './components/for-item/for-package.decorator'; | ||||
| import { ForSourceTask } from './components/for-item/for-sourcetask.decorator'; | ||||
| import { ifZoomToShowDirective } from './components/if-zoom-to-show/if-zoom-to-show.directive'; | ||||
| import { ItemListItemContainerComponent } from './components/item-list-item-container/item-list-item-container.component'; | ||||
| import { AbstractItemListItemComponent, AbstractItemWidgetComponent, ItemListItemComponent } from './components/item-list-item/item-list-item.component'; | ||||
| import { AbstractItemListComponent, ItemListComponent } from './components/item-list/item-list.component'; | ||||
| import { ItemWidgetListComponent } from './components/item-widget-list/item-widget-list.component'; | ||||
| import { LayerSwitcher } from './components/layer-switcher/layer-switcher.component'; | ||||
| import { HistogramDetailsComponent } from './components/legend/histogram-details/histogram-details.component'; | ||||
| import { LegendComponent } from './components/legend/legend.component'; | ||||
| import { StatisticsDetailsComponent } from './components/legend/statistics-details/statistics-details.component'; | ||||
| import { MapSearchComponent } from './components/map-search/map-search.component'; | ||||
| import { MapComponent } from './components/map/map.component'; | ||||
| import { MetaDataModalComponent } from './components/meta-data-modal/meta-data-modal.component'; | ||||
| import { SelectPeriodModalComponent } from './components/select-period-modal/select-period-modal.component'; | ||||
| import { MapComponent } from './components/map/map.component'; | ||||
| import { MapSearchComponent } from './components/map-search/map-search.component'; | ||||
| import { MapRoutingModule } from './common-map-routing.module'; | ||||
| import { LegendComponent } from './components/legend/legend.component'; | ||||
| import { LayerVectorImageComponent } from './components/aol/layer-vector-image/layer-vector-image.component'; | ||||
| import {FeatureIconService} from './services/feature-icon.service'; | ||||
| import { GeolocationService } from './services/geolocation.service'; | ||||
| import {DeviceOrientationService} from './services/device-orientation.service'; | ||||
| import { TemporalService} from './services/temporal.service'; | ||||
| import { SelectedItemContainerComponent } from './components/selected-item-container/selected-item-container.component'; | ||||
| import { SelectedItemCropfieldComponent } from './components/selected-item-cropfield/selected-item-cropfield.component'; | ||||
| import { SelectedItemGeotiffComponent } from './components/selected-item-geotiff/selected-item-geotiff.component'; | ||||
| import { SelectedItemShapeComponent } from './components/selected-item-shape/selected-item-shape.component'; | ||||
| import { SelectedItemTemporalComponent } from './components/selected-item-temporal/selected-item-temporal.component'; | ||||
| import { AbstractSelectedItemComponent, SelectedItemComponent } from './components/selected-item/selected-item.component'; | ||||
| import { WidgetHostDirective } from './components/widget-host/widget-host.directive'; | ||||
| import { WidgetStatusComponent } from './components/widget-status/widget-status.component'; | ||||
| import { ForChild} from './components/for-item/for-child.decorator'; | ||||
| import {ForItemType } from './components/for-item/for-itemtype.decorator'; | ||||
| import { ForSourceTask} from './components/for-item/for-sourcetask.decorator'; | ||||
| import { ForPackage } from './components/for-item/for-package.decorator'; | ||||
| import { PanToLocation} from './components/aol/pan-to-location/pan-to-location.component'; | ||||
| import {LayerSwitcher} from './components/layer-switcher/layer-switcher.component'; | ||||
| import {HistogramDetailsComponent} from './components/legend/histogram-details/histogram-details.component'; | ||||
| import {StatisticsDetailsComponent} from './components/legend/statistics-details/statistics-details.component'; | ||||
| import { ifZoomToShowDirective} from './components/if-zoom-to-show/if-zoom-to-show.directive'; | ||||
| import { ZoomToShowAlert} from './components/zoom-to-show-alert/zoom-to-show-alert.component'; | ||||
| import { LayerValuesComponent } from './components/aol/layer-values/layer-values.component'; | ||||
| import { GeometryThumbnailComponent } from './components/feature-thumbnail/feature-thumbnail.component'; | ||||
| import { ZoomToShowAlert } from './components/zoom-to-show-alert/zoom-to-show-alert.component'; | ||||
| import { DeviceOrientationService } from './services/device-orientation.service'; | ||||
| import { FeatureIconService } from './services/feature-icon.service'; | ||||
| import { GeolocationService } from './services/geolocation.service'; | ||||
| import { TemporalService } from './services/temporal.service'; | ||||
|  | ||||
| export function LocalStorageSync(reducer: ActionReducer<any>): ActionReducer<any> { | ||||
|   const r = function(state, action) { | ||||
| @@ -104,70 +104,13 @@ export function LocalStorageSync(reducer: ActionReducer<any>): ActionReducer<any | ||||
| const metaReducers: Array<MetaReducer<any, any>> = [LocalStorageSync]; | ||||
|  | ||||
| export { | ||||
|   mapEffects, | ||||
|   mapReducers, | ||||
|   mapActions, | ||||
|   ZoomToExtentComponent, | ||||
|   ItemVectorSourceComponent, | ||||
|   ItemLayersComponent, | ||||
|   FileDropTargetComponent, | ||||
|   MapComponent, | ||||
|   MetaDataModalComponent, | ||||
|   RotationResetComponent, | ||||
|   MapSearchComponent, | ||||
|   SelectPeriodModalComponent, | ||||
|   LayerListComponent, | ||||
|   LegendComponent, | ||||
|   LayerVectorImageComponent, | ||||
|   FeatureListComponent, | ||||
|   WidgetHostDirective, | ||||
|   FeatureListContainerComponent, | ||||
|   FeatureListCroppingschemeComponent, | ||||
|   FeatureListCropfieldComponent, | ||||
|   FeatureListFeatureContainerComponent, | ||||
|   FeatureListFeatureComponent, | ||||
|   FeatureListFeatureCroppingschemeComponent, | ||||
|   FeatureListFeatureCropfieldComponent, | ||||
|   SelectedItemContainerComponent, | ||||
|   SelectedItemComponent, | ||||
|   SelectedItemCropfieldComponent, | ||||
|   SelectedItemGeotiffComponent, | ||||
|   SelectedItemTemporalComponent, | ||||
|   SelectedItemShapeComponent, | ||||
|   ItemListItemComponent, | ||||
|   ItemListItemContainerComponent, | ||||
|   ItemListComponent, | ||||
|   ItemWidgetListComponent, | ||||
|   WidgetStatusComponent, | ||||
|   GpsLocation, | ||||
|   PanToLocation, | ||||
|   LayerSwitcher, | ||||
|   AbstractFeatureListComponent, | ||||
|   AbstractFeatureListFeatureComponent, | ||||
|   AbstractSelectedItemComponent, | ||||
|   AbstractItemWidgetComponent, | ||||
|   AbstractItemListItemComponent, | ||||
|   AbstractItemListComponent, | ||||
|   FeatureIconService, | ||||
|   GeolocationService, | ||||
|   DeviceOrientationService, | ||||
|   TemporalService, | ||||
|   IMapState, | ||||
|   ISelectedFeatures, | ||||
|   IItemLayer, | ||||
|   ItemLayer, | ||||
|   IPeriodState, | ||||
|   ForChild, | ||||
|   ForItemType, | ||||
|   ForSourceTask, | ||||
|   ForPackage , | ||||
|   ITemporalItemLayer, | ||||
|   TemporalItemLayer, | ||||
|   ifZoomToShowDirective, | ||||
|   ZoomToShowAlert, | ||||
|   IClickedFeature, | ||||
|   GeometryThumbnailComponent | ||||
| } | ||||
|   AbstractFeatureListFeatureComponent, AbstractItemListComponent, AbstractItemListItemComponent, AbstractItemWidgetComponent, AbstractSelectedItemComponent, DeviceOrientationService, FeatureIconService, FeatureListComponent, FeatureListContainerComponent, FeatureListCropfieldComponent, FeatureListCroppingschemeComponent, FeatureListFeatureComponent, FeatureListFeatureContainerComponent, FeatureListFeatureCropfieldComponent, FeatureListFeatureCroppingschemeComponent, FileDropTargetComponent, ForChild, | ||||
|   ForItemType, ForPackage, ForSourceTask, GeolocationService, GeometryThumbnailComponent, GpsLocation, IClickedFeature, ifZoomToShowDirective, IItemLayer, IMapState, IPeriodState, ISelectedFeatures, ItemLayer, ItemLayersComponent, ItemListComponent, ItemListItemComponent, | ||||
|   ItemListItemContainerComponent, ITemporalItemLayer, ItemVectorSourceComponent, ItemWidgetListComponent, LayerListComponent, LayerSwitcher, LayerVectorImageComponent, LegendComponent, mapActions, MapComponent, mapEffects, | ||||
|   mapReducers, MapSearchComponent, MetaDataModalComponent, PanToLocation, RotationResetComponent, SelectedItemComponent, SelectedItemContainerComponent, SelectedItemCropfieldComponent, | ||||
|   SelectedItemGeotiffComponent, SelectedItemShapeComponent, SelectedItemTemporalComponent, SelectPeriodModalComponent, TemporalItemLayer, TemporalService, WidgetHostDirective, WidgetStatusComponent, ZoomToExtentComponent, ZoomToShowAlert | ||||
| }; | ||||
|  | ||||
| @NgModule({ | ||||
|     imports: [ | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| import { Component, Input, OnDestroy, OnInit, EventEmitter, Output, Inject } from '@angular/core'; | ||||
| import { MapComponent } from 'ngx-openlayers'; | ||||
| import { MapComponent } from '@farmmaps/ng-openlayers'; | ||||
|  | ||||
| import * as proj  from 'ol/proj'; | ||||
| import {Point,Geometry} from 'ol/geom'; | ||||
|   | ||||
| @@ -1,6 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
| .gps-location { | ||||
|   display:none;  | ||||
| } | ||||
| @@ -14,7 +11,7 @@ | ||||
| } | ||||
|  | ||||
| .tolerance { | ||||
|   fill: $primary; | ||||
|   fill: var(--bs-primary); | ||||
|   fill-opacity:0.4; | ||||
| } | ||||
|  | ||||
| @@ -23,20 +20,20 @@ | ||||
| } | ||||
|  | ||||
| .border { | ||||
|   fill: $white; | ||||
|   fill: var(--bs-white); | ||||
| } | ||||
|  | ||||
| .center { | ||||
|   fill: $primary; | ||||
|   fill: var(--bs-primary); | ||||
| } | ||||
|  | ||||
| .stop1 { | ||||
|   stop-color: $primary; | ||||
|   stop-color: var(--bs-primary); | ||||
|   stop-opacity:1; | ||||
| } | ||||
|  | ||||
| .stop2 { | ||||
|   stop-color:$primary; | ||||
|   stop-color:var(--bs-primary); | ||||
|   stop-opacity: 0; | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| import { Component, OnInit, Input, ViewChild, ElementRef, OnChanges, SimpleChanges ,Host} from '@angular/core'; | ||||
| import { MapComponent } from 'ngx-openlayers'; | ||||
| import { MapComponent } from '@farmmaps/ng-openlayers'; | ||||
| import  Overlay  from 'ol/Overlay'; | ||||
| import { fromLonLat, toLonLat } from 'ol/proj'; | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| import { Component, Host, Input, Output, EventEmitter,OnDestroy, OnInit, OnChanges, SimpleChanges, forwardRef } from '@angular/core'; | ||||
| import { LayerGroupComponent, MapComponent } from 'ngx-openlayers'; | ||||
| import { LayerGroupComponent, MapComponent } from '@farmmaps/ng-openlayers'; | ||||
| import { ItemService,IItem,AppConfig } from '@farmmaps/common'; | ||||
| import { IItemLayer, ITemporalItemLayer} from '../../../models/item.layer'; | ||||
| import { ILayerData} from '../../../models/layer.data'; | ||||
| @@ -19,6 +19,7 @@ import VectorTileLayer from 'ol/layer/VectorTile'; | ||||
| import {GeoJSON,MVT} from 'ol/format'; | ||||
| import { Geometry } from 'ol/geom'; | ||||
| import BaseLayer from 'ol/layer/Base'; | ||||
| import Feature from 'ol/Feature'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'fm-map-item-layers', | ||||
| @@ -180,9 +181,9 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange | ||||
|       const source = new VectorSource({ | ||||
|         strategy: loadingstrategy.bbox, | ||||
|         loader: function (extent: Extent, resolution: number, projection: Projection) { | ||||
|           const source = this as VectorSource<Geometry>; | ||||
|           const source = this as VectorSource<Feature<Geometry>>; | ||||
|           __this.itemService.getItemFeatures(item.code, extent, projection.getCode(), layerIndex).subscribe(function (data) { | ||||
|             const features = format.readFeatures(data); | ||||
|             const features = format.readFeatures(data).filter(feature => feature instanceof Feature) as Feature[]; | ||||
|             for (const f of features) { | ||||
|               if (f.get("code")) { | ||||
|                 f.setId(f.get("code")); | ||||
| @@ -250,8 +251,8 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange | ||||
|             return new style.Style( | ||||
|               {                | ||||
|                 stroke: new style.Stroke({ | ||||
|                   color: 'red', | ||||
|                   width: 2 | ||||
|                   color: '#0d6efd', | ||||
|                   width: 3 | ||||
|                 }) | ||||
|               } | ||||
|             ); | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| import { Component, Host, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, forwardRef, Inject, InjectionToken } from '@angular/core'; | ||||
| import { LayerVectorComponent, SourceVectorComponent, MapComponent } from 'ngx-openlayers'; | ||||
| import { ItemService, ItemTypeService, IItem, IItemType } from '@farmmaps/common'; | ||||
| import { Component, Host, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, forwardRef, Inject, InjectionToken, OnDestroy, LOCALE_ID } from '@angular/core'; | ||||
| import { LayerVectorComponent, SourceVectorComponent, MapComponent } from '@farmmaps/ng-openlayers'; | ||||
| import { ItemService, ItemTypeService, IItem, IItemType, FolderService } from '@farmmaps/common'; | ||||
|  | ||||
| import { Feature } from 'ol'; | ||||
| import { Point, Geometry } from 'ol/geom'; | ||||
| @@ -17,6 +17,9 @@ import { GeoJSON } from 'ol/format'; | ||||
| import { Select } from 'ol/interaction'; | ||||
| import { IStyles } from '../../../models/style.cache'; | ||||
| import { FeatureIconService } from '../../../services/feature-icon.service'; | ||||
| import { Subscription } from 'rxjs'; | ||||
| import { getCenter } from 'ol/extent'; | ||||
| import { formatNumber } from '@angular/common'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'fm-map-item-source-vector', | ||||
| @@ -25,8 +28,8 @@ import { FeatureIconService } from '../../../services/feature-icon.service'; | ||||
|     { provide: SourceVectorComponent, useExisting: forwardRef(() => ItemVectorSourceComponent) } | ||||
|   ] | ||||
| }) | ||||
| export class ItemVectorSourceComponent extends SourceVectorComponent implements OnInit, OnChanges { | ||||
|   instance: Vector<Geometry>; | ||||
| export class ItemVectorSourceComponent extends SourceVectorComponent implements OnInit, OnDestroy, OnChanges { | ||||
|   instance: Vector<Feature<Geometry>>; | ||||
|   private _format: GeoJSON; | ||||
|   private _select: Select; | ||||
|   private _hoverSelect: Select; | ||||
| @@ -38,8 +41,10 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements | ||||
|   @Output() onFeatureSelected: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>(); | ||||
|   @Output() onFeatureHover: EventEmitter<Feature<Geometry>> = new EventEmitter<Feature<Geometry>>(); | ||||
|   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); | ||||
|     this._format = new GeoJSON(); | ||||
|   } | ||||
| @@ -76,6 +81,18 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements | ||||
|   } | ||||
|  | ||||
|   ngOnInit() { | ||||
|     this.sub = this.folderService.getFolder('my_settings').subscribe( | ||||
|       userSettingsRoot => { | ||||
|         if (userSettingsRoot == undefined) return; | ||||
|         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.format = new GeoJSON(); | ||||
|     this._select = new Select({ | ||||
| @@ -133,7 +150,8 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements | ||||
|             fill: new style.Fill({ | ||||
|               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 { | ||||
|           key = 'file'; | ||||
| @@ -153,6 +171,10 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   ngOnDestroy(): void { | ||||
|     if (this.sub) this.sub.unsubscribe(); | ||||
|   } | ||||
|  | ||||
|   ngOnChanges(changes: SimpleChanges) { | ||||
|     if (changes["features"] && this.instance) { | ||||
|       this.instance.clear(true); | ||||
| @@ -188,4 +210,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'] | ||||
|   }; | ||||
| } | ||||
| @@ -3,7 +3,7 @@ import { IItemLayer } from '../../../models/item.layer'; | ||||
| import { Store } from '@ngrx/store'; | ||||
| import * as mapReducers from '../../../reducers/map.reducer'; | ||||
| import * as mapActions from '../../../actions/map.actions'; | ||||
| import { MapComponent } from 'ngx-openlayers'; | ||||
| import { MapComponent } from '@farmmaps/ng-openlayers'; | ||||
| import { ILayervalue } from '../../../models/layer.value'; | ||||
| import { Observable, interval, Subject } from 'rxjs'; | ||||
| import { debounce, throttle } from 'rxjs/operators'; | ||||
|   | ||||
| @@ -1,8 +1,9 @@ | ||||
| import { Component, OnDestroy, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core'; | ||||
| import { LayerVectorComponent, MapComponent } from 'ngx-openlayers'; | ||||
| import { LayerVectorComponent, MapComponent } from '@farmmaps/ng-openlayers'; | ||||
| import  RenderType  from 'ol/layer/Vector'; | ||||
| import { Vector as VectorSource } from 'ol/source'; | ||||
| import { Geometry } from 'ol/geom'; | ||||
| import Feature from 'ol/Feature'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'fm-map-aol-layer-vector-image', | ||||
| @@ -14,7 +15,7 @@ export class LayerVectorImageComponent extends LayerVectorComponent implements O | ||||
|   //public source: Vector; | ||||
|  | ||||
|   @Input() | ||||
|   renderMode: RenderType<VectorSource<Geometry>> | string = "image";   | ||||
|   renderMode: RenderType<VectorSource<Feature<Geometry>>> | string = "image";   | ||||
|  | ||||
|   constructor(map: MapComponent) { | ||||
|     super(map); | ||||
|   | ||||
| @@ -1,11 +1,8 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
| .gps-location { | ||||
|   display:block;  | ||||
|   width:2.5em; | ||||
|   height:2.5em; | ||||
|   background-color: $body-bg; | ||||
|   background-color: var(--bs-body-bg); | ||||
|   background-size: contain; | ||||
|   margin-top:0.5em; | ||||
|   border-radius: 1.75em; | ||||
| @@ -17,15 +14,15 @@ | ||||
| } | ||||
|  | ||||
| .pan-to { | ||||
|   fill: $secondary; | ||||
|   fill: var(--bs-secondary); | ||||
| } | ||||
|  | ||||
| div.gps-location:hover .pan-to { | ||||
|   fill: $white; | ||||
|   fill: var(--bs-white); | ||||
| } | ||||
|  | ||||
| .pan-to-centered { | ||||
|   fill: $primary; | ||||
|   fill: var(--bs-primary); | ||||
| } | ||||
|  | ||||
| div.gps-location:hover .pan-to-centered { | ||||
| @@ -33,5 +30,5 @@ div.gps-location:hover .pan-to-centered { | ||||
| } | ||||
|  | ||||
| .pan-to.pan-to-disabled { | ||||
|   fill: $gray-300; | ||||
|   fill: var(--bs-gray-300); | ||||
| } | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| import { Component, OnInit, Input, Host, OnChanges, SimpleChanges,ChangeDetectorRef } from '@angular/core'; | ||||
| import { MapComponent } from 'ngx-openlayers'; | ||||
| import { MapComponent } from '@farmmaps/ng-openlayers'; | ||||
| import {IMapState} from '../../../models/map.state' | ||||
| import {View} from 'ol'; | ||||
| import { fromLonLat } from 'ol/proj'; | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .compass { | ||||
|   width:2.5em; | ||||
|   height:2.5em; | ||||
| @@ -13,7 +11,7 @@ | ||||
|  | ||||
| #north { | ||||
|   display: none; | ||||
|   fill:$black; | ||||
|   fill:var(--bs-black); | ||||
| } | ||||
|  | ||||
| #top-l { | ||||
| @@ -33,23 +31,23 @@ | ||||
| } | ||||
|  | ||||
| div.compass:hover #top-l { | ||||
|   fill:$white; | ||||
|   fill:var(--bs-white); | ||||
| } | ||||
|  | ||||
| div.compass:hover #top-r { | ||||
|   fill:$gray-300; | ||||
|   fill:var(--bs-gray-300); | ||||
| } | ||||
|  | ||||
| div.compass:hover #bottom-l { | ||||
|   fill:$gray-300; | ||||
|   fill:var(--bs-gray-300); | ||||
| } | ||||
|  | ||||
| div.compass:hover #bottom-r { | ||||
|   fill:$white; | ||||
|   fill:var(--bs-white); | ||||
| } | ||||
|  | ||||
| div.compass:hover #north { | ||||
|   fill:$white; | ||||
|   fill:var(--bs-white); | ||||
| } | ||||
|  | ||||
| .compass-n {     | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| import { Component, Host, Input, OnInit, ChangeDetectorRef  } from '@angular/core'; | ||||
| import { ViewComponent, MapComponent } from 'ngx-openlayers'; | ||||
| import { ViewComponent, MapComponent } from '@farmmaps/ng-openlayers'; | ||||
|  | ||||
| import {View} from 'ol'; | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| import { Component, Host, Input, OnInit, OnChanges, SimpleChanges, forwardRef } from '@angular/core'; | ||||
| import { ActivatedRoute  } from '@angular/router'; | ||||
| import { ViewComponent, MapComponent } from 'ngx-openlayers'; | ||||
| import { ViewComponent, MapComponent } from '@farmmaps/ng-openlayers'; | ||||
|  | ||||
|   | ||||
| @Component({ | ||||
|   | ||||
| @@ -1,14 +1,10 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
|  | ||||
| .row { | ||||
|   border-bottom: 1px solid $gray-500; | ||||
|   border-bottom: 1px solid var(--bs-gray-500); | ||||
|   user-select: none; | ||||
| } | ||||
|  | ||||
| .row.selected { | ||||
|   background-color: $gray-100; | ||||
|   background-color: var(--bs-gray-100); | ||||
| } | ||||
|  | ||||
| @media screen and (min-width: 44rem)  { | ||||
|   | ||||
| @@ -64,9 +64,9 @@ export class FeatureListContainerComponent { | ||||
|     viewContainerRef.clear(); | ||||
|     if(showItem) { | ||||
|       this.componentRef = viewContainerRef.createComponent(componentFactory); | ||||
|       (<AbstractFeatureListComponent>this.componentRef.instance).features = null; | ||||
|       (<AbstractFeatureListComponent>this.componentRef.instance).queryState = queryState; | ||||
|       (<AbstractFeatureListComponent>this.componentRef.instance).selectedFeature = null; | ||||
|       (<AbstractFeatureListComponent>this.componentRef.instance).features = this.features; | ||||
|       (<AbstractFeatureListComponent>this.componentRef.instance).queryState = this.queryState; | ||||
|       (<AbstractFeatureListComponent>this.componentRef.instance).selectedFeature = this.selectedFeature; | ||||
|     }     | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -1,22 +1,20 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| fm-map-feature-list-feature-container { | ||||
|   width:100%; | ||||
|   pointer-events:none; | ||||
| } | ||||
|  | ||||
| .row { | ||||
|   border-bottom: 1px solid $gray-500; | ||||
|   border-bottom: 1px solid var(--bs-gray-500); | ||||
|   user-select: none; | ||||
|   padding-left:1.5rem; | ||||
| } | ||||
|  | ||||
| .row.selected { | ||||
|   background-color: $gray-100; | ||||
|   background-color: var(--bs-gray-100); | ||||
| } | ||||
|  | ||||
| .cropfields { | ||||
|   border-top: 1px solid $gray-500; | ||||
|   border-top: 1px solid var(--bs-gray-500); | ||||
|   margin-left: -1.25rem; | ||||
|   margin-right: -1.25rem; | ||||
| } | ||||
|   | ||||
| @@ -1,22 +1,20 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| fm-map-feature-list-feature-container { | ||||
|   width:100%; | ||||
|   pointer-events:none; | ||||
| } | ||||
|  | ||||
| .row { | ||||
|   border-bottom: 1px solid $gray-500; | ||||
|   border-bottom: 1px solid var(--bs-gray-500); | ||||
|   user-select: none; | ||||
|   padding-left:1.5rem; | ||||
| } | ||||
|  | ||||
| .row.selected { | ||||
|   background-color: $gray-100; | ||||
|   background-color: var(--bs-gray-100); | ||||
| } | ||||
|  | ||||
| .farms { | ||||
|   border-top: 1px solid $gray-500; | ||||
|   border-top: 1px solid var(--bs-gray-500); | ||||
|   margin-left: -1.25rem; | ||||
|   margin-right: -1.25rem; | ||||
| } | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
|  | ||||
| .card-title { | ||||
|   font-size: 1rem; | ||||
|   white-space: nowrap; | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
|  | ||||
| .card-title { | ||||
|   font-size: 1rem; | ||||
|   white-space: nowrap; | ||||
|   | ||||
| @@ -1,7 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
|  | ||||
| .card-title { | ||||
|   font-size: 1rem; | ||||
|   white-space: nowrap; | ||||
|   | ||||
| @@ -1,15 +1,13 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| fm-map-feature-list-feature-container { | ||||
|   width: 100%; | ||||
|   pointer-events: none; | ||||
| } | ||||
|  | ||||
| .row { | ||||
|   border-bottom: 1px solid $gray-500; | ||||
|   border-bottom: 1px solid var(--bs-gray-500); | ||||
|   user-select: none; | ||||
| } | ||||
|  | ||||
| .row.selected { | ||||
|   background-color: $gray-100; | ||||
|   background-color: var(--bs-gray-100); | ||||
| } | ||||
|   | ||||
| @@ -23,6 +23,7 @@ export abstract class AbstractFeatureListComponent { | ||||
|  | ||||
|   handleFeatureClick(feature:Feature<Geometry>) { | ||||
|     if(feature) { | ||||
|       this.store.dispatch(new mapActions.ClickFeature(feature)); | ||||
|       const action = this.getAction(feature); | ||||
|       this.store.dispatch(action); | ||||
|     } | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| import { Directive, ViewContainerRef,TemplateRef,OnInit,Input, OnChanges } from '@angular/core'; | ||||
| import { Layer } from 'ol/layer'; | ||||
| import { Source } from 'ol/source'; | ||||
| import { MapComponent } from 'ngx-openlayers'; | ||||
| import { MapComponent } from '@farmmaps/ng-openlayers'; | ||||
|  | ||||
| @Directive({ | ||||
|   selector: '[fmMapIfZoomToShow]', | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .widget { | ||||
|   padding:0.8rem; | ||||
|   height:100%; | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .widget-container { | ||||
|   overflow:auto; | ||||
|   margin-bottom:1rem; | ||||
| @@ -7,7 +5,7 @@ | ||||
|  | ||||
| .widget { | ||||
|   position:relative; | ||||
|   border: 1px solid $gray-500; | ||||
|   border: 1px solid var(--bs-gray-500); | ||||
|   user-select: none; | ||||
|   display:inline-block; | ||||
|   width:50%; | ||||
| @@ -28,7 +26,7 @@ | ||||
| } | ||||
|  | ||||
| .widget:hover { | ||||
|   background-color: $gray-100; | ||||
|   background-color: var(--bs-gray-100); | ||||
| } | ||||
|  | ||||
| .widget-container { | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .widget-container { | ||||
|   overflow:auto; | ||||
|   margin-bottom:1rem; | ||||
| @@ -7,7 +5,7 @@ | ||||
|  | ||||
| .widget { | ||||
|   position:relative; | ||||
|   border: 1px solid $gray-500; | ||||
|   border: 1px solid var(--bs-gray-500); | ||||
|   user-select: none; | ||||
|   display:inline-block; | ||||
|   width:50%; | ||||
| @@ -28,7 +26,7 @@ | ||||
| } | ||||
|  | ||||
| .widget:hover { | ||||
|   background-color: $gray-100; | ||||
|   background-color: var(--bs-gray-100); | ||||
| } | ||||
|  | ||||
| .widget-container { | ||||
|   | ||||
| @@ -1,18 +1,15 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
| .layer-switcher {   | ||||
|   display:block;  | ||||
|   width:2.5em; | ||||
|   height:2.5em; | ||||
|   background-color: $body-bg; | ||||
|   background-color: var(--bs-body-bg); | ||||
|   background-size: contain; | ||||
|   margin-top:0.5em; | ||||
|   text-align: center; | ||||
|   line-height: 2.5em;  | ||||
|   border-radius: 1.75em; | ||||
|   padding: 0; | ||||
|   color: $secondary; | ||||
|   color: var(--bs-secondary); | ||||
| } | ||||
|  | ||||
| .layer-switcher i { | ||||
| @@ -24,7 +21,7 @@ | ||||
| } | ||||
|  | ||||
| .layers { | ||||
|   color:$secondary; | ||||
|   color:var(--bs-secondary); | ||||
|   position: absolute; | ||||
|   overflow: hidden; | ||||
|   bottom: -1em; | ||||
|   | ||||
| @@ -1,15 +1,15 @@ | ||||
| <div class="row ps-3"> | ||||
|   <div class="col-8 nopadding"><span i18n>Average</span>:</div> | ||||
|   <div class="col-4 pull-left nopadding">{{histogram.mean| number:'1.0-2'}}</div> | ||||
|   <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.mean)| number:'1.0-2'}}</div> | ||||
|   <div class="col-8 nopadding"><span i18n>Standard deviation</span>:</div> | ||||
|   <div class="col-4 pull-left nopadding">{{histogram.stddev| number:'1.0-2'}}</div> | ||||
|   <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.stddev)| number:'1.0-2'}}</div> | ||||
|   <div class="col-8 nopadding"><span i18n>Min</span>:</div> | ||||
|   <div class="col-4 pull-left nopadding">{{histogram.min| number:'1.0-2'}}</div> | ||||
|   <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.min)| number:'1.0-2'}}</div> | ||||
|   <div class="col-8 nopadding" ><span i18n>Max</span>:</div> | ||||
|   <div class="col-4 pull-left nopadding">{{histogram.max| number:'1.0-2'}}</div> | ||||
|   <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.max)| number:'1.0-2'}}</div> | ||||
|  | ||||
|   <ng-container *ngIf="showConfidenceInterval()"> | ||||
|     <div class="col-8 nopadding"><span i18n>Confidence interval</span>:</div> | ||||
|     <div class="col-4 pull-left nopadding">{{histogram.confidence * 100| number:'1.0-0'}}%</div> | ||||
|     <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.confidence * 100)| number:'1.0-0'}}%</div> | ||||
|   </ng-container> | ||||
| </div> | ||||
|   | ||||
| @@ -14,6 +14,17 @@ export class HistogramDetailsComponent { | ||||
|   @Input() | ||||
|   histogram: IHistogram; | ||||
|  | ||||
|   @Input() | ||||
|   scale: number | null; | ||||
|  | ||||
|   public getScaledValue(value: number): number { | ||||
|     let v = value; | ||||
|     if (this.scale && this.scale != 0) { | ||||
|       v = this.scale * value; | ||||
|     } | ||||
|     return v; | ||||
|   } | ||||
|  | ||||
|   showConfidenceInterval(): boolean { | ||||
|     return this.histogram.confidence != null && this.histogram.confidence !== 1; | ||||
|   } | ||||
|   | ||||
| @@ -35,7 +35,7 @@ | ||||
|         </ng-container> | ||||
|  | ||||
|         <ng-template #histogram> | ||||
|           <fm-map-histogram-details [histogram]="layer.renderer.band.histogram"></fm-map-histogram-details> | ||||
|           <fm-map-histogram-details [histogram]="layer.renderer.band.histogram" [scale]="layer.scale"></fm-map-histogram-details> | ||||
|         </ng-template> | ||||
|       </div> | ||||
|     </td> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| div.map-search { | ||||
|   position: absolute; | ||||
|   top: 0.5rem; | ||||
| @@ -106,7 +104,7 @@ div.map-search.searchcollapsed button[type="submit"] { | ||||
| } | ||||
|  | ||||
| .form-control, .form-control:focus { | ||||
|   border-color: $secondary; | ||||
|   border-color: var(--bs-secondary); | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
|   panelVisible:panelVisible$|async, | ||||
|   openedModalName:openedModalName$|async, | ||||
|   panelCollapsed:panelCollapsed$|async, | ||||
|   panelExtraWide:panelExtraWide$|async, | ||||
|   searchMinified:searchMinified$|async, | ||||
|   selectedItem:selectedItem$|async, | ||||
|   parentItem:parentItem$|async, | ||||
| @@ -64,7 +65,7 @@ | ||||
|     </div> | ||||
|     <div class="side-panel-container"> | ||||
|        | ||||
|       <fm-side-panel [resizeable]="true" (onResize)="handlePanelResize($event)" [visible]="state.panelVisible && noContent" [collapsed]="state.panelCollapsed" [collapsable]="false"> | ||||
|       <fm-side-panel [resizeable]="true" (onResize)="handlePanelResize($event)" [visible]="state.panelVisible && noContent" [collapsed]="state.panelCollapsed" [collapsable]="false" [extrawide]="state.panelExtraWide"> | ||||
|         <div class="panel-wrapper" *ngIf="noContent"> | ||||
|           <div class="panel-top bg-secondary" *ngIf="!(state.searchMinified)"> | ||||
|           </div> | ||||
| @@ -84,7 +85,7 @@ | ||||
|           </div> | ||||
|         </div>   | ||||
|       </fm-side-panel> | ||||
|       <fm-side-panel [resizeable]="true" [visible]="!noContent"> | ||||
|       <fm-side-panel [resizeable]="true" [visible]="!noContent" [extrawide]="state.panelExtraWide"> | ||||
|         <router-outlet (activate)="handleSidepaneloutletActivate($event)" (deactivate)="handleSidepaneloutletDeactivate($event)"></router-outlet> | ||||
|       </fm-side-panel> | ||||
|     </div>    | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| aol-map { position:absolute;width:100%;height:calc( 100vh );} | ||||
|  | ||||
| .arrow { | ||||
| @@ -195,7 +193,7 @@ timespan.menuVisible { | ||||
|   width: 4rem; | ||||
|   overflow: hidden; | ||||
|   text-overflow: ellipsis; | ||||
|   color: $primary; | ||||
|   color: var(--bs-primary); | ||||
| } | ||||
|  | ||||
| .shortcut-icon > .farm-icon { | ||||
|   | ||||
| @@ -66,6 +66,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|   public parentCode$: Observable<string> =this.store.select(mapReducers.selectGetParentCode); | ||||
|   public panelVisible$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelVisible); | ||||
|   public panelCollapsed$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelCollapsed); | ||||
|   public panelExtraWide$: Observable<boolean> = this.store.select(mapReducers.selectGetPanelExtraWide); | ||||
|   public selectedFeature$: Observable<Feature<Geometry>> = this.store.select(mapReducers.selectGetSelectedFeature); | ||||
|   public clickedFeature: Subject<Feature<Geometry>> = new Subject<Feature<Geometry>>(); | ||||
|   public selectedItem$: Observable<IItem> = this.store.select(mapReducers.selectGetSelectedItem); | ||||
| @@ -119,7 +120,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|       this.querySub = this.query$.pipe(skip(1), withLatestFrom(this.mapState$)).subscribe(([query,mapState]) =>{ | ||||
|         if(query && query.querystate) { | ||||
|           let newQueryState = tassign(mapReducers.initialQueryState); | ||||
|           console.debug(`Do Query`); | ||||
|           //console.debug(`Do Query`); | ||||
|           const urlparts=[]; | ||||
|           if (query.querystate.itemCode && query.querystate.itemCode != "") { | ||||
|             if(query.querystate.itemType && query.querystate.itemType!= "") { | ||||
| @@ -192,6 +193,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|   } | ||||
|  | ||||
|   handleFeatureClick(feature: Feature<Geometry>) { | ||||
|     this.store.dispatch(new mapActions.ClickFeature(feature)); | ||||
|     this.clickedFeature.next(feature); | ||||
|   } | ||||
|  | ||||
| @@ -207,12 +209,18 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|    if(component && component.hasOwnProperty('clickedFeature')) { | ||||
|      (component as IClickedFeature).clickedFeature = this.clickedFeature; | ||||
|    } | ||||
|    if(component && component.hasOwnProperty('extrawide')) { | ||||
|     this.store.dispatch(new mapActions.SetPanelExtraWide(true)); | ||||
|   } | ||||
|  } | ||||
|  | ||||
|   handleSidepaneloutletDeactivate(component:any) { | ||||
|     if(component && component.hasOwnProperty('clickedFeature')) { | ||||
|       (component as IClickedFeature).clickedFeature = null; | ||||
|     } | ||||
|     if(component && component.hasOwnProperty('extrawide')) { | ||||
|       this.store.dispatch(new mapActions.SetPanelExtraWide(false)); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   handlePrerender(event:any) { | ||||
| @@ -242,7 +250,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|  | ||||
|   ngOnInit() {     | ||||
|     this.initialized = false; | ||||
|     console.debug("Init"); | ||||
|     //console.debug("Init"); | ||||
|     this.store.dispatch(new mapActions.Clear()); | ||||
|     this.selectedFeatures$.next({x:0,y:0,features:[]}); | ||||
|     this.selectedFeatures$.next(null); | ||||
| @@ -314,7 +322,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|   } | ||||
|  | ||||
|   ngAfterViewInit() { | ||||
|     console.debug("View init"); | ||||
|     //console.debug("View init"); | ||||
|     this.noContent=true; | ||||
|     this.route.children.forEach((entry) => { | ||||
|       if(entry.outlet=="primary") { | ||||
| @@ -348,7 +356,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|       })).subscribe((action) => { | ||||
|         if(action) { | ||||
|           this.zone.run(() => { | ||||
|             console.debug("Url to state"); | ||||
|             //console.debug("Url to state"); | ||||
|             this.store.dispatch(action); | ||||
|           }); | ||||
|         } | ||||
| @@ -365,9 +373,9 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|       else { | ||||
|         return of(null); | ||||
|       } | ||||
|       })).subscribe((newUrlState) =>{ | ||||
|     })).subscribe((newUrlState: any) => { | ||||
|         if(newUrlState) { | ||||
|           console.debug(`State to url`); | ||||
|           //console.debug(`State to url`); | ||||
|           this.replaceUrl(newUrlState.mapState,newUrlState.queryState,newUrlState.replaceUrl); | ||||
|         } | ||||
|       }); | ||||
| @@ -425,7 +433,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|           parts.push(mapState.baseLayerCode); | ||||
|           parts.push( this.serializeService.serialize(queryState)); | ||||
|            | ||||
|           console.debug("Replace url",parts); | ||||
|           //console.debug("Replace url",parts); | ||||
|           this.router.navigate(parts, { replaceUrl: replace,relativeTo:this.route.parent }); | ||||
|         }   | ||||
|       }      | ||||
| @@ -434,7 +442,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|   handleOnMoveEnd(event) {     | ||||
|     if(this.initialized && this.viewEnabled) { | ||||
|       this.zone.run(() =>{ | ||||
|         console.debug("Move end"); | ||||
|         //console.debug("Move end"); | ||||
|         const map = event.map; | ||||
|         const view = map.getView(); | ||||
|         const rotation = view.getRotation(); | ||||
| @@ -443,7 +451,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { | ||||
|         const viewExtent = view.calculateExtent(this.map.instance.getSize()); | ||||
|         const mapState: IMapState = { xCenter: center[0], yCenter: center[1], zoom: zoom, rotation: rotation, baseLayerCode: null }; | ||||
|         const state = { mapState: mapState, viewExtent: viewExtent }; | ||||
|         console.debug("Center: ",center[0],center[1] ); | ||||
|         //console.debug("Center: ",center[0],center[1] ); | ||||
|         const source = from([state]); | ||||
|         source.pipe(withLatestFrom(this.selectedBaseLayer$)).subscribe(([state, baselayer]) => { | ||||
|           if (mapState && baselayer) { // do not react on first move | ||||
|   | ||||
| @@ -1,13 +1,9 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
|  | ||||
| .row { | ||||
|   border-bottom: 1px solid $gray-500; | ||||
|   border-bottom: 1px solid var(--bs-gray-500); | ||||
|   user-select: none; | ||||
| } | ||||
|  | ||||
| .row:hover { | ||||
|   background-color: $gray-100; | ||||
|   background-color: var(--bs-gray-100); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .big-icon { | ||||
|   width: 100%; | ||||
|   color: white; | ||||
|   | ||||
| @@ -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)="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> | ||||
|           <li><fm-item-link class="text-primary p-0" [itemCode]="item.code" pathSuffix="data" [showText]="true"></fm-item-link></li> | ||||
|         </ul> | ||||
|       </div> | ||||
|       <fm-map-zoom-to-show-alert [layer]="itemLayer?.layer"></fm-map-zoom-to-show-alert> | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .big-icon { | ||||
|   width: 100%; | ||||
|   color: white; | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .big-icon { | ||||
|   width: 100%; | ||||
|   color: white; | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .big-icon { | ||||
|   width: 100%; | ||||
|   color: white; | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .big-icon { | ||||
|   width: 100%; | ||||
|   color: white; | ||||
|   | ||||
| @@ -41,7 +41,7 @@ export const { | ||||
|   selectRouteParam,     // factory function to select a route param | ||||
|   selectRouteData,      // select the current route data | ||||
|   selectUrl,            // select the current url | ||||
| } = fromRouter.getSelectors(getRouterState); | ||||
| } = fromRouter.getRouterSelectors(getRouterState); | ||||
|  | ||||
|  | ||||
| @Injectable() | ||||
| @@ -133,7 +133,7 @@ export class MapEffects { | ||||
|                 f.id = f.properties["code"]; | ||||
|               } | ||||
|             } | ||||
|             return of(new mapActions.StartSearchSuccess(this._geojsonFormat.readFeatures(features), a.queryState)); | ||||
|             return of(new mapActions.StartSearchSuccess(this._geojsonFormat.readFeatures(features).filter(feature => feature instanceof Feature) as Feature[], a.queryState)); | ||||
|           } | ||||
|           ), | ||||
|           catchError(error => of(new commonActions.Fail(error)))); | ||||
| @@ -218,7 +218,7 @@ export class MapEffects { | ||||
|       if (!this.overrideSelectedItemLayer) { | ||||
|         return this.itemService$.getFeature(action.item.code, "EPSG:3857").pipe( | ||||
|           map((feature: any) => { | ||||
|             const f = this._geojsonFormat.readFeature(feature); | ||||
|             const f = this._geojsonFormat.readFeature(feature) as Feature; | ||||
|             f.setId(action.item.code); | ||||
|             return new mapActions.AddFeatureSuccess(f); | ||||
|           }), | ||||
|   | ||||
| @@ -49,6 +49,7 @@ export interface State { | ||||
|   features: Array<Feature<Geometry>>, | ||||
|   panelVisible: boolean, | ||||
|   panelCollapsed: boolean, | ||||
|   panelExtraWide: boolean, | ||||
|   selectedFeature: Feature<Geometry>, | ||||
|   selectedItem:IItem, | ||||
|   parentItem:IItem, | ||||
| @@ -94,6 +95,7 @@ export const initialState: State = { | ||||
|   features: [], | ||||
|   panelVisible: false, | ||||
|   panelCollapsed: false, | ||||
|   panelExtraWide: false, | ||||
|   selectedFeature: null, | ||||
|   selectedItem: null, | ||||
|   parentItem: null, | ||||
| @@ -388,6 +390,9 @@ export function reducer(state = initialState, action: mapActions.Actions | commo | ||||
|     case mapActions.CLEARLAYERS: { | ||||
|       return tassign(state, {overlayLayers: [], selectedOverlayLayer: null}); | ||||
|     } | ||||
|     case mapActions.CLEARFEATURES: { | ||||
|       return tassign(state, {features: [], selectedFeature: null}); | ||||
|     } | ||||
|     case mapActions.SETVISIBILITY: { | ||||
|       const a = action as mapActions.SetVisibility; | ||||
|       if(state.selectedItemLayer == a.itemLayer) { | ||||
| @@ -569,6 +574,10 @@ export function reducer(state = initialState, action: mapActions.Actions | commo | ||||
|       } | ||||
|       return state; | ||||
|     } | ||||
|     case mapActions.SETPANELEXTRAWIDE:{ | ||||
|       const a= action as mapActions.SetPanelExtraWide; | ||||
|       return tassign(state,{panelExtraWide:a.panelExtraWide}); | ||||
|     } | ||||
|     default: { | ||||
|       return state; | ||||
|     } | ||||
| @@ -580,6 +589,7 @@ export const getParentCode = (state: State) => state.parentCode; | ||||
| export const getFeatures = (state: State) => state.features; | ||||
| export const getPanelVisible = (state: State) => state.panelVisible; | ||||
| export const getPanelCollapsed = (state: State) => state.panelCollapsed; | ||||
| export const getPanelExtraWide = (state: State) => state.panelExtraWide; | ||||
| export const getSelectedFeature = (state: State) => state.selectedFeature; | ||||
| export const getSelectedItem = (state: State) => state.selectedItem; | ||||
| export const getParentItem = (state: State) => state.parentItem; | ||||
| @@ -588,6 +598,7 @@ export const getClearEnabled = (state: State) => state.clearEnabled; | ||||
| export const getSearchCollapsed = (state: State) => state.searchCollapsed; | ||||
| export const getSearchMinified = (state: State) => state.searchMinified; | ||||
| export const getExtent = (state: State) => state.extent; | ||||
| export const getViewExtent = (state: State) => state.viewExtent; | ||||
| export const getOverlayLayers = (state: State) => state.overlayLayers; | ||||
| export const getBaseLayers = (state: State) => state.baseLayers; | ||||
| export const getProjection = (state: State) => state.projection; | ||||
| @@ -614,6 +625,7 @@ export const selectGetParentCode = createSelector(selectMapState, getParentCode) | ||||
| export const selectGetFeatures = createSelector(selectMapState, getFeatures); | ||||
| export const selectGetPanelVisible = createSelector(selectMapState, getPanelVisible); | ||||
| export const selectGetPanelCollapsed = createSelector(selectMapState, getPanelCollapsed); | ||||
| export const selectGetPanelExtraWide = createSelector(selectMapState, getPanelExtraWide); | ||||
| export const selectGetSelectedFeature = createSelector(selectMapState, getSelectedFeature); | ||||
| export const selectGetSelectedItem = createSelector(selectMapState, getSelectedItem); | ||||
| export const selectGetParentItem = createSelector(selectMapState, getParentItem); | ||||
| @@ -622,6 +634,7 @@ export const selectGetClearEnabled = createSelector(selectMapState, getClearEnab | ||||
| export const selectGetSearchCollapsed = createSelector(selectMapState, getSearchCollapsed); | ||||
| export const selectGetSearchMinified = createSelector(selectMapState, getSearchMinified); | ||||
| export const selectGetExtent = createSelector(selectMapState, getExtent); | ||||
| export const selectGetViewExtent = createSelector(selectMapState, getViewExtent); | ||||
| export const selectGetOverlayLayers = createSelector(selectMapState, getOverlayLayers); | ||||
| export const selectGetBaseLayers = createSelector(selectMapState, getBaseLayers); | ||||
| export const selectGetProjection = createSelector(selectMapState, getProjection); | ||||
|   | ||||
| @@ -9,8 +9,6 @@ import { | ||||
|   platformBrowserDynamicTesting | ||||
| } from '@angular/platform-browser-dynamic/testing'; | ||||
|  | ||||
| declare const require: any; | ||||
|  | ||||
| // First, initialize the Angular testing environment. | ||||
| getTestBed().initTestEnvironment( | ||||
|   BrowserDynamicTestingModule, | ||||
| @@ -18,7 +16,3 @@ getTestBed().initTestEnvironment( | ||||
|     teardown: { destroyAfterEach: false } | ||||
| } | ||||
| ); | ||||
| // Then we find all the tests. | ||||
| const context = require.context('./', true, /\.spec\.ts$/); | ||||
| // And load the modules. | ||||
| context.keys().map(context); | ||||
|   | ||||
| @@ -2,7 +2,6 @@ | ||||
|   "extends": "../../tsconfig.json", | ||||
|   "compilerOptions": { | ||||
|     "outDir": "../../out-tsc/lib", | ||||
|     "target": "es2020", | ||||
|     "module": "es2015", | ||||
|     "moduleResolution": "node", | ||||
|     "declaration": true, | ||||
| @@ -11,18 +10,27 @@ | ||||
|     "emitDecoratorMetadata": true, | ||||
|     "experimentalDecorators": true, | ||||
|     "importHelpers": true, | ||||
|     "esModuleInterop": true, | ||||
|     "types": [], | ||||
|     "lib": [ | ||||
|       "dom", | ||||
|       "es2018" | ||||
|     ], | ||||
|     "paths": { | ||||
|       "@angular/*": [ | ||||
|  | ||||
|       "node_modules/@angular/*" | ||||
|  | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   "angularCompilerOptions": { | ||||
|     "skipTemplateCodegen": true, | ||||
|     "strictMetadataEmit": true, | ||||
|     "fullTemplateTypeCheck": true, | ||||
|     "strictInjectionParameters": true, | ||||
|     "enableResourceInlining": true | ||||
|     "enableResourceInlining": true, | ||||
|     "compilationMode": "partial" | ||||
|   }, | ||||
|   "exclude": [ | ||||
|     "src/test.ts", | ||||
|   | ||||
| @@ -2,7 +2,6 @@ | ||||
|   "extends": "../../tsconfig.json", | ||||
|   "compilerOptions": { | ||||
|     "outDir": "../../out-tsc/lib", | ||||
|     "target": "es2020", | ||||
|     "module": "es2015", | ||||
|     "moduleResolution": "node", | ||||
|     "declaration": true, | ||||
|   | ||||
							
								
								
									
										546
									
								
								projects/common-map3d/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										546
									
								
								projects/common-map3d/package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -11,17 +11,555 @@ | ||||
|         "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", | ||||
|         "@angular/common": "^18.2.3", | ||||
|         "@angular/core": "^18.2.3", | ||||
|         "cesium": "^1.97.0", | ||||
|         "ol-cesium": ">=2.13.0" | ||||
|       } | ||||
|     }, | ||||
|     "../../dist/libs/ng-openlayers": { | ||||
|       "version": "18.0.0", | ||||
|       "extraneous": true, | ||||
|       "license": "MPL-2.0", | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/common": "^18.2.3", | ||||
|         "@angular/core": "^18.2.3", | ||||
|         "ol": "^8.2.0" | ||||
|       } | ||||
|     }, | ||||
|     "dist/ng-openlayers": { | ||||
|       "extraneous": true | ||||
|     }, | ||||
|     "node_modules/@angular/common": { | ||||
|       "version": "18.2.3", | ||||
|       "resolved": "https://registry.npmjs.org/@angular/common/-/common-18.2.3.tgz", | ||||
|       "integrity": "sha512-NFL4yXXImSCH7i1xnHykUjHa9vl9827fGiwSV2mnf7LjSUsyDzFD8/54dNuYN9OY8AUD+PnK0YdNro6cczVyIA==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^18.19.1 || ^20.11.1 || >=22.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "@angular/core": "18.2.3", | ||||
|         "rxjs": "^6.5.3 || ^7.4.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@angular/core": { | ||||
|       "version": "18.2.3", | ||||
|       "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.3.tgz", | ||||
|       "integrity": "sha512-VGhMJxj7d0rYpqVfQrcGRB7EE/BCziotft/I/YPl6bOMPSAvMukG7DXQuJdYpNrr62ks78mlzHlZX/cdmB9Prw==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^18.19.1 || ^20.11.1 || >=22.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "rxjs": "^6.5.3 || ^7.4.0", | ||||
|         "zone.js": "~0.14.10" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@cesium/engine": { | ||||
|       "version": "11.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/@cesium/engine/-/engine-11.0.0.tgz", | ||||
|       "integrity": "sha512-0z3mJNNly407h3/bAvGoGnjA0ygprkVz32z9x1VNmPXf9AuybKu7Q4wRrChUhC/qsNj3L45kP6KqyDuHSe2bhw==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@tweenjs/tween.js": "^25.0.0", | ||||
|         "@zip.js/zip.js": "^2.7.34", | ||||
|         "autolinker": "^4.0.0", | ||||
|         "bitmap-sdf": "^1.0.3", | ||||
|         "dompurify": "^3.0.2", | ||||
|         "draco3d": "^1.5.1", | ||||
|         "earcut": "^3.0.0", | ||||
|         "grapheme-splitter": "^1.0.4", | ||||
|         "jsep": "^1.3.8", | ||||
|         "kdbush": "^4.0.1", | ||||
|         "ktx-parse": "^0.7.0", | ||||
|         "lerc": "^2.0.0", | ||||
|         "mersenne-twister": "^1.1.0", | ||||
|         "meshoptimizer": "^0.21.0", | ||||
|         "pako": "^2.0.4", | ||||
|         "protobufjs": "^7.1.0", | ||||
|         "rbush": "^4.0.0", | ||||
|         "topojson-client": "^3.1.0", | ||||
|         "urijs": "^1.19.7" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">=14.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@cesium/widgets": { | ||||
|       "version": "8.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/@cesium/widgets/-/widgets-8.0.0.tgz", | ||||
|       "integrity": "sha512-Rnid5BbLBZjwFdbr3lgOwK3fhql/BeEbf5l9ZZE+Zc7V8Fb6wgKM8QmrL+bbJ+BtuiELp+SkNxcF97Ktifxb4g==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@cesium/engine": "^11.0.0", | ||||
|         "nosleep.js": "^0.12.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">=14.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@petamoriken/float16": { | ||||
|       "version": "3.8.7", | ||||
|       "resolved": "https://registry.npmjs.org/@petamoriken/float16/-/float16-3.8.7.tgz", | ||||
|       "integrity": "sha512-/Ri4xDDpe12NT6Ex/DRgHzLlobiQXEW/hmG08w1wj/YU7hLemk97c+zHQFp0iZQ9r7YqgLEXZR2sls4HxBf9NA==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/aspromise": { | ||||
|       "version": "1.1.2", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", | ||||
|       "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/base64": { | ||||
|       "version": "1.1.2", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", | ||||
|       "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/codegen": { | ||||
|       "version": "2.0.4", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", | ||||
|       "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/eventemitter": { | ||||
|       "version": "1.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", | ||||
|       "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/fetch": { | ||||
|       "version": "1.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", | ||||
|       "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@protobufjs/aspromise": "^1.1.1", | ||||
|         "@protobufjs/inquire": "^1.1.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@protobufjs/float": { | ||||
|       "version": "1.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", | ||||
|       "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/inquire": { | ||||
|       "version": "1.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", | ||||
|       "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/path": { | ||||
|       "version": "1.1.2", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", | ||||
|       "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/pool": { | ||||
|       "version": "1.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", | ||||
|       "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@protobufjs/utf8": { | ||||
|       "version": "1.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", | ||||
|       "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@tweenjs/tween.js": { | ||||
|       "version": "25.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-25.0.0.tgz", | ||||
|       "integrity": "sha512-XKLA6syeBUaPzx4j3qwMqzzq+V4uo72BnlbOjmuljLrRqdsd3qnzvZZoxvMHZ23ndsRS4aufU6JOZYpCbU6T1A==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@types/node": { | ||||
|       "version": "22.5.4", | ||||
|       "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.4.tgz", | ||||
|       "integrity": "sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "undici-types": "~6.19.2" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@types/rbush": { | ||||
|       "version": "3.0.4", | ||||
|       "resolved": "https://registry.npmjs.org/@types/rbush/-/rbush-3.0.4.tgz", | ||||
|       "integrity": "sha512-knSt9cCW8jj1ZSFcFeBZaX++OucmfPxxHiRwTahZfJlnQsek7O0bazTJHWD2RVj9LEoejUYF2de3/stf+QXcXw==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@zip.js/zip.js": { | ||||
|       "version": "2.7.52", | ||||
|       "resolved": "https://registry.npmjs.org/@zip.js/zip.js/-/zip.js-2.7.52.tgz", | ||||
|       "integrity": "sha512-+5g7FQswvrCHwYKNMd/KFxZSObctLSsQOgqBSi0LzwHo3li9Eh1w5cF5ndjQw9Zbr3ajVnd2+XyiX85gAetx1Q==", | ||||
|       "peer": true, | ||||
|       "engines": { | ||||
|         "bun": ">=0.7.0", | ||||
|         "deno": ">=1.0.0", | ||||
|         "node": ">=16.5.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/autolinker": { | ||||
|       "version": "4.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-4.0.0.tgz", | ||||
|       "integrity": "sha512-fl5Kh6BmEEZx+IWBfEirnRUU5+cOiV0OK7PEt0RBKvJMJ8GaRseIOeDU3FKf4j3CE5HVefcjHmhYPOcaVt0bZw==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.3.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/bitmap-sdf": { | ||||
|       "version": "1.0.4", | ||||
|       "resolved": "https://registry.npmjs.org/bitmap-sdf/-/bitmap-sdf-1.0.4.tgz", | ||||
|       "integrity": "sha512-1G3U4n5JE6RAiALMxu0p1XmeZkTeCwGKykzsLTCqVzfSDaN6S7fKnkIkfejogz+iwqBWc0UYAIKnKHNN7pSfDg==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/cesium": { | ||||
|       "version": "1.121.1", | ||||
|       "resolved": "https://registry.npmjs.org/cesium/-/cesium-1.121.1.tgz", | ||||
|       "integrity": "sha512-WpdaGFd8qCOHiE9khV0sWWjCMXAX1U9Aou8MzMC/F0Akp6YqcOk4HLk4LLhZKeOjO/Bh27iTIW2mxEZ5+dtCxg==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@cesium/engine": "^11.0.0", | ||||
|         "@cesium/widgets": "^8.0.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">=18.18.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/color-name": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.0.0.tgz", | ||||
|       "integrity": "sha512-SbtvAMWvASO5TE2QP07jHBMXKafgdZz8Vrsrn96fiL+O92/FN/PLARzUW5sKt013fjAprK2d2iCn2hk2Xb5oow==", | ||||
|       "peer": true, | ||||
|       "engines": { | ||||
|         "node": ">=12.20" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/color-parse": { | ||||
|       "version": "2.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-2.0.2.tgz", | ||||
|       "integrity": "sha512-eCtOz5w5ttWIUcaKLiktF+DxZO1R9KLNY/xhbV6CkhM7sR3GhVghmt6X6yOnzeaM24po+Z9/S1apbXMwA3Iepw==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "color-name": "^2.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/color-rgba": { | ||||
|       "version": "3.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/color-rgba/-/color-rgba-3.0.0.tgz", | ||||
|       "integrity": "sha512-PPwZYkEY3M2THEHHV6Y95sGUie77S7X8v+h1r6LSAPF3/LL2xJ8duUXSrkic31Nzc4odPwHgUbiX/XuTYzQHQg==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "color-parse": "^2.0.0", | ||||
|         "color-space": "^2.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/color-space": { | ||||
|       "version": "2.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/color-space/-/color-space-2.0.1.tgz", | ||||
|       "integrity": "sha512-nKqUYlo0vZATVOFHY810BSYjmCARrG7e5R3UE3CQlyjJTvv5kSSmPG1kzm/oDyyqjehM+lW1RnEt9It9GNa5JA==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/commander": { | ||||
|       "version": "2.20.3", | ||||
|       "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", | ||||
|       "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/dompurify": { | ||||
|       "version": "3.1.6", | ||||
|       "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.1.6.tgz", | ||||
|       "integrity": "sha512-cTOAhc36AalkjtBpfG6O8JimdTMWNXjiePT2xQH/ppBGi/4uIpmj8eKyIkMJErXWARyINV/sB38yf8JCLF5pbQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/draco3d": { | ||||
|       "version": "1.5.7", | ||||
|       "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz", | ||||
|       "integrity": "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/earcut": { | ||||
|       "version": "3.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/earcut/-/earcut-3.0.0.tgz", | ||||
|       "integrity": "sha512-41Fs7Q/PLq1SDbqjsgcY7GA42T0jvaCNGXgGtsNdvg+Yv8eIu06bxv4/PoREkZ9nMDNwnUSG9OFB9+yv8eKhDg==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/geotiff": { | ||||
|       "version": "2.1.3", | ||||
|       "resolved": "https://registry.npmjs.org/geotiff/-/geotiff-2.1.3.tgz", | ||||
|       "integrity": "sha512-PT6uoF5a1+kbC3tHmZSUsLHBp2QJlHasxxxxPW47QIY1VBKpFB+FcDvX+MxER6UzgLQZ0xDzJ9s48B9JbOCTqA==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@petamoriken/float16": "^3.4.7", | ||||
|         "lerc": "^3.0.0", | ||||
|         "pako": "^2.0.4", | ||||
|         "parse-headers": "^2.0.2", | ||||
|         "quick-lru": "^6.1.1", | ||||
|         "web-worker": "^1.2.0", | ||||
|         "xml-utils": "^1.0.2", | ||||
|         "zstddec": "^0.1.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">=10.19" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/geotiff/node_modules/lerc": { | ||||
|       "version": "3.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/lerc/-/lerc-3.0.0.tgz", | ||||
|       "integrity": "sha512-Rm4J/WaHhRa93nCN2mwWDZFoRVF18G1f47C+kvQWyHGEZxFpTUi73p7lMVSAndyxGt6lJ2/CFbOcf9ra5p8aww==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/grapheme-splitter": { | ||||
|       "version": "1.0.4", | ||||
|       "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", | ||||
|       "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/jsep": { | ||||
|       "version": "1.3.9", | ||||
|       "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.9.tgz", | ||||
|       "integrity": "sha512-i1rBX5N7VPl0eYb6+mHNp52sEuaS2Wi8CDYx1X5sn9naevL78+265XJqy1qENEk7mRKwS06NHpUqiBwR7qeodw==", | ||||
|       "peer": true, | ||||
|       "engines": { | ||||
|         "node": ">= 10.16.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/kdbush": { | ||||
|       "version": "4.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.0.2.tgz", | ||||
|       "integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/ktx-parse": { | ||||
|       "version": "0.7.1", | ||||
|       "resolved": "https://registry.npmjs.org/ktx-parse/-/ktx-parse-0.7.1.tgz", | ||||
|       "integrity": "sha512-FeA3g56ksdFNwjXJJsc1CCc7co+AJYDp6ipIp878zZ2bU8kWROatLYf39TQEd4/XRSUvBXovQ8gaVKWPXsCLEQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/lerc": { | ||||
|       "version": "2.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/lerc/-/lerc-2.0.0.tgz", | ||||
|       "integrity": "sha512-7qo1Mq8ZNmaR4USHHm615nEW2lPeeWJ3bTyoqFbd35DLx0LUH7C6ptt5FDCTAlbIzs3+WKrk5SkJvw8AFDE2hg==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/long": { | ||||
|       "version": "5.2.3", | ||||
|       "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", | ||||
|       "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/mersenne-twister": { | ||||
|       "version": "1.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/mersenne-twister/-/mersenne-twister-1.1.0.tgz", | ||||
|       "integrity": "sha512-mUYWsMKNrm4lfygPkL3OfGzOPTR2DBlTkBNHM//F6hGp8cLThY897crAlk3/Jo17LEOOjQUrNAx6DvgO77QJkA==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/meshoptimizer": { | ||||
|       "version": "0.21.0", | ||||
|       "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.21.0.tgz", | ||||
|       "integrity": "sha512-WabtlpnK/GgD0GMwYd1fBTfYHf4MIcQPEg6dt7y4GuDcY51RzLSkSNE8ZogD7U3Vs2/fIf4z89TOLpA80EOnhg==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/nosleep.js": { | ||||
|       "version": "0.12.0", | ||||
|       "resolved": "https://registry.npmjs.org/nosleep.js/-/nosleep.js-0.12.0.tgz", | ||||
|       "integrity": "sha512-9d1HbpKLh3sdWlhXMhU6MMH+wQzKkrgfRkYV0EBdvt99YJfj0ilCJrWRDYG2130Tm4GXbEoTCx5b34JSaP+HhA==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/ol": { | ||||
|       "version": "10.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/ol/-/ol-10.1.0.tgz", | ||||
|       "integrity": "sha512-/efepydpzhFoeczA9KAN5t7G0WpFhP46ZXEfSl6JbZ7ipQZ2axpkYB2qt0qcOUlPFYMt7/XQFApH652KB08tTg==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@types/rbush": "^3.0.3", | ||||
|         "color-rgba": "^3.0.0", | ||||
|         "color-space": "^2.0.1", | ||||
|         "earcut": "^3.0.0", | ||||
|         "geotiff": "^2.0.7", | ||||
|         "pbf": "4.0.1", | ||||
|         "rbush": "^4.0.0" | ||||
|       }, | ||||
|       "funding": { | ||||
|         "type": "opencollective", | ||||
|         "url": "https://opencollective.com/openlayers" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/ol-cesium": { | ||||
|       "version": "2.17.0", | ||||
|       "resolved": "https://registry.npmjs.org/ol-cesium/-/ol-cesium-2.17.0.tgz", | ||||
|       "integrity": "sha512-XaMXjQYuq2eMPAgAx2e1wjN4I4QwfmPC+9YgU4xoMCj/MBj8oDQusyloQ4TaovypqbZg+0jJDDSZc7BhXckBwA==", | ||||
|       "peer": true, | ||||
|       "peerDependencies": { | ||||
|         "cesium": ">= 1.62.0", | ||||
|         "ol": ">= 6.0.1 || 7 || 8" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/pako": { | ||||
|       "version": "2.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz", | ||||
|       "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/parse-headers": { | ||||
|       "version": "2.0.5", | ||||
|       "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz", | ||||
|       "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/pbf": { | ||||
|       "version": "4.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/pbf/-/pbf-4.0.1.tgz", | ||||
|       "integrity": "sha512-SuLdBvS42z33m8ejRbInMapQe8n0D3vN/Xd5fmWM3tufNgRQFBpaW2YVJxQZV4iPNqb0vEFvssMEo5w9c6BTIA==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "resolve-protobuf-schema": "^2.1.0" | ||||
|       }, | ||||
|       "bin": { | ||||
|         "pbf": "bin/pbf" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/protobufjs": { | ||||
|       "version": "7.4.0", | ||||
|       "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", | ||||
|       "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", | ||||
|       "hasInstallScript": true, | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@protobufjs/aspromise": "^1.1.2", | ||||
|         "@protobufjs/base64": "^1.1.2", | ||||
|         "@protobufjs/codegen": "^2.0.4", | ||||
|         "@protobufjs/eventemitter": "^1.1.0", | ||||
|         "@protobufjs/fetch": "^1.1.0", | ||||
|         "@protobufjs/float": "^1.0.2", | ||||
|         "@protobufjs/inquire": "^1.1.0", | ||||
|         "@protobufjs/path": "^1.1.2", | ||||
|         "@protobufjs/pool": "^1.1.0", | ||||
|         "@protobufjs/utf8": "^1.1.0", | ||||
|         "@types/node": ">=13.7.0", | ||||
|         "long": "^5.0.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">=12.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/protocol-buffers-schema": { | ||||
|       "version": "3.6.0", | ||||
|       "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz", | ||||
|       "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/quick-lru": { | ||||
|       "version": "6.1.2", | ||||
|       "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-6.1.2.tgz", | ||||
|       "integrity": "sha512-AAFUA5O1d83pIHEhJwWCq/RQcRukCkn/NSm2QsTEMle5f2hP0ChI2+3Xb051PZCkLryI/Ir1MVKviT2FIloaTQ==", | ||||
|       "peer": true, | ||||
|       "engines": { | ||||
|         "node": ">=12" | ||||
|       }, | ||||
|       "funding": { | ||||
|         "url": "https://github.com/sponsors/sindresorhus" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/quickselect": { | ||||
|       "version": "3.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz", | ||||
|       "integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/rbush": { | ||||
|       "version": "4.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/rbush/-/rbush-4.0.1.tgz", | ||||
|       "integrity": "sha512-IP0UpfeWQujYC8Jg162rMNc01Rf0gWMMAb2Uxus/Q0qOFw4lCcq6ZnQEZwUoJqWyUGJ9th7JjwI4yIWo+uvoAQ==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "quickselect": "^3.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/resolve-protobuf-schema": { | ||||
|       "version": "2.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz", | ||||
|       "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "protocol-buffers-schema": "^3.3.1" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/rxjs": { | ||||
|       "version": "7.8.1", | ||||
|       "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", | ||||
|       "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "tslib": "^2.1.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/topojson-client": { | ||||
|       "version": "3.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/topojson-client/-/topojson-client-3.1.0.tgz", | ||||
|       "integrity": "sha512-605uxS6bcYxGXw9qi62XyrV6Q3xwbndjachmNxu8HWTtVPxZfEJN9fd/SZS1Q54Sn2y0TMyMxFj/cJINqGHrKw==", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "commander": "2" | ||||
|       }, | ||||
|       "bin": { | ||||
|         "topo2geo": "bin/topo2geo", | ||||
|         "topomerge": "bin/topomerge", | ||||
|         "topoquantize": "bin/topoquantize" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/tslib": { | ||||
|       "version": "2.5.0", | ||||
|       "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", | ||||
|       "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" | ||||
|     }, | ||||
|     "node_modules/undici-types": { | ||||
|       "version": "6.19.8", | ||||
|       "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", | ||||
|       "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/urijs": { | ||||
|       "version": "1.19.11", | ||||
|       "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", | ||||
|       "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/web-worker": { | ||||
|       "version": "1.3.0", | ||||
|       "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.3.0.tgz", | ||||
|       "integrity": "sha512-BSR9wyRsy/KOValMgd5kMyr3JzpdeoR9KVId8u5GVlTTAtNChlsE4yTxeY7zMdNSyOmoKBv8NH2qeRY9Tg+IaA==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/xml-utils": { | ||||
|       "version": "1.10.1", | ||||
|       "resolved": "https://registry.npmjs.org/xml-utils/-/xml-utils-1.10.1.tgz", | ||||
|       "integrity": "sha512-Dn6vJ1Z9v1tepSjvnCpwk5QqwIPcEFKdgnjqfYOABv1ngSofuAhtlugcUC3ehS1OHdgDWSG6C5mvj+Qm15udTQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/zone.js": { | ||||
|       "version": "0.14.10", | ||||
|       "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz", | ||||
|       "integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==", | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/zstddec": { | ||||
|       "version": "0.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/zstddec/-/zstddec-0.1.0.tgz", | ||||
|       "integrity": "sha512-w2NTI8+3l3eeltKAdK8QpiLo/flRAr2p8AGeakfMZOXBxOg9HIu4LVDxBi81sYgVhFhdJjv1OrB5ssI8uFPoLg==", | ||||
|       "peer": true | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -4,14 +4,13 @@ | ||||
|   "publishConfig": { | ||||
|     "registry": "https://repository.akkerweb.nl/repository/npm-hosted/" | ||||
|   }, | ||||
|   "peerDependencies": { | ||||
|     "@angular/common":  ">=14.0.0", | ||||
|     "@angular/core":  ">=14.0.0", | ||||
|     "ngx-openlayers": "1.0.0-next.19", | ||||
|     "cesium": ">=1.82.1", | ||||
|     "ol-cesium": ">=2.13.0" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "tslib": "^2.0.0" | ||||
|   }, | ||||
|   "peerDependencies": { | ||||
|     "@angular/common": "^18.2.3", | ||||
|     "@angular/core":  "^18.2.3", | ||||
|     "cesium": "^1.97.0", | ||||
|     "ol-cesium": ">=2.13.0" | ||||
|   } | ||||
| } | ||||
| @@ -1,14 +1,15 @@ | ||||
| import { NgModule } from '@angular/core'; | ||||
| import { AppCommonModule } from '@farmmaps/common'; | ||||
| import { AppCommonMapModule } from '@farmmaps/common-map'; | ||||
| import { AngularOpenlayersModule } from '@farmmaps/ng-openlayers'; | ||||
| import { Switch2D3DComponent } from './components/olcs/switch2d3d/switch2d3d.component'; | ||||
| import { AppCommonModule} from '@farmmaps/common'; | ||||
| import { AppCommonMapModule} from '@farmmaps/common-map'; | ||||
|  | ||||
|  | ||||
| @NgModule({ | ||||
|   declarations: [Switch2D3DComponent], | ||||
|   imports: [ | ||||
|     AppCommonModule, | ||||
|     AppCommonMapModule | ||||
|     AppCommonMapModule, | ||||
|     AngularOpenlayersModule, | ||||
|   ], | ||||
|   exports: [Switch2D3DComponent] | ||||
| }) | ||||
|   | ||||
| @@ -1,17 +1,15 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .twotreed { | ||||
|   display:block;  | ||||
|   width:2.5em; | ||||
|   height:2.5em; | ||||
|   background-color: $body-bg; | ||||
|   background-color: var(--bs-body-bg); | ||||
|   background-size: contain; | ||||
|   margin-top:0.5em; | ||||
|   text-align: center; | ||||
|   line-height: 2.5em;  | ||||
|   border-radius: 1.75em; | ||||
|   padding: 0; | ||||
|   color: $secondary; | ||||
|   color: var(--bs-secondary); | ||||
| } | ||||
|  | ||||
| .fa-spinner { | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| import { Component, OnInit,Input,Host  } from '@angular/core'; | ||||
| import { Interaction} from 'ol/interaction'; | ||||
| import { MapComponent } from 'ngx-openlayers'; | ||||
| import { MapComponent } from '@farmmaps/ng-openlayers'; | ||||
| import OLCesium from 'olcs/OLCesium'; | ||||
| import RasterSynchronizer from 'olcs/RasterSynchronizer'; | ||||
| import VectorSynchronizer from 'olcs/VectorSynchronizer'; | ||||
| @@ -49,7 +49,11 @@ export class Switch2D3DComponent { | ||||
|       this.interactions=[]; | ||||
|       this.map.instance.getInteractions().forEach((i) => { | ||||
|         if(i.getActive()) { | ||||
|           this.interactions.push(i); | ||||
|           // AW-6241 TODO How to fix? | ||||
|           // error TS2345: Argument of type 'import("C:/Project/Farmmaps/FarmMapsLib/node_modules/ol/interaction/Interaction").default' | ||||
|           // is not assignable to parameter of type 'import("C:/Project/Farmmaps/FarmMapsLib/projects/common-map3d/node_modules/ol/interaction/Interaction").default'. | ||||
|           // Line below commented out | ||||
|           // this.interactions.push(i); | ||||
|           i.setActive(false); | ||||
|         } | ||||
|       }); | ||||
|   | ||||
| @@ -8,13 +8,6 @@ import { | ||||
|   platformBrowserDynamicTesting | ||||
| } from '@angular/platform-browser-dynamic/testing'; | ||||
|  | ||||
| declare const require: { | ||||
|   context(path: string, deep?: boolean, filter?: RegExp): { | ||||
|     keys(): string[]; | ||||
|     <T>(id: string): T; | ||||
|   }; | ||||
| }; | ||||
|  | ||||
| // First, initialize the Angular testing environment. | ||||
| getTestBed().initTestEnvironment( | ||||
|   BrowserDynamicTestingModule, | ||||
| @@ -22,7 +15,3 @@ getTestBed().initTestEnvironment( | ||||
|     teardown: { destroyAfterEach: false } | ||||
| } | ||||
| ); | ||||
| // Then we find all the tests. | ||||
| const context = require.context('./', true, /\.spec\.ts$/); | ||||
| // And load the modules. | ||||
| context.keys().map(context); | ||||
|   | ||||
| @@ -11,18 +11,27 @@ | ||||
|     "emitDecoratorMetadata": true, | ||||
|     "experimentalDecorators": true, | ||||
|     "importHelpers": true, | ||||
|     "esModuleInterop": true, | ||||
|     "types": [], | ||||
|     "lib": [ | ||||
|       "dom", | ||||
|       "es2018" | ||||
|     ], | ||||
|     "paths": { | ||||
|       "@angular/*": [ | ||||
|  | ||||
|       "node_modules/@angular/*" | ||||
|  | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   "angularCompilerOptions": { | ||||
|     "skipTemplateCodegen": true, | ||||
|     "strictMetadataEmit": true, | ||||
|     "fullTemplateTypeCheck": true, | ||||
|     "strictInjectionParameters": true, | ||||
|     "enableResourceInlining": true | ||||
|     "enableResourceInlining": true, | ||||
|     "compilationMode": "partial" | ||||
|   }, | ||||
|   "exclude": [ | ||||
|     "src/test.ts", | ||||
|   | ||||
							
								
								
									
										3755
									
								
								projects/common/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3755
									
								
								projects/common/package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,25 +1,25 @@ | ||||
| { | ||||
|   "name": "@farmmaps/common", | ||||
|   "version": "2.0.0", | ||||
|   "version": "2.1.0", | ||||
|   "publishConfig": { | ||||
|     "registry": "https://repository.akkerweb.nl/repository/npm-hosted/" | ||||
|   }, | ||||
|   "peerDependencies": { | ||||
|     "@ng-bootstrap/ng-bootstrap": ">=10.0.0", | ||||
|     "@angular/common": ">=14.0.0", | ||||
|     "@angular/core": ">=14.0.0", | ||||
|     "@angular/forms": ">=14.0.0", | ||||
|     "@ngrx/effects": ">=14.0.0", | ||||
|     "@ngrx/router-store": ">=14.0.0", | ||||
|     "@ngrx/store": ">=14.0.0", | ||||
|     "tassign": ">=1.0.0", | ||||
|     "bootstrap": ">=4.4.1", | ||||
|     "@microsoft/signalr": ">=3.1.3", | ||||
|     "ngx-uploadx": ">=5.1.0", | ||||
|     "angular-oauth2-oidc": ">=13.0.0", | ||||
|     "moment": ">=2.27.0", | ||||
|     "ngx-avatar": ">=4.1.0", | ||||
|     "ngx-image-cropper": ">=3.3.5", | ||||
|     "ngx-clipboard": ">=14.0.1" | ||||
|     "@ng-bootstrap/ng-bootstrap": "^17.0.1", | ||||
|     "@angular/common": "^18.2.3", | ||||
|     "@angular/core": "^18.2.3", | ||||
|     "@angular/forms": "^18.2.3", | ||||
|     "@ngrx/effects": "^18.0.2", | ||||
|     "@ngrx/router-store": "^18.0.2", | ||||
|     "@ngrx/store": "^18.0.2", | ||||
|     "tassign": "^1.0.0", | ||||
|     "bootstrap": "^5.3.3", | ||||
|     "@microsoft/signalr": "^3.1.16", | ||||
|     "ngx-uploadx": "^6.2.0", | ||||
|     "angular-oauth2-oidc": "^17.0.2", | ||||
|     "moment": "^2.29.4", | ||||
|     "ngx-avatars": "^1.8.0", | ||||
|     "ngx-image-cropper": "^7.0.0", | ||||
|     "ngx-clipboard": "^16.0.0" | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -71,6 +71,8 @@ export const TOGGLENOTIFICATIONMENU = '[AppCommon] ToggleNotificationMenu'; | ||||
|  | ||||
| export const TOGGLEHELPMENU = '[AppCommon] ToggleHelpMenu'; | ||||
|  | ||||
| export const TOGGLESETTINGMENU = '[AppCommon] ToggleSettingMenu'; | ||||
|  | ||||
| export const SETMENUVISIBLE = '[AppCommon] SetMenuVisible'; | ||||
|  | ||||
| export const ONLINE = '[AppCommon] Online'; | ||||
| @@ -126,7 +128,7 @@ export class InitUserSettingsRoot implements Action { | ||||
| export class InitUserSettingsRootSuccess implements Action { | ||||
|   readonly type = INITUSERSETTINGSROOTSUCCESS; | ||||
|  | ||||
|   constructor(public item: IItem ) { } | ||||
|   constructor(public item: IListItem ) { } | ||||
| } | ||||
|  | ||||
| export class InitRoot implements Action { | ||||
| @@ -332,6 +334,12 @@ export class ToggleHelpMenu implements Action { | ||||
|   constructor() { } | ||||
| } | ||||
|  | ||||
| export class ToggleSettingMenu implements Action { | ||||
|   readonly type = TOGGLESETTINGMENU; | ||||
|  | ||||
|   constructor() { } | ||||
| } | ||||
|  | ||||
| export class SetMenuVisible implements Action { | ||||
|   readonly type = SETMENUVISIBLE; | ||||
|  | ||||
| @@ -408,6 +416,7 @@ export type Actions = OpenModal | ||||
|   | ToggleAppMenu | ||||
|   | ToggleNotificationMenu | ||||
|   | ToggleHelpMenu | ||||
|   | ToggleSettingMenu | ||||
|   | NotificationEvent | ||||
|   | SetUnreadNotifications; | ||||
|  | ||||
|   | ||||
| @@ -7,6 +7,7 @@ import {NavBarGuard} from './services/nav-bar-guard.service'; | ||||
| import {FullScreenGuard} from './services/full-screen-guard.service'; | ||||
| import {SessionClearedComponent} from './components/session-cleared/session-cleared.component'; | ||||
| import {NotFoundComponent} from './components/not-found/not-found.component'; | ||||
| import { ProductionGuard } from './services/production-guard.service'; | ||||
|  | ||||
|  | ||||
| const routes = [ | ||||
| @@ -21,7 +22,7 @@ const routes = [ | ||||
|   }, | ||||
|   { | ||||
|     path: '**', component: NotFoundComponent, | ||||
|     canActivate: [NavBarGuard]    | ||||
|     canActivate: [NavBarGuard, ProductionGuard] | ||||
|   } | ||||
| ]; | ||||
|  | ||||
|   | ||||
| @@ -18,6 +18,7 @@ import { EventService } from './services/event.service'; | ||||
| import { TypeaheadService } from './services/typeahead.service'; | ||||
| import { UserService } from './services/user.service'; | ||||
| import { ImageService } from './services/image.service'; | ||||
| import { DownloadService } from './services/download.service'; | ||||
| import { GeolocatorService } from './services/geolocator.service'; | ||||
| import { WeatherService} from './services/weather.service'; | ||||
| import { AppConfig } from './shared/app.config'; | ||||
| @@ -48,6 +49,7 @@ export { | ||||
|   TypeaheadService, | ||||
|   UserService, | ||||
|   ImageService, | ||||
|   DownloadService, | ||||
|   GeolocatorService, | ||||
|   WeatherService, | ||||
|   AppConfig, | ||||
|   | ||||
| @@ -1,16 +1,16 @@ | ||||
| // angular modules | ||||
| import { NgModule, APP_INITIALIZER, ModuleWithProviders, Injector, Optional, SkipSelf,InjectionToken } from '@angular/core'; | ||||
| import { CommonModule, DatePipe } from '@angular/common'; | ||||
| import { HttpClientModule, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http'; | ||||
| import { CommonModule } from '@angular/common'; | ||||
| import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; | ||||
| import { InjectionToken, NgModule } from '@angular/core'; | ||||
| import { FormsModule } from '@angular/forms'; | ||||
|  | ||||
| // external modules | ||||
| import { OAuthModule, AuthConfig, OAuthService, OAuthStorage } from 'angular-oauth2-oidc'; | ||||
| import { StoreModule, Store } from '@ngrx/store'; | ||||
| import { EffectsModule } from '@ngrx/effects'; | ||||
| import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | ||||
| import { UploadxModule } from 'ngx-uploadx'; | ||||
| import { EffectsModule } from '@ngrx/effects'; | ||||
| import { StoreModule } from '@ngrx/store'; | ||||
| import { OAuthModule } from 'angular-oauth2-oidc'; | ||||
| import { ClipboardModule } from 'ngx-clipboard'; | ||||
| import { UploadxModule } from 'ngx-uploadx'; | ||||
|  | ||||
|  | ||||
| // routing module | ||||
| @@ -19,123 +19,71 @@ import { AppCommonRoutingModule } from './common-routing.module'; | ||||
| import { MODULE_NAME } from './module-name'; | ||||
|  | ||||
| //components | ||||
| import { SafePipe } from './shared/safe.pipe'; | ||||
| import { AuthConfigFactory, IAuthconfigFactory } from './shared/authconfigFactory'; | ||||
| import { AvatarModule } from 'ngx-avatars'; | ||||
| import { ImageCropperModule } from 'ngx-image-cropper'; | ||||
| import * as commonActions from './actions/app-common.actions'; | ||||
| import { AppMenuComponent } from './components/app-menu/app-menu.component'; | ||||
| import { AppComponent } from './components/app/app.component'; | ||||
| import { AuthCallbackComponent } from './components/auth-callback/auth-callback.component'; | ||||
| import { SessionClearedComponent } from './components/session-cleared/session-cleared.component'; | ||||
| import { ResumableFileUploadComponent } from './components/resumable-file-upload/resumable-file-upload.component'; | ||||
| import { NotFoundComponent } from './components/not-found/not-found.component'; | ||||
| import { NotImplementedComponent } from './components/not-implemented/not-implemented.component'; | ||||
| import { SidePanelComponent } from './components/side-panel/side-panel.component'; | ||||
| import { TimespanComponent } from './components/timespan/timespan.component'; | ||||
| import { TagInputComponent } from './components/tag-input/tag-input.component'; | ||||
| import { MenuBackgroundComponent } from './components/menu-background/menu-background.component'; | ||||
| import { HasPackageDirective} from './components/has-package/has-package.directive'; | ||||
| import { PackageExistsDirective} from './components/package-exists/package-exists.directive'; | ||||
| import { HasClaimDirective } from './components/has-claim/has-claim.directive'; | ||||
| import { HasRoleDirective } from './components/has-role/has-role.directive'; | ||||
| import { UserMenuComponent} from './components/user-menu/user-menu.component'; | ||||
| import { ThumbnailComponent } from './components/thumbnail/thumbnail.component'; | ||||
| import { Alert } from './enumerations/alert.enum'; | ||||
| import { IEventMessage } from './models/event.message'; | ||||
| import { IItem, Item } from './models/item'; | ||||
| import { WeatherCurrentObservation } from './models/weatherCurrentObservation'; | ||||
| import { IItemType } from './models/item.type'; | ||||
| import { IItemTypes } from './models/item.types'; | ||||
| import { IItemTask, ItemTask } from './models/itemTask'; | ||||
| import { IListItem } from './models/list.item'; | ||||
| import { ITypeaheadItem } from './models/typeahead.item' | ||||
| import { IJsonline } from './models/json-line'; | ||||
| import { ISenMLItem } from './models/senml-item'; | ||||
| import { IPackage,IPackages } from './models/package'; | ||||
| import { IUser } from './models/user'; | ||||
| import { IQueryState } from './models/query.state'; | ||||
| import { IDataLayer } from './models/data.layer'; | ||||
| import { IColor,IGradientstop} from './models/gradient'; | ||||
| import * as commonActions from './actions/app-common.actions'; | ||||
| import * as commonReducers from './reducers/app-common.reducer'; | ||||
| import * as commonEffects from './effects/app-common.effects'; | ||||
| import { SecureOAuthStorage} from './shared/secureOAuthStorage'; | ||||
| import { GradientComponent } from './components/gradient/gradient.component'; | ||||
| import { GradientSelectComponent } from './components/gradient-select/gradient-select.component'; | ||||
| import { AppMenuComponent } from './components/app-menu/app-menu.component'; | ||||
| import { NotificationMenuComponent} from './components/notification-menu/notification-menu.component'; | ||||
| import { HelpMenuComponent} from './components/help-menu/help-menu.component'; | ||||
| import { AvatarComponent } from './components/avatar/avatar.component'; | ||||
| import { BackButtonComponent } from './components/back-button/back-button.component'; | ||||
| import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component'; | ||||
| import { AvatarComponent } from './components/avatar/avatar.component'; | ||||
| import { AvatarModule } from 'ngx-avatar'; | ||||
| import { ImageCropperModule } from 'ngx-image-cropper'; | ||||
| import { GradientSelectComponent } from './components/gradient-select/gradient-select.component'; | ||||
| import { GradientComponent } from './components/gradient/gradient.component'; | ||||
| import { HasClaimDirective } from './components/has-claim/has-claim.directive'; | ||||
| import { HasPackageDirective } from './components/has-package/has-package.directive'; | ||||
| import { HasRoleDirective } from './components/has-role/has-role.directive'; | ||||
| import { HelpMenuComponent } from './components/help-menu/help-menu.component'; | ||||
| import { SettingMenuComponent } from './components/setting-menu/setting-menu.component'; | ||||
| import { ItemLinkComponent } from './components/item-link/item-link.component'; | ||||
| import { MenuBackgroundComponent } from './components/menu-background/menu-background.component'; | ||||
| import { NotFoundComponent } from './components/not-found/not-found.component'; | ||||
| import { NotImplementedComponent } from './components/not-implemented/not-implemented.component'; | ||||
| import { NotificationMenuComponent } from './components/notification-menu/notification-menu.component'; | ||||
| import { PackageExistsDirective } from './components/package-exists/package-exists.directive'; | ||||
| import { ResumableFileUploadComponent } from './components/resumable-file-upload/resumable-file-upload.component'; | ||||
| import { SessionClearedComponent } from './components/session-cleared/session-cleared.component'; | ||||
| import { SidePanelComponent } from './components/side-panel/side-panel.component'; | ||||
| import { TagInputComponent } from './components/tag-input/tag-input.component'; | ||||
| import { ThumbnailComponent } from './components/thumbnail/thumbnail.component'; | ||||
| import { TimespanComponent } from './components/timespan/timespan.component'; | ||||
| import { UserMenuComponent } from './components/user-menu/user-menu.component'; | ||||
| import * as commonEffects from './effects/app-common.effects'; | ||||
| import { Alert } from './enumerations/alert.enum'; | ||||
| import { IDataLayer } from './models/data.layer'; | ||||
| import { IEventMessage } from './models/event.message'; | ||||
| import { IColor, IGradientstop } from './models/gradient'; | ||||
| import { IItem, Item } from './models/item'; | ||||
| import { IItemType } from './models/item.type'; | ||||
| import { IItemTypes } from './models/item.types'; | ||||
| import { IItemLinkType } from './models/itemlink.type'; | ||||
| import { IItemTask, ItemTask } from './models/itemTask'; | ||||
| import { IJsonline } from './models/json-line'; | ||||
| import { IListItem } from './models/list.item'; | ||||
| import { IPackage, IPackages } from './models/package'; | ||||
| import { IQueryState } from './models/query.state'; | ||||
| import { ISenMLItem } from './models/senml-item'; | ||||
| import { ITypeaheadItem } from './models/typeahead.item'; | ||||
| import { IUrlType } from './models/url.type'; | ||||
| import { IUser } from './models/user'; | ||||
| import { WeatherCurrentObservation } from './models/weatherCurrentObservation'; | ||||
| import * as commonReducers from './reducers/app-common.reducer'; | ||||
| import { AuthConfigFactory, IAuthconfigFactory } from './shared/authconfigFactory'; | ||||
| import { SafePipe } from './shared/safe.pipe'; | ||||
| import { SecureOAuthStorage } from './shared/secureOAuthStorage'; | ||||
|  | ||||
| export const FM_COMMON_STARTPAGE = new InjectionToken<string>('fm-common-startpage'); | ||||
|  | ||||
| export { | ||||
|   SafePipe, | ||||
|   AuthCallbackComponent, | ||||
|   AppComponent, | ||||
|   SessionClearedComponent, | ||||
|   ResumableFileUploadComponent, | ||||
|   NotFoundComponent, | ||||
|   NotImplementedComponent, | ||||
|   SidePanelComponent, | ||||
|   TimespanComponent, | ||||
|   TagInputComponent, | ||||
|   UserMenuComponent, | ||||
|   ThumbnailComponent, | ||||
|   HasPackageDirective, | ||||
|   PackageExistsDirective, | ||||
|   HasClaimDirective, | ||||
|   HasRoleDirective, | ||||
|   Alert, | ||||
|   IEventMessage, | ||||
|   IItem, | ||||
|   Item, | ||||
|   IItemType, | ||||
|   IItemTypes, | ||||
|   IItemTask, | ||||
|   ItemTask, | ||||
|   IListItem, | ||||
|   ITypeaheadItem, | ||||
|   IUser, | ||||
|   IQueryState, | ||||
|   IPackage, | ||||
|   IPackages, | ||||
|   commonActions, | ||||
|   commonReducers, | ||||
|   IAuthconfigFactory, | ||||
|   AuthConfigFactory, | ||||
|   MenuBackgroundComponent, | ||||
|   SecureOAuthStorage, | ||||
|   WeatherCurrentObservation, | ||||
|   IJsonline, | ||||
|   ISenMLItem, | ||||
|   IDataLayer, | ||||
|   IColor, | ||||
|   IGradientstop, | ||||
|   BackButtonComponent, | ||||
|   AvatarComponent, | ||||
|   EditImageModalComponent, | ||||
|   Alert, AppComponent, AuthCallbackComponent, AuthConfigFactory, AvatarComponent, BackButtonComponent, commonActions, | ||||
|   commonReducers, EditImageModalComponent, | ||||
|   GradientComponent, | ||||
|   GradientSelectComponent | ||||
|   GradientSelectComponent, HasClaimDirective, HasPackageDirective, HasRoleDirective, IAuthconfigFactory, IColor, IDataLayer, IEventMessage, IGradientstop, IItem, IItemLinkType, IItemTask, IItemType, IItemTypes, IJsonline, IListItem, IPackage, | ||||
|   IPackages, IQueryState, ISenMLItem, Item, ItemLinkComponent, ItemTask, ITypeaheadItem, IUrlType, IUser, MenuBackgroundComponent, NotFoundComponent, | ||||
|   NotImplementedComponent, PackageExistsDirective, ResumableFileUploadComponent, SafePipe, SecureOAuthStorage, SessionClearedComponent, SidePanelComponent, TagInputComponent, ThumbnailComponent, TimespanComponent, UserMenuComponent, WeatherCurrentObservation | ||||
| }; | ||||
|  | ||||
| @NgModule({ | ||||
|   imports: [ | ||||
|     CommonModule, | ||||
|     HttpClientModule, | ||||
|     AppCommonRoutingModule, | ||||
|     StoreModule.forFeature(MODULE_NAME, commonReducers.reducer), | ||||
|     EffectsModule.forFeature([commonEffects.AppCommonEffects]), | ||||
|     OAuthModule.forRoot(), | ||||
|     NgbModule, | ||||
|     FormsModule, | ||||
|     UploadxModule, | ||||
|     ClipboardModule, | ||||
|     AvatarModule, | ||||
|     ImageCropperModule | ||||
|   ], | ||||
|   declarations: [ | ||||
| @NgModule({ declarations: [ | ||||
|         AppComponent, | ||||
|         AuthCallbackComponent, | ||||
|         SidePanelComponent, | ||||
| @@ -157,10 +105,12 @@ export { | ||||
|         AppMenuComponent, | ||||
|         NotificationMenuComponent, | ||||
|         HelpMenuComponent, | ||||
|         SettingMenuComponent, | ||||
|         BackButtonComponent, | ||||
|         ThumbnailComponent, | ||||
|         EditImageModalComponent, | ||||
|     AvatarComponent | ||||
|         AvatarComponent, | ||||
|         ItemLinkComponent | ||||
|     ], | ||||
|     exports: [ | ||||
|         NgbModule, | ||||
| @@ -189,8 +139,18 @@ export { | ||||
|         BackButtonComponent, | ||||
|         ThumbnailComponent, | ||||
|         AvatarComponent, | ||||
|         ItemLinkComponent, | ||||
|         EditImageModalComponent | ||||
|   ] | ||||
| }) | ||||
|     ], imports: [CommonModule, | ||||
|         AppCommonRoutingModule, | ||||
|         StoreModule.forFeature(MODULE_NAME, commonReducers.reducer), | ||||
|         EffectsModule.forFeature([commonEffects.AppCommonEffects]), | ||||
|         OAuthModule.forRoot(), | ||||
|         NgbModule, | ||||
|         FormsModule, | ||||
|         UploadxModule, | ||||
|         ClipboardModule, | ||||
|         AvatarModule, | ||||
|         ImageCropperModule], providers: [provideHttpClient(withInterceptorsFromDi())] }) | ||||
| export class AppCommonModule { | ||||
| } | ||||
|   | ||||
| @@ -33,6 +33,7 @@ | ||||
|     <fm-resumable-file-upload></fm-resumable-file-upload> | ||||
|   </ng-container>   | ||||
|   <div class="user-menu apponly"> | ||||
|     <fm-setting-menu [user]="user|async" [showMenu]="settingMenuVisible|async"></fm-setting-menu> | ||||
|     <fm-help-menu [user]="user|async" [showMenu]="helpMenuVisible|async"></fm-help-menu> | ||||
|     <fm-notification-menu [user]="user|async" [unread]="unreadNotifications|async" [showMenu]="notificationMenuVisible|async"></fm-notification-menu> | ||||
|     <fm-app-menu [user]="user|async" [showMenu]="appMenuVisible|async"></fm-app-menu> | ||||
|   | ||||
| @@ -1,9 +1,3 @@ | ||||
| /* Import Bootstrap & Fonts */ | ||||
|  | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
|  | ||||
|  | ||||
| // custom styles | ||||
|  | ||||
| .btn:focus { | ||||
| @@ -16,7 +10,7 @@ | ||||
|  | ||||
| .form-control:focus { | ||||
|   box-shadow: none; | ||||
|   border-color: $input-border-color; | ||||
|   border-color: var(--bs-input-border-color); | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -125,7 +119,7 @@ body { background: #f1f1f1; line-height: 18px; user-select:none;font-family: Lat | ||||
|   max-height:0em; | ||||
| } | ||||
|  | ||||
| fm-help-menu,fm-app-menu,fm-user-menu,fm-notification-menu { | ||||
| fm-help-menu,fm-app-menu,fm-user-menu,fm-notification-menu,fm-setting-menu { | ||||
|   display: inline-block; | ||||
|   margin-left: 1rem; | ||||
| } | ||||
|   | ||||
| @@ -45,6 +45,7 @@ export class AppComponent implements OnInit, OnDestroy { | ||||
|   public accountMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetAccountMenuVisible); | ||||
|   public appMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetAppMenuVisible); | ||||
|   public notificationMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetNotificationMenuVisible); | ||||
|   public settingMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetSettingMenuVisible); | ||||
|   public helpMenuVisible: Observable<boolean> = this.store$.select(appReducers.SelectGetHelpMenuVisible); | ||||
|   public unreadNotifications: Observable<number> = this.store$.select(appReducers.SelectgetUnreadNotifications); | ||||
|   public user: Observable<IUser> = this.store$.select(appReducers.SelectGetUser); | ||||
| @@ -69,7 +70,7 @@ export class AppComponent implements OnInit, OnDestroy { | ||||
|  | ||||
|   getActionFromEvent(event: IEventMessage): Action { | ||||
|     let action: Action = null; | ||||
|     console.debug(`${event.eventType} Event received`); | ||||
|     //console.debug(`${event.eventType} Event received`); | ||||
|     switch (event.eventType) { | ||||
|       case "ItemChanged": { | ||||
|         action = new commonActions.ItemChangedEvent(event.itemCode, event.attributes); | ||||
| @@ -115,18 +116,11 @@ export class AppComponent implements OnInit, OnDestroy { | ||||
|     return action; | ||||
|   } | ||||
|  | ||||
|   async loadItemTypes() { | ||||
|     await this.itemTypeService$.load(this.appConfig$) | ||||
|   } | ||||
|  | ||||
|   ngOnInit() { | ||||
|     this.InstallRouteEventHandler(); | ||||
|     this.InstallEventServiceEventHandler(); | ||||
|     this.InstallAuthenticationEventHandler(); | ||||
|     this.InstallHealthCheck(); | ||||
|  | ||||
|     //load item types | ||||
|     this.loadItemTypes(); | ||||
|   } | ||||
|  | ||||
|   @HostListener('document:keyup', ['$event']) | ||||
| @@ -146,12 +140,12 @@ export class AppComponent implements OnInit, OnDestroy { | ||||
|   private InstallAuthenticationEventHandler() { | ||||
|     // auth event handler | ||||
|     this.oauthService$.events.subscribe((event) => { | ||||
|       console.debug(event.type); | ||||
|       //console.debug(event.type); | ||||
|       if (event.type == 'token_error' || event.type == 'silent_refresh_timeout' || event.type == 'logout') { | ||||
|         const e = event as OAuthErrorEvent; | ||||
|         const p = e.params as any; | ||||
|         if (event.type == 'silent_refresh_timeout' || event.type == 'logout' || (p.error && p.error == 'login_required')) { | ||||
|           console.debug("Session expired"); | ||||
|           //console.debug("Session expired"); | ||||
|           this.router.navigate(['loggedout'], { queryParams: { redirectTo: this.router.url } }); | ||||
|         } | ||||
|       } | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| import { Router, CanActivate } from '@angular/router'; | ||||
| import { Router } from '@angular/router'; | ||||
| import { Injectable } from '@angular/core'; | ||||
| import { OAuthService } from 'angular-oauth2-oidc'; | ||||
| import {  } from '@angular/router'; | ||||
| @@ -6,7 +6,7 @@ import {  } from '@angular/router'; | ||||
| @Injectable({ | ||||
|   providedIn: 'root', | ||||
| }) | ||||
| export class AuthCallbackGuard implements CanActivate { | ||||
| export class AuthCallbackGuard  { | ||||
|  | ||||
|   constructor(private router$: Router,private oauthService$:OAuthService) {} | ||||
|  | ||||
|   | ||||
| @@ -1,10 +1,10 @@ | ||||
| <span class="avatar-container" [title]="name"> | ||||
| 	<ngx-avatar  | ||||
| 	<ngx-avatars  | ||||
| 		class="farmmaps-avatar" | ||||
| 		[src]="src"  | ||||
| 		[name]="name"  | ||||
| 		[size]="size" | ||||
| 		[round]='true' | ||||
| 		> | ||||
| 	</ngx-avatar> | ||||
| 	</ngx-avatars> | ||||
| </span> | ||||
| @@ -1,12 +1,10 @@ | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| .back-button { | ||||
|   cursor: default; | ||||
|   color: $primary; | ||||
|   color: var(--bs-primary); | ||||
|   display: block;   | ||||
| } | ||||
|  | ||||
| .back-button:hover { | ||||
|   cursor: pointer; | ||||
|   color: $secondary; | ||||
|   color: var(--bs-secondary); | ||||
| } | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| import {Component, HostListener} from '@angular/core'; | ||||
| import {Location} from "@angular/common"; | ||||
| import { DeviceService} from '../../services/device.service'; | ||||
| import { Location } from "@angular/common"; | ||||
| import { Component, EventEmitter, HostListener, Output } from '@angular/core'; | ||||
| import { DeviceService } from '../../services/device.service'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'fm-back-button', | ||||
| @@ -8,16 +8,18 @@ import { DeviceService} from '../../services/device.service'; | ||||
|   styleUrls: ['./back-button.component.scss'] | ||||
| }) | ||||
| export class BackButtonComponent { | ||||
|   @Output() beforeLocationBack = new EventEmitter(); | ||||
|  | ||||
|   @HostListener('click') | ||||
|   onBackClicked() { | ||||
|     this.beforeLocationBack.emit(); | ||||
|     this.location.back(); | ||||
|   } | ||||
|  | ||||
|   constructor(private location: Location,private deviceService:DeviceService) { } | ||||
|   constructor(private location: Location,private deviceService:DeviceService) {     | ||||
|   } | ||||
|  | ||||
|   public show() { | ||||
|     return !this.deviceService.IsMobile(); | ||||
|   } | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| import { Component, OnInit,ViewChild,ElementRef,EventEmitter, Output } from '@angular/core'; | ||||
| import { HttpClient, HttpParams,HttpHeaders } from "@angular/common/http"; | ||||
| import { HttpClient, HttpParams, HttpHeaders } from "@angular/common/http"; | ||||
| import {NgbModal} from "@ng-bootstrap/ng-bootstrap" | ||||
| import { ImageCroppedEvent,LoadedImage } from 'ngx-image-cropper'; | ||||
| import {ImageService } from '../../services/image.service'; | ||||
|   | ||||
| @@ -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(); | ||||
|     }       | ||||
|   } | ||||
| } | ||||
| @@ -1,7 +1,3 @@ | ||||
| /* Import Bootstrap & Fonts */ | ||||
|  | ||||
| @import "~bootstrap/scss/bootstrap.scss"; | ||||
|  | ||||
| div.resumable-file-upload { | ||||
|   position: fixed; | ||||
|   right: 0px; | ||||
| @@ -76,7 +72,7 @@ div.card-header span.fa { | ||||
|   } | ||||
|  | ||||
| .upload-file.busy > div > span.fa-times { | ||||
|   color: $danger; | ||||
|   color: var(--bs-danger); | ||||
|   width: 20px; | ||||
|   display: inline-block; | ||||
|   vertical-align: middle; | ||||
| @@ -94,7 +90,7 @@ div.card-header span.fa { | ||||
|   } | ||||
|  | ||||
|   .upload-file > div.errormessage { | ||||
|     color: $danger; | ||||
|     color: var(--bs-danger); | ||||
|     display: none; | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -0,0 +1,8 @@ | ||||
| <div> | ||||
|     <div (click)="toggle($event)" class="rounded-circle menu-button hidden"  [ngClass]="{'hidden':!user || noContent}"> | ||||
|         <span i18n-title title="Settings"><i class="fas fa-gear" aria-hidden="true"></i></span> | ||||
|         <div class="menu hidden" [ngClass]="{'hidden':!showMenu}">                                      | ||||
|             <router-outlet name="setting-menu" (activate)="activateRoute()" (deactivate)="deActivateRoute()"></router-outlet>             | ||||
|        </div> | ||||
|     </div> | ||||
| </div> | ||||
| @@ -0,0 +1,80 @@ | ||||
| .menu-button { | ||||
|     background-color: gray;   | ||||
|     display: inline-block; | ||||
|     width: 2.5em; | ||||
|     height: 2.5em; | ||||
|     line-height: 2.5em; | ||||
|     text-align: center; | ||||
|     font-size: 1rem; | ||||
|     position: relative; | ||||
| } | ||||
|  | ||||
| div.menu-button > span { | ||||
|     color:white; | ||||
| } | ||||
|  | ||||
| .menu { | ||||
|     max-height: calc( 100vh - 4rem); | ||||
|     //transition: max-height 0.2s; | ||||
|     overflow: hidden; | ||||
|     box-shadow: 0 0 20px rgba(0,0,0,.3); | ||||
|     position: fixed; | ||||
|     top: 3.4rem; | ||||
|     right:0.5rem; | ||||
|     left:0.5rem; | ||||
|     background-color: #fff; | ||||
|     border-radius: 0.25rem; | ||||
|     padding: 0.5rem; | ||||
|     z-index: 3; | ||||
| } | ||||
|  | ||||
| :host-context(.fullscreen)  .menu  { | ||||
|     top:4em; | ||||
| } | ||||
|  | ||||
| .card {       | ||||
|     padding:0.5rem; | ||||
|     min-width: 10rem;           | ||||
| } | ||||
|  | ||||
| .card-body { | ||||
|     text-align: left; | ||||
| } | ||||
|  | ||||
| .hidden { | ||||
|     max-height: 0;    | ||||
| } | ||||
|  | ||||
| .menu.hidden { | ||||
|     padding: 0; | ||||
| } | ||||
|  | ||||
| .menu-button.hidden { | ||||
|     overflow: hidden; | ||||
| } | ||||
|  | ||||
|  | ||||
| @media screen and (min-width: 44rem)  { | ||||
|     .menu { | ||||
|         position: absolute; | ||||
|         top: 3rem; | ||||
|         right:0; | ||||
|         left: unset; | ||||
|         max-width: 30em; | ||||
|     } | ||||
|  | ||||
|     :host-context(.fullscreen)  .menu  { | ||||
|         top: 3rem; | ||||
|     } | ||||
| }     | ||||
|  | ||||
| .unread { | ||||
|     display: block; | ||||
|     position: absolute; | ||||
|     top:-0.5em; | ||||
|     right: -0.5em; | ||||
| } | ||||
|  | ||||
| .unread.hidden { | ||||
|     display: none; | ||||
| } | ||||
| @@ -0,0 +1,37 @@ | ||||
| import { Input } from '@angular/core'; | ||||
| import { Component, OnInit } from '@angular/core'; | ||||
|  | ||||
| import { IUser } from '../../models/user'; | ||||
| import {Store} from '@ngrx/store'; | ||||
| import * as appReducers from '../../reducers/app-common.reducer'; | ||||
| import * as appActions from '../../actions/app-common.actions'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'fm-setting-menu', | ||||
|   templateUrl: './setting-menu.component.html', | ||||
|   styleUrls: ['./setting-menu.component.scss'] | ||||
| }) | ||||
| export class SettingMenuComponent implements OnInit { | ||||
|    | ||||
|   @Input() user:IUser; | ||||
|   @Input() showMenu:boolean; | ||||
|   public noContent = true; | ||||
|  | ||||
|   constructor(private store: Store<appReducers.State>) { } | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|   } | ||||
|  | ||||
|   toggle(event:MouseEvent) { | ||||
|     event.stopPropagation(); | ||||
|     this.store.dispatch(new appActions.ToggleSettingMenu()); | ||||
|   }  | ||||
|  | ||||
|   activateRoute() { | ||||
|     this.noContent=false; | ||||
|   } | ||||
|  | ||||
|   deActivateRoute() { | ||||
|     this.noContent=true; | ||||
|   } | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| <div class="side-panel hidden" [ngClass]="{'hidden':!visible,'collapsed':collapsed,'resizeable':(resizeable && mobile),'resizing':resizing,'left':left}" [ngStyle]="{'top':top}"> | ||||
| <div class="side-panel hidden" [ngClass]="{'hidden':!visible,'collapsed':collapsed,'resizeable':(resizeable && mobile),'resizing':resizing,'left':left,'extrawide':extrawide}" [ngStyle]="{'top':top}"> | ||||
|   <div *ngIf="collapsable" class="arrow rounded-end p-2" (click)="handleToggleClick($event)"> | ||||
|     <i class="fal fa-chevron-left" aria-hidden="true"></i> | ||||
|   </div> | ||||
|   | ||||
| @@ -15,7 +15,7 @@ | ||||
| } | ||||
|  | ||||
| .side-panel.collapsed { | ||||
|   left:-22rem; | ||||
|   left:-44rem; | ||||
| } | ||||
|  | ||||
| .arrow { | ||||
| @@ -76,7 +76,6 @@ div.resizegrip > span { | ||||
|  | ||||
| .resizeable .resizegrip { | ||||
|   display:block;   | ||||
|    | ||||
| } | ||||
|  | ||||
| .resizeable .content { | ||||
| @@ -94,10 +93,17 @@ div.resizegrip > span { | ||||
|  | ||||
|   .side-panel.hidden { | ||||
|     width: 22rem; | ||||
|     left:-24rem; | ||||
|     left:-22rem; | ||||
|     height:100%; | ||||
|     top: 0px; | ||||
|   } | ||||
|    | ||||
|   .side-panel.extrawide { | ||||
|     top:0px; | ||||
|     width: 44rem; | ||||
|     height:100%; | ||||
|     left:0px; | ||||
|   }   | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| import { Component, Input,Output,ViewChild,EventEmitter, ElementRef,OnChanges,SimpleChanges,HostListener,ChangeDetectorRef  } from '@angular/core'; | ||||
| import { Component, Input,Output,ViewChild,EventEmitter, ElementRef,OnChanges,SimpleChanges,HostListener,ChangeDetectorRef, ViewEncapsulation  } from '@angular/core'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'fm-side-panel', | ||||
| @@ -13,6 +13,7 @@ export class SidePanelComponent  implements OnChanges { | ||||
|   @Input() public collapsable: boolean; | ||||
|   @Input() public resizeable = false; | ||||
|   @Input() public left = false; | ||||
|   @Input() public extrawide: boolean; | ||||
|   @Output() onResize: EventEmitter<number> = new EventEmitter<number>(); | ||||
|   @ViewChild("resizeGrip") elementView: ElementRef; | ||||
|   public mobile = true; | ||||
| @@ -41,7 +42,7 @@ export class SidePanelComponent  implements OnChanges { | ||||
|   } | ||||
|  | ||||
|   ngAfterViewInit() { | ||||
|     this.parentHeight = this.element.nativeElement.offsetParent.clientHeight; | ||||
|     this.parentHeight = this.element.nativeElement.offsetParent?.clientHeight; | ||||
|     this.setTop(); | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -5,6 +5,9 @@ | ||||
|                 <div  class="card" *ngIf="user">            | ||||
|                     <div class="card-body"> | ||||
|                         <div class="username">{{user.name}}</div> | ||||
|                         <div *ngIf="getProvider(); let provider"> | ||||
|                             <small><span i18n>Provider</span><span> {{provider}}</span></small> | ||||
|                         </div> | ||||
|                         <div><a href="#" (click)="logout($event)" i18n>logout</a></div> | ||||
|                     </div> | ||||
|                 </div>                 | ||||
|   | ||||
| @@ -20,11 +20,14 @@ export class UserMenuComponent implements OnInit { | ||||
|   ngOnInit(): void { | ||||
|   } | ||||
|  | ||||
|   getLetter():string { | ||||
|     if (this.user && this.user.firstName && this.user.lastName) | ||||
|       return this.user.firstName.substr(0,1).toUpperCase() +  | ||||
|              this.user.lastName.substr(0,1).toUpperCase(); | ||||
|     return this.user && this.user.name ? this.user.name.substr(0,1).toUpperCase():""; | ||||
|   getProvider():string | null { | ||||
|     const ownedClaims = this.oauthService.getIdentityClaims(); | ||||
|     if(ownedClaims) { | ||||
|       if (ownedClaims["idp"] != "local") { | ||||
|         return ownedClaims["idp"]; | ||||
|       } | ||||
|     } | ||||
|     return null; | ||||
|   } | ||||
|  | ||||
|   logout(event:MouseEvent) { | ||||
|   | ||||
| @@ -85,9 +85,8 @@ export class AppCommonEffects { | ||||
|    | ||||
|   initUserSettingsRoot$ =  createEffect(() => this.actions$.pipe( | ||||
|     ofType(appCommonActions.INITUSERSETTINGSROOT), | ||||
|     withLatestFrom(this.store$.select(appCommonReducers.SelectGetUser)), | ||||
|     switchMap(([, user]) => { | ||||
|       return this.itemService$.getItem(user.code + ':USER_SETTINGS').pipe( | ||||
|     switchMap(_ => { | ||||
|       return this.folderService$.getFolder('my_settings').pipe( | ||||
|         switchMap((item) => of(new appCommonActions.InitUserSettingsRootSuccess(item))), | ||||
|         catchError(error =>  of(new appCommonActions.Fail(error))) | ||||
|       ) | ||||
| @@ -149,7 +148,7 @@ export class AppCommonEffects { | ||||
|     ofType(appCommonActions.VIEWITEM), | ||||
|     withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)), | ||||
|     switchMap(([action, itemtypes]) => { | ||||
|       const a = action as appCommonActions.EditItem; | ||||
|       const a = action as appCommonActions.ViewItem; | ||||
|       const itemType = itemtypes[a.item.itemType]; | ||||
|       const viewer = itemType.viewer; | ||||
|       const editor = itemType.editor; | ||||
| @@ -170,7 +169,7 @@ export class AppCommonEffects { | ||||
|         this.router$.navigate(['/map', query ]) | ||||
|       }else if(viewer == 'edit_in_editor') { | ||||
|         this.router$.navigate(['/editor', editor, 'item', a.item.code]) | ||||
|       } else  { | ||||
|       } else if(viewer) { | ||||
|         this.router$.navigate(['/viewer', viewer, 'item', a.item.code]) | ||||
|       } | ||||
|       return []; | ||||
| @@ -182,18 +181,18 @@ export class AppCommonEffects { | ||||
|     ofType(appCommonActions.FAIL), | ||||
|     map((action) => { | ||||
|       const failAction = action as appCommonActions.Fail; | ||||
|       console.debug(failAction.payload) | ||||
|       //console.debug(failAction.payload) | ||||
|       return null; | ||||
|     })),{dispatch:false}); | ||||
|  | ||||
|     online$ =  createEffect(() => this.actions$.pipe( | ||||
|       ofType(appCommonActions.ONLINE), | ||||
|       switchMap((action) => { | ||||
|           console.debug("Online: Check token"); | ||||
|           //console.debug("Online: Check token"); | ||||
|           if(!this.oauthService$.hasValidAccessToken()) { | ||||
|             console.debug("No valid token, try to refresh"); | ||||
|             //console.debug("No valid token, try to refresh"); | ||||
|             if(this.oauthService$.getRefreshToken() != null ) { | ||||
|               console.debug("We have a refresh token"); | ||||
|               //console.debug("We have a refresh token"); | ||||
|               this.oauthService$.refreshToken();               | ||||
|             } | ||||
|           } | ||||
|   | ||||
| @@ -25,6 +25,7 @@ export class Item implements IItem { | ||||
|   public state?: number; | ||||
|   public data?:any; | ||||
|   public isEditable?:boolean; | ||||
|   public owner?: string; | ||||
|  | ||||
|   constructor() {   | ||||
|   } | ||||
|   | ||||
							
								
								
									
										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; | ||||
| } | ||||
| @@ -11,4 +11,5 @@ export interface IListItem { | ||||
|     size?: number; | ||||
|     state?: number; | ||||
|     thumbnail?: boolean; | ||||
|     owner?: string; | ||||
| } | ||||
|   | ||||
							
								
								
									
										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; | ||||
| } | ||||
| @@ -26,6 +26,7 @@ export interface State { | ||||
|   appMenuVisible: boolean, | ||||
|   notificationMenuVisible: boolean, | ||||
|   helpMenuVisible: boolean, | ||||
|   settingMenuVisible: boolean, | ||||
|   unreadNotifications: number, | ||||
|   isOnline: boolean, | ||||
|   isPageMode:boolean | ||||
| @@ -47,6 +48,7 @@ export const initialState: State = { | ||||
|   appMenuVisible: false, | ||||
|   notificationMenuVisible: false, | ||||
|   helpMenuVisible: false, | ||||
|   settingMenuVisible: false, | ||||
|   unreadNotifications: 0, | ||||
|   isOnline: true, | ||||
|   isPageMode: true | ||||
| @@ -64,6 +66,8 @@ export function reducer(state = initialState, action: appCommonActions.Actions ) | ||||
|         code:a.user.code, | ||||
|         email:claims["email"]!== undefined ? claims["email"] : a.user.name, | ||||
|         name:claims["name"]!== undefined?claims["name"] : a.user.email, | ||||
|         lastName:a.user.lastName, | ||||
|         firstName:a.user.firstName, | ||||
|         claims:claims, | ||||
|         searchable: false | ||||
|       }; | ||||
| @@ -104,26 +108,29 @@ export function reducer(state = initialState, action: appCommonActions.Actions ) | ||||
|       }); | ||||
|     } | ||||
|     case appCommonActions.TOGGLEMENU: { | ||||
|       return tassign(state, { menuVisible: !state.menuVisible,accountMenuVisible:!state.menuVisible?false:state.accountMenuVisible,appMenuVisible:!state.menuVisible?false:state.appMenuVisible,notificationMenuVisible:!state.menuVisible?false:state.notificationMenuVisible,helpMenuVisible:!state.menuVisible?false:state.helpMenuVisible }); | ||||
|       return tassign(state, { menuVisible: !state.menuVisible,accountMenuVisible:!state.menuVisible?false:state.accountMenuVisible,appMenuVisible:!state.menuVisible?false:state.appMenuVisible,notificationMenuVisible:!state.menuVisible?false:state.notificationMenuVisible,helpMenuVisible:!state.menuVisible?false:state.helpMenuVisible,settingMenuVisible:!state.menuVisible?false:state.settingMenuVisible }); | ||||
|     } | ||||
|     case appCommonActions.TOGGLEACCOUNTMENU: { | ||||
|       return tassign(state, { accountMenuVisible: !state.accountMenuVisible,appMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false }); | ||||
|       return tassign(state, { accountMenuVisible: !state.accountMenuVisible,appMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false,settingMenuVisible:false }); | ||||
|     } | ||||
|     case appCommonActions.TOGGLEAPPMENU: { | ||||
|       return tassign(state, { appMenuVisible: !state.appMenuVisible,accountMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false }); | ||||
|       return tassign(state, { appMenuVisible: !state.appMenuVisible,accountMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false,settingMenuVisible:false }); | ||||
|     } | ||||
|     case appCommonActions.TOGGLENOTIFICATIONMENU: { | ||||
|       return tassign(state, { notificationMenuVisible : !state.notificationMenuVisible,accountMenuVisible:false,appMenuVisible:false,helpMenuVisible:false }); | ||||
|       return tassign(state, { notificationMenuVisible : !state.notificationMenuVisible,accountMenuVisible:false,appMenuVisible:false,helpMenuVisible:false,settingMenuVisible:false }); | ||||
|     } | ||||
|     case appCommonActions.TOGGLEHELPMENU: { | ||||
|       return tassign(state, { helpMenuVisible : !state.helpMenuVisible,accountMenuVisible:false,appMenuVisible:false,notificationMenuVisible:false }); | ||||
|       return tassign(state, { helpMenuVisible : !state.helpMenuVisible,accountMenuVisible:false,appMenuVisible:false,notificationMenuVisible:false,settingMenuVisible:false }); | ||||
|     } | ||||
|     case appCommonActions.TOGGLESETTINGMENU: { | ||||
|       return tassign(state, { settingMenuVisible : !state.settingMenuVisible,accountMenuVisible:false,appMenuVisible:false,notificationMenuVisible:false,helpMenuVisible:false }); | ||||
|     } | ||||
|     case appCommonActions.ESCAPE: { | ||||
|       return tassign(state, { menuVisible: false,accountMenuVisible:false,appMenuVisible: false,notificationMenuVisible:false,helpMenuVisible:false }); | ||||
|       return tassign(state, { menuVisible: false,accountMenuVisible:false,appMenuVisible: false,notificationMenuVisible:false,helpMenuVisible:false,settingMenuVisible:false }); | ||||
|     } | ||||
|     case appCommonActions.SETMENUVISIBLE: { | ||||
|       const a = action as appCommonActions.SetMenuVisible; | ||||
|       return tassign(state, { menuVisible: a.visible,accountMenuVisible:a.visible?false:state.accountMenuVisible,appMenuVisible:a.visible?false:state.appMenuVisible,notificationMenuVisible:a.visible?false:state.notificationMenuVisible,helpMenuVisible:a.visible?false:state.helpMenuVisible }); | ||||
|       return tassign(state, { menuVisible: a.visible,accountMenuVisible:a.visible?false:state.accountMenuVisible,appMenuVisible:a.visible?false:state.appMenuVisible,notificationMenuVisible:a.visible?false:state.notificationMenuVisible,helpMenuVisible:a.visible?false:state.helpMenuVisible,settingMenuVisible:a.visible?false:state.settingMenuVisible }); | ||||
|     } | ||||
|     case appCommonActions.INITUSERPACKAGESSUCCESS:{ | ||||
|       const a = action as appCommonActions.InitUserPackagesSuccess; | ||||
| @@ -201,6 +208,7 @@ export const getAccountMenuVisible = (state: State) => state.accountMenuVisible; | ||||
| export const getAppMenuVisible = (state: State) => state.appMenuVisible; | ||||
| export const getNotificationMenuVisible = (state: State) => state.notificationMenuVisible; | ||||
| export const getHelpMenuVisible = (state: State) => state.helpMenuVisible; | ||||
| export const getSettingMenuVisible = (state: State) => state.settingMenuVisible; | ||||
| export const getUnreadNotifications = (state: State) => state.unreadNotifications; | ||||
| export const getIsOnline = (state: State) => state.isOnline; | ||||
| export const getIsPageMode = (state: State) => state.isPageMode; | ||||
| @@ -225,6 +233,7 @@ export const SelectGetAccountMenuVisible = createSelector(selectAppCommonState,g | ||||
| export const SelectGetAppMenuVisible = createSelector(selectAppCommonState,getAppMenuVisible); | ||||
| export const SelectGetNotificationMenuVisible = createSelector(selectAppCommonState,getNotificationMenuVisible); | ||||
| export const SelectGetHelpMenuVisible = createSelector(selectAppCommonState,getHelpMenuVisible); | ||||
| export const SelectGetSettingMenuVisible = createSelector(selectAppCommonState,getSettingMenuVisible); | ||||
| export const SelectgetUnreadNotifications = createSelector(selectAppCommonState,getUnreadNotifications); | ||||
|  | ||||
| export const SelectGetIsOnline = createSelector(selectAppCommonState,getIsOnline); | ||||
|   | ||||
| @@ -1,9 +1,11 @@ | ||||
| import { HttpClient, HttpParams } from "@angular/common/http"; | ||||
| import { Injectable } from '@angular/core'; | ||||
| import { Observable } from 'rxjs'; | ||||
| import { IItem } from '../models/item'; | ||||
| import { HttpClient, HttpParams } from "@angular/common/http"; | ||||
| import { IItemTask } from '../models/itemTask'; | ||||
| import { IUser } from '../models/user'; | ||||
| import { AppConfig } from "../shared/app.config"; | ||||
| import {ItemTypeService} from './itemtype.service'; | ||||
| import { ItemTypeService } from './itemtype.service'; | ||||
|  | ||||
| @Injectable({ | ||||
|   providedIn: 'root', | ||||
| @@ -42,4 +44,12 @@ export class AdminService { | ||||
|   deleteItem(code: string): Observable<any> { | ||||
|     return this.httpClient.delete<any>(`${this.ApiEndpoint()}/api/v1/admin/${code}`); | ||||
|   } | ||||
|  | ||||
|   getAllUsers(): Observable<IUser[]> { | ||||
|     return this.httpClient.get<IUser[]>(`${this.ApiEndpoint()}/api/v1/admin/users`); | ||||
|   } | ||||
|  | ||||
|   postItemTask(item: IItem, task: IItemTask): Observable<IItemTask> { | ||||
|     return this.httpClient.post<IItemTask>(`${this.ApiEndpoint()}/api/v1/admin/${item.code}/tasks`, task); | ||||
|   } | ||||
| } | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user