@itrocks/table 0.0.12 → 0.0.13
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.
- package/column-reorder.d.ts +3 -3
- package/column-reorder.js +2 -2
- package/edit/lock.d.ts +3 -3
- package/edit/lock.js +2 -2
- package/edit/move.d.ts +4 -4
- package/edit/move.js +2 -2
- package/edit-freeze/hide.d.ts +5 -5
- package/edit-freeze/hide.js +2 -2
- package/edit-freeze/scroll.d.ts +4 -4
- package/edit-freeze/scroll.js +2 -2
- package/edit.d.ts +3 -3
- package/edit.js +3 -3
- package/freeze/inherit-background.d.ts +3 -3
- package/freeze/inherit-background.js +2 -2
- package/freeze/inherit-border.d.ts +4 -4
- package/freeze/inherit-border.js +2 -2
- package/freeze.d.ts +3 -3
- package/freeze.js +2 -2
- package/package.json +1 -1
- package/table.d.ts +1 -1
- package/table.js +1 -1
package/column-reorder.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Plugin from '../node_modules/@itrocks/plugin/plugin.js';
|
|
1
|
+
import { Plugin } from '../node_modules/@itrocks/plugin/plugin.js';
|
|
2
2
|
import { HTMLTableFreezeElement } from './freeze.js';
|
|
3
|
-
import Table from './table.js';
|
|
4
|
-
export
|
|
3
|
+
import { Table } from './table.js';
|
|
4
|
+
export declare class TableColumnReorder extends Plugin<Table> {
|
|
5
5
|
reorderCells: NodeListOf<HTMLTableFreezeElement>;
|
|
6
6
|
constructor(table: Table);
|
|
7
7
|
protected getReorderCells(): NodeListOf<HTMLTableFreezeElement>;
|
package/column-reorder.js
CHANGED
package/edit/lock.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Plugin from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
2
|
-
import Table from '../table.js';
|
|
1
|
+
import { Plugin } from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
2
|
+
import { Table } from '../table.js';
|
|
3
3
|
declare class Options {
|
|
4
4
|
nonEditableConditions: {
|
|
5
5
|
[index: string]: string;
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare class TableEditLock extends Plugin<Table> {
|
|
9
9
|
options: Options;
|
|
10
10
|
constructor(table: Table, options?: Partial<Options>);
|
|
11
11
|
colCell(cell: HTMLTableCellElement): HTMLTableCellElement | HTMLTableColElement;
|
package/edit/lock.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Plugin from '../../plugin/plugin.js';
|
|
1
|
+
import { Plugin } from '../../plugin/plugin.js';
|
|
2
2
|
class Options {
|
|
3
3
|
nonEditableConditions = {
|
|
4
4
|
'closest': 'tfoot, thead, [data-lock]',
|
|
5
5
|
'col': '[data-lock]'
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export class TableEditLock extends Plugin {
|
|
9
9
|
options = new Options;
|
|
10
10
|
constructor(table, options = {}) {
|
|
11
11
|
super(table);
|
package/edit/move.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLEditableElement } from '../../node_modules/@itrocks/contenteditable/contenteditable.js';
|
|
2
|
-
import Plugin from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
3
|
-
import TableEdit from '../edit.js';
|
|
4
|
-
import Table from '../table.js';
|
|
5
|
-
export
|
|
2
|
+
import { Plugin } from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
3
|
+
import { TableEdit } from '../edit.js';
|
|
4
|
+
import { Table } from '../table.js';
|
|
5
|
+
export declare class TableEditMove extends Plugin<Table> {
|
|
6
6
|
tableEdit: TableEdit;
|
|
7
7
|
constructor(table: Table);
|
|
8
8
|
selectNextColumn(): void;
|
package/edit/move.js
CHANGED
package/edit-freeze/hide.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLEditableElement } from '../../node_modules/@itrocks/contenteditable/contenteditable.js';
|
|
2
|
-
import Plugin from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
3
|
-
import TableEdit from '../edit.js';
|
|
4
|
-
import TableFreeze from '../freeze.js';
|
|
5
|
-
import Table from '../table.js';
|
|
6
|
-
export
|
|
2
|
+
import { Plugin } from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
3
|
+
import { TableEdit } from '../edit.js';
|
|
4
|
+
import { TableFreeze } from '../freeze.js';
|
|
5
|
+
import { Table } from '../table.js';
|
|
6
|
+
export declare class TableEditFreezeHide extends Plugin<Table> {
|
|
7
7
|
readonly tableFreeze: TableFreeze;
|
|
8
8
|
readonly tableEdit: TableEdit;
|
|
9
9
|
constructor(table: Table);
|
package/edit-freeze/hide.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Plugin from '../../plugin/plugin.js';
|
|
1
|
+
import { Plugin } from '../../plugin/plugin.js';
|
|
2
2
|
const zIndex = {
|
|
3
3
|
back: false,
|
|
4
4
|
editable: '',
|
|
5
5
|
selected: ''
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export class TableEditFreezeHide extends Plugin {
|
|
8
8
|
tableFreeze;
|
|
9
9
|
tableEdit;
|
|
10
10
|
constructor(table) {
|
package/edit-freeze/scroll.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Plugin from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
2
|
-
import TableFreeze from '../freeze.js';
|
|
3
|
-
import Table from '../table.js';
|
|
4
|
-
export
|
|
1
|
+
import { Plugin } from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
2
|
+
import { TableFreeze } from '../freeze.js';
|
|
3
|
+
import { Table } from '../table.js';
|
|
4
|
+
export declare class TableEditFreezeScroll extends Plugin<Table> {
|
|
5
5
|
tableFreeze: TableFreeze;
|
|
6
6
|
constructor(table: Table);
|
|
7
7
|
scrollToCell(cell: HTMLTableCellElement): HTMLTableCellElement;
|
package/edit-freeze/scroll.js
CHANGED
package/edit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLEditableElement } from '../node_modules/@itrocks/contenteditable/contenteditable.js';
|
|
2
|
-
import Plugin from '../node_modules/@itrocks/plugin/plugin.js';
|
|
3
|
-
import Table from './table.js';
|
|
2
|
+
import { Plugin } from '../node_modules/@itrocks/plugin/plugin.js';
|
|
3
|
+
import { Table } from './table.js';
|
|
4
4
|
export declare class RangeCopy {
|
|
5
5
|
commonAncestorContainer: Node;
|
|
6
6
|
endContainer: Node;
|
|
@@ -10,7 +10,7 @@ export declare class RangeCopy {
|
|
|
10
10
|
constructor(range: Range);
|
|
11
11
|
toRange(): Range;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export declare class TableEdit extends Plugin<Table> {
|
|
14
14
|
zIndex: string;
|
|
15
15
|
init(): void;
|
|
16
16
|
closestEditable(node: Node | Range | RangeCopy): HTMLDivElement;
|
package/edit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ContentEditable from '../contenteditable/contenteditable.js';
|
|
2
|
-
import Plugin from '../plugin/plugin.js';
|
|
1
|
+
import { ContentEditable } from '../contenteditable/contenteditable.js';
|
|
2
|
+
import { Plugin } from '../plugin/plugin.js';
|
|
3
3
|
let editable;
|
|
4
4
|
let selected;
|
|
5
5
|
let selectedStyle;
|
|
@@ -24,7 +24,7 @@ export class RangeCopy {
|
|
|
24
24
|
return range;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export class TableEdit extends Plugin {
|
|
28
28
|
zIndex = '2';
|
|
29
29
|
init() {
|
|
30
30
|
const table = this.of;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import TableFreeze from '../freeze.js';
|
|
2
|
-
import Table from '../table';
|
|
1
|
+
import { TableFreeze } from '../freeze.js';
|
|
2
|
+
import { Table } from '../table';
|
|
3
3
|
/**
|
|
4
4
|
* This plugin has no use and no effect if your table has border-collapse: collapse
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare class TableFreezeInheritBackground extends TableFreeze {
|
|
7
7
|
tableStyle: CSSStyleDeclaration;
|
|
8
8
|
constructor(table: Table);
|
|
9
9
|
init(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import TableFreeze from '../freeze.js';
|
|
1
|
+
import { TableFreeze } from '../freeze.js';
|
|
2
2
|
/**
|
|
3
3
|
* This plugin has no use and no effect if your table has border-collapse: collapse
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export class TableFreezeInheritBackground extends TableFreeze {
|
|
6
6
|
tableStyle;
|
|
7
7
|
constructor(table) {
|
|
8
8
|
super(table);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Plugin from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
2
|
-
import TableFreeze from '../freeze.js';
|
|
1
|
+
import { Plugin } from '../../node_modules/@itrocks/plugin/plugin.js';
|
|
2
|
+
import { TableFreeze } from '../freeze.js';
|
|
3
3
|
import { HTMLTableFreezeElement } from '../freeze.js';
|
|
4
|
-
import Table from '../table.js';
|
|
4
|
+
import { Table } from '../table.js';
|
|
5
5
|
/**
|
|
6
6
|
* This plugin has no use and no effect if your table has border-collapse: separate (default)
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export declare class TableFreezeInheritBorder extends Plugin<Table> {
|
|
9
9
|
tableStyle: CSSStyleDeclaration;
|
|
10
10
|
tableFreeze: TableFreeze;
|
|
11
11
|
constructor(table: Table);
|
package/freeze/inherit-border.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Plugin from '../../plugin/plugin.js';
|
|
1
|
+
import { Plugin } from '../../plugin/plugin.js';
|
|
2
2
|
/**
|
|
3
3
|
* This plugin has no use and no effect if your table has border-collapse: separate (default)
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export class TableFreezeInheritBorder extends Plugin {
|
|
6
6
|
tableStyle;
|
|
7
7
|
tableFreeze;
|
|
8
8
|
constructor(table) {
|
package/freeze.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import Plugin from '../node_modules/@itrocks/plugin/plugin.js';
|
|
2
|
-
import Table from './table.js';
|
|
1
|
+
import { Plugin } from '../node_modules/@itrocks/plugin/plugin.js';
|
|
2
|
+
import { Table } from './table.js';
|
|
3
3
|
export type HTMLTableFreezeElement = HTMLTableCellElement | HTMLTableColElement;
|
|
4
4
|
interface FullIndex {
|
|
5
5
|
column: string;
|
|
6
6
|
corner: string;
|
|
7
7
|
row: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export declare class TableFreeze extends Plugin<Table> {
|
|
10
10
|
columns: NodeListOf<HTMLTableFreezeElement>;
|
|
11
11
|
full?: FullIndex;
|
|
12
12
|
leftColumnCount: number;
|
package/freeze.js
CHANGED
package/package.json
CHANGED
package/table.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare function applyStyleSheets(): void;
|
|
|
3
3
|
export declare function garbageCollector(): void;
|
|
4
4
|
export declare function getTables(): Table[];
|
|
5
5
|
export type Options = PluginOptions<Table>;
|
|
6
|
-
export
|
|
6
|
+
export declare class Table extends HasPlugins<Table> {
|
|
7
7
|
readonly element: HTMLTableElement;
|
|
8
8
|
readonly id: number;
|
|
9
9
|
readonly selector: string;
|