@openui5/sap.ui.fl 1.97.1 → 1.100.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/.reuse/dep5 +25 -30
- package/THIRDPARTY.txt +15 -22
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +1 -1
- package/src/sap/ui/fl/Change.js +38 -230
- package/src/sap/ui/fl/ChangePersistence.js +113 -163
- package/src/sap/ui/fl/ChangePersistenceFactory.js +5 -3
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +3 -4
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +3 -4
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +4 -4
- package/src/sap/ui/fl/FlexController.js +57 -71
- package/src/sap/ui/fl/FlexControllerFactory.js +6 -4
- package/src/sap/ui/fl/LayerUtils.js +1 -1
- package/src/sap/ui/fl/Utils.js +39 -313
- package/src/sap/ui/fl/Variant.js +5 -119
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +10 -8
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +46 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +3 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +6 -4
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +15 -10
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +452 -0
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +68 -0
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +47 -23
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +9 -5
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +21 -22
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +12 -10
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -4
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +17 -45
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +6 -0
- package/src/sap/ui/fl/{PreprocessorImpl.js → apply/_internal/preprocessors/ControllerExtension.js} +43 -50
- package/src/sap/ui/fl/{EventHistory.js → apply/_internal/preprocessors/EventHistory.js} +7 -7
- package/src/sap/ui/fl/{RegistrationDelegator.js → apply/_internal/preprocessors/RegistrationDelegator.js} +40 -42
- package/src/sap/ui/fl/{XmlPreprocessorImpl.js → apply/_internal/preprocessors/XmlPreprocessor.js} +10 -8
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +13 -0
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +13 -2
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/fl/changeHandler/Base.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
- package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
- package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
- package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
- package/src/sap/ui/fl/codeExt/CodeExtManager.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +9 -2
- package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +9 -9
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +16 -6
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +4 -3
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
- package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
- package/src/sap/ui/fl/library.js +12 -12
- package/src/sap/ui/fl/messagebundle_ro.properties +1 -1
- package/src/sap/ui/fl/registry/Settings.js +52 -3
- package/src/sap/ui/fl/support/Flexibility.js +1 -1
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +59 -0
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +34 -0
- package/src/sap/ui/fl/support/api/SupportAPI.js +31 -0
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +2 -2
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +4 -4
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +4 -4
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +3 -14
- package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +1 -1
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +1 -1
- package/src/sap/ui/fl/util/IFrame.js +1 -1
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantManagement.js +7 -1
- package/src/sap/ui/fl/variants/VariantModel.js +32 -75
- package/src/sap/ui/fl/variants/context/Component.js +2 -6
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +6 -41
- package/src/sap/ui/fl/variants/context/i18n/i18n.properties +3 -7
- package/src/sap/ui/fl/variants/context/i18n/i18n_ar.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_bg.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ca.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_cs.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_cy.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_da.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_de.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_el.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_GB.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_sappsd.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saprigi.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saptrc.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_es.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_es_MX.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_et.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_fi.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_fr.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_fr_CA.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_hi.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_hr.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_hu.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_id.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_it.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_iw.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ja.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_kk.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ko.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_lt.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_lv.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ms.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_nl.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_no.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_pl.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_pt.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_pt_PT.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ro.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_ru.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_sh.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_sk.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_sl.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_sv.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_th.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_tr.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_uk.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_vi.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_zh_CN.properties +2 -4
- package/src/sap/ui/fl/variants/context/i18n/i18n_zh_TW.properties +2 -4
- package/src/sap/ui/fl/variants/context/view/ContextVisibility.view.xml +7 -6
- package/src/sap/ui/fl/write/_internal/Storage.js +47 -1
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +18 -19
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +5 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +4 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +24 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +2 -2
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +3 -3
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +60 -6
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +59 -5
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +4 -4
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +5 -5
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +19 -5
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
- package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +13 -4
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +139 -39
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +8 -2
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +87 -4
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +4 -4
- package/src/sap/ui/fl/write/api/TranslationAPI.js +123 -0
- package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +2 -1
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +43 -0
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/fl/initial/_internal/connectors/Utils",
|
|
9
9
|
"sap/ui/fl/Utils",
|
|
10
|
-
"sap/ui/dom/includeScript"
|
|
10
|
+
"sap/ui/dom/includeScript",
|
|
11
|
+
"sap/base/util/restricted/_pick"
|
|
11
12
|
], function(
|
|
12
13
|
Utils,
|
|
13
14
|
FlexUtils,
|
|
14
|
-
includeScript
|
|
15
|
+
includeScript,
|
|
16
|
+
_pick
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
@@ -78,6 +80,9 @@ sap.ui.define([
|
|
|
78
80
|
* @param {object} [mPropertyBag.appDescriptor] Manifest that belongs to actual component
|
|
79
81
|
* @param {string} [mPropertyBag.siteId] <code>sideId</code> that belongs to actual component
|
|
80
82
|
* @param {string} [mPropertyBag.cacheKey] Cache buster token
|
|
83
|
+
* @param {object} [mPropertyBag.preview] Preview data provided within the asyn hints
|
|
84
|
+
* @param {string} [mPropertyBag.preview.reference] Reference of the base application for building the preview request
|
|
85
|
+
* @param {sap.ui.fl.Layer} [mPropertyBag.preview.maxLayer] Limit to which layer the preview data has to be requested
|
|
81
86
|
* @param {boolean} [mPropertyBag.allContexts] Includes also restricted context
|
|
82
87
|
* @returns {Promise<object>} Promise resolving with the JSON parsed server response of the flex data request
|
|
83
88
|
* or resolves with undefined in case cache bustering determines that no data is present
|
|
@@ -87,16 +92,21 @@ sap.ui.define([
|
|
|
87
92
|
return Promise.resolve();
|
|
88
93
|
}
|
|
89
94
|
|
|
90
|
-
var mParameters =
|
|
91
|
-
if (mPropertyBag.allContexts) {
|
|
92
|
-
mParameters["allContexts"] = mPropertyBag.allContexts;
|
|
93
|
-
}
|
|
95
|
+
var mParameters = _pick(mPropertyBag, ["version", "allContexts"]);
|
|
94
96
|
this._addClientInfo(mParameters);
|
|
95
97
|
Utils.addLanguageInfo(mParameters);
|
|
96
98
|
var sAppDescriptorId;
|
|
97
99
|
if (mPropertyBag.appDescriptor && mPropertyBag.appDescriptor["sap.app"]) {
|
|
98
100
|
sAppDescriptorId = mPropertyBag.appDescriptor["sap.app"].id;
|
|
99
101
|
}
|
|
102
|
+
|
|
103
|
+
if (mPropertyBag.preview) {
|
|
104
|
+
// IDE may show a preview where only references in a lower app variant hierarchy are known by the back end
|
|
105
|
+
mPropertyBag.reference = mPropertyBag.preview.reference;
|
|
106
|
+
// higher layers are served by other connectors
|
|
107
|
+
mParameters.upToLayerType = mPropertyBag.preview.maxLayer;
|
|
108
|
+
}
|
|
109
|
+
|
|
100
110
|
var sDataUrl = Utils.getUrl(ROUTES.DATA, mPropertyBag, mParameters);
|
|
101
111
|
return Utils.sendRequest(sDataUrl, "GET", {
|
|
102
112
|
xsrfToken: this.xsrfToken,
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @namespace sap.ui.fl.initial._internal.connectors.Utils
|
|
18
18
|
* @since 1.70
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.100.0
|
|
20
20
|
* @private
|
|
21
21
|
* @ui5-restricted sap.ui.fl.initial._internal.connectors, sap.ui.fl.write._internal.connectors, sap.ui.fl.write._internal.transport
|
|
22
22
|
*/
|
|
@@ -160,8 +160,9 @@ sap.ui.define([
|
|
|
160
160
|
xhr.response = xhr.responseText;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
oResult.response = xhr.response;
|
|
164
|
+
if (typeof oResult.response === "string" && xhr.getResponseHeader("content-type") && (xhr.getResponseHeader("content-type").indexOf("json") > 0)) {
|
|
165
|
+
oResult.response = JSON.parse(oResult.response);
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
oResult.status = xhr.status;
|
|
@@ -50,7 +50,7 @@ function(
|
|
|
50
50
|
/**
|
|
51
51
|
* @namespace sap.ui.fl.initial._internal.StorageResultDisassemble
|
|
52
52
|
* @since 1.70
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.100.0
|
|
54
54
|
* @private
|
|
55
55
|
* @ui5-restricted sap.ui.fl.initial._internal.Storage
|
|
56
56
|
* Disassembles a response with a variant section into one or more plain responses.
|
package/src/sap/ui/fl/library.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/fl/RegistrationDelegator",
|
|
8
|
+
"sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator",
|
|
9
9
|
"sap/ui/fl/Utils",
|
|
10
10
|
"sap/ui/fl/Layer",
|
|
11
11
|
"sap/ui/core/library", // library dependency
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* changes or other flex objects that need processing. If there is nothing to
|
|
25
25
|
* process, any further flex processing is stopped to avoid runtime impact for end users.
|
|
26
26
|
*
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.100.0
|
|
28
28
|
* @since 1.44
|
|
29
29
|
* @namespace
|
|
30
30
|
* @name sap.ui.fl.initial
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* The <code>sap.ui.fl.initial.api</code> namespace contains public APIs that can be used
|
|
36
36
|
* during app startup, e.g. to inherit classes to create their own logic for retrieving data for flexibility.
|
|
37
37
|
*
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.100.0
|
|
39
39
|
* @namespace
|
|
40
40
|
* @name sap.ui.fl.initial.api
|
|
41
41
|
* @public
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* start a UI5 app for an end user with changes. Be aware that only the <code>api</code>
|
|
47
47
|
* sub-namespace contains public and stable APIs.
|
|
48
48
|
*
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.100.0
|
|
50
50
|
* @namespace
|
|
51
51
|
* @name sap.ui.fl.apply
|
|
52
52
|
* @public
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* The <code>sap.ui.fl.apply.api</code> namespace contains public APIs that can be used
|
|
57
57
|
* during app startup, e.g. to wait for changes to be applied or to access the current variant.
|
|
58
58
|
*
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.100.0
|
|
60
60
|
* @namespace
|
|
61
61
|
* @name sap.ui.fl.apply.api
|
|
62
62
|
* @public
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
* by personalization dialogs or 'tools' like key user adaptation will be part of this namespace.
|
|
69
69
|
* Be aware that only the <code>api</code> sub-namespace contains public and stable APIs.
|
|
70
70
|
*
|
|
71
|
-
* @version 1.
|
|
71
|
+
* @version 1.100.0
|
|
72
72
|
* @namespace
|
|
73
73
|
* @name sap.ui.fl.write
|
|
74
74
|
* @public
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
/**
|
|
78
78
|
* The <code>sap.ui.fl.write.api</code> namespace contains public APIs to work with flex objects.
|
|
79
79
|
*
|
|
80
|
-
* @version 1.
|
|
80
|
+
* @version 1.100.0
|
|
81
81
|
* @namespace
|
|
82
82
|
* @name sap.ui.fl.write.api
|
|
83
83
|
* @public
|
|
@@ -87,7 +87,7 @@ sap.ui.define([
|
|
|
87
87
|
* The <code>sap.ui.fl.interfaces</code> namespace contains only interface jsdoc descriptions.
|
|
88
88
|
* It does not contain running code.
|
|
89
89
|
*
|
|
90
|
-
* @version 1.
|
|
90
|
+
* @version 1.100.0
|
|
91
91
|
* @namespace
|
|
92
92
|
* @name sap.ui.fl.interfaces
|
|
93
93
|
* @public
|
|
@@ -140,13 +140,13 @@ sap.ui.define([
|
|
|
140
140
|
* @namespace
|
|
141
141
|
* @name sap.ui.fl
|
|
142
142
|
* @author SAP SE
|
|
143
|
-
* @version 1.
|
|
143
|
+
* @version 1.100.0
|
|
144
144
|
* @private
|
|
145
145
|
* @ui5-restricted UI5 controls, tools creating flexibility changes
|
|
146
146
|
*/
|
|
147
147
|
sap.ui.getCore().initLibrary({
|
|
148
148
|
name: "sap.ui.fl",
|
|
149
|
-
version: "1.
|
|
149
|
+
version: "1.100.0",
|
|
150
150
|
controls: [
|
|
151
151
|
"sap.ui.fl.variants.VariantManagement",
|
|
152
152
|
"sap.ui.fl.util.IFrame"
|
|
@@ -188,8 +188,8 @@ sap.ui.define([
|
|
|
188
188
|
* @enum {string}
|
|
189
189
|
*/
|
|
190
190
|
sap.ui.fl.Versions = {
|
|
191
|
-
Original: -1,
|
|
192
|
-
Draft: 0,
|
|
191
|
+
Original: "-1",
|
|
192
|
+
Draft: "0",
|
|
193
193
|
UrlParameter: "sap-ui-fl-version"
|
|
194
194
|
};
|
|
195
195
|
|
|
@@ -63,7 +63,7 @@ VARIANT_MANAGEMENT_SEL_VARIANT=Imaginea {0}. Pentru a selecta imaginea, ap\u0103
|
|
|
63
63
|
|
|
64
64
|
VARIANT_MANAGEMENT_SEL_VARIANT_MOD=Imagine modificat\u0103 {0}. Pentru a selecta imaginea, ap\u0103sa\u021Bi bara de distan\u021Bare.
|
|
65
65
|
|
|
66
|
-
VARIANT_MANAGEMENT_VARIANTS=
|
|
66
|
+
VARIANT_MANAGEMENT_VARIANTS=Imaginile mele
|
|
67
67
|
|
|
68
68
|
VARIANT_MANAGEMENT_ERROR_DUPLICATE=Numele imaginii exist\u0103 deja. Introduce\u021Bi un alt nume.
|
|
69
69
|
|
|
@@ -312,9 +312,28 @@ sap.ui.define([
|
|
|
312
312
|
return this._getBooleanProperty("isCondensingEnabled");
|
|
313
313
|
};
|
|
314
314
|
|
|
315
|
+
/**
|
|
316
|
+
* Checks whether change transport mechanism is available for the current system or not.
|
|
317
|
+
*
|
|
318
|
+
* @returns {boolean} <code>true</code> if transport of changes is available
|
|
319
|
+
*/
|
|
320
|
+
Settings.prototype.isSystemWithTransports = function() {
|
|
321
|
+
// Currently, transport mechanism is only available in ABAP stack which can be identified by system and client ids
|
|
322
|
+
return !!(this._oSettings.system && this._oSettings.client);
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Checks whether the current system is defined as a productive system and transport mechanism of changes is also available or not.
|
|
327
|
+
*
|
|
328
|
+
* @returns {boolean} <code>true</code> if transport of changes is available
|
|
329
|
+
*/
|
|
330
|
+
Settings.prototype.isProductiveSystemWithTransports = function() {
|
|
331
|
+
return this.isProductiveSystem() && this.isSystemWithTransports();
|
|
332
|
+
};
|
|
333
|
+
|
|
315
334
|
/**
|
|
316
335
|
* Getter for the system ID of the connected back end.
|
|
317
|
-
*
|
|
336
|
+
* This is taken from the <code>system</code> property of the flex settings. Only filled for an ABAP back end.
|
|
318
337
|
*
|
|
319
338
|
* @returns {string} System ID of the connected back end or undefined (when property <code>system</code> does not exist in the flex settings file)
|
|
320
339
|
*/
|
|
@@ -324,7 +343,7 @@ sap.ui.define([
|
|
|
324
343
|
|
|
325
344
|
/**
|
|
326
345
|
* Getter for the client of the connected back end.
|
|
327
|
-
*
|
|
346
|
+
* This is taken from the <code>client</code> property of the flex settings. Only filled for an ABAP back end.
|
|
328
347
|
*
|
|
329
348
|
* @returns {string} Client of the connected backend or undefined (when property <code>system</code> does not exist in the flex settings file)
|
|
330
349
|
*/
|
|
@@ -332,9 +351,39 @@ sap.ui.define([
|
|
|
332
351
|
return this._oSettings.client;
|
|
333
352
|
};
|
|
334
353
|
|
|
354
|
+
// Used for stubbing in tests
|
|
355
|
+
Settings.prototype._getHostname = function () {
|
|
356
|
+
return document.location.hostname;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Detects whether the system is a customer system.
|
|
361
|
+
* This is taken from the <code>systemType</code> property of the flex settings (only filled for an ABAP back end)
|
|
362
|
+
* or the hostname.
|
|
363
|
+
*
|
|
364
|
+
* @returns {boolean} <code>true</code> if it is a customer system
|
|
365
|
+
*/
|
|
366
|
+
Settings.prototype.isCustomerSystem = function () {
|
|
367
|
+
var sSystemType = this._oSettings.systemType;
|
|
368
|
+
var bIsCustomerSystem = {
|
|
369
|
+
CUSTOMER: true,
|
|
370
|
+
SAP: false
|
|
371
|
+
}[sSystemType];
|
|
372
|
+
var sHostname = this._getHostname();
|
|
373
|
+
|
|
374
|
+
return bIsCustomerSystem !== undefined
|
|
375
|
+
? bIsCustomerSystem
|
|
376
|
+
// Fallback if back end has no info, guess based on hostname
|
|
377
|
+
: !(
|
|
378
|
+
sHostname.endsWith(".sap" + ".corp") // Prevent SEC-236 violation
|
|
379
|
+
|| sHostname === "localhost"
|
|
380
|
+
|| sHostname === "127.0.0.1"
|
|
381
|
+
);
|
|
382
|
+
};
|
|
383
|
+
|
|
335
384
|
/**
|
|
336
385
|
* Getter for the id of the current user.
|
|
337
|
-
*
|
|
386
|
+
* This is taken from the <code>userId</code> property of the flex settings. Only filled when UShell is available.
|
|
338
387
|
*
|
|
339
388
|
* @returns {string} User ID of the current user. Undefined if UShell is not available.
|
|
340
389
|
*/
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Component",
|
|
9
|
+
"sap/ui/fl/ChangePersistenceFactory",
|
|
10
|
+
"sap/ui/fl/apply/_internal/changes/FlexCustomData",
|
|
11
|
+
"sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor",
|
|
12
|
+
"sap/ui/fl/Utils"
|
|
13
|
+
], function(
|
|
14
|
+
Component,
|
|
15
|
+
ChangePersistenceFactory,
|
|
16
|
+
FlexCustomData,
|
|
17
|
+
Extractor,
|
|
18
|
+
Utils
|
|
19
|
+
) {
|
|
20
|
+
"use strict";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Provides an object with the changes for the current application as well as
|
|
24
|
+
* further information. I.e. if the changes were applied and their dependencies.
|
|
25
|
+
*
|
|
26
|
+
* @namespace sap.ui.fl.support._internal.getChangeDependencies
|
|
27
|
+
* @since 1.98
|
|
28
|
+
* @version 1.100.0
|
|
29
|
+
* @private
|
|
30
|
+
* @ui5-restricted sap.ui.fl.support.api.SupportAPI
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
return function () {
|
|
34
|
+
return Utils.getUShellService("AppLifeCycle").then(function (oAppLifeCycleService) {
|
|
35
|
+
var oCurrentAppContainerObject;
|
|
36
|
+
|
|
37
|
+
if (oAppLifeCycleService) {
|
|
38
|
+
oCurrentAppContainerObject = oAppLifeCycleService.getCurrentApplication().componentInstance;
|
|
39
|
+
} else {
|
|
40
|
+
var aApplications = Component.registry.filter(function (oComponent) {
|
|
41
|
+
return oComponent.getManifestObject().getRawJson()["sap.app"].type === "application";
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
if (aApplications.length === 1) {
|
|
45
|
+
oCurrentAppContainerObject = aApplications[0];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (oCurrentAppContainerObject) {
|
|
50
|
+
var oAppComponent = oCurrentAppContainerObject.oContainer.getComponentInstance();
|
|
51
|
+
var oChangePersistence = ChangePersistenceFactory.getChangePersistenceForControl(oAppComponent);
|
|
52
|
+
|
|
53
|
+
return Extractor.extractData(oChangePersistence);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return {};
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/fl/registry/Settings"
|
|
9
|
+
], function(
|
|
10
|
+
Settings
|
|
11
|
+
) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Provides an object with the flex Settings.
|
|
16
|
+
*
|
|
17
|
+
* @namespace sap.ui.fl.support._internal.getFlexSettings
|
|
18
|
+
* @since 1.99
|
|
19
|
+
* @version 1.100.0
|
|
20
|
+
* @private
|
|
21
|
+
* @ui5-restricted sap.ui.fl.support.api.SupportAPI
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
return function () {
|
|
25
|
+
return Settings.getInstance().then(function (oSettings) {
|
|
26
|
+
return Object.keys(oSettings._oSettings).map(function(sKey) {
|
|
27
|
+
return {
|
|
28
|
+
key: sKey,
|
|
29
|
+
value: oSettings._oSettings[sKey]
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/fl/support/_internal/getFlexSettings",
|
|
9
|
+
"sap/ui/fl/support/_internal/getChangeDependencies"
|
|
10
|
+
], function(
|
|
11
|
+
getFlexSettings,
|
|
12
|
+
getChangeDependencies
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Provides an API for support tools
|
|
18
|
+
*
|
|
19
|
+
* @namespace sap.ui.fl.support.api.SupportAPI
|
|
20
|
+
* @since 1.98
|
|
21
|
+
* @version 1.100.0
|
|
22
|
+
* @private
|
|
23
|
+
* @ui5-restricted ui5 support tools
|
|
24
|
+
*/
|
|
25
|
+
var SupportAPI = /** @lends sap.ui.fl.support.api.SupportAPI */{
|
|
26
|
+
getChangeDependencies: getChangeDependencies,
|
|
27
|
+
getFlexSettings: getFlexSettings
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
return SupportAPI;
|
|
31
|
+
});
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @constructor
|
|
37
37
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.100.0
|
|
40
40
|
* @experimental Since 1.45
|
|
41
41
|
*/
|
|
42
42
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetails", {
|
|
@@ -137,7 +137,7 @@ sap.ui.define([
|
|
|
137
137
|
this.oSelectedContentModel.setData(oModelData);
|
|
138
138
|
var oCore = sap.ui.getCore();
|
|
139
139
|
var sIconTabBarId = this.getView().createId("contentDetailsIconTabBar");
|
|
140
|
-
var oIconTabBar = oCore.
|
|
140
|
+
var oIconTabBar = oCore.byId(sIconTabBarId);
|
|
141
141
|
if (oIconTabBar) {
|
|
142
142
|
var oFirstIconTabBarItem = oIconTabBar.getItems()[0];
|
|
143
143
|
if (oIconTabBar.getSelectedKey() !== oFirstIconTabBarItem.getId()) {
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js
CHANGED
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @constructor
|
|
37
37
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.100.0
|
|
40
40
|
* @experimental Since 1.45
|
|
41
41
|
*/
|
|
42
42
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.ContentDetailsEdit", {
|
package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js
CHANGED
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @constructor
|
|
28
28
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.100.0
|
|
31
31
|
* @experimental Since 1.45
|
|
32
32
|
*/
|
|
33
33
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.LayerContentMaster", {
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @constructor
|
|
17
17
|
* @alias sap.ui.fl.support.apps.contentbrowser.controller.Layers
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.100.0
|
|
20
20
|
* @experimental Since 1.45
|
|
21
21
|
*/
|
|
22
22
|
return Controller.extend("sap.ui.fl.support.apps.contentbrowser.controller.Layers", {
|
|
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/fl/Utils", "sap/ui/thirdparty/jquery"], function(Utils, j
|
|
|
13
13
|
* @constructor
|
|
14
14
|
* @alias sap.ui.fl.support.apps.contentbrowser.lrepConnector.LRepConnector
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.
|
|
16
|
+
* @version 1.100.0
|
|
17
17
|
* @experimental Since 1.45
|
|
18
18
|
*/
|
|
19
19
|
var LrepConnector = {};
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @constructor
|
|
20
20
|
* @alias sap.ui.fl.support.apps.contentbrowser.utils.DataUtils
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.100.0
|
|
23
23
|
* @experimental Since 1.45
|
|
24
24
|
*/
|
|
25
25
|
var DataUtils = {
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* Pretty printer for specific file types.
|
|
38
38
|
*
|
|
39
39
|
* @param {Object} oData - Data to be formatted
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {string} sFileType - File type of data
|
|
41
41
|
* @returns {Object} Data after formatting
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
@@ -101,8 +101,8 @@ sap.ui.define([
|
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Removes leading and trailing slashes from a string.
|
|
104
|
-
* @param {
|
|
105
|
-
* @returns {
|
|
104
|
+
* @param {string} sNamespace - Input string
|
|
105
|
+
* @returns {string} String after removing leading and trailing slashes
|
|
106
106
|
* @public
|
|
107
107
|
*/
|
|
108
108
|
cleanLeadingAndTrailingSlashes: function (sNamespace) {
|
|
@@ -16,7 +16,7 @@ function (MessagePopoverItem, MessagePopover) {
|
|
|
16
16
|
* @constructor
|
|
17
17
|
* @alias sap.ui.fl.support.apps.contentbrowser.utils.ErrorUtils
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.100.0
|
|
20
20
|
* @experimental Since 1.45
|
|
21
21
|
*/
|
|
22
22
|
var ErrorUtils = {};
|
|
@@ -61,9 +61,9 @@ function (MessagePopoverItem, MessagePopover) {
|
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Displays error message.
|
|
64
|
-
* @param {
|
|
65
|
-
* @param {
|
|
66
|
-
* @param {
|
|
64
|
+
* @param {string} sType - message type
|
|
65
|
+
* @param {string} sTitle - message title
|
|
66
|
+
* @param {string} sDescription - message description
|
|
67
67
|
* @public
|
|
68
68
|
*/
|
|
69
69
|
ErrorUtils.displayError = function (sType, sTitle, sDescription) {
|
|
@@ -8,9 +8,9 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/core/util/File",
|
|
9
9
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
10
10
|
"sap/m/MessageBox",
|
|
11
|
-
"sap/ui/fl/
|
|
11
|
+
"sap/ui/fl/apply/_internal/flexState/ManifestUtils",
|
|
12
12
|
"sap/ui/thirdparty/jquery"
|
|
13
|
-
], function(File, JsControlTreeModifier, MessageBox,
|
|
13
|
+
], function(File, JsControlTreeModifier, MessageBox, ManifestUtils, jQuery) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
var Extractor = {};
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
var oComponentContainer = sap.ui.getCore().byId(oComponentContainerDomRef.id);
|
|
56
56
|
var oAppComponent = oComponentContainer && oComponentContainer.getComponentInstance();
|
|
57
57
|
|
|
58
|
-
if (oAppComponent &&
|
|
58
|
+
if (oAppComponent && ManifestUtils.getFlexReferenceForControl(oAppComponent) === sComponentName) {
|
|
59
59
|
oCorrectAppComponent = oAppComponent;
|
|
60
60
|
return true;
|
|
61
61
|
}
|
|
@@ -152,16 +152,5 @@ sap.ui.define([
|
|
|
152
152
|
}.bind(this));
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
Extractor.createDownloadFile = function (oExport) {
|
|
156
|
-
try {
|
|
157
|
-
var sExportString = JSON.stringify(oExport);
|
|
158
|
-
File.save(sExportString, "flexibilityDataExtraction", "json");
|
|
159
|
-
} catch (e) {
|
|
160
|
-
MessageBox.error(
|
|
161
|
-
"The export of the flexibility data was not successful.\n" + e.message
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
155
|
return Extractor;
|
|
167
156
|
});
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @alias sap.ui.fl.transport.TransportSelection
|
|
18
18
|
* @constructor
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.100.0
|
|
21
21
|
* @since 1.38.0
|
|
22
22
|
* Helper object to select an ABAP transport for an LREP object. This is not a generic utility to select a transport request, but part
|
|
23
23
|
* of the SmartVariant control.
|
|
@@ -99,7 +99,7 @@ sap.ui.define([
|
|
|
99
99
|
* Returns the namespace prefix to be used for the given layer.
|
|
100
100
|
* Null means no prefix must be used.
|
|
101
101
|
* @param {string} sLayer - The target layer
|
|
102
|
-
* @returns {
|
|
102
|
+
* @returns {string|null} The prefix to be used. null means there must not be a prefix
|
|
103
103
|
*/
|
|
104
104
|
function getNamespacePrefixForLayer(sLayer) {
|
|
105
105
|
var sPrefix = layer_prefixes[sLayer];
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @param {sap.ui.core.RenderManager} oRm
|
|
29
29
|
* The RenderManager that can be used for writing to
|
|
30
30
|
* the Render-Output-Buffer
|
|
31
|
-
* @param {sap.ui.
|
|
31
|
+
* @param {sap.ui.fl.util.IFrame} oIFrame
|
|
32
32
|
* The iframe to be rendered
|
|
33
33
|
*/
|
|
34
34
|
IFrameRenderer.render = function(oRm, oIFrame) {
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* Use to update property value for propertyPath which starts in provided root context
|
|
30
30
|
*
|
|
31
31
|
* @param {sap.ui.fl.Change[]|sap.ui.fl.Change} vChanges - Changes to be merged which includes propertyPath and propertyValue
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {string} oRootPath - root context where the propertyPath starts
|
|
33
33
|
* @ui5-restricted sap.ui.fl, sap.suite.ui.generic.template
|
|
34
34
|
*/
|
|
35
35
|
return function (vChanges, oRootPath) {
|