@truedat/core 6.0.3 → 6.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/core",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
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": "6.0.3",
38
+ "@truedat/test": "6.0.5",
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": "c88ddc501214b8c4e2732654ca0052ebbcc802c9"
120
+ "gitHead": "abbaf37328ae24646d2a2c2851f77a611e5476d8"
121
121
  }
@@ -11,6 +11,7 @@ import {
11
11
  CONCEPTS_PENDING,
12
12
  CONCEPTS_DEPRECATED,
13
13
  CONCEPT_LINKS_MANAGEMENT,
14
+ CONCEPTS_BULK_UPLOAD_EVENTS,
14
15
  } from "../routes";
15
16
  import Submenu from "./Submenu";
16
17
 
@@ -36,6 +37,11 @@ const items = (bgSubscopes = []) => [
36
37
  routes: [CONCEPT_LINKS_MANAGEMENT],
37
38
  groups: ["business_glossary_management"],
38
39
  },
40
+ {
41
+ name: "concepts_upload_events",
42
+ routes: [CONCEPTS_BULK_UPLOAD_EVENTS],
43
+ groups: ["business_glossary_management"],
44
+ },
39
45
  ];
40
46
 
41
47
  const subscopeItems = _.flow(
@@ -138,12 +138,14 @@ export const RichTextEditor = ({
138
138
  onChange,
139
139
  name,
140
140
  }) => {
141
- const [jsonValue, setJsonValue] = useState(propValue || EMPTY_VALUE);
141
+ const [jsonValue, setJsonValue] = useState(
142
+ _.isEmpty(propValue) ? EMPTY_VALUE : propValue
143
+ );
142
144
  const [value, setValue] = useState(Value.fromJSON(jsonValue));
143
145
  const [editor, setEditor] = useState();
144
146
 
145
147
  useEffect(() => {
146
- if (!_.equals(propValue)(jsonValue)) {
148
+ if (!_.isEmpty(propValue) && !_.equals(propValue)(jsonValue)) {
147
149
  setValue(Value.fromJSON(propValue));
148
150
  }
149
151
  }, [propValue]);
@@ -136,6 +136,7 @@ export class UploadModal extends React.Component {
136
136
  <Modal
137
137
  icon={icon}
138
138
  open={open}
139
+ role="presentation"
139
140
  onOpen={onOpen}
140
141
  onClose={onClose}
141
142
  actions={actions(
@@ -12,6 +12,7 @@ const messages = {
12
12
  en: {
13
13
  "sidemenu.concepts": "sidemenu.concepts",
14
14
  "sidemenu.concepts_management": "sidemenu.concepts_management",
15
+ "sidemenu.concepts_upload_events": "sidemenu.concepts_upload_events",
15
16
  },
16
17
  };
17
18
 
@@ -109,6 +109,19 @@ exports[`<GlossaryMenu /> matches the latest snapshot, finds fixed and subscopes
109
109
  concepts_links_management
110
110
  </span>
111
111
  </a>
112
+ <a
113
+ aria-checked="false"
114
+ class="item"
115
+ href="/concepts/bulk_upload_event"
116
+ name="concepts_upload_events"
117
+ role="option"
118
+ >
119
+ <span
120
+ class="text"
121
+ >
122
+ sidemenu.concepts_upload_events
123
+ </span>
124
+ </a>
112
125
  </div>
113
126
  </div>
114
127
  </div>
@@ -108,6 +108,7 @@ export default {
108
108
  "sidemenu.concepts_deprecated": "Deprecated",
109
109
  "sidemenu.concepts_links_management": "Links manager",
110
110
  "sidemenu.concepts_management": "Drafts",
111
+ "sidemenu.concepts_upload_events": "My loads",
111
112
  "sidemenu.concepts": "Glossary",
112
113
  "sidemenu.configurations": "Configuration",
113
114
  "sidemenu.dashboard": "Dashboard",
@@ -112,6 +112,7 @@ export default {
112
112
  "sidemenu.concepts_deprecated": "Archivados",
113
113
  "sidemenu.concepts_links_management": "Gestión de vínculos",
114
114
  "sidemenu.concepts_management": "Borradores",
115
+ "sidemenu.concepts_upload_events": "Mis cargas",
115
116
  "sidemenu.concepts": "Glosario",
116
117
  "sidemenu.configurations": "Configuración",
117
118
  "sidemenu.dashboard": "Dashboard",
package/src/routes.js CHANGED
@@ -9,6 +9,7 @@ export const BUCKET_VIEW_CONFIG_EDIT = "/bucketViewConfigs/:id/edit";
9
9
  export const BUCKET_VIEW_CONFIG_NEW = "/bucketViewConfigs/new";
10
10
  export const CONCEPTS = "/concepts";
11
11
  export const CONCEPTS_BULK_UPDATE = "/concepts/bulk_update";
12
+ export const CONCEPTS_BULK_UPLOAD_EVENTS = "/concepts/bulk_upload_event";
12
13
  export const CONCEPTS_NEW = "/concepts/new";
13
14
  export const CONCEPTS_PENDING = "/pendingConcepts";
14
15
  export const CONCEPTS_DEPRECATED = "/deprecatedConcepts";