Requested changes

This commit is contained in:
Ryan Riley
2017-03-30 18:51:55 -05:00
parent f232d29caf
commit 2d9510949f
5 changed files with 616 additions and 315 deletions

View File

@@ -1,299 +0,0 @@
function test_HandsontableInit() {
const elem = document.createElement('div');
const hot = new Handsontable(elem, {
allowEmpty: true,
allowInsertColumn: true,
allowInsertRow: true,
allowInvalid: true,
allowRemoveColumn: true,
allowRemoveRow: true,
autoColumnSize: true,
autoComplete: [],
autoRowSize: true,
autoWrapCol: true,
autoWrapRow: true,
bindRowsWithHeaders: 'foo',
cell: [],
cells: () => { return; },
checkedTemplate: true,
className: [],
colHeaders: true,
collapsibleColumns: true,
columnHeaderHeight: 123,
columns: [],
columnSorting: {},
columnSummary: {},
colWidths: 123,
commentedCellClassName: 'foo',
comments: [],
contextMenu: true,
contextMenuCopyPaste: {},
copyable: true,
copyColsLimit: 123,
copyPaste: true,
copyRowsLimit: 123,
correctFormat: true,
currentColClassName: 'foo',
currentRowClassName: 'foo',
customBorders: true,
data: [],
dataSchema: {},
dateFormat: 'foo',
debug: true,
defaultDate: 'foo',
disableVisualSelection: true,
dropdownMenu: [],
editor: true,
enterBeginsEditing: true,
enterMoves: {},
fillHandle: true,
filter: true,
filteringCaseSensitive: true,
filters: false,
fixedColumnsLeft: 123,
fixedRowsBottom: 123,
fixedRowsTop: 123,
format: 'foo',
fragmentSelection: true,
ganttChart: {},
headerTooltips: true,
height: 123,
hiddenColumns: true,
hiddenRows: {},
invalidCellClassName: 'foo',
label: {},
language: 'foo',
manualColumnFreeze: true,
manualColumnMove: true,
manualColumnResize: true,
manualRowMove: true,
manualRowResize: true,
maxCols: 123,
maxRows: 123,
mergeCells: true,
minCols: 123,
minRows: 123,
minSpareCols: 123,
minSpareRows: 123,
multiSelect: true,
nestedHeaders: [],
noWordWrapClassName: 'foo',
observeChanges: true,
observeDOMVisibility: true,
outsideClickDeselects: true,
pasteMode: 'foo',
persistentState: true,
placeholder: 123,
placeholderCellClassName: 'foo',
preventOverflow: true,
readOnly: true,
readOnlyCellClassName: 'foo',
renderAllRows: true,
renderer: 'foo',
rowHeaders: true,
rowHeaderWidth: 123,
rowHeights: 123,
search: true,
selectOptions: [],
skipColumnOnPaste: true,
sortByRelevance: true,
sortFunction: () => { return; },
sortIndicator: true,
source: [],
startCols: 123,
startRows: 123,
stretchH: 'foo',
strict: true,
tableClassName: 'foo',
tabMoves: {},
title: 'foo',
trimDropdown: true,
trimWhitespace: true,
type: 'foo',
uncheckedTemplate: true,
undo: true,
validator: () => {return; },
viewportColumnRenderingOffset: 123,
viewportRowRenderingOffset: 123,
visibleRows: 123,
width: 1232,
wordWrap: true,
// Hooks
afterAutofillApplyValues: () => {return; },
afterCellMetaReset: () => {return; },
afterChange: () => {return; },
afterChangesObserved: () => {return; },
afterColumnMove: () => {return; },
afterColumnResize: () => {return; },
afterColumnSort: () => {return; },
afterContextMenuDefaultOptions: () => {return; },
afterContextMenuHide: () => {return; },
afterContextMenuShow: () => {return; },
afterCopyLimit: () => {return; },
afterCreateCol: () => {return; },
afterCreateRow: () => {return; },
afterDeselect: () => {return; },
afterDestroy: () => {return; },
afterDocumentKeyDown: () => {return; },
afterFilter: () => {return; },
afterGetCellMeta: () => {return; },
afterGetColHeader: () => {return; },
afterGetColumnHeaderRenderers: () => {return; },
afterGetRowHeader: () => {return; },
afterGetRowHeaderRenderers: () => {return; },
afterInit: () => {return; },
afterLoadData: () => {return; },
afterMomentumScroll: () => {return; },
afterOnCellCornerMouseDown: () => {return; },
afterOnCellMouseDown: () => {return; },
afterOnCellMouseOver: () => {return; },
afterRemoveCol: () => {return; },
afterRemoveRow: () => {return; },
afterRender: () => {return; },
afterRenderer: () => {return; },
afterRowMove: () => {return; },
afterRowResize: () => {return; },
afterScrollHorizontally: () => {return; },
afterScrollVertically: () => {return; },
afterSelection: () => {return; },
afterSelectionByProp: () => {return; },
afterSelectionEnd: () => {return; },
afterSelectionEndByProp: () => {return; },
afterSetCellMeta: () => {return; },
afterUpdateSettings: () => {return; },
afterValidate: () => {return; },
beforeAutofill: () => {return; },
beforeCellAlignment: () => {return; },
beforeChange: () => {return; },
beforeChangeRender: () => {return; },
beforeColumnMove: () => {return; },
beforeColumnResize: () => {return; },
beforeColumnSort: () => {return; },
beforeDrawBorders: () => {return; },
beforeFilter: () => {return; },
beforeGetCellMeta: () => {return; },
beforeInit: () => {return; },
beforeInitWalkontable: () => {return; },
beforeKeyDown: () => {return; },
beforeOnCellMouseDown: () => {return; },
beforeRemoveCol: () => {return; },
beforeRemoveRow: () => {return; },
beforeRender: () => {return; },
beforeRenderer: () => {return; },
beforeRowMove: () => {return; },
beforeRowResize: () => {return; },
beforeSetRangeEnd: () => {return; },
beforeStretchingColumnWidth: () => {return; },
beforeTouchScroll: () => {return; },
beforeValidate: () => {return; },
construct: () => {return; },
init: () => {return; },
modifyCol: () => {return; },
modifyColHeader: () => {return; },
modifyColWidth: () => {return; },
modifyCopyableRange: () => {return; },
modifyRow: () => {return; },
modifyRowHeader: () => {return; },
modifyRowHeight: () => {return; },
persistentStateLoad: () => {return; },
persistentStateReset: () => {return; },
persistentStateSave: () => {return; },
unmodifyCol: () => {return; }
});
}
function test_HandsontableMethods() {
const elem = document.createElement('div');
const hot = new Handsontable(elem, {});
hot.addHook('foo', []);
hot.addHookOnce('foo', []);
hot.alter('foo', 123, 123, 'foo', true);
hot.clear();
hot.colOffset();
hot.colToProp(123);
hot.countCols();
hot.countEmptyCols(true);
hot.countEmptyRows(true);
hot.countRenderedCols();
hot.countRenderedRows();
hot.countRows();
hot.countSourceRows();
hot.countVisibleCols();
hot.countVisibleRows();
hot.deselectCell();
hot.destroy();
hot.destroyEditor(true);
hot.getActiveEditor();
hot.getCell(123, 123, true);
hot.getCellEditor(123, 123);
hot.getCellMeta(123, 123);
hot.getCellRenderer(123, 123);
hot.getCellValidator(123, 123);
hot.getColHeader(123);
hot.getColWidth(123);
hot.getCoords(elem.querySelector('td'));
hot.getCopyableData(123, 123);
hot.getCopyableText(123, 123, 123, 123);
hot.getData(123, 123, 123, 123);
hot.getDataAtCell(123, 123);
hot.getDataAtCol(123);
hot.getDataAtProp(123);
hot.getDataAtRow(123);
hot.getDataAtRowProp(123, 'foo');
hot.getDataType(123, 123, 123, 123);
hot.getInstance();
hot.getPlugin('foo');
hot.getRowHeader(123);
hot.getRowHeight(123);
hot.getSchema();
hot.getSelected();
const range: ht.Range = hot.getSelectedRange();
hot.getSettings();
hot.getSourceData(123, 123, 123, 123);
hot.getSourceDataAtCell(123, 123);
hot.getSourceDataAtCol(123);
hot.getSourceDataAtRow(123);
hot.getValue();
hot.hasColHeaders();
hot.hasHook('foo');
hot.hasRowHeaders();
hot.isEmptyCol(123);
hot.isEmptyRow(123);
hot.isListening();
hot.listen();
hot.loadData([]);
hot.populateFromArray(123, 123, [], 123, 123, 'foo', 'foo', 'foo', []);
hot.propToCol('foo');
hot.propToCol(123);
hot.removeCellMeta(123, 123, 'foo');
hot.removeHook('foo', () => {return; });
hot.render();
hot.rowOffset();
hot.runHooks('foo', 123, 'foo', true, {}, [], () => {return; });
hot.selectCell(123, 123, 123, 123, true, true);
hot.selectCellByProp(123, 'foo', 123, 'foo', true);
hot.setCellMeta(123, 123, 'foo', 'foo');
hot.setCellMetaObject(123, 123, {});
hot.setDataAtCell(123, 123, 'foo', 'foo');
hot.setDataAtRowProp(123, 'foo', 'foo', 'foo');
hot.spliceCol(123, 123, 123, 'foo');
hot.spliceRow(123, 123, 123, 'foo');
hot.toPhysicalRow(123);
hot.toPhysicalColumn(123);
hot.toVisualRow(123);
hot.toVisualColumn(123);
hot.unlisten();
hot.updateSettings({}, true);
hot.validateCells(() => {return; });
Handsontable.renderers.NumericRenderer(hot, new HTMLTableDataCellElement(), 0, 0, "prop", 1.235, {});
Handsontable.renderers.TextRenderer(hot, new HTMLTableDataCellElement(), 0, 0, "prop", 1.235, {});
Handsontable.Dom.addEvent(new HTMLElement(), "eventName", () => { return; });
}
class MyCustomHotPlugin extends Handsontable.plugins.BasePlugin {
isEnabled(): boolean {
return !!this.hot.getSettings().manualRowMove;
}
}

View File

@@ -3,7 +3,7 @@
// Definitions by: Handsoncode sp. z o.o. <http://handsoncode.net/>, Ryan Riley <https://github.com/panesofglass>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\
declare namespace ht {
declare namespace Handsontable {
interface Options {
allowEmpty?: boolean;
allowInsertColumn?: boolean;
@@ -494,19 +494,16 @@ declare namespace ht {
}
interface Handsontable {
new (element: Element, options: ht.Options): ht.Methods;
plugins: ht.Plugins;
hooks: ht.Hooks;
Dom: ht.Dom;
dom: ht.Dom;
helper: ht.Helper;
utils: ht.Utils;
renderers: ht.Renderers;
editors: ht.Editors;
new (element: Element, options: Handsontable.Options): Handsontable.Methods;
plugins: Handsontable.Plugins;
hooks: Handsontable.Hooks;
Dom: Handsontable.Dom;
dom: Handsontable.Dom;
helper: Handsontable.Helper;
utils: Handsontable.Utils;
renderers: Handsontable.Renderers;
editors: Handsontable.Editors;
}
declare module "handsontable" {
export = Handsontable;
}
declare var Handsontable: Handsontable;
export = Handsontable;
export as namespace Handsontable;

View File

@@ -0,0 +1,301 @@
namespace HandsontableGlobalTest {
function test_HandsontableInit() {
const elem = document.createElement('div');
const hot = new Handsontable(elem, {
allowEmpty: true,
allowInsertColumn: true,
allowInsertRow: true,
allowInvalid: true,
allowRemoveColumn: true,
allowRemoveRow: true,
autoColumnSize: true,
autoComplete: [],
autoRowSize: true,
autoWrapCol: true,
autoWrapRow: true,
bindRowsWithHeaders: 'foo',
cell: [],
cells: () => { return; },
checkedTemplate: true,
className: [],
colHeaders: true,
collapsibleColumns: true,
columnHeaderHeight: 123,
columns: [],
columnSorting: {},
columnSummary: {},
colWidths: 123,
commentedCellClassName: 'foo',
comments: [],
contextMenu: true,
contextMenuCopyPaste: {},
copyable: true,
copyColsLimit: 123,
copyPaste: true,
copyRowsLimit: 123,
correctFormat: true,
currentColClassName: 'foo',
currentRowClassName: 'foo',
customBorders: true,
data: [],
dataSchema: {},
dateFormat: 'foo',
debug: true,
defaultDate: 'foo',
disableVisualSelection: true,
dropdownMenu: [],
editor: true,
enterBeginsEditing: true,
enterMoves: {},
fillHandle: true,
filter: true,
filteringCaseSensitive: true,
filters: false,
fixedColumnsLeft: 123,
fixedRowsBottom: 123,
fixedRowsTop: 123,
format: 'foo',
fragmentSelection: true,
ganttChart: {},
headerTooltips: true,
height: 123,
hiddenColumns: true,
hiddenRows: {},
invalidCellClassName: 'foo',
label: {},
language: 'foo',
manualColumnFreeze: true,
manualColumnMove: true,
manualColumnResize: true,
manualRowMove: true,
manualRowResize: true,
maxCols: 123,
maxRows: 123,
mergeCells: true,
minCols: 123,
minRows: 123,
minSpareCols: 123,
minSpareRows: 123,
multiSelect: true,
nestedHeaders: [],
noWordWrapClassName: 'foo',
observeChanges: true,
observeDOMVisibility: true,
outsideClickDeselects: true,
pasteMode: 'foo',
persistentState: true,
placeholder: 123,
placeholderCellClassName: 'foo',
preventOverflow: true,
readOnly: true,
readOnlyCellClassName: 'foo',
renderAllRows: true,
renderer: 'foo',
rowHeaders: true,
rowHeaderWidth: 123,
rowHeights: 123,
search: true,
selectOptions: [],
skipColumnOnPaste: true,
sortByRelevance: true,
sortFunction: () => { return; },
sortIndicator: true,
source: [],
startCols: 123,
startRows: 123,
stretchH: 'foo',
strict: true,
tableClassName: 'foo',
tabMoves: {},
title: 'foo',
trimDropdown: true,
trimWhitespace: true,
type: 'foo',
uncheckedTemplate: true,
undo: true,
validator: () => {return; },
viewportColumnRenderingOffset: 123,
viewportRowRenderingOffset: 123,
visibleRows: 123,
width: 1232,
wordWrap: true,
// Hooks
afterAutofillApplyValues: () => {return; },
afterCellMetaReset: () => {return; },
afterChange: () => {return; },
afterChangesObserved: () => {return; },
afterColumnMove: () => {return; },
afterColumnResize: () => {return; },
afterColumnSort: () => {return; },
afterContextMenuDefaultOptions: () => {return; },
afterContextMenuHide: () => {return; },
afterContextMenuShow: () => {return; },
afterCopyLimit: () => {return; },
afterCreateCol: () => {return; },
afterCreateRow: () => {return; },
afterDeselect: () => {return; },
afterDestroy: () => {return; },
afterDocumentKeyDown: () => {return; },
afterFilter: () => {return; },
afterGetCellMeta: () => {return; },
afterGetColHeader: () => {return; },
afterGetColumnHeaderRenderers: () => {return; },
afterGetRowHeader: () => {return; },
afterGetRowHeaderRenderers: () => {return; },
afterInit: () => {return; },
afterLoadData: () => {return; },
afterMomentumScroll: () => {return; },
afterOnCellCornerMouseDown: () => {return; },
afterOnCellMouseDown: () => {return; },
afterOnCellMouseOver: () => {return; },
afterRemoveCol: () => {return; },
afterRemoveRow: () => {return; },
afterRender: () => {return; },
afterRenderer: () => {return; },
afterRowMove: () => {return; },
afterRowResize: () => {return; },
afterScrollHorizontally: () => {return; },
afterScrollVertically: () => {return; },
afterSelection: () => {return; },
afterSelectionByProp: () => {return; },
afterSelectionEnd: () => {return; },
afterSelectionEndByProp: () => {return; },
afterSetCellMeta: () => {return; },
afterUpdateSettings: () => {return; },
afterValidate: () => {return; },
beforeAutofill: () => {return; },
beforeCellAlignment: () => {return; },
beforeChange: () => {return; },
beforeChangeRender: () => {return; },
beforeColumnMove: () => {return; },
beforeColumnResize: () => {return; },
beforeColumnSort: () => {return; },
beforeDrawBorders: () => {return; },
beforeFilter: () => {return; },
beforeGetCellMeta: () => {return; },
beforeInit: () => {return; },
beforeInitWalkontable: () => {return; },
beforeKeyDown: () => {return; },
beforeOnCellMouseDown: () => {return; },
beforeRemoveCol: () => {return; },
beforeRemoveRow: () => {return; },
beforeRender: () => {return; },
beforeRenderer: () => {return; },
beforeRowMove: () => {return; },
beforeRowResize: () => {return; },
beforeSetRangeEnd: () => {return; },
beforeStretchingColumnWidth: () => {return; },
beforeTouchScroll: () => {return; },
beforeValidate: () => {return; },
construct: () => {return; },
init: () => {return; },
modifyCol: () => {return; },
modifyColHeader: () => {return; },
modifyColWidth: () => {return; },
modifyCopyableRange: () => {return; },
modifyRow: () => {return; },
modifyRowHeader: () => {return; },
modifyRowHeight: () => {return; },
persistentStateLoad: () => {return; },
persistentStateReset: () => {return; },
persistentStateSave: () => {return; },
unmodifyCol: () => {return; }
});
}
function test_HandsontableMethods() {
const elem = document.createElement('div');
const hot = new Handsontable(elem, {});
hot.addHook('foo', []);
hot.addHookOnce('foo', []);
hot.alter('foo', 123, 123, 'foo', true);
hot.clear();
hot.colOffset();
hot.colToProp(123);
hot.countCols();
hot.countEmptyCols(true);
hot.countEmptyRows(true);
hot.countRenderedCols();
hot.countRenderedRows();
hot.countRows();
hot.countSourceRows();
hot.countVisibleCols();
hot.countVisibleRows();
hot.deselectCell();
hot.destroy();
hot.destroyEditor(true);
hot.getActiveEditor();
hot.getCell(123, 123, true);
hot.getCellEditor(123, 123);
hot.getCellMeta(123, 123);
hot.getCellRenderer(123, 123);
hot.getCellValidator(123, 123);
hot.getColHeader(123);
hot.getColWidth(123);
hot.getCoords(elem.querySelector('td'));
hot.getCopyableData(123, 123);
hot.getCopyableText(123, 123, 123, 123);
hot.getData(123, 123, 123, 123);
hot.getDataAtCell(123, 123);
hot.getDataAtCol(123);
hot.getDataAtProp(123);
hot.getDataAtRow(123);
hot.getDataAtRowProp(123, 'foo');
hot.getDataType(123, 123, 123, 123);
hot.getInstance();
hot.getPlugin('foo');
hot.getRowHeader(123);
hot.getRowHeight(123);
hot.getSchema();
hot.getSelected();
const range: ht.Range = hot.getSelectedRange();
hot.getSettings();
hot.getSourceData(123, 123, 123, 123);
hot.getSourceDataAtCell(123, 123);
hot.getSourceDataAtCol(123);
hot.getSourceDataAtRow(123);
hot.getValue();
hot.hasColHeaders();
hot.hasHook('foo');
hot.hasRowHeaders();
hot.isEmptyCol(123);
hot.isEmptyRow(123);
hot.isListening();
hot.listen();
hot.loadData([]);
hot.populateFromArray(123, 123, [], 123, 123, 'foo', 'foo', 'foo', []);
hot.propToCol('foo');
hot.propToCol(123);
hot.removeCellMeta(123, 123, 'foo');
hot.removeHook('foo', () => {return; });
hot.render();
hot.rowOffset();
hot.runHooks('foo', 123, 'foo', true, {}, [], () => {return; });
hot.selectCell(123, 123, 123, 123, true, true);
hot.selectCellByProp(123, 'foo', 123, 'foo', true);
hot.setCellMeta(123, 123, 'foo', 'foo');
hot.setCellMetaObject(123, 123, {});
hot.setDataAtCell(123, 123, 'foo', 'foo');
hot.setDataAtRowProp(123, 'foo', 'foo', 'foo');
hot.spliceCol(123, 123, 123, 'foo');
hot.spliceRow(123, 123, 123, 'foo');
hot.toPhysicalRow(123);
hot.toPhysicalColumn(123);
hot.toVisualRow(123);
hot.toVisualColumn(123);
hot.unlisten();
hot.updateSettings({}, true);
hot.validateCells(() => {return; });
Handsontable.renderers.NumericRenderer(hot, new HTMLTableDataCellElement(), 0, 0, "prop", 1.235, {});
Handsontable.renderers.TextRenderer(hot, new HTMLTableDataCellElement(), 0, 0, "prop", 1.235, {});
Handsontable.Dom.addEvent(new HTMLElement(), "eventName", () => { return; });
}
class MyCustomHotPlugin extends Handsontable.plugins.BasePlugin {
isEnabled(): boolean {
return !!this.hot.getSettings().manualRowMove;
}
}
}

View File

@@ -0,0 +1,301 @@
namespace HandsOnTableModuleTest {
function test_HandsontableInit() {
const elem = document.createElement('div');
const hot = new Handsontable(elem, {
allowEmpty: true,
allowInsertColumn: true,
allowInsertRow: true,
allowInvalid: true,
allowRemoveColumn: true,
allowRemoveRow: true,
autoColumnSize: true,
autoComplete: [],
autoRowSize: true,
autoWrapCol: true,
autoWrapRow: true,
bindRowsWithHeaders: 'foo',
cell: [],
cells: () => { return; },
checkedTemplate: true,
className: [],
colHeaders: true,
collapsibleColumns: true,
columnHeaderHeight: 123,
columns: [],
columnSorting: {},
columnSummary: {},
colWidths: 123,
commentedCellClassName: 'foo',
comments: [],
contextMenu: true,
contextMenuCopyPaste: {},
copyable: true,
copyColsLimit: 123,
copyPaste: true,
copyRowsLimit: 123,
correctFormat: true,
currentColClassName: 'foo',
currentRowClassName: 'foo',
customBorders: true,
data: [],
dataSchema: {},
dateFormat: 'foo',
debug: true,
defaultDate: 'foo',
disableVisualSelection: true,
dropdownMenu: [],
editor: true,
enterBeginsEditing: true,
enterMoves: {},
fillHandle: true,
filter: true,
filteringCaseSensitive: true,
filters: false,
fixedColumnsLeft: 123,
fixedRowsBottom: 123,
fixedRowsTop: 123,
format: 'foo',
fragmentSelection: true,
ganttChart: {},
headerTooltips: true,
height: 123,
hiddenColumns: true,
hiddenRows: {},
invalidCellClassName: 'foo',
label: {},
language: 'foo',
manualColumnFreeze: true,
manualColumnMove: true,
manualColumnResize: true,
manualRowMove: true,
manualRowResize: true,
maxCols: 123,
maxRows: 123,
mergeCells: true,
minCols: 123,
minRows: 123,
minSpareCols: 123,
minSpareRows: 123,
multiSelect: true,
nestedHeaders: [],
noWordWrapClassName: 'foo',
observeChanges: true,
observeDOMVisibility: true,
outsideClickDeselects: true,
pasteMode: 'foo',
persistentState: true,
placeholder: 123,
placeholderCellClassName: 'foo',
preventOverflow: true,
readOnly: true,
readOnlyCellClassName: 'foo',
renderAllRows: true,
renderer: 'foo',
rowHeaders: true,
rowHeaderWidth: 123,
rowHeights: 123,
search: true,
selectOptions: [],
skipColumnOnPaste: true,
sortByRelevance: true,
sortFunction: () => { return; },
sortIndicator: true,
source: [],
startCols: 123,
startRows: 123,
stretchH: 'foo',
strict: true,
tableClassName: 'foo',
tabMoves: {},
title: 'foo',
trimDropdown: true,
trimWhitespace: true,
type: 'foo',
uncheckedTemplate: true,
undo: true,
validator: () => {return; },
viewportColumnRenderingOffset: 123,
viewportRowRenderingOffset: 123,
visibleRows: 123,
width: 1232,
wordWrap: true,
// Hooks
afterAutofillApplyValues: () => {return; },
afterCellMetaReset: () => {return; },
afterChange: () => {return; },
afterChangesObserved: () => {return; },
afterColumnMove: () => {return; },
afterColumnResize: () => {return; },
afterColumnSort: () => {return; },
afterContextMenuDefaultOptions: () => {return; },
afterContextMenuHide: () => {return; },
afterContextMenuShow: () => {return; },
afterCopyLimit: () => {return; },
afterCreateCol: () => {return; },
afterCreateRow: () => {return; },
afterDeselect: () => {return; },
afterDestroy: () => {return; },
afterDocumentKeyDown: () => {return; },
afterFilter: () => {return; },
afterGetCellMeta: () => {return; },
afterGetColHeader: () => {return; },
afterGetColumnHeaderRenderers: () => {return; },
afterGetRowHeader: () => {return; },
afterGetRowHeaderRenderers: () => {return; },
afterInit: () => {return; },
afterLoadData: () => {return; },
afterMomentumScroll: () => {return; },
afterOnCellCornerMouseDown: () => {return; },
afterOnCellMouseDown: () => {return; },
afterOnCellMouseOver: () => {return; },
afterRemoveCol: () => {return; },
afterRemoveRow: () => {return; },
afterRender: () => {return; },
afterRenderer: () => {return; },
afterRowMove: () => {return; },
afterRowResize: () => {return; },
afterScrollHorizontally: () => {return; },
afterScrollVertically: () => {return; },
afterSelection: () => {return; },
afterSelectionByProp: () => {return; },
afterSelectionEnd: () => {return; },
afterSelectionEndByProp: () => {return; },
afterSetCellMeta: () => {return; },
afterUpdateSettings: () => {return; },
afterValidate: () => {return; },
beforeAutofill: () => {return; },
beforeCellAlignment: () => {return; },
beforeChange: () => {return; },
beforeChangeRender: () => {return; },
beforeColumnMove: () => {return; },
beforeColumnResize: () => {return; },
beforeColumnSort: () => {return; },
beforeDrawBorders: () => {return; },
beforeFilter: () => {return; },
beforeGetCellMeta: () => {return; },
beforeInit: () => {return; },
beforeInitWalkontable: () => {return; },
beforeKeyDown: () => {return; },
beforeOnCellMouseDown: () => {return; },
beforeRemoveCol: () => {return; },
beforeRemoveRow: () => {return; },
beforeRender: () => {return; },
beforeRenderer: () => {return; },
beforeRowMove: () => {return; },
beforeRowResize: () => {return; },
beforeSetRangeEnd: () => {return; },
beforeStretchingColumnWidth: () => {return; },
beforeTouchScroll: () => {return; },
beforeValidate: () => {return; },
construct: () => {return; },
init: () => {return; },
modifyCol: () => {return; },
modifyColHeader: () => {return; },
modifyColWidth: () => {return; },
modifyCopyableRange: () => {return; },
modifyRow: () => {return; },
modifyRowHeader: () => {return; },
modifyRowHeight: () => {return; },
persistentStateLoad: () => {return; },
persistentStateReset: () => {return; },
persistentStateSave: () => {return; },
unmodifyCol: () => {return; }
});
}
function test_HandsontableMethods() {
const elem = document.createElement('div');
const hot = new Handsontable(elem, {});
hot.addHook('foo', []);
hot.addHookOnce('foo', []);
hot.alter('foo', 123, 123, 'foo', true);
hot.clear();
hot.colOffset();
hot.colToProp(123);
hot.countCols();
hot.countEmptyCols(true);
hot.countEmptyRows(true);
hot.countRenderedCols();
hot.countRenderedRows();
hot.countRows();
hot.countSourceRows();
hot.countVisibleCols();
hot.countVisibleRows();
hot.deselectCell();
hot.destroy();
hot.destroyEditor(true);
hot.getActiveEditor();
hot.getCell(123, 123, true);
hot.getCellEditor(123, 123);
hot.getCellMeta(123, 123);
hot.getCellRenderer(123, 123);
hot.getCellValidator(123, 123);
hot.getColHeader(123);
hot.getColWidth(123);
hot.getCoords(elem.querySelector('td'));
hot.getCopyableData(123, 123);
hot.getCopyableText(123, 123, 123, 123);
hot.getData(123, 123, 123, 123);
hot.getDataAtCell(123, 123);
hot.getDataAtCol(123);
hot.getDataAtProp(123);
hot.getDataAtRow(123);
hot.getDataAtRowProp(123, 'foo');
hot.getDataType(123, 123, 123, 123);
hot.getInstance();
hot.getPlugin('foo');
hot.getRowHeader(123);
hot.getRowHeight(123);
hot.getSchema();
hot.getSelected();
const range: ht.Range = hot.getSelectedRange();
hot.getSettings();
hot.getSourceData(123, 123, 123, 123);
hot.getSourceDataAtCell(123, 123);
hot.getSourceDataAtCol(123);
hot.getSourceDataAtRow(123);
hot.getValue();
hot.hasColHeaders();
hot.hasHook('foo');
hot.hasRowHeaders();
hot.isEmptyCol(123);
hot.isEmptyRow(123);
hot.isListening();
hot.listen();
hot.loadData([]);
hot.populateFromArray(123, 123, [], 123, 123, 'foo', 'foo', 'foo', []);
hot.propToCol('foo');
hot.propToCol(123);
hot.removeCellMeta(123, 123, 'foo');
hot.removeHook('foo', () => {return; });
hot.render();
hot.rowOffset();
hot.runHooks('foo', 123, 'foo', true, {}, [], () => {return; });
hot.selectCell(123, 123, 123, 123, true, true);
hot.selectCellByProp(123, 'foo', 123, 'foo', true);
hot.setCellMeta(123, 123, 'foo', 'foo');
hot.setCellMetaObject(123, 123, {});
hot.setDataAtCell(123, 123, 'foo', 'foo');
hot.setDataAtRowProp(123, 'foo', 'foo', 'foo');
hot.spliceCol(123, 123, 123, 'foo');
hot.spliceRow(123, 123, 123, 'foo');
hot.toPhysicalRow(123);
hot.toPhysicalColumn(123);
hot.toVisualRow(123);
hot.toVisualColumn(123);
hot.unlisten();
hot.updateSettings({}, true);
hot.validateCells(() => {return; });
Handsontable.renderers.NumericRenderer(hot, new HTMLTableDataCellElement(), 0, 0, "prop", 1.235, {});
Handsontable.renderers.TextRenderer(hot, new HTMLTableDataCellElement(), 0, 0, "prop", 1.235, {});
Handsontable.Dom.addEvent(new HTMLElement(), "eventName", () => { return; });
}
class MyCustomHotPlugin extends Handsontable.plugins.BasePlugin {
isEnabled(): boolean {
return !!this.hot.getSettings().manualRowMove;
}
}
}

View File

@@ -18,6 +18,7 @@
},
"files": [
"index.d.ts",
"handsontable-tests.ts"
"test/global.ts",
"test/module.ts"
]
}