@worktile/theia 19.2.1 → 19.3.0

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.
@@ -3831,20 +3831,20 @@ class TheToolbarComponent {
3831
3831
  const { iconComponent, type, dropdownMode, dropdownItemKey, includes, ...args } = item;
3832
3832
  const viewComponent = this.viewComponentType(type);
3833
3833
  const compRef = this.toolbarContainer.createComponent(iconComponent ? iconComponent : viewComponent);
3834
- compRef.instance.editor = this.editor;
3835
- compRef.instance.toolbarItem = item;
3834
+ compRef.setInput('editor', this.editor);
3835
+ compRef.setInput('toolbarItem', item);
3836
3836
  this.components.set(item.key, compRef);
3837
3837
  if (item.type === ToolbarItemType.dropdown) {
3838
3838
  const dropdownRef = compRef;
3839
- dropdownRef.instance.dropdownItemKey = item.dropdownItemKey;
3840
- dropdownRef.instance.menus = includes;
3841
- dropdownRef.instance.mode = dropdownMode;
3839
+ dropdownRef.setInput('dropdownItemKey', item.dropdownItemKey);
3840
+ dropdownRef.setInput('menus', includes);
3841
+ dropdownRef.setInput('mode', dropdownMode);
3842
3842
  }
3843
3843
  }
3844
3844
  createToolbarSplit() {
3845
3845
  const compRef = this.toolbarContainer.createComponent(ThyDivider);
3846
- compRef.instance.thyVertical = true;
3847
- compRef.instance.thyColor = 'light';
3846
+ compRef.setInput('thyVertical', true);
3847
+ compRef.setInput('thyColor', 'light');
3848
3848
  compRef.location.nativeElement.classList.add('mx-2');
3849
3849
  }
3850
3850
  createMoreGroup(group) {
@@ -11565,11 +11565,12 @@ class TheImage extends TheBaseElement {
11565
11565
  imageClick() {
11566
11566
  const index = this.imageGroup.images.findIndex(item => item === this.imageDirective);
11567
11567
  const imageGroup = this.imageGroup.images.map(item => {
11568
+ const imageMeta = item.thyImageMeta();
11568
11569
  return {
11569
- originUrl: item.thyOriginSrc,
11570
- thumbUrl: item.thyPreviewSrc,
11571
- name: item.thyImageMeta.name,
11572
- size: item.thyImageMeta.size
11570
+ originUrl: item.thyOriginSrc(),
11571
+ thumbUrl: item.thyPreviewSrc(),
11572
+ name: imageMeta.name,
11573
+ size: imageMeta.size
11573
11574
  };
11574
11575
  });
11575
11576
  const { originUrl, thumbUrl, name, size } = this.element;