@kineticdata/react 5.1.2 → 6.0.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 (313) hide show
  1. package/assets/task/icons/drag-handle.svg +3 -0
  2. package/assets/task/icons/plus_small.svg +2 -4
  3. package/lib/apis/agent/adapters.js +16 -12
  4. package/lib/apis/agent/bridges.js +54 -41
  5. package/lib/apis/agent/handlers.js +51 -38
  6. package/lib/apis/core/activity.js +19 -11
  7. package/lib/apis/core/attributeDefinitions.js +54 -46
  8. package/lib/apis/core/attributeDefinitions.test.js +47 -55
  9. package/lib/apis/core/authentication.js +58 -63
  10. package/lib/apis/core/backgroundJobs.js +38 -30
  11. package/lib/apis/core/bridgeModelAttributeMappings.js +42 -34
  12. package/lib/apis/core/bridgeModelAttributes.js +47 -37
  13. package/lib/apis/core/bridgeModelMappings.js +42 -34
  14. package/lib/apis/core/bridgeModelQualificationMappings.js +42 -34
  15. package/lib/apis/core/bridgeModelQualifications.js +42 -34
  16. package/lib/apis/core/bridgeModels.js +56 -46
  17. package/lib/apis/core/bridgeModels.test.js +64 -80
  18. package/lib/apis/core/bridgedresources.js +64 -72
  19. package/lib/apis/core/bridgedresources.test.js +33 -30
  20. package/lib/apis/core/categories.js +59 -52
  21. package/lib/apis/core/categories.test.js +36 -33
  22. package/lib/apis/core/fileResources.js +41 -33
  23. package/lib/apis/core/filestores.js +42 -34
  24. package/lib/apis/core/formTypes.js +50 -44
  25. package/lib/apis/core/forms.js +53 -49
  26. package/lib/apis/core/forms.test.js +60 -74
  27. package/lib/apis/core/kapps.js +45 -39
  28. package/lib/apis/core/kapps.test.js +45 -52
  29. package/lib/apis/core/logs.js +20 -16
  30. package/lib/apis/core/memberships.js +23 -20
  31. package/lib/apis/core/meta.js +31 -19
  32. package/lib/apis/core/notices.js +17 -9
  33. package/lib/apis/core/oauthClients.js +49 -45
  34. package/lib/apis/core/platformComponents.js +73 -57
  35. package/lib/apis/core/platformItems.js +22 -13
  36. package/lib/apis/core/profile.js +28 -21
  37. package/lib/apis/core/profile.test.js +20 -17
  38. package/lib/apis/core/securityPolicyDefinitions.js +48 -41
  39. package/lib/apis/core/securityPolicyDefinitions.test.js +50 -60
  40. package/lib/apis/core/space.js +23 -16
  41. package/lib/apis/core/space.test.js +31 -38
  42. package/lib/apis/core/submissions.js +213 -186
  43. package/lib/apis/core/submissions.test.js +39 -36
  44. package/lib/apis/core/teams.js +51 -44
  45. package/lib/apis/core/teams.test.js +42 -39
  46. package/lib/apis/core/translations.js +123 -130
  47. package/lib/apis/core/translations.test.js +278 -368
  48. package/lib/apis/core/users.js +56 -49
  49. package/lib/apis/core/users.test.js +42 -39
  50. package/lib/apis/core/version.js +20 -11
  51. package/lib/apis/core/webApis.js +42 -34
  52. package/lib/apis/core/webhooks.js +48 -41
  53. package/lib/apis/core/webhooks.test.js +50 -60
  54. package/lib/apis/core/webhooksJobs.js +30 -26
  55. package/lib/apis/core/workflows.js +52 -44
  56. package/lib/apis/http.js +121 -80
  57. package/lib/apis/http.test.js +137 -38
  58. package/lib/apis/index.js +506 -50
  59. package/lib/apis/system/index.js +363 -215
  60. package/lib/apis/task/index.js +294 -227
  61. package/lib/components/agent/bridge/BridgeForm.js +50 -50
  62. package/lib/components/agent/bridge/BridgeTable.js +16 -9
  63. package/lib/components/agent/filestore/FilestoreForm.js +49 -48
  64. package/lib/components/agent/filestore/FilestoreTable.js +16 -9
  65. package/lib/components/agent/handler/AgentHandlerForm.js +24 -27
  66. package/lib/components/agent/handler/AgentHandlerTable.js +17 -10
  67. package/lib/components/common/AttributeSelect.js +15 -9
  68. package/lib/components/common/BridgeSelect.js +48 -43
  69. package/lib/components/common/ComponentConfigContext.js +9 -2
  70. package/lib/components/common/ContentEditable.js +36 -60
  71. package/lib/components/common/FormSelect.js +70 -58
  72. package/lib/components/common/NodeSelect.js +23 -19
  73. package/lib/components/common/Scroller.js +24 -23
  74. package/lib/components/common/StaticSelect.js +57 -50
  75. package/lib/components/common/TableInput.js +54 -57
  76. package/lib/components/common/TeamSelect.js +42 -39
  77. package/lib/components/common/ToastContainer.js +170 -0
  78. package/lib/components/common/Typeahead.js +121 -138
  79. package/lib/components/common/UserSelect.js +42 -41
  80. package/lib/components/common/authentication/AuthInterceptor.js +15 -19
  81. package/lib/components/common/authentication/AuthInterceptor.test.js +46 -64
  82. package/lib/components/common/authentication/AuthenticationContainer.js +350 -454
  83. package/lib/components/common/authentication/RequestInterceptor.js +16 -19
  84. package/lib/components/common/code_input/CodeInput.js +92 -122
  85. package/lib/components/common/code_input/draftHelpers.js +96 -90
  86. package/lib/components/common/code_input/languageHelpers.js +49 -47
  87. package/lib/components/common/code_input/languageHelpers.test.js +21 -16
  88. package/lib/components/common/defaults/Toast.js +26 -0
  89. package/lib/components/common/defaults/index.js +13 -0
  90. package/lib/components/core/CoreFormModal.js +26 -24
  91. package/lib/components/core/CoreModal.js +37 -31
  92. package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +24 -23
  93. package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +25 -18
  94. package/lib/components/core/bridge_model/BridgeModelForm.js +27 -37
  95. package/lib/components/core/bridge_model/BridgeModelTable.js +17 -10
  96. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +17 -16
  97. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +25 -21
  98. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +20 -20
  99. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +27 -22
  100. package/lib/components/core/category/CategoryForm.js +22 -22
  101. package/lib/components/core/category/CategoryTable.js +28 -16
  102. package/lib/components/core/core_form/CoreForm.js +209 -285
  103. package/lib/components/core/core_form/CoreForm.test.js +12 -10
  104. package/lib/components/core/core_form/defaults/index.js +52 -44
  105. package/lib/components/core/core_form/globals.js +14 -5
  106. package/lib/components/core/field_definition/FieldDefinitionForm.js +23 -21
  107. package/lib/components/core/field_definition/FieldDefinitionTable.js +26 -15
  108. package/lib/components/core/file_resource/FileResourceForm.js +38 -37
  109. package/lib/components/core/file_resource/FileResourceTable.js +16 -12
  110. package/lib/components/core/form/FormForm.js +56 -61
  111. package/lib/components/core/form/FormTable.js +47 -33
  112. package/lib/components/core/form_type/FormTypeForm.js +14 -13
  113. package/lib/components/core/form_type/FormTypeTable.js +15 -9
  114. package/lib/components/core/i18n/I18n.js +54 -61
  115. package/lib/components/core/i18n/I18nContext.js +9 -2
  116. package/lib/components/core/i18n/I18nProvider.js +40 -43
  117. package/lib/components/core/i18n/Moment.js +40 -50
  118. package/lib/components/core/index_definition/IndexDefinitionForm.js +23 -24
  119. package/lib/components/core/index_definition/IndexDefinitionTable.js +31 -16
  120. package/lib/components/core/index_job/IndexJobTable.js +20 -15
  121. package/lib/components/core/kapp/KappForm.js +57 -58
  122. package/lib/components/core/kapp/KappTable.js +34 -44
  123. package/lib/components/core/log/LogTable.js +42 -34
  124. package/lib/components/core/oauth_client/OAuthClientForm.js +17 -17
  125. package/lib/components/core/oauth_client/OAuthClientTable.js +12 -8
  126. package/lib/components/core/platform_component/AgentComponentForm.js +15 -15
  127. package/lib/components/core/platform_component/AgentComponentTable.js +10 -5
  128. package/lib/components/core/platform_component/TaskComponentForm.js +14 -14
  129. package/lib/components/core/profile/ProfileForm.js +40 -39
  130. package/lib/components/core/security_definition/SecurityDefinitionForm.js +28 -25
  131. package/lib/components/core/security_definition/SecurityDefinitionTable.js +27 -17
  132. package/lib/components/core/space/SpaceForm.js +79 -90
  133. package/lib/components/core/submission/DatastoreSubmissionFilters.js +39 -40
  134. package/lib/components/core/submission/DatastoreSubmissionTable.js +37 -34
  135. package/lib/components/core/submission/FormSubmissionFilters.js +79 -75
  136. package/lib/components/core/submission/FormSubmissionTable.js +64 -39
  137. package/lib/components/core/submission/KappSubmissionTable.js +67 -48
  138. package/lib/components/core/submission/SubmissionForm.js +126 -55
  139. package/lib/components/core/submission/SubmissionTable.js +24 -20
  140. package/lib/components/core/submission/helpers.js +37 -33
  141. package/lib/components/core/submission/helpers.test.js +69 -20
  142. package/lib/components/core/team/TeamForm.js +24 -21
  143. package/lib/components/core/team/TeamTable.js +27 -16
  144. package/lib/components/core/translation/ContextForm.js +13 -10
  145. package/lib/components/core/translation/ContextTable.js +13 -10
  146. package/lib/components/core/translation/EntryForm.js +27 -24
  147. package/lib/components/core/translation/EntryTable.js +19 -16
  148. package/lib/components/core/translation/LocaleForm.js +16 -13
  149. package/lib/components/core/translation/LocaleTable.js +12 -8
  150. package/lib/components/core/user/UserForm.js +38 -37
  151. package/lib/components/core/user/UserTable.js +42 -20
  152. package/lib/components/core/webapi/WebApiForm.js +87 -80
  153. package/lib/components/core/webapi/WebApiTable.js +28 -17
  154. package/lib/components/core/webhook/WebhookForm.js +33 -32
  155. package/lib/components/core/webhook/WebhookTable.js +41 -29
  156. package/lib/components/core/webhook_job/WebhookJobTable.js +58 -35
  157. package/lib/components/form/Form.helpers.js +182 -108
  158. package/lib/components/form/Form.js +467 -524
  159. package/lib/components/form/Form.models.js +39 -24
  160. package/lib/components/form/FormState.js +8 -5
  161. package/lib/components/form/KitchenSinkForm.js +135 -4
  162. package/lib/components/form/defaults/AttributesField.js +48 -59
  163. package/lib/components/form/defaults/CheckboxField.js +14 -6
  164. package/lib/components/form/defaults/CodeField.js +15 -7
  165. package/lib/components/form/defaults/FormButtons.js +12 -4
  166. package/lib/components/form/defaults/FormError.js +12 -4
  167. package/lib/components/form/defaults/FormField.js +15 -7
  168. package/lib/components/form/defaults/FormLayout.js +12 -4
  169. package/lib/components/form/defaults/FormMultiField.js +15 -7
  170. package/lib/components/form/defaults/PasswordField.js +14 -6
  171. package/lib/components/form/defaults/RadioField.js +15 -7
  172. package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +17 -9
  173. package/lib/components/form/defaults/SelectField.js +16 -8
  174. package/lib/components/form/defaults/SelectMultiField.js +15 -7
  175. package/lib/components/form/defaults/TableField.js +14 -6
  176. package/lib/components/form/defaults/TeamField.js +15 -7
  177. package/lib/components/form/defaults/TeamMultiField.js +15 -7
  178. package/lib/components/form/defaults/TextField.js +14 -6
  179. package/lib/components/form/defaults/TextMultiField.js +26 -28
  180. package/lib/components/form/defaults/UserField.js +15 -7
  181. package/lib/components/form/defaults/UserMultiField.js +15 -7
  182. package/lib/components/form/defaults/index.js +48 -41
  183. package/lib/components/form/tests/Form.test.js +568 -864
  184. package/lib/components/form/tests/components.js +15 -25
  185. package/lib/components/form/tests/helpers.test.js +35 -33
  186. package/lib/components/index.js +1034 -135
  187. package/lib/components/system/SystemBackgroundTasksTable.js +14 -10
  188. package/lib/components/system/SystemCassandraForm.js +98 -0
  189. package/lib/components/system/SystemElasticSearchForm.js +98 -0
  190. package/lib/components/system/SystemFilestoreForm.js +36 -28
  191. package/lib/components/system/SystemForm.js +19 -16
  192. package/lib/components/system/SystemIngressForm.js +85 -36
  193. package/lib/components/system/SystemSecurityForm.js +17 -14
  194. package/lib/components/system/SystemSmtpForm.js +13 -13
  195. package/lib/components/system/SystemTaskAdapterForm.js +49 -21
  196. package/lib/components/system/SystemTrustedCertificateForm.js +40 -0
  197. package/lib/components/system/SystemTrustedCertificatesTable.js +74 -0
  198. package/lib/components/system/SystemUserForm.js +15 -14
  199. package/lib/components/system/helpers.js +281 -98
  200. package/lib/components/system/helpers.test.js +16 -12
  201. package/lib/components/system/spaces/SystemSpaceForm.js +25 -24
  202. package/lib/components/system/spaces/SystemTenantForm.js +112 -68
  203. package/lib/components/system/spaces/SystemTenantTable.js +12 -8
  204. package/lib/components/table/Table.js +295 -227
  205. package/lib/components/table/Table.redux.js +339 -355
  206. package/lib/components/table/Table.redux.test.js +49 -47
  207. package/lib/components/table/Table.test.js +146 -132
  208. package/lib/components/table/defaults/BodyCell.js +12 -6
  209. package/lib/components/table/defaults/BodyRow.js +10 -4
  210. package/lib/components/table/defaults/BooleanFilter.js +17 -11
  211. package/lib/components/table/defaults/ColumnControl.js +26 -0
  212. package/lib/components/table/defaults/EmptyBodyRow.js +12 -6
  213. package/lib/components/table/defaults/FilterLayout.js +17 -11
  214. package/lib/components/table/defaults/Footer.js +11 -5
  215. package/lib/components/table/defaults/FooterCell.js +10 -4
  216. package/lib/components/table/defaults/FooterRow.js +10 -4
  217. package/lib/components/table/defaults/Header.js +10 -4
  218. package/lib/components/table/defaults/HeaderCell.js +16 -10
  219. package/lib/components/table/defaults/HeaderRow.js +10 -4
  220. package/lib/components/table/defaults/PaginationControl.js +18 -9
  221. package/lib/components/table/defaults/TableBody.js +10 -4
  222. package/lib/components/table/defaults/TableLayout.js +12 -6
  223. package/lib/components/table/defaults/TextFilter.js +16 -10
  224. package/lib/components/table/defaults/index.js +43 -33
  225. package/lib/components/task/builder/Connector.js +100 -111
  226. package/lib/components/task/builder/ConnectorForm.js +17 -11
  227. package/lib/components/task/builder/Node.js +101 -83
  228. package/lib/components/task/builder/NodeForm.js +30 -27
  229. package/lib/components/task/builder/NodeParametersForm.js +27 -24
  230. package/lib/components/task/builder/SvgCanvas.js +67 -96
  231. package/lib/components/task/builder/SvgText.js +19 -134
  232. package/lib/components/task/builder/TaskDefinitionConfigForm.js +27 -22
  233. package/lib/components/task/builder/TreeBuilder.js +140 -115
  234. package/lib/components/task/builder/builder.redux.js +311 -326
  235. package/lib/components/task/builder/constants.js +94 -45
  236. package/lib/components/task/builder/helpers.js +184 -173
  237. package/lib/components/task/builder/helpers.test.js +20 -18
  238. package/lib/components/task/builder/models.js +121 -98
  239. package/lib/components/task/category/TaskCategoryForm.js +31 -29
  240. package/lib/components/task/category/TaskCategoryTable.js +12 -8
  241. package/lib/components/task/common/UsageTable.js +16 -12
  242. package/lib/components/task/engine/EngineSettingsForm.js +13 -11
  243. package/lib/components/task/errors/RunErrorTable.js +50 -27
  244. package/lib/components/task/errors/SystemErrorsTable.js +13 -9
  245. package/lib/components/task/handlers/HandlerForm.js +55 -55
  246. package/lib/components/task/handlers/HandlerTable.js +35 -19
  247. package/lib/components/task/handlers/MissingHandlerTable.js +12 -8
  248. package/lib/components/task/policy_rule/PolicyRuleForm.js +33 -32
  249. package/lib/components/task/policy_rule/PolicyRuleTable.js +12 -8
  250. package/lib/components/task/runs/CreateManualTriggerForm.js +17 -15
  251. package/lib/components/task/runs/RunTable.js +45 -29
  252. package/lib/components/task/runs/RunTaskTable.js +10 -6
  253. package/lib/components/task/sources/SourceForm.js +47 -47
  254. package/lib/components/task/sources/SourceTable.js +29 -18
  255. package/lib/components/task/triggers/TriggerTable.js +71 -41
  256. package/lib/components/task/workflows/LinkedWorkflowForm.js +48 -54
  257. package/lib/components/task/workflows/LinkedWorkflowTable.js +46 -26
  258. package/lib/components/task/workflows/MissingRoutineTable.js +12 -8
  259. package/lib/components/task/workflows/WorkflowForm.js +49 -44
  260. package/lib/components/task/workflows/WorkflowTable.js +47 -29
  261. package/lib/helpers/SearchBuilder.js +73 -127
  262. package/lib/helpers/SearchBuilder.test.js +184 -175
  263. package/lib/helpers/index.js +116 -74
  264. package/lib/index.js +87 -38
  265. package/lib/reducer.js +11 -3
  266. package/lib/saga.js +42 -38
  267. package/lib/store.js +59 -35
  268. package/package.json +17 -29
  269. package/proxyhelper.js +122 -57
  270. package/assets/discussions/images/avi_128.png +0 -0
  271. package/assets/discussions/images/excel_128.png +0 -0
  272. package/assets/discussions/images/html_128.png +0 -0
  273. package/assets/discussions/images/illustrator_128.png +0 -0
  274. package/assets/discussions/images/indesign_128.png +0 -0
  275. package/assets/discussions/images/movie_128.png +0 -0
  276. package/assets/discussions/images/mpeg_128.png +0 -0
  277. package/assets/discussions/images/pdf_128.png +0 -0
  278. package/assets/discussions/images/photoshop_128.png +0 -0
  279. package/assets/discussions/images/powerpoint_128.png +0 -0
  280. package/assets/discussions/images/txt_128.png +0 -0
  281. package/assets/discussions/images/unknown_128.png +0 -0
  282. package/assets/discussions/images/word_128.png +0 -0
  283. package/assets/discussions/styles/_discussion.scss +0 -506
  284. package/lib/apis/discussions/index.js +0 -395
  285. package/lib/apis/socket/index.js +0 -77
  286. package/lib/apis/socket/socket.js +0 -350
  287. package/lib/apis/socket/socket.test.js +0 -90
  288. package/lib/apis/socket/timer.js +0 -45
  289. package/lib/apis/socket/timer.test.js +0 -51
  290. package/lib/apis/socket/topic.js +0 -185
  291. package/lib/apis/topics/index.js +0 -19
  292. package/lib/components/discussions/ChatInputForm.js +0 -424
  293. package/lib/components/discussions/DateBanner.js +0 -10
  294. package/lib/components/discussions/Discussion.js +0 -202
  295. package/lib/components/discussions/DiscussionForm.js +0 -227
  296. package/lib/components/discussions/InvitationForm.js +0 -107
  297. package/lib/components/discussions/MessageHistory.js +0 -110
  298. package/lib/components/discussions/MessagesByDate.js +0 -40
  299. package/lib/components/discussions/MessagesList.js +0 -30
  300. package/lib/components/discussions/MoreMessagesBanner.js +0 -26
  301. package/lib/components/discussions/ScrollHelper.js +0 -84
  302. package/lib/components/discussions/SystemMessage.js +0 -88
  303. package/lib/components/discussions/SystemMessageGroup.js +0 -15
  304. package/lib/components/discussions/UserMessage.js +0 -163
  305. package/lib/components/discussions/UserMessageGroup.js +0 -34
  306. package/lib/components/discussions/redux.js +0 -178
  307. package/lib/components/discussions/sagas.js +0 -500
  308. package/lib/helpers/discussions/canManage.js +0 -30
  309. package/lib/helpers/discussions/canManage.test.js +0 -69
  310. package/lib/helpers/discussions/generateSystemMessageContent.js +0 -131
  311. package/lib/helpers/discussions/generateSystemMessageContent.test.js +0 -450
  312. package/lib/models/discussions.js +0 -76
  313. package/lib/models/index.js +0 -1
@@ -1,64 +1,66 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
- import React, { createRef, Component } from 'react';
6
- import { throttle } from 'lodash-es';
7
- import { isIE11 } from './helpers';
8
- import * as constants from './constants';
9
- import { Point } from './models';
10
- export var SvgCanvas = /*#__PURE__*/function (_Component) {
11
- _inherits(SvgCanvas, _Component);
12
-
13
- var _super = _createSuper(SvgCanvas);
14
-
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.SvgCanvas = void 0;
9
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
10
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
11
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
12
+ var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createSuper"));
13
+ var _react = _interopRequireWildcard(require("react"));
14
+ var _lodashEs = require("lodash-es");
15
+ var _helpers = require("./helpers");
16
+ var constants = _interopRequireWildcard(require("./constants"));
17
+ var _models = require("./models");
18
+ var SvgCanvas = /*#__PURE__*/function (_Component) {
19
+ (0, _inherits2["default"])(SvgCanvas, _Component);
20
+ var _super = (0, _createSuper2["default"])(SvgCanvas);
15
21
  function SvgCanvas(props) {
16
22
  var _this;
17
-
18
- _classCallCheck(this, SvgCanvas);
19
-
23
+ (0, _classCallCheck2["default"])(this, SvgCanvas);
20
24
  _this = _super.call(this, props);
21
-
22
25
  _this.watchDrag = function (_ref) {
23
26
  var event = _ref.event,
24
- onClick = _ref.onClick,
25
- onMove = _ref.onMove,
26
- onDrop = _ref.onDrop,
27
- _ref$scaled = _ref.scaled,
28
- scaled = _ref$scaled === void 0 ? true : _ref$scaled,
29
- _ref$relative = _ref.relative,
30
- relative = _ref$relative === void 0 ? true : _ref$relative;
31
- event.preventDefault();
32
- event.stopPropagation(); // boolean to prevent race condition where onMove could be called after
27
+ nativeEvent = _ref.nativeEvent,
28
+ onClick = _ref.onClick,
29
+ onMove = _ref.onMove,
30
+ onDrop = _ref.onDrop,
31
+ _ref$scaled = _ref.scaled,
32
+ scaled = _ref$scaled === void 0 ? true : _ref$scaled,
33
+ _ref$relative = _ref.relative,
34
+ relative = _ref$relative === void 0 ? true : _ref$relative;
35
+ event && event.preventDefault();
36
+ event && event.stopPropagation();
37
+ // boolean to prevent race condition where onMove could be called after
33
38
  // onDrop was called
34
-
35
- var dragging = false; // set a threshold before we consider the mode to be dragging to prevent
39
+ var dragging = false;
40
+ // set a threshold before we consider the mode to be dragging to prevent
36
41
  // clicks that result as really short drags
37
-
38
42
  setTimeout(function () {
39
43
  return dragging = true;
40
- }, 100); // track whether or not the mousemove event was fired before the mouseup,
44
+ }, 100);
45
+ // track whether or not the mousemove event was fired before the mouseup,
41
46
  // if not we will call onClick instead of onDrop
42
-
43
- var dragged = false; // for relative mode, track the last x and y positions so we can pass the
47
+ var dragged = false;
48
+ // for relative mode, track the last x and y positions so we can pass the
44
49
  // deltas to onMove
45
-
46
- var lastX = event.nativeEvent.clientX;
47
- var lastY = event.nativeEvent.clientY; // for non-relative mode we want to calculate the virtual position in the
50
+ var lastX = event ? event.nativeEvent.clientX : nativeEvent.clientX;
51
+ var lastY = event ? event.nativeEvent.clientY : nativeEvent.clientY;
52
+ // for non-relative mode we want to calculate the virtual position in the
48
53
  // canvas, to do this we need to subtract the offsets below from the client
49
54
  // position (this is because offsetX and offsetY can't be trusted in IE).
50
-
51
55
  var offsetLeft = _this.canvas.current.parentNode.offsetLeft;
52
56
  var offsetTop = _this.canvas.current.parentNode.offsetTop;
53
- var moveHandler = throttle(function (event) {
57
+ var moveHandler = (0, _lodashEs.throttle)(function (event) {
54
58
  event.preventDefault();
55
59
  event.stopPropagation();
56
60
  var clientX = event.clientX,
57
- clientY = event.clientY;
58
-
61
+ clientY = event.clientY;
59
62
  if (dragging) {
60
63
  dragged = true;
61
-
62
64
  if (relative) {
63
65
  var dx = (clientX - lastX) / (scaled ? _this.viewport.scale : 1);
64
66
  var dy = (clientY - lastY) / (scaled ? _this.viewport.scale : 1);
@@ -71,25 +73,20 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
71
73
  } else {
72
74
  var x = (clientX - offsetLeft - _this.viewport.x) / _this.viewport.scale;
73
75
  var y = (clientY - offsetTop - _this.viewport.y) / _this.viewport.scale;
74
- onMove(Point({
76
+ onMove((0, _models.Point)({
75
77
  x: x,
76
78
  y: y
77
79
  }));
78
80
  }
79
81
  }
80
82
  }, constants.THROTTLE_DRAG);
81
-
82
83
  var dropHandler = function dropHandler(event) {
83
84
  event.preventDefault();
84
85
  event.stopPropagation();
85
86
  dragging = false;
86
-
87
87
  _this.canvas.current.removeEventListener('mousemove', moveHandler);
88
-
89
88
  _this.canvas.current.removeEventListener('mouseup', dropHandler);
90
-
91
89
  _this.canvas.current.removeEventListener('mouseleave', dropHandler);
92
-
93
90
  if (dragged) {
94
91
  if (onDrop) {
95
92
  onDrop();
@@ -100,14 +97,10 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
100
97
  }
101
98
  }
102
99
  };
103
-
104
100
  _this.canvas.current.addEventListener('mousemove', moveHandler);
105
-
106
101
  _this.canvas.current.addEventListener('mouseup', dropHandler);
107
-
108
102
  _this.canvas.current.addEventListener('mouseleave', dropHandler);
109
103
  };
110
-
111
104
  _this.drag = function (event) {
112
105
  _this.watchDrag({
113
106
  event: event,
@@ -115,45 +108,39 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
115
108
  scaled: false
116
109
  });
117
110
  };
118
-
119
111
  _this.focusPoint = function (_ref2, sidebar) {
120
112
  var x = _ref2.x,
121
- y = _ref2.y;
113
+ y = _ref2.y;
122
114
  var height = _this.canvas.current.clientHeight;
123
115
  var width = sidebar ? sidebar.offsetLeft : _this.canvas.current.clientWidth;
124
116
  _this.viewport.x = width / 2 - x * _this.viewport.scale;
125
117
  _this.viewport.y = height / 2 - y * _this.viewport.scale;
126
-
127
118
  _this.setTransform(constants.CANVAS_ZOOM_DURATION, 'ease-in');
128
119
  };
129
-
130
120
  _this.pan = function (_ref3) {
131
121
  var dx = _ref3.dx,
132
- dy = _ref3.dy;
122
+ dy = _ref3.dy;
133
123
  _this.viewport.x += dx;
134
124
  _this.viewport.y += dy;
135
-
136
125
  _this.setTransform();
137
126
  };
138
-
139
- _this.zoom = throttle(function (clientX, clientY) {
127
+ _this.zoom = (0, _lodashEs.throttle)(function (clientX, clientY) {
140
128
  var offsetX = clientX - _this.canvas.current.parentNode.offsetLeft;
141
- var offsetY = clientY - _this.canvas.current.parentNode.offsetTop; // Compute the new scale value, the deltaY from the mouse event is usually
129
+ var offsetY = clientY - _this.canvas.current.parentNode.offsetTop;
130
+ // Compute the new scale value, the deltaY from the mouse event is usually
142
131
  // somewhere between 0 and 100 so we divide that by a large number to get
143
132
  // much smaller increments.
144
-
145
133
  var scale = _this.viewport.scale - _this.scrollDelta / constants.CANVAS_ZOOM_MODIFIER;
146
134
  _this.scrollDelta = 0;
147
135
  var min = constants.CANVAS_SCALE_OPTIONS.first();
148
- var max = _this.viewport.largeMode ? constants.CANVAS_SCALE_OPTIONS.last() : 1.0; // If the newly computed scale value is less than the minimum or more than
136
+ var max = _this.viewport.largeMode ? constants.CANVAS_SCALE_OPTIONS.last() : 1.0;
137
+ // If the newly computed scale value is less than the minimum or more than
149
138
  // the maximum we use those values instead.
150
-
151
139
  if (scale < min) {
152
140
  scale = min;
153
141
  } else if (scale > max) {
154
142
  scale = max;
155
143
  }
156
-
157
144
  if (scale !== _this.viewport.scale) {
158
145
  // In order to keep the mouse cursor in the same position relative to the
159
146
  // svg graph while zooming we also need to adjust the viewport's x and y
@@ -163,39 +150,31 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
163
150
  _this.viewport.x += svgX * (_this.viewport.scale - scale);
164
151
  _this.viewport.y += svgY * (_this.viewport.scale - scale);
165
152
  _this.viewport.scale = scale;
166
-
167
153
  _this.setTransform();
168
154
  }
169
155
  }, constants.THROTTLE_ZOOM);
170
-
171
156
  _this.zoomIn = function () {
172
157
  var scale = constants.CANVAS_SCALE_OPTIONS.find(function (scale) {
173
158
  return scale > _this.viewport.scale;
174
159
  });
175
-
176
160
  if (scale) {
177
161
  if (scale > 1) {
178
162
  _this.viewport.largeMode = true;
179
163
  }
180
-
181
164
  _this.zoomToScale(scale);
182
165
  }
183
166
  };
184
-
185
167
  _this.zoomOut = function () {
186
168
  var scale = constants.CANVAS_SCALE_OPTIONS.reverse().find(function (scale) {
187
169
  return scale < _this.viewport.scale;
188
170
  });
189
-
190
171
  if (scale) {
191
172
  if (scale <= 1) {
192
173
  _this.viewport.largeMode = false;
193
174
  }
194
-
195
175
  _this.zoomToScale(scale);
196
176
  }
197
177
  };
198
-
199
178
  _this.zoomToScale = function (scale) {
200
179
  // make sure to adjust the x and y offsets so that we are zooming to / from
201
180
  // the center of the canvas element, use the following equation to determine
@@ -204,28 +183,24 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
204
183
  var height = _this.canvas.current.clientHeight;
205
184
  var width = _this.canvas.current.clientWidth;
206
185
  var cx = (width / 2 - _this.viewport.x) / _this.viewport.scale;
207
- var cy = (height / 2 - _this.viewport.y) / _this.viewport.scale; // then compute the new x / y values by using the equation above and
186
+ var cy = (height / 2 - _this.viewport.y) / _this.viewport.scale;
187
+ // then compute the new x / y values by using the equation above and
208
188
  // solving for x / y given the computed center coordinate
209
-
210
189
  _this.viewport.x = width / 2 - cx * scale;
211
190
  _this.viewport.y = height / 2 - cy * scale;
212
191
  _this.viewport.scale = scale;
213
-
214
192
  _this.setTransform(constants.CANVAS_ZOOM_DURATION, 'ease-out');
215
193
  };
216
-
217
194
  _this.onWheel = function (event) {
218
195
  event.preventDefault();
219
196
  event.stopPropagation();
220
197
  _this.scrollDelta += event.deltaY;
221
-
222
198
  _this.zoom(event.clientX, event.clientY);
223
199
  };
224
-
225
- _this.canvas = createRef();
226
- _this.transformer = createRef(); // Since the scroll event is throttled and we get the incremental scroll
200
+ _this.canvas = /*#__PURE__*/(0, _react.createRef)();
201
+ _this.transformer = /*#__PURE__*/(0, _react.createRef)();
202
+ // Since the scroll event is throttled and we get the incremental scroll
227
203
  // changes we need to accumulate them outside of the throttled logic.
228
-
229
204
  _this.scrollDelta = 0;
230
205
  _this.viewport = {
231
206
  largeMode: false,
@@ -235,24 +210,23 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
235
210
  };
236
211
  return _this;
237
212
  }
238
-
239
- _createClass(SvgCanvas, [{
213
+ (0, _createClass2["default"])(SvgCanvas, [{
240
214
  key: "setTransform",
241
215
  value: function setTransform(duration) {
242
216
  var ease = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
243
217
  var _this$viewport = this.viewport,
244
- scale = _this$viewport.scale,
245
- x = _this$viewport.x,
246
- y = _this$viewport.y;
247
-
248
- if (isIE11) {
218
+ scale = _this$viewport.scale,
219
+ x = _this$viewport.x,
220
+ y = _this$viewport.y;
221
+ if (_helpers.isIE11) {
249
222
  // this.transformer.current.setAttribute(
250
223
  // 'transform',
251
224
  // `translate(${x} ${y}) scale(${scale})`,
252
225
  // );
253
226
  this.transformer.current.transform = "translate(".concat(x, " ").concat(y, ") scale(").concat(scale, ")");
254
227
  } else {
255
- var transition = duration ? "transform ".concat(duration, "ms ").concat(ease) : ''; // this.transformer.current.setAttribute(
228
+ var transition = duration ? "transform ".concat(duration, "ms ").concat(ease) : '';
229
+ // this.transformer.current.setAttribute(
256
230
  // 'style',
257
231
  // `transform: translate(${x}px, ${y}px) scale(${scale});${transition}`,
258
232
  // );
@@ -260,15 +234,12 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
260
234
  this.transformer.current.style.transform = "translate(".concat(x, "px, ").concat(y, "px) scale(").concat(scale, ")");
261
235
  this.transformer.current.style.transition = transition;
262
236
  }
263
-
264
237
  if (this.viewport.scale < 0.26 && this.transformer.current.className.baseVal !== 'min-detail') {
265
238
  this.transformer.current.className.baseVal = 'min-detail';
266
239
  }
267
-
268
240
  if (this.viewport.scale >= 0.26 && this.viewport.scale < 0.5 && this.transformer.current.className.baseVal !== 'med-detail') {
269
241
  this.transformer.current.className.baseVal = 'med-detail';
270
242
  }
271
-
272
243
  if (this.viewport.scale >= 0.5 && this.transformer.current.className.baseVal !== '') {
273
244
  this.transformer.current.className.baseVal = '';
274
245
  }
@@ -282,7 +253,7 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
282
253
  }, {
283
254
  key: "render",
284
255
  value: function render() {
285
- return /*#__PURE__*/React.createElement("svg", {
256
+ return /*#__PURE__*/_react["default"].createElement("svg", {
286
257
  ref: this.canvas,
287
258
  className: "rkl tree-builder",
288
259
  style: {
@@ -290,11 +261,11 @@ export var SvgCanvas = /*#__PURE__*/function (_Component) {
290
261
  width: '100%'
291
262
  },
292
263
  onMouseDown: this.drag
293
- }, /*#__PURE__*/React.createElement("g", {
264
+ }, /*#__PURE__*/_react["default"].createElement("g", {
294
265
  ref: this.transformer
295
266
  }, this.props.children));
296
267
  }
297
268
  }]);
298
-
299
269
  return SvgCanvas;
300
- }(Component);
270
+ }(_react.Component);
271
+ exports.SvgCanvas = SvgCanvas;
@@ -1,135 +1,20 @@
1
- import _toArray from "@babel/runtime/helpers/esm/toArray";
2
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/esm/createClass";
4
- import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
- import React, { Component } from 'react';
7
- import { List } from 'immutable';
8
- import { shallowEqual } from 'recompose';
9
- var ELLIPSIS = " \u2026";
10
- var STYLE = {
11
- dominantBaseline: 'central',
12
- pointerEvents: 'none',
13
- userSelect: 'none',
14
- textAnchor: 'middle'
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.SvgText = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var SvgText = function SvgText(props) {
10
+ return /*#__PURE__*/_react["default"].createElement("foreignObject", {
11
+ className: props.className,
12
+ x: props.x + props.padding,
13
+ y: props.y,
14
+ height: props.height,
15
+ width: props.width - props.padding * 2
16
+ }, /*#__PURE__*/_react["default"].createElement("div", {
17
+ className: "text-node"
18
+ }, /*#__PURE__*/_react["default"].createElement("span", null, props.children)));
15
19
  };
16
- export var SvgText = /*#__PURE__*/function (_Component) {
17
- _inherits(SvgText, _Component);
18
-
19
- var _super = _createSuper(SvgText);
20
-
21
- function SvgText(props) {
22
- var _this;
23
-
24
- _classCallCheck(this, SvgText);
25
-
26
- _this = _super.call(this, props);
27
- _this.state = {
28
- lineOffset: 0,
29
- lines: []
30
- };
31
- return _this;
32
- } // Need to call getLines on componentDidMount because we cannot measure the
33
- // given text with getBBoxForWord (below) until this component is fully
34
- // rendered.
35
-
36
-
37
- _createClass(SvgText, [{
38
- key: "componentDidMount",
39
- value: function componentDidMount() {
40
- this.getLines(this.props.children);
41
- } // When we get new props we are going to re-compute the lines for the text
42
- // because we may have new text or the position may have changed. Note that
43
- // since this operation performs several DOM manipulations we use the
44
- // shouldComponentUpdate method to prevent unnecessary checks.
45
-
46
- }, {
47
- key: "componentWillReceiveProps",
48
- value: function componentWillReceiveProps(nextProps) {
49
- if (this.shouldComponentUpdate(nextProps, this.state)) {
50
- this.getLines(nextProps.children);
51
- }
52
- }
53
- }, {
54
- key: "shouldComponentUpdate",
55
- value: function shouldComponentUpdate(_ref, _ref2) {
56
- var x = _ref.x,
57
- y = _ref.y,
58
- width = _ref.width,
59
- height = _ref.height,
60
- children = _ref.children;
61
- var linesOffset = _ref2.linesOffset,
62
- lines = _ref2.lines;
63
- return this.state.linesOffset !== linesOffset || !shallowEqual(this.state.lines, lines) || this.props.x !== x || this.props.y !== y || this.props.width !== width || this.props.height !== height || !shallowEqual(this.props.children, children);
64
- } // Helper method that uses the 'sampleEl' reference element to measure the
65
- // size of a given word. We insert the word into the DOM and measure the
66
- // sample element and then remove it from the DOM.
67
-
68
- }, {
69
- key: "getBBoxForWord",
70
- value: function getBBoxForWord(word) {
71
- var sampleEl = this.sampleEl;
72
- sampleEl.appendChild(document.createTextNode(word));
73
- var result = sampleEl.parentNode.getBBox();
74
- sampleEl.removeChild(sampleEl.childNodes[0]);
75
- return result;
76
- }
77
- }, {
78
- key: "getLines",
79
- value: function getLines() {
80
- var _this2 = this;
81
-
82
- var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
83
- var width = this.props.width - this.props.padding * 2;
84
- var lineHeight = this.getBBoxForWord('K').height;
85
-
86
- var _text$split = text.split(/\s+/),
87
- _text$split2 = _toArray(_text$split),
88
- first = _text$split2[0],
89
- rest = _text$split2.slice(1);
90
-
91
- var allLines = rest.reduce(function (memo, word) {
92
- var next = "".concat(memo.last(), " ").concat(word);
93
- return _this2.getBBoxForWord(next).width < width ? memo.set(memo.size - 1, next) : memo.push(word);
94
- }, List([first])); // We make sure to always render at least one line, with the scaling around
95
- // these tspans there can be some finicky lineHeight values returned above.
96
-
97
- var maxLines = Math.floor(this.props.height / lineHeight) || 1;
98
- var lines = allLines.size <= maxLines ? allLines : allLines.take(maxLines).update(maxLines - 1, function (line) {
99
- return "".concat(line).concat(ELLIPSIS);
100
- });
101
- var divisor = Math.min(maxLines, lines.size) + 1;
102
- var lineOffset = this.props.height / divisor;
103
- this.setState({
104
- lines: lines,
105
- lineOffset: lineOffset
106
- });
107
- }
108
- }, {
109
- key: "render",
110
- value: function render() {
111
- var _this3 = this;
112
-
113
- return /*#__PURE__*/React.createElement("g", {
114
- className: this.props.className
115
- }, /*#__PURE__*/React.createElement("text", {
116
- style: {
117
- opacity: 0
118
- }
119
- }, /*#__PURE__*/React.createElement("tspan", {
120
- ref: function ref(el) {
121
- _this3.sampleEl = el;
122
- }
123
- })), /*#__PURE__*/React.createElement("text", null, this.state.lines.map(function (line, i) {
124
- return /*#__PURE__*/React.createElement("tspan", {
125
- style: STYLE,
126
- key: line,
127
- x: _this3.props.x + _this3.props.width / 2,
128
- y: _this3.props.y + _this3.state.lineOffset * (i + 1)
129
- }, line);
130
- })));
131
- }
132
- }]);
133
-
134
- return SvgText;
135
- }(Component);
20
+ exports.SvgText = SvgText;
@@ -1,27 +1,35 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
- import { List, Map } from 'immutable';
4
- import { generateForm } from '../../form/Form';
5
- import { fetchForm, fetchKapps } from '../../../apis';
6
- export var checkOmittedParameters = function checkOmittedParameters(node, parameter) {
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.generateTaskDefinition = exports.checkOmittedParameters = exports.TaskDefinitionConfigForm = void 0;
8
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
9
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
+ var _immutable = require("immutable");
11
+ var _Form = require("../../form/Form");
12
+ var _apis = require("../../../apis");
13
+ var checkOmittedParameters = function checkOmittedParameters(node, parameter) {
7
14
  if (node.definitionId === 'system_submission_create_v1') {
8
15
  return !['kappSlug', 'formSlug'].includes(parameter.id);
9
16
  } else {
10
17
  return true;
11
18
  }
12
19
  };
13
- export var generateTaskDefinition = function generateTaskDefinition(taskDefinition) {
20
+ exports.checkOmittedParameters = checkOmittedParameters;
21
+ var generateTaskDefinition = function generateTaskDefinition(taskDefinition) {
14
22
  if (taskDefinition && taskDefinition.definitionName === 'system_submission_create') {
15
23
  return function (_ref) {
16
24
  var form = _ref.form;
17
- return _objectSpread(_objectSpread({}, taskDefinition), {}, {
18
- parameters: [].concat(_toConsumableArray(taskDefinition.parameters.map(function (parameter) {
19
- return parameter.id === 'kappSlug' ? _objectSpread(_objectSpread({}, parameter), {}, {
25
+ return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, taskDefinition), {}, {
26
+ parameters: [].concat((0, _toConsumableArray2["default"])(taskDefinition.parameters.map(function (parameter) {
27
+ return parameter.id === 'kappSlug' ? (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, parameter), {}, {
20
28
  defaultValue: form.kapp.slug
21
- }) : parameter.id === 'formSlug' ? _objectSpread(_objectSpread({}, parameter), {}, {
29
+ }) : parameter.id === 'formSlug' ? (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, parameter), {}, {
22
30
  defaultValue: form.slug
23
31
  }) : parameter;
24
- })), _toConsumableArray(form.fields.map(function (field) {
32
+ })), (0, _toConsumableArray2["default"])(form.fields.map(function (field) {
25
33
  return {
26
34
  name: field.name,
27
35
  defaultValue: '',
@@ -38,11 +46,11 @@ export var generateTaskDefinition = function generateTaskDefinition(taskDefiniti
38
46
  return null;
39
47
  }
40
48
  };
41
-
49
+ exports.generateTaskDefinition = generateTaskDefinition;
42
50
  var dataSources = function dataSources() {
43
51
  return {
44
52
  kapps: {
45
- fn: fetchKapps,
53
+ fn: _apis.fetchKapps,
46
54
  params: [],
47
55
  transform: function transform(data) {
48
56
  return data.kapps;
@@ -50,7 +58,6 @@ var dataSources = function dataSources() {
50
58
  }
51
59
  };
52
60
  };
53
-
54
61
  var fields = function fields() {
55
62
  return function () {
56
63
  return [{
@@ -61,15 +68,14 @@ var fields = function fields() {
61
68
  options: function options(_ref2) {
62
69
  var kapps = _ref2.kapps;
63
70
  return kapps ? kapps.map(function (kapp) {
64
- return Map({
71
+ return (0, _immutable.Map)({
65
72
  value: kapp.get('slug'),
66
73
  label: kapp.get('name')
67
74
  });
68
- }) : List();
75
+ }) : (0, _immutable.List)();
69
76
  },
70
77
  onChange: function onChange(_ref3, actions) {
71
78
  var values = _ref3.values;
72
-
73
79
  if (!!values.get('form')) {
74
80
  actions.setValue('form', null);
75
81
  }
@@ -92,22 +98,21 @@ var fields = function fields() {
92
98
  }];
93
99
  };
94
100
  };
95
-
96
101
  var handleSubmit = function handleSubmit(_ref6) {
97
102
  var taskDefinition = _ref6.taskDefinition;
98
103
  return function (values) {
99
- return fetchForm({
104
+ return (0, _apis.fetchForm)({
100
105
  kappSlug: values.get('kappSlug'),
101
106
  formSlug: values.getIn(['form', 'slug'], ''),
102
107
  include: 'fields,kapp'
103
108
  }).then(generateTaskDefinition(taskDefinition));
104
109
  };
105
110
  };
106
-
107
- export var TaskDefinitionConfigForm = generateForm({
111
+ var TaskDefinitionConfigForm = (0, _Form.generateForm)({
108
112
  formOptions: ['taskDefinition'],
109
113
  dataSources: dataSources,
110
114
  fields: fields,
111
115
  handleSubmit: handleSubmit
112
116
  });
117
+ exports.TaskDefinitionConfigForm = TaskDefinitionConfigForm;
113
118
  TaskDefinitionConfigForm.displayName = 'TaskDefinitionConfigForm';