@openui5/sap.ui.codeeditor 1.99.0 → 1.100.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/THIRDPARTY.txt
CHANGED
|
@@ -197,7 +197,7 @@ License: BSD-3-Clause
|
|
|
197
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
199
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
200
|
+
Component: URI.js, version: 1.19.10
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.36-SNAPSHOT
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.codeeditor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.100.1",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.codeeditor",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.100.1"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.100.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.codeeditor</documentation>
|
|
12
12
|
|
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* @extends sap.ui.core.Control
|
|
64
64
|
*
|
|
65
65
|
* @author SAP SE
|
|
66
|
-
* @version 1.
|
|
66
|
+
* @version 1.100.1
|
|
67
67
|
*
|
|
68
68
|
* @constructor
|
|
69
69
|
* @public
|
|
@@ -234,18 +234,7 @@ sap.ui.define([
|
|
|
234
234
|
"sap-ui-codeeditor-ace"
|
|
235
235
|
);
|
|
236
236
|
|
|
237
|
-
|
|
238
|
-
var sEditorTheme = "tomorrow";
|
|
239
|
-
if (sUiTheme.indexOf("hcb") > -1) {
|
|
240
|
-
sEditorTheme = "chaos";
|
|
241
|
-
} else if (sUiTheme.indexOf("hcw") > -1) {
|
|
242
|
-
sEditorTheme = "github";
|
|
243
|
-
} else if (sUiTheme === "sap_fiori_3") {
|
|
244
|
-
sEditorTheme = "crimson_editor";
|
|
245
|
-
} else if (sUiTheme === "sap_fiori_3_dark") {
|
|
246
|
-
sEditorTheme = "clouds_midnight";
|
|
247
|
-
}
|
|
248
|
-
this.setColorTheme(sEditorTheme);
|
|
237
|
+
this._applyTheme();
|
|
249
238
|
|
|
250
239
|
this._oEditor.setOptions({
|
|
251
240
|
enableBasicAutocompletion: true,
|
|
@@ -306,6 +295,31 @@ sap.ui.define([
|
|
|
306
295
|
this._oEditor = null;
|
|
307
296
|
};
|
|
308
297
|
|
|
298
|
+
/**
|
|
299
|
+
* @private
|
|
300
|
+
*/
|
|
301
|
+
CodeEditor.prototype.onThemeChanged = function() {
|
|
302
|
+
this._applyTheme();
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @private
|
|
307
|
+
*/
|
|
308
|
+
CodeEditor.prototype._applyTheme = function() {
|
|
309
|
+
var sUiTheme = Core.getConfiguration().getTheme().toLowerCase();
|
|
310
|
+
var sEditorTheme = "tomorrow";
|
|
311
|
+
if (sUiTheme.indexOf("hcb") > -1) {
|
|
312
|
+
sEditorTheme = "chaos";
|
|
313
|
+
} else if (sUiTheme.indexOf("hcw") > -1) {
|
|
314
|
+
sEditorTheme = "github";
|
|
315
|
+
} else if (sUiTheme === "sap_fiori_3") {
|
|
316
|
+
sEditorTheme = "crimson_editor";
|
|
317
|
+
} else if (sUiTheme === "sap_fiori_3_dark") {
|
|
318
|
+
sEditorTheme = "clouds_midnight";
|
|
319
|
+
}
|
|
320
|
+
this.setColorTheme(sEditorTheme);
|
|
321
|
+
};
|
|
322
|
+
|
|
309
323
|
/**
|
|
310
324
|
* @private
|
|
311
325
|
*/
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @namespace
|
|
20
20
|
* @name sap.ui.codeeditor
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.100.1
|
|
23
23
|
* @since 1.48
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
],
|
|
38
38
|
elements: [],
|
|
39
39
|
noLibraryCSS: false,
|
|
40
|
-
version: "1.
|
|
40
|
+
version: "1.100.1"
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
return sap.ui.codeeditor;
|