@worktile/theia 16.2.7 → 16.2.9
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/editor.module.d.ts +2 -2
- package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +4 -4
- package/esm2022/plugins/table/components/table.component.mjs +8 -3
- package/esm2022/plugins/table/table.types.mjs +1 -1
- package/esm2022/queries/is-empty-content-filter.mjs +2 -3
- package/fesm2022/worktile-theia.mjs +11 -7
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/table/components/insert-mark/insert-mark.component.d.ts +1 -1
- package/plugins/table/table.types.d.ts +1 -0
- package/queries/is-range-across-blocks.d.ts +1 -1
|
@@ -2444,8 +2444,7 @@ const isEmptyContent = (children) => {
|
|
|
2444
2444
|
};
|
|
2445
2445
|
|
|
2446
2446
|
const isEmptyContentByFilter = (editor, rules) => {
|
|
2447
|
-
|
|
2448
|
-
if (!children || children.length < 1) {
|
|
2447
|
+
if (!editor?.children || editor?.children.length < 1) {
|
|
2449
2448
|
return true;
|
|
2450
2449
|
}
|
|
2451
2450
|
const defaultTypes = [ElementKinds.code, ElementKinds.table, ElementKinds.image];
|
|
@@ -13199,7 +13198,7 @@ class TheInsertMarkComponent {
|
|
|
13199
13198
|
this.destroy$?.next();
|
|
13200
13199
|
this.destroy$?.complete();
|
|
13201
13200
|
}
|
|
13202
|
-
|
|
13201
|
+
insert(event) {
|
|
13203
13202
|
event.preventDefault();
|
|
13204
13203
|
event.stopPropagation();
|
|
13205
13204
|
if (this.disabled) {
|
|
@@ -13251,13 +13250,13 @@ class TheInsertMarkComponent {
|
|
|
13251
13250
|
}
|
|
13252
13251
|
}
|
|
13253
13252
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: TheInsertMarkComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13254
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.4", type: TheInsertMarkComponent, selector: "the-table-insert-mark", inputs: { type: "type", at: "at", tableStore: "tableStore", parentElement: "parentElement" }, host: { classAttribute: "the-table-insert-mark" }, ngImport: i0, template: "<div\n [thyTooltip]=\"!disabled && tooltipContent\"\n class=\"the-table-controls-insert-wrapper\"\n [ngClass]=\"{ disabled: disabled }\"\n contenteditable=\"false\"\n (
|
|
13253
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.4", type: TheInsertMarkComponent, selector: "the-table-insert-mark", inputs: { type: "type", at: "at", tableStore: "tableStore", parentElement: "parentElement" }, host: { classAttribute: "the-table-insert-mark" }, ngImport: i0, template: "<div\n [thyTooltip]=\"!disabled && tooltipContent\"\n class=\"the-table-controls-insert-wrapper\"\n [ngClass]=\"{ disabled: disabled }\"\n contenteditable=\"false\"\n (pointerdown)=\"insert($event)\"\n (mouseenter)=\"onMouseEnter($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n <div\n class=\"the-table-controls-insert-line\"\n *ngIf=\"dotWrapperHovered\"\n [attr.data-dot-type]=\"type\"\n [ngStyle]=\"{ height: type === 'column' && insertLength, width: type === 'row' && insertLength }\"\n ></div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] }); }
|
|
13255
13254
|
}
|
|
13256
13255
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.4", ngImport: i0, type: TheInsertMarkComponent, decorators: [{
|
|
13257
13256
|
type: Component,
|
|
13258
13257
|
args: [{ selector: 'the-table-insert-mark', host: {
|
|
13259
13258
|
class: 'the-table-insert-mark'
|
|
13260
|
-
}, template: "<div\n [thyTooltip]=\"!disabled && tooltipContent\"\n class=\"the-table-controls-insert-wrapper\"\n [ngClass]=\"{ disabled: disabled }\"\n contenteditable=\"false\"\n (
|
|
13259
|
+
}, template: "<div\n [thyTooltip]=\"!disabled && tooltipContent\"\n class=\"the-table-controls-insert-wrapper\"\n [ngClass]=\"{ disabled: disabled }\"\n contenteditable=\"false\"\n (pointerdown)=\"insert($event)\"\n (mouseenter)=\"onMouseEnter($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n <div\n class=\"the-table-controls-insert-line\"\n *ngIf=\"dotWrapperHovered\"\n [attr.data-dot-type]=\"type\"\n [ngStyle]=\"{ height: type === 'column' && insertLength, width: type === 'row' && insertLength }\"\n ></div>\n</div>\n" }]
|
|
13261
13260
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { type: [{
|
|
13262
13261
|
type: Input
|
|
13263
13262
|
}], at: [{
|
|
@@ -13363,8 +13362,13 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
13363
13362
|
.subscribe(cells => {
|
|
13364
13363
|
this.selectedCells = cells;
|
|
13365
13364
|
this.isSelectedAllCell = isSelectedAllCell(this.editor, this.tableStore.getSelectedCellPositions());
|
|
13366
|
-
if (!cells.length
|
|
13367
|
-
this.
|
|
13365
|
+
if (!cells.length) {
|
|
13366
|
+
if (this.tablePluginOptions.deselect && typeof this.tablePluginOptions.deselect === 'function') {
|
|
13367
|
+
this.tablePluginOptions.deselect(this.editor);
|
|
13368
|
+
}
|
|
13369
|
+
if (this.tableService.isOpened) {
|
|
13370
|
+
this.tableService.closeToolbar();
|
|
13371
|
+
}
|
|
13368
13372
|
}
|
|
13369
13373
|
});
|
|
13370
13374
|
}
|