@eeacms/volto-clms-theme 1.1.5 → 1.1.6

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.
package/CHANGELOG.md CHANGED
@@ -4,11 +4,22 @@ 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.1.5](https://github.com/eea/volto-clms-theme/compare/1.1.4...1.1.5) - 1 June 2023
7
+ ### [1.1.6](https://github.com/eea/volto-clms-theme/compare/1.1.5...1.1.6) - 1 June 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: clms-2266 long band names are cut [Mikel Larreategi - [`778e3e7`](https://github.com/eea/volto-clms-theme/commit/778e3e77e77b41f3312f9709ab22c1c314ec4725)]
12
+
13
+ #### :house: Internal changes
14
+
8
15
 
9
16
  #### :hammer_and_wrench: Others
10
17
 
11
- - set default value for layer when loading into the cart [Mikel Larreategi - [`d443272`](https://github.com/eea/volto-clms-theme/commit/d443272c0d87a7a56e1b3ff2131ada9625ec05ce)]
18
+ - add icon to clearing button [ionlizarazu - [`5f54b5f`](https://github.com/eea/volto-clms-theme/commit/5f54b5ff91a8e765303fa9d37798d521a6cea2eb)]
19
+ - search block text [ionlizarazu - [`2dafff4`](https://github.com/eea/volto-clms-theme/commit/2dafff44c77eb7d42dd73489fee079cf3034ac3e)]
20
+ - deactivate input types for DownloadableFilesTableWidget [ionlizarazu - [`dea6824`](https://github.com/eea/volto-clms-theme/commit/dea6824c4bdf52e665ed53ed859d8c37e3222070)]
21
+ ### [1.1.5](https://github.com/eea/volto-clms-theme/compare/1.1.4...1.1.5) - 1 June 2023
22
+
12
23
  ### [1.1.4](https://github.com/eea/volto-clms-theme/compare/1.1.3...1.1.4) - 31 May 2023
13
24
 
14
25
  #### :hammer_and_wrench: Others
@@ -1199,7 +1210,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1199
1210
  #### :hammer_and_wrench: Others
1200
1211
 
1201
1212
  - related products and datasets added to news and meeting views and login-plone route created [Unai - [`5704a1a`](https://github.com/eea/volto-clms-theme/commit/5704a1a766148746162b60efaf232ea90dc20cf4)]
1202
- - Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
1203
1213
  - sort items according to the lowercased label and put those with special meaning at the end [Mikel Larreategi - [`6410abe`](https://github.com/eea/volto-clms-theme/commit/6410abe096f60dcad54dced2026c9df9b7946d68)]
1204
1214
  - lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
1205
1215
  - footer newsletter subscription change, global search maxLength change from 8000 to 200 and /login design change [Unai - [`a09d24a`](https://github.com/eea/volto-clms-theme/commit/a09d24adbb6fa053fb2a2cc0071506b906593b42)]
@@ -1350,7 +1360,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1350
1360
  - search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
1351
1361
  - language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
1352
1362
  - toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
1353
- - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
1354
1363
  ### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
1355
1364
 
1356
1365
  #### :hammer_and_wrench: Others
@@ -2255,13 +2264,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2255
2264
  #### :hammer_and_wrench: Others
2256
2265
 
2257
2266
  - replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
2258
- - yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
2259
2267
  - add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
2260
2268
  - upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
2261
2269
  - HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
2262
2270
  - babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
2263
2271
  - prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
2264
- - add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
2265
2272
  - Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
2266
2273
  - cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
2267
2274
  - some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
package/Jenkinsfile CHANGED
@@ -41,19 +41,19 @@ pipeline {
41
41
 
42
42
  "ES lint": {
43
43
  node(label: 'docker') {
44
- sh '''docker run -i --rm --name="$BUILD_TAG-eslint" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha eslint'''
44
+ sh '''docker run -i --rm --name="$BUILD_TAG-eslint" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci eslint'''
45
45
  }
46
46
  },
47
47
 
48
48
  "Style lint": {
49
49
  node(label: 'docker') {
50
- sh '''docker run -i --rm --name="$BUILD_TAG-stylelint" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha stylelint'''
50
+ sh '''docker run -i --rm --name="$BUILD_TAG-stylelint" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci stylelint'''
51
51
  }
52
52
  },
53
53
 
54
54
  "Prettier": {
55
55
  node(label: 'docker') {
56
- sh '''docker run -i --rm --name="$BUILD_TAG-prettier" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha prettier'''
56
+ sh '''docker run -i --rm --name="$BUILD_TAG-prettier" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci prettier'''
57
57
  }
58
58
  }
59
59
  )
@@ -77,8 +77,8 @@ pipeline {
77
77
  node(label: 'docker') {
78
78
  script {
79
79
  try {
80
- sh '''docker pull plone/volto-addon-ci:alpha'''
81
- sh '''docker run -i --name="$BUILD_TAG-volto" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha'''
80
+ sh '''docker pull plone/volto-addon-ci'''
81
+ sh '''docker run -i --name="$BUILD_TAG-volto" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci'''
82
82
  sh '''rm -rf xunit-reports'''
83
83
  sh '''mkdir -p xunit-reports'''
84
84
  sh '''docker cp $BUILD_TAG-volto:/opt/frontend/my-volto-project/coverage xunit-reports/'''
@@ -126,7 +126,7 @@ pipeline {
126
126
  // script {
127
127
  // try {
128
128
  // sh '''docker pull eeacms/plone-backend; docker run --rm -d --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="eea.kitkat:testing" eeacms/plone-backend'''
129
- // sh '''docker pull plone/volto-addon-ci:alpha; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e DEPENDENCIES="$DEPENDENCIES" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha cypress'''
129
+ // sh '''docker pull plone/volto-addon-ci; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e DEPENDENCIES="$DEPENDENCIES" -e VOLTO=$VOLTO plone/volto-addon-ci cypress'''
130
130
  // } finally {
131
131
  // try {
132
132
  // sh '''rm -rf cypress-reports cypress-results cypress-coverage'''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
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",
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
- import { Input } from 'semantic-ui-react';
2
+ import { Button, Input } from 'semantic-ui-react';
3
3
  import { defineMessages, useIntl } from 'react-intl';
4
+ import { Icon } from '@plone/volto/components';
5
+ import clearSVG from '@plone/volto/icons/clear.svg';
4
6
 
5
7
  const messages = defineMessages({
6
8
  search: {
@@ -10,24 +12,9 @@ const messages = defineMessages({
10
12
  });
11
13
 
12
14
  const SearchInput = (props) => {
13
- const {
14
- data,
15
- searchText,
16
- setSearchText,
17
- isLive,
18
- onTriggerSearch,
19
- ...rest
20
- } = props;
15
+ const { data, searchText, setSearchText, isLive, onTriggerSearch } = props;
21
16
  const intl = useIntl();
22
17
 
23
- React.useEffect(() => {
24
- if (rest.searchedText !== '') {
25
- onTriggerSearch(rest.searchedText);
26
- setSearchText(rest.searchedText);
27
- }
28
- return () => {};
29
- }, [rest.searchedText, onTriggerSearch, setSearchText]);
30
-
31
18
  return (
32
19
  <div className="search-input">
33
20
  <Input
@@ -44,10 +31,25 @@ const SearchInput = (props) => {
44
31
  onChange={(event, { value }) => {
45
32
  setSearchText(value);
46
33
  if (isLive) {
47
- onTriggerSearch(searchText);
34
+ onTriggerSearch(value);
48
35
  }
49
36
  }}
50
37
  />
38
+ <div className="search-input-actions">
39
+ {searchText && (
40
+ <Button
41
+ basic
42
+ icon
43
+ className="search-input-clear-icon-button"
44
+ onClick={() => {
45
+ setSearchText('');
46
+ onTriggerSearch('');
47
+ }}
48
+ >
49
+ <Icon name={clearSVG}></Icon>
50
+ </Button>
51
+ )}
52
+ </div>
51
53
  </div>
52
54
  );
53
55
  };
@@ -1,3 +1,7 @@
1
1
  td {
2
2
  vertical-align: middle !important;
3
3
  }
4
+
5
+ .cart-table .ui.selection.dropdown .menu > .item {
6
+ word-wrap: break-word;
7
+ }
@@ -81,7 +81,17 @@ const DownloadableFilesTableWidget = (props) => {
81
81
  setUISchema(JSON.parse(newUiSchema));
82
82
  }}
83
83
  mods={{
84
- deactivatedFormInputs: ['array', 'radio', 'password', 'longAnswer'],
84
+ deactivatedFormInputs: [
85
+ 'array',
86
+ 'radio',
87
+ 'password',
88
+ 'longAnswer',
89
+ 'date',
90
+ 'dateTime',
91
+ 'time',
92
+ 'checkbox',
93
+ 'integer',
94
+ ],
85
95
  }}
86
96
  />
87
97
  {edited && (