@kineticdata/react 6.0.1 → 6.0.3
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/CHANGELOG.md +86 -0
- 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 +19 -35
- 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 +4 -4
- 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 +3 -3
- 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 +4354 -4508
- package/lib/components/form/tests/components.js +73 -64
- 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/table/tests/Table.redux.test.js +162 -0
- package/lib/components/table/tests/Table.test.js +767 -0
- package/lib/components/table/tests/components.js +182 -0
- 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 +14 -5
- package/lib/components/task/builder/builder.redux.js +187 -186
- 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 +24 -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 +91 -41
- 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
|
@@ -7,14 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.sortColumns = exports.getToggleableColumns = exports.generateTable = exports.generateColumns = exports.extractColumnComponents = exports.buildTableHeaderRow = exports.buildTableHeaderCell = exports.buildTableHeader = exports.buildTableFooterRow = exports.buildTableFooterCells = exports.buildTableFooter = exports.buildTableBodyRows = exports.buildTableBodyCells = exports.buildTableBody = exports.buildTable = exports.Table = void 0;
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
10
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
10
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
|
11
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
|
12
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
|
13
14
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createSuper"));
|
|
14
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
15
15
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
var _recompose = require("recompose");
|
|
18
17
|
var _immutable = require("immutable");
|
|
19
18
|
var _ComponentConfigContext = require("../common/ComponentConfigContext");
|
|
20
19
|
var _store = require("../../store");
|
|
@@ -287,7 +286,7 @@ var buildPaginationControl = function buildPaginationControl(props) {
|
|
|
287
286
|
extraData: extraData
|
|
288
287
|
});
|
|
289
288
|
};
|
|
290
|
-
var getToggleableColumns = function getToggleableColumns(columns, columnSet, tableKey) {
|
|
289
|
+
var getToggleableColumns = exports.getToggleableColumns = function getToggleableColumns(columns, columnSet, tableKey) {
|
|
291
290
|
return columns.reduce(function (list, column) {
|
|
292
291
|
var label = column.get('columnLabel') && column.get('columnLabel').trim() || column.get('title') && column.get('title').trim();
|
|
293
292
|
// Include all columns that have a columnLabel or title, and are toggleable
|
|
@@ -307,7 +306,6 @@ var getToggleableColumns = function getToggleableColumns(columns, columnSet, tab
|
|
|
307
306
|
return list;
|
|
308
307
|
}, (0, _immutable.List)());
|
|
309
308
|
};
|
|
310
|
-
exports.getToggleableColumns = getToggleableColumns;
|
|
311
309
|
var buildColumnControl = function buildColumnControl(props) {
|
|
312
310
|
var tableKey = props.tableKey,
|
|
313
311
|
columns = props.columns,
|
|
@@ -325,7 +323,7 @@ var buildColumnControl = function buildColumnControl(props) {
|
|
|
325
323
|
extraData: extraData
|
|
326
324
|
});
|
|
327
325
|
};
|
|
328
|
-
var buildTable = function buildTable(props) {
|
|
326
|
+
var buildTable = exports.buildTable = function buildTable(props) {
|
|
329
327
|
var TableLayout = props.components.TableLayout;
|
|
330
328
|
var header = buildTableHeader(props);
|
|
331
329
|
var body = buildTableBody(props);
|
|
@@ -345,8 +343,7 @@ var buildTable = function buildTable(props) {
|
|
|
345
343
|
extraData: props.extraData
|
|
346
344
|
});
|
|
347
345
|
};
|
|
348
|
-
exports.
|
|
349
|
-
var buildTableHeader = function buildTableHeader(props) {
|
|
346
|
+
var buildTableHeader = exports.buildTableHeader = function buildTableHeader(props) {
|
|
350
347
|
var Header = props.components.Header;
|
|
351
348
|
var headerRow = buildTableHeaderRow(props);
|
|
352
349
|
return props.omitHeader ? null : /*#__PURE__*/_react["default"].createElement(Header, {
|
|
@@ -357,8 +354,7 @@ var buildTableHeader = function buildTableHeader(props) {
|
|
|
357
354
|
tableOptions: props.tableOptions
|
|
358
355
|
});
|
|
359
356
|
};
|
|
360
|
-
exports.
|
|
361
|
-
var buildTableHeaderRow = function buildTableHeaderRow(props) {
|
|
357
|
+
var buildTableHeaderRow = exports.buildTableHeaderRow = function buildTableHeaderRow(props) {
|
|
362
358
|
var components = props.components,
|
|
363
359
|
rows = props.rows,
|
|
364
360
|
columns = props.columns,
|
|
@@ -372,8 +368,7 @@ var buildTableHeaderRow = function buildTableHeaderRow(props) {
|
|
|
372
368
|
tableOptions: props.tableOptions
|
|
373
369
|
});
|
|
374
370
|
};
|
|
375
|
-
exports.
|
|
376
|
-
var buildTableHeaderCell = function buildTableHeaderCell(props) {
|
|
371
|
+
var buildTableHeaderCell = exports.buildTableHeaderCell = function buildTableHeaderCell(props) {
|
|
377
372
|
return function (column, index) {
|
|
378
373
|
var tableKey = props.tableKey,
|
|
379
374
|
components = props.components,
|
|
@@ -399,8 +394,7 @@ var buildTableHeaderCell = function buildTableHeaderCell(props) {
|
|
|
399
394
|
}));
|
|
400
395
|
};
|
|
401
396
|
};
|
|
402
|
-
exports.
|
|
403
|
-
var buildTableBody = function buildTableBody(props) {
|
|
397
|
+
var buildTableBody = exports.buildTableBody = function buildTableBody(props) {
|
|
404
398
|
var Body = props.components.Body;
|
|
405
399
|
var tableRows = buildTableBodyRows(props);
|
|
406
400
|
return /*#__PURE__*/_react["default"].createElement(Body, {
|
|
@@ -413,8 +407,7 @@ var buildTableBody = function buildTableBody(props) {
|
|
|
413
407
|
empty: props.rows.isEmpty()
|
|
414
408
|
});
|
|
415
409
|
};
|
|
416
|
-
exports.
|
|
417
|
-
var buildTableBodyRows = function buildTableBodyRows(props) {
|
|
410
|
+
var buildTableBodyRows = exports.buildTableBodyRows = function buildTableBodyRows(props) {
|
|
418
411
|
var components = props.components,
|
|
419
412
|
rows = props.rows,
|
|
420
413
|
columns = props.columns,
|
|
@@ -446,8 +439,7 @@ var buildTableBodyRows = function buildTableBodyRows(props) {
|
|
|
446
439
|
error: props.error
|
|
447
440
|
});
|
|
448
441
|
};
|
|
449
|
-
exports.
|
|
450
|
-
var buildTableBodyCells = function buildTableBodyCells(props, row, rowIndex) {
|
|
442
|
+
var buildTableBodyCells = exports.buildTableBodyCells = function buildTableBodyCells(props, row, rowIndex) {
|
|
451
443
|
var tableKey = props.tableKey,
|
|
452
444
|
components = props.components,
|
|
453
445
|
rows = props.rows,
|
|
@@ -478,8 +470,7 @@ var buildTableBodyCells = function buildTableBodyCells(props, row, rowIndex) {
|
|
|
478
470
|
}));
|
|
479
471
|
});
|
|
480
472
|
};
|
|
481
|
-
exports.
|
|
482
|
-
var buildTableFooter = function buildTableFooter(props) {
|
|
473
|
+
var buildTableFooter = exports.buildTableFooter = function buildTableFooter(props) {
|
|
483
474
|
var components = props.components,
|
|
484
475
|
columnSet = props.columnSet,
|
|
485
476
|
renderOptions = props.renderOptions,
|
|
@@ -496,8 +487,7 @@ var buildTableFooter = function buildTableFooter(props) {
|
|
|
496
487
|
tableOptions: tableOptions
|
|
497
488
|
}) : null;
|
|
498
489
|
};
|
|
499
|
-
exports.
|
|
500
|
-
var buildTableFooterRow = function buildTableFooterRow(props) {
|
|
490
|
+
var buildTableFooterRow = exports.buildTableFooterRow = function buildTableFooterRow(props) {
|
|
501
491
|
var components = props.components,
|
|
502
492
|
renderOptions = props.renderOptions,
|
|
503
493
|
tableOptions = props.tableOptions;
|
|
@@ -509,8 +499,7 @@ var buildTableFooterRow = function buildTableFooterRow(props) {
|
|
|
509
499
|
tableOptions: tableOptions
|
|
510
500
|
});
|
|
511
501
|
};
|
|
512
|
-
exports.
|
|
513
|
-
var buildTableFooterCells = function buildTableFooterCells(props) {
|
|
502
|
+
var buildTableFooterCells = exports.buildTableFooterCells = function buildTableFooterCells(props) {
|
|
514
503
|
var components = props.components,
|
|
515
504
|
columns = props.columns,
|
|
516
505
|
columnSet = props.columnSet,
|
|
@@ -528,7 +517,6 @@ var buildTableFooterCells = function buildTableFooterCells(props) {
|
|
|
528
517
|
}));
|
|
529
518
|
});
|
|
530
519
|
};
|
|
531
|
-
exports.buildTableFooterCells = buildTableFooterCells;
|
|
532
520
|
var onNextPage = function onNextPage(tableKey) {
|
|
533
521
|
return function () {
|
|
534
522
|
return (0, _store.dispatch)('NEXT_PAGE', {
|
|
@@ -574,23 +562,37 @@ var mapStateToProps = function mapStateToProps() {
|
|
|
574
562
|
return state.getIn(['tables', props.tableKey], (0, _immutable.Map)()).toObject();
|
|
575
563
|
};
|
|
576
564
|
};
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
565
|
+
var TableImplComponent = /*#__PURE__*/function (_Component) {
|
|
566
|
+
(0, _inherits2["default"])(TableImplComponent, _Component);
|
|
567
|
+
var _super = (0, _createSuper2["default"])(TableImplComponent);
|
|
568
|
+
function TableImplComponent(props) {
|
|
569
|
+
(0, _classCallCheck2["default"])(this, TableImplComponent);
|
|
570
|
+
return _super.call(this, props);
|
|
571
|
+
}
|
|
572
|
+
(0, _createClass2["default"])(TableImplComponent, [{
|
|
573
|
+
key: "componentDidMount",
|
|
574
|
+
value: function componentDidMount() {
|
|
575
|
+
if (this.props.mounted && !this.props.configured) {
|
|
576
|
+
(0, _Table.configureTable)(this.props);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}, {
|
|
580
|
+
key: "componentDidUpdate",
|
|
581
|
+
value: function componentDidUpdate() {
|
|
582
|
+
if (this.props.mounted && !this.props.configured) {
|
|
583
|
+
(0, _Table.configureTable)(this.props);
|
|
584
|
+
}
|
|
585
585
|
}
|
|
586
|
-
},
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
(
|
|
586
|
+
}, {
|
|
587
|
+
key: "render",
|
|
588
|
+
value: function render() {
|
|
589
|
+
return /*#__PURE__*/_react["default"].createElement(TableComponent, this.props);
|
|
590
590
|
}
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
|
|
591
|
+
}]);
|
|
592
|
+
return TableImplComponent;
|
|
593
|
+
}(_react.Component);
|
|
594
|
+
var TableImpl = (0, _store.connect)(mapStateToProps)(TableImplComponent);
|
|
595
|
+
var generateColumns = exports.generateColumns = function generateColumns(columns) {
|
|
594
596
|
var addColumns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
595
597
|
var alterColumns = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
596
598
|
return (0, _immutable.List)(columns).concat(addColumns).map(function (c) {
|
|
@@ -599,8 +601,7 @@ var generateColumns = function generateColumns(columns) {
|
|
|
599
601
|
}));
|
|
600
602
|
});
|
|
601
603
|
};
|
|
602
|
-
exports.
|
|
603
|
-
var sortColumns = function sortColumns(columns, columnSet) {
|
|
604
|
+
var sortColumns = exports.sortColumns = function sortColumns(columns, columnSet) {
|
|
604
605
|
return columns
|
|
605
606
|
// First sort columns by the columnOrder value if provided
|
|
606
607
|
.sortBy(function (column) {
|
|
@@ -627,16 +628,14 @@ var sortColumns = function sortColumns(columns, columnSet) {
|
|
|
627
628
|
// Lastly flatten the groups back to a list of columns
|
|
628
629
|
.flatten(true);
|
|
629
630
|
};
|
|
630
|
-
exports.
|
|
631
|
-
var extractColumnComponents = function extractColumnComponents(columns) {
|
|
631
|
+
var extractColumnComponents = exports.extractColumnComponents = function extractColumnComponents(columns) {
|
|
632
632
|
return columns.filter(function (c) {
|
|
633
633
|
return c.has('components');
|
|
634
634
|
}).reduce(function (result, current) {
|
|
635
635
|
return result.set(current.get('value'), current.get('components'));
|
|
636
636
|
}, (0, _immutable.Map)());
|
|
637
637
|
};
|
|
638
|
-
exports.
|
|
639
|
-
var generateTable = function generateTable(_ref4) {
|
|
638
|
+
var generateTable = exports.generateTable = function generateTable(_ref4) {
|
|
640
639
|
var _ref4$tableOptions = _ref4.tableOptions,
|
|
641
640
|
tableOptions = _ref4$tableOptions === void 0 ? [] : _ref4$tableOptions,
|
|
642
641
|
_ref4$filterDataSourc = _ref4.filterDataSources,
|
|
@@ -718,14 +717,13 @@ var generateTable = function generateTable(_ref4) {
|
|
|
718
717
|
return /*#__PURE__*/_react["default"].createElement(Table, setProps, props.children);
|
|
719
718
|
};
|
|
720
719
|
};
|
|
721
|
-
exports.
|
|
722
|
-
|
|
723
|
-
(0,
|
|
724
|
-
var _super = (0, _createSuper2["default"])(Table);
|
|
720
|
+
var Table = exports.Table = /*#__PURE__*/function (_Component2) {
|
|
721
|
+
(0, _inherits2["default"])(Table, _Component2);
|
|
722
|
+
var _super2 = (0, _createSuper2["default"])(Table);
|
|
725
723
|
function Table(props) {
|
|
726
724
|
var _this;
|
|
727
725
|
(0, _classCallCheck2["default"])(this, Table);
|
|
728
|
-
_this =
|
|
726
|
+
_this = _super2.call(this, props);
|
|
729
727
|
var components = props.components,
|
|
730
728
|
tableKey = props.tableKey,
|
|
731
729
|
config = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
@@ -777,7 +775,6 @@ var Table = /*#__PURE__*/function (_Component) {
|
|
|
777
775
|
}]);
|
|
778
776
|
return Table;
|
|
779
777
|
}(_react.Component);
|
|
780
|
-
exports.Table = Table;
|
|
781
778
|
var defaultProps = {
|
|
782
779
|
components: {},
|
|
783
780
|
rows: (0, _immutable.List)([]),
|