@truedat/df 4.36.2 → 4.36.6
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/df",
|
|
3
|
-
"version": "4.36.
|
|
3
|
+
"version": "4.36.6",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@truedat/auth": "4.36.
|
|
84
|
-
"@truedat/core": "4.36.
|
|
83
|
+
"@truedat/auth": "4.36.6",
|
|
84
|
+
"@truedat/core": "4.36.6",
|
|
85
85
|
"axios": "^0.19.2",
|
|
86
86
|
"path-to-regexp": "^1.7.0",
|
|
87
87
|
"prop-types": "^15.7.2",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"react-dom": ">= 16.8.6 < 17",
|
|
101
101
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "24162cf652f85f30de8669736abc28391fd5f6a8"
|
|
104
104
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
|
|
3
|
-
export const getCardinalityOptions = formatMessage => widget => {
|
|
3
|
+
export const getCardinalityOptions = (formatMessage) => (widget) => {
|
|
4
4
|
const cardinalities = _.flow([
|
|
5
5
|
_.find({ value: widget }),
|
|
6
|
-
_.prop("cardinalities")
|
|
6
|
+
_.prop("cardinalities"),
|
|
7
7
|
])(WIDGETS);
|
|
8
|
-
return _.map(cardinality => ({
|
|
8
|
+
return _.map((cardinality) => ({
|
|
9
9
|
key: cardinality,
|
|
10
10
|
value: cardinality,
|
|
11
|
-
text: formatMessage({ id: `template.field.cardinality.${cardinality}` })
|
|
11
|
+
text: formatMessage({ id: `template.field.cardinality.${cardinality}` }),
|
|
12
12
|
}))(cardinalities);
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export const getTypeOptions = formatMessage => widget => {
|
|
15
|
+
export const getTypeOptions = (formatMessage) => (widget) => {
|
|
16
16
|
const types = _.flow([_.find({ value: widget }), _.prop("types")])(WIDGETS);
|
|
17
|
-
return _.map(type => ({
|
|
17
|
+
return _.map((type) => ({
|
|
18
18
|
key: type,
|
|
19
19
|
value: type,
|
|
20
|
-
text: formatMessage({ id: `template.field.type.${type}` })
|
|
20
|
+
text: formatMessage({ id: `template.field.type.${type}` }),
|
|
21
21
|
}))(types);
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export const getWidgetOptions = () => {
|
|
25
|
-
return _.map(widget => ({
|
|
25
|
+
return _.map((widget) => ({
|
|
26
26
|
key: widget.type,
|
|
27
27
|
value: widget.value,
|
|
28
28
|
text: widget.text,
|
|
29
|
-
icon: widget.icon
|
|
29
|
+
icon: widget.icon,
|
|
30
30
|
}))(WIDGETS);
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -37,7 +37,7 @@ export const WIDGETS = [
|
|
|
37
37
|
text: "Identifier",
|
|
38
38
|
icon: "hashtag",
|
|
39
39
|
cardinalities: ["0"],
|
|
40
|
-
types: ["string"]
|
|
40
|
+
types: ["string"],
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
key: "string",
|
|
@@ -45,7 +45,7 @@ export const WIDGETS = [
|
|
|
45
45
|
text: "Text Input",
|
|
46
46
|
icon: "minus",
|
|
47
47
|
cardinalities: ["?", "1", "*", "+"],
|
|
48
|
-
types: ["string"]
|
|
48
|
+
types: ["string"],
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
key: "textarea",
|
|
@@ -53,7 +53,7 @@ export const WIDGETS = [
|
|
|
53
53
|
text: "Textarea",
|
|
54
54
|
icon: "align justify",
|
|
55
55
|
cardinalities: ["?", "1"],
|
|
56
|
-
types: ["string"]
|
|
56
|
+
types: ["string"],
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
key: "dropdown",
|
|
@@ -61,7 +61,7 @@ export const WIDGETS = [
|
|
|
61
61
|
text: "Dropdown",
|
|
62
62
|
icon: "arrow down",
|
|
63
63
|
cardinalities: ["?", "1", "*", "+"],
|
|
64
|
-
types: ["string", "system", "domain", "user"]
|
|
64
|
+
types: ["string", "system", "domain", "user"],
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
key: "radio",
|
|
@@ -69,7 +69,7 @@ export const WIDGETS = [
|
|
|
69
69
|
text: "Radio",
|
|
70
70
|
icon: "radio",
|
|
71
71
|
cardinalities: ["?", "1"],
|
|
72
|
-
types: ["string", "user"]
|
|
72
|
+
types: ["string", "user"],
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
key: "checkbox",
|
|
@@ -77,7 +77,7 @@ export const WIDGETS = [
|
|
|
77
77
|
text: "Checkbox",
|
|
78
78
|
icon: "check square outline",
|
|
79
79
|
cardinalities: ["*", "+"],
|
|
80
|
-
types: ["string", "user"]
|
|
80
|
+
types: ["string", "user"],
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
key: "pair_list",
|
|
@@ -85,7 +85,7 @@ export const WIDGETS = [
|
|
|
85
85
|
text: "Links",
|
|
86
86
|
icon: "linkify",
|
|
87
87
|
cardinalities: ["*", "+"],
|
|
88
|
-
types: ["url"]
|
|
88
|
+
types: ["url"],
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: "color_picker",
|
|
@@ -93,7 +93,7 @@ export const WIDGETS = [
|
|
|
93
93
|
text: "Colorpicker",
|
|
94
94
|
icon: "tint",
|
|
95
95
|
cardinalities: ["?", "1"],
|
|
96
|
-
types: ["string"]
|
|
96
|
+
types: ["string"],
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
key: "enriched_text",
|
|
@@ -101,7 +101,7 @@ export const WIDGETS = [
|
|
|
101
101
|
text: "Enrichedtext",
|
|
102
102
|
icon: "text cursor",
|
|
103
103
|
cardinalities: ["?", "1"],
|
|
104
|
-
types: ["enriched_text"]
|
|
104
|
+
types: ["enriched_text"],
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
key: "table",
|
|
@@ -109,7 +109,7 @@ export const WIDGETS = [
|
|
|
109
109
|
text: "Table",
|
|
110
110
|
icon: "table",
|
|
111
111
|
cardinalities: ["*"],
|
|
112
|
-
types: ["table"]
|
|
112
|
+
types: ["table"],
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
key: "password",
|
|
@@ -117,7 +117,7 @@ export const WIDGETS = [
|
|
|
117
117
|
text: "Password",
|
|
118
118
|
icon: "asterisk",
|
|
119
119
|
cardinalities: ["?", "1"],
|
|
120
|
-
types: ["string"]
|
|
120
|
+
types: ["string"],
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
key: "image",
|
|
@@ -125,7 +125,7 @@ export const WIDGETS = [
|
|
|
125
125
|
text: "Image",
|
|
126
126
|
icon: "image",
|
|
127
127
|
cardinalities: ["?", "1"],
|
|
128
|
-
types: ["image"]
|
|
128
|
+
types: ["image"],
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
key: "number",
|
|
@@ -133,7 +133,7 @@ export const WIDGETS = [
|
|
|
133
133
|
text: "Number",
|
|
134
134
|
icon: "hashtag",
|
|
135
135
|
cardinalities: ["?", "1"],
|
|
136
|
-
types: ["integer", "float"]
|
|
136
|
+
types: ["integer", "float"],
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
key: "date",
|
|
@@ -141,7 +141,7 @@ export const WIDGETS = [
|
|
|
141
141
|
text: "Date",
|
|
142
142
|
icon: "calendar",
|
|
143
143
|
cardinalities: ["?", "1"],
|
|
144
|
-
types: ["date"]
|
|
144
|
+
types: ["date"],
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
key: "datetime",
|
|
@@ -149,7 +149,7 @@ export const WIDGETS = [
|
|
|
149
149
|
text: "Date Time",
|
|
150
150
|
icon: "calendar",
|
|
151
151
|
cardinalities: ["?", "1"],
|
|
152
|
-
types: ["datetime"]
|
|
152
|
+
types: ["datetime"],
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
key: "copy",
|
|
@@ -157,6 +157,6 @@ export const WIDGETS = [
|
|
|
157
157
|
text: "File Structure",
|
|
158
158
|
icon: "file alternate outline",
|
|
159
159
|
cardinalities: ["?", "1"],
|
|
160
|
-
types: ["copy"]
|
|
161
|
-
}
|
|
160
|
+
types: ["copy"],
|
|
161
|
+
},
|
|
162
162
|
];
|