@eeacms/volto-clms-theme 1.0.44 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/Jenkinsfile +32 -24
  3. package/package.json +5 -1
  4. package/src/actions/geonetwork/import_geonetwork.js +21 -0
  5. package/src/actions/index.js +14 -0
  6. package/src/actions/userschema/userschema.js +17 -0
  7. package/src/components/Blocks/CclTextLinkCarouselBlock/CclTextLinkCarouselEdit.jsx +38 -0
  8. package/src/components/Blocks/CclTextLinkCarouselBlock/CclTextLinkCarouselView.jsx +41 -0
  9. package/src/components/Blocks/CclTextLinkCarouselBlock/TextLinkCarouselSchema.js +18 -0
  10. package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclCarouselView.jsx +32 -11
  11. package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclProductTabsView.jsx +1 -1
  12. package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclVerticalTabsView.jsx +21 -7
  13. package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/TabsWidget.jsx +78 -15
  14. package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/custom.less +60 -1
  15. package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/subTabSchema.js +19 -0
  16. package/src/components/Blocks/customBlocks.js +19 -0
  17. package/src/components/CLMSDatasetDetailView/BoundingBoxComponent.jsx +20 -0
  18. package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.jsx +169 -15
  19. package/src/components/CLMSDatasetDetailView/ContactComponent.jsx +44 -0
  20. package/src/components/CLMSDatasetDetailView/DataSetInfoContent.jsx +14 -6
  21. package/src/components/CLMSDatasetDetailView/DistributionInfoComponent.jsx +20 -0
  22. package/src/components/CLMSDatasetDetailView/MetadataContent.jsx +182 -72
  23. package/src/components/CLMSDownloadCartView/CLMSDownloadCartView.jsx +5 -1
  24. package/src/components/CLMSEventView/CLMSEventView.jsx +15 -13
  25. package/src/components/CLMSNewsItemView/CLMSNewsItemView.jsx +13 -11
  26. package/src/components/CLMSProfileView/CLMSApiTokensView.jsx +55 -33
  27. package/src/components/CLMSProfileView/CLMSProfileView.jsx +28 -15
  28. package/src/components/CLMSProfileView/CLMSUserProfileView.jsx +37 -64
  29. package/src/components/CclCard/CclCard.jsx +8 -5
  30. package/src/components/CclCard/cards.less +1 -1
  31. package/src/components/CclInfoDescription/CclInfoDescription.jsx +9 -8
  32. package/src/components/CclLoginModal/CclLoginModal.jsx +1 -7
  33. package/src/components/CclLoginModal/ccl-login-modal.css +0 -4
  34. package/src/components/CclModal/CclModal.jsx +6 -1
  35. package/src/components/CclTab/CclTab.jsx +8 -11
  36. package/src/components/CclTab/CclTabs.jsx +23 -8
  37. package/src/components/Widgets/ContactWidget.jsx +91 -0
  38. package/src/components/Widgets/DistributionInfoWidget.jsx +40 -0
  39. package/src/components/Widgets/GeonetworkIdentifiersWidget.jsx +48 -0
  40. package/src/components/Widgets/TextLinkWidget.jsx +41 -0
  41. package/src/constants/ActionTypes.js +1 -0
  42. package/src/customizations/volto/components/theme/Header/Header.jsx +30 -21
  43. package/src/index.js +8 -3
  44. package/src/reducers/geonetwork/import_geonetwork_reducer.js +45 -0
  45. package/src/reducers/index.js +7 -3
  46. package/src/reducers/tokens/tokens.js +14 -10
  47. package/src/reducers/userschema/userschema.js +48 -0
  48. package/theme/clms/css/block-form.less +62 -0
  49. package/theme/clms/css/carousel.css +64 -11
  50. package/theme/clms/css/home.css +18 -4
  51. package/theme/clms/css/maps.css +4 -0
  52. package/theme/clms/css/maps.less +4 -0
  53. package/theme/clms/css/menu.css +4 -0
  54. package/theme/clms/css/styles.less +15 -3
package/CHANGELOG.md CHANGED
@@ -4,8 +4,112 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [1.0.48](https://github.com/eea/volto-clms-theme/compare/1.0.47...1.0.48)
8
+
9
+ - dataset view [`38faa9d`](https://github.com/eea/volto-clms-theme/commit/38faa9d291e22c92a1c9049c7241555b2300f830)
10
+ - tab editor [`cfbcf74`](https://github.com/eea/volto-clms-theme/commit/cfbcf742b370cc665c689a2480a09d3b640dc318)
11
+ - remove required to description in proptypes [`9f6da1d`](https://github.com/eea/volto-clms-theme/commit/9f6da1d9c2125865c329a263d0a7b3e771baa287)
12
+ - map keys [`6be4246`](https://github.com/eea/volto-clms-theme/commit/6be424624a61f867f85b6d914811111405ebeb98)
13
+ - add resolutions to package.json volto-slate and react-slick [`54460ad`](https://github.com/eea/volto-clms-theme/commit/54460addb4c4644a03e6af2f94e5c75ee5154bf3)
14
+ - check if items is not null [`26b4399`](https://github.com/eea/volto-clms-theme/commit/26b439981ca354b0f372bdf09a112a58482f2d4b)
15
+ - fix subtab functionality and show subtab in editor [`ece4408`](https://github.com/eea/volto-clms-theme/commit/ece4408bd557a1d2f2868733e1560e2853da1822)
16
+
17
+ #### [1.0.47](https://github.com/eea/volto-clms-theme/compare/1.0.46...1.0.47)
18
+
19
+ > 16 December 2021
20
+
21
+ - Develop [`#155`](https://github.com/eea/volto-clms-theme/pull/155)
22
+ - use smaller images in Cards [`#147`](https://github.com/eea/volto-clms-theme/pull/147)
23
+ - Demo modifications [`#154`](https://github.com/eea/volto-clms-theme/pull/154)
24
+ - Geonetwork fields [`#153`](https://github.com/eea/volto-clms-theme/pull/153)
25
+ - Sub tab option created [`#152`](https://github.com/eea/volto-clms-theme/pull/152)
26
+ - add Role label [`ae98fda`](https://github.com/eea/volto-clms-theme/commit/ae98fdac159d385554a67d3a0690ba17b5dfa244)
27
+ - show all the fields of geonetwork [`9eae556`](https://github.com/eea/volto-clms-theme/commit/9eae55614a26e84613dd747451e9a3fb864a6ac4)
28
+ - if parent tab is clicked sub tab is opened [`5cc5d1c`](https://github.com/eea/volto-clms-theme/commit/5cc5d1c93691985965640499951e0a905da8acbb)
29
+ - add the content url to the simple line listing template [`6ad396f`](https://github.com/eea/volto-clms-theme/commit/6ad396fdaf1850a3d509f4f640e421278341b74b)
30
+ - pretier fix on text carousel [`5e18334`](https://github.com/eea/volto-clms-theme/commit/5e183349cf13b6f2739dbbfbbd48617bc6c9c34c)
31
+ - SubTab style set [`73d9fa8`](https://github.com/eea/volto-clms-theme/commit/73d9fa85b05055b180409927583b71dc0a562f0f)
32
+ - remove default image from New and Event view [`0ef541d`](https://github.com/eea/volto-clms-theme/commit/0ef541dbede5316c46f48585b9728a672f03b7ad)
33
+ - use smaller images [`a545b9e`](https://github.com/eea/volto-clms-theme/commit/a545b9ed547fa124903b66987e6d7b3e46c17146)
34
+
35
+ #### [1.0.46](https://github.com/eea/volto-clms-theme/compare/1.0.45...1.0.46)
36
+
37
+ > 15 December 2021
38
+
39
+ - Develop [`#151`](https://github.com/eea/volto-clms-theme/pull/151)
40
+ - volto-form-block style [`#150`](https://github.com/eea/volto-clms-theme/pull/150)
41
+ - Bugs n improvements [`#149`](https://github.com/eea/volto-clms-theme/pull/149)
42
+ - Develop [`#148`](https://github.com/eea/volto-clms-theme/pull/148)
43
+ - li styles [`3b01bbf`](https://github.com/eea/volto-clms-theme/commit/3b01bbf09c1b60bde0bf101f8ca5382ded58763b)
44
+ - h1 display block [`5e922f6`](https://github.com/eea/volto-clms-theme/commit/5e922f60c4e5ce19c5b6949dab494add2140dd6e)
45
+ - dataset catalogue h1 display [`e88a6c8`](https://github.com/eea/volto-clms-theme/commit/e88a6c88b6ed3ddad765f9d4161ca405de04ecb4)
46
+ - fixed CclLoginModal PropTypes [`09db647`](https://github.com/eea/volto-clms-theme/commit/09db647d09af66ea717c0b9be1650bd99882c6e6)
47
+ - ESLint fix [`e4d19cd`](https://github.com/eea/volto-clms-theme/commit/e4d19cd1d78a8a1e82d606d6f3ac586c6122b8e2)
48
+
49
+ #### [1.0.45](https://github.com/eea/volto-clms-theme/compare/1.0.44...1.0.45)
50
+
51
+ > 13 December 2021
52
+
53
+ - Develop [`#143`](https://github.com/eea/volto-clms-theme/pull/143)
54
+ - Geonetwork importer [`#146`](https://github.com/eea/volto-clms-theme/pull/146)
55
+ - @userschema endpoint based dynamic user profile form [`#145`](https://github.com/eea/volto-clms-theme/pull/145)
56
+ - Changes after the release of ftw.tokenauth 2.0+cs5 [`#144`](https://github.com/eea/volto-clms-theme/pull/144)
57
+ - Api token changes [`#142`](https://github.com/eea/volto-clms-theme/pull/142)
58
+ - Bugs n improvements [`#141`](https://github.com/eea/volto-clms-theme/pull/141)
59
+ - Text carousel to develop [`#140`](https://github.com/eea/volto-clms-theme/pull/140)
60
+ - Text carousel corrections and image carousel dots change [`#139`](https://github.com/eea/volto-clms-theme/pull/139)
61
+ - Text carousel [`#138`](https://github.com/eea/volto-clms-theme/pull/138)
62
+ - resolve conflicts [`27ac50c`](https://github.com/eea/volto-clms-theme/commit/27ac50c69e5fe7af3fbad72cf0d273d74cb28d71)
63
+ - add breadcrumb and container class to get more structured profile page [`7787080`](https://github.com/eea/volto-clms-theme/commit/77870805f4c249aaa7552e53d66305b8eb493c85)
64
+ - dataset catalogue view width [`c218194`](https://github.com/eea/volto-clms-theme/commit/c21819442b8af0327fd5ea80769ea479a331ccd4)
65
+ - add a dynamic userschema [`8c38d98`](https://github.com/eea/volto-clms-theme/commit/8c38d983eb92ef216ece00e55a3e18926671970c)
66
+ - show the tokens only when they have a private key [`f6a4fb1`](https://github.com/eea/volto-clms-theme/commit/f6a4fb16baf0e66721af2ce93d5c07220855bbdd)
67
+ - save only tokens when they exist [`a9e8ec1`](https://github.com/eea/volto-clms-theme/commit/a9e8ec17ea88a675fbdb62034a851ccb72270313)
68
+ - show metadata download links pointing to geonetwork [`122442c`](https://github.com/eea/volto-clms-theme/commit/122442cbcd23be54bc6d43e04226d621c635599e)
69
+ - use sdi full link [`6837d90`](https://github.com/eea/volto-clms-theme/commit/6837d9055877d51df7832c1cb15287ac83507e14)
70
+ - add translations [`c8373db`](https://github.com/eea/volto-clms-theme/commit/c8373db635dcd9dda0155b44daca29f8a76bcc53)
71
+ - merge develop into geonetwork [`67c5b39`](https://github.com/eea/volto-clms-theme/commit/67c5b3977bd51c84d24d6bf2389c162a3391cd7d)
72
+ - add vito link [`0c6b4c3`](https://github.com/eea/volto-clms-theme/commit/0c6b4c340b6f26c878924862357c843fc1100c5a)
73
+ - add a segment to import data from geonetwork endpoints [`dc941a3`](https://github.com/eea/volto-clms-theme/commit/dc941a3fedcf29760274d15c0d1c0c2f0a919c75)
74
+ - geonetwork importer endpoint reducer and action [`6bb0939`](https://github.com/eea/volto-clms-theme/commit/6bb0939d8f2efefa8970ecfc23f244e0ed60dbce)
75
+ - test [`daa9d02`](https://github.com/eea/volto-clms-theme/commit/daa9d020eb1a089afc87ad4b5c83a50ab144a54c)
76
+ - use value attribute [`02b57fe`](https://github.com/eea/volto-clms-theme/commit/02b57fe0a1db2c4d1ec6b3786b12e2e782b0b60c)
77
+ - use a textarea [`58d8d17`](https://github.com/eea/volto-clms-theme/commit/58d8d1710be3d7bade93ffc3ecca6f0173878efc)
78
+ - change some screen messages [`beed740`](https://github.com/eea/volto-clms-theme/commit/beed740d88f93e73cd3f13611c75cf7acab9dcb6)
79
+ - when copying to clipboard copy the full object [`3717f38`](https://github.com/eea/volto-clms-theme/commit/3717f388fb7c828b7c422c058630c115b891810b)
80
+ - hoem carousel [`01eecf8`](https://github.com/eea/volto-clms-theme/commit/01eecf84e23845c79920004ce9990b282445c0d7)
81
+ - prettier fix [`27aa6c2`](https://github.com/eea/volto-clms-theme/commit/27aa6c223279977d9a8228e845a1b50f02c42253)
82
+ - Api tokens changes [`41e75a1`](https://github.com/eea/volto-clms-theme/commit/41e75a1bca8bc93c0cee8fe675098ac32c464d7a)
83
+ - show Download tab only in items explicitely marked to be downloadable [`0f1884b`](https://github.com/eea/volto-clms-theme/commit/0f1884b83c803e1cab89fbd03edbca3dba12dcb4)
84
+ - change mapviewer link for dataset [`2833557`](https://github.com/eea/volto-clms-theme/commit/28335576b8eebfd3f87c37872a846739f2e25edb)
85
+ - prettier:fix [`8643889`](https://github.com/eea/volto-clms-theme/commit/8643889c14ed42ff72d4fa4f9c0d4493eab237f3)
86
+ - li styles [`6f1c3b0`](https://github.com/eea/volto-clms-theme/commit/6f1c3b07d1ac88fa581344824cfac20e0197c4a6)
87
+ - home text carousel desktop [`9b7402f`](https://github.com/eea/volto-clms-theme/commit/9b7402f3aa0c8d9c8bf46656e0f6af1c521759fb)
88
+ - Header cart icon [`ffd90d6`](https://github.com/eea/volto-clms-theme/commit/ffd90d6d3f294a5ac6db4b3abc8fb70cf3538ff1)
89
+ - fix map-viewer link [`aeb571b`](https://github.com/eea/volto-clms-theme/commit/aeb571bad44ab346104993f847e48e1c996023cd)
90
+ - new distribution info widget [`a3c3edd`](https://github.com/eea/volto-clms-theme/commit/a3c3edde299749644596439a31671bd9e44ecb08)
91
+ - add fields to contact widget [`6493c32`](https://github.com/eea/volto-clms-theme/commit/6493c323fe0564c0e36f7face0f37460d5f20d69)
92
+ - code cleaned [`1ee2dfa`](https://github.com/eea/volto-clms-theme/commit/1ee2dfa606c3f927a8f9042836b71683fe7a1fe0)
93
+ - login modal bug fixed [`2cc3b77`](https://github.com/eea/volto-clms-theme/commit/2cc3b77304863be8c8556f9cff287db6d7ce4a03)
94
+ - reverse last change [`71eb265`](https://github.com/eea/volto-clms-theme/commit/71eb265bcf328208bba079f7b92a0ddf5d27dbf6)
95
+ - redirect to home page if carousel url is empty [`27b129d`](https://github.com/eea/volto-clms-theme/commit/27b129d1bf81cc18b25bba9aa8a7ceec4ab04cd2)
96
+ - contact widget [`dcf1ee4`](https://github.com/eea/volto-clms-theme/commit/dcf1ee477344375e8dd944c56490427aab43e5ec)
97
+ - ESLint fix [`f507e3a`](https://github.com/eea/volto-clms-theme/commit/f507e3a643bc6740d5d3aba0da8d92b1ee28fd81)
98
+ - Empty cart text style [`6e16941`](https://github.com/eea/volto-clms-theme/commit/6e1694176e00d5afaf0c5b8335ab24bf67744abe)
99
+ - dataset catalogue size fixed when logged in [`ce66ec1`](https://github.com/eea/volto-clms-theme/commit/ce66ec11713a273d8bea77f104a457649916868a)
100
+ - Card block image fix [`25535bc`](https://github.com/eea/volto-clms-theme/commit/25535bc0dbcce80a60e6a115f1709e5dd1f04b62)
101
+ - image carousel dots change and text carousel style change [`509eb04`](https://github.com/eea/volto-clms-theme/commit/509eb04e0320de8ea6fe9121ca15498274de170e)
102
+ - Basemap gallery bug fix [`00aed49`](https://github.com/eea/volto-clms-theme/commit/00aed490b48c405edf474b20fad98f5653783a82)
103
+ - text carousel [`0becdb2`](https://github.com/eea/volto-clms-theme/commit/0becdb254318fd010b916adefa0ef7e9ec0b5b79)
104
+ - add dataset citation [`895bbc3`](https://github.com/eea/volto-clms-theme/commit/895bbc3ce48badfd3b03afcecccacba0505508d6)
105
+ - Text and link carousel block created [`c4d8bb3`](https://github.com/eea/volto-clms-theme/commit/c4d8bb34b2fbb1a3f3064f073b0441366a5d2839)
106
+ - add a new data-grid widget [`dd64854`](https://github.com/eea/volto-clms-theme/commit/dd648544afa2c8896981fe0feded18b38f236e79)
107
+
7
108
  #### [1.0.44](https://github.com/eea/volto-clms-theme/compare/1.0.43...1.0.44)
8
109
 
110
+ > 1 December 2021
111
+
112
+ - Develop [`#136`](https://github.com/eea/volto-clms-theme/pull/136)
9
113
  - CclLoginModal - external link fixed [`736f348`](https://github.com/eea/volto-clms-theme/commit/736f348712c473d323a8bf2b6a1c6a10ab0aa266)
10
114
  - change login modal texts [`b0c98af`](https://github.com/eea/volto-clms-theme/commit/b0c98af08501c830bb175b4ec69ad711c2874da1)
11
115
 
package/Jenkinsfile CHANGED
@@ -10,12 +10,29 @@ pipeline {
10
10
 
11
11
  stages {
12
12
 
13
+ stage('Release') {
14
+ when {
15
+ allOf {
16
+ environment name: 'CHANGE_ID', value: ''
17
+ branch 'master'
18
+ }
19
+ }
20
+ steps {
21
+ node(label: 'docker') {
22
+ withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
23
+ sh '''docker pull eeacms/gitflow'''
24
+ sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
25
+ }
26
+ }
27
+ }
28
+ }
29
+
13
30
  stage('Code') {
14
31
  when {
15
32
  allOf {
16
33
  environment name: 'CHANGE_ID', value: ''
17
- not { branch 'master' }
18
34
  not { changelog '.*^Automated release [0-9\\.]+$' }
35
+ not { branch 'master' }
19
36
  }
20
37
  }
21
38
  steps {
@@ -46,8 +63,10 @@ pipeline {
46
63
  when {
47
64
  allOf {
48
65
  environment name: 'CHANGE_ID', value: ''
49
- not { branch 'master' }
50
- not { changelog '.*^Automated release [0-9\\.]+$' }
66
+ anyOf {
67
+ not { changelog '.*^Automated release [0-9\\.]+$' }
68
+ branch 'master'
69
+ }
51
70
  }
52
71
  }
53
72
  steps {
@@ -92,8 +111,10 @@ pipeline {
92
111
  when {
93
112
  allOf {
94
113
  environment name: 'CHANGE_ID', value: ''
95
- not { branch 'master' }
96
- not { changelog '.*^Automated release [0-9\\.]+$' }
114
+ anyOf {
115
+ not { changelog '.*^Automated release [0-9\\.]+$' }
116
+ branch 'master'
117
+ }
97
118
  }
98
119
  }
99
120
  steps {
@@ -144,12 +165,16 @@ pipeline {
144
165
 
145
166
  stage('Report to SonarQube') {
146
167
  when {
168
+ allOf {
147
169
  environment name: 'CHANGE_ID', value: ''
148
170
  anyOf {
149
171
  branch 'master'
150
- branch 'develop'
172
+ allOf {
173
+ branch 'develop'
174
+ not { changelog '.*^Automated release [0-9\\.]+$' }
175
+ }
151
176
  }
152
- not { changelog '.*^Automated release [0-9\\.]+$' }
177
+ }
153
178
  }
154
179
  steps {
155
180
  node(label: 'swarm') {
@@ -191,23 +216,6 @@ pipeline {
191
216
  }
192
217
  }
193
218
 
194
- stage('Release') {
195
- when {
196
- allOf {
197
- environment name: 'CHANGE_ID', value: ''
198
- branch 'master'
199
- }
200
- }
201
- steps {
202
- node(label: 'docker') {
203
- withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
204
- sh '''docker pull eeacms/gitflow'''
205
- sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
206
- }
207
- }
208
- }
209
- }
210
-
211
219
  }
212
220
 
213
221
  post {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.44",
3
+ "version": "1.0.48",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -29,6 +29,10 @@
29
29
  "volto-form-block",
30
30
  "@eeacms/volto-taxonomy"
31
31
  ],
32
+ "resolutions": {
33
+ "volto-slate": "4.2.1",
34
+ "react-slick": "0.28.1"
35
+ },
32
36
  "dependencies": {
33
37
  "@eeacms/volto-tabs-block": "1.2.7",
34
38
  "@eeacms/volto-accordion-block": "3.4.7",
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Post meeting register actions.
3
+ * @module actions/postImportGeonetwork
4
+ */
5
+ export const POST_IMPORT_GEONETWORK = 'POST_IMPORT_GEONETWORK';
6
+
7
+ /**
8
+ * Post import geonetwork.
9
+ * @function postImportGeonetwork
10
+ * @returns {Object} Get extra items action.
11
+ */
12
+ export function postImportGeonetwork(url, id, type) {
13
+ return {
14
+ type: POST_IMPORT_GEONETWORK,
15
+ request: {
16
+ op: 'post',
17
+ data: { id: id, type: type },
18
+ path: `${url}/@import-from-geonetwork`,
19
+ },
20
+ };
21
+ }
@@ -11,33 +11,47 @@
11
11
  * };
12
12
  */
13
13
  export { getTokens, createTokens, deleteTokens } from './tokens/tokens';
14
+
14
15
  export {
15
16
  getExtraBreadcrumbItems,
16
17
  GET_EXTRA_BREADCRUMB_ITEMS,
17
18
  } from './extra_breadcrumbs/extra_breadcrumb';
19
+
18
20
  export {
19
21
  POST_MEETING_REGISTER,
20
22
  postMeetingRegister,
21
23
  } from './meeting/meeting_register';
24
+
22
25
  export {
23
26
  MEETING_SUBSCRIBERS_MANIPULATION,
24
27
  MeetingSubscribersManipulation,
25
28
  } from './meeting/meeting_subscribers_manipulation';
29
+
26
30
  export {
27
31
  MEETING_SUBSCRIBERS,
28
32
  MeetingSubscribers,
29
33
  } from './meeting/meeting_subscribers';
34
+
30
35
  export {
31
36
  POST_DOWNLOADTOOL,
32
37
  postDownloadtool,
33
38
  } from './downloadtool/post_downloadtool';
39
+
34
40
  export {
35
41
  GET_DOWNLOADTOOL,
36
42
  getDownloadtool,
37
43
  } from './downloadtool/get_downloadtool';
44
+
38
45
  export {
39
46
  DELETE_DOWNLOADTOOL,
40
47
  deleteDownloadtool,
41
48
  } from './downloadtool/delete_downloadtool';
42
49
 
43
50
  export { GET_REGISTRY, getRegistry } from './registry/registry';
51
+
52
+ export {
53
+ POST_IMPORT_GEONETWORK,
54
+ postImportGeonetwork,
55
+ } from './geonetwork/import_geonetwork';
56
+
57
+ export { getUserSchema } from './userschema/userschema';
@@ -0,0 +1,17 @@
1
+ // eslint-disable-next-line import/no-unresolved
2
+ import { GET_USERSCHEMA } from '../../constants/ActionTypes';
3
+
4
+ /**
5
+ * Get the user schema.
6
+ * @function getUserSchema
7
+ * @returns {Object} Get the user schema action.
8
+ */
9
+ export function getUserSchema() {
10
+ return {
11
+ type: GET_USERSCHEMA,
12
+ request: {
13
+ op: 'get',
14
+ path: `/@userschema`,
15
+ },
16
+ };
17
+ }
@@ -0,0 +1,38 @@
1
+ import React /* , { useState } */ from 'react';
2
+
3
+ // import { TextLinkCarouselView } from './TextLinkCarouselView';
4
+ import { SidebarPortal } from '@plone/volto/components';
5
+ import InlineForm from '@plone/volto/components/manage/Form/InlineForm';
6
+ import { TextLinkCarouselSchema } from './TextLinkCarouselSchema';
7
+
8
+ // import { compose } from 'redux';
9
+ // import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser';
10
+ // import { injectIntl } from 'react-intl';
11
+
12
+ const TextLinkCarouselEdit = (props) => {
13
+ const { block, data, onChangeBlock, selected } = props;
14
+
15
+ return (
16
+ <>
17
+ {data?.textLink?.items.map((item, index) => (
18
+ <div className="text-link-carousel-block" key={index}>
19
+ {item.text}
20
+ </div>
21
+ ))}
22
+ <SidebarPortal selected={selected}>
23
+ <InlineForm
24
+ schema={TextLinkCarouselSchema()}
25
+ title="Home text link carousel"
26
+ onChangeField={(id, value) => {
27
+ onChangeBlock(block, {
28
+ ...data,
29
+ [id]: value,
30
+ });
31
+ }}
32
+ formData={data}
33
+ />
34
+ </SidebarPortal>
35
+ </>
36
+ );
37
+ };
38
+ export default /* compose(withObjectBrowser, injectIntl) */ TextLinkCarouselEdit;
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import loadable from '@loadable/component';
3
+ const Slider = loadable(() => import('react-slick'));
4
+
5
+ const TextLinkCarouselView = (props) => {
6
+ const { data } = props;
7
+ const slider = React.useRef(null);
8
+
9
+ const { tabsList = [], setActiveTab = () => {} } = props;
10
+ const settings = {
11
+ dots: false,
12
+ infinite: true,
13
+ speed: 500,
14
+ fade: false,
15
+ cssEase: 'linear',
16
+ arrows: false,
17
+ autoplay: true,
18
+ autoplaySpeed: 2000,
19
+ beforeChange: (oldIndex, index) => {
20
+ setActiveTab(tabsList[index]);
21
+ },
22
+ };
23
+
24
+ return (
25
+ <>
26
+ <div class="ccl-container">
27
+ <Slider {...settings} ref={slider} className="text-carousel">
28
+ {data?.textLink?.items.map((item, index) => (
29
+ <div className="text-link-carousel-block" key={index}>
30
+ <div className="text-link-carousel-block-content">
31
+ <a href={'' + item?.link?.[0]?.['@id']}>{item.text}</a>
32
+ </div>
33
+ </div>
34
+ ))}
35
+ </Slider>
36
+ </div>
37
+ </>
38
+ );
39
+ };
40
+
41
+ export default TextLinkCarouselView;
@@ -0,0 +1,18 @@
1
+ export const TextLinkCarouselSchema = () => ({
2
+ title: 'Home text link carousel',
3
+ fieldsets: [
4
+ {
5
+ id: 'default',
6
+ title: 'Default',
7
+ fields: ['textLink'],
8
+ },
9
+ ],
10
+ properties: {
11
+ textLink: {
12
+ title: 'Text and Link',
13
+ widget: 'text_link_widget',
14
+ type: 'string',
15
+ },
16
+ },
17
+ required: [],
18
+ });
@@ -3,12 +3,10 @@ import { connect } from 'react-redux';
3
3
  import { compose } from 'redux';
4
4
  import { withRouter } from 'react-router';
5
5
  import loadable from '@loadable/component';
6
- import { Icon, RenderBlocks } from '@plone/volto/components';
6
+ import { RenderBlocks } from '@plone/volto/components';
7
7
  import { withScrollToTarget } from '@eeacms/volto-tabs-block/hocs';
8
8
  import './custom.less';
9
- import rightArrowSVG from '@eeacms/volto-tabs-block/icons/right-arrow.svg';
10
- import leftArrowSVG from '@eeacms/volto-tabs-block/icons/left-arrow.svg';
11
- // import cx from 'classnames';
9
+ import cx from 'classnames';
12
10
  import 'slick-carousel/slick/slick.css';
13
11
  import 'slick-carousel/slick/slick-theme.css';
14
12
  import '@eeacms/volto-tabs-block/less/carousel.less';
@@ -29,7 +27,7 @@ const View = (props) => {
29
27
  const activeTabIndex = tabsList.indexOf(activeTab);
30
28
 
31
29
  const settings = {
32
- dots: true,
30
+ dots: false,
33
31
  infinite: true,
34
32
  speed: 2000,
35
33
  fade: true,
@@ -40,6 +38,32 @@ const View = (props) => {
40
38
  setActiveTab(tabsList[index]);
41
39
  },
42
40
  };
41
+
42
+ const Dots = (props) => {
43
+ const { activeTab = null, tabsList = [], slider = {} } = props;
44
+ return tabsList.length > 1 ? (
45
+ <ul className={cx('slick-dots', props.uiContainer)} role={'tablist'}>
46
+ {tabsList.map((tab, index) => (
47
+ <li
48
+ key={`dot-${tab}`}
49
+ className={cx({ 'slick-active': activeTab === tab })}
50
+ role={'presentation'}
51
+ >
52
+ <button
53
+ onClick={() => {
54
+ if (slider.current) {
55
+ slider.current.slickGoTo(index);
56
+ }
57
+ }}
58
+ />
59
+ </li>
60
+ ))}
61
+ </ul>
62
+ ) : (
63
+ ''
64
+ );
65
+ };
66
+
43
67
  const ArrowsGroup = (props) => {
44
68
  // const { activeTab = null, tabsList = [], slider = {} } = props;
45
69
  // const currentSlide = tabsList.indexOf(activeTab);
@@ -55,9 +79,7 @@ const View = (props) => {
55
79
  slider.current.slickPrev();
56
80
  }
57
81
  }}
58
- >
59
- <Icon name={leftArrowSVG} size="50px" />
60
- </button>
82
+ ></button>
61
83
 
62
84
  <button
63
85
  aria-label="Next slide"
@@ -67,9 +89,7 @@ const View = (props) => {
67
89
  slider.current.slickNext();
68
90
  }
69
91
  }}
70
- >
71
- <Icon name={rightArrowSVG} size="50px" />
72
- </button>
92
+ ></button>
73
93
  </div>
74
94
  );
75
95
  };
@@ -128,6 +148,7 @@ const View = (props) => {
128
148
  {panes.length ? panes.map((pane) => pane.renderItem) : ''}
129
149
  </Slider>
130
150
  <ArrowsGroup activeTab={activeTab} tabsList={tabsList} slider={slider} />
151
+ <Dots activeTab={activeTab} tabsList={tabsList} slider={slider} />
131
152
  </>
132
153
  );
133
154
  };
@@ -23,7 +23,7 @@ const CclProductTabsView = (props) => {
23
23
  </div>
24
24
  <div className="menu-detail-button">
25
25
  <a
26
- href={'/' + locale + '/mapviewer?product=' + props.metadata['UID']}
26
+ href={'/' + locale + '/map-viewer?product=' + props.metadata['UID']}
27
27
  className="ccl-button ccl-button--default"
28
28
  >
29
29
  <FormattedMessage
@@ -1,12 +1,14 @@
1
+ import './fontawesome';
2
+
3
+ import { NavLink, Route } from 'react-router-dom';
4
+
1
5
  import React from 'react';
2
- import { connect } from 'react-redux';
6
+ import { RenderBlocks } from '@plone/volto/components';
3
7
  import { compose } from 'redux';
8
+ import { connect } from 'react-redux';
9
+ import cx from 'classnames';
4
10
  import { withRouter } from 'react-router';
5
- import { RenderBlocks } from '@plone/volto/components';
6
11
  import { withScrollToTarget } from '@eeacms/volto-tabs-block/hocs';
7
- import './fontawesome';
8
- import cx from 'classnames';
9
- import { Route, NavLink } from 'react-router-dom';
10
12
 
11
13
  const CclVerticalTabsView = (props) => {
12
14
  const { metadata = {}, tabsList = [], ExtraComponent = null } = props;
@@ -47,16 +49,28 @@ const CclVerticalTabsView = (props) => {
47
49
  setActiveTab = () => {},
48
50
  } = props;
49
51
  const title = tabs[tab].title;
52
+ const subTab = tabs[tab]?.subTab?.subtab || false;
50
53
  const tabIndex = index + 1;
54
+ const nextTabIndex = index + 2;
55
+ const nextSubTab =
56
+ tabs[tabsList[tabIndex]]?.subTab?.subtab || false;
51
57
  const defaultTitle = `Tab ${tabIndex}`;
52
58
  return (
53
59
  <div
54
60
  key={index}
55
61
  id={tabIndex}
56
- className={cx('card', tab === activeTab && 'active')}
62
+ className={cx(
63
+ 'card',
64
+ tab === activeTab && 'active',
65
+ subTab && 'subcard',
66
+ )}
57
67
  >
58
68
  <NavLink
59
- to={'#tab' + tabIndex}
69
+ to={
70
+ subTab === false && nextSubTab !== false
71
+ ? '#tab' + nextTabIndex
72
+ : '#tab' + tabIndex
73
+ }
60
74
  className="collapsed"
61
75
  onClick={(e) => {
62
76
  if (activeTab !== tab) {