@truedat/core 5.0.4 → 5.2.0
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 +6 -0
- package/package.json +3 -3
- package/src/components/UploadModal.js +3 -1
- package/src/messages/en.js +1 -0
- package/src/messages/es.js +1 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@testing-library/jest-dom": "^5.16.5",
|
|
36
36
|
"@testing-library/react": "^12.0.0",
|
|
37
37
|
"@testing-library/user-event": "^13.2.1",
|
|
38
|
-
"@truedat/test": "5.0
|
|
38
|
+
"@truedat/test": "5.2.0",
|
|
39
39
|
"babel-jest": "^28.1.0",
|
|
40
40
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
41
41
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"react-dom": ">= 16.8.6 < 17",
|
|
118
118
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "20710c8ea4c857547cdaeac20dfada1bdf64e9d2"
|
|
121
121
|
}
|
|
@@ -41,7 +41,7 @@ const actions = (handleSubmit, disabled, extraAction = null) => {
|
|
|
41
41
|
{
|
|
42
42
|
key: "yes",
|
|
43
43
|
primary: true,
|
|
44
|
-
content: <FormattedMessage id="uploadModal.accept" />,
|
|
44
|
+
content: <FormattedMessage id="uploadModal.accept.update" />,
|
|
45
45
|
onClick: handleSubmit,
|
|
46
46
|
disabled,
|
|
47
47
|
},
|
|
@@ -82,6 +82,7 @@ export class UploadModal extends React.Component {
|
|
|
82
82
|
size: PropTypes.string,
|
|
83
83
|
accept: PropTypes.string,
|
|
84
84
|
param: PropTypes.string,
|
|
85
|
+
extraAction: PropTypes.object,
|
|
85
86
|
};
|
|
86
87
|
|
|
87
88
|
constructor(props) {
|
|
@@ -163,6 +164,7 @@ export class UploadModal extends React.Component {
|
|
|
163
164
|
) : (
|
|
164
165
|
<Modal.Content>
|
|
165
166
|
<Dropzone
|
|
167
|
+
data-testid="fileDropZone"
|
|
166
168
|
disableClick
|
|
167
169
|
accept={accept}
|
|
168
170
|
style={dropzoneActive ? dropzoneStyleHover : dropzoneStyle}
|
package/src/messages/en.js
CHANGED
|
@@ -88,6 +88,7 @@ export default {
|
|
|
88
88
|
"Are you sure that you want to delete permanently the filter {name}?",
|
|
89
89
|
"selector.no.selection": "No selection",
|
|
90
90
|
"uploadModal.accept": "Upload file",
|
|
91
|
+
"uploadModal.accept.update": "Upload and update",
|
|
91
92
|
"uploadModal.accept.publish": "Upload and publish",
|
|
92
93
|
"uploadModal.actions.upload": "Select file",
|
|
93
94
|
"uploadModal.actions.upload.confirmation.content":
|
package/src/messages/es.js
CHANGED
|
@@ -91,6 +91,7 @@ export default {
|
|
|
91
91
|
"¿Desea eliminar de forma permanente el filtro personalizado {name}?",
|
|
92
92
|
"selector.no.selection": "- Sin selección -",
|
|
93
93
|
"uploadModal.accept": "Subir fichero",
|
|
94
|
+
"uploadModal.accept.update": "Subir y actualizar",
|
|
94
95
|
"uploadModal.accept.publish": "Subir y publicar",
|
|
95
96
|
"uploadModal.actions.upload": "Seleccionar fichero",
|
|
96
97
|
"uploadModal.actions.upload.confirmation.content":
|