@kineticdata/react 6.0.5 → 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 -94
  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 +18 -5
  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 +3 -22
  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 +24 -3
  82. package/lib/components/task/builder/builder.redux.js +310 -185
  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 +7 -6
  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 +27 -8
  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
@@ -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,