@eeacms/volto-arcgis-block 0.1.188 → 0.1.190
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/.husky/pre-commit +2 -0
- package/CHANGELOG.md +17 -1
- package/Jenkinsfile +45 -21
- package/package.json +27 -3
- package/src/components/MapViewer/AreaWidget.jsx +2 -2
- package/src/components/MapViewer/BookmarkWidget.jsx +9 -0
- package/src/components/MapViewer/css/ArcgisMap.css +6 -0
- package/src/components/UseCasesMapViewer/css/ArcgisMap.css +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,23 @@ 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
|
-
### [0.1.
|
|
7
|
+
### [0.1.190](https://github.com/eea/volto-arcgis-block/compare/0.1.189...0.1.190) - 8 September 2023
|
|
8
|
+
|
|
9
|
+
#### :house: Internal changes
|
|
10
|
+
|
|
11
|
+
- chore: use lint-staged v13 [valentinab25 - [`47d5735`](https://github.com/eea/volto-arcgis-block/commit/47d57354aa2834cc7afa0334090a25298977af95)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Update package.json [Urkorue - [`b5ab3e8`](https://github.com/eea/volto-arcgis-block/commit/b5ab3e8134027c1976d74eedbc1b8f699f2ba486)]
|
|
16
|
+
- test: use lint-staged 13.1.4 [valentinab25 - [`394f866`](https://github.com/eea/volto-arcgis-block/commit/394f8666d23fe6200b7547af1b7f59681ff76d32)]
|
|
17
|
+
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`b07cf9b`](https://github.com/eea/volto-arcgis-block/commit/b07cf9b086b4c42d68e80d580a616eb364cb55f3)]
|
|
18
|
+
### [0.1.189](https://github.com/eea/volto-arcgis-block/compare/0.1.188...0.1.189) - 5 September 2023
|
|
19
|
+
|
|
20
|
+
#### :hammer_and_wrench: Others
|
|
21
|
+
|
|
22
|
+
- CLMS-2528+CLMS-2454 (Feat): Use Cases Gap Removed and ESRI copyright displayed in Area selection [Urkorue - [`c746f3a`](https://github.com/eea/volto-arcgis-block/commit/c746f3a030fa2c4d895da4a695f793b79fab90f2)]
|
|
23
|
+
### [0.1.188](https://github.com/eea/volto-arcgis-block/compare/0.1.187...0.1.188) - 31 August 2023
|
|
8
24
|
|
|
9
25
|
### [0.1.187](https://github.com/eea/volto-arcgis-block/compare/0.1.186...0.1.187) - 28 August 2023
|
|
10
26
|
|
package/Jenkinsfile
CHANGED
|
@@ -65,11 +65,17 @@ pipeline {
|
|
|
65
65
|
|
|
66
66
|
stage('Tests') {
|
|
67
67
|
when {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
anyOf {
|
|
69
|
+
allOf {
|
|
70
|
+
not { environment name: 'CHANGE_ID', value: '' }
|
|
71
|
+
environment name: 'CHANGE_TARGET', value: 'develop'
|
|
72
|
+
}
|
|
73
|
+
allOf {
|
|
74
|
+
environment name: 'CHANGE_ID', value: ''
|
|
75
|
+
anyOf {
|
|
76
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
77
|
+
branch 'master'
|
|
78
|
+
}
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
}
|
|
@@ -113,11 +119,17 @@ pipeline {
|
|
|
113
119
|
|
|
114
120
|
stage('Integration tests') {
|
|
115
121
|
when {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
anyOf {
|
|
123
|
+
allOf {
|
|
124
|
+
not { environment name: 'CHANGE_ID', value: '' }
|
|
125
|
+
environment name: 'CHANGE_TARGET', value: 'develop'
|
|
126
|
+
}
|
|
127
|
+
allOf {
|
|
128
|
+
environment name: 'CHANGE_ID', value: ''
|
|
129
|
+
anyOf {
|
|
130
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
131
|
+
branch 'master'
|
|
132
|
+
}
|
|
121
133
|
}
|
|
122
134
|
}
|
|
123
135
|
}
|
|
@@ -170,13 +182,19 @@ pipeline {
|
|
|
170
182
|
|
|
171
183
|
stage('Report to SonarQube') {
|
|
172
184
|
when {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
185
|
+
anyOf {
|
|
186
|
+
allOf {
|
|
187
|
+
not { environment name: 'CHANGE_ID', value: '' }
|
|
188
|
+
environment name: 'CHANGE_TARGET', value: 'develop'
|
|
189
|
+
}
|
|
190
|
+
allOf {
|
|
191
|
+
environment name: 'CHANGE_ID', value: ''
|
|
192
|
+
anyOf {
|
|
193
|
+
allOf {
|
|
194
|
+
branch 'develop'
|
|
195
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
196
|
+
}
|
|
197
|
+
branch 'master'
|
|
180
198
|
}
|
|
181
199
|
}
|
|
182
200
|
}
|
|
@@ -201,10 +219,16 @@ pipeline {
|
|
|
201
219
|
/*
|
|
202
220
|
stage('SonarQube compare to master') {
|
|
203
221
|
when {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
222
|
+
anyOf {
|
|
223
|
+
allOf {
|
|
224
|
+
not { environment name: 'CHANGE_ID', value: '' }
|
|
225
|
+
environment name: 'CHANGE_TARGET', value: 'develop'
|
|
226
|
+
}
|
|
227
|
+
allOf {
|
|
228
|
+
environment name: 'CHANGE_ID', value: ''
|
|
229
|
+
branch 'develop'
|
|
230
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
231
|
+
}
|
|
208
232
|
}
|
|
209
233
|
}
|
|
210
234
|
steps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-arcgis-block",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.190",
|
|
4
4
|
"description": "volto-arcgis-block: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: CodeSyntax",
|
|
@@ -18,6 +18,27 @@
|
|
|
18
18
|
"addons": [
|
|
19
19
|
"@eeacms/volto-clms-utils"
|
|
20
20
|
],
|
|
21
|
+
"lint-staged": {
|
|
22
|
+
"src/**/*.{js,jsx,ts,tsx,json}": [
|
|
23
|
+
"make lint-fix",
|
|
24
|
+
"make prettier-fix"
|
|
25
|
+
],
|
|
26
|
+
"src/**/*.{jsx}": [
|
|
27
|
+
"make i18n"
|
|
28
|
+
],
|
|
29
|
+
"theme/**/*.{css,less}": [
|
|
30
|
+
"make stylelint-fix"
|
|
31
|
+
],
|
|
32
|
+
"src/**/*.{css,less}": [
|
|
33
|
+
"make stylelint-fix"
|
|
34
|
+
],
|
|
35
|
+
"theme/**/*.overrides": [
|
|
36
|
+
"make stylelint-fix"
|
|
37
|
+
],
|
|
38
|
+
"src/**/*.overrides": [
|
|
39
|
+
"make stylelint-fix"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
21
42
|
"scripts": {
|
|
22
43
|
"i18n": "NODE_ENV=production node src/i18n.js",
|
|
23
44
|
"release": "release-it",
|
|
@@ -33,7 +54,8 @@
|
|
|
33
54
|
"lint:fix": "../../../node_modules/eslint/bin/eslint.js --fix 'src/**/*.{js,jsx}'",
|
|
34
55
|
"precommit": "yarn stylelint && yarn prettier && yarn lint",
|
|
35
56
|
"cypress:run": "../../../node_modules/cypress/bin/cypress run",
|
|
36
|
-
"cypress:open": "../../../node_modules/cypress/bin/cypress open"
|
|
57
|
+
"cypress:open": "../../../node_modules/cypress/bin/cypress open",
|
|
58
|
+
"prepare": "husky install"
|
|
37
59
|
},
|
|
38
60
|
"dependencies": {
|
|
39
61
|
"@eeacms/volto-clms-utils": "0.1.12",
|
|
@@ -48,6 +70,8 @@
|
|
|
48
70
|
"devDependencies": {
|
|
49
71
|
"@cypress/code-coverage": "^3.9.5",
|
|
50
72
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
51
|
-
"md5": "^2.3.0"
|
|
73
|
+
"md5": "^2.3.0",
|
|
74
|
+
"husky": "*",
|
|
75
|
+
"lint-staged": "13.1.4"
|
|
52
76
|
}
|
|
53
77
|
}
|
|
@@ -139,7 +139,7 @@ class AreaWidget extends React.Component {
|
|
|
139
139
|
|
|
140
140
|
loadNutsService(id, levels) {
|
|
141
141
|
this.clearWidget();
|
|
142
|
-
|
|
142
|
+
this.props.view.ui.components = ['attribution'];
|
|
143
143
|
levels.forEach((level) => {
|
|
144
144
|
var layer = new FeatureLayer({
|
|
145
145
|
id: id,
|
|
@@ -162,6 +162,7 @@ class AreaWidget extends React.Component {
|
|
|
162
162
|
|
|
163
163
|
loadCountriesService(id) {
|
|
164
164
|
this.clearWidget();
|
|
165
|
+
this.props.view.ui.components = ['attribution'];
|
|
165
166
|
var layer = new FeatureLayer({
|
|
166
167
|
id: id,
|
|
167
168
|
//url: this.props.urls.outsideEu,
|
|
@@ -273,7 +274,6 @@ class AreaWidget extends React.Component {
|
|
|
273
274
|
});
|
|
274
275
|
this.props.map.add(this.nutsGroupLayer);
|
|
275
276
|
this.props.view.on('click', (event) => {
|
|
276
|
-
this.props.view.ui.components = ['attribution'];
|
|
277
277
|
if (
|
|
278
278
|
(this.props.mapViewer.activeWidget === this || this.props.download) &&
|
|
279
279
|
(this.props.mapViewer.activeWidget
|
|
@@ -109,6 +109,15 @@ class BookmarkWidget extends React.Component {
|
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
+
componentDidUpdate() {
|
|
113
|
+
let limitMaxLenth = function () {
|
|
114
|
+
document.querySelector(
|
|
115
|
+
'.esri-bookmarks__authoring-label .esri-input',
|
|
116
|
+
).maxLength = 1;
|
|
117
|
+
};
|
|
118
|
+
this.Bookmarks.container.addEventListener('keydown', limitMaxLenth);
|
|
119
|
+
this.Bookmarks.container.addEventListener('paste', limitMaxLenth);
|
|
120
|
+
}
|
|
112
121
|
/**
|
|
113
122
|
* This method renders the component
|
|
114
123
|
* @returns jsx
|