@truedat/df 4.36.5 → 4.36.9

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.5",
3
+ "version": "4.36.9",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -43,7 +43,7 @@
43
43
  "jest": "^27.0.6",
44
44
  "react": "^16.14.0",
45
45
  "react-dom": "^16.14.0",
46
- "redux-saga-test-plan": "^4.0.1",
46
+ "redux-saga-test-plan": "^4.0.4",
47
47
  "rimraf": "^3.0.2",
48
48
  "semantic-ui-react": "^2.0.3"
49
49
  },
@@ -80,8 +80,8 @@
80
80
  ]
81
81
  },
82
82
  "dependencies": {
83
- "@truedat/auth": "4.36.5",
84
- "@truedat/core": "4.36.5",
83
+ "@truedat/auth": "4.36.9",
84
+ "@truedat/core": "4.36.9",
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": "dec36033435443b730ea93fa482ef1ca7dbf28a6"
103
+ "gitHead": "4b56a9ae46e2454719a2ae31022bc0d700a65dd3"
104
104
  }
@@ -10,42 +10,40 @@ export const TemplateFormActions = ({
10
10
  templateSaving,
11
11
  templateDeleting,
12
12
  onDelete,
13
- onSave
13
+ onSave,
14
14
  }) => (
15
- <>
16
- <div className="actions">
17
- {id && (
18
- <ConfirmModal
19
- icon="trash"
20
- trigger={
21
- <Button
22
- negative
23
- content={<FormattedMessage id="actions.delete" />}
24
- loading={templateDeleting}
25
- disabled={templateSaving || templateDeleting}
26
- />
27
- }
28
- header={
29
- <FormattedMessage id="template.actions.delete.confirmation.header" />
30
- }
31
- content={
32
- <FormattedMessage
33
- id="template.actions.delete.confirmation.content"
34
- values={{ name: <i>{name}</i> }}
35
- />
36
- }
37
- handleSubmit={onDelete}
38
- />
39
- )}
40
- <Button
41
- primary
42
- content={<FormattedMessage id="actions.save" />}
43
- onClick={onSave}
44
- loading={templateSaving}
45
- disabled={templateSaving || templateDeleting}
15
+ <div className="actions">
16
+ {id && (
17
+ <ConfirmModal
18
+ icon="trash"
19
+ trigger={
20
+ <Button
21
+ negative
22
+ content={<FormattedMessage id="actions.delete" />}
23
+ loading={templateDeleting}
24
+ disabled={templateSaving || templateDeleting}
25
+ />
26
+ }
27
+ header={
28
+ <FormattedMessage id="template.actions.delete.confirmation.header" />
29
+ }
30
+ content={
31
+ <FormattedMessage
32
+ id="template.actions.delete.confirmation.content"
33
+ values={{ name: <i>{name}</i> }}
34
+ />
35
+ }
36
+ onConfirm={onDelete}
46
37
  />
47
- </div>
48
- </>
38
+ )}
39
+ <Button
40
+ primary
41
+ content={<FormattedMessage id="actions.save" />}
42
+ onClick={onSave}
43
+ loading={templateSaving}
44
+ disabled={templateSaving || templateDeleting}
45
+ />
46
+ </div>
49
47
  );
50
48
 
51
49
  TemplateFormActions.propTypes = {
@@ -53,12 +51,12 @@ TemplateFormActions.propTypes = {
53
51
  templateDeleting: PropTypes.bool.isRequired,
54
52
  templateSaving: PropTypes.bool.isRequired,
55
53
  onDelete: PropTypes.func.isRequired,
56
- onSave: PropTypes.func.isRequired
54
+ onSave: PropTypes.func.isRequired,
57
55
  };
58
56
 
59
57
  const mapStateToProps = ({ templateDeleting, templateSaving }) => ({
60
58
  templateDeleting,
61
- templateSaving
59
+ templateSaving,
62
60
  });
63
61
 
64
62
  export default connect(mapStateToProps)(TemplateFormActions);
@@ -1,166 +1,160 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<TemplateFormActions /> matches the latest snapshot (deleting) 1`] = `
4
- <Fragment>
5
- <div
6
- className="actions"
7
- >
8
- <ConfirmModal
9
- content={
10
- <Memo(MemoizedFormattedMessage)
11
- id="template.actions.delete.confirmation.content"
12
- values={
13
- Object {
14
- "name": <i>
15
- Name
16
- </i>,
17
- }
4
+ <div
5
+ className="actions"
6
+ >
7
+ <ConfirmModal
8
+ content={
9
+ <Memo(MemoizedFormattedMessage)
10
+ id="template.actions.delete.confirmation.content"
11
+ values={
12
+ Object {
13
+ "name": <i>
14
+ Name
15
+ </i>,
18
16
  }
19
- />
20
- }
21
- handleSubmit={[MockFunction]}
22
- header={
23
- <Memo(MemoizedFormattedMessage)
24
- id="template.actions.delete.confirmation.header"
25
- />
26
- }
27
- icon="trash"
28
- trigger={
29
- <Button
30
- as="button"
31
- content={
32
- <Memo(MemoizedFormattedMessage)
33
- id="actions.delete"
34
- />
35
- }
36
- disabled={true}
37
- loading={true}
38
- negative={true}
39
- />
40
- }
41
- />
42
- <Button
43
- as="button"
44
- content={
45
- <Memo(MemoizedFormattedMessage)
46
- id="actions.save"
47
- />
48
- }
49
- disabled={true}
50
- loading={false}
51
- onClick={[MockFunction]}
52
- primary={true}
53
- />
54
- </div>
55
- </Fragment>
17
+ }
18
+ />
19
+ }
20
+ header={
21
+ <Memo(MemoizedFormattedMessage)
22
+ id="template.actions.delete.confirmation.header"
23
+ />
24
+ }
25
+ icon="trash"
26
+ onConfirm={[MockFunction]}
27
+ trigger={
28
+ <Button
29
+ as="button"
30
+ content={
31
+ <Memo(MemoizedFormattedMessage)
32
+ id="actions.delete"
33
+ />
34
+ }
35
+ disabled={true}
36
+ loading={true}
37
+ negative={true}
38
+ />
39
+ }
40
+ />
41
+ <Button
42
+ as="button"
43
+ content={
44
+ <Memo(MemoizedFormattedMessage)
45
+ id="actions.save"
46
+ />
47
+ }
48
+ disabled={true}
49
+ loading={false}
50
+ onClick={[MockFunction]}
51
+ primary={true}
52
+ />
53
+ </div>
56
54
  `;
57
55
 
58
56
  exports[`<TemplateFormActions /> matches the latest snapshot (saving) 1`] = `
59
- <Fragment>
60
- <div
61
- className="actions"
62
- >
63
- <ConfirmModal
64
- content={
65
- <Memo(MemoizedFormattedMessage)
66
- id="template.actions.delete.confirmation.content"
67
- values={
68
- Object {
69
- "name": <i>
70
- Name
71
- </i>,
72
- }
73
- }
74
- />
75
- }
76
- handleSubmit={[MockFunction]}
77
- header={
78
- <Memo(MemoizedFormattedMessage)
79
- id="template.actions.delete.confirmation.header"
80
- />
81
- }
82
- icon="trash"
83
- trigger={
84
- <Button
85
- as="button"
86
- content={
87
- <Memo(MemoizedFormattedMessage)
88
- id="actions.delete"
89
- />
57
+ <div
58
+ className="actions"
59
+ >
60
+ <ConfirmModal
61
+ content={
62
+ <Memo(MemoizedFormattedMessage)
63
+ id="template.actions.delete.confirmation.content"
64
+ values={
65
+ Object {
66
+ "name": <i>
67
+ Name
68
+ </i>,
90
69
  }
91
- disabled={true}
92
- loading={false}
93
- negative={true}
94
- />
95
- }
96
- />
97
- <Button
98
- as="button"
99
- content={
100
- <Memo(MemoizedFormattedMessage)
101
- id="actions.save"
102
- />
103
- }
104
- disabled={true}
105
- loading={true}
106
- onClick={[MockFunction]}
107
- primary={true}
108
- />
109
- </div>
110
- </Fragment>
70
+ }
71
+ />
72
+ }
73
+ header={
74
+ <Memo(MemoizedFormattedMessage)
75
+ id="template.actions.delete.confirmation.header"
76
+ />
77
+ }
78
+ icon="trash"
79
+ onConfirm={[MockFunction]}
80
+ trigger={
81
+ <Button
82
+ as="button"
83
+ content={
84
+ <Memo(MemoizedFormattedMessage)
85
+ id="actions.delete"
86
+ />
87
+ }
88
+ disabled={true}
89
+ loading={false}
90
+ negative={true}
91
+ />
92
+ }
93
+ />
94
+ <Button
95
+ as="button"
96
+ content={
97
+ <Memo(MemoizedFormattedMessage)
98
+ id="actions.save"
99
+ />
100
+ }
101
+ disabled={true}
102
+ loading={true}
103
+ onClick={[MockFunction]}
104
+ primary={true}
105
+ />
106
+ </div>
111
107
  `;
112
108
 
113
109
  exports[`<TemplateFormActions /> matches the latest snapshot 1`] = `
114
- <Fragment>
115
- <div
116
- className="actions"
117
- >
118
- <ConfirmModal
119
- content={
120
- <Memo(MemoizedFormattedMessage)
121
- id="template.actions.delete.confirmation.content"
122
- values={
123
- Object {
124
- "name": <i>
125
- Name
126
- </i>,
127
- }
128
- }
129
- />
130
- }
131
- handleSubmit={[MockFunction]}
132
- header={
133
- <Memo(MemoizedFormattedMessage)
134
- id="template.actions.delete.confirmation.header"
135
- />
136
- }
137
- icon="trash"
138
- trigger={
139
- <Button
140
- as="button"
141
- content={
142
- <Memo(MemoizedFormattedMessage)
143
- id="actions.delete"
144
- />
110
+ <div
111
+ className="actions"
112
+ >
113
+ <ConfirmModal
114
+ content={
115
+ <Memo(MemoizedFormattedMessage)
116
+ id="template.actions.delete.confirmation.content"
117
+ values={
118
+ Object {
119
+ "name": <i>
120
+ Name
121
+ </i>,
145
122
  }
146
- disabled={false}
147
- loading={false}
148
- negative={true}
149
- />
150
- }
151
- />
152
- <Button
153
- as="button"
154
- content={
155
- <Memo(MemoizedFormattedMessage)
156
- id="actions.save"
157
- />
158
- }
159
- disabled={false}
160
- loading={false}
161
- onClick={[MockFunction]}
162
- primary={true}
163
- />
164
- </div>
165
- </Fragment>
123
+ }
124
+ />
125
+ }
126
+ header={
127
+ <Memo(MemoizedFormattedMessage)
128
+ id="template.actions.delete.confirmation.header"
129
+ />
130
+ }
131
+ icon="trash"
132
+ onConfirm={[MockFunction]}
133
+ trigger={
134
+ <Button
135
+ as="button"
136
+ content={
137
+ <Memo(MemoizedFormattedMessage)
138
+ id="actions.delete"
139
+ />
140
+ }
141
+ disabled={false}
142
+ loading={false}
143
+ negative={true}
144
+ />
145
+ }
146
+ />
147
+ <Button
148
+ as="button"
149
+ content={
150
+ <Memo(MemoizedFormattedMessage)
151
+ id="actions.save"
152
+ />
153
+ }
154
+ disabled={false}
155
+ loading={false}
156
+ onClick={[MockFunction]}
157
+ primary={true}
158
+ />
159
+ </div>
166
160
  `;