Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, {
key: 'showComponents',
value: function showComponents() {
for (var _len4 = arguments.length, components = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
components[_key4] = arguments[_key4];
}
this.changeComponentsVisibility.apply(this, [true].concat(components));
}
}]);
return Filters;
}(BasePlugin);
registerPlugin('filters', Filters);
export default Filters;
/**
* Destroy the plugin.
*/
}, {
key: 'destroy',
value: function destroy() {
_get(HiddenRows.prototype.__proto__ || Object.getPrototypeOf(HiddenRows.prototype), 'destroy', this).call(this);
}
}]);
return HiddenRows;
}(BasePlugin);
registerPlugin('hiddenRows', HiddenRows);
export default HiddenRows;
}, {
key: 'destroy',
value: function destroy() {
this.settings = null;
this.columnHeaderLevelCount = null;
this.colspanArray = null;
_get(NestedHeaders.prototype.__proto__ || Object.getPrototypeOf(NestedHeaders.prototype), 'destroy', this).call(this);
}
}]);
return NestedHeaders;
}(BasePlugin);
registerPlugin('nestedHeaders', NestedHeaders);
export default NestedHeaders;
}
if (!settings.copyPasteEnabled) {
this.addHook('modifyCopyableRange', (ranges) => this.onModifyCopyableRange(ranges));
}
}
}
/**
* Destroy the plugin.
*/
destroy() {
super.destroy();
}
}
registerPlugin('hiddenRows', HiddenRows);
export default HiddenRows;
this.changeComponentsVisibility(false, ...components);
}
/**
* Show components of filters `dropdownMenu`.
*
* @private
* @param {...BaseComponent} components List of components.
*/
showComponents(...components) {
this.changeComponentsVisibility(true, ...components);
}
}
registerPlugin('filters', Filters);
export default Filters;
onAfterLoadData(firstRun) {
if (!firstRun) {
this.rowsMapper.createMap(this.hot.countSourceRows());
}
}
/**
* Destroy plugin.
*/
destroy() {
this.rowsMapper.destroy();
super.destroy();
}
}
registerPlugin('trimRows', TrimRows);
export default TrimRows;
/**
* Destroy plugin.
*/
}, {
key: 'destroy',
value: function destroy() {
this.rowsMapper.destroy();
_get(TrimRows.prototype.__proto__ || Object.getPrototypeOf(TrimRows.prototype), 'destroy', this).call(this);
}
}]);
return TrimRows;
}(BasePlugin);
registerPlugin('trimRows', TrimRows);
export default TrimRows;
}
/**
* Destroy the plugin.
*/
destroy() {
this.settings = null;
this.columnHeaderLevelCount = null;
this.colspanArray = null;
super.destroy();
}
}
registerPlugin('nestedHeaders', NestedHeaders);
export default NestedHeaders;