@sapui5/sap.suite.ui.generic.template 1.120.39 → 1.120.40
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/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/Canvas/behaviour.js +11 -0
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +28 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This class contains behaviour information about the Canvas floorplan which can be used by the framework even before an instance of the Canvas has been created
|
|
2
|
+
// Canvas does not have a specific placeholder pattern like LR/OP, so we display the standard placeholder.
|
|
3
|
+
// The routing helper calls the Fiori-defined placeholder for all floor plans; therefore, we introduce the code below with an empty object
|
|
4
|
+
// to prevent a 404 error.
|
|
5
|
+
// In the future, if we introduce an extension to display a placeholder, this code can be reused for that purpose.
|
|
6
|
+
|
|
7
|
+
sap.ui.define(["sap/ui/core/mvc/XMLView"], function(XMLView){
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
return {};
|
|
11
|
+
});
|
|
@@ -327,7 +327,9 @@ sap.ui.define([
|
|
|
327
327
|
};
|
|
328
328
|
|
|
329
329
|
return new Promise(function(fnResolve) {
|
|
330
|
-
|
|
330
|
+
fnWaitUntilSmartTableReceivesBindingContext(oSmartTable).then(function () {
|
|
331
|
+
return fnFetchDefaultValues(oSmartTable);
|
|
332
|
+
}).then(function (oDefaultValues) {
|
|
331
333
|
// In cases of user input then create a new empty row
|
|
332
334
|
if (bIsOnUserInput) {
|
|
333
335
|
createInactiveLineItem(oItemsBinding, oDefaultValues, true);
|
|
@@ -456,6 +458,31 @@ sap.ui.define([
|
|
|
456
458
|
}
|
|
457
459
|
});
|
|
458
460
|
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* If the smart table has the binding context, it immediately returns
|
|
464
|
+
* Otherwise, it waits until the smart table receives a binding context and returns.
|
|
465
|
+
* @param {*} oSmartTable
|
|
466
|
+
*/
|
|
467
|
+
function fnWaitUntilSmartTableReceivesBindingContext(oSmartTable) {
|
|
468
|
+
if (oSmartTable.getBindingContext()) {
|
|
469
|
+
return Promise.resolve();
|
|
470
|
+
}
|
|
471
|
+
return new Promise(function(fnResolve) {
|
|
472
|
+
function fnModelContextChangeHandler (oEvent) {
|
|
473
|
+
// If binding context is not received yet, just ignore it (return the function)
|
|
474
|
+
// and wait for the next "modelContextChange" event
|
|
475
|
+
if (!oSmartTable.getBindingContext()) {
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
// Once binding context is received, detach the event and resolve the promise
|
|
479
|
+
oSmartTable.detachEvent("modelContextChange", fnModelContextChangeHandler);
|
|
480
|
+
fnResolve();
|
|
481
|
+
}
|
|
482
|
+
oSmartTable.attachEvent("modelContextChange", fnModelContextChangeHandler);
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
|
|
459
486
|
//Based on the table type, this method invokes the appropriate method to update table rows
|
|
460
487
|
function fnUpdateTableRows(oTable) {
|
|
461
488
|
if (controlHelper.isMTable(oTable)) {
|
|
@@ -213,7 +213,12 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
"sap.uxap.ObjectPageSubSection": {
|
|
216
|
-
actions: ["rename", "remove", "reveal"]
|
|
216
|
+
actions: ["rename", "remove", "reveal"],
|
|
217
|
+
aggregations: {
|
|
218
|
+
actions: {
|
|
219
|
+
actions: ["remove"]
|
|
220
|
+
}
|
|
221
|
+
}
|
|
217
222
|
},
|
|
218
223
|
"sap.ui.comp.smartform.SmartForm": { // not documented in allow list, but checked by RTA OPA test
|
|
219
224
|
actions: ["localReset"],
|
|
@@ -939,7 +939,7 @@ sap.ui.define([
|
|
|
939
939
|
* @extends sap.ui.core.UIComponent
|
|
940
940
|
* @abstract
|
|
941
941
|
* @author SAP SE
|
|
942
|
-
* @version 1.120.
|
|
942
|
+
* @version 1.120.40
|
|
943
943
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
944
944
|
*/
|
|
945
945
|
return UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -3094,7 +3094,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
3094
3094
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
3095
3095
|
* @public
|
|
3096
3096
|
* @extends sap.ui.base.Object
|
|
3097
|
-
* @version 1.120.
|
|
3097
|
+
* @version 1.120.40
|
|
3098
3098
|
* @since 1.30.0
|
|
3099
3099
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
3100
3100
|
*/
|