@kineticdata/react 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/apis/agent/adapters.js +2 -3
- package/lib/apis/agent/bridges.js +7 -13
- package/lib/apis/agent/handlers.js +7 -13
- package/lib/apis/core/activity.js +2 -3
- package/lib/apis/core/attributeDefinitions.js +6 -11
- package/lib/apis/core/attributeDefinitions.test.js +201 -213
- package/lib/apis/core/authentication.js +74 -84
- package/lib/apis/core/backgroundJobs.js +5 -9
- package/lib/apis/core/bridgeModelAttributeMappings.js +5 -10
- package/lib/apis/core/bridgeModelAttributes.js +6 -11
- package/lib/apis/core/bridgeModelMappings.js +5 -10
- package/lib/apis/core/bridgeModelQualificationMappings.js +5 -10
- package/lib/apis/core/bridgeModelQualifications.js +5 -10
- package/lib/apis/core/bridgeModels.js +7 -13
- package/lib/apis/core/bridgeModels.test.js +313 -333
- package/lib/apis/core/bridgedresources.js +7 -13
- package/lib/apis/core/categories.js +6 -11
- package/lib/apis/core/fileResources.js +5 -10
- package/lib/apis/core/filestores.js +5 -10
- package/lib/apis/core/formTypes.js +6 -11
- package/lib/apis/core/forms.js +6 -11
- package/lib/apis/core/forms.test.js +201 -213
- package/lib/apis/core/kapps.js +6 -11
- package/lib/apis/core/kapps.test.js +122 -130
- package/lib/apis/core/logs.js +3 -5
- package/lib/apis/core/memberships.js +3 -5
- package/lib/apis/core/meta.js +6 -11
- package/lib/apis/core/notices.js +2 -3
- package/lib/apis/core/oauthClients.js +6 -11
- package/lib/apis/core/platformComponents.js +10 -19
- package/lib/apis/core/platformItems.js +2 -3
- package/lib/apis/core/profile.js +3 -5
- package/lib/apis/core/securityPolicyDefinitions.js +6 -11
- package/lib/apis/core/securityPolicyDefinitions.test.js +254 -268
- package/lib/apis/core/space.js +3 -5
- package/lib/apis/core/space.test.js +106 -114
- package/lib/apis/core/submissions.js +17 -33
- package/lib/apis/core/teams.js +6 -11
- package/lib/apis/core/translations.js +18 -35
- package/lib/apis/core/translations.test.js +1343 -1437
- package/lib/apis/core/users.js +6 -11
- package/lib/apis/core/version.js +2 -3
- package/lib/apis/core/webApis.js +5 -10
- package/lib/apis/core/webhooks.js +6 -11
- package/lib/apis/core/webhooks.test.js +243 -257
- package/lib/apis/core/webhooksJobs.js +3 -5
- package/lib/apis/core/workflows.js +7 -13
- package/lib/apis/http.js +16 -31
- package/lib/apis/system/index.js +46 -91
- package/lib/apis/task/index.js +60 -119
- package/lib/components/agent/bridge/BridgeForm.js +1 -2
- package/lib/components/agent/bridge/BridgeTable.js +1 -2
- package/lib/components/agent/filestore/FilestoreForm.js +1 -2
- package/lib/components/agent/filestore/FilestoreTable.js +1 -2
- package/lib/components/agent/handler/AgentHandlerForm.js +1 -2
- package/lib/components/agent/handler/AgentHandlerTable.js +1 -2
- package/lib/components/common/AttributeSelect.js +2 -3
- package/lib/components/common/BridgeSelect.js +16 -17
- package/lib/components/common/ComponentConfigContext.js +1 -2
- package/lib/components/common/ContentEditable.js +23 -3
- package/lib/components/common/FormSelect.js +16 -17
- package/lib/components/common/NodeSelect.js +2 -3
- package/lib/components/common/Scroller.js +2 -3
- package/lib/components/common/StaticSelect.js +14 -15
- package/lib/components/common/TableInput.js +276 -63
- package/lib/components/common/TeamSelect.js +16 -17
- package/lib/components/common/ToastContainer.js +7 -12
- package/lib/components/common/Typeahead.js +15 -2
- package/lib/components/common/UserSelect.js +16 -17
- package/lib/components/common/authentication/AuthInterceptor.js +2 -3
- package/lib/components/common/authentication/AuthInterceptor.test.js +141 -153
- package/lib/components/common/authentication/AuthenticationContainer.js +332 -343
- package/lib/components/common/authentication/RequestInterceptor.js +2 -10
- package/lib/components/common/code_input/CodeInput.js +4 -9
- package/lib/components/common/code_input/draftHelpers.js +20 -37
- package/lib/components/common/code_input/languageHelpers.js +6 -12
- package/lib/components/common/code_input/languageHelpers.test.js +10 -8
- package/lib/components/common/defaults/Toast.js +1 -2
- package/lib/components/common/defaults/index.js +2 -3
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +1 -2
- package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +1 -2
- package/lib/components/core/bridge_model/BridgeModelForm.js +52 -55
- package/lib/components/core/bridge_model/BridgeModelTable.js +1 -2
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +1 -2
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +1 -2
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +1 -2
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +1 -2
- package/lib/components/core/category/CategoryForm.js +1 -2
- package/lib/components/core/category/CategoryTable.js +1 -2
- package/lib/components/core/core_form/CoreForm.js +11 -22
- package/lib/components/core/core_form/defaults/index.js +11 -19
- package/lib/components/core/core_form/globals.js +3 -5
- package/lib/components/core/field_definition/FieldDefinitionForm.js +1 -2
- package/lib/components/core/field_definition/FieldDefinitionTable.js +2 -4
- package/lib/components/core/file_resource/FileResourceForm.js +1 -2
- package/lib/components/core/file_resource/FileResourceTable.js +1 -2
- package/lib/components/core/form/FormForm.js +1 -2
- package/lib/components/core/form/FormTable.js +1 -2
- package/lib/components/core/form_type/FormTypeForm.js +1 -2
- package/lib/components/core/form_type/FormTypeTable.js +1 -2
- package/lib/components/core/i18n/I18n.js +2 -4
- package/lib/components/core/i18n/I18nContext.js +1 -2
- package/lib/components/core/i18n/I18nProvider.js +2 -3
- package/lib/components/core/i18n/Moment.js +10 -9
- package/lib/components/core/index_definition/IndexDefinitionForm.js +1 -2
- package/lib/components/core/index_definition/IndexDefinitionTable.js +1 -2
- package/lib/components/core/index_job/IndexJobTable.js +1 -2
- package/lib/components/core/kapp/KappForm.js +1 -2
- package/lib/components/core/kapp/KappTable.js +1 -2
- package/lib/components/core/log/LogTable.js +2 -4
- package/lib/components/core/oauth_client/OAuthClientForm.js +1 -2
- package/lib/components/core/oauth_client/OAuthClientTable.js +1 -2
- package/lib/components/core/platform_component/AgentComponentForm.js +1 -2
- package/lib/components/core/platform_component/AgentComponentTable.js +1 -2
- package/lib/components/core/platform_component/TaskComponentForm.js +1 -2
- package/lib/components/core/profile/ProfileForm.js +1 -2
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +3 -6
- package/lib/components/core/security_definition/SecurityDefinitionTable.js +1 -2
- package/lib/components/core/space/SpaceForm.js +1 -2
- package/lib/components/core/submission/DatastoreSubmissionFilters.js +3 -5
- package/lib/components/core/submission/DatastoreSubmissionTable.js +2 -4
- package/lib/components/core/submission/FormSubmissionFilters.js +4 -7
- package/lib/components/core/submission/FormSubmissionTable.js +2 -4
- package/lib/components/core/submission/KappSubmissionTable.js +2 -4
- package/lib/components/core/submission/SubmissionForm.js +1 -2
- package/lib/components/core/submission/SubmissionTable.js +2 -3
- package/lib/components/core/submission/helpers.js +4 -7
- package/lib/components/core/team/TeamForm.js +1 -2
- package/lib/components/core/team/TeamTable.js +1 -2
- package/lib/components/core/translation/ContextForm.js +1 -2
- package/lib/components/core/translation/ContextTable.js +1 -2
- package/lib/components/core/translation/EntryForm.js +1 -2
- package/lib/components/core/translation/EntryTable.js +1 -2
- package/lib/components/core/translation/LocaleForm.js +1 -2
- package/lib/components/core/translation/LocaleTable.js +1 -2
- package/lib/components/core/user/UserForm.js +1 -2
- package/lib/components/core/user/UserTable.js +1 -2
- package/lib/components/core/webapi/WebApiForm.js +97 -101
- package/lib/components/core/webapi/WebApiTable.js +1 -2
- package/lib/components/core/webhook/WebhookForm.js +1 -2
- package/lib/components/core/webhook/WebhookTable.js +1 -2
- package/lib/components/core/webhook_job/WebhookJobTable.js +1 -2
- package/lib/components/form/Form.helpers.js +10 -19
- package/lib/components/form/Form.js +312 -355
- package/lib/components/form/Form.models.js +6 -11
- package/lib/components/form/FormState.js +1 -2
- package/lib/components/form/KitchenSinkForm.js +23 -3
- package/lib/components/form/SimpleForm.helpers.js +262 -0
- package/lib/components/form/SimpleForm.js +462 -0
- package/lib/components/form/SimpleForm.models.js +62 -0
- package/lib/components/form/defaults/AttributesField.js +3 -4
- package/lib/components/form/defaults/CheckboxField.js +2 -3
- package/lib/components/form/defaults/CodeField.js +2 -3
- package/lib/components/form/defaults/FormButtons.js +2 -3
- package/lib/components/form/defaults/FormError.js +2 -3
- package/lib/components/form/defaults/FormField.js +2 -3
- package/lib/components/form/defaults/FormLayout.js +2 -3
- package/lib/components/form/defaults/FormMultiField.js +2 -3
- package/lib/components/form/defaults/PasswordField.js +2 -3
- package/lib/components/form/defaults/RadioField.js +2 -3
- package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +2 -3
- package/lib/components/form/defaults/SelectField.js +2 -3
- package/lib/components/form/defaults/SelectMultiField.js +2 -3
- package/lib/components/form/defaults/TableField.js +2 -3
- package/lib/components/form/defaults/TeamField.js +2 -3
- package/lib/components/form/defaults/TeamMultiField.js +2 -3
- package/lib/components/form/defaults/TextField.js +2 -3
- package/lib/components/form/defaults/TextMultiField.js +2 -3
- package/lib/components/form/defaults/UserField.js +2 -3
- package/lib/components/form/defaults/UserMultiField.js +2 -3
- package/lib/components/form/defaults/index.js +2 -3
- package/lib/components/form/tests/Form.test.js +3865 -4257
- package/lib/components/form/tests/components.js +2 -3
- package/lib/components/index.js +7 -0
- package/lib/components/system/SystemBackgroundTasksTable.js +1 -2
- package/lib/components/system/SystemCassandraForm.js +1 -2
- package/lib/components/system/SystemElasticSearchForm.js +1 -2
- package/lib/components/system/SystemFilestoreForm.js +2 -3
- package/lib/components/system/SystemForm.js +1 -2
- package/lib/components/system/SystemIngressForm.js +1 -2
- package/lib/components/system/SystemSecurityForm.js +1 -2
- package/lib/components/system/SystemSmtpForm.js +1 -2
- package/lib/components/system/SystemTaskAdapterForm.js +1 -2
- package/lib/components/system/SystemTrustedCertificateForm.js +1 -2
- package/lib/components/system/SystemTrustedCertificatesTable.js +1 -2
- package/lib/components/system/SystemUserForm.js +1 -2
- package/lib/components/system/helpers.js +11 -21
- package/lib/components/system/spaces/SystemSpaceForm.js +2 -3
- package/lib/components/system/spaces/SystemTenantForm.js +2 -3
- package/lib/components/system/spaces/SystemTenantTable.js +1 -2
- package/lib/components/table/Table.js +48 -51
- package/lib/components/table/Table.redux.js +161 -188
- package/lib/components/table/Table.test.js +115 -123
- package/lib/components/table/defaults/BodyCell.js +1 -2
- package/lib/components/table/defaults/BodyRow.js +1 -2
- package/lib/components/table/defaults/BooleanFilter.js +1 -2
- package/lib/components/table/defaults/ColumnControl.js +1 -2
- package/lib/components/table/defaults/EmptyBodyRow.js +1 -2
- package/lib/components/table/defaults/FilterLayout.js +1 -2
- package/lib/components/table/defaults/Footer.js +1 -2
- package/lib/components/table/defaults/FooterCell.js +1 -2
- package/lib/components/table/defaults/FooterRow.js +1 -2
- package/lib/components/table/defaults/Header.js +1 -2
- package/lib/components/table/defaults/HeaderCell.js +1 -2
- package/lib/components/table/defaults/HeaderRow.js +1 -2
- package/lib/components/table/defaults/PaginationControl.js +2 -4
- package/lib/components/table/defaults/TableBody.js +1 -2
- package/lib/components/table/defaults/TableLayout.js +1 -2
- package/lib/components/table/defaults/TextFilter.js +1 -2
- package/lib/components/table/defaults/index.js +2 -3
- package/lib/components/task/builder/Connector.js +26 -11
- package/lib/components/task/builder/ConnectorForm.js +1 -2
- package/lib/components/task/builder/Node.js +18 -9
- package/lib/components/task/builder/NodeForm.js +1 -2
- package/lib/components/task/builder/NodeParametersForm.js +1 -2
- package/lib/components/task/builder/SvgCanvas.js +2 -3
- package/lib/components/task/builder/SvgText.js +2 -3
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +3 -6
- package/lib/components/task/builder/TreeBuilder.js +10 -4
- package/lib/components/task/builder/builder.redux.js +171 -182
- package/lib/components/task/builder/constants.js +38 -76
- package/lib/components/task/builder/helpers.js +23 -40
- package/lib/components/task/builder/models.js +19 -35
- package/lib/components/task/category/TaskCategoryForm.js +2 -3
- package/lib/components/task/category/TaskCategoryTable.js +1 -2
- package/lib/components/task/common/UsageTable.js +1 -2
- package/lib/components/task/engine/EngineSettingsForm.js +2 -3
- package/lib/components/task/errors/RunErrorTable.js +2 -3
- package/lib/components/task/errors/SystemErrorsTable.js +1 -2
- package/lib/components/task/handlers/HandlerForm.js +2 -3
- package/lib/components/task/handlers/HandlerTable.js +1 -2
- package/lib/components/task/handlers/MissingHandlerTable.js +1 -2
- package/lib/components/task/policy_rule/PolicyRuleForm.js +2 -3
- package/lib/components/task/policy_rule/PolicyRuleTable.js +1 -2
- package/lib/components/task/runs/CreateManualTriggerForm.js +1 -2
- package/lib/components/task/runs/RunTable.js +2 -3
- package/lib/components/task/runs/RunTaskTable.js +1 -2
- package/lib/components/task/sources/SourceForm.js +1 -2
- package/lib/components/task/sources/SourceTable.js +1 -2
- package/lib/components/task/triggers/TriggerTable.js +2 -3
- package/lib/components/task/workflows/LinkedWorkflowForm.js +3 -5
- package/lib/components/task/workflows/LinkedWorkflowTable.js +1 -2
- package/lib/components/task/workflows/MissingRoutineTable.js +1 -2
- package/lib/components/task/workflows/WorkflowForm.js +2 -3
- package/lib/components/task/workflows/WorkflowTable.js +1 -2
- package/lib/helpers/SearchBuilder.js +2 -4
- package/lib/helpers/index.js +13 -26
- package/lib/index.js +3 -6
- package/lib/reducer.js +3 -5
- package/lib/saga.js +32 -48
- package/lib/store.js +32 -42
- package/package.json +12 -15
- package/lib/components/core/CoreFormModal.js +0 -64
- package/lib/components/core/CoreModal.js +0 -114
|
@@ -70,11 +70,10 @@ var columns = [{
|
|
|
70
70
|
title: 'Updated By',
|
|
71
71
|
sortable: true
|
|
72
72
|
}];
|
|
73
|
-
var PolicyRuleTable = (0, _Table.generateTable)({
|
|
73
|
+
var PolicyRuleTable = exports.PolicyRuleTable = (0, _Table.generateTable)({
|
|
74
74
|
columns: columns,
|
|
75
75
|
filters: filters,
|
|
76
76
|
dataSource: dataSource
|
|
77
77
|
});
|
|
78
|
-
exports.PolicyRuleTable = PolicyRuleTable;
|
|
79
78
|
PolicyRuleTable.propTypes = {};
|
|
80
79
|
PolicyRuleTable.displayName = 'PolicyRuleTable';
|
|
@@ -76,11 +76,10 @@ var fields = function fields() {
|
|
|
76
76
|
}];
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
|
-
var CreateManualTriggerForm = (0, _Form.generateForm)({
|
|
79
|
+
var CreateManualTriggerForm = exports.CreateManualTriggerForm = (0, _Form.generateForm)({
|
|
80
80
|
formOptions: ['runId', 'tree'],
|
|
81
81
|
dataSources: dataSources,
|
|
82
82
|
fields: fields,
|
|
83
83
|
handleSubmit: handleSubmit
|
|
84
84
|
});
|
|
85
|
-
exports.CreateManualTriggerForm = CreateManualTriggerForm;
|
|
86
85
|
CreateManualTriggerForm.displayName = 'CreateManualTriggerForm';
|
|
@@ -197,11 +197,10 @@ var columns = [{
|
|
|
197
197
|
sortable: false,
|
|
198
198
|
toggleable: true
|
|
199
199
|
}];
|
|
200
|
-
var RunTable = (0, _Table.generateTable)({
|
|
200
|
+
var RunTable = exports.RunTable = (0, _Table.generateTable)({
|
|
201
201
|
tableOptions: ['sourceName', 'sourceGroup', 'treeName', 'sourceId', 'count'],
|
|
202
202
|
columns: columns,
|
|
203
203
|
filters: filters,
|
|
204
204
|
dataSource: dataSource,
|
|
205
205
|
filterDataSources: filterDataSources
|
|
206
|
-
});
|
|
207
|
-
exports.RunTable = RunTable;
|
|
206
|
+
});
|
|
@@ -54,11 +54,10 @@ var columns = [{
|
|
|
54
54
|
title: 'Created',
|
|
55
55
|
sortable: true
|
|
56
56
|
}];
|
|
57
|
-
var RunTaskTable = (0, _.generateTable)({
|
|
57
|
+
var RunTaskTable = exports.RunTaskTable = (0, _.generateTable)({
|
|
58
58
|
tableOptions: ['run'],
|
|
59
59
|
dataSource: dataSource,
|
|
60
60
|
filters: filters,
|
|
61
61
|
columns: columns
|
|
62
62
|
});
|
|
63
|
-
exports.RunTaskTable = RunTaskTable;
|
|
64
63
|
RunTaskTable.displayName = 'RunTaskTable';
|
|
@@ -148,11 +148,10 @@ var fields = function fields(_ref5) {
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
|
-
var SourceForm = (0, _Form.generateForm)({
|
|
151
|
+
var SourceForm = exports.SourceForm = (0, _Form.generateForm)({
|
|
152
152
|
formOptions: ['sourceName', 'sourceType'],
|
|
153
153
|
dataSources: dataSources,
|
|
154
154
|
fields: fields,
|
|
155
155
|
handleSubmit: handleSubmit
|
|
156
156
|
});
|
|
157
|
-
exports.SourceForm = SourceForm;
|
|
158
157
|
SourceForm.displayName = 'SourceForm';
|
|
@@ -86,11 +86,10 @@ var columns = [{
|
|
|
86
86
|
value: 'updatedBy',
|
|
87
87
|
toggleable: true
|
|
88
88
|
}];
|
|
89
|
-
var SourceTable = (0, _Table.generateTable)({
|
|
89
|
+
var SourceTable = exports.SourceTable = (0, _Table.generateTable)({
|
|
90
90
|
columns: columns,
|
|
91
91
|
filters: filters,
|
|
92
92
|
filterDataSources: filterDataSources,
|
|
93
93
|
dataSource: dataSource
|
|
94
94
|
});
|
|
95
|
-
exports.SourceTable = SourceTable;
|
|
96
95
|
SourceTable.displayName = 'SourceTable';
|
|
@@ -227,11 +227,10 @@ var columns = [{
|
|
|
227
227
|
sortable: false,
|
|
228
228
|
toggleable: true
|
|
229
229
|
}];
|
|
230
|
-
var TriggerTable = (0, _Table.generateTable)({
|
|
230
|
+
var TriggerTable = exports.TriggerTable = (0, _Table.generateTable)({
|
|
231
231
|
tableOptions: ['runId', 'triggerStatus'],
|
|
232
232
|
columns: columns,
|
|
233
233
|
filters: filters,
|
|
234
234
|
filterDataSources: filterDataSources,
|
|
235
235
|
dataSource: dataSource
|
|
236
|
-
});
|
|
237
|
-
exports.TriggerTable = TriggerTable;
|
|
236
|
+
});
|
|
@@ -28,14 +28,13 @@ var formTrees = function formTrees(webhookEvents) {
|
|
|
28
28
|
return "Submission ".concat(event);
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
var getPossibleTrees = function getPossibleTrees(_ref) {
|
|
31
|
+
var getPossibleTrees = exports.getPossibleTrees = function getPossibleTrees(_ref) {
|
|
32
32
|
var kappSlug = _ref.kappSlug,
|
|
33
33
|
formSlug = _ref.formSlug,
|
|
34
34
|
spaceWebhookEvents = _ref.spaceWebhookEvents,
|
|
35
35
|
kappWebhookEvents = _ref.kappWebhookEvents;
|
|
36
36
|
return kappSlug && formSlug ? formTrees(kappWebhookEvents) : !kappSlug && formSlug ? formTrees(spaceWebhookEvents) : kappSlug ? kappTrees(kappWebhookEvents) : spaceTrees(spaceWebhookEvents);
|
|
37
37
|
};
|
|
38
|
-
exports.getPossibleTrees = getPossibleTrees;
|
|
39
38
|
var dataSources = function dataSources(_ref2) {
|
|
40
39
|
var workflowId = _ref2.workflowId,
|
|
41
40
|
kappSlug = _ref2.kappSlug,
|
|
@@ -240,10 +239,9 @@ var fields = function fields(_ref8) {
|
|
|
240
239
|
}];
|
|
241
240
|
};
|
|
242
241
|
};
|
|
243
|
-
var LinkedWorkflowForm = (0, _Form.generateForm)({
|
|
242
|
+
var LinkedWorkflowForm = exports.LinkedWorkflowForm = (0, _Form.generateForm)({
|
|
244
243
|
formOptions: ['kappSlug', 'formSlug', 'workflowId', 'cloneGuid', 'scope'],
|
|
245
244
|
dataSources: dataSources,
|
|
246
245
|
handleSubmit: handleSubmit,
|
|
247
246
|
fields: fields
|
|
248
|
-
});
|
|
249
|
-
exports.LinkedWorkflowForm = LinkedWorkflowForm;
|
|
247
|
+
});
|
|
@@ -143,11 +143,10 @@ var columns = [{
|
|
|
143
143
|
sortable: false,
|
|
144
144
|
toggleable: true
|
|
145
145
|
}];
|
|
146
|
-
var LinkedWorkflowTable = (0, _Table.generateTable)({
|
|
146
|
+
var LinkedWorkflowTable = exports.LinkedWorkflowTable = (0, _Table.generateTable)({
|
|
147
147
|
tableOptions: ['kappSlug', 'formSlug'],
|
|
148
148
|
columns: columns,
|
|
149
149
|
filters: filters,
|
|
150
150
|
dataSource: dataSource
|
|
151
151
|
});
|
|
152
|
-
exports.LinkedWorkflowTable = LinkedWorkflowTable;
|
|
153
152
|
LinkedWorkflowTable.displayName = 'LinkedWorkflowTable';
|
|
@@ -48,11 +48,10 @@ var columns = [{
|
|
|
48
48
|
title: 'Nodes',
|
|
49
49
|
sortable: true
|
|
50
50
|
}];
|
|
51
|
-
var MissingRoutineTable = (0, _Table.generateTable)({
|
|
51
|
+
var MissingRoutineTable = exports.MissingRoutineTable = (0, _Table.generateTable)({
|
|
52
52
|
tableOptions: [],
|
|
53
53
|
columns: columns,
|
|
54
54
|
filters: filters,
|
|
55
55
|
dataSource: dataSource
|
|
56
56
|
});
|
|
57
|
-
exports.MissingRoutineTable = MissingRoutineTable;
|
|
58
57
|
MissingRoutineTable.displayName = 'MissingRoutineTable';
|
|
@@ -253,7 +253,7 @@ var fields = function fields(_ref4) {
|
|
|
253
253
|
}];
|
|
254
254
|
};
|
|
255
255
|
};
|
|
256
|
-
var WorkflowForm = function WorkflowForm(_ref13) {
|
|
256
|
+
var WorkflowForm = exports.WorkflowForm = function WorkflowForm(_ref13) {
|
|
257
257
|
var addFields = _ref13.addFields,
|
|
258
258
|
alterFields = _ref13.alterFields,
|
|
259
259
|
fieldSet = _ref13.fieldSet,
|
|
@@ -280,5 +280,4 @@ var WorkflowForm = function WorkflowForm(_ref13) {
|
|
|
280
280
|
workflowType: workflowType
|
|
281
281
|
}
|
|
282
282
|
}, children);
|
|
283
|
-
};
|
|
284
|
-
exports.WorkflowForm = WorkflowForm;
|
|
283
|
+
};
|
|
@@ -176,12 +176,11 @@ var columns = [{
|
|
|
176
176
|
sortable: false,
|
|
177
177
|
toggleable: true
|
|
178
178
|
}];
|
|
179
|
-
var WorkflowTable = (0, _Table.generateTable)({
|
|
179
|
+
var WorkflowTable = exports.WorkflowTable = (0, _Table.generateTable)({
|
|
180
180
|
tableOptions: ['alterData', 'workflowType', 'sourceName', 'sourceGroup'],
|
|
181
181
|
columns: columns,
|
|
182
182
|
filters: filters,
|
|
183
183
|
filterDataSources: filterDataSources,
|
|
184
184
|
dataSource: dataSource
|
|
185
185
|
});
|
|
186
|
-
exports.WorkflowTable = WorkflowTable;
|
|
187
186
|
WorkflowTable.displayName = 'WorkflowTable';
|
|
@@ -11,14 +11,12 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/es
|
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
|
12
12
|
var _immutable = require("immutable");
|
|
13
13
|
var _lodashEs = require("lodash-es");
|
|
14
|
-
var defineKqlQuery = function defineKqlQuery() {
|
|
14
|
+
var defineKqlQuery = exports.defineKqlQuery = function defineKqlQuery() {
|
|
15
15
|
return new SearchBuilder('kql');
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
var defineFilter = function defineFilter(caseInsensitive, rootOperator) {
|
|
17
|
+
var defineFilter = exports.defineFilter = function defineFilter(caseInsensitive, rootOperator) {
|
|
19
18
|
return new SearchBuilder('filter', caseInsensitive, rootOperator);
|
|
20
19
|
};
|
|
21
|
-
exports.defineFilter = defineFilter;
|
|
22
20
|
var SearchBuilder = /*#__PURE__*/function () {
|
|
23
21
|
function SearchBuilder(type) {
|
|
24
22
|
var caseInsensitive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
package/lib/helpers/index.js
CHANGED
|
@@ -34,12 +34,11 @@ Object.keys(_SearchBuilder).forEach(function (key) {
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
|
-
var K = typeof window !== "undefined" ? window.K : function () {};
|
|
37
|
+
var K = exports.K = typeof window !== "undefined" ? window.K : function () {};
|
|
38
38
|
// platform consoles and other apps may not load app head content that
|
|
39
39
|
// instantiates the bundle object used by some of these helpers so we create a
|
|
40
40
|
// mock version here
|
|
41
|
-
exports.
|
|
42
|
-
var bundle = typeof window !== "undefined" && window.bundle ? window.bundle : {
|
|
41
|
+
var bundle = exports.bundle = typeof window !== "undefined" && window.bundle ? window.bundle : {
|
|
43
42
|
apiLocation: function apiLocation() {
|
|
44
43
|
return "".concat(process.env.REACT_APP_API_HOST || '', "/app/api/v1");
|
|
45
44
|
},
|
|
@@ -52,7 +51,6 @@ var bundle = typeof window !== "undefined" && window.bundle ? window.bundle : {
|
|
|
52
51
|
};
|
|
53
52
|
// when running the bundle in dev mode there will already be a bundle object but
|
|
54
53
|
// we want to prefix the locations with the REACT_APP_API_HOST value
|
|
55
|
-
exports.bundle = bundle;
|
|
56
54
|
if (typeof window !== "undefined" && window.bundle && process.env.REACT_APP_API_HOST) {
|
|
57
55
|
var spaceLocation = window.bundle.spaceLocation();
|
|
58
56
|
var apiLocation = window.bundle.apiLocation();
|
|
@@ -63,7 +61,7 @@ if (typeof window !== "undefined" && window.bundle && process.env.REACT_APP_API_
|
|
|
63
61
|
return process.env.REACT_APP_API_HOST + apiLocation;
|
|
64
62
|
};
|
|
65
63
|
}
|
|
66
|
-
var splitTeamName = function splitTeamName(team) {
|
|
64
|
+
var splitTeamName = exports.splitTeamName = function splitTeamName(team) {
|
|
67
65
|
var _team$get$split$rever = team.get('name').split('::').reverse(),
|
|
68
66
|
_team$get$split$rever2 = (0, _toArray2["default"])(_team$get$split$rever),
|
|
69
67
|
local = _team$get$split$rever2[0],
|
|
@@ -73,16 +71,14 @@ var splitTeamName = function splitTeamName(team) {
|
|
|
73
71
|
|
|
74
72
|
// Applies fn to each value in list, splitting it into a new list each time fn
|
|
75
73
|
// returns a different value.
|
|
76
|
-
exports.
|
|
77
|
-
var partitionListBy = function partitionListBy(fn, list) {
|
|
74
|
+
var partitionListBy = exports.partitionListBy = function partitionListBy(fn, list) {
|
|
78
75
|
return list.isEmpty() ? (0, _immutable.List)() : list.rest().reduce(function (reduction, current) {
|
|
79
76
|
return fn(reduction.last().last(), current) ? reduction.push((0, _immutable.List)([current])) : reduction.update(reduction.size - 1, function (list) {
|
|
80
77
|
return list.push(current);
|
|
81
78
|
});
|
|
82
79
|
}, (0, _immutable.List)([(0, _immutable.List)([list.first()])]));
|
|
83
80
|
};
|
|
84
|
-
exports.
|
|
85
|
-
var generateKey = function generateKey() {
|
|
81
|
+
var generateKey = exports.generateKey = function generateKey() {
|
|
86
82
|
var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 6;
|
|
87
83
|
var result = '';
|
|
88
84
|
while (result.length < length) {
|
|
@@ -90,8 +86,7 @@ var generateKey = function generateKey() {
|
|
|
90
86
|
}
|
|
91
87
|
return result;
|
|
92
88
|
};
|
|
93
|
-
exports.
|
|
94
|
-
var slugify = function slugify(text) {
|
|
89
|
+
var slugify = exports.slugify = function slugify(text) {
|
|
95
90
|
return text.trim()
|
|
96
91
|
// Convert uppercase to lowercase
|
|
97
92
|
.toLowerCase()
|
|
@@ -100,8 +95,7 @@ var slugify = function slugify(text) {
|
|
|
100
95
|
// Remove all non-word chars
|
|
101
96
|
.replace(/[^A-Za-z0-9\u0080-\u00FF-]+/g, '');
|
|
102
97
|
};
|
|
103
|
-
exports.
|
|
104
|
-
var buildDefinitionId = function buildDefinitionId(text) {
|
|
98
|
+
var buildDefinitionId = exports.buildDefinitionId = function buildDefinitionId(text) {
|
|
105
99
|
return text.trim()
|
|
106
100
|
// Convert uppercase to lowercase
|
|
107
101
|
.toLowerCase()
|
|
@@ -110,7 +104,6 @@ var buildDefinitionId = function buildDefinitionId(text) {
|
|
|
110
104
|
// Remove unwanted chars
|
|
111
105
|
.replace(/[^A-Za-z0-9_]+/g, '');
|
|
112
106
|
};
|
|
113
|
-
exports.buildDefinitionId = buildDefinitionId;
|
|
114
107
|
var FILE_STATIC_BINDINGS = [['Folder', 'folder'], ['Name', 'name'], ['Path', 'path']];
|
|
115
108
|
var SUBMISSION_STATIC_BINDINGS = [['Anonymous', 'anonymous'], ['Closed At', 'closedAt'], ['Closed By', 'closedBy'], ['Core State', 'coreState'], ['Created At', 'createdAt'], ['Created By', 'createdBy'], ['Current Page', 'currentPage'], ['Id', 'id'], ['Session Token', 'sessionToken'], ['Submitted At', 'submittedAt'], ['Submitted By', 'submittedBy'], ['Type', 'type'], ['Updated At', 'updatedAt'], ['Updated By', 'updatedBy']];
|
|
116
109
|
var TEAM_STATIC_BINDINGS = [['Name', 'name'], ['Slug', 'slug']];
|
|
@@ -157,7 +150,7 @@ var bindify = function bindify(fnName, staticMap) {
|
|
|
157
150
|
});
|
|
158
151
|
}));
|
|
159
152
|
};
|
|
160
|
-
var buildBindings = function buildBindings(_ref) {
|
|
153
|
+
var buildBindings = exports.buildBindings = function buildBindings(_ref) {
|
|
161
154
|
var space = _ref.space,
|
|
162
155
|
kapp = _ref.kapp,
|
|
163
156
|
form = _ref.form,
|
|
@@ -190,12 +183,10 @@ var buildBindings = function buildBindings(_ref) {
|
|
|
190
183
|
return o.get('children') && !o.get('children').isEmpty() || o.has('value');
|
|
191
184
|
});
|
|
192
185
|
};
|
|
193
|
-
exports.
|
|
194
|
-
var buildAgentPath = function buildAgentPath(options) {
|
|
186
|
+
var buildAgentPath = exports.buildAgentPath = function buildAgentPath(options) {
|
|
195
187
|
return "".concat(bundle.spaceLocation(), "/app/components/agents/").concat(options.agentSlug ? options.agentSlug : 'system');
|
|
196
188
|
};
|
|
197
|
-
exports.
|
|
198
|
-
var handleFormErrors = function handleFormErrors(key) {
|
|
189
|
+
var handleFormErrors = exports.handleFormErrors = function handleFormErrors(key) {
|
|
199
190
|
return function (result) {
|
|
200
191
|
var error = result.error;
|
|
201
192
|
if (error) {
|
|
@@ -204,10 +195,6 @@ var handleFormErrors = function handleFormErrors(key) {
|
|
|
204
195
|
return key ? result[key] : result;
|
|
205
196
|
};
|
|
206
197
|
};
|
|
207
|
-
exports.
|
|
208
|
-
var
|
|
209
|
-
exports.
|
|
210
|
-
var TIMELINES = ['createdAt', 'updatedAt', 'submittedAt', 'closedAt'].sort();
|
|
211
|
-
exports.TIMELINES = TIMELINES;
|
|
212
|
-
var MAX_PART_LENGTH = 10;
|
|
213
|
-
exports.MAX_PART_LENGTH = MAX_PART_LENGTH;
|
|
198
|
+
var INDEX_STATIC_PARTS = exports.INDEX_STATIC_PARTS = ['closedBy', 'coreState', 'createdBy', 'handle', 'submittedBy', 'type', 'updatedBy'].sort();
|
|
199
|
+
var TIMELINES = exports.TIMELINES = ['createdAt', 'updatedAt', 'submittedAt', 'closedAt'].sort();
|
|
200
|
+
var MAX_PART_LENGTH = exports.MAX_PART_LENGTH = 10;
|
package/lib/index.js
CHANGED
|
@@ -61,7 +61,7 @@ Object.keys(_helpers).forEach(function (key) {
|
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
var requestInterceptor = new _RequestInterceptor["default"](_store.store);
|
|
64
|
-
var authInterceptor = new _AuthInterceptor["default"](_store.store,
|
|
64
|
+
var authInterceptor = exports.authInterceptor = new _AuthInterceptor["default"](_store.store,
|
|
65
65
|
// callback to invoke when we get a 401 response
|
|
66
66
|
function () {
|
|
67
67
|
return (0, _store.action)('TIMEOUT');
|
|
@@ -74,12 +74,11 @@ function (state) {
|
|
|
74
74
|
function (state) {
|
|
75
75
|
return !state.getIn(['session', 'loggedIn']);
|
|
76
76
|
});
|
|
77
|
-
exports.authInterceptor = authInterceptor;
|
|
78
77
|
_axios["default"].defaults.withCredentials = true;
|
|
79
78
|
_axios["default"].interceptors.request.use(requestInterceptor.handleFulfilled);
|
|
80
79
|
_axios["default"].interceptors.response.use(null, authInterceptor.handleRejected);
|
|
81
80
|
(0, _store.commitStore)();
|
|
82
|
-
var KineticLib = function KineticLib(props) {
|
|
81
|
+
var KineticLib = exports.KineticLib = function KineticLib(props) {
|
|
83
82
|
return /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
|
|
84
83
|
store: _store.store,
|
|
85
84
|
context: _store.context
|
|
@@ -94,6 +93,4 @@ var KineticLib = function KineticLib(props) {
|
|
|
94
93
|
system: props.system
|
|
95
94
|
}, props.children) : props.children))));
|
|
96
95
|
};
|
|
97
|
-
exports.
|
|
98
|
-
var history = typeof window !== 'undefined' && window.bundle ? (0, _history.createHashHistory)() : null;
|
|
99
|
-
exports.history = history;
|
|
96
|
+
var history = exports.history = typeof window !== 'undefined' && window.bundle ? (0, _history.createHashHistory)() : null;
|
package/lib/reducer.js
CHANGED
|
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.regHandlers = exports.reducer = void 0;
|
|
7
7
|
var handlers = {};
|
|
8
|
-
var regHandlers = function regHandlers(newHandlers) {
|
|
8
|
+
var regHandlers = exports.regHandlers = function regHandlers(newHandlers) {
|
|
9
9
|
Object.assign(handlers, newHandlers);
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
var reducer = function reducer(state, action) {
|
|
11
|
+
var reducer = exports.reducer = function reducer(state, action) {
|
|
13
12
|
return handlers[action.type] ? handlers[action.type](state, action) : state;
|
|
14
|
-
};
|
|
15
|
-
exports.reducer = reducer;
|
|
13
|
+
};
|
package/lib/saga.js
CHANGED
|
@@ -15,52 +15,42 @@ var _symbols = require("@redux-saga/symbols");
|
|
|
15
15
|
// regSaga function.
|
|
16
16
|
var supportedEffects = [effects.takeEvery('NOOP', /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee() {
|
|
17
17
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee$(_context) {
|
|
18
|
-
while (1) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return _context.stop();
|
|
23
|
-
}
|
|
18
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19
|
+
case 0:
|
|
20
|
+
case "end":
|
|
21
|
+
return _context.stop();
|
|
24
22
|
}
|
|
25
23
|
}, _callee);
|
|
26
24
|
})).payload.fn, effects.takeLatest('NOOP', /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee2() {
|
|
27
25
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee2$(_context2) {
|
|
28
|
-
while (1) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return _context2.stop();
|
|
33
|
-
}
|
|
26
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27
|
+
case 0:
|
|
28
|
+
case "end":
|
|
29
|
+
return _context2.stop();
|
|
34
30
|
}
|
|
35
31
|
}, _callee2);
|
|
36
32
|
})).payload.fn, effects.takeLeading('NOOP', /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee3() {
|
|
37
33
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee3$(_context3) {
|
|
38
|
-
while (1) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return _context3.stop();
|
|
43
|
-
}
|
|
34
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
35
|
+
case 0:
|
|
36
|
+
case "end":
|
|
37
|
+
return _context3.stop();
|
|
44
38
|
}
|
|
45
39
|
}, _callee3);
|
|
46
40
|
})).payload.fn, effects.throttle(0, 'NOOP', /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee4() {
|
|
47
41
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee4$(_context4) {
|
|
48
|
-
while (1) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return _context4.stop();
|
|
53
|
-
}
|
|
42
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
43
|
+
case 0:
|
|
44
|
+
case "end":
|
|
45
|
+
return _context4.stop();
|
|
54
46
|
}
|
|
55
47
|
}, _callee4);
|
|
56
48
|
})).payload.fn, effects.debounce(0, 'NOOP', /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee5() {
|
|
57
49
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee5$(_context5) {
|
|
58
|
-
while (1) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return _context5.stop();
|
|
63
|
-
}
|
|
50
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
51
|
+
case 0:
|
|
52
|
+
case "end":
|
|
53
|
+
return _context5.stop();
|
|
64
54
|
}
|
|
65
55
|
}, _callee5);
|
|
66
56
|
})).payload.fn];
|
|
@@ -85,8 +75,7 @@ var parseSagaEffect = function parseSagaEffect(sagaEffect) {
|
|
|
85
75
|
throw new Error('regSaga called with single value that is not not a saga effect');
|
|
86
76
|
}
|
|
87
77
|
};
|
|
88
|
-
var sagaMiddleware = (0, _reduxSaga["default"])();
|
|
89
|
-
exports.sagaMiddleware = sagaMiddleware;
|
|
78
|
+
var sagaMiddleware = exports.sagaMiddleware = (0, _reduxSaga["default"])();
|
|
90
79
|
var generatorFns = {};
|
|
91
80
|
var runningTasks = {};
|
|
92
81
|
var pendingTasks = {};
|
|
@@ -96,7 +85,7 @@ var pendingTasks = {};
|
|
|
96
85
|
* extract from which we can extract the name automatically. Or a pair of
|
|
97
86
|
* arguments, the name and the saga generator function.
|
|
98
87
|
*/
|
|
99
|
-
var regSaga = function regSaga(arg0, arg1) {
|
|
88
|
+
var regSaga = exports.regSaga = function regSaga(arg0, arg1) {
|
|
100
89
|
if (arg1) {
|
|
101
90
|
pendingTasks[arg0] = arg1;
|
|
102
91
|
generatorFns[arg0] = arg1;
|
|
@@ -106,23 +95,20 @@ var regSaga = function regSaga(arg0, arg1) {
|
|
|
106
95
|
genFn = _parseSagaEffect.genFn;
|
|
107
96
|
pendingTasks[name] = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee6() {
|
|
108
97
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee6$(_context6) {
|
|
109
|
-
while (1) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return _context6.stop();
|
|
117
|
-
}
|
|
98
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
99
|
+
case 0:
|
|
100
|
+
_context6.next = 2;
|
|
101
|
+
return arg0;
|
|
102
|
+
case 2:
|
|
103
|
+
case "end":
|
|
104
|
+
return _context6.stop();
|
|
118
105
|
}
|
|
119
106
|
}, _callee6);
|
|
120
107
|
});
|
|
121
108
|
generatorFns[name] = genFn;
|
|
122
109
|
}
|
|
123
110
|
};
|
|
124
|
-
exports.
|
|
125
|
-
var commitSagas = function commitSagas() {
|
|
111
|
+
var commitSagas = exports.commitSagas = function commitSagas() {
|
|
126
112
|
Object.entries(pendingTasks).forEach(function (_ref) {
|
|
127
113
|
var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
|
|
128
114
|
name = _ref2[0],
|
|
@@ -134,11 +120,9 @@ var commitSagas = function commitSagas() {
|
|
|
134
120
|
delete pendingTasks[name];
|
|
135
121
|
});
|
|
136
122
|
};
|
|
137
|
-
exports.
|
|
138
|
-
var runSaga = function runSaga(name) {
|
|
123
|
+
var runSaga = exports.runSaga = function runSaga(name) {
|
|
139
124
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
140
125
|
args[_key - 1] = arguments[_key];
|
|
141
126
|
}
|
|
142
127
|
return generatorFns[name].apply(generatorFns, args);
|
|
143
|
-
};
|
|
144
|
-
exports.runSaga = runSaga;
|
|
128
|
+
};
|
package/lib/store.js
CHANGED
|
@@ -42,16 +42,14 @@ var _saga = require("./saga");
|
|
|
42
42
|
var composeEnhancers = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
|
|
43
43
|
name: '@kineticdata/react'
|
|
44
44
|
}) : _redux.compose;
|
|
45
|
-
var store = (0, _redux.createStore)(_reducer.reducer, (0, _immutable.Map)(), composeEnhancers((0, _redux.applyMiddleware)(_saga.sagaMiddleware)));
|
|
46
|
-
exports.
|
|
47
|
-
var dispatch = function dispatch(type, payload) {
|
|
45
|
+
var store = exports.store = (0, _redux.createStore)(_reducer.reducer, (0, _immutable.Map)(), composeEnhancers((0, _redux.applyMiddleware)(_saga.sagaMiddleware)));
|
|
46
|
+
var dispatch = exports.dispatch = function dispatch(type, payload) {
|
|
48
47
|
return store.dispatch({
|
|
49
48
|
type: type,
|
|
50
49
|
payload: payload
|
|
51
50
|
});
|
|
52
51
|
};
|
|
53
|
-
exports.
|
|
54
|
-
var dispatcher = function dispatcher(type) {
|
|
52
|
+
var dispatcher = exports.dispatcher = function dispatcher(type) {
|
|
55
53
|
return function (payload) {
|
|
56
54
|
return store.dispatch({
|
|
57
55
|
type: type,
|
|
@@ -59,57 +57,49 @@ var dispatcher = function dispatcher(type) {
|
|
|
59
57
|
});
|
|
60
58
|
};
|
|
61
59
|
};
|
|
62
|
-
exports.
|
|
63
|
-
var action = function action(type, payload) {
|
|
60
|
+
var action = exports.action = function action(type, payload) {
|
|
64
61
|
return {
|
|
65
62
|
type: type,
|
|
66
63
|
payload: payload
|
|
67
64
|
};
|
|
68
65
|
};
|
|
69
|
-
exports.
|
|
70
|
-
var commitStore = function commitStore() {
|
|
66
|
+
var commitStore = exports.commitStore = function commitStore() {
|
|
71
67
|
(0, _saga.commitSagas)();
|
|
72
68
|
};
|
|
73
|
-
exports.
|
|
74
|
-
var
|
|
75
|
-
exports.context = context;
|
|
76
|
-
var connect = function connect() {
|
|
69
|
+
var context = exports.context = /*#__PURE__*/(0, _react.createContext)();
|
|
70
|
+
var connect = exports.connect = function connect() {
|
|
77
71
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
78
72
|
args[_key] = arguments[_key];
|
|
79
73
|
}
|
|
80
74
|
return _reactRedux.connect.apply(void 0, (0, _toConsumableArray2["default"])((0, _immutable.setIn)(args, [3, 'context'], context)));
|
|
81
75
|
};
|
|
82
|
-
exports.
|
|
83
|
-
var selectWaiting = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function selectWaiting(selector) {
|
|
76
|
+
var selectWaiting = exports.selectWaiting = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function selectWaiting(selector) {
|
|
84
77
|
var value;
|
|
85
78
|
return (0, _regeneratorRuntime2["default"])().wrap(function selectWaiting$(_context) {
|
|
86
|
-
while (1) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
_context.next = 12;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
_context.next = 3;
|
|
94
|
-
return (0, _effects.select)(selector);
|
|
95
|
-
case 3:
|
|
96
|
-
value = _context.sent;
|
|
97
|
-
if (!value) {
|
|
98
|
-
_context.next = 8;
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
return _context.abrupt("return", value);
|
|
102
|
-
case 8:
|
|
103
|
-
_context.next = 10;
|
|
104
|
-
return (0, _effects.take)();
|
|
105
|
-
case 10:
|
|
106
|
-
_context.next = 0;
|
|
79
|
+
while (1) switch (_context.prev = _context.next) {
|
|
80
|
+
case 0:
|
|
81
|
+
if (!true) {
|
|
82
|
+
_context.next = 12;
|
|
107
83
|
break;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
84
|
+
}
|
|
85
|
+
_context.next = 3;
|
|
86
|
+
return (0, _effects.select)(selector);
|
|
87
|
+
case 3:
|
|
88
|
+
value = _context.sent;
|
|
89
|
+
if (!value) {
|
|
90
|
+
_context.next = 8;
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
return _context.abrupt("return", value);
|
|
94
|
+
case 8:
|
|
95
|
+
_context.next = 10;
|
|
96
|
+
return (0, _effects.take)();
|
|
97
|
+
case 10:
|
|
98
|
+
_context.next = 0;
|
|
99
|
+
break;
|
|
100
|
+
case 12:
|
|
101
|
+
case "end":
|
|
102
|
+
return _context.stop();
|
|
112
103
|
}
|
|
113
104
|
}, selectWaiting);
|
|
114
|
-
});
|
|
115
|
-
exports.selectWaiting = selectWaiting;
|
|
105
|
+
});
|