quill-table-up 2.0.0 → 2.0.2
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/index.d.ts +26 -24
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -207,17 +207,23 @@ declare class ListItemOverride extends ListItemOverride_base {
|
|
|
207
207
|
static register(): void;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
declare
|
|
211
|
-
|
|
212
|
-
createBlock(attributes: Record<string, any>, refBlot?: Parchment.Blot): Parchment.ParentBlot;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
declare class TableBodyFormat extends ContainerFormat {
|
|
216
|
-
static blotName: "table-up-body";
|
|
210
|
+
declare class TableCellFormat extends ContainerFormat {
|
|
211
|
+
static blotName: "table-up-cell";
|
|
217
212
|
static tagName: string;
|
|
218
|
-
static
|
|
213
|
+
static className: string;
|
|
214
|
+
static allowDataAttrs: Set<string>;
|
|
215
|
+
static allowAttrs: Set<string>;
|
|
216
|
+
static allowStyle: Set<string>;
|
|
217
|
+
static isAllowStyle(str: string): boolean;
|
|
218
|
+
static create(value: TableCellValue): HTMLElement;
|
|
219
|
+
static formats(domNode: HTMLElement): Record<string, any>;
|
|
220
|
+
setFormatValue(name: string, value?: any): void;
|
|
219
221
|
get tableId(): string;
|
|
220
|
-
|
|
222
|
+
get rowId(): string;
|
|
223
|
+
get colId(): string;
|
|
224
|
+
get rowspan(): number;
|
|
225
|
+
get colspan(): number;
|
|
226
|
+
getCellInner(): TableCellInnerFormat;
|
|
221
227
|
checkMerge(): boolean;
|
|
222
228
|
optimize(context: Record<string, any>): void;
|
|
223
229
|
}
|
|
@@ -251,23 +257,17 @@ declare class TableCellInnerFormat extends ContainerFormat {
|
|
|
251
257
|
insertBefore(blot: Parchment.Blot, ref?: Parchment.Blot | null): void;
|
|
252
258
|
}
|
|
253
259
|
|
|
254
|
-
declare
|
|
255
|
-
|
|
260
|
+
declare const ScrollBlot: any;
|
|
261
|
+
declare class ScrollOverride extends ScrollBlot {
|
|
262
|
+
createBlock(attributes: Record<string, any>, refBlot?: Parchment.Blot): Parchment.ParentBlot | TableCellInnerFormat;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
declare class TableBodyFormat extends ContainerFormat {
|
|
266
|
+
static blotName: "table-up-body";
|
|
256
267
|
static tagName: string;
|
|
257
|
-
static
|
|
258
|
-
static allowDataAttrs: Set<string>;
|
|
259
|
-
static allowAttrs: Set<string>;
|
|
260
|
-
static allowStyle: Set<string>;
|
|
261
|
-
static isAllowStyle(str: string): boolean;
|
|
262
|
-
static create(value: TableCellValue): HTMLElement;
|
|
263
|
-
static formats(domNode: HTMLElement): Record<string, any>;
|
|
264
|
-
setFormatValue(name: string, value?: any): void;
|
|
268
|
+
static create(value: string): HTMLElement;
|
|
265
269
|
get tableId(): string;
|
|
266
|
-
|
|
267
|
-
get colId(): string;
|
|
268
|
-
get rowspan(): number;
|
|
269
|
-
get colspan(): number;
|
|
270
|
-
getCellInner(): TableCellInnerFormat;
|
|
270
|
+
insertRow(targetIndex: number): void;
|
|
271
271
|
checkMerge(): boolean;
|
|
272
272
|
optimize(context: Record<string, any>): void;
|
|
273
273
|
}
|
|
@@ -334,6 +334,7 @@ declare class TableRowFormat extends ContainerFormat {
|
|
|
334
334
|
declare class TableMainFormat extends ContainerFormat {
|
|
335
335
|
static blotName: "table-up-main";
|
|
336
336
|
static tagName: string;
|
|
337
|
+
static className: string;
|
|
337
338
|
static create(value: TableValue): HTMLElement;
|
|
338
339
|
constructor(scroll: any, domNode: HTMLElement, _value: any);
|
|
339
340
|
colWidthFillTable(): number | null | undefined;
|
|
@@ -869,6 +870,7 @@ declare class TableUp {
|
|
|
869
870
|
buildCustomSelect(customSelect: ((module: TableUp, picker: QuillThemePicker) => HTMLElement | Promise<HTMLElement>) | undefined, picker: QuillThemePicker): Promise<void>;
|
|
870
871
|
setCellAttrs(selectedTds: TableCellInnerFormat[], attr: string, value?: any, isStyle?: boolean): void;
|
|
871
872
|
insertTable(rows: number, columns: number): void;
|
|
873
|
+
calculateTableCellBorderWidth(): number;
|
|
872
874
|
fixUnusuaDeletelTable(tableBlot: TableMainFormat): void;
|
|
873
875
|
balanceTables(): void;
|
|
874
876
|
listenBalanceCells(): void;
|