@kineticdata/react 6.0.4 → 6.1.0

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 (100) hide show
  1. package/CHANGELOG.md +116 -86
  2. package/lib/apis/core/attributeDefinitions.js +9 -6
  3. package/lib/apis/core/integrations.js +61 -0
  4. package/lib/apis/core/submissions.js +52 -15
  5. package/lib/apis/http.js +16 -2
  6. package/lib/apis/index.js +24 -0
  7. package/lib/apis/integrator/index.js +262 -0
  8. package/lib/apis/system/index.js +64 -12
  9. package/lib/apis/task/index.js +9 -2
  10. package/lib/components/agent/filestore/FilestoreForm.js +1 -1
  11. package/lib/components/common/AttributeSelect.js +10 -2
  12. package/lib/components/common/BridgeSelect.js +2 -1
  13. package/lib/components/common/ConnectionSelect.js +72 -0
  14. package/lib/components/common/FormSelect.js +2 -1
  15. package/lib/components/common/StaticSelect.js +15 -6
  16. package/lib/components/common/TableInput.js +4 -1
  17. package/lib/components/common/TeamSelect.js +2 -1
  18. package/lib/components/common/ToastContainer.js +34 -10
  19. package/lib/components/common/Typeahead.js +59 -23
  20. package/lib/components/common/UserSelect.js +2 -1
  21. package/lib/components/common/authentication/RequestInterceptor.js +1 -1
  22. package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +3 -0
  23. package/lib/components/core/bridge_model/BridgeModelTable.js +19 -0
  24. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +6 -9
  25. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +0 -4
  26. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +7 -10
  27. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +2 -15
  28. package/lib/components/core/category/CategoryForm.js +4 -1
  29. package/lib/components/core/category/CategoryTable.js +2 -2
  30. package/lib/components/core/core_form/CoreForm.js +18 -10
  31. package/lib/components/core/file_resource/FileResourceForm.js +2 -1
  32. package/lib/components/core/file_resource/FileResourceTable.js +14 -7
  33. package/lib/components/core/form/FormForm.js +42 -19
  34. package/lib/components/core/form/FormTable.js +14 -14
  35. package/lib/components/core/form_type/FormTypeForm.js +3 -0
  36. package/lib/components/core/i18n/Moment.js +1 -0
  37. package/lib/components/core/integration/IntegrationForm.js +232 -0
  38. package/lib/components/core/integration/IntegrationTable.js +139 -0
  39. package/lib/components/core/kapp/KappForm.js +56 -67
  40. package/lib/components/core/kapp/KappTable.js +3 -3
  41. package/lib/components/core/log/LogTable.js +1 -1
  42. package/lib/components/core/security_definition/SecurityDefinitionForm.js +48 -10
  43. package/lib/components/core/space/SpaceForm.js +97 -111
  44. package/lib/components/core/submission/DatastoreSubmissionTable.js +4 -4
  45. package/lib/components/core/submission/FormSubmissionTable.js +12 -7
  46. package/lib/components/core/submission/KappSubmissionTable.js +4 -4
  47. package/lib/components/core/submission/SubmissionForm.js +3 -1
  48. package/lib/components/core/team/TeamTable.js +17 -7
  49. package/lib/components/core/user/UserTable.js +18 -18
  50. package/lib/components/core/webapi/WebApiForm.js +5 -2
  51. package/lib/components/core/webapi/WebApiTable.js +2 -2
  52. package/lib/components/core/webhook/WebhookForm.js +43 -33
  53. package/lib/components/core/webhook/WebhookTable.js +16 -16
  54. package/lib/components/core/webhook_job/WebhookJobTable.js +17 -6
  55. package/lib/components/form/Form.helpers.js +10 -4
  56. package/lib/components/form/Form.js +250 -168
  57. package/lib/components/form/Form.models.js +6 -1
  58. package/lib/components/form/FormState.js +9 -5
  59. package/lib/components/form/defaults/CodeField.js +44 -1
  60. package/lib/components/index.js +84 -3
  61. package/lib/components/integrator/connection/ConnectionForm.js +112 -0
  62. package/lib/components/integrator/connection/ConnectionTable.js +80 -0
  63. package/lib/components/integrator/connection/config_fields/http.js +570 -0
  64. package/lib/components/integrator/integrationTypes.js +98 -0
  65. package/lib/components/integrator/operation/OperationForm.js +128 -0
  66. package/lib/components/integrator/operation/OperationTable.js +64 -0
  67. package/lib/components/integrator/operation/config_fields/http.js +184 -0
  68. package/lib/components/system/SystemSecurityForm.js +1 -1
  69. package/lib/components/system/SystemTaskAdapterForm.js +9 -9
  70. package/lib/components/system/helpers.js +123 -100
  71. package/lib/components/system/spaces/SystemSpaceForm.js +9 -37
  72. package/lib/components/system/spaces/SystemTenantForm.js +276 -104
  73. package/lib/components/system/spaces/SystemTenantMigrateForm.js +449 -0
  74. package/lib/components/system/spaces/SystemTenantTable.js +20 -16
  75. package/lib/components/table/Table.redux.js +1 -1
  76. package/lib/components/task/builder/ConnectorForm.js +11 -7
  77. package/lib/components/task/builder/Node.js +11 -2
  78. package/lib/components/task/builder/NodeForm.js +93 -22
  79. package/lib/components/task/builder/NodeParametersForm.js +29 -17
  80. package/lib/components/task/builder/TaskDefinitionConfigForm.js +18 -50
  81. package/lib/components/task/builder/TreeBuilder.js +32 -5
  82. package/lib/components/task/builder/builder.redux.js +399 -205
  83. package/lib/components/task/builder/constants.js +10 -2
  84. package/lib/components/task/builder/helpers.js +199 -79
  85. package/lib/components/task/builder/models.js +11 -9
  86. package/lib/components/task/category/TaskCategoryTable.js +3 -3
  87. package/lib/components/task/common/UsageTable.js +1 -1
  88. package/lib/components/task/handlers/HandlerTable.js +35 -19
  89. package/lib/components/task/policy_rule/PolicyRuleTable.js +3 -3
  90. package/lib/components/task/runs/CreateManualTriggerForm.js +2 -0
  91. package/lib/components/task/runs/RunTable.js +4 -4
  92. package/lib/components/task/runs/RunTaskTable.js +1 -1
  93. package/lib/components/task/sources/SourceTable.js +2 -2
  94. package/lib/components/task/triggers/TriggerTable.js +2 -2
  95. package/lib/components/task/workflows/LinkedWorkflowTable.js +2 -2
  96. package/lib/components/task/workflows/WorkflowForm.js +29 -9
  97. package/lib/components/task/workflows/WorkflowTable.js +2 -2
  98. package/lib/helpers/index.js +289 -72
  99. package/package.json +5 -3
  100. package/proxyhelper.js +28 -3
@@ -12,7 +12,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
12
12
  var _Form = require("../../form/Form");
13
13
  var _apis = require("../../../apis");
14
14
  var _helpers = require("../../../helpers");
15
- var DISPLAY_TYPES = ['Display Page', 'Redirect', 'Single Page App'];
15
+ var DISPLAY_TYPES = ['Custom', 'Hosted', 'Platform', 'Redirect'];
16
+ var getInitialDisplayType = function getInitialDisplayType(value) {
17
+ if (value === 'Single Page App') {
18
+ return 'Custom';
19
+ }
20
+ return value || 'Platform';
21
+ };
16
22
  var dataSources = function dataSources() {
17
23
  return {
18
24
  space: {
@@ -110,26 +116,6 @@ var securityEndpoints = {
110
116
  endpoint: 'User Modification',
111
117
  label: 'User Modification',
112
118
  types: ['Space', 'User']
113
- },
114
- defaultFormDisplay: {
115
- endpoint: 'Default Form Display',
116
- label: 'Default Form Display',
117
- types: ['Form']
118
- },
119
- defaultFormModification: {
120
- endpoint: 'Default Form Modification',
121
- label: 'Default Form Modification',
122
- types: ['Form']
123
- },
124
- defaultSubmissionAccess: {
125
- endpoint: 'Default Submission Access',
126
- label: 'Default Submission Access',
127
- types: ['Form', 'Submission']
128
- },
129
- defaultSubmissionModification: {
130
- endpoint: 'Default Submission Modification',
131
- label: 'Default Submission Modification',
132
- types: ['Form', 'Submission']
133
119
  }
134
120
  };
135
121
  var fields = function fields() {
@@ -148,45 +134,33 @@ var fields = function fields() {
148
134
  var space = _ref3.space;
149
135
  return "/".concat((0, _immutable.get)(space, 'slug'));
150
136
  },
151
- visible: function visible(_ref4) {
152
- var values = _ref4.values;
153
- return (0, _immutable.get)(values, 'displayType') !== 'Single Page App';
154
- }
137
+ visible: false
155
138
  }, {
156
139
  name: 'bundlePath',
157
140
  label: 'Bundle Path',
158
141
  type: 'text',
159
142
  initialValue: (0, _immutable.get)(space, 'bundlePath'),
160
- required: function required(_ref5) {
161
- var values = _ref5.values;
162
- return (0, _immutable.get)(values, 'sharedBundleBase') !== '' && (0, _immutable.get)(values, 'displayType') === 'Display Page';
163
- }
143
+ visible: false
164
144
  }, {
165
145
  name: 'defaultFormConfirmationPage',
166
146
  label: 'Default Form Confirmation Page',
167
147
  type: 'text',
168
148
  initialValue: (0, _immutable.get)(space, 'defaultFormConfirmationPage'),
169
149
  placeholder: 'confirmation.jsp',
170
- visible: function visible(_ref6) {
171
- var values = _ref6.values;
172
- return (0, _immutable.get)(values, 'displayType') !== 'Single Page App';
173
- }
150
+ visible: false
174
151
  }, {
175
152
  name: 'defaultFormDisplayPage',
176
153
  label: 'Default Form Display Page',
177
154
  type: 'text',
178
155
  initialValue: (0, _immutable.get)(space, 'defaultFormDisplayPage'),
179
156
  placeholder: 'form.jsp',
180
- visible: function visible(_ref7) {
181
- var values = _ref7.values;
182
- return (0, _immutable.get)(values, 'displayType') !== 'Single Page App';
183
- }
157
+ visible: false
184
158
  }, {
185
159
  name: 'defaultLocale',
186
160
  label: 'Default Locale',
187
161
  type: 'text',
188
- options: function options(_ref8) {
189
- var locales = _ref8.locales;
162
+ options: function options(_ref4) {
163
+ var locales = _ref4.locales;
190
164
  return locales.map(function (locale) {
191
165
  return (0, _immutable.Map)({
192
166
  value: locale.get('code'),
@@ -199,8 +173,8 @@ var fields = function fields() {
199
173
  name: 'defaultTimezone',
200
174
  label: 'Default Timezone',
201
175
  type: 'text',
202
- options: function options(_ref9) {
203
- var timezones = _ref9.timezones;
176
+ options: function options(_ref5) {
177
+ var timezones = _ref5.timezones;
204
178
  return timezones.map(function (timezone) {
205
179
  return (0, _immutable.Map)({
206
180
  value: timezone.get('id'),
@@ -220,20 +194,16 @@ var fields = function fields() {
220
194
  };
221
195
  }),
222
196
  required: true,
223
- initialValue: (0, _immutable.get)(space, 'displayType') || 'Display Page',
224
- helpText: 'Determines how the application works. For kinops, Single Page App is used.'
197
+ initialValue: getInitialDisplayType((0, _immutable.get)(space, 'displayType')),
198
+ helpText: 'Display Types indicate how the Platform should render your bundle.'
225
199
  }, {
226
200
  name: 'displayValueJSP',
227
- label: 'Space Display Page',
201
+ label: '',
228
202
  type: 'text',
229
203
  "transient": true,
230
204
  placeholder: 'space.jsp',
231
- visible: function visible(_ref10) {
232
- var values = _ref10.values;
233
- return (0, _immutable.get)(values, 'displayType') === 'Display Page';
234
- },
235
- required: function required(_ref11) {
236
- var values = _ref11.values;
205
+ visible: function visible(_ref6) {
206
+ var values = _ref6.values;
237
207
  return (0, _immutable.get)(values, 'displayType') === 'Display Page';
238
208
  },
239
209
  initialValue: (0, _immutable.get)(space, 'displayType') === 'Display Page' ? (0, _immutable.get)(space, 'displayValue') : ''
@@ -242,12 +212,12 @@ var fields = function fields() {
242
212
  label: 'Redirect URL',
243
213
  type: 'text',
244
214
  "transient": true,
245
- visible: function visible(_ref12) {
246
- var values = _ref12.values;
215
+ visible: function visible(_ref7) {
216
+ var values = _ref7.values;
247
217
  return (0, _immutable.get)(values, 'displayType') === 'Redirect';
248
218
  },
249
- required: function required(_ref13) {
250
- var values = _ref13.values;
219
+ required: function required(_ref8) {
220
+ var values = _ref8.values;
251
221
  return (0, _immutable.get)(values, 'displayType') === 'Redirect';
252
222
  },
253
223
  requiredMessage: "This field is required, when display type is 'Redirect'",
@@ -257,30 +227,50 @@ var fields = function fields() {
257
227
  label: 'Location',
258
228
  type: 'text',
259
229
  "transient": true,
260
- visible: function visible(_ref14) {
261
- var values = _ref14.values;
262
- return (0, _immutable.get)(values, 'displayType') === 'Single Page App';
230
+ visible: function visible(_ref9) {
231
+ var values = _ref9.values;
232
+ return (0, _immutable.get)(values, 'displayType') === 'Custom';
233
+ },
234
+ required: function required(_ref10) {
235
+ var values = _ref10.values;
236
+ return (0, _immutable.get)(values, 'displayType') === 'Custom';
237
+ },
238
+ initialValue: (0, _immutable.get)(space, 'displayType') === 'Single Page App' || (0, _immutable.get)(space, 'displayType') === 'Custom' ? ((0, _immutable.get)(space, 'displayValue') || '').replace('spa.jsp', '').replace('?location=', '') : '',
239
+ helpText: 'Enter the full URL to where your bundle is stored. This must include the index.html in the path.'
240
+ }, {
241
+ name: 'displayValueHost',
242
+ label: 'Bundle Slug',
243
+ type: 'text',
244
+ "transient": true,
245
+ visible: function visible(_ref11) {
246
+ var values = _ref11.values;
247
+ return (0, _immutable.get)(values, 'displayType') === 'Hosted';
263
248
  },
264
- required: function required(_ref15) {
265
- var values = _ref15.values;
266
- return (0, _immutable.get)(values, 'displayType') === 'Single Page App';
249
+ required: function required(_ref12) {
250
+ var values = _ref12.values;
251
+ return (0, _immutable.get)(values, 'displayType') === 'Hosted';
267
252
  },
268
- initialValue: (0, _immutable.get)(space, 'displayType') === 'Single Page App' ? ((0, _immutable.get)(space, 'displayValue') || '').replace('spa.jsp', '').replace('?location=', '') : '',
269
- helpText: 'See explanation below for external and embedded asset modes.'
253
+ initialValue: (0, _immutable.get)(space, 'displayType') === 'Hosted' ? (0, _immutable.get)(space, 'displayValue') : '',
254
+ helpText: 'Enter the full "slug" which corresponds to the directory your hosted bundle is stored in.'
270
255
  }, {
271
256
  name: 'displayValue',
272
- label: 'Dispaly Value',
257
+ label: 'Display Value',
273
258
  type: 'text',
274
259
  visible: false,
275
260
  initialValue: (0, _immutable.get)(space, 'displayValue'),
276
- serialize: function serialize(_ref16) {
277
- var values = _ref16.values;
261
+ serialize: function serialize(_ref13) {
262
+ var values = _ref13.values;
278
263
  var displayType = values.get('displayType');
279
264
  var displayValueSPA = values.get('displayValueSPA');
265
+ var displayValueHost = values.get('displayValueHost');
280
266
  var displayValueJSP = values.get('displayValueJSP');
281
267
  var displayValueRedirect = values.get('displayValueRedirect');
282
- if (displayType === 'Single Page App') {
268
+ if ((0, _immutable.get)(values, 'displayType') === 'Custom') {
283
269
  return displayValueSPA && displayValueSPA.endsWith('index.html') ? displayValueSPA : "spa.jsp".concat(displayValueSPA && '?location=' + displayValueSPA);
270
+ } else if ((0, _immutable.get)(values, 'displayType') === 'Hosted') {
271
+ return displayValueHost;
272
+ } else if ((0, _immutable.get)(values, 'displayType') === 'Platform') {
273
+ return '';
284
274
  } else {
285
275
  return displayType === 'Redirect' ? displayValueRedirect : displayValueJSP;
286
276
  }
@@ -291,19 +281,16 @@ var fields = function fields() {
291
281
  type: 'text',
292
282
  initialValue: (0, _immutable.get)(space, 'loginPage'),
293
283
  placeholder: 'login.jsp',
294
- visible: function visible(_ref17) {
295
- var values = _ref17.values;
296
- return (0, _immutable.get)(values, 'displayType') !== 'Single Page App';
297
- }
284
+ visible: false
298
285
  }, {
299
286
  name: 'name',
300
287
  label: 'Space Name',
301
288
  type: 'text',
302
289
  required: true,
303
290
  initialValue: (0, _immutable.get)(space, 'name'),
304
- onChange: function onChange(_ref18, _ref19) {
305
- var values = _ref18.values;
306
- var setValue = _ref19.setValue;
291
+ onChange: function onChange(_ref14, _ref15) {
292
+ var values = _ref14.values;
293
+ var setValue = _ref15.setValue;
307
294
  if (values.get('linked')) {
308
295
  setValue('slug', (0, _helpers.slugify)(values.get('name')), false);
309
296
  }
@@ -315,20 +302,17 @@ var fields = function fields() {
315
302
  type: 'text',
316
303
  initialValue: (0, _immutable.get)(space, 'resetPasswordPage'),
317
304
  placeholder: 'resetPassword.jsp',
318
- visible: function visible(_ref20) {
319
- var values = _ref20.values;
320
- return (0, _immutable.get)(values, 'displayType') !== 'Single Page App';
321
- }
305
+ visible: false
322
306
  }, {
323
307
  name: 'oauthSigningKey',
324
308
  label: 'OAuth Signing Key',
325
309
  type: 'password',
326
- visible: function visible(_ref21) {
327
- var values = _ref21.values;
310
+ visible: function visible(_ref16) {
311
+ var values = _ref16.values;
328
312
  return values.get('changeOAuthSigningKey');
329
313
  },
330
- "transient": function transient(_ref22) {
331
- var values = _ref22.values;
314
+ "transient": function transient(_ref17) {
315
+ var values = _ref17.values;
332
316
  return !values.get('changeOAuthSigningKey');
333
317
  }
334
318
  }, {
@@ -337,14 +321,14 @@ var fields = function fields() {
337
321
  type: 'checkbox',
338
322
  "transient": true,
339
323
  // in "new" mode we do not show this toggle field and default it to true
340
- visible: function visible(_ref23) {
341
- var space = _ref23.space;
324
+ visible: function visible(_ref18) {
325
+ var space = _ref18.space;
342
326
  return !!space;
343
327
  },
344
328
  initialValue: !space,
345
- onChange: function onChange(_ref24, _ref25) {
346
- var values = _ref24.values;
347
- var setValue = _ref25.setValue;
329
+ onChange: function onChange(_ref19, _ref20) {
330
+ var values = _ref19.values;
331
+ var setValue = _ref20.setValue;
348
332
  if (values.get('oauthSigningKey') !== '') {
349
333
  setValue('oauthSigningKey', '');
350
334
  }
@@ -355,8 +339,8 @@ var fields = function fields() {
355
339
  type: 'text',
356
340
  initialValue: (0, _immutable.get)(space, 'sessionInactiveLimitInSeconds'),
357
341
  helpText: 'Users will be logged out automatically if inactive for this amount of time.',
358
- serialize: function serialize(_ref26) {
359
- var values = _ref26.values;
342
+ serialize: function serialize(_ref21) {
343
+ var values = _ref21.values;
360
344
  return parseInt(values.get('sessionInactiveLimitInSeconds'));
361
345
  }
362
346
  }, {
@@ -364,15 +348,16 @@ var fields = function fields() {
364
348
  label: 'Shared Bundle Base',
365
349
  type: 'text',
366
350
  initialValue: (0, _immutable.get)(space, 'sharedBundleBase'),
367
- helpText: 'Directory used as path prefix for bundles.'
351
+ helpText: 'Directory used as path prefix for bundles.',
352
+ visible: false
368
353
  }, {
369
354
  name: 'slug',
370
355
  label: 'Slug',
371
356
  type: 'text',
372
357
  required: true,
373
358
  initialValue: (0, _immutable.get)(space, 'slug'),
374
- onChange: function onChange(_bindings, _ref27) {
375
- var setValue = _ref27.setValue;
359
+ onChange: function onChange(_bindings, _ref22) {
360
+ var setValue = _ref22.setValue;
376
361
  setValue('linked', false);
377
362
  },
378
363
  helpText: 'Unique name used in the space path.'
@@ -393,22 +378,23 @@ var fields = function fields() {
393
378
  label: 'Trusted Resource Domains',
394
379
  type: 'text-multi',
395
380
  initialValue: (0, _immutable.get)(space, 'trustedResourceDomains')
396
- }].concat((0, _toConsumableArray2["default"])(Object.entries(securityEndpoints).map(function (_ref28) {
397
- var _ref29 = (0, _slicedToArray2["default"])(_ref28, 2),
398
- endpointFieldName = _ref29[0],
399
- endpoint = _ref29[1];
381
+ }].concat((0, _toConsumableArray2["default"])(Object.entries(securityEndpoints).map(function (_ref23) {
382
+ var _ref24 = (0, _slicedToArray2["default"])(_ref23, 2),
383
+ endpointFieldName = _ref24[0],
384
+ endpoint = _ref24[1];
400
385
  return {
401
386
  name: endpointFieldName,
402
387
  label: endpoint.label,
403
388
  type: 'select',
404
- options: function options(_ref30) {
405
- var securityPolicyDefinitions = _ref30.securityPolicyDefinitions;
389
+ options: function options(_ref25) {
390
+ var securityPolicyDefinitions = _ref25.securityPolicyDefinitions;
406
391
  return securityPolicyDefinitions.filter(function (definition) {
407
392
  return endpoint.types.includes(definition.get('type'));
408
393
  }).map(function (definition) {
409
394
  return (0, _immutable.Map)({
410
395
  value: definition.get('name'),
411
- label: definition.get('name')
396
+ label: definition.get('name'),
397
+ type: definition.get('type')
412
398
  });
413
399
  });
414
400
  },
@@ -422,12 +408,12 @@ var fields = function fields() {
422
408
  label: 'Security Policies',
423
409
  type: null,
424
410
  visible: false,
425
- serialize: function serialize(_ref31) {
426
- var values = _ref31.values;
427
- return Object.entries(securityEndpoints).map(function (_ref32) {
428
- var _ref33 = (0, _slicedToArray2["default"])(_ref32, 2),
429
- endpointFieldName = _ref33[0],
430
- policy = _ref33[1];
411
+ serialize: function serialize(_ref26) {
412
+ var values = _ref26.values;
413
+ return Object.entries(securityEndpoints).map(function (_ref27) {
414
+ var _ref28 = (0, _slicedToArray2["default"])(_ref27, 2),
415
+ endpointFieldName = _ref28[0],
416
+ policy = _ref28[1];
431
417
  return {
432
418
  endpoint: policy.endpoint,
433
419
  name: values.get(endpointFieldName)
@@ -452,18 +438,18 @@ var fields = function fields() {
452
438
  type: 'text'
453
439
  }]);
454
440
  },
455
- visible: function visible(_ref34) {
456
- var values = _ref34.values;
441
+ visible: function visible(_ref29) {
442
+ var values = _ref29.values;
457
443
  return values.get('allowedIpsEnabled', false);
458
444
  },
459
445
  initialValue: (0, _immutable.get)(space, 'allowedIps', []),
460
- serialize: function serialize(_ref35) {
461
- var values = _ref35.values;
446
+ serialize: function serialize(_ref30) {
447
+ var values = _ref30.values;
462
448
  return values.get('allowedIpsEnabled', false) ? values.get('allowedIps') : [];
463
449
  }
464
450
  }, {
465
451
  name: 'allowedIpsEnabled',
466
- label: 'Enabled Allowed IP Restrictions?',
452
+ label: 'Allowed IP Restrictions',
467
453
  type: 'checkbox',
468
454
  initialValue: (0, _immutable.get)(space, 'allowedIpsEnabled', false) || false
469
455
  }, {
@@ -471,8 +457,8 @@ var fields = function fields() {
471
457
  label: 'Attributes',
472
458
  type: 'attributes',
473
459
  required: false,
474
- options: function options(_ref36) {
475
- var attributeDefinitions = _ref36.attributeDefinitions;
460
+ options: function options(_ref31) {
461
+ var attributeDefinitions = _ref31.attributeDefinitions;
476
462
  return attributeDefinitions;
477
463
  },
478
464
  initialValue: (0, _immutable.get)(space, 'attributesMap')
@@ -51,7 +51,7 @@ var columns = [{
51
51
  sortable: true
52
52
  }, {
53
53
  value: 'closedBy',
54
- title: 'closedBy',
54
+ title: 'Closed By',
55
55
  sortable: false
56
56
  }, {
57
57
  value: 'coreState',
@@ -59,7 +59,7 @@ var columns = [{
59
59
  sortable: false
60
60
  }, {
61
61
  value: 'createdAt',
62
- title: 'Created',
62
+ title: 'Created At',
63
63
  sortable: true
64
64
  }, {
65
65
  value: 'createdBy',
@@ -75,7 +75,7 @@ var columns = [{
75
75
  sortable: false
76
76
  }, {
77
77
  value: 'id',
78
- title: 'Id',
78
+ title: 'ID',
79
79
  sortable: false
80
80
  }, {
81
81
  value: 'label',
@@ -107,7 +107,7 @@ var columns = [{
107
107
  sortable: false
108
108
  }, {
109
109
  value: 'updatedAt',
110
- title: 'Updated',
110
+ title: 'Updated At',
111
111
  sortable: false
112
112
  }, {
113
113
  value: 'updatedBy',
@@ -43,8 +43,8 @@ var dataSource = function dataSource(_ref) {
43
43
  };
44
44
  var columns = [{
45
45
  value: 'closedAt',
46
- title: 'Closed',
47
- sortable: true,
46
+ title: 'Closed At',
47
+ sortable: false,
48
48
  toggleable: true
49
49
  }, {
50
50
  value: 'closedBy',
@@ -58,8 +58,8 @@ var columns = [{
58
58
  toggleable: true
59
59
  }, {
60
60
  value: 'createdAt',
61
- title: 'Created',
62
- sortable: true,
61
+ title: 'Created At',
62
+ sortable: false,
63
63
  toggleable: true
64
64
  }, {
65
65
  value: 'createdBy',
@@ -79,7 +79,7 @@ var columns = [{
79
79
  columnOrder: 'first'
80
80
  }, {
81
81
  value: 'id',
82
- title: 'Id',
82
+ title: 'ID',
83
83
  sortable: false,
84
84
  toggleable: true
85
85
  }, {
@@ -105,7 +105,7 @@ var columns = [{
105
105
  }, {
106
106
  value: 'submittedAt',
107
107
  title: 'Submitted At',
108
- sortable: true,
108
+ sortable: false,
109
109
  toggleable: true
110
110
  }, {
111
111
  value: 'submittedBy',
@@ -119,7 +119,7 @@ var columns = [{
119
119
  toggleable: true
120
120
  }, {
121
121
  value: 'updatedAt',
122
- title: 'Updated',
122
+ title: 'Updated At',
123
123
  sortable: false,
124
124
  toggleable: true
125
125
  }, {
@@ -127,6 +127,11 @@ var columns = [{
127
127
  title: 'Updated By',
128
128
  sortable: false,
129
129
  toggleable: true
130
+ }, {
131
+ value: 'sortDate',
132
+ title: 'Sort Date',
133
+ sortable: false,
134
+ toggleable: true
130
135
  }];
131
136
  var FormSubmissionTable = exports.FormSubmissionTable = (0, _Table.generateTable)({
132
137
  tableOptions: ['kappSlug', 'formSlug', 'include', 'count'],
@@ -170,7 +170,7 @@ var filters = function filters(_ref6) {
170
170
  };
171
171
  var columns = [{
172
172
  value: 'closedAt',
173
- title: 'Closed',
173
+ title: 'Closed At',
174
174
  sortable: true,
175
175
  toggleable: true
176
176
  }, {
@@ -185,7 +185,7 @@ var columns = [{
185
185
  toggleable: true
186
186
  }, {
187
187
  value: 'createdAt',
188
- title: 'Created',
188
+ title: 'Created At',
189
189
  sortable: true,
190
190
  toggleable: true
191
191
  }, {
@@ -206,7 +206,7 @@ var columns = [{
206
206
  columnOrder: 'first'
207
207
  }, {
208
208
  value: 'id',
209
- title: 'Id',
209
+ title: 'ID',
210
210
  sortable: false,
211
211
  toggleable: true
212
212
  }, {
@@ -246,7 +246,7 @@ var columns = [{
246
246
  toggleable: true
247
247
  }, {
248
248
  value: 'updatedAt',
249
- title: 'Updated',
249
+ title: 'Updated At',
250
250
  sortable: true,
251
251
  toggleable: true
252
252
  }, {
@@ -123,7 +123,9 @@ var convertRenderType = function convertRenderType(element) {
123
123
  };
124
124
  var getInitialValue = function getInitialValue(submission, element, type) {
125
125
  var fieldKey = element.get('key');
126
- var value = (0, _immutable.getIn)(submission, ['valuesRaw', fieldKey, 'value'], ['checkbox', 'attachment'].includes(element.get('renderType')) ? (0, _immutable.List)() : '') || '';
126
+
127
+ // If value doesn't exist, set a default value based on the renderType
128
+ var value = ['checkbox', 'attachment'].includes(element.get('renderType')) ? (0, _immutable.getIn)(submission, ['valuesRaw', fieldKey, 'value']) || (0, _immutable.List)() : (0, _immutable.getIn)(submission, ['valuesRaw', fieldKey, 'value']) || '';
127
129
 
128
130
  // To update a submission with existing submissions we need to grab the
129
131
  // documentId and insert that into the attachment value normally returned with
@@ -44,23 +44,33 @@ var columns = [{
44
44
  toggleable: false,
45
45
  columnOrder: 'first'
46
46
  }, {
47
- value: 'updatedAt',
48
- title: 'Updated',
47
+ value: 'slug',
48
+ title: 'Slug',
49
+ sortable: true,
50
+ toggleable: true
51
+ }, {
52
+ value: 'description',
53
+ title: 'Description',
49
54
  sortable: true,
50
55
  toggleable: true
51
56
  }, {
52
57
  value: 'createdAt',
53
- title: 'Created',
58
+ title: 'Created At',
54
59
  sortable: true,
55
60
  toggleable: true
56
61
  }, {
57
- value: 'description',
58
- title: 'Description',
62
+ value: 'createdBy',
63
+ title: 'Created By',
59
64
  sortable: true,
60
65
  toggleable: true
61
66
  }, {
62
- value: 'slug',
63
- title: 'Slug',
67
+ value: 'updatedAt',
68
+ title: 'Updated At',
69
+ sortable: true,
70
+ toggleable: true
71
+ }, {
72
+ value: 'updatedBy',
73
+ title: 'Updated By',
64
74
  sortable: true,
65
75
  toggleable: true
66
76
  }];
@@ -90,9 +90,25 @@ var columns = [{
90
90
  title: 'Display Name',
91
91
  sortable: true,
92
92
  toggleable: true
93
+ }, {
94
+ value: 'enabled',
95
+ title: 'Enabled?',
96
+ sortable: false,
97
+ toggleable: true,
98
+ components: {
99
+ BodyCell: BooleanYesNoCell
100
+ }
101
+ }, {
102
+ value: 'spaceAdmin',
103
+ title: 'Space Admin?',
104
+ sortable: false,
105
+ toggleable: true,
106
+ components: {
107
+ BodyCell: BooleanYesNoCell
108
+ }
93
109
  }, {
94
110
  value: 'createdAt',
95
- title: 'Created',
111
+ title: 'Created At',
96
112
  sortable: true,
97
113
  toggleable: true
98
114
  }, {
@@ -102,7 +118,7 @@ var columns = [{
102
118
  toggleable: true
103
119
  }, {
104
120
  value: 'updatedAt',
105
- title: 'Updated',
121
+ title: 'Updated At',
106
122
  sortable: true,
107
123
  toggleable: true
108
124
  }, {
@@ -110,22 +126,6 @@ var columns = [{
110
126
  title: 'Updated By',
111
127
  sortable: true,
112
128
  toggleable: true
113
- }, {
114
- value: 'enabled',
115
- title: 'Enabled?',
116
- sortable: false,
117
- toggleable: true,
118
- components: {
119
- BodyCell: BooleanYesNoCell
120
- }
121
- }, {
122
- value: 'spaceAdmin',
123
- title: 'Space Admin?',
124
- sortable: false,
125
- toggleable: true,
126
- components: {
127
- BodyCell: BooleanYesNoCell
128
- }
129
129
  }];
130
130
  var UserTable = exports.UserTable = (0, _Table.generateTable)({
131
131
  tableOptions: ['system', 'spaceSlug'],
@@ -178,7 +178,9 @@ var fields = function fields(_ref7) {
178
178
  label: 'Slug',
179
179
  type: 'text',
180
180
  required: true,
181
- initialValue: (0, _immutable.get)(webApi, 'slug') || ''
181
+ initialValue: (0, _immutable.get)(webApi, 'slug') || '',
182
+ pattern: /^[a-z\d-]*$/,
183
+ patternMessage: 'Slug may only contain lowercase letters, numbers, or hyphens.'
182
184
  }, {
183
185
  name: 'method',
184
186
  label: 'Method',
@@ -206,7 +208,8 @@ var fields = function fields(_ref7) {
206
208
  }).map(function (definition) {
207
209
  return (0, _immutable.Map)({
208
210
  value: definition.get('name'),
209
- label: definition.get('name')
211
+ label: definition.get('name'),
212
+ type: definition.get('type')
210
213
  });
211
214
  }) : [];
212
215
  },
@@ -61,7 +61,7 @@ var columns = [{
61
61
  toggleable: true
62
62
  }, {
63
63
  value: 'createdAt',
64
- title: 'Created',
64
+ title: 'Created At',
65
65
  sortable: true,
66
66
  toggleable: true
67
67
  }, {
@@ -70,7 +70,7 @@ var columns = [{
70
70
  toggleable: true
71
71
  }, {
72
72
  value: 'updatedAt',
73
- title: 'Updated',
73
+ title: 'Updated At',
74
74
  sortable: true,
75
75
  toggleable: true
76
76
  }, {