@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.
- package/README.md +110 -110
- package/assets/task/icons/defer.svg +12 -12
- package/assets/task/icons/drag-handle.svg +3 -3
- package/assets/task/icons/filter.svg +11 -11
- package/assets/task/icons/loop.svg +10 -10
- package/assets/task/icons/plus_small.svg +5 -5
- package/assets/task/icons/routine.svg +9 -9
- package/assets/task/icons/scale-minus.svg +11 -11
- package/assets/task/icons/scale-plus.svg +13 -13
- package/assets/task/icons/start.svg +11 -11
- package/assets/task/icons/stop.svg +8 -8
- package/lib/apis/core/activity.js +4 -4
- package/lib/apis/core/attributeDefinitions.js +64 -6
- package/lib/apis/core/attributeDefinitions.test.js +7 -4
- package/lib/apis/core/authentication.js +12 -1
- package/lib/apis/core/bridgeModels.test.js +46 -23
- package/lib/apis/core/bridgedresources.js +41 -41
- package/lib/apis/core/fileResources.js +2 -6
- package/lib/apis/core/forms.js +51 -2
- package/lib/apis/core/forms.test.js +32 -19
- package/lib/apis/core/integrations.js +61 -0
- package/lib/apis/core/kapps.js +49 -0
- package/lib/apis/core/kapps.test.js +16 -10
- package/lib/apis/core/notices.js +7 -0
- package/lib/apis/core/securityPolicyDefinitions.test.js +7 -4
- package/lib/apis/core/space.js +18 -0
- package/lib/apis/core/space.test.js +16 -10
- package/lib/apis/core/submissionActivities.js +38 -0
- package/lib/apis/core/submissions.js +114 -15
- package/lib/apis/core/translations.test.js +126 -55
- package/lib/apis/core/userPreferences.js +59 -0
- package/lib/apis/core/webApis.js +32 -2
- package/lib/apis/core/webhooks.test.js +7 -4
- package/lib/apis/http.js +30 -5
- package/lib/apis/index.js +48 -0
- package/lib/apis/integrator/index.js +337 -0
- package/lib/apis/system/index.js +64 -12
- package/lib/apis/task/index.js +9 -2
- package/lib/components/agent/filestore/FilestoreForm.js +1 -1
- package/lib/components/common/AttributeSelect.js +11 -2
- package/lib/components/common/BridgeSelect.js +3 -1
- package/lib/components/common/ConnectionSelect.js +73 -0
- package/lib/components/common/FormSelect.js +3 -1
- package/lib/components/common/NodeSelect.js +1 -0
- package/lib/components/common/StaticSelect.js +16 -6
- package/lib/components/common/TableInput.js +4 -1
- package/lib/components/common/TeamSelect.js +3 -1
- package/lib/components/common/ToastContainer.js +34 -10
- package/lib/components/common/Typeahead.js +62 -23
- package/lib/components/common/UserSelect.js +3 -1
- package/lib/components/common/authentication/AuthenticationContainer.js +121 -55
- package/lib/components/common/authentication/RequestInterceptor.js +1 -1
- package/lib/components/common/preferences/PreferencesProvider.js +461 -0
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +10 -7
- package/lib/components/core/bridge_model/BridgeModelTable.js +19 -0
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +6 -9
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +0 -4
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +7 -10
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +2 -15
- package/lib/components/core/category/CategoryForm.js +4 -1
- package/lib/components/core/category/CategoryTable.js +2 -2
- package/lib/components/core/core_form/CoreForm.js +18 -10
- package/lib/components/core/field_definition/FieldDefinitionForm.js +3 -3
- package/lib/components/core/file_resource/FileResourceForm.js +2 -1
- package/lib/components/core/file_resource/FileResourceTable.js +14 -7
- package/lib/components/core/form/FormForm.js +42 -19
- package/lib/components/core/form/FormTable.js +13 -14
- package/lib/components/core/form_type/FormTypeForm.js +3 -0
- package/lib/components/core/i18n/Moment.js +1 -0
- package/lib/components/core/integration/IntegrationForm.js +232 -0
- package/lib/components/core/integration/IntegrationTable.js +142 -0
- package/lib/components/core/kapp/KappForm.js +18 -5
- package/lib/components/core/kapp/KappTable.js +3 -3
- package/lib/components/core/log/LogTable.js +1 -1
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +48 -10
- package/lib/components/core/space/SpaceForm.js +17 -36
- package/lib/components/core/submission/DatastoreSubmissionTable.js +4 -4
- package/lib/components/core/submission/FormSubmissionTable.js +12 -7
- package/lib/components/core/submission/KappSubmissionTable.js +4 -4
- package/lib/components/core/submission/SubmissionActivityForm.js +79 -0
- package/lib/components/core/submission/SubmissionForm.js +15 -3
- package/lib/components/core/team/TeamTable.js +17 -7
- package/lib/components/core/translation/EntryTable.js +8 -7
- package/lib/components/core/user/UserForm.js +2 -0
- package/lib/components/core/user/UserTable.js +22 -22
- package/lib/components/core/webapi/WebApiForm.js +5 -2
- package/lib/components/core/webapi/WebApiTable.js +2 -2
- package/lib/components/core/webhook/WebhookForm.js +43 -33
- package/lib/components/core/webhook/WebhookTable.js +16 -16
- package/lib/components/core/webhook_job/WebhookJobTable.js +17 -6
- package/lib/components/form/Form.helpers.js +10 -4
- package/lib/components/form/Form.js +264 -171
- package/lib/components/form/Form.models.js +6 -1
- package/lib/components/form/FormState.js +9 -5
- package/lib/components/form/SimpleForm.js +2 -2
- package/lib/components/form/defaults/CodeField.js +44 -1
- package/lib/components/index.js +152 -3
- package/lib/components/integrator/connection/ConnectionForm.js +156 -0
- package/lib/components/integrator/connection/ConnectionTable.js +82 -0
- package/lib/components/integrator/connection/config_fields/http.js +570 -0
- package/lib/components/integrator/connection/config_fields/sql.js +123 -0
- package/lib/components/integrator/integrationTypes.js +120 -0
- package/lib/components/integrator/operation/OperationForm.js +148 -0
- package/lib/components/integrator/operation/OperationTable.js +62 -0
- package/lib/components/integrator/operation/config_fields/http.js +185 -0
- package/lib/components/integrator/operation/config_fields/sql.js +81 -0
- package/lib/components/system/SystemSecurityForm.js +1 -1
- package/lib/components/system/SystemTaskAdapterForm.js +9 -9
- package/lib/components/system/SystemUserForm.js +2 -0
- package/lib/components/system/helpers.js +123 -100
- package/lib/components/system/spaces/SystemSpaceForm.js +9 -37
- package/lib/components/system/spaces/SystemTenantForm.js +276 -104
- package/lib/components/system/spaces/SystemTenantMigrateForm.js +449 -0
- package/lib/components/system/spaces/SystemTenantTable.js +20 -16
- package/lib/components/table/Table.js +75 -15
- package/lib/components/table/Table.redux.js +297 -73
- package/lib/components/table/defaults/FilterControl.js +24 -0
- package/lib/components/table/defaults/index.js +2 -0
- package/lib/components/table/tests/Table.test.js +22 -22
- package/lib/components/table/tests/components.js +9 -2
- package/lib/components/task/builder/Connector.js +51 -41
- package/lib/components/task/builder/ConnectorForm.js +11 -7
- package/lib/components/task/builder/Node.js +31 -35
- package/lib/components/task/builder/NodeForm.js +93 -22
- package/lib/components/task/builder/NodeParametersForm.js +29 -17
- package/lib/components/task/builder/SvgCanvas.js +3 -17
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +18 -50
- package/lib/components/task/builder/TreeBuilder.js +23 -3
- package/lib/components/task/builder/builder.redux.js +342 -197
- package/lib/components/task/builder/constants.js +10 -2
- package/lib/components/task/builder/helpers.js +231 -81
- package/lib/components/task/builder/models.js +7 -6
- package/lib/components/task/category/TaskCategoryTable.js +3 -3
- package/lib/components/task/common/UsageTable.js +9 -2
- package/lib/components/task/handlers/HandlerTable.js +44 -37
- package/lib/components/task/policy_rule/PolicyRuleTable.js +3 -3
- package/lib/components/task/runs/CreateManualTriggerForm.js +2 -0
- package/lib/components/task/runs/RunTable.js +10 -14
- package/lib/components/task/runs/RunTaskTable.js +1 -1
- package/lib/components/task/sources/SourceTable.js +2 -2
- package/lib/components/task/triggers/TriggerTable.js +2 -2
- package/lib/components/task/workflows/LinkedWorkflowTable.js +16 -11
- package/lib/components/task/workflows/WorkflowForm.js +27 -8
- package/lib/components/task/workflows/WorkflowTable.js +27 -26
- package/lib/helpers/index.js +307 -74
- package/lib/index.js +2 -1
- package/lib/saga.js +4 -4
- package/lib/store.js +2 -1
- package/package.json +7 -6
- package/proxyhelper.js +201 -176
- package/CHANGELOG.md +0 -94
|
@@ -12,7 +12,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inhe
|
|
|
12
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createSuper"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _lodashEs = require("lodash-es");
|
|
15
|
-
var _helpers = require("./helpers");
|
|
16
15
|
var constants = _interopRequireWildcard(require("./constants"));
|
|
17
16
|
var _models = require("./models");
|
|
18
17
|
var SvgCanvas = exports.SvgCanvas = /*#__PURE__*/function (_Component) {
|
|
@@ -218,22 +217,9 @@ var SvgCanvas = exports.SvgCanvas = /*#__PURE__*/function (_Component) {
|
|
|
218
217
|
scale = _this$viewport.scale,
|
|
219
218
|
x = _this$viewport.x,
|
|
220
219
|
y = _this$viewport.y;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
// `translate(${x} ${y}) scale(${scale})`,
|
|
225
|
-
// );
|
|
226
|
-
this.transformer.current.transform = "translate(".concat(x, " ").concat(y, ") scale(").concat(scale, ")");
|
|
227
|
-
} else {
|
|
228
|
-
var transition = duration ? "transform ".concat(duration, "ms ").concat(ease) : '';
|
|
229
|
-
// this.transformer.current.setAttribute(
|
|
230
|
-
// 'style',
|
|
231
|
-
// `transform: translate(${x}px, ${y}px) scale(${scale});${transition}`,
|
|
232
|
-
// );
|
|
233
|
-
|
|
234
|
-
this.transformer.current.style.transform = "translate(".concat(x, "px, ").concat(y, "px) scale(").concat(scale, ")");
|
|
235
|
-
this.transformer.current.style.transition = transition;
|
|
236
|
-
}
|
|
220
|
+
var transition = duration ? "transform ".concat(duration, "ms ").concat(ease) : '';
|
|
221
|
+
this.transformer.current.style.transform = "translate(".concat(x, "px, ").concat(y, "px) scale(").concat(scale, ")");
|
|
222
|
+
this.transformer.current.style.transition = transition;
|
|
237
223
|
if (this.viewport.scale < 0.26 && this.transformer.current.className.baseVal !== 'min-detail') {
|
|
238
224
|
this.transformer.current.className.baseVal = 'min-detail';
|
|
239
225
|
}
|
|
@@ -1,50 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
6
|
+
exports.TaskDefinitionConfigForm = void 0;
|
|
10
7
|
var _immutable = require("immutable");
|
|
11
8
|
var _Form = require("../../form/Form");
|
|
12
9
|
var _apis = require("../../../apis");
|
|
13
|
-
var
|
|
14
|
-
if (node.definitionId === 'system_submission_create_v1') {
|
|
15
|
-
return !['kappSlug', 'formSlug'].includes(parameter.id);
|
|
16
|
-
} else {
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
var generateTaskDefinition = exports.generateTaskDefinition = function generateTaskDefinition(taskDefinition) {
|
|
21
|
-
if (taskDefinition && taskDefinition.definitionName === 'system_submission_create') {
|
|
22
|
-
return function (_ref) {
|
|
23
|
-
var form = _ref.form;
|
|
24
|
-
return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, taskDefinition), {}, {
|
|
25
|
-
parameters: [].concat((0, _toConsumableArray2["default"])(taskDefinition.parameters.map(function (parameter) {
|
|
26
|
-
return parameter.id === 'kappSlug' ? (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, parameter), {}, {
|
|
27
|
-
defaultValue: form.kapp.slug
|
|
28
|
-
}) : parameter.id === 'formSlug' ? (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, parameter), {}, {
|
|
29
|
-
defaultValue: form.slug
|
|
30
|
-
}) : parameter;
|
|
31
|
-
})), (0, _toConsumableArray2["default"])(form.fields.map(function (field) {
|
|
32
|
-
return {
|
|
33
|
-
name: field.name,
|
|
34
|
-
defaultValue: '',
|
|
35
|
-
dependsOnId: null,
|
|
36
|
-
dependsOnValue: null,
|
|
37
|
-
description: '',
|
|
38
|
-
id: "values.".concat(field.name),
|
|
39
|
-
required: false
|
|
40
|
-
};
|
|
41
|
-
})))
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
} else {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
10
|
+
var _helpers = require("./helpers");
|
|
48
11
|
var dataSources = function dataSources() {
|
|
49
12
|
return {
|
|
50
13
|
kapps: {
|
|
@@ -63,8 +26,8 @@ var fields = function fields() {
|
|
|
63
26
|
label: 'Kapp',
|
|
64
27
|
type: 'select',
|
|
65
28
|
required: true,
|
|
66
|
-
options: function options(
|
|
67
|
-
var kapps =
|
|
29
|
+
options: function options(_ref) {
|
|
30
|
+
var kapps = _ref.kapps;
|
|
68
31
|
return kapps ? kapps.map(function (kapp) {
|
|
69
32
|
return (0, _immutable.Map)({
|
|
70
33
|
value: kapp.get('slug'),
|
|
@@ -72,8 +35,8 @@ var fields = function fields() {
|
|
|
72
35
|
});
|
|
73
36
|
}) : (0, _immutable.List)();
|
|
74
37
|
},
|
|
75
|
-
onChange: function onChange(
|
|
76
|
-
var values =
|
|
38
|
+
onChange: function onChange(_ref2, actions) {
|
|
39
|
+
var values = _ref2.values;
|
|
77
40
|
if (!!values.get('form')) {
|
|
78
41
|
actions.setValue('form', null);
|
|
79
42
|
}
|
|
@@ -83,12 +46,12 @@ var fields = function fields() {
|
|
|
83
46
|
label: 'Form',
|
|
84
47
|
type: 'form',
|
|
85
48
|
required: true,
|
|
86
|
-
enabled: function enabled(
|
|
87
|
-
var values =
|
|
49
|
+
enabled: function enabled(_ref3) {
|
|
50
|
+
var values = _ref3.values;
|
|
88
51
|
return values.get('kappSlug') !== '';
|
|
89
52
|
},
|
|
90
|
-
search: function search(
|
|
91
|
-
var values =
|
|
53
|
+
search: function search(_ref4) {
|
|
54
|
+
var values = _ref4.values;
|
|
92
55
|
return values.get('kappSlug') !== '' ? {
|
|
93
56
|
kappSlug: values.get('kappSlug')
|
|
94
57
|
} : {};
|
|
@@ -96,14 +59,19 @@ var fields = function fields() {
|
|
|
96
59
|
}];
|
|
97
60
|
};
|
|
98
61
|
};
|
|
99
|
-
var handleSubmit = function handleSubmit(
|
|
100
|
-
var taskDefinition =
|
|
62
|
+
var handleSubmit = function handleSubmit(_ref5) {
|
|
63
|
+
var taskDefinition = _ref5.taskDefinition;
|
|
101
64
|
return function (values) {
|
|
102
65
|
return (0, _apis.fetchForm)({
|
|
103
66
|
kappSlug: values.get('kappSlug'),
|
|
104
67
|
formSlug: values.getIn(['form', 'slug'], ''),
|
|
105
68
|
include: 'fields,kapp'
|
|
106
|
-
}).then(
|
|
69
|
+
}).then(function (_ref6) {
|
|
70
|
+
var form = _ref6.form;
|
|
71
|
+
return (0, _helpers.generateSubmissionCreateTaskDefinition)(taskDefinition, {
|
|
72
|
+
form: form
|
|
73
|
+
});
|
|
74
|
+
});
|
|
107
75
|
};
|
|
108
76
|
};
|
|
109
77
|
var TaskDefinitionConfigForm = exports.TaskDefinitionConfigForm = (0, _Form.generateForm)({
|
|
@@ -146,7 +146,7 @@ var TreeBuilderComponent = exports.TreeBuilderComponent = /*#__PURE__*/function
|
|
|
146
146
|
_this.confirmNewNode = function () {
|
|
147
147
|
if ((0, _lodashEs.isFunction)(_this.props.onNew)) {
|
|
148
148
|
setTimeout(function () {
|
|
149
|
-
_this.props.onNew((0, _helpers.addNewTask)(_this.props.treeKey, _this.props.treeBuilderState.tree, _this.state.newNodeParent, _this.newNode.current.position, function () {
|
|
149
|
+
_this.props.onNew((0, _helpers.addNewTask)(_this.props.treeKey, _this.props.treeBuilderState.tree, _this.props.treeBuilderState.connections, _this.state.newNodeParent, _this.newNode.current.position, function () {
|
|
150
150
|
return _this.setState({
|
|
151
151
|
newConnector: null,
|
|
152
152
|
newNode: null
|
|
@@ -271,7 +271,8 @@ var TreeBuilderComponent = exports.TreeBuilderComponent = /*#__PURE__*/function
|
|
|
271
271
|
highlightType = _ref4[0],
|
|
272
272
|
highlightId = _ref4[1];
|
|
273
273
|
if (treeBuilderState) {
|
|
274
|
-
var
|
|
274
|
+
var connections = treeBuilderState.connections,
|
|
275
|
+
error = treeBuilderState.error,
|
|
275
276
|
lastSave = treeBuilderState.lastSave,
|
|
276
277
|
lastWebApi = treeBuilderState.lastWebApi,
|
|
277
278
|
redoStack = treeBuilderState.redoStack,
|
|
@@ -320,6 +321,17 @@ var TreeBuilderComponent = exports.TreeBuilderComponent = /*#__PURE__*/function
|
|
|
320
321
|
values: values
|
|
321
322
|
});
|
|
322
323
|
},
|
|
324
|
+
reloadConnections: function reloadConnections() {
|
|
325
|
+
return (0, _store.dispatch)('TREE_LOAD_CONNECTIONS', {
|
|
326
|
+
treeKey: treeKey
|
|
327
|
+
});
|
|
328
|
+
},
|
|
329
|
+
reloadOperations: function reloadOperations() {
|
|
330
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
331
|
+
return (0, _store.dispatch)('TREE_LOAD_OPERATIONS', (0, _objectSpread2["default"])({
|
|
332
|
+
treeKey: treeKey
|
|
333
|
+
}, options));
|
|
334
|
+
},
|
|
323
335
|
save: function save(_ref5) {
|
|
324
336
|
var _ref5$overwrite = _ref5.overwrite,
|
|
325
337
|
overwrite = _ref5$overwrite === void 0 ? false : _ref5$overwrite,
|
|
@@ -354,6 +366,7 @@ var TreeBuilderComponent = exports.TreeBuilderComponent = /*#__PURE__*/function
|
|
|
354
366
|
return _this2.canvasRef.current.zoomOut();
|
|
355
367
|
}
|
|
356
368
|
},
|
|
369
|
+
connections: connections,
|
|
357
370
|
dirty: this.isDirty(treeBuilderState),
|
|
358
371
|
error: error,
|
|
359
372
|
lastTree: lastSave,
|
|
@@ -400,6 +413,7 @@ var TreeBuilderComponent = exports.TreeBuilderComponent = /*#__PURE__*/function
|
|
|
400
413
|
var nodeId = _ref7.nodeId;
|
|
401
414
|
return nodeId === node.id;
|
|
402
415
|
}),
|
|
416
|
+
missingIntegration: (0, _helpers.isNodeMissingIntegration)(node, connections),
|
|
403
417
|
onSelect: _this2.props.onSelectNode,
|
|
404
418
|
tasks: tasks,
|
|
405
419
|
tree: tree
|
|
@@ -426,4 +440,10 @@ var mapStateToProps = function mapStateToProps(state, props) {
|
|
|
426
440
|
kappSlug: state.getIn(['trees', props.treeKey, 'kappSlug'])
|
|
427
441
|
};
|
|
428
442
|
};
|
|
429
|
-
var TreeBuilder = exports.TreeBuilder = (0, _store.connect)(mapStateToProps)(TreeBuilderComponent);
|
|
443
|
+
var TreeBuilder = exports.TreeBuilder = (0, _store.connect)(mapStateToProps)(TreeBuilderComponent);
|
|
444
|
+
TreeBuilder.ADVANCED_HANDLERS = {
|
|
445
|
+
INTEGRATION_NAME: constants.ADVANCED_HANDLER_NAME_INTEGRATION,
|
|
446
|
+
generateIntegrationTaskDefinition: _helpers.generateIntegrationTaskDefinition,
|
|
447
|
+
SUBMISSION_CREATE_NAME: constants.ADVANCED_HANDLER_NAME_SUBMISSION_CREATE,
|
|
448
|
+
generateSubmissionCreateTaskDefinition: _helpers.generateSubmissionCreateTaskDefinition
|
|
449
|
+
};
|