@kineticdata/react 6.0.0 → 6.0.1

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.
Files changed (56) hide show
  1. package/lib/apis/http.js +33 -1
  2. package/lib/apis/http.test.js +100 -0
  3. package/lib/apis/system/index.js +141 -10
  4. package/lib/apis/task/index.js +15 -1
  5. package/lib/components/agent/bridge/BridgeTable.js +4 -1
  6. package/lib/components/agent/filestore/FilestoreTable.js +4 -1
  7. package/lib/components/agent/handler/AgentHandlerTable.js +5 -2
  8. package/lib/components/common/ToastContainer.js +170 -0
  9. package/lib/components/common/defaults/Toast.js +26 -0
  10. package/lib/components/common/defaults/index.js +13 -0
  11. package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +7 -3
  12. package/lib/components/core/bridge_model/BridgeModelTable.js +5 -2
  13. package/lib/components/core/category/CategoryTable.js +13 -6
  14. package/lib/components/core/field_definition/FieldDefinitionTable.js +11 -5
  15. package/lib/components/core/form/FormTable.js +22 -11
  16. package/lib/components/core/form_type/FormTypeTable.js +3 -1
  17. package/lib/components/core/index_definition/IndexDefinitionTable.js +12 -5
  18. package/lib/components/core/kapp/KappTable.js +17 -32
  19. package/lib/components/core/log/LogTable.js +8 -2
  20. package/lib/components/core/security_definition/SecurityDefinitionTable.js +9 -4
  21. package/lib/components/core/submission/FormSubmissionTable.js +37 -19
  22. package/lib/components/core/submission/KappSubmissionTable.js +37 -19
  23. package/lib/components/core/team/TeamForm.js +1 -1
  24. package/lib/components/core/team/TeamTable.js +11 -5
  25. package/lib/components/core/user/UserTable.js +23 -5
  26. package/lib/components/core/webapi/WebApiForm.js +49 -30
  27. package/lib/components/core/webapi/WebApiTable.js +14 -7
  28. package/lib/components/core/webhook/WebhookTable.js +19 -9
  29. package/lib/components/core/webhook_job/WebhookJobTable.js +39 -19
  30. package/lib/components/form/Form.helpers.js +81 -19
  31. package/lib/components/form/Form.models.js +1 -0
  32. package/lib/components/index.js +53 -0
  33. package/lib/components/system/SystemCassandraForm.js +98 -0
  34. package/lib/components/system/SystemElasticSearchForm.js +98 -0
  35. package/lib/components/system/SystemFilestoreForm.js +10 -5
  36. package/lib/components/system/SystemIngressForm.js +77 -29
  37. package/lib/components/system/SystemTaskAdapterForm.js +29 -5
  38. package/lib/components/system/SystemTrustedCertificateForm.js +40 -0
  39. package/lib/components/system/SystemTrustedCertificatesTable.js +74 -0
  40. package/lib/components/system/helpers.js +226 -45
  41. package/lib/components/system/spaces/SystemTenantForm.js +75 -34
  42. package/lib/components/table/Table.js +88 -7
  43. package/lib/components/table/Table.redux.js +68 -47
  44. package/lib/components/table/Table.test.js +39 -0
  45. package/lib/components/table/defaults/ColumnControl.js +26 -0
  46. package/lib/components/table/defaults/index.js +3 -1
  47. package/lib/components/task/errors/RunErrorTable.js +33 -14
  48. package/lib/components/task/handlers/HandlerTable.js +23 -11
  49. package/lib/components/task/runs/RunTable.js +22 -9
  50. package/lib/components/task/sources/SourceTable.js +15 -7
  51. package/lib/components/task/triggers/TriggerTable.js +50 -23
  52. package/lib/components/task/workflows/LinkedWorkflowTable.js +32 -16
  53. package/lib/components/task/workflows/WorkflowTable.js +30 -15
  54. package/lib/index.js +4 -3
  55. package/package.json +17 -4
  56. package/proxyhelper.js +17 -11
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.DefaultCommonConfig = void 0;
8
+ var _immutable = require("immutable");
9
+ var _Toast = _interopRequireDefault(require("./Toast"));
10
+ var DefaultCommonConfig = (0, _immutable.Map)({
11
+ Toast: _Toast["default"]
12
+ });
13
+ exports.DefaultCommonConfig = DefaultCommonConfig;
@@ -42,15 +42,19 @@ var filters = function filters() {
42
42
  var columns = [{
43
43
  value: 'name',
44
44
  title: 'Name',
45
- sortable: false
45
+ sortable: false,
46
+ toggleable: false,
47
+ columnOrder: 'first'
46
48
  }, {
47
49
  value: 'description',
48
50
  title: 'Description',
49
- sortable: false
51
+ sortable: false,
52
+ toggleable: true
50
53
  }, {
51
54
  value: 'allowsMultiple',
52
55
  title: 'Allows Multiple',
53
- sortable: false
56
+ sortable: false,
57
+ toggleable: true
54
58
  }];
55
59
  var AttributeDefinitionTable = (0, _Table.generateTable)({
56
60
  tableOptions: ['kappSlug', 'attributeType'],
@@ -48,11 +48,14 @@ var filters = function filters() {
48
48
  var columns = [{
49
49
  value: 'name',
50
50
  title: 'Model Name',
51
- sortable: true
51
+ sortable: true,
52
+ toggleable: false,
53
+ columnOrder: 'first'
52
54
  }, {
53
55
  value: 'status',
54
56
  title: 'Status',
55
- sortable: true
57
+ sortable: true,
58
+ toggleable: true
56
59
  }];
57
60
  var BridgeModelTable = (0, _Table.generateTable)({
58
61
  columns: columns,
@@ -44,27 +44,34 @@ var filters = function filters() {
44
44
  var columns = [{
45
45
  value: 'name',
46
46
  title: 'Name',
47
- sortable: true
47
+ sortable: true,
48
+ toggleable: false,
49
+ columnOrder: 'first'
48
50
  }, {
49
51
  value: 'slug',
50
52
  title: 'Slug',
51
- sortable: true
53
+ sortable: true,
54
+ toggleable: true
52
55
  }, {
53
56
  value: 'createdAt',
54
57
  title: 'Created',
55
- sortable: true
58
+ sortable: true,
59
+ toggleable: true
56
60
  }, {
57
61
  value: 'createdBy',
58
62
  title: 'Created By',
59
- sortable: true
63
+ sortable: true,
64
+ toggleable: true
60
65
  }, {
61
66
  value: 'updatedAt',
62
67
  title: 'Updated',
63
- sortable: true
68
+ sortable: true,
69
+ toggleable: true
64
70
  }, {
65
71
  value: 'updatedBy',
66
72
  title: 'Updated By',
67
- sortable: true
73
+ sortable: true,
74
+ toggleable: true
68
75
  }];
69
76
  var CategoryTable = (0, _Table.generateTable)({
70
77
  tableOptions: ['kappSlug'],
@@ -67,19 +67,25 @@ var filters = function filters() {
67
67
  };
68
68
  var columns = [{
69
69
  value: 'name',
70
- title: 'Name'
70
+ title: 'Name',
71
+ toggleable: false,
72
+ columnOrder: 'first'
71
73
  }, {
72
74
  value: 'renderType',
73
- title: 'Render Type'
75
+ title: 'Render Type',
76
+ toggleable: true
74
77
  }, {
75
78
  value: 'dataType',
76
- title: 'Data Type'
79
+ title: 'Data Type',
80
+ toggleable: true
77
81
  }, {
78
82
  value: 'updatedAt',
79
- title: 'Updated At'
83
+ title: 'Updated At',
84
+ toggleable: true
80
85
  }, {
81
86
  value: 'updatedBy',
82
- title: 'Updated By'
87
+ title: 'Updated By',
88
+ toggleable: true
83
89
  }];
84
90
  var FieldDefinitionTable = (0, _Table.generateTable)({
85
91
  tableOptions: ['kappSlug'],
@@ -102,42 +102,53 @@ var dataSource = function dataSource(_ref5) {
102
102
  var columns = [{
103
103
  value: 'name',
104
104
  title: 'Name',
105
- sortable: true
105
+ sortable: true,
106
+ toggleable: false,
107
+ columnOrder: 'first'
106
108
  }, {
107
109
  value: 'slug',
108
110
  title: 'Slug',
109
- sortable: true
111
+ sortable: true,
112
+ toggleable: true
110
113
  }, {
111
114
  value: 'createdAt',
112
115
  title: 'Created',
113
- sortable: true
116
+ sortable: true,
117
+ toggleable: true
114
118
  }, {
115
119
  value: 'createdBy',
116
- title: 'Created By'
120
+ title: 'Created By',
121
+ toggleable: true
117
122
  }, {
118
123
  value: 'updatedAt',
119
- title: 'Updated At',
120
- sortable: true
124
+ title: 'Updated',
125
+ sortable: true,
126
+ toggleable: true
121
127
  }, {
122
128
  value: 'updatedBy',
123
129
  title: 'Updated By',
124
- sortable: true
130
+ sortable: true,
131
+ toggleable: true
125
132
  }, {
126
133
  value: 'notes',
127
- title: 'Notes'
134
+ title: 'Notes',
135
+ toggleable: true
128
136
  }, {
129
137
  value: 'status',
130
138
  title: 'Status',
131
- sortable: true
139
+ sortable: true,
140
+ toggleable: true
132
141
  }, {
133
142
  value: 'type',
134
143
  title: 'Type',
135
144
  sortable: true,
136
145
  filter: 'startsWith',
137
- type: 'text'
146
+ type: 'text',
147
+ toggleable: true
138
148
  }, {
139
149
  value: 'submissionLabelExpression',
140
- title: 'Submission Label'
150
+ title: 'Submission Label',
151
+ toggleable: true
141
152
  }];
142
153
  var FormTable = (0, _Table.generateTable)({
143
154
  tableOptions: ['kappSlug', 'manage', 'surveyList'],
@@ -37,7 +37,9 @@ var filters = function filters() {
37
37
  var columns = [{
38
38
  value: 'name',
39
39
  title: 'Form Type',
40
- sortable: false
40
+ sortable: false,
41
+ toggleable: false,
42
+ columnOrder: 'first'
41
43
  }];
42
44
  var FormTypeTable = (0, _Table.generateTable)({
43
45
  tableOptions: ['kappSlug'],
@@ -38,25 +38,32 @@ var dataSource = function dataSource(_ref) {
38
38
  };
39
39
  var columns = [{
40
40
  value: 'name',
41
- title: 'Name'
41
+ title: 'Name',
42
+ toggleable: false,
43
+ columnOrder: 'first'
42
44
  }, {
43
45
  value: 'status',
44
- title: 'Status'
46
+ title: 'Status',
47
+ toggleable: true
45
48
  }, {
46
49
  value: 'unique',
47
50
  title: 'Unique',
51
+ toggleable: true,
48
52
  components: {
49
53
  BodyCell: BooleanYesNoCell
50
54
  }
51
55
  }, {
52
56
  value: 'parts',
53
- title: 'Parts'
57
+ title: 'Parts',
58
+ toggleable: true
54
59
  }, {
55
60
  value: 'unpopulatedForms',
56
- title: 'Unpopulated Forms'
61
+ title: 'Unpopulated Forms',
62
+ toggleable: true
57
63
  }, {
58
64
  value: 'detatchedForms',
59
- title: 'Detatched Forms'
65
+ title: 'Detatched Forms',
66
+ toggleable: true
60
67
  }];
61
68
  var IndexDefinitionTable = (0, _Table.generateTable)({
62
69
  tableOptions: ['kappSlug', 'formSlug'],
@@ -45,55 +45,40 @@ var filters = function filters() {
45
45
  var columns = [{
46
46
  value: 'name',
47
47
  title: 'Name',
48
- sortable: true
48
+ sortable: true,
49
+ toggleable: false,
50
+ columnOrder: 'first'
49
51
  }, {
50
52
  value: 'slug',
51
53
  title: 'Slug',
52
- sortable: true
54
+ sortable: true,
55
+ toggleable: true
53
56
  }, {
54
57
  value: 'CreatedAt',
55
58
  title: 'Created',
56
- sortable: true
59
+ sortable: true,
60
+ toggleable: true
57
61
  }, {
58
62
  value: 'createdBy',
59
- title: 'Created By'
63
+ title: 'Created By',
64
+ toggleable: true
60
65
  }, {
61
66
  value: 'updatedAt',
62
67
  title: 'Updated',
63
- sortable: true
68
+ sortable: true,
69
+ toggleable: true
64
70
  }, {
65
71
  value: 'updatedBy',
66
- title: 'Updated By'
67
- }, {
68
- value: 'resetPasswordPage',
69
- title: 'Reset Password Page'
72
+ title: 'Updated By',
73
+ toggleable: true
70
74
  }, {
71
75
  value: 'afterLogoutPath',
72
- title: 'After Logout Path'
73
- }, {
74
- value: 'bundlePath',
75
- title: 'Bundle Path'
76
- }, {
77
- value: 'defaultFormConfirmationPage',
78
- title: 'Form Confirmation Page'
79
- }, {
80
- value: 'defaultFormDisplayPage',
81
- title: 'Form Display Page'
76
+ title: 'After Logout Path',
77
+ toggleable: true
82
78
  }, {
83
79
  value: 'defaultSubmissionLabelExpression',
84
- title: 'Default Submission Label'
85
- }, {
86
- value: 'displayType',
87
- title: 'Display Type'
88
- }, {
89
- value: 'displayValue',
90
- title: 'Display Value'
91
- }, {
92
- value: 'loginPage',
93
- title: 'Login Page'
94
- }, {
95
- value: 'resetPasswordPage',
96
- title: 'Reset Password Page'
80
+ title: 'Default Submission Label',
81
+ toggleable: true
97
82
  }];
98
83
  var KappTable = (0, _Table.generateTable)({
99
84
  columns: columns,
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.generateLogQuery = exports.LogTable = void 0;
8
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
8
9
  var _Table = require("../../table/Table");
9
10
  var _apis = require("../../../apis");
10
11
  var _moment = _interopRequireDefault(require("moment"));
@@ -155,7 +156,8 @@ var filters = function filters() {
155
156
  var columns = [{
156
157
  value: 'timestamp',
157
158
  title: 'Timestamp',
158
- sortable: false
159
+ sortable: false,
160
+ toggleable: false
159
161
  }, {
160
162
  value: 'message',
161
163
  title: 'Message',
@@ -256,7 +258,11 @@ var columns = [{
256
258
  value: 'k8s.pod',
257
259
  title: 'Pod',
258
260
  sortable: false
259
- }];
261
+ }].map(function (column) {
262
+ return (0, _objectSpread2["default"])({
263
+ toggleable: true
264
+ }, column);
265
+ });
260
266
  var LogTable = (0, _Table.generateTable)({
261
267
  columns: columns,
262
268
  dataSource: dataSource,
@@ -57,19 +57,24 @@ var filters = function filters(_ref2) {
57
57
  var columns = [{
58
58
  value: 'message',
59
59
  title: 'Message',
60
- sortable: false
60
+ sortable: false,
61
+ toggleable: true
61
62
  }, {
62
63
  value: 'name',
63
64
  title: 'Name',
64
- sortable: true
65
+ sortable: true,
66
+ toggleable: false,
67
+ columnOrder: 'first'
65
68
  }, {
66
69
  value: 'rule',
67
70
  title: 'Rule',
68
- sortable: false
71
+ sortable: false,
72
+ toggleable: true
69
73
  }, {
70
74
  value: 'type',
71
75
  title: 'Type',
72
- sortable: true
76
+ sortable: true,
77
+ toggleable: true
73
78
  }];
74
79
  var SecurityDefinitionTable = (0, _Table.generateTable)({
75
80
  tableOptions: ['kappSlug'],
@@ -43,72 +43,90 @@ var dataSource = function dataSource(_ref) {
43
43
  };
44
44
  var columns = [{
45
45
  value: 'closedAt',
46
- title: 'Closed At',
47
- sortable: true
46
+ title: 'Closed',
47
+ sortable: true,
48
+ toggleable: true
48
49
  }, {
49
50
  value: 'closedBy',
50
- title: 'closedBy',
51
- sortable: false
51
+ title: 'Closed By',
52
+ sortable: false,
53
+ toggleable: true
52
54
  }, {
53
55
  value: 'coreState',
54
56
  title: 'Core State',
55
- sortable: false
57
+ sortable: false,
58
+ toggleable: true
56
59
  }, {
57
60
  value: 'createdAt',
58
61
  title: 'Created',
59
- sortable: true
62
+ sortable: true,
63
+ toggleable: true
60
64
  }, {
61
65
  value: 'createdBy',
62
66
  title: 'Created By',
63
- sortable: false
67
+ sortable: false,
68
+ toggleable: true
64
69
  }, {
65
70
  value: 'currentPage',
66
71
  title: 'Current Page',
67
- sortable: false
72
+ sortable: false,
73
+ toggleable: true
68
74
  }, {
69
75
  value: 'handle',
70
76
  title: 'Handle',
71
- sortable: false
77
+ sortable: false,
78
+ toggleable: false,
79
+ columnOrder: 'first'
72
80
  }, {
73
81
  value: 'id',
74
82
  title: 'Id',
75
- sortable: false
83
+ sortable: false,
84
+ toggleable: true
76
85
  }, {
77
86
  value: 'label',
78
87
  title: 'Label',
79
- sortable: false
88
+ sortable: false,
89
+ toggleable: true
80
90
  }, {
81
91
  value: 'origin',
82
92
  title: 'Origin',
83
- sortable: false
93
+ sortable: false,
94
+ toggleable: true
84
95
  }, {
85
96
  value: 'parent',
86
97
  title: 'Parent',
87
- sortable: false
98
+ sortable: false,
99
+ toggleable: true
88
100
  }, {
89
101
  value: 'sessionToken',
90
102
  title: 'Session Token',
91
- sortable: false
103
+ sortable: false,
104
+ toggleable: true
92
105
  }, {
93
106
  value: 'submittedAt',
94
107
  title: 'Submitted At',
95
- sortable: true
108
+ sortable: true,
109
+ toggleable: true
96
110
  }, {
97
111
  value: 'submittedBy',
98
112
  title: 'Submitted By',
99
- sortable: false
113
+ sortable: false,
114
+ toggleable: true
100
115
  }, {
101
116
  value: 'type',
102
117
  title: 'Type',
103
- sortable: false
118
+ sortable: false,
119
+ toggleable: true
104
120
  }, {
105
121
  value: 'updatedAt',
106
122
  title: 'Updated',
107
- sortable: false
123
+ sortable: false,
124
+ toggleable: true
108
125
  }, {
109
126
  value: 'updatedBy',
110
127
  title: 'Updated By',
111
- sortable: false
128
+ sortable: false,
129
+ toggleable: true
112
130
  }];
113
131
  var FormSubmissionTable = (0, _Table.generateTable)({
114
132
  tableOptions: ['kappSlug', 'formSlug', 'include', 'count'],
@@ -170,72 +170,90 @@ var filters = function filters(_ref6) {
170
170
  };
171
171
  var columns = [{
172
172
  value: 'closedAt',
173
- title: 'Closed At',
174
- sortable: true
173
+ title: 'Closed',
174
+ sortable: true,
175
+ toggleable: true
175
176
  }, {
176
177
  value: 'closedBy',
177
- title: 'closedBy',
178
- sortable: false
178
+ title: 'Closed By',
179
+ sortable: false,
180
+ toggleable: true
179
181
  }, {
180
182
  value: 'coreState',
181
183
  title: 'Core State',
182
- sortable: false
184
+ sortable: false,
185
+ toggleable: true
183
186
  }, {
184
187
  value: 'createdAt',
185
188
  title: 'Created',
186
- sortable: true
189
+ sortable: true,
190
+ toggleable: true
187
191
  }, {
188
192
  value: 'createdBy',
189
193
  title: 'Created By',
190
- sortable: false
194
+ sortable: false,
195
+ toggleable: true
191
196
  }, {
192
197
  value: 'currentPage',
193
198
  title: 'Current Page',
194
- sortable: false
199
+ sortable: false,
200
+ toggleable: true
195
201
  }, {
196
202
  value: 'handle',
197
203
  title: 'Handle',
198
- sortable: false
204
+ sortable: false,
205
+ toggleable: false,
206
+ columnOrder: 'first'
199
207
  }, {
200
208
  value: 'id',
201
209
  title: 'Id',
202
- sortable: false
210
+ sortable: false,
211
+ toggleable: true
203
212
  }, {
204
213
  value: 'label',
205
214
  title: 'Label',
206
- sortable: false
215
+ sortable: false,
216
+ toggleable: true
207
217
  }, {
208
218
  value: 'origin',
209
219
  title: 'Origin',
210
- sortable: false
220
+ sortable: false,
221
+ toggleable: true
211
222
  }, {
212
223
  value: 'parent',
213
224
  title: 'Parent',
214
- sortable: false
225
+ sortable: false,
226
+ toggleable: true
215
227
  }, {
216
228
  value: 'sessionToken',
217
229
  title: 'Session Token',
218
- sortable: false
230
+ sortable: false,
231
+ toggleable: true
219
232
  }, {
220
233
  value: 'submittedAt',
221
234
  title: 'Submitted At',
222
- sortable: true
235
+ sortable: true,
236
+ toggleable: true
223
237
  }, {
224
238
  value: 'submittedBy',
225
239
  title: 'Submitted By',
226
- sortable: false
240
+ sortable: false,
241
+ toggleable: true
227
242
  }, {
228
243
  value: 'type',
229
244
  title: 'Type',
230
- sortable: false
245
+ sortable: false,
246
+ toggleable: true
231
247
  }, {
232
248
  value: 'updatedAt',
233
249
  title: 'Updated',
234
- sortable: true
250
+ sortable: true,
251
+ toggleable: true
235
252
  }, {
236
253
  value: 'updatedBy',
237
254
  title: 'Updated By',
238
- sortable: false
255
+ sortable: false,
256
+ toggleable: true
239
257
  }];
240
258
  var KappSubmissionTable = (0, _Table.generateTable)({
241
259
  tableOptions: ['kappSlug', 'formSlug', 'datastore', 'include'],
@@ -9,7 +9,7 @@ var _apis = require("../../../apis");
9
9
  var _helpers = require("../../../helpers");
10
10
  var _immutable = require("immutable");
11
11
  var _Form2 = require("../../form/Form.helpers");
12
- var TEAM_INCLUDES = 'attributesMap,authorization,memberships.user';
12
+ var TEAM_INCLUDES = 'details,attributesMap,authorization,memberships.user';
13
13
  var dataSources = function dataSources(_ref) {
14
14
  var teamSlug = _ref.teamSlug;
15
15
  return {
@@ -40,23 +40,29 @@ var filters = function filters() {
40
40
  var columns = [{
41
41
  value: 'name',
42
42
  title: 'Name',
43
- sortable: true
43
+ sortable: true,
44
+ toggleable: false,
45
+ columnOrder: 'first'
44
46
  }, {
45
47
  value: 'updatedAt',
46
48
  title: 'Updated',
47
- sortable: true
49
+ sortable: true,
50
+ toggleable: true
48
51
  }, {
49
52
  value: 'createdAt',
50
53
  title: 'Created',
51
- sortable: true
54
+ sortable: true,
55
+ toggleable: true
52
56
  }, {
53
57
  value: 'description',
54
58
  title: 'Description',
55
- sortable: true
59
+ sortable: true,
60
+ toggleable: true
56
61
  }, {
57
62
  value: 'slug',
58
63
  title: 'Slug',
59
- sortable: true
64
+ sortable: true,
65
+ toggleable: true
60
66
  }];
61
67
  var TeamTable = (0, _Table.generateTable)({
62
68
  columns: columns,