@truedat/bg 7.5.8 → 7.5.10
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 +41 -70
- package/src/concepts/components/Concept.js +22 -19
- package/src/concepts/components/ConceptActions.js +1 -2
- package/src/concepts/components/ConceptArchive.js +0 -1
- package/src/concepts/components/ConceptArchiveRow.js +3 -4
- package/src/concepts/components/ConceptCompleteness.js +1 -2
- package/src/concepts/components/ConceptConfidentialButton.js +1 -2
- package/src/concepts/components/ConceptCreate.js +1 -1
- package/src/concepts/components/ConceptCrumbs.js +10 -8
- package/src/concepts/components/ConceptDeleteModalBody.js +7 -10
- package/src/concepts/components/ConceptDetails.js +3 -3
- package/src/concepts/components/ConceptEdit.js +2 -2
- package/src/concepts/components/ConceptForm.js +39 -43
- package/src/concepts/components/ConceptHeader.js +0 -1
- package/src/concepts/components/ConceptLinksDropdownSelector.js +1 -2
- package/src/concepts/components/ConceptLoader.js +3 -3
- package/src/concepts/components/ConceptManageDomain.js +2 -1
- package/src/concepts/components/ConceptManageDomainPopup.js +1 -1
- package/src/concepts/components/ConceptRoutes.js +263 -226
- package/src/concepts/components/ConceptRow.js +0 -1
- package/src/concepts/components/ConceptSubscription.js +15 -14
- package/src/concepts/components/ConceptSummary.js +0 -1
- package/src/concepts/components/ConceptTabPane.js +36 -41
- package/src/concepts/components/ConceptTabs.js +1 -4
- package/src/concepts/components/ConceptTaxonomy.js +1 -3
- package/src/concepts/components/Concepts.js +0 -1
- package/src/concepts/components/ConceptsActions.js +2 -3
- package/src/concepts/components/ConceptsBulkUpdate.js +3 -6
- package/src/concepts/components/ConceptsLabelResults.js +0 -1
- package/src/concepts/components/ConceptsLinkDecorator.js +1 -2
- package/src/concepts/components/ConceptsLinksManagement.js +7 -8
- package/src/concepts/components/ConceptsPagination.js +0 -1
- package/src/concepts/components/ConceptsPanel.js +5 -4
- package/src/concepts/components/ConceptsTable.js +2 -3
- package/src/concepts/components/ConceptsUpdateButton.js +6 -6
- package/src/concepts/components/ConceptsUploadButton.js +0 -1
- package/src/concepts/components/ConceptsUploadEvents.js +0 -2
- package/src/concepts/components/ConceptsUploadEventsTable.js +12 -19
- package/src/concepts/components/DomainConcepts.js +0 -1
- package/src/concepts/components/EventRow.js +0 -1
- package/src/concepts/components/Events.js +3 -4
- package/src/concepts/components/FieldGroupTable.js +1 -2
- package/src/concepts/components/LinkedMessage.js +9 -13
- package/src/concepts/components/SharedToDomains.js +8 -7
- package/src/concepts/components/SharedToDomainsPopup.js +1 -1
- package/src/concepts/components/SharedToForm.js +3 -6
- package/src/concepts/components/__tests__/Concept.spec.js +8 -42
- package/src/concepts/components/__tests__/ConceptActions.spec.js +7 -7
- package/src/concepts/components/__tests__/ConceptArchive.spec.js +5 -5
- package/src/concepts/components/__tests__/ConceptArchiveLoader.spec.js +15 -14
- package/src/concepts/components/__tests__/ConceptArchiveRow.spec.js +0 -1
- package/src/concepts/components/__tests__/ConceptCompleteness.spec.js +0 -1
- package/src/concepts/components/__tests__/ConceptConfidentialButton.spec.js +10 -17
- package/src/concepts/components/__tests__/ConceptContext.spec.js +1 -1
- package/src/concepts/components/__tests__/ConceptCrumbs.spec.js +12 -34
- package/src/concepts/components/__tests__/ConceptDeleteModalBody.spec.js +47 -26
- package/src/concepts/components/__tests__/ConceptDetails.spec.js +1 -9
- package/src/concepts/components/__tests__/ConceptEdit.spec.js +2 -2
- package/src/concepts/components/__tests__/ConceptForm.spec.js +26 -19
- package/src/concepts/components/__tests__/ConceptHeader.spec.js +33 -57
- package/src/concepts/components/__tests__/ConceptLinksManagement.spec.js +27 -34
- package/src/concepts/components/__tests__/ConceptLoader.spec.js +51 -37
- package/src/concepts/components/__tests__/ConceptManageDomain.spec.js +12 -47
- package/src/concepts/components/__tests__/ConceptManageDomainPopup.spec.js +65 -24
- package/src/concepts/components/__tests__/ConceptRow.spec.js +6 -17
- package/src/concepts/components/__tests__/ConceptSubscription.spec.js +9 -9
- package/src/concepts/components/__tests__/ConceptSubscriptionLoader.spec.js +20 -16
- package/src/concepts/components/__tests__/ConceptSummary.spec.js +11 -10
- package/src/concepts/components/__tests__/ConceptTabPane.spec.js +73 -5
- package/src/concepts/components/__tests__/ConceptTabs.spec.js +6 -21
- package/src/concepts/components/__tests__/ConceptTaxonomy.spec.js +16 -12
- package/src/concepts/components/__tests__/Concepts.spec.js +6 -26
- package/src/concepts/components/__tests__/ConceptsActions.spec.js +0 -1
- package/src/concepts/components/__tests__/ConceptsBulkUpdate.spec.js +31 -36
- package/src/concepts/components/__tests__/ConceptsLabelResults.spec.js +4 -5
- package/src/concepts/components/__tests__/ConceptsLinkDecorator.spec.js +3 -4
- package/src/concepts/components/__tests__/ConceptsPanel.spec.js +7 -26
- package/src/concepts/components/__tests__/ConceptsTable.spec.js +34 -60
- package/src/concepts/components/__tests__/ConceptsUpdateButton.spec.js +6 -7
- package/src/concepts/components/__tests__/ConceptsUploadButton.spec.js +25 -13
- package/src/concepts/components/__tests__/ConceptsUploadEventsTable.spec.js +11 -9
- package/src/concepts/components/__tests__/Events.spec.js +10 -10
- package/src/concepts/components/__tests__/SharedToDomains.spec.js +25 -19
- package/src/concepts/components/__tests__/SharedToDomainsPopup.spec.js +48 -36
- package/src/concepts/components/__tests__/SharedToForm.spec.js +24 -32
- package/src/concepts/components/__tests__/__snapshots__/Concept.spec.js.snap +108 -23
- package/src/concepts/components/__tests__/__snapshots__/ConceptActions.spec.js.snap +12 -16
- package/src/concepts/components/__tests__/__snapshots__/ConceptArchive.spec.js.snap +77 -65
- package/src/concepts/components/__tests__/__snapshots__/ConceptArchiveRow.spec.js.snap +2 -4
- package/src/concepts/components/__tests__/__snapshots__/ConceptConfidentialButton.spec.js.snap +11 -31
- package/src/concepts/components/__tests__/__snapshots__/ConceptCrumbs.spec.js.snap +41 -56
- package/src/concepts/components/__tests__/__snapshots__/ConceptDeleteModalBody.spec.js.snap +3 -5
- package/src/concepts/components/__tests__/__snapshots__/ConceptDetails.spec.js.snap +0 -1
- package/src/concepts/components/__tests__/__snapshots__/ConceptEdit.spec.js.snap +1 -12
- package/src/concepts/components/__tests__/__snapshots__/ConceptForm.spec.js.snap +10 -11
- package/src/concepts/components/__tests__/__snapshots__/ConceptHeader.spec.js.snap +2 -2
- package/src/concepts/components/__tests__/__snapshots__/ConceptLinksManagement.spec.js.snap +14 -14
- package/src/concepts/components/__tests__/__snapshots__/ConceptLoader.spec.js.snap +14 -9
- package/src/concepts/components/__tests__/__snapshots__/ConceptManageDomain.spec.js.snap +43 -5
- package/src/concepts/components/__tests__/__snapshots__/ConceptManageDomainPopup.spec.js.snap +10 -163
- package/src/concepts/components/__tests__/__snapshots__/ConceptRow.spec.js.snap +4 -7
- package/src/concepts/components/__tests__/__snapshots__/ConceptSubscription.spec.js.snap +8 -55
- package/src/concepts/components/__tests__/__snapshots__/ConceptSubscriptionLoader.spec.js.snap +1 -1
- package/src/concepts/components/__tests__/__snapshots__/ConceptSummary.spec.js.snap +6 -6
- package/src/concepts/components/__tests__/__snapshots__/ConceptTabPane.spec.js.snap +18 -34
- package/src/concepts/components/__tests__/__snapshots__/ConceptTabs.spec.js.snap +26 -13
- package/src/concepts/components/__tests__/__snapshots__/ConceptTaxonomy.spec.js.snap +63 -53
- package/src/concepts/components/__tests__/__snapshots__/Concepts.spec.js.snap +10 -25
- package/src/concepts/components/__tests__/__snapshots__/ConceptsActions.spec.js.snap +1 -0
- package/src/concepts/components/__tests__/__snapshots__/ConceptsBulkUpdate.spec.js.snap +7 -6
- package/src/concepts/components/__tests__/__snapshots__/ConceptsLabelResults.spec.js.snap +1 -1
- package/src/concepts/components/__tests__/__snapshots__/ConceptsLinkDecorator.spec.js.snap +1 -0
- package/src/concepts/components/__tests__/__snapshots__/ConceptsPanel.spec.js.snap +10 -25
- package/src/concepts/components/__tests__/__snapshots__/ConceptsTable.spec.js.snap +1 -1
- package/src/concepts/components/__tests__/__snapshots__/ConceptsUpdateButton.spec.js.snap +1 -1
- package/src/concepts/components/__tests__/__snapshots__/ConceptsUploadButton.spec.js.snap +9 -74
- package/src/concepts/components/__tests__/__snapshots__/ConceptsUploadEventsTable.spec.js.snap +14 -14
- package/src/concepts/components/__tests__/__snapshots__/Events.spec.js.snap +83 -43
- package/src/concepts/components/__tests__/__snapshots__/SharedToDomains.spec.js.snap +56 -33
- package/src/concepts/components/__tests__/__snapshots__/SharedToDomainsPopup.spec.js.snap +9 -145
- package/src/concepts/components/__tests__/__snapshots__/SharedToForm.spec.js.snap +2 -2
- package/src/concepts/reducers/__tests__/conceptRedirect.spec.js +1 -1
- package/src/concepts/reducers/conceptRedirect.js +5 -5
- package/src/concepts/relations/components/ConceptImplementationLinks.js +5 -4
- package/src/concepts/relations/components/ConceptLinkActions.js +1 -1
- package/src/concepts/relations/components/ConceptLinksActions.js +4 -4
- package/src/concepts/relations/components/ConceptRelationActions.js +3 -4
- package/src/concepts/relations/components/ConceptRelationForm.js +3 -3
- package/src/concepts/relations/components/ConceptRelationRow.js +10 -10
- package/src/concepts/relations/components/ConceptRelations.js +9 -11
- package/src/concepts/relations/components/ConceptRelationsRoutes.js +20 -39
- package/src/concepts/relations/components/ConceptRelationsSummary.js +26 -29
- package/src/concepts/relations/components/ConceptSelector.js +4 -7
- package/src/concepts/relations/components/ConceptStructureLinks.js +2 -2
- package/src/concepts/relations/components/__tests__/ConceptImplementationLinks.spec.js +19 -59
- package/src/concepts/relations/components/__tests__/ConceptLinksActions.spec.js +9 -10
- package/src/concepts/relations/components/__tests__/ConceptRelationActions.spec.js +9 -7
- package/src/concepts/relations/components/__tests__/ConceptRelationForm.spec.js +30 -42
- package/src/concepts/relations/components/__tests__/ConceptRelationRow.spec.js +11 -16
- package/src/concepts/relations/components/__tests__/ConceptRelations.spec.js +11 -14
- package/src/concepts/relations/components/__tests__/ConceptRelationsRoutes.spec.js +108 -8
- package/src/concepts/relations/components/__tests__/ConceptRelationsSummary.spec.js +39 -38
- package/src/concepts/relations/components/__tests__/ConceptSelector.spec.js +24 -36
- package/src/concepts/relations/components/__tests__/ConceptStructureLinks.spec.js +21 -11
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptImplementationLinks.spec.js.snap +131 -28
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptLinksActions.spec.js.snap +4 -3
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptRelationActions.spec.js.snap +10 -26
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptRelationForm.spec.js.snap +15 -19
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptRelationRow.spec.js.snap +36 -33
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptRelations.spec.js.snap +76 -51
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptRelationsRoutes.spec.js.snap +15 -29
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptRelationsSummary.spec.js.snap +45 -100
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptSelector.spec.js.snap +9 -9
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptStructureLinks.spec.js.snap +10 -10
- package/src/concepts/relations/sagas/conceptLinkAction.js +2 -2
- package/src/concepts/relations/sagas/linkConcept.js +1 -1
- package/src/concepts/relations/selectors/getBusinessConceptsLinksToImplementationsColumns.js +1 -2
- package/src/concepts/relations/selectors/getConceptLinks.js +1 -2
- package/src/concepts/relations/selectors/getConceptRelations.js +14 -14
- package/src/concepts/sagas/__tests__/saveSharedTo.spec.js +3 -3
- package/src/concepts/sagas/__tests__/setConfidentialConcept.spec.js +5 -5
- package/src/concepts/sagas/conceptAction.js +2 -2
- package/src/concepts/sagas/fetchConceptArchive.js +1 -1
- package/src/concepts/sagas/setConfidentialConcept.js +2 -2
- package/src/concepts/selectors/__tests__/getConceptDomainPath.spec.js +2 -2
- package/src/concepts/selectors/getConceptColumns.js +1 -2
- package/src/concepts/selectors/getConceptTemplate.js +1 -1
- package/src/concepts/selectors/getConceptUploadEventColumns.js +0 -1
- package/src/concepts/selectors/getConceptVersionPath.js +2 -2
- package/src/concepts/selectors/getParsedEvents.js +2 -2
- package/src/concepts/selectors/getTemplateFields.js +3 -3
- package/src/concepts/selectors/getTemplateGroups.js +1 -1
- package/src/hooks/__mocks__/useDomains.js +42 -0
- package/src/hooks/useDomains.js +3 -3
- package/src/taxonomy/components/AddDomainMember.js +3 -4
- package/src/taxonomy/components/Domain.js +19 -23
- package/src/taxonomy/components/DomainActions.js +1 -2
- package/src/taxonomy/components/DomainCards.js +4 -6
- package/src/taxonomy/components/DomainContent.js +42 -87
- package/src/taxonomy/components/DomainCrumbs.js +4 -4
- package/src/taxonomy/components/DomainDetail.js +4 -5
- package/src/taxonomy/components/DomainForm.js +1 -3
- package/src/taxonomy/components/DomainImplementations.js +8 -7
- package/src/taxonomy/components/DomainItem.js +1 -2
- package/src/taxonomy/components/DomainMembers.js +0 -1
- package/src/taxonomy/components/DomainRoutes.js +15 -21
- package/src/taxonomy/components/DomainSearch.js +0 -1
- package/src/taxonomy/components/DomainStructures.js +0 -1
- package/src/taxonomy/components/DomainTabs.js +3 -4
- package/src/taxonomy/components/DomainTaxonomy.js +1 -2
- package/src/taxonomy/components/Domains.js +15 -5
- package/src/taxonomy/components/DomainsActions.js +2 -4
- package/src/taxonomy/components/EditDomain.js +5 -5
- package/src/taxonomy/components/NewDomain.js +4 -4
- package/src/taxonomy/components/__tests__/AddDomainMember.spec.js +6 -5
- package/src/taxonomy/components/__tests__/Domain.spec.js +63 -123
- package/src/taxonomy/components/__tests__/DomainActions.spec.js +0 -1
- package/src/taxonomy/components/__tests__/DomainCards.spec.js +44 -51
- package/src/taxonomy/components/__tests__/DomainContent.spec.js +138 -158
- package/src/taxonomy/components/__tests__/DomainCrumbs.spec.js +14 -19
- package/src/taxonomy/components/__tests__/DomainDetail.spec.js +2 -3
- package/src/taxonomy/components/__tests__/DomainForm.spec.js +44 -60
- package/src/taxonomy/components/__tests__/DomainItem.spec.js +17 -14
- package/src/taxonomy/components/__tests__/DomainMembers.spec.js +9 -13
- package/src/taxonomy/components/__tests__/DomainRoutes.spec.js +54 -0
- package/src/taxonomy/components/__tests__/DomainStructures.spec.js +10 -51
- package/src/taxonomy/components/__tests__/DomainTabs.spec.js +14 -33
- package/src/taxonomy/components/__tests__/DomainTaxonomy.spec.js +17 -16
- package/src/taxonomy/components/__tests__/Domains.spec.js +63 -95
- package/src/taxonomy/components/__tests__/DomainsActions.spec.js +12 -11
- package/src/taxonomy/components/__tests__/EditDomain.spec.js +13 -54
- package/src/taxonomy/components/__tests__/NewDomain.spec.js +17 -61
- package/src/taxonomy/components/__tests__/__snapshots__/AddDomainMember.spec.js.snap +10 -9
- package/src/taxonomy/components/__tests__/__snapshots__/Domain.spec.js.snap +53 -72
- package/src/taxonomy/components/__tests__/__snapshots__/DomainActions.spec.js.snap +2 -1
- package/src/taxonomy/components/__tests__/__snapshots__/DomainCards.spec.js.snap +247 -27
- package/src/taxonomy/components/__tests__/__snapshots__/DomainContent.spec.js.snap +14 -294
- package/src/taxonomy/components/__tests__/__snapshots__/DomainCrumbs.spec.js.snap +6 -2
- package/src/taxonomy/components/__tests__/__snapshots__/DomainDetail.spec.js.snap +5 -4
- package/src/taxonomy/components/__tests__/__snapshots__/DomainForm.spec.js.snap +13 -12
- package/src/taxonomy/components/__tests__/__snapshots__/DomainItem.spec.js.snap +16 -12
- package/src/taxonomy/components/__tests__/__snapshots__/DomainRoutes.spec.js.snap +52 -0
- package/src/taxonomy/components/__tests__/__snapshots__/DomainStructures.spec.js.snap +7 -7
- package/src/taxonomy/components/__tests__/__snapshots__/DomainTabs.spec.js.snap +10 -5
- package/src/taxonomy/components/__tests__/__snapshots__/DomainTaxonomy.spec.js.snap +37 -29
- package/src/taxonomy/components/__tests__/__snapshots__/Domains.spec.js.snap +123 -6
- package/src/taxonomy/components/__tests__/__snapshots__/DomainsActions.spec.js.snap +2 -1
- package/src/taxonomy/components/__tests__/__snapshots__/EditDomain.spec.js.snap +15 -14
- package/src/taxonomy/components/__tests__/__snapshots__/NewDomain.spec.js.snap +31 -28
- package/src/taxonomy/selectors/index.js +0 -1
- package/src/concepts/relations/components/__tests__/ConceptSelector2.spec.js +0 -76
- package/src/concepts/selectors/__tests__/getConceptSubscope.spec.js +0 -37
- package/src/concepts/selectors/__tests__/getSidemenuGlossarySubscopes.spec.js +0 -17
- package/src/concepts/selectors/getConceptStatus.js +0 -1
- package/src/concepts/selectors/getConceptSubscope.js +0 -19
- package/src/concepts/selectors/getSidemenuGlossarySubscopes.js +0 -8
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.10",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"jsnext:main": "src/index.js",
|
|
7
6
|
"module": "src/index.js",
|
|
8
7
|
"files": [
|
|
9
|
-
"src"
|
|
8
|
+
"src",
|
|
9
|
+
"index.js"
|
|
10
10
|
],
|
|
11
11
|
"author": "Bluetab Solutions",
|
|
12
12
|
"license": "GPL-3.0",
|
|
@@ -15,64 +15,25 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"clean": "rimraf yarn-error.log",
|
|
18
|
-
"debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
|
|
19
18
|
"test": "TZ=UTC jest --coverage",
|
|
20
|
-
"test:watch": "TZ=UTC jest --watch",
|
|
21
19
|
"eslint": "eslint src/**",
|
|
22
20
|
"eslint:fix": "eslint --fix src/**"
|
|
23
21
|
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@babel/cli": "^7.19.3",
|
|
26
|
-
"@babel/core": "^7.20.5",
|
|
27
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
28
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
|
|
29
|
-
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
|
30
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
31
|
-
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
|
|
32
|
-
"@babel/preset-env": "^7.20.2",
|
|
33
|
-
"@babel/preset-react": "^7.18.6",
|
|
34
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
35
|
-
"@testing-library/react": "^12.0.0",
|
|
36
|
-
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "7.5.7",
|
|
38
|
-
"babel-jest": "^28.1.0",
|
|
39
|
-
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
|
-
"babel-plugin-lodash": "^3.3.4",
|
|
41
|
-
"babel-plugin-react-intl": "^5.1.18",
|
|
42
|
-
"babel-plugin-transform-semantic-ui-react-imports": "^1.4.1",
|
|
43
|
-
"enzyme": "^3.11.0",
|
|
44
|
-
"enzyme-to-json": "^3.6.2",
|
|
45
|
-
"identity-obj-proxy": "^3.0.0",
|
|
46
|
-
"jest": "^29.0.0",
|
|
47
|
-
"jest-environment-jsdom": "^29.0.0",
|
|
48
|
-
"react": "^16.14.0",
|
|
49
|
-
"react-dom": "^16.14.0",
|
|
50
|
-
"redux-saga-test-plan": "^4.0.4",
|
|
51
|
-
"rimraf": "^3.0.2",
|
|
52
|
-
"semantic-ui-react": "^2.1.4"
|
|
53
|
-
},
|
|
54
22
|
"jest": {
|
|
55
23
|
"maxWorkers": "50%",
|
|
56
24
|
"testTimeout": 10000,
|
|
57
25
|
"moduleDirectories": [
|
|
58
|
-
"<rootDir>/src"
|
|
59
|
-
"../../node_modules"
|
|
60
|
-
],
|
|
61
|
-
"setupFilesAfterEnv": [
|
|
62
|
-
"@truedat/test/setup"
|
|
26
|
+
"<rootDir>/src"
|
|
63
27
|
],
|
|
64
28
|
"moduleNameMapper": {
|
|
65
29
|
"\\.(css|less|png)$": "identity-obj-proxy",
|
|
66
30
|
"^@truedat/([^/]+)$": "<rootDir>/../$1/src/index",
|
|
67
31
|
"^@truedat/([^/]+)/(.*)$": "<rootDir>/../$1/src/$2"
|
|
68
32
|
},
|
|
69
|
-
"
|
|
70
|
-
"
|
|
33
|
+
"setupFilesAfterEnv": [
|
|
34
|
+
"@truedat/test/setup"
|
|
71
35
|
],
|
|
72
36
|
"testEnvironment": "jsdom",
|
|
73
|
-
"testPathIgnorePatterns": [
|
|
74
|
-
"<rootDir>/node_modules/"
|
|
75
|
-
],
|
|
76
37
|
"transform": {
|
|
77
38
|
"\\.js$": [
|
|
78
39
|
"babel-jest",
|
|
@@ -80,36 +41,46 @@
|
|
|
80
41
|
"rootMode": "upward"
|
|
81
42
|
}
|
|
82
43
|
]
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@testing-library/dom": "^10.4.0",
|
|
48
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
49
|
+
"@testing-library/react": "^16.2.0",
|
|
50
|
+
"@testing-library/user-event": "^14.6.1",
|
|
51
|
+
"@truedat/test": "7.5.10",
|
|
52
|
+
"identity-obj-proxy": "^3.0.0",
|
|
53
|
+
"jest": "^29.7.0",
|
|
54
|
+
"redux-saga-test-plan": "^4.0.6"
|
|
87
55
|
},
|
|
88
56
|
"dependencies": {
|
|
89
|
-
"@
|
|
90
|
-
"
|
|
91
|
-
"@truedat/lm": "7.5.7",
|
|
92
|
-
"decode-uri-component": "^0.2.2",
|
|
57
|
+
"@apollo/client": "^3.13.5",
|
|
58
|
+
"axios": "^1.8.4",
|
|
93
59
|
"file-saver": "^2.0.5",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
60
|
+
"graphql": "^16.10.0",
|
|
61
|
+
"is-hotkey": "^0.2.0",
|
|
62
|
+
"is-url": "^1.2.4",
|
|
63
|
+
"lodash": "^4.17.21",
|
|
64
|
+
"moment": "^2.30.1",
|
|
65
|
+
"path-to-regexp": "^8.2.0",
|
|
96
66
|
"prop-types": "^15.8.1",
|
|
97
67
|
"query-string": "^7.1.2",
|
|
98
|
-
"react
|
|
99
|
-
"react-
|
|
100
|
-
"react-
|
|
101
|
-
"react-
|
|
102
|
-
"react-
|
|
103
|
-
"
|
|
104
|
-
"
|
|
68
|
+
"react": "^19.0.0",
|
|
69
|
+
"react-csv": "^2.2.2",
|
|
70
|
+
"react-dom": "^19.0.0",
|
|
71
|
+
"react-dropzone": "^14.3.8",
|
|
72
|
+
"react-hook-form": "^7.54.2",
|
|
73
|
+
"react-intl": "^7.1.10",
|
|
74
|
+
"react-moment": "^1.1.3",
|
|
75
|
+
"react-redux": "^9.2.0",
|
|
76
|
+
"react-router": "^7.4.0",
|
|
77
|
+
"redux": "^5.0.1",
|
|
78
|
+
"redux-saga": "^1.3.0",
|
|
105
79
|
"redux-saga-routines": "^3.2.3",
|
|
106
|
-
"reselect": "^
|
|
107
|
-
"semantic-ui-react": "^
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"react": ">= 16.8.6 < 17",
|
|
111
|
-
"react-dom": ">= 16.8.6 < 17",
|
|
112
|
-
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
80
|
+
"reselect": "^5.1.1",
|
|
81
|
+
"semantic-ui-calendar-react": "^0.15.3",
|
|
82
|
+
"semantic-ui-react": "^3.0.0-beta.2",
|
|
83
|
+
"swr": "^2.3.3"
|
|
113
84
|
},
|
|
114
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "8a8c49e9d5d6bb4e5f2b503b063bfd6dd20a503d"
|
|
115
86
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { lazy, useEffect, useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
|
-
import { Route } from "react-router
|
|
5
|
+
import { Route, Routes } from "react-router";
|
|
6
6
|
import { Grid, Segment } from "semantic-ui-react";
|
|
7
7
|
import StructureGrantCart from "@truedat/dd/components/StructureGrantCart";
|
|
8
8
|
import { Comments, CommentsLoader } from "@truedat/core/components";
|
|
@@ -22,16 +22,16 @@ import ConceptTaxonomy from "./ConceptTaxonomy";
|
|
|
22
22
|
import SharedToDomains from "./SharedToDomains";
|
|
23
23
|
import ConceptContextProvider, { useConceptContext } from "./ConceptContext";
|
|
24
24
|
|
|
25
|
-
const EventsLoader =
|
|
26
|
-
import("@truedat/audit/components/EventsLoader")
|
|
25
|
+
const EventsLoader = lazy(
|
|
26
|
+
() => import("@truedat/audit/components/EventsLoader")
|
|
27
27
|
);
|
|
28
28
|
|
|
29
|
-
const RelationsLoader =
|
|
30
|
-
import("@truedat/lm/components/RelationsLoader")
|
|
29
|
+
const RelationsLoader = lazy(
|
|
30
|
+
() => import("@truedat/lm/components/RelationsLoader")
|
|
31
31
|
);
|
|
32
32
|
|
|
33
|
-
const ConceptRulesLoader =
|
|
34
|
-
import("@truedat/dq/components/ConceptRulesLoader")
|
|
33
|
+
const ConceptRulesLoader = lazy(
|
|
34
|
+
() => import("@truedat/dq/components/ConceptRulesLoader")
|
|
35
35
|
);
|
|
36
36
|
|
|
37
37
|
export const Concept = ({ id, concept }) => {
|
|
@@ -75,8 +75,8 @@ export const Concept = ({ id, concept }) => {
|
|
|
75
75
|
is_default || publishedWithoutLang
|
|
76
76
|
? content
|
|
77
77
|
: _.isEmpty(contentLang?.content)
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
? { ...noTranslatableContent }
|
|
79
|
+
: { ...noTranslatableContent, ...contentLang?.content };
|
|
80
80
|
|
|
81
81
|
const langName = is_default ? concept.name : contentLang?.name || "";
|
|
82
82
|
|
|
@@ -122,15 +122,18 @@ export const Concept = ({ id, concept }) => {
|
|
|
122
122
|
selectedContent={selectedContent}
|
|
123
123
|
/>
|
|
124
124
|
</Segment>
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
125
|
+
<Routes>
|
|
126
|
+
<Route
|
|
127
|
+
// "/concepts/:business_concept_id/versions/:id"
|
|
128
|
+
path={CONCEPT_VERSION}
|
|
129
|
+
element={
|
|
130
|
+
<Segment>
|
|
131
|
+
<Comments />
|
|
132
|
+
</Segment>
|
|
133
|
+
}
|
|
134
|
+
/>
|
|
135
|
+
<Route path="*" element={null} />
|
|
136
|
+
</Routes>
|
|
134
137
|
</Grid.Column>
|
|
135
138
|
<Grid.Column width={4}>
|
|
136
139
|
{grantView ? (
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { connect } from "react-redux";
|
|
5
4
|
import { Button, Icon } from "semantic-ui-react";
|
|
6
|
-
import { Link } from "react-router
|
|
5
|
+
import { Link } from "react-router";
|
|
7
6
|
import { FormattedMessage } from "react-intl";
|
|
8
7
|
import { ConfirmModal, GroupActions } from "@truedat/core/components";
|
|
9
8
|
import { linkTo } from "@truedat/core/routes";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
|
-
import {
|
|
3
|
+
import { useNavigate } from "react-router";
|
|
5
4
|
import { Table } from "semantic-ui-react";
|
|
6
5
|
import { FormattedMessage } from "react-intl";
|
|
7
6
|
import { DateTime } from "@truedat/core/components";
|
|
@@ -15,11 +14,11 @@ export const ConceptArchiveRow = ({
|
|
|
15
14
|
bcv_last_change_by,
|
|
16
15
|
version,
|
|
17
16
|
}) => {
|
|
18
|
-
const
|
|
17
|
+
const navigate = useNavigate();
|
|
19
18
|
return (
|
|
20
19
|
<Table.Row
|
|
21
20
|
onClick={() =>
|
|
22
|
-
|
|
21
|
+
navigate(linkTo.CONCEPT_VERSION({ business_concept_id, id }))
|
|
23
22
|
}
|
|
24
23
|
>
|
|
25
24
|
<Table.Cell
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { connect } from "react-redux";
|
|
5
4
|
import { List, Header, Progress, Segment, Icon } from "semantic-ui-react";
|
|
@@ -48,6 +47,7 @@ export const Completeness = ({
|
|
|
48
47
|
isRequired && !_.includes(status)(["published", "versioned"])
|
|
49
48
|
? fetchMissingRequiredFields(concept, content, isDefault, splitFields)
|
|
50
49
|
: [];
|
|
50
|
+
|
|
51
51
|
return (
|
|
52
52
|
<>
|
|
53
53
|
<Header as="h3" dividing>
|
|
@@ -62,7 +62,6 @@ export const Completeness = ({
|
|
|
62
62
|
/>
|
|
63
63
|
) : null}
|
|
64
64
|
</Header>
|
|
65
|
-
<>{}</>
|
|
66
65
|
<Progress
|
|
67
66
|
error={completeness < 50}
|
|
68
67
|
warning={completeness >= 50 && completeness < 85}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { connect } from "react-redux";
|
|
5
4
|
import { Button, Popup, Icon } from "semantic-ui-react";
|
|
@@ -35,7 +34,7 @@ export const ConceptConfidentialButton = ({
|
|
|
35
34
|
icon={<Icon name={buttonIcon} className={className} />}
|
|
36
35
|
basic
|
|
37
36
|
className="structureButton"
|
|
38
|
-
onClick={
|
|
37
|
+
onClick={handleSubmit}
|
|
39
38
|
loading={conceptUpdating}
|
|
40
39
|
/>
|
|
41
40
|
</span>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Fragment } from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { Breadcrumb } from "semantic-ui-react";
|
|
4
|
-
import { Link
|
|
4
|
+
import { Link } from "react-router";
|
|
5
|
+
import { useNavigate } from "react-router";
|
|
5
6
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
7
|
import { connect } from "react-redux";
|
|
7
8
|
|
|
@@ -19,17 +20,18 @@ const ConceptCrumbs = ({
|
|
|
19
20
|
i18n_content,
|
|
20
21
|
}) => {
|
|
21
22
|
const { locale } = useIntl();
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
const navigate = useNavigate();
|
|
23
25
|
const bulkUpdateActive = useActiveRoute(CONCEPTS_BULK_UPDATE);
|
|
24
26
|
|
|
25
27
|
const name = i18n_content?.[locale]?.name ?? defaultName;
|
|
26
28
|
|
|
27
29
|
const fromStatus = () =>
|
|
28
30
|
status === "published"
|
|
29
|
-
?
|
|
30
|
-
:
|
|
31
|
+
? navigate(linkTo.CONCEPTS)
|
|
32
|
+
: navigate(linkTo.CONCEPTS_PENDING);
|
|
31
33
|
|
|
32
|
-
const goBack = () => (bulkUpdateActive ?
|
|
34
|
+
const goBack = () => (bulkUpdateActive ? navigate(-1) : fromStatus());
|
|
33
35
|
|
|
34
36
|
const additionalCrumbs = [];
|
|
35
37
|
|
|
@@ -82,12 +84,12 @@ const ConceptCrumbs = ({
|
|
|
82
84
|
};
|
|
83
85
|
|
|
84
86
|
return (
|
|
85
|
-
<
|
|
87
|
+
<Fragment key={index}>
|
|
86
88
|
<Breadcrumb.Section active={isLast} {...sectionProps}>
|
|
87
89
|
{crumbLabel}
|
|
88
90
|
</Breadcrumb.Section>
|
|
89
91
|
{!isLast && <Breadcrumb.Divider icon="right angle" />}
|
|
90
|
-
</
|
|
92
|
+
</Fragment>
|
|
91
93
|
);
|
|
92
94
|
})}
|
|
93
95
|
</Breadcrumb>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Fragment } from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { Header, List } from "semantic-ui-react";
|
|
@@ -8,18 +8,17 @@ export const ConceptDeleteModalBody = ({
|
|
|
8
8
|
conceptDomain,
|
|
9
9
|
linkCount,
|
|
10
10
|
ruleCount,
|
|
11
|
-
conceptCount
|
|
11
|
+
conceptCount,
|
|
12
12
|
}) => (
|
|
13
|
-
<
|
|
13
|
+
<Fragment>
|
|
14
14
|
{linkCount > 0 || ruleCount > 0 || conceptCount > 0 ? (
|
|
15
|
-
<
|
|
15
|
+
<Fragment>
|
|
16
16
|
<Header as="h2">
|
|
17
17
|
<Header.Content>
|
|
18
18
|
{conceptName}
|
|
19
19
|
<Header.Subheader>{conceptDomain}</Header.Subheader>
|
|
20
20
|
</Header.Content>
|
|
21
21
|
</Header>
|
|
22
|
-
|
|
23
22
|
<List divided relaxed>
|
|
24
23
|
{linkCount > 0 && (
|
|
25
24
|
<List.Item className="concept_delete_modal_body__item">
|
|
@@ -29,7 +28,6 @@ export const ConceptDeleteModalBody = ({
|
|
|
29
28
|
<span>{`“${linkCount}“`}</span>
|
|
30
29
|
</List.Item>
|
|
31
30
|
)}
|
|
32
|
-
|
|
33
31
|
{ruleCount > 0 && (
|
|
34
32
|
<List.Item className="concept_delete_modal_body__item">
|
|
35
33
|
<strong>
|
|
@@ -38,7 +36,6 @@ export const ConceptDeleteModalBody = ({
|
|
|
38
36
|
<span>{`“${ruleCount}“`}</span>
|
|
39
37
|
</List.Item>
|
|
40
38
|
)}
|
|
41
|
-
|
|
42
39
|
{conceptCount > 0 && (
|
|
43
40
|
<List.Item className="concept_delete_modal_body__item">
|
|
44
41
|
<strong>
|
|
@@ -48,11 +45,11 @@ export const ConceptDeleteModalBody = ({
|
|
|
48
45
|
</List.Item>
|
|
49
46
|
)}
|
|
50
47
|
</List>
|
|
51
|
-
</
|
|
48
|
+
</Fragment>
|
|
52
49
|
) : (
|
|
53
50
|
<FormattedMessage id="concepts.actions.delete.body.without_content" />
|
|
54
51
|
)}
|
|
55
|
-
</
|
|
52
|
+
</Fragment>
|
|
56
53
|
);
|
|
57
54
|
|
|
58
55
|
ConceptDeleteModalBody.propTypes = {
|
|
@@ -60,7 +57,7 @@ ConceptDeleteModalBody.propTypes = {
|
|
|
60
57
|
conceptDomain: PropTypes.string,
|
|
61
58
|
linkCount: PropTypes.number,
|
|
62
59
|
ruleCount: PropTypes.number,
|
|
63
|
-
conceptCount: PropTypes.number
|
|
60
|
+
conceptCount: PropTypes.number,
|
|
64
61
|
};
|
|
65
62
|
|
|
66
63
|
export default ConceptDeleteModalBody;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { lazy } from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { Segment } from "semantic-ui-react";
|
|
5
5
|
import { I18nProvider } from "@truedat/core/i18n";
|
|
6
6
|
|
|
7
|
-
const DynamicFormViewer =
|
|
8
|
-
import("@truedat/df/components/DynamicFormViewer")
|
|
7
|
+
const DynamicFormViewer = lazy(
|
|
8
|
+
() => import("@truedat/df/components/DynamicFormViewer")
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
export const ConceptDetails = ({ concept, selectedContent, lang }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { compose } from "redux";
|
|
5
5
|
import { connect } from "react-redux";
|
|
@@ -9,6 +9,7 @@ import { splitTranslatableFields } from "@truedat/core/services/i18nContent";
|
|
|
9
9
|
import { useTemplate } from "@truedat/core/hooks";
|
|
10
10
|
import { conceptAction } from "../routines";
|
|
11
11
|
import ConceptForm from "./ConceptForm";
|
|
12
|
+
|
|
12
13
|
const actionKey = "update";
|
|
13
14
|
|
|
14
15
|
export const ConceptEdit = ({
|
|
@@ -26,7 +27,6 @@ export const ConceptEdit = ({
|
|
|
26
27
|
const { defaultLang, altLangs } = useLanguage();
|
|
27
28
|
|
|
28
29
|
const templateFields = splitTranslatableFields(template);
|
|
29
|
-
|
|
30
30
|
const translatableKeys = _.keys(templateFields.translatable);
|
|
31
31
|
|
|
32
32
|
const handleSubmit = (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { useState, useEffect, lazy } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import {
|
|
5
5
|
Form,
|
|
@@ -27,8 +27,8 @@ import { useAvailabilityCheck as useTranslatableCheck } from "@truedat/ai/hooks/
|
|
|
27
27
|
import { splitTranslatableFields } from "@truedat/core/services/i18nContent";
|
|
28
28
|
import { TranslationModal } from "@truedat/ai/components";
|
|
29
29
|
|
|
30
|
-
const SelectDynamicFormWithTranslations = lazy(
|
|
31
|
-
import("@truedat/df/components/SelectDynamicFormWithTranslations")
|
|
30
|
+
const SelectDynamicFormWithTranslations = lazy(
|
|
31
|
+
() => import("@truedat/df/components/SelectDynamicFormWithTranslations")
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
const ConceptForm = ({
|
|
@@ -56,7 +56,7 @@ const ConceptForm = ({
|
|
|
56
56
|
const [hasSuggestions, setHasSuggestions] = useState(false);
|
|
57
57
|
const [canTranslate, setCanTranslate] = useState(false);
|
|
58
58
|
const [showTranslationModal, setShowTranslationModal] = useState(false);
|
|
59
|
-
const isNonEmptyString =
|
|
59
|
+
const isNonEmptyString = _.flow(_.trim, _.negate(_.isEmpty));
|
|
60
60
|
const { trigger: checkSuggestionAvailability } = useAvailabilityCheck();
|
|
61
61
|
const templateId = template?.id;
|
|
62
62
|
const { trigger: checkTranslationAvailability } = useTranslatableCheck();
|
|
@@ -73,6 +73,20 @@ const ConceptForm = ({
|
|
|
73
73
|
[lang]: { ...i18nConcept[lang], content: { ...content } },
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
+
const checkCanTranslate = () => {
|
|
77
|
+
if (templateId && domainId) {
|
|
78
|
+
checkTranslationAvailability({
|
|
79
|
+
domain_ids: [domainId],
|
|
80
|
+
resource_type: "business_concept",
|
|
81
|
+
}).then((res) =>
|
|
82
|
+
setCanTranslate(
|
|
83
|
+
_.get("data.data.status", res) === "ok" &&
|
|
84
|
+
isMultilingual &&
|
|
85
|
+
!_.isEmpty(translatableFields)
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
76
90
|
|
|
77
91
|
useEffect(() => {
|
|
78
92
|
checkCanTranslate();
|
|
@@ -89,7 +103,7 @@ const ConceptForm = ({
|
|
|
89
103
|
);
|
|
90
104
|
checkCanTranslate();
|
|
91
105
|
}
|
|
92
|
-
}, [templateId, domainId
|
|
106
|
+
}, [templateId, domainId]);
|
|
93
107
|
|
|
94
108
|
useEffect(() => {
|
|
95
109
|
if (domainsLoading && domainId) setDomainsLoading(false);
|
|
@@ -120,21 +134,6 @@ const ConceptForm = ({
|
|
|
120
134
|
});
|
|
121
135
|
};
|
|
122
136
|
|
|
123
|
-
const checkCanTranslate = () => {
|
|
124
|
-
if (templateId && domainId) {
|
|
125
|
-
checkTranslationAvailability({
|
|
126
|
-
domain_ids: [domainId],
|
|
127
|
-
resource_type: "business_concept",
|
|
128
|
-
}).then((res) =>
|
|
129
|
-
setCanTranslate(
|
|
130
|
-
_.get("data.data.status", res) === "ok" &&
|
|
131
|
-
isMultilingual &&
|
|
132
|
-
!_.isEmpty(translatableFields)
|
|
133
|
-
)
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
|
|
138
137
|
const setTranslations = (translations) => {
|
|
139
138
|
setI18nConcept({
|
|
140
139
|
...i18nConcept,
|
|
@@ -142,29 +141,26 @@ const ConceptForm = ({
|
|
|
142
141
|
});
|
|
143
142
|
};
|
|
144
143
|
|
|
145
|
-
const renderNameField =
|
|
146
|
-
|
|
147
|
-
<
|
|
148
|
-
<
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
</I18nProvider>
|
|
166
|
-
),
|
|
167
|
-
[requiredLangs, i18nConcept]
|
|
144
|
+
const renderNameField = (lang, value, onChange, showValidation = false) => (
|
|
145
|
+
<I18nProvider lang={lang}>
|
|
146
|
+
<Form.Field required={requiredLangs.includes(lang)}>
|
|
147
|
+
<label>
|
|
148
|
+
<FormattedMessage id="concepts.props.name" />
|
|
149
|
+
{showValidation &&
|
|
150
|
+
requiredLangs.includes(lang) &&
|
|
151
|
+
_.isEmpty(value) && (
|
|
152
|
+
<Label pointing="left">
|
|
153
|
+
<FormattedMessage id="template.form.validation.empty_required" />
|
|
154
|
+
</Label>
|
|
155
|
+
)}
|
|
156
|
+
</label>
|
|
157
|
+
<Form.Input
|
|
158
|
+
name="name"
|
|
159
|
+
value={value || ""}
|
|
160
|
+
onChange={(_e, { value }) => onChange(lang, value)}
|
|
161
|
+
/>
|
|
162
|
+
</Form.Field>
|
|
163
|
+
</I18nProvider>
|
|
168
164
|
);
|
|
169
165
|
|
|
170
166
|
const renderFormHeader = () => (
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { Form, Dropdown } from "semantic-ui-react";
|
|
5
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
@@ -7,7 +6,7 @@ import { FormattedMessage, useIntl } from "react-intl";
|
|
|
7
6
|
const formatOption = (formatMessage) => (options) =>
|
|
8
7
|
_.flow(
|
|
9
8
|
_.map(({ value, text }) =>
|
|
10
|
-
_.isNil(text) || text
|
|
9
|
+
_.isNil(text) || text === ""
|
|
11
10
|
? { value, text }
|
|
12
11
|
: {
|
|
13
12
|
value,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useParams } from "react-router
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useParams } from "react-router";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { Dimmer, Loader } from "semantic-ui-react";
|
|
@@ -16,7 +16,7 @@ export const ConceptLoader = ({ fetchConcept, clearConcept, loading }) => {
|
|
|
16
16
|
};
|
|
17
17
|
}, [business_concept_id, id, clearConcept, fetchConcept]);
|
|
18
18
|
return loading ? (
|
|
19
|
-
<Dimmer active
|
|
19
|
+
<Dimmer active inverted>
|
|
20
20
|
<Loader size="massive" inverted />
|
|
21
21
|
</Dimmer>
|
|
22
22
|
) : null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState } from "react";
|
|
2
2
|
import { Button, Container, Form, Header } from "semantic-ui-react";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { useForm, Controller } from "react-hook-form";
|
|
@@ -15,6 +15,7 @@ export const ConceptManageDomain = ({ domainId, conceptAction, action }) => {
|
|
|
15
15
|
defaultValues: { domainId },
|
|
16
16
|
});
|
|
17
17
|
const { isDirty, isValid } = formState;
|
|
18
|
+
|
|
18
19
|
const onSubmit = ({ domainId }) => {
|
|
19
20
|
conceptAction({
|
|
20
21
|
action: "update_domain",
|