@worktile/theia 2.2.6 → 2.2.7

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.
@@ -7025,7 +7025,7 @@ class TheLinkComponent extends TheBaseLinkComponent {
7025
7025
  super(...arguments);
7026
7026
  // Put this at the start and end of an inline component to work around this Chromium bug:
7027
7027
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1249405
7028
- this.inlineChromiumBugfix = '$' + String.fromCodePoint(160);
7028
+ this.inlineChromiumBugfix = String.fromCodePoint(160);
7029
7029
  }
7030
7030
  }
7031
7031
  TheLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TheLinkComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
@@ -9173,7 +9173,7 @@ class ColumnResizingStore {
9173
9173
  restoreTopRows(deltaY) {
9174
9174
  let index = this.resizeRows.length - 1;
9175
9175
  while (index >= 0 && deltaY > 0) {
9176
- const currentHeight = coercePixelsFromCssValue(this.resizeRows[index].rowElement.style.height);
9176
+ const currentHeight = this.resizeRows[index].rowElement.getBoundingClientRect().height;
9177
9177
  if (this.resizeRows[index].baseHeight > currentHeight) {
9178
9178
  if (this.resizeRows[index].baseHeight > currentHeight + deltaY) {
9179
9179
  this.resizeRows[index].rowElement.style.height = coerceCssPixelValue(currentHeight + deltaY);
@@ -9759,16 +9759,16 @@ class TheTdComponent extends TheBaseElementComponent {
9759
9759
  merge(this.resizeNotifier.resizeCanceled, this.resizeNotifier.triggerResize)
9760
9760
  .pipe(takeUntilDestroyed, filter(columnSize => columnSize.tableCell === this.elementRef.nativeElement))
9761
9761
  .subscribe(({ deltaSize, previousSize, completeImmediately }) => {
9762
- const { top, left } = this.elementRef.nativeElement.getBoundingClientRect();
9762
+ const { top, left, height, width } = this.elementRef.nativeElement.getBoundingClientRect();
9763
9763
  const { clientY, clientX } = event;
9764
9764
  let isApplySize = false;
9765
9765
  if (this.isXAxisHover) {
9766
- const width = this.hoverdDirection === 'left' ? 0 : this.tableOptions.minWidthPx;
9767
- isApplySize = deltaSize > 0 && left + width - clientX <= 0;
9766
+ const cellWidth = this.hoverdDirection === 'left' ? 0 : width;
9767
+ isApplySize = deltaSize > 0 && left + cellWidth - clientX <= 0;
9768
9768
  }
9769
9769
  else {
9770
- const height = this.hoverdDirection === 'bottom' ? 0 : this.tableOptions.minHeightPx;
9771
- isApplySize = deltaSize > 0 && top + height - clientY <= 0;
9770
+ const cellHeight = this.hoverdDirection === 'bottom' ? 0 : height;
9771
+ isApplySize = deltaSize > 0 && top + cellHeight - clientY <= 0;
9772
9772
  }
9773
9773
  if (isApplySize || deltaSize < 0) {
9774
9774
  this.elementRef.nativeElement.classList.add(OVERLAY_ACTIVE_CLASS);
@@ -11204,14 +11204,14 @@ class TheInlineCodeComponent extends TheBaseElementComponent {
11204
11204
  }
11205
11205
  }
11206
11206
  TheInlineCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TheInlineCodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
11207
- TheInlineCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheInlineCodeComponent, selector: "span[theInlineCode]", usesInheritance: true, ngImport: i0, template: ` <span contenteditable="false" style="font-size: 0;">{{ inlineChromiumBugfix }}</span>
11207
+ TheInlineCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheInlineCodeComponent, selector: "span[theInlineCode]", usesInheritance: true, ngImport: i0, template: `<span contenteditable="false" style="font-size: 0;">{{ inlineChromiumBugfix }}</span>
11208
11208
  <slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>
11209
11209
  <span contenteditable="false" style="font-size: 0;">{{ inlineChromiumBugfix }}</span>`, isInline: true, components: [{ type: i1.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
11210
11210
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TheInlineCodeComponent, decorators: [{
11211
11211
  type: Component,
11212
11212
  args: [{
11213
11213
  selector: 'span[theInlineCode]',
11214
- template: ` <span contenteditable="false" style="font-size: 0;">{{ inlineChromiumBugfix }}</span>
11214
+ template: `<span contenteditable="false" style="font-size: 0;">{{ inlineChromiumBugfix }}</span>
11215
11215
  <slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>
11216
11216
  <span contenteditable="false" style="font-size: 0;">{{ inlineChromiumBugfix }}</span>`
11217
11217
  }]