@truedat/dd 7.0.5 → 7.0.7

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/dd",
3
- "version": "7.0.5",
3
+ "version": "7.0.7",
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.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "7.0.5",
37
+ "@truedat/test": "7.0.7",
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.7.1",
91
- "@truedat/auth": "7.0.5",
92
- "@truedat/core": "7.0.5",
93
- "@truedat/df": "7.0.5",
91
+ "@truedat/auth": "7.0.7",
92
+ "@truedat/core": "7.0.7",
93
+ "@truedat/df": "7.0.7",
94
94
  "lodash": "^4.17.21",
95
95
  "moment": "^2.29.4",
96
96
  "path-to-regexp": "^1.7.0",
@@ -115,5 +115,5 @@
115
115
  "react-dom": ">= 16.8.6 < 17",
116
116
  "semantic-ui-react": ">= 2.0.3 < 2.2"
117
117
  },
118
- "gitHead": "d76d7852ddb993ed53f0266ec17858119e731bbf"
118
+ "gitHead": "f780d02b3356b69c61023b14b61400ffb779e33d"
119
119
  }
@@ -90,6 +90,7 @@ export const LineageForm = ({
90
90
  e && e.preventDefault();
91
91
  e && e.stopPropagation();
92
92
  if (_.isEmpty(value)) {
93
+ setDomainId(null);
93
94
  clearNodes();
94
95
  } else {
95
96
  setDomainId(value);
@@ -132,6 +133,7 @@ export const LineageForm = ({
132
133
  labels
133
134
  onChange={handleDomainChange}
134
135
  onLoad={handleDomainsLoaded}
136
+ value={domainId}
135
137
  />
136
138
  {_.map.convert({ cap: false })((options, level) => (
137
139
  <Form.Dropdown
@@ -1,6 +1,11 @@
1
1
  import React from "react";
2
2
  import ResourceMembers from "@truedat/core/components/ResourceMembers";
3
+ import { useParams } from "react-router-dom";
3
4
 
4
- export const StructureRoles = () => <ResourceMembers type="structure" />;
5
+ export const StructureRoles = () => {
6
+ const { id: urlId } = useParams();
7
+ const id = !isNaN(parseInt(urlId)) ? parseInt(urlId) : undefined;
8
+ return <ResourceMembers type="structure" id={id} />;
9
+ };
5
10
 
6
11
  export default StructureRoles;
@@ -26,7 +26,7 @@ exports[`<GrantApprovalRuleEdit /> matches the last snapshot 1`] = `
26
26
  </div>
27
27
  </div>
28
28
  <div
29
- class="required field fix-dropdown-selector"
29
+ class="required field fix-dropdown-selector "
30
30
  >
31
31
  <label>
32
32
  Domain
@@ -57,7 +57,7 @@ exports[`<GrantApprovalRuleEdit /> matches the last snapshot 1`] = `
57
57
  class="menu transition"
58
58
  >
59
59
  <div
60
- class="ui left icon input search"
60
+ class="ui fluid left icon input search "
61
61
  >
62
62
  <input
63
63
  type="text"
@@ -80,7 +80,7 @@ exports[`<GrantApprovalRuleEdit /> matches the last snapshot 1`] = `
80
80
  >
81
81
  <i
82
82
  aria-hidden="true"
83
- class="plus icon"
83
+ class="chevron circle down icon"
84
84
  />
85
85
  <span
86
86
  style="opacity: 1;"
@@ -99,7 +99,7 @@ exports[`<GrantApprovalRuleEdit /> matches the last snapshot 1`] = `
99
99
  >
100
100
  <i
101
101
  aria-hidden="true"
102
- class="icon"
102
+ class="circle icon"
103
103
  />
104
104
  <span
105
105
  style="opacity: 1;"
@@ -118,7 +118,7 @@ exports[`<GrantApprovalRuleEdit /> matches the last snapshot 1`] = `
118
118
  >
119
119
  <i
120
120
  aria-hidden="true"
121
- class="icon"
121
+ class="circle icon"
122
122
  />
123
123
  <span
124
124
  style="opacity: 1;"
@@ -690,7 +690,7 @@ exports[`<GrantApprovalRuleForm /> matches the last snapshot for new rule 1`] =
690
690
  </div>
691
691
  </div>
692
692
  <div
693
- class="required field fix-dropdown-selector"
693
+ class="required field fix-dropdown-selector "
694
694
  >
695
695
  <label>
696
696
  Domain
@@ -715,7 +715,7 @@ exports[`<GrantApprovalRuleForm /> matches the last snapshot for new rule 1`] =
715
715
  class="menu transition"
716
716
  >
717
717
  <div
718
- class="ui left icon input search"
718
+ class="ui fluid left icon input search "
719
719
  >
720
720
  <input
721
721
  type="text"
@@ -738,7 +738,7 @@ exports[`<GrantApprovalRuleForm /> matches the last snapshot for new rule 1`] =
738
738
  >
739
739
  <i
740
740
  aria-hidden="true"
741
- class="plus icon"
741
+ class="chevron circle down icon"
742
742
  />
743
743
  <span
744
744
  style="opacity: 1;"
@@ -757,7 +757,7 @@ exports[`<GrantApprovalRuleForm /> matches the last snapshot for new rule 1`] =
757
757
  >
758
758
  <i
759
759
  aria-hidden="true"
760
- class="icon"
760
+ class="circle icon"
761
761
  />
762
762
  <span
763
763
  style="opacity: 1;"
@@ -776,7 +776,7 @@ exports[`<GrantApprovalRuleForm /> matches the last snapshot for new rule 1`] =
776
776
  >
777
777
  <i
778
778
  aria-hidden="true"
779
- class="icon"
779
+ class="circle icon"
780
780
  />
781
781
  <span
782
782
  style="opacity: 1;"
@@ -26,7 +26,7 @@ exports[`<GrantApprovalRuleNew /> matches the last snapshot 1`] = `
26
26
  </div>
27
27
  </div>
28
28
  <div
29
- class="required field fix-dropdown-selector"
29
+ class="required field fix-dropdown-selector "
30
30
  >
31
31
  <label>
32
32
  Domain
@@ -51,7 +51,7 @@ exports[`<GrantApprovalRuleNew /> matches the last snapshot 1`] = `
51
51
  class="menu transition"
52
52
  >
53
53
  <div
54
- class="ui left icon input search"
54
+ class="ui fluid left icon input search "
55
55
  >
56
56
  <input
57
57
  type="text"
@@ -74,7 +74,7 @@ exports[`<GrantApprovalRuleNew /> matches the last snapshot 1`] = `
74
74
  >
75
75
  <i
76
76
  aria-hidden="true"
77
- class="plus icon"
77
+ class="chevron circle down icon"
78
78
  />
79
79
  <span
80
80
  style="opacity: 1;"
@@ -93,7 +93,7 @@ exports[`<GrantApprovalRuleNew /> matches the last snapshot 1`] = `
93
93
  >
94
94
  <i
95
95
  aria-hidden="true"
96
- class="icon"
96
+ class="circle icon"
97
97
  />
98
98
  <span
99
99
  style="opacity: 1;"
@@ -112,7 +112,7 @@ exports[`<GrantApprovalRuleNew /> matches the last snapshot 1`] = `
112
112
  >
113
113
  <i
114
114
  aria-hidden="true"
115
- class="icon"
115
+ class="circle icon"
116
116
  />
117
117
  <span
118
118
  style="opacity: 1;"
@@ -130,7 +130,7 @@ exports[`<ReferenceDataset /> edit dataset view matches the latest snapshot 1`]
130
130
  class="ui form"
131
131
  >
132
132
  <div
133
- class="field fix-dropdown-selector"
133
+ class="field fix-dropdown-selector "
134
134
  >
135
135
  <label>
136
136
  Domain
@@ -160,7 +160,7 @@ exports[`<ReferenceDataset /> edit dataset view matches the latest snapshot 1`]
160
160
  class="menu transition"
161
161
  >
162
162
  <div
163
- class="ui left icon input search"
163
+ class="ui fluid left icon input search "
164
164
  >
165
165
  <input
166
166
  type="text"
@@ -183,7 +183,7 @@ exports[`<ReferenceDataset /> edit dataset view matches the latest snapshot 1`]
183
183
  >
184
184
  <i
185
185
  aria-hidden="true"
186
- class="plus icon"
186
+ class="chevron circle down icon"
187
187
  />
188
188
  <span
189
189
  style="opacity: 1;"
@@ -202,7 +202,7 @@ exports[`<ReferenceDataset /> edit dataset view matches the latest snapshot 1`]
202
202
  >
203
203
  <i
204
204
  aria-hidden="true"
205
- class="icon"
205
+ class="circle icon"
206
206
  />
207
207
  <span
208
208
  style="opacity: 1;"
@@ -221,7 +221,7 @@ exports[`<ReferenceDataset /> edit dataset view matches the latest snapshot 1`]
221
221
  >
222
222
  <i
223
223
  aria-hidden="true"
224
- class="icon"
224
+ class="circle icon"
225
225
  />
226
226
  <span
227
227
  style="opacity: 1;"
@@ -41,7 +41,7 @@ exports[`<ReferenceDatasetCreate /> matches the latest snapshot 1`] = `
41
41
  class="ui form"
42
42
  >
43
43
  <div
44
- class="field fix-dropdown-selector"
44
+ class="field fix-dropdown-selector "
45
45
  >
46
46
  <label>
47
47
  Domain
@@ -65,7 +65,7 @@ exports[`<ReferenceDatasetCreate /> matches the latest snapshot 1`] = `
65
65
  class="menu transition"
66
66
  >
67
67
  <div
68
- class="ui left icon input search"
68
+ class="ui fluid left icon input search "
69
69
  >
70
70
  <input
71
71
  type="text"
@@ -88,7 +88,7 @@ exports[`<ReferenceDatasetCreate /> matches the latest snapshot 1`] = `
88
88
  >
89
89
  <i
90
90
  aria-hidden="true"
91
- class="plus icon"
91
+ class="chevron circle down icon"
92
92
  />
93
93
  <span
94
94
  style="opacity: 1;"
@@ -107,7 +107,7 @@ exports[`<ReferenceDatasetCreate /> matches the latest snapshot 1`] = `
107
107
  >
108
108
  <i
109
109
  aria-hidden="true"
110
- class="icon"
110
+ class="circle icon"
111
111
  />
112
112
  <span
113
113
  style="opacity: 1;"
@@ -126,7 +126,7 @@ exports[`<ReferenceDatasetCreate /> matches the latest snapshot 1`] = `
126
126
  >
127
127
  <i
128
128
  aria-hidden="true"
129
- class="icon"
129
+ class="circle icon"
130
130
  />
131
131
  <span
132
132
  style="opacity: 1;"
@@ -6,7 +6,7 @@ exports[`<ReferenceDatasetDetail /> matches the latest snapshot (edit route) 1`]
6
6
  class="ui form"
7
7
  >
8
8
  <div
9
- class="field fix-dropdown-selector"
9
+ class="field fix-dropdown-selector "
10
10
  >
11
11
  <label>
12
12
  Domain
@@ -36,7 +36,7 @@ exports[`<ReferenceDatasetDetail /> matches the latest snapshot (edit route) 1`]
36
36
  class="menu transition"
37
37
  >
38
38
  <div
39
- class="ui left icon input search"
39
+ class="ui fluid left icon input search "
40
40
  >
41
41
  <input
42
42
  type="text"
@@ -59,7 +59,7 @@ exports[`<ReferenceDatasetDetail /> matches the latest snapshot (edit route) 1`]
59
59
  >
60
60
  <i
61
61
  aria-hidden="true"
62
- class="plus icon"
62
+ class="chevron circle down icon"
63
63
  />
64
64
  <span
65
65
  style="opacity: 1;"
@@ -78,7 +78,7 @@ exports[`<ReferenceDatasetDetail /> matches the latest snapshot (edit route) 1`]
78
78
  >
79
79
  <i
80
80
  aria-hidden="true"
81
- class="icon"
81
+ class="circle icon"
82
82
  />
83
83
  <span
84
84
  style="opacity: 1;"
@@ -97,7 +97,7 @@ exports[`<ReferenceDatasetDetail /> matches the latest snapshot (edit route) 1`]
97
97
  >
98
98
  <i
99
99
  aria-hidden="true"
100
- class="icon"
100
+ class="circle icon"
101
101
  />
102
102
  <span
103
103
  style="opacity: 1;"
@@ -6,7 +6,7 @@ exports[`<ReferenceDatasetForm /> matches the latest snapshot 1`] = `
6
6
  class="ui form"
7
7
  >
8
8
  <div
9
- class="field fix-dropdown-selector"
9
+ class="field fix-dropdown-selector "
10
10
  >
11
11
  <label>
12
12
  Domain
@@ -36,7 +36,7 @@ exports[`<ReferenceDatasetForm /> matches the latest snapshot 1`] = `
36
36
  class="menu transition"
37
37
  >
38
38
  <div
39
- class="ui left icon input search"
39
+ class="ui fluid left icon input search "
40
40
  >
41
41
  <input
42
42
  type="text"
@@ -59,7 +59,7 @@ exports[`<ReferenceDatasetForm /> matches the latest snapshot 1`] = `
59
59
  >
60
60
  <i
61
61
  aria-hidden="true"
62
- class="plus icon"
62
+ class="chevron circle down icon"
63
63
  />
64
64
  <span
65
65
  style="opacity: 1;"
@@ -78,7 +78,7 @@ exports[`<ReferenceDatasetForm /> matches the latest snapshot 1`] = `
78
78
  >
79
79
  <i
80
80
  aria-hidden="true"
81
- class="icon"
81
+ class="circle icon"
82
82
  />
83
83
  <span
84
84
  style="opacity: 1;"
@@ -97,7 +97,7 @@ exports[`<ReferenceDatasetForm /> matches the latest snapshot 1`] = `
97
97
  >
98
98
  <i
99
99
  aria-hidden="true"
100
- class="icon"
100
+ class="circle icon"
101
101
  />
102
102
  <span
103
103
  style="opacity: 1;"
@@ -41,7 +41,7 @@ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (create route) 1
41
41
  class="ui form"
42
42
  >
43
43
  <div
44
- class="field fix-dropdown-selector"
44
+ class="field fix-dropdown-selector "
45
45
  >
46
46
  <label>
47
47
  Domain
@@ -65,7 +65,7 @@ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (create route) 1
65
65
  class="menu transition"
66
66
  >
67
67
  <div
68
- class="ui left icon input search"
68
+ class="ui fluid left icon input search "
69
69
  >
70
70
  <input
71
71
  type="text"
@@ -88,7 +88,7 @@ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (create route) 1
88
88
  >
89
89
  <i
90
90
  aria-hidden="true"
91
- class="plus icon"
91
+ class="chevron circle down icon"
92
92
  />
93
93
  <span
94
94
  style="opacity: 1;"
@@ -107,7 +107,7 @@ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (create route) 1
107
107
  >
108
108
  <i
109
109
  aria-hidden="true"
110
- class="icon"
110
+ class="circle icon"
111
111
  />
112
112
  <span
113
113
  style="opacity: 1;"
@@ -126,7 +126,7 @@ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (create route) 1
126
126
  >
127
127
  <i
128
128
  aria-hidden="true"
129
- class="icon"
129
+ class="circle icon"
130
130
  />
131
131
  <span
132
132
  style="opacity: 1;"
package/src/routines.js CHANGED
@@ -81,7 +81,6 @@ export const downloadReferenceDataset = createRoutine(
81
81
  );
82
82
  export const downloadStructures = createRoutine("DOWNLOAD_STRUCTURES");
83
83
  export const excludeNode = createRoutine("EXCLUDE_NODE");
84
- export const fetchDomains = createRoutine("FETCH_DOMAINS");
85
84
  export const fetchGrant = createRoutine("FETCH_GRANT");
86
85
  export const fetchGrantFilters = createRoutine("FETCH_GRANT_FILTERS");
87
86
  export const fetchGrantRequest = createRoutine("FETCH_GRANT_REQUEST");