@kineticdata/react 6.0.5 → 6.1.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 (151) hide show
  1. package/README.md +110 -110
  2. package/assets/task/icons/defer.svg +12 -12
  3. package/assets/task/icons/drag-handle.svg +3 -3
  4. package/assets/task/icons/filter.svg +11 -11
  5. package/assets/task/icons/loop.svg +10 -10
  6. package/assets/task/icons/plus_small.svg +5 -5
  7. package/assets/task/icons/routine.svg +9 -9
  8. package/assets/task/icons/scale-minus.svg +11 -11
  9. package/assets/task/icons/scale-plus.svg +13 -13
  10. package/assets/task/icons/start.svg +11 -11
  11. package/assets/task/icons/stop.svg +8 -8
  12. package/lib/apis/core/activity.js +4 -4
  13. package/lib/apis/core/attributeDefinitions.js +64 -6
  14. package/lib/apis/core/attributeDefinitions.test.js +7 -4
  15. package/lib/apis/core/authentication.js +12 -1
  16. package/lib/apis/core/bridgeModels.test.js +46 -23
  17. package/lib/apis/core/bridgedresources.js +41 -41
  18. package/lib/apis/core/fileResources.js +2 -6
  19. package/lib/apis/core/forms.js +51 -2
  20. package/lib/apis/core/forms.test.js +32 -19
  21. package/lib/apis/core/integrations.js +61 -0
  22. package/lib/apis/core/kapps.js +49 -0
  23. package/lib/apis/core/kapps.test.js +16 -10
  24. package/lib/apis/core/notices.js +7 -0
  25. package/lib/apis/core/securityPolicyDefinitions.test.js +7 -4
  26. package/lib/apis/core/space.js +18 -0
  27. package/lib/apis/core/space.test.js +16 -10
  28. package/lib/apis/core/submissionActivities.js +38 -0
  29. package/lib/apis/core/submissions.js +114 -15
  30. package/lib/apis/core/translations.test.js +126 -55
  31. package/lib/apis/core/userPreferences.js +59 -0
  32. package/lib/apis/core/webApis.js +32 -2
  33. package/lib/apis/core/webhooks.test.js +7 -4
  34. package/lib/apis/http.js +30 -5
  35. package/lib/apis/index.js +48 -0
  36. package/lib/apis/integrator/index.js +337 -0
  37. package/lib/apis/system/index.js +64 -12
  38. package/lib/apis/task/index.js +9 -2
  39. package/lib/components/agent/filestore/FilestoreForm.js +1 -1
  40. package/lib/components/common/AttributeSelect.js +11 -2
  41. package/lib/components/common/BridgeSelect.js +3 -1
  42. package/lib/components/common/ConnectionSelect.js +73 -0
  43. package/lib/components/common/FormSelect.js +3 -1
  44. package/lib/components/common/NodeSelect.js +1 -0
  45. package/lib/components/common/StaticSelect.js +16 -6
  46. package/lib/components/common/TableInput.js +4 -1
  47. package/lib/components/common/TeamSelect.js +3 -1
  48. package/lib/components/common/ToastContainer.js +34 -10
  49. package/lib/components/common/Typeahead.js +62 -23
  50. package/lib/components/common/UserSelect.js +3 -1
  51. package/lib/components/common/authentication/AuthenticationContainer.js +121 -55
  52. package/lib/components/common/authentication/RequestInterceptor.js +1 -1
  53. package/lib/components/common/preferences/PreferencesProvider.js +461 -0
  54. package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +10 -7
  55. package/lib/components/core/bridge_model/BridgeModelTable.js +19 -0
  56. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +6 -9
  57. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +0 -4
  58. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +7 -10
  59. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +2 -15
  60. package/lib/components/core/category/CategoryForm.js +4 -1
  61. package/lib/components/core/category/CategoryTable.js +2 -2
  62. package/lib/components/core/core_form/CoreForm.js +18 -10
  63. package/lib/components/core/field_definition/FieldDefinitionForm.js +3 -3
  64. package/lib/components/core/file_resource/FileResourceForm.js +2 -1
  65. package/lib/components/core/file_resource/FileResourceTable.js +14 -7
  66. package/lib/components/core/form/FormForm.js +42 -19
  67. package/lib/components/core/form/FormTable.js +13 -14
  68. package/lib/components/core/form_type/FormTypeForm.js +3 -0
  69. package/lib/components/core/i18n/Moment.js +1 -0
  70. package/lib/components/core/integration/IntegrationForm.js +232 -0
  71. package/lib/components/core/integration/IntegrationTable.js +142 -0
  72. package/lib/components/core/kapp/KappForm.js +18 -5
  73. package/lib/components/core/kapp/KappTable.js +3 -3
  74. package/lib/components/core/log/LogTable.js +1 -1
  75. package/lib/components/core/security_definition/SecurityDefinitionForm.js +48 -10
  76. package/lib/components/core/space/SpaceForm.js +17 -36
  77. package/lib/components/core/submission/DatastoreSubmissionTable.js +4 -4
  78. package/lib/components/core/submission/FormSubmissionTable.js +12 -7
  79. package/lib/components/core/submission/KappSubmissionTable.js +4 -4
  80. package/lib/components/core/submission/SubmissionActivityForm.js +79 -0
  81. package/lib/components/core/submission/SubmissionForm.js +15 -3
  82. package/lib/components/core/team/TeamTable.js +17 -7
  83. package/lib/components/core/translation/EntryTable.js +8 -7
  84. package/lib/components/core/user/UserForm.js +2 -0
  85. package/lib/components/core/user/UserTable.js +22 -22
  86. package/lib/components/core/webapi/WebApiForm.js +5 -2
  87. package/lib/components/core/webapi/WebApiTable.js +2 -2
  88. package/lib/components/core/webhook/WebhookForm.js +43 -33
  89. package/lib/components/core/webhook/WebhookTable.js +16 -16
  90. package/lib/components/core/webhook_job/WebhookJobTable.js +17 -6
  91. package/lib/components/form/Form.helpers.js +10 -4
  92. package/lib/components/form/Form.js +264 -171
  93. package/lib/components/form/Form.models.js +6 -1
  94. package/lib/components/form/FormState.js +9 -5
  95. package/lib/components/form/SimpleForm.js +2 -2
  96. package/lib/components/form/defaults/CodeField.js +44 -1
  97. package/lib/components/index.js +152 -3
  98. package/lib/components/integrator/connection/ConnectionForm.js +156 -0
  99. package/lib/components/integrator/connection/ConnectionTable.js +82 -0
  100. package/lib/components/integrator/connection/config_fields/http.js +570 -0
  101. package/lib/components/integrator/connection/config_fields/sql.js +123 -0
  102. package/lib/components/integrator/integrationTypes.js +120 -0
  103. package/lib/components/integrator/operation/OperationForm.js +148 -0
  104. package/lib/components/integrator/operation/OperationTable.js +62 -0
  105. package/lib/components/integrator/operation/config_fields/http.js +185 -0
  106. package/lib/components/integrator/operation/config_fields/sql.js +81 -0
  107. package/lib/components/system/SystemSecurityForm.js +1 -1
  108. package/lib/components/system/SystemTaskAdapterForm.js +9 -9
  109. package/lib/components/system/SystemUserForm.js +2 -0
  110. package/lib/components/system/helpers.js +123 -100
  111. package/lib/components/system/spaces/SystemSpaceForm.js +9 -37
  112. package/lib/components/system/spaces/SystemTenantForm.js +276 -104
  113. package/lib/components/system/spaces/SystemTenantMigrateForm.js +449 -0
  114. package/lib/components/system/spaces/SystemTenantTable.js +20 -16
  115. package/lib/components/table/Table.js +75 -15
  116. package/lib/components/table/Table.redux.js +297 -73
  117. package/lib/components/table/defaults/FilterControl.js +24 -0
  118. package/lib/components/table/defaults/index.js +2 -0
  119. package/lib/components/table/tests/Table.test.js +22 -22
  120. package/lib/components/table/tests/components.js +9 -2
  121. package/lib/components/task/builder/Connector.js +51 -41
  122. package/lib/components/task/builder/ConnectorForm.js +11 -7
  123. package/lib/components/task/builder/Node.js +31 -35
  124. package/lib/components/task/builder/NodeForm.js +93 -22
  125. package/lib/components/task/builder/NodeParametersForm.js +29 -17
  126. package/lib/components/task/builder/SvgCanvas.js +3 -17
  127. package/lib/components/task/builder/TaskDefinitionConfigForm.js +18 -50
  128. package/lib/components/task/builder/TreeBuilder.js +23 -3
  129. package/lib/components/task/builder/builder.redux.js +342 -197
  130. package/lib/components/task/builder/constants.js +10 -2
  131. package/lib/components/task/builder/helpers.js +231 -81
  132. package/lib/components/task/builder/models.js +7 -6
  133. package/lib/components/task/category/TaskCategoryTable.js +3 -3
  134. package/lib/components/task/common/UsageTable.js +9 -2
  135. package/lib/components/task/handlers/HandlerTable.js +44 -37
  136. package/lib/components/task/policy_rule/PolicyRuleTable.js +3 -3
  137. package/lib/components/task/runs/CreateManualTriggerForm.js +2 -0
  138. package/lib/components/task/runs/RunTable.js +10 -14
  139. package/lib/components/task/runs/RunTaskTable.js +1 -1
  140. package/lib/components/task/sources/SourceTable.js +2 -2
  141. package/lib/components/task/triggers/TriggerTable.js +2 -2
  142. package/lib/components/task/workflows/LinkedWorkflowTable.js +16 -11
  143. package/lib/components/task/workflows/WorkflowForm.js +27 -8
  144. package/lib/components/task/workflows/WorkflowTable.js +27 -26
  145. package/lib/helpers/index.js +307 -74
  146. package/lib/index.js +2 -1
  147. package/lib/saga.js +4 -4
  148. package/lib/store.js +2 -1
  149. package/package.json +7 -6
  150. package/proxyhelper.js +201 -176
  151. package/CHANGELOG.md +0 -94
@@ -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
  }];
@@ -49,15 +49,16 @@ var filterDataSources = function filterDataSources() {
49
49
  }
50
50
  };
51
51
  };
52
- var filters = function filters() {
53
- return function (_ref2) {
54
- var locales = _ref2.locales;
52
+ var filters = function filters(_ref2) {
53
+ var shared = _ref2.shared;
54
+ return function (_ref3) {
55
+ var locales = _ref3.locales;
55
56
  return [{
56
57
  name: 'locale',
57
58
  label: 'Locale',
58
59
  type: 'select',
59
- options: function options(_ref3) {
60
- var locales = _ref3.locales;
60
+ options: function options(_ref4) {
61
+ var locales = _ref4.locales;
61
62
  return locales && locales.map(function (loc) {
62
63
  return (0, _immutable.Map)({
63
64
  value: loc.get('code'),
@@ -65,7 +66,7 @@ var filters = function filters() {
65
66
  });
66
67
  });
67
68
  }
68
- }, {
69
+ }, !shared && {
69
70
  name: 'context',
70
71
  label: 'Context',
71
72
  type: 'text'
@@ -73,7 +74,7 @@ var filters = function filters() {
73
74
  name: 'key',
74
75
  label: 'Key',
75
76
  type: 'text'
76
- }];
77
+ }].filter(Boolean);
77
78
  };
78
79
  };
79
80
  var columns = [{
@@ -83,6 +83,8 @@ var fields = function fields(_ref3) {
83
83
  label: 'Username',
84
84
  type: 'text',
85
85
  required: true,
86
+ pattern: /^[^/&?=:%]*$/,
87
+ patternMessage: 'The characters / & ? = : % are not allowed.',
86
88
  enabled: !username,
87
89
  initialValue: (0, _immutable.get)(user, 'username') || ''
88
90
  }, {
@@ -52,10 +52,10 @@ var filters = function filters() {
52
52
  type: 'select',
53
53
  options: [{
54
54
  label: 'Yes',
55
- value: true
55
+ value: 'true'
56
56
  }, {
57
57
  label: 'No',
58
- value: false
58
+ value: 'false'
59
59
  }]
60
60
  }, {
61
61
  name: 'spaceAdmin',
@@ -63,10 +63,10 @@ var filters = function filters() {
63
63
  type: 'select',
64
64
  options: [{
65
65
  label: 'Yes',
66
- value: true
66
+ value: 'true'
67
67
  }, {
68
68
  label: 'No',
69
- value: false
69
+ value: 'false'
70
70
  }]
71
71
  }];
72
72
  };
@@ -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
  }, {
@@ -67,11 +67,39 @@ var handleSubmit = function handleSubmit(_ref2) {
67
67
  });
68
68
  };
69
69
  };
70
- var fields = function fields(_ref4) {
71
- var kappSlug = _ref4.kappSlug,
72
- name = _ref4.name;
73
- return function (_ref5) {
74
- var webhook = _ref5.webhook;
70
+ var generateCodeBindings = function generateCodeBindings(_ref4) {
71
+ var space = _ref4.space,
72
+ kapp = _ref4.kapp,
73
+ values = _ref4.values;
74
+ return (0, _helpers.buildCodeEditorBindings)({
75
+ space: {
76
+ attributeDefinitions: space === null || space === void 0 ? void 0 : space.get('spaceAttributeDefinitions')
77
+ },
78
+ user: values.get('type') === 'User' && {
79
+ attributeDefinitions: space === null || space === void 0 ? void 0 : space.get('userAttributeDefinitions'),
80
+ profileAttributeDefinitions: space === null || space === void 0 ? void 0 : space.get('userProfileAttributeDefinitions')
81
+ },
82
+ team: values.get('type') === 'Team' && {
83
+ attributeDefinitions: space === null || space === void 0 ? void 0 : space.get('teamAttributeDefinitions')
84
+ },
85
+ kapp: ['Form', 'Submission'].includes(values.get('type')) && {
86
+ attributeDefinitions: kapp === null || kapp === void 0 ? void 0 : kapp.get('kappAttributeDefinitions')
87
+ },
88
+ form: ['Form', 'Submission'].includes(values.get('type')) && {
89
+ attributeDefinitions: kapp === null || kapp === void 0 ? void 0 : kapp.get('formAttributeDefinitions')
90
+ },
91
+ submission: values.get('type') === 'Submission' && {
92
+ detailed: true
93
+ },
94
+ values: values.get('type') === 'Submission' && (kapp === null || kapp === void 0 ? void 0 : kapp.get('fields').size) > 0 && {
95
+ data: kapp.get('fields')
96
+ }
97
+ });
98
+ };
99
+ var fields = function fields(_ref5) {
100
+ var name = _ref5.name;
101
+ return function (_ref6) {
102
+ var webhook = _ref6.webhook;
75
103
  return (!name || webhook) && [{
76
104
  name: 'name',
77
105
  label: 'Name',
@@ -86,8 +114,8 @@ var fields = function fields(_ref4) {
86
114
  required: true,
87
115
  initialValue: webhook ? webhook.get('type') : '',
88
116
  helpText: 'Where the webhook is triggered from.',
89
- options: function options(_ref6) {
90
- var events = _ref6.events;
117
+ options: function options(_ref7) {
118
+ var events = _ref7.events;
91
119
  return events ? events.keySeq().sort().map(function (type) {
92
120
  return (0, _immutable.Map)({
93
121
  label: type,
@@ -95,8 +123,8 @@ var fields = function fields(_ref4) {
95
123
  });
96
124
  }) : (0, _immutable.List)();
97
125
  },
98
- onChange: function onChange(bindings, _ref7) {
99
- var setValue = _ref7.setValue;
126
+ onChange: function onChange(bindings, _ref8) {
127
+ var setValue = _ref8.setValue;
100
128
  setValue('event', '');
101
129
  }
102
130
  }, {
@@ -106,9 +134,9 @@ var fields = function fields(_ref4) {
106
134
  required: true,
107
135
  initialValue: webhook ? webhook.get('event') : '',
108
136
  helpText: 'The event triggering the webhook.',
109
- options: function options(_ref8) {
110
- var values = _ref8.values,
111
- events = _ref8.events;
137
+ options: function options(_ref9) {
138
+ var values = _ref9.values,
139
+ events = _ref9.events;
112
140
  return values && events ? events.get(values.get('type'), (0, _immutable.List)()).map(function (event) {
113
141
  return (0, _immutable.Map)({
114
142
  label: event,
@@ -120,19 +148,10 @@ var fields = function fields(_ref4) {
120
148
  name: 'filter',
121
149
  label: 'Filter',
122
150
  type: 'code',
123
- language: 'js',
151
+ language: 'js-expression',
124
152
  initialValue: webhook ? webhook.get('filter') : '',
125
153
  helpText: 'Optional parameters limiting the events than can trigger a webhook. Click the </> button to see available insert values.',
126
- options: function options(_ref9) {
127
- var space = _ref9.space,
128
- kapp = _ref9.kapp,
129
- values = _ref9.values;
130
- return (0, _helpers.buildBindings)({
131
- space: space,
132
- kapp: kapp,
133
- scope: values.get('type')
134
- });
135
- }
154
+ options: generateCodeBindings
136
155
  }, {
137
156
  name: 'url',
138
157
  label: 'URL',
@@ -141,16 +160,7 @@ var fields = function fields(_ref4) {
141
160
  required: true,
142
161
  initialValue: webhook ? webhook.get('url') : '',
143
162
  helpText: 'Location of the platform workflow or external system to pass information to. Click the </> button to see available insert values.',
144
- options: function options(_ref10) {
145
- var space = _ref10.space,
146
- kapp = _ref10.kapp,
147
- values = _ref10.values;
148
- return (0, _helpers.buildBindings)({
149
- space: space,
150
- kapp: kapp,
151
- scope: values.get('type')
152
- });
153
- }
163
+ options: generateCodeBindings
154
164
  }];
155
165
  };
156
166
  };
@@ -87,12 +87,13 @@ var filters = function filters() {
87
87
  };
88
88
  };
89
89
  var columns = [{
90
- value: 'createdAt',
91
- title: 'Created',
92
- toggleable: true
90
+ value: 'name',
91
+ title: 'Name',
92
+ toggleable: false,
93
+ columnOrder: 'first'
93
94
  }, {
94
- value: 'createdBy',
95
- title: 'Created By',
95
+ value: 'type',
96
+ title: 'Type',
96
97
  toggleable: true
97
98
  }, {
98
99
  value: 'event',
@@ -103,26 +104,25 @@ var columns = [{
103
104
  title: 'Filter',
104
105
  toggleable: true
105
106
  }, {
106
- value: 'name',
107
- title: 'Name',
108
- toggleable: false,
109
- columnOrder: 'first'
107
+ value: 'url',
108
+ title: 'URL',
109
+ toggleable: true
110
110
  }, {
111
- value: 'type',
112
- title: 'Type',
111
+ value: 'createdAt',
112
+ title: 'Created At',
113
+ toggleable: true
114
+ }, {
115
+ value: 'createdBy',
116
+ title: 'Created By',
113
117
  toggleable: true
114
118
  }, {
115
119
  value: 'updatedAt',
116
- title: 'Updated',
120
+ title: 'Updated At',
117
121
  toggleable: true
118
122
  }, {
119
123
  value: 'updatedBy',
120
124
  title: 'Updated By',
121
125
  toggleable: true
122
- }, {
123
- value: 'url',
124
- title: 'URL',
125
- toggleable: true
126
126
  }];
127
127
  var WebhookTable = exports.WebhookTable = (0, _Table.generateTable)({
128
128
  tableOptions: ['scope', 'kappSlug'],
@@ -7,10 +7,16 @@ exports.WebhookJobTable = void 0;
7
7
  var _apis = require("../../../apis");
8
8
  var _Table = require("../../table/Table");
9
9
  var _immutable = require("immutable");
10
+ var WORKFLOW_JOB_STATUSES = [{
11
+ label: 'Failed',
12
+ value: 'failed'
13
+ }, {
14
+ label: 'Pending',
15
+ value: 'queued'
16
+ }];
10
17
  var dataSource = function dataSource(_ref) {
11
18
  var scope = _ref.scope,
12
- kappSlug = _ref.kappSlug,
13
- status = _ref.status;
19
+ kappSlug = _ref.kappSlug;
14
20
  return {
15
21
  fn: _apis.fetchWebhookJobs,
16
22
  params: function params(paramData) {
@@ -18,7 +24,7 @@ var dataSource = function dataSource(_ref) {
18
24
  include: 'details',
19
25
  scope: scope,
20
26
  kappSlug: kappSlug,
21
- status: status,
27
+ status: paramData.filters.get('status') || 'all',
22
28
  limit: paramData.pageSize,
23
29
  pageToken: paramData.nextPageToken,
24
30
  webhook: paramData.filters.get('name') || undefined // required by the API, can't pass empty webhook= param
@@ -66,12 +72,17 @@ var filters = function filters() {
66
72
  });
67
73
  }) : (0, _immutable.List)();
68
74
  }
75
+ }, {
76
+ name: 'status',
77
+ label: 'Status',
78
+ type: 'select',
79
+ options: WORKFLOW_JOB_STATUSES
69
80
  }];
70
81
  };
71
82
  };
72
83
  var columns = [{
73
84
  value: 'createdAt',
74
- title: 'Created',
85
+ title: 'Created At',
75
86
  toggleable: true
76
87
  }, {
77
88
  value: 'createdBy',
@@ -132,7 +143,7 @@ var columns = [{
132
143
  toggleable: true
133
144
  }, {
134
145
  value: 'updatedAt',
135
- title: 'Updated',
146
+ title: 'Updated At',
136
147
  toggleable: true
137
148
  }, {
138
149
  value: 'updatedBy',
@@ -148,7 +159,7 @@ var columns = [{
148
159
  toggleable: true
149
160
  }];
150
161
  var WebhookJobTable = exports.WebhookJobTable = (0, _Table.generateTable)({
151
- tableOptions: ['scope', 'kappSlug', 'status'],
162
+ tableOptions: ['scope', 'kappSlug'],
152
163
  columns: columns,
153
164
  filters: filters,
154
165
  filterDataSources: filterDataSources,
@@ -64,7 +64,8 @@ var initializeValue = exports.initializeValue = function initializeValue(type) {
64
64
  };
65
65
  var createField = exports.createField = function createField(formKey) {
66
66
  return function (_ref2) {
67
- var constraint = _ref2.constraint,
67
+ var bindings = _ref2.bindings,
68
+ constraint = _ref2.constraint,
68
69
  constraintMessage = _ref2.constraintMessage,
69
70
  enabled = _ref2.enabled,
70
71
  form = _ref2.form,
@@ -93,8 +94,10 @@ var createField = exports.createField = function createField(formKey) {
93
94
  renderAttributes: (0, _immutable.fromJS)(renderAttributes),
94
95
  value: initializeValue(type, initialValue),
95
96
  // Options supporting conditional expressions,
97
+ bindings: typeof bindings === 'function' ? (0, _immutable.Map)() : (0, _immutable.fromJS)(bindings),
96
98
  enabled: typeof enabled === 'function' ? false : enabled,
97
99
  label: typeof label === 'function' ? '' : label,
100
+ language: typeof language === 'function' ? 'text' : language,
98
101
  options: typeof options === 'function' ? (0, _immutable.List)() : (0, _immutable.fromJS)(options),
99
102
  placeholder: typeof placeholder === 'function' ? '' : placeholder,
100
103
  required: typeof required === 'function' ? false : required,
@@ -102,8 +105,10 @@ var createField = exports.createField = function createField(formKey) {
102
105
  "transient": typeof _transient === 'function' ? false : _transient,
103
106
  visible: typeof visible === 'function' ? false : visible,
104
107
  functions: (0, _immutable.Map)({
108
+ bindings: typeof bindings === 'function' ? bindings : null,
105
109
  enabled: typeof enabled === 'function' ? enabled : null,
106
110
  label: typeof label === 'function' ? label : null,
111
+ language: typeof language === 'function' ? language : null,
107
112
  options: typeof options === 'function' ? options : null,
108
113
  placeholder: typeof placeholder === 'function' ? placeholder : null,
109
114
  required: typeof required === 'function' ? required : null,
@@ -132,7 +137,6 @@ var createField = exports.createField = function createField(formKey) {
132
137
  constraintMessage: constraintMessage,
133
138
  form: form,
134
139
  helpText: helpText,
135
- language: language,
136
140
  name: name,
137
141
  onChange: onChange,
138
142
  pattern: pattern,
@@ -147,11 +151,12 @@ var createDataSource = exports.createDataSource = function createDataSource(_ref
147
151
  var _DataSource;
148
152
  var fn = _ref3.fn,
149
153
  params = _ref3.params,
150
- transform = _ref3.transform;
154
+ transform = _ref3.transform,
155
+ errorTransform = _ref3.errorTransform;
151
156
  var paramProp = typeof params === 'function' ? 'paramsFn' : 'params';
152
157
  return (0, _Form.DataSource)((_DataSource = {
153
158
  fn: fn
154
- }, (0, _defineProperty2["default"])(_DataSource, paramProp, params), (0, _defineProperty2["default"])(_DataSource, "transform", transform), _DataSource));
159
+ }, (0, _defineProperty2["default"])(_DataSource, paramProp, params), (0, _defineProperty2["default"])(_DataSource, "transform", transform), (0, _defineProperty2["default"])(_DataSource, "errorTransform", errorTransform), _DataSource));
155
160
  };
156
161
  var createFormState = exports.createFormState = function createFormState(_ref4) {
157
162
  var addDataSources = _ref4.addDataSources,
@@ -309,6 +314,7 @@ var getComponentName = exports.getComponentName = function getComponentName(fiel
309
314
  };
310
315
  var getFieldComponentProps = exports.getFieldComponentProps = function getFieldComponentProps(field, readOnly) {
311
316
  return {
317
+ bindings: field.bindings,
312
318
  dirty: field.dirty,
313
319
  enabled: readOnly ? false : field.enabled,
314
320
  errors: field.errors,