@openui5/sap.ui.fl 1.115.0 → 1.116.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/.eslintrc.json +33 -2
- package/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +3 -3
- package/src/sap/ui/fl/.library +1 -1
- package/src/sap/ui/fl/Cache.js +29 -29
- package/src/sap/ui/fl/ChangePersistence.js +69 -71
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnector.js +7 -7
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +7 -7
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +5 -5
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
- package/src/sap/ui/fl/FlexController.js +157 -130
- package/src/sap/ui/fl/FlexControllerFactory.js +1 -1
- package/src/sap/ui/fl/Layer.js +1 -1
- package/src/sap/ui/fl/LayerUtils.js +11 -11
- package/src/sap/ui/fl/Utils.js +16 -17
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +41 -38
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +114 -94
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +2 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +19 -19
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyStrategyFactory.js +4 -5
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ApplyUtil.js +1 -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 +1 -1
- 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 +15 -15
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddNewInbound.js +8 -8
- 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/RemoveAllInboundsExceptOne.js +6 -6
- 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 -2
- 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 +3 -5
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +4 -6
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +10 -10
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -3
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -2
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +2 -4
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageConnector.js +4 -5
- package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +29 -29
- package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +1 -2
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +6 -4
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +44 -44
- package/src/sap/ui/fl/apply/_internal/flexObjects/AppDescriptorChange.js +3 -3
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +15 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/ControllerExtensionChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlVariant.js +1 -14
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +3 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +6 -5
- package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/UIChange.js +12 -4
- package/src/sap/ui/fl/apply/_internal/flexObjects/UpdatableChange.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/Variant.js +23 -5
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +183 -64
- package/src/sap/ui/fl/apply/_internal/flexState/InitialPrepareFunctions.js +27 -17
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +4 -4
- package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +50 -50
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +27 -13
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +5 -5
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +55 -37
- package/src/sap/ui/fl/apply/_internal/preprocessors/ComponentLifecycleHooks.js +12 -12
- package/src/sap/ui/fl/apply/_internal/preprocessors/ControllerExtension.js +5 -5
- package/src/sap/ui/fl/apply/_internal/preprocessors/EventHistory.js +6 -6
- package/src/sap/ui/fl/apply/_internal/preprocessors/RegistrationDelegator.js +1 -2
- package/src/sap/ui/fl/apply/_internal/preprocessors/XmlPreprocessor.js +4 -4
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +5 -5
- package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +10 -4
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +5 -5
- package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +6 -6
- package/src/sap/ui/fl/changeHandler/AddIFrame.js +21 -21
- package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
- package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +34 -34
- package/src/sap/ui/fl/changeHandler/Base.js +7 -7
- package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +107 -107
- package/src/sap/ui/fl/changeHandler/BaseAddXml.js +45 -45
- package/src/sap/ui/fl/changeHandler/BaseRename.js +26 -26
- package/src/sap/ui/fl/changeHandler/BaseTreeModifier.js +1 -1
- package/src/sap/ui/fl/changeHandler/HideControl.js +15 -16
- package/src/sap/ui/fl/changeHandler/MoveControls.js +190 -191
- package/src/sap/ui/fl/changeHandler/MoveElements.js +36 -36
- package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +7 -7
- package/src/sap/ui/fl/changeHandler/PropertyChange.js +7 -7
- package/src/sap/ui/fl/changeHandler/StashControl.js +35 -35
- package/src/sap/ui/fl/changeHandler/UnhideControl.js +7 -7
- package/src/sap/ui/fl/changeHandler/UnstashControl.js +21 -21
- package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +39 -39
- package/src/sap/ui/fl/changeHandler/common/ChangeCategories.js +1 -1
- package/src/sap/ui/fl/changeHandler/common/createIFrame.js +5 -5
- package/src/sap/ui/fl/changeHandler/common/getTargetAggregationIndex.js +5 -5
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +12 -12
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +7 -9
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/descriptorRelated/internal/Utils.js +12 -12
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +60 -60
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +2 -5
- package/src/sap/ui/fl/initial/_internal/Storage.js +18 -19
- package/src/sap/ui/fl/initial/_internal/StorageResultMerger.js +4 -4
- package/src/sap/ui/fl/initial/_internal/StorageUtils.js +20 -21
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerRegistration.js +6 -6
- package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/KeyUserConnector.js +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +4 -4
- package/src/sap/ui/fl/initial/_internal/connectors/StaticFileConnector.js +2 -2
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +18 -18
- package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +4 -4
- package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +2 -2
- package/src/sap/ui/fl/interfaces/Delegate.js +7 -9
- package/src/sap/ui/fl/library.js +44 -45
- package/src/sap/ui/fl/library.support.js +59 -59
- package/src/sap/ui/fl/messagebundle.properties +4 -119
- package/src/sap/ui/fl/messagebundle_ar.properties +2 -79
- package/src/sap/ui/fl/messagebundle_bg.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ca.properties +2 -79
- package/src/sap/ui/fl/messagebundle_cs.properties +2 -79
- package/src/sap/ui/fl/messagebundle_cy.properties +2 -79
- package/src/sap/ui/fl/messagebundle_da.properties +2 -79
- package/src/sap/ui/fl/messagebundle_de.properties +2 -79
- package/src/sap/ui/fl/messagebundle_el.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_GB.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_saprigi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +2 -79
- package/src/sap/ui/fl/messagebundle_es.properties +2 -79
- package/src/sap/ui/fl/messagebundle_es_MX.properties +2 -79
- package/src/sap/ui/fl/messagebundle_et.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_hu.properties +2 -79
- package/src/sap/ui/fl/messagebundle_id.properties +2 -79
- package/src/sap/ui/fl/messagebundle_it.properties +2 -79
- package/src/sap/ui/fl/messagebundle_iw.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ja.properties +2 -79
- package/src/sap/ui/fl/messagebundle_kk.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ko.properties +2 -79
- package/src/sap/ui/fl/messagebundle_lt.properties +2 -79
- package/src/sap/ui/fl/messagebundle_lv.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ms.properties +2 -79
- package/src/sap/ui/fl/messagebundle_nl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_no.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pt.properties +2 -79
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ro.properties +2 -79
- package/src/sap/ui/fl/messagebundle_ru.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sh.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sk.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sl.properties +2 -79
- package/src/sap/ui/fl/messagebundle_sv.properties +2 -79
- package/src/sap/ui/fl/messagebundle_th.properties +2 -79
- package/src/sap/ui/fl/messagebundle_tr.properties +2 -79
- package/src/sap/ui/fl/messagebundle_uk.properties +3 -80
- package/src/sap/ui/fl/messagebundle_vi.properties +2 -79
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +2 -79
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +2 -79
- package/src/sap/ui/fl/registry/Settings.js +41 -43
- package/src/sap/ui/fl/requireAsync.js +7 -1
- package/src/sap/ui/fl/support/_internal/extractChangeDependencies.js +8 -8
- package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +22 -22
- package/src/sap/ui/fl/support/_internal/getFlexSettings.js +3 -3
- package/src/sap/ui/fl/support/api/SupportAPI.js +1 -1
- package/src/sap/ui/fl/support/apps/contentbrowser/Component.js +3 -5
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +27 -27
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +20 -20
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +17 -17
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +4 -4
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +34 -34
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +10 -10
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +5 -5
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -2
- package/src/sap/ui/fl/util/IFrame.js +18 -18
- package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
- package/src/sap/ui/fl/util/ManagedObjectModel.js +7 -7
- package/src/sap/ui/fl/util/changePropertyValueByPath.js +2 -2
- package/src/sap/ui/fl/util/getContainerUserInfo.js +25 -25
- package/src/sap/ui/fl/util/resolveBinding.js +3 -3
- package/src/sap/ui/fl/variants/VariantManagement.js +8 -32
- package/src/sap/ui/fl/variants/VariantModel.js +182 -124
- package/src/sap/ui/fl/variants/context/Component.js +1 -2
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +2 -5
- package/src/sap/ui/fl/write/_internal/SaveAs.js +143 -143
- package/src/sap/ui/fl/write/_internal/Storage.js +46 -49
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +4 -4
- package/src/sap/ui/fl/write/_internal/Versions.js +104 -94
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +9 -9
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +7 -7
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +2 -2
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +3 -5
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +15 -10
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Create.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Destroy.js +1 -1
- package/src/sap/ui/fl/write/_internal/condenser/classifications/Move.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +10 -10
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -24
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +60 -61
- package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +4 -4
- package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +6 -6
- package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/Utils.js +14 -14
- package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +3 -3
- package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +15 -7
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +2 -2
- 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 +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +3 -3
- 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 +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +2 -2
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +3 -3
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +4 -4
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +2 -2
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +26 -26
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +78 -57
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +12 -13
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +12 -12
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +7 -7
- package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +7 -7
- package/src/sap/ui/fl/write/api/ChangesWriteAPI.js +9 -9
- package/src/sap/ui/fl/write/api/ContextBasedAdaptationsAPI.js +546 -110
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +109 -67
- package/src/sap/ui/fl/write/api/ExtensionPointRegistryAPI.js +3 -3
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +19 -20
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
- package/src/sap/ui/fl/write/api/LocalResetAPI.js +19 -19
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +59 -54
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +8 -8
- package/src/sap/ui/fl/write/api/SmartBusinessWriteAPI.js +6 -6
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +14 -13
- package/src/sap/ui/fl/write/api/TranslationAPI.js +13 -13
- package/src/sap/ui/fl/write/api/UI2PersonalizationWriteAPI.js +1 -1
- package/src/sap/ui/fl/write/api/VersionsAPI.js +14 -14
- package/src/sap/ui/fl/write/api/connectors/FileListBaseConnector.js +1 -1
- package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +7 -7
- package/src/sap/ui/fl/write/connectors/BaseConnector.js +17 -17
package/.eslintrc.json
CHANGED
|
@@ -15,10 +15,41 @@
|
|
|
15
15
|
"no-multi-spaces": "error",
|
|
16
16
|
"indent": ["error", "tab", {
|
|
17
17
|
"SwitchCase": 1,
|
|
18
|
-
"MemberExpression":
|
|
18
|
+
"MemberExpression": 0
|
|
19
19
|
}],
|
|
20
20
|
"one-var": ["error", "never"],
|
|
21
21
|
"no-useless-call": "error",
|
|
22
|
-
"key-spacing": ["error", { "beforeColon": false }]
|
|
22
|
+
"key-spacing": ["error", { "beforeColon": false }],
|
|
23
|
+
"default-case": ["error", { "commentPattern": "^skip\\sdefault" }],
|
|
24
|
+
|
|
25
|
+
"comma-dangle": ["error", "never"],
|
|
26
|
+
"max-len": ["warn", {
|
|
27
|
+
"code": 140,
|
|
28
|
+
"ignorePattern": "@param|@returns|@description|<|QUnit.test",
|
|
29
|
+
"ignoreUrls": true
|
|
30
|
+
}],
|
|
31
|
+
"space-before-function-paren": ["error", {
|
|
32
|
+
"anonymous": "never",
|
|
33
|
+
"named": "never",
|
|
34
|
+
"asyncArrow": "always"
|
|
35
|
+
}],
|
|
36
|
+
"no-multi-assign": ["error", { "ignoreNonDeclaration": true }],
|
|
37
|
+
"dot-notation": ["error", { "allowKeywords": true }],
|
|
38
|
+
"spaced-comment": ["error", "always", {
|
|
39
|
+
"line": {
|
|
40
|
+
"exceptions": ["-"]
|
|
41
|
+
},
|
|
42
|
+
"block": {
|
|
43
|
+
"markers": ["!"],
|
|
44
|
+
"exceptions": ["*"],
|
|
45
|
+
"balanced": true
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}],
|
|
49
|
+
"no-multiple-empty-lines": ["error", {"max": 1}],
|
|
50
|
+
"quotes": ["error", "double", {
|
|
51
|
+
"avoidEscape": true,
|
|
52
|
+
"allowTemplateLiterals": true
|
|
53
|
+
}]
|
|
23
54
|
}
|
|
24
55
|
}
|
package/.reuse/dep5
CHANGED
|
@@ -457,11 +457,6 @@ Comment: these files belong to: UI5 Web Components
|
|
|
457
457
|
|
|
458
458
|
# Outside of Libraries:
|
|
459
459
|
|
|
460
|
-
Files: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
461
|
-
Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
462
|
-
License: Apache-2.0
|
|
463
|
-
Comment: these files belong to: LESS
|
|
464
|
-
|
|
465
460
|
Files: lib/jsdoc/ui5/plugin.js
|
|
466
461
|
Copyright:
|
|
467
462
|
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
package/THIRDPARTY.txt
CHANGED
|
@@ -460,19 +460,13 @@ Contained in: src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/*.*
|
|
|
460
460
|
|
|
461
461
|
Outside of Libraries:
|
|
462
462
|
|
|
463
|
-
Component: LESS, version: 1.6.3
|
|
464
|
-
Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
465
|
-
License: Apache-2.0
|
|
466
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
467
|
-
Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
468
|
-
|
|
469
463
|
Component: JSDoc 3, version: 3.6.7
|
|
470
464
|
Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
471
465
|
License: Apache-2.0
|
|
472
466
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
473
467
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
474
468
|
|
|
475
|
-
Component: SAP Theming Base Content, version: 11.
|
|
469
|
+
Component: SAP Theming Base Content, version: 11.4.2
|
|
476
470
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
477
471
|
License: Apache-2.0
|
|
478
472
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.116.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.fl",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
17
|
+
"@openui5/sap.m": "1.116.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.116.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/ui/fl/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.116.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with sap.ui.fl controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/fl/Cache.js
CHANGED
|
@@ -26,7 +26,7 @@ function(
|
|
|
26
26
|
* @alias sap.ui.fl.Cache
|
|
27
27
|
* @experimental Since 1.25.0
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.116.0
|
|
30
30
|
*
|
|
31
31
|
* @private
|
|
32
32
|
* @ui5-restricted sap.ui.fl
|
|
@@ -68,12 +68,12 @@ function(
|
|
|
68
68
|
return sCacheKey;
|
|
69
69
|
}
|
|
70
70
|
return sCacheKey === Cache.NOTAG ?
|
|
71
|
-
sCacheKey.replace(/>$/,
|
|
72
|
-
sCacheKey.concat(
|
|
71
|
+
sCacheKey.replace(/>$/, "".concat("-", sControlVariantIds, ">")) :
|
|
72
|
+
sCacheKey.concat("-", sControlVariantIds);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
function _trimEtag(sCacheKey) {
|
|
76
|
-
return sCacheKey.replace(/(^W\/|")/g,
|
|
76
|
+
return sCacheKey.replace(/(^W\/|")/g, "");
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
Cache.NOTAG = "<NoTag>";
|
|
@@ -104,7 +104,7 @@ function(
|
|
|
104
104
|
Cache.getChangesFillingCache = function(mComponent, mPropertyBag, bInvalidateCache) {
|
|
105
105
|
var oPromise = Promise.resolve();
|
|
106
106
|
if (bInvalidateCache) {
|
|
107
|
-
oPromise = FlexState.
|
|
107
|
+
oPromise = FlexState.update(mPropertyBag);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
return oPromise.then(function() {
|
|
@@ -133,32 +133,32 @@ function(
|
|
|
133
133
|
return Promise.resolve(Cache.NOTAG);
|
|
134
134
|
}
|
|
135
135
|
return this.getChangesFillingCache(mComponent)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
.then(function(oWrappedChangeFileContent) {
|
|
137
|
+
if (oWrappedChangeFileContent && oWrappedChangeFileContent.cacheKey) {
|
|
138
|
+
return _trimEtag(oWrappedChangeFileContent.cacheKey);
|
|
139
|
+
}
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
});
|
|
160
|
-
return _concatControlVariantIdWithCacheKey(sCacheKey, aCurrentControlVariantIds.join("-"));
|
|
141
|
+
return Cache.NOTAG;
|
|
142
|
+
})
|
|
143
|
+
.then(function(sCacheKey) {
|
|
144
|
+
// concat current control variant ids to cachekey if available
|
|
145
|
+
var oVariantModel = oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
|
|
146
|
+
if (!oVariantModel) {
|
|
147
|
+
return sCacheKey;
|
|
148
|
+
}
|
|
149
|
+
// If there are no changes, the standard variant is created after the variant management control is instantiated
|
|
150
|
+
// When the cache key is calculated before this happens, the standard variant id is unknown
|
|
151
|
+
// To avoid inconsistencies between page load and navigation scenarios, all standard variants are filtered
|
|
152
|
+
var aVariantManagementControlIds = oVariantModel.getVariantManagementControlIds();
|
|
153
|
+
var aCurrentControlVariantIds = oVariantModel.getCurrentControlVariantIds()
|
|
154
|
+
.filter(function(sVariantId) {
|
|
155
|
+
// FIXME: The standard variant flag should be part of the variant instance
|
|
156
|
+
// This can be changed once the variant data selector is ready
|
|
157
|
+
// For now rely on the fact that standard variants have the same name as the vm control
|
|
158
|
+
return !aVariantManagementControlIds.includes(sVariantId);
|
|
161
159
|
});
|
|
160
|
+
return _concatControlVariantIdWithCacheKey(sCacheKey, aCurrentControlVariantIds.join("-"));
|
|
161
|
+
});
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
/**
|
|
@@ -66,7 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
*
|
|
67
67
|
* @constructor
|
|
68
68
|
* @author SAP SE
|
|
69
|
-
* @version 1.
|
|
69
|
+
* @version 1.116.0
|
|
70
70
|
* @experimental Since 1.25.0
|
|
71
71
|
* @param {object} mComponent - Component data to initiate <code>ChangePersistence</code> instance
|
|
72
72
|
* @param {string} mComponent.name - Name of the component this instance is responsible for
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
this._mChanges = DependencyHandler.createEmptyDependencyMap();
|
|
78
78
|
this._bChangesMapCreated = false;
|
|
79
79
|
|
|
80
|
-
//_mChangesInitial contains a clone of _mChanges to recreated dependencies if changes need to be reapplied
|
|
80
|
+
// _mChangesInitial contains a clone of _mChanges to recreated dependencies if changes need to be reapplied
|
|
81
81
|
this._mChangesInitial = merge({}, this._mChanges);
|
|
82
82
|
|
|
83
83
|
if (!this._mComponent || !this._mComponent.name) {
|
|
@@ -185,65 +185,65 @@ sap.ui.define([
|
|
|
185
185
|
*/
|
|
186
186
|
ChangePersistence.prototype.getChangesForComponent = function(mPropertyBag, bInvalidateCache) {
|
|
187
187
|
return Utils.getUShellService("URLParsing")
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
188
|
+
.then(function(oURLParsingService) {
|
|
189
|
+
this._oUShellURLParsingService = oURLParsingService;
|
|
190
|
+
return Cache.getChangesFillingCache(this._mComponent, mPropertyBag, bInvalidateCache);
|
|
191
|
+
}.bind(this))
|
|
192
|
+
.then(function(mPropertyBag, oWrappedChangeFileContent) {
|
|
193
|
+
var oChangeFileContent = merge({}, oWrappedChangeFileContent);
|
|
194
|
+
var oAppComponent = mPropertyBag && mPropertyBag.component && Utils.getAppComponentForControl(mPropertyBag.component);
|
|
195
|
+
|
|
196
|
+
var bHasFlexObjects = StorageUtils.isStorageResponseFilled(oChangeFileContent.changes);
|
|
197
|
+
|
|
198
|
+
if (!bHasFlexObjects) {
|
|
199
|
+
return [];
|
|
200
|
+
}
|
|
201
201
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
202
|
+
var aChanges = oChangeFileContent.changes.changes;
|
|
203
|
+
|
|
204
|
+
// Binds a json model of message bundle to the component the first time a change within the vendor layer was detected
|
|
205
|
+
// It enables the translation of changes
|
|
206
|
+
if (!this._oMessagebundle && oChangeFileContent.messagebundle && oAppComponent) {
|
|
207
|
+
if (!oAppComponent.getModel("i18nFlexVendor")) {
|
|
208
|
+
if (aChanges.some(function(oChange) {
|
|
209
|
+
return oChange.layer === Layer.VENDOR;
|
|
210
|
+
})) {
|
|
211
|
+
this._oMessagebundle = oChangeFileContent.messagebundle;
|
|
212
|
+
var oModel = new JSONModel(this._oMessagebundle);
|
|
213
|
+
oAppComponent.setModel(oModel, "i18nFlexVendor");
|
|
215
214
|
}
|
|
216
215
|
}
|
|
216
|
+
}
|
|
217
217
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
218
|
+
var sCurrentLayer = mPropertyBag && mPropertyBag.currentLayer;
|
|
219
|
+
var bFilterMaxLayer = !(mPropertyBag && mPropertyBag.ignoreMaxLayerParameter);
|
|
220
|
+
var fnFilter = function() { return true; };
|
|
221
|
+
if (sCurrentLayer) {
|
|
222
|
+
aChanges = LayerUtils.filterChangeOrChangeDefinitionsByCurrentLayer(aChanges, sCurrentLayer);
|
|
223
|
+
} else if (LayerUtils.isLayerFilteringRequired(this._oUShellURLParsingService) && bFilterMaxLayer) {
|
|
224
|
+
fnFilter = filterChangeForMaxLayer.bind(this);
|
|
225
|
+
// If layer filtering required, excludes changes in higher layer than the max layer
|
|
226
|
+
aChanges = aChanges.filter(fnFilter);
|
|
227
|
+
} else if (this._bHasChangesOverMaxLayer && !bFilterMaxLayer) {
|
|
228
|
+
// ignoreMaxLayerParameter = true is set from flexController.hasHigherLayerChanges(),
|
|
229
|
+
// triggered by rta.stop(), to check if reload needs to be performed
|
|
230
|
+
// as ctrl variant changes are already gone and to improve performance, just return the constant
|
|
231
|
+
this._bHasChangesOverMaxLayer = false;
|
|
232
|
+
return this.HIGHER_LAYER_CHANGES_EXIST;
|
|
233
|
+
}
|
|
234
234
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
var bIncludeControlVariants = oChangeFileContent.changes && mPropertyBag && mPropertyBag.includeCtrlVariants;
|
|
236
|
+
var aFilteredVariantChanges = this._getAllCtrlVariantChanges(oChangeFileContent, bIncludeControlVariants, fnFilter);
|
|
237
|
+
aChanges = aChanges.concat(aFilteredVariantChanges);
|
|
238
238
|
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
return this._checkAndGetChangeInstances(aChanges, oChangeFileContent);
|
|
240
|
+
}.bind(this, mPropertyBag));
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
ChangePersistence.prototype._checkAndGetChangeInstances = function(aChanges, oChangeFileContent) {
|
|
244
244
|
return aChanges
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
.filter(preconditionsFulfilled)
|
|
246
|
+
.map(getChangeInstance.bind(this, oChangeFileContent));
|
|
247
247
|
};
|
|
248
248
|
|
|
249
249
|
function filterChangeForMaxLayer(oChangeOrChangeContent) {
|
|
@@ -274,13 +274,13 @@ sap.ui.define([
|
|
|
274
274
|
return VariantManagementState.getInitialChanges({reference: this._mComponent.name});
|
|
275
275
|
}
|
|
276
276
|
return ["variants", "variantChanges", "variantDependentControlChanges", "variantManagementChanges"]
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
277
|
+
.reduce(function(aResult, sVariantChangeType) {
|
|
278
|
+
if (oChangeFileContent.changes[sVariantChangeType]) {
|
|
279
|
+
return aResult.concat(oChangeFileContent.changes[sVariantChangeType]);
|
|
280
|
+
}
|
|
281
|
+
return aResult;
|
|
282
|
+
}, [])
|
|
283
|
+
.filter(fnFilter);
|
|
284
284
|
};
|
|
285
285
|
|
|
286
286
|
/**
|
|
@@ -295,7 +295,7 @@ sap.ui.define([
|
|
|
295
295
|
|
|
296
296
|
function createChangeMap(aChanges) {
|
|
297
297
|
Measurement.start("fl.createDependencyMap", "Measurement of creating initial dependency map");
|
|
298
|
-
//Since starting RTA does not recreate ChangePersistence instance, resets changes map is required to filter personalized changes
|
|
298
|
+
// Since starting RTA does not recreate ChangePersistence instance, resets changes map is required to filter personalized changes
|
|
299
299
|
this._mChanges = DependencyHandler.createEmptyDependencyMap();
|
|
300
300
|
|
|
301
301
|
aChanges.forEach(this.addChangeAndUpdateDependencies.bind(this, oAppComponent));
|
|
@@ -415,7 +415,7 @@ sap.ui.define([
|
|
|
415
415
|
var aChanges = union(
|
|
416
416
|
this.getChangesMapForComponent().aChanges,
|
|
417
417
|
mPropertyBag.includeDirtyChanges && this.getDirtyChanges()
|
|
418
|
-
).filter(function
|
|
418
|
+
).filter(function(oChange) {
|
|
419
419
|
return (
|
|
420
420
|
Boolean(oChange)
|
|
421
421
|
&& oChange.getFileType() === "change"
|
|
@@ -728,7 +728,7 @@ sap.ui.define([
|
|
|
728
728
|
if (sParentVersion) {
|
|
729
729
|
// in case of changes saved for a draft only the first writing operation must have the parentVersion targeting the basis
|
|
730
730
|
// followup changes must point the the existing draft created with the first request
|
|
731
|
-
var aNewChanges = aDirtyChanges.filter(function
|
|
731
|
+
var aNewChanges = aDirtyChanges.filter(function(oChange) {
|
|
732
732
|
return oChange.getState() === States.LifecycleState.NEW;
|
|
733
733
|
});
|
|
734
734
|
oFirstNewChange = [].concat(aNewChanges).shift();
|
|
@@ -736,8 +736,8 @@ sap.ui.define([
|
|
|
736
736
|
|
|
737
737
|
return aDirtyChanges.reduce(function(oPreviousPromise, oDirtyChange) {
|
|
738
738
|
return oPreviousPromise
|
|
739
|
-
|
|
740
|
-
|
|
739
|
+
.then(performSingleSaveAction.bind(undefined, oDirtyChange, oFirstNewChange, sParentVersion))
|
|
740
|
+
.then(this._updateCacheAndDirtyState.bind(this, oDirtyChange, bSkipUpdateCache));
|
|
741
741
|
}.bind(this), Promise.resolve());
|
|
742
742
|
};
|
|
743
743
|
|
|
@@ -779,14 +779,12 @@ sap.ui.define([
|
|
|
779
779
|
if (!bSkipUpdateCache) {
|
|
780
780
|
switch (oDirtyChange.getState()) {
|
|
781
781
|
case States.LifecycleState.NEW:
|
|
782
|
-
oDirtyChange.setState(States.LifecycleState.PERSISTED);
|
|
783
782
|
Cache.addChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
784
783
|
break;
|
|
785
784
|
case States.LifecycleState.DELETED:
|
|
786
785
|
Cache.deleteChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
787
786
|
break;
|
|
788
787
|
case States.LifecycleState.DIRTY:
|
|
789
|
-
oDirtyChange.setState(States.LifecycleState.PERSISTED);
|
|
790
788
|
Cache.updateChange(this._mComponent, oDirtyChange.convertToFileContent());
|
|
791
789
|
break;
|
|
792
790
|
default:
|
|
@@ -935,7 +933,7 @@ sap.ui.define([
|
|
|
935
933
|
|
|
936
934
|
return Storage.publish({
|
|
937
935
|
transportDialogSettings: {
|
|
938
|
-
rootControl: oRootControl, //TODO not used value, should be removed.
|
|
936
|
+
rootControl: oRootControl, // TODO not used value, should be removed.
|
|
939
937
|
styleClass: sStyleClass
|
|
940
938
|
},
|
|
941
939
|
layer: sLayer,
|
|
@@ -974,7 +972,7 @@ sap.ui.define([
|
|
|
974
972
|
var aLayers = [].concat(vLayer || []);
|
|
975
973
|
var aDirtyChanges = this._aDirtyChanges;
|
|
976
974
|
|
|
977
|
-
var aChangesToBeRemoved = aDirtyChanges.filter(function
|
|
975
|
+
var aChangesToBeRemoved = aDirtyChanges.filter(function(oChange) {
|
|
978
976
|
var bChangeValid = true;
|
|
979
977
|
|
|
980
978
|
if (aLayers.length && !aLayers.includes(oChange.getLayer())) {
|
|
@@ -997,7 +995,7 @@ sap.ui.define([
|
|
|
997
995
|
return bChangeValid;
|
|
998
996
|
});
|
|
999
997
|
|
|
1000
|
-
aChangesToBeRemoved.forEach(function
|
|
998
|
+
aChangesToBeRemoved.forEach(function(oChange) {
|
|
1001
999
|
var nIndex = aDirtyChanges.indexOf(oChange);
|
|
1002
1000
|
aDirtyChanges.splice(nIndex, 1);
|
|
1003
1001
|
FlexState.removeDirtyFlexObject(this._mComponent.name, oChange);
|
|
@@ -1023,7 +1021,7 @@ sap.ui.define([
|
|
|
1023
1021
|
var bSelectorIdsProvided = aSelectorIds && aSelectorIds.length > 0;
|
|
1024
1022
|
var bChangeTypesProvided = aChangeTypes && aChangeTypes.length > 0;
|
|
1025
1023
|
|
|
1026
|
-
//In case of application reset and PUBLIC layer available, also includes comp variant entities
|
|
1024
|
+
// In case of application reset and PUBLIC layer available, also includes comp variant entities
|
|
1027
1025
|
var isPublicLayerAvailable = Settings.getInstanceOrUndef() && Settings.getInstanceOrUndef().isPublicLayerAvailable();
|
|
1028
1026
|
var isApplicationReset = sGenerator === undefined && aSelectorIds === undefined && aChangeTypes === undefined;
|
|
1029
1027
|
var aCompVariantsEntries = [];
|
|
@@ -1052,11 +1050,11 @@ sap.ui.define([
|
|
|
1052
1050
|
}.bind(this))
|
|
1053
1051
|
.then(function(oResponse) {
|
|
1054
1052
|
var aChangesToRevert = [];
|
|
1055
|
-
//If reset changes for control, returns an array of deleted changes for reverting
|
|
1053
|
+
// If reset changes for control, returns an array of deleted changes for reverting
|
|
1056
1054
|
if (aSelectorIds || aChangeTypes) {
|
|
1057
1055
|
var aNames = [];
|
|
1058
1056
|
if (oResponse && oResponse.response && oResponse.response.length > 0) {
|
|
1059
|
-
oResponse.response.forEach(function
|
|
1057
|
+
oResponse.response.forEach(function(oChangeContentId) {
|
|
1060
1058
|
aNames.push(oChangeContentId.fileName);
|
|
1061
1059
|
});
|
|
1062
1060
|
}
|
|
@@ -69,18 +69,18 @@ sap.ui.define([
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
FakeLrepConnector.forTesting = {
|
|
72
|
-
getNumberOfChanges: function
|
|
72
|
+
getNumberOfChanges: function(oConnector, sReference) {
|
|
73
73
|
return oConnector.loadFlexData({reference: sReference})
|
|
74
|
-
.then(function
|
|
75
|
-
return aResponses.reduce(function
|
|
74
|
+
.then(function(aResponses) {
|
|
75
|
+
return aResponses.reduce(function(iNumberOfChanges, oResponse) {
|
|
76
76
|
return iNumberOfChanges + oResponse.changes.length;
|
|
77
77
|
}, 0);
|
|
78
78
|
});
|
|
79
79
|
},
|
|
80
|
-
spyMethod: function
|
|
80
|
+
spyMethod: function(sandbox, assert, oConnector, sMethod) {
|
|
81
81
|
var oSpy = sandbox.spy(oConnector, sMethod);
|
|
82
82
|
|
|
83
|
-
return function
|
|
83
|
+
return function(iNumberOfExpectedObjects, iCallIndex) {
|
|
84
84
|
iCallIndex = iCallIndex || 0;
|
|
85
85
|
var iNumberOfObjects = oSpy.getCall(iCallIndex).args[0].flexObjects.length;
|
|
86
86
|
assert.equal(iNumberOfObjects, iNumberOfExpectedObjects, sMethod + " was called " + iNumberOfExpectedObjects + " times");
|
|
@@ -94,7 +94,7 @@ sap.ui.define([
|
|
|
94
94
|
oConnector.storage = oNewStorage;
|
|
95
95
|
},
|
|
96
96
|
synchronous: {
|
|
97
|
-
clearAll: function
|
|
97
|
+
clearAll: function(oStorage) {
|
|
98
98
|
var fnRemoveItem = function(sKey) {
|
|
99
99
|
var bIsFlexObject = sKey.includes(FL_PREFIX);
|
|
100
100
|
|
|
@@ -107,7 +107,7 @@ sap.ui.define([
|
|
|
107
107
|
|
|
108
108
|
Object.keys(oStorage).map(fnRemoveItem);
|
|
109
109
|
},
|
|
110
|
-
store: function
|
|
110
|
+
store: function(oStorage, sKey, oItem) {
|
|
111
111
|
var sFlexKey = ObjectStorageUtils.createFlexKey(sKey);
|
|
112
112
|
var sItem = JSON.stringify(oItem);
|
|
113
113
|
oStorage.setItem(sFlexKey, sItem);
|
|
@@ -20,7 +20,7 @@ function(
|
|
|
20
20
|
* @namespace
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.116.0
|
|
24
24
|
*
|
|
25
25
|
* @private
|
|
26
26
|
* @since 1.48
|
|
@@ -34,25 +34,25 @@ function(
|
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
36
|
return {
|
|
37
|
-
enableFakeConnector: function
|
|
37
|
+
enableFakeConnector: function(mPropertyBag) {
|
|
38
38
|
var sJsonPath = mPropertyBag ? mPropertyBag.sInitialComponentJsonPath : undefined;
|
|
39
39
|
FakeLrepConnector.setFlexibilityServicesAndClearCache("LocalStorageConnector", sJsonPath);
|
|
40
40
|
},
|
|
41
|
-
disableFakeConnector: function
|
|
41
|
+
disableFakeConnector: function() {
|
|
42
42
|
FakeLrepConnector.disableFakeConnector();
|
|
43
43
|
},
|
|
44
44
|
forTesting: {
|
|
45
|
-
spyWrite: function
|
|
45
|
+
spyWrite: function(sandbox, assert) {
|
|
46
46
|
return FakeLrepConnector.forTesting.spyMethod(sandbox, assert, LocalStorageConnector, "write");
|
|
47
47
|
},
|
|
48
|
-
getNumberOfChanges: function
|
|
48
|
+
getNumberOfChanges: function(sReference) {
|
|
49
49
|
return FakeLrepConnector.forTesting.getNumberOfChanges(LocalStorageConnector, sReference);
|
|
50
50
|
},
|
|
51
51
|
synchronous: {
|
|
52
|
-
clearAll: function
|
|
52
|
+
clearAll: function() {
|
|
53
53
|
FakeLrepConnector.forTesting.synchronous.clearAll(window.localStorage);
|
|
54
54
|
},
|
|
55
|
-
store: function
|
|
55
|
+
store: function(sKey, oItem) {
|
|
56
56
|
FakeLrepConnector.forTesting.synchronous.store(window.localStorage, sKey, oItem);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -20,7 +20,7 @@ function(
|
|
|
20
20
|
* @namespace
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.116.0
|
|
24
24
|
*
|
|
25
25
|
* @private
|
|
26
26
|
* @since 1.58
|
|
@@ -34,7 +34,7 @@ function(
|
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
36
|
return {
|
|
37
|
-
enableFakeConnector: function
|
|
37
|
+
enableFakeConnector: function(mPropertyBag) {
|
|
38
38
|
var sJsonPath = mPropertyBag ? mPropertyBag.sInitialComponentJsonPath : undefined;
|
|
39
39
|
FakeLrepConnector.setFlexibilityServicesAndClearCache("SessionStorageConnector", sJsonPath);
|
|
40
40
|
},
|
|
@@ -42,10 +42,10 @@ function(
|
|
|
42
42
|
FakeLrepConnector.disableFakeConnector();
|
|
43
43
|
},
|
|
44
44
|
forTesting: {
|
|
45
|
-
spyWrite: function
|
|
45
|
+
spyWrite: function(sandbox, assert) {
|
|
46
46
|
return FakeLrepConnector.forTesting.spyMethod(sandbox, assert, SessionStorageConnector, "write");
|
|
47
47
|
},
|
|
48
|
-
getNumberOfChanges: function
|
|
48
|
+
getNumberOfChanges: function(sReference) {
|
|
49
49
|
return FakeLrepConnector.forTesting.getNumberOfChanges(SessionStorageConnector, sReference);
|
|
50
50
|
},
|
|
51
51
|
clear: function(mPropertyBag) {
|
|
@@ -55,7 +55,7 @@ function(
|
|
|
55
55
|
FakeLrepConnector.forTesting.setStorage(SessionStorageConnector, oNewStorage);
|
|
56
56
|
},
|
|
57
57
|
synchronous: {
|
|
58
|
-
clearAll: function
|
|
58
|
+
clearAll: function() {
|
|
59
59
|
FakeLrepConnector.forTesting.synchronous.clearAll(window.sessionStorage);
|
|
60
60
|
},
|
|
61
61
|
getNumberOfChanges: function(sReference) {
|