Lines Matching refs:instance

1823 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
2460 function getPlugin(instance, pluginName) {
2466 if (!registeredPlugins.has(instance) || !registeredPlugins.get(instance)[_pluginName]) {
2470 return registeredPlugins.get(instance)[_pluginName];
2536 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
4971 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
5393 function isItemHidden(item, instance) {
5394 return !item.hidden || !(typeof item.hidden == 'function' && item.hidden.call(instance));
5946 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
6104 this.instance = this.wot;
6816 function BaseEditor(instance) {
6817 this.instance = instance;
6887 selection = this.instance.getSelected();
6903 …this.instance.populateFromArray(selection[0], selection[1], value, selection[2], selection[3], 'ed…
6910 this.instance.view.scrollViewport(new _src.CellCoords(this.row, this.col));
6911 this.instance.view.render();
6922 this.instance.view.render();
6924 this.instance.runHooks('afterBeginEditing', this.row, this.col);
6940 _this.instance.view.render();
6949 this.instance._registerTimeout(setTimeout(function () {
6959 this.instance.view.render();
6966 if (this.instance.getSettings().trimWhitespace) {
6976 if (this.instance.getCellValidator(this.cellProperties)) {
6977 this.instance.addHookOnce('postAfterValidate', function (result) {
6999 this.instance.selectCell(this.row, this.col);
7038 var totalRows = this.instance.countRows();
7041 if (this.row < this.instance.getSettings().fixedRowsTop) {
7042 if (this.col < this.instance.getSettings().fixedColumnsLeft) {
7047 …} else if (this.instance.getSettings().fixedRowsBottom && this.row >= totalRows - this.instance.ge…
7048 if (this.col < this.instance.getSettings().fixedColumnsLeft) {
7053 } else if (this.col < this.instance.getSettings().fixedColumnsLeft) {
11605 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
11772 this.instance.addHook('afterDestroy', function () {
11786 var instance = this,
11787 that = instance.getActiveEditor(),
11829 var selected = that.instance.getSelected();
11877 this.instance.addHook('beforeKeyDown', onBeforeKeyDown);
11886 …this.instance.listen(); // don't refocus the table if user focused some cell outside of HT on purp…
11888 this.instance.removeHook('beforeKeyDown', onBeforeKeyDown);
11917 this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);
11920 this.instance._registerTimeout(setTimeout(function () {
11931 editedCell = this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({
11938 editedCell = this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({
11945 editedCell = this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({
11952 editedCell = this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({
11959 editedCell = this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({
11966 editedCell = this.instance.getCell(this.row, this.col);
11975 var sourceData = this.instance.getSourceDataAtCell(this.row, this.prop);
11995 containerOffset = (0, _element.offset)(this.instance.rootElement),
11997 totalRowsCount = this.instance.countRows(),
12004 settings = this.instance.getSettings(),
12005 rowHeadersCount = this.instance.hasRowHeaders(),
12006 colHeadersCount = this.instance.hasColHeaders(),
12014 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clo…
12017 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.cl…
12020 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerO…
12023 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCorn…
12026 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.…
12032 …if (colHeadersCount && this.instance.getSelected()[0] === 0 || settings.fixedRowsBottom && this.in…
12036 if (this.instance.getSelected()[1] === 0) {
12049 var firstRowOffset = this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition;
12050 var firstColumnOffset = this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition;
12051 var horizontalScrollPosition = this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition();
12052 var verticalScrollPosition = this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition();
12061 …var maxWidth = this.instance.view.maximumVisibleElementWidth(cellLeftOffset) - 9 - actualVerticalS…
12063 …var maxHeight = Math.max(this.instance.view.maximumVisibleElementHeight(cellTopOffset) - actualHor…
12093 this.instance.addHook('afterScrollHorizontally', function () {
12097 this.instance.addHook('afterScrollVertically', function () {
12101 this.instance.addHook('afterColumnResize', function () {
12106 this.instance.addHook('afterRowResize', function () {
12111 this.instance.addHook('afterDestroy', function () {
13740 var instance = new C();
13742 var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
13744 var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
14147 instance = this,
14149 eventManager = new _eventManager2.default(instance);
14174 var recordTranslator = (0, _recordTranslator.getTranslator)(instance);
14176 dataSource = new _dataSource2.default(instance);
14234 var numberOfSourceRows = instance.countSourceRows();
14236 if (instance.getSettings().maxRows === numberOfSourceRows) {
14258 for (var row = 0, len = instance.countSourceRows(); row < len; row++) {
14265 if (Array.isArray(instance.getSettings().colHeaders)) {
14268 …Array.prototype.splice.apply(instance.getSettings().colHeaders, spliceArray); // inserts empty (un…
14284 var totalRows = instance.countRows();
14285 var fixedRowsTop = instance.getSettings().fixedRowsTop;
14287 instance.getSettings().fixedRowsTop -= Math.min(amount, fixedRowsTop - index);
14290 var fixedRowsBottom = instance.getSettings().fixedRowsBottom;
14292 instance.getSettings().fixedRowsBottom -= Math.min(amount, fixedRowsBottom);
14304 for (var _row = 0, _len = instance.countSourceRows(); _row < _len; _row++) {
14310 var fixedColumnsLeft = instance.getSettings().fixedColumnsLeft;
14313 instance.getSettings().fixedColumnsLeft -= Math.min(amount, fixedColumnsLeft - index);
14316 if (Array.isArray(instance.getSettings().colHeaders)) {
14320 instance.getSettings().colHeaders.splice(visualColumnIndex, amount);
14343 var rows = instance.countRows();
14347 datamap.createRow(instance.countRows(), 1, 'auto');
14352 var emptyRows = instance.countEmptyRows(true);
14356 …for (; emptyRows < priv.settings.minSpareRows && instance.countSourceRows() < priv.settings.maxRow…
14357 datamap.createRow(instance.countRows(), 1, 'auto');
14366 emptyCols = instance.countEmptyCols(true);
14370 …if (priv.settings.minCols && !priv.settings.columns && instance.countCols() < priv.settings.minCol…
14371 for (; instance.countCols() < priv.settings.minCols; emptyCols++) {
14372 datamap.createCol(instance.countCols(), 1, 'auto');
14376 …if (priv.settings.minSpareCols && !priv.settings.columns && instance.dataType === 'array' && empty…
14377 …for (; emptyCols < priv.settings.minSpareCols && instance.countCols() < priv.settings.maxCols; emp…
14378 datamap.createCol(instance.countCols(), 1, 'auto');
14382 var rowCount = instance.countRows();
14383 var colCount = instance.countCols();
14430 instance.selectCell(fromRow, fromCol, toRow, toCol);
14433 if (instance.view) {
14434 instance.view.wt.wtOverlays.adjustElementsSize();
14492 (_instance = instance).spliceCol.apply(_instance, _toConsumableArray(input[c]));
14497 … (_instance2 = instance).spliceCol.apply(_instance2, _toConsumableArray(input[c % clen]));
14513 (_instance3 = instance).spliceRow.apply(_instance3, _toConsumableArray(input[r]));
14518 … (_instance4 = instance).spliceRow.apply(_instance4, _toConsumableArray(input[r % rlen]));
14558 …ngth > rowInputLength || !priv.settings.allowInsertRow && current.row > instance.countRows() - 1 |…
14571 cellMeta = instance.getCellMeta(current.row, current.col);
14583 …h > colInputLength || !priv.settings.allowInsertColumn && current.col > instance.countCols() - 1 |…
14586 cellMeta = instance.getCellMeta(current.row, current.col);
14601 var orgValue = instance.getDataAtCell(current.row, current.col);
14608 …var result = instance.runHooks('beforeAutofillInsidePopulate', index, direction, input, deltas, {}…
14639 instance.setDataAtCell(setData, null, null, source || 'populateFromArray');
14664 instance.selection.selectedHeader.rows = rows;
14665 instance.selection.selectedHeader.cols = cols;
14666 instance.selection.selectedHeader.corner = corner;
14674 instance.selection.inProgress = true;
14682 var sel = instance.getSelected();
14683 instance.runHooks('afterSelectionEnd', sel[0], sel[1], sel[2], sel[3]);
14684instance.runHooks('afterSelectionEndByProp', sel[0], instance.colToProp(sel[1]), sel[2], instance.…
14685 instance.selection.inProgress = false;
14693 return instance.selection.inProgress;
14704 instance.runHooks('beforeSetRangeStart', coords);
14717 instance.runHooks('beforeSetRangeStartOnly', coords);
14737 var firstVisibleRow = instance.view.wt.wtTable.getFirstVisibleRow();
14738 var firstVisibleColumn = instance.view.wt.wtTable.getFirstVisibleColumn();
14745 instance.runHooks('beforeSetRangeEnd', coords);
14746 instance.selection.begin();
14757 instance.view.wt.selections.current.clear();
14759 …disableVisualSelection = instance.getCellMeta(priv.selRange.highlight.row, priv.selRange.highlight…
14766 instance.view.wt.selections.current.add(priv.selRange.highlight);
14769 instance.view.wt.selections.area.clear();
14772 instance.view.wt.selections.area.add(priv.selRange.from);
14773 instance.view.wt.selections.area.add(priv.selRange.to);
14777 instance.view.wt.selections.highlight.clear();
14778 instance.view.wt.selections.highlight.add(priv.selRange.from);
14779 instance.view.wt.selections.highlight.add(priv.selRange.to);
14785instance.runHooks('afterSelection', priv.selRange.from.row, priv.selRange.from.col, priv.selRange.…
14786instance.runHooks('afterSelectionByProp', priv.selRange.from.row, datamap.colToProp(priv.selRange.…
14788 …= instance.countRows() - 1 && instance.countRows() > 1 || priv.selRange.from.col === 0 && priv.sel…
14802 instance.view.scrollViewport(priv.selRange.from);
14804 instance.view.scrollViewport(coords);
14809 … (0, _element.addClass)(instance.rootElement, ['ht__selection--rows', 'ht__selection--columns']);
14811 (0, _element.removeClass)(instance.rootElement, 'ht__selection--columns');
14812 (0, _element.addClass)(instance.rootElement, 'ht__selection--rows');
14814 (0, _element.removeClass)(instance.rootElement, 'ht__selection--rows');
14815 (0, _element.addClass)(instance.rootElement, 'ht__selection--columns');
14817 …(0, _element.removeClass)(instance.rootElement, ['ht__selection--rows', 'ht__selection--columns']);
14834 instance.view.render();
14849 modifier = instance.runHooks('afterIsMultipleSelection', isMultiple);
14869 instance.runHooks('modifyTransformStart', delta);
14870 totalRows = instance.countRows();
14871 totalCols = instance.countCols();
14872 fixedRowsBottom = instance.getSettings().fixedRowsBottom;
14876 instance.alter('insert_row', totalRows);
14877 totalRows = instance.countRows();
14889 instance.alter('insert_col', totalCols);
14890 totalCols = instance.countCols();
14917 instance.runHooks('afterModifyTransformStart', coords, rowTransformDir, colTransformDir);
14933 instance.runHooks('modifyTransformEnd', delta);
14935 totalRows = instance.countRows();
14936 totalCols = instance.countCols();
14954 instance.runHooks('afterModifyTransformEnd', coords, rowTransformDir, colTransformDir);
14991 instance.selection.inProgress = false; // needed by HT inception
14993 instance.view.wt.selections.current.clear();
14994 instance.view.wt.selections.area.clear();
14996 instance.view.wt.selections.highlight.clear();
15000 …(0, _element.removeClass)(instance.rootElement, ['ht__selection--rows', 'ht__selection--columns']);
15001 instance.runHooks('afterDeselect');
15014 …selection.setRangeEnd(new _src.CellCoords(instance.countRows() - 1, instance.countCols() - 1), fal…
15033 if (!instance.getCellMeta(r, c).readOnly) {
15038 instance.setDataAtCell(changes);
15044 instance.runHooks('beforeInit');
15047 (0, _element.addClass)(instance.rootElement, 'mobile');
15053 editorManager = new _editorManager2.default(instance, priv, selection, datamap);
15057 instance.runHooks('init');
15061 instance.runHooks('afterChange', priv.firstRun[0], priv.firstRun[1]);
15064 instance.runHooks('afterInit');
15103 var cellProperties = instance.getCellMeta(row, col);
15134 if (instance.getCellValidator(cellProperties)) {
15136 instance.validateCell(changes[i][3], cellProperties, function (i, cellProperties) {
15144 var cell = instance.getCell(cellProperties.row, cellProperties.col);
15145 (0, _element.removeClass)(cell, instance.getSettings().invalidCellClassName);
15160 beforeChangeResult = instance.runHooks('beforeChange', changes, source);
15202 while (changes[i][0] > instance.countRows() - 1) {
15217 …if (instance.dataType === 'array' && (!priv.settings.columns || priv.settings.columns.length === 0…
15218 while (datamap.propToCol(changes[i][1]) > instance.countCols() - 1) {
15226 instance.forceFullRender = true; // used when data was changed
15228 instance.runHooks('beforeChangeRender', changes, source);
15230 instance.view.wt.wtOverlays.adjustElementsSize();
15231 instance.runHooks('afterChange', changes, source || 'edit');
15233 var activeEditor = instance.getActiveEditor();
15241 var validator = instance.getCellValidator(cellProperties);
15246 td = instance.getCell(row, col, true);
15249 instance.view.wt.wtSettings.settings.cellRenderer(row, col, td);
15264 …value = instance.runHooks('beforeValidate', value, cellProperties.visualRow, cellProperties.prop, …
15267 instance._registerTimeout(setTimeout(function () {
15269 …valid = instance.runHooks('afterValidate', valid, value, cellProperties.visualRow, cellProperties.…
15273instance.runHooks('postAfterValidate', valid, value, cellProperties.visualRow, cellProperties.prop…
15278 instance._registerTimeout(setTimeout(function () {
15329 instance.runHooks('afterSetDataAtCell', changes, source);
15363 instance.runHooks('afterSetDataAtRowProp', changes, source);
15387 activeGuid = instance.guid;
15412 return activeGuid === instance.guid;
15542 if (instance.view) {
15543 instance.renderCall = true;
15544 instance.forceFullRender = true; // used when data was changed
15560 instance.dataType = 'array';
15562 instance.dataType = 'function';
15564 instance.dataType = 'object';
15570 datamap = new _dataMap2.default(instance, priv, GridSettings);
15586 …if ((instance.dataType === 'object' || instance.dataType === 'function') && priv.settings.dataSche…
15589 } else if (instance.dataType === 'array') {
15610 instance.dataType = 'array';
15615 dataSource.dataType = instance.dataType;
15622 instance.runHooks('afterLoadData', priv.firstRun);
15627 instance.runHooks('afterChange', null, 'loadData');
15628 instance.render();
15746 instance.addHook(i, settings[i]);
15756 instance.loadData(null); // data source created just now
15758 instance.loadData(settings.data); // data source given as option
15763 clen = instance.countCols();
15769 clen = instance.countSourceCols();
15815 instance.setCellMetaObject(cell.row, cell.col, cell);
15820 instance.runHooks('afterCellMetaReset');
15824 (0, _element.removeClass)(instance.rootElement, GridSettings.prototype.className);
15827 (0, _element.addClass)(instance.rootElement, settings.className);
15831 var currentHeight = instance.rootElement.style.height;
15833 currentHeight = parseInt(instance.rootElement.style.height, 10);
15842 var initialStyle = instance.rootElement.getAttribute('style');
15845instance.rootElement.setAttribute('data-initialstyle', instance.rootElement.getAttribute('style'));
15850 var _initialStyle = instance.rootElement.getAttribute('data-initialstyle');
15853 instance.rootElement.setAttribute('style', _initialStyle);
15855 instance.rootElement.style.height = '';
15856 instance.rootElement.style.overflow = '';
15859 instance.rootElement.style.height = height + 'px';
15860 instance.rootElement.style.overflow = 'hidden';
15870 instance.rootElement.style.width = width + 'px';
15876 if (instance.view) {
15877 instance.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked();
15880 instance.runHooks('afterUpdateSettings', settings);
15884 if (instance.view && !priv.firstRun) {
15885 instance.forceFullRender = true; // used when data was changed
15889 …if (!init && instance.view && (currentHeight === '' || height === '' || height === void 0) && curr…
15890 instance.view.wt.wtOverlays.updateMainScrollableElements();
15903 var sel = instance.getSelected();
15906 return GridSettings.prototype.getValue.call(instance);
15908 return instance.getData()[sel[0]][GridSettings.prototype.getValue];
15911 return instance.getDataAtCell(sel[0], sel[1]);
16017 return instance.view.getCellAtCoords(new _src.CellCoords(row, col), topmost);
16362 var hookResult = instance.runHooks('beforeRemoveCellMeta', row, col, key, cachedValue);
16367 instance.runHooks('afterRemoveCellMeta', row, col, key, cachedValue);
16441 instance.runHooks('afterSetCellMeta', row, col, key, val);
16492 cellProperties.instance = instance;
16494 instance.runHooks('beforeGetCellMeta', row, col, cellProperties);
16506 instance.runHooks('afterGetCellMeta', row, col, cellProperties);
16529 return !(instance.dataType === 'object' || instance.getSettings().columns);
16596 var i = instance.countRows() - 1;
16599 var j = instance.countCols() - 1;
16604instance.validateCell(instance.getDataAtCell(i, j), instance.getCellMeta(i, j), function (result) {
16633 row = instance.runHooks('modifyRowHeader', row);
16637 (0, _number.rangeEach)(instance.countRows() - 1, function (i) {
16638 rowHeader.push(instance.getRowHeader(i));
16676 for (var i = 0, ilen = instance.countCols(); i < ilen; i++) {
16677 if (instance.getColHeader(i)) {
16698 col = instance.runHooks('modifyColHeader', col);
16702 var ilen = columnsAsFunc ? instance.countSourceCols() : instance.countCols();
16705 out.push(instance.getColHeader(i));
16712 var columnsLen = instance.countSourceCols();
16716 …if ((0, _function.isFunction)(instance.getSettings().columns) && instance.getSettings().columns(in…
16724 col = instance.runHooks('modifyCol', col);
16754 var cellProperties = instance.getCellMeta(0, col);
16792 var width = instance._getColWidthFromSettings(col);
16794 width = instance.runHooks('modifyColWidth', width, col);
16853 var height = instance._getRowHeightFromSettings(row);
16855 height = instance.runHooks('modifyRowHeight', height, row);
16869 var sourceLength = instance.runHooks('modifySourceLength');
16870 return sourceLength || (instance.getSourceData() ? instance.getSourceData().length : 0);
16883 …var obj = instance.getSourceData() && instance.getSourceData()[0] ? instance.getSourceData()[0] : …
16917 if (instance.dataType === 'array') {
16929 if (instance.dataType === 'array') {
16939 } else if (instance.dataType === 'object' || instance.dataType === 'function') {
16945 } else if (instance.dataType === 'object' || instance.dataType === 'function') {
16960 return instance.view.wt.wtTable.getFirstRenderedRow();
16971 return instance.view.wt.wtTable.getFirstRenderedColumn();
16982 return instance.view.wt.drawn ? instance.view.wt.wtTable.getRenderedRowsCount() : -1;
16993 return instance.view.wt.drawn ? instance.view.wt.wtTable.getVisibleRowsCount() : -1;
17004 return instance.view.wt.drawn ? instance.view.wt.wtTable.getRenderedColumnsCount() : -1;
17015 return instance.view.wt.drawn ? instance.view.wt.wtTable.getVisibleColumnsCount() : -1;
17029 var i = instance.countRows() - 1,
17034 row = instance.runHooks('modifyRow', i);
17036 if (instance.isEmptyRow(row)) {
17057 if (instance.countRows() < 1) {
17060 var i = instance.countCols() - 1,
17064 if (instance.isEmptyCol(i)) {
17084 return priv.settings.isEmptyRow.call(instance, row);
17096 return priv.settings.isEmptyCol.call(instance, col);
17119 if (typeof row !== 'number' || row < 0 || row >= instance.countRows()) {
17122 if (typeof col !== 'number' || col < 0 || col >= instance.countCols()) {
17126 if (typeof endRow !== 'number' || endRow < 0 || endRow >= instance.countRows()) {
17129 if (typeof endCol !== 'number' || endCol < 0 || endCol >= instance.countCols()) {
17137 instance.listen();
17145 instance.selection.finish();
17172 return (_instance5 = instance).selectCell.apply(_instance5, arguments);
17201 if (row !== void 0 && (row < 0 || row >= instance.countRows())) {
17204 if (column !== void 0 && (column < 0 || column >= instance.countCols())) {
17211 instance.view.wt.wtOverlays.topOverlay.scrollTo(row, snapToBottom);
17212 instance.view.wt.wtOverlays.leftOverlay.scrollTo(column, snapToRight);
17217 instance.view.wt.wtOverlays.topOverlay.scrollTo(row, snapToBottom);
17222 instance.view.wt.wtOverlays.leftOverlay.scrollTo(column, snapToRight);
17239 instance._clearTimeouts();
17240 if (instance.view) {
17242 instance.view.destroy();
17249 var nextSibling = instance.rootElement.nextSibling;
17251 if ((0, _rootInstance.isRootInstance)(instance) && nextSibling) {
17252 instance.rootElement.parentNode.removeChild(nextSibling);
17254 (0, _element.empty)(instance.rootElement);
17257 instance.runHooks('afterDestroy');
17258 _pluginHooks2.default.getSingleton().destroy(instance);
17260 for (var i in instance) {
17261 if ((0, _object.hasOwnProperty)(instance, i)) {
17263 if ((0, _function.isFunction)(instance[i])) {
17264 instance[i] = postMortem;
17268 instance[i] = null;
17283 instance = null;
17328 return instance;
17346 _pluginHooks2.default.getSingleton().add(key, callback, instance);
17364 return _pluginHooks2.default.getSingleton().has(key, instance);
17383 _pluginHooks2.default.getSingleton().once(key, callback, instance);
17401 _pluginHooks2.default.getSingleton().remove(key, callback, instance);
17425 return _pluginHooks2.default.getSingleton().run(instance, key, p1, p2, p3, p4, p5, p6);
17458 _pluginHooks2.default.getSingleton().run(instance, 'construct');
17718 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
18302 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
23771 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
23788 this.instance = wotInstance;
24292 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
24617 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
24829 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
25147 function Event(instance) {
25149 var eventManager = new _eventManager2.default(instance);
25151 this.instance = instance;
25169 that.instance.getSetting('onCellCornerMouseDown', event, realTarget);
25171 if (that.instance.hasSetting('onCellMouseDown')) {
25172 that.instance.getSetting('onCellMouseDown', event, cell.coords, cell.TD, that.instance);
25189 that.instance.touchMoving = true;
25201 if (that.instance.touchMoving === true) {
25202 that.instance.touchMoving = void 0;
25214 if (that.instance.hasSetting('onCellMouseOver')) {
25215 table = that.instance.wtTable.TABLE;
25217 mainWOT = that.instance.cloneSource || that.instance;
25222 …that.instance.getSetting('onCellMouseOver', event, that.instance.wtTable.getCoords(td), td, that.i…
25232 if (that.instance.hasSetting('onCellMouseOut')) {
25233 table = that.instance.wtTable.TABLE;
25238 …that.instance.getSetting('onCellMouseOut', event, that.instance.wtTable.getCoords(lastTD), lastTD,…
25250 … that.instance.getSetting('onCellCornerDblClick', event, cell.coords, cell.TD, that.instance);
25252 that.instance.getSetting('onCellDblClick', event, cell.coords, cell.TD, that.instance);
25258 that.instance.getSetting('onCellMouseUp', event, cell.coords, cell.TD, that.instance);
25265 } else if (cell.TD && that.instance.hasSetting('onCellMouseUp')) {
25266 that.instance.getSetting('onCellMouseUp', event, cell.coords, cell.TD, that.instance);
25281 eventManager.addEventListener(this.instance.wtTable.holder, 'mousedown', onMouseDown);
25282 eventManager.addEventListener(this.instance.wtTable.TABLE, 'mouseover', onMouseOver);
25283 eventManager.addEventListener(this.instance.wtTable.TABLE, 'mouseout', onMouseOut);
25284 eventManager.addEventListener(this.instance.wtTable.holder, 'mouseup', onMouseUp);
25287 …if (this.instance.wtTable.holder.parentNode.parentNode && (0, _browser.isMobileBrowser)() && !that…
25288 … var classSelector = '.' + this.instance.wtTable.holder.parentNode.className.split(' ').join('.');
25290 eventManager.addEventListener(this.instance.wtTable.holder, 'touchstart', function (event) {
25291 that.instance.touchApplied = true;
25296 eventManager.addEventListener(this.instance.wtTable.holder, 'touchend', function (event) {
25297 that.instance.touchApplied = false;
25303 if (!that.instance.momentumScrolling) {
25304 that.instance.momentumScrolling = {};
25306 eventManager.addEventListener(this.instance.wtTable.holder, 'scroll', function (event) {
25307 clearTimeout(that.instance.momentumScrolling._timeout);
25309 if (!that.instance.momentumScrolling.ongoing) {
25310 that.instance.getSetting('onBeforeTouchScroll');
25312 that.instance.momentumScrolling.ongoing = true;
25314 that.instance.momentumScrolling._timeout = setTimeout(function () {
25315 if (!that.instance.touchApplied) {
25316 that.instance.momentumScrolling.ongoing = false;
25318 that.instance.getSetting('onAfterMomentumScroll');
25325 if (that.instance.getSetting('stretchH') !== 'none') {
25326 that.instance.draw();
25340 var TABLE = this.instance.wtTable.TABLE;
25344 cell.coords = this.instance.wtTable.getCoords(TD);
25347 …cell.coords = this.instance.selections.current.cellRange.highlight; // selections.current is curre…
25348 cell.TD = this.instance.wtTable.getCell(cell.coords);
25350 if (this.instance.selections.area.cellRange) {
25351 …cell.coords = this.instance.selections.area.cellRange.to; // selections.area is area selected cells
25352 cell.TD = this.instance.wtTable.getCell(cell.coords);
25372 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
25497 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
25640 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
25655 this.instance = this.wot;
26480 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
26495 this.instance = wotInstance;
26771 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
26789 this.instance = wotInstance;
27012 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
27030 this.instance = this.wot;
27218 var totalRows = this.instance.getSetting('totalRows');
27261 …fault.isOverlayTypeOf(this.instance.cloneOverlay, _base2.default.CLONE_BOTTOM) || _base2.default.i…
27653 …var width = columnWidth == null ? this.instance.wtSettings.settings.defaultColumnWidth : columnWid…
27732 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
27748 this.wot = wtTable.instance;
27751 this.instance = wtTable.instance;
27859 … rowHeaderWidthSetting = this.instance.getSetting('onModifyRowHeaderWidth', rowHeaderWidthSetting);
27983 var rowCount = this.instance.wtTable.TBODY.childNodes.length;
27984 var expectedTableHeight = rowCount * this.instance.wtSettings.settings.defaultRowHeight;
27985 var actualTableHeight = (0, _element.innerHeight)(this.instance.wtTable.TBODY) - 1;
27991 var totalRows = this.instance.getSetting('totalRows');
27993 … if (expectedTableHeight === actualTableHeight && !this.instance.getSetting('fixedRowsBottom')) {
28000 sourceRowIndex = this.instance.wtTable.rowFilter.renderedToSource(rowCount);
28001 previousRowHeight = this.instance.wtTable.getRowHeight(sourceRowIndex);
28002 currentTr = this.instance.wtTable.getTrForRow(sourceRowIndex);
28011 …if (!previousRowHeight && this.instance.wtSettings.settings.defaultRowHeight < rowInnerHeight || p…
28012 this.instance.wtViewport.oversizedRows[sourceRowIndex] = ++rowInnerHeight;
28160 … rowHeaderWidthSetting = this.instance.getSetting('onModifyRowHeaderWidth', rowHeaderWidthSetting);
28483 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
28499 this.instance = this.wot;
28524 var trimmingContainer = this.instance.wtOverlays.topOverlay.trimmingContainer;
28543 var trimmingContainer = this.instance.wtOverlays.leftOverlay.trimmingContainer;
28550 return (0, _element.outerWidth)(this.instance.wtTable.wtRootElement);
28568 …overflow = (0, _element.getStyle)(this.instance.wtOverlays.leftOverlay.trimmingContainer, 'overflo…
28579 return Math.max(width, (0, _element.outerWidth)(this.instance.wtTable.TABLE));
28639 var mainContainer = this.instance.wtTable.holder;
28728 var rowHeadersHeightSetting = this.instance.getSetting('rowHeaderWidth');
28729 var rowHeaders = this.instance.getSetting('rowHeaders');
28746 var TH = this.instance.wtTable.TABLE.querySelector('TH');
28764 …this.rowHeaderWidth = this.instance.getSetting('onModifyRowHeaderWidth', this.rowHeaderWidth) || t…
29089 editor.instance._registerTimeout(setTimeout(function () {
29098 this.instance.addHook('beforeKeyDown', onBeforeKeyDown);
29159 _this.instance._registerTimeout(setTimeout(function () {
29232 this.instance.listen();
29241 var trimmingContainer = (0, _element.getTrimmingContainer)(this.instance.view.wt.wtTable.TABLE);
29243 var headersHeight = (0, _element.outerHeight)(this.instance.view.wt.wtTable.THEAD);
29331 this.instance.removeHook('beforeKeyDown', onBeforeKeyDown);
29462 this.instance.view.render();
29531 parent.instance.destroyEditor();
29588 editor.instance.listen();
29595 this.instance.addHook('beforeKeyDown', onBeforeKeyDown);
29603 this.htEditor = new this.instance.constructor(this.htContainer, this.htOptions);
29618 this.instance.removeHook('beforeKeyDown', onBeforeKeyDown);
29619 this.instance.listen();
29625 this.instance.listen();
29630 var onBeginEditing = this.instance.getSettings().onBeginEditing;
29642 this.instance.listen(); // return the focus to the parent HOT instance
29660 this.instance.addHook('afterDestroy', function () {
29865 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
30083 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
30313 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
30483 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
31431 var instance = $this.data('handsontable');
31437 if (instance) {
31438 instance.updateSettings(userSettings);
31440 instance = new Handsontable.Core($this[0], userSettings);
31441 $this.data('handsontable', instance);
31442 instance.init();
31458 if (instance) {
31459 if (typeof instance[action] !== 'undefined') {
31460 output = instance[action].apply(instance, args);
31835 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
31892 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
32254 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
32670 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
32790 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
33290 function DataMap(instance, priv, GridSettings) {
33293 this.instance = instance;
33296 this.dataSource = this.instance.getSettings().data;
33311 this.instance.addHook('skipLengthCache', function (delay) {
33370 var columns = this.instance.getSettings().columns;
33373 var maxCols = this.instance.getSettings().maxCols;
33380 columnsLen = schemaLen > 0 ? schemaLen : this.instance.countSourceCols();
33409 col = this.instance.runHooks('modifyCol', col);
33431 col = this.instance.runHooks('unmodifyCol', col);
33440 var schema = this.instance.getSettings().dataSchema;
33463 colCount = this.instance.countCols(),
33471 if (typeof index !== 'number' || index >= this.instance.countSourceRows()) {
33472 index = this.instance.countSourceRows();
33474 this.instance.runHooks('beforeCreateRow', index, amount, source);
33477 var maxRows = this.instance.getSettings().maxRows;
33479 while (numberOfCreatedRows < amount && this.instance.countSourceRows() < maxRows) {
33480 if (this.instance.dataType === 'array') {
33481 if (this.instance.getSettings().dataSchema) {
33491 } else if (this.instance.dataType === 'function') {
33492 row = this.instance.getSettings().dataSchema(index);
33498 if (index === this.instance.countSourceRows()) {
33508 this.instance.runHooks('afterCreateRow', index, numberOfCreatedRows, source);
33509 this.instance.forceFullRender = true; // used when data was changed
33524 if (!this.instance.isColumnModificationAllowed()) {
33527 var rlen = this.instance.countSourceRows(),
33537 if (typeof index !== 'number' || index >= this.instance.countCols()) {
33538 index = this.instance.countCols();
33540 this.instance.runHooks('beforeCreateCol', index, amount, source);
33544 var maxCols = this.instance.getSettings().maxCols;
33545 while (numberOfCreatedCols < amount && this.instance.countCols() < maxCols) {
33548 if (typeof index !== 'number' || index >= this.instance.countCols()) {
33573 this.instance.runHooks('afterCreateCol', index, numberOfCreatedCols, source);
33574 this.instance.forceFullRender = true; // used when data was changed
33596 amount = this.instance.runHooks('modifyRemovedAmount', amount, index);
33598 index = (this.instance.countSourceRows() + index) % this.instance.countSourceRows();
33601 …var actionWasNotCancelled = this.instance.runHooks('beforeRemoveRow', index, amount, logicRows, so…
33617 this.instance.runHooks('afterRemoveRow', index, amount, logicRows, source);
33619 this.instance.forceFullRender = true; // used when data was changed
33632 if (this.instance.dataType === 'object' || this.instance.getSettings().columns) {
33642 index = (this.instance.countCols() + index) % this.instance.countCols();
33648 …var actionWasNotCancelled = this.instance.runHooks('beforeRemoveCol', index, amount, logicColumns,…
33665 for (var r = 0, rlen = this.instance.countSourceRows(); r < rlen; r++) {
33669 for (var _r2 = 0, _rlen = this.instance.countSourceRows(); _r2 < _rlen; _r2++) {
33680 this.instance.runHooks('afterRemoveCol', index, amount, logicColumns, source);
33682 this.instance.forceFullRender = true; // used when data was changed
33696 var colData = this.instance.getDataAtCol(col);
33707 this.instance.populateFromArray(index, col, elements, null, null, 'spliceCol');
33723 var rowData = this.instance.getSourceDataAtRow(row);
33733 this.instance.populateFromArray(row, index, [elements], null, null, 'spliceRow');
33746 var continueSplicing = this.instance.runHooks('beforeDataSplice', index, amount, element);
33762 var continueSplicing = this.instance.runHooks('beforeDataFilter', index, amount, physicalRows);
33780 row = this.instance.runHooks('modifyRow', row);
33784 var modifiedRowData = this.instance.runHooks('modifyRowData', row);
33826 if (this.instance.hasHook('modifyData')) {
33829 this.instance.runHooks('modifyData', row, this.propToCol(prop), valueHolder, 'get');
33849 if (copyableLookup.call(this.instance, row, this.propToCol(prop))) {
33864 row = this.instance.runHooks('modifyRow', row, source || 'datamapGet');
33868 var modifiedRowData = this.instance.runHooks('modifyRowData', row);
33873 if (this.instance.hasHook('modifyData')) {
33876 this.instance.runHooks('modifyData', row, this.propToCol(prop), valueHolder, 'set');
33918 var totalRows = this.instance.countSourceRows();
33925 row = this.instance.runHooks('modifyRow', physicRow);
33942 var totalCols = this.instance.countCols();
33948 var col = this.instance.runHooks('modifyCol', physicalCol);
33963 for (var r = 0; r < this.instance.countSourceRows(); r++) {
33964 for (var c = 0; c < this.instance.countCols(); c++) {
33986 maxRowsFromSettings = this.instance.getSettings().maxRows;
33994 var length = this.instance.countSourceRows();
33996 if (this.instance.hasHook('modifyRow')) {
34007 row = _this2.instance.runHooks('modifyRow', row);
34036 row: Math.max(this.instance.countSourceRows() - 1, 0),
34037 col: Math.max(this.instance.countCols() - 1, 0)
34040 if (start.row - end.row === 0 && !this.instance.countSourceRows()) {
34063 var maxRows = this.instance.getSettings().maxRows;
34064 var maxCols = this.instance.getSettings().maxCols;
34077 var physicalRow = this.instance.runHooks('modifyRow', r);
34137 this.instance = null;
34164 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
34433 function EditorManager(instance, priv, selection) {
34439 eventManager = new _eventManager2.default(instance);
34500 if (!instance.isListening()) {
34503 instance.runHooks('beforeKeyDown', event);
34621 } else if (instance.getSettings().enterBeginsEditing) {
34655 rangeModifier(new _src.CellCoords(instance.countRows() - 1, priv.selRange.from.col));
34657 rangeModifier(new _src.CellCoords(priv.selRange.from.row, instance.countCols() - 1));
34665 selection.transformStart(-instance.countVisibleRows(), 0);
34672 selection.transformStart(instance.countVisibleRows(), 0);
34682 instance.addHook('afterDocumentKeyDown', onKeyDown);
34686 instance.runHooks('afterDocumentKeyDown', event);
34700 instance.view.wt.update('onCellDblClick', onDblClick);
34702 instance.addHook('afterDestroy', function () {
34749 prop = instance.colToProp(col);
34750 td = instance.getCell(row, col);
34752 originalValue = instance.getSourceDataAtCell(instance.runHooks('modifyRow', row), col);
34753 cellProperties = instance.getCellMeta(row, col);
34754 editorClass = instance.getCellEditor(cellProperties);
34757 activeEditor = (0, _editors.getEditorInstance)(editorClass, instance);
34858 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
34959 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
35003 this.instance.addHook('afterDestroy', function () {
35093 this.instance._registerTimeout(setTimeout(function () {
35094 _this3.instance.selection.refreshBorders();
35139 var isMouseDown = this.instance.view.isMouseDown();
35274 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
35378 this.eventManager = new _eventManager2.default(this.instance);
35383 this.instance.addHook('afterDestroy', function () {
35430 var instance = this;
35431 var that = instance.getActiveEditor();
35451 this.instance.addHook('beforeKeyDown', this.onBeforeKeyDown);
35466 this.instance.removeHook('beforeKeyDown', this.onBeforeKeyDown);
35472 var coords = this.instance.getSelectedRange().highlight;
35473 this.instance.view.scrollViewport(coords);
35490 var selection = this.instance.getSelected(),
35491 selectedCell = this.instance.getCell(selection[0], selection[1]);
35507 … scrollLeft = this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer == window ? 0 : (0, _…
35508 …ar scrollTop = this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer == window ? 0 : (0, _…
35532 var selected = this.instance.getSelected(),
35533 selectedValue = this.instance.getDataAtCell(selected[0], selected[1]);
35548 if (this.instance.getSettings().trimWhitespace) {
35562 that.instance.selection.transformStart(0, -1, null, true);
35568 that.instance.selection.transformStart(0, 1, null, true);
35574 that.instance.selection.transformStart(-1, 0, null, true);
35580 that.instance.selection.transformStart(1, 0, null, true);
35607 …rget, that.editorContainer) && !(0, _element.isChildOf)(event.target, that.instance.rootElement)) {
35612 …this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.leftOverlay.holder, 'scroll', …
35613 if (that.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer != window) {
35618 …this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.topOverlay.holder, 'scroll', f…
35619 if (that.instance.view.wt.wtOverlays.topOverlay.trimmingContainer != window) {
35656 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
35721 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
35798 this.instance.rootElement.appendChild(this.select);
35805 this.instance.addHook('afterScrollHorizontally', function () {
35808 this.instance.addHook('afterScrollVertically', function () {
35811 this.instance.addHook('afterColumnResize', function () {
35814 this.instance.addHook('afterRowResize', function () {
35866 var instance = this;
35867 var editor = instance.getActiveEditor();
35898 this.instance.addHook('beforeKeyDown', onBeforeKeyDown);
35904 this.instance.removeHook('beforeKeyDown', onBeforeKeyDown);
35912 var sourceData = this.instance.getSourceDataAtCell(this.row, this.prop);
35934 containerOffset = (0, _element.offset)(this.instance.rootElement),
35941 var settings = this.instance.getSettings();
35947 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clo…
35950 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.cl…
35953 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerO…
35956 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCorn…
35959 …cssTransformOffset = (0, _element.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.…
35964 if (this.instance.getSelected()[0] === 0) {
35968 if (this.instance.getSelected()[1] === 0) {
36001 editedCell = this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({
36008 editedCell = this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({
36015 editedCell = this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({
36022 editedCell = this.instance.getCell(this.row, this.col);
36269 …var instance = new _core2.default(rootElement, userSettings || {}, _rootInstance.rootInstanceSymbo…
36271 instance.init();
36273 return instance;
36568 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
37241 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
37884 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
38739 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
38907 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
39289 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
39441 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
39617 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
41224 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
41832 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
42082 var instance;
42084 var setupListening = function setupListening(instance) {
42085 instance.dragToScrollListening = false;
42086 var scrollHandler = instance.view.wt.wtTable.holder; // native scroll
42109 instance.dragToScrollListening = true;
42113 var instance = this;
42117 instance.dragToScrollListening = false;
42121 if (instance.dragToScrollListening) {
42246 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
42567 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
42702 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
43581 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
43642 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
43715 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
44395 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
45297 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
45402 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
45463 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
45536 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
46409 var instance = this;
46410 var mergeCellsSetting = instance.getSettings().mergeCells;
46413 if (!instance.mergeCells) {
46414 instance.mergeCells = new MergeCells(mergeCellsSetting);
46420 var instance = this;
46421 if (instance.mergeCells) {
46426 instance.view.wt.wtTable.getCell = function (coords) {
46427 if (instance.getSettings().mergeCells) {
46428 … var mergeParent = instance.mergeCells.mergedCellInfoCollection.getInfo(coords.row, coords.col);
46439 var instance = this;
46440 var mergeCellsSetting = instance.getSettings().mergeCells;
46443 if (instance.mergeCells) {
46444 instance.mergeCells.mergedCellInfoCollection = new CellInfoCollection();
46448 instance.mergeCells.mergedCellInfoCollection.setInfo(mergeCellsSetting[i]);
46452 instance.mergeCells = new MergeCells(mergeCellsSetting);
46454 } else if (instance.mergeCells) {
46456 instance.mergeCells.mergedCellInfoCollection = new CellInfoCollection();
46777 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
47187 function Search(instance) {
47189 var rowCount = instance.countRows();
47190 var colCount = instance.countCols();
47203 var cellData = instance.getDataAtCell(rowIndex, colIndex);
47204 var cellProperties = instance.getCellMeta(rowIndex, colIndex);
47220 cellCallback(instance, rowIndex, colIndex, cellData, testResult);
47229 Search.DEFAULT_CALLBACK = function (instance, row, col, data, testResult) {
47230 instance.getCellMeta(row, col).isSearchResult = testResult;
47274 function SearchCellDecorator(instance, TD, row, col, prop, value, cellProperties) {
47286 (0, _renderers.registerRenderer)('base', function (instance, TD, row, col, prop, value, cellPropert…
47292 var instance = this;
47294 var pluginEnabled = !!instance.getSettings().search;
47297 instance.search = new Search(instance);
47299 delete instance.search;
47319 function cellDecorator(instance, TD, row, col, prop, value, cellProperties) {
47399 function autocompleteRenderer(instance, TD, row, col, prop, value, cellProperties) {
47419 if (!instance.acArrowListener) {
47420 var eventManager = new _eventManager2.default(instance);
47423 instance.acArrowListener = function (event) {
47425 instance.view.wt.getSetting('onCellDblClick', null, new _src.CellCoords(row, col), TD);
47429 eventManager.addEventListener(instance.rootElement, 'mousedown', instance.acArrowListener);
47432 instance.addHookOnce('afterDestroy', function () {
47483 function checkboxRenderer(instance, TD, row, col, prop, value, cellProperties) {
47486 var eventManager = registerEvents(instance);
47522 labelText = instance.getDataAtRowProp(row, labelOptions.property);
47540 if (!isListeningKeyDownEvent.has(instance)) {
47541 isListeningKeyDownEvent.set(instance, true);
47542 instance.addHook('beforeKeyDown', onBeforeKeyDown);
47579 var selRange = instance.getSelectedRange();
47591 var _cellProperties = instance.getCellMeta(_row, _col);
47609 var dataAtCell = instance.getDataAtCell(_row, _col);
47624 instance.setDataAtCell(changes);
47635 var selRange = instance.getSelectedRange();
47645 var _cellProperties2 = instance.getCellMeta(_row2, _col2);
47651 var cell = instance.getCell(_row2, _col2);
47674 function registerEvents(instance) {
47675 var eventManager = isCheckboxListenerAdded.get(instance);
47678 eventManager = new _eventManager2.default(instance);
47679 eventManager.addEventListener(instance.rootElement, 'click', function (event) {
47680 return onClick(event, instance);
47682 eventManager.addEventListener(instance.rootElement, 'mouseup', function (event) {
47683 return onMouseUp(event, instance);
47685 eventManager.addEventListener(instance.rootElement, 'change', function (event) {
47686 return onChange(event, instance);
47689 isCheckboxListenerAdded.set(instance, eventManager);
47732 function onMouseUp(event, instance) {
47736 setTimeout(instance.listen, 10);
47746 function onClick(event, instance) {
47753 var cellProperties = instance.getCellMeta(row, col);
47768 function onChange(event, instance) {
47775 var cellProperties = instance.getCellMeta(row, col);
47786 instance.setDataAtCell(row, col, newCheckboxValue);
47827 function htmlRenderer(instance, TD, row, col, prop, value, cellProperties) {
47872 function numericRenderer(instance, TD, row, col, prop, value, cellProperties) {
47895 (0, _index.getRenderer)('text')(instance, TD, row, col, prop, value, cellProperties);
47926 function passwordRenderer(instance, TD, row, col, prop, value, cellProperties) {
47972 function textRenderer(instance, TD, row, col, prop, value, cellProperties) {
47981 if (!instance.getSettings().trimWhitespace) {
47991 TEMPLATE.model = instance.getSourceDataAtRow(row);
48032 function TableView(instance) {
48037 this.eventManager = new _eventManager2.default(instance);
48038 this.instance = instance;
48039 this.settings = instance.getSettings();
48042 var originalStyle = instance.rootElement.getAttribute('style');
48045instance.rootElement.setAttribute('data-originalstyle', originalStyle); // needed to retrieve orig…
48048 (0, _element.addClass)(instance.rootElement, 'handsontable');
48053 if (instance.getSettings().tableClassName) {
48054 (0, _element.addClass)(table, instance.getSettings().tableClassName);
48061 instance.table = table;
48063 instance.container.insertBefore(table, instance.container.firstChild);
48065 this.eventManager.addEventListener(instance.rootElement, 'mousedown', function (event) {
48074 this.eventManager.addEventListener(instance.rootElement, 'mouseup', function (event) {
48077 this.eventManager.addEventListener(instance.rootElement, 'mousemove', function (event) {
48085 if (instance.selection.isInProgress() && !event.shiftKey) {
48086 instance.selection.finish();
48096 if (instance.selection.isInProgress() && event.which === 1) {
48098 instance.selection.finish();
48103 if ((0, _element.isOutsideInput)(document.activeElement) || !instance.selection.isSelected()) {
48104 instance.unlisten();
48114 if (isMouseDown || !instance.rootElement) {
48119 if (next === instance.view.wt.wtTable.holder) {
48122 …lbarWidth, eventY) !== instance.view.wt.wtTable.holder || document.elementFromPoint(eventX, eventY…
48134 if (next === instance.rootElement) {
48147 instance.deselectCell();
48149 instance.destroyEditor();
48185 return that.settings.fillHandle && !that.isCellEdited() && !instance.selection.isMultiple();
48188 return !that.isCellEdited() && !instance.selection.isMultiple();
48198 return that.settings.fillHandle && !that.isCellEdited() && instance.selection.isMultiple();
48201 return !that.isCellEdited() && instance.selection.isMultiple();
48226 …externalRowCalculator: this.instance.getPlugin('autoRowSize') && this.instance.getPlugin('autoRowS…
48234 data: instance.getDataAtCell,
48236 return instance.countRows();
48239 return instance.countCols();
48257 if (instance.hasRowHeaders()) {
48262 instance.runHooks('afterGetRowHeaderRenderers', headerRenderers);
48269 if (instance.hasColHeaders()) {
48274 instance.runHooks('afterGetColumnHeaderRenderers', headerRenderers);
48278 columnWidth: instance.getColWidth,
48279 rowHeight: instance.getRowHeight,
48281 var cellProperties = that.instance.getCellMeta(row, col);
48282 var prop = that.instance.colToProp(col);
48283 var value = that.instance.getDataAtRowProp(row, prop);
48285 if (that.instance.hasHook('beforeValueRender')) {
48286 value = that.instance.runHooks('beforeValueRender', value);
48289 that.instance.runHooks('beforeRenderer', TD, row, col, prop, value, cellProperties);
48290 …that.instance.getCellRenderer(cellProperties)(that.instance, TD, row, col, prop, value, cellProper…
48291 that.instance.runHooks('afterRenderer', TD, row, col, prop, value, cellProperties);
48304 instance.listen();
48309 instance.runHooks('beforeOnCellMouseDown', event, coords, TD, blockCalculations);
48315 var actualSelection = instance.getSelectedRange();
48316 var selection = instance.selection;
48333 selection.setRangeEnd(new _src.CellCoords(coords.row, instance.countCols() - 1));
48337 selection.setRangeEnd(new _src.CellCoords(instance.countRows() - 1, coords.col));
48372 …selection.setRangeEnd(new _src.CellCoords(Math.max(instance.countRows() - 1, 0), coords.col), fals…
48381 …selection.setRangeEnd(new _src.CellCoords(coords.row, Math.max(instance.countCols() - 1, 0)), fals…
48397 instance.runHooks('afterOnCellMouseDown', event, coords, TD);
48402 instance.runHooks('beforeOnCellMouseOut', event, coords, TD);
48408 instance.runHooks('afterOnCellMouseOut', event, coords, TD);
48419 instance.runHooks('beforeOnCellMouseOver', event, coords, TD, blockCalculations);
48428 if (instance.selection.selectedHeader.cols && !blockCalculations.column) {
48429instance.selection.setRangeEnd(new _src.CellCoords(instance.countRows() - 1, coords.col), false);
48430 } else if (instance.selection.selectedHeader.rows && !blockCalculations.row) {
48431instance.selection.setRangeEnd(new _src.CellCoords(coords.row, instance.countCols() - 1), false);
48433 instance.selection.setRangeEnd(coords);
48437 if (instance.selection.selectedHeader.cols && !blockCalculations.column) {
48438instance.selection.setRangeEnd(new _src.CellCoords(instance.countRows() - 1, coords.col), false);
48439 } else if (instance.selection.selectedHeader.rows && !blockCalculations.row) {
48440instance.selection.setRangeEnd(new _src.CellCoords(coords.row, instance.countCols() - 1), false);
48442 instance.selection.setRangeEnd(coords);
48447 instance.runHooks('afterOnCellMouseOver', event, coords, TD);
48452 instance.runHooks('beforeOnCellMouseUp', event, coords, TD);
48454 instance.runHooks('afterOnCellMouseUp', event, coords, TD);
48459 instance.runHooks('afterOnCellCornerMouseDown', event);
48463 instance.runHooks('afterOnCellCornerDblClick', event);
48472 instance.runHooks('afterScrollVertically');
48475 instance.runHooks('afterScrollHorizontally');
48478 instance.runHooks('beforeDrawBorders', corners, borderClassName);
48481 instance.runHooks('beforeTouchScroll');
48484 instance.runHooks('afterMomentumScroll');
48487 return instance.runHooks('beforeStretchingColumnWidth', stretchedWidth, column);
48490 return instance.runHooks('modifyRowHeaderWidth', rowHeaderWidth);
48493 var rows = instance.countRows();
48510 instance.runHooks('afterViewportRowCalculatorOverride', calc);
48513 var cols = instance.countCols();
48530 instance.runHooks('afterViewportColumnCalculatorOverride', calc);
48536 var columnHeaderHeight = instance.runHooks('modifyColumnHeaderHeight');
48541 instance.runHooks('beforeInitWalkontable', walkontableConfig);
48547 this.eventManager.addEventListener(instance.rootElement, 'wheel', function (event) {
48590 that.instance.forceFullRender = true;
48601 var isChildOfTableBody = (0, _element.isChildOf)(el, this.instance.view.wt.wtTable.spreader);
48622 var _ref = this.instance.getSelected() || [],
48633 var activeEditor = this.instance.getActiveEditor();
48641 this.instance.runHooks('beforeRender', this.instance.forceFullRender, skipRender);
48648 this.instance.runHooks('afterRender', this.instance.forceFullRender);
48653 this.wt.draw(!this.instance.forceFullRender);
48654 this.instance.forceFullRender = false;
48655 this.instance.renderCall = false;
48699 this.updateCellHeader(container.querySelector('.rowHeader'), row, this.instance.getRowHeader);
48706 this.updateCellHeader(span, row, this.instance.getRowHeader);
48712 this.instance.runHooks('afterGetRowHeader', row, TH);
48725 this.updateCellHeader(container.querySelector('.colHeader'), col, this.instance.getColHeader);
48736 this.updateCellHeader(span, col, this.instance.getColHeader);
48742 this.instance.runHooks('afterGetColHeader', col, TH);
48827 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw n…
49055 var dateEditor = (0, _editors.getEditorInstance)('date', this.instance);
49079 var row = this.instance.runHooks('unmodifyRow', this.row);
49080 var column = this.instance.runHooks('unmodifyCol', this.col);
49082 this.instance.setDataAtCell(row, column, correctedValue, 'dateValidator');
49210 var row = this.instance.runHooks('unmodifyRow', this.row);
49211 var column = this.instance.runHooks('unmodifyCol', this.col);
49213 this.instance.setDataAtCell(row, column, correctedValue, 'timeValidator');
50261 renderTitle = function(instance, c, year, month, refYear, randId)
50264 opts = instance._o,
50314 if (c === (instance._o.numberOfMonths - 1) ) {