agregar console log para debugear actualizar opciones

This commit is contained in:
dehernandezm 2025-02-07 07:28:44 -06:00
parent d8c8074b0c
commit d97d3c2b5c
3 changed files with 17 additions and 2 deletions

View File

@ -141,6 +141,18 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
},
'Mostrar Todas las Opciones'
),
' ',
_react2.default.createElement(
'a',
{
role: 'button',
className: 'pvtButton',
onClick: function onClick() {
_this2.props.updateFilterOptions();
}
},
'Mostrar Opciones en Tabla'
),
_react2.default.createElement('br', null),
_react2.default.createElement('input', {
type: 'text',
@ -373,6 +385,7 @@ var PivotTableUI = function (_React$PureComponent2) {
value: function updateFilterOptions() {
var showAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
console.log('updateFilterOptions showAll', showAll);
if (showAll) {
var _newState = JSON.parse(JSON.stringify(this.state));
_newState.attrValuesReduced = JSON.parse(JSON.stringify(this.state.attrValues));
@ -398,6 +411,7 @@ var PivotTableUI = function (_React$PureComponent2) {
}
return true;
});
console.log('updateFilterOptions filteredData', filteredData);
var newState = JSON.parse(JSON.stringify(this.state));
newState.attrValuesReduced = {};
var recordsProcessed = 0;
@ -441,6 +455,7 @@ var PivotTableUI = function (_React$PureComponent2) {
}
recordsProcessed++;
});
console.log('updateFilterOptions newState', newState);
this.setState(newState);
}
}, {

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "v-react-pivottable",
"version": "0.11.43",
"version": "0.11.44",
"description": "A React-based pivot table",
"main": "PivotTableUI.js",
"files": [