Comparing version 8.4.1 to 8.4.2
@@ -41,9 +41,9 @@ "use strict"; | ||
var React = __importStar(require("react")); | ||
var actionCreators_1 = require("../../actionCreators"); | ||
var enums_1 = require("../../enums"); | ||
var defaultOptions_1 = __importDefault(require("../../defaultOptions")); | ||
var enums_1 = require("../../enums"); | ||
var ComponentUtils_1 = require("../../Utils/ComponentUtils"); | ||
var actionCreators_1 = require("../../actionCreators"); | ||
var CellText = function (props) { | ||
var childComponents = props.childComponents, column = props.column, format = props.format, dispatch = props.dispatch, editingMode = props.editingMode, rowKeyValue = props.rowKeyValue, value = props.value; | ||
var formatedValue = (format && format({ column: column, value: value })) | ||
var formattedValue = (format && format({ column: column, value: value })) | ||
|| (value === null || value === void 0 ? void 0 : value.toString()); | ||
@@ -58,4 +58,4 @@ var _a = (0, ComponentUtils_1.getElementCustomization)({ | ||
}, props, childComponents.cellText), elementAttributes = _a.elementAttributes, content = _a.content; | ||
return (React.createElement("div", __assign({}, elementAttributes), content || formatedValue || React.createElement(React.Fragment, null, "\u00A0"))); | ||
return (React.createElement("div", __assign({}, elementAttributes), content || formattedValue || React.createElement(React.Fragment, null, "\u00A0"))); | ||
}; | ||
exports.default = CellText; |
@@ -41,6 +41,6 @@ "use strict"; | ||
var React = __importStar(require("react")); | ||
var PopupContentItem_1 = __importDefault(require("../PopupContentItem/PopupContentItem")); | ||
var defaultOptions_1 = __importDefault(require("../../defaultOptions")); | ||
var ComponentUtils_1 = require("../../Utils/ComponentUtils"); | ||
var DataUtils_1 = require("../../Utils/DataUtils"); | ||
var PopupContentItem_1 = __importDefault(require("../PopupContentItem/PopupContentItem")); | ||
var PopupContent = function (props) { | ||
@@ -50,5 +50,5 @@ var column = props.column, childComponents = props.childComponents, data = props.data, dispatch = props.dispatch, format = props.format; | ||
var value = (0, DataUtils_1.getValueByColumn)(item, column); | ||
var formatedValue = (format && format({ column: column, value: value })) | ||
var formattedValue = (format && format({ column: column, value: value })) | ||
|| (value === null || value === void 0 ? void 0 : value.toString()); | ||
return formatedValue; | ||
return formattedValue; | ||
}); | ||
@@ -55,0 +55,0 @@ headerFilterValues = Array.from(new Set(headerFilterValues)); |
@@ -69,4 +69,4 @@ "use strict"; | ||
}; | ||
var controlledPropsKeys = (0, utils_1.getControlledPropsKeys)(props); | ||
React.useEffect(function () { | ||
var controlledPropsKeys = (0, utils_1.getControlledPropsKeys)(props); | ||
var propsToOverride = (0, utils_1.getPropsToOverride)(controlledPropsKeys, props, tableProps); | ||
@@ -79,3 +79,3 @@ if (Object.keys(propsToOverride).length) { | ||
} | ||
}, controlledPropsKeys.map(function (k) { return props[k]; })); | ||
}, [props]); | ||
var contextTable = props.table || (0, UseTable_1.getTable)(); | ||
@@ -82,0 +82,0 @@ contextTable.props = tableProps; |
{ | ||
"name": "ka-table", | ||
"version": "8.4.1", | ||
"version": "8.4.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "github:komarovalexander/ka-table", |
386902