@openui5/sap.f 1.120.8 → 1.120.10
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/package.json +4 -4
- package/src/sap/f/.library +1 -1
- package/src/sap/f/Avatar.js +1 -1
- package/src/sap/f/AvatarGroup.js +1 -1
- package/src/sap/f/AvatarGroupItem.js +1 -1
- package/src/sap/f/CalendarAppointmentInCard.js +1 -1
- package/src/sap/f/CalendarInCard.js +1 -1
- package/src/sap/f/Card.js +1 -1
- package/src/sap/f/CardBase.js +1 -1
- package/src/sap/f/DynamicPage.js +1 -1
- package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/DynamicPageHeader.js +1 -1
- package/src/sap/f/DynamicPageTitle.js +1 -1
- package/src/sap/f/FlexibleColumnLayout.js +130 -45
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
- package/src/sap/f/GridContainer.js +1 -1
- package/src/sap/f/GridContainerItemLayoutData.js +1 -1
- package/src/sap/f/GridContainerSettings.js +2 -2
- package/src/sap/f/GridList.js +1 -1
- package/src/sap/f/GridListItem.js +1 -1
- package/src/sap/f/IllustratedMessage.js +1 -1
- package/src/sap/f/Illustration.js +1 -1
- package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
- package/src/sap/f/ProductSwitch.js +1 -1
- package/src/sap/f/ProductSwitchItem.js +1 -1
- package/src/sap/f/SearchManager.js +1 -1
- package/src/sap/f/ShellBar.js +1 -1
- package/src/sap/f/SidePanel.js +1 -1
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +1 -1
- package/src/sap/f/cards/Header.js +1 -1
- package/src/sap/f/cards/NumericHeader.js +1 -1
- package/src/sap/f/cards/NumericIndicators.js +1 -1
- package/src/sap/f/cards/NumericSideIndicator.js +1 -1
- package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/PlaceholderBase.js +1 -1
- package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
- package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
- package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
- package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
- package/src/sap/f/delegate/GridItemNavigation.js +1 -1
- package/src/sap/f/dnd/GridDragOver.js +1 -1
- package/src/sap/f/dnd/GridDropInfo.js +1 -1
- package/src/sap/f/library.js +2 -2
- package/src/sap/f/semantic/AddAction.js +1 -1
- package/src/sap/f/semantic/CloseAction.js +1 -1
- package/src/sap/f/semantic/CopyAction.js +1 -1
- package/src/sap/f/semantic/DeleteAction.js +1 -1
- package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/f/semantic/EditAction.js +1 -1
- package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
- package/src/sap/f/semantic/FavoriteAction.js +1 -1
- package/src/sap/f/semantic/FlagAction.js +1 -1
- package/src/sap/f/semantic/FooterMainAction.js +1 -1
- package/src/sap/f/semantic/FullScreenAction.js +1 -1
- package/src/sap/f/semantic/MainAction.js +1 -1
- package/src/sap/f/semantic/MessagesIndicator.js +1 -1
- package/src/sap/f/semantic/NegativeAction.js +1 -1
- package/src/sap/f/semantic/PositiveAction.js +1 -1
- package/src/sap/f/semantic/PrintAction.js +1 -1
- package/src/sap/f/semantic/SemanticButton.js +1 -1
- package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/f/semantic/SemanticControl.js +1 -1
- package/src/sap/f/semantic/SemanticPage.js +1 -1
- package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/f/semantic/SendEmailAction.js +1 -1
- package/src/sap/f/semantic/SendMessageAction.js +1 -1
- package/src/sap/f/semantic/ShareInJamAction.js +1 -1
- package/src/sap/f/semantic/TitleMainAction.js +1 -1
- package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
- package/src/sap/f/shellBar/CoPilot.js +1 -1
- package/src/sap/f/shellBar/ControlSpacer.js +1 -1
- package/src/sap/f/shellBar/Search.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.f",
|
|
3
|
-
"version": "1.120.
|
|
3
|
+
"version": "1.120.10",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.f",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.120.
|
|
18
|
-
"@openui5/sap.ui.core": "1.120.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.120.
|
|
17
|
+
"@openui5/sap.m": "1.120.10",
|
|
18
|
+
"@openui5/sap.ui.core": "1.120.10",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.120.10"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/sap/f/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.120.
|
|
9
|
+
<version>1.120.10</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with Fiori controls.</documentation>
|
|
12
12
|
|
package/src/sap/f/Avatar.js
CHANGED
package/src/sap/f/AvatarGroup.js
CHANGED
package/src/sap/f/Card.js
CHANGED
package/src/sap/f/CardBase.js
CHANGED
package/src/sap/f/DynamicPage.js
CHANGED
|
@@ -97,7 +97,7 @@ sap.ui.define([
|
|
|
97
97
|
*
|
|
98
98
|
* @extends sap.ui.core.Control
|
|
99
99
|
* @author SAP SE
|
|
100
|
-
* @version 1.120.
|
|
100
|
+
* @version 1.120.10
|
|
101
101
|
*
|
|
102
102
|
* @constructor
|
|
103
103
|
* @public
|
|
@@ -686,6 +686,17 @@ sap.ui.define([
|
|
|
686
686
|
end: 0
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
+
// Create bound listener functions for keyboard event handling
|
|
690
|
+
this._keyListeners = {
|
|
691
|
+
increase : this._resizeColumnOnKeypress.bind(this, "inc", 1),
|
|
692
|
+
decrease : this._resizeColumnOnKeypress.bind(this, "dec", 1),
|
|
693
|
+
increaseMore : this._resizeColumnOnKeypress.bind(this, "incMore", 2),
|
|
694
|
+
decreaseMore : this._resizeColumnOnKeypress.bind(this, "decMore", 2),
|
|
695
|
+
max : this._resizeColumnOnKeypress.bind(this, "max", 1),
|
|
696
|
+
min : this._resizeColumnOnKeypress.bind(this, "min", 1)
|
|
697
|
+
};
|
|
698
|
+
this._enableKeyboardListeners();
|
|
699
|
+
|
|
689
700
|
this._oInvisibleMessage = null;
|
|
690
701
|
this._boundColumnSeparatorMove = this._onColumnSeparatorMove.bind(this);
|
|
691
702
|
this._boundColumnSeparatorMoveEnd = this._onColumnSeparatorMoveEnd.bind(this);
|
|
@@ -715,6 +726,20 @@ sap.ui.define([
|
|
|
715
726
|
}
|
|
716
727
|
};
|
|
717
728
|
|
|
729
|
+
/**
|
|
730
|
+
* Connects the keyboard event listeners so resizing via keyboard will be possible
|
|
731
|
+
*/
|
|
732
|
+
FlexibleColumnLayout.prototype._enableKeyboardListeners = function() {
|
|
733
|
+
this.onsaprightmodifiers = this._keyListeners.increase;
|
|
734
|
+
this.onsapleftmodifiers = this._keyListeners.decrease;
|
|
735
|
+
this.onsapright = this._keyListeners.increaseMore;
|
|
736
|
+
this.onsapleft = this._keyListeners.decreaseMore;
|
|
737
|
+
this.onsapend = this._keyListeners.max;
|
|
738
|
+
this.onsaphome = this._keyListeners.min;
|
|
739
|
+
|
|
740
|
+
this._keyboardEnabled = true;
|
|
741
|
+
};
|
|
742
|
+
|
|
718
743
|
/**
|
|
719
744
|
* Called on after rendering of the internal <code>NavContainer</code> instances to check their rendered pages
|
|
720
745
|
* @private
|
|
@@ -1480,12 +1505,62 @@ sap.ui.define([
|
|
|
1480
1505
|
}
|
|
1481
1506
|
};
|
|
1482
1507
|
|
|
1508
|
+
FlexibleColumnLayout.prototype._resizeColumnOnKeypress = function (sType, iStepSize, oEvent) {
|
|
1509
|
+
|
|
1510
|
+
var oSeparator = this._getColumnSeparator(oEvent.target),
|
|
1511
|
+
iStartX, iEndX;
|
|
1512
|
+
|
|
1513
|
+
if (!oSeparator) {
|
|
1514
|
+
return;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
var iBigStep = this._getControlWidth();
|
|
1518
|
+
|
|
1519
|
+
var iStep = 0;
|
|
1520
|
+
switch (sType) {
|
|
1521
|
+
case "inc":
|
|
1522
|
+
iStep = iStepSize;
|
|
1523
|
+
break;
|
|
1524
|
+
|
|
1525
|
+
case "incMore":
|
|
1526
|
+
iStep = iStepSize * 10;
|
|
1527
|
+
break;
|
|
1528
|
+
|
|
1529
|
+
case "dec":
|
|
1530
|
+
iStep = 0 - iStepSize;
|
|
1531
|
+
break;
|
|
1532
|
+
|
|
1533
|
+
case "decMore":
|
|
1534
|
+
iStep = 0 - iStepSize * 10;
|
|
1535
|
+
break;
|
|
1536
|
+
|
|
1537
|
+
case "max":
|
|
1538
|
+
iStep = iBigStep;
|
|
1539
|
+
break;
|
|
1540
|
+
|
|
1541
|
+
case "min":
|
|
1542
|
+
iStep = 0 - iBigStep;
|
|
1543
|
+
break;
|
|
1544
|
+
|
|
1545
|
+
default:
|
|
1546
|
+
Log.warn("[FlexibleColumnLayout] Invalid keyboard resize type");
|
|
1547
|
+
break;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
iStartX = oSeparator && oSeparator.getBoundingClientRect().x;
|
|
1551
|
+
iEndX = iStartX + iStep;
|
|
1552
|
+
|
|
1553
|
+
this._onColumnSeparatorMoveStart({pageX: iStartX}, oSeparator);
|
|
1554
|
+
this._onColumnSeparatorMove({pageX: iEndX});
|
|
1555
|
+
this._onColumnSeparatorMoveEnd({pageX: iEndX});
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1483
1558
|
FlexibleColumnLayout.prototype._onColumnSeparatorMoveStart = function (oEvent, oSeparator, bTouch) {
|
|
1484
1559
|
// needed to position the separator presizely
|
|
1485
1560
|
var bRtl = Configuration.getRTL(),
|
|
1486
1561
|
iStartOffset = this._getDraggedSeparatorStartOffset(oSeparator, bRtl);
|
|
1487
1562
|
|
|
1488
|
-
this.
|
|
1563
|
+
this._oMoveInfo = {
|
|
1489
1564
|
cursorStartX: oEvent.pageX,
|
|
1490
1565
|
cursorX: oEvent.pageX, // the mouse/finger position-x
|
|
1491
1566
|
columnWidths: {
|
|
@@ -1518,16 +1593,16 @@ sap.ui.define([
|
|
|
1518
1593
|
}
|
|
1519
1594
|
|
|
1520
1595
|
var iCursonX = getCursorPositionX(oEvent);
|
|
1521
|
-
this.
|
|
1596
|
+
this._previewResizedColumnsOnMoveSeparator(iCursonX);
|
|
1522
1597
|
};
|
|
1523
1598
|
|
|
1524
1599
|
FlexibleColumnLayout.prototype._onColumnSeparatorMoveEnd = function (oEvent) {
|
|
1525
1600
|
var iCursonX = getCursorPositionX(oEvent);
|
|
1526
|
-
this.
|
|
1601
|
+
this._previewResizedColumnsOnMoveSeparator(iCursonX, true /* resize end */);
|
|
1527
1602
|
this._saveResizedColumWidths();
|
|
1528
1603
|
|
|
1529
|
-
if (this.
|
|
1530
|
-
this.setLayout(this.
|
|
1604
|
+
if (this._oMoveInfo.layout !== this.getLayout()) {
|
|
1605
|
+
this.setLayout(this._oMoveInfo.layout);
|
|
1531
1606
|
this._fireStateChange(true, false);
|
|
1532
1607
|
}
|
|
1533
1608
|
|
|
@@ -1561,11 +1636,11 @@ sap.ui.define([
|
|
|
1561
1636
|
};
|
|
1562
1637
|
|
|
1563
1638
|
FlexibleColumnLayout.prototype._enterInteractiveResizeMode = function (bTouch) {
|
|
1564
|
-
var oSeparatorPosition = this.
|
|
1639
|
+
var oSeparatorPosition = this._oMoveInfo.separatorPosition;
|
|
1565
1640
|
|
|
1566
1641
|
this._$overlay.css("display", "block");
|
|
1567
1642
|
this._$overlaySeparator.css(oSeparatorPosition.direction, oSeparatorPosition.x);
|
|
1568
|
-
this.
|
|
1643
|
+
this._oMoveInfo.separator.style.visibility = "hidden";
|
|
1569
1644
|
|
|
1570
1645
|
if (bTouch) {
|
|
1571
1646
|
document.addEventListener("touchend", this._boundColumnSeparatorMoveEnd);
|
|
@@ -1578,63 +1653,63 @@ sap.ui.define([
|
|
|
1578
1653
|
|
|
1579
1654
|
FlexibleColumnLayout.prototype._exitInteractiveResizeMode = function () {
|
|
1580
1655
|
this._$overlay.css("display", "");
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1656
|
+
this._oMoveInfo.separator.style.visibility = "";
|
|
1657
|
+
this._oMoveInfo.separator.focus();
|
|
1583
1658
|
this._ignoreMouse = false;
|
|
1584
1659
|
this._ignoreTouch = false;
|
|
1585
|
-
this.
|
|
1660
|
+
this._oMoveInfo = null;
|
|
1586
1661
|
document.removeEventListener("mouseup", this._boundColumnSeparatorMoveEnd);
|
|
1587
1662
|
document.removeEventListener("mousemove", this._boundColumnSeparatorMove);
|
|
1588
1663
|
document.removeEventListener("touchend", this._boundColumnSeparatorMoveEnd);
|
|
1589
1664
|
document.removeEventListener("touchmove", this._boundColumnSeparatorMove);
|
|
1590
1665
|
};
|
|
1591
1666
|
|
|
1592
|
-
FlexibleColumnLayout.prototype.
|
|
1667
|
+
FlexibleColumnLayout.prototype._previewResizedColumnsOnMoveSeparator = function (cursorX, bIsResizeEnd) {
|
|
1593
1668
|
var getPositionOffset = function (iOldCursorX) {
|
|
1594
1669
|
var iOffset = cursorX - iOldCursorX;
|
|
1595
|
-
return this.
|
|
1670
|
+
return this._oMoveInfo.rtl ? -iOffset : iOffset;
|
|
1596
1671
|
}.bind(this);
|
|
1597
1672
|
|
|
1598
|
-
this.
|
|
1599
|
-
this.
|
|
1600
|
-
this.
|
|
1673
|
+
this._oMoveInfo.offsetFromPreviousPosition = getPositionOffset(this._oMoveInfo.cursorX);
|
|
1674
|
+
this._oMoveInfo.offsetFromStartPosition = getPositionOffset(this._oMoveInfo.cursorStartX);
|
|
1675
|
+
this._oMoveInfo.cursorX = cursorX;
|
|
1601
1676
|
|
|
1602
|
-
if (!this.
|
|
1677
|
+
if (!this._oMoveInfo.offsetFromStartPosition) {
|
|
1603
1678
|
return;
|
|
1604
1679
|
}
|
|
1605
1680
|
|
|
1606
|
-
if (!this.
|
|
1681
|
+
if (!this._oMoveInfo.offsetFromPreviousPosition && !bIsResizeEnd) {
|
|
1607
1682
|
return;
|
|
1608
1683
|
}
|
|
1609
1684
|
|
|
1610
|
-
var aResizedColumns = getInteractivelyResizedColumns(this.
|
|
1611
|
-
sSeparator = getSeparatorName(this.
|
|
1612
|
-
bForwardResizeDirection = this.
|
|
1685
|
+
var aResizedColumns = getInteractivelyResizedColumns(this._oMoveInfo.separator, this._oMoveInfo.layout, this.getMaxColumnsCount()),
|
|
1686
|
+
sSeparator = getSeparatorName(this._oMoveInfo.separator),
|
|
1687
|
+
bForwardResizeDirection = this._oMoveInfo.offsetFromStartPosition > 0,
|
|
1613
1688
|
sColumnEnlargedByDragging = aResizedColumns[bForwardResizeDirection ? 0 : 1],
|
|
1614
1689
|
iSeparatorsCount = this._getVisibleColumnSeparatorsCount(),
|
|
1615
1690
|
iSeparatorsCountDiff = 0,
|
|
1616
1691
|
iOffsetOnSeparatorsCountChange = 0,
|
|
1617
1692
|
iOffsetOnColumnWidthNormalization,
|
|
1618
|
-
sPreviousLayout = this.
|
|
1693
|
+
sPreviousLayout = this._oMoveInfo.layout,
|
|
1619
1694
|
sLayout,
|
|
1620
1695
|
bLayoutChange,
|
|
1621
1696
|
oNewColumnWidths,
|
|
1622
1697
|
bResizeWithPinning;
|
|
1623
1698
|
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1699
|
+
this._oMoveInfo.columnWidths[aResizedColumns[0]] += this._oMoveInfo.offsetFromPreviousPosition;
|
|
1700
|
+
this._oMoveInfo.columnWidths[aResizedColumns[1]] -= this._oMoveInfo.offsetFromPreviousPosition;
|
|
1701
|
+
this._oMoveInfo.columnEnlargedByDragging = sColumnEnlargedByDragging;
|
|
1627
1702
|
|
|
1628
|
-
oNewColumnWidths = merge({}, this.
|
|
1703
|
+
oNewColumnWidths = merge({}, this._oMoveInfo.columnWidths);
|
|
1629
1704
|
|
|
1630
1705
|
// if some column is below min allowed width => expand it
|
|
1631
1706
|
this._normalizeColumnWidths(oNewColumnWidths, aResizedColumns);
|
|
1632
1707
|
|
|
1633
1708
|
// if normalization led to width change of some column => the column separator will be offset
|
|
1634
|
-
iOffsetOnColumnWidthNormalization = this.
|
|
1709
|
+
iOffsetOnColumnWidthNormalization = this._oMoveInfo.columnWidths[aResizedColumns[1]] - oNewColumnWidths[aResizedColumns[1]];
|
|
1635
1710
|
|
|
1636
1711
|
// update the dragged separator to match the new mouse/touch position
|
|
1637
|
-
this._offsetDraggedColumnSeparator(this.
|
|
1712
|
+
this._offsetDraggedColumnSeparator(this._oMoveInfo.offsetFromPreviousPosition + iOffsetOnColumnWidthNormalization);
|
|
1638
1713
|
|
|
1639
1714
|
// if the user drags to expand a hidden column, show its content
|
|
1640
1715
|
this._toggleColumnVisibility(sColumnEnlargedByDragging, true);
|
|
@@ -1665,12 +1740,12 @@ sap.ui.define([
|
|
|
1665
1740
|
columnEnlargedByDragging: sColumnEnlargedByDragging
|
|
1666
1741
|
});
|
|
1667
1742
|
|
|
1668
|
-
this.
|
|
1743
|
+
this._oMoveInfo.layout = sLayout;
|
|
1669
1744
|
// allow compute dragging direction relative to the last layout
|
|
1670
|
-
this.
|
|
1745
|
+
this._oMoveInfo.cursorStartX = cursorX;
|
|
1671
1746
|
}
|
|
1672
1747
|
|
|
1673
|
-
this.
|
|
1748
|
+
this._oMoveInfo.columnWidths = oNewColumnWidths;
|
|
1674
1749
|
|
|
1675
1750
|
if (bResizeWithPinning) {
|
|
1676
1751
|
// call the dedicated function in order to resize with reveal/conceal effect
|
|
@@ -1687,8 +1762,18 @@ sap.ui.define([
|
|
|
1687
1762
|
// only offset the rendered columns
|
|
1688
1763
|
// skip mid column as it has width: 100% by default (to allow the mid column
|
|
1689
1764
|
// take the space that remains after sizing its sibling columns)
|
|
1690
|
-
this._$columns.begin.css("width", this.
|
|
1691
|
-
this._$columns.end.css("width", this.
|
|
1765
|
+
this._$columns.begin.css("width", this._oMoveInfo.columnWidths.begin + "px");
|
|
1766
|
+
this._$columns.end.css("width", this._oMoveInfo.columnWidths.end + "px");
|
|
1767
|
+
aResizedColumns.forEach(function(sColumn) {
|
|
1768
|
+
this._updateColumnContextualSettings(sColumn, this._oMoveInfo.columnWidths[sColumn]);
|
|
1769
|
+
}, this);
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
if (bLayoutChange) {
|
|
1773
|
+
this.fireEvent("_liveStateChange", {
|
|
1774
|
+
layout: sLayout,
|
|
1775
|
+
maxColumnsCount: this.getMaxColumnsCount()
|
|
1776
|
+
});
|
|
1692
1777
|
}
|
|
1693
1778
|
};
|
|
1694
1779
|
|
|
@@ -1747,9 +1832,9 @@ sap.ui.define([
|
|
|
1747
1832
|
};
|
|
1748
1833
|
|
|
1749
1834
|
FlexibleColumnLayout.prototype._offsetDraggedColumnSeparator = function (iOffset) {
|
|
1750
|
-
this.
|
|
1751
|
-
this._$overlaySeparator.css(this.
|
|
1752
|
-
this.
|
|
1835
|
+
this._oMoveInfo.separatorPosition.x += iOffset;
|
|
1836
|
+
this._$overlaySeparator.css(this._oMoveInfo.separatorPosition.direction,
|
|
1837
|
+
this._oMoveInfo.separatorPosition.x);
|
|
1753
1838
|
};
|
|
1754
1839
|
|
|
1755
1840
|
FlexibleColumnLayout.prototype._toggleColumnVisibility = function (sColumn, bShow) {
|
|
@@ -1813,12 +1898,12 @@ sap.ui.define([
|
|
|
1813
1898
|
* @returns {boolean} the flag
|
|
1814
1899
|
*/
|
|
1815
1900
|
FlexibleColumnLayout.prototype._isColumnAllowedToHaveBelowMinWidth = function (sColumn) {
|
|
1816
|
-
if (!this.
|
|
1901
|
+
if (!this._oMoveInfo) {
|
|
1817
1902
|
// outside interactive resize the min-width restriction should always be valid
|
|
1818
1903
|
return false;
|
|
1819
1904
|
}
|
|
1820
1905
|
|
|
1821
|
-
if (sColumn === this.
|
|
1906
|
+
if (sColumn === this._oMoveInfo.columnEnlargedByDragging) {
|
|
1822
1907
|
// the user us revealing a hidden column by dragging
|
|
1823
1908
|
// its ajacent separator => do not yet expand the column to min-width
|
|
1824
1909
|
// untill the user stops dragging, to prevent undesired visual jump
|
|
@@ -1898,8 +1983,8 @@ sap.ui.define([
|
|
|
1898
1983
|
};
|
|
1899
1984
|
|
|
1900
1985
|
FlexibleColumnLayout.prototype._saveResizedColumWidths = function() {
|
|
1901
|
-
var sNewLayout = this.
|
|
1902
|
-
oColumnPercentWidths = this._convertColumnPxWidthToPercent(this.
|
|
1986
|
+
var sNewLayout = this._oMoveInfo.layout,
|
|
1987
|
+
oColumnPercentWidths = this._convertColumnPxWidthToPercent(this._oMoveInfo.columnWidths, sNewLayout),
|
|
1903
1988
|
sNewWidthsDistribution = Object.values(oColumnPercentWidths).join("/");
|
|
1904
1989
|
|
|
1905
1990
|
if (this._isValidWidthDistributionForLayout(sNewWidthsDistribution, sNewLayout)) {
|
|
@@ -2144,14 +2229,14 @@ sap.ui.define([
|
|
|
2144
2229
|
};
|
|
2145
2230
|
|
|
2146
2231
|
FlexibleColumnLayout.prototype._isInteractivelyResizedColumn = function (sColumn) {
|
|
2147
|
-
return this.
|
|
2232
|
+
return this._oMoveInfo && this._isColumnAdjacentToDraggedSeparator(sColumn);
|
|
2148
2233
|
};
|
|
2149
2234
|
|
|
2150
2235
|
FlexibleColumnLayout.prototype._isColumnAdjacentToDraggedSeparator = function (sColumn) {
|
|
2151
|
-
return this.
|
|
2152
|
-
this.
|
|
2153
|
-
(this._$columns[sColumn][0] === this.
|
|
2154
|
-
this._$columns[sColumn][0] === this.
|
|
2236
|
+
return this._oMoveInfo &&
|
|
2237
|
+
this._oMoveInfo.separator &&
|
|
2238
|
+
(this._$columns[sColumn][0] === this._oMoveInfo.separator.previousElementSibling ||
|
|
2239
|
+
this._$columns[sColumn][0] === this._oMoveInfo.separator.nextElementSibling);
|
|
2155
2240
|
};
|
|
2156
2241
|
|
|
2157
2242
|
/**
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
*
|
|
50
50
|
* For more information, see {@link sap.f.FlexibleColumnLayoutSemanticHelper#getCurrentUIState} and {@link sap.f.FlexibleColumnLayoutSemanticHelper#getNextUIState}
|
|
51
51
|
*
|
|
52
|
-
* @version 1.120.
|
|
52
|
+
* @version 1.120.10
|
|
53
53
|
* @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
|
|
54
54
|
* The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
|
|
55
55
|
*
|
|
@@ -58,14 +58,14 @@ sap.ui.define([
|
|
|
58
58
|
* Can be used to define the sizes of columns and rows for different screen sizes, by using the <code>layout</code> aggregations of <code>sap.f.GridContainer</code>.
|
|
59
59
|
*
|
|
60
60
|
* @author SAP SE
|
|
61
|
-
* @version 1.120.
|
|
61
|
+
* @version 1.120.10
|
|
62
62
|
*
|
|
63
63
|
* @extends sap.ui.base.ManagedObject
|
|
64
64
|
*
|
|
65
65
|
* @see {@link topic:32d4b9c2b981425dbc374d3e9d5d0c2e Grid Controls}
|
|
66
66
|
*
|
|
67
67
|
* @author SAP SE
|
|
68
|
-
* @version 1.120.
|
|
68
|
+
* @version 1.120.10
|
|
69
69
|
*
|
|
70
70
|
* @experimental Since 1.65 This class is experimental. The API may change.
|
|
71
71
|
* @since 1.65
|
package/src/sap/f/GridList.js
CHANGED
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout MDN web docs: CSS Grid Layout}
|
|
94
94
|
*
|
|
95
95
|
* @author SAP SE
|
|
96
|
-
* @version 1.120.
|
|
96
|
+
* @version 1.120.10
|
|
97
97
|
*
|
|
98
98
|
* @extends sap.m.ListBase
|
|
99
99
|
* @implements sap.ui.layout.cssgrid.IGridConfigurable
|
package/src/sap/f/ShellBar.js
CHANGED
package/src/sap/f/SidePanel.js
CHANGED
package/src/sap/f/library.js
CHANGED
|
@@ -36,13 +36,13 @@ sap.ui.define(["sap/ui/base/DataType",
|
|
|
36
36
|
* @namespace
|
|
37
37
|
* @alias sap.f
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.120.
|
|
39
|
+
* @version 1.120.10
|
|
40
40
|
* @since 1.44
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
43
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
44
44
|
name : "sap.f",
|
|
45
|
-
version: "1.120.
|
|
45
|
+
version: "1.120.10",
|
|
46
46
|
dependencies : ["sap.ui.core", "sap.m", "sap.ui.layout"],
|
|
47
47
|
designtime: "sap/f/designtime/library.designtime",
|
|
48
48
|
interfaces: [
|