@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.
@@ -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 default class TableColumnReorder extends Plugin<Table> {
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
@@ -1,5 +1,5 @@
1
- import Plugin from '../plugin/plugin.js';
2
- export default class TableColumnReorder extends Plugin {
1
+ import { Plugin } from '../plugin/plugin.js';
2
+ export class TableColumnReorder extends Plugin {
3
3
  reorderCells;
4
4
  constructor(table) {
5
5
  super(table);
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 default class TableEditLock extends Plugin<Table> {
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 default class TableEditLock extends Plugin {
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 default class TableEditMove extends Plugin<Table> {
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
@@ -1,5 +1,5 @@
1
- import Plugin from '../../plugin/plugin.js';
2
- export default class TableEditMove extends Plugin {
1
+ import { Plugin } from '../../plugin/plugin.js';
2
+ export class TableEditMove extends Plugin {
3
3
  tableEdit;
4
4
  constructor(table) {
5
5
  super(table);
@@ -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 default class TableEditFreezeHide extends Plugin<Table> {
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);
@@ -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 default class TableEditFreezeHide extends Plugin {
7
+ export class TableEditFreezeHide extends Plugin {
8
8
  tableFreeze;
9
9
  tableEdit;
10
10
  constructor(table) {
@@ -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 default class TableEditFreezeScroll extends Plugin<Table> {
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;
@@ -1,5 +1,5 @@
1
- import Plugin from '../../plugin/plugin.js';
2
- export default class TableEditFreezeScroll extends Plugin {
1
+ import { Plugin } from '../../plugin/plugin.js';
2
+ export class TableEditFreezeScroll extends Plugin {
3
3
  tableFreeze;
4
4
  constructor(table) {
5
5
  super(table);
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 default class TableEdit extends Plugin<Table> {
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 default class TableEdit extends Plugin {
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 default class TableFreezeInheritBackground extends TableFreeze {
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 default class TableFreezeInheritBackground extends TableFreeze {
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 default class TableFreezeInheritBorder extends Plugin<Table> {
8
+ export declare class TableFreezeInheritBorder extends Plugin<Table> {
9
9
  tableStyle: CSSStyleDeclaration;
10
10
  tableFreeze: TableFreeze;
11
11
  constructor(table: Table);
@@ -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 default class TableFreezeInheritBorder extends Plugin {
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 default class TableFreeze extends Plugin<Table> {
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
@@ -1,5 +1,5 @@
1
- import Plugin from '../plugin/plugin.js';
2
- export default class TableFreeze extends Plugin {
1
+ import { Plugin } from '../plugin/plugin.js';
2
+ export class TableFreeze extends Plugin {
3
3
  columns;
4
4
  full;
5
5
  leftColumnCount;
package/package.json CHANGED
@@ -50,5 +50,5 @@
50
50
  },
51
51
  "type": "module",
52
52
  "types": "./table.d.ts",
53
- "version": "0.0.12"
53
+ "version": "0.0.13"
54
54
  }
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 default class Table extends HasPlugins<Table> {
6
+ export declare class Table extends HasPlugins<Table> {
7
7
  readonly element: HTMLTableElement;
8
8
  readonly id: number;
9
9
  readonly selector: string;
package/table.js CHANGED
@@ -24,7 +24,7 @@ function nextTableId(table) {
24
24
  }
25
25
  return tableCounter;
26
26
  }
27
- export default class Table extends HasPlugins {
27
+ export class Table extends HasPlugins {
28
28
  element;
29
29
  id;
30
30
  selector;