@worktile/theia 2.2.3 → 2.2.4
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/bundles/worktile-theia.umd.js +20 -7
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/esm2015/plugins/indent/indent.editor.js +2 -2
- package/esm2015/plugins/indent/on-keydown-indent.js +4 -4
- package/esm2015/plugins/table/components/td/td.component.js +18 -5
- package/fesm2015/worktile-theia.js +21 -8
- package/fesm2015/worktile-theia.js.map +1 -1
- package/package.json +1 -1
|
@@ -10574,10 +10574,23 @@
|
|
|
10574
10574
|
.pipe(takeUntilDestroyed, operators.filter(function (columnSize) { return columnSize.tableCell === _this.elementRef.nativeElement; }))
|
|
10575
10575
|
.subscribe(function (_c) {
|
|
10576
10576
|
var deltaSize = _c.deltaSize, previousSize = _c.previousSize, completeImmediately = _c.completeImmediately;
|
|
10577
|
-
_this.elementRef.nativeElement.
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10577
|
+
var _d = _this.elementRef.nativeElement.getBoundingClientRect(), top = _d.top, left = _d.left;
|
|
10578
|
+
var clientY = event.clientY, clientX = event.clientX;
|
|
10579
|
+
var isApplySize = false;
|
|
10580
|
+
if (_this.isXAxisHover) {
|
|
10581
|
+
var width = _this.hoverdDirection === 'left' ? 0 : _this.tableOptions.minWidthPx;
|
|
10582
|
+
isApplySize = deltaSize > 0 && left + width - clientX <= 0;
|
|
10583
|
+
}
|
|
10584
|
+
else {
|
|
10585
|
+
var height = _this.hoverdDirection === 'bottom' ? 0 : _this.tableOptions.minHeightPx;
|
|
10586
|
+
isApplySize = deltaSize > 0 && top + height - clientY <= 0;
|
|
10587
|
+
}
|
|
10588
|
+
if (isApplySize || deltaSize < 0) {
|
|
10589
|
+
_this.elementRef.nativeElement.classList.add(OVERLAY_ACTIVE_CLASS);
|
|
10590
|
+
_this.applySize(deltaSize, previousSize);
|
|
10591
|
+
if (completeImmediately) {
|
|
10592
|
+
_this._completeResizeOperation();
|
|
10593
|
+
}
|
|
10581
10594
|
}
|
|
10582
10595
|
});
|
|
10583
10596
|
rxjs.merge(this.resizeNotifier.resizeCanceled, this.resizeNotifier.resizeCompleted)
|
|
@@ -12199,7 +12212,7 @@
|
|
|
12199
12212
|
args: ['class.disabled']
|
|
12200
12213
|
}] } });
|
|
12201
12214
|
|
|
12202
|
-
var MaxIndent =
|
|
12215
|
+
var MaxIndent = 11;
|
|
12203
12216
|
var includesIndentTypes = __spreadArray([
|
|
12204
12217
|
exports.ElementKinds.checkItem,
|
|
12205
12218
|
exports.ElementKinds.numberedList,
|
|
@@ -12320,7 +12333,7 @@
|
|
|
12320
12333
|
var currentPath = [path[0]];
|
|
12321
12334
|
var isStart = slate.Editor.isStart(editor, selection.anchor, currentPath);
|
|
12322
12335
|
var textIndentDisable = [exports.ElementKinds.bulletedList, exports.ElementKinds.numberedList, exports.ElementKinds.checkItem];
|
|
12323
|
-
if (
|
|
12336
|
+
if (isHotkey.isKeyHotkey('Tab', event)) {
|
|
12324
12337
|
event.preventDefault();
|
|
12325
12338
|
if (startBlock && (isExpanded || isStart)) {
|
|
12326
12339
|
if (!editor.isVoid(block)) {
|
|
@@ -12341,7 +12354,7 @@
|
|
|
12341
12354
|
return true;
|
|
12342
12355
|
}
|
|
12343
12356
|
}
|
|
12344
|
-
if (
|
|
12357
|
+
if (isHotkey.isKeyHotkey('shift+Tab', event)) {
|
|
12345
12358
|
if (startBlock && (isExpanded || isStart)) {
|
|
12346
12359
|
if (!editor.isVoid(block)) {
|
|
12347
12360
|
return IndentEditor.cancelTextIntent(editor, event, block, kinds);
|