@sapui5/sap.suite.ui.generic.template 1.132.0 → 1.133.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 +2 -2
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +0 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroBar.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +7 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroDonut.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroLine.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/KpiTagController.js +3 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +3 -0
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/AnnotationHelperSmartList.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +13 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +11 -8
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +82 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +1 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +55 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +26 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +26 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +27 -7
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +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/controls/DynamicPage.designtime.js +74 -17
- package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +22 -11
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +142 -38
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +43 -19
- package/src/sap/suite/ui/generic/template/designtime/floorplans/AnalyticalListPage.designtime.js +18 -18
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ListReport.designtime.js +19 -16
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ObjectPage.designtime.js +10 -7
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +32 -44
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +47 -2
- package/src/sap/suite/ui/generic/template/fragments/DeterminingButton.fragment.xml +18 -20
- package/src/sap/suite/ui/generic/template/fragments/DraftAdminDataPopover.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +4 -4
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +4 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +3 -1
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +15 -19
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +3 -0
- package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js +2 -3
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +78 -22
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CRUDActionHandler.js +12 -3
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +13 -1
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +41 -36
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +6 -0
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/RetryAfterHandler.js +2 -3
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +3 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +3 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +5 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_sappsd.properties +11 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saptrc.properties +9 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +4 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +4 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +3 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +3 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +27 -11
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +92 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +3 -0
- package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +27 -1
|
@@ -56,7 +56,6 @@ sap.ui.define([
|
|
|
56
56
|
var mControlInfo = {};
|
|
57
57
|
var aViews = [];
|
|
58
58
|
// var oLogger = new FeLogger("designtime.utils.designTimeHelper").getLogger();
|
|
59
|
-
var RTA_MODE_URL_PARAM_KEY = "fiori-tools-rta-mode";
|
|
60
59
|
var oMutationObserver;
|
|
61
60
|
/**
|
|
62
61
|
* get effective designtime for all controls on current active view
|
|
@@ -127,15 +126,6 @@ sap.ui.define([
|
|
|
127
126
|
function fnStopMutationObserver() {
|
|
128
127
|
oMutationObserver && oMutationObserver.disconnect();
|
|
129
128
|
}
|
|
130
|
-
/**
|
|
131
|
-
* Parses the URL parameters and returns the value of RTA mode URL parameter (fiori-tools-rta-mode)
|
|
132
|
-
* @returns {string | null} A promise which returns a value of RTA mode
|
|
133
|
-
*/
|
|
134
|
-
function getRtaModeValue() {
|
|
135
|
-
const oUrlParams = new URLSearchParams(window.location.search);
|
|
136
|
-
const sRtaModeValue = oUrlParams.get(RTA_MODE_URL_PARAM_KEY);
|
|
137
|
-
return sRtaModeValue;
|
|
138
|
-
}
|
|
139
129
|
|
|
140
130
|
/*
|
|
141
131
|
* Returns the branch of the control tree as an array ordered from bottom to top, if the control is relevant (i.e. direct part of a template view). I.e. the first entry of the array is the
|
|
@@ -334,7 +324,7 @@ sap.ui.define([
|
|
|
334
324
|
return oResult;
|
|
335
325
|
}
|
|
336
326
|
|
|
337
|
-
function getViewDesignTime(mAllow
|
|
327
|
+
function getViewDesignTime(mAllow) {
|
|
338
328
|
return loadBaseDesigntime().then(function () {
|
|
339
329
|
|
|
340
330
|
// provide propagation function for all controls contained allowing only what we want to allow
|
|
@@ -347,32 +337,35 @@ sap.ui.define([
|
|
|
347
337
|
var oReducedDesigntime = oElement.getMetadata().getElementName && getReducedDesignTime(oElement, mAllow[oElement.getMetadata().getElementName()]);
|
|
348
338
|
|
|
349
339
|
var oCustomDesigntime = {};
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
340
|
+
switch (oElement.getMetadata().getElementName()) {
|
|
341
|
+
case "sap.uxap.ObjectPageLayout":
|
|
342
|
+
oCustomDesigntime = ObjectPageLayoutDesigntimeHelper.getDesigntime(
|
|
343
|
+
oElement
|
|
344
|
+
);
|
|
345
|
+
break;
|
|
346
|
+
case "sap.ui.comp.smartfilterbar.SmartFilterBar":
|
|
347
|
+
case "sap.suite.ui.generic.template.AnalyticalListPage.control.SmartFilterBarExt":
|
|
348
|
+
case "sap.suite.ui.generic.template.AnalyticalListPage.control.visualfilterbar.SmartVisualFilterBar":
|
|
349
|
+
oCustomDesigntime = SmartFilterBarDesigntimeHelper.getDesigntime(
|
|
350
|
+
oElement
|
|
351
|
+
);
|
|
352
|
+
break;
|
|
353
|
+
case "sap.ui.comp.smarttable.SmartTable":
|
|
354
|
+
case "sap.ui.table.Table":
|
|
355
|
+
case "sap.m.Table":
|
|
356
|
+
case "sap.ui.table.AnalyticalTable":
|
|
357
|
+
oCustomDesigntime = SmartTableDesigntimeHelper.getDesigntime(
|
|
358
|
+
oElement
|
|
359
|
+
);
|
|
360
|
+
break;
|
|
361
|
+
case "sap.f.DynamicPage":
|
|
362
|
+
oCustomDesigntime = DynamicPageDesigntimeHelper.getDesigntime(
|
|
363
|
+
oElement
|
|
364
|
+
);
|
|
365
|
+
break;
|
|
366
|
+
default:
|
|
367
|
+
break;
|
|
368
|
+
|
|
376
369
|
}
|
|
377
370
|
return merge(oReducedDesigntime, oCustomDesigntime);
|
|
378
371
|
}
|
|
@@ -418,16 +411,11 @@ sap.ui.define([
|
|
|
418
411
|
}
|
|
419
412
|
});
|
|
420
413
|
}
|
|
421
|
-
|
|
422
|
-
True: "true",
|
|
423
|
-
ForAdaptation: "forAdaptation"
|
|
424
|
-
};
|
|
414
|
+
|
|
425
415
|
|
|
426
416
|
return {
|
|
427
417
|
getMergedAllowList: deepMergeWithArray,
|
|
428
418
|
getViewDesignTime: getViewDesignTime,
|
|
429
|
-
|
|
430
|
-
stopMutationObserver: fnStopMutationObserver,
|
|
431
|
-
FioriToolsRtaMode
|
|
419
|
+
stopMutationObserver: fnStopMutationObserver
|
|
432
420
|
};
|
|
433
421
|
});
|
|
@@ -353,6 +353,7 @@ sap.ui.define([
|
|
|
353
353
|
* @property {DesigntimeSetting[]} [writeObject] - An array of DesigntimeSetting objects.
|
|
354
354
|
* @property {string} [writeObjectFor] - The value of the setting for which the Object should be constructed.
|
|
355
355
|
* @property {boolean} [skipChange] - Indicates if the change should be skipped.
|
|
356
|
+
* @property {boolean} [keyUser] - Indicates if the setting is allowed for key user.
|
|
356
357
|
|
|
357
358
|
* @typedef {string | boolean | string[] } PropertyValue
|
|
358
359
|
|
|
@@ -455,7 +456,16 @@ sap.ui.define([
|
|
|
455
456
|
return oSupportedGlobalManifestSettings;
|
|
456
457
|
}
|
|
457
458
|
|
|
458
|
-
|
|
459
|
+
/**
|
|
460
|
+
* Retrieves the allowed designtime settings for the given control based on the floorplan component name.
|
|
461
|
+
* If the control is not restricted to a specific component, all settings are returned.
|
|
462
|
+
* If the control is restricted to a specific component, only the settings for that component are returned.
|
|
463
|
+
* @param {sap.ui.core.Control} oControl - The control.
|
|
464
|
+
* @param {DesigntimeSetting[]} aDesigntimeSettings - The array of designtime settings.
|
|
465
|
+
* @returns {DesigntimeSetting[]} - The allowed designtime settings.
|
|
466
|
+
*/
|
|
467
|
+
|
|
468
|
+
function filterDesigntimeSettingsByFloorPlan(oControl, aDesigntimeSettings) {
|
|
459
469
|
const sComponentName = getOwnerComponentFor(oControl).getMetadata().getComponentName();
|
|
460
470
|
return aDesigntimeSettings.filter(oSetting => !oSetting.restrictedTo || oSetting.restrictedTo.includes(sComponentName));
|
|
461
471
|
}
|
|
@@ -466,6 +476,38 @@ sap.ui.define([
|
|
|
466
476
|
getChanges = testableHelper.testableStatic(getChanges, "getChanges");
|
|
467
477
|
getChangeStructure = testableHelper.testableStatic(getChangeStructure, "getChangeStructure");
|
|
468
478
|
|
|
479
|
+
/**
|
|
480
|
+
* Parses the URL parameters and returns the value of RTA mode URL parameter (fiori-tools-rta-mode)
|
|
481
|
+
* @returns {string | null} A promise which returns a value of RTA mode
|
|
482
|
+
*/
|
|
483
|
+
function getRtaModeValue() {
|
|
484
|
+
var RTA_MODE_URL_PARAM_KEY = "fiori-tools-rta-mode";
|
|
485
|
+
|
|
486
|
+
const oUrlParams = new URLSearchParams(window.location.search);
|
|
487
|
+
const sRtaModeValue = oUrlParams.get(RTA_MODE_URL_PARAM_KEY);
|
|
488
|
+
return sRtaModeValue;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
const FioriToolsRtaMode = {
|
|
492
|
+
True: "true",
|
|
493
|
+
ForAdaptation: "forAdaptation"
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Returns the allowed designtime settings based on the adaptation mode.
|
|
498
|
+
* If the adaptation mode is not set, only key user settings are returned.
|
|
499
|
+
* If the adaptation mode is set, all settings are returned.
|
|
500
|
+
*
|
|
501
|
+
* @param {DesigntimeSetting[]} aDesigntimeSettings
|
|
502
|
+
* @returns {DesigntimeSetting[]}
|
|
503
|
+
*/
|
|
504
|
+
function getAllowedDesigntimeSettingsBasedOnAdaptationMode(aDesigntimeSettings) {
|
|
505
|
+
if (!getRtaModeValue()) {
|
|
506
|
+
return aDesigntimeSettings.filter(oSetting => oSetting.keyUser);
|
|
507
|
+
}
|
|
508
|
+
return aDesigntimeSettings;
|
|
509
|
+
}
|
|
510
|
+
|
|
469
511
|
return {
|
|
470
512
|
openAdaptionDialog: fnOpenAdaptionDialog,
|
|
471
513
|
getSettings,
|
|
@@ -476,6 +518,9 @@ sap.ui.define([
|
|
|
476
518
|
SettingScope,
|
|
477
519
|
ChangeType,
|
|
478
520
|
getSupportedGlobalManifestSettings,
|
|
479
|
-
|
|
521
|
+
filterDesigntimeSettingsByFloorPlan,
|
|
522
|
+
getRtaModeValue,
|
|
523
|
+
FioriToolsRtaMode,
|
|
524
|
+
getAllowedDesigntimeSettingsBasedOnAdaptationMode
|
|
480
525
|
};
|
|
481
526
|
});
|
|
@@ -2,26 +2,24 @@
|
|
|
2
2
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
3
|
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper'}">
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type="{path:'dataField>', formatter: 'AH.buildExpressionForButtonCriticality'}"
|
|
10
|
-
text="{= ${path: 'dataField>Label', formatter: 'AHModel.format'}}"
|
|
11
|
-
visible="{parts: [{path: 'parameter>/treeNode'}, {path: 'action>sap:applicable-path'}, {path: 'dataField>'}], formatter: 'AH.actionControlDetermining'}"
|
|
5
|
+
<template:with path="dataField>Action" helper="AHModel.gotoFunctionImport" var="action">
|
|
6
|
+
<Button id="{parts: [{path: 'dataField>'}, {path: 'facet>'}], formatter: 'AH.getStableIdPartForDatafieldActionButton'}::Determining"
|
|
7
|
+
type="{path:'dataField>', formatter: 'AH.buildExpressionForButtonCriticality'}" text="{= ${path: 'dataField>Label', formatter: 'AHModel.format'}}"
|
|
8
|
+
visible="{parts: [{path: 'parameter>/treeNode'}, {path: 'action>sap:applicable-path'}, {path: 'dataField>'}], formatter: 'AH.actionControlDetermining'}"
|
|
12
9
|
press="{parts: [{path: 'parameter>/settings'}, {path: 'dataField>'}, {path: 'parameter>/manifest'}, {value: 'true'}], formatter: 'AH.getAnnotatedActionPress'}">
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
<customData>
|
|
11
|
+
<core:CustomData key="Action" value="{path: 'dataField>Action', formatter: 'AHModel.format'}" />
|
|
12
|
+
<core:CustomData key="Label" value="{path: 'dataField>Label', formatter: 'AHModel.format'}" />
|
|
13
|
+
<core:CustomData key="ActionType" value="determining" />
|
|
14
|
+
<template:if test="{= ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation'}">
|
|
15
|
+
<core:CustomData key="SemanticObject" value="{path: 'dataField>SemanticObject', formatter: 'AHModel.format'}" />
|
|
16
|
+
<core:CustomData key="RequiresContext" value="{path: 'dataField>RequiresContext', formatter: 'AHModel.format'}" />
|
|
17
|
+
</template:if>
|
|
18
|
+
<template:with path="dataField>Action" helper="AHModel.gotoFunctionImport" var="action">
|
|
19
|
+
<core:CustomData key="ActionFor" value="{action>sap:action-for}" />
|
|
20
|
+
</template:with>
|
|
21
|
+
</customData>
|
|
22
|
+
</Button>
|
|
23
|
+
</template:with>
|
|
26
24
|
|
|
27
25
|
</core:FragmentDefinition>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
ariaLabelledBy="objectNoDataText unsavedPopoverText lockedPopoverText objectChangedText"
|
|
5
5
|
contentWidth="15.625rem"
|
|
6
6
|
verticalScrolling="false"
|
|
7
|
+
placement="Auto"
|
|
7
8
|
class="sapSmartTemplatesListReportPopover sapUiContentPadding">
|
|
8
9
|
<endButton>
|
|
9
10
|
<Button icon="sap-icon://decline" tooltip="{i18n>CLOSE}" press="closeDraftAdminPopover" />
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<smartField:SmartField value="{path: 'dataField>Value', formatter: 'AHModel.simplePath'}" editable="false" contextEditable="false" fetchValueListReadOnly="false"
|
|
28
28
|
ariaLabelledBy="{columnId>id}">
|
|
29
29
|
<smartField:configuration>
|
|
30
|
-
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: '
|
|
30
|
+
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
|
|
31
31
|
</smartField:configuration>
|
|
32
32
|
<template:if test="{= ${dataField>Criticality}}">
|
|
33
33
|
<smartField:controlProposal>
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
<core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
|
|
56
56
|
</smartField:customData>
|
|
57
57
|
<smartField:configuration>
|
|
58
|
-
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {
|
|
58
|
+
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
|
|
59
59
|
</smartField:configuration>
|
|
60
60
|
</smartField:SmartField>
|
|
61
61
|
</template:elseif>
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<RatingIndicator
|
|
85
85
|
enabled="true" editable="false" maxValue="{path: 'dataFieldTarget>TargetValue', formatter: 'AHModel.format'}"
|
|
86
86
|
binding="{= ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/') > -1 ? '{' + ${path: 'dataField>Target/AnnotationPath'}.slice(0, ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/')) + '}' : null}"
|
|
87
|
-
value="{path: 'dataFieldTarget>Value', formatter: 'AHModel.format'}"
|
|
87
|
+
value="{path: 'dataFieldTarget>Value', formatter: 'AHModel.format'}" iconSize="16px" />
|
|
88
88
|
</template:with>
|
|
89
89
|
</template:elseif>
|
|
90
90
|
<template:elseif test="{= ${dataFieldTarget>Visualization/EnumMember} === 'com.sap.vocabularies.UI.v1.VisualizationType/Progress'}">
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
state="{path:'dataFieldTarget>', formatter: 'AH.buildExpressionForProgressIndicatorCriticality'}">
|
|
100
100
|
<customData>
|
|
101
101
|
<core:CustomData key="Target" value="{= ${path: 'dataFieldTarget>TargetValue', formatter: 'AHModel.format'} }" />
|
|
102
|
-
<core:CustomData key="UoM" value="{= ${path: '
|
|
102
|
+
<core:CustomData key="UoM" value="{= ${path: 'value>Org.OData.Measures.V1.Unit', formatter: 'AHModel.format'} }" />
|
|
103
103
|
</customData>
|
|
104
104
|
</ProgressIndicator>
|
|
105
105
|
</template:with>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</sfi:semanticObjectController>
|
|
19
19
|
<sfi:configuration>
|
|
20
20
|
<sfi:Configuration
|
|
21
|
-
displayBehaviour="{parts: [{path: 'dataPoint>'}, {path: '
|
|
21
|
+
displayBehaviour="{parts: [{path: 'dataPoint>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}"/>
|
|
22
22
|
</sfi:configuration>
|
|
23
23
|
<template:if test="{= ${dataPoint>Criticality} }">
|
|
24
24
|
<sfi:controlProposal>
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath">
|
|
78
78
|
<sfi:configuration>
|
|
79
79
|
<sfi:Configuration
|
|
80
|
-
displayBehaviour="{parts: [{path: 'dataField>'}, {
|
|
80
|
+
displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
|
|
81
81
|
</sfi:configuration>
|
|
82
82
|
<sfi:customData>
|
|
83
83
|
<core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
</sfi:semanticObjectController>
|
|
114
114
|
<sfi:configuration>
|
|
115
115
|
<sfi:Configuration
|
|
116
|
-
displayBehaviour="{parts: [{path: 'dataField>'}, {path: '
|
|
116
|
+
displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}"/>
|
|
117
117
|
</sfi:configuration>
|
|
118
118
|
<template:if test="{= ${dataField>Criticality} }">
|
|
119
119
|
<sfi:controlProposal>
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
xmlns="sap.m"
|
|
3
3
|
xmlns:core="sap.ui.core">
|
|
4
4
|
<MessagePopover groupItems="true" items="{msg>/}" activeTitlePress="titlePressed" beforeOpen="beforeOpen" afterClose="afterClose" >
|
|
5
|
-
<MessageItem
|
|
5
|
+
<MessageItem type="{msg>type}" title="{msg>message}"
|
|
6
6
|
subtitle="{parts:[{path: 'msg>id'}, {path: 'msg>controlIds'}, {path: 'msg>additionalText'}, {path: 'helper>/isPopoverOpen'}, {path: 'helper>/heartBeat'}], formatter: '.getSubtitle'}"
|
|
7
|
+
description="{parts:[{path: 'msg>id'}, {path: 'msg>controlIds'}, {path: 'msg>description'}, {path: 'helper>/isPopoverOpen'}, {path: 'helper>/heartBeat'}], formatter: '.getDescription'}"
|
|
7
8
|
longtextUrl="{msg>descriptionUrl}"
|
|
8
9
|
markupDescription="{helper>/isAIErrorExplanationEnabled}"
|
|
9
10
|
activeTitle="{parts:[{path: 'msg>id'}, {path: 'msg>controlIds'}, {path: 'helper>/isPopoverOpen'}], formatter: '.isPositionable'}"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<smartField:SmartField value="{path: 'dataField>Value', formatter: 'AHModel.simplePath'}" editable="{= ${parameter>/treeNode/level} > 0 ? '{ui>/editable}' : 'false'}" contextEditable="{= ${parameter>/treeNode/level} > 0}" fetchValueListReadOnly="{= ${parameter>/treeNode/level} > 0}"
|
|
13
13
|
ariaLabelledBy="{columnId>id}">
|
|
14
14
|
<smartField:configuration>
|
|
15
|
-
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: '
|
|
15
|
+
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
|
|
16
16
|
</smartField:configuration>
|
|
17
17
|
<template:if test="{= ${dataField>Criticality}}">
|
|
18
18
|
<smartField:controlProposal>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
</smartField:customData>
|
|
129
129
|
<smartField:configuration>
|
|
130
130
|
<smartField:Configuration
|
|
131
|
-
displayBehaviour="{parts: [{path: 'dataField>'}, {
|
|
131
|
+
displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
|
|
132
132
|
</smartField:configuration>
|
|
133
133
|
</smartField:SmartField>
|
|
134
134
|
</template:elseif>
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
</smartField:customData>
|
|
124
124
|
<smartField:configuration>
|
|
125
125
|
<smartField:Configuration
|
|
126
|
-
displayBehaviour="{parts: [{path: 'dataField>'}, {
|
|
126
|
+
displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
|
|
127
127
|
</smartField:configuration>
|
|
128
128
|
</smartField:SmartField>
|
|
129
129
|
</table:template>
|
|
@@ -105,8 +105,10 @@ sap.ui.define([
|
|
|
105
105
|
oControl.attachAfterVariantInitialise(function() {
|
|
106
106
|
//set currentVariantId only when sVariantId is not standard (as it might be overriding existing
|
|
107
107
|
//different currentVariantId) or smartTable's (oControl) currentVariantId is not equal to sVariantId.
|
|
108
|
-
if (sVariantId !== '*standard*'
|
|
109
|
-
oControl.
|
|
108
|
+
if (sVariantId !== '*standard*') {
|
|
109
|
+
if (oControl.getCurrentVariantId && oControl.getCurrentVariantId() !== sVariantId) {
|
|
110
|
+
oControl.setCurrentVariantId(sVariantId);
|
|
111
|
+
}
|
|
110
112
|
oSmartVariantManagement.setModified(false);
|
|
111
113
|
}
|
|
112
114
|
});
|
|
@@ -204,10 +204,12 @@ sap.ui.define([
|
|
|
204
204
|
}
|
|
205
205
|
var sRet = aFiltersForProperty.map(function (oFilter) {
|
|
206
206
|
var bCaseSensitive = true;
|
|
207
|
+
// Define the date range operations that need date formatting
|
|
208
|
+
var dateRangeOperations = ["DATE", "DATERANGE", "DATETIMERANGE", "FROM", "TO"];
|
|
207
209
|
if (oFilter.bCaseSensitive === undefined) {
|
|
208
210
|
bCaseSensitive = true;
|
|
209
211
|
}
|
|
210
|
-
if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation
|
|
212
|
+
if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo && !dateRangeOperations.includes(oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation)) {
|
|
211
213
|
if (!DynamicDateUtil.getAllOptionKeys().includes(oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation)) {
|
|
212
214
|
oParams.bIsStatic = true;
|
|
213
215
|
return;
|
|
@@ -353,20 +353,20 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
353
353
|
return false;
|
|
354
354
|
},
|
|
355
355
|
|
|
356
|
-
getValueListReadOnly: function (oInterface,
|
|
356
|
+
getValueListReadOnly: function (oInterface, vEntityType, oDataField) {
|
|
357
357
|
var oMetaModel = oInterface.getInterface(1).getModel();
|
|
358
358
|
var sPath = oInterface.getInterface(1).getPath() + '/Value';
|
|
359
359
|
var sTargetPropertyPath = AnnotationHelperModel.resolvePath(oMetaModel.getContext(sPath));
|
|
360
|
-
var oDataFieldValue = oMetaModel.getObject(sTargetPropertyPath);
|
|
361
|
-
if (oDataFieldValue['com.sap.vocabularies.UI.v1.TextArrangement']) {
|
|
360
|
+
var oDataFieldValue = sTargetPropertyPath && oMetaModel.getObject(sTargetPropertyPath);
|
|
361
|
+
if (oDataFieldValue?.['com.sap.vocabularies.UI.v1.TextArrangement']) {
|
|
362
362
|
// case 1 - text arrangement defined at property level
|
|
363
363
|
return oDataFieldValue['com.sap.vocabularies.UI.v1.TextArrangement'].EnumMember !== 'com.sap.vocabularies.UI.v1.TextArrangementType/TextSeparate';
|
|
364
|
-
} else if (oDataFieldValue['com.sap.vocabularies.Common.v1.Text']) {
|
|
364
|
+
} else if (oDataFieldValue?.['com.sap.vocabularies.Common.v1.Text']) {
|
|
365
365
|
// case 2 - text arrangement defined for property via sap:text
|
|
366
366
|
return true;
|
|
367
367
|
} else {
|
|
368
368
|
// case 3 - text arrangement defined at entity level
|
|
369
|
-
var oEntityType = oMetaModel.getODataEntityType(
|
|
369
|
+
var oEntityType = typeof vEntityType === "object" ? vEntityType : oMetaModel.getODataEntityType(vEntityType); // vEntityType can be object or string.
|
|
370
370
|
if (oEntityType['com.sap.vocabularies.UI.v1.TextArrangement']) {
|
|
371
371
|
return oEntityType['com.sap.vocabularies.UI.v1.TextArrangement'].EnumMember !== 'com.sap.vocabularies.UI.v1.TextArrangementType/TextSeparate';
|
|
372
372
|
}
|
|
@@ -1106,7 +1106,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1106
1106
|
|
|
1107
1107
|
// builds the expression for the Rating Indicator aggregate Count
|
|
1108
1108
|
buildRatingIndicatorAggregateCountExpression: function (mValue) {
|
|
1109
|
-
return "{parts: [{path: '" + mValue
|
|
1109
|
+
return "{parts: [{path: '" + mValue?.Path + "'}], formatter: 'RuntimeFormatters.formatRatingIndicatorAggregateCount.bind($control)'}";
|
|
1110
1110
|
},
|
|
1111
1111
|
|
|
1112
1112
|
getIdForMoreBlockContent: function (oFacet) {
|
|
@@ -1264,7 +1264,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1264
1264
|
},
|
|
1265
1265
|
|
|
1266
1266
|
formatHeaderImage: function (oInterface, oHeaderInfo, sAppComponentName) {
|
|
1267
|
-
return oAnnotationHelper.formatImageOrTypeUrl(oInterface, oHeaderInfo
|
|
1267
|
+
return oAnnotationHelper.formatImageOrTypeUrl(oInterface, oHeaderInfo?.ImageUrl, oHeaderInfo?.TypeImageUrl, sAppComponentName, true);
|
|
1268
1268
|
},
|
|
1269
1269
|
|
|
1270
1270
|
getPathWithExpandFromHeader: function (oInterface, oEntitySet, sNavigationProperty, oInputImageUrl, oTypeImageUrl) {
|
|
@@ -2638,7 +2638,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2638
2638
|
getColumnListItemType: function (oListEntitySet, aSubPages, oManifest, oTreeNode, bIsDraftEnabled, sAnnotationPath) {
|
|
2639
2639
|
var bIsRoot = !oTreeNode.level; // information, whether we are on the root page
|
|
2640
2640
|
// check for special feature: navigation from list report to object page via navigationProperty
|
|
2641
|
-
var bIsListWithNavigationProperty = bIsRoot && aSubPages.some(function (oSubPage) {
|
|
2641
|
+
var bIsListWithNavigationProperty = bIsRoot && aSubPages && aSubPages.some(function (oSubPage) {
|
|
2642
2642
|
return oSubPage.navigationProperty;
|
|
2643
2643
|
});
|
|
2644
2644
|
var bAllowsNavigationInEditMode = bIsDraftEnabled || bIsRoot; // in non-draft mode forward navigation is disabled in edit mode
|
|
@@ -2944,19 +2944,13 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2944
2944
|
return sTextArrangement;
|
|
2945
2945
|
},
|
|
2946
2946
|
|
|
2947
|
-
getTextArrangementForSmartControl: function (oInterface, oField,
|
|
2947
|
+
getTextArrangementForSmartControl: function (oInterface, oField, oEntitySet) {
|
|
2948
2948
|
oInterface = oInterface.getInterface(0);
|
|
2949
|
-
var oEntityType;
|
|
2950
2949
|
var oMetaModel = oInterface.getModel();
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
oEntityType = oMetaModel.getODataEntityType(oEntitySet.entityType);
|
|
2954
|
-
} else {
|
|
2955
|
-
oEntityType = oMetaModel.getODataEntityType(refEntitySet.entityType);
|
|
2956
|
-
}
|
|
2957
|
-
|
|
2950
|
+
var oEntityType = oMetaModel.getODataEntityType(oEntitySet.entityType);
|
|
2951
|
+
|
|
2958
2952
|
var sTextArrangement = "descriptionAndId";
|
|
2959
|
-
if (oMetaModel.getODataProperty(oEntityType, oField.Value.Path)) {
|
|
2953
|
+
if (oField?.Value?.Path && oMetaModel.getODataProperty(oEntityType, oField.Value.Path)) {
|
|
2960
2954
|
var oPropertyTextModel = oMetaModel.getODataProperty(oEntityType, oField.Value.Path)["com.sap.vocabularies.Common.v1.Text"];
|
|
2961
2955
|
// 1. check TextArrangement definition for property
|
|
2962
2956
|
if (oPropertyTextModel && oPropertyTextModel["com.sap.vocabularies.UI.v1.TextArrangement"] && oPropertyTextModel["com.sap.vocabularies.UI.v1.TextArrangement"].EnumMember) {
|
|
@@ -3891,12 +3885,14 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3891
3885
|
break;
|
|
3892
3886
|
}
|
|
3893
3887
|
}
|
|
3888
|
+
|
|
3889
|
+
aConnectedDataFields = aConnectedDataFields || [];
|
|
3894
3890
|
for (var j = 0; j < aConnectedDataFields.length; j++) {
|
|
3895
3891
|
if (aConnectedDataFields[j].RecordType === "com.sap.vocabularies.UI.v1.DataField" && aConnectedDataFields[j].Value.Path === sDescriptionField) {
|
|
3896
3892
|
return "idOnly";
|
|
3897
3893
|
}
|
|
3898
3894
|
}
|
|
3899
|
-
sTextArrangement = oAnnotationHelper.getTextArrangementForSmartControl(oInterface, oField,
|
|
3895
|
+
sTextArrangement = oAnnotationHelper.getTextArrangementForSmartControl(oInterface, oField, oEntitySet);
|
|
3900
3896
|
return sTextArrangement;
|
|
3901
3897
|
},
|
|
3902
3898
|
|
|
@@ -114,6 +114,9 @@ sap.ui.define([
|
|
|
114
114
|
getAcceptableMimeTypes: function(oInterface, oEntitySet){
|
|
115
115
|
var oEntityType = oInterface.getModel(0).getODataEntityType(oEntitySet.entityType);
|
|
116
116
|
var aAcceptableMediaTypes = oEntityType["Org.OData.Core.V1.AcceptableMediaTypes"];
|
|
117
|
+
if (!aAcceptableMediaTypes) {
|
|
118
|
+
return "";
|
|
119
|
+
}
|
|
117
120
|
var sAcceptableMimeType = new String();
|
|
118
121
|
for (var i = 0; i < aAcceptableMediaTypes.length; i++) {
|
|
119
122
|
sAcceptableMimeType = sAcceptableMimeType.concat(aAcceptableMediaTypes[i].String).concat(",");
|
package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js
CHANGED
|
@@ -3,7 +3,7 @@ sap.ui.define([
|
|
|
3
3
|
"sap/ui/base/Object",
|
|
4
4
|
"sap/ui/core/UIComponent",
|
|
5
5
|
"sap/ui/model/resource/ResourceModel",
|
|
6
|
-
"sap/ui/core/
|
|
6
|
+
"sap/ui/core/mvc/ViewType",
|
|
7
7
|
"sap/ui/model/json/JSONModel",
|
|
8
8
|
"sap/ui/generic/app/ApplicationController",
|
|
9
9
|
"sap/suite/ui/generic/template/genericUtilities/FeLogger",
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
BaseObject,
|
|
16
16
|
UIComponent,
|
|
17
17
|
ResourceModel,
|
|
18
|
-
|
|
18
|
+
ViewType,
|
|
19
19
|
JSONModel,
|
|
20
20
|
ApplicationController,
|
|
21
21
|
FeLogger,
|
|
@@ -27,7 +27,6 @@ sap.ui.define([
|
|
|
27
27
|
"use strict";
|
|
28
28
|
|
|
29
29
|
var oLogger = new FeLogger("js.QuickTemplates.QuickTemplateComponentFactory").getLogger();
|
|
30
|
-
var ViewType = coreLibrary.mvc.ViewType;
|
|
31
30
|
|
|
32
31
|
var factory = BaseObject.extend("sap.suite.ui.generic.template.js.QuickTemplates.QuickTemplateComponentFactory");
|
|
33
32
|
|