@openui5/sap.uxap 1.94.0 → 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 +12 -12
- package/THIRDPARTY.txt +21 -17
- package/package.json +5 -5
- package/src/sap/uxap/.library +1 -1
- package/src/sap/uxap/AnchorBar.js +1 -1
- package/src/sap/uxap/BlockBase.js +3 -1
- package/src/sap/uxap/BlockBaseMetadata.js +1 -1
- package/src/sap/uxap/ObjectPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/uxap/ObjectPageDynamicHeaderContent.js +1 -1
- package/src/sap/uxap/ObjectPageDynamicHeaderTitle.js +1 -1
- package/src/sap/uxap/ObjectPageLayout.js +67 -48
- package/src/sap/uxap/ObjectPageLazyLoader.js +1 -1
- package/src/sap/uxap/ObjectPageSection.js +2 -1
- package/src/sap/uxap/ObjectPageSectionRenderer.js +1 -0
- package/src/sap/uxap/ObjectPageSubSection.js +4 -3
- package/src/sap/uxap/changeHandler/AddIFrameObjectPageLayout.js +1 -1
- package/src/sap/uxap/changeHandler/MoveObjectPageSection.js +1 -1
- package/src/sap/uxap/changeHandler/RenameObjectPageSection.js +1 -1
- package/src/sap/uxap/library.js +2 -2
- package/src/sap/uxap/themes/base/ObjectPageHeaderContent.less +1 -15
- package/ui5.yaml +4 -1
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:
|
|
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
|
|
@@ -405,6 +400,11 @@ Copyright: 2014 Vitaly Puzrin, Alex Kocharin
|
|
|
405
400
|
License: MIT
|
|
406
401
|
Comment: these files belong to: Markdown-it
|
|
407
402
|
|
|
403
|
+
Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
404
|
+
Copyright: 2015-2017 Evgeny Poberezkin
|
|
405
|
+
License: MIT
|
|
406
|
+
Comment: these files belong to: ajv
|
|
407
|
+
|
|
408
408
|
|
|
409
409
|
# Library: sap.ui.mdc:
|
|
410
410
|
|
|
@@ -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/
|
|
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
|
|
@@ -452,11 +452,6 @@ Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
|
452
452
|
License: Apache-2.0
|
|
453
453
|
Comment: these files belong to: LESS
|
|
454
454
|
|
|
455
|
-
Files: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
456
|
-
Copyright: 2015-2017 Evgeny Poberezkin
|
|
457
|
-
License: MIT
|
|
458
|
-
Comment: these files belong to: ajv
|
|
459
|
-
|
|
460
455
|
Files: lib/jsdoc/ui5/plugin.js
|
|
461
456
|
Copyright:
|
|
462
457
|
2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
@@ -464,3 +459,8 @@ Copyright:
|
|
|
464
459
|
License: Apache-2.0
|
|
465
460
|
Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
|
|
466
461
|
|
|
462
|
+
Files: src/sap.ui.core/src/sap/ui/core/themes/base/base.less src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
|
|
463
|
+
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
464
|
+
License: Apache-2.0
|
|
465
|
+
Comment: these files belong to: SAP Theming Base Content
|
|
466
|
+
|
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.
|
|
9
|
+
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.13
|
|
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
|
|
@@ -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.7
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.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:
|
|
283
|
-
Copyright:
|
|
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
|
|
@@ -395,6 +389,12 @@ License: MIT
|
|
|
395
389
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
396
390
|
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
|
|
397
391
|
|
|
392
|
+
Component: ajv, version: 6.12.3
|
|
393
|
+
Copyright: 2015-2017 Evgeny Poberezkin
|
|
394
|
+
License: MIT
|
|
395
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
396
|
+
Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
397
|
+
|
|
398
398
|
|
|
399
399
|
Library: sap.ui.mdc:
|
|
400
400
|
|
|
@@ -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/
|
|
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
|
|
@@ -450,18 +451,21 @@ License: Apache-2.0
|
|
|
450
451
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
452
|
Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
452
453
|
|
|
453
|
-
Component: ajv, version: 6.12.3
|
|
454
|
-
Copyright: 2015-2017 Evgeny Poberezkin
|
|
455
|
-
License: MIT
|
|
456
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
457
|
-
Contained in: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
458
|
-
|
|
459
454
|
Component: JSDoc 3, version: 3.6.7
|
|
460
455
|
Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
461
456
|
License: Apache-2.0
|
|
462
457
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
463
458
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
464
459
|
|
|
460
|
+
Component: SAP Theming Base Content, version: 11.1.34
|
|
461
|
+
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
462
|
+
License: Apache-2.0
|
|
463
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
464
|
+
Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
|
|
465
|
+
src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less
|
|
466
|
+
src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less
|
|
467
|
+
src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
|
|
468
|
+
|
|
465
469
|
|
|
466
470
|
ALL LICENSE TEXTS:
|
|
467
471
|
==================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.uxap",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.97.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.
|
|
18
|
-
"@openui5/sap.m": "1.
|
|
19
|
-
"@openui5/sap.ui.core": "1.
|
|
20
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.f": "1.97.0",
|
|
18
|
+
"@openui5/sap.m": "1.97.0",
|
|
19
|
+
"@openui5/sap.ui.core": "1.97.0",
|
|
20
|
+
"@openui5/sap.ui.layout": "1.97.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/src/sap/uxap/.library
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<name>sap.uxap</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
|
-
<version>1.
|
|
6
|
+
<version>1.97.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
|
-
|
|
627
|
+
this.$("scroll").parent().stop(true, false);
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
this._iCurrentScrollTimeout = setTimeout(function () {
|
|
@@ -12,6 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ui/core/mvc/View",
|
|
13
13
|
"sap/ui/base/ManagedObjectObserver",
|
|
14
14
|
"./BlockBaseMetadata",
|
|
15
|
+
"./BlockBaseRenderer",
|
|
15
16
|
"sap/ui/model/Context",
|
|
16
17
|
"sap/ui/Device",
|
|
17
18
|
"sap/ui/layout/form/ColumnLayout",
|
|
@@ -26,6 +27,7 @@ sap.ui.define([
|
|
|
26
27
|
CoreView,
|
|
27
28
|
ManagedObjectObserver,
|
|
28
29
|
BlockBaseMetadata,
|
|
30
|
+
BlockBaseRenderer,
|
|
29
31
|
Context,
|
|
30
32
|
Device,
|
|
31
33
|
ColumnLayout,
|
|
@@ -186,7 +188,7 @@ sap.ui.define([
|
|
|
186
188
|
//
|
|
187
189
|
}
|
|
188
190
|
},
|
|
189
|
-
renderer:
|
|
191
|
+
renderer: BlockBaseRenderer
|
|
190
192
|
}, BlockBaseMetadata);
|
|
191
193
|
|
|
192
194
|
BlockBase.prototype.init = function () {
|
|
@@ -910,6 +910,10 @@ sap.ui.define([
|
|
|
910
910
|
this._scrollTo(0, 0, 0);
|
|
911
911
|
this._bHeaderExpanded = true;
|
|
912
912
|
this._updateToggleHeaderVisualIndicators();
|
|
913
|
+
|
|
914
|
+
if (this._isHeaderPinnable()) {
|
|
915
|
+
this._getHeaderContent()._getPinButton().setVisible(!this._headerBiggerThanAllowedToBeExpandedInTitleArea());
|
|
916
|
+
}
|
|
913
917
|
};
|
|
914
918
|
|
|
915
919
|
ObjectPageLayout.prototype._handleDynamicTitlePress = function () {
|
|
@@ -1173,7 +1177,6 @@ sap.ui.define([
|
|
|
1173
1177
|
}
|
|
1174
1178
|
|
|
1175
1179
|
if (oHeaderContent && oHeaderContent.supportsPinUnpin()) {
|
|
1176
|
-
this.$().toggleClass("sapUxAPObjectPageLayoutHeaderPinnable", oHeaderContent.getPinnable());
|
|
1177
1180
|
this._updatePinButtonState();
|
|
1178
1181
|
}
|
|
1179
1182
|
|
|
@@ -1565,17 +1568,17 @@ sap.ui.define([
|
|
|
1565
1568
|
};
|
|
1566
1569
|
|
|
1567
1570
|
ObjectPageLayout.prototype._cacheDomElements = function () {
|
|
1568
|
-
this._$footerWrapper =
|
|
1569
|
-
this._$titleArea =
|
|
1570
|
-
this._$anchorBar =
|
|
1571
|
-
this._$stickyAnchorBar =
|
|
1572
|
-
this._$opWrapper =
|
|
1573
|
-
this._$spacer =
|
|
1574
|
-
this._$headerContent =
|
|
1575
|
-
this._$stickyHeaderContent =
|
|
1576
|
-
this._$contentContainer =
|
|
1577
|
-
this._$sectionsContainer =
|
|
1578
|
-
this._$skipFastGroupAnchor =
|
|
1571
|
+
this._$footerWrapper = this.$("footerWrapper");
|
|
1572
|
+
this._$titleArea = this.$("headerTitle");
|
|
1573
|
+
this._$anchorBar = this.$("anchorBar");
|
|
1574
|
+
this._$stickyAnchorBar = this.$("stickyAnchorBar");
|
|
1575
|
+
this._$opWrapper = this.$("opwrapper");
|
|
1576
|
+
this._$spacer = this.$("spacer");
|
|
1577
|
+
this._$headerContent = this.$("headerContent");
|
|
1578
|
+
this._$stickyHeaderContent = this.$("stickyHeaderContent");
|
|
1579
|
+
this._$contentContainer = this.$("scroll");
|
|
1580
|
+
this._$sectionsContainer = this.$("sectionsContainer");
|
|
1581
|
+
this._$skipFastGroupAnchor = this.$("skipFastGroupAnchor");
|
|
1579
1582
|
|
|
1580
1583
|
// BCP 1870201875: explicitly set the latest scrollContainer dom ref
|
|
1581
1584
|
// (as the scroller obtains the latest scrollContainer dom ref in a LATER hook, which fails in conditions detailed in BCP 1870201875)
|
|
@@ -2531,7 +2534,6 @@ sap.ui.define([
|
|
|
2531
2534
|
var oInfo = this._oSectionInfo[oSectionBase.getId()],
|
|
2532
2535
|
$this = oSectionBase.$(),
|
|
2533
2536
|
oSection,
|
|
2534
|
-
$title,
|
|
2535
2537
|
bPromoted = false;
|
|
2536
2538
|
|
|
2537
2539
|
if (!oInfo /* sectionBase is visible */ || !$this.length) {
|
|
@@ -2551,19 +2553,15 @@ sap.ui.define([
|
|
|
2551
2553
|
//the amount of scrolling required is the distance between their position().top and the bottom of the anchorBar
|
|
2552
2554
|
oInfo.positionTop = Math.ceil(realTop);
|
|
2553
2555
|
|
|
2554
|
-
if (oInfo.isSection) {
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
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);
|
|
2556
|
+
if (!oInfo.isSection && (oSection = oSectionBase.getParent())) {
|
|
2557
|
+
// a promoted subSection borrows the title of its parent section
|
|
2558
|
+
bPromoted = oSectionBase._getTitleDomId() === oSection.getId() + "-title";
|
|
2559
|
+
if (bPromoted) {
|
|
2560
|
+
// the scrollTop required to scroll to a promoted subsection
|
|
2561
|
+
// is the top of the parent section (UX rule)
|
|
2562
|
+
var parentRealTop = oSection.$().position().top;
|
|
2563
|
+
oInfo.positionTop = Math.ceil(parentRealTop);
|
|
2564
|
+
}
|
|
2567
2565
|
}
|
|
2568
2566
|
|
|
2569
2567
|
if (!this._bStickyAnchorBar && !this._bHeaderInTitleArea) { // in sticky mode the anchor bar is not part of the content
|
|
@@ -3018,18 +3016,18 @@ sap.ui.define([
|
|
|
3018
3016
|
}
|
|
3019
3017
|
|
|
3020
3018
|
this._adjustHeaderHeights();
|
|
3021
|
-
this._requestAdjustLayout() // call adjust layout to calculate the new section sizes
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3019
|
+
this._requestAdjustLayout(true); // call adjust layout to calculate the new section sizes
|
|
3020
|
+
|
|
3021
|
+
if (oOldSize.height > 0 || oOldSize.width > 0) {
|
|
3022
|
+
// if the content that changed its height was *above* the current scroll position =>
|
|
3023
|
+
// then the current scroll position updated respectively and => triggered a scroll event =>
|
|
3024
|
+
// a new section may become selected during that scroll;
|
|
3025
|
+
// problem if this happened BEFORE _requestAdjustLayout executed => wrong section may have been selected
|
|
3026
|
+
// solution implemented bellow is to ensure that scroll handler is called with the latest scrollTop => we ensure the correct section is selected
|
|
3027
|
+
iScrollTop = this._$opWrapper.scrollTop();
|
|
3028
|
+
this._updateSelectionOnScroll(iScrollTop);
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3033
3031
|
};
|
|
3034
3032
|
|
|
3035
3033
|
/**
|
|
@@ -3053,6 +3051,9 @@ sap.ui.define([
|
|
|
3053
3051
|
return;
|
|
3054
3052
|
}
|
|
3055
3053
|
|
|
3054
|
+
this._bMobileScenario = library.Utilities.isPhoneScenario(this._getCurrentMediaContainerRange());
|
|
3055
|
+
this._bTabletScenario = library.Utilities.isTabletScenario(this._getCurrentMediaContainerRange());
|
|
3056
|
+
|
|
3056
3057
|
if (!this._bDomReady) {
|
|
3057
3058
|
Log.info("ObjectPageLayout :: cannot _onUpdateScreenSize before dom is ready");
|
|
3058
3059
|
return;
|
|
@@ -3061,16 +3062,19 @@ sap.ui.define([
|
|
|
3061
3062
|
this._oLazyLoading.setLazyLoadingParameters();
|
|
3062
3063
|
|
|
3063
3064
|
setTimeout(function () {
|
|
3064
|
-
this._bMobileScenario = library.Utilities.isPhoneScenario(this._getCurrentMediaContainerRange());
|
|
3065
|
-
this._bTabletScenario = library.Utilities.isTabletScenario(this._getCurrentMediaContainerRange());
|
|
3066
|
-
|
|
3067
3065
|
if (bIsAlwaysShowContentHeaderEnabled && (this._bHeaderInTitleArea != this._checkAlwaysShowContentHeader())) {
|
|
3068
3066
|
this.invalidate();
|
|
3069
3067
|
}
|
|
3070
3068
|
|
|
3071
3069
|
if (this._bHeaderInTitleArea && this._headerBiggerThanAllowedToBeExpandedInTitleArea()) {
|
|
3070
|
+
if (this._isHeaderPinnable()) {
|
|
3071
|
+
this._updatePinButtonState();
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3072
3074
|
this._expandHeader(false);
|
|
3073
3075
|
this._scrollTo(0, 0);
|
|
3076
|
+
} else if (this._isHeaderPinnable() && !this._headerBiggerThanAllowedToBeExpandedInTitleArea()) {
|
|
3077
|
+
this._updatePinButtonState();
|
|
3074
3078
|
}
|
|
3075
3079
|
|
|
3076
3080
|
// Let the dynamic header know size changed first, because this might lead to header dimensions changes
|
|
@@ -3298,12 +3302,12 @@ sap.ui.define([
|
|
|
3298
3302
|
if (iScrollTop === 0) {
|
|
3299
3303
|
// 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
3304
|
// otherwise part of the arrow is cut off
|
|
3301
|
-
|
|
3305
|
+
this.$("scroll").css("z-index", "1000");
|
|
3302
3306
|
bScrolled = false;
|
|
3303
3307
|
} else if (!bScrolled) {
|
|
3304
3308
|
bScrolled = true;
|
|
3305
3309
|
// and we have to "reset" the z-index it when we start scrolling
|
|
3306
|
-
|
|
3310
|
+
this.$("scroll").css("z-index", "0");
|
|
3307
3311
|
}
|
|
3308
3312
|
}
|
|
3309
3313
|
};
|
|
@@ -3511,6 +3515,10 @@ sap.ui.define([
|
|
|
3511
3515
|
this._bHeaderExpanded = true;
|
|
3512
3516
|
this._adjustHeaderHeights();
|
|
3513
3517
|
this._updateToggleHeaderVisualIndicators();
|
|
3518
|
+
|
|
3519
|
+
if (this._isHeaderPinnable()) {
|
|
3520
|
+
this._getHeaderContent()._getPinButton().setVisible(!this._headerBiggerThanAllowedToBeExpandedInTitleArea());
|
|
3521
|
+
}
|
|
3514
3522
|
}
|
|
3515
3523
|
};
|
|
3516
3524
|
|
|
@@ -4458,14 +4466,25 @@ sap.ui.define([
|
|
|
4458
4466
|
|
|
4459
4467
|
ObjectPageLayout.prototype._isHeaderPinnable = function () {
|
|
4460
4468
|
var oHeader = this._getHeaderContent();
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4469
|
+
|
|
4470
|
+
return oHeader && oHeader.supportsPinUnpin() && oHeader.getPinnable();
|
|
4471
|
+
};
|
|
4472
|
+
|
|
4473
|
+
ObjectPageLayout.prototype._shouldPinUnpinHeader = function () {
|
|
4474
|
+
return this._bHeaderExpanded
|
|
4475
|
+
&& !this.getPreserveHeaderStateOnScroll()
|
|
4476
|
+
&& !this._headerBiggerThanAllowedToBeExpandedInTitleArea();
|
|
4464
4477
|
};
|
|
4465
4478
|
|
|
4466
4479
|
ObjectPageLayout.prototype._updatePinButtonState = function() {
|
|
4467
|
-
var
|
|
4468
|
-
|
|
4480
|
+
var bIsHeaderPinnable = this._isHeaderPinnable(),
|
|
4481
|
+
bShouldPin = bIsHeaderPinnable && this.getHeaderContentPinned() && this._shouldPinUnpinHeader(),
|
|
4482
|
+
oHeaderContent = this._getHeaderContent();
|
|
4483
|
+
|
|
4484
|
+
oHeaderContent._togglePinButton(bShouldPin);
|
|
4485
|
+
this.$().toggleClass("sapUxAPObjectPageLayoutHeaderPinnable", bIsHeaderPinnable);
|
|
4486
|
+
oHeaderContent._getPinButton().setVisible(!this._headerBiggerThanAllowedToBeExpandedInTitleArea());
|
|
4487
|
+
|
|
4469
4488
|
if (bShouldPin) {
|
|
4470
4489
|
this._pin();
|
|
4471
4490
|
} else {
|
|
@@ -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 &&
|
|
150
|
+
oHeaderDOM = this.bOutput && this.getDomRef("header");
|
|
151
151
|
|
|
152
152
|
this.getSubSections().forEach(function (oSubSection) {
|
|
153
153
|
oSubSection._applyImportanceRules(sImportanceLevelToHide);
|
|
@@ -157,6 +157,7 @@ sap.ui.define([
|
|
|
157
157
|
this._updateShowHideAllButton(false);
|
|
158
158
|
|
|
159
159
|
oHeaderDOM && oHeaderDOM.classList.toggle("sapUxAPObjectPageSectionHeaderHidden", !this._isTitleVisible());
|
|
160
|
+
oHeaderDOM && oHeaderDOM.setAttribute("aria-hidden", !this._isTitleVisible());
|
|
160
161
|
|
|
161
162
|
if (oObjectPage && this.getDomRef()) {
|
|
162
163
|
oObjectPage._requestAdjustLayout();
|
|
@@ -45,6 +45,7 @@ sap.ui.define(function () {
|
|
|
45
45
|
oRm.openStart("div", oControl.getId() + "-header")
|
|
46
46
|
.attr("role", "heading")
|
|
47
47
|
.attr("aria-level", oControl._getARIALevel())
|
|
48
|
+
.attr("aria-hidden", !bTitleVisible)
|
|
48
49
|
.class("sapUxAPObjectPageSectionHeader")
|
|
49
50
|
.class(bTitleVisible ? "" : "sapUxAPObjectPageSectionHeaderHidden")
|
|
50
51
|
.openEnd();
|
|
@@ -512,12 +512,13 @@ sap.ui.define([
|
|
|
512
512
|
return;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
-
this._$spacer =
|
|
515
|
+
this._$spacer = oObjectPageLayout.$("spacer");
|
|
516
516
|
|
|
517
|
-
if (this._bShouldFocusSeeMoreLessButton) {
|
|
518
|
-
this._bShouldFocusSeeMoreLessButton = false;
|
|
517
|
+
if (this._bShouldFocusSeeMoreLessButton && document.activeElement === document.body) {
|
|
519
518
|
this._oCurrentlyVisibleSeeMoreLessButton.focus();
|
|
520
519
|
}
|
|
520
|
+
|
|
521
|
+
this._bShouldFocusSeeMoreLessButton = false;
|
|
521
522
|
};
|
|
522
523
|
|
|
523
524
|
ObjectPageSubSection.prototype.onBeforeRendering = function () {
|
package/src/sap/uxap/library.js
CHANGED
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @namespace
|
|
25
25
|
* @name sap.uxap
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.97.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.
|
|
72
|
+
version: "1.97.0",
|
|
73
73
|
extensions: {
|
|
74
74
|
flChangeHandlers: {
|
|
75
75
|
"sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.sapUiVltCell > .sapMObjectAttributeDiv, .sapUiVltCell > .sapMObjStatus {
|
|
113
|
-
line-height:
|
|
113
|
+
line-height: 1rem;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/* ProgressIndicator has display flex, but OPHeaderContent override it by setting display inline-block
|
|
@@ -134,20 +134,6 @@
|
|
|
134
134
|
width: 100% !important;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
.sapMSlt {
|
|
138
|
-
height: 1.625rem;
|
|
139
|
-
margin-top: 0.1875rem;
|
|
140
|
-
margin-bottom: 0.1875rem;
|
|
141
|
-
.sapMSltLabel {
|
|
142
|
-
line-height: 1.5rem;
|
|
143
|
-
padding-right: 2.5rem;
|
|
144
|
-
padding-left: 0.5rem;
|
|
145
|
-
}
|
|
146
|
-
.sapMSltArrow {
|
|
147
|
-
width: 2rem;
|
|
148
|
-
line-height: 1.625rem;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
137
|
}
|
|
152
138
|
|
|
153
139
|
.sapUxAPObjectPageHeaderLayoutHiddenL,
|
package/ui5.yaml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
specVersion: "
|
|
2
|
+
specVersion: "2.0"
|
|
3
3
|
type: library
|
|
4
4
|
metadata:
|
|
5
5
|
name: sap.uxap
|
|
@@ -7,3 +7,6 @@ metadata:
|
|
|
7
7
|
OpenUI5
|
|
8
8
|
* (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company.
|
|
9
9
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
10
|
+
resources:
|
|
11
|
+
configuration:
|
|
12
|
+
propertiesFileSourceEncoding: ISO-8859-1
|