@eeacms/volto-clms-theme 1.0.201 → 1.0.203

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,6 +4,25 @@ 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.203](https://github.com/eea/volto-clms-theme/compare/1.0.202...1.0.203) - 12 May 2023
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: CLMS-2068 spatial resolution filter counts as 1 [Unai - [`f4e0809`](https://github.com/eea/volto-clms-theme/commit/f4e0809606e4e87eb25780a863b614181708c807)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - dashboard style [Unai - [`b6a5532`](https://github.com/eea/volto-clms-theme/commit/b6a5532fc3229124a04f613b9bcf9b8514bd4a20)]
16
+ - Refactor Apply filters with Close [Unai - [`504cc76`](https://github.com/eea/volto-clms-theme/commit/504cc76c8eae7df3ed44e41d1650012cdb589404)]
17
+ ### [1.0.202](https://github.com/eea/volto-clms-theme/compare/1.0.201...1.0.202) - 11 May 2023
18
+
19
+ #### :rocket: New Features
20
+
21
+ - feat: CLMS-1556 cart datasets not doleted after downloading [Unai - [`d92704a`](https://github.com/eea/volto-clms-theme/commit/d92704ae8bb2d6346627767da894a2e0e755e2b2)]
22
+
23
+ #### :hammer_and_wrench: Others
24
+
25
+ - mediaquery in dashboards for big devices [Unai - [`ede6386`](https://github.com/eea/volto-clms-theme/commit/ede6386b1d30d5a0c9cd9be490df2eaba42ed4e9)]
7
26
  ### [1.0.201](https://github.com/eea/volto-clms-theme/compare/1.0.200...1.0.201) - 9 May 2023
8
27
 
9
28
  #### :rocket: New Features
@@ -15,7 +34,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
15
34
 
16
35
  - fix: clms-1714 remove button when no search button is selected [Mikel Larreategi - [`c3d72e5`](https://github.com/eea/volto-clms-theme/commit/c3d72e53355546019ca1e727b39d477f16079011)]
17
36
  - fix: clms-2143 coordinates and direction were split [Mikel Larreategi - [`1c5c000`](https://github.com/eea/volto-clms-theme/commit/1c5c00003e323ef3fbf9911a415ca9143cf992ca)]
18
- - fix: clms-2053 CSS fixes [Mikel Larreategi - [`5b3098f`](https://github.com/eea/volto-clms-theme/commit/5b3098fdf42529e4d9bfaa026ed9a587ec5ff3d1)]
19
37
 
20
38
  #### :hammer_and_wrench: Others
21
39
 
@@ -1088,6 +1106,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1088
1106
  #### :hammer_and_wrench: Others
1089
1107
 
1090
1108
  - 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)]
1109
+ - Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
1091
1110
  - 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)]
1092
1111
  - lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
1093
1112
  - 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)]
@@ -1238,6 +1257,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1238
1257
  - search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
1239
1258
  - language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
1240
1259
  - toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
1260
+ - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
1241
1261
  ### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
1242
1262
 
1243
1263
  #### :hammer_and_wrench: Others
@@ -2142,11 +2162,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2142
2162
  #### :hammer_and_wrench: Others
2143
2163
 
2144
2164
  - replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
2165
+ - yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
2145
2166
  - add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
2146
2167
  - upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
2147
2168
  - HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
2148
2169
  - babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
2149
2170
  - prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
2171
+ - add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
2150
2172
  - Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
2151
2173
  - cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
2152
2174
  - some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.201",
3
+ "version": "1.0.203",
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,7 @@ const FilterList = (props) => {
29
29
  baseFacets.map((bf) => bf.field?.value).includes(v[0]),
30
30
  ),
31
31
  );
32
+
32
33
  const fieldsToAvoidChildren =
33
34
  data?.facets?.length > 0
34
35
  ? data.facets
@@ -61,10 +62,14 @@ const FilterList = (props) => {
61
62
  Object.keys(currentFilters).forEach((filterKey) => {
62
63
  if (typeof currentFilters[filterKey] === 'object') {
63
64
  currentFiltersToCount[filterKey] =
64
- baseFacets.filter((facet) => facet.field.value === filterKey).length >
65
+ (baseFacets.filter((facet) => facet.field.value === filterKey).length >
66
+ 0 &&
67
+ baseFacets.filter((facet) => facet.field.value === filterKey)[0]
68
+ .type === 'doubleRangeFacet') ||
69
+ (baseFacets.filter((facet) => facet.field.value === filterKey).length >
65
70
  0 &&
66
- baseFacets.filter((facet) => facet.field.value === filterKey)[0]
67
- .type === 'doubleRangeFacet'
71
+ baseFacets.filter((facet) => facet.field.value === filterKey)[0]
72
+ .type === 'doubleRangeSpatialFacet')
68
73
  ? ['placeholder']
69
74
  : currentFilters[filterKey].filter((filter) => {
70
75
  return !filtersToAvoidSet.has(filter);
@@ -76,6 +81,7 @@ const FilterList = (props) => {
76
81
 
77
82
  const totalFilters = [].concat.apply([], Object.values(currentFiltersToCount))
78
83
  .length;
84
+
79
85
  const intl = useIntl();
80
86
  return showFilterList && Object.keys(currentFilters).length ? (
81
87
  <div className="accordion ui filter-listing">
@@ -33,7 +33,7 @@ import './cart-table.less';
33
33
  const CLMSCartContent = (props) => {
34
34
  const { localSessionCart } = props;
35
35
  const dispatch = useDispatch();
36
- const { removeCartItem, removeCartItems, updateCart } = useCartState();
36
+ const { removeCartItem, /* removeCartItems, */ updateCart } = useCartState();
37
37
 
38
38
  // state connections
39
39
  const cart = useSelector((state) => state.cart_items.items);
@@ -110,17 +110,17 @@ const CLMSCartContent = (props) => {
110
110
 
111
111
  // eslint-disable-next-line react-hooks/exhaustive-deps
112
112
  const setCartItemInProgress = (in_progress_unique_ids) => {
113
- let started_processing_items =
114
- cartItems.length > 0
115
- ? cartItems.filter((r) =>
116
- in_progress_unique_ids.includes(r['unique_id']),
117
- )
118
- : [];
119
- var items_to_remove =
120
- started_processing_items.length > 0
121
- ? started_processing_items.map((item) => item.unique_id)
122
- : [];
123
- removeCartItems(items_to_remove);
113
+ // let started_processing_items =
114
+ // cartItems.length > 0
115
+ // ? cartItems.filter((r) =>
116
+ // in_progress_unique_ids.includes(r['unique_id']),
117
+ // )
118
+ // : [];
119
+ // var items_to_remove =
120
+ // started_processing_items.length > 0
121
+ // ? started_processing_items.map((item) => item.unique_id)
122
+ // : [];
123
+ // removeCartItems(items_to_remove);
124
124
  dispatch(getDownloadtool());
125
125
  };
126
126
 
@@ -83,10 +83,7 @@ function CclFiltersModal(props) {
83
83
  onClick={() => closeModal()}
84
84
  onKeyDown={() => closeModal()}
85
85
  >
86
- <FormattedMessage
87
- id="Apply filters"
88
- defaultMessage="Apply filters"
89
- />
86
+ <FormattedMessage id="Close" defaultMessage="Close" />
90
87
  </button>
91
88
  </div>
92
89
  </div>
@@ -41,7 +41,7 @@ body.is-anonymous main {
41
41
  /* detect if is logged in but in view with toolbar open */
42
42
  body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous)
43
43
  .stretch {
44
- max-width: 1636px;
44
+ max-width: 100vw !important;
45
45
  margin: 0;
46
46
  }
47
47
 
@@ -49,6 +49,106 @@ body:not(.is-authenticated):not(.document_wide_view).stretch {
49
49
  padding: 0;
50
50
  }
51
51
 
52
+ /* @media screen and (max-width: 1790px) {
53
+ body.section-stats.section-dashboards .stretch {
54
+ padding-left: 80px !important;
55
+ margin-left: -21vw !important;
56
+ }
57
+ }
58
+ */
59
+
60
+ @media screen and (max-width: 3900px) {
61
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous)
62
+ .stretch {
63
+ right: auto;
64
+ left: auto;
65
+ width: auto;
66
+ padding: 0;
67
+ transform: none;
68
+ }
69
+
70
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar-collapsed)
71
+ .stretch {
72
+ max-width: 100vw !important;
73
+ margin: 0 -26.54vw !important;
74
+ }
75
+
76
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar)
77
+ .stretch {
78
+ max-width: 100vw !important;
79
+ margin: 0 -26.5vw !important;
80
+ }
81
+ }
82
+
83
+ @media screen and (max-width: 3400px) {
84
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous)
85
+ .stretch {
86
+ right: auto;
87
+ left: auto;
88
+ width: auto;
89
+ padding: 0;
90
+ transform: none;
91
+ }
92
+
93
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar-collapsed)
94
+ .stretch {
95
+ max-width: 100vw !important;
96
+ margin: 0 -26.54vw !important;
97
+ }
98
+
99
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar)
100
+ .stretch {
101
+ max-width: 100vw !important;
102
+ margin: 0 -26.5vw !important;
103
+ }
104
+ }
105
+
106
+ @media screen and (max-width: 2600px) {
107
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous)
108
+ .stretch {
109
+ right: auto;
110
+ left: auto;
111
+ width: auto;
112
+ padding: 0;
113
+ transform: none;
114
+ }
115
+
116
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar-collapsed)
117
+ .stretch {
118
+ max-width: 100vw !important;
119
+ margin: 0 -19.54vw !important;
120
+ }
121
+
122
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar)
123
+ .stretch {
124
+ max-width: 100vw !important;
125
+ margin: 0 -19.5vw !important;
126
+ }
127
+ }
128
+
129
+ @media screen and (max-width: 2200px) {
130
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous)
131
+ .stretch {
132
+ right: auto;
133
+ left: auto;
134
+ width: auto;
135
+ padding: 0;
136
+ transform: none;
137
+ }
138
+
139
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar-collapsed)
140
+ .stretch {
141
+ max-width: 100vw !important;
142
+ margin: 0 -18 !important;
143
+ }
144
+
145
+ body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar)
146
+ .stretch {
147
+ max-width: 100vw !important;
148
+ margin: 0 -18 !important;
149
+ }
150
+ }
151
+
52
152
  @media screen and (max-width: 1790px) {
53
153
  body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous)
54
154
  .stretch {