@sapui5/sap.suite.ui.commons 1.135.0 → 1.136.1
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 +1 -1
- package/src/sap/suite/ui/commons/.library +1 -1
- package/src/sap/suite/ui/commons/AriaProperties.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilder.js +2 -2
- package/src/sap/suite/ui/commons/CalculationBuilderExpression.js +2 -2
- package/src/sap/suite/ui/commons/CalculationBuilderFunction.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderGroup.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderItem.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderValidationResult.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderVariable.js +1 -1
- package/src/sap/suite/ui/commons/ChartContainer.js +8 -8
- package/src/sap/suite/ui/commons/ChartContainerContent.js +1 -1
- package/src/sap/suite/ui/commons/CloudFilePicker.js +6 -7
- package/src/sap/suite/ui/commons/FacetOverview.js +1 -1
- package/src/sap/suite/ui/commons/GenericTile2X2.js +1 -1
- package/src/sap/suite/ui/commons/HeaderContainer.js +1 -1
- package/src/sap/suite/ui/commons/MicroProcessFlow.js +2 -2
- package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
- package/src/sap/suite/ui/commons/ProcessFlow.js +20 -20
- package/src/sap/suite/ui/commons/ProcessFlowConnectionLabel.js +1 -1
- package/src/sap/suite/ui/commons/ProcessFlowLaneHeader.js +4 -3
- package/src/sap/suite/ui/commons/ProcessFlowNode.js +1 -1
- package/src/sap/suite/ui/commons/ProcessFlowRenderer.js +37 -22
- package/src/sap/suite/ui/commons/TargetFilter.js +2 -2
- package/src/sap/suite/ui/commons/ThreePanelThingViewer.js +1 -1
- package/src/sap/suite/ui/commons/Timeline.js +5 -4
- package/src/sap/suite/ui/commons/TimelineRenderManager.js +2 -2
- package/src/sap/suite/ui/commons/UnifiedThingInspector.js +1 -1
- package/src/sap/suite/ui/commons/ViewRepeater.js +3 -3
- package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +2 -1
- package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component-preload.js +30 -31
- package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/library.js +1 -1
- package/src/sap/suite/ui/commons/messagebundle.properties +26 -24
- package/src/sap/suite/ui/commons/networkgraph/ElementBase.js +10 -5
- package/src/sap/suite/ui/commons/networkgraph/Graph.js +1 -0
- package/src/sap/suite/ui/commons/networkgraph/GraphMap.js +1 -1
- package/src/sap/suite/ui/commons/networkgraph/Group.js +14 -8
- package/src/sap/suite/ui/commons/networkgraph/Node.js +27 -11
- package/src/sap/suite/ui/commons/networkgraph/Utils.js +4 -1
- package/src/sap/suite/ui/commons/networkgraph/layout/LayoutTask.js +5 -1
- package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountItem.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
- package/src/sap/suite/ui/commons/themes/base/NetworkGraph.less +2 -2
- package/src/sap/suite/ui/commons/themes/base/NetworkNode.less +1 -1
- package/src/sap/suite/ui/commons/themes/base/SemanticColorMixins.less +156 -156
- package/src/sap/suite/ui/commons/themes/sap_belize_base/NetworkGraph.less +2 -2
- package/src/sap/suite/ui/commons/themes/sap_belize_base/NetworkNode.less +1 -1
- package/src/sap/suite/ui/commons/themes/sap_bluecrystal_base/NetworkGraph.less +2 -2
- package/src/sap/suite/ui/commons/themes/sap_bluecrystal_base/NetworkNode.less +1 -1
- package/src/sap/suite/ui/commons/themes/sap_hcb/base_NetworkGraph.less +2 -2
- package/src/sap/suite/ui/commons/themes/sap_hcb/base_NetworkNode.less +1 -1
package/package.json
CHANGED
|
@@ -134,7 +134,7 @@ sap.ui.define([
|
|
|
134
134
|
* @extends sap.ui.core.Control
|
|
135
135
|
*
|
|
136
136
|
* @author SAP SE
|
|
137
|
-
* @version 1.
|
|
137
|
+
* @version 1.136.1
|
|
138
138
|
* @since 1.56.0
|
|
139
139
|
*
|
|
140
140
|
* @constructor
|
|
@@ -757,7 +757,7 @@ sap.ui.define([
|
|
|
757
757
|
TOP_ERROR_COUNT = 5;
|
|
758
758
|
|
|
759
759
|
for (var i = 0; i < aErrors.length && iErrorCount < TOP_ERROR_COUNT; i++) {
|
|
760
|
-
if ((aErrors[i].index < 0 || !
|
|
760
|
+
if ((aErrors[i].index < 0 || !Number.isFinite(Number(aErrors[i].index))) || !bOnlyNonIndexErrors) {
|
|
761
761
|
iErrorCount++;
|
|
762
762
|
sTitle += aErrors[i].title + "\n";
|
|
763
763
|
}
|
|
@@ -169,7 +169,7 @@ sap.ui.define([
|
|
|
169
169
|
* @extends sap.ui.core.Control
|
|
170
170
|
*
|
|
171
171
|
* @author SAP SE
|
|
172
|
-
* @version 1.
|
|
172
|
+
* @version 1.136.1
|
|
173
173
|
* @since 1.56.0
|
|
174
174
|
*
|
|
175
175
|
* @constructor
|
|
@@ -1032,7 +1032,7 @@ sap.ui.define([
|
|
|
1032
1032
|
|
|
1033
1033
|
CalculationBuilderExpression.prototype._submitLiteralInput = function (oLiteralInput) {
|
|
1034
1034
|
var sValue = oLiteralInput.getValue();
|
|
1035
|
-
if (this.getParent() && this.getParent().getAllowStringLiterals() && !
|
|
1035
|
+
if (this.getParent() && this.getParent().getAllowStringLiterals() && !Number.isFinite(Number(sValue))) {
|
|
1036
1036
|
sValue = "\"" + sValue + "\"";
|
|
1037
1037
|
}
|
|
1038
1038
|
this._updateOrCreateItem({
|
|
@@ -597,7 +597,7 @@ sap.ui.define([
|
|
|
597
597
|
if (oSelectedContent) {
|
|
598
598
|
var selectedChart = oSelectedContent.getContent();
|
|
599
599
|
//only support if content has legendVisible property
|
|
600
|
-
if (
|
|
600
|
+
if (typeof selectedChart.getLegendVisible === "function") {
|
|
601
601
|
var legendOn = selectedChart.getLegendVisible();
|
|
602
602
|
selectedChart.setLegendVisible(!legendOn);
|
|
603
603
|
this.setShowLegend(!legendOn);
|
|
@@ -659,7 +659,7 @@ sap.ui.define([
|
|
|
659
659
|
this._toggleShowLegendButtons(oChart);
|
|
660
660
|
|
|
661
661
|
bChartIsVizFrame = oChart && oChart.getMetadata && oChart.getMetadata().getName() === "sap.viz.ui5.controls.VizFrame";
|
|
662
|
-
var bShowChart = bChartIsVizFrame ||
|
|
662
|
+
var bShowChart = bChartIsVizFrame || typeof oChart.setLegendVisible === "function"; //hide legend icon if table, show if chart
|
|
663
663
|
if (this.getShowLegendButton()) {
|
|
664
664
|
this._oShowLegendButton.setVisible(bShowChart);
|
|
665
665
|
}
|
|
@@ -834,7 +834,7 @@ sap.ui.define([
|
|
|
834
834
|
*/
|
|
835
835
|
ChartContainer.prototype._rememberOriginalHeight = function (chart) {
|
|
836
836
|
var sHeight;
|
|
837
|
-
if (
|
|
837
|
+
if (typeof chart.getHeight === "function") {
|
|
838
838
|
sHeight = chart.getHeight();
|
|
839
839
|
} else {
|
|
840
840
|
sHeight = 0;
|
|
@@ -883,7 +883,7 @@ sap.ui.define([
|
|
|
883
883
|
continue;
|
|
884
884
|
}
|
|
885
885
|
oInnerChart = aCharts[i].getContent();
|
|
886
|
-
if (
|
|
886
|
+
if (typeof oInnerChart.setVizProperties === "function") {
|
|
887
887
|
oInnerChart.setVizProperties({
|
|
888
888
|
legend: {
|
|
889
889
|
visible: bShowLegend
|
|
@@ -893,10 +893,10 @@ sap.ui.define([
|
|
|
893
893
|
}
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
|
-
if (
|
|
896
|
+
if (typeof oInnerChart.setWidth === "function") {
|
|
897
897
|
oInnerChart.setWidth("100%");
|
|
898
898
|
}
|
|
899
|
-
if (
|
|
899
|
+
if (typeof oInnerChart.setHeight === "function" && this._mOriginalVizFrameHeights[oInnerChart.getId()]) {
|
|
900
900
|
oInnerChart.setHeight(this._mOriginalVizFrameHeights[oInnerChart.getId()]);
|
|
901
901
|
}
|
|
902
902
|
oButtonIcon = new SegmentedButtonItem({
|
|
@@ -1053,7 +1053,7 @@ sap.ui.define([
|
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
1055
|
for (var i = 0; i < this._aDimensionSelectors.length; i++) {
|
|
1056
|
-
if (
|
|
1056
|
+
if (typeof this._aDimensionSelectors[i].setAutoAdjustWidth === "function") {
|
|
1057
1057
|
this._aDimensionSelectors[i].setAutoAdjustWidth(true);
|
|
1058
1058
|
}
|
|
1059
1059
|
this._addContentToolbar(this._aDimensionSelectors[i]);
|
|
@@ -1180,7 +1180,7 @@ sap.ui.define([
|
|
|
1180
1180
|
var oInnerChart;
|
|
1181
1181
|
for (var i = 0; i < aContents.length; i++) {
|
|
1182
1182
|
oInnerChart = aContents[i].getContent();
|
|
1183
|
-
if (
|
|
1183
|
+
if (typeof oInnerChart.setLegendVisible === "function") {
|
|
1184
1184
|
oInnerChart.setLegendVisible(showLegend);
|
|
1185
1185
|
} else {
|
|
1186
1186
|
Log.info("ChartContainer: chart with id " + oInnerChart.getId() + " is missing the setVizProperties property");
|
|
@@ -187,7 +187,7 @@ sap.ui.define([
|
|
|
187
187
|
if (ChartContainerContent._aProxyEvent.indexOf(eventId) === -1) {
|
|
188
188
|
fnAttachEvent.apply(this, arguments);
|
|
189
189
|
return;
|
|
190
|
-
} else if (
|
|
190
|
+
} else if (typeof data === "function") {
|
|
191
191
|
listener = callback;
|
|
192
192
|
callback = data;
|
|
193
193
|
data = null;
|
|
@@ -118,7 +118,7 @@ sap.ui.define([
|
|
|
118
118
|
* @class
|
|
119
119
|
* @public
|
|
120
120
|
* @internal
|
|
121
|
-
* @version 1.
|
|
121
|
+
* @version 1.136.1
|
|
122
122
|
*/
|
|
123
123
|
var CloudFilePicker = Dialog.extend("sap.suite.ui.commons.CloudFilePicker", {
|
|
124
124
|
metadata: {
|
|
@@ -351,8 +351,8 @@ sap.ui.define([
|
|
|
351
351
|
if (mParameters.error || (!Object.keys(mParameters.data).length && !oEvent.getSource().getCurrentContexts().length)) {
|
|
352
352
|
this.setBusy(false);
|
|
353
353
|
var oMessage = new IllustratedMessage({
|
|
354
|
-
illustrationType: IllustratedMessageType.
|
|
355
|
-
illustrationSize: IllustratedMessageSize.
|
|
354
|
+
illustrationType: IllustratedMessageType.UnableToUpload,
|
|
355
|
+
illustrationSize: IllustratedMessageSize.Small,
|
|
356
356
|
enableVerticalResponsiveness: true,
|
|
357
357
|
title: oResourceBundle.getText("CFP_NO_FILESHARE_FOUND"),
|
|
358
358
|
description: oResourceBundle.getText("CFP_NO_FILESHARE_FOUND_RELOAD"),
|
|
@@ -452,8 +452,8 @@ sap.ui.define([
|
|
|
452
452
|
var sFilePickerType = this.getFilePickerType();
|
|
453
453
|
var sFileSelectionMode = this.getSelectionMode();
|
|
454
454
|
var oMessage = new IllustratedMessage({
|
|
455
|
-
illustrationType: IllustratedMessageType.
|
|
456
|
-
illustrationSize: IllustratedMessageSize.
|
|
455
|
+
illustrationType: IllustratedMessageType.NoSearchResults,
|
|
456
|
+
illustrationSize: IllustratedMessageSize.Small,
|
|
457
457
|
enableVerticalResponsiveness: true,
|
|
458
458
|
title: oResourceBundle.getText("CFP_EMPTY_FOLDER_TEXT"),
|
|
459
459
|
description: oResourceBundle.getText("CFP_EMPTY_FOLDER_DESCRIPTION")
|
|
@@ -478,7 +478,7 @@ sap.ui.define([
|
|
|
478
478
|
minWidth: "200px",
|
|
479
479
|
maxWidth: "300px",
|
|
480
480
|
shrinkable: true,
|
|
481
|
-
|
|
481
|
+
priority: "NeverOverflow"
|
|
482
482
|
}),
|
|
483
483
|
visible:false
|
|
484
484
|
}),
|
|
@@ -541,7 +541,6 @@ sap.ui.define([
|
|
|
541
541
|
],
|
|
542
542
|
autoPopinMode: true,
|
|
543
543
|
sticky:["HeaderToolbar","ColumnHeaders"],
|
|
544
|
-
headerDesign:"Plain",
|
|
545
544
|
noDataText: " ", // UX reccomends to show no text and table shows "No Data" by default
|
|
546
545
|
mode: sFilePickerType === FilePickerType.Upload && sFileSelectionMode === SelectionMode.MultiSelect ? "None" : "SingleSelectMaster",
|
|
547
546
|
growing:true,
|
|
@@ -166,7 +166,7 @@ sap.ui.define([
|
|
|
166
166
|
ResizeHandler.deregister(this._sTitleResizeHandlerId);
|
|
167
167
|
}
|
|
168
168
|
var oTitle = this.getId() + "-title" ? window.document.getElementById(this.getId() + "-title") : null;
|
|
169
|
-
this._sTitleResizeHandlerId = ResizeHandler.register(oTitle,
|
|
169
|
+
this._sTitleResizeHandlerId = ResizeHandler.register(oTitle, this._handleTitleResize.bind(this));
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
this._handleTitleResize();
|
|
@@ -208,7 +208,7 @@ sap.ui.define([
|
|
|
208
208
|
this._checkFooter(this.getState());
|
|
209
209
|
|
|
210
210
|
if (this.getState() === "Disabled") {
|
|
211
|
-
this._oBusy.$().on("tap",
|
|
211
|
+
this._oBusy.$().on("tap", this._handleOvrlClick.bind(this));
|
|
212
212
|
} else {
|
|
213
213
|
this._oBusy.$().off("tap", this._handleOvrlClick);
|
|
214
214
|
}
|
|
@@ -370,7 +370,7 @@ sap.ui.define([ "sap/ui/thirdparty/jquery", './library', 'sap/m/library', 'sap/u
|
|
|
370
370
|
jQuery(document.getElementById(this.getId() + "-scrl-next-button")).attr("tabindex", "-1");
|
|
371
371
|
jQuery(document.getElementById(this.getId() + "-scrl-prev-button")).attr("tabindex", "-1");
|
|
372
372
|
if (Device.system.desktop) {
|
|
373
|
-
this.$().on("swipe",
|
|
373
|
+
this.$().on("swipe", this.handleSwipe.bind(this));
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
376
|
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @extends sap.ui.core.Control
|
|
48
48
|
*
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.136.1
|
|
51
51
|
*
|
|
52
52
|
* @constructor
|
|
53
53
|
* @public
|
|
@@ -210,7 +210,7 @@ sap.ui.define([
|
|
|
210
210
|
this._updateScrollingElements();
|
|
211
211
|
|
|
212
212
|
if (this.getRenderType() === RenderType.ScrollingWithResizer) {
|
|
213
|
-
this._oResizer = ResizeHandler.register(this,
|
|
213
|
+
this._oResizer = ResizeHandler.register(this, this._performResizeChanges.bind(this));
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
};
|
|
@@ -360,7 +360,7 @@ sap.ui.define([
|
|
|
360
360
|
|
|
361
361
|
//bind the events
|
|
362
362
|
if (this._getScrollContainer()) {
|
|
363
|
-
this._getScrollContainer().on("keydown",
|
|
363
|
+
this._getScrollContainer().on("keydown", this.onkeydown.bind(this));
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
|
|
@@ -411,10 +411,10 @@ sap.ui.define([
|
|
|
411
411
|
|
|
412
412
|
if (this._getScrollContainer()) {
|
|
413
413
|
this._getScrollContainer().off(this._mousePreventEvents, this._handlePrevent);
|
|
414
|
-
this._getScrollContainer().off(this._mouseEvents,
|
|
415
|
-
this._getScrollContainer().off(this._mouseWheelEvent,
|
|
416
|
-
this._getScrollContainer().off("keydown",
|
|
417
|
-
this._getScrollContainer().off("scroll",
|
|
414
|
+
this._getScrollContainer().off(this._mouseEvents, this._registerMouseEvents.bind(this));
|
|
415
|
+
this._getScrollContainer().off(this._mouseWheelEvent, this._registerMouseWheel.bind(this));
|
|
416
|
+
this._getScrollContainer().off("keydown", this.onkeydown.bind(this));
|
|
417
|
+
this._getScrollContainer().off("scroll", this._onScroll.bind(this));
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
420
|
|
|
@@ -424,10 +424,10 @@ sap.ui.define([
|
|
|
424
424
|
ProcessFlow.prototype.onBeforeRendering = function () {
|
|
425
425
|
if (this._getScrollContainer()) {
|
|
426
426
|
this._getScrollContainer().off(this._mousePreventEvents, this._handlePrevent);
|
|
427
|
-
this._getScrollContainer().off(this._mouseEvents,
|
|
428
|
-
this._getScrollContainer().off(this._mouseWheelEvent,
|
|
429
|
-
this._getScrollContainer().off("keydown",
|
|
430
|
-
this._getScrollContainer().off("scroll",
|
|
427
|
+
this._getScrollContainer().off(this._mouseEvents, this._registerMouseEvents.bind(this));
|
|
428
|
+
this._getScrollContainer().off(this._mouseWheelEvent, this._registerMouseWheel.bind(this));
|
|
429
|
+
this._getScrollContainer().off("keydown", this.onkeydown.bind(this));
|
|
430
|
+
this._getScrollContainer().off("scroll", this._onScroll.bind(this));
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
433
|
|
|
@@ -480,18 +480,18 @@ sap.ui.define([
|
|
|
480
480
|
}
|
|
481
481
|
if (Device.os.windows && Device.system.combi && Device.browser.chrome) {
|
|
482
482
|
//Win Surface: Chrome.
|
|
483
|
-
this._getScrollContainer().
|
|
483
|
+
this._getScrollContainer().on(this._mouseEvents, this._registerMouseEvents.bind(this));
|
|
484
484
|
this._getScrollContainer().css("overflow", "auto");
|
|
485
485
|
} else if (Device.os.windows && (Device.browser.edge)) {
|
|
486
486
|
//Win Surface: Edge.
|
|
487
|
-
this._getScrollContainer().
|
|
487
|
+
this._getScrollContainer().on(this._mouseEvents, this._registerMouseEvents.bind(this));
|
|
488
488
|
this._getScrollContainer().css("overflow", "auto");
|
|
489
489
|
this._getScrollContainer().css("-ms-overflow-style", "none");
|
|
490
490
|
} else //TODO: global jquery call found
|
|
491
491
|
//TODO: global jquery call found
|
|
492
492
|
if (!Device.support.touch) {
|
|
493
493
|
// Desktop
|
|
494
|
-
this._getScrollContainer().
|
|
494
|
+
this._getScrollContainer().on(this._mouseEvents, this._registerMouseEvents.bind(this));
|
|
495
495
|
} else {
|
|
496
496
|
// Mobile: use native scrolling.
|
|
497
497
|
this._clearHandlers(this._getScrollContainer());
|
|
@@ -509,13 +509,13 @@ sap.ui.define([
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
if (this.getWheelZoomable() && Device.system.desktop && !this._isHeaderMode()) {
|
|
512
|
-
this._getScrollContainer().
|
|
512
|
+
this._getScrollContainer().on(this._mouseWheelEvent, this._registerMouseWheel.bind(this));
|
|
513
513
|
}
|
|
514
514
|
if (this._bDoScroll) {
|
|
515
515
|
//Bind scroll event for mobile.
|
|
516
|
-
this._getScrollContainer().on("scroll",
|
|
516
|
+
this._getScrollContainer().on("scroll", this._onScroll.bind(this));
|
|
517
517
|
}
|
|
518
|
-
this._resizeRegId = ResizeHandler.register(this,
|
|
518
|
+
this._resizeRegId = ResizeHandler.register(this, ProcessFlow.prototype._onResize.bind(this));
|
|
519
519
|
if (this._isInitialZoomLevelNeeded) {
|
|
520
520
|
this._initZoomLevel();
|
|
521
521
|
}
|
|
@@ -1182,7 +1182,7 @@ sap.ui.define([
|
|
|
1182
1182
|
this._getScrollContainer().animate({
|
|
1183
1183
|
scrollTop: oPositionInContent.top - iCorrectionTop,
|
|
1184
1184
|
scrollLeft: oPositionInContent.left - iCorrectionLeft
|
|
1185
|
-
}, iScrollTimeInMillis, "swing",
|
|
1185
|
+
}, iScrollTimeInMillis, "swing", this._adjustAndShowArrow.bind(this));
|
|
1186
1186
|
} else {
|
|
1187
1187
|
Log.debug("Element lies inside the scroll container, no scrolling happens.");
|
|
1188
1188
|
this._setFocusToNode(oFocusedElement);
|
|
@@ -1372,7 +1372,7 @@ sap.ui.define([
|
|
|
1372
1372
|
this._updateLanesFromNodes();
|
|
1373
1373
|
}
|
|
1374
1374
|
return ProcessFlow.NodeElement._createMapFromLanes(this._internalLanes,
|
|
1375
|
-
|
|
1375
|
+
this.ontouchend.bind(this), this._isHeaderMode()).positionMap;
|
|
1376
1376
|
};
|
|
1377
1377
|
|
|
1378
1378
|
/**
|
|
@@ -2001,7 +2001,7 @@ sap.ui.define([
|
|
|
2001
2001
|
sLaneId = oNode.getLaneId();
|
|
2002
2002
|
|
|
2003
2003
|
iLanePosition = aLanePositions[sLaneId];
|
|
2004
|
-
if (
|
|
2004
|
+
if (typeof iLanePosition !== "number") {
|
|
2005
2005
|
throw ["For the node " + sNodeId + " position (lane) is not defined."];
|
|
2006
2006
|
}
|
|
2007
2007
|
|
|
@@ -2687,7 +2687,7 @@ sap.ui.define([
|
|
|
2687
2687
|
* @since 1.22
|
|
2688
2688
|
*/
|
|
2689
2689
|
ProcessFlow.prototype._clearHandlers = function ($scrollContainer) {
|
|
2690
|
-
$scrollContainer.
|
|
2690
|
+
$scrollContainer.on(this._mousePreventEvents, this._handlePrevent.bind(this));
|
|
2691
2691
|
};
|
|
2692
2692
|
|
|
2693
2693
|
/**
|
|
@@ -3471,7 +3471,7 @@ sap.ui.define([
|
|
|
3471
3471
|
delta = -delta;
|
|
3472
3472
|
} //RTL lives in the negative space.
|
|
3473
3473
|
var iScrollTarget = iScrollLeft + delta;
|
|
3474
|
-
jQuery(oDomRef).stop(true, true).animate({scrollLeft: iScrollTarget}, duration,
|
|
3474
|
+
jQuery(oDomRef).stop(true, true).animate({scrollLeft: iScrollTarget}, duration, this._adjustAndShowArrow.bind(this));
|
|
3475
3475
|
};
|
|
3476
3476
|
|
|
3477
3477
|
/**
|
|
@@ -88,7 +88,7 @@ sap.ui.define(['sap/m/Button', './library', 'sap/ui/core/InvisibleText', './Proc
|
|
|
88
88
|
this.$().children().removeClass("sapMBtnIconFirst");
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
this.$().
|
|
91
|
+
this.$().on(this.MOUSE_EVENTS, this._handleEvents.bind(this));
|
|
92
92
|
document.getElementById(this.getId()).setAttribute("aria-haspopup", "dialog");
|
|
93
93
|
};
|
|
94
94
|
|
|
@@ -144,7 +144,8 @@ sap.ui.define([
|
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
ProcessFlowLaneHeader.prototype.onBeforeRendering = function() {
|
|
147
|
-
this
|
|
147
|
+
this._boundOnTouchEnd = this.ontouchend.bind(this);
|
|
148
|
+
this.$("lh-icon").off('click', this._boundOnTouchEnd);
|
|
148
149
|
this.$().off("click", this.ontouchend);
|
|
149
150
|
};
|
|
150
151
|
|
|
@@ -157,11 +158,11 @@ sap.ui.define([
|
|
|
157
158
|
sClickEvent = 'touchend';
|
|
158
159
|
}
|
|
159
160
|
if ($icon.length > 0) {
|
|
160
|
-
$icon.on(sClickEvent,
|
|
161
|
+
$icon.on(sClickEvent, this.ontouchend.bind(this));
|
|
161
162
|
$icon.css("cursor", "inherit");
|
|
162
163
|
}
|
|
163
164
|
|
|
164
|
-
this.$().on("click",
|
|
165
|
+
this.$().on("click", this.ontouchend.bind(this));
|
|
165
166
|
|
|
166
167
|
if (this._isHeaderMode()) {
|
|
167
168
|
$This.addClass("suiteUiProcessFlowLaneHeaderPointer");
|
|
@@ -303,7 +303,7 @@ sap.ui.define([
|
|
|
303
303
|
*/
|
|
304
304
|
ProcessFlowNode.prototype.onAfterRendering = function () {
|
|
305
305
|
this._sMouseEvents = this._sMouseEvents.concat(' ', this._sMouseTouchEvents);
|
|
306
|
-
this.$().
|
|
306
|
+
this.$().on(this._sMouseEvents, this._handleEvents.bind(this));
|
|
307
307
|
};
|
|
308
308
|
|
|
309
309
|
/* =========================================================== */
|
|
@@ -106,7 +106,7 @@ sap.ui.define([
|
|
|
106
106
|
oRm.openStart("th").attr("scope","colgroup").attr("colspan", "2").attr("id", oControl.getId() + "-separator" + counterLaneNumber).openEnd();
|
|
107
107
|
var oLaneHeaderSymbol = ProcessFlowLaneHeader.createNewProcessSymbol(oControl._isHeaderMode());
|
|
108
108
|
//Forward the icon click events from the lane header items to the flow control.
|
|
109
|
-
oLaneHeaderSymbol.attachPress(
|
|
109
|
+
oLaneHeaderSymbol.attachPress(oControl.ontouchend.bind(oControl));
|
|
110
110
|
oRm.renderControl(oLaneHeaderSymbol);
|
|
111
111
|
oRm.close("th");
|
|
112
112
|
}
|
|
@@ -135,7 +135,7 @@ sap.ui.define([
|
|
|
135
135
|
oRm.openStart("th").attr("scope", "colgroup").attr("colspan", "2").openEnd();
|
|
136
136
|
var oLaneHeaderSymbol = ProcessFlowLaneHeader.createNewProcessSymbol(oControl._isHeaderMode());
|
|
137
137
|
//Forward the icon click events from the lane header items to the flow control.
|
|
138
|
-
oLaneHeaderSymbol.attachPress(
|
|
138
|
+
oLaneHeaderSymbol.attachPress(oControl.ontouchend.bind(oControl));
|
|
139
139
|
oRm.renderControl(oLaneHeaderSymbol);
|
|
140
140
|
oRm.close("th");
|
|
141
141
|
}
|
|
@@ -157,7 +157,6 @@ sap.ui.define([
|
|
|
157
157
|
var oCustomContent = node._getCurrentZoomLevelContent();
|
|
158
158
|
oRm.attr("id", sNodeId);
|
|
159
159
|
oRm.attr("tabindex", 0);
|
|
160
|
-
oRm.attr("role", "button");
|
|
161
160
|
oRm.attr("aria-description", this._oResBundle.getText("PF_ARIA_PROCESS_FLOW_NODE_DESC"));
|
|
162
161
|
var oAriaDefaultProperties = {};
|
|
163
162
|
oAriaDefaultProperties.label = node._getAriaText();
|
|
@@ -191,6 +190,9 @@ sap.ui.define([
|
|
|
191
190
|
oRm.attr("tabindex", 0);
|
|
192
191
|
}
|
|
193
192
|
oRm.openEnd();
|
|
193
|
+
oRm.openStart("span").class("sapUiPseudoInvisibleText").openEnd();
|
|
194
|
+
oRm.text(this._oResBundle.getText("PF_ARIA_PROCESS_FLOW_EMPTY_NODE_DESC"));
|
|
195
|
+
oRm.close("span");
|
|
194
196
|
isTDTagOpen = false;
|
|
195
197
|
}
|
|
196
198
|
connection.setZoomLevel(oControl.getZoomLevel());
|
|
@@ -228,25 +230,25 @@ sap.ui.define([
|
|
|
228
230
|
oRm.openEnd();
|
|
229
231
|
|
|
230
232
|
//Reserves space width for start symbol.
|
|
231
|
-
oRm.openStart("th").
|
|
233
|
+
oRm.openStart("th").openEnd().close("th");
|
|
232
234
|
iLanePosition = 0;
|
|
233
235
|
while (iLanePosition < laneNumber - 1) {
|
|
234
236
|
//Reserves space width for other parts to be displayed.
|
|
235
|
-
oRm.openStart("th").
|
|
236
|
-
oRm.openStart("th").
|
|
237
|
-
oRm.openStart("th").
|
|
238
|
-
oRm.openStart("th").
|
|
239
|
-
oRm.openStart("th").
|
|
237
|
+
oRm.openStart("th").openEnd().close("th");
|
|
238
|
+
oRm.openStart("th").openEnd().close("th");
|
|
239
|
+
oRm.openStart("th").openEnd().close("th");
|
|
240
|
+
oRm.openStart("th").openEnd().close("th");
|
|
241
|
+
oRm.openStart("th").openEnd().close("th");
|
|
240
242
|
iLanePosition++;
|
|
241
243
|
}
|
|
242
244
|
|
|
243
245
|
//Space for the last node.
|
|
244
|
-
oRm.openStart("th").
|
|
245
|
-
oRm.openStart("th").
|
|
246
|
-
oRm.openStart("th").
|
|
246
|
+
oRm.openStart("th").openEnd().close("th");
|
|
247
|
+
oRm.openStart("th").openEnd().close("th");
|
|
248
|
+
oRm.openStart("th").openEnd().close("th");
|
|
247
249
|
|
|
248
250
|
//Reserves space width for end symbol.
|
|
249
|
-
oRm.openStart("th").
|
|
251
|
+
oRm.openStart("th").openEnd().close("th");
|
|
250
252
|
oRm.close("tr");
|
|
251
253
|
|
|
252
254
|
oRm.openStart("tr");
|
|
@@ -326,15 +328,22 @@ sap.ui.define([
|
|
|
326
328
|
if (iMatrixDim1 > 0) {
|
|
327
329
|
oRm.openStart("tr").openEnd();
|
|
328
330
|
oRm.openStart("td");
|
|
329
|
-
oRm.attr("colspan", (laneNumber * 5).toString())
|
|
331
|
+
oRm.attr("colspan", (laneNumber * 5).toString());
|
|
330
332
|
oRm.openEnd();
|
|
333
|
+
oRm.openStart("span").class("sapUiPseudoInvisibleText").openEnd();
|
|
334
|
+
oRm.text(this._oResBundle.getText("PF_ARIA_PROCESS_FLOW_EMPTY_NODE_DESC"));
|
|
335
|
+
oRm.close("span");
|
|
331
336
|
oRm.close("td");
|
|
332
337
|
oRm.close("tr");
|
|
333
338
|
}
|
|
334
339
|
i = 0;
|
|
335
340
|
while (i < iMatrixDim1) {
|
|
336
341
|
oRm.openStart("tr").openEnd();
|
|
337
|
-
oRm.openStart("td").
|
|
342
|
+
oRm.openStart("td").openEnd();
|
|
343
|
+
oRm.openStart("span").class("sapUiPseudoInvisibleText").openEnd();
|
|
344
|
+
oRm.text(this._oResBundle.getText("PF_ARIA_PROCESS_FLOW_EMPTY_NODE_DESC"));
|
|
345
|
+
oRm.close("span");
|
|
346
|
+
oRm.close("td");
|
|
338
347
|
|
|
339
348
|
iMatrixDim2 = calculatedMatrix[i].length;
|
|
340
349
|
j = 0;
|
|
@@ -342,10 +351,8 @@ sap.ui.define([
|
|
|
342
351
|
while (j < iMatrixDim2 - 1) {
|
|
343
352
|
oNode = calculatedMatrix[i][j];
|
|
344
353
|
var isTDTagOpen = true; //Indicates if td element tag is open.
|
|
345
|
-
var noColSpan;
|
|
346
354
|
if ((j == 0) || (j % 2)) {
|
|
347
355
|
oRm.openStart("td");
|
|
348
|
-
noColSpan = true;
|
|
349
356
|
} else {
|
|
350
357
|
oRm.openStart("td").attr("colspan", "4");
|
|
351
358
|
//Needed by Chrome (cr) in order to render the connections correctly on the
|
|
@@ -366,19 +373,27 @@ sap.ui.define([
|
|
|
366
373
|
isTDTagOpen = ProcessFlowRenderer._renderConnection(oRm, oControl, oNode, isTDTagOpen);
|
|
367
374
|
}
|
|
368
375
|
}
|
|
369
|
-
else if (noColSpan) {
|
|
370
|
-
oRm.attr("aria-hidden", "true");
|
|
371
|
-
}
|
|
372
376
|
if (isTDTagOpen) {
|
|
373
377
|
oRm.openEnd();
|
|
378
|
+
oRm.openStart("span").class("sapUiPseudoInvisibleText").openEnd();
|
|
379
|
+
oRm.text(this._oResBundle.getText("PF_ARIA_PROCESS_FLOW_EMPTY_NODE_DESC"));
|
|
380
|
+
oRm.close("span");
|
|
374
381
|
}
|
|
375
382
|
oRm.close("td");
|
|
376
383
|
j++;
|
|
377
384
|
}
|
|
378
385
|
|
|
379
386
|
//The last space after a node + space under the end symbol.
|
|
380
|
-
oRm.openStart("td").
|
|
381
|
-
oRm.openStart("
|
|
387
|
+
oRm.openStart("td").openEnd();
|
|
388
|
+
oRm.openStart("span").class("sapUiPseudoInvisibleText").openEnd();
|
|
389
|
+
oRm.text(this._oResBundle.getText("PF_ARIA_PROCESS_FLOW_EMPTY_NODE_DESC"));
|
|
390
|
+
oRm.close("span");
|
|
391
|
+
oRm.close("td");
|
|
392
|
+
oRm.openStart("td").openEnd();
|
|
393
|
+
oRm.openStart("span").class("sapUiPseudoInvisibleText").openEnd();
|
|
394
|
+
oRm.text(this._oResBundle.getText("PF_ARIA_PROCESS_FLOW_EMPTY_NODE_DESC"));
|
|
395
|
+
oRm.close("span");
|
|
396
|
+
oRm.close("td");
|
|
382
397
|
oRm.close("tr");
|
|
383
398
|
i++;
|
|
384
399
|
}
|
|
@@ -274,9 +274,9 @@ sap.ui.define([
|
|
|
274
274
|
|
|
275
275
|
_setFontSizes: function (aLinks) {
|
|
276
276
|
var aLabelSizes = ["Large", "Medium", "Small", "Smallest"];
|
|
277
|
-
|
|
277
|
+
const aOccurrencies = [...new Set(aLinks.map(function (o) {
|
|
278
278
|
return o.getCount();
|
|
279
|
-
}));
|
|
279
|
+
}))];
|
|
280
280
|
switch (aOccurrencies.length) {
|
|
281
281
|
case 1:
|
|
282
282
|
for (var iLine = 0; iLine < aLinks.length; iLine++) {
|
|
@@ -90,7 +90,7 @@ sap.ui.define([
|
|
|
90
90
|
press: [this._toggleMenuPopup, this]
|
|
91
91
|
});
|
|
92
92
|
this._oMenuButton.addStyleClass("sapSuiteTvTitleMb");
|
|
93
|
-
this.fAnyEventHandlerProxy =
|
|
93
|
+
this.fAnyEventHandlerProxy = this.onAnyEvent.bind(this);
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
ThreePanelThingViewer.prototype.exit = function () {
|