@truedat/bg 7.4.1 → 7.4.3

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.
Files changed (25) hide show
  1. package/package.json +6 -6
  2. package/src/concepts/components/Concept.js +28 -6
  3. package/src/concepts/components/ConceptArchive.js +3 -3
  4. package/src/concepts/components/ConceptArchiveRow.js +3 -3
  5. package/src/concepts/components/ConceptContext.js +37 -0
  6. package/src/concepts/components/__tests__/Concept.spec.js +50 -1
  7. package/src/concepts/components/__tests__/ConceptArchive.spec.js +3 -3
  8. package/src/concepts/components/__tests__/ConceptContext.spec.js +47 -0
  9. package/src/concepts/components/__tests__/__snapshots__/Concept.spec.js.snap +181 -0
  10. package/src/concepts/components/__tests__/__snapshots__/ConceptArchive.spec.js.snap +2 -2
  11. package/src/concepts/components/__tests__/__snapshots__/ConceptArchiveRow.spec.js.snap +1 -7
  12. package/src/concepts/components/__tests__/__snapshots__/ConceptContext.spec.js.snap +9 -0
  13. package/src/concepts/reducers/__tests__/conceptArchive.spec.js +4 -4
  14. package/src/concepts/reducers/concept.js +1 -0
  15. package/src/concepts/reducers/conceptArchive.js +2 -2
  16. package/src/concepts/relations/components/ConceptLinkActions.js +47 -17
  17. package/src/concepts/relations/components/ConceptLinksActions.js +49 -22
  18. package/src/concepts/relations/components/ConceptLinkstRequestGrantButton.js +65 -0
  19. package/src/concepts/relations/components/ConceptStructureLinks.js +92 -9
  20. package/src/concepts/relations/components/__tests__/ConceptLinksActions.spec.js +65 -0
  21. package/src/concepts/relations/components/__tests__/ConceptLinkstRequestGrantButton.spec.js +37 -0
  22. package/src/concepts/relations/components/__tests__/ConceptStructureLinks.spec.js +82 -6
  23. package/src/concepts/relations/components/__tests__/__snapshots__/ConceptLinksActions.spec.js.snap +61 -0
  24. package/src/concepts/relations/components/__tests__/__snapshots__/ConceptLinkstRequestGrantButton.spec.js.snap +16 -0
  25. package/src/concepts/relations/components/__tests__/__snapshots__/ConceptStructureLinks.spec.js.snap +193 -28
@@ -1,32 +1,197 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<ConceptStructureLinksPane /> matches the latest snapshot 1`] = `
4
- <Segment
5
- attached="bottom"
6
- >
7
- <lazy
8
- groups={
9
- [
10
- [
11
- [
12
- {
13
- "name": "name",
14
- },
15
- ],
16
- [
17
- "group",
18
- [
19
- {
20
- "name": "foo",
21
- },
22
- ],
23
- ],
24
- ],
25
- ]
26
- }
27
- linksActions={null}
28
- sourceType="concept"
29
- targetType="structure"
30
- />
31
- </Segment>
4
+ <div>
5
+ <div
6
+ class="ui bottom attached segment"
7
+ style=""
8
+ >
9
+ <div
10
+ class="ui grid"
11
+ >
12
+ <div
13
+ class="row"
14
+ >
15
+ <div
16
+ class="column"
17
+ />
18
+ </div>
19
+ <div
20
+ class="row"
21
+ >
22
+ <div
23
+ class="column"
24
+ >
25
+ <h3
26
+ class="ui header"
27
+ >
28
+ Links to Structures
29
+ </h3>
30
+ <table
31
+ class="ui table"
32
+ >
33
+ <thead
34
+ class=""
35
+ >
36
+ <tr
37
+ class=""
38
+ >
39
+ <th
40
+ class=""
41
+ >
42
+ Structure
43
+ </th>
44
+ </tr>
45
+ </thead>
46
+ <tbody
47
+ class=""
48
+ >
49
+ <tr
50
+ class=""
51
+ >
52
+ <td
53
+ class=""
54
+ >
55
+ foo
56
+ </td>
57
+ </tr>
58
+ </tbody>
59
+ </table>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ `;
66
+
67
+ exports[`<ConceptStructureLinksPane /> matches the latest snapshot with grantView 1`] = `
68
+ <div>
69
+ <div
70
+ class="ui bottom attached segment"
71
+ >
72
+ <div
73
+ class="ui grid"
74
+ >
75
+ <div
76
+ class="row"
77
+ >
78
+ <div
79
+ class="column"
80
+ />
81
+ </div>
82
+ <div
83
+ class="row"
84
+ >
85
+ <div
86
+ class="column"
87
+ >
88
+ <div
89
+ class="dimmable structure-table-overflow"
90
+ >
91
+ <div
92
+ class="ui label structures-label-results"
93
+ >
94
+ NaN structures found
95
+ </div>
96
+ <table
97
+ class="ui sortable table"
98
+ >
99
+ <thead
100
+ class=""
101
+ >
102
+ <tr
103
+ class=""
104
+ >
105
+ <th
106
+ class="two wide"
107
+ >
108
+ Structure
109
+ </th>
110
+ <th
111
+ class="one wide disabled"
112
+ >
113
+ Type
114
+ </th>
115
+ <th
116
+ class="one wide"
117
+ >
118
+ System
119
+ </th>
120
+ <th
121
+ class="one wide disabled"
122
+ >
123
+ Relation Type
124
+ </th>
125
+ <th
126
+ class="one wide disabled"
127
+ >
128
+ Group
129
+ </th>
130
+ <th
131
+ class="one wide"
132
+ >
133
+ structure.last_change_at
134
+ </th>
135
+ <th
136
+ class="center aligned"
137
+ >
138
+ Request grant
139
+ </th>
140
+ </tr>
141
+ </thead>
142
+ <tbody
143
+ class=""
144
+ >
145
+ <tr
146
+ class=""
147
+ >
148
+ <td
149
+ class="structure-cell-overflow"
150
+ >
151
+ <a
152
+ href="/structures/1"
153
+ title="test structure"
154
+ >
155
+ test structure
156
+ </a>
157
+ </td>
158
+ <td
159
+ class=""
160
+ >
161
+ Data Base
162
+ </td>
163
+ <td
164
+ class=""
165
+ >
166
+ System_Test
167
+ </td>
168
+ <td
169
+ class=""
170
+ />
171
+ <td
172
+ class=""
173
+ >
174
+ test
175
+ </td>
176
+ <td
177
+ class=""
178
+ >
179
+ <time
180
+ datetime="1735725600100"
181
+ >
182
+ 2025-01-01 10:00
183
+ </time>
184
+ </td>
185
+ <td
186
+ class="collapsing center aligned one wide"
187
+ />
188
+ </tr>
189
+ </tbody>
190
+ </table>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ </div>
196
+ </div>
32
197
  `;