forked from zicloud/bigscreen_admin
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
861 B
TypeScript
28 lines
861 B
TypeScript
import Delta from 'quill-delta';
|
|
import type { Op } from 'quill-delta';
|
|
import Module from '../core/module.js';
|
|
export type CellData = {
|
|
content?: Delta['ops'];
|
|
attributes?: Record<string, unknown>;
|
|
};
|
|
export type TableRowColumnOp = Omit<Op, 'insert'> & {
|
|
insert?: {
|
|
id: string;
|
|
};
|
|
};
|
|
export interface TableData {
|
|
rows?: Delta['ops'];
|
|
columns?: Delta['ops'];
|
|
cells?: Record<string, CellData>;
|
|
}
|
|
export declare const composePosition: (delta: Delta, index: number) => number | null;
|
|
export declare const tableHandler: {
|
|
compose(a: TableData, b: TableData, keepNull?: boolean): TableData;
|
|
transform(a: TableData, b: TableData, priority: boolean): TableData;
|
|
invert(change: TableData, base: TableData): TableData;
|
|
};
|
|
declare class TableEmbed extends Module {
|
|
static register(): void;
|
|
}
|
|
export default TableEmbed;
|