@kineticdata/react 5.1.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +61 -45
- package/lib/apis/core/bridgeModels.test.js +64 -80
- package/lib/apis/core/bridgedresources.js +64 -71
- package/lib/apis/core/bridgedresources.test.js +34 -31
- 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 -48
- 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 +30 -0
- 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 +220 -172
- package/lib/apis/core/submissions.test.js +81 -51
- 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 +64 -0
- package/lib/apis/http.js +89 -80
- package/lib/apis/http.test.js +37 -38
- package/lib/apis/index.js +506 -48
- package/lib/apis/system/index.js +228 -211
- package/lib/apis/task/index.js +283 -226
- package/lib/components/agent/bridge/BridgeForm.js +50 -50
- package/lib/components/agent/bridge/BridgeTable.js +12 -8
- package/lib/components/agent/filestore/FilestoreForm.js +49 -48
- package/lib/components/agent/filestore/FilestoreTable.js +12 -8
- package/lib/components/agent/handler/AgentHandlerForm.js +24 -27
- package/lib/components/agent/handler/AgentHandlerTable.js +12 -8
- 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/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/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 +18 -15
- package/lib/components/core/bridge_model/BridgeModelForm.js +27 -37
- package/lib/components/core/bridge_model/BridgeModelTable.js +12 -8
- 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 +15 -10
- 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 +15 -10
- 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 +25 -22
- package/lib/components/core/form_type/FormTypeForm.js +14 -13
- package/lib/components/core/form_type/FormTypeTable.js +12 -8
- 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 +19 -11
- 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 +17 -12
- package/lib/components/core/log/LogTable.js +35 -33
- 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 +18 -13
- 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 +27 -20
- package/lib/components/core/submission/KappSubmissionTable.js +30 -29
- 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 +16 -11
- 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 +19 -15
- package/lib/components/core/webapi/WebApiForm.js +49 -61
- package/lib/components/core/webapi/WebApiTable.js +14 -10
- package/lib/components/core/webhook/WebhookForm.js +33 -32
- package/lib/components/core/webhook/WebhookTable.js +22 -20
- package/lib/components/core/webhook_job/WebhookJobTable.js +19 -16
- package/lib/components/form/Form.helpers.js +102 -90
- package/lib/components/form/Form.js +467 -524
- package/lib/components/form/Form.models.js +38 -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 +981 -133
- package/lib/components/system/SystemBackgroundTasksTable.js +14 -10
- package/lib/components/system/SystemFilestoreForm.js +28 -25
- package/lib/components/system/SystemForm.js +19 -16
- package/lib/components/system/SystemIngressForm.js +10 -9
- package/lib/components/system/SystemSecurityForm.js +17 -14
- package/lib/components/system/SystemSmtpForm.js +13 -13
- package/lib/components/system/SystemTaskAdapterForm.js +21 -17
- package/lib/components/system/SystemUserForm.js +15 -14
- package/lib/components/system/helpers.js +62 -60
- 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 +43 -40
- package/lib/components/system/spaces/SystemTenantTable.js +12 -8
- package/lib/components/table/Table.js +219 -225
- package/lib/components/table/Table.redux.js +298 -327
- package/lib/components/table/Table.redux.test.js +49 -47
- package/lib/components/table/Table.test.js +107 -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/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 +41 -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 +28 -23
- package/lib/components/task/builder/TreeBuilder.js +140 -115
- package/lib/components/task/builder/builder.redux.js +322 -300
- 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 +133 -91
- 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 +17 -13
- 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 +12 -8
- 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 +23 -20
- 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 +14 -11
- package/lib/components/task/triggers/TriggerTable.js +21 -18
- package/lib/components/task/workflows/LinkedWorkflowForm.js +249 -0
- package/lib/components/task/workflows/LinkedWorkflowTable.js +137 -0
- package/lib/components/task/workflows/MissingRoutineTable.js +12 -8
- package/lib/components/task/workflows/WorkflowForm.js +61 -46
- package/lib/components/task/workflows/WorkflowTable.js +17 -14
- 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 +86 -38
- package/lib/reducer.js +11 -3
- package/lib/saga.js +42 -38
- package/lib/store.js +59 -35
- package/package.json +4 -29
- package/proxyhelper.js +105 -47
- 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,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.propertiesFromValues = exports.propertiesFromAdapters = exports.generateInitialValues = exports.formPropertyName = exports.adapterPropertiesFields = exports.adapterProperties = exports.VALIDATE_DB_ADAPTERS = exports.POSTGRES_FIELDS = exports.ORACLE_FIELDS = exports.MSSQL_FIELDS = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
9
|
+
var _immutable = require("immutable");
|
|
10
|
+
var VALIDATE_DB_ADAPTERS = [{
|
|
4
11
|
label: 'Microsoft SQL Server',
|
|
5
12
|
value: 'mssql'
|
|
6
13
|
}, {
|
|
@@ -10,66 +17,61 @@ export var VALIDATE_DB_ADAPTERS = [{
|
|
|
10
17
|
label: 'PostgreSQL DB Server',
|
|
11
18
|
value: 'postgres'
|
|
12
19
|
}];
|
|
13
|
-
|
|
20
|
+
exports.VALIDATE_DB_ADAPTERS = VALIDATE_DB_ADAPTERS;
|
|
14
21
|
var getValueFromList = function getValueFromList(properties, key, initialValue) {
|
|
15
22
|
var property = properties.find(function (p) {
|
|
16
23
|
return p.get('name') === key;
|
|
17
24
|
});
|
|
18
25
|
return property ? property.get('value') : initialValue;
|
|
19
26
|
};
|
|
20
|
-
|
|
21
|
-
export var generateInitialValues = function generateInitialValues(persistedObject, persistedPath, defaultObject, adapter) {
|
|
27
|
+
var generateInitialValues = function generateInitialValues(persistedObject, persistedPath, defaultObject, adapter) {
|
|
22
28
|
return function (key) {
|
|
23
29
|
var initialValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
24
|
-
var sameAsTenant = getIn(persistedObject, persistedPath.concat(['type']), '') === adapter;
|
|
25
|
-
var defaultObjectValue = getValueFromList(get(defaultObject, 'properties', List()), key, initialValue);
|
|
26
|
-
|
|
30
|
+
var sameAsTenant = (0, _immutable.getIn)(persistedObject, persistedPath.concat(['type']), '') === adapter;
|
|
31
|
+
var defaultObjectValue = getValueFromList((0, _immutable.get)(defaultObject, 'properties', (0, _immutable.List)()), key, initialValue);
|
|
27
32
|
if (sameAsTenant) {
|
|
28
33
|
// Get the properties from the persisted object.
|
|
29
|
-
var properties = getIn(persistedObject, persistedPath.concat(['properties']), List());
|
|
30
|
-
|
|
31
|
-
if (List.isList(properties)) {
|
|
34
|
+
var properties = (0, _immutable.getIn)(persistedObject, persistedPath.concat(['properties']), (0, _immutable.List)());
|
|
35
|
+
if (_immutable.List.isList(properties)) {
|
|
32
36
|
var property = properties.find(function (p) {
|
|
33
37
|
return p.get('name') === key;
|
|
34
38
|
});
|
|
35
39
|
return property ? property.get('value') : defaultObjectValue;
|
|
36
40
|
} else {
|
|
37
|
-
return get(properties, key, defaultObjectValue);
|
|
41
|
+
return (0, _immutable.get)(properties, key, defaultObjectValue);
|
|
38
42
|
}
|
|
39
|
-
} else if (get(defaultObject, 'type') === adapter) {
|
|
40
|
-
var adapterProperty = get(defaultObject, 'properties', List()).find(function (property) {
|
|
43
|
+
} else if ((0, _immutable.get)(defaultObject, 'type') === adapter) {
|
|
44
|
+
var adapterProperty = (0, _immutable.get)(defaultObject, 'properties', (0, _immutable.List)()).find(function (property) {
|
|
41
45
|
return property.get('name') === key;
|
|
42
46
|
});
|
|
43
|
-
return get(adapterProperty, 'value', defaultObjectValue);
|
|
47
|
+
return (0, _immutable.get)(adapterProperty, 'value', defaultObjectValue);
|
|
44
48
|
}
|
|
45
|
-
|
|
46
49
|
return initialValue;
|
|
47
50
|
};
|
|
48
51
|
};
|
|
49
|
-
|
|
52
|
+
exports.generateInitialValues = generateInitialValues;
|
|
50
53
|
var generatePasswordFields = function generatePasswordFields(adapterName, persistedObject, currentAdapter, defaultAdapter) {
|
|
51
54
|
var label = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'Password';
|
|
52
55
|
var fieldName = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'password';
|
|
53
56
|
var additionalValidation = arguments.length > 6 ? arguments[6] : undefined;
|
|
54
|
-
|
|
55
57
|
var required = function required(_ref) {
|
|
56
58
|
var values = _ref.values;
|
|
57
|
-
var currentAdapterName = values.get(currentAdapter);
|
|
59
|
+
var currentAdapterName = values.get(currentAdapter);
|
|
58
60
|
|
|
61
|
+
// If this adapter is the same as the currently chosen adapter.
|
|
59
62
|
if (currentAdapterName === adapterName) {
|
|
60
63
|
// And we are editing an existing adaptedr, it is required if changing.
|
|
61
64
|
if (persistedObject) {
|
|
62
|
-
return values.get("".concat(adapterName, "_").concat(fieldName, "Change"));
|
|
65
|
+
return values.get("".concat(adapterName, "_").concat(fieldName, "Change"));
|
|
66
|
+
// Otherwise it's only required, when editing, if the adapter is different than the default.
|
|
63
67
|
} else if (typeof additionalValidation === 'function') {
|
|
64
68
|
return additionalValidation(values);
|
|
65
69
|
} else {
|
|
66
|
-
return getIn(defaultAdapter, ['type'], '') !== adapterName;
|
|
70
|
+
return (0, _immutable.getIn)(defaultAdapter, ['type'], '') !== adapterName;
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
|
-
|
|
70
73
|
return false;
|
|
71
74
|
};
|
|
72
|
-
|
|
73
75
|
var name = "".concat(adapterName, "_").concat(fieldName);
|
|
74
76
|
return [{
|
|
75
77
|
name: name,
|
|
@@ -94,20 +96,17 @@ var generatePasswordFields = function generatePasswordFields(adapterName, persis
|
|
|
94
96
|
onChange: function onChange(_ref4, _ref5) {
|
|
95
97
|
var values = _ref4.values;
|
|
96
98
|
var setValue = _ref5.setValue;
|
|
97
|
-
|
|
98
99
|
if (values.get("".concat(name)) !== '') {
|
|
99
100
|
setValue("".concat(name), '');
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
}];
|
|
103
104
|
};
|
|
104
|
-
|
|
105
|
-
export var MSSQL_FIELDS = function MSSQL_FIELDS(adapter, persistedObject, persistedPath, defaultAdapter) {
|
|
105
|
+
var MSSQL_FIELDS = function MSSQL_FIELDS(adapter, persistedObject, persistedPath, defaultAdapter) {
|
|
106
106
|
var trueIfAdapter = function trueIfAdapter(_ref6) {
|
|
107
107
|
var values = _ref6.values;
|
|
108
108
|
return values.get(adapter) === 'mssql';
|
|
109
109
|
};
|
|
110
|
-
|
|
111
110
|
var initialValues = generateInitialValues(persistedObject, persistedPath, defaultAdapter, 'mssql');
|
|
112
111
|
return [{
|
|
113
112
|
name: 'mssql_host',
|
|
@@ -144,7 +143,7 @@ export var MSSQL_FIELDS = function MSSQL_FIELDS(adapter, persistedObject, persis
|
|
|
144
143
|
required: false,
|
|
145
144
|
visible: trueIfAdapter,
|
|
146
145
|
initialValue: initialValues('username', '')
|
|
147
|
-
}].concat(
|
|
146
|
+
}].concat((0, _toConsumableArray2["default"])(generatePasswordFields('mssql', persistedObject, adapter, defaultAdapter, 'Password', 'password')), [{
|
|
148
147
|
name: 'mssql_windowsauthenabled',
|
|
149
148
|
label: 'Use Windows Authentication (Kerberos)',
|
|
150
149
|
type: 'select',
|
|
@@ -194,20 +193,19 @@ export var MSSQL_FIELDS = function MSSQL_FIELDS(adapter, persistedObject, persis
|
|
|
194
193
|
required: false,
|
|
195
194
|
visible: trueIfAdapter,
|
|
196
195
|
initialValue: initialValues('sslcert', '')
|
|
197
|
-
}],
|
|
196
|
+
}], (0, _toConsumableArray2["default"])(generatePasswordFields('mssql', persistedObject, adapter, defaultAdapter, 'Truststore Password', 'trustStorePassword', function (values) {
|
|
198
197
|
return values.get('mssql_sslrootcert', '') !== '';
|
|
199
|
-
})),
|
|
198
|
+
})), (0, _toConsumableArray2["default"])(generatePasswordFields('mssql', persistedObject, adapter, defaultAdapter, 'Keystore Password', 'keyStoreSecret', function (values) {
|
|
200
199
|
return values.get('mssql_sslcert', '') !== '';
|
|
201
200
|
})));
|
|
202
201
|
};
|
|
203
|
-
|
|
202
|
+
exports.MSSQL_FIELDS = MSSQL_FIELDS;
|
|
203
|
+
var ORACLE_FIELDS = function ORACLE_FIELDS(adapter, persistedObject, persistedPath, defaultAdapter) {
|
|
204
204
|
var initialValues = generateInitialValues(persistedObject, persistedPath, defaultAdapter, 'oracle');
|
|
205
|
-
|
|
206
205
|
var trueIfAdapter = function trueIfAdapter(_ref7) {
|
|
207
206
|
var values = _ref7.values;
|
|
208
207
|
return values.get(adapter) === 'oracle';
|
|
209
208
|
};
|
|
210
|
-
|
|
211
209
|
return [{
|
|
212
210
|
name: 'oracle_host',
|
|
213
211
|
label: 'Host',
|
|
@@ -236,7 +234,7 @@ export var ORACLE_FIELDS = function ORACLE_FIELDS(adapter, persistedObject, pers
|
|
|
236
234
|
required: false,
|
|
237
235
|
initialValue: initialValues('username', ''),
|
|
238
236
|
visible: trueIfAdapter
|
|
239
|
-
}].concat(
|
|
237
|
+
}].concat((0, _toConsumableArray2["default"])(generatePasswordFields('oracle', persistedObject, adapter, defaultAdapter)), [{
|
|
240
238
|
name: 'oracle_sslEnabled',
|
|
241
239
|
label: 'Enable SSL',
|
|
242
240
|
type: 'select',
|
|
@@ -292,18 +290,18 @@ export var ORACLE_FIELDS = function ORACLE_FIELDS(adapter, persistedObject, pers
|
|
|
292
290
|
required: false,
|
|
293
291
|
visible: trueIfAdapter,
|
|
294
292
|
initialValue: initialValues('clientCert', '')
|
|
295
|
-
}],
|
|
293
|
+
}], (0, _toConsumableArray2["default"])(generatePasswordFields('oracle', persistedObject, adapter, defaultAdapter, 'Truststore Password', 'trustStorePassword', function (values) {
|
|
296
294
|
return values.get('oracle_serverCert', '') !== '';
|
|
297
|
-
})),
|
|
295
|
+
})), (0, _toConsumableArray2["default"])(generatePasswordFields('oracle', persistedObject, adapter, defaultAdapter, 'Keystore Password', 'keyStorePassword', function (values) {
|
|
298
296
|
return values.get('oracle_clientCert', '') !== '';
|
|
299
297
|
})));
|
|
300
298
|
};
|
|
301
|
-
|
|
299
|
+
exports.ORACLE_FIELDS = ORACLE_FIELDS;
|
|
300
|
+
var POSTGRES_FIELDS = function POSTGRES_FIELDS(adapter, persistedObject, persistedPath, defaultAdapter) {
|
|
302
301
|
var trueIfAdapter = function trueIfAdapter(_ref8) {
|
|
303
302
|
var values = _ref8.values;
|
|
304
303
|
return values.get(adapter) === 'postgres';
|
|
305
304
|
};
|
|
306
|
-
|
|
307
305
|
var initialValues = generateInitialValues(persistedObject, persistedPath, defaultAdapter, 'postgres');
|
|
308
306
|
return [{
|
|
309
307
|
name: 'postgres_host',
|
|
@@ -333,7 +331,7 @@ export var POSTGRES_FIELDS = function POSTGRES_FIELDS(adapter, persistedObject,
|
|
|
333
331
|
required: false,
|
|
334
332
|
visible: trueIfAdapter,
|
|
335
333
|
initialValue: initialValues('username', '')
|
|
336
|
-
}].concat(
|
|
334
|
+
}].concat((0, _toConsumableArray2["default"])(generatePasswordFields('postgres', persistedObject, adapter, defaultAdapter)), [{
|
|
337
335
|
name: 'postgres_sslEnabled',
|
|
338
336
|
label: 'Enable SSL',
|
|
339
337
|
type: 'select',
|
|
@@ -394,26 +392,31 @@ export var POSTGRES_FIELDS = function POSTGRES_FIELDS(adapter, persistedObject,
|
|
|
394
392
|
initialValue: initialValues('sslkey', '')
|
|
395
393
|
}]);
|
|
396
394
|
};
|
|
397
|
-
|
|
395
|
+
exports.POSTGRES_FIELDS = POSTGRES_FIELDS;
|
|
396
|
+
var adapterProperties = function adapterProperties(values, adapter) {
|
|
398
397
|
var adapterPrefix = "".concat(adapter, "_");
|
|
399
|
-
return values
|
|
398
|
+
return values
|
|
399
|
+
// Remove the other adapters properties.
|
|
400
400
|
.filter(function (_v, key) {
|
|
401
401
|
return key.startsWith(adapterPrefix);
|
|
402
|
-
})
|
|
402
|
+
})
|
|
403
|
+
// Remove the adapter prefix from the property names.
|
|
403
404
|
.mapKeys(function (key) {
|
|
404
405
|
return key.replace(adapterPrefix, '');
|
|
405
406
|
}).toObject();
|
|
406
407
|
};
|
|
407
|
-
|
|
408
|
-
|
|
408
|
+
exports.adapterProperties = adapterProperties;
|
|
409
|
+
var propertiesFromAdapters = function propertiesFromAdapters() {
|
|
410
|
+
var taskDbAdapters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _immutable.List)();
|
|
409
411
|
var typeKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'type';
|
|
410
412
|
return taskDbAdapters.flatMap(function (adapter) {
|
|
411
|
-
return adapter.get('properties', List()).map(function (property) {
|
|
413
|
+
return adapter.get('properties', (0, _immutable.List)()).map(function (property) {
|
|
412
414
|
return property.set('type', adapter.get(typeKey));
|
|
413
415
|
});
|
|
414
416
|
});
|
|
415
417
|
};
|
|
416
|
-
|
|
418
|
+
exports.propertiesFromAdapters = propertiesFromAdapters;
|
|
419
|
+
var propertiesFromValues = function propertiesFromValues(values) {
|
|
417
420
|
var adapterType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'type';
|
|
418
421
|
var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
419
422
|
var adapterTypeName = formPropertyName(prefix, adapterType);
|
|
@@ -424,21 +427,20 @@ export var propertiesFromValues = function propertiesFromValues(values) {
|
|
|
424
427
|
return name.replace("".concat(propertiesType, "_"), '');
|
|
425
428
|
});
|
|
426
429
|
};
|
|
427
|
-
|
|
430
|
+
exports.propertiesFromValues = propertiesFromValues;
|
|
431
|
+
var formPropertyName = function formPropertyName() {
|
|
428
432
|
for (var _len = arguments.length, names = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
429
433
|
names[_key] = arguments[_key];
|
|
430
434
|
}
|
|
431
|
-
|
|
432
435
|
return names.filter(function (n) {
|
|
433
436
|
return n !== '';
|
|
434
437
|
}).join('_');
|
|
435
438
|
};
|
|
436
|
-
|
|
439
|
+
exports.formPropertyName = formPropertyName;
|
|
437
440
|
var getPropertyValue = function getPropertyValue(property, adapter, adapterType) {
|
|
438
|
-
var defaultType = get(adapter, adapterType, null);
|
|
441
|
+
var defaultType = (0, _immutable.get)(adapter, adapterType, null);
|
|
439
442
|
var type = property.get('type');
|
|
440
443
|
var propertyValue = property.get('value', '') || '';
|
|
441
|
-
|
|
442
444
|
if (defaultType && defaultType === type) {
|
|
443
445
|
var defaultProperty = adapter.getIn(['properties', property.get('name')], null);
|
|
444
446
|
return defaultProperty || propertyValue || '';
|
|
@@ -446,14 +448,13 @@ var getPropertyValue = function getPropertyValue(property, adapter, adapterType)
|
|
|
446
448
|
return propertyValue;
|
|
447
449
|
}
|
|
448
450
|
};
|
|
449
|
-
|
|
450
|
-
export var adapterPropertiesFields = function adapterPropertiesFields(_ref9) {
|
|
451
|
+
var adapterPropertiesFields = function adapterPropertiesFields(_ref9) {
|
|
451
452
|
var adapterProperties = _ref9.adapterProperties,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
453
|
+
defaultAdapter = _ref9.defaultAdapter,
|
|
454
|
+
_ref9$prefix = _ref9.prefix,
|
|
455
|
+
prefix = _ref9$prefix === void 0 ? '' : _ref9$prefix,
|
|
456
|
+
_ref9$adapterType = _ref9.adapterType,
|
|
457
|
+
adapterType = _ref9$adapterType === void 0 ? 'type' : _ref9$adapterType;
|
|
457
458
|
return adapterProperties.map(function (property) {
|
|
458
459
|
return {
|
|
459
460
|
name: formPropertyName(prefix, 'properties', property.get('type'), property.get('name')),
|
|
@@ -473,4 +474,5 @@ export var adapterPropertiesFields = function adapterPropertiesFields(_ref9) {
|
|
|
473
474
|
initialValue: getPropertyValue(property, defaultAdapter, adapterType)
|
|
474
475
|
};
|
|
475
476
|
});
|
|
476
|
-
};
|
|
477
|
+
};
|
|
478
|
+
exports.adapterPropertiesFields = adapterPropertiesFields;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _immutable = require("immutable");
|
|
4
|
+
var _helpers = require("./helpers");
|
|
3
5
|
describe('#generateInitialValues', function () {
|
|
4
|
-
var defaultTaskAdapter = fromJS({
|
|
6
|
+
var defaultTaskAdapter = (0, _immutable.fromJS)({
|
|
5
7
|
name: 'pg',
|
|
6
8
|
type: 'postgres',
|
|
7
9
|
properties: [{
|
|
@@ -12,7 +14,7 @@ describe('#generateInitialValues', function () {
|
|
|
12
14
|
value: 'default-db-name'
|
|
13
15
|
}]
|
|
14
16
|
});
|
|
15
|
-
var tenantTaskAdapter = fromJS({
|
|
17
|
+
var tenantTaskAdapter = (0, _immutable.fromJS)({
|
|
16
18
|
slug: 'acme',
|
|
17
19
|
space: {},
|
|
18
20
|
task: {
|
|
@@ -29,22 +31,24 @@ describe('#generateInitialValues', function () {
|
|
|
29
31
|
test('happy path', function () {
|
|
30
32
|
var persistedPath = [];
|
|
31
33
|
var defaultAdapter = null;
|
|
32
|
-
var initialValues = generateInitialValues(defaultTaskAdapter, persistedPath, defaultAdapter, 'postgres');
|
|
33
|
-
|
|
34
|
-
expect(initialValues('host', 'default')).toBe('default-host-value'); // Expect the overall default value.
|
|
34
|
+
var initialValues = (0, _helpers.generateInitialValues)(defaultTaskAdapter, persistedPath, defaultAdapter, 'postgres');
|
|
35
35
|
|
|
36
|
+
// Expect the value from the persisted object.
|
|
37
|
+
expect(initialValues('host', 'default')).toBe('default-host-value');
|
|
38
|
+
// Expect the overall default value.
|
|
36
39
|
expect(initialValues('port', '1234')).toBe('1234');
|
|
37
40
|
});
|
|
38
41
|
});
|
|
39
42
|
describe('when used for tenant task adapter', function () {
|
|
40
43
|
test('happy path', function () {
|
|
41
44
|
var persistedPath = ['task', 'databaseAdapter'];
|
|
42
|
-
var initialValues = generateInitialValues(tenantTaskAdapter, persistedPath, defaultTaskAdapter, 'postgres');
|
|
43
|
-
|
|
44
|
-
expect(initialValues('host', 'default')).toBe('tenant-host-value'); // Expect the default task adapter's value.
|
|
45
|
-
|
|
46
|
-
expect(initialValues('database', 'invalid-db')).toBe('default-db-name'); // Expect the overall default value.
|
|
45
|
+
var initialValues = (0, _helpers.generateInitialValues)(tenantTaskAdapter, persistedPath, defaultTaskAdapter, 'postgres');
|
|
47
46
|
|
|
47
|
+
// Expect the value from the persisted object.
|
|
48
|
+
expect(initialValues('host', 'default')).toBe('tenant-host-value');
|
|
49
|
+
// Expect the default task adapter's value.
|
|
50
|
+
expect(initialValues('database', 'invalid-db')).toBe('default-db-name');
|
|
51
|
+
// Expect the overall default value.
|
|
48
52
|
expect(initialValues('port', '1234')).toBe('1234');
|
|
49
53
|
});
|
|
50
54
|
});
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import { fromJS, get } from 'immutable';
|
|
3
|
-
import { generateForm } from '../../form/Form';
|
|
4
|
-
import { handleFormErrors } from '../../form/Form.helpers';
|
|
1
|
+
"use strict";
|
|
5
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SystemSpaceForm = void 0;
|
|
7
|
+
var _apis = require("../../../apis");
|
|
8
|
+
var _immutable = require("immutable");
|
|
9
|
+
var _Form = require("../../form/Form");
|
|
10
|
+
var _Form2 = require("../../form/Form.helpers");
|
|
6
11
|
var dataSources = function dataSources(_ref) {
|
|
7
12
|
var slug = _ref.slug;
|
|
8
13
|
return {
|
|
9
14
|
space: {
|
|
10
|
-
fn: fetchSpace,
|
|
15
|
+
fn: _apis.fetchSpace,
|
|
11
16
|
params: slug && [{
|
|
12
17
|
slug: slug,
|
|
13
18
|
include: 'details,allowedIps'
|
|
@@ -18,17 +23,15 @@ var dataSources = function dataSources(_ref) {
|
|
|
18
23
|
}
|
|
19
24
|
};
|
|
20
25
|
};
|
|
21
|
-
|
|
22
26
|
var handleSubmit = function handleSubmit(_ref2) {
|
|
23
27
|
var slug = _ref2.slug;
|
|
24
28
|
return function (values) {
|
|
25
|
-
return updateSpace({
|
|
29
|
+
return (0, _apis.updateSpace)({
|
|
26
30
|
slug: slug,
|
|
27
31
|
space: values
|
|
28
|
-
}).then(handleFormErrors('space', 'There was an error saving the Space.'));
|
|
32
|
+
}).then((0, _Form2.handleFormErrors)('space', 'There was an error saving the Space.'));
|
|
29
33
|
};
|
|
30
34
|
};
|
|
31
|
-
|
|
32
35
|
var fields = function fields() {
|
|
33
36
|
return function (_ref3) {
|
|
34
37
|
var space = _ref3.space;
|
|
@@ -37,28 +40,26 @@ var fields = function fields() {
|
|
|
37
40
|
label: 'Name',
|
|
38
41
|
type: 'text',
|
|
39
42
|
required: true,
|
|
40
|
-
initialValue: get(space, 'name', '') || ''
|
|
43
|
+
initialValue: (0, _immutable.get)(space, 'name', '') || ''
|
|
41
44
|
}, {
|
|
42
45
|
name: 'slug',
|
|
43
46
|
label: 'Slug',
|
|
44
47
|
type: 'text',
|
|
45
48
|
required: false,
|
|
46
49
|
enabled: false,
|
|
47
|
-
initialValue: get(space, 'slug', '') || ''
|
|
50
|
+
initialValue: (0, _immutable.get)(space, 'slug', '') || ''
|
|
48
51
|
}, {
|
|
49
52
|
name: 'sharedBundle',
|
|
50
53
|
label: 'Use Shared Bundle base directory?',
|
|
51
54
|
type: 'checkbox',
|
|
52
55
|
"transient": true,
|
|
53
|
-
initialValue: (get(space, 'sharedBundleBase') || '') !== '',
|
|
56
|
+
initialValue: ((0, _immutable.get)(space, 'sharedBundleBase') || '') !== '',
|
|
54
57
|
onChange: function onChange(_ref4, _ref5) {
|
|
55
58
|
var values = _ref4.values;
|
|
56
59
|
var setValue = _ref5.setValue;
|
|
57
|
-
|
|
58
60
|
if (values.get('sharedBundleBase') !== '') {
|
|
59
61
|
setValue('sharedBundleBase', '');
|
|
60
62
|
}
|
|
61
|
-
|
|
62
63
|
if (values.get('bundlePath') !== '') {
|
|
63
64
|
setValue('bundlePath', '');
|
|
64
65
|
}
|
|
@@ -67,7 +68,7 @@ var fields = function fields() {
|
|
|
67
68
|
name: 'sharedBundleBase',
|
|
68
69
|
label: 'Shared Bundle Base Directory',
|
|
69
70
|
type: 'text',
|
|
70
|
-
initialValue: get(space, 'sharedBundleBase') || '',
|
|
71
|
+
initialValue: (0, _immutable.get)(space, 'sharedBundleBase') || '',
|
|
71
72
|
helpText: 'Directory used as path prefix for bundles.',
|
|
72
73
|
visible: function visible(_ref6) {
|
|
73
74
|
var values = _ref6.values;
|
|
@@ -81,21 +82,21 @@ var fields = function fields() {
|
|
|
81
82
|
name: 'bundlePath',
|
|
82
83
|
label: 'Bundle Path',
|
|
83
84
|
type: 'text',
|
|
84
|
-
initialValue: get(space, 'bundlePath') || '',
|
|
85
|
+
initialValue: (0, _immutable.get)(space, 'bundlePath') || '',
|
|
85
86
|
visible: function visible(_ref8) {
|
|
86
87
|
var values = _ref8.values;
|
|
87
|
-
return get(values, 'sharedBundle');
|
|
88
|
+
return (0, _immutable.get)(values, 'sharedBundle');
|
|
88
89
|
},
|
|
89
90
|
required: function required(_ref9) {
|
|
90
91
|
var values = _ref9.values;
|
|
91
|
-
return get(values, 'sharedBundle');
|
|
92
|
+
return (0, _immutable.get)(values, 'sharedBundle');
|
|
92
93
|
}
|
|
93
94
|
}, {
|
|
94
95
|
name: 'allowedIps',
|
|
95
96
|
label: 'Allowed IPs',
|
|
96
97
|
type: 'select',
|
|
97
98
|
options: function options() {
|
|
98
|
-
return fromJS([{
|
|
99
|
+
return (0, _immutable.fromJS)([{
|
|
99
100
|
name: 'description',
|
|
100
101
|
label: 'Description',
|
|
101
102
|
type: 'text'
|
|
@@ -109,7 +110,7 @@ var fields = function fields() {
|
|
|
109
110
|
var values = _ref10.values;
|
|
110
111
|
return values.get('allowedIpsEnabled', false);
|
|
111
112
|
},
|
|
112
|
-
initialValue: get(space, 'allowedIps', []),
|
|
113
|
+
initialValue: (0, _immutable.get)(space, 'allowedIps', []),
|
|
113
114
|
serialize: function serialize(_ref11) {
|
|
114
115
|
var values = _ref11.values;
|
|
115
116
|
return values.get('allowedIpsEnabled', false) ? values.get('allowedIps') : [];
|
|
@@ -118,14 +119,14 @@ var fields = function fields() {
|
|
|
118
119
|
name: 'allowedIpsEnabled',
|
|
119
120
|
label: 'Enabled Allowed IP Restrictions?',
|
|
120
121
|
type: 'checkbox',
|
|
121
|
-
initialValue: get(space, 'allowedIpsEnabled', false) || false
|
|
122
|
+
initialValue: (0, _immutable.get)(space, 'allowedIpsEnabled', false) || false
|
|
122
123
|
}];
|
|
123
124
|
};
|
|
124
125
|
};
|
|
125
|
-
|
|
126
|
-
export var SystemSpaceForm = generateForm({
|
|
126
|
+
var SystemSpaceForm = (0, _Form.generateForm)({
|
|
127
127
|
formOptions: ['slug'],
|
|
128
128
|
dataSources: dataSources,
|
|
129
129
|
fields: fields,
|
|
130
130
|
handleSubmit: handleSubmit
|
|
131
|
-
});
|
|
131
|
+
});
|
|
132
|
+
exports.SystemSpaceForm = SystemSpaceForm;
|