@openui5/sap.ui.codeeditor 1.98.0 → 1.101.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.
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.7
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
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
400
400
 
401
401
  Library: sap.ui.webc.common:
402
402
 
403
- Component: UI5 Web Components, version: 1.0.0-rc.12
403
+ Component: UI5 Web Components, version: 1.1.2
404
404
  Copyright: SAP
405
405
  License: Apache-2.0
406
406
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
411
411
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
412
412
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
413
413
 
414
- Component: lit-html, version: 1.4.1
414
+ Component: lit-html, version: 2.0.1
415
415
  Copyright: Google LLC
416
416
  License: BSD-3-Clause
417
417
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
420
420
 
421
421
  Library: sap.ui.webc.fiori:
422
422
 
423
- Component: UI5 Web Components, version: 1.0.0-rc.12
423
+ Component: UI5 Web Components, version: 1.1.2
424
424
  Copyright: SAP
425
425
  License: Apache-2.0
426
426
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
429
429
 
430
430
  Library: sap.ui.webc.main:
431
431
 
432
- Component: UI5 Web Components, version: 1.0.0-rc.12
432
+ Component: UI5 Web Components, version: 1.1.2
433
433
  Copyright: SAP
434
434
  License: Apache-2.0
435
435
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.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.34
453
+ Component: SAP Theming Base Content, version: 11.1.38
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.98.0",
3
+ "version": "1.101.0",
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.98.0"
17
+ "@openui5/sap.ui.core": "1.101.0"
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.98.0</version>
9
+ <version>1.101.0</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.98.0
66
+ * @version 1.101.0
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
- var sUiTheme = Core.getConfiguration().getTheme().toLowerCase();
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
  */
@@ -17,17 +17,13 @@ sap.ui.define([
17
17
  * UI5 library: sap.ui.codeeditor.
18
18
  *
19
19
  * @namespace
20
- * @name sap.ui.codeeditor
20
+ * @alias sap.ui.codeeditor
21
21
  * @author SAP SE
22
- * @version 1.98.0
22
+ * @version 1.101.0
23
23
  * @since 1.48
24
24
  * @public
25
25
  */
26
-
27
- // library dependencies
28
-
29
- // delegate further initialization of this library to the Core
30
- sap.ui.getCore().initLibrary({
26
+ var thisLib = sap.ui.getCore().initLibrary({
31
27
  name : "sap.ui.codeeditor",
32
28
  dependencies : ["sap.ui.core"],
33
29
  types: [],
@@ -37,8 +33,8 @@ sap.ui.define([
37
33
  ],
38
34
  elements: [],
39
35
  noLibraryCSS: false,
40
- version: "1.98.0"
36
+ version: "1.101.0"
41
37
  });
42
38
 
43
- return sap.ui.codeeditor;
39
+ return thisLib;
44
40
  });