@openui5/sap.uxap 1.94.0 → 1.95.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
@@ -309,7 +309,7 @@ License: MIT
309
309
  Comment: these files belong to: lodash
310
310
 
311
311
  Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
312
- Copyright: 2018 Mathias Nater
312
+ Copyright: 2021 Mathias Nater
313
313
  License: MIT
314
314
  Comment: these files belong to: Hyphenopoly
315
315
 
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
347
347
  License: BSD-2-Clause
348
348
  Comment: these files belong to: Esprima
349
349
 
350
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
351
- Copyright: 2006 Google Inc.
352
- License: Apache-2.0
353
- Comment: these files belong to: google-code-prettify
354
-
355
350
  Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
356
351
  Copyright: 2006-2020, Ivan Sagalaev
357
352
  License: BSD-3-Clause
package/THIRDPARTY.txt CHANGED
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
6
6
 
7
7
  Library: sap.ui.codeeditor:
8
8
 
9
- Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.4
9
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.12
10
10
  Copyright: 2010, Ajax.org B.V.
11
11
  License: BSD-3-Clause
12
12
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -279,8 +279,8 @@ License: MIT
279
279
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
280
280
  Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
281
281
 
282
- Component: Hyphenopoly, version: 2.4.0
283
- Copyright: 2018 Mathias Nater
282
+ Component: Hyphenopoly, version: 3.4.0
283
+ Copyright: 2021 Mathias Nater
284
284
  License: MIT
285
285
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
286
286
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
@@ -324,12 +324,6 @@ License: BSD-2-Clause
324
324
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
325
325
  Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
326
326
 
327
- Component: google-code-prettify, version: 20130304
328
- Copyright: 2006 Google Inc.
329
- License: Apache-2.0
330
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
331
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
332
-
333
327
  Component: highlight.js, version: 10.4.1
334
328
  Copyright: 2006-2020, Ivan Sagalaev
335
329
  License: BSD-3-Clause
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.uxap",
3
- "version": "1.94.0",
3
+ "version": "1.95.0",
4
4
  "description": "OpenUI5 UI Library sap.uxap",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,9 +14,9 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.f": "1.94.0",
18
- "@openui5/sap.m": "1.94.0",
19
- "@openui5/sap.ui.core": "1.94.0",
20
- "@openui5/sap.ui.layout": "1.94.0"
17
+ "@openui5/sap.f": "1.95.0",
18
+ "@openui5/sap.m": "1.95.0",
19
+ "@openui5/sap.ui.core": "1.95.0",
20
+ "@openui5/sap.ui.layout": "1.95.0"
21
21
  }
22
22
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  <name>sap.uxap</name>
5
5
  <vendor>SAP SE</vendor>
6
- <version>1.94.0</version>
6
+ <version>1.95.0</version>
7
7
  <copyright>OpenUI5
8
8
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
9
9
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
@@ -624,7 +624,7 @@ sap.ui.define([
624
624
 
625
625
  if (this._iCurrentScrollTimeout) {
626
626
  clearTimeout(this._iCurrentScrollTimeout);
627
- jQuery(document.getElementById(this.getId() + "-scroll")).parent().stop(true, false);
627
+ this.$("scroll").parent().stop(true, false);
628
628
  }
629
629
 
630
630
  this._iCurrentScrollTimeout = setTimeout(function () {
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  *
22
22
  * @class
23
23
  * @author SAP SE
24
- * @version 1.94.0
24
+ * @version 1.95.0
25
25
  * @since 1.26
26
26
  * @alias sap.uxap.BlockBaseMetadata
27
27
  * @extends sap.ui.core.ElementMetadata
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.94.0
25
+ * @version 1.95.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @implements sap.uxap.IHeaderContent
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.94.0
44
+ * @version 1.95.0
45
45
  *
46
46
  * @constructor
47
47
  * @public
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @implements sap.uxap.IHeaderTitle
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.94.0
45
+ * @version 1.95.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -1565,17 +1565,17 @@ sap.ui.define([
1565
1565
  };
1566
1566
 
1567
1567
  ObjectPageLayout.prototype._cacheDomElements = function () {
1568
- this._$footerWrapper = jQuery(document.getElementById(this.getId() + "-footerWrapper"));
1569
- this._$titleArea = jQuery(document.getElementById(this.getId() + "-headerTitle"));
1570
- this._$anchorBar = jQuery(document.getElementById(this.getId() + "-anchorBar"));
1571
- this._$stickyAnchorBar = jQuery(document.getElementById(this.getId() + "-stickyAnchorBar"));
1572
- this._$opWrapper = jQuery(document.getElementById(this.getId() + "-opwrapper"));
1573
- this._$spacer = jQuery(document.getElementById(this.getId() + "-spacer"));
1574
- this._$headerContent = jQuery(document.getElementById(this.getId() + "-headerContent"));
1575
- this._$stickyHeaderContent = jQuery(document.getElementById(this.getId() + "-stickyHeaderContent"));
1576
- this._$contentContainer = jQuery(document.getElementById(this.getId() + "-scroll"));
1577
- this._$sectionsContainer = jQuery(document.getElementById(this.getId() + "-sectionsContainer"));
1578
- this._$skipFastGroupAnchor = jQuery(document.getElementById(this.getId() + "-skipFastGroupAnchor"));
1568
+ this._$footerWrapper = this.$("footerWrapper");
1569
+ this._$titleArea = this.$("headerTitle");
1570
+ this._$anchorBar = this.$("anchorBar");
1571
+ this._$stickyAnchorBar = this.$("stickyAnchorBar");
1572
+ this._$opWrapper = this.$("opwrapper");
1573
+ this._$spacer = this.$("spacer");
1574
+ this._$headerContent = this.$("headerContent");
1575
+ this._$stickyHeaderContent = this.$("stickyHeaderContent");
1576
+ this._$contentContainer = this.$("scroll");
1577
+ this._$sectionsContainer = this.$("sectionsContainer");
1578
+ this._$skipFastGroupAnchor = this.$("skipFastGroupAnchor");
1579
1579
 
1580
1580
  // BCP 1870201875: explicitly set the latest scrollContainer dom ref
1581
1581
  // (as the scroller obtains the latest scrollContainer dom ref in a LATER hook, which fails in conditions detailed in BCP 1870201875)
@@ -2531,7 +2531,6 @@ sap.ui.define([
2531
2531
  var oInfo = this._oSectionInfo[oSectionBase.getId()],
2532
2532
  $this = oSectionBase.$(),
2533
2533
  oSection,
2534
- $title,
2535
2534
  bPromoted = false;
2536
2535
 
2537
2536
  if (!oInfo /* sectionBase is visible */ || !$this.length) {
@@ -2551,19 +2550,15 @@ sap.ui.define([
2551
2550
  //the amount of scrolling required is the distance between their position().top and the bottom of the anchorBar
2552
2551
  oInfo.positionTop = Math.ceil(realTop);
2553
2552
 
2554
- if (oInfo.isSection) {
2555
- $title = oSectionBase.$("header");
2556
- } else {
2557
- $title = oSectionBase.$("headerTitle");
2558
- }
2559
-
2560
- bPromoted = $title.length === 0;
2561
-
2562
- if (bPromoted && !oInfo.isSection && (oSection = oSectionBase.getParent())) {
2563
- // the scrollTop required to scroll to a promoted subsection
2564
- // is the top of the parent section (UX rule)
2565
- var parentRealTop = oSection.$().position().top;
2566
- oInfo.positionTop = Math.ceil(parentRealTop);
2553
+ if (!oInfo.isSection && (oSection = oSectionBase.getParent())) {
2554
+ // a promoted subSection borrows the title of its parent section
2555
+ bPromoted = oSectionBase._getTitleDomId() === oSection.getId() + "-title";
2556
+ if (bPromoted) {
2557
+ // the scrollTop required to scroll to a promoted subsection
2558
+ // is the top of the parent section (UX rule)
2559
+ var parentRealTop = oSection.$().position().top;
2560
+ oInfo.positionTop = Math.ceil(parentRealTop);
2561
+ }
2567
2562
  }
2568
2563
 
2569
2564
  if (!this._bStickyAnchorBar && !this._bHeaderInTitleArea) { // in sticky mode the anchor bar is not part of the content
@@ -3298,12 +3293,12 @@ sap.ui.define([
3298
3293
  if (iScrollTop === 0) {
3299
3294
  // if we have arrow from the title inside the ContentHeader and the ContentHeader isn't scrolled we have to put higher z-index to the ContentHeader
3300
3295
  // otherwise part of the arrow is cut off
3301
- jQuery(document.getElementById(this.getId() + "-scroll")).css("z-index", "1000");
3296
+ this.$("scroll").css("z-index", "1000");
3302
3297
  bScrolled = false;
3303
3298
  } else if (!bScrolled) {
3304
3299
  bScrolled = true;
3305
3300
  // and we have to "reset" the z-index it when we start scrolling
3306
- jQuery(document.getElementById(this.getId() + "-scroll")).css("z-index", "0");
3301
+ this.$("scroll").css("z-index", "0");
3307
3302
  }
3308
3303
  }
3309
3304
  };
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Element
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.94.0
40
+ * @version 1.95.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -147,7 +147,7 @@ sap.ui.define([
147
147
  ObjectPageSection.prototype._updateImportance = function (oCurrentMedia) {
148
148
  var oObjectPage = this._getObjectPageLayout(),
149
149
  sImportanceLevelToHide = this._getImportanceLevelToHide(oCurrentMedia),
150
- oHeaderDOM = this.bOutput && document.getElementById(this.getId() + "-header");
150
+ oHeaderDOM = this.bOutput && this.getDomRef("header");
151
151
 
152
152
  this.getSubSections().forEach(function (oSubSection) {
153
153
  oSubSection._applyImportanceRules(sImportanceLevelToHide);
@@ -512,7 +512,7 @@ sap.ui.define([
512
512
  return;
513
513
  }
514
514
 
515
- this._$spacer = jQuery(document.getElementById(oObjectPageLayout.getId() + "-spacer"));
515
+ this._$spacer = oObjectPageLayout.$("spacer");
516
516
 
517
517
  if (this._bShouldFocusSeeMoreLessButton) {
518
518
  this._bShouldFocusSeeMoreLessButton = false;
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @constructor
26
26
  * @alias sap.uxap.changeHandler.AddIFrameObjectPageLayout
27
27
  * @author SAP SE
28
- * @version 1.94.0
28
+ * @version 1.95.0
29
29
  * @since 1.75
30
30
  * @experimental Since 1.75
31
31
  */
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/fl/changeHandler/MoveControls", "sap/ui/core/Core", "sap/
13
13
  * @constructor
14
14
  * @alias sap.uxap.changeHandler.MoveObjectPageSection
15
15
  * @author SAP SE
16
- * @version 1.94.0
16
+ * @version 1.95.0
17
17
  * @experimental Since 1.54
18
18
  */
19
19
 
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @constructor
22
22
  * @alias sap.uxap.changeHandler.RenameObjectPageSection
23
23
  * @author SAP SE
24
- * @version 1.94.0
24
+ * @version 1.95.0
25
25
  * @experimental Since 1.50
26
26
  */
27
27
 
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @namespace
25
25
  * @name sap.uxap
26
26
  * @author SAP SE
27
- * @version 1.94.0
27
+ * @version 1.95.0
28
28
  * @since 1.36
29
29
  * @public
30
30
  */
@@ -69,7 +69,7 @@ sap.ui.define([
69
69
  "sap.uxap.ObjectPageHeaderLayoutData",
70
70
  "sap.uxap.ObjectPageLazyLoader"
71
71
  ],
72
- version: "1.94.0",
72
+ version: "1.95.0",
73
73
  extensions: {
74
74
  flChangeHandlers: {
75
75
  "sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",