@sapui5/sap.suite.ui.commons 1.102.3 → 1.102.4
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/CloudFileInfo.js +5 -1
- package/src/sap/suite/ui/commons/CloudFilePicker.js +90 -24
- 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/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_en.properties +1 -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/package.json
CHANGED
|
@@ -58,7 +58,11 @@ sap.ui.define([
|
|
|
58
58
|
/**
|
|
59
59
|
* Link to the file share item instance.
|
|
60
60
|
*/
|
|
61
|
-
fileShareItemContentLink : {type : "string", group : "Data"}
|
|
61
|
+
fileShareItemContentLink : {type : "string", group : "Data"},
|
|
62
|
+
/**
|
|
63
|
+
* Indicate if an action is a allowed or not
|
|
64
|
+
*/
|
|
65
|
+
isDocumentCreationAllowed : {type : "boolean", group : "Data"}
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
});
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
*
|
|
62
62
|
* @constructur
|
|
63
63
|
* @internal
|
|
64
|
-
* @version 1.102.
|
|
64
|
+
* @version 1.102.4
|
|
65
65
|
*/
|
|
66
66
|
var DialogType = mLibrary.DialogType;
|
|
67
67
|
var ButtonType = mLibrary.ButtonType;
|
|
@@ -189,6 +189,8 @@ sap.ui.define([
|
|
|
189
189
|
this.setHorizontalScrolling(false);
|
|
190
190
|
this.setVerticalScrolling(false);
|
|
191
191
|
this.setTitle(this.getTitle());
|
|
192
|
+
this.setBusyIndicatorDelay(0);
|
|
193
|
+
this.setBusy(true);
|
|
192
194
|
},
|
|
193
195
|
renderer: DialogRenderer
|
|
194
196
|
});
|
|
@@ -198,7 +200,8 @@ sap.ui.define([
|
|
|
198
200
|
if (sServiceURL) {
|
|
199
201
|
var oModel = new ODataModel({
|
|
200
202
|
serviceUrl: sServiceURL,
|
|
201
|
-
synchronizationMode: "None"
|
|
203
|
+
synchronizationMode: "None",
|
|
204
|
+
earlyRequests: true
|
|
202
205
|
});
|
|
203
206
|
this.setModel(oModel);
|
|
204
207
|
// Adding Select for cloud spaces
|
|
@@ -227,11 +230,9 @@ sap.ui.define([
|
|
|
227
230
|
id: this.getId() + "-cloudSpaceSelect",
|
|
228
231
|
forceSelection: false,
|
|
229
232
|
change: function (oControlEvent) {
|
|
230
|
-
oListControl.
|
|
233
|
+
oListControl.setBusyIndicatorDelay(0);
|
|
234
|
+
oListControl.setNoDataText(" ");
|
|
231
235
|
oFileNameControl.setValue(this.getSuggestedFileName());
|
|
232
|
-
// Confirmation button if disabled already should be re enabled if fileNameControl is set with a value during drive location change
|
|
233
|
-
// and the Confirmation button should be kept disabled when drive location changes
|
|
234
|
-
this._setConfirmationButtonEnabled(false);
|
|
235
236
|
oBreadcrumbLinkControl.destroyLinks();
|
|
236
237
|
this._initializeVisibleLinks();
|
|
237
238
|
|
|
@@ -240,6 +241,23 @@ sap.ui.define([
|
|
|
240
241
|
}.bind(this)
|
|
241
242
|
}).bindItems({
|
|
242
243
|
path: "/FileShares",
|
|
244
|
+
events:{
|
|
245
|
+
dataReceived: function (oEvent) {
|
|
246
|
+
var mParameters = oEvent.getParameters();
|
|
247
|
+
if (mParameters.error) {
|
|
248
|
+
this.setBusy(false);
|
|
249
|
+
oListControl.setNoDataText(null);
|
|
250
|
+
} else {
|
|
251
|
+
var sPath = oEvent.getSource().getContexts()[0].sPath;
|
|
252
|
+
var sKey = sPath.split(/[']/)[1];
|
|
253
|
+
oSelectControl.setSelectedKey(sKey);
|
|
254
|
+
setTimeout(function(){
|
|
255
|
+
this._initializeVisibleLinks();
|
|
256
|
+
}.bind(this));
|
|
257
|
+
this._loadFileShareRootFolder(oSelectControl.getSelectedKey());
|
|
258
|
+
}
|
|
259
|
+
}.bind(this)
|
|
260
|
+
},
|
|
243
261
|
template: new sap.ui.core.Item({
|
|
244
262
|
key: "{FileShare}",
|
|
245
263
|
text: {
|
|
@@ -298,9 +316,10 @@ sap.ui.define([
|
|
|
298
316
|
};
|
|
299
317
|
|
|
300
318
|
CloudFilePicker.prototype._initializeVisibleLinks = function () {
|
|
319
|
+
var sCurrentFileShare = oSelectControl.getSelectedItem() ? oSelectControl.getSelectedItem().getText() : '';
|
|
301
320
|
var oRoot = {
|
|
302
321
|
fileShareItemId: "Root",
|
|
303
|
-
title:
|
|
322
|
+
title: sCurrentFileShare
|
|
304
323
|
};
|
|
305
324
|
aVisibleLinks = [oRoot];
|
|
306
325
|
oBreadcrumbLinkControl.setCurrentLocationText(oRoot.title);
|
|
@@ -310,16 +329,17 @@ sap.ui.define([
|
|
|
310
329
|
CloudFilePicker.prototype._createListContent = function () {
|
|
311
330
|
oListControl = new List({
|
|
312
331
|
mode: mLibrary.ListMode.SingleSelectMaster,
|
|
313
|
-
noDataText:
|
|
332
|
+
noDataText: " ",
|
|
314
333
|
select: function (oControlEvent) {
|
|
315
334
|
var oSelectedItem = oControlEvent.getParameters().listItem;
|
|
316
335
|
var oContext = oSelectedItem.getBindingContext();
|
|
317
336
|
var bIsFolder = oContext.getObject("FileShareItemKind") === "folder";
|
|
318
|
-
|
|
337
|
+
oListControl.setBusyIndicatorDelay(0);
|
|
338
|
+
oListControl.setNoDataText(" ");
|
|
319
339
|
if (bIsFolder) {
|
|
320
340
|
var oSelectedFolderInfo = this._createSelectionParameter(oSelectedItem);
|
|
321
341
|
var sFileShareItemId = oSelectedFolderInfo.getFileShareItemId();
|
|
322
|
-
oSelectedFolderInfo.path = oContext.getCanonicalPath()
|
|
342
|
+
oSelectedFolderInfo.path = oContext.getCanonicalPath();
|
|
323
343
|
oNavigationMap.set(sFileShareItemId, oSelectedFolderInfo);
|
|
324
344
|
var oNewContext = oContext
|
|
325
345
|
.getModel()
|
|
@@ -332,15 +352,37 @@ sap.ui.define([
|
|
|
332
352
|
this._updateBreadcrumbLinks();
|
|
333
353
|
oListControl.setBindingContext(oNewContext);
|
|
334
354
|
} else {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
355
|
+
if (oConfirmationButton.getEnabled()) {
|
|
356
|
+
var sFieldValue = oContext.getProperty("FileShareItemName");
|
|
357
|
+
oFileNameControl.setValue(sFieldValue);
|
|
358
|
+
}
|
|
338
359
|
}
|
|
339
|
-
}.bind(this)
|
|
360
|
+
}.bind(this),
|
|
361
|
+
updateFinished: function (oEvent) {
|
|
362
|
+
if (!oListControl.getBusy()) {
|
|
363
|
+
var sResolvedPath = oEvent.getSource().getBinding("items").getResolvedPath(), aCurrentPaths = sResolvedPath.split(/[(,=)]/), sCurrentParentFileShareItem;
|
|
364
|
+
if (aCurrentPaths && aCurrentPaths.length && aCurrentPaths.indexOf("FileShareItem") > -1) {
|
|
365
|
+
sCurrentParentFileShareItem = aCurrentPaths[aCurrentPaths.indexOf("FileShareItem") + 1].replace(/[']+/g, '');
|
|
366
|
+
}
|
|
367
|
+
var oCurrentParentData = oNavigationMap.get(sCurrentParentFileShareItem);
|
|
368
|
+
if (oCurrentParentData && Object.keys(oCurrentParentData).length !== 0) {
|
|
369
|
+
this._setConfirmationButtonEnabled(oCurrentParentData.getProperty("isDocumentCreationAllowed"));
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}.bind(this)
|
|
340
373
|
});
|
|
341
374
|
|
|
342
375
|
oListControl.bindItems({
|
|
343
|
-
path: "",
|
|
376
|
+
path: "_Children",
|
|
377
|
+
parameters : {
|
|
378
|
+
$$operationMode : 'Server'
|
|
379
|
+
},
|
|
380
|
+
events: {
|
|
381
|
+
dataReceived: function() {
|
|
382
|
+
oListControl.setNoDataText("");
|
|
383
|
+
this.setBusy(false);
|
|
384
|
+
}.bind(this)
|
|
385
|
+
},
|
|
344
386
|
template: new StandardListItem({
|
|
345
387
|
title: "{FileShareItemName}",
|
|
346
388
|
icon: {
|
|
@@ -395,9 +437,14 @@ sap.ui.define([
|
|
|
395
437
|
for (var sKey in aRemovedLinks) {
|
|
396
438
|
oNavigationMap.delete(aRemovedLinks[sKey].fileShareItemId);
|
|
397
439
|
}
|
|
440
|
+
this._setConfirmationButtonEnabled(null, oSelectedFolderInfo);
|
|
398
441
|
oNewContext = this.getModel().createBindingContext(oSelectedFolderInfo.path);
|
|
399
442
|
oListControl.setBindingContext(oNewContext);
|
|
400
443
|
} else {
|
|
444
|
+
oSelectedFolderInfo = oNavigationMap.get(
|
|
445
|
+
aVisibleLinks[aVisibleLinks.length - 1].fileShareItemId
|
|
446
|
+
);
|
|
447
|
+
this._setConfirmationButtonEnabled(null, oSelectedFolderInfo);
|
|
401
448
|
this._loadFileShareRootFolder(oSelectControl.getSelectedKey());
|
|
402
449
|
}
|
|
403
450
|
}.bind(this)
|
|
@@ -425,7 +472,12 @@ sap.ui.define([
|
|
|
425
472
|
CloudFilePicker.prototype._loadFileShareRootFolder = function (sFileShareKey) {
|
|
426
473
|
// update binding context for root
|
|
427
474
|
oNavigationMap.clear();
|
|
428
|
-
var sPath = "/FileShares(" + "'" + sFileShareKey + "'" + ")/_Root
|
|
475
|
+
var sPath = "/FileShares(" + "'" + sFileShareKey + "'" + ")/_Root";
|
|
476
|
+
var oContextBinding = this.getModel().bindContext(sPath);
|
|
477
|
+
oContextBinding.requestObject().then(function (oValue) {
|
|
478
|
+
var oSelectedFolderInfo = this._createSelectionParameter(oValue, oContextBinding.getBoundContext(oValue));
|
|
479
|
+
this._setConfirmationButtonEnabled(null, oSelectedFolderInfo);
|
|
480
|
+
}.bind(this));
|
|
429
481
|
var oContext = this.getModel().createBindingContext(sPath);
|
|
430
482
|
oListControl.setBindingContext(oContext);
|
|
431
483
|
};
|
|
@@ -434,6 +486,7 @@ sap.ui.define([
|
|
|
434
486
|
oConfirmationButton = new Button({
|
|
435
487
|
text: this.getConfirmButtonText(),
|
|
436
488
|
type: ButtonType.Emphasized,
|
|
489
|
+
enabled: false,
|
|
437
490
|
press: function () {
|
|
438
491
|
var sCurrentItemInInput = oFileNameControl.getValue();
|
|
439
492
|
if ((this.getFilePickerMode() === FilePickerModes.FileOnly) || sCurrentItemInInput) {
|
|
@@ -465,13 +518,19 @@ sap.ui.define([
|
|
|
465
518
|
this._setConfirmationButtonEnabled(false);
|
|
466
519
|
};
|
|
467
520
|
|
|
468
|
-
CloudFilePicker.prototype._setConfirmationButtonEnabled = function (bEnabled) {
|
|
521
|
+
CloudFilePicker.prototype._setConfirmationButtonEnabled = function (bEnabled, oSelectedFolderInfo) {
|
|
522
|
+
// Document creation not checked, considered only for export scenarios
|
|
469
523
|
if (this.getFilePickerMode() === FilePickerModes.FileOnly) {
|
|
470
524
|
oConfirmationButton.setEnabled(bEnabled);
|
|
471
|
-
} else if (
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
525
|
+
} else if (oSelectedFolderInfo && oSelectedFolderInfo.getIsDocumentCreationAllowed()) {
|
|
526
|
+
if (this.getFileNameMandatory()) {
|
|
527
|
+
var bIsFileNameExist = oFileNameControl.getValue() !== '';
|
|
528
|
+
bIsFileNameExist || bEnabled ? oConfirmationButton.setEnabled(true) : oConfirmationButton.setEnabled(false);
|
|
529
|
+
} else {
|
|
530
|
+
oConfirmationButton.setEnabled(true);
|
|
531
|
+
}
|
|
532
|
+
} else {
|
|
533
|
+
oConfirmationButton.setEnabled(bEnabled ? bEnabled : false);
|
|
475
534
|
}
|
|
476
535
|
};
|
|
477
536
|
|
|
@@ -542,10 +601,14 @@ sap.ui.define([
|
|
|
542
601
|
}.bind(this));
|
|
543
602
|
};
|
|
544
603
|
|
|
545
|
-
CloudFilePicker.prototype._createSelectionParameter = function (oSelectedItem) {
|
|
604
|
+
CloudFilePicker.prototype._createSelectionParameter = function (oSelectedItem, oContextBinding) {
|
|
546
605
|
var oCloudFileInfo = new CloudFileInfo();
|
|
547
|
-
var oContext
|
|
548
|
-
|
|
606
|
+
var oContext;
|
|
607
|
+
if (!oContextBinding) {
|
|
608
|
+
oContext = oSelectedItem.getBindingContext();
|
|
609
|
+
} else {
|
|
610
|
+
oContext = oContextBinding;
|
|
611
|
+
}
|
|
549
612
|
oCloudFileInfo.setFileShareId(oContext.getObject("FileShare"));
|
|
550
613
|
oCloudFileInfo.setFileShareItemId(oContext.getObject("FileShareItem"));
|
|
551
614
|
oCloudFileInfo.setParentFileShareItemId(
|
|
@@ -579,6 +642,9 @@ sap.ui.define([
|
|
|
579
642
|
oCloudFileInfo.setFileShareItemContentLink(
|
|
580
643
|
oContext.getObject("FileShareItemContentLink")
|
|
581
644
|
);
|
|
645
|
+
oCloudFileInfo.setIsDocumentCreationAllowed(
|
|
646
|
+
oContext.getObject("isDocumentCreationAllowed")
|
|
647
|
+
);
|
|
582
648
|
|
|
583
649
|
return oCloudFileInfo;
|
|
584
650
|
};
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"sap.suite.ui.commons.TargetFilterMeasureColumn",
|
|
186
186
|
"sap.suite.ui.commons.AriaProperties"
|
|
187
187
|
],
|
|
188
|
-
version: "1.102.
|
|
188
|
+
version: "1.102.4",
|
|
189
189
|
extensions: {
|
|
190
190
|
flChangeHandlers: {
|
|
191
191
|
"sap.suite.ui.commons.Timeline": "sap/suite/ui/commons/flexibility/Timeline"
|