@contrail/document-table 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,6 @@ export declare class TableService {
39
39
  static clearCell(element: DocumentElement): void;
40
40
  static getCellSize(element: DocumentElement, text?: string): SizeDefinition;
41
41
  static getSize(text: string, style: string): SizeDefinition;
42
- getTableChildElements(tableId: string, elements: DocumentElement[]): DocumentElement[];
42
+ static getTableChildElements(tableId: string, elements: DocumentElement[]): DocumentElement[];
43
43
  static updateCellText(tableElement: DocumentElement, childElements: DocumentElement[], rowIndex: number, columnIndex: number, text: string): DocumentElementChanges;
44
44
  }
@@ -615,7 +615,7 @@ class TableService {
615
615
  div = null;
616
616
  return { width, height };
617
617
  }
618
- getTableChildElements(tableId, elements) {
618
+ static getTableChildElements(tableId, elements) {
619
619
  return elements.filter(e => e.tableId === tableId && ['cell', 'column', 'row'].indexOf(e.type) !== -1);
620
620
  }
621
621
  static updateCellText(tableElement, childElements, rowIndex, columnIndex, text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/document-table",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Library for document tables",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",