@kineticdata/react 6.0.1 → 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.
- package/lib/apis/agent/adapters.js +2 -3
- package/lib/apis/agent/bridges.js +7 -13
- package/lib/apis/agent/handlers.js +7 -13
- package/lib/apis/core/activity.js +2 -3
- package/lib/apis/core/attributeDefinitions.js +6 -11
- package/lib/apis/core/attributeDefinitions.test.js +201 -213
- package/lib/apis/core/authentication.js +74 -84
- package/lib/apis/core/backgroundJobs.js +5 -9
- package/lib/apis/core/bridgeModelAttributeMappings.js +5 -10
- package/lib/apis/core/bridgeModelAttributes.js +6 -11
- package/lib/apis/core/bridgeModelMappings.js +5 -10
- package/lib/apis/core/bridgeModelQualificationMappings.js +5 -10
- package/lib/apis/core/bridgeModelQualifications.js +5 -10
- package/lib/apis/core/bridgeModels.js +7 -13
- package/lib/apis/core/bridgeModels.test.js +313 -333
- package/lib/apis/core/bridgedresources.js +7 -13
- package/lib/apis/core/categories.js +6 -11
- package/lib/apis/core/fileResources.js +5 -10
- package/lib/apis/core/filestores.js +5 -10
- package/lib/apis/core/formTypes.js +6 -11
- package/lib/apis/core/forms.js +6 -11
- package/lib/apis/core/forms.test.js +201 -213
- package/lib/apis/core/kapps.js +6 -11
- package/lib/apis/core/kapps.test.js +122 -130
- package/lib/apis/core/logs.js +3 -5
- package/lib/apis/core/memberships.js +3 -5
- package/lib/apis/core/meta.js +6 -11
- package/lib/apis/core/notices.js +2 -3
- package/lib/apis/core/oauthClients.js +6 -11
- package/lib/apis/core/platformComponents.js +10 -19
- package/lib/apis/core/platformItems.js +2 -3
- package/lib/apis/core/profile.js +3 -5
- package/lib/apis/core/securityPolicyDefinitions.js +6 -11
- package/lib/apis/core/securityPolicyDefinitions.test.js +254 -268
- package/lib/apis/core/space.js +3 -5
- package/lib/apis/core/space.test.js +106 -114
- package/lib/apis/core/submissions.js +17 -33
- package/lib/apis/core/teams.js +6 -11
- package/lib/apis/core/translations.js +18 -35
- package/lib/apis/core/translations.test.js +1343 -1437
- package/lib/apis/core/users.js +6 -11
- package/lib/apis/core/version.js +2 -3
- package/lib/apis/core/webApis.js +5 -10
- package/lib/apis/core/webhooks.js +6 -11
- package/lib/apis/core/webhooks.test.js +243 -257
- package/lib/apis/core/webhooksJobs.js +3 -5
- package/lib/apis/core/workflows.js +7 -13
- package/lib/apis/http.js +16 -31
- package/lib/apis/system/index.js +46 -91
- package/lib/apis/task/index.js +60 -119
- package/lib/components/agent/bridge/BridgeForm.js +1 -2
- package/lib/components/agent/bridge/BridgeTable.js +1 -2
- package/lib/components/agent/filestore/FilestoreForm.js +1 -2
- package/lib/components/agent/filestore/FilestoreTable.js +1 -2
- package/lib/components/agent/handler/AgentHandlerForm.js +1 -2
- package/lib/components/agent/handler/AgentHandlerTable.js +1 -2
- package/lib/components/common/AttributeSelect.js +2 -3
- package/lib/components/common/BridgeSelect.js +16 -17
- package/lib/components/common/ComponentConfigContext.js +1 -2
- package/lib/components/common/ContentEditable.js +23 -3
- package/lib/components/common/FormSelect.js +16 -17
- package/lib/components/common/NodeSelect.js +2 -3
- package/lib/components/common/Scroller.js +2 -3
- package/lib/components/common/StaticSelect.js +14 -15
- package/lib/components/common/TableInput.js +276 -63
- package/lib/components/common/TeamSelect.js +16 -17
- package/lib/components/common/ToastContainer.js +7 -12
- package/lib/components/common/Typeahead.js +15 -2
- package/lib/components/common/UserSelect.js +16 -17
- package/lib/components/common/authentication/AuthInterceptor.js +2 -3
- package/lib/components/common/authentication/AuthInterceptor.test.js +141 -153
- package/lib/components/common/authentication/AuthenticationContainer.js +332 -343
- package/lib/components/common/authentication/RequestInterceptor.js +2 -10
- package/lib/components/common/code_input/CodeInput.js +4 -9
- package/lib/components/common/code_input/draftHelpers.js +20 -37
- package/lib/components/common/code_input/languageHelpers.js +6 -12
- package/lib/components/common/code_input/languageHelpers.test.js +10 -8
- package/lib/components/common/defaults/Toast.js +1 -2
- package/lib/components/common/defaults/index.js +2 -3
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +1 -2
- package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +1 -2
- package/lib/components/core/bridge_model/BridgeModelForm.js +52 -55
- package/lib/components/core/bridge_model/BridgeModelTable.js +1 -2
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +1 -2
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +1 -2
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +1 -2
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +1 -2
- package/lib/components/core/category/CategoryForm.js +1 -2
- package/lib/components/core/category/CategoryTable.js +1 -2
- package/lib/components/core/core_form/CoreForm.js +11 -22
- package/lib/components/core/core_form/defaults/index.js +11 -19
- package/lib/components/core/core_form/globals.js +3 -5
- package/lib/components/core/field_definition/FieldDefinitionForm.js +1 -2
- package/lib/components/core/field_definition/FieldDefinitionTable.js +2 -4
- package/lib/components/core/file_resource/FileResourceForm.js +1 -2
- package/lib/components/core/file_resource/FileResourceTable.js +1 -2
- package/lib/components/core/form/FormForm.js +1 -2
- package/lib/components/core/form/FormTable.js +1 -2
- package/lib/components/core/form_type/FormTypeForm.js +1 -2
- package/lib/components/core/form_type/FormTypeTable.js +1 -2
- package/lib/components/core/i18n/I18n.js +2 -4
- package/lib/components/core/i18n/I18nContext.js +1 -2
- package/lib/components/core/i18n/I18nProvider.js +2 -3
- package/lib/components/core/i18n/Moment.js +10 -9
- package/lib/components/core/index_definition/IndexDefinitionForm.js +1 -2
- package/lib/components/core/index_definition/IndexDefinitionTable.js +1 -2
- package/lib/components/core/index_job/IndexJobTable.js +1 -2
- package/lib/components/core/kapp/KappForm.js +1 -2
- package/lib/components/core/kapp/KappTable.js +1 -2
- package/lib/components/core/log/LogTable.js +2 -4
- package/lib/components/core/oauth_client/OAuthClientForm.js +1 -2
- package/lib/components/core/oauth_client/OAuthClientTable.js +1 -2
- package/lib/components/core/platform_component/AgentComponentForm.js +1 -2
- package/lib/components/core/platform_component/AgentComponentTable.js +1 -2
- package/lib/components/core/platform_component/TaskComponentForm.js +1 -2
- package/lib/components/core/profile/ProfileForm.js +1 -2
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +3 -6
- package/lib/components/core/security_definition/SecurityDefinitionTable.js +1 -2
- package/lib/components/core/space/SpaceForm.js +1 -2
- package/lib/components/core/submission/DatastoreSubmissionFilters.js +3 -5
- package/lib/components/core/submission/DatastoreSubmissionTable.js +2 -4
- package/lib/components/core/submission/FormSubmissionFilters.js +4 -7
- package/lib/components/core/submission/FormSubmissionTable.js +2 -4
- package/lib/components/core/submission/KappSubmissionTable.js +2 -4
- package/lib/components/core/submission/SubmissionForm.js +1 -2
- package/lib/components/core/submission/SubmissionTable.js +2 -3
- package/lib/components/core/submission/helpers.js +4 -7
- package/lib/components/core/team/TeamForm.js +1 -2
- package/lib/components/core/team/TeamTable.js +1 -2
- package/lib/components/core/translation/ContextForm.js +1 -2
- package/lib/components/core/translation/ContextTable.js +1 -2
- package/lib/components/core/translation/EntryForm.js +1 -2
- package/lib/components/core/translation/EntryTable.js +1 -2
- package/lib/components/core/translation/LocaleForm.js +1 -2
- package/lib/components/core/translation/LocaleTable.js +1 -2
- package/lib/components/core/user/UserForm.js +1 -2
- package/lib/components/core/user/UserTable.js +1 -2
- package/lib/components/core/webapi/WebApiForm.js +97 -101
- package/lib/components/core/webapi/WebApiTable.js +1 -2
- package/lib/components/core/webhook/WebhookForm.js +1 -2
- package/lib/components/core/webhook/WebhookTable.js +1 -2
- package/lib/components/core/webhook_job/WebhookJobTable.js +1 -2
- package/lib/components/form/Form.helpers.js +10 -19
- package/lib/components/form/Form.js +312 -355
- package/lib/components/form/Form.models.js +6 -11
- package/lib/components/form/FormState.js +1 -2
- package/lib/components/form/KitchenSinkForm.js +23 -3
- package/lib/components/form/SimpleForm.helpers.js +262 -0
- package/lib/components/form/SimpleForm.js +462 -0
- package/lib/components/form/SimpleForm.models.js +62 -0
- package/lib/components/form/defaults/AttributesField.js +3 -4
- package/lib/components/form/defaults/CheckboxField.js +2 -3
- package/lib/components/form/defaults/CodeField.js +2 -3
- package/lib/components/form/defaults/FormButtons.js +2 -3
- package/lib/components/form/defaults/FormError.js +2 -3
- package/lib/components/form/defaults/FormField.js +2 -3
- package/lib/components/form/defaults/FormLayout.js +2 -3
- package/lib/components/form/defaults/FormMultiField.js +2 -3
- package/lib/components/form/defaults/PasswordField.js +2 -3
- package/lib/components/form/defaults/RadioField.js +2 -3
- package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +2 -3
- package/lib/components/form/defaults/SelectField.js +2 -3
- package/lib/components/form/defaults/SelectMultiField.js +2 -3
- package/lib/components/form/defaults/TableField.js +2 -3
- package/lib/components/form/defaults/TeamField.js +2 -3
- package/lib/components/form/defaults/TeamMultiField.js +2 -3
- package/lib/components/form/defaults/TextField.js +2 -3
- package/lib/components/form/defaults/TextMultiField.js +2 -3
- package/lib/components/form/defaults/UserField.js +2 -3
- package/lib/components/form/defaults/UserMultiField.js +2 -3
- package/lib/components/form/defaults/index.js +2 -3
- package/lib/components/form/tests/Form.test.js +3865 -4257
- package/lib/components/form/tests/components.js +2 -3
- package/lib/components/index.js +7 -0
- package/lib/components/system/SystemBackgroundTasksTable.js +1 -2
- package/lib/components/system/SystemCassandraForm.js +1 -2
- package/lib/components/system/SystemElasticSearchForm.js +1 -2
- package/lib/components/system/SystemFilestoreForm.js +2 -3
- package/lib/components/system/SystemForm.js +1 -2
- package/lib/components/system/SystemIngressForm.js +1 -2
- package/lib/components/system/SystemSecurityForm.js +1 -2
- package/lib/components/system/SystemSmtpForm.js +1 -2
- package/lib/components/system/SystemTaskAdapterForm.js +1 -2
- package/lib/components/system/SystemTrustedCertificateForm.js +1 -2
- package/lib/components/system/SystemTrustedCertificatesTable.js +1 -2
- package/lib/components/system/SystemUserForm.js +1 -2
- package/lib/components/system/helpers.js +11 -21
- package/lib/components/system/spaces/SystemSpaceForm.js +2 -3
- package/lib/components/system/spaces/SystemTenantForm.js +2 -3
- package/lib/components/system/spaces/SystemTenantTable.js +1 -2
- package/lib/components/table/Table.js +48 -51
- package/lib/components/table/Table.redux.js +161 -188
- package/lib/components/table/Table.test.js +115 -123
- package/lib/components/table/defaults/BodyCell.js +1 -2
- package/lib/components/table/defaults/BodyRow.js +1 -2
- package/lib/components/table/defaults/BooleanFilter.js +1 -2
- package/lib/components/table/defaults/ColumnControl.js +1 -2
- package/lib/components/table/defaults/EmptyBodyRow.js +1 -2
- package/lib/components/table/defaults/FilterLayout.js +1 -2
- package/lib/components/table/defaults/Footer.js +1 -2
- package/lib/components/table/defaults/FooterCell.js +1 -2
- package/lib/components/table/defaults/FooterRow.js +1 -2
- package/lib/components/table/defaults/Header.js +1 -2
- package/lib/components/table/defaults/HeaderCell.js +1 -2
- package/lib/components/table/defaults/HeaderRow.js +1 -2
- package/lib/components/table/defaults/PaginationControl.js +2 -4
- package/lib/components/table/defaults/TableBody.js +1 -2
- package/lib/components/table/defaults/TableLayout.js +1 -2
- package/lib/components/table/defaults/TextFilter.js +1 -2
- package/lib/components/table/defaults/index.js +2 -3
- package/lib/components/task/builder/Connector.js +26 -11
- package/lib/components/task/builder/ConnectorForm.js +1 -2
- package/lib/components/task/builder/Node.js +18 -9
- package/lib/components/task/builder/NodeForm.js +1 -2
- package/lib/components/task/builder/NodeParametersForm.js +1 -2
- package/lib/components/task/builder/SvgCanvas.js +2 -3
- package/lib/components/task/builder/SvgText.js +2 -3
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +3 -6
- package/lib/components/task/builder/TreeBuilder.js +10 -4
- package/lib/components/task/builder/builder.redux.js +171 -182
- package/lib/components/task/builder/constants.js +38 -76
- package/lib/components/task/builder/helpers.js +23 -40
- package/lib/components/task/builder/models.js +19 -35
- package/lib/components/task/category/TaskCategoryForm.js +2 -3
- package/lib/components/task/category/TaskCategoryTable.js +1 -2
- package/lib/components/task/common/UsageTable.js +1 -2
- package/lib/components/task/engine/EngineSettingsForm.js +2 -3
- package/lib/components/task/errors/RunErrorTable.js +2 -3
- package/lib/components/task/errors/SystemErrorsTable.js +1 -2
- package/lib/components/task/handlers/HandlerForm.js +2 -3
- package/lib/components/task/handlers/HandlerTable.js +1 -2
- package/lib/components/task/handlers/MissingHandlerTable.js +1 -2
- package/lib/components/task/policy_rule/PolicyRuleForm.js +2 -3
- package/lib/components/task/policy_rule/PolicyRuleTable.js +1 -2
- package/lib/components/task/runs/CreateManualTriggerForm.js +1 -2
- package/lib/components/task/runs/RunTable.js +2 -3
- package/lib/components/task/runs/RunTaskTable.js +1 -2
- package/lib/components/task/sources/SourceForm.js +1 -2
- package/lib/components/task/sources/SourceTable.js +1 -2
- package/lib/components/task/triggers/TriggerTable.js +2 -3
- package/lib/components/task/workflows/LinkedWorkflowForm.js +3 -5
- package/lib/components/task/workflows/LinkedWorkflowTable.js +1 -2
- package/lib/components/task/workflows/MissingRoutineTable.js +1 -2
- package/lib/components/task/workflows/WorkflowForm.js +2 -3
- package/lib/components/task/workflows/WorkflowTable.js +1 -2
- package/lib/helpers/SearchBuilder.js +2 -4
- package/lib/helpers/index.js +13 -26
- package/lib/index.js +3 -6
- package/lib/reducer.js +3 -5
- package/lib/saga.js +32 -48
- package/lib/store.js +32 -42
- package/package.json +12 -15
- package/lib/components/core/CoreFormModal.js +0 -64
- package/lib/components/core/CoreModal.js +0 -114
|
@@ -5,77 +5,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.THROTTLE_ZOOM = exports.THROTTLE_DRAG = exports.NODE_WIDTH = exports.NODE_TOP_BAR_PATH = exports.NODE_STROKE_WIDTH = exports.NODE_START_RADIUS = exports.NODE_RADIUS = exports.NODE_PADDING = exports.NODE_NAME_PADDING = exports.NODE_LEFT_TOP_BAR_PATH = exports.NODE_LEFT_BOTTOM_BAR_PATH = exports.NODE_LEFT_BAR_PATH = exports.NODE_JOIN_JUNCTION_HEIGHT = exports.NODE_JOIN_JUNCTION_CENTER_Y = exports.NODE_HEIGHT = exports.NODE_DECORATION_STROKE_WIDTH = exports.NODE_CORNER_TAB_PATH = exports.NODE_CENTER_Y = exports.NODE_CENTER_X = exports.NODE_BOTTOM_BAR_PATH = exports.NODE_BAR_THICKNESS = exports.NODE_BADGE_OFFSET = exports.NEW_TASK_DY = exports.NEW_TASK_DX = exports.ICON_SIZE = exports.ICON_CENTER = exports.CONNECTOR_TAIL_RADIUS = exports.CONNECTOR_STROKE_WIDTH = exports.CONNECTOR_LABEL_WIDTH = exports.CONNECTOR_LABEL_RADIUS = exports.CONNECTOR_LABEL_PADDING = exports.CONNECTOR_LABEL_HEIGHT = exports.CONNECTOR_LABEL_CENTER_Y = exports.CONNECTOR_LABEL_CENTER_X = exports.CONNECTOR_HEAD_POINTS = exports.CANVAS_ZOOM_MODIFIER = exports.CANVAS_ZOOM_DURATION = exports.CANVAS_SCALE_OPTIONS = void 0;
|
|
7
7
|
var _immutable = require("immutable");
|
|
8
|
-
var CANVAS_SCALE_OPTIONS = _immutable.List.of(0.25, 0.5, 0.75, 1, 1.33);
|
|
9
|
-
exports.
|
|
10
|
-
var
|
|
11
|
-
exports.
|
|
12
|
-
var
|
|
13
|
-
exports.
|
|
14
|
-
var
|
|
15
|
-
exports.
|
|
16
|
-
var
|
|
17
|
-
exports.
|
|
18
|
-
var
|
|
19
|
-
exports.
|
|
20
|
-
var
|
|
21
|
-
exports.
|
|
22
|
-
var
|
|
23
|
-
exports.
|
|
24
|
-
var
|
|
25
|
-
exports.
|
|
26
|
-
var
|
|
27
|
-
exports.
|
|
28
|
-
var
|
|
29
|
-
exports.
|
|
30
|
-
var
|
|
31
|
-
exports.
|
|
32
|
-
var
|
|
33
|
-
exports.
|
|
34
|
-
var NEW_TASK_DX = 350;
|
|
35
|
-
exports.NEW_TASK_DX = NEW_TASK_DX;
|
|
36
|
-
var NEW_TASK_DY = 75;
|
|
37
|
-
exports.NEW_TASK_DY = NEW_TASK_DY;
|
|
38
|
-
var NODE_BADGE_OFFSET = 6;
|
|
39
|
-
exports.NODE_BADGE_OFFSET = NODE_BADGE_OFFSET;
|
|
40
|
-
var NODE_BAR_THICKNESS = 8;
|
|
41
|
-
exports.NODE_BAR_THICKNESS = NODE_BAR_THICKNESS;
|
|
42
|
-
var NODE_RADIUS = 8;
|
|
43
|
-
exports.NODE_RADIUS = NODE_RADIUS;
|
|
44
|
-
var NODE_HEIGHT = 45;
|
|
45
|
-
exports.NODE_HEIGHT = NODE_HEIGHT;
|
|
46
|
-
var NODE_JOIN_JUNCTION_HEIGHT = 45;
|
|
47
|
-
exports.NODE_JOIN_JUNCTION_HEIGHT = NODE_JOIN_JUNCTION_HEIGHT;
|
|
48
|
-
var NODE_START_RADIUS = 28;
|
|
49
|
-
exports.NODE_START_RADIUS = NODE_START_RADIUS;
|
|
50
|
-
var NODE_STROKE_WIDTH = 1;
|
|
51
|
-
exports.NODE_STROKE_WIDTH = NODE_STROKE_WIDTH;
|
|
52
|
-
var NODE_PADDING = 10;
|
|
53
|
-
exports.NODE_PADDING = NODE_PADDING;
|
|
54
|
-
var NODE_NAME_PADDING = 7.5;
|
|
55
|
-
exports.NODE_NAME_PADDING = NODE_NAME_PADDING;
|
|
56
|
-
var NODE_WIDTH = 200;
|
|
57
|
-
exports.NODE_WIDTH = NODE_WIDTH;
|
|
58
|
-
var NODE_DECORATION_STROKE_WIDTH = 1;
|
|
8
|
+
var CANVAS_SCALE_OPTIONS = exports.CANVAS_SCALE_OPTIONS = _immutable.List.of(0.25, 0.5, 0.75, 1, 1.33);
|
|
9
|
+
var CANVAS_ZOOM_DURATION = exports.CANVAS_ZOOM_DURATION = 200;
|
|
10
|
+
var CANVAS_ZOOM_MODIFIER = exports.CANVAS_ZOOM_MODIFIER = 2000;
|
|
11
|
+
var THROTTLE_DRAG = exports.THROTTLE_DRAG = 16;
|
|
12
|
+
var THROTTLE_ZOOM = exports.THROTTLE_ZOOM = 16;
|
|
13
|
+
var CONNECTOR_HEAD_POINTS = exports.CONNECTOR_HEAD_POINTS = '-8,0 4,-8 0,0 4,8';
|
|
14
|
+
var CONNECTOR_TAIL_RADIUS = exports.CONNECTOR_TAIL_RADIUS = 6;
|
|
15
|
+
var CONNECTOR_LABEL_WIDTH = exports.CONNECTOR_LABEL_WIDTH = 130;
|
|
16
|
+
var CONNECTOR_LABEL_HEIGHT = exports.CONNECTOR_LABEL_HEIGHT = 18;
|
|
17
|
+
var CONNECTOR_LABEL_PADDING = exports.CONNECTOR_LABEL_PADDING = 5;
|
|
18
|
+
var CONNECTOR_LABEL_RADIUS = exports.CONNECTOR_LABEL_RADIUS = 2;
|
|
19
|
+
var CONNECTOR_STROKE_WIDTH = exports.CONNECTOR_STROKE_WIDTH = 4;
|
|
20
|
+
var ICON_SIZE = exports.ICON_SIZE = 16;
|
|
21
|
+
var NEW_TASK_DX = exports.NEW_TASK_DX = 350;
|
|
22
|
+
var NEW_TASK_DY = exports.NEW_TASK_DY = 75;
|
|
23
|
+
var NODE_BADGE_OFFSET = exports.NODE_BADGE_OFFSET = 6;
|
|
24
|
+
var NODE_BAR_THICKNESS = exports.NODE_BAR_THICKNESS = 8;
|
|
25
|
+
var NODE_RADIUS = exports.NODE_RADIUS = 8;
|
|
26
|
+
var NODE_HEIGHT = exports.NODE_HEIGHT = 45;
|
|
27
|
+
var NODE_JOIN_JUNCTION_HEIGHT = exports.NODE_JOIN_JUNCTION_HEIGHT = 45;
|
|
28
|
+
var NODE_START_RADIUS = exports.NODE_START_RADIUS = 28;
|
|
29
|
+
var NODE_STROKE_WIDTH = exports.NODE_STROKE_WIDTH = 1;
|
|
30
|
+
var NODE_PADDING = exports.NODE_PADDING = 10;
|
|
31
|
+
var NODE_NAME_PADDING = exports.NODE_NAME_PADDING = 7.5;
|
|
32
|
+
var NODE_WIDTH = exports.NODE_WIDTH = 200;
|
|
33
|
+
var NODE_DECORATION_STROKE_WIDTH = exports.NODE_DECORATION_STROKE_WIDTH = 1;
|
|
59
34
|
|
|
60
35
|
// Derived constants
|
|
61
|
-
exports.
|
|
62
|
-
var
|
|
63
|
-
exports.
|
|
64
|
-
var
|
|
65
|
-
exports.
|
|
66
|
-
var
|
|
67
|
-
exports.NODE_JOIN_JUNCTION_CENTER_Y = NODE_JOIN_JUNCTION_CENTER_Y;
|
|
68
|
-
var ICON_CENTER = ICON_SIZE / 2;
|
|
69
|
-
exports.ICON_CENTER = ICON_CENTER;
|
|
70
|
-
var CONNECTOR_LABEL_CENTER_X = CONNECTOR_LABEL_WIDTH / 2;
|
|
71
|
-
exports.CONNECTOR_LABEL_CENTER_X = CONNECTOR_LABEL_CENTER_X;
|
|
72
|
-
var CONNECTOR_LABEL_CENTER_Y = CONNECTOR_LABEL_HEIGHT / 2;
|
|
36
|
+
var NODE_CENTER_X = exports.NODE_CENTER_X = NODE_WIDTH / 2;
|
|
37
|
+
var NODE_CENTER_Y = exports.NODE_CENTER_Y = NODE_HEIGHT / 2;
|
|
38
|
+
var NODE_JOIN_JUNCTION_CENTER_Y = exports.NODE_JOIN_JUNCTION_CENTER_Y = NODE_JOIN_JUNCTION_HEIGHT / 2;
|
|
39
|
+
var ICON_CENTER = exports.ICON_CENTER = ICON_SIZE / 2;
|
|
40
|
+
var CONNECTOR_LABEL_CENTER_X = exports.CONNECTOR_LABEL_CENTER_X = CONNECTOR_LABEL_WIDTH / 2;
|
|
41
|
+
var CONNECTOR_LABEL_CENTER_Y = exports.CONNECTOR_LABEL_CENTER_Y = CONNECTOR_LABEL_HEIGHT / 2;
|
|
73
42
|
|
|
74
43
|
// Node Decorations
|
|
75
44
|
|
|
76
45
|
// compute x, y coordinates for outer boundaries of nodes (which includes the
|
|
77
46
|
// stroke width)
|
|
78
|
-
exports.CONNECTOR_LABEL_CENTER_Y = CONNECTOR_LABEL_CENTER_Y;
|
|
79
47
|
var MIN = -NODE_STROKE_WIDTH / 2 + NODE_DECORATION_STROKE_WIDTH / 2;
|
|
80
48
|
var MAX_X = NODE_WIDTH + NODE_STROKE_WIDTH / 2 - NODE_DECORATION_STROKE_WIDTH / 2;
|
|
81
49
|
var MAX_Y = NODE_HEIGHT + NODE_STROKE_WIDTH / 2 - NODE_DECORATION_STROKE_WIDTH / 2;
|
|
@@ -91,15 +59,9 @@ var ARC_DOWN_RIGHT = "".concat(NODE_RADIUS, " ").concat(NODE_RADIUS, " 0 0 1 ")
|
|
|
91
59
|
var ARC_UP_RIGHT = " ".concat(NODE_RADIUS, " ").concat(NODE_RADIUS, " 0 0 1 ").concat(NODE_RADIUS, " -").concat(NODE_RADIUS);
|
|
92
60
|
var ARC_DOWN_LEFT = " ".concat(NODE_RADIUS, " ").concat(NODE_RADIUS, " 0 0 1 -").concat(NODE_RADIUS, " ").concat(NODE_RADIUS);
|
|
93
61
|
var ARC_UP_LEFT = " ".concat(NODE_RADIUS, " ").concat(NODE_RADIUS, " 0 0 1 -").concat(NODE_RADIUS, " -").concat(NODE_RADIUS);
|
|
94
|
-
var NODE_BOTTOM_BAR_PATH = "\n M ".concat(MIN, " ").concat(MAX_Y - NODE_BAR_THICKNESS, "\n h ").concat(OUTER_WIDTH, "\n v ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_DOWN_LEFT, "\n h -").concat(OUTER_WIDTH - NODE_RADIUS * 2, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n");
|
|
95
|
-
exports.
|
|
96
|
-
var
|
|
97
|
-
exports.
|
|
98
|
-
var
|
|
99
|
-
exports.
|
|
100
|
-
var NODE_LEFT_BOTTOM_BAR_PATH = "\n M ".concat(MIN + NODE_BAR_THICKNESS, " ").concat(MIN + OUTER_HEIGHT / 2, "\n v ").concat(OUTER_HEIGHT / 2, "\n h -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat(OUTER_HEIGHT / 2 - NODE_RADIUS, "\n h ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n ");
|
|
101
|
-
exports.NODE_LEFT_BOTTOM_BAR_PATH = NODE_LEFT_BOTTOM_BAR_PATH;
|
|
102
|
-
var NODE_TOP_BAR_PATH = "\n M ".concat(MIN, " ").concat(MIN + NODE_BAR_THICKNESS, "\n v -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_RIGHT, "\n h ").concat(OUTER_WIDTH - NODE_RADIUS * 2, "\n a ").concat(ARC_DOWN_RIGHT, "\n v ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n h -").concat(OUTER_WIDTH, "\n");
|
|
103
|
-
exports.NODE_TOP_BAR_PATH = NODE_TOP_BAR_PATH;
|
|
104
|
-
var NODE_CORNER_TAB_PATH = "\n M ".concat(MAX_X - NODE_BAR_THICKNESS * 3, " ").concat(MIN, "\n h ").concat(NODE_BAR_THICKNESS * 3 - NODE_RADIUS, "\n a ").concat(ARC_DOWN_RIGHT, "\n v ").concat(NODE_BAR_THICKNESS * 3 - NODE_RADIUS, "\n L ").concat(MAX_X - NODE_BAR_THICKNESS * 3, " ").concat(MIN, "\n");
|
|
105
|
-
exports.NODE_CORNER_TAB_PATH = NODE_CORNER_TAB_PATH;
|
|
62
|
+
var NODE_BOTTOM_BAR_PATH = exports.NODE_BOTTOM_BAR_PATH = "\n M ".concat(MIN, " ").concat(MAX_Y - NODE_BAR_THICKNESS, "\n h ").concat(OUTER_WIDTH, "\n v ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_DOWN_LEFT, "\n h -").concat(OUTER_WIDTH - NODE_RADIUS * 2, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n");
|
|
63
|
+
var NODE_LEFT_BAR_PATH = exports.NODE_LEFT_BAR_PATH = "\n M ".concat(MIN + NODE_BAR_THICKNESS, " ").concat(MIN, "\n v ").concat(OUTER_HEIGHT, "\n h -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat(OUTER_HEIGHT - NODE_RADIUS * 2, "\n a ").concat(ARC_UP_RIGHT, "\n h ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n ");
|
|
64
|
+
var NODE_LEFT_TOP_BAR_PATH = exports.NODE_LEFT_TOP_BAR_PATH = "\n M ".concat(MIN + NODE_BAR_THICKNESS, " ").concat(MIN, "\n v ").concat(OUTER_HEIGHT / 2, "\n h -").concat(NODE_BAR_THICKNESS, "\n v -").concat(OUTER_HEIGHT / 2 - NODE_RADIUS, "\n a ").concat(ARC_UP_RIGHT, "\n h ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n ");
|
|
65
|
+
var NODE_LEFT_BOTTOM_BAR_PATH = exports.NODE_LEFT_BOTTOM_BAR_PATH = "\n M ".concat(MIN + NODE_BAR_THICKNESS, " ").concat(MIN + OUTER_HEIGHT / 2, "\n v ").concat(OUTER_HEIGHT / 2, "\n h -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat(OUTER_HEIGHT / 2 - NODE_RADIUS, "\n h ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n ");
|
|
66
|
+
var NODE_TOP_BAR_PATH = exports.NODE_TOP_BAR_PATH = "\n M ".concat(MIN, " ").concat(MIN + NODE_BAR_THICKNESS, "\n v -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_RIGHT, "\n h ").concat(OUTER_WIDTH - NODE_RADIUS * 2, "\n a ").concat(ARC_DOWN_RIGHT, "\n v ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n h -").concat(OUTER_WIDTH, "\n");
|
|
67
|
+
var NODE_CORNER_TAB_PATH = exports.NODE_CORNER_TAB_PATH = "\n M ".concat(MAX_X - NODE_BAR_THICKNESS * 3, " ").concat(MIN, "\n h ").concat(NODE_BAR_THICKNESS * 3 - NODE_RADIUS, "\n a ").concat(ARC_DOWN_RIGHT, "\n v ").concat(NODE_BAR_THICKNESS * 3 - NODE_RADIUS, "\n L ").concat(MAX_X - NODE_BAR_THICKNESS * 3, " ").concat(MIN, "\n");
|
|
@@ -12,14 +12,14 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
|
|
|
12
12
|
var _immutable = require("immutable");
|
|
13
13
|
var _lodashEs = require("lodash-es");
|
|
14
14
|
var _kldIntersections = require("kld-intersections");
|
|
15
|
-
var
|
|
15
|
+
var _constants = _interopRequireWildcard(require("./constants"));
|
|
16
|
+
var constants = _constants;
|
|
16
17
|
var _store = require("../../../store");
|
|
17
18
|
var _languageHelpers = require("../../common/code_input/languageHelpers");
|
|
18
19
|
var _models = require("./models");
|
|
19
20
|
var _excluded = ["name", "id", "defaultValue"];
|
|
20
|
-
var isIE11 = document.documentMode === 11;
|
|
21
|
-
exports.
|
|
22
|
-
var getRectIntersections = function getRectIntersections(_ref) {
|
|
21
|
+
var isIE11 = exports.isIE11 = document.documentMode === 11;
|
|
22
|
+
var getRectIntersections = exports.getRectIntersections = function getRectIntersections(_ref) {
|
|
23
23
|
var dragging = _ref.dragging,
|
|
24
24
|
head = _ref.head,
|
|
25
25
|
headType = _ref.headType,
|
|
@@ -45,24 +45,20 @@ var getRectIntersections = function getRectIntersections(_ref) {
|
|
|
45
45
|
var tailIntersection = _kldIntersections.Intersection.intersect(tailShape, line).points[0];
|
|
46
46
|
return [dragging === 'tail' ? tail : tailIntersection || tailCenter, dragging === 'head' ? head : headIntersection || headCenter];
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
var isPointInNode = function isPointInNode(point) {
|
|
48
|
+
var isPointInNode = exports.isPointInNode = function isPointInNode(point) {
|
|
50
49
|
return function (node) {
|
|
51
50
|
return point && node && point.x >= node.position.x && point.x <= node.position.x + constants.NODE_WIDTH && point.y >= node.position.y && point.y <= node.position.y + constants.NODE_HEIGHT;
|
|
52
51
|
};
|
|
53
52
|
};
|
|
54
|
-
exports.
|
|
55
|
-
var getNodeType = function getNodeType(node) {
|
|
53
|
+
var getNodeType = exports.getNodeType = function getNodeType(node) {
|
|
56
54
|
return node ? node.definitionId.startsWith('system_join_v') ? 'join' : node.definitionId.startsWith('system_junction_v') ? 'junction' : node.definitionId.startsWith('system_loop_head_v') ? 'loop-head' : node.definitionId.startsWith('system_loop_tail_v') ? 'loop-tail' : node.definitionId.startsWith('system_start_v') ? 'start' : null : null;
|
|
57
55
|
};
|
|
58
|
-
exports.
|
|
59
|
-
var getNodeShape = function getNodeShape(type, _ref2) {
|
|
56
|
+
var getNodeShape = exports.getNodeShape = function getNodeShape(type, _ref2) {
|
|
60
57
|
var x = _ref2.x,
|
|
61
58
|
y = _ref2.y;
|
|
62
59
|
return type === 'start' ? _kldIntersections.ShapeInfo.circle(x + constants.NODE_START_RADIUS, y + constants.NODE_START_RADIUS, constants.NODE_START_RADIUS + constants.NODE_PADDING) : _kldIntersections.ShapeInfo.rectangle(x - constants.NODE_PADDING, y - constants.NODE_PADDING, constants.NODE_WIDTH + 2 * constants.NODE_PADDING, (type === 'join' || type === 'junction' ? constants.NODE_JOIN_JUNCTION_HEIGHT : constants.NODE_HEIGHT) + 2 * constants.NODE_PADDING);
|
|
63
60
|
};
|
|
64
|
-
exports.
|
|
65
|
-
var getNodeCenter = function getNodeCenter(type, _ref3) {
|
|
61
|
+
var getNodeCenter = exports.getNodeCenter = function getNodeCenter(type, _ref3) {
|
|
66
62
|
var x = _ref3.x,
|
|
67
63
|
y = _ref3.y;
|
|
68
64
|
return {
|
|
@@ -70,7 +66,6 @@ var getNodeCenter = function getNodeCenter(type, _ref3) {
|
|
|
70
66
|
y: y + (type === 'start' ? constants.NODE_START_RADIUS : type === 'join' || type === 'junction' ? constants.NODE_JOIN_JUNCTION_CENTER_Y : constants.NODE_CENTER_Y)
|
|
71
67
|
};
|
|
72
68
|
};
|
|
73
|
-
exports.getNodeCenter = getNodeCenter;
|
|
74
69
|
var concatMap = function concatMap(map1, map2) {
|
|
75
70
|
return map2.reduce(function (reduction, value, key) {
|
|
76
71
|
return reduction.set(key, value);
|
|
@@ -91,7 +86,7 @@ var getParents = function getParents(tree, node) {
|
|
|
91
86
|
// gets the ancestors for the given node by recursively traversing the parent
|
|
92
87
|
// nodes, as a map, the result should not contain duplicates and this processes
|
|
93
88
|
// in depth-first order
|
|
94
|
-
var getAncestors = function getAncestors(tree, node) {
|
|
89
|
+
var getAncestors = exports.getAncestors = function getAncestors(tree, node) {
|
|
95
90
|
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0, _immutable.Map)();
|
|
96
91
|
return (
|
|
97
92
|
// get the direct parents of the node, adding them to the result and making
|
|
@@ -114,7 +109,6 @@ var getAncestors = function getAncestors(tree, node) {
|
|
|
114
109
|
// recursive helper that calls bindify if the current raw value is an object
|
|
115
110
|
// or returns the leaf value object if not (removing the erb tags at the same
|
|
116
111
|
// time)
|
|
117
|
-
exports.getAncestors = getAncestors;
|
|
118
112
|
var bindify = function bindify(raw) {
|
|
119
113
|
return (0, _immutable.Map)(raw).sortBy(function (_, key) {
|
|
120
114
|
return key;
|
|
@@ -126,7 +120,7 @@ var bindify = function bindify(raw) {
|
|
|
126
120
|
});
|
|
127
121
|
});
|
|
128
122
|
};
|
|
129
|
-
var buildBindings = function buildBindings(tree, tasks, node) {
|
|
123
|
+
var buildBindings = exports.buildBindings = function buildBindings(tree, tasks, node) {
|
|
130
124
|
var Results = (0, _immutable.Map)({
|
|
131
125
|
children: tree.nodes
|
|
132
126
|
// convert the node map to use the name as the key
|
|
@@ -168,8 +162,7 @@ var buildBindings = function buildBindings(tree, tasks, node) {
|
|
|
168
162
|
// should be called with a task definition, then it stubs out a node and
|
|
169
163
|
// connector and passes a complete function which should be called with the
|
|
170
164
|
// fully configured node and connector
|
|
171
|
-
exports.
|
|
172
|
-
var addNewTask = function addNewTask(treeKey, tree, parent, position, reset) {
|
|
165
|
+
var addNewTask = exports.addNewTask = function addNewTask(treeKey, tree, parent, position, reset) {
|
|
173
166
|
return {
|
|
174
167
|
cancel: reset,
|
|
175
168
|
tree: tree,
|
|
@@ -195,7 +188,6 @@ var addNewTask = function addNewTask(treeKey, tree, parent, position, reset) {
|
|
|
195
188
|
}
|
|
196
189
|
};
|
|
197
190
|
};
|
|
198
|
-
exports.addNewTask = addNewTask;
|
|
199
191
|
var addNewTaskNext = function addNewTaskNext(_ref4) {
|
|
200
192
|
var cloneNode = _ref4.cloneNode,
|
|
201
193
|
parent = _ref4.parent,
|
|
@@ -268,7 +260,7 @@ var STRING_CONTENT_REGEX = /((?:%[qQiIwWxs]?)?.)(.*)(.)/;
|
|
|
268
260
|
|
|
269
261
|
// takes a erb / ruby strings and checks for references to @results['Node name']
|
|
270
262
|
// using the language helpers,
|
|
271
|
-
var parseNodeResultDependencies = function parseNodeResultDependencies(context, value, erb) {
|
|
263
|
+
var parseNodeResultDependencies = exports.parseNodeResultDependencies = function parseNodeResultDependencies(context, value, erb) {
|
|
272
264
|
return (erb ? _languageHelpers.processErbTemplate : _languageHelpers.processRuby)(value).reduce(function (_ref6, token) {
|
|
273
265
|
var _ref7 = (0, _slicedToArray2["default"])(_ref6, 4),
|
|
274
266
|
reduction = _ref7[0],
|
|
@@ -298,14 +290,12 @@ var parseNodeResultDependencies = function parseNodeResultDependencies(context,
|
|
|
298
290
|
return [newReduction, index + content.length, token, last1];
|
|
299
291
|
}, [(0, _immutable.List)(), 0, null, null])[0];
|
|
300
292
|
};
|
|
301
|
-
exports.
|
|
302
|
-
var getConnectorDependencies = function getConnectorDependencies(_ref8) {
|
|
293
|
+
var getConnectorDependencies = exports.getConnectorDependencies = function getConnectorDependencies(_ref8) {
|
|
303
294
|
var condition = _ref8.condition,
|
|
304
295
|
id = _ref8.id;
|
|
305
296
|
return parseNodeResultDependencies(['connectors', id, 'condition'], condition);
|
|
306
297
|
};
|
|
307
|
-
exports.
|
|
308
|
-
var getNodeDependencies = function getNodeDependencies(_ref9) {
|
|
298
|
+
var getNodeDependencies = exports.getNodeDependencies = function getNodeDependencies(_ref9) {
|
|
309
299
|
var id = _ref9.id,
|
|
310
300
|
messages = _ref9.messages,
|
|
311
301
|
parameters = _ref9.parameters;
|
|
@@ -317,8 +307,7 @@ var getNodeDependencies = function getNodeDependencies(_ref9) {
|
|
|
317
307
|
return parseNodeResultDependencies(['nodes', id, 'parameters', i, 'value'], value, true);
|
|
318
308
|
}));
|
|
319
309
|
};
|
|
320
|
-
exports.
|
|
321
|
-
var searchNodeResultDependencies = function searchNodeResultDependencies(tree, nodeName) {
|
|
310
|
+
var searchNodeResultDependencies = exports.searchNodeResultDependencies = function searchNodeResultDependencies(tree, nodeName) {
|
|
322
311
|
return (0, _immutable.List)().concat(tree.connectors.toList().flatMap(getConnectorDependencies), tree.nodes.toList().flatMap(getNodeDependencies)).filter(function (dependency) {
|
|
323
312
|
return dependency.name === nodeName;
|
|
324
313
|
});
|
|
@@ -328,14 +317,12 @@ var searchNodeResultDependencies = function searchNodeResultDependencies(tree, n
|
|
|
328
317
|
// then it takes the value and it splices the new node name into the value at
|
|
329
318
|
// the index defined in the dependency record also using the length of the old
|
|
330
319
|
// name in the dependency record
|
|
331
|
-
exports.
|
|
332
|
-
var replace = function replace(dependency, newName) {
|
|
320
|
+
var replace = exports.replace = function replace(dependency, newName) {
|
|
333
321
|
return function (value) {
|
|
334
322
|
return value.slice(0, dependency.index) + newName + value.slice(dependency.index + dependency.name.length);
|
|
335
323
|
};
|
|
336
324
|
};
|
|
337
|
-
exports.
|
|
338
|
-
var renameDependencies = function renameDependencies() {
|
|
325
|
+
var renameDependencies = exports.renameDependencies = function renameDependencies() {
|
|
339
326
|
var dependencies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _immutable.List)();
|
|
340
327
|
var newName = arguments.length > 1 ? arguments[1] : undefined;
|
|
341
328
|
return function (tree) {
|
|
@@ -354,8 +341,7 @@ var renameDependencies = function renameDependencies() {
|
|
|
354
341
|
// routines have `inputs` and handlers have `parameters` with slightly different
|
|
355
342
|
// properties so this is a helper function to take one or the other and return
|
|
356
343
|
// a consistent object
|
|
357
|
-
exports.
|
|
358
|
-
var normalizeParameter = function normalizeParameter(_ref12) {
|
|
344
|
+
var normalizeParameter = exports.normalizeParameter = function normalizeParameter(_ref12) {
|
|
359
345
|
var name = _ref12.name,
|
|
360
346
|
id = _ref12.id,
|
|
361
347
|
defaultValue = _ref12.defaultValue,
|
|
@@ -366,7 +352,6 @@ var normalizeParameter = function normalizeParameter(_ref12) {
|
|
|
366
352
|
value: defaultValue
|
|
367
353
|
}, rest);
|
|
368
354
|
};
|
|
369
|
-
exports.normalizeParameter = normalizeParameter;
|
|
370
355
|
var defaultOutputs = (0, _immutable.List)([{
|
|
371
356
|
id: 'content',
|
|
372
357
|
name: 'Content'
|
|
@@ -383,7 +368,7 @@ var defaultOutputs = (0, _immutable.List)([{
|
|
|
383
368
|
name: 'Response Code',
|
|
384
369
|
defaultValue: '200'
|
|
385
370
|
}]).map(_immutable.Map);
|
|
386
|
-
var treeReturnTask = function treeReturnTask(tree) {
|
|
371
|
+
var treeReturnTask = exports.treeReturnTask = function treeReturnTask(tree) {
|
|
387
372
|
return {
|
|
388
373
|
deferrable: false,
|
|
389
374
|
definitionId: 'system_tree_return_v1',
|
|
@@ -411,11 +396,10 @@ var treeReturnTask = function treeReturnTask(tree) {
|
|
|
411
396
|
results: []
|
|
412
397
|
};
|
|
413
398
|
};
|
|
414
|
-
exports.
|
|
415
|
-
var getNewNodePosition = function getNewNodePosition(node, childNodes) {
|
|
399
|
+
var getNewNodePosition = exports.getNewNodePosition = function getNewNodePosition(node, childNodes) {
|
|
416
400
|
if (childNodes.length === 0) {
|
|
417
401
|
return node.position.update('x', function (x) {
|
|
418
|
-
return x +
|
|
402
|
+
return x + _constants.NEW_TASK_DX;
|
|
419
403
|
});
|
|
420
404
|
} else {
|
|
421
405
|
var maxChild = (0, _immutable.List)(childNodes).sortBy(function (node) {
|
|
@@ -424,8 +408,7 @@ var getNewNodePosition = function getNewNodePosition(node, childNodes) {
|
|
|
424
408
|
return node.position.y;
|
|
425
409
|
});
|
|
426
410
|
return maxChild.position.update('y', function (y) {
|
|
427
|
-
return y +
|
|
411
|
+
return y + _constants.NEW_TASK_DY;
|
|
428
412
|
});
|
|
429
413
|
}
|
|
430
|
-
};
|
|
431
|
-
exports.getNewNodePosition = getNewNodePosition;
|
|
414
|
+
};
|
|
@@ -13,12 +13,11 @@ var _excluded = ["id", "messages", "parameters", "position"];
|
|
|
13
13
|
* Immutable records *
|
|
14
14
|
******************************************************************************/
|
|
15
15
|
|
|
16
|
-
var Point = (0, _immutable.Record)({
|
|
16
|
+
var Point = exports.Point = (0, _immutable.Record)({
|
|
17
17
|
x: 0,
|
|
18
18
|
y: 0
|
|
19
19
|
}, 'Point');
|
|
20
|
-
exports.
|
|
21
|
-
var WebApi = (0, _immutable.Record)({
|
|
20
|
+
var WebApi = exports.WebApi = (0, _immutable.Record)({
|
|
22
21
|
createdAt: null,
|
|
23
22
|
createdBy: null,
|
|
24
23
|
method: null,
|
|
@@ -28,8 +27,7 @@ var WebApi = (0, _immutable.Record)({
|
|
|
28
27
|
updatedAt: null,
|
|
29
28
|
updatedBy: null
|
|
30
29
|
});
|
|
31
|
-
exports.
|
|
32
|
-
var Tree = (0, _immutable.Record)({
|
|
30
|
+
var Tree = exports.Tree = (0, _immutable.Record)({
|
|
33
31
|
bindings: (0, _immutable.OrderedMap)(),
|
|
34
32
|
categories: (0, _immutable.List)(),
|
|
35
33
|
connectors: (0, _immutable.OrderedMap)(),
|
|
@@ -53,8 +51,7 @@ var Tree = (0, _immutable.Record)({
|
|
|
53
51
|
type: '',
|
|
54
52
|
versionId: '0'
|
|
55
53
|
});
|
|
56
|
-
exports.
|
|
57
|
-
var Node = (0, _immutable.Record)({
|
|
54
|
+
var Node = exports.Node = (0, _immutable.Record)({
|
|
58
55
|
configured: true,
|
|
59
56
|
deferrable: false,
|
|
60
57
|
defers: false,
|
|
@@ -67,8 +64,7 @@ var Node = (0, _immutable.Record)({
|
|
|
67
64
|
version: 1,
|
|
68
65
|
visible: true
|
|
69
66
|
});
|
|
70
|
-
exports.
|
|
71
|
-
var NodeParameter = (0, _immutable.Record)({
|
|
67
|
+
var NodeParameter = exports.NodeParameter = (0, _immutable.Record)({
|
|
72
68
|
dependsOnId: '',
|
|
73
69
|
dependsOnValue: '',
|
|
74
70
|
description: '',
|
|
@@ -78,13 +74,11 @@ var NodeParameter = (0, _immutable.Record)({
|
|
|
78
74
|
required: false,
|
|
79
75
|
value: ''
|
|
80
76
|
});
|
|
81
|
-
exports.
|
|
82
|
-
var NodeMessage = (0, _immutable.Record)({
|
|
77
|
+
var NodeMessage = exports.NodeMessage = (0, _immutable.Record)({
|
|
83
78
|
type: '',
|
|
84
79
|
value: ''
|
|
85
80
|
});
|
|
86
|
-
exports.
|
|
87
|
-
var Connector = (0, _immutable.Record)({
|
|
81
|
+
var Connector = exports.Connector = (0, _immutable.Record)({
|
|
88
82
|
condition: '',
|
|
89
83
|
headId: null,
|
|
90
84
|
id: null,
|
|
@@ -92,8 +86,7 @@ var Connector = (0, _immutable.Record)({
|
|
|
92
86
|
tailId: null,
|
|
93
87
|
type: 'Complete'
|
|
94
88
|
});
|
|
95
|
-
exports.
|
|
96
|
-
var TreeBuilderState = (0, _immutable.Record)({
|
|
89
|
+
var TreeBuilderState = exports.TreeBuilderState = (0, _immutable.Record)({
|
|
97
90
|
categories: (0, _immutable.OrderedMap)(),
|
|
98
91
|
error: null,
|
|
99
92
|
kappSlug: null,
|
|
@@ -108,8 +101,7 @@ var TreeBuilderState = (0, _immutable.Record)({
|
|
|
108
101
|
undoStack: (0, _immutable.List)(),
|
|
109
102
|
webApi: null
|
|
110
103
|
});
|
|
111
|
-
exports.
|
|
112
|
-
var NodeResultDependency = (0, _immutable.Record)({
|
|
104
|
+
var NodeResultDependency = exports.NodeResultDependency = (0, _immutable.Record)({
|
|
113
105
|
// where the dependency was found, one of:
|
|
114
106
|
// connector id | node id message type | node id parameter id
|
|
115
107
|
context: (0, _immutable.List)(),
|
|
@@ -124,17 +116,16 @@ var NodeResultDependency = (0, _immutable.Record)({
|
|
|
124
116
|
* Should take native objects that are returned from the API endpoints and *
|
|
125
117
|
* convert them to immutable records used by the builder implementation *
|
|
126
118
|
******************************************************************************/
|
|
127
|
-
|
|
119
|
+
|
|
128
120
|
var deserializeNodeId = function deserializeNodeId(id) {
|
|
129
121
|
var match = id.match(/_(\d+)$/);
|
|
130
122
|
// the start node will not match the pattern above so we give that an id of 0
|
|
131
123
|
return match ? parseInt(match[1]) : 0;
|
|
132
124
|
};
|
|
133
|
-
var serializeNodeId = function serializeNodeId(node) {
|
|
125
|
+
var serializeNodeId = exports.serializeNodeId = function serializeNodeId(node) {
|
|
134
126
|
return node.id === 0 ? 'start' : "".concat(node.definitionId, "_").concat(node.id);
|
|
135
127
|
};
|
|
136
|
-
exports.
|
|
137
|
-
var deserializeNode = function deserializeNode(_ref) {
|
|
128
|
+
var deserializeNode = exports.deserializeNode = function deserializeNode(_ref) {
|
|
138
129
|
var id = _ref.id,
|
|
139
130
|
messages = _ref.messages,
|
|
140
131
|
parameters = _ref.parameters,
|
|
@@ -147,12 +138,10 @@ var deserializeNode = function deserializeNode(_ref) {
|
|
|
147
138
|
position: Point(position)
|
|
148
139
|
}));
|
|
149
140
|
};
|
|
150
|
-
exports.
|
|
151
|
-
var serializeNode = function serializeNode(node) {
|
|
141
|
+
var serializeNode = exports.serializeNode = function serializeNode(node) {
|
|
152
142
|
return node.set('id', serializeNodeId(node)).toJS();
|
|
153
143
|
};
|
|
154
|
-
exports.
|
|
155
|
-
var deserializeConnector = function deserializeConnector(_ref2, id) {
|
|
144
|
+
var deserializeConnector = exports.deserializeConnector = function deserializeConnector(_ref2, id) {
|
|
156
145
|
var from = _ref2.from,
|
|
157
146
|
label = _ref2.label,
|
|
158
147
|
to = _ref2.to,
|
|
@@ -169,8 +158,7 @@ var deserializeConnector = function deserializeConnector(_ref2, id) {
|
|
|
169
158
|
type: type
|
|
170
159
|
});
|
|
171
160
|
};
|
|
172
|
-
exports.
|
|
173
|
-
var serializeConnector = function serializeConnector(nodes) {
|
|
161
|
+
var serializeConnector = exports.serializeConnector = function serializeConnector(nodes) {
|
|
174
162
|
return function (_ref3) {
|
|
175
163
|
var condition = _ref3.condition,
|
|
176
164
|
headId = _ref3.headId,
|
|
@@ -186,8 +174,7 @@ var serializeConnector = function serializeConnector(nodes) {
|
|
|
186
174
|
};
|
|
187
175
|
};
|
|
188
176
|
};
|
|
189
|
-
exports.
|
|
190
|
-
var deserializeTree = function deserializeTree(_ref4) {
|
|
177
|
+
var deserializeTree = exports.deserializeTree = function deserializeTree(_ref4) {
|
|
191
178
|
var bindings = _ref4.bindings,
|
|
192
179
|
categories = _ref4.categories,
|
|
193
180
|
definitionId = _ref4.definitionId,
|
|
@@ -237,8 +224,7 @@ var deserializeTree = function deserializeTree(_ref4) {
|
|
|
237
224
|
versionId: versionId
|
|
238
225
|
});
|
|
239
226
|
};
|
|
240
|
-
exports.
|
|
241
|
-
var serializeTree = function serializeTree(_ref5) {
|
|
227
|
+
var serializeTree = exports.serializeTree = function serializeTree(_ref5) {
|
|
242
228
|
var connectors = _ref5.connectors,
|
|
243
229
|
categories = _ref5.categories,
|
|
244
230
|
definitionId = _ref5.definitionId,
|
|
@@ -281,8 +267,7 @@ var serializeTree = function serializeTree(_ref5) {
|
|
|
281
267
|
versionId: overwrite ? null : versionId
|
|
282
268
|
};
|
|
283
269
|
};
|
|
284
|
-
exports.
|
|
285
|
-
var deserializeWebApi = function deserializeWebApi(_ref6, kappSlug) {
|
|
270
|
+
var deserializeWebApi = exports.deserializeWebApi = function deserializeWebApi(_ref6, kappSlug) {
|
|
286
271
|
var createdAt = _ref6.createdAt,
|
|
287
272
|
createdBy = _ref6.createdBy,
|
|
288
273
|
method = _ref6.method,
|
|
@@ -300,5 +285,4 @@ var deserializeWebApi = function deserializeWebApi(_ref6, kappSlug) {
|
|
|
300
285
|
updatedAt: updatedAt,
|
|
301
286
|
updatedBy: updatedBy
|
|
302
287
|
});
|
|
303
|
-
};
|
|
304
|
-
exports.deserializeWebApi = deserializeWebApi;
|
|
288
|
+
};
|
|
@@ -158,7 +158,7 @@ var fields = function fields(_ref4) {
|
|
|
158
158
|
}];
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
|
-
var TaskCategoryForm = function TaskCategoryForm(_ref12) {
|
|
161
|
+
var TaskCategoryForm = exports.TaskCategoryForm = function TaskCategoryForm(_ref12) {
|
|
162
162
|
var addFields = _ref12.addFields,
|
|
163
163
|
alterFields = _ref12.alterFields,
|
|
164
164
|
fieldSet = _ref12.fieldSet,
|
|
@@ -183,5 +183,4 @@ var TaskCategoryForm = function TaskCategoryForm(_ref12) {
|
|
|
183
183
|
categoryName: categoryName
|
|
184
184
|
}
|
|
185
185
|
}, children);
|
|
186
|
-
};
|
|
187
|
-
exports.TaskCategoryForm = TaskCategoryForm;
|
|
186
|
+
};
|
|
@@ -66,12 +66,11 @@ var columns = [{
|
|
|
66
66
|
title: 'Updated By',
|
|
67
67
|
sortable: true
|
|
68
68
|
}];
|
|
69
|
-
var TaskCategoryTable = (0, _Table.generateTable)({
|
|
69
|
+
var TaskCategoryTable = exports.TaskCategoryTable = (0, _Table.generateTable)({
|
|
70
70
|
tableOptions: [],
|
|
71
71
|
columns: columns,
|
|
72
72
|
filters: filters,
|
|
73
73
|
dataSource: dataSource
|
|
74
74
|
});
|
|
75
|
-
exports.TaskCategoryTable = TaskCategoryTable;
|
|
76
75
|
TaskCategoryTable.propTypes = {};
|
|
77
76
|
TaskCategoryTable.displayName = 'TaskCategoryTable';
|
|
@@ -79,11 +79,10 @@ var columns = [{
|
|
|
79
79
|
title: 'Updated',
|
|
80
80
|
sortable: true
|
|
81
81
|
}];
|
|
82
|
-
var UsageTable = (0, _Table.generateTable)({
|
|
82
|
+
var UsageTable = exports.UsageTable = (0, _Table.generateTable)({
|
|
83
83
|
tableOptions: ['definitionId', 'sourceName', 'sourceGroup', 'name', 'usageType'],
|
|
84
84
|
columns: columns,
|
|
85
85
|
filters: filters,
|
|
86
86
|
dataSource: dataSource
|
|
87
87
|
});
|
|
88
|
-
exports.UsageTable = UsageTable;
|
|
89
88
|
UsageTable.displayName = 'UsageTable';
|
|
@@ -64,10 +64,9 @@ var fields = function fields() {
|
|
|
64
64
|
}];
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
-
var EngineSettingsForm = (0, _Form.generateForm)({
|
|
67
|
+
var EngineSettingsForm = exports.EngineSettingsForm = (0, _Form.generateForm)({
|
|
68
68
|
formOptions: ['spaceSlug'],
|
|
69
69
|
dataSources: dataSources,
|
|
70
70
|
fields: fields,
|
|
71
71
|
handleSubmit: handleSubmit
|
|
72
|
-
});
|
|
73
|
-
exports.EngineSettingsForm = EngineSettingsForm;
|
|
72
|
+
});
|
|
@@ -184,10 +184,9 @@ var columns = [{
|
|
|
184
184
|
sortable: false,
|
|
185
185
|
toggleable: true
|
|
186
186
|
}];
|
|
187
|
-
var RunErrorTable = (0, _Table.generateTable)({
|
|
187
|
+
var RunErrorTable = exports.RunErrorTable = (0, _Table.generateTable)({
|
|
188
188
|
tableOptions: ['runId'],
|
|
189
189
|
columns: columns,
|
|
190
190
|
filters: filters,
|
|
191
191
|
dataSource: dataSource
|
|
192
|
-
});
|
|
193
|
-
exports.RunErrorTable = RunErrorTable;
|
|
192
|
+
});
|
|
@@ -77,11 +77,10 @@ var columns = [{
|
|
|
77
77
|
title: 'Updated By',
|
|
78
78
|
sortable: true
|
|
79
79
|
}];
|
|
80
|
-
var SystemErrorsTable = (0, _Table.generateTable)({
|
|
80
|
+
var SystemErrorsTable = exports.SystemErrorsTable = (0, _Table.generateTable)({
|
|
81
81
|
columns: columns,
|
|
82
82
|
filters: filters,
|
|
83
83
|
dataSource: dataSource
|
|
84
84
|
});
|
|
85
|
-
exports.SystemErrorsTable = SystemErrorsTable;
|
|
86
85
|
SystemErrorsTable.propTypes = {};
|
|
87
86
|
SystemErrorsTable.displayName = 'SystemErrorsTable';
|
|
@@ -155,7 +155,7 @@ var fields = function fields(_ref4) {
|
|
|
155
155
|
}].concat(propertiesFields);
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
var HandlerForm = function HandlerForm(_ref7) {
|
|
158
|
+
var HandlerForm = exports.HandlerForm = function HandlerForm(_ref7) {
|
|
159
159
|
var addFields = _ref7.addFields,
|
|
160
160
|
alterFields = _ref7.alterFields,
|
|
161
161
|
fieldSet = _ref7.fieldSet,
|
|
@@ -180,5 +180,4 @@ var HandlerForm = function HandlerForm(_ref7) {
|
|
|
180
180
|
definitionId: definitionId
|
|
181
181
|
}
|
|
182
182
|
}, children);
|
|
183
|
-
};
|
|
184
|
-
exports.HandlerForm = HandlerForm;
|
|
183
|
+
};
|
|
@@ -106,10 +106,9 @@ var columns = [{
|
|
|
106
106
|
value: 'updatedBy',
|
|
107
107
|
toggleable: true
|
|
108
108
|
}];
|
|
109
|
-
var HandlerTable = (0, _Table.generateTable)({
|
|
109
|
+
var HandlerTable = exports.HandlerTable = (0, _Table.generateTable)({
|
|
110
110
|
columns: columns,
|
|
111
111
|
filters: filters,
|
|
112
112
|
dataSource: dataSource
|
|
113
113
|
});
|
|
114
|
-
exports.HandlerTable = HandlerTable;
|
|
115
114
|
HandlerTable.displayName = 'HandlerTable';
|
|
@@ -48,11 +48,10 @@ var columns = [{
|
|
|
48
48
|
title: 'Nodes',
|
|
49
49
|
sortable: true
|
|
50
50
|
}];
|
|
51
|
-
var MissingHandlerTable = (0, _Table.generateTable)({
|
|
51
|
+
var MissingHandlerTable = exports.MissingHandlerTable = (0, _Table.generateTable)({
|
|
52
52
|
tableOptions: [],
|
|
53
53
|
columns: columns,
|
|
54
54
|
filters: filters,
|
|
55
55
|
dataSource: dataSource
|
|
56
56
|
});
|
|
57
|
-
exports.MissingHandlerTable = MissingHandlerTable;
|
|
58
57
|
MissingHandlerTable.displayName = 'MissingHandlerTable';
|
|
@@ -204,7 +204,7 @@ var fields = function fields(_ref4) {
|
|
|
204
204
|
}];
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
|
-
var PolicyRuleForm = function PolicyRuleForm(_ref16) {
|
|
207
|
+
var PolicyRuleForm = exports.PolicyRuleForm = function PolicyRuleForm(_ref16) {
|
|
208
208
|
var addFields = _ref16.addFields,
|
|
209
209
|
alterFields = _ref16.alterFields,
|
|
210
210
|
fieldSet = _ref16.fieldSet,
|
|
@@ -231,5 +231,4 @@ var PolicyRuleForm = function PolicyRuleForm(_ref16) {
|
|
|
231
231
|
policyType: policyType
|
|
232
232
|
}
|
|
233
233
|
}, children);
|
|
234
|
-
};
|
|
235
|
-
exports.PolicyRuleForm = PolicyRuleForm;
|
|
234
|
+
};
|