@truedat/dd 4.46.5 → 4.46.8
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
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "4.46.
|
|
3
|
+
"version": "4.46.8",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@testing-library/jest-dom": "^5.16.4",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "4.46.
|
|
37
|
+
"@truedat/test": "4.46.8",
|
|
38
38
|
"babel-jest": "^28.1.0",
|
|
39
39
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
40
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@apollo/client": "^3.6.4",
|
|
91
|
-
"@truedat/auth": "4.46.
|
|
92
|
-
"@truedat/core": "4.46.
|
|
93
|
-
"@truedat/df": "4.46.
|
|
91
|
+
"@truedat/auth": "4.46.8",
|
|
92
|
+
"@truedat/core": "4.46.8",
|
|
93
|
+
"@truedat/df": "4.46.8",
|
|
94
94
|
"lodash": "^4.17.21",
|
|
95
95
|
"path-to-regexp": "^1.7.0",
|
|
96
96
|
"prop-types": "^15.8.1",
|
|
@@ -103,7 +103,8 @@
|
|
|
103
103
|
"redux-saga": "^1.1.3",
|
|
104
104
|
"redux-saga-routines": "^3.2.3",
|
|
105
105
|
"reselect": "^4.0.0",
|
|
106
|
-
"svg-pan-zoom": "^3.6.1"
|
|
106
|
+
"svg-pan-zoom": "^3.6.1",
|
|
107
|
+
"uuid": "^8.3.2"
|
|
107
108
|
},
|
|
108
109
|
"peerDependencies": {
|
|
109
110
|
"@truedat/profile": ">= 4.45.0",
|
|
@@ -111,5 +112,5 @@
|
|
|
111
112
|
"react-dom": ">= 16.8.6 < 17",
|
|
112
113
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
113
114
|
},
|
|
114
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "44f3e7aea8153415f773f7b4f9137c11ad128b1d"
|
|
115
116
|
}
|
|
@@ -7,35 +7,76 @@ import { Card, Icon, Image, Label, Table, Popup } from "semantic-ui-react";
|
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
8
|
import { FormattedMessage, FormattedNumber } from "react-intl";
|
|
9
9
|
import { accentInsensitivePathOrder } from "@truedat/core/services/sort";
|
|
10
|
+
import { CardGroupsAccordion } from "@truedat/core/components";
|
|
10
11
|
import { linkTo } from "@truedat/core/routes";
|
|
11
12
|
|
|
12
|
-
export const SystemCards = ({ systems, structureTypes }) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
export const SystemCards = ({ systems, structureTypes }) => {
|
|
14
|
+
const groups = _.flow(
|
|
15
|
+
_.map((system) =>
|
|
16
|
+
!system.df_content?.system_group
|
|
17
|
+
? _.set("df_content.system_group", "default", system)
|
|
18
|
+
: system
|
|
19
|
+
),
|
|
20
|
+
_.groupBy("df_content.system_group")
|
|
21
|
+
)(systems);
|
|
22
|
+
|
|
23
|
+
return Object.keys(groups).length > 1 ? (
|
|
24
|
+
<CardGroupsAccordion groups={groups} cardComponent={SystemCard} />
|
|
25
|
+
) : (
|
|
26
|
+
<Card.Group className="structures">
|
|
27
|
+
{_.map(({ id, name, structures_count: structures_count, df_content }) => (
|
|
28
|
+
<SystemCard
|
|
29
|
+
key={id}
|
|
30
|
+
id={id}
|
|
31
|
+
name={name}
|
|
32
|
+
structures_count={structures_count}
|
|
33
|
+
df_content={df_content}
|
|
34
|
+
structureTypes={structureTypes}
|
|
35
|
+
/>
|
|
36
|
+
))(systems)}
|
|
37
|
+
</Card.Group>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
33
40
|
|
|
34
41
|
SystemCards.propTypes = {
|
|
35
42
|
systems: PropTypes.array,
|
|
36
43
|
structureTypes: PropTypes.array,
|
|
37
44
|
};
|
|
38
45
|
|
|
46
|
+
export const SystemCard = ({
|
|
47
|
+
id,
|
|
48
|
+
name,
|
|
49
|
+
structures_count,
|
|
50
|
+
df_content,
|
|
51
|
+
structureTypes,
|
|
52
|
+
}) => {
|
|
53
|
+
return (
|
|
54
|
+
<Card link as={Link} to={linkTo.SYSTEM_STRUCTURES({ id: id })}>
|
|
55
|
+
<Card.Content className="extra-bottom-padding">
|
|
56
|
+
<Card.Header>{name}</Card.Header>
|
|
57
|
+
{!_.isEmpty(_.prop("types")(structures_count)) && (
|
|
58
|
+
<SystemsPopup
|
|
59
|
+
structures_count={structures_count}
|
|
60
|
+
structureTypes={structureTypes}
|
|
61
|
+
/>
|
|
62
|
+
)}
|
|
63
|
+
{!_.isEmpty(_.get("logo")(df_content)) &&
|
|
64
|
+
_.startsWith("data:image")(_.get("logo")(df_content)) && (
|
|
65
|
+
<Image src={_.get("logo")(df_content)} className="system-image" />
|
|
66
|
+
)}
|
|
67
|
+
</Card.Content>
|
|
68
|
+
</Card>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
SystemCard.propTypes = {
|
|
73
|
+
id: PropTypes.number,
|
|
74
|
+
name: PropTypes.string,
|
|
75
|
+
structures_count: PropTypes.object,
|
|
76
|
+
df_content: PropTypes.object,
|
|
77
|
+
structureTypes: PropTypes.array,
|
|
78
|
+
};
|
|
79
|
+
|
|
39
80
|
export const SystemsPopup = ({ structures_count, structureTypes }) => {
|
|
40
81
|
const { formatMessage } = useIntl();
|
|
41
82
|
return (
|
|
@@ -1,157 +1,205 @@
|
|
|
1
|
+
/* eslint-disable react/display-name */
|
|
1
2
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
3
|
+
import { render } from "@truedat/test/render";
|
|
4
|
+
import { waitFor, fireEvent } from "@testing-library/react";
|
|
5
|
+
|
|
4
6
|
import { SystemCards, SystemsPopup } from "../SystemCards";
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
const system_with_structures = {
|
|
9
|
+
external_id: "Microstrategy",
|
|
10
|
+
id: 1,
|
|
11
|
+
name: "Microstrategy",
|
|
12
|
+
structures_count: {
|
|
13
|
+
count: 1239,
|
|
14
|
+
types: [
|
|
15
|
+
{ name: "carpeta", count: 1200 },
|
|
16
|
+
{ name: "tabla", count: 2 },
|
|
17
|
+
{ name: "columna", count: 37 },
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
};
|
|
9
21
|
|
|
10
|
-
const
|
|
11
|
-
|
|
22
|
+
const system_without_structures = {
|
|
23
|
+
external_id: "vacio",
|
|
24
|
+
id: 27,
|
|
25
|
+
name: "vacio",
|
|
26
|
+
structures_count: { count: 0 },
|
|
12
27
|
};
|
|
13
28
|
|
|
14
|
-
|
|
15
|
-
...
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
const systems = [
|
|
30
|
+
{ ...system_with_structures },
|
|
31
|
+
{ ...system_without_structures },
|
|
32
|
+
];
|
|
18
33
|
|
|
19
34
|
describe("<SystemCards />", () => {
|
|
20
|
-
it("matches the latest snapshot", () => {
|
|
21
|
-
const
|
|
22
|
-
|
|
35
|
+
it("It matches the latest snapshot without system_groups", () => {
|
|
36
|
+
const props = { systems };
|
|
37
|
+
const { container } = render(<SystemCards {...props} />);
|
|
38
|
+
expect(container).toMatchSnapshot();
|
|
23
39
|
});
|
|
24
40
|
|
|
25
|
-
it("
|
|
41
|
+
it("It matches the latest snapshot with system_groups", () => {
|
|
26
42
|
const systems = [
|
|
27
43
|
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
count: 1239,
|
|
33
|
-
types: [
|
|
34
|
-
{ name: "carpeta", count: 1200 },
|
|
35
|
-
{ name: "tabla", count: 2 },
|
|
36
|
-
{ name: "columna", count: 37 }
|
|
37
|
-
]
|
|
38
|
-
}
|
|
44
|
+
...system_with_structures,
|
|
45
|
+
df_content: {
|
|
46
|
+
system_group: "foo-group",
|
|
47
|
+
},
|
|
39
48
|
},
|
|
40
|
-
{
|
|
41
|
-
external_id: "vacio",
|
|
42
|
-
id: 27,
|
|
43
|
-
name: "vacio",
|
|
44
|
-
structures_count: { count: 0 }
|
|
45
|
-
}
|
|
49
|
+
{ ...system_without_structures },
|
|
46
50
|
];
|
|
47
51
|
const props = { systems };
|
|
48
|
-
const
|
|
49
|
-
expect(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
const { container } = render(<SystemCards {...props} />);
|
|
53
|
+
expect(container).toMatchSnapshot();
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it("mounts structures popup", async () => {
|
|
57
|
+
const props = { systems };
|
|
58
|
+
const { container, getByText } = render(<SystemCards {...props} />);
|
|
59
|
+
|
|
60
|
+
expect(container.getElementsByClassName("card")).toHaveLength(2);
|
|
61
|
+
|
|
62
|
+
const popup = getByText("1,239");
|
|
63
|
+
fireEvent.mouseEnter(popup);
|
|
64
|
+
|
|
65
|
+
await waitFor(() => {
|
|
66
|
+
expect(document.getElementsByClassName("popup")).toHaveLength(1);
|
|
67
|
+
});
|
|
68
|
+
fireEvent.mouseLeave(popup);
|
|
69
|
+
await waitFor(() => {
|
|
70
|
+
expect(document.getElementsByClassName("popup")).toHaveLength(0);
|
|
71
|
+
});
|
|
65
72
|
});
|
|
66
73
|
|
|
67
74
|
it("system logo", () => {
|
|
75
|
+
const imageSrc =
|
|
76
|
+
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==";
|
|
68
77
|
const systems = [
|
|
69
78
|
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
structures_count: {
|
|
74
|
-
count: 1239,
|
|
75
|
-
types: [
|
|
76
|
-
{ name: "carpeta", count: 1200 },
|
|
77
|
-
{ name: "tabla", count: 2 },
|
|
78
|
-
{ name: "columna", count: 37 }
|
|
79
|
-
]
|
|
79
|
+
...system_with_structures,
|
|
80
|
+
df_content: {
|
|
81
|
+
logo: imageSrc,
|
|
80
82
|
},
|
|
83
|
+
},
|
|
84
|
+
{ ...system_without_structures },
|
|
85
|
+
];
|
|
86
|
+
const props = { systems };
|
|
87
|
+
const { container } = render(<SystemCards {...props} />);
|
|
88
|
+
|
|
89
|
+
expect(container.getElementsByTagName("img")).toHaveLength(1);
|
|
90
|
+
expect(container.querySelector("img").getAttribute("src")).toMatch(
|
|
91
|
+
imageSrc
|
|
92
|
+
);
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it("systems withouth system_group is not grouped", async () => {
|
|
96
|
+
const props = { systems };
|
|
97
|
+
|
|
98
|
+
const { container } = render(<SystemCards {...props} />);
|
|
99
|
+
|
|
100
|
+
await waitFor(() => {
|
|
101
|
+
// Check that the agrupations not appears
|
|
102
|
+
expect(container.innerHTML).not.toMatch("Without Groups");
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
it("all systems with the same system_group is not grouped", async () => {
|
|
107
|
+
const systems = [
|
|
108
|
+
{
|
|
109
|
+
...system_with_structures,
|
|
81
110
|
df_content: {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
111
|
+
system_group: "foo-group",
|
|
112
|
+
},
|
|
85
113
|
},
|
|
86
114
|
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
115
|
+
...system_without_structures,
|
|
116
|
+
df_content: {
|
|
117
|
+
system_group: "foo-group",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
92
120
|
];
|
|
93
121
|
const props = { systems };
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
).toBe(systems[0].df_content.logo);
|
|
103
|
-
|
|
104
|
-
expect(
|
|
105
|
-
systemsWrapper
|
|
106
|
-
.find("Card")
|
|
107
|
-
.at(1)
|
|
108
|
-
.find("CardContent")
|
|
109
|
-
.find("Image").length
|
|
110
|
-
).toBe(0);
|
|
122
|
+
|
|
123
|
+
const { container } = render(<SystemCards {...props} />);
|
|
124
|
+
|
|
125
|
+
await waitFor(() => {
|
|
126
|
+
// Check that the agrupations not appears
|
|
127
|
+
expect(container.innerHTML).not.toMatch("Without Groups");
|
|
128
|
+
expect(container.innerHTML).not.toMatch("foo-group");
|
|
129
|
+
});
|
|
111
130
|
});
|
|
112
131
|
|
|
113
|
-
it("
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
132
|
+
it("systems with system_group is grouped", async () => {
|
|
133
|
+
const systems = [
|
|
134
|
+
{
|
|
135
|
+
...system_with_structures,
|
|
136
|
+
df_content: {
|
|
137
|
+
system_group: "foo-group",
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
...system_without_structures,
|
|
142
|
+
df_content: {
|
|
143
|
+
system_group: "",
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
];
|
|
147
|
+
const props = { systems };
|
|
148
|
+
|
|
149
|
+
const { getByText } = render(<SystemCards {...props} />);
|
|
150
|
+
|
|
151
|
+
await waitFor(() => {
|
|
152
|
+
// Check that the agrupations appears
|
|
153
|
+
expect(getByText("foo-group")).toBeTruthy();
|
|
154
|
+
expect(getByText("Without Groups")).toBeTruthy();
|
|
155
|
+
|
|
156
|
+
// Check under foo-group only have one system card
|
|
157
|
+
expect(
|
|
158
|
+
getByText("foo-group")
|
|
159
|
+
.closest(".CardGroupTitle")
|
|
160
|
+
.parentNode.getElementsByClassName("card")
|
|
161
|
+
).toHaveLength(1);
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
it("structures types count popup", async () => {
|
|
166
|
+
const structures_count = { ...system_with_structures.structures_count };
|
|
122
167
|
const props = { structures_count };
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
168
|
+
const { getByText } = render(<SystemsPopup {...props} />);
|
|
169
|
+
|
|
170
|
+
const popup = getByText("1,239");
|
|
171
|
+
fireEvent.mouseEnter(popup);
|
|
172
|
+
|
|
173
|
+
await waitFor(() => {
|
|
174
|
+
// Check that popup is showed
|
|
175
|
+
expect(document.getElementsByClassName("popup")).toHaveLength(1);
|
|
176
|
+
|
|
177
|
+
// Check that are a row for each type of structures count
|
|
178
|
+
expect(document.querySelectorAll("tr")).toHaveLength(3);
|
|
179
|
+
|
|
180
|
+
// Check each row to have correct data according type of structure count
|
|
181
|
+
expect(
|
|
182
|
+
document.querySelectorAll("tr")[0].querySelectorAll("td")[1].innerHTML
|
|
183
|
+
).toMatch("carpeta");
|
|
184
|
+
expect(
|
|
185
|
+
document.querySelectorAll("tr")[0].querySelectorAll("td")[2].innerHTML
|
|
186
|
+
).toMatch("1200");
|
|
187
|
+
|
|
188
|
+
expect(
|
|
189
|
+
document.querySelectorAll("tr")[1].querySelectorAll("td")[1].innerHTML
|
|
190
|
+
).toMatch("tabla");
|
|
191
|
+
expect(
|
|
192
|
+
document.querySelectorAll("tr")[1].querySelectorAll("td")[2].innerHTML
|
|
193
|
+
).toMatch("2");
|
|
194
|
+
|
|
195
|
+
expect(
|
|
196
|
+
document.querySelectorAll("tr")[2].querySelectorAll("td")[1].innerHTML
|
|
197
|
+
).toMatch("columna");
|
|
198
|
+
expect(
|
|
199
|
+
document.querySelectorAll("tr")[2].querySelectorAll("td")[2].innerHTML
|
|
200
|
+
).toMatch("37");
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
expect(document).toMatchSnapshot();
|
|
156
204
|
});
|
|
157
205
|
});
|
|
@@ -1,211 +1,151 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`<SystemCards /> matches the latest snapshot 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
exports[`<SystemCards /> mounts structures popup 1`] = `
|
|
10
|
-
<CardGroup
|
|
11
|
-
className="structures"
|
|
12
|
-
>
|
|
13
|
-
<Card
|
|
14
|
-
as={
|
|
15
|
-
Object {
|
|
16
|
-
"$$typeof": Symbol(react.forward_ref),
|
|
17
|
-
"displayName": "Link",
|
|
18
|
-
"propTypes": Object {
|
|
19
|
-
"innerRef": [Function],
|
|
20
|
-
"onClick": [Function],
|
|
21
|
-
"replace": [Function],
|
|
22
|
-
"target": [Function],
|
|
23
|
-
"to": [Function],
|
|
24
|
-
},
|
|
25
|
-
"render": [Function],
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
key="1"
|
|
29
|
-
link={true}
|
|
30
|
-
to="/systems/1/structures"
|
|
31
|
-
>
|
|
32
|
-
<CardContent
|
|
33
|
-
className="extra-bottom-padding"
|
|
34
|
-
>
|
|
35
|
-
<CardHeader>
|
|
36
|
-
Microstrategy
|
|
37
|
-
</CardHeader>
|
|
38
|
-
<SystemsPopup
|
|
39
|
-
structures_count={
|
|
40
|
-
Object {
|
|
41
|
-
"count": 1239,
|
|
42
|
-
"types": Array [
|
|
43
|
-
Object {
|
|
44
|
-
"count": 1200,
|
|
45
|
-
"name": "carpeta",
|
|
46
|
-
},
|
|
47
|
-
Object {
|
|
48
|
-
"count": 2,
|
|
49
|
-
"name": "tabla",
|
|
50
|
-
},
|
|
51
|
-
Object {
|
|
52
|
-
"count": 37,
|
|
53
|
-
"name": "columna",
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/>
|
|
59
|
-
</CardContent>
|
|
60
|
-
</Card>
|
|
61
|
-
<Card
|
|
62
|
-
as={
|
|
63
|
-
Object {
|
|
64
|
-
"$$typeof": Symbol(react.forward_ref),
|
|
65
|
-
"displayName": "Link",
|
|
66
|
-
"propTypes": Object {
|
|
67
|
-
"innerRef": [Function],
|
|
68
|
-
"onClick": [Function],
|
|
69
|
-
"replace": [Function],
|
|
70
|
-
"target": [Function],
|
|
71
|
-
"to": [Function],
|
|
72
|
-
},
|
|
73
|
-
"render": [Function],
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
key="27"
|
|
77
|
-
link={true}
|
|
78
|
-
to="/systems/27/structures"
|
|
79
|
-
>
|
|
80
|
-
<CardContent
|
|
81
|
-
className="extra-bottom-padding"
|
|
82
|
-
>
|
|
83
|
-
<CardHeader>
|
|
84
|
-
vacio
|
|
85
|
-
</CardHeader>
|
|
86
|
-
</CardContent>
|
|
87
|
-
</Card>
|
|
88
|
-
</CardGroup>
|
|
89
|
-
`;
|
|
90
|
-
|
|
91
|
-
exports[`<SystemCards /> structures types count popup 1`] = `
|
|
92
|
-
<Popup
|
|
93
|
-
basic={true}
|
|
94
|
-
disabled={false}
|
|
95
|
-
eventsEnabled={true}
|
|
96
|
-
on={
|
|
97
|
-
Array [
|
|
98
|
-
"click",
|
|
99
|
-
"hover",
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
pinned={false}
|
|
103
|
-
popperModifiers={Array []}
|
|
104
|
-
position="top left"
|
|
105
|
-
trigger={
|
|
106
|
-
<Label
|
|
107
|
-
attached="bottom right"
|
|
108
|
-
className="overlapping"
|
|
109
|
-
>
|
|
110
|
-
<FormattedNumber
|
|
111
|
-
value={1239}
|
|
112
|
-
/>
|
|
113
|
-
</Label>
|
|
114
|
-
}
|
|
115
|
-
>
|
|
116
|
-
<Table
|
|
117
|
-
as="table"
|
|
118
|
-
basic="very"
|
|
119
|
-
className="no-rows-border super-compact"
|
|
3
|
+
exports[`<SystemCards /> It matches the latest snapshot with system_groups 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="accordion ui"
|
|
120
7
|
>
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<TableRow
|
|
125
|
-
as="tr"
|
|
126
|
-
cellAs="td"
|
|
127
|
-
key="0"
|
|
8
|
+
<div>
|
|
9
|
+
<div
|
|
10
|
+
class="active title CardGroupTitle"
|
|
128
11
|
>
|
|
129
|
-
<
|
|
130
|
-
|
|
12
|
+
<h3
|
|
13
|
+
class="ui dividing header"
|
|
131
14
|
>
|
|
132
|
-
<
|
|
133
|
-
|
|
134
|
-
|
|
15
|
+
<i
|
|
16
|
+
aria-hidden="true"
|
|
17
|
+
class="dropdown icon"
|
|
135
18
|
/>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
defaultMessage="carpeta"
|
|
142
|
-
id="structure.type.carpeta.text"
|
|
143
|
-
/>
|
|
144
|
-
</TableCell>
|
|
145
|
-
<TableCell
|
|
146
|
-
as="td"
|
|
147
|
-
textAlign="right"
|
|
148
|
-
>
|
|
149
|
-
1200
|
|
150
|
-
</TableCell>
|
|
151
|
-
</TableRow>
|
|
152
|
-
<TableRow
|
|
153
|
-
as="tr"
|
|
154
|
-
cellAs="td"
|
|
155
|
-
key="1"
|
|
19
|
+
Without Groups
|
|
20
|
+
</h3>
|
|
21
|
+
</div>
|
|
22
|
+
<div
|
|
23
|
+
class="content active"
|
|
156
24
|
>
|
|
157
|
-
<
|
|
158
|
-
|
|
25
|
+
<div
|
|
26
|
+
class="ui cards"
|
|
159
27
|
>
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
28
|
+
<a
|
|
29
|
+
class="ui link card"
|
|
30
|
+
href="/systems/27/structures"
|
|
31
|
+
>
|
|
32
|
+
<div
|
|
33
|
+
class="content extra-bottom-padding"
|
|
34
|
+
>
|
|
35
|
+
<div
|
|
36
|
+
class="header"
|
|
37
|
+
>
|
|
38
|
+
vacio
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</a>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div>
|
|
46
|
+
<div
|
|
47
|
+
class="active title CardGroupTitle"
|
|
48
|
+
>
|
|
49
|
+
<h3
|
|
50
|
+
class="ui dividing header"
|
|
167
51
|
>
|
|
168
|
-
<
|
|
169
|
-
|
|
170
|
-
|
|
52
|
+
<i
|
|
53
|
+
aria-hidden="true"
|
|
54
|
+
class="dropdown icon"
|
|
171
55
|
/>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
56
|
+
foo-group
|
|
57
|
+
</h3>
|
|
58
|
+
</div>
|
|
59
|
+
<div
|
|
60
|
+
class="content active"
|
|
61
|
+
>
|
|
62
|
+
<div
|
|
63
|
+
class="ui cards"
|
|
176
64
|
>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
65
|
+
<a
|
|
66
|
+
class="ui link card"
|
|
67
|
+
href="/systems/1/structures"
|
|
68
|
+
>
|
|
69
|
+
<div
|
|
70
|
+
class="content extra-bottom-padding"
|
|
71
|
+
>
|
|
72
|
+
<div
|
|
73
|
+
class="header"
|
|
74
|
+
>
|
|
75
|
+
Microstrategy
|
|
76
|
+
</div>
|
|
77
|
+
<div
|
|
78
|
+
class="ui bottom right attached label overlapping"
|
|
79
|
+
>
|
|
80
|
+
1,239
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</a>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
`;
|
|
90
|
+
|
|
91
|
+
exports[`<SystemCards /> It matches the latest snapshot without system_groups 1`] = `
|
|
92
|
+
<div>
|
|
93
|
+
<div
|
|
94
|
+
class="ui cards structures"
|
|
95
|
+
>
|
|
96
|
+
<a
|
|
97
|
+
class="ui link card"
|
|
98
|
+
href="/systems/1/structures"
|
|
99
|
+
>
|
|
100
|
+
<div
|
|
101
|
+
class="content extra-bottom-padding"
|
|
184
102
|
>
|
|
185
|
-
<
|
|
186
|
-
|
|
103
|
+
<div
|
|
104
|
+
class="header"
|
|
187
105
|
>
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
</TableCell>
|
|
193
|
-
<TableCell
|
|
194
|
-
as="td"
|
|
106
|
+
Microstrategy
|
|
107
|
+
</div>
|
|
108
|
+
<div
|
|
109
|
+
class="ui bottom right attached label overlapping"
|
|
195
110
|
>
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
111
|
+
1,239
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</a>
|
|
115
|
+
<a
|
|
116
|
+
class="ui link card"
|
|
117
|
+
href="/systems/27/structures"
|
|
118
|
+
>
|
|
119
|
+
<div
|
|
120
|
+
class="content extra-bottom-padding"
|
|
121
|
+
>
|
|
122
|
+
<div
|
|
123
|
+
class="header"
|
|
204
124
|
>
|
|
205
|
-
|
|
206
|
-
</
|
|
207
|
-
</
|
|
208
|
-
</
|
|
209
|
-
</
|
|
210
|
-
</
|
|
125
|
+
vacio
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</a>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
`;
|
|
132
|
+
|
|
133
|
+
exports[`<SystemCards /> structures types count popup 1`] = `
|
|
134
|
+
Document {
|
|
135
|
+
"location": Location {
|
|
136
|
+
"assign": [Function],
|
|
137
|
+
"hash": "",
|
|
138
|
+
"host": "localhost",
|
|
139
|
+
"hostname": "localhost",
|
|
140
|
+
"href": "http://localhost/",
|
|
141
|
+
"origin": "http://localhost",
|
|
142
|
+
"pathname": "/",
|
|
143
|
+
"port": "",
|
|
144
|
+
"protocol": "http:",
|
|
145
|
+
"reload": [Function],
|
|
146
|
+
"replace": [Function],
|
|
147
|
+
"search": "",
|
|
148
|
+
"toString": [Function],
|
|
149
|
+
},
|
|
150
|
+
}
|
|
211
151
|
`;
|