@truedat/bg 7.5.9 → 7.5.11
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 +39 -34
- 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 +5 -5
- 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 +4 -6
- 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 +10 -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
|
@@ -1,40 +1,63 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<SharedToDomains /> matches the latest snapshot 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<Dimmer
|
|
8
|
-
active={false}
|
|
9
|
-
inverted={true}
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="dimmable"
|
|
10
7
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
<Segment>
|
|
14
|
-
<Header
|
|
15
|
-
as="h3"
|
|
16
|
-
dividing={true}
|
|
8
|
+
<div
|
|
9
|
+
class="ui segment"
|
|
17
10
|
>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
11
|
+
<h3
|
|
12
|
+
class="ui dividing header"
|
|
13
|
+
>
|
|
14
|
+
Compartido con
|
|
15
|
+
</h3>
|
|
16
|
+
<div
|
|
17
|
+
class="ui divided list"
|
|
18
|
+
role="list"
|
|
25
19
|
>
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
20
|
+
<div
|
|
21
|
+
class="item"
|
|
22
|
+
role="listitem"
|
|
23
|
+
>
|
|
24
|
+
<div
|
|
25
|
+
class="ui horizontal list"
|
|
26
|
+
role="list"
|
|
27
|
+
>
|
|
28
|
+
<div
|
|
29
|
+
class="item"
|
|
30
|
+
role="listitem"
|
|
31
|
+
>
|
|
32
|
+
<span
|
|
33
|
+
class="highlighted"
|
|
34
|
+
>
|
|
35
|
+
parent2
|
|
36
|
+
</span>
|
|
37
|
+
</div>
|
|
38
|
+
<div
|
|
39
|
+
class="item"
|
|
40
|
+
role="listitem"
|
|
41
|
+
>
|
|
42
|
+
<i
|
|
43
|
+
aria-hidden="true"
|
|
44
|
+
class="grey right angle fitted icon"
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
<div
|
|
48
|
+
class="item"
|
|
49
|
+
role="listitem"
|
|
50
|
+
>
|
|
51
|
+
<span
|
|
52
|
+
class="highlighted"
|
|
53
|
+
>
|
|
54
|
+
parent1
|
|
55
|
+
</span>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
40
63
|
`;
|
|
@@ -1,150 +1,14 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<SharedToDomainsPopup /> matches the latest snapshot 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<Popup
|
|
8
|
-
basic={true}
|
|
9
|
-
content={<Memo(Connect(SharedToForm)) />}
|
|
10
|
-
disabled={false}
|
|
11
|
-
eventsEnabled={true}
|
|
12
|
-
flowing={true}
|
|
13
|
-
on="click"
|
|
14
|
-
onClose={[Function]}
|
|
15
|
-
onOpen={[Function]}
|
|
16
|
-
open={false}
|
|
17
|
-
pinned={false}
|
|
18
|
-
popperModifiers={[]}
|
|
19
|
-
position="bottom right"
|
|
20
|
-
positionFixed={true}
|
|
21
|
-
size="large"
|
|
22
|
-
trigger={
|
|
23
|
-
<Button
|
|
24
|
-
as="button"
|
|
25
|
-
basic={true}
|
|
26
|
-
className="structureButton"
|
|
27
|
-
icon={
|
|
28
|
-
<Icon
|
|
29
|
-
as="i"
|
|
30
|
-
name="sitemap"
|
|
31
|
-
/>
|
|
32
|
-
}
|
|
33
|
-
/>
|
|
34
|
-
}
|
|
4
|
+
<div>
|
|
5
|
+
<button
|
|
6
|
+
class="ui basic icon button structureButton"
|
|
35
7
|
>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
onMount={[Function]}
|
|
43
|
-
onOpen={[Function]}
|
|
44
|
-
onUnmount={[Function]}
|
|
45
|
-
open={false}
|
|
46
|
-
openOnTriggerClick={true}
|
|
47
|
-
trigger={
|
|
48
|
-
<Button
|
|
49
|
-
as="button"
|
|
50
|
-
basic={true}
|
|
51
|
-
className="structureButton"
|
|
52
|
-
icon={
|
|
53
|
-
<Icon
|
|
54
|
-
as="i"
|
|
55
|
-
name="sitemap"
|
|
56
|
-
/>
|
|
57
|
-
}
|
|
58
|
-
/>
|
|
59
|
-
}
|
|
60
|
-
triggerRef={
|
|
61
|
-
{
|
|
62
|
-
"current": <button
|
|
63
|
-
class="ui basic icon button structureButton"
|
|
64
|
-
>
|
|
65
|
-
<i
|
|
66
|
-
aria-hidden="true"
|
|
67
|
-
class="sitemap icon"
|
|
68
|
-
/>
|
|
69
|
-
</button>,
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
>
|
|
73
|
-
<Ref
|
|
74
|
-
innerRef={[Function]}
|
|
75
|
-
>
|
|
76
|
-
<RefFindNode
|
|
77
|
-
innerRef={[Function]}
|
|
78
|
-
>
|
|
79
|
-
<Button
|
|
80
|
-
as="button"
|
|
81
|
-
basic={true}
|
|
82
|
-
className="structureButton"
|
|
83
|
-
icon={
|
|
84
|
-
<Icon
|
|
85
|
-
as="i"
|
|
86
|
-
name="sitemap"
|
|
87
|
-
/>
|
|
88
|
-
}
|
|
89
|
-
onBlur={[Function]}
|
|
90
|
-
onClick={[Function]}
|
|
91
|
-
onFocus={[Function]}
|
|
92
|
-
onMouseEnter={[Function]}
|
|
93
|
-
onMouseLeave={[Function]}
|
|
94
|
-
>
|
|
95
|
-
<Ref
|
|
96
|
-
innerRef={
|
|
97
|
-
{
|
|
98
|
-
"current": <button
|
|
99
|
-
class="ui basic icon button structureButton"
|
|
100
|
-
>
|
|
101
|
-
<i
|
|
102
|
-
aria-hidden="true"
|
|
103
|
-
class="sitemap icon"
|
|
104
|
-
/>
|
|
105
|
-
</button>,
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
>
|
|
109
|
-
<RefFindNode
|
|
110
|
-
innerRef={
|
|
111
|
-
{
|
|
112
|
-
"current": <button
|
|
113
|
-
class="ui basic icon button structureButton"
|
|
114
|
-
>
|
|
115
|
-
<i
|
|
116
|
-
aria-hidden="true"
|
|
117
|
-
class="sitemap icon"
|
|
118
|
-
/>
|
|
119
|
-
</button>,
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
>
|
|
123
|
-
<button
|
|
124
|
-
className="ui basic icon button structureButton"
|
|
125
|
-
onBlur={[Function]}
|
|
126
|
-
onClick={[Function]}
|
|
127
|
-
onFocus={[Function]}
|
|
128
|
-
onMouseEnter={[Function]}
|
|
129
|
-
onMouseLeave={[Function]}
|
|
130
|
-
>
|
|
131
|
-
<Icon
|
|
132
|
-
as="i"
|
|
133
|
-
name="sitemap"
|
|
134
|
-
>
|
|
135
|
-
<i
|
|
136
|
-
aria-hidden="true"
|
|
137
|
-
className="sitemap icon"
|
|
138
|
-
onClick={[Function]}
|
|
139
|
-
/>
|
|
140
|
-
</Icon>
|
|
141
|
-
</button>
|
|
142
|
-
</RefFindNode>
|
|
143
|
-
</Ref>
|
|
144
|
-
</Button>
|
|
145
|
-
</RefFindNode>
|
|
146
|
-
</Ref>
|
|
147
|
-
</Portal>
|
|
148
|
-
</Popup>
|
|
149
|
-
</SharedToDomainsPopup>
|
|
8
|
+
<i
|
|
9
|
+
aria-hidden="true"
|
|
10
|
+
class="sitemap icon"
|
|
11
|
+
/>
|
|
12
|
+
</button>
|
|
13
|
+
</div>
|
|
150
14
|
`;
|
|
@@ -9,7 +9,7 @@ exports[`<SharedToForm /> matches the latest snapshot 1`] = `
|
|
|
9
9
|
<h2
|
|
10
10
|
class="ui header"
|
|
11
11
|
>
|
|
12
|
-
|
|
12
|
+
concept.sharedTo.header
|
|
13
13
|
</h2>
|
|
14
14
|
<form
|
|
15
15
|
class="ui form"
|
|
@@ -123,7 +123,7 @@ exports[`<SharedToForm /> matches the latest snapshot 1`] = `
|
|
|
123
123
|
tabindex="-1"
|
|
124
124
|
type="submit"
|
|
125
125
|
>
|
|
126
|
-
|
|
126
|
+
actions.share
|
|
127
127
|
</button>
|
|
128
128
|
</div>
|
|
129
129
|
</form>
|
|
@@ -8,7 +8,7 @@ import { conceptUrl } from "../conceptRedirect";
|
|
|
8
8
|
import { conceptRedirect } from "..";
|
|
9
9
|
|
|
10
10
|
const fooState = { foo: "bar" };
|
|
11
|
-
const concept = { business_concept_id: 1, id: 2 };
|
|
11
|
+
const concept = { business_concept_id: "1", id: "2" };
|
|
12
12
|
const data = { ...concept };
|
|
13
13
|
const meta = { action: "create" };
|
|
14
14
|
const redirectUrl = "/foo/bar";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
clearRedirect,
|
|
5
5
|
createSubscription,
|
|
6
6
|
deleteSubscription,
|
|
7
|
-
updateSubscription
|
|
7
|
+
updateSubscription,
|
|
8
8
|
} from "@truedat/core/routines";
|
|
9
9
|
import {
|
|
10
10
|
bulkUpdate,
|
|
11
11
|
conceptAction,
|
|
12
12
|
linkConcept,
|
|
13
|
-
uploadConcepts
|
|
13
|
+
uploadConcepts,
|
|
14
14
|
} from "../routines";
|
|
15
15
|
|
|
16
16
|
const initialState = "";
|
|
17
17
|
|
|
18
|
-
export const conceptUrl = concept => linkTo.CONCEPT_VERSION(concept);
|
|
18
|
+
export const conceptUrl = (concept) => linkTo.CONCEPT_VERSION(concept);
|
|
19
19
|
|
|
20
20
|
export const conceptRedirect = (
|
|
21
21
|
state = initialState,
|
|
@@ -26,9 +26,7 @@ export const conceptRedirect = (
|
|
|
26
26
|
return initialState;
|
|
27
27
|
case conceptAction.SUCCESS:
|
|
28
28
|
const data = _.prop("data")(payload);
|
|
29
|
-
return _.
|
|
30
|
-
? CONCEPTS
|
|
31
|
-
: _.includes(_.prop("action")(meta))(["version", "update", "create"])
|
|
29
|
+
return _.includes(_.prop("action")(meta))(["version", "update", "create"])
|
|
32
30
|
? conceptUrl(_.pick(["id", "business_concept_id"])(data))
|
|
33
31
|
: state;
|
|
34
32
|
case linkConcept.SUCCESS: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { lazy } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import queryString from "query-string";
|
|
5
5
|
import { connect } from "react-redux";
|
|
6
6
|
import { Button, Segment, Header, Message } from "semantic-ui-react";
|
|
7
7
|
import { FormattedMessage } from "react-intl";
|
|
8
|
-
import { Link
|
|
8
|
+
import { Link } from "react-router";
|
|
9
|
+
import { useParams } from "react-router";
|
|
9
10
|
import { useIntl } from "react-intl";
|
|
10
11
|
import {
|
|
11
12
|
IMPLEMENTATION_NEW,
|
|
@@ -16,8 +17,8 @@ import {
|
|
|
16
17
|
getBusinessConceptsLinksToImplementationsColumns,
|
|
17
18
|
} from "../selectors";
|
|
18
19
|
|
|
19
|
-
const RuleImplementationsTable =
|
|
20
|
-
import("@truedat/dq/components/RuleImplementationsTable")
|
|
20
|
+
const RuleImplementationsTable = lazy(
|
|
21
|
+
() => import("@truedat/dq/components/RuleImplementationsTable")
|
|
21
22
|
);
|
|
22
23
|
|
|
23
24
|
export const ConceptImplementationLinks = ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { Fragment } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { connect } from "react-redux";
|
|
6
6
|
import { Button } from "semantic-ui-react";
|
|
7
|
-
import { Link } from "react-router
|
|
7
|
+
import { Link } from "react-router";
|
|
8
8
|
import { linkTo } from "@truedat/core/routes";
|
|
9
9
|
import { Checkbox } from "semantic-ui-react";
|
|
10
10
|
|
|
@@ -21,7 +21,7 @@ export const ConceptLinksActions = ({
|
|
|
21
21
|
return createLinkUrl ? (
|
|
22
22
|
<div style={{ float: "right" }}>
|
|
23
23
|
{canManageGrantRequests ? (
|
|
24
|
-
<
|
|
24
|
+
<Fragment>
|
|
25
25
|
<Checkbox
|
|
26
26
|
id="execute_checkbox"
|
|
27
27
|
className="bgOrange"
|
|
@@ -31,7 +31,7 @@ export const ConceptLinksActions = ({
|
|
|
31
31
|
style={{ top: "6px", marginRight: "7.5px" }}
|
|
32
32
|
/>
|
|
33
33
|
<ConceptLinkstRequestGrantButton disabled={!grantView} />
|
|
34
|
-
</
|
|
34
|
+
</Fragment>
|
|
35
35
|
) : null}
|
|
36
36
|
<Button
|
|
37
37
|
primary
|
|
@@ -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 } 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 { linkTo } from "@truedat/core/routes";
|
|
9
8
|
|
|
@@ -24,14 +23,14 @@ export const ConceptRelationActions = ({ addConceptRelation }) => (
|
|
|
24
23
|
);
|
|
25
24
|
|
|
26
25
|
ConceptRelationActions.propTypes = {
|
|
27
|
-
addConceptRelation: PropTypes.string
|
|
26
|
+
addConceptRelation: PropTypes.string,
|
|
28
27
|
};
|
|
29
28
|
|
|
30
29
|
const mapStateToProps = ({ concept, conceptActions }) => ({
|
|
31
30
|
addConceptRelation:
|
|
32
31
|
concept && concept.id && _.has("create_concept_link")(conceptActions)
|
|
33
32
|
? linkTo.CONCEPT_LINKS_CONCEPTS_NEW(concept)
|
|
34
|
-
: undefined
|
|
33
|
+
: undefined,
|
|
35
34
|
});
|
|
36
35
|
|
|
37
36
|
export default connect(mapStateToProps)(ConceptRelationActions);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { lazy, useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
@@ -10,8 +10,8 @@ import { makeTagOptionsSelector } from "@truedat/core/selectors";
|
|
|
10
10
|
import { linkConcept } from "../routines";
|
|
11
11
|
import ConceptSelector from "./ConceptSelector";
|
|
12
12
|
|
|
13
|
-
const TagTypeDropdownSelector =
|
|
14
|
-
import("@truedat/lm/components/TagTypeDropdownSelector")
|
|
13
|
+
const TagTypeDropdownSelector = lazy(
|
|
14
|
+
() => import("@truedat/lm/components/TagTypeDropdownSelector")
|
|
15
15
|
);
|
|
16
16
|
|
|
17
17
|
const filters = {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { lazy } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { connect } from "react-redux";
|
|
6
|
-
import {
|
|
6
|
+
import { useNavigate } from "react-router";
|
|
7
7
|
import { Table, Label } from "semantic-ui-react";
|
|
8
8
|
import { linkTo } from "@truedat/core/routes";
|
|
9
9
|
import { deleteConceptRelation } from "../routines";
|
|
10
10
|
|
|
11
|
-
const ConfirmDeleteRelation =
|
|
12
|
-
import("@truedat/lm/components/ConfirmDeleteRelation")
|
|
11
|
+
const ConfirmDeleteRelation = lazy(
|
|
12
|
+
() => import("@truedat/lm/components/ConfirmDeleteRelation")
|
|
13
13
|
);
|
|
14
14
|
|
|
15
|
-
const goToConcept = ({
|
|
16
|
-
if (concept)
|
|
15
|
+
const goToConcept = ({ navigate, concept }) => {
|
|
16
|
+
if (concept) navigate(linkTo.CONCEPT_LINKS_CONCEPTS(concept));
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export const ConceptRelationRow = ({
|
|
@@ -25,7 +25,7 @@ export const ConceptRelationRow = ({
|
|
|
25
25
|
target_id,
|
|
26
26
|
tags,
|
|
27
27
|
}) => {
|
|
28
|
-
const
|
|
28
|
+
const navigate = useNavigate();
|
|
29
29
|
if (_.isEmpty(relationContext)) return null;
|
|
30
30
|
else {
|
|
31
31
|
const { target, source } = relationContext;
|
|
@@ -46,11 +46,11 @@ export const ConceptRelationRow = ({
|
|
|
46
46
|
<Table.Row>
|
|
47
47
|
<Table.Cell
|
|
48
48
|
content={source.name}
|
|
49
|
-
onClick={() => goToConcept({
|
|
49
|
+
onClick={() => goToConcept({ navigate, concept })}
|
|
50
50
|
/>
|
|
51
51
|
<Table.Cell
|
|
52
52
|
textAlign="center"
|
|
53
|
-
onClick={() => goToConcept({
|
|
53
|
+
onClick={() => goToConcept({ navigate, concept })}
|
|
54
54
|
>
|
|
55
55
|
{_.isEmpty(tags) ? (
|
|
56
56
|
<Label>-</Label>
|
|
@@ -68,7 +68,7 @@ export const ConceptRelationRow = ({
|
|
|
68
68
|
<Table.Cell
|
|
69
69
|
textAlign="center"
|
|
70
70
|
content={target.name}
|
|
71
|
-
onClick={() => goToConcept({
|
|
71
|
+
onClick={() => goToConcept({ navigate, concept })}
|
|
72
72
|
/>
|
|
73
73
|
<Table.Cell textAlign="center">
|
|
74
74
|
{canDeleteConceptRelation && (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import {
|
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
Table,
|
|
12
12
|
} from "semantic-ui-react";
|
|
13
13
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
14
|
-
import {
|
|
14
|
+
import { useLocation } from "react-router";
|
|
15
|
+
import { useNavigate } from "react-router";
|
|
15
16
|
|
|
16
17
|
import { RelationGraph } from "@truedat/lm/components";
|
|
17
18
|
import { linkTo } from "@truedat/core/routes";
|
|
@@ -53,20 +54,18 @@ export const ConceptRelations = ({
|
|
|
53
54
|
visible,
|
|
54
55
|
}) => {
|
|
55
56
|
const { formatMessage } = useIntl();
|
|
56
|
-
|
|
57
|
+
|
|
58
|
+
const navigate = useNavigate();
|
|
57
59
|
const location = useLocation();
|
|
58
60
|
const [graphRender, setGraphRender] = useState(
|
|
59
61
|
_.propOr(true, "state.show_graph")(location) && !_.isEmpty(conceptRelations)
|
|
60
62
|
);
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
+
const navigateToConcept = ({ resource_id }, emptyEdges) => {
|
|
64
|
+
navigate(
|
|
63
65
|
linkTo.CONCEPT_LINKS_CONCEPTS({
|
|
64
66
|
business_concept_id: resource_id,
|
|
65
67
|
id: "current",
|
|
66
|
-
})
|
|
67
|
-
{
|
|
68
|
-
show_graph: !emptyEdges,
|
|
69
|
-
}
|
|
68
|
+
})
|
|
70
69
|
);
|
|
71
70
|
};
|
|
72
71
|
|
|
@@ -201,7 +200,6 @@ export const ConceptRelations = ({
|
|
|
201
200
|
) : null}
|
|
202
201
|
{visible ? <ConceptRelationActions /> : null}
|
|
203
202
|
</div>
|
|
204
|
-
|
|
205
203
|
{conceptRelations ? (
|
|
206
204
|
<>
|
|
207
205
|
{graphRender && !_.isEmpty(currentId) ? (
|
|
@@ -213,7 +211,8 @@ export const ConceptRelations = ({
|
|
|
213
211
|
maxDepth={maxDepth}
|
|
214
212
|
/>
|
|
215
213
|
<RelationGraph
|
|
216
|
-
|
|
214
|
+
key={`graph-${depth}-${_.size(limitedRelationGraph?.nodes)}`}
|
|
215
|
+
navigate={navigateToConcept}
|
|
217
216
|
currentId={currentId}
|
|
218
217
|
relationsGraph={limitedRelationGraph}
|
|
219
218
|
/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import { Route,
|
|
4
|
+
import { Route, Routes } from "react-router";
|
|
5
5
|
import { connect } from "react-redux";
|
|
6
6
|
import {
|
|
7
7
|
CONCEPT_LINKS_CONCEPTS,
|
|
@@ -15,54 +15,35 @@ import ConceptRelations from "./ConceptRelations";
|
|
|
15
15
|
import ConceptRelationForm from "./ConceptRelationForm";
|
|
16
16
|
import ConceptImplementationLinks from "./ConceptImplementationLinks";
|
|
17
17
|
|
|
18
|
-
const ConceptStructureLinkForm = React.lazy(
|
|
19
|
-
import("@truedat/lm/components/ConceptStructureLinkForm")
|
|
18
|
+
const ConceptStructureLinkForm = React.lazy(
|
|
19
|
+
() => import("@truedat/lm/components/ConceptStructureLinkForm")
|
|
20
20
|
);
|
|
21
21
|
|
|
22
|
-
const StructureTypesLoader = React.lazy(
|
|
23
|
-
import("@truedat/dd/components/StructureTypesLoader")
|
|
22
|
+
const StructureTypesLoader = React.lazy(
|
|
23
|
+
() => import("@truedat/dd/components/StructureTypesLoader")
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
export const ConceptRelationsRoutes = ({ conceptLoaded, relationsLoading }) => {
|
|
27
|
-
return (
|
|
28
|
-
<
|
|
29
|
-
<Route
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/>
|
|
34
|
-
<Route
|
|
35
|
-
exact
|
|
36
|
-
path={CONCEPT_LINKS_STRUCTURES}
|
|
37
|
-
render={() =>
|
|
38
|
-
conceptLoaded ? (
|
|
27
|
+
return !conceptLoaded || relationsLoading ? null : (
|
|
28
|
+
<Routes>
|
|
29
|
+
<Route path="structures">
|
|
30
|
+
<Route
|
|
31
|
+
index
|
|
32
|
+
element={
|
|
39
33
|
<>
|
|
40
34
|
<StructureTypesLoader />
|
|
41
35
|
<ConceptStructureLinks />
|
|
42
36
|
</>
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
/>
|
|
46
|
-
|
|
47
|
-
<Route
|
|
48
|
-
exact
|
|
49
|
-
path={CONCEPT_LINKS_CONCEPTS_NEW}
|
|
50
|
-
render={() => (conceptLoaded ? <ConceptRelationForm /> : null)}
|
|
51
|
-
/>
|
|
52
|
-
|
|
53
|
-
{!relationsLoading ? (
|
|
54
|
-
<Route
|
|
55
|
-
exact
|
|
56
|
-
path={CONCEPT_LINKS_CONCEPTS}
|
|
57
|
-
render={() => <ConceptRelations />}
|
|
37
|
+
}
|
|
58
38
|
/>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
39
|
+
<Route path="new" element={<ConceptStructureLinkForm />} />
|
|
40
|
+
</Route>
|
|
41
|
+
<Route path="concepts">
|
|
42
|
+
<Route index element={<ConceptRelations />} />
|
|
43
|
+
<Route path="new" element={<ConceptRelationForm />} />
|
|
44
|
+
</Route>
|
|
45
|
+
<Route path="implementations" element={<ConceptImplementationLinks />} />
|
|
46
|
+
</Routes>
|
|
66
47
|
);
|
|
67
48
|
};
|
|
68
49
|
|