@openui5/sap.uxap 1.100.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
@@ -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.36-SNAPSHOT
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.uxap",
3
- "version": "1.100.0",
3
+ "version": "1.101.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.100.0",
18
- "@openui5/sap.m": "1.100.0",
19
- "@openui5/sap.ui.core": "1.100.0",
20
- "@openui5/sap.ui.layout": "1.100.0"
17
+ "@openui5/sap.f": "1.101.0",
18
+ "@openui5/sap.m": "1.101.0",
19
+ "@openui5/sap.ui.core": "1.101.0",
20
+ "@openui5/sap.ui.layout": "1.101.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.100.0</version>
6
+ <version>1.101.0</version>
7
7
  <copyright>OpenUI5
8
8
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
9
9
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
@@ -378,6 +378,7 @@ sap.ui.define([
378
378
  /**
379
379
  * Set the column layout for this particular block.
380
380
  * @param {string} sLayout The column layout to apply to the control
381
+ * @returns {*} this
381
382
  * @public
382
383
  */
383
384
  BlockBase.prototype.setColumnLayout = function (sLayout) {
@@ -386,7 +387,7 @@ sap.ui.define([
386
387
  /*the parent subsection needs to recalculate block layout data
387
388
  based on the changed block column layout */
388
389
  }
389
- this.setProperty("columnLayout", sLayout);
390
+ return this.setProperty("columnLayout", sLayout);
390
391
  };
391
392
 
392
393
  /**
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  *
22
22
  * @class
23
23
  * @author SAP SE
24
- * @version 1.100.0
24
+ * @version 1.101.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.100.0
25
+ * @version 1.101.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.100.0
44
+ * @version 1.101.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.100.0
45
+ * @version 1.101.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -1984,9 +1984,11 @@ sap.ui.define([
1984
1984
  this._setCurrentTabSection(oSelectedSection);
1985
1985
  this._bAllContentFitsContainer = this._hasSingleVisibleFullscreenSubSection(oSelectedSection);
1986
1986
  }
1987
- this._oLazyLoading.doLazyLoading();
1987
+ if (this.getEnableLazyLoading() && this._oLazyLoading) {
1988
+ this._oLazyLoading.doLazyLoading();
1989
+ }
1988
1990
  // if the current scroll position is not at the selected section OR the ScrollEnablement is still scrolling due to an animation
1989
- if (!this._isClosestScrolledSection(sSelectedSectionId) || this._oScroller._$Container.is(":animated")) {
1991
+ if (!this._isClosestScrolledSection(sSelectedSectionId) || (this._oScroller._$Container && this._oScroller._$Container.is(":animated"))) {
1990
1992
  // then change the selection to match the correct section
1991
1993
  this.scrollToSection(sSelectedSectionId, null, 0, false, true /* redirect scroll */);
1992
1994
  }
@@ -3162,7 +3164,7 @@ sap.ui.define([
3162
3164
  var iScrollTop = Math.max(Math.ceil(oEvent.target.scrollTop), 0), // top of the visible page
3163
3165
  $wrapper = this._$opWrapper.length && this._$opWrapper[0],
3164
3166
  $spacer = this._$spacer.length && this._$spacer[0],
3165
- iSpacerHeight = $spacer.offsetHeight,
3167
+ iSpacerHeight = this._$spacer.height(),
3166
3168
  iPageHeight,
3167
3169
  oHeader = this.getHeaderTitle(),
3168
3170
  bShouldStick = this._shouldSnapHeaderOnScroll(iScrollTop),
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Element
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.100.0
40
+ * @version 1.101.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -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.100.0
28
+ * @version 1.101.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.100.0
16
+ * @version 1.101.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.100.0
24
+ * @version 1.101.0
25
25
  * @experimental Since 1.50
26
26
  */
27
27
 
@@ -34,23 +34,34 @@ sap.ui.define([
34
34
  var RenameObjectPageSection = BaseRename.createRenameChangeHandler(mRenameSettings);
35
35
 
36
36
  RenameObjectPageSection._getControlForRename = function (oControl, oModifier) {
37
- var aSubSections;
37
+ var aSubSections,
38
+ vTitle;
39
+
38
40
  return Promise.resolve()
39
41
  .then(function() {
40
42
  return oModifier.getAggregation(oControl, "subSections");
41
43
  })
42
44
  .then(function(aSubSectionsLocal) {
43
45
  aSubSections = aSubSectionsLocal;
46
+
47
+ if (aSubSections.length !== 1) {
48
+ // if there are no or more than one sub sections, the following
49
+ // code should not execute and oControl should be returned
50
+ return [];
51
+ }
52
+
44
53
  return Promise.all([oModifier.getPropertyBindingOrProperty(aSubSections[0], "title"),
45
54
  oModifier.getProperty(oModifier.getParent(oControl), "subSectionLayout")]);
46
55
  })
47
56
  .then(function(aProperties) {
48
57
  // due to specific logic in the Object Page Layout, the title of the Section is
49
58
  // taken from its SubSection in case it is only one no matter if the Section has title itself.
59
+ vTitle = aProperties[0];
50
60
 
51
61
  if (aSubSections
52
62
  && aSubSections.length === 1
53
- && aProperties[0]
63
+ && vTitle
64
+ && (typeof vTitle === "object") || (typeof vTitle === "string" && vTitle.trim() !== "")
54
65
  && aProperties[1] === "TitleOnTop"
55
66
  ) {
56
67
  return aSubSections[0];
@@ -22,15 +22,13 @@ sap.ui.define([
22
22
  * SAP UxAP
23
23
  *
24
24
  * @namespace
25
- * @name sap.uxap
25
+ * @alias sap.uxap
26
26
  * @author SAP SE
27
- * @version 1.100.0
27
+ * @version 1.101.0
28
28
  * @since 1.36
29
29
  * @public
30
30
  */
31
- // library dependencies
32
- // delegate further initialization of this library to the Core
33
- sap.ui.getCore().initLibrary({
31
+ var thisLib = sap.ui.getCore().initLibrary({
34
32
  name: "sap.uxap",
35
33
  dependencies: ["sap.ui.core", "sap.f", "sap.m", "sap.ui.layout"],
36
34
  designtime: "sap/uxap/designtime/library.designtime",
@@ -69,7 +67,7 @@ sap.ui.define([
69
67
  "sap.uxap.ObjectPageHeaderLayoutData",
70
68
  "sap.uxap.ObjectPageLazyLoader"
71
69
  ],
72
- version: "1.100.0",
70
+ version: "1.101.0",
73
71
  extensions: {
74
72
  flChangeHandlers: {
75
73
  "sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
@@ -109,7 +107,7 @@ sap.ui.define([
109
107
  * @public
110
108
  * @ui5-metamodel This simple type also will be described in the UI5 (legacy) designtime metamodel
111
109
  */
112
- sap.uxap.BlockBaseColumnLayout = DataType.createType('sap.uxap.BlockBaseColumnLayout', {
110
+ thisLib.BlockBaseColumnLayout = DataType.createType('sap.uxap.BlockBaseColumnLayout', {
113
111
  isValid: function (vValue) {
114
112
  return /^(auto|[1-4]{1})$/.test(vValue);
115
113
  }
@@ -127,7 +125,7 @@ sap.ui.define([
127
125
  * @public
128
126
  * @ui5-metamodel This simple type also will be described in the UI5 (legacy) designtime metamodel
129
127
  */
130
- sap.uxap.BlockBaseFormAdjustment = {
128
+ thisLib.BlockBaseFormAdjustment = {
131
129
 
132
130
  /**
133
131
  * Any form within the block will be automatically adjusted to have as many columns as the colspan of its parent block.
@@ -154,7 +152,7 @@ sap.ui.define([
154
152
  * @public
155
153
  * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
156
154
  */
157
- sap.uxap.ObjectPageConfigurationMode = {
155
+ thisLib.ObjectPageConfigurationMode = {
158
156
 
159
157
  /**
160
158
  * Determines the JSON URL.
@@ -177,7 +175,7 @@ sap.ui.define([
177
175
  * @public
178
176
  * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
179
177
  */
180
- sap.uxap.ObjectPageHeaderDesign = {
178
+ thisLib.ObjectPageHeaderDesign = {
181
179
 
182
180
  /**
183
181
  * Light theme for the <code>ObjectPageHeader</code>.
@@ -200,7 +198,7 @@ sap.ui.define([
200
198
  * @public
201
199
  * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
202
200
  */
203
- sap.uxap.ObjectPageHeaderPictureShape = {
201
+ thisLib.ObjectPageHeaderPictureShape = {
204
202
 
205
203
  /**
206
204
  * Circle shape for the images in the <code>ObjectPageHeader</code>.
@@ -223,7 +221,7 @@ sap.ui.define([
223
221
  * @public
224
222
  * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
225
223
  */
226
- sap.uxap.ObjectPageSubSectionLayout = {
224
+ thisLib.ObjectPageSubSectionLayout = {
227
225
 
228
226
  /**
229
227
  * Title and actions on top of the block area.
@@ -246,7 +244,7 @@ sap.ui.define([
246
244
  * @public
247
245
  * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
248
246
  */
249
- sap.uxap.ObjectPageSubSectionMode = {
247
+ thisLib.ObjectPageSubSectionMode = {
250
248
 
251
249
  /**
252
250
  * Collapsed mode of display of the <code>ObjectPageLayout</code>.
@@ -271,7 +269,7 @@ sap.ui.define([
271
269
  * @since 1.32.0
272
270
  * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
273
271
  */
274
- sap.uxap.Importance = {
272
+ thisLib.Importance = {
275
273
 
276
274
  /**
277
275
  * Low importance of the content.
@@ -296,7 +294,7 @@ sap.ui.define([
296
294
  *
297
295
  * @type {{getClosestOPL: Function}}
298
296
  */
299
- sap.uxap.Utilities = {
297
+ thisLib.Utilities = {
300
298
 
301
299
  /**
302
300
  * Returns the reference to the <code>ObjectPageLayout</code> for a given control.
@@ -318,10 +316,10 @@ sap.ui.define([
318
316
  return true;
319
317
  }
320
318
 
321
- return sap.uxap.Utilities._isCurrentMediaSize("Phone", oRange);
319
+ return thisLib.Utilities._isCurrentMediaSize("Phone", oRange);
322
320
  },
323
321
  isTabletScenario: function (oRange) {
324
- return sap.uxap.Utilities._isCurrentMediaSize("Tablet", oRange);
322
+ return thisLib.Utilities._isCurrentMediaSize("Tablet", oRange);
325
323
  },
326
324
  _isCurrentMediaSize: function (sMedia, oRange) {
327
325
  return oRange && oRange.name === sMedia;
@@ -403,6 +401,6 @@ sap.ui.define([
403
401
  * @see {@link topic:d2ef0099542d44dc868719d908e576d0 Object Page Headers}
404
402
  */
405
403
 
406
- return sap.uxap;
404
+ return thisLib;
407
405
 
408
406
  });