@truedat/dq 4.48.5 → 4.48.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 +12 -0
- package/package.json +9 -4
- package/src/components/RuleForm.js +22 -3
- package/src/components/__tests__/NewRuleImplementation.spec.js +132 -125
- package/src/components/__tests__/RuleForm.spec.js +38 -0
- package/src/components/{__test_samples__ → __tests__/__fixtures__}/NewRuleImplementationProps.js +301 -332
- package/src/components/__tests__/__fixtures__/RuleForm.js +118 -0
- package/src/components/{__test_samples__ → __tests__/__fixtures__}/newRuleImplementationHelper.js +188 -429
- package/src/components/__tests__/__snapshots__/NewRuleImplementation.spec.js.snap +12 -12
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export const globalState = {
|
|
2
|
+
ruleCreating: false,
|
|
3
|
+
ruleUpdating: false,
|
|
4
|
+
conceptRulesActions: {
|
|
5
|
+
domain_ids: [
|
|
6
|
+
{
|
|
7
|
+
external_id: "ARQUITECTURA",
|
|
8
|
+
id: 1,
|
|
9
|
+
name: "ARQ",
|
|
10
|
+
parent_id: null,
|
|
11
|
+
updated_at: "2020-04-01 11:30:42.177807Z",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
concept: {
|
|
16
|
+
id: 12157,
|
|
17
|
+
content: {
|
|
18
|
+
CHECKBOXES: "",
|
|
19
|
+
dependiente: "v4",
|
|
20
|
+
},
|
|
21
|
+
confidential: false,
|
|
22
|
+
description: {
|
|
23
|
+
document: {
|
|
24
|
+
data: {},
|
|
25
|
+
nodes: [
|
|
26
|
+
{
|
|
27
|
+
data: {},
|
|
28
|
+
nodes: [
|
|
29
|
+
{
|
|
30
|
+
marks: [],
|
|
31
|
+
object: "text",
|
|
32
|
+
text: "a",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
object: "block",
|
|
36
|
+
type: "paragraph",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
object: "document",
|
|
40
|
+
},
|
|
41
|
+
object: "value",
|
|
42
|
+
},
|
|
43
|
+
domain: {
|
|
44
|
+
id: 1,
|
|
45
|
+
name: "ARQ",
|
|
46
|
+
},
|
|
47
|
+
domain_parents: [
|
|
48
|
+
{
|
|
49
|
+
external_id: "ARQUITECTURA",
|
|
50
|
+
id: 1,
|
|
51
|
+
name: "ARQ",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
external_id: "Bankia Prueba",
|
|
55
|
+
id: 191,
|
|
56
|
+
name: "Bankia Prueba",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
name: "abc-def",
|
|
60
|
+
business_concept_id: 11960,
|
|
61
|
+
status: "published",
|
|
62
|
+
type: "test_checkboxes",
|
|
63
|
+
version: 1,
|
|
64
|
+
template: {
|
|
65
|
+
content: [
|
|
66
|
+
{
|
|
67
|
+
fields: [
|
|
68
|
+
{
|
|
69
|
+
cardinality: "?",
|
|
70
|
+
default: "",
|
|
71
|
+
label: "dependiente",
|
|
72
|
+
name: "dependiente",
|
|
73
|
+
type: "string",
|
|
74
|
+
values: {
|
|
75
|
+
fixed: ["v1", "v2", "v3", "v4"],
|
|
76
|
+
},
|
|
77
|
+
widget: "radio",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
cardinality: "*",
|
|
81
|
+
default: "",
|
|
82
|
+
label: "CHECKBOXES",
|
|
83
|
+
name: "CHECKBOXES",
|
|
84
|
+
type: "string",
|
|
85
|
+
values: {
|
|
86
|
+
switch: {
|
|
87
|
+
on: "dependiente",
|
|
88
|
+
values: {
|
|
89
|
+
v1: ["v11", "v22"],
|
|
90
|
+
v2: ["c2a", "c2b"],
|
|
91
|
+
v3: ["v3x", "v3y"],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
widget: "checkbox",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
name: "New Group 1",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
label: "test_checkboxes",
|
|
102
|
+
},
|
|
103
|
+
last_change_at: "2021-12-28T09:35:25.624552Z",
|
|
104
|
+
last_change_by: 29,
|
|
105
|
+
last_change_user: {
|
|
106
|
+
email: "user@domain.tld",
|
|
107
|
+
external_id: "",
|
|
108
|
+
full_name: "Full Name",
|
|
109
|
+
id: 29,
|
|
110
|
+
user_name: "user@domain.tld",
|
|
111
|
+
},
|
|
112
|
+
completeness: 50,
|
|
113
|
+
in_progress: false,
|
|
114
|
+
link_count: 0,
|
|
115
|
+
rule_count: 11,
|
|
116
|
+
concept_count: 4,
|
|
117
|
+
},
|
|
118
|
+
};
|