5ae1100ff5130420834f53675aff0684b0dec6b6754f21750818487c6779b04355ca0890d443c492fea933b782e95bd465e5d0e4dad3d8a8023855b844a875 632 B

123456789101112131415161718192021222324252627
  1. 'use strict';
  2. exports.__esModule = true;
  3. exports.columnFactory = columnFactory;
  4. var _object = require('./object');
  5. /* eslint-disable import/prefer-default-export */
  6. /**
  7. * Factory for columns constructors.
  8. *
  9. * @param {Object} GridSettings
  10. * @param {Array} conflictList
  11. * @return {Object} ColumnSettings
  12. */
  13. function columnFactory(GridSettings, conflictList) {
  14. function ColumnSettings() {};
  15. (0, _object.inherit)(ColumnSettings, GridSettings);
  16. // Clear conflict settings
  17. for (var i = 0, len = conflictList.length; i < len; i++) {
  18. ColumnSettings.prototype[conflictList[i]] = void 0;
  19. }
  20. return ColumnSettings;
  21. }