@sapui5/sap.suite.ui.commons 1.118.1 → 1.119.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 +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderExpression.js +1 -1
- 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 +0 -8
- package/src/sap/suite/ui/commons/CloudFilePicker.js +124 -28
- package/src/sap/suite/ui/commons/MicroProcessFlow.js +1 -1
- package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
- package/src/sap/suite/ui/commons/ProcessFlowNode.js +1 -9
- package/src/sap/suite/ui/commons/Timeline.js +1 -1
- package/src/sap/suite/ui/commons/TimelineRenderer.js +0 -10
- 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 +2 -2
- 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 +20 -1
- package/src/sap/suite/ui/commons/messagebundle_en.properties +4 -0
- package/src/sap/suite/ui/commons/networkgraph/Line.js +9 -4
- package/src/sap/suite/ui/commons/networkgraph/Tooltip.js +15 -2
- 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 +2 -2
- 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/TimelineItem.less +0 -1
package/package.json
CHANGED
|
@@ -1289,14 +1289,6 @@ sap.ui.define([
|
|
|
1289
1289
|
return this;
|
|
1290
1290
|
};
|
|
1291
1291
|
|
|
1292
|
-
/**
|
|
1293
|
-
* @deprecated Not supported anymore
|
|
1294
|
-
*/
|
|
1295
|
-
ChartContainer.prototype.updateContent = function () {
|
|
1296
|
-
this.updateAggregation("content");
|
|
1297
|
-
this._bChartContentHasChanged = true;
|
|
1298
|
-
};
|
|
1299
|
-
|
|
1300
1292
|
ChartContainer.prototype.addAggregation = function (aggregationName, object, suppressInvalidate) {
|
|
1301
1293
|
if (aggregationName === "dimensionSelectors") {
|
|
1302
1294
|
return this.addDimensionSelector(object);
|
|
@@ -46,7 +46,9 @@ sap.ui.define([
|
|
|
46
46
|
"sap/m/IllustratedMessage",
|
|
47
47
|
"sap/m/IllustratedMessageType",
|
|
48
48
|
"sap/m/IllustratedMessageSize",
|
|
49
|
-
"sap/ui/core/format/FileSizeFormat"
|
|
49
|
+
"sap/ui/core/format/FileSizeFormat",
|
|
50
|
+
"sap/m/MessageToast",
|
|
51
|
+
"sap/m/CheckBox"
|
|
50
52
|
], function (
|
|
51
53
|
Button,
|
|
52
54
|
Dialog,
|
|
@@ -87,7 +89,9 @@ sap.ui.define([
|
|
|
87
89
|
IllustratedMessage,
|
|
88
90
|
IllustratedMessageType,
|
|
89
91
|
IllustratedMessageSize,
|
|
90
|
-
FileSizeFormat
|
|
92
|
+
FileSizeFormat,
|
|
93
|
+
MessageToast,
|
|
94
|
+
CheckBox
|
|
91
95
|
) {
|
|
92
96
|
"use strict";
|
|
93
97
|
|
|
@@ -97,6 +101,7 @@ sap.ui.define([
|
|
|
97
101
|
var ValueState = coreLibrary.ValueState;
|
|
98
102
|
var FilePickerModes = library.FilePickerModes;
|
|
99
103
|
var FilePickerType = library.FilePickerType;
|
|
104
|
+
var SelectionMode = library.SelectionModes;
|
|
100
105
|
|
|
101
106
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.suite.ui.commons");
|
|
102
107
|
|
|
@@ -111,7 +116,7 @@ sap.ui.define([
|
|
|
111
116
|
* @class
|
|
112
117
|
* @public
|
|
113
118
|
* @internal
|
|
114
|
-
* @version 1.
|
|
119
|
+
* @version 1.119.1
|
|
115
120
|
*/
|
|
116
121
|
var CloudFilePicker = Dialog.extend("sap.suite.ui.commons.CloudFilePicker", {
|
|
117
122
|
metadata: {
|
|
@@ -156,8 +161,7 @@ sap.ui.define([
|
|
|
156
161
|
*/
|
|
157
162
|
title: {
|
|
158
163
|
type: "string",
|
|
159
|
-
group: "Data"
|
|
160
|
-
defaultValue: oResourceBundle.getText("CFP_TITLE")
|
|
164
|
+
group: "Data"
|
|
161
165
|
},
|
|
162
166
|
/**
|
|
163
167
|
* Specifies whether duplicate file check logic is needed.
|
|
@@ -206,6 +210,14 @@ sap.ui.define([
|
|
|
206
210
|
MIMEType: {
|
|
207
211
|
type: "string",
|
|
208
212
|
group: "Data"
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
* Specifies the Selection mode of the table
|
|
216
|
+
*/
|
|
217
|
+
selectionMode: {
|
|
218
|
+
type: "sap.suite.ui.commons.SelectionModes",
|
|
219
|
+
group: "Data",
|
|
220
|
+
defaultValue: "SingleSelectMaster"
|
|
209
221
|
}
|
|
210
222
|
},
|
|
211
223
|
events: {
|
|
@@ -253,11 +265,16 @@ sap.ui.define([
|
|
|
253
265
|
this.oNewFolderButton = null;
|
|
254
266
|
this.oNewFolderColumnListItem = null;
|
|
255
267
|
this.oCurrentParentData = null;
|
|
268
|
+
this.oSelectedFiles = [];
|
|
256
269
|
this.setResizable(true);
|
|
257
270
|
this.setDraggable(true);
|
|
258
271
|
this._createDialogContent();
|
|
259
272
|
this._createButton();
|
|
260
273
|
|
|
274
|
+
if (!this.getTitle()){
|
|
275
|
+
this.setTitle(this.getFilePickerType() === "Export" ? oResourceBundle.getText("CFP_EXPORT") : oResourceBundle.getText("CFP_UPLOAD"));
|
|
276
|
+
}
|
|
277
|
+
|
|
261
278
|
if (Device.system.phone) {
|
|
262
279
|
this.setStretch(true);
|
|
263
280
|
} else {
|
|
@@ -434,6 +451,7 @@ sap.ui.define([
|
|
|
434
451
|
|
|
435
452
|
CloudFilePicker.prototype._createTableContent = function () {
|
|
436
453
|
var sFilePickerType = this.getFilePickerType();
|
|
454
|
+
var sFileSelectionMode = this.getSelectionMode();
|
|
437
455
|
this.oNewFolderButton = new Button({
|
|
438
456
|
text: oResourceBundle.getText("CFP_TITLE_NEWFOLDER"),
|
|
439
457
|
type: ButtonType.Transparent,
|
|
@@ -518,7 +536,7 @@ sap.ui.define([
|
|
|
518
536
|
sticky:["HeaderToolbar","ColumnHeaders"],
|
|
519
537
|
headerDesign:"Plain",
|
|
520
538
|
noDataText: " ", // UX reccomends to show no text and table shows "No Data" by default
|
|
521
|
-
mode: "SingleSelectMaster",
|
|
539
|
+
mode: sFilePickerType === FilePickerType.Upload && sFileSelectionMode === SelectionMode.MultiSelect ? "None" : "SingleSelectMaster",
|
|
522
540
|
growing:true,
|
|
523
541
|
growingScrollToLoad:true,
|
|
524
542
|
itemPress: function(oControlEvent){
|
|
@@ -528,6 +546,7 @@ sap.ui.define([
|
|
|
528
546
|
var oContext = oSelectedItem.getBindingContext();
|
|
529
547
|
var bIsFolder = oContext.getObject("FileShareItemKind") === "folder";
|
|
530
548
|
if (bIsFolder) {
|
|
549
|
+
this._clearCheckboxFileSelections();
|
|
531
550
|
var oSelectedFolderInfo = this._createSelectionParameter(oSelectedItem);
|
|
532
551
|
var sFileShareItemId = oSelectedFolderInfo.getFileShareItemId();
|
|
533
552
|
oSelectedFolderInfo.path = oContext.getCanonicalPath();
|
|
@@ -538,10 +557,12 @@ sap.ui.define([
|
|
|
538
557
|
.createBindingContext(oSelectedFolderInfo.path);
|
|
539
558
|
this.aVisibleLinks.push({
|
|
540
559
|
fileShareItemId: sFileShareItemId,
|
|
541
|
-
title: oSelectedItem.getCells()[0].getItems()[1].getText()
|
|
560
|
+
title: this.getFilePickerType() === FilePickerType.Upload && this.getSelectionMode() === SelectionMode.MultiSelect ? oSelectedItem.getCells()[1].getItems()[1].getText() : oSelectedItem.getCells()[0].getItems()[1].getText()
|
|
542
561
|
});
|
|
543
562
|
this._updateBreadcrumbLinks();
|
|
544
563
|
this.oTableControl.setBindingContext(oNewContext);
|
|
564
|
+
} else if (!bIsFolder && sFilePickerType === FilePickerType.Upload && sFileSelectionMode === SelectionMode.MultiSelect) {
|
|
565
|
+
return;
|
|
545
566
|
} else {
|
|
546
567
|
var sFieldValue = oContext.getProperty("FileShareItemName");
|
|
547
568
|
this.oFileNameControl.setValue(sFieldValue);
|
|
@@ -666,12 +687,11 @@ sap.ui.define([
|
|
|
666
687
|
})
|
|
667
688
|
},
|
|
668
689
|
updateFinished: function (oEvent) {
|
|
690
|
+
this._checkListForFiles();
|
|
669
691
|
if (!this.oTableControl.getBusy()) {
|
|
670
692
|
if (this.oCurrentParentData && Object.keys(this.oCurrentParentData).length !== 0) {
|
|
671
693
|
if (sFilePickerType === FilePickerType.Export){
|
|
672
694
|
this._setConfirmationButtonEnabled(this.oCurrentParentData.getProperty("isDocumentCreationAllowed"));
|
|
673
|
-
} else {
|
|
674
|
-
this._setConfirmationButtonEnabled(false);
|
|
675
695
|
}
|
|
676
696
|
this._enableDisableNewFolderBtn();
|
|
677
697
|
}
|
|
@@ -705,6 +725,39 @@ sap.ui.define([
|
|
|
705
725
|
oHeaderPopOver.openBy(oColumn);
|
|
706
726
|
}.bind(this));
|
|
707
727
|
|
|
728
|
+
if (this.getFilePickerType() === FilePickerType.Upload && this.getSelectionMode() === SelectionMode.MultiSelect) {
|
|
729
|
+
var oColumn = new Column({
|
|
730
|
+
width: "10%",
|
|
731
|
+
importance: "High"
|
|
732
|
+
})
|
|
733
|
+
this.oTableControl.insertColumn(oColumn, 0);
|
|
734
|
+
var oTemplate = this.oTableControl.getBindingInfo("items").template;
|
|
735
|
+
oTemplate.insertCell(
|
|
736
|
+
new CheckBox({
|
|
737
|
+
visible: {
|
|
738
|
+
path: "FileShareItemKind" ,
|
|
739
|
+
targetType: "any",
|
|
740
|
+
formatter: function (
|
|
741
|
+
sFileShareItemKind
|
|
742
|
+
) {
|
|
743
|
+
return sFileShareItemKind !== "folder";
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
select: function(oEvent) {
|
|
747
|
+
var oCurrentRow = oEvent.getSource().getParent();
|
|
748
|
+
if (oEvent.getSource().getSelected()) {
|
|
749
|
+
this.oSelectedFiles.push(oCurrentRow);
|
|
750
|
+
this._setConfirmationButtonEnabled(true);
|
|
751
|
+
} else {
|
|
752
|
+
this.oSelectedFiles.splice(this.oSelectedFiles.indexOf(oCurrentRow),1);
|
|
753
|
+
if (!this.oSelectedFiles.length) {
|
|
754
|
+
this._setConfirmationButtonEnabled(false);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}.bind(this)
|
|
758
|
+
}), 0);
|
|
759
|
+
}
|
|
760
|
+
|
|
708
761
|
var oPage = new Page({
|
|
709
762
|
showHeader:false,
|
|
710
763
|
content: [this.oTableControl],
|
|
@@ -721,30 +774,43 @@ sap.ui.define([
|
|
|
721
774
|
value: oResourceBundle.getText("CFP_TITLE_NEWFOLDER")
|
|
722
775
|
});
|
|
723
776
|
oNewFolderInput.attachBrowserEvent("click", function() {
|
|
724
|
-
oNewFolderInput.
|
|
777
|
+
oNewFolderInput.selectText(0,oResourceBundle.getText("CFP_TITLE_NEWFOLDER").length);
|
|
725
778
|
});
|
|
726
|
-
|
|
779
|
+
var _createFolder = function(oEvent) {
|
|
727
780
|
if (oNewFolderInput && oNewFolderInput.getValue() !== "") {
|
|
728
781
|
// Check for duplicate folder by making a backend call - Create if returns true else show error
|
|
729
|
-
this.setBusy(true);
|
|
730
|
-
var sFileShareKey = this.oSelectControl.getSelectedKey();
|
|
731
782
|
var sSearchText = oEvent.target.value;
|
|
732
|
-
var
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
this.
|
|
743
|
-
|
|
744
|
-
|
|
783
|
+
var sSpecialCharacters = /[!@#$%^&*()+\-=\[\]{};':"\\|,.<>\/?]/;
|
|
784
|
+
if (sSpecialCharacters.test(sSearchText)) {
|
|
785
|
+
oNewFolderInput.setValueState(ValueState.Error);
|
|
786
|
+
oNewFolderInput.setValueStateText(oResourceBundle.getText("CFP_FOLDERNAME_VALUESTATEMSG"));
|
|
787
|
+
} else {
|
|
788
|
+
this.setBusy(true);
|
|
789
|
+
var sFileShareKey = this.oSelectControl.getSelectedKey();
|
|
790
|
+
var sDocumentType = "folder";
|
|
791
|
+
this._checkForDuplicateFileAndFolder(sSearchText, sFileShareKey, sDocumentType,"")
|
|
792
|
+
.then(function (oSuccess) {
|
|
793
|
+
this.setBusy(false);
|
|
794
|
+
if (oSuccess.value.length) {
|
|
795
|
+
oNewFolderInput.setValueState(ValueState.Error);
|
|
796
|
+
oNewFolderInput.setValueStateText(oResourceBundle.getText("CFP_FOLDER_EXIST"));
|
|
797
|
+
} else {
|
|
798
|
+
oNewFolderInput.setValueState(ValueState.None);
|
|
799
|
+
oNewFolderInput.setValueStateText("");
|
|
800
|
+
this._makeNewFolderEntry(oEvent.target.value);
|
|
801
|
+
}
|
|
802
|
+
}.bind(this));
|
|
803
|
+
}
|
|
745
804
|
}
|
|
746
|
-
}.bind(this)
|
|
747
|
-
|
|
805
|
+
}.bind(this);
|
|
806
|
+
oNewFolderInput.attachBrowserEvent("focusout", function(oEvent) {
|
|
807
|
+
_createFolder(oEvent);
|
|
808
|
+
});
|
|
809
|
+
oNewFolderInput.attachBrowserEvent("keypress", function(oEvent) {
|
|
810
|
+
if (oEvent.keyCode === 13){
|
|
811
|
+
_createFolder(oEvent);
|
|
812
|
+
}
|
|
813
|
+
});
|
|
748
814
|
this.oNewFolderColumnListItem = new ColumnListItem({
|
|
749
815
|
cells: [
|
|
750
816
|
new HBox({
|
|
@@ -839,6 +905,7 @@ sap.ui.define([
|
|
|
839
905
|
oNewFolderContext.created();
|
|
840
906
|
this.oTableControl.setSelectedItem(this.oTableControl.getItems().length > 0 ? this.oTableControl.getItems()[0] : null);
|
|
841
907
|
this.setBusy(false);
|
|
908
|
+
new MessageToast.show(oResourceBundle.getText("CFP_FOLDERCREATION_MSG"));
|
|
842
909
|
}
|
|
843
910
|
}.bind(this));
|
|
844
911
|
};
|
|
@@ -861,6 +928,7 @@ sap.ui.define([
|
|
|
861
928
|
};
|
|
862
929
|
|
|
863
930
|
CloudFilePicker.prototype._fHandleSorting = function(oColumn, bIsAsc) {
|
|
931
|
+
this._clearCheckboxFileSelections();
|
|
864
932
|
var sNewSort = bIsAsc ? SortOrder.Ascending : SortOrder.Descending;
|
|
865
933
|
if (sNewSort === oColumn.getSortIndicator()) {
|
|
866
934
|
sNewSort = SortOrder.None;
|
|
@@ -901,6 +969,7 @@ sap.ui.define([
|
|
|
901
969
|
var oCrumb = new Link({
|
|
902
970
|
text: oVisibleLink.title,
|
|
903
971
|
press: function (oEvent) {
|
|
972
|
+
this._clearCheckboxFileSelections();
|
|
904
973
|
if (this.oNewFolderColumnListItem && this.oTableControl.indexOfItem(this.oNewFolderColumnListItem) > -1) {
|
|
905
974
|
this.oTableControl.removeItem(this.oNewFolderColumnListItem);
|
|
906
975
|
this.oNewFolderColumnListItem.destroy();
|
|
@@ -1095,6 +1164,10 @@ sap.ui.define([
|
|
|
1095
1164
|
mParameters.selectedFiles.push(this._createSelectionParameter(oSelectedItem));
|
|
1096
1165
|
} else if (bReplaceExistingFile) {
|
|
1097
1166
|
mParameters.selectedFiles.push(this._createFileParameters(this.oReturnedDupFileInfo));
|
|
1167
|
+
} else {
|
|
1168
|
+
this.oSelectedFiles.forEach(function(oItem) {
|
|
1169
|
+
mParameters.selectedFiles.push(this._createSelectionParameter(oItem));
|
|
1170
|
+
}.bind(this));
|
|
1098
1171
|
}
|
|
1099
1172
|
|
|
1100
1173
|
this.fireEvent("select", mParameters);
|
|
@@ -1105,6 +1178,29 @@ sap.ui.define([
|
|
|
1105
1178
|
}.bind(this));
|
|
1106
1179
|
};
|
|
1107
1180
|
|
|
1181
|
+
CloudFilePicker.prototype._checkListForFiles = function () {
|
|
1182
|
+
var bIsFileAvailable = this.oTableControl.getItems().some(function (oTableItem) {
|
|
1183
|
+
return oTableItem.getBindingContext().getProperty("FileShareItemKind") !== "folder";
|
|
1184
|
+
});
|
|
1185
|
+
var oColumns = this.oTableControl.getColumns();
|
|
1186
|
+
if (this.getFilePickerType() === FilePickerType.Upload && this.getSelectionMode() === SelectionMode.MultiSelect) {
|
|
1187
|
+
oColumns[0].setVisible(bIsFileAvailable);
|
|
1188
|
+
}
|
|
1189
|
+
for (var i = oColumns.length - 4; i < oColumns.length; i++) {
|
|
1190
|
+
oColumns[i].setVisible(bIsFileAvailable);
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
CloudFilePicker.prototype._clearCheckboxFileSelections = function() {
|
|
1195
|
+
if (this.getFilePickerType() === FilePickerType.Upload && this.getSelectionMode() === SelectionMode.MultiSelect) {
|
|
1196
|
+
this.oSelectedFiles.length = 0;
|
|
1197
|
+
this.oTableControl.getItems().forEach(function(oItem) {
|
|
1198
|
+
oItem.getCells()[0].setSelected(false);
|
|
1199
|
+
});
|
|
1200
|
+
this._setConfirmationButtonEnabled(false);
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1108
1204
|
CloudFilePicker.prototype._createFileParameters = function(oValue) {
|
|
1109
1205
|
var oCloudFileInfo = new CloudFileInfo();
|
|
1110
1206
|
oCloudFileInfo.setFileShareId(oValue.FileShare);
|
|
@@ -320,12 +320,7 @@ sap.ui.define([
|
|
|
320
320
|
} else if (this._parent) {
|
|
321
321
|
// Changes the focus from previous node to the current one.
|
|
322
322
|
this.getParent()._changeNavigationFocus(this.getParent()._getLastNavigationFocusElement(), this);
|
|
323
|
-
|
|
324
|
-
if (oEvent.target.id.indexOf("title") >= 0 && this.getIsTitleClickable()) {
|
|
325
|
-
this._parent.fireNodeTitlePress(this);
|
|
326
|
-
} else {
|
|
327
|
-
this._parent.fireNodePress(this);
|
|
328
|
-
}
|
|
323
|
+
this._parent.fireNodePress(this);
|
|
329
324
|
|
|
330
325
|
}
|
|
331
326
|
if (oEvent && !oEvent.isPropagationStopped()) {
|
|
@@ -590,9 +585,6 @@ sap.ui.define([
|
|
|
590
585
|
width: sWidth,
|
|
591
586
|
maxLines: iLinesCount
|
|
592
587
|
});
|
|
593
|
-
if (this.getIsTitleClickable()) {
|
|
594
|
-
this._headerControl.addStyleClass("sapSuiteUiCommonsProcessFlowNode3TitleClickable");
|
|
595
|
-
}
|
|
596
588
|
switch (this._getZoomLevel()) {
|
|
597
589
|
case library.ProcessFlowZoomLevel.One:
|
|
598
590
|
this._headerControl.addStyleClass("sapSuiteUiCommonsProcessFlowNode3TitleZoomLevel1");
|
|
@@ -3073,7 +3073,7 @@ sap.ui.define([
|
|
|
3073
3073
|
};
|
|
3074
3074
|
|
|
3075
3075
|
Timeline.prototype._scrollingFadeout = function (useBinding) {
|
|
3076
|
-
return
|
|
3076
|
+
return false;
|
|
3077
3077
|
};
|
|
3078
3078
|
|
|
3079
3079
|
Timeline.prototype._setBusy = function (bBusy) {
|
|
@@ -202,11 +202,6 @@ sap.ui.define([
|
|
|
202
202
|
|
|
203
203
|
eLeftScroller.addClass("sapSuiteUiCommonsTimelineHorizontalLeftScroller sapSuiteUiCommonsTimelineHorizontalScroller");
|
|
204
204
|
eRightScroller.addClass("sapSuiteUiCommonsTimelineHorizontalRightScroller sapSuiteUiCommonsTimelineHorizontalScroller");
|
|
205
|
-
|
|
206
|
-
if (oTimeline.getScrollingFadeout() === ScrollingFadeout.AreaWithButtons) {
|
|
207
|
-
eLeftScroller.addChild(this._getScrollerIcon(oTimeline, "_scollerIconLeft", "Left"));
|
|
208
|
-
eRightScroller.addChild(this._getScrollerIcon(oTimeline, "_scollerIconRight", "Right"));
|
|
209
|
-
}
|
|
210
205
|
}
|
|
211
206
|
|
|
212
207
|
eScrollContainer.addClass("sapSuiteUiCommonsTimelineHorizontalScrollContainer");
|
|
@@ -478,11 +473,6 @@ sap.ui.define([
|
|
|
478
473
|
|
|
479
474
|
eTopScroller.addClass("sapSuiteUiCommonsTimelineTopScroller sapSuiteUiCommonsTimelineVerticalScroller");
|
|
480
475
|
eBottomScroller.addClass("sapSuiteUiCommonsTimelineBottomScroller sapSuiteUiCommonsTimelineVerticalScroller");
|
|
481
|
-
|
|
482
|
-
if (oTimeline.getScrollingFadeout() === ScrollingFadeout.AreaWithButtons) {
|
|
483
|
-
eTopScroller.addChild(this._getScrollerIcon(oTimeline, "_scollerIconTop", "Top"));
|
|
484
|
-
eBottomScroller.addChild(this._getScrollerIcon(oTimeline, "_scrollerIconBottom", "Bottom"));
|
|
485
|
-
}
|
|
486
476
|
}
|
|
487
477
|
|
|
488
478
|
this._setWidthAndHeight(oTimeline, eControl);
|
|
@@ -124,7 +124,7 @@ sap.ui.define([
|
|
|
124
124
|
* @extends sap.ui.core.Control
|
|
125
125
|
*
|
|
126
126
|
* @author SAP SE
|
|
127
|
-
* @version 1.
|
|
127
|
+
* @version 1.119.1
|
|
128
128
|
* @since 1.66.0
|
|
129
129
|
*
|
|
130
130
|
* @constructor
|
|
@@ -493,7 +493,7 @@ sap.ui.define([
|
|
|
493
493
|
};
|
|
494
494
|
|
|
495
495
|
ImageEditorContainer.prototype._isSmallSize = function() {
|
|
496
|
-
var iSmallSize =
|
|
496
|
+
var iSmallSize = 600;
|
|
497
497
|
|
|
498
498
|
return this.$()[0] && this.$().width() < iSmallSize;
|
|
499
499
|
};
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"sap.suite.ui.commons.TargetFilterMeasureColumn",
|
|
186
186
|
"sap.suite.ui.commons.AriaProperties"
|
|
187
187
|
],
|
|
188
|
-
version: "1.
|
|
188
|
+
version: "1.119.1",
|
|
189
189
|
extensions: {
|
|
190
190
|
flChangeHandlers: {
|
|
191
191
|
"sap.suite.ui.commons.Timeline": "sap/suite/ui/commons/flexibility/Timeline"
|
|
@@ -2293,5 +2293,24 @@
|
|
|
2293
2293
|
Upload: "Upload"
|
|
2294
2294
|
};
|
|
2295
2295
|
|
|
2296
|
+
/**
|
|
2297
|
+
* File selection mode(Upload) for the {@link sap.suite.ui.commons.CloudFilePicker}.
|
|
2298
|
+
*
|
|
2299
|
+
* @enum {string}
|
|
2300
|
+
* @public
|
|
2301
|
+
*/
|
|
2302
|
+
oSuiteCommonsLib.SelectionModes = {
|
|
2303
|
+
/**
|
|
2304
|
+
* Allow selection of single file
|
|
2305
|
+
* @public
|
|
2306
|
+
*/
|
|
2307
|
+
SingleSelect: "SingleSelectMaster",
|
|
2308
|
+
/**
|
|
2309
|
+
* Allow selection of multiple files
|
|
2310
|
+
* @public
|
|
2311
|
+
*/
|
|
2312
|
+
MultiSelect: "MultiSelect"
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2296
2315
|
return oSuiteCommonsLib;
|
|
2297
2316
|
});
|
|
@@ -464,6 +464,10 @@ CFP_NO_DATA_FILESHARE=No files or folders found
|
|
|
464
464
|
CFP_NO_FILESHARE_FOUND=No file share found
|
|
465
465
|
CFP_NO_FILESHARE_FOUND_RELOAD=Try reloading the file browser. If it doesn't help, contact your administrator.
|
|
466
466
|
CFP_LOCKED_FOLDER_INFO=Files cannot be exported to this folder
|
|
467
|
+
CFP_FOLDERNAME_VALUESTATEMSG = Only alphanumerical characters are allowed
|
|
468
|
+
CFP_FOLDERCREATION_MSG = The new folder was created
|
|
469
|
+
CFP_EXPORT = Export
|
|
470
|
+
CFP_UPLOAD = Upload
|
|
467
471
|
|
|
468
472
|
CFP_TITLE_LAST_CHANGED_ON=Last Changed On
|
|
469
473
|
CFP_TYPE=Type
|
|
@@ -887,15 +887,20 @@ sap.ui.define([
|
|
|
887
887
|
var sTitle = "<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipText\">" + sFromNodeText + "</span>";
|
|
888
888
|
|
|
889
889
|
if (this._isBothArrow()) {
|
|
890
|
-
sTitle += "<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipArrow sapSuiteUiCommonsNetworkGraphLineTooltipDualArrow\"></span>"
|
|
890
|
+
sTitle += "<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipArrow sapSuiteUiCommonsNetworkGraphLineTooltipDualArrow\"></span>"
|
|
891
|
+
+ "<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipArrow\"></span>" + "</br>";
|
|
892
|
+
} else if (this.getArrowOrientation() === ArrowOrientation.ChildOf) {
|
|
893
|
+
sTitle += "<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipArrow\"></span>" + "</br>";
|
|
894
|
+
} else if (this.getArrowOrientation() === ArrowOrientation.ParentOf) {
|
|
895
|
+
sTitle += "<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipArrow\"></span>" + "</br>";
|
|
896
|
+
} else {
|
|
897
|
+
sTitle += "<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipArrow\"></span>" + "</br>";
|
|
891
898
|
}
|
|
892
899
|
|
|
893
900
|
var sToNodeTitle = oTo.getTitle();
|
|
894
901
|
var sToNodeText = sToNodeTitle ? sToNodeTitle : oTo.getAltText();
|
|
895
902
|
|
|
896
|
-
sTitle += "<span class=\"
|
|
897
|
-
"</br>" +
|
|
898
|
-
"<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipText\">" + sToNodeText + "</span>";
|
|
903
|
+
sTitle += "<span class=\"sapSuiteUiCommonsNetworkGraphLineTooltipText\">" + sToNodeText + "</span>";
|
|
899
904
|
|
|
900
905
|
$tooltip.html(sTitle);
|
|
901
906
|
$buttons.html("");
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-unused-expressions */
|
|
1
2
|
/*!
|
|
2
3
|
*
|
|
3
4
|
SAP UI development toolkit for HTML5 (SAPUI5)
|
|
@@ -29,15 +30,18 @@ sap.ui.define([
|
|
|
29
30
|
"sap/m/FlexItemData",
|
|
30
31
|
"sap/ui/core/library",
|
|
31
32
|
"sap/m/library",
|
|
33
|
+
"sap/suite/ui/commons/library",
|
|
32
34
|
'sap/ui/Device'
|
|
33
35
|
], function (jQuery, SvgBase, Line, Node, Group, ResponsivePopover, Popover, List, OverflowToolbar, Button,
|
|
34
36
|
CustomListItem, FlexBox, HBox, IconTabBar, IconTabFilter, Panel, StandardListItem, Text, ToolbarSpacer,
|
|
35
|
-
|
|
37
|
+
Icon, FlexItemData, CoreLibrary, MobileLibrary, Library, Device) {
|
|
36
38
|
"use strict";
|
|
37
39
|
|
|
38
40
|
// shortcut for sap.m.PlacementType
|
|
39
41
|
var PlacementType = MobileLibrary.PlacementType;
|
|
40
42
|
|
|
43
|
+
var ArrowOrientation = Library.networkgraph.LineArrowOrientation;
|
|
44
|
+
|
|
41
45
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.suite.ui.commons");
|
|
42
46
|
|
|
43
47
|
/**
|
|
@@ -393,6 +397,9 @@ sap.ui.define([
|
|
|
393
397
|
oIconLeft = new Icon({
|
|
394
398
|
src: "sap-icon://arrow-left"
|
|
395
399
|
}).addStyleClass("sapUiTinyMarginBegin sapSuiteUiCommonsNetworkGraphNoPointerEvents sapSuiteUiCommonsNetworkLineTooltipFromToIcon"),
|
|
400
|
+
oIconNone = new Icon({
|
|
401
|
+
src: "sap-icon://less"
|
|
402
|
+
}).addStyleClass("sapUiTinyMarginBegin sapSuiteUiCommonsNetworkGraphNoPointerEvents sapSuiteUiCommonsNetworkLineTooltipFromToIcon"),
|
|
396
403
|
oItemTo = new Text({
|
|
397
404
|
textAlign: CoreLibrary.TextAlign.End,
|
|
398
405
|
width: "50%",
|
|
@@ -406,9 +413,15 @@ sap.ui.define([
|
|
|
406
413
|
}).addStyleClass("sapSuiteUiCommonsNetworkLineTooltipFromTo");
|
|
407
414
|
|
|
408
415
|
oLine._isBothArrow() ? oFromToContainer.addItem(oIconLeft) : oIcon.addStyleClass("sapUiTinyMarginBegin");
|
|
416
|
+
if (oLine.getArrowOrientation() === ArrowOrientation.ChildOf) {
|
|
417
|
+
oFromToContainer.addItem(oIconLeft);
|
|
418
|
+
} else if (oLine.getArrowOrientation() === ArrowOrientation.None) {
|
|
419
|
+
oFromToContainer.addItem(oIconNone);
|
|
420
|
+
} else {
|
|
409
421
|
oFromToContainer.addItem(oIcon);
|
|
410
|
-
|
|
422
|
+
}
|
|
411
423
|
|
|
424
|
+
oFromToContainer.addItem(oItemTo);
|
|
412
425
|
return oFromToContainer;
|
|
413
426
|
},
|
|
414
427
|
fnCreateDetail = function () {
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @extends sap.ui.core.Control
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.119.1
|
|
33
33
|
* @since 1.50
|
|
34
34
|
*
|
|
35
35
|
* @constructor
|
|
@@ -173,7 +173,7 @@ sap.ui.define([
|
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
var iTargetTime = iLastUpdateTime +
|
|
176
|
+
var iTargetTime = iLastUpdateTime + 250 * Math.abs(iTargetValue - iDisplayedValue) / 100;
|
|
177
177
|
var iValueToUpdate = iTargetValue;
|
|
178
178
|
|
|
179
179
|
if (iCurrentTime < iTargetTime) {
|