@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.
- package/assets/task/icons/drag-handle.svg +3 -0
- package/assets/task/icons/plus_small.svg +2 -4
- package/lib/apis/agent/adapters.js +16 -12
- package/lib/apis/agent/bridges.js +54 -41
- package/lib/apis/agent/handlers.js +51 -38
- package/lib/apis/core/activity.js +19 -11
- package/lib/apis/core/attributeDefinitions.js +54 -46
- package/lib/apis/core/attributeDefinitions.test.js +47 -55
- package/lib/apis/core/authentication.js +58 -63
- package/lib/apis/core/backgroundJobs.js +38 -30
- package/lib/apis/core/bridgeModelAttributeMappings.js +42 -34
- package/lib/apis/core/bridgeModelAttributes.js +47 -37
- package/lib/apis/core/bridgeModelMappings.js +42 -34
- package/lib/apis/core/bridgeModelQualificationMappings.js +42 -34
- package/lib/apis/core/bridgeModelQualifications.js +42 -34
- package/lib/apis/core/bridgeModels.js +56 -46
- package/lib/apis/core/bridgeModels.test.js +64 -80
- package/lib/apis/core/bridgedresources.js +64 -72
- package/lib/apis/core/bridgedresources.test.js +33 -30
- package/lib/apis/core/categories.js +59 -52
- package/lib/apis/core/categories.test.js +36 -33
- package/lib/apis/core/fileResources.js +41 -33
- package/lib/apis/core/filestores.js +42 -34
- package/lib/apis/core/formTypes.js +50 -44
- package/lib/apis/core/forms.js +53 -49
- package/lib/apis/core/forms.test.js +60 -74
- package/lib/apis/core/kapps.js +45 -39
- package/lib/apis/core/kapps.test.js +45 -52
- package/lib/apis/core/logs.js +20 -16
- package/lib/apis/core/memberships.js +23 -20
- package/lib/apis/core/meta.js +31 -19
- package/lib/apis/core/notices.js +17 -9
- package/lib/apis/core/oauthClients.js +49 -45
- package/lib/apis/core/platformComponents.js +73 -57
- package/lib/apis/core/platformItems.js +22 -13
- package/lib/apis/core/profile.js +28 -21
- package/lib/apis/core/profile.test.js +20 -17
- package/lib/apis/core/securityPolicyDefinitions.js +48 -41
- package/lib/apis/core/securityPolicyDefinitions.test.js +50 -60
- package/lib/apis/core/space.js +23 -16
- package/lib/apis/core/space.test.js +31 -38
- package/lib/apis/core/submissions.js +213 -186
- package/lib/apis/core/submissions.test.js +39 -36
- package/lib/apis/core/teams.js +51 -44
- package/lib/apis/core/teams.test.js +42 -39
- package/lib/apis/core/translations.js +123 -130
- package/lib/apis/core/translations.test.js +278 -368
- package/lib/apis/core/users.js +56 -49
- package/lib/apis/core/users.test.js +42 -39
- package/lib/apis/core/version.js +20 -11
- package/lib/apis/core/webApis.js +42 -34
- package/lib/apis/core/webhooks.js +48 -41
- package/lib/apis/core/webhooks.test.js +50 -60
- package/lib/apis/core/webhooksJobs.js +30 -26
- package/lib/apis/core/workflows.js +52 -44
- package/lib/apis/http.js +121 -80
- package/lib/apis/http.test.js +137 -38
- package/lib/apis/index.js +506 -50
- package/lib/apis/system/index.js +363 -215
- package/lib/apis/task/index.js +294 -227
- package/lib/components/agent/bridge/BridgeForm.js +50 -50
- package/lib/components/agent/bridge/BridgeTable.js +16 -9
- package/lib/components/agent/filestore/FilestoreForm.js +49 -48
- package/lib/components/agent/filestore/FilestoreTable.js +16 -9
- package/lib/components/agent/handler/AgentHandlerForm.js +24 -27
- package/lib/components/agent/handler/AgentHandlerTable.js +17 -10
- package/lib/components/common/AttributeSelect.js +15 -9
- package/lib/components/common/BridgeSelect.js +48 -43
- package/lib/components/common/ComponentConfigContext.js +9 -2
- package/lib/components/common/ContentEditable.js +36 -60
- package/lib/components/common/FormSelect.js +70 -58
- package/lib/components/common/NodeSelect.js +23 -19
- package/lib/components/common/Scroller.js +24 -23
- package/lib/components/common/StaticSelect.js +57 -50
- package/lib/components/common/TableInput.js +54 -57
- package/lib/components/common/TeamSelect.js +42 -39
- package/lib/components/common/ToastContainer.js +170 -0
- package/lib/components/common/Typeahead.js +121 -138
- package/lib/components/common/UserSelect.js +42 -41
- package/lib/components/common/authentication/AuthInterceptor.js +15 -19
- package/lib/components/common/authentication/AuthInterceptor.test.js +46 -64
- package/lib/components/common/authentication/AuthenticationContainer.js +350 -454
- package/lib/components/common/authentication/RequestInterceptor.js +16 -19
- package/lib/components/common/code_input/CodeInput.js +92 -122
- package/lib/components/common/code_input/draftHelpers.js +96 -90
- package/lib/components/common/code_input/languageHelpers.js +49 -47
- package/lib/components/common/code_input/languageHelpers.test.js +21 -16
- package/lib/components/common/defaults/Toast.js +26 -0
- package/lib/components/common/defaults/index.js +13 -0
- package/lib/components/core/CoreFormModal.js +26 -24
- package/lib/components/core/CoreModal.js +37 -31
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +24 -23
- package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +25 -18
- package/lib/components/core/bridge_model/BridgeModelForm.js +27 -37
- package/lib/components/core/bridge_model/BridgeModelTable.js +17 -10
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +17 -16
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +25 -21
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +20 -20
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +27 -22
- package/lib/components/core/category/CategoryForm.js +22 -22
- package/lib/components/core/category/CategoryTable.js +28 -16
- package/lib/components/core/core_form/CoreForm.js +209 -285
- package/lib/components/core/core_form/CoreForm.test.js +12 -10
- package/lib/components/core/core_form/defaults/index.js +52 -44
- package/lib/components/core/core_form/globals.js +14 -5
- package/lib/components/core/field_definition/FieldDefinitionForm.js +23 -21
- package/lib/components/core/field_definition/FieldDefinitionTable.js +26 -15
- package/lib/components/core/file_resource/FileResourceForm.js +38 -37
- package/lib/components/core/file_resource/FileResourceTable.js +16 -12
- package/lib/components/core/form/FormForm.js +56 -61
- package/lib/components/core/form/FormTable.js +47 -33
- package/lib/components/core/form_type/FormTypeForm.js +14 -13
- package/lib/components/core/form_type/FormTypeTable.js +15 -9
- package/lib/components/core/i18n/I18n.js +54 -61
- package/lib/components/core/i18n/I18nContext.js +9 -2
- package/lib/components/core/i18n/I18nProvider.js +40 -43
- package/lib/components/core/i18n/Moment.js +40 -50
- package/lib/components/core/index_definition/IndexDefinitionForm.js +23 -24
- package/lib/components/core/index_definition/IndexDefinitionTable.js +31 -16
- package/lib/components/core/index_job/IndexJobTable.js +20 -15
- package/lib/components/core/kapp/KappForm.js +57 -58
- package/lib/components/core/kapp/KappTable.js +34 -44
- package/lib/components/core/log/LogTable.js +42 -34
- package/lib/components/core/oauth_client/OAuthClientForm.js +17 -17
- package/lib/components/core/oauth_client/OAuthClientTable.js +12 -8
- package/lib/components/core/platform_component/AgentComponentForm.js +15 -15
- package/lib/components/core/platform_component/AgentComponentTable.js +10 -5
- package/lib/components/core/platform_component/TaskComponentForm.js +14 -14
- package/lib/components/core/profile/ProfileForm.js +40 -39
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +28 -25
- package/lib/components/core/security_definition/SecurityDefinitionTable.js +27 -17
- package/lib/components/core/space/SpaceForm.js +79 -90
- package/lib/components/core/submission/DatastoreSubmissionFilters.js +39 -40
- package/lib/components/core/submission/DatastoreSubmissionTable.js +37 -34
- package/lib/components/core/submission/FormSubmissionFilters.js +79 -75
- package/lib/components/core/submission/FormSubmissionTable.js +64 -39
- package/lib/components/core/submission/KappSubmissionTable.js +67 -48
- package/lib/components/core/submission/SubmissionForm.js +126 -55
- package/lib/components/core/submission/SubmissionTable.js +24 -20
- package/lib/components/core/submission/helpers.js +37 -33
- package/lib/components/core/submission/helpers.test.js +69 -20
- package/lib/components/core/team/TeamForm.js +24 -21
- package/lib/components/core/team/TeamTable.js +27 -16
- package/lib/components/core/translation/ContextForm.js +13 -10
- package/lib/components/core/translation/ContextTable.js +13 -10
- package/lib/components/core/translation/EntryForm.js +27 -24
- package/lib/components/core/translation/EntryTable.js +19 -16
- package/lib/components/core/translation/LocaleForm.js +16 -13
- package/lib/components/core/translation/LocaleTable.js +12 -8
- package/lib/components/core/user/UserForm.js +38 -37
- package/lib/components/core/user/UserTable.js +42 -20
- package/lib/components/core/webapi/WebApiForm.js +87 -80
- package/lib/components/core/webapi/WebApiTable.js +28 -17
- package/lib/components/core/webhook/WebhookForm.js +33 -32
- package/lib/components/core/webhook/WebhookTable.js +41 -29
- package/lib/components/core/webhook_job/WebhookJobTable.js +58 -35
- package/lib/components/form/Form.helpers.js +182 -108
- package/lib/components/form/Form.js +467 -524
- package/lib/components/form/Form.models.js +39 -24
- package/lib/components/form/FormState.js +8 -5
- package/lib/components/form/KitchenSinkForm.js +135 -4
- package/lib/components/form/defaults/AttributesField.js +48 -59
- package/lib/components/form/defaults/CheckboxField.js +14 -6
- package/lib/components/form/defaults/CodeField.js +15 -7
- package/lib/components/form/defaults/FormButtons.js +12 -4
- package/lib/components/form/defaults/FormError.js +12 -4
- package/lib/components/form/defaults/FormField.js +15 -7
- package/lib/components/form/defaults/FormLayout.js +12 -4
- package/lib/components/form/defaults/FormMultiField.js +15 -7
- package/lib/components/form/defaults/PasswordField.js +14 -6
- package/lib/components/form/defaults/RadioField.js +15 -7
- package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +17 -9
- package/lib/components/form/defaults/SelectField.js +16 -8
- package/lib/components/form/defaults/SelectMultiField.js +15 -7
- package/lib/components/form/defaults/TableField.js +14 -6
- package/lib/components/form/defaults/TeamField.js +15 -7
- package/lib/components/form/defaults/TeamMultiField.js +15 -7
- package/lib/components/form/defaults/TextField.js +14 -6
- package/lib/components/form/defaults/TextMultiField.js +26 -28
- package/lib/components/form/defaults/UserField.js +15 -7
- package/lib/components/form/defaults/UserMultiField.js +15 -7
- package/lib/components/form/defaults/index.js +48 -41
- package/lib/components/form/tests/Form.test.js +568 -864
- package/lib/components/form/tests/components.js +15 -25
- package/lib/components/form/tests/helpers.test.js +35 -33
- package/lib/components/index.js +1034 -135
- package/lib/components/system/SystemBackgroundTasksTable.js +14 -10
- package/lib/components/system/SystemCassandraForm.js +98 -0
- package/lib/components/system/SystemElasticSearchForm.js +98 -0
- package/lib/components/system/SystemFilestoreForm.js +36 -28
- package/lib/components/system/SystemForm.js +19 -16
- package/lib/components/system/SystemIngressForm.js +85 -36
- package/lib/components/system/SystemSecurityForm.js +17 -14
- package/lib/components/system/SystemSmtpForm.js +13 -13
- package/lib/components/system/SystemTaskAdapterForm.js +49 -21
- package/lib/components/system/SystemTrustedCertificateForm.js +40 -0
- package/lib/components/system/SystemTrustedCertificatesTable.js +74 -0
- package/lib/components/system/SystemUserForm.js +15 -14
- package/lib/components/system/helpers.js +281 -98
- package/lib/components/system/helpers.test.js +16 -12
- package/lib/components/system/spaces/SystemSpaceForm.js +25 -24
- package/lib/components/system/spaces/SystemTenantForm.js +112 -68
- package/lib/components/system/spaces/SystemTenantTable.js +12 -8
- package/lib/components/table/Table.js +295 -227
- package/lib/components/table/Table.redux.js +339 -355
- package/lib/components/table/Table.redux.test.js +49 -47
- package/lib/components/table/Table.test.js +146 -132
- package/lib/components/table/defaults/BodyCell.js +12 -6
- package/lib/components/table/defaults/BodyRow.js +10 -4
- package/lib/components/table/defaults/BooleanFilter.js +17 -11
- package/lib/components/table/defaults/ColumnControl.js +26 -0
- package/lib/components/table/defaults/EmptyBodyRow.js +12 -6
- package/lib/components/table/defaults/FilterLayout.js +17 -11
- package/lib/components/table/defaults/Footer.js +11 -5
- package/lib/components/table/defaults/FooterCell.js +10 -4
- package/lib/components/table/defaults/FooterRow.js +10 -4
- package/lib/components/table/defaults/Header.js +10 -4
- package/lib/components/table/defaults/HeaderCell.js +16 -10
- package/lib/components/table/defaults/HeaderRow.js +10 -4
- package/lib/components/table/defaults/PaginationControl.js +18 -9
- package/lib/components/table/defaults/TableBody.js +10 -4
- package/lib/components/table/defaults/TableLayout.js +12 -6
- package/lib/components/table/defaults/TextFilter.js +16 -10
- package/lib/components/table/defaults/index.js +43 -33
- package/lib/components/task/builder/Connector.js +100 -111
- package/lib/components/task/builder/ConnectorForm.js +17 -11
- package/lib/components/task/builder/Node.js +101 -83
- package/lib/components/task/builder/NodeForm.js +30 -27
- package/lib/components/task/builder/NodeParametersForm.js +27 -24
- package/lib/components/task/builder/SvgCanvas.js +67 -96
- package/lib/components/task/builder/SvgText.js +19 -134
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +27 -22
- package/lib/components/task/builder/TreeBuilder.js +140 -115
- package/lib/components/task/builder/builder.redux.js +311 -326
- package/lib/components/task/builder/constants.js +94 -45
- package/lib/components/task/builder/helpers.js +184 -173
- package/lib/components/task/builder/helpers.test.js +20 -18
- package/lib/components/task/builder/models.js +121 -98
- package/lib/components/task/category/TaskCategoryForm.js +31 -29
- package/lib/components/task/category/TaskCategoryTable.js +12 -8
- package/lib/components/task/common/UsageTable.js +16 -12
- package/lib/components/task/engine/EngineSettingsForm.js +13 -11
- package/lib/components/task/errors/RunErrorTable.js +50 -27
- package/lib/components/task/errors/SystemErrorsTable.js +13 -9
- package/lib/components/task/handlers/HandlerForm.js +55 -55
- package/lib/components/task/handlers/HandlerTable.js +35 -19
- package/lib/components/task/handlers/MissingHandlerTable.js +12 -8
- package/lib/components/task/policy_rule/PolicyRuleForm.js +33 -32
- package/lib/components/task/policy_rule/PolicyRuleTable.js +12 -8
- package/lib/components/task/runs/CreateManualTriggerForm.js +17 -15
- package/lib/components/task/runs/RunTable.js +45 -29
- package/lib/components/task/runs/RunTaskTable.js +10 -6
- package/lib/components/task/sources/SourceForm.js +47 -47
- package/lib/components/task/sources/SourceTable.js +29 -18
- package/lib/components/task/triggers/TriggerTable.js +71 -41
- package/lib/components/task/workflows/LinkedWorkflowForm.js +48 -54
- package/lib/components/task/workflows/LinkedWorkflowTable.js +46 -26
- package/lib/components/task/workflows/MissingRoutineTable.js +12 -8
- package/lib/components/task/workflows/WorkflowForm.js +49 -44
- package/lib/components/task/workflows/WorkflowTable.js +47 -29
- package/lib/helpers/SearchBuilder.js +73 -127
- package/lib/helpers/SearchBuilder.test.js +184 -175
- package/lib/helpers/index.js +116 -74
- package/lib/index.js +87 -38
- package/lib/reducer.js +11 -3
- package/lib/saga.js +42 -38
- package/lib/store.js +59 -35
- package/package.json +17 -29
- package/proxyhelper.js +122 -57
- package/assets/discussions/images/avi_128.png +0 -0
- package/assets/discussions/images/excel_128.png +0 -0
- package/assets/discussions/images/html_128.png +0 -0
- package/assets/discussions/images/illustrator_128.png +0 -0
- package/assets/discussions/images/indesign_128.png +0 -0
- package/assets/discussions/images/movie_128.png +0 -0
- package/assets/discussions/images/mpeg_128.png +0 -0
- package/assets/discussions/images/pdf_128.png +0 -0
- package/assets/discussions/images/photoshop_128.png +0 -0
- package/assets/discussions/images/powerpoint_128.png +0 -0
- package/assets/discussions/images/txt_128.png +0 -0
- package/assets/discussions/images/unknown_128.png +0 -0
- package/assets/discussions/images/word_128.png +0 -0
- package/assets/discussions/styles/_discussion.scss +0 -506
- package/lib/apis/discussions/index.js +0 -395
- package/lib/apis/socket/index.js +0 -77
- package/lib/apis/socket/socket.js +0 -350
- package/lib/apis/socket/socket.test.js +0 -90
- package/lib/apis/socket/timer.js +0 -45
- package/lib/apis/socket/timer.test.js +0 -51
- package/lib/apis/socket/topic.js +0 -185
- package/lib/apis/topics/index.js +0 -19
- package/lib/components/discussions/ChatInputForm.js +0 -424
- package/lib/components/discussions/DateBanner.js +0 -10
- package/lib/components/discussions/Discussion.js +0 -202
- package/lib/components/discussions/DiscussionForm.js +0 -227
- package/lib/components/discussions/InvitationForm.js +0 -107
- package/lib/components/discussions/MessageHistory.js +0 -110
- package/lib/components/discussions/MessagesByDate.js +0 -40
- package/lib/components/discussions/MessagesList.js +0 -30
- package/lib/components/discussions/MoreMessagesBanner.js +0 -26
- package/lib/components/discussions/ScrollHelper.js +0 -84
- package/lib/components/discussions/SystemMessage.js +0 -88
- package/lib/components/discussions/SystemMessageGroup.js +0 -15
- package/lib/components/discussions/UserMessage.js +0 -163
- package/lib/components/discussions/UserMessageGroup.js +0 -34
- package/lib/components/discussions/redux.js +0 -178
- package/lib/components/discussions/sagas.js +0 -500
- package/lib/helpers/discussions/canManage.js +0 -30
- package/lib/helpers/discussions/canManage.test.js +0 -69
- package/lib/helpers/discussions/generateSystemMessageContent.js +0 -131
- package/lib/helpers/discussions/generateSystemMessageContent.test.js +0 -450
- package/lib/models/discussions.js +0 -76
- package/lib/models/index.js +0 -1
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { fetchMissingHandlers } from '../../../apis';
|
|
3
|
-
import { defineFilter } from '../../../helpers';
|
|
4
|
-
var clientSide = defineFilter(true).startsWith('definitionId', 'definitionId').end();
|
|
1
|
+
"use strict";
|
|
5
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MissingHandlerTable = void 0;
|
|
7
|
+
var _Table = require("../../table/Table");
|
|
8
|
+
var _apis = require("../../../apis");
|
|
9
|
+
var _helpers = require("../../../helpers");
|
|
10
|
+
var clientSide = (0, _helpers.defineFilter)(true).startsWith('definitionId', 'definitionId').end();
|
|
6
11
|
var dataSource = function dataSource() {
|
|
7
12
|
return {
|
|
8
|
-
fn: fetchMissingHandlers,
|
|
13
|
+
fn: _apis.fetchMissingHandlers,
|
|
9
14
|
clientSide: clientSide,
|
|
10
15
|
params: function params() {
|
|
11
16
|
return [];
|
|
@@ -17,7 +22,6 @@ var dataSource = function dataSource() {
|
|
|
17
22
|
}
|
|
18
23
|
};
|
|
19
24
|
};
|
|
20
|
-
|
|
21
25
|
var filters = function filters() {
|
|
22
26
|
return function () {
|
|
23
27
|
return [{
|
|
@@ -27,7 +31,6 @@ var filters = function filters() {
|
|
|
27
31
|
}];
|
|
28
32
|
};
|
|
29
33
|
};
|
|
30
|
-
|
|
31
34
|
var columns = [{
|
|
32
35
|
value: 'definitionId',
|
|
33
36
|
title: 'Handler Definition Id',
|
|
@@ -45,10 +48,11 @@ var columns = [{
|
|
|
45
48
|
title: 'Nodes',
|
|
46
49
|
sortable: true
|
|
47
50
|
}];
|
|
48
|
-
|
|
51
|
+
var MissingHandlerTable = (0, _Table.generateTable)({
|
|
49
52
|
tableOptions: [],
|
|
50
53
|
columns: columns,
|
|
51
54
|
filters: filters,
|
|
52
55
|
dataSource: dataSource
|
|
53
56
|
});
|
|
57
|
+
exports.MissingHandlerTable = MissingHandlerTable;
|
|
54
58
|
MissingHandlerTable.displayName = 'MissingHandlerTable';
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.PolicyRuleForm = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _immutable = require("immutable");
|
|
10
|
+
var _apis = require("../../../apis");
|
|
11
|
+
var _Form = require("../../form/Form");
|
|
5
12
|
var SYSTEM_DEFAULTS = ['Allow All', 'Deny All'];
|
|
6
13
|
var POLICY_TYPES = ['Category Access', 'Console Access', 'API Access'];
|
|
7
14
|
var CONSOLE_LIST = ['Categories', 'Dashboard', 'Engine', 'Environment', 'Errors', 'Handlers', 'Logs', 'Routines', 'Runs', 'Staged', 'System Errors', 'Trees', 'Access Keys', 'ApiV2', 'Console Access', 'Groups', 'Policy Rules', 'Setup', 'Sources', 'Users'];
|
|
8
|
-
|
|
9
15
|
var dataSources = function dataSources(_ref) {
|
|
10
16
|
var policyName = _ref.policyName,
|
|
11
|
-
|
|
17
|
+
policyType = _ref.policyType;
|
|
12
18
|
return {
|
|
13
19
|
categories: {
|
|
14
|
-
fn: fetchTaskCategories,
|
|
20
|
+
fn: _apis.fetchTaskCategories,
|
|
15
21
|
params: [{
|
|
16
22
|
include: 'details'
|
|
17
23
|
}],
|
|
@@ -20,7 +26,7 @@ var dataSources = function dataSources(_ref) {
|
|
|
20
26
|
}
|
|
21
27
|
},
|
|
22
28
|
sources: {
|
|
23
|
-
fn: fetchSources,
|
|
29
|
+
fn: _apis.fetchSources,
|
|
24
30
|
params: [{
|
|
25
31
|
include: 'details'
|
|
26
32
|
}],
|
|
@@ -29,7 +35,7 @@ var dataSources = function dataSources(_ref) {
|
|
|
29
35
|
}
|
|
30
36
|
},
|
|
31
37
|
policyRule: {
|
|
32
|
-
fn: fetchPolicyRule,
|
|
38
|
+
fn: _apis.fetchPolicyRule,
|
|
33
39
|
params: policyName && [{
|
|
34
40
|
policyName: policyName,
|
|
35
41
|
policyType: policyType,
|
|
@@ -41,30 +47,26 @@ var dataSources = function dataSources(_ref) {
|
|
|
41
47
|
}
|
|
42
48
|
};
|
|
43
49
|
};
|
|
44
|
-
|
|
45
50
|
var handleSubmit = function handleSubmit(_ref2) {
|
|
46
51
|
var policyName = _ref2.policyName;
|
|
47
52
|
return function (values) {
|
|
48
|
-
return (policyName ? updatePolicyRule : createPolicyRule)({
|
|
53
|
+
return (policyName ? _apis.updatePolicyRule : _apis.createPolicyRule)({
|
|
49
54
|
policy: values.toJS(),
|
|
50
55
|
policyName: policyName,
|
|
51
56
|
policyType: values.get('type')
|
|
52
57
|
}).then(function (_ref3) {
|
|
53
58
|
var policyRule = _ref3.policyRule,
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
error = _ref3.error;
|
|
56
60
|
if (error) {
|
|
57
61
|
throw error.statusCode === 400 && error.message || 'There was an error saving the policy rule';
|
|
58
62
|
}
|
|
59
|
-
|
|
60
63
|
return policyRule;
|
|
61
64
|
});
|
|
62
65
|
};
|
|
63
66
|
};
|
|
64
|
-
|
|
65
67
|
var fields = function fields(_ref4) {
|
|
66
68
|
var policyName = _ref4.policyName,
|
|
67
|
-
|
|
69
|
+
policyType = _ref4.policyType;
|
|
68
70
|
return function (_ref5) {
|
|
69
71
|
var policyRule = _ref5.policyRule;
|
|
70
72
|
return (!policyName || policyRule) && [{
|
|
@@ -97,7 +99,6 @@ var fields = function fields(_ref4) {
|
|
|
97
99
|
onChange: function onChange(_ref6, _ref7) {
|
|
98
100
|
var values = _ref6.values;
|
|
99
101
|
var setValue = _ref7.setValue;
|
|
100
|
-
|
|
101
102
|
if (values.get('type') === 'System Default') {
|
|
102
103
|
if (values.get('name') === 'Allow All') {
|
|
103
104
|
setValue('rule', 'true');
|
|
@@ -134,7 +135,7 @@ var fields = function fields(_ref4) {
|
|
|
134
135
|
options: function options(_ref9) {
|
|
135
136
|
var categories = _ref9.categories;
|
|
136
137
|
return categories ? categories.map(function (category) {
|
|
137
|
-
return Map({
|
|
138
|
+
return (0, _immutable.Map)({
|
|
138
139
|
label: category.get('name'),
|
|
139
140
|
value: category.get('name')
|
|
140
141
|
});
|
|
@@ -185,7 +186,7 @@ var fields = function fields(_ref4) {
|
|
|
185
186
|
options: function options(_ref14) {
|
|
186
187
|
var sources = _ref14.sources;
|
|
187
188
|
return sources ? sources.map(function (source) {
|
|
188
|
-
return Map({
|
|
189
|
+
return (0, _immutable.Map)({
|
|
189
190
|
label: source.get('name'),
|
|
190
191
|
value: source.get('name')
|
|
191
192
|
});
|
|
@@ -203,19 +204,18 @@ var fields = function fields(_ref4) {
|
|
|
203
204
|
}];
|
|
204
205
|
};
|
|
205
206
|
};
|
|
206
|
-
|
|
207
|
-
export var PolicyRuleForm = function PolicyRuleForm(_ref16) {
|
|
207
|
+
var PolicyRuleForm = function PolicyRuleForm(_ref16) {
|
|
208
208
|
var addFields = _ref16.addFields,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
return /*#__PURE__*/
|
|
209
|
+
alterFields = _ref16.alterFields,
|
|
210
|
+
fieldSet = _ref16.fieldSet,
|
|
211
|
+
formKey = _ref16.formKey,
|
|
212
|
+
components = _ref16.components,
|
|
213
|
+
onSave = _ref16.onSave,
|
|
214
|
+
onError = _ref16.onError,
|
|
215
|
+
children = _ref16.children,
|
|
216
|
+
policyName = _ref16.policyName,
|
|
217
|
+
policyType = _ref16.policyType;
|
|
218
|
+
return /*#__PURE__*/_react["default"].createElement(_Form.Form, {
|
|
219
219
|
addFields: addFields,
|
|
220
220
|
alterFields: alterFields,
|
|
221
221
|
fieldSet: fieldSet,
|
|
@@ -231,4 +231,5 @@ export var PolicyRuleForm = function PolicyRuleForm(_ref16) {
|
|
|
231
231
|
policyType: policyType
|
|
232
232
|
}
|
|
233
233
|
}, children);
|
|
234
|
-
};
|
|
234
|
+
};
|
|
235
|
+
exports.PolicyRuleForm = PolicyRuleForm;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { fetchPolicyRules } from '../../../apis';
|
|
3
|
-
import { defineFilter } from '../../../helpers';
|
|
4
|
-
var clientSide = defineFilter(true).startsWith('name', 'name').startsWith('type', 'type').end();
|
|
1
|
+
"use strict";
|
|
5
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PolicyRuleTable = void 0;
|
|
7
|
+
var _Table = require("../../table/Table");
|
|
8
|
+
var _apis = require("../../../apis");
|
|
9
|
+
var _helpers = require("../../../helpers");
|
|
10
|
+
var clientSide = (0, _helpers.defineFilter)(true).startsWith('name', 'name').startsWith('type', 'type').end();
|
|
6
11
|
var dataSource = function dataSource() {
|
|
7
12
|
return {
|
|
8
|
-
fn: fetchPolicyRules,
|
|
13
|
+
fn: _apis.fetchPolicyRules,
|
|
9
14
|
clientSide: clientSide,
|
|
10
15
|
params: function params() {
|
|
11
16
|
return [{
|
|
@@ -19,7 +24,6 @@ var dataSource = function dataSource() {
|
|
|
19
24
|
}
|
|
20
25
|
};
|
|
21
26
|
};
|
|
22
|
-
|
|
23
27
|
var filters = function filters() {
|
|
24
28
|
return function () {
|
|
25
29
|
return [{
|
|
@@ -29,7 +33,6 @@ var filters = function filters() {
|
|
|
29
33
|
}];
|
|
30
34
|
};
|
|
31
35
|
};
|
|
32
|
-
|
|
33
36
|
var columns = [{
|
|
34
37
|
value: 'name',
|
|
35
38
|
title: 'Name',
|
|
@@ -67,10 +70,11 @@ var columns = [{
|
|
|
67
70
|
title: 'Updated By',
|
|
68
71
|
sortable: true
|
|
69
72
|
}];
|
|
70
|
-
|
|
73
|
+
var PolicyRuleTable = (0, _Table.generateTable)({
|
|
71
74
|
columns: columns,
|
|
72
75
|
filters: filters,
|
|
73
76
|
dataSource: dataSource
|
|
74
77
|
});
|
|
78
|
+
exports.PolicyRuleTable = PolicyRuleTable;
|
|
75
79
|
PolicyRuleTable.propTypes = {};
|
|
76
80
|
PolicyRuleTable.displayName = 'PolicyRuleTable';
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import { createTaskTrigger } from '../../../apis';
|
|
3
|
-
import { generateForm } from '../../form/Form';
|
|
4
|
-
import { serializeNodeId } from '../builder/models';
|
|
1
|
+
"use strict";
|
|
5
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.CreateManualTriggerForm = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _apis = require("../../../apis");
|
|
10
|
+
var _Form = require("../../form/Form");
|
|
11
|
+
var _models = require("../builder/models");
|
|
6
12
|
var dataSources = function dataSources(_ref) {
|
|
7
13
|
var tree = _ref.tree;
|
|
8
14
|
return {
|
|
@@ -10,8 +16,8 @@ var dataSources = function dataSources(_ref) {
|
|
|
10
16
|
fn: function fn() {
|
|
11
17
|
return tree.nodes.map(function (node) {
|
|
12
18
|
return {
|
|
13
|
-
label: "".concat(node.name, " (").concat(serializeNodeId(node), ")"),
|
|
14
|
-
value: serializeNodeId(node)
|
|
19
|
+
label: "".concat(node.name, " (").concat((0, _models.serializeNodeId)(node), ")"),
|
|
20
|
+
value: (0, _models.serializeNodeId)(node)
|
|
15
21
|
};
|
|
16
22
|
}).valueSeq().toArray();
|
|
17
23
|
},
|
|
@@ -19,25 +25,21 @@ var dataSources = function dataSources(_ref) {
|
|
|
19
25
|
}
|
|
20
26
|
};
|
|
21
27
|
};
|
|
22
|
-
|
|
23
28
|
var handleSubmit = function handleSubmit(formOptions) {
|
|
24
29
|
return function (values) {
|
|
25
|
-
return createTaskTrigger(
|
|
30
|
+
return (0, _apis.createTaskTrigger)((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, formOptions), values.toJS())).then(function (_ref2) {
|
|
26
31
|
var error = _ref2.error,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
message = _ref2.message,
|
|
33
|
+
messageType = _ref2.messageType;
|
|
30
34
|
if (error) {
|
|
31
35
|
throw error.message || 'An error occurred while manually creating the trigger.';
|
|
32
36
|
}
|
|
33
|
-
|
|
34
37
|
if (messageType === 'success') {
|
|
35
38
|
return message;
|
|
36
39
|
}
|
|
37
40
|
});
|
|
38
41
|
};
|
|
39
42
|
};
|
|
40
|
-
|
|
41
43
|
var fields = function fields() {
|
|
42
44
|
return function (_ref3) {
|
|
43
45
|
var nodes = _ref3.nodes;
|
|
@@ -74,11 +76,11 @@ var fields = function fields() {
|
|
|
74
76
|
}];
|
|
75
77
|
};
|
|
76
78
|
};
|
|
77
|
-
|
|
78
|
-
export var CreateManualTriggerForm = generateForm({
|
|
79
|
+
var CreateManualTriggerForm = (0, _Form.generateForm)({
|
|
79
80
|
formOptions: ['runId', 'tree'],
|
|
80
81
|
dataSources: dataSources,
|
|
81
82
|
fields: fields,
|
|
82
83
|
handleSubmit: handleSubmit
|
|
83
84
|
});
|
|
85
|
+
exports.CreateManualTriggerForm = CreateManualTriggerForm;
|
|
84
86
|
CreateManualTriggerForm.displayName = 'CreateManualTriggerForm';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RunTable = void 0;
|
|
7
|
+
var _apis = require("../../../apis");
|
|
8
|
+
var _Table = require("../../table/Table");
|
|
9
|
+
var _immutable = require("immutable");
|
|
10
|
+
var ORDER_BY = (0, _immutable.Map)({
|
|
5
11
|
sourceName: 'tree.sourceRoot.name',
|
|
6
12
|
sourceGroup: 'tree.sourceGroup',
|
|
7
13
|
tree: 'tree.name',
|
|
@@ -13,17 +19,16 @@ var RUN_TYPES = ['Tree', 'Global Routine', 'Local Routine'].map(function (v) {
|
|
|
13
19
|
value: v
|
|
14
20
|
};
|
|
15
21
|
});
|
|
16
|
-
|
|
17
22
|
var dataSource = function dataSource(_ref) {
|
|
18
23
|
var sourceName = _ref.sourceName,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
sourceGroup = _ref.sourceGroup,
|
|
25
|
+
treeName = _ref.treeName,
|
|
26
|
+
treeType = _ref.treeType,
|
|
27
|
+
sourceId = _ref.sourceId,
|
|
28
|
+
id = _ref.id,
|
|
29
|
+
count = _ref.count;
|
|
25
30
|
return {
|
|
26
|
-
fn: fetchTaskRuns,
|
|
31
|
+
fn: _apis.fetchTaskRuns,
|
|
27
32
|
params: function params(paramData) {
|
|
28
33
|
return [{
|
|
29
34
|
source: sourceName ? sourceName : paramData.filters.get('sourceName'),
|
|
@@ -55,11 +60,10 @@ var dataSource = function dataSource(_ref) {
|
|
|
55
60
|
}
|
|
56
61
|
};
|
|
57
62
|
};
|
|
58
|
-
|
|
59
63
|
var filterDataSources = function filterDataSources() {
|
|
60
64
|
return {
|
|
61
65
|
sourceTypes: {
|
|
62
|
-
fn: fetchSources,
|
|
66
|
+
fn: _apis.fetchSources,
|
|
63
67
|
params: [],
|
|
64
68
|
transform: function transform(result) {
|
|
65
69
|
return result.sources.filter(function (s) {
|
|
@@ -74,7 +78,6 @@ var filterDataSources = function filterDataSources() {
|
|
|
74
78
|
}
|
|
75
79
|
};
|
|
76
80
|
};
|
|
77
|
-
|
|
78
81
|
var filters = function filters() {
|
|
79
82
|
return function (_ref2) {
|
|
80
83
|
var sourceTypes = _ref2.sourceTypes;
|
|
@@ -120,37 +123,43 @@ var filters = function filters() {
|
|
|
120
123
|
}];
|
|
121
124
|
};
|
|
122
125
|
};
|
|
123
|
-
|
|
124
126
|
var columns = [{
|
|
125
127
|
value: 'id',
|
|
126
128
|
title: 'Id',
|
|
127
|
-
sortable: true
|
|
129
|
+
sortable: true,
|
|
130
|
+
toggleable: false,
|
|
131
|
+
columnOrder: 'first'
|
|
128
132
|
}, {
|
|
129
133
|
value: 'originatingId',
|
|
130
134
|
title: 'Originating ID',
|
|
131
|
-
sortable: false
|
|
135
|
+
sortable: false,
|
|
136
|
+
toggleable: true
|
|
132
137
|
}, {
|
|
133
138
|
value: 'sourceName',
|
|
134
139
|
valueTransform: function valueTransform(_value, row) {
|
|
135
|
-
return getIn(row, ['source', 'name'], '');
|
|
140
|
+
return (0, _immutable.getIn)(row, ['source', 'name'], '');
|
|
136
141
|
},
|
|
137
142
|
title: 'Source',
|
|
138
|
-
sortable: true
|
|
143
|
+
sortable: true,
|
|
144
|
+
toggleable: true
|
|
139
145
|
}, {
|
|
140
146
|
value: 'sourceId',
|
|
141
147
|
title: 'Source Id',
|
|
142
|
-
sortable: false
|
|
148
|
+
sortable: false,
|
|
149
|
+
toggleable: true
|
|
143
150
|
}, {
|
|
144
151
|
value: 'tree',
|
|
145
152
|
title: 'Tree',
|
|
146
153
|
sortable: true,
|
|
154
|
+
toggleable: true,
|
|
147
155
|
valueTransform: function valueTransform(value) {
|
|
148
|
-
return get(value, 'name', '');
|
|
156
|
+
return (0, _immutable.get)(value, 'name', '');
|
|
149
157
|
}
|
|
150
158
|
}, {
|
|
151
159
|
value: 'sourceGroup',
|
|
152
160
|
title: 'Group',
|
|
153
161
|
sortable: true,
|
|
162
|
+
toggleable: true,
|
|
154
163
|
valueTransform: function valueTransform(_value, row) {
|
|
155
164
|
return row.getIn(['tree', 'sourceGroup']);
|
|
156
165
|
}
|
|
@@ -158,34 +167,41 @@ var columns = [{
|
|
|
158
167
|
value: 'type',
|
|
159
168
|
title: 'Type',
|
|
160
169
|
sortable: true,
|
|
170
|
+
toggleable: true,
|
|
161
171
|
valueTransform: function valueTransform(_value, row) {
|
|
162
172
|
return row.getIn(['tree', 'type']);
|
|
163
173
|
}
|
|
164
174
|
}, {
|
|
165
175
|
value: 'status',
|
|
166
176
|
title: 'Status',
|
|
167
|
-
sortable: false
|
|
177
|
+
sortable: false,
|
|
178
|
+
toggleable: true
|
|
168
179
|
}, {
|
|
169
180
|
value: 'createdAt',
|
|
170
181
|
title: 'Created',
|
|
171
|
-
sortable: true
|
|
182
|
+
sortable: true,
|
|
183
|
+
toggleable: true
|
|
172
184
|
}, {
|
|
173
185
|
value: 'createdBy',
|
|
174
186
|
title: 'Created By',
|
|
175
|
-
sortable: false
|
|
187
|
+
sortable: false,
|
|
188
|
+
toggleable: true
|
|
176
189
|
}, {
|
|
177
190
|
value: 'updatedAt',
|
|
178
191
|
title: 'Updated',
|
|
179
|
-
sortable: true
|
|
192
|
+
sortable: true,
|
|
193
|
+
toggleable: true
|
|
180
194
|
}, {
|
|
181
195
|
value: 'updatedBy',
|
|
182
196
|
title: 'Updated By',
|
|
183
|
-
sortable: false
|
|
197
|
+
sortable: false,
|
|
198
|
+
toggleable: true
|
|
184
199
|
}];
|
|
185
|
-
|
|
200
|
+
var RunTable = (0, _Table.generateTable)({
|
|
186
201
|
tableOptions: ['sourceName', 'sourceGroup', 'treeName', 'sourceId', 'count'],
|
|
187
202
|
columns: columns,
|
|
188
203
|
filters: filters,
|
|
189
204
|
dataSource: dataSource,
|
|
190
205
|
filterDataSources: filterDataSources
|
|
191
|
-
});
|
|
206
|
+
});
|
|
207
|
+
exports.RunTable = RunTable;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import { defineFilter } from '../../../helpers';
|
|
3
|
-
var clientSide = defineFilter(true).startsWith('name', 'name').equals('status', 'status').end();
|
|
1
|
+
"use strict";
|
|
4
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RunTaskTable = void 0;
|
|
7
|
+
var _ = require("../..");
|
|
8
|
+
var _helpers = require("../../../helpers");
|
|
9
|
+
var clientSide = (0, _helpers.defineFilter)(true).startsWith('name', 'name').equals('status', 'status').end();
|
|
5
10
|
var dataSource = function dataSource(_ref) {
|
|
6
11
|
var run = _ref.run;
|
|
7
12
|
return {
|
|
@@ -19,7 +24,6 @@ var dataSource = function dataSource(_ref) {
|
|
|
19
24
|
}
|
|
20
25
|
};
|
|
21
26
|
};
|
|
22
|
-
|
|
23
27
|
var filters = function filters() {
|
|
24
28
|
return function () {
|
|
25
29
|
return [{
|
|
@@ -33,7 +37,6 @@ var filters = function filters() {
|
|
|
33
37
|
}];
|
|
34
38
|
};
|
|
35
39
|
};
|
|
36
|
-
|
|
37
40
|
var columns = [{
|
|
38
41
|
value: 'nodeName',
|
|
39
42
|
title: 'Node Name',
|
|
@@ -51,10 +54,11 @@ var columns = [{
|
|
|
51
54
|
title: 'Created',
|
|
52
55
|
sortable: true
|
|
53
56
|
}];
|
|
54
|
-
|
|
57
|
+
var RunTaskTable = (0, _.generateTable)({
|
|
55
58
|
tableOptions: ['run'],
|
|
56
59
|
dataSource: dataSource,
|
|
57
60
|
filters: filters,
|
|
58
61
|
columns: columns
|
|
59
62
|
});
|
|
63
|
+
exports.RunTaskTable = RunTaskTable;
|
|
60
64
|
RunTaskTable.displayName = 'RunTaskTable';
|