diff --git a/compile-sass.sh b/compile-sass.sh
index 6f3caf246..c4e5d538d 100644
--- a/compile-sass.sh
+++ b/compile-sass.sh
@@ -44,21 +44,23 @@ sass -E 'UTF-8' --cache-location .tmp/sass-cache-18 src/views/gutenberg-blocks/b
sass -E 'UTF-8' --cache-location .tmp/sass-cache-19 src/views/gutenberg-blocks/blocks/related-items-list/style.scss:src/assets/css/tainacan-gutenberg-block-related-items-list.css
-sass -E 'UTF-8' --cache-location .tmp/sass-cache-20 src/views/gutenberg-blocks/blocks/related-items-list/style.scss:src/assets/css/tainacan-gutenberg-block-item-metadata.css
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-20 src/views/gutenberg-blocks/blocks/item-metadata/style.scss:src/assets/css/tainacan-gutenberg-block-item-metadata.css
-sass -E 'UTF-8' --cache-location .tmp/sass-cache-21 src/views/gutenberg-blocks/blocks/related-items-list/style.scss:src/assets/css/tainacan-gutenberg-block-item-metadata-section.css
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-21 src/views/gutenberg-blocks/blocks/item-metadata-section/style.scss:src/assets/css/tainacan-gutenberg-block-item-metadata-section.css
-sass -E 'UTF-8' --cache-location .tmp/sass-cache-22 src/views/gutenberg-blocks/blocks/related-items-list/style.scss:src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-22 src/views/gutenberg-blocks/blocks/item-metadata-sections/style.scss:src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css
-sass -E 'UTF-8' --cache-location .tmp/sass-cache-23 src/views/gutenberg-blocks/blocks/related-items-list/style.scss:src/assets/css/tainacan-gutenberg-block-item-metadatum.css
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-23 src/views/gutenberg-blocks/blocks/item-metadatum/style.scss:src/assets/css/tainacan-gutenberg-block-item-metadatum.css
-sass -E 'UTF-8' --cache-location .tmp/sass-cache-24 src/views/gutenberg-blocks/blocks/related-items-list/style.scss:src/assets/css/tainacan-gutenberg-block-metadata-section-name.css
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-24 src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/style.scss:src/assets/css/tainacan-gutenberg-block-geocoordinate-item-metadatum.css
-sass -E 'UTF-8' --cache-location .tmp/sass-cache-25 src/views/gutenberg-blocks/blocks/related-items-list/style.scss:src/assets/css/tainacan-gutenberg-block-metadata-section-description.css
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-25 src/views/gutenberg-blocks/blocks/metadata-section-name/style.scss:src/assets/css/tainacan-gutenberg-block-metadata-section-name.css
-sass -E 'UTF-8' --cache-location .tmp/sass-cache-26 src/views/gutenberg-blocks/scss/gutenberg-blocks-editor-style.scss:src/assets/css/tainacan-gutenberg-block-common-editor-styles.css
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-26 src/views/gutenberg-blocks/blocks/metadata-section-description/style.scss:src/assets/css/tainacan-gutenberg-block-metadata-section-description.css
-sass -E 'UTF-8' --cache-location .tmp/sass-cache-27 src/views/gutenberg-blocks/scss/gutenberg-blocks-theme-style.scss:src/assets/css/tainacan-gutenberg-block-common-theme-styles.css
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-27 src/views/gutenberg-blocks/scss/gutenberg-blocks-editor-style.scss:src/assets/css/tainacan-gutenberg-block-common-editor-styles.css
+
+sass -E 'UTF-8' --cache-location .tmp/sass-cache-28 src/views/gutenberg-blocks/scss/gutenberg-blocks-theme-style.scss:src/assets/css/tainacan-gutenberg-block-common-theme-styles.css
echo "Compilação do Sass Concluído!"
exit 0
diff --git a/package-lock.json b/package-lock.json
index 6d7a81fc8..53a042c25 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1498,6 +1498,12 @@
"@types/range-parser": "*"
}
},
+ "@types/geojson": {
+ "version": "7946.0.10",
+ "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.10.tgz",
+ "integrity": "sha512-Nmh0K3iWQJzniTuPRcJn5hxXkfB1T1pgB89SBig5PlJQU5yocazeu4jATJlaA0GYFKWMqDdvYemoSnF2pXgLVA==",
+ "dev": true
+ },
"@types/http-proxy": {
"version": "1.17.9",
"resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.9.tgz",
@@ -1522,6 +1528,15 @@
"integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",
"dev": true
},
+ "@types/leaflet": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@types/leaflet/-/leaflet-1.9.0.tgz",
+ "integrity": "sha512-7LeOSj7EloC5UcyOMo+1kc3S1UT3MjJxwqsMT1d2PTyvQz53w0Y0oSSk9nwZnOZubCmBvpSNGceucxiq+ZPEUw==",
+ "dev": true,
+ "requires": {
+ "@types/geojson": "*"
+ }
+ },
"@types/masonry-layout": {
"version": "4.2.5",
"resolved": "https://registry.npmjs.org/@types/masonry-layout/-/masonry-layout-4.2.5.tgz",
@@ -5113,9 +5128,9 @@
"integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow=="
},
"photoswipe": {
- "version": "5.3.3",
- "resolved": "https://registry.npmjs.org/photoswipe/-/photoswipe-5.3.3.tgz",
- "integrity": "sha512-BUuulwZwkYFKADSe5xf0dd+wf6dws34ZvqP8R3oYHepRauOXoQHvw600sw1HlWd8K0S3LRCS4jxyR5fTuI383Q=="
+ "version": "5.3.4",
+ "resolved": "https://registry.npmjs.org/photoswipe/-/photoswipe-5.3.4.tgz",
+ "integrity": "sha512-SN+RWHqxJvdwzXJsh8KrG+ajjPpdTX5HpKglEd0k9o6o5fW+QHPkW8//Bo11MB+NQwTa/hFw8BDv2EdxiDXjNw=="
},
"picocolors": {
"version": "1.0.0",
@@ -6252,9 +6267,9 @@
}
},
"swiper": {
- "version": "8.4.4",
- "resolved": "https://registry.npmjs.org/swiper/-/swiper-8.4.4.tgz",
- "integrity": "sha512-jA/8BfOZwT8PqPSnMX0TENZYitXEhNa7ZSNj1Diqh5LZyUJoBQaZcqAiPQ/PIg1+IPaRn/V8ZYVb0nxHMh51yw==",
+ "version": "8.4.5",
+ "resolved": "https://registry.npmjs.org/swiper/-/swiper-8.4.5.tgz",
+ "integrity": "sha512-zveyEFBBv4q1sVkbJHnuH4xCtarKieavJ4SxP0QEHvdpPLJRuD7j/Xg38IVVLbp7Db6qrPsLUePvxohYx39Agw==",
"requires": {
"dom7": "^4.0.4",
"ssr-window": "^4.0.2"
@@ -6626,9 +6641,9 @@
}
},
"loader-utils": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
- "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
+ "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
"dev": true,
"requires": {
"big.js": "^5.2.2",
@@ -6671,9 +6686,9 @@
}
},
"loader-utils": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
- "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
+ "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
"dev": true,
"requires": {
"big.js": "^5.2.2",
diff --git a/package.json b/package.json
index 2629bb6df..b9a574543 100644
--- a/package.json
+++ b/package.json
@@ -21,11 +21,11 @@
"masonry-layout": "^4.2.2",
"moment": "^2.29.4",
"node-sass": "^7.0.3",
- "photoswipe": "^5.3.3",
+ "photoswipe": "^5.3.4",
"qs": "^6.11.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
- "swiper": "^8.4.4",
+ "swiper": "^8.4.5",
"t": "^0.5.1",
"vue": "^2.6.14",
"vue-apexcharts": "^1.6.2",
@@ -41,6 +41,7 @@
"@babel/core": "^7.18.5",
"@babel/preset-env": "^7.18.2",
"@babel/preset-react": "^7.17.12",
+ "@types/leaflet": "^1.9.0",
"@types/masonry-layout": "^4.2.5",
"acorn": "^8.7.1",
"autoprefixer": "^10.4.7",
diff --git a/src/assets/css/tainacan-gutenberg-block-geocoordinate-item-metadatum.css b/src/assets/css/tainacan-gutenberg-block-geocoordinate-item-metadatum.css
new file mode 100644
index 000000000..b3daaf7c4
--- /dev/null
+++ b/src/assets/css/tainacan-gutenberg-block-geocoordinate-item-metadatum.css
@@ -0,0 +1,16 @@
+.tainacan-leaflet-map-container {
+ display: block;
+ height: 320px;
+ width: 100%; }
+ .tainacan-leaflet-map-container .tainacan-coordinates,
+ .tainacan-leaflet-map-container .multivalue-separator {
+ opacity: 0; }
+ .tainacan-leaflet-map-container div.leaflet-control-attribution,
+ .tainacan-leaflet-map-container div.leaflet-control-zoom,
+ .tainacan-leaflet-map-container div.leaflet-top,
+ .tainacan-leaflet-map-container div.leaflet-left,
+ .tainacan-leaflet-map-container div.leaflet-right,
+ .tainacan-leaflet-map-container div.leaflet-bottom {
+ width: auto; }
+
+/*# sourceMappingURL=tainacan-gutenberg-block-geocoordinate-item-metadatum.css.map */
diff --git a/src/assets/css/tainacan-gutenberg-block-geocoordinate-item-metadatum.css.map b/src/assets/css/tainacan-gutenberg-block-geocoordinate-item-metadatum.css.map
new file mode 100644
index 000000000..e62f88bd7
--- /dev/null
+++ b/src/assets/css/tainacan-gutenberg-block-geocoordinate-item-metadatum.css.map
@@ -0,0 +1,7 @@
+{
+"version": 3,
+"mappings": "AAAA,+BAAgC;EAC5B,OAAO,EAAE,KAAK;EACd,MAAM,EAAE,KAAK;EACb,KAAK,EAAC,IAAI;EAEV;uDACsB;IAClB,OAAO,EAAE,CAAC;EAGd;;;;;oDAKmB;IACf,KAAK,EAAE,IAAI",
+"sources": ["../../views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/style.scss"],
+"names": [],
+"file": "tainacan-gutenberg-block-geocoordinate-item-metadatum.css"
+}
diff --git a/src/assets/css/tainacan-gutenberg-block-item-metadata-section.css b/src/assets/css/tainacan-gutenberg-block-item-metadata-section.css
index 9692bf036..d58b9046f 100644
--- a/src/assets/css/tainacan-gutenberg-block-item-metadata-section.css
+++ b/src/assets/css/tainacan-gutenberg-block-item-metadata-section.css
@@ -1,51 +1,3 @@
-.wp-block-tainacan-related-items {
- margin: 0.5em auto;
- width: 100%; }
- .wp-block-tainacan-related-items .spinner-container {
- min-height: 56px;
- padding: 1em;
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--tainacan-block-gray4, #555758); }
-@-webkit-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-moz-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-o-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
- .wp-block-tainacan-related-items .skeleton {
- border-radius: 2px;
- background: var(--tainacan-block-gray1, #f2f2f2);
- -webkit-animation: skeleton-animation 1.8s ease infinite;
- -moz-animation: skeleton-animation 1.8s ease infinite;
- -o-animation: skeleton-animation 1.8s ease infinite;
- animation: skeleton-animation 1.8s ease infinite; }
- .wp-block-tainacan-related-items .related-items-edit-container {
- position: relative; }
- .wp-block-tainacan-related-items .related-items-edit-container .skeleton {
- min-height: 150px; }
+
/*# sourceMappingURL=tainacan-gutenberg-block-item-metadata-section.css.map */
diff --git a/src/assets/css/tainacan-gutenberg-block-item-metadata-section.css.map b/src/assets/css/tainacan-gutenberg-block-item-metadata-section.css.map
index 7d0d66758..0aec30436 100644
--- a/src/assets/css/tainacan-gutenberg-block-item-metadata-section.css.map
+++ b/src/assets/css/tainacan-gutenberg-block-item-metadata-section.css.map
@@ -1,7 +1,7 @@
{
"version": 3,
-"mappings": "AAEA,gCAAiC;EAC7B,MAAM,EAAE,UAAU;EAClB,KAAK,EAAE,IAAI;EAGX,mDAAmB;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,oCAAmC;AAI9C,qCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,kCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,gCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,6BAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;EAErB,0CAAU;IACN,aAAa,EAAE,GAAG;IAClB,UAAU,EAAE,oCAAmC;IAE/C,iBAAiB,EAAE,qCAAqC;IACxD,cAAc,EAAE,qCAAqC;IACrD,YAAY,EAAE,qCAAqC;IACnD,SAAS,EAAE,qCAAqC;EAIpD,8DAA8B;IAC1B,QAAQ,EAAE,QAAQ;IAElB,wEAAY;MACR,UAAU,EAAE,KAAK",
-"sources": ["../../views/gutenberg-blocks/blocks/related-items-list/style.scss"],
+"mappings": "",
+"sources": [],
"names": [],
"file": "tainacan-gutenberg-block-item-metadata-section.css"
}
diff --git a/src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css b/src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css
index 8881f1ad2..1e89c3c40 100644
--- a/src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css
+++ b/src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css
@@ -1,51 +1,3 @@
-.wp-block-tainacan-related-items {
- margin: 0.5em auto;
- width: 100%; }
- .wp-block-tainacan-related-items .spinner-container {
- min-height: 56px;
- padding: 1em;
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--tainacan-block-gray4, #555758); }
-@-webkit-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-moz-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-o-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
- .wp-block-tainacan-related-items .skeleton {
- border-radius: 2px;
- background: var(--tainacan-block-gray1, #f2f2f2);
- -webkit-animation: skeleton-animation 1.8s ease infinite;
- -moz-animation: skeleton-animation 1.8s ease infinite;
- -o-animation: skeleton-animation 1.8s ease infinite;
- animation: skeleton-animation 1.8s ease infinite; }
- .wp-block-tainacan-related-items .related-items-edit-container {
- position: relative; }
- .wp-block-tainacan-related-items .related-items-edit-container .skeleton {
- min-height: 150px; }
+
/*# sourceMappingURL=tainacan-gutenberg-block-item-metadata-sections.css.map */
diff --git a/src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css.map b/src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css.map
index 26c5c8a46..0c07a4b8e 100644
--- a/src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css.map
+++ b/src/assets/css/tainacan-gutenberg-block-item-metadata-sections.css.map
@@ -1,7 +1,7 @@
{
"version": 3,
-"mappings": "AAEA,gCAAiC;EAC7B,MAAM,EAAE,UAAU;EAClB,KAAK,EAAE,IAAI;EAGX,mDAAmB;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,oCAAmC;AAI9C,qCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,kCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,gCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,6BAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;EAErB,0CAAU;IACN,aAAa,EAAE,GAAG;IAClB,UAAU,EAAE,oCAAmC;IAE/C,iBAAiB,EAAE,qCAAqC;IACxD,cAAc,EAAE,qCAAqC;IACrD,YAAY,EAAE,qCAAqC;IACnD,SAAS,EAAE,qCAAqC;EAIpD,8DAA8B;IAC1B,QAAQ,EAAE,QAAQ;IAElB,wEAAY;MACR,UAAU,EAAE,KAAK",
-"sources": ["../../views/gutenberg-blocks/blocks/related-items-list/style.scss"],
+"mappings": "",
+"sources": [],
"names": [],
"file": "tainacan-gutenberg-block-item-metadata-sections.css"
}
diff --git a/src/assets/css/tainacan-gutenberg-block-item-metadata.css b/src/assets/css/tainacan-gutenberg-block-item-metadata.css
index d24e5204a..cc26d874d 100644
--- a/src/assets/css/tainacan-gutenberg-block-item-metadata.css
+++ b/src/assets/css/tainacan-gutenberg-block-item-metadata.css
@@ -1,51 +1,3 @@
-.wp-block-tainacan-related-items {
- margin: 0.5em auto;
- width: 100%; }
- .wp-block-tainacan-related-items .spinner-container {
- min-height: 56px;
- padding: 1em;
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--tainacan-block-gray4, #555758); }
-@-webkit-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-moz-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-o-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
- .wp-block-tainacan-related-items .skeleton {
- border-radius: 2px;
- background: var(--tainacan-block-gray1, #f2f2f2);
- -webkit-animation: skeleton-animation 1.8s ease infinite;
- -moz-animation: skeleton-animation 1.8s ease infinite;
- -o-animation: skeleton-animation 1.8s ease infinite;
- animation: skeleton-animation 1.8s ease infinite; }
- .wp-block-tainacan-related-items .related-items-edit-container {
- position: relative; }
- .wp-block-tainacan-related-items .related-items-edit-container .skeleton {
- min-height: 150px; }
+
/*# sourceMappingURL=tainacan-gutenberg-block-item-metadata.css.map */
diff --git a/src/assets/css/tainacan-gutenberg-block-item-metadata.css.map b/src/assets/css/tainacan-gutenberg-block-item-metadata.css.map
index 5b03882b7..7f437c18c 100644
--- a/src/assets/css/tainacan-gutenberg-block-item-metadata.css.map
+++ b/src/assets/css/tainacan-gutenberg-block-item-metadata.css.map
@@ -1,7 +1,7 @@
{
"version": 3,
-"mappings": "AAEA,gCAAiC;EAC7B,MAAM,EAAE,UAAU;EAClB,KAAK,EAAE,IAAI;EAGX,mDAAmB;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,oCAAmC;AAI9C,qCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,kCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,gCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,6BAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;EAErB,0CAAU;IACN,aAAa,EAAE,GAAG;IAClB,UAAU,EAAE,oCAAmC;IAE/C,iBAAiB,EAAE,qCAAqC;IACxD,cAAc,EAAE,qCAAqC;IACrD,YAAY,EAAE,qCAAqC;IACnD,SAAS,EAAE,qCAAqC;EAIpD,8DAA8B;IAC1B,QAAQ,EAAE,QAAQ;IAElB,wEAAY;MACR,UAAU,EAAE,KAAK",
-"sources": ["../../views/gutenberg-blocks/blocks/related-items-list/style.scss"],
+"mappings": "",
+"sources": [],
"names": [],
"file": "tainacan-gutenberg-block-item-metadata.css"
}
diff --git a/src/assets/css/tainacan-gutenberg-block-item-metadatum.css b/src/assets/css/tainacan-gutenberg-block-item-metadatum.css
index 3c1f686ce..2fbb175ad 100644
--- a/src/assets/css/tainacan-gutenberg-block-item-metadatum.css
+++ b/src/assets/css/tainacan-gutenberg-block-item-metadatum.css
@@ -1,51 +1,3 @@
-.wp-block-tainacan-related-items {
- margin: 0.5em auto;
- width: 100%; }
- .wp-block-tainacan-related-items .spinner-container {
- min-height: 56px;
- padding: 1em;
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--tainacan-block-gray4, #555758); }
-@-webkit-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-moz-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-o-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
- .wp-block-tainacan-related-items .skeleton {
- border-radius: 2px;
- background: var(--tainacan-block-gray1, #f2f2f2);
- -webkit-animation: skeleton-animation 1.8s ease infinite;
- -moz-animation: skeleton-animation 1.8s ease infinite;
- -o-animation: skeleton-animation 1.8s ease infinite;
- animation: skeleton-animation 1.8s ease infinite; }
- .wp-block-tainacan-related-items .related-items-edit-container {
- position: relative; }
- .wp-block-tainacan-related-items .related-items-edit-container .skeleton {
- min-height: 150px; }
+
/*# sourceMappingURL=tainacan-gutenberg-block-item-metadatum.css.map */
diff --git a/src/assets/css/tainacan-gutenberg-block-item-metadatum.css.map b/src/assets/css/tainacan-gutenberg-block-item-metadatum.css.map
index 7bacd50df..68a3fc937 100644
--- a/src/assets/css/tainacan-gutenberg-block-item-metadatum.css.map
+++ b/src/assets/css/tainacan-gutenberg-block-item-metadatum.css.map
@@ -1,7 +1,7 @@
{
"version": 3,
-"mappings": "AAEA,gCAAiC;EAC7B,MAAM,EAAE,UAAU;EAClB,KAAK,EAAE,IAAI;EAGX,mDAAmB;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,oCAAmC;AAI9C,qCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,kCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,gCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,6BAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;EAErB,0CAAU;IACN,aAAa,EAAE,GAAG;IAClB,UAAU,EAAE,oCAAmC;IAE/C,iBAAiB,EAAE,qCAAqC;IACxD,cAAc,EAAE,qCAAqC;IACrD,YAAY,EAAE,qCAAqC;IACnD,SAAS,EAAE,qCAAqC;EAIpD,8DAA8B;IAC1B,QAAQ,EAAE,QAAQ;IAElB,wEAAY;MACR,UAAU,EAAE,KAAK",
-"sources": ["../../views/gutenberg-blocks/blocks/related-items-list/style.scss"],
+"mappings": "",
+"sources": [],
"names": [],
"file": "tainacan-gutenberg-block-item-metadatum.css"
}
diff --git a/src/assets/css/tainacan-gutenberg-block-metadata-section-description.css b/src/assets/css/tainacan-gutenberg-block-metadata-section-description.css
index 752da8366..0a82634ce 100644
--- a/src/assets/css/tainacan-gutenberg-block-metadata-section-description.css
+++ b/src/assets/css/tainacan-gutenberg-block-metadata-section-description.css
@@ -1,51 +1,3 @@
-.wp-block-tainacan-related-items {
- margin: 0.5em auto;
- width: 100%; }
- .wp-block-tainacan-related-items .spinner-container {
- min-height: 56px;
- padding: 1em;
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--tainacan-block-gray4, #555758); }
-@-webkit-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-moz-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-o-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
- .wp-block-tainacan-related-items .skeleton {
- border-radius: 2px;
- background: var(--tainacan-block-gray1, #f2f2f2);
- -webkit-animation: skeleton-animation 1.8s ease infinite;
- -moz-animation: skeleton-animation 1.8s ease infinite;
- -o-animation: skeleton-animation 1.8s ease infinite;
- animation: skeleton-animation 1.8s ease infinite; }
- .wp-block-tainacan-related-items .related-items-edit-container {
- position: relative; }
- .wp-block-tainacan-related-items .related-items-edit-container .skeleton {
- min-height: 150px; }
+
/*# sourceMappingURL=tainacan-gutenberg-block-metadata-section-description.css.map */
diff --git a/src/assets/css/tainacan-gutenberg-block-metadata-section-description.css.map b/src/assets/css/tainacan-gutenberg-block-metadata-section-description.css.map
index 20b7ee200..1710fd63b 100644
--- a/src/assets/css/tainacan-gutenberg-block-metadata-section-description.css.map
+++ b/src/assets/css/tainacan-gutenberg-block-metadata-section-description.css.map
@@ -1,7 +1,7 @@
{
"version": 3,
-"mappings": "AAEA,gCAAiC;EAC7B,MAAM,EAAE,UAAU;EAClB,KAAK,EAAE,IAAI;EAGX,mDAAmB;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,oCAAmC;AAI9C,qCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,kCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,gCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,6BAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;EAErB,0CAAU;IACN,aAAa,EAAE,GAAG;IAClB,UAAU,EAAE,oCAAmC;IAE/C,iBAAiB,EAAE,qCAAqC;IACxD,cAAc,EAAE,qCAAqC;IACrD,YAAY,EAAE,qCAAqC;IACnD,SAAS,EAAE,qCAAqC;EAIpD,8DAA8B;IAC1B,QAAQ,EAAE,QAAQ;IAElB,wEAAY;MACR,UAAU,EAAE,KAAK",
-"sources": ["../../views/gutenberg-blocks/blocks/related-items-list/style.scss"],
+"mappings": "",
+"sources": [],
"names": [],
"file": "tainacan-gutenberg-block-metadata-section-description.css"
}
diff --git a/src/assets/css/tainacan-gutenberg-block-metadata-section-name.css b/src/assets/css/tainacan-gutenberg-block-metadata-section-name.css
index 5ddf84965..88403abd2 100644
--- a/src/assets/css/tainacan-gutenberg-block-metadata-section-name.css
+++ b/src/assets/css/tainacan-gutenberg-block-metadata-section-name.css
@@ -1,51 +1,3 @@
-.wp-block-tainacan-related-items {
- margin: 0.5em auto;
- width: 100%; }
- .wp-block-tainacan-related-items .spinner-container {
- min-height: 56px;
- padding: 1em;
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--tainacan-block-gray4, #555758); }
-@-webkit-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-moz-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@-o-keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
-@keyframes skeleton-animation {
- 0% {
- opacity: 1.0; }
- 50% {
- opacity: 0.2; }
- 100% {
- opacity: 1.0; } }
- .wp-block-tainacan-related-items .skeleton {
- border-radius: 2px;
- background: var(--tainacan-block-gray1, #f2f2f2);
- -webkit-animation: skeleton-animation 1.8s ease infinite;
- -moz-animation: skeleton-animation 1.8s ease infinite;
- -o-animation: skeleton-animation 1.8s ease infinite;
- animation: skeleton-animation 1.8s ease infinite; }
- .wp-block-tainacan-related-items .related-items-edit-container {
- position: relative; }
- .wp-block-tainacan-related-items .related-items-edit-container .skeleton {
- min-height: 150px; }
+
/*# sourceMappingURL=tainacan-gutenberg-block-metadata-section-name.css.map */
diff --git a/src/assets/css/tainacan-gutenberg-block-metadata-section-name.css.map b/src/assets/css/tainacan-gutenberg-block-metadata-section-name.css.map
index 170facbe9..981691033 100644
--- a/src/assets/css/tainacan-gutenberg-block-metadata-section-name.css.map
+++ b/src/assets/css/tainacan-gutenberg-block-metadata-section-name.css.map
@@ -1,7 +1,7 @@
{
"version": 3,
-"mappings": "AAEA,gCAAiC;EAC7B,MAAM,EAAE,UAAU;EAClB,KAAK,EAAE,IAAI;EAGX,mDAAmB;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,oCAAmC;AAI9C,qCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,kCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,gCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,6BAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;EAErB,0CAAU;IACN,aAAa,EAAE,GAAG;IAClB,UAAU,EAAE,oCAAmC;IAE/C,iBAAiB,EAAE,qCAAqC;IACxD,cAAc,EAAE,qCAAqC;IACrD,YAAY,EAAE,qCAAqC;IACnD,SAAS,EAAE,qCAAqC;EAIpD,8DAA8B;IAC1B,QAAQ,EAAE,QAAQ;IAElB,wEAAY;MACR,UAAU,EAAE,KAAK",
-"sources": ["../../views/gutenberg-blocks/blocks/related-items-list/style.scss"],
+"mappings": "",
+"sources": [],
"names": [],
"file": "tainacan-gutenberg-block-metadata-section-name.css"
}
diff --git a/src/views/admin/components/edition/item-edition-form.vue b/src/views/admin/components/edition/item-edition-form.vue
index d3cb4fb7f..78515f839 100644
--- a/src/views/admin/components/edition/item-edition-form.vue
+++ b/src/views/admin/components/edition/item-edition-form.vue
@@ -1729,6 +1729,7 @@ export default {
},
handleWindowResize: _.debounce( function() {
this.$nextTick(() => {
+ eventBusItemMetadata.$emit('itemEditionFormResize');
if (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth)
this.isMobileScreen = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) <= 768;
});
diff --git a/src/views/admin/components/metadata-types/geocoordinate/GeoCoordinate.vue b/src/views/admin/components/metadata-types/geocoordinate/GeoCoordinate.vue
index 44af1d7a5..abc9625bc 100644
--- a/src/views/admin/components/metadata-types/geocoordinate/GeoCoordinate.vue
+++ b/src/views/admin/components/metadata-types/geocoordinate/GeoCoordinate.vue
@@ -22,15 +22,19 @@
+ :placeholder="-14.408656999999"
+ type="text"
+ :step="0.000000000001"
+ @input.native="onUpdateFromLatitudeInput"
+ :value="latitude" />
+ :placeholder="-51.316689999999"
+ type="text"
+ :step="0.000000000001"
+ @input.native="onUpdateFromLongitudeInput"
+ :value="longitude" />
onDragMarker($event, index)"
@click="($event) => onMarkerEditingClick($event)" />
onDragEditingMarker($event)"
@click="addLocation(latitude + ',' + longitude)">
+
+ {{ $i18n.get('instruction_click_to_add_a_point') }}
+
@@ -76,12 +83,13 @@
diff --git a/src/views/admin/components/metadata-types/geocoordinate/class-tainacan-geocoordinate.php b/src/views/admin/components/metadata-types/geocoordinate/class-tainacan-geocoordinate.php
index debbe30d2..a0377fe7a 100644
--- a/src/views/admin/components/metadata-types/geocoordinate/class-tainacan-geocoordinate.php
+++ b/src/views/admin/components/metadata-types/geocoordinate/class-tainacan-geocoordinate.php
@@ -38,6 +38,9 @@ class GeoCoordinate extends Metadata_Type {
* @return bool `true` if the coordinate is valid, `false` if not
*/
private function validateLatLong($lat, $long) {
+ if ( !is_numeric($lat) || !is_numeric($long) )
+ return false;
+
$validataLat = ($lat + 0) >= -90.0 && ($lat + 0) <= 90.0;
$validataLong = ($long + 0) >= -180.0 && ($long + 0) <= 180.0;
return $validataLat & $validataLong;
@@ -48,7 +51,7 @@ class GeoCoordinate extends Metadata_Type {
$value = is_array($value) ? $value : [$value];
foreach ($value as $coordinate) {
$arr_coordinate = explode(",", $coordinate);
- if( count($arr_coordinate) != 2 || !$this->validateLatLong($arr_coordinate[0], $arr_coordinate[1])) {
+ if ( count($arr_coordinate) != 2 || !$this->validateLatLong($arr_coordinate[0], $arr_coordinate[1])) {
$this->add_error( sprintf(__('The value (%s) is not a valid geo coordinate', 'tainacan'), $coordinate ) );
return false;
}
@@ -61,6 +64,7 @@ class GeoCoordinate extends Metadata_Type {
* @return string
*/
public function get_value_as_html(\Tainacan\Entities\Item_Metadata_Entity $item_metadata) {
+ global $TAINACAN_BASE_URL;
$value = $item_metadata->get_value();
$metadatum = $item_metadata->get_metadatum();
$item_metadatum_id = $metadatum->get_id();
@@ -91,6 +95,8 @@ class GeoCoordinate extends Metadata_Type {
$return .= "{$latitude},{$longitude}";
}
+
+ wp_enqueue_style( 'tainacan-geocoordinate-item-metadatum', $TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-geocoordinate-item-metadatum.css', array(), TAINACAN_VERSION);
return '
' . $return . '
diff --git a/src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/style.scss b/src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/style.scss
index 987849f10..156dac6f5 100644
--- a/src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/style.scss
+++ b/src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/style.scss
@@ -2,4 +2,9 @@
display: block;
height: 320px;
width:100%;
+
+ .tainacan-coordinates,
+ .multivalue-separator {
+ opacity: 0;
+ }
}
\ No newline at end of file
diff --git a/src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/theme.js b/src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/theme.js
index 5f21b129f..01c8ce4b0 100644
--- a/src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/theme.js
+++ b/src/views/gutenberg-blocks/blocks/geocoordinate-item-metadatum/theme.js
@@ -48,6 +48,6 @@ export default (element) => {
TainacanLeaflet.marker(coordinate).addTo(tainacanMap);
});
- tainacanMap.panInsideBounds(coordinates);
+ tainacanMap.flyToBounds(coordinates);
}
};
\ No newline at end of file
diff --git a/src/views/tainacan-i18n.php b/src/views/tainacan-i18n.php
index ec9a631a5..c0c8fecab 100644
--- a/src/views/tainacan-i18n.php
+++ b/src/views/tainacan-i18n.php
@@ -740,6 +740,7 @@ return apply_filters( 'tainacan-i18n', [
/* translators: At the end of this sentence there will be a search query typed by the user wrapped in quotes. */
'instruction_press_enter_to_search_for' => __( 'Press ENTER to search for', 'tainacan' ),
'instruction_type_geocoordinate' => __( 'Type a geo coordinate in the form of lat,lng', 'tainacan' ),
+ 'instruction_click_to_add_a_point' => __( 'Drag to reposition or click to insert a marker', 'tainacan' ),
// Info. Other feedback to user.
'info_items_tab_all' => __( 'Every item, except by those sent to trash.', 'tainacan' ),
diff --git a/webpack.common.js b/webpack.common.js
index ba081ab75..f8b008f6b 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -103,7 +103,7 @@ module.exports = {
'PhotoSwipe': 'PhotoSwipe'
}),
new MomentLocalesPlugin({
- localesToKeep: ['en', 'en-ca', 'en-nz', 'en-gb', 'es-au', 'el', 'es-in', 'pt-br', 'pt', 'es', 'es-us', 'es-mx', 'es-do', 'fr', 'fr-ch', 'fr-ca', 'sv'],
+ localesToKeep: ['en', 'en-ca', 'en-nz', 'en-gb', 'es-au', 'el', 'es-in', 'pt-br', 'pt', 'ca', 'es', 'es-us', 'es-mx', 'es-do', 'fr', 'fr-ch', 'fr-ca', 'sv', 'sq', 'sk', 'uk'],
}),
new ESLintPlugin({
extensions: ['vue'],