@kineticdata/react 6.0.0 → 6.0.2

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 (256) hide show
  1. package/lib/apis/agent/adapters.js +2 -3
  2. package/lib/apis/agent/bridges.js +7 -13
  3. package/lib/apis/agent/handlers.js +7 -13
  4. package/lib/apis/core/activity.js +2 -3
  5. package/lib/apis/core/attributeDefinitions.js +6 -11
  6. package/lib/apis/core/attributeDefinitions.test.js +201 -213
  7. package/lib/apis/core/authentication.js +74 -84
  8. package/lib/apis/core/backgroundJobs.js +5 -9
  9. package/lib/apis/core/bridgeModelAttributeMappings.js +5 -10
  10. package/lib/apis/core/bridgeModelAttributes.js +6 -11
  11. package/lib/apis/core/bridgeModelMappings.js +5 -10
  12. package/lib/apis/core/bridgeModelQualificationMappings.js +5 -10
  13. package/lib/apis/core/bridgeModelQualifications.js +5 -10
  14. package/lib/apis/core/bridgeModels.js +7 -13
  15. package/lib/apis/core/bridgeModels.test.js +313 -333
  16. package/lib/apis/core/bridgedresources.js +7 -13
  17. package/lib/apis/core/categories.js +6 -11
  18. package/lib/apis/core/fileResources.js +5 -10
  19. package/lib/apis/core/filestores.js +5 -10
  20. package/lib/apis/core/formTypes.js +6 -11
  21. package/lib/apis/core/forms.js +6 -11
  22. package/lib/apis/core/forms.test.js +201 -213
  23. package/lib/apis/core/kapps.js +6 -11
  24. package/lib/apis/core/kapps.test.js +122 -130
  25. package/lib/apis/core/logs.js +3 -5
  26. package/lib/apis/core/memberships.js +3 -5
  27. package/lib/apis/core/meta.js +6 -11
  28. package/lib/apis/core/notices.js +2 -3
  29. package/lib/apis/core/oauthClients.js +6 -11
  30. package/lib/apis/core/platformComponents.js +10 -19
  31. package/lib/apis/core/platformItems.js +2 -3
  32. package/lib/apis/core/profile.js +3 -5
  33. package/lib/apis/core/securityPolicyDefinitions.js +6 -11
  34. package/lib/apis/core/securityPolicyDefinitions.test.js +254 -268
  35. package/lib/apis/core/space.js +3 -5
  36. package/lib/apis/core/space.test.js +106 -114
  37. package/lib/apis/core/submissions.js +17 -33
  38. package/lib/apis/core/teams.js +6 -11
  39. package/lib/apis/core/translations.js +18 -35
  40. package/lib/apis/core/translations.test.js +1343 -1437
  41. package/lib/apis/core/users.js +6 -11
  42. package/lib/apis/core/version.js +2 -3
  43. package/lib/apis/core/webApis.js +5 -10
  44. package/lib/apis/core/webhooks.js +6 -11
  45. package/lib/apis/core/webhooks.test.js +243 -257
  46. package/lib/apis/core/webhooksJobs.js +3 -5
  47. package/lib/apis/core/workflows.js +7 -13
  48. package/lib/apis/http.js +47 -30
  49. package/lib/apis/http.test.js +100 -0
  50. package/lib/apis/system/index.js +167 -81
  51. package/lib/apis/task/index.js +73 -118
  52. package/lib/components/agent/bridge/BridgeForm.js +1 -2
  53. package/lib/components/agent/bridge/BridgeTable.js +5 -3
  54. package/lib/components/agent/filestore/FilestoreForm.js +1 -2
  55. package/lib/components/agent/filestore/FilestoreTable.js +5 -3
  56. package/lib/components/agent/handler/AgentHandlerForm.js +1 -2
  57. package/lib/components/agent/handler/AgentHandlerTable.js +6 -4
  58. package/lib/components/common/AttributeSelect.js +2 -3
  59. package/lib/components/common/BridgeSelect.js +16 -17
  60. package/lib/components/common/ComponentConfigContext.js +1 -2
  61. package/lib/components/common/ContentEditable.js +23 -3
  62. package/lib/components/common/FormSelect.js +16 -17
  63. package/lib/components/common/NodeSelect.js +2 -3
  64. package/lib/components/common/Scroller.js +2 -3
  65. package/lib/components/common/StaticSelect.js +14 -15
  66. package/lib/components/common/TableInput.js +276 -63
  67. package/lib/components/common/TeamSelect.js +16 -17
  68. package/lib/components/common/ToastContainer.js +165 -0
  69. package/lib/components/common/Typeahead.js +15 -2
  70. package/lib/components/common/UserSelect.js +16 -17
  71. package/lib/components/common/authentication/AuthInterceptor.js +2 -3
  72. package/lib/components/common/authentication/AuthInterceptor.test.js +141 -153
  73. package/lib/components/common/authentication/AuthenticationContainer.js +332 -343
  74. package/lib/components/common/authentication/RequestInterceptor.js +2 -10
  75. package/lib/components/common/code_input/CodeInput.js +4 -9
  76. package/lib/components/common/code_input/draftHelpers.js +20 -37
  77. package/lib/components/common/code_input/languageHelpers.js +6 -12
  78. package/lib/components/common/code_input/languageHelpers.test.js +10 -8
  79. package/lib/components/common/defaults/Toast.js +25 -0
  80. package/lib/components/common/defaults/index.js +12 -0
  81. package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +1 -2
  82. package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +8 -5
  83. package/lib/components/core/bridge_model/BridgeModelForm.js +52 -55
  84. package/lib/components/core/bridge_model/BridgeModelTable.js +6 -4
  85. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +1 -2
  86. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +1 -2
  87. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +1 -2
  88. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +1 -2
  89. package/lib/components/core/category/CategoryForm.js +1 -2
  90. package/lib/components/core/category/CategoryTable.js +14 -8
  91. package/lib/components/core/core_form/CoreForm.js +11 -22
  92. package/lib/components/core/core_form/defaults/index.js +11 -19
  93. package/lib/components/core/core_form/globals.js +3 -5
  94. package/lib/components/core/field_definition/FieldDefinitionForm.js +1 -2
  95. package/lib/components/core/field_definition/FieldDefinitionTable.js +13 -9
  96. package/lib/components/core/file_resource/FileResourceForm.js +1 -2
  97. package/lib/components/core/file_resource/FileResourceTable.js +1 -2
  98. package/lib/components/core/form/FormForm.js +1 -2
  99. package/lib/components/core/form/FormTable.js +23 -13
  100. package/lib/components/core/form_type/FormTypeForm.js +1 -2
  101. package/lib/components/core/form_type/FormTypeTable.js +4 -3
  102. package/lib/components/core/i18n/I18n.js +2 -4
  103. package/lib/components/core/i18n/I18nContext.js +1 -2
  104. package/lib/components/core/i18n/I18nProvider.js +2 -3
  105. package/lib/components/core/i18n/Moment.js +10 -9
  106. package/lib/components/core/index_definition/IndexDefinitionForm.js +1 -2
  107. package/lib/components/core/index_definition/IndexDefinitionTable.js +13 -7
  108. package/lib/components/core/index_job/IndexJobTable.js +1 -2
  109. package/lib/components/core/kapp/KappForm.js +1 -2
  110. package/lib/components/core/kapp/KappTable.js +18 -34
  111. package/lib/components/core/log/LogTable.js +10 -6
  112. package/lib/components/core/oauth_client/OAuthClientForm.js +1 -2
  113. package/lib/components/core/oauth_client/OAuthClientTable.js +1 -2
  114. package/lib/components/core/platform_component/AgentComponentForm.js +1 -2
  115. package/lib/components/core/platform_component/AgentComponentTable.js +1 -2
  116. package/lib/components/core/platform_component/TaskComponentForm.js +1 -2
  117. package/lib/components/core/profile/ProfileForm.js +1 -2
  118. package/lib/components/core/security_definition/SecurityDefinitionForm.js +3 -6
  119. package/lib/components/core/security_definition/SecurityDefinitionTable.js +10 -6
  120. package/lib/components/core/space/SpaceForm.js +1 -2
  121. package/lib/components/core/submission/DatastoreSubmissionFilters.js +3 -5
  122. package/lib/components/core/submission/DatastoreSubmissionTable.js +2 -4
  123. package/lib/components/core/submission/FormSubmissionFilters.js +4 -7
  124. package/lib/components/core/submission/FormSubmissionTable.js +39 -23
  125. package/lib/components/core/submission/KappSubmissionTable.js +39 -23
  126. package/lib/components/core/submission/SubmissionForm.js +1 -2
  127. package/lib/components/core/submission/SubmissionTable.js +2 -3
  128. package/lib/components/core/submission/helpers.js +4 -7
  129. package/lib/components/core/team/TeamForm.js +2 -3
  130. package/lib/components/core/team/TeamTable.js +12 -7
  131. package/lib/components/core/translation/ContextForm.js +1 -2
  132. package/lib/components/core/translation/ContextTable.js +1 -2
  133. package/lib/components/core/translation/EntryForm.js +1 -2
  134. package/lib/components/core/translation/EntryTable.js +1 -2
  135. package/lib/components/core/translation/LocaleForm.js +1 -2
  136. package/lib/components/core/translation/LocaleTable.js +1 -2
  137. package/lib/components/core/user/UserForm.js +1 -2
  138. package/lib/components/core/user/UserTable.js +24 -7
  139. package/lib/components/core/webapi/WebApiForm.js +138 -123
  140. package/lib/components/core/webapi/WebApiTable.js +15 -9
  141. package/lib/components/core/webhook/WebhookForm.js +1 -2
  142. package/lib/components/core/webhook/WebhookTable.js +20 -11
  143. package/lib/components/core/webhook_job/WebhookJobTable.js +40 -21
  144. package/lib/components/form/Form.helpers.js +91 -38
  145. package/lib/components/form/Form.js +312 -355
  146. package/lib/components/form/Form.models.js +7 -11
  147. package/lib/components/form/FormState.js +1 -2
  148. package/lib/components/form/KitchenSinkForm.js +23 -3
  149. package/lib/components/form/SimpleForm.helpers.js +262 -0
  150. package/lib/components/form/SimpleForm.js +462 -0
  151. package/lib/components/form/SimpleForm.models.js +62 -0
  152. package/lib/components/form/defaults/AttributesField.js +3 -4
  153. package/lib/components/form/defaults/CheckboxField.js +2 -3
  154. package/lib/components/form/defaults/CodeField.js +2 -3
  155. package/lib/components/form/defaults/FormButtons.js +2 -3
  156. package/lib/components/form/defaults/FormError.js +2 -3
  157. package/lib/components/form/defaults/FormField.js +2 -3
  158. package/lib/components/form/defaults/FormLayout.js +2 -3
  159. package/lib/components/form/defaults/FormMultiField.js +2 -3
  160. package/lib/components/form/defaults/PasswordField.js +2 -3
  161. package/lib/components/form/defaults/RadioField.js +2 -3
  162. package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +2 -3
  163. package/lib/components/form/defaults/SelectField.js +2 -3
  164. package/lib/components/form/defaults/SelectMultiField.js +2 -3
  165. package/lib/components/form/defaults/TableField.js +2 -3
  166. package/lib/components/form/defaults/TeamField.js +2 -3
  167. package/lib/components/form/defaults/TeamMultiField.js +2 -3
  168. package/lib/components/form/defaults/TextField.js +2 -3
  169. package/lib/components/form/defaults/TextMultiField.js +2 -3
  170. package/lib/components/form/defaults/UserField.js +2 -3
  171. package/lib/components/form/defaults/UserMultiField.js +2 -3
  172. package/lib/components/form/defaults/index.js +2 -3
  173. package/lib/components/form/tests/Form.test.js +3865 -4257
  174. package/lib/components/form/tests/components.js +2 -3
  175. package/lib/components/index.js +60 -0
  176. package/lib/components/system/SystemBackgroundTasksTable.js +1 -2
  177. package/lib/components/system/SystemCassandraForm.js +97 -0
  178. package/lib/components/system/SystemElasticSearchForm.js +97 -0
  179. package/lib/components/system/SystemFilestoreForm.js +12 -8
  180. package/lib/components/system/SystemForm.js +1 -2
  181. package/lib/components/system/SystemIngressForm.js +78 -31
  182. package/lib/components/system/SystemSecurityForm.js +1 -2
  183. package/lib/components/system/SystemSmtpForm.js +1 -2
  184. package/lib/components/system/SystemTaskAdapterForm.js +30 -7
  185. package/lib/components/system/SystemTrustedCertificateForm.js +39 -0
  186. package/lib/components/system/SystemTrustedCertificatesTable.js +73 -0
  187. package/lib/components/system/SystemUserForm.js +1 -2
  188. package/lib/components/system/helpers.js +236 -65
  189. package/lib/components/system/spaces/SystemSpaceForm.js +2 -3
  190. package/lib/components/system/spaces/SystemTenantForm.js +77 -37
  191. package/lib/components/system/spaces/SystemTenantTable.js +1 -2
  192. package/lib/components/table/Table.js +132 -54
  193. package/lib/components/table/Table.redux.js +229 -235
  194. package/lib/components/table/Table.test.js +154 -123
  195. package/lib/components/table/defaults/BodyCell.js +1 -2
  196. package/lib/components/table/defaults/BodyRow.js +1 -2
  197. package/lib/components/table/defaults/BooleanFilter.js +1 -2
  198. package/lib/components/table/defaults/ColumnControl.js +25 -0
  199. package/lib/components/table/defaults/EmptyBodyRow.js +1 -2
  200. package/lib/components/table/defaults/FilterLayout.js +1 -2
  201. package/lib/components/table/defaults/Footer.js +1 -2
  202. package/lib/components/table/defaults/FooterCell.js +1 -2
  203. package/lib/components/table/defaults/FooterRow.js +1 -2
  204. package/lib/components/table/defaults/Header.js +1 -2
  205. package/lib/components/table/defaults/HeaderCell.js +1 -2
  206. package/lib/components/table/defaults/HeaderRow.js +1 -2
  207. package/lib/components/table/defaults/PaginationControl.js +2 -4
  208. package/lib/components/table/defaults/TableBody.js +1 -2
  209. package/lib/components/table/defaults/TableLayout.js +1 -2
  210. package/lib/components/table/defaults/TextFilter.js +1 -2
  211. package/lib/components/table/defaults/index.js +5 -4
  212. package/lib/components/task/builder/Connector.js +26 -11
  213. package/lib/components/task/builder/ConnectorForm.js +1 -2
  214. package/lib/components/task/builder/Node.js +18 -9
  215. package/lib/components/task/builder/NodeForm.js +1 -2
  216. package/lib/components/task/builder/NodeParametersForm.js +1 -2
  217. package/lib/components/task/builder/SvgCanvas.js +2 -3
  218. package/lib/components/task/builder/SvgText.js +2 -3
  219. package/lib/components/task/builder/TaskDefinitionConfigForm.js +3 -6
  220. package/lib/components/task/builder/TreeBuilder.js +10 -4
  221. package/lib/components/task/builder/builder.redux.js +171 -182
  222. package/lib/components/task/builder/constants.js +38 -76
  223. package/lib/components/task/builder/helpers.js +23 -40
  224. package/lib/components/task/builder/models.js +19 -35
  225. package/lib/components/task/category/TaskCategoryForm.js +2 -3
  226. package/lib/components/task/category/TaskCategoryTable.js +1 -2
  227. package/lib/components/task/common/UsageTable.js +1 -2
  228. package/lib/components/task/engine/EngineSettingsForm.js +2 -3
  229. package/lib/components/task/errors/RunErrorTable.js +35 -17
  230. package/lib/components/task/errors/SystemErrorsTable.js +1 -2
  231. package/lib/components/task/handlers/HandlerForm.js +2 -3
  232. package/lib/components/task/handlers/HandlerTable.js +24 -13
  233. package/lib/components/task/handlers/MissingHandlerTable.js +1 -2
  234. package/lib/components/task/policy_rule/PolicyRuleForm.js +2 -3
  235. package/lib/components/task/policy_rule/PolicyRuleTable.js +1 -2
  236. package/lib/components/task/runs/CreateManualTriggerForm.js +1 -2
  237. package/lib/components/task/runs/RunTable.js +24 -12
  238. package/lib/components/task/runs/RunTaskTable.js +1 -2
  239. package/lib/components/task/sources/SourceForm.js +1 -2
  240. package/lib/components/task/sources/SourceTable.js +16 -9
  241. package/lib/components/task/triggers/TriggerTable.js +52 -26
  242. package/lib/components/task/workflows/LinkedWorkflowForm.js +3 -5
  243. package/lib/components/task/workflows/LinkedWorkflowTable.js +33 -18
  244. package/lib/components/task/workflows/MissingRoutineTable.js +1 -2
  245. package/lib/components/task/workflows/WorkflowForm.js +2 -3
  246. package/lib/components/task/workflows/WorkflowTable.js +31 -17
  247. package/lib/helpers/SearchBuilder.js +2 -4
  248. package/lib/helpers/index.js +13 -26
  249. package/lib/index.js +7 -9
  250. package/lib/reducer.js +3 -5
  251. package/lib/saga.js +32 -48
  252. package/lib/store.js +32 -42
  253. package/package.json +26 -16
  254. package/proxyhelper.js +17 -11
  255. package/lib/components/core/CoreFormModal.js +0 -64
  256. package/lib/components/core/CoreModal.js +0 -114
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.SystemTenantForm = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
11
+ var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
12
  var _immutable = require("immutable");
11
13
  var _Form = require("../../form/Form");
12
14
  var _apis = require("../../../apis");
@@ -33,12 +35,24 @@ var dataSources = function dataSources(_ref) {
33
35
  transform: function transform(result) {
34
36
  return result.adapter;
35
37
  }
38
+ },
39
+ fileFields: {
40
+ fn: function fn() {
41
+ return {
42
+ mssql: ['sslrootcert', 'sslcert'],
43
+ oracle: ['serverCert', 'clientCert'],
44
+ postgres: ['sslrootcert', 'sslcert', 'sslkey']
45
+ };
46
+ },
47
+ params: []
36
48
  }
37
49
  };
38
50
  };
39
51
  var handleSubmit = function handleSubmit(_ref2) {
40
52
  var slug = _ref2.slug;
41
- return function (values) {
53
+ return function (values, _ref3) {
54
+ var fileFields = _ref3.fileFields,
55
+ rawValues = _ref3.values;
42
56
  var authenticationSecret = values.get('authenticationSecret') ? {
43
57
  authenticationSecret: values.get('authenticationSecret')
44
58
  } : {};
@@ -48,49 +62,76 @@ var handleSubmit = function handleSubmit(_ref2) {
48
62
  replicas: parseInt(values.get('replicas'))
49
63
  }
50
64
  } : {};
51
- var tenant = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, authenticationSecret), {}, {
65
+ var type = values.get('task_databaseAdapter_type');
66
+ var fileFieldsForType = fileFields.get(type);
67
+ // Only include values for file fields if the toggle field is true
68
+ var filterFn = function filterFn(value, key) {
69
+ return !fileFieldsForType.includes(key) || !!rawValues.get("".concat(type, "_change_").concat(key));
70
+ };
71
+ // Get adapter properties to save
72
+ var properties = (0, _helpers2.adapterProperties)(values, type, filterFn);
73
+ // If creating new, pass in file values from default adapter if not uploaded
74
+ if (!slug) {
75
+ properties = fileFieldsForType.reduce(function (props, field) {
76
+ if (typeof props[field] === 'undefined' && !!rawValues.getIn(["".concat(type, "_current_").concat(field), 'pem'])) {
77
+ return (0, _objectSpread3["default"])((0, _objectSpread3["default"])({}, props), {}, (0, _defineProperty2["default"])({}, field, new File([rawValues.getIn(["".concat(type, "_current_").concat(field), 'pem'])], "".concat(field, ".crt"), {
78
+ type: 'text/plain'
79
+ })));
80
+ }
81
+ return props;
82
+ }, properties);
83
+ }
84
+ var tenant = (0, _objectSpread3["default"])((0, _objectSpread3["default"])({}, authenticationSecret), {}, {
52
85
  space: {
53
86
  slug: values.get('slug'),
54
87
  name: values.get('name')
55
88
  },
56
- task: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
89
+ task: (0, _objectSpread3["default"])((0, _objectSpread3["default"])({
57
90
  autoCreateDatabase: values.get('task_autoCreateDatabase') ? 'true' : 'false'
58
91
  }, deployment), {}, {
59
92
  databaseAdapter: {
60
- type: values.get('task_databaseAdapter_type'),
61
- properties: (0, _helpers2.adapterProperties)(values, values.get('task_databaseAdapter_type'))
93
+ type: type,
94
+ properties: properties
62
95
  }
63
96
  }),
64
97
  users: values.get('users')
65
98
  });
99
+ var multipart = Object.entries(tenant.task.databaseAdapter.properties).some(function (_ref4) {
100
+ var _ref5 = (0, _slicedToArray2["default"])(_ref4, 2),
101
+ name = _ref5[0],
102
+ value = _ref5[1];
103
+ return value instanceof File;
104
+ });
66
105
  return slug ? (0, _apis.updateTenant)({
67
106
  slug: slug,
68
- tenant: tenant
107
+ tenant: tenant,
108
+ multipart: multipart
69
109
  }).then((0, _Form2.handleFormErrors)('space', 'There was an error saving the Space.')) : (0, _apis.createTenant)({
70
- tenant: tenant
110
+ tenant: tenant,
111
+ multipart: multipart
71
112
  }).then((0, _Form2.handleFormErrors)(null, 'There was an error saving the Space.'));
72
113
  };
73
114
  };
74
115
  var getSpaceValue = function getSpaceValue(tenant, key) {
75
116
  return tenant ? (0, _immutable.getIn)(tenant, ['space', key], '') : '';
76
117
  };
77
- var fields = function fields(_ref3) {
78
- var slug = _ref3.slug;
79
- return function (_ref4) {
80
- var tenant = _ref4.tenant,
81
- defaultTaskDbAdapter = _ref4.defaultTaskDbAdapter;
118
+ var fields = function fields(_ref6) {
119
+ var slug = _ref6.slug;
120
+ return function (_ref7) {
121
+ var tenant = _ref7.tenant,
122
+ defaultTaskDbAdapter = _ref7.defaultTaskDbAdapter;
82
123
  return (tenant || !slug) && (defaultTaskDbAdapter || defaultTaskDbAdapter === null) && [
83
124
  // Top-level fields
84
125
  {
85
126
  name: 'authenticationSecret',
86
127
  label: 'Authentication Secret',
87
128
  type: 'password',
88
- visible: function visible(_ref5) {
89
- var values = _ref5.values;
129
+ visible: function visible(_ref8) {
130
+ var values = _ref8.values;
90
131
  return values.get('changeAuthenticationSecret');
91
132
  },
92
- "transient": function transient(_ref6) {
93
- var values = _ref6.values;
133
+ "transient": function transient(_ref9) {
134
+ var values = _ref9.values;
94
135
  return !values.get('changeAuthenticationSecret');
95
136
  },
96
137
  required: false
@@ -100,9 +141,9 @@ var fields = function fields(_ref3) {
100
141
  type: 'checkbox',
101
142
  "transient": true,
102
143
  initialValue: false,
103
- onChange: function onChange(_ref7, _ref8) {
104
- var values = _ref7.values;
105
- var setValue = _ref8.setValue;
144
+ onChange: function onChange(_ref10, _ref11) {
145
+ var values = _ref10.values;
146
+ var setValue = _ref11.setValue;
106
147
  if (values.get('authenticationSecret') !== '') {
107
148
  setValue('authenticationSecret', '');
108
149
  }
@@ -114,9 +155,9 @@ var fields = function fields(_ref3) {
114
155
  label: 'Name',
115
156
  type: 'text',
116
157
  required: true,
117
- onChange: function onChange(_ref9, _ref10) {
118
- var values = _ref9.values;
119
- var setValue = _ref10.setValue;
158
+ onChange: function onChange(_ref12, _ref13) {
159
+ var values = _ref12.values;
160
+ var setValue = _ref13.setValue;
120
161
  if (values.get('linked')) {
121
162
  setValue('slug', (0, _helpers.slugify)(values.get('name')), false);
122
163
  }
@@ -128,8 +169,8 @@ var fields = function fields(_ref3) {
128
169
  type: 'text',
129
170
  required: true,
130
171
  enabled: !slug,
131
- onChange: function onChange(_bindings, _ref11) {
132
- var setValue = _ref11.setValue;
172
+ onChange: function onChange(_bindings, _ref14) {
173
+ var setValue = _ref14.setValue;
133
174
  setValue('linked', false);
134
175
  },
135
176
  initialValue: getSpaceValue(tenant, 'slug')
@@ -149,7 +190,7 @@ var fields = function fields(_ref3) {
149
190
  label: 'Task Replica Count',
150
191
  type: 'text',
151
192
  required: !!slug,
152
- initialValue: (0, _immutable.getIn)(tenant, ['task', 'deployment', 'replicas'], 1)
193
+ initialValue: (0, _immutable.getIn)(tenant, ['task', 'deployment', 'specReplicas'], 1)
153
194
  // pattern: /^\d+$/,
154
195
  // patternMessage:
155
196
  // 'You must provide a number of replicas desired.',
@@ -170,12 +211,12 @@ var fields = function fields(_ref3) {
170
211
  name: 'task_autoCreateDatabase',
171
212
  label: 'Auto-Create Database',
172
213
  type: 'checkbox',
173
- visible: function visible(_ref12) {
174
- var values = _ref12.values;
214
+ visible: function visible(_ref15) {
215
+ var values = _ref15.values;
175
216
  return values.get('task_databaseAdapter_type') === 'postgres';
176
217
  },
177
- "transient": function transient(_ref13) {
178
- var values = _ref13.values;
218
+ "transient": function transient(_ref16) {
219
+ var values = _ref16.values;
179
220
  return values.get('task_databaseAdapter_type') !== 'postgres';
180
221
  },
181
222
  initialValue: slug ? (0, _immutable.get)(tenant, ['task', 'autoCreateDatabase'], true) : true
@@ -222,8 +263,8 @@ var fields = function fields(_ref3) {
222
263
  required: true,
223
264
  enabled: true,
224
265
  visible: true,
225
- constraint: function constraint(_ref14) {
226
- var values = _ref14.values;
266
+ constraint: function constraint(_ref17) {
267
+ var values = _ref17.values;
227
268
  return values.get('passwordConfirmation') === values.get('password');
228
269
  },
229
270
  constraintMessage: 'Password Confirmation does not match'
@@ -233,8 +274,8 @@ var fields = function fields(_ref3) {
233
274
  type: null,
234
275
  visible: false,
235
276
  required: false,
236
- serialize: function serialize(_ref15) {
237
- var values = _ref15.values;
277
+ serialize: function serialize(_ref18) {
278
+ var values = _ref18.values;
238
279
  return [{
239
280
  username: values.get('username'),
240
281
  password: values.get('password'),
@@ -245,10 +286,9 @@ var fields = function fields(_ref3) {
245
286
  }]));
246
287
  };
247
288
  };
248
- var SystemTenantForm = (0, _Form.generateForm)({
289
+ var SystemTenantForm = exports.SystemTenantForm = (0, _Form.generateForm)({
249
290
  formOptions: ['slug'],
250
291
  dataSources: dataSources,
251
292
  fields: fields,
252
293
  handleSubmit: handleSubmit
253
- });
254
- exports.SystemTenantForm = SystemTenantForm;
294
+ });
@@ -216,10 +216,9 @@ var columns = [{
216
216
  return row.getIn(['space', 'trustedResourceDomains']);
217
217
  }
218
218
  }];
219
- var SystemTenantTable = (0, _Table.generateTable)({
219
+ var SystemTenantTable = exports.SystemTenantTable = (0, _Table.generateTable)({
220
220
  columns: columns,
221
221
  filters: filters,
222
222
  dataSource: dataSource
223
223
  });
224
- exports.SystemTenantTable = SystemTenantTable;
225
224
  SystemTenantTable.displayName = 'SystemTenantTable';
@@ -5,16 +5,15 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.generateTable = exports.generateColumns = exports.extractColumnComponents = exports.buildTableHeaderRow = exports.buildTableHeaderCell = exports.buildTableHeader = exports.buildTableFooterRow = exports.buildTableFooterCells = exports.buildTableFooter = exports.buildTableBodyRows = exports.buildTableBodyCells = exports.buildTableBody = exports.buildTable = exports.Table = void 0;
8
+ exports.sortColumns = exports.getToggleableColumns = exports.generateTable = exports.generateColumns = exports.extractColumnComponents = exports.buildTableHeaderRow = exports.buildTableHeaderCell = exports.buildTableHeader = exports.buildTableFooterRow = exports.buildTableFooterCells = exports.buildTableFooter = exports.buildTableBodyRows = exports.buildTableBodyCells = exports.buildTableBody = exports.buildTable = exports.Table = void 0;
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
10
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
10
11
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
11
12
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
12
13
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
13
14
  var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createSuper"));
14
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
15
15
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
16
16
  var _react = _interopRequireWildcard(require("react"));
17
- var _recompose = require("recompose");
18
17
  var _immutable = require("immutable");
19
18
  var _ComponentConfigContext = require("../common/ComponentConfigContext");
20
19
  var _store = require("../../store");
@@ -46,7 +45,10 @@ var TableComponent = function TableComponent(props) {
46
45
  _filterFormKey = props.filterFormKey,
47
46
  count = props.count,
48
47
  extraData = props.extraData;
49
- var table = buildTable(props);
48
+ var columnControl = buildColumnControl(props);
49
+ var table = buildTable((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, props), {}, {
50
+ columnControl: columnControl
51
+ }));
50
52
  var filter = components.FilterForm ? buildFilterForm(props) : buildFilterLayout(props);
51
53
  var pagination = buildPaginationControl(props);
52
54
  return children({
@@ -56,6 +58,7 @@ var TableComponent = function TableComponent(props) {
56
58
  filter: filter,
57
59
  appliedFilters: appliedFilters,
58
60
  pagination: pagination,
61
+ columnControl: columnControl,
59
62
  initializing: initializing,
60
63
  loading: loading,
61
64
  rows: rows,
@@ -283,7 +286,44 @@ var buildPaginationControl = function buildPaginationControl(props) {
283
286
  extraData: extraData
284
287
  });
285
288
  };
286
- var buildTable = function buildTable(props) {
289
+ var getToggleableColumns = exports.getToggleableColumns = function getToggleableColumns(columns, columnSet, tableKey) {
290
+ return columns.reduce(function (list, column) {
291
+ var label = column.get('columnLabel') && column.get('columnLabel').trim() || column.get('title') && column.get('title').trim();
292
+ // Include all columns that have a columnLabel or title, and are toggleable
293
+ // or are in the initial columnSet
294
+ if (label && (column.get('toggleable') || columnSet.includes(column.get('value')))) {
295
+ return list.push((0, _immutable.Map)({
296
+ value: column.get('value'),
297
+ label: label,
298
+ checked: columnSet.includes(column.get('value')),
299
+ // Only enable the column toggle if it's toggleable, so that any
300
+ // non-toggleable columns that are in the initial column set will be
301
+ // shown but disabled in the control
302
+ enabled: !!column.get('toggleable'),
303
+ toggle: !!column.get('toggleable') ? onToggleColumn(tableKey, column.get('value')) : undefined
304
+ }));
305
+ }
306
+ return list;
307
+ }, (0, _immutable.List)());
308
+ };
309
+ var buildColumnControl = function buildColumnControl(props) {
310
+ var tableKey = props.tableKey,
311
+ columns = props.columns,
312
+ columnSet = props.columnSet,
313
+ components = props.components,
314
+ renderOptions = props.renderOptions,
315
+ tableOptions = props.tableOptions,
316
+ extraData = props.extraData;
317
+ var ColumnControl = components.ColumnControl;
318
+ return /*#__PURE__*/_react["default"].createElement(ColumnControl, {
319
+ tableKey: tableKey,
320
+ columns: getToggleableColumns(columns, columnSet, tableKey),
321
+ renderOptions: renderOptions,
322
+ tableOptions: tableOptions,
323
+ extraData: extraData
324
+ });
325
+ };
326
+ var buildTable = exports.buildTable = function buildTable(props) {
287
327
  var TableLayout = props.components.TableLayout;
288
328
  var header = buildTableHeader(props);
289
329
  var body = buildTableBody(props);
@@ -303,8 +343,7 @@ var buildTable = function buildTable(props) {
303
343
  extraData: props.extraData
304
344
  });
305
345
  };
306
- exports.buildTable = buildTable;
307
- var buildTableHeader = function buildTableHeader(props) {
346
+ var buildTableHeader = exports.buildTableHeader = function buildTableHeader(props) {
308
347
  var Header = props.components.Header;
309
348
  var headerRow = buildTableHeaderRow(props);
310
349
  return props.omitHeader ? null : /*#__PURE__*/_react["default"].createElement(Header, {
@@ -315,8 +354,7 @@ var buildTableHeader = function buildTableHeader(props) {
315
354
  tableOptions: props.tableOptions
316
355
  });
317
356
  };
318
- exports.buildTableHeader = buildTableHeader;
319
- var buildTableHeaderRow = function buildTableHeaderRow(props) {
357
+ var buildTableHeaderRow = exports.buildTableHeaderRow = function buildTableHeaderRow(props) {
320
358
  var components = props.components,
321
359
  rows = props.rows,
322
360
  columns = props.columns,
@@ -330,21 +368,22 @@ var buildTableHeaderRow = function buildTableHeaderRow(props) {
330
368
  tableOptions: props.tableOptions
331
369
  });
332
370
  };
333
- exports.buildTableHeaderRow = buildTableHeaderRow;
334
- var buildTableHeaderCell = function buildTableHeaderCell(props) {
371
+ var buildTableHeaderCell = exports.buildTableHeaderCell = function buildTableHeaderCell(props) {
335
372
  return function (column, index) {
336
373
  var tableKey = props.tableKey,
337
374
  components = props.components,
338
375
  columnComponents = props.columnComponents,
339
376
  renderOptions = props.renderOptions,
340
377
  tableOptions = props.tableOptions,
341
- appliedFilters = props.appliedFilters;
378
+ appliedFilters = props.appliedFilters,
379
+ columnControl = props.columnControl;
342
380
  var HeaderCell = columnComponents.getIn([column.get('value'), 'HeaderCell'], components.HeaderCell);
343
381
  var sorting = column === props.sortColumn && props.sortDirection;
344
382
  var sortable = props.sortable && column.get('sortable');
345
383
  return /*#__PURE__*/_react["default"].createElement(KeyWrapper, {
346
384
  key: "column-".concat(index)
347
385
  }, /*#__PURE__*/_react["default"].createElement(HeaderCell, {
386
+ columnControl: columnControl,
348
387
  onSortColumn: onSortColumn(tableKey, column),
349
388
  title: column.get('title'),
350
389
  renderOptions: renderOptions,
@@ -355,8 +394,7 @@ var buildTableHeaderCell = function buildTableHeaderCell(props) {
355
394
  }));
356
395
  };
357
396
  };
358
- exports.buildTableHeaderCell = buildTableHeaderCell;
359
- var buildTableBody = function buildTableBody(props) {
397
+ var buildTableBody = exports.buildTableBody = function buildTableBody(props) {
360
398
  var Body = props.components.Body;
361
399
  var tableRows = buildTableBodyRows(props);
362
400
  return /*#__PURE__*/_react["default"].createElement(Body, {
@@ -369,8 +407,7 @@ var buildTableBody = function buildTableBody(props) {
369
407
  empty: props.rows.isEmpty()
370
408
  });
371
409
  };
372
- exports.buildTableBody = buildTableBody;
373
- var buildTableBodyRows = function buildTableBodyRows(props) {
410
+ var buildTableBodyRows = exports.buildTableBodyRows = function buildTableBodyRows(props) {
374
411
  var components = props.components,
375
412
  rows = props.rows,
376
413
  columns = props.columns,
@@ -402,8 +439,7 @@ var buildTableBodyRows = function buildTableBodyRows(props) {
402
439
  error: props.error
403
440
  });
404
441
  };
405
- exports.buildTableBodyRows = buildTableBodyRows;
406
- var buildTableBodyCells = function buildTableBodyCells(props, row, rowIndex) {
442
+ var buildTableBodyCells = exports.buildTableBodyCells = function buildTableBodyCells(props, row, rowIndex) {
407
443
  var tableKey = props.tableKey,
408
444
  components = props.components,
409
445
  rows = props.rows,
@@ -434,8 +470,7 @@ var buildTableBodyCells = function buildTableBodyCells(props, row, rowIndex) {
434
470
  }));
435
471
  });
436
472
  };
437
- exports.buildTableBodyCells = buildTableBodyCells;
438
- var buildTableFooter = function buildTableFooter(props) {
473
+ var buildTableFooter = exports.buildTableFooter = function buildTableFooter(props) {
439
474
  var components = props.components,
440
475
  columnSet = props.columnSet,
441
476
  renderOptions = props.renderOptions,
@@ -452,8 +487,7 @@ var buildTableFooter = function buildTableFooter(props) {
452
487
  tableOptions: tableOptions
453
488
  }) : null;
454
489
  };
455
- exports.buildTableFooter = buildTableFooter;
456
- var buildTableFooterRow = function buildTableFooterRow(props) {
490
+ var buildTableFooterRow = exports.buildTableFooterRow = function buildTableFooterRow(props) {
457
491
  var components = props.components,
458
492
  renderOptions = props.renderOptions,
459
493
  tableOptions = props.tableOptions;
@@ -465,8 +499,7 @@ var buildTableFooterRow = function buildTableFooterRow(props) {
465
499
  tableOptions: tableOptions
466
500
  });
467
501
  };
468
- exports.buildTableFooterRow = buildTableFooterRow;
469
- var buildTableFooterCells = function buildTableFooterCells(props) {
502
+ var buildTableFooterCells = exports.buildTableFooterCells = function buildTableFooterCells(props) {
470
503
  var components = props.components,
471
504
  columns = props.columns,
472
505
  columnSet = props.columnSet,
@@ -484,7 +517,6 @@ var buildTableFooterCells = function buildTableFooterCells(props) {
484
517
  }));
485
518
  });
486
519
  };
487
- exports.buildTableFooterCells = buildTableFooterCells;
488
520
  var onNextPage = function onNextPage(tableKey) {
489
521
  return function () {
490
522
  return (0, _store.dispatch)('NEXT_PAGE', {
@@ -517,46 +549,93 @@ var onSortColumn = function onSortColumn(tableKey, column) {
517
549
  });
518
550
  };
519
551
  };
552
+ var onToggleColumn = function onToggleColumn(tableKey, column) {
553
+ return function () {
554
+ return (0, _store.dispatch)('TOGGLE_COLUMN', {
555
+ tableKey: tableKey,
556
+ column: column
557
+ });
558
+ };
559
+ };
520
560
  var mapStateToProps = function mapStateToProps() {
521
561
  return function (state, props) {
522
562
  return state.getIn(['tables', props.tableKey], (0, _immutable.Map)()).toObject();
523
563
  };
524
564
  };
525
-
526
- /**
527
- * @component
528
- */
529
- var TableImpl = (0, _recompose.compose)((0, _store.connect)(mapStateToProps), (0, _recompose.lifecycle)({
530
- componentDidMount: function componentDidMount() {
531
- if (this.props.mounted && !this.props.configured) {
532
- (0, _Table.configureTable)(this.props);
565
+ var TableImplComponent = /*#__PURE__*/function (_Component) {
566
+ (0, _inherits2["default"])(TableImplComponent, _Component);
567
+ var _super = (0, _createSuper2["default"])(TableImplComponent);
568
+ function TableImplComponent(props) {
569
+ (0, _classCallCheck2["default"])(this, TableImplComponent);
570
+ return _super.call(this, props);
571
+ }
572
+ (0, _createClass2["default"])(TableImplComponent, [{
573
+ key: "componentDidMount",
574
+ value: function componentDidMount() {
575
+ if (this.props.mounted && !this.props.configured) {
576
+ (0, _Table.configureTable)(this.props);
577
+ }
533
578
  }
534
- },
535
- componentDidUpdate: function componentDidUpdate() {
536
- if (this.props.mounted && !this.props.configured) {
537
- (0, _Table.configureTable)(this.props);
579
+ }, {
580
+ key: "componentDidUpdate",
581
+ value: function componentDidUpdate() {
582
+ if (this.props.mounted && !this.props.configured) {
583
+ (0, _Table.configureTable)(this.props);
584
+ }
538
585
  }
539
- }
540
- }))(TableComponent);
541
- var generateColumns = function generateColumns(columns) {
586
+ }, {
587
+ key: "render",
588
+ value: function render() {
589
+ return /*#__PURE__*/_react["default"].createElement(TableComponent, this.props);
590
+ }
591
+ }]);
592
+ return TableImplComponent;
593
+ }(_react.Component);
594
+ var TableImpl = (0, _store.connect)(mapStateToProps)(TableImplComponent);
595
+ var generateColumns = exports.generateColumns = function generateColumns(columns) {
542
596
  var addColumns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
543
597
  var alterColumns = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
544
- return (0, _immutable.List)(addColumns).concat(columns).map(function (c) {
598
+ return (0, _immutable.List)(columns).concat(addColumns).map(function (c) {
545
599
  return (0, _immutable.Map)((0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, c), alterColumns[c.value]), {}, {
546
600
  value: c.value
547
601
  }));
548
602
  });
549
603
  };
550
- exports.generateColumns = generateColumns;
551
- var extractColumnComponents = function extractColumnComponents(columns) {
604
+ var sortColumns = exports.sortColumns = function sortColumns(columns, columnSet) {
605
+ return columns
606
+ // First sort columns by the columnOrder value if provided
607
+ .sortBy(function (column) {
608
+ return column.get('columnOrder') === 'first' ? -1 : column.get('columnOrder') === 'last' ? 1 : 0;
609
+ })
610
+ // Next reduce the columns list into a list of groups, starting a new group
611
+ // each time we get to a column that's in the columnSet. This will result in
612
+ // each group having at most one columnSet column, and that column will be
613
+ // the first one in the group.
614
+ .reduce(function (list, column) {
615
+ return columnSet.includes(column.get('value')) ? list.push((0, _immutable.List)([column])) : list.update(-1, function (group) {
616
+ return group ? group.push(column) : (0, _immutable.List)([column]);
617
+ });
618
+ }, (0, _immutable.List)())
619
+ // Then sort the groups, taking the first column from each group, finding
620
+ // its index in the column set, and using that index as a sort value. Any
621
+ // groups without a columnSet column will be sorted to the end.
622
+ .sortBy(function (group) {
623
+ var columnSetIndex = columnSet.findIndex(function (c) {
624
+ return c === group.getIn([0, 'value']);
625
+ });
626
+ return columnSetIndex >= 0 ? columnSetIndex : columnSet.size + 1;
627
+ })
628
+ // Lastly flatten the groups back to a list of columns
629
+ .flatten(true);
630
+ };
631
+ var extractColumnComponents = exports.extractColumnComponents = function extractColumnComponents(columns) {
552
632
  return columns.filter(function (c) {
553
633
  return c.has('components');
554
634
  }).reduce(function (result, current) {
555
635
  return result.set(current.get('value'), current.get('components'));
556
636
  }, (0, _immutable.Map)());
557
637
  };
558
- exports.extractColumnComponents = extractColumnComponents;
559
- var generateTable = function generateTable(_ref4) {
638
+ var generateTable = exports.generateTable = function generateTable(_ref4) {
560
639
  var _ref4$tableOptions = _ref4.tableOptions,
561
640
  tableOptions = _ref4$tableOptions === void 0 ? [] : _ref4$tableOptions,
562
641
  _ref4$filterDataSourc = _ref4.filterDataSources,
@@ -619,6 +698,7 @@ var generateTable = function generateTable(_ref4) {
619
698
  filterSet: props.filterSet,
620
699
  filterAutoFocus: props.filterAutoFocus,
621
700
  columnSet: props.columnSet,
701
+ columnSetOrder: props.columnSetOrder,
622
702
  pageSize: props.pageSize,
623
703
  defaultSortColumn: props.defaultSortColumn,
624
704
  defaultSortDirection: props.defaultSortDirection,
@@ -637,14 +717,13 @@ var generateTable = function generateTable(_ref4) {
637
717
  return /*#__PURE__*/_react["default"].createElement(Table, setProps, props.children);
638
718
  };
639
719
  };
640
- exports.generateTable = generateTable;
641
- var Table = /*#__PURE__*/function (_Component) {
642
- (0, _inherits2["default"])(Table, _Component);
643
- var _super = (0, _createSuper2["default"])(Table);
720
+ var Table = exports.Table = /*#__PURE__*/function (_Component2) {
721
+ (0, _inherits2["default"])(Table, _Component2);
722
+ var _super2 = (0, _createSuper2["default"])(Table);
644
723
  function Table(props) {
645
724
  var _this;
646
725
  (0, _classCallCheck2["default"])(this, Table);
647
- _this = _super.call(this, props);
726
+ _this = _super2.call(this, props);
648
727
  var components = props.components,
649
728
  tableKey = props.tableKey,
650
729
  config = (0, _objectWithoutProperties2["default"])(props, _excluded);
@@ -676,7 +755,7 @@ var Table = /*#__PURE__*/function (_Component) {
676
755
  var allColumns = columns.map(function (c) {
677
756
  return c.get('value');
678
757
  });
679
- var columnSet = (0, _immutable.List)(this.props.columnSet ? typeof this.props.columnSet === 'function' ? this.props.columnSet(allColumns) : this.props.columnSet : allColumns).filter(function (c) {
758
+ var initialColumnSet = (0, _immutable.List)(this.props.columnSet ? typeof this.props.columnSet === 'function' ? this.props.columnSet(allColumns) : this.props.columnSet : allColumns).filter(function (c) {
680
759
  return columns.find(function (c2) {
681
760
  return c2.get('value') === c;
682
761
  });
@@ -686,8 +765,8 @@ var Table = /*#__PURE__*/function (_Component) {
686
765
  return /*#__PURE__*/_react["default"].createElement(TableImpl, Object.assign({}, _this2.props, {
687
766
  components: componentConfig.merge(_this2.props.components).toJS(),
688
767
  columnComponents: columnComponents,
689
- columns: columns,
690
- columnSet: columnSet,
768
+ columns: sortColumns(columns, initialColumnSet),
769
+ columnSet: initialColumnSet,
691
770
  tableKey: _this2.tableKey,
692
771
  auto: _this2.auto
693
772
  }), _this2.props.children);
@@ -696,7 +775,6 @@ var Table = /*#__PURE__*/function (_Component) {
696
775
  }]);
697
776
  return Table;
698
777
  }(_react.Component);
699
- exports.Table = Table;
700
778
  var defaultProps = {
701
779
  components: {},
702
780
  rows: (0, _immutable.List)([]),