@sapui5/sap.suite.ui.commons 1.106.0 → 1.107.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/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 +3 -2
- 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 +3 -5
- package/src/sap/suite/ui/commons/CalculationBuilderVariable.js +3 -2
- package/src/sap/suite/ui/commons/CloudFileInfo.js +1 -1
- package/src/sap/suite/ui/commons/CloudFilePicker.js +74 -50
- package/src/sap/suite/ui/commons/MicroProcessFlow.js +47 -26
- package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +43 -39
- package/src/sap/suite/ui/commons/TimelineFilterListItem.js +17 -13
- package/src/sap/suite/ui/commons/collaborationhelper/CollaborationHelper.js +26 -4
- package/src/sap/suite/ui/commons/collaborationhelper/URLMinify.js +135 -0
- 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 +2 -2
- package/src/sap/suite/ui/commons/messagebundle.properties +6 -0
- package/src/sap/suite/ui/commons/messagebundle_ar.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_bg.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_ca.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_cs.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_cy.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_da.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_de.properties +2 -2
- package/src/sap/suite/ui/commons/messagebundle_el.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_en_GB.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_en_US_sappsd.properties +3 -0
- package/src/sap/suite/ui/commons/messagebundle_en_US_saprigi.properties +3 -0
- package/src/sap/suite/ui/commons/messagebundle_en_US_saptrc.properties +1 -0
- package/src/sap/suite/ui/commons/messagebundle_es.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_es_MX.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_et.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_fi.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_fr.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_fr_CA.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_hi.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_hr.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_hu.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_id.properties +3 -3
- package/src/sap/suite/ui/commons/messagebundle_it.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_iw.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_ja.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_kk.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_ko.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_lt.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_lv.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_ms.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_nl.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_no.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_pl.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_pt.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_pt_PT.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_ro.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_ru.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_sh.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_sl.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_sv.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_th.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_tr.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_uk.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_vi.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_zh_CN.properties +1 -1
- package/src/sap/suite/ui/commons/messagebundle_zh_TW.properties +1 -1
- package/src/sap/suite/ui/commons/networkgraph/Node.js +7 -1
- package/src/sap/suite/ui/commons/networkgraph/layout/TwoColumnsLayout.js +24 -20
- 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 +3 -2
- 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 +3 -2
- 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 +3 -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/statusindicator/StatusIndicatorRenderer.js +0 -1
- package/src/sap/suite/ui/commons/taccount/TAccount.js +3 -3
- package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +5 -4
- 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/util/StringSliderTooltip.js +9 -9
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* @extends sap.ui.core.Control
|
|
19
19
|
*
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.107.0
|
|
22
22
|
* @since 1.56.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
@@ -85,7 +85,8 @@ sap.ui.define([
|
|
|
85
85
|
singularName: "item"
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
}
|
|
88
|
+
},
|
|
89
|
+
renderer: null // this control has no own renderer, it is rendered by the CalculationBuilder
|
|
89
90
|
});
|
|
90
91
|
|
|
91
92
|
CalculationBuilderFunction.prototype._getLabel = function () {
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
2
|
"sap/ui/thirdparty/jquery",
|
|
3
|
-
"./library",
|
|
4
|
-
"sap/ui/core/Control",
|
|
5
3
|
"sap/ui/base/ManagedObject"
|
|
6
|
-
], function (jQuery,
|
|
4
|
+
], function (jQuery, ManagedObject) {
|
|
7
5
|
"use strict";
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* Constructor for a new validation result.
|
|
11
9
|
*
|
|
12
10
|
* @class
|
|
13
|
-
* This
|
|
11
|
+
* This can be used for creating your own validation algorithm for custom functions.<br>
|
|
14
12
|
* Custom functions can be defined using {@link sap.suite.ui.commons.CalculationBuilderFunction}.
|
|
15
13
|
*
|
|
16
14
|
* @extends sap.ui.base.ManagedObject
|
|
17
15
|
*
|
|
18
16
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
17
|
+
* @version 1.107.0
|
|
20
18
|
* @since 1.56.0
|
|
21
19
|
*
|
|
22
20
|
* @constructor
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
* @extends sap.ui.core.Control
|
|
16
16
|
*
|
|
17
17
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.107.0
|
|
19
19
|
* @since 1.56.0
|
|
20
20
|
*
|
|
21
21
|
* @constructor
|
|
@@ -60,7 +60,8 @@ sap.ui.define([
|
|
|
60
60
|
singularName: "Item"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
},
|
|
64
|
+
renderer: null // this control has no own renderer, it is rendered by the CalculationBuilder
|
|
64
65
|
});
|
|
65
66
|
|
|
66
67
|
CalculationBuilderVariable.prototype._getLabel = function () {
|
|
@@ -43,7 +43,10 @@ sap.ui.define([
|
|
|
43
43
|
"sap/base/Log",
|
|
44
44
|
"sap/ui/model/odata/type/DateTimeOffset",
|
|
45
45
|
"sap/ui/core/Item",
|
|
46
|
-
"sap/ui/core/SortOrder"
|
|
46
|
+
"sap/ui/core/SortOrder",
|
|
47
|
+
"sap/m/IllustratedMessage",
|
|
48
|
+
"sap/m/IllustratedMessageType",
|
|
49
|
+
"sap/m/IllustratedMessageSize"
|
|
47
50
|
], function (
|
|
48
51
|
Button,
|
|
49
52
|
Dialog,
|
|
@@ -81,7 +84,10 @@ sap.ui.define([
|
|
|
81
84
|
Log,
|
|
82
85
|
DateTimeOffset,
|
|
83
86
|
Item,
|
|
84
|
-
SortOrder
|
|
87
|
+
SortOrder,
|
|
88
|
+
IllustratedMessage,
|
|
89
|
+
IllustratedMessageType,
|
|
90
|
+
IllustratedMessageSize
|
|
85
91
|
) {
|
|
86
92
|
"use strict";
|
|
87
93
|
|
|
@@ -90,7 +96,7 @@ sap.ui.define([
|
|
|
90
96
|
var ValueState = coreLibrary.ValueState;
|
|
91
97
|
var FilePickerModes = library.FilePickerModes;
|
|
92
98
|
var oTableControl, oSelectControl, oBreadcrumbLinkControl, oFileNameControl,
|
|
93
|
-
aVisibleLinks, oNavigationMap, oConfirmationButton, oNewFolderButton, oNewFolderColumnListItem;
|
|
99
|
+
aVisibleLinks, oNavigationMap, oConfirmationButton, oNewFolderButton, oNewFolderColumnListItem, oCurrentParentData;
|
|
94
100
|
|
|
95
101
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.suite.ui.commons");
|
|
96
102
|
|
|
@@ -105,7 +111,7 @@ sap.ui.define([
|
|
|
105
111
|
* @class
|
|
106
112
|
* @public
|
|
107
113
|
* @internal
|
|
108
|
-
* @version 1.
|
|
114
|
+
* @version 1.107.0
|
|
109
115
|
*/
|
|
110
116
|
var CloudFilePicker = Dialog.extend("sap.suite.ui.commons.CloudFilePicker", {
|
|
111
117
|
metadata: {
|
|
@@ -177,14 +183,6 @@ sap.ui.define([
|
|
|
177
183
|
type: "boolean",
|
|
178
184
|
group: "Data",
|
|
179
185
|
defaultValue: false
|
|
180
|
-
},
|
|
181
|
-
/**
|
|
182
|
-
* Specifies whether new folder can be created
|
|
183
|
-
*/
|
|
184
|
-
enableNewFolderCreation: {
|
|
185
|
-
type: "boolean",
|
|
186
|
-
group: "Data",
|
|
187
|
-
defaultValue: false
|
|
188
186
|
}
|
|
189
187
|
},
|
|
190
188
|
events: {
|
|
@@ -297,7 +295,22 @@ sap.ui.define([
|
|
|
297
295
|
var mParameters = oEvent.getParameters();
|
|
298
296
|
if (mParameters.error) {
|
|
299
297
|
this.setBusy(false);
|
|
300
|
-
|
|
298
|
+
var oMessage = new IllustratedMessage({
|
|
299
|
+
illustrationType: IllustratedMessageType.ErrorScreen,
|
|
300
|
+
illustrationSize: IllustratedMessageSize.Spot,
|
|
301
|
+
enableVerticalResponsiveness: true,
|
|
302
|
+
title: oResourceBundle.getText("CFP_NO_FILESHARE_FOUND"),
|
|
303
|
+
description: oResourceBundle.getText("CFP_NO_FILESHARE_FOUND_RELOAD"),
|
|
304
|
+
additionalContent: [
|
|
305
|
+
new Button({
|
|
306
|
+
text: oResourceBundle.getText("CFP_BUTTON_RELOAD"),
|
|
307
|
+
press: function () {
|
|
308
|
+
oSelectControl.getBinding("items").refresh();
|
|
309
|
+
}
|
|
310
|
+
})
|
|
311
|
+
]
|
|
312
|
+
});
|
|
313
|
+
oTableControl.setNoData(oMessage);
|
|
301
314
|
} else {
|
|
302
315
|
if (oEvent.getSource() && oEvent.getSource().getContexts() && oEvent.getSource().getContexts().length) {
|
|
303
316
|
var sPath = oEvent.getSource().getContexts()[0].sPath;
|
|
@@ -380,19 +393,18 @@ sap.ui.define([
|
|
|
380
393
|
};
|
|
381
394
|
|
|
382
395
|
CloudFilePicker.prototype._createTableContent = function () {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
});
|
|
392
|
-
}
|
|
396
|
+
oNewFolderButton = new Button({
|
|
397
|
+
text: oResourceBundle.getText("CFP_TITLE_NEWFOLDER"),
|
|
398
|
+
type: ButtonType.Transparent,
|
|
399
|
+
enabled: false,
|
|
400
|
+
press: function () {
|
|
401
|
+
this._createNewFolderInline();
|
|
402
|
+
}.bind(this)
|
|
403
|
+
});
|
|
393
404
|
oTableControl = new Table({
|
|
394
405
|
headerToolbar: new OverflowToolbar({
|
|
395
|
-
content:
|
|
406
|
+
content:[
|
|
407
|
+
new Title({text: oResourceBundle.getText("CFP_LIST_HEADER")}),
|
|
396
408
|
new ToolbarSpacer(),
|
|
397
409
|
new SearchField({
|
|
398
410
|
layoutData: new OverflowToolbarLayoutData({
|
|
@@ -403,8 +415,8 @@ sap.ui.define([
|
|
|
403
415
|
}),
|
|
404
416
|
visible:false
|
|
405
417
|
}),
|
|
406
|
-
oNewFolderButton
|
|
407
|
-
|
|
418
|
+
oNewFolderButton
|
|
419
|
+
],
|
|
408
420
|
design: 'Transparent'
|
|
409
421
|
}),
|
|
410
422
|
columns: [
|
|
@@ -414,7 +426,8 @@ sap.ui.define([
|
|
|
414
426
|
key: "bindingProperty",
|
|
415
427
|
value: 'FileShareItemName'
|
|
416
428
|
})],
|
|
417
|
-
width: "auto"
|
|
429
|
+
width: "auto",
|
|
430
|
+
importance: "High"
|
|
418
431
|
}),
|
|
419
432
|
new Column({
|
|
420
433
|
hAlign: "Left",
|
|
@@ -423,7 +436,8 @@ sap.ui.define([
|
|
|
423
436
|
key: "bindingProperty",
|
|
424
437
|
value: 'FileShareItemContentType'
|
|
425
438
|
})],
|
|
426
|
-
width: "17%"
|
|
439
|
+
width: "17%",
|
|
440
|
+
importance: "High"
|
|
427
441
|
}),
|
|
428
442
|
new Column({
|
|
429
443
|
header: new Text({text: oResourceBundle.getText("CFP_OWNER")}),
|
|
@@ -431,7 +445,9 @@ sap.ui.define([
|
|
|
431
445
|
key: "bindingProperty",
|
|
432
446
|
value: 'CreatedByUser'
|
|
433
447
|
})],
|
|
434
|
-
width: "17%"
|
|
448
|
+
width: "17%",
|
|
449
|
+
importance: "Low",
|
|
450
|
+
visible: Device.system.phone ? false : true
|
|
435
451
|
}),
|
|
436
452
|
new Column({
|
|
437
453
|
hAlign: "End",
|
|
@@ -440,7 +456,9 @@ sap.ui.define([
|
|
|
440
456
|
key: "bindingProperty",
|
|
441
457
|
value: 'LastChangeDateTime'
|
|
442
458
|
})],
|
|
443
|
-
width: "17%"
|
|
459
|
+
width: "17%",
|
|
460
|
+
importance: "Low",
|
|
461
|
+
visible: Device.system.phone ? false : true
|
|
444
462
|
}),
|
|
445
463
|
new Column({
|
|
446
464
|
hAlign: "End",
|
|
@@ -449,7 +467,9 @@ sap.ui.define([
|
|
|
449
467
|
key: "bindingProperty",
|
|
450
468
|
value: 'FileShareItemContentSize'
|
|
451
469
|
})],
|
|
452
|
-
width: "10%"
|
|
470
|
+
width: "10%",
|
|
471
|
+
importance: "Low",
|
|
472
|
+
visible: Device.system.phone ? false : true
|
|
453
473
|
})
|
|
454
474
|
],
|
|
455
475
|
autoPopinMode: true,
|
|
@@ -465,9 +485,9 @@ sap.ui.define([
|
|
|
465
485
|
var bIsFolder = oContext.getObject("FileShareItemKind") === "folder";
|
|
466
486
|
if (bIsFolder) {
|
|
467
487
|
var oSelectedFolderInfo = this._createSelectionParameter(oSelectedItem);
|
|
468
|
-
this._resetAndApplyDefaultSorting();
|
|
469
488
|
var sFileShareItemId = oSelectedFolderInfo.getFileShareItemId();
|
|
470
489
|
oSelectedFolderInfo.path = oContext.getCanonicalPath();
|
|
490
|
+
oCurrentParentData = oSelectedFolderInfo;
|
|
471
491
|
oNavigationMap.set(sFileShareItemId, oSelectedFolderInfo);
|
|
472
492
|
var oNewContext = oContext
|
|
473
493
|
.getModel()
|
|
@@ -511,13 +531,18 @@ sap.ui.define([
|
|
|
511
531
|
new HBox({
|
|
512
532
|
items: [
|
|
513
533
|
new Icon({src:{
|
|
514
|
-
parts: ["FileShareItemKind", "FileShareItemContentType"],
|
|
534
|
+
parts: ["FileShareItemKind", "FileShareItemContentType", "isDocumentCreationAllowed"],
|
|
515
535
|
formatter: function (
|
|
516
536
|
sFileShareItemKind,
|
|
517
|
-
sFileShareItemContentType
|
|
537
|
+
sFileShareItemContentType,
|
|
538
|
+
sIsDocumentCreationAllowed
|
|
518
539
|
) {
|
|
519
540
|
if (sFileShareItemKind === "folder") {
|
|
520
|
-
|
|
541
|
+
if (sIsDocumentCreationAllowed === "No") {
|
|
542
|
+
return "sap-icon://locked";
|
|
543
|
+
} else {
|
|
544
|
+
return "sap-icon://folder-full";
|
|
545
|
+
}
|
|
521
546
|
} else {
|
|
522
547
|
return IconPool.getIconForMimeType(sFileShareItemContentType);
|
|
523
548
|
}
|
|
@@ -547,21 +572,9 @@ sap.ui.define([
|
|
|
547
572
|
},
|
|
548
573
|
updateFinished: function (oEvent) {
|
|
549
574
|
if (!oTableControl.getBusy()) {
|
|
550
|
-
var sResolvedPath = oEvent.getSource().getBinding("items").getResolvedPath(), aCurrentPaths = sResolvedPath.split(/[(,=)]/), sCurrentParentFileShareItem;
|
|
551
|
-
if (aCurrentPaths && aCurrentPaths.length && aCurrentPaths.indexOf("FileShareItem") > -1) {
|
|
552
|
-
sCurrentParentFileShareItem = aCurrentPaths[aCurrentPaths.indexOf("FileShareItem") + 1].replace(/[']+/g, '');
|
|
553
|
-
}
|
|
554
|
-
var oCurrentParentData = oNavigationMap.get(sCurrentParentFileShareItem);
|
|
555
575
|
if (oCurrentParentData && Object.keys(oCurrentParentData).length !== 0) {
|
|
556
576
|
this._setConfirmationButtonEnabled(oCurrentParentData.getProperty("isDocumentCreationAllowed"));
|
|
557
|
-
|
|
558
|
-
if (oNewFolderButton) {
|
|
559
|
-
if (oNavigationMap.size && oCurrentParentData.getProperty("isDocumentCreationAllowed")) {
|
|
560
|
-
oNewFolderButton.setEnabled(true);
|
|
561
|
-
} else {
|
|
562
|
-
oNewFolderButton.setEnabled(false);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
577
|
+
this._enableDisableNewFolderBtn();
|
|
565
578
|
}
|
|
566
579
|
}
|
|
567
580
|
}.bind(this)
|
|
@@ -569,7 +582,10 @@ sap.ui.define([
|
|
|
569
582
|
|
|
570
583
|
oTableControl.bActiveHeaders = true;
|
|
571
584
|
oTableControl.attachEvent("columnPress", function(oEvent) {
|
|
572
|
-
var oColumn = oEvent.getParameter("column");
|
|
585
|
+
var oColumn = oEvent.getParameter("column"), sColumnType = oColumn.getCustomData()[0].getValue();
|
|
586
|
+
if (sColumnType === "CreatedByUser" || sColumnType === "FileShareItemContentSize") {
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
573
589
|
var _aSortButton = [
|
|
574
590
|
new ColumnPopoverSelectListItem({
|
|
575
591
|
icon: "sap-icon://sort-ascending",
|
|
@@ -655,6 +671,15 @@ sap.ui.define([
|
|
|
655
671
|
return !!oDuplicateItem;
|
|
656
672
|
};
|
|
657
673
|
|
|
674
|
+
CloudFilePicker.prototype._enableDisableNewFolderBtn = function () {
|
|
675
|
+
// New folder creation to be allowed only at child level of a particular drive
|
|
676
|
+
if (oNavigationMap.size && oCurrentParentData.getProperty("isDocumentCreationAllowed")) {
|
|
677
|
+
oNewFolderButton.setEnabled(true);
|
|
678
|
+
} else {
|
|
679
|
+
oNewFolderButton.setEnabled(false);
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
|
|
658
683
|
CloudFilePicker.prototype._makeNewFolderEntry = function (sFolderName) {
|
|
659
684
|
this.setBusy(true);
|
|
660
685
|
var oBinding = oTableControl.getBinding("items"), fnResolve, oPromise = new Promise(function (resolve) {
|
|
@@ -771,7 +796,6 @@ sap.ui.define([
|
|
|
771
796
|
var iLinkIndex = oBreadcrumbLinkControl.indexOfLink(
|
|
772
797
|
oEvent.getSource()
|
|
773
798
|
);
|
|
774
|
-
this._resetAndApplyDefaultSorting();
|
|
775
799
|
var aRemovedLinks = aVisibleLinks.splice(iLinkIndex + 1);
|
|
776
800
|
var oSelectedFolderInfo, oNewContext;
|
|
777
801
|
this._updateBreadcrumbLinks();
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @extends sap.ui.core.Control
|
|
29
29
|
*
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.107.0
|
|
32
32
|
*
|
|
33
33
|
* @constructor
|
|
34
34
|
* @public
|
|
@@ -73,7 +73,9 @@ sap.ui.define([
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
-
renderer:
|
|
76
|
+
renderer: {
|
|
77
|
+
apiVersion: 2,
|
|
78
|
+
render: function (oRM, oMicroProcessFlow) {
|
|
77
79
|
var aContent = oMicroProcessFlow.getContent(),
|
|
78
80
|
sWidth = oMicroProcessFlow.getWidth(),
|
|
79
81
|
iLength = aContent.length,
|
|
@@ -84,55 +86,74 @@ sap.ui.define([
|
|
|
84
86
|
return;
|
|
85
87
|
}
|
|
86
88
|
|
|
87
|
-
oRM.
|
|
89
|
+
oRM.openStart("div", oMicroProcessFlow);
|
|
88
90
|
|
|
89
|
-
oRM.
|
|
90
|
-
oRM.
|
|
91
|
-
oRM.
|
|
92
|
-
oRM.writeAttribute("aria-label",sLabel);
|
|
91
|
+
oRM.attr("role", "listbox");
|
|
92
|
+
oRM.attr("aria-roledescription", oResourceBundle.getText("ACC_CTR_TYPE_MICRO_PROCESS_FLOW"));
|
|
93
|
+
oRM.attr("aria-label",sLabel);
|
|
93
94
|
|
|
94
95
|
if (sWidth) {
|
|
95
|
-
oRM.
|
|
96
|
+
oRM.style("width", sWidth);
|
|
96
97
|
}
|
|
97
|
-
oRM.writeStyles();
|
|
98
98
|
|
|
99
|
-
oRM.
|
|
100
|
-
oRM.
|
|
101
|
-
oRM.write(">");
|
|
99
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlow");
|
|
100
|
+
oRM.openEnd();
|
|
102
101
|
|
|
103
102
|
if (oMicroProcessFlow._hasScrolling()) {
|
|
104
|
-
oRM.
|
|
103
|
+
oRM.openStart("div");
|
|
104
|
+
oRM.attr("tabindex", "0");
|
|
105
|
+
oRM.attr("id", oMicroProcessFlow.getId() + "-leftscroller");
|
|
106
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowScroller").class("sapSuiteUiCommonsMicroProcessFlowLeftScroller");
|
|
107
|
+
oRM.openEnd();
|
|
105
108
|
oRM.renderControl(oMicroProcessFlow._getLeftScroller());
|
|
106
|
-
oRM.
|
|
107
|
-
oRM.
|
|
109
|
+
oRM.openStart("span");
|
|
110
|
+
oRM.attr("id", oMicroProcessFlow.getId() + "-leftlabel");
|
|
111
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowLeftLabel");
|
|
112
|
+
oRM.openEnd();
|
|
113
|
+
oRM.close("span");
|
|
114
|
+
oRM.close("div");
|
|
115
|
+
|
|
108
116
|
}
|
|
109
117
|
|
|
110
|
-
oRM.
|
|
111
|
-
oRM.
|
|
118
|
+
oRM.openStart("div");
|
|
119
|
+
oRM.attr("id", oMicroProcessFlow.getId() + "-content");
|
|
120
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowContent");
|
|
121
|
+
oRM.openEnd();
|
|
122
|
+
oRM.openStart("div");
|
|
123
|
+
oRM.attr("id", oMicroProcessFlow.getId() + "-scrolling");
|
|
124
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowScrolling").class("sapSuiteUiCommonsMicroProcessFlowScrollingTransition");
|
|
112
125
|
|
|
113
126
|
if (oMicroProcessFlow.getRenderType() === RenderType.Wrap) {
|
|
114
|
-
oRM.
|
|
115
|
-
oRM.writeStyles();
|
|
127
|
+
oRM.style("flex-wrap", "wrap");
|
|
116
128
|
}
|
|
117
129
|
|
|
118
|
-
oRM.
|
|
130
|
+
oRM.openEnd();
|
|
119
131
|
|
|
120
132
|
aContent.forEach(function (oItem, i) {
|
|
121
133
|
oItem._setAccessibilityData(i + 1, iLength);
|
|
122
134
|
oRM.renderControl(oItem);
|
|
123
135
|
});
|
|
124
136
|
|
|
125
|
-
oRM.
|
|
126
|
-
oRM.
|
|
137
|
+
oRM.close("div");
|
|
138
|
+
oRM.close("div");
|
|
127
139
|
|
|
128
140
|
if (oMicroProcessFlow._hasScrolling()) {
|
|
129
|
-
oRM.
|
|
130
|
-
oRM.
|
|
141
|
+
oRM.openStart("div");
|
|
142
|
+
oRM.attr("id", oMicroProcessFlow.getId() + "-rightscroller");
|
|
143
|
+
oRM.attr("tabindex", "0");
|
|
144
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowScroller").class("sapSuiteUiCommonsMicroProcessFlowRightScroller");
|
|
145
|
+
oRM.openEnd();
|
|
146
|
+
oRM.openStart("span");
|
|
147
|
+
oRM.attr("id", oMicroProcessFlow.getId() + "-rightlabel");
|
|
148
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowRightLabel");
|
|
149
|
+
oRM.openEnd();
|
|
150
|
+
oRM.close("span");
|
|
131
151
|
oRM.renderControl(oMicroProcessFlow._getRightScroller());
|
|
132
|
-
oRM.
|
|
152
|
+
oRM.close("div");
|
|
133
153
|
}
|
|
134
154
|
|
|
135
|
-
oRM.
|
|
155
|
+
oRM.close("div");
|
|
156
|
+
}
|
|
136
157
|
}
|
|
137
158
|
});
|
|
138
159
|
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @extends sap.ui.core.Control
|
|
31
31
|
*
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.107.0
|
|
34
34
|
*
|
|
35
35
|
* @constructor
|
|
36
36
|
* @public
|
|
@@ -123,46 +123,49 @@ sap.ui.define([
|
|
|
123
123
|
this._setupEvents();
|
|
124
124
|
this._setAccessibility();
|
|
125
125
|
},
|
|
126
|
-
renderer:
|
|
126
|
+
renderer: {
|
|
127
|
+
apiVersion: 2,
|
|
128
|
+
render: function (oRM, oMicroProcessFlowItem) {
|
|
127
129
|
var fnRenderSeparator = function () {
|
|
128
130
|
// wrapper
|
|
129
|
-
oRM.
|
|
130
|
-
oRM.
|
|
131
|
-
oRM.
|
|
132
|
-
oRM.
|
|
133
|
-
oRM.
|
|
134
|
-
oRM.writeStyles();
|
|
135
|
-
oRM.write(">");
|
|
131
|
+
oRM.openStart("div");
|
|
132
|
+
oRM.attr("id", oMicroProcessFlowItem.getId() + "-separator");
|
|
133
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowItemSeparatorWrapper");
|
|
134
|
+
oRM.style("width", oMicroProcessFlowItem._getStepWidth());
|
|
135
|
+
oRM.openEnd();
|
|
136
136
|
|
|
137
137
|
// separator
|
|
138
|
-
oRM.
|
|
139
|
-
oRM.
|
|
138
|
+
oRM.openStart("div");
|
|
139
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowItemSeparator");
|
|
140
140
|
// last item doesn't have visible separator, but can have intermediary
|
|
141
141
|
if (!oMicroProcessFlowItem.getShowSeparator() || bIsLast) {
|
|
142
|
-
oRM.
|
|
142
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowItemHiddenSeparator");
|
|
143
143
|
}
|
|
144
|
-
oRM.
|
|
145
|
-
oRM.
|
|
146
|
-
oRM.write("</div>");
|
|
144
|
+
oRM.openEnd();
|
|
145
|
+
oRM.close("div");
|
|
147
146
|
|
|
148
147
|
if (bShowIntermediary) {
|
|
149
148
|
fnRenderIntermediary();
|
|
150
149
|
}
|
|
151
150
|
|
|
152
|
-
oRM.
|
|
151
|
+
oRM.close("div");
|
|
153
152
|
};
|
|
154
153
|
|
|
155
154
|
var fnRenderIntermediary = function () {
|
|
156
155
|
var oIntermediary = oMicroProcessFlowItem.getIntermediary();
|
|
157
156
|
|
|
158
|
-
oRM.
|
|
157
|
+
oRM.openStart("div");
|
|
158
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowItemIntermediary");
|
|
159
|
+
oRM.openEnd();
|
|
159
160
|
if (oIntermediary) {
|
|
160
161
|
oRM.renderControl(oIntermediary);
|
|
161
162
|
} else {
|
|
162
|
-
oRM.
|
|
163
|
-
oRM.
|
|
163
|
+
oRM.openStart("div");
|
|
164
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowItemOnHoldElement");
|
|
165
|
+
oRM.openEnd();
|
|
166
|
+
oRM.close("div");
|
|
164
167
|
}
|
|
165
|
-
oRM.
|
|
168
|
+
oRM.close("div");
|
|
166
169
|
};
|
|
167
170
|
|
|
168
171
|
var sIcon = oMicroProcessFlowItem.getIcon() || oMicroProcessFlowItem._getIconByState(),
|
|
@@ -172,29 +175,29 @@ sap.ui.define([
|
|
|
172
175
|
oCustomControl = oMicroProcessFlowItem.getCustomControl(),
|
|
173
176
|
sTitle = oMicroProcessFlowItem.getTitle();
|
|
174
177
|
|
|
175
|
-
oRM.
|
|
176
|
-
oRM.
|
|
177
|
-
oRM.
|
|
178
|
-
oRM.writeControlData(oMicroProcessFlowItem);
|
|
179
|
-
oRM.write(">");
|
|
178
|
+
oRM.openStart("div", oMicroProcessFlowItem);
|
|
179
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowItemWrapper");
|
|
180
|
+
oRM.openEnd();
|
|
180
181
|
|
|
181
|
-
oRM.
|
|
182
|
+
oRM.openStart("div");
|
|
183
|
+
oRM.attr("id", sId + "-item");
|
|
182
184
|
if (sTitle) {
|
|
183
|
-
oRM.
|
|
185
|
+
oRM.attr("title", sTitle);
|
|
184
186
|
}
|
|
185
|
-
oRM.
|
|
186
|
-
oRM.
|
|
187
|
-
oRM.write(">");
|
|
187
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowItemContent");
|
|
188
|
+
oRM.openEnd("div");
|
|
188
189
|
|
|
189
190
|
if (oCustomControl) {
|
|
190
191
|
oRM.renderControl(oCustomControl);
|
|
191
192
|
} else {
|
|
192
|
-
oRM.
|
|
193
|
-
|
|
194
|
-
oRM.
|
|
195
|
-
oRM.
|
|
196
|
-
oRM.
|
|
197
|
-
oRM.
|
|
193
|
+
oRM.openStart("div");
|
|
194
|
+
oRM.attr("id", sId + "-itemContent");
|
|
195
|
+
oRM.attr("tabindex", "0");
|
|
196
|
+
oRM.class("sapSuiteUiCommonsMicroProcessFlowItem").class("sapSuiteUiCommonsMicroProcessFlowItem" + oMicroProcessFlowItem.getState());
|
|
197
|
+
oRM.attr("aria-label", oMicroProcessFlowItem._getAriaText());
|
|
198
|
+
oRM.attr("role", "option");
|
|
199
|
+
oRM.attr("aria-selected", "false");
|
|
200
|
+
oRM.openEnd();
|
|
198
201
|
|
|
199
202
|
if (sIcon) {
|
|
200
203
|
oRM.renderControl(new sap.ui.core.Icon({
|
|
@@ -202,15 +205,16 @@ sap.ui.define([
|
|
|
202
205
|
src: sIcon
|
|
203
206
|
}).addStyleClass("sapSuiteUiCommonsMicroProcessFlowItemIcon"));
|
|
204
207
|
}
|
|
205
|
-
oRM.
|
|
208
|
+
oRM.close("div");
|
|
206
209
|
}
|
|
207
|
-
oRM.
|
|
210
|
+
oRM.close("div");
|
|
208
211
|
|
|
209
212
|
if (!bIsLast || bShowIntermediary) {
|
|
210
213
|
fnRenderSeparator();
|
|
211
214
|
}
|
|
212
215
|
|
|
213
|
-
oRM.
|
|
216
|
+
oRM.close("div");
|
|
217
|
+
}
|
|
214
218
|
}
|
|
215
219
|
});
|
|
216
220
|
|