@worktile/theia 16.1.5 → 16.1.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.
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +12 -7
- package/fesm2015/worktile-theia.mjs +11 -6
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +11 -6
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/quick-insert/components/quick-insert.component.d.ts +4 -3
|
@@ -15879,13 +15879,18 @@ class TheQuickInsertComponent {
|
|
|
15879
15879
|
if (this.editor && this.editor.options && !this.editor.options.readonly) {
|
|
15880
15880
|
// wait isOpenedMenu is updated
|
|
15881
15881
|
setTimeout(() => {
|
|
15882
|
-
this.
|
|
15882
|
+
this.updateIconDisplay();
|
|
15883
15883
|
}, 0);
|
|
15884
15884
|
}
|
|
15885
15885
|
};
|
|
15886
|
-
this.
|
|
15886
|
+
this.updateIconDisplay();
|
|
15887
15887
|
}
|
|
15888
|
-
|
|
15888
|
+
ngOnChanges(changes) {
|
|
15889
|
+
if (changes.isVisible && !changes.isVisible.firstChange) {
|
|
15890
|
+
this.updateIconDisplay();
|
|
15891
|
+
}
|
|
15892
|
+
}
|
|
15893
|
+
updateIconDisplay() {
|
|
15889
15894
|
const { editor } = this;
|
|
15890
15895
|
if (this.isVisible &&
|
|
15891
15896
|
!QuickInsertEditor.isOpenedMenu(editor) &&
|
|
@@ -15943,14 +15948,14 @@ class TheQuickInsertComponent {
|
|
|
15943
15948
|
QuickInsertEditor.openMenu(this.editor)
|
|
15944
15949
|
.afterClosed()
|
|
15945
15950
|
.subscribe(() => {
|
|
15946
|
-
this.
|
|
15951
|
+
this.updateIconDisplay();
|
|
15947
15952
|
});
|
|
15948
|
-
this.
|
|
15953
|
+
this.updateIconDisplay();
|
|
15949
15954
|
}, 100);
|
|
15950
15955
|
}
|
|
15951
15956
|
}
|
|
15952
15957
|
TheQuickInsertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheQuickInsertComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
15953
|
-
TheQuickInsertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: { editor: "editor", isVisible: "isVisible" }, host: { listeners: { "mousedown": "handleMousedownNativeElement($event)" }, properties: { "class": "this.className" } }, viewQueries: [{ propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: ElementRef }], ngImport: i0, template: "<thy-icon\n #iconElement\n [thyIconName]=\"displayIconName\"\n class=\"quick-insert-icon text-desc font-size-xlg\"\n (mouseenter)=\"mouseEnter($event)\"\n (mouseleave)=\"mouseLeave($event)\"\n (mousedown)=\"handleClick($event)\"\n></thy-icon>\n", dependencies: [{ kind: "component", type: i4.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }] });
|
|
15958
|
+
TheQuickInsertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: { editor: "editor", isVisible: "isVisible" }, host: { listeners: { "mousedown": "handleMousedownNativeElement($event)" }, properties: { "class": "this.className" } }, viewQueries: [{ propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<thy-icon\n #iconElement\n [thyIconName]=\"displayIconName\"\n class=\"quick-insert-icon text-desc font-size-xlg\"\n (mouseenter)=\"mouseEnter($event)\"\n (mouseleave)=\"mouseLeave($event)\"\n (mousedown)=\"handleClick($event)\"\n></thy-icon>\n", dependencies: [{ kind: "component", type: i4.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }] });
|
|
15954
15959
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheQuickInsertComponent, decorators: [{
|
|
15955
15960
|
type: Component,
|
|
15956
15961
|
args: [{ selector: '[theQuickInsert]', template: "<thy-icon\n #iconElement\n [thyIconName]=\"displayIconName\"\n class=\"quick-insert-icon text-desc font-size-xlg\"\n (mouseenter)=\"mouseEnter($event)\"\n (mouseleave)=\"mouseLeave($event)\"\n (mousedown)=\"handleClick($event)\"\n></thy-icon>\n" }]
|