@worktile/theia 2.0.0 → 2.0.1
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 +5 -5
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/esm2015/plugins/code/code.component.js +6 -6
- package/fesm2015/worktile-theia.js +5 -5
- package/fesm2015/worktile-theia.js.map +1 -1
- package/package.json +1 -1
- package/plugins/code/code.component.d.ts +3 -3
|
@@ -6875,16 +6875,16 @@
|
|
|
6875
6875
|
|
|
6876
6876
|
var TheCodeComponent = /** @class */ (function (_super) {
|
|
6877
6877
|
__extends(TheCodeComponent, _super);
|
|
6878
|
-
function TheCodeComponent(elementRef, cdr, thyNotifyService, ngZone,
|
|
6878
|
+
function TheCodeComponent(elementRef, cdr, thyNotifyService, ngZone, config) {
|
|
6879
6879
|
var _this = _super.call(this, elementRef, cdr) || this;
|
|
6880
6880
|
_this.elementRef = elementRef;
|
|
6881
6881
|
_this.cdr = cdr;
|
|
6882
6882
|
_this.thyNotifyService = thyNotifyService;
|
|
6883
6883
|
_this.ngZone = ngZone;
|
|
6884
|
-
_this.
|
|
6884
|
+
_this.config = config;
|
|
6885
6885
|
_this.startRenderCodemirror = false;
|
|
6886
6886
|
_this.dropdownMode = exports.DropdownMode;
|
|
6887
|
-
_this.maxHeight = _this.mode === CodeMode.default ? 350 - CODEMIRROR_PADDING_TOP * 2 : 0;
|
|
6887
|
+
_this.maxHeight = _this.config.mode === CodeMode.default ? 350 - CODEMIRROR_PADDING_TOP * 2 : 0;
|
|
6888
6888
|
_this.codeMirrorFocused = false;
|
|
6889
6889
|
_this.menus = CODE_MODES.map(function (item) {
|
|
6890
6890
|
return { key: item.value, name: item.showName };
|
|
@@ -6895,7 +6895,7 @@
|
|
|
6895
6895
|
readOnly: false,
|
|
6896
6896
|
autofocus: false,
|
|
6897
6897
|
lineWiseCopyCut: true,
|
|
6898
|
-
lineWrapping: _this.mode === CodeMode.default ? false : true,
|
|
6898
|
+
lineWrapping: _this.config.mode === CodeMode.default ? false : true,
|
|
6899
6899
|
cursorBlinkRate: 500
|
|
6900
6900
|
};
|
|
6901
6901
|
_this.actives = _this.menus[0];
|
|
@@ -7016,7 +7016,7 @@
|
|
|
7016
7016
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
7017
7017
|
}]
|
|
7018
7018
|
}], ctorParameters: function () {
|
|
7019
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.ThyNotifyService }, { type: i0__namespace.NgZone }, { type:
|
|
7019
|
+
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.ThyNotifyService }, { type: i0__namespace.NgZone }, { type: TheCodeMode, decorators: [{
|
|
7020
7020
|
type: i0.Inject,
|
|
7021
7021
|
args: [THE_CODE_MODE_TOKEN]
|
|
7022
7022
|
}] }];
|