@kopexa/extension-table 17.0.45 → 17.1.0
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/dist/chunk-2NBDRVYL.mjs +428 -0
- package/dist/chunk-3SWV7BGP.mjs +638 -0
- package/dist/chunk-4QSZXHZO.mjs +276 -0
- package/dist/chunk-5B5XIL2G.mjs +457 -0
- package/dist/chunk-62B2LU2Q.mjs +603 -0
- package/dist/chunk-6FHFDGJO.mjs +251 -0
- package/dist/chunk-CD62W5C3.mjs +165 -0
- package/dist/chunk-CN73TYHV.mjs +190 -0
- package/dist/chunk-CPDSPBS6.mjs +276 -0
- package/dist/chunk-E7W2KRZG.mjs +49 -0
- package/dist/chunk-G6GHC2WO.mjs +276 -0
- package/dist/chunk-GBTQVIN5.mjs +174 -0
- package/dist/chunk-GDEXPEW5.mjs +52 -0
- package/dist/chunk-GQLZBIWF.mjs +198 -0
- package/dist/chunk-IRJ6RAVQ.mjs +116 -0
- package/dist/chunk-J4VOSZCZ.mjs +59 -0
- package/dist/chunk-KIYFW7MP.mjs +122 -0
- package/dist/chunk-KTRZVXJC.mjs +306 -0
- package/dist/chunk-LUA32VH4.mjs +35 -0
- package/dist/{chunk-SNJF4UW6.mjs → chunk-MB52MZQ4.mjs} +7 -8
- package/dist/chunk-PTX5UYV6.mjs +10 -0
- package/dist/chunk-TEGO6KUS.mjs +96 -0
- package/dist/chunk-VIBVRWS4.mjs +197 -0
- package/dist/chunk-VQV757EG.mjs +113 -0
- package/dist/chunk-XRNQXADK.mjs +149 -0
- package/dist/chunk-ZVPJDJBO.mjs +134 -0
- package/dist/{kit.d.mts → extensions/kit.d.mts} +1 -3
- package/dist/{kit.d.ts → extensions/kit.d.ts} +1 -3
- package/dist/extensions/kit.js +1041 -0
- package/dist/extensions/kit.mjs +15 -0
- package/dist/extensions/table-cell.d.mts +6 -0
- package/dist/extensions/table-cell.d.ts +6 -0
- package/dist/extensions/table-cell.js +70 -0
- package/dist/{table/icons.mjs → extensions/table-cell.mjs} +3 -3
- package/dist/extensions/table-handle-plugin.d.mts +46 -0
- package/dist/extensions/table-handle-plugin.d.ts +46 -0
- package/dist/extensions/table-handle-plugin.js +1100 -0
- package/dist/extensions/table-handle-plugin.mjs +18 -0
- package/dist/extensions/table-handle.d.mts +19 -0
- package/dist/extensions/table-handle.d.ts +19 -0
- package/dist/extensions/table-handle.js +865 -0
- package/dist/extensions/table-handle.mjs +11 -0
- package/dist/{table → extensions}/table.d.mts +2 -2
- package/dist/{table → extensions}/table.d.ts +2 -2
- package/dist/extensions/table.js +138 -0
- package/dist/extensions/table.mjs +9 -0
- package/dist/hooks/use-resize-overlay.d.mts +5 -0
- package/dist/hooks/use-resize-overlay.d.ts +5 -0
- package/dist/hooks/use-resize-overlay.js +83 -0
- package/dist/hooks/use-resize-overlay.mjs +9 -0
- package/dist/hooks/use-table-add-row-column.d.mts +57 -0
- package/dist/hooks/use-table-add-row-column.d.ts +57 -0
- package/dist/hooks/use-table-add-row-column.js +551 -0
- package/dist/hooks/use-table-add-row-column.mjs +11 -0
- package/dist/hooks/use-table-align-cell.d.mts +148 -0
- package/dist/hooks/use-table-align-cell.d.ts +148 -0
- package/dist/hooks/use-table-align-cell.js +655 -0
- package/dist/hooks/use-table-align-cell.mjs +13 -0
- package/dist/hooks/use-table-clear-row-column-content.d.mts +103 -0
- package/dist/hooks/use-table-clear-row-column-content.d.ts +103 -0
- package/dist/hooks/use-table-clear-row-column-content.js +681 -0
- package/dist/hooks/use-table-clear-row-column-content.mjs +11 -0
- package/dist/hooks/use-table-delete-row-column.d.mts +87 -0
- package/dist/hooks/use-table-delete-row-column.d.ts +87 -0
- package/dist/hooks/use-table-delete-row-column.js +459 -0
- package/dist/hooks/use-table-delete-row-column.mjs +11 -0
- package/dist/hooks/use-table-duplicate-row-column.d.mts +49 -0
- package/dist/hooks/use-table-duplicate-row-column.d.ts +49 -0
- package/dist/hooks/use-table-duplicate-row-column.js +758 -0
- package/dist/hooks/use-table-duplicate-row-column.mjs +11 -0
- package/dist/hooks/use-table-handle-positioning.d.mts +42 -0
- package/dist/hooks/use-table-handle-positioning.d.ts +42 -0
- package/dist/hooks/use-table-handle-positioning.js +190 -0
- package/dist/hooks/use-table-handle-positioning.mjs +10 -0
- package/dist/hooks/use-table-handle-state.d.mts +28 -0
- package/dist/hooks/use-table-handle-state.d.ts +28 -0
- package/dist/hooks/use-table-handle-state.js +76 -0
- package/dist/hooks/use-table-handle-state.mjs +9 -0
- package/dist/hooks/use-table-header-row-column.d.mts +58 -0
- package/dist/hooks/use-table-header-row-column.d.ts +58 -0
- package/dist/hooks/use-table-header-row-column.js +603 -0
- package/dist/hooks/use-table-header-row-column.mjs +13 -0
- package/dist/hooks/use-table-merge-split-cell.d.mts +123 -0
- package/dist/hooks/use-table-merge-split-cell.d.ts +123 -0
- package/dist/hooks/use-table-merge-split-cell.js +331 -0
- package/dist/hooks/use-table-merge-split-cell.mjs +12 -0
- package/dist/hooks/use-table-move-row-column.d.mts +101 -0
- package/dist/hooks/use-table-move-row-column.d.ts +101 -0
- package/dist/hooks/use-table-move-row-column.js +621 -0
- package/dist/hooks/use-table-move-row-column.mjs +13 -0
- package/dist/hooks/use-table-sort-row-column.d.mts +118 -0
- package/dist/hooks/use-table-sort-row-column.d.ts +118 -0
- package/dist/hooks/use-table-sort-row-column.js +623 -0
- package/dist/hooks/use-table-sort-row-column.mjs +13 -0
- package/dist/index.d.mts +18 -5
- package/dist/index.d.ts +18 -5
- package/dist/index.js +4939 -910
- package/dist/index.mjs +43 -18
- package/dist/lib/constants.d.mts +4 -0
- package/dist/lib/constants.d.ts +4 -0
- package/dist/{table-row.js → lib/constants.js} +10 -10
- package/dist/lib/constants.mjs +10 -0
- package/dist/lib/create-image.d.mts +12 -0
- package/dist/lib/create-image.d.ts +12 -0
- package/dist/lib/create-image.js +221 -0
- package/dist/lib/create-image.mjs +8 -0
- package/dist/lib/table-utils.d.mts +263 -0
- package/dist/lib/table-utils.d.ts +263 -0
- package/dist/lib/table-utils.js +488 -0
- package/dist/lib/table-utils.mjs +40 -0
- package/dist/messages.d.mts +174 -0
- package/dist/messages.d.ts +174 -0
- package/dist/messages.js +213 -0
- package/dist/{table-row.mjs → messages.mjs} +3 -3
- package/dist/ui/table-alignment-menu.d.mts +25 -0
- package/dist/ui/table-alignment-menu.d.ts +25 -0
- package/dist/ui/table-alignment-menu.js +758 -0
- package/dist/ui/table-alignment-menu.mjs +14 -0
- package/dist/ui/table-cell-handle-menu.d.mts +12 -0
- package/dist/ui/table-cell-handle-menu.d.ts +12 -0
- package/dist/ui/table-cell-handle-menu.js +1317 -0
- package/dist/ui/table-cell-handle-menu.mjs +17 -0
- package/dist/ui/table-handle-menu.d.mts +23 -0
- package/dist/ui/table-handle-menu.d.ts +23 -0
- package/dist/ui/table-handle-menu.js +2598 -0
- package/dist/ui/table-handle-menu.mjs +21 -0
- package/dist/ui/table-handle.d.mts +48 -0
- package/dist/ui/table-handle.d.ts +48 -0
- package/dist/ui/table-handle.js +3126 -0
- package/dist/ui/table-handle.mjs +22 -0
- package/dist/ui/table-selection-overlay.d.mts +14 -0
- package/dist/ui/table-selection-overlay.d.ts +14 -0
- package/dist/ui/table-selection-overlay.js +553 -0
- package/dist/ui/table-selection-overlay.mjs +11 -0
- package/package.json +16 -12
- package/dist/chunk-6NY5XWR7.mjs +0 -11
- package/dist/chunk-74O2ORPO.mjs +0 -81
- package/dist/chunk-7NEAULTF.mjs +0 -58
- package/dist/chunk-ARSGMUXM.mjs +0 -116
- package/dist/chunk-BAQU2YT5.mjs +0 -41
- package/dist/chunk-DF6ZMJLL.mjs +0 -40
- package/dist/chunk-FKOIW52J.mjs +0 -11
- package/dist/chunk-GMNNSVR3.mjs +0 -540
- package/dist/chunk-IMRHHVEF.mjs +0 -113
- package/dist/chunk-NTWXQSW6.mjs +0 -13
- package/dist/chunk-OPDSKEZR.mjs +0 -93
- package/dist/chunk-YSUOVRY4.mjs +0 -1
- package/dist/kit.js +0 -1024
- package/dist/kit.mjs +0 -19
- package/dist/table/icons.d.mts +0 -13
- package/dist/table/icons.d.ts +0 -13
- package/dist/table/icons.js +0 -81
- package/dist/table/index.d.mts +0 -3
- package/dist/table/index.d.ts +0 -3
- package/dist/table/index.js +0 -809
- package/dist/table/index.mjs +0 -15
- package/dist/table/table-controls.d.mts +0 -15
- package/dist/table/table-controls.d.ts +0 -15
- package/dist/table/table-controls.js +0 -131
- package/dist/table/table-controls.mjs +0 -8
- package/dist/table/table-view.d.mts +0 -43
- package/dist/table/table-view.d.ts +0 -43
- package/dist/table/table-view.js +0 -610
- package/dist/table/table-view.mjs +0 -12
- package/dist/table/table.js +0 -807
- package/dist/table/table.mjs +0 -14
- package/dist/table/utilities/col-style.d.mts +0 -3
- package/dist/table/utilities/col-style.d.ts +0 -3
- package/dist/table/utilities/col-style.js +0 -36
- package/dist/table/utilities/col-style.mjs +0 -8
- package/dist/table/utilities/delete-table-when-all-cells-selected.d.mts +0 -5
- package/dist/table/utilities/delete-table-when-all-cells-selected.d.ts +0 -5
- package/dist/table/utilities/delete-table-when-all-cells-selected.js +0 -66
- package/dist/table/utilities/delete-table-when-all-cells-selected.mjs +0 -40
- package/dist/table/utilities/get-table-node-types.d.mts +0 -7
- package/dist/table/utilities/get-table-node-types.d.ts +0 -7
- package/dist/table/utilities/get-table-node-types.js +0 -44
- package/dist/table/utilities/get-table-node-types.mjs +0 -21
- package/dist/table/utilities/insert-line-above-table-action.d.mts +0 -5
- package/dist/table/utilities/insert-line-above-table-action.d.ts +0 -5
- package/dist/table/utilities/insert-line-above-table-action.js +0 -64
- package/dist/table/utilities/insert-line-above-table-action.mjs +0 -8
- package/dist/table/utilities/insert-line-below-table-action.d.mts +0 -5
- package/dist/table/utilities/insert-line-below-table-action.d.ts +0 -5
- package/dist/table/utilities/insert-line-below-table-action.js +0 -63
- package/dist/table/utilities/insert-line-below-table-action.mjs +0 -8
- package/dist/table/utilities/is-cell-selection.d.mts +0 -5
- package/dist/table/utilities/is-cell-selection.d.ts +0 -5
- package/dist/table/utilities/is-cell-selection.js +0 -34
- package/dist/table/utilities/is-cell-selection.mjs +0 -8
- package/dist/table-cell.d.mts +0 -8
- package/dist/table-cell.d.ts +0 -8
- package/dist/table-cell.js +0 -139
- package/dist/table-cell.mjs +0 -8
- package/dist/table-header.d.mts +0 -6
- package/dist/table-header.d.ts +0 -6
- package/dist/table-header.js +0 -104
- package/dist/table-header.mjs +0 -8
- package/dist/table-row.d.mts +0 -6
- package/dist/table-row.d.ts +0 -6
package/dist/table/index.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../chunk-YSUOVRY4.mjs";
|
|
3
|
-
import {
|
|
4
|
-
Table
|
|
5
|
-
} from "../chunk-OPDSKEZR.mjs";
|
|
6
|
-
import "../chunk-GMNNSVR3.mjs";
|
|
7
|
-
import "../chunk-NTWXQSW6.mjs";
|
|
8
|
-
import "../chunk-BAQU2YT5.mjs";
|
|
9
|
-
import "../chunk-DF6ZMJLL.mjs";
|
|
10
|
-
import "../chunk-7NEAULTF.mjs";
|
|
11
|
-
import "../chunk-IMRHHVEF.mjs";
|
|
12
|
-
import "../chunk-WKV76XOR.mjs";
|
|
13
|
-
export {
|
|
14
|
-
Table
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Plugin, PluginKey, Transaction } from '@tiptap/pm/state';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a table controls plugin with a unique key per instance.
|
|
5
|
-
* This prevents "duplicate plugin key" errors when multiple editors are mounted.
|
|
6
|
-
*/
|
|
7
|
-
declare function tableControls(): Plugin<TableControlsState>;
|
|
8
|
-
declare class TableControlsState {
|
|
9
|
-
values: any;
|
|
10
|
-
private key;
|
|
11
|
-
constructor(key: PluginKey, props?: {});
|
|
12
|
-
apply(tr: Transaction): this;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { tableControls };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Plugin, PluginKey, Transaction } from '@tiptap/pm/state';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a table controls plugin with a unique key per instance.
|
|
5
|
-
* This prevents "duplicate plugin key" errors when multiple editors are mounted.
|
|
6
|
-
*/
|
|
7
|
-
declare function tableControls(): Plugin<TableControlsState>;
|
|
8
|
-
declare class TableControlsState {
|
|
9
|
-
values: any;
|
|
10
|
-
private key;
|
|
11
|
-
constructor(key: PluginKey, props?: {});
|
|
12
|
-
apply(tr: Transaction): this;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { tableControls };
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
|
-
|
|
23
|
-
// src/table/table-controls.ts
|
|
24
|
-
var table_controls_exports = {};
|
|
25
|
-
__export(table_controls_exports, {
|
|
26
|
-
tableControls: () => tableControls
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(table_controls_exports);
|
|
29
|
-
var import_core = require("@tiptap/core");
|
|
30
|
-
var import_state = require("@tiptap/pm/state");
|
|
31
|
-
var import_view = require("@tiptap/pm/view");
|
|
32
|
-
function tableControls() {
|
|
33
|
-
const key = new import_state.PluginKey("tableControls");
|
|
34
|
-
return new import_state.Plugin({
|
|
35
|
-
key,
|
|
36
|
-
state: {
|
|
37
|
-
init() {
|
|
38
|
-
return new TableControlsState(key);
|
|
39
|
-
},
|
|
40
|
-
apply(tr, prev) {
|
|
41
|
-
return prev.apply(tr);
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
props: {
|
|
45
|
-
handleDOMEvents: {
|
|
46
|
-
mousemove: (view, event) => {
|
|
47
|
-
var _a;
|
|
48
|
-
const pluginState = key.getState(view.state);
|
|
49
|
-
if (!event.target.closest(".table-wrapper") && pluginState.values.hoveredTable) {
|
|
50
|
-
return view.dispatch(
|
|
51
|
-
view.state.tr.setMeta(key, {
|
|
52
|
-
setHoveredTable: null,
|
|
53
|
-
setHoveredCell: null
|
|
54
|
-
})
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
const pos = view.posAtCoords({
|
|
58
|
-
left: event.clientX,
|
|
59
|
-
top: event.clientY
|
|
60
|
-
});
|
|
61
|
-
if (!pos || pos.pos < 0 || pos.pos > view.state.doc.content.size)
|
|
62
|
-
return;
|
|
63
|
-
const table = (0, import_core.findParentNode)((node) => node.type.name === "table")(
|
|
64
|
-
import_state.TextSelection.create(view.state.doc, pos.pos)
|
|
65
|
-
);
|
|
66
|
-
const cell = (0, import_core.findParentNode)(
|
|
67
|
-
(node) => node.type.name === "tableCell" || node.type.name === "tableHeader"
|
|
68
|
-
)(import_state.TextSelection.create(view.state.doc, pos.pos));
|
|
69
|
-
if (!table || !cell) return;
|
|
70
|
-
if (((_a = pluginState.values.hoveredCell) == null ? void 0 : _a.pos) !== cell.pos) {
|
|
71
|
-
return view.dispatch(
|
|
72
|
-
view.state.tr.setMeta(key, {
|
|
73
|
-
setHoveredTable: table,
|
|
74
|
-
setHoveredCell: cell
|
|
75
|
-
})
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
decorations: (state) => {
|
|
81
|
-
const pluginState = key.getState(state);
|
|
82
|
-
if (!pluginState) {
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
const { hoveredTable, hoveredCell } = pluginState.values;
|
|
86
|
-
const docSize = state.doc.content.size;
|
|
87
|
-
if (hoveredTable && hoveredCell && hoveredTable.pos < docSize && hoveredCell.pos < docSize) {
|
|
88
|
-
const decorations = [
|
|
89
|
-
import_view.Decoration.node(
|
|
90
|
-
hoveredTable.pos,
|
|
91
|
-
hoveredTable.pos + hoveredTable.node.nodeSize,
|
|
92
|
-
{},
|
|
93
|
-
{
|
|
94
|
-
hoveredTable,
|
|
95
|
-
hoveredCell
|
|
96
|
-
}
|
|
97
|
-
)
|
|
98
|
-
];
|
|
99
|
-
return import_view.DecorationSet.create(state.doc, decorations);
|
|
100
|
-
}
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
var TableControlsState = class {
|
|
107
|
-
constructor(key, props = {}) {
|
|
108
|
-
__publicField(this, "values");
|
|
109
|
-
__publicField(this, "key");
|
|
110
|
-
this.key = key;
|
|
111
|
-
this.values = {
|
|
112
|
-
hoveredTable: null,
|
|
113
|
-
hoveredCell: null,
|
|
114
|
-
...props
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
apply(tr) {
|
|
118
|
-
const actions = tr.getMeta(this.key);
|
|
119
|
-
if ((actions == null ? void 0 : actions.setHoveredTable) !== void 0) {
|
|
120
|
-
this.values.hoveredTable = actions.setHoveredTable;
|
|
121
|
-
}
|
|
122
|
-
if ((actions == null ? void 0 : actions.setHoveredCell) !== void 0) {
|
|
123
|
-
this.values.hoveredCell = actions.setHoveredCell;
|
|
124
|
-
}
|
|
125
|
-
return this;
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
129
|
-
0 && (module.exports = {
|
|
130
|
-
tableControls
|
|
131
|
-
});
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { Node, ResolvedPos } from '@tiptap/pm/model';
|
|
3
|
-
import { TableMap } from '@tiptap/pm/tables';
|
|
4
|
-
import { NodeView, Decoration } from '@tiptap/pm/view';
|
|
5
|
-
|
|
6
|
-
declare function updateColumns(node: Node, colgroup: HTMLElement, table: HTMLElement, cellMinWidth: number, overrideCol?: number, overrideValue?: number): void;
|
|
7
|
-
declare class TableView implements NodeView {
|
|
8
|
-
node: Node;
|
|
9
|
-
cellMinWidth: number;
|
|
10
|
-
decorations: Decoration[];
|
|
11
|
-
editor: Editor;
|
|
12
|
-
getPos: () => number;
|
|
13
|
-
hoveredCell: ResolvedPos | null;
|
|
14
|
-
map: TableMap;
|
|
15
|
-
root: HTMLElement;
|
|
16
|
-
table: HTMLTableElement;
|
|
17
|
-
colgroup: HTMLTableColElement;
|
|
18
|
-
tbody: HTMLElement;
|
|
19
|
-
rowsControl?: HTMLElement | null;
|
|
20
|
-
columnsControl?: HTMLElement | null;
|
|
21
|
-
columnsToolbox?: {
|
|
22
|
-
show: () => void;
|
|
23
|
-
hide: () => void;
|
|
24
|
-
destroy: () => void;
|
|
25
|
-
} | null;
|
|
26
|
-
rowsToolbox?: {
|
|
27
|
-
show: () => void;
|
|
28
|
-
hide: () => void;
|
|
29
|
-
destroy: () => void;
|
|
30
|
-
} | null;
|
|
31
|
-
controls?: HTMLElement;
|
|
32
|
-
get dom(): HTMLElement;
|
|
33
|
-
get contentDOM(): HTMLElement;
|
|
34
|
-
constructor(node: Node, cellMinWidth: number, decorations: Decoration[], editor: Editor, getPos: () => number);
|
|
35
|
-
update(node: Node, decorations: readonly Decoration[]): boolean;
|
|
36
|
-
render(): void;
|
|
37
|
-
ignoreMutation(): boolean;
|
|
38
|
-
updateControls(): void;
|
|
39
|
-
selectColumn(): void;
|
|
40
|
-
selectRow(): void;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { TableView, updateColumns };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { Node, ResolvedPos } from '@tiptap/pm/model';
|
|
3
|
-
import { TableMap } from '@tiptap/pm/tables';
|
|
4
|
-
import { NodeView, Decoration } from '@tiptap/pm/view';
|
|
5
|
-
|
|
6
|
-
declare function updateColumns(node: Node, colgroup: HTMLElement, table: HTMLElement, cellMinWidth: number, overrideCol?: number, overrideValue?: number): void;
|
|
7
|
-
declare class TableView implements NodeView {
|
|
8
|
-
node: Node;
|
|
9
|
-
cellMinWidth: number;
|
|
10
|
-
decorations: Decoration[];
|
|
11
|
-
editor: Editor;
|
|
12
|
-
getPos: () => number;
|
|
13
|
-
hoveredCell: ResolvedPos | null;
|
|
14
|
-
map: TableMap;
|
|
15
|
-
root: HTMLElement;
|
|
16
|
-
table: HTMLTableElement;
|
|
17
|
-
colgroup: HTMLTableColElement;
|
|
18
|
-
tbody: HTMLElement;
|
|
19
|
-
rowsControl?: HTMLElement | null;
|
|
20
|
-
columnsControl?: HTMLElement | null;
|
|
21
|
-
columnsToolbox?: {
|
|
22
|
-
show: () => void;
|
|
23
|
-
hide: () => void;
|
|
24
|
-
destroy: () => void;
|
|
25
|
-
} | null;
|
|
26
|
-
rowsToolbox?: {
|
|
27
|
-
show: () => void;
|
|
28
|
-
hide: () => void;
|
|
29
|
-
destroy: () => void;
|
|
30
|
-
} | null;
|
|
31
|
-
controls?: HTMLElement;
|
|
32
|
-
get dom(): HTMLElement;
|
|
33
|
-
get contentDOM(): HTMLElement;
|
|
34
|
-
constructor(node: Node, cellMinWidth: number, decorations: Decoration[], editor: Editor, getPos: () => number);
|
|
35
|
-
update(node: Node, decorations: readonly Decoration[]): boolean;
|
|
36
|
-
render(): void;
|
|
37
|
-
ignoreMutation(): boolean;
|
|
38
|
-
updateControls(): void;
|
|
39
|
-
selectColumn(): void;
|
|
40
|
-
selectRow(): void;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { TableView, updateColumns };
|