@openui5/sap.ui.codeeditor 1.96.2 → 1.97.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/.reuse/dep5 CHANGED
@@ -418,7 +418,7 @@ Comment: these files contain content from SAP and BooleanExpressionEvaluator: Bo
418
418
 
419
419
  # Library: sap.ui.webc.common:
420
420
 
421
- Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
421
+ Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
422
422
  Copyright: SAP
423
423
  License: Apache-2.0
424
424
  Comment: these files belong to: UI5 Web Components
package/THIRDPARTY.txt CHANGED
@@ -412,10 +412,11 @@ Copyright: SAP
412
412
  License: Apache-2.0
413
413
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
414
414
  Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
415
- src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.*
415
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.*
416
416
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.*
417
417
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.*
418
418
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
419
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
419
420
 
420
421
  Component: lit-html, version: 1.4.1
421
422
  Copyright: Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.codeeditor",
3
- "version": "1.96.2",
3
+ "version": "1.97.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.96.2"
17
+ "@openui5/sap.ui.core": "1.97.0"
18
18
  }
19
19
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.96.2</version>
9
+ <version>1.97.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.96.2
66
+ * @version 1.97.0
67
67
  *
68
68
  * @constructor
69
69
  * @public
@@ -213,6 +213,7 @@ sap.ui.define([
213
213
  this._bIsRenderingPhase = false;
214
214
 
215
215
  this._oEditorDomRef = document.createElement("div");
216
+ this._oEditorDomRef.id = this.getId() + "-editor";
216
217
  this._oEditorDomRef.style.height = "100%";
217
218
  this._oEditorDomRef.style.width = "100%";
218
219
 
@@ -364,6 +365,18 @@ sap.ui.define([
364
365
  this._registerResizeListener();
365
366
  };
366
367
 
368
+ /**
369
+ * Returns the DOMNode ID to be used for the "labelFor" attribute of the label.
370
+ *
371
+ * By default, this is the ID of the control itself.
372
+ *
373
+ * @return {string} ID to be used for the <code>labelFor</code>
374
+ * @public
375
+ */
376
+ CodeEditor.prototype.getIdForLabel = function () {
377
+ return this.getId() + "-editor-textarea";
378
+ };
379
+
367
380
  /**
368
381
  * @private
369
382
  */
@@ -1438,6 +1438,10 @@ var TextInput = function(parentNode, host) {
1438
1438
  var text = dom.createElement("textarea");
1439
1439
  text.className = "ace_text-input";
1440
1440
 
1441
+ // ##### BEGIN MODIFIED BY SAP
1442
+ text.setAttribute("id", host.container.id + "-textarea");
1443
+ // ##### END MODIFIED BY SAP
1444
+
1441
1445
  text.setAttribute("wrap", "off");
1442
1446
  text.setAttribute("autocorrect", "off");
1443
1447
  text.setAttribute("autocapitalize", "off");
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @namespace
20
20
  * @name sap.ui.codeeditor
21
21
  * @author SAP SE
22
- * @version 1.96.2
22
+ * @version 1.97.0
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.96.2"
40
+ version: "1.97.0"
41
41
  });
42
42
 
43
43
  return sap.ui.codeeditor;