@worktile/theia 13.0.11 → 13.0.12

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.
@@ -11323,8 +11323,9 @@ class TheToolbarItemComponent extends TheBaseToolbarItem {
11323
11323
  constructor(ngZone) {
11324
11324
  super();
11325
11325
  this.ngZone = ngZone;
11326
- this.itemMode = ToolbarItemMode.horizontal;
11327
11326
  this.ToolbarItemMode = ToolbarItemMode;
11327
+ this.className = 'the-toolbar-item';
11328
+ this.itemMode = ToolbarItemMode.horizontal;
11328
11329
  }
11329
11330
  toggleDropdown(event) {
11330
11331
  super.execute(event);
@@ -11354,7 +11355,7 @@ class TheToolbarItemComponent extends TheBaseToolbarItem {
11354
11355
  }
11355
11356
  }
11356
11357
  TheToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TheToolbarItemComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
11357
- TheToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: { itemMode: "itemMode" }, host: { listeners: { "mousedown": "toggleDropdown($event)" }, classAttribute: "the-toolbar-item" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `
11358
+ TheToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: { itemMode: "itemMode" }, host: { listeners: { "mousedown": "toggleDropdown($event)" }, properties: { "class": "this.className" } }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `
11358
11359
  <ng-container *ngIf="itemMode === ToolbarItemMode.horizontal; else selectionItem">
11359
11360
  <a
11360
11361
  href="javascript:;"
@@ -11403,12 +11404,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
11403
11404
  </ng-template>
11404
11405
  <ng-template #tooltip let-data> {{ data.name }} {{ data.shortcutKey }} </ng-template>
11405
11406
  <ng-container #toolbarContainer></ng-container>
11406
- `,
11407
- host: {
11408
- class: 'the-toolbar-item'
11409
- }
11407
+ `
11410
11408
  }]
11411
- }], ctorParameters: function () { return [{ type: i0.NgZone }]; }, propDecorators: { itemMode: [{
11409
+ }], ctorParameters: function () { return [{ type: i0.NgZone }]; }, propDecorators: { className: [{
11410
+ type: HostBinding,
11411
+ args: ['class']
11412
+ }], itemMode: [{
11412
11413
  type: Input
11413
11414
  }], toolbarContainer: [{
11414
11415
  type: ViewChild,
@@ -12541,12 +12542,15 @@ class TheToolbarComponent {
12541
12542
  * └───────────────────────────────────────────────────────────────────────────────────────────────┘
12542
12543
  * split width: 17px
12543
12544
  * item width: default item: 35px; dropdown item: 42px
12545
+ * default paddingRight: 4px
12544
12546
  * set aside 50px
12545
12547
  */
12546
12548
  toolbarItemsCompose() {
12547
12549
  let elementWidth = this.isMore ? this.elementWidth : null;
12548
- const maxItemWidth = 42;
12549
- const defaultItemWidth = 35;
12550
+ // dropdown item + paddingRight
12551
+ const maxItemWidth = 46;
12552
+ // default item + paddingRight
12553
+ const defaultItemWidth = 36;
12550
12554
  const splitWidth = 17;
12551
12555
  const splitPadding = 8;
12552
12556
  // special type
@@ -13502,7 +13506,8 @@ class TheToolbarGroupComponent {
13502
13506
  origin: event.currentTarget,
13503
13507
  viewContainerRef: this.viewContainerRef,
13504
13508
  hasBackdrop: false,
13505
- outsideClosable: true
13509
+ outsideClosable: true,
13510
+ manualClosure: true
13506
13511
  });
13507
13512
  this.groupPopoverRef.afterClosed().subscribe(() => {
13508
13513
  this.activeChange();