@openui5/sap.ui.fl 1.94.0 → 1.97.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 +12 -12
- package/THIRDPARTY.txt +21 -17
- 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 +18 -14
- package/src/sap/ui/fl/ChangePersistence.js +98 -86
- package/src/sap/ui/fl/ChangePersistenceFactory.js +1 -1
- package/src/sap/ui/fl/EventHistory.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +1 -1
- package/src/sap/ui/fl/FakeLrepLocalStorage.js +1 -1
- package/src/sap/ui/fl/FlexController.js +28 -22
- package/src/sap/ui/fl/FlexControllerFactory.js +17 -6
- package/src/sap/ui/fl/LayerUtils.js +34 -22
- package/src/sap/ui/fl/PreprocessorImpl.js +1 -1
- package/src/sap/ui/fl/RegistrationDelegator.js +1 -1
- package/src/sap/ui/fl/Utils.js +61 -41
- package/src/sap/ui/fl/Variant.js +2 -11
- package/src/sap/ui/fl/XmlPreprocessorImpl.js +10 -11
- package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +1 -1
- package/src/sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes.js +2 -1
- package/src/sap/ui/fl/apply/_internal/changes/Applier.js +33 -11
- package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/Utils.js +1 -1
- package/src/sap/ui/fl/apply/_internal/changes/descriptor/Applier.js +1 -1
- 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 +3 -2
- 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 +52 -0
- 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 +299 -288
- package/src/sap/ui/fl/apply/_internal/controlVariants/Utils.js +39 -9
- package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +10 -8
- package/src/sap/ui/fl/apply/_internal/flexObjects/States.js +14 -0
- package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +103 -33
- package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +45 -4
- package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +5 -1
- package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/appDescriptorChanges/prepareAppDescriptorMap.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 +1 -1
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
- package/src/sap/ui/fl/apply/_internal/flexState/compVariants/prepareCompVariantsMap.js +7 -7
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +2 -4
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +25 -38
- package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +1 -1
- package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +86 -6
- package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +83 -14
- 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 +6 -2
- package/src/sap/ui/fl/codeExt/CodeExtManager.js +16 -10
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +18 -1
- package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
- package/src/sap/ui/fl/designtime/util/IFrame.designtime.js +12 -8
- package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +10 -4
- 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 +1 -1
- package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +1 -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 +9 -9
- package/src/sap/ui/fl/library.support.js +56 -46
- package/src/sap/ui/fl/messagebundle.properties +30 -2
- package/src/sap/ui/fl/messagebundle_ar.properties +21 -2
- package/src/sap/ui/fl/messagebundle_bg.properties +21 -2
- package/src/sap/ui/fl/messagebundle_ca.properties +21 -2
- package/src/sap/ui/fl/messagebundle_cs.properties +21 -2
- package/src/sap/ui/fl/messagebundle_cy.properties +21 -2
- package/src/sap/ui/fl/messagebundle_da.properties +21 -2
- package/src/sap/ui/fl/messagebundle_de.properties +21 -2
- package/src/sap/ui/fl/messagebundle_el.properties +21 -2
- package/src/sap/ui/fl/messagebundle_en.properties +21 -2
- package/src/sap/ui/fl/messagebundle_en_GB.properties +21 -2
- package/src/sap/ui/fl/messagebundle_en_US_sappsd.properties +21 -2
- package/src/sap/ui/fl/messagebundle_en_US_saptrc.properties +21 -2
- package/src/sap/ui/fl/messagebundle_es.properties +21 -2
- package/src/sap/ui/fl/messagebundle_es_MX.properties +21 -2
- package/src/sap/ui/fl/messagebundle_et.properties +21 -2
- package/src/sap/ui/fl/messagebundle_fi.properties +21 -2
- package/src/sap/ui/fl/messagebundle_fr.properties +21 -2
- package/src/sap/ui/fl/messagebundle_fr_CA.properties +21 -2
- package/src/sap/ui/fl/messagebundle_hi.properties +21 -2
- package/src/sap/ui/fl/messagebundle_hr.properties +21 -2
- package/src/sap/ui/fl/messagebundle_hu.properties +21 -2
- package/src/sap/ui/fl/messagebundle_id.properties +21 -2
- package/src/sap/ui/fl/messagebundle_it.properties +22 -3
- package/src/sap/ui/fl/messagebundle_iw.properties +21 -2
- package/src/sap/ui/fl/messagebundle_ja.properties +21 -2
- package/src/sap/ui/fl/messagebundle_kk.properties +21 -2
- package/src/sap/ui/fl/messagebundle_ko.properties +21 -2
- package/src/sap/ui/fl/messagebundle_lt.properties +21 -2
- package/src/sap/ui/fl/messagebundle_lv.properties +21 -2
- package/src/sap/ui/fl/messagebundle_ms.properties +21 -2
- package/src/sap/ui/fl/messagebundle_nl.properties +21 -2
- package/src/sap/ui/fl/messagebundle_no.properties +21 -2
- package/src/sap/ui/fl/messagebundle_pl.properties +21 -2
- package/src/sap/ui/fl/messagebundle_pt.properties +21 -2
- package/src/sap/ui/fl/messagebundle_pt_PT.properties +21 -2
- package/src/sap/ui/fl/messagebundle_ro.properties +21 -2
- package/src/sap/ui/fl/messagebundle_ru.properties +21 -2
- package/src/sap/ui/fl/messagebundle_sh.properties +21 -2
- package/src/sap/ui/fl/messagebundle_sk.properties +21 -2
- package/src/sap/ui/fl/messagebundle_sl.properties +21 -2
- package/src/sap/ui/fl/messagebundle_sv.properties +21 -2
- package/src/sap/ui/fl/messagebundle_th.properties +19 -0
- package/src/sap/ui/fl/messagebundle_tr.properties +21 -2
- package/src/sap/ui/fl/messagebundle_uk.properties +21 -2
- package/src/sap/ui/fl/messagebundle_vi.properties +21 -2
- package/src/sap/ui/fl/messagebundle_zh_CN.properties +21 -2
- package/src/sap/ui/fl/messagebundle_zh_TW.properties +21 -2
- package/src/sap/ui/fl/registry/Settings.js +71 -38
- package/src/sap/ui/fl/support/Flexibility.js +83 -72
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +12 -12
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +8 -8
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +9 -9
- package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +3 -3
- package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +51 -52
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +129 -125
- package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +1 -1
- package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/controller/Root.controller.js +0 -2
- package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +1 -1
- package/src/sap/ui/fl/themes/base/VariantManagement.less +9 -37
- package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
- package/src/sap/ui/fl/util/DescriptorChangeCheck.js +2 -4
- package/src/sap/ui/fl/util/IFrame.js +10 -3
- package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
- package/src/sap/ui/fl/util/getContainerUserInfo.js +32 -28
- package/src/sap/ui/fl/util/resolveBinding.js +1 -1
- package/src/sap/ui/fl/variants/VariantManagement.js +279 -30
- package/src/sap/ui/fl/variants/VariantModel.js +178 -73
- package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +12 -2
- package/src/sap/ui/fl/write/_internal/Storage.js +7 -5
- package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
- package/src/sap/ui/fl/write/_internal/Versions.js +61 -54
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
- package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +20 -1
- package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +25 -3
- package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
- package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +2 -2
- package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +23 -23
- package/src/sap/ui/fl/write/_internal/connectors/LocalStorageConnector.js +2 -1
- package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +3 -3
- 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 +1 -1
- 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 -17
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.fragment.xml +1 -0
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +48 -19
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/getEditorConfig.js +60 -22
- 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.fragment.xml +1 -1
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +15 -22
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/validators/IsRequired.js +20 -0
- package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +15 -11
- package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +14 -13
- package/src/sap/ui/fl/write/_internal/transport/TransportDialog.js +5 -7
- package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +6 -5
- package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -2
- package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +117 -13
- package/src/sap/ui/fl/write/api/FeaturesAPI.js +1 -0
- package/src/sap/ui/fl/write/api/FieldExtensibility.js +28 -9
- package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +2 -1
- package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +20 -16
- package/src/sap/ui/fl/write/api/SmartVariantManagementWriteAPI.js +2 -0
- package/ui5.yaml +135 -1
- package/src/sap/ui/fl/ControlPersonalizationAPI.js +0 -477
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/annotationsEditor/AnnotationsEditor.js +0 -49
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/dateEditor/DateEditor.js +0 -43
- package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/dateTimeEditor/DateTimeEditor.js +0 -38
package/.reuse/dep5
CHANGED
|
@@ -309,7 +309,7 @@ License: MIT
|
|
|
309
309
|
Comment: these files belong to: lodash
|
|
310
310
|
|
|
311
311
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
312
|
-
Copyright:
|
|
312
|
+
Copyright: 2021 Mathias Nater
|
|
313
313
|
License: MIT
|
|
314
314
|
Comment: these files belong to: Hyphenopoly
|
|
315
315
|
|
|
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
|
|
|
347
347
|
License: BSD-2-Clause
|
|
348
348
|
Comment: these files belong to: Esprima
|
|
349
349
|
|
|
350
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
351
|
-
Copyright: 2006 Google Inc.
|
|
352
|
-
License: Apache-2.0
|
|
353
|
-
Comment: these files belong to: google-code-prettify
|
|
354
|
-
|
|
355
350
|
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
|
|
356
351
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
357
352
|
License: BSD-3-Clause
|
|
@@ -405,6 +400,11 @@ Copyright: 2014 Vitaly Puzrin, Alex Kocharin
|
|
|
405
400
|
License: MIT
|
|
406
401
|
Comment: these files belong to: Markdown-it
|
|
407
402
|
|
|
403
|
+
Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
404
|
+
Copyright: 2015-2017 Evgeny Poberezkin
|
|
405
|
+
License: MIT
|
|
406
|
+
Comment: these files belong to: ajv
|
|
407
|
+
|
|
408
408
|
|
|
409
409
|
# Library: sap.ui.mdc:
|
|
410
410
|
|
|
@@ -418,7 +418,7 @@ Comment: these files contain content from SAP and BooleanExpressionEvaluator: Bo
|
|
|
418
418
|
|
|
419
419
|
# Library: sap.ui.webc.common:
|
|
420
420
|
|
|
421
|
-
Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/
|
|
421
|
+
Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
422
422
|
Copyright: SAP
|
|
423
423
|
License: Apache-2.0
|
|
424
424
|
Comment: these files belong to: UI5 Web Components
|
|
@@ -452,11 +452,6 @@ Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
|
452
452
|
License: Apache-2.0
|
|
453
453
|
Comment: these files belong to: LESS
|
|
454
454
|
|
|
455
|
-
Files: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
456
|
-
Copyright: 2015-2017 Evgeny Poberezkin
|
|
457
|
-
License: MIT
|
|
458
|
-
Comment: these files belong to: ajv
|
|
459
|
-
|
|
460
455
|
Files: lib/jsdoc/ui5/plugin.js
|
|
461
456
|
Copyright:
|
|
462
457
|
2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
@@ -464,3 +459,8 @@ Copyright:
|
|
|
464
459
|
License: Apache-2.0
|
|
465
460
|
Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
|
|
466
461
|
|
|
462
|
+
Files: src/sap.ui.core/src/sap/ui/core/themes/base/base.less src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
|
|
463
|
+
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
464
|
+
License: Apache-2.0
|
|
465
|
+
Comment: these files belong to: SAP Theming Base Content
|
|
466
|
+
|
package/THIRDPARTY.txt
CHANGED
|
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
|
|
|
6
6
|
|
|
7
7
|
Library: sap.ui.codeeditor:
|
|
8
8
|
|
|
9
|
-
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.
|
|
9
|
+
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.13
|
|
10
10
|
Copyright: 2010, Ajax.org B.V.
|
|
11
11
|
License: BSD-3-Clause
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -197,7 +197,7 @@ License: BSD-3-Clause
|
|
|
197
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
199
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
200
|
+
Component: URI.js, version: 1.19.7
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -279,8 +279,8 @@ License: MIT
|
|
|
279
279
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
280
280
|
Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
|
|
281
281
|
|
|
282
|
-
Component: Hyphenopoly, version:
|
|
283
|
-
Copyright:
|
|
282
|
+
Component: Hyphenopoly, version: 3.4.0
|
|
283
|
+
Copyright: 2021 Mathias Nater
|
|
284
284
|
License: MIT
|
|
285
285
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
286
286
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
@@ -324,12 +324,6 @@ License: BSD-2-Clause
|
|
|
324
324
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
|
|
325
325
|
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
|
|
326
326
|
|
|
327
|
-
Component: google-code-prettify, version: 20130304
|
|
328
|
-
Copyright: 2006 Google Inc.
|
|
329
|
-
License: Apache-2.0
|
|
330
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
331
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
332
|
-
|
|
333
327
|
Component: highlight.js, version: 10.4.1
|
|
334
328
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
335
329
|
License: BSD-3-Clause
|
|
@@ -395,6 +389,12 @@ License: MIT
|
|
|
395
389
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
396
390
|
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
|
|
397
391
|
|
|
392
|
+
Component: ajv, version: 6.12.3
|
|
393
|
+
Copyright: 2015-2017 Evgeny Poberezkin
|
|
394
|
+
License: MIT
|
|
395
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
396
|
+
Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
397
|
+
|
|
398
398
|
|
|
399
399
|
Library: sap.ui.mdc:
|
|
400
400
|
|
|
@@ -412,10 +412,11 @@ Copyright: SAP
|
|
|
412
412
|
License: Apache-2.0
|
|
413
413
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
414
414
|
Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
415
|
-
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/
|
|
415
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.*
|
|
416
416
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.*
|
|
417
417
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.*
|
|
418
418
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
419
|
+
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
419
420
|
|
|
420
421
|
Component: lit-html, version: 1.4.1
|
|
421
422
|
Copyright: Google LLC
|
|
@@ -450,18 +451,21 @@ License: Apache-2.0
|
|
|
450
451
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
452
|
Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
452
453
|
|
|
453
|
-
Component: ajv, version: 6.12.3
|
|
454
|
-
Copyright: 2015-2017 Evgeny Poberezkin
|
|
455
|
-
License: MIT
|
|
456
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
457
|
-
Contained in: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
|
|
458
|
-
|
|
459
454
|
Component: JSDoc 3, version: 3.6.7
|
|
460
455
|
Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
461
456
|
License: Apache-2.0
|
|
462
457
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
463
458
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
464
459
|
|
|
460
|
+
Component: SAP Theming Base Content, version: 11.1.34
|
|
461
|
+
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
462
|
+
License: Apache-2.0
|
|
463
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
464
|
+
Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
|
|
465
|
+
src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less
|
|
466
|
+
src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less
|
|
467
|
+
src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
|
|
468
|
+
|
|
465
469
|
|
|
466
470
|
ALL LICENSE TEXTS:
|
|
467
471
|
==================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.fl",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.97.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.97.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.97.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-2021 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.97.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
package/src/sap/ui/fl/Change.js
CHANGED
|
@@ -13,6 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
"sap/ui/fl/registry/Settings",
|
|
14
14
|
"sap/base/Log",
|
|
15
15
|
"sap/ui/fl/apply/_internal/appVariant/DescriptorChangeTypes",
|
|
16
|
+
"sap/ui/fl/apply/_internal/flexObjects/States",
|
|
16
17
|
"sap/base/util/includes"
|
|
17
18
|
], function (
|
|
18
19
|
jQuery,
|
|
@@ -23,6 +24,7 @@ sap.ui.define([
|
|
|
23
24
|
Settings,
|
|
24
25
|
Log,
|
|
25
26
|
DescriptorChangeTypes,
|
|
27
|
+
States,
|
|
26
28
|
includes
|
|
27
29
|
) {
|
|
28
30
|
"use strict";
|
|
@@ -76,10 +78,10 @@ sap.ui.define([
|
|
|
76
78
|
});
|
|
77
79
|
|
|
78
80
|
Change.states = {
|
|
79
|
-
NEW:
|
|
80
|
-
PERSISTED:
|
|
81
|
-
DELETED:
|
|
82
|
-
DIRTY:
|
|
81
|
+
NEW: States.NEW,
|
|
82
|
+
PERSISTED: States.PERSISTED,
|
|
83
|
+
DELETED: States.DELETED,
|
|
84
|
+
DIRTY: States.DIRTY
|
|
83
85
|
};
|
|
84
86
|
|
|
85
87
|
Change.applyState = {
|
|
@@ -815,16 +817,6 @@ sap.ui.define([
|
|
|
815
817
|
return (this._bUserDependent);
|
|
816
818
|
};
|
|
817
819
|
|
|
818
|
-
/**
|
|
819
|
-
* Returns the pending action on the change item.
|
|
820
|
-
* @returns {string} One of the following values: DELETE/NEW/UPDATE/NONE
|
|
821
|
-
*
|
|
822
|
-
* @public
|
|
823
|
-
*/
|
|
824
|
-
Change.prototype.getPendingAction = function () {
|
|
825
|
-
return this.getState();
|
|
826
|
-
};
|
|
827
|
-
|
|
828
820
|
/**
|
|
829
821
|
* Gets the JSON definition of the change.
|
|
830
822
|
* @returns {object} Content of the change file
|
|
@@ -948,6 +940,15 @@ sap.ui.define([
|
|
|
948
940
|
return oModifier.bySelector(oDependentSelector, oAppComponent, mPropertyBag.view);
|
|
949
941
|
};
|
|
950
942
|
|
|
943
|
+
/**
|
|
944
|
+
* Returns the 'originalSelector' from the dependent selectors. This is only set in case of changes on a template.
|
|
945
|
+
*
|
|
946
|
+
* @returns {sap.ui.fl.selector} the original selector if available
|
|
947
|
+
*/
|
|
948
|
+
Change.prototype.getOriginalSelector = function() {
|
|
949
|
+
return this.getDefinition().dependentSelector && this.getDefinition().dependentSelector.originalSelector;
|
|
950
|
+
};
|
|
951
|
+
|
|
951
952
|
/**
|
|
952
953
|
* Returns all dependent selectors, including the selector from the selector of the change.
|
|
953
954
|
*
|
|
@@ -1034,6 +1035,9 @@ sap.ui.define([
|
|
|
1034
1035
|
* @public
|
|
1035
1036
|
*/
|
|
1036
1037
|
Change.prototype.setRevertData = function(vData) {
|
|
1038
|
+
if (vData === undefined) {
|
|
1039
|
+
throw new Error("Change cannot be applied in XML as revert data is not available yet. Retrying in JS.");
|
|
1040
|
+
}
|
|
1037
1041
|
this._vRevertData = vData;
|
|
1038
1042
|
};
|
|
1039
1043
|
|
|
@@ -138,13 +138,13 @@ sap.ui.define([
|
|
|
138
138
|
ChangePersistence.prototype._preconditionsFulfilled = function(oChangeOrChangeContent) {
|
|
139
139
|
var oChangeContent = oChangeOrChangeContent instanceof Change ? oChangeOrChangeContent.getDefinition() : oChangeOrChangeContent;
|
|
140
140
|
|
|
141
|
-
function
|
|
141
|
+
function isControlVariantChange() {
|
|
142
142
|
if ((oChangeContent.fileType === "ctrl_variant") || (oChangeContent.fileType === "ctrl_variant_change") || (oChangeContent.fileType === "ctrl_variant_management_change")) {
|
|
143
143
|
return oChangeContent.variantManagementReference || oChangeContent.variantReference || (oChangeContent.selector && oChangeContent.selector.id);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
return oChangeContent.fileType === "change" ||
|
|
147
|
+
return oChangeContent.fileType === "change" || isControlVariantChange();
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
/**
|
|
@@ -164,55 +164,60 @@ sap.ui.define([
|
|
|
164
164
|
* @public
|
|
165
165
|
*/
|
|
166
166
|
ChangePersistence.prototype.getChangesForComponent = function(mPropertyBag, bInvalidateCache) {
|
|
167
|
-
return
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
return Utils.getUShellService("URLParsing")
|
|
168
|
+
.then(function(oURLParsingService) {
|
|
169
|
+
this._oUShellURLParsingService = oURLParsingService;
|
|
170
|
+
return Cache.getChangesFillingCache(this._mComponent, mPropertyBag, bInvalidateCache);
|
|
171
|
+
}.bind(this))
|
|
172
|
+
.then(function(mPropertyBag, oWrappedChangeFileContent) {
|
|
173
|
+
var oChangeFileContent = merge({}, oWrappedChangeFileContent);
|
|
174
|
+
var oAppComponent = mPropertyBag && mPropertyBag.component && Utils.getAppComponentForControl(mPropertyBag.component);
|
|
175
|
+
|
|
176
|
+
var bHasFlexObjects = StorageUtils.isStorageResponseFilled(oChangeFileContent.changes);
|
|
177
|
+
|
|
178
|
+
if (!bHasFlexObjects) {
|
|
179
|
+
return [];
|
|
180
|
+
}
|
|
176
181
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
182
|
+
var aChanges = oChangeFileContent.changes.changes;
|
|
183
|
+
|
|
184
|
+
//Binds a json model of message bundle to the component the first time a change within the vendor layer was detected
|
|
185
|
+
//It enables the translation of changes
|
|
186
|
+
if (!this._oMessagebundle && oChangeFileContent.messagebundle && oAppComponent) {
|
|
187
|
+
if (!oAppComponent.getModel("i18nFlexVendor")) {
|
|
188
|
+
if (aChanges.some(function(oChange) {
|
|
189
|
+
return oChange.layer === Layer.VENDOR;
|
|
190
|
+
})) {
|
|
191
|
+
this._oMessagebundle = oChangeFileContent.messagebundle;
|
|
192
|
+
var oModel = new JSONModel(this._oMessagebundle);
|
|
193
|
+
oAppComponent.setModel(oModel, "i18nFlexVendor");
|
|
194
|
+
}
|
|
189
195
|
}
|
|
190
196
|
}
|
|
191
|
-
}
|
|
192
197
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
198
|
+
var sCurrentLayer = mPropertyBag && mPropertyBag.currentLayer;
|
|
199
|
+
var bFilterMaxLayer = !(mPropertyBag && mPropertyBag.ignoreMaxLayerParameter);
|
|
200
|
+
var fnFilter = function() { return true; };
|
|
201
|
+
if (sCurrentLayer) {
|
|
202
|
+
aChanges = LayerUtils.filterChangeOrChangeDefinitionsByCurrentLayer(aChanges, sCurrentLayer);
|
|
203
|
+
} else if (LayerUtils.isLayerFilteringRequired(this._oUShellURLParsingService) && bFilterMaxLayer) {
|
|
204
|
+
fnFilter = this._filterChangeForMaxLayer.bind(this);
|
|
205
|
+
//If layer filtering required, excludes changes in higher layer than the max layer
|
|
206
|
+
aChanges = aChanges.filter(fnFilter);
|
|
207
|
+
} else if (this._bHasChangesOverMaxLayer && !bFilterMaxLayer) {
|
|
208
|
+
// ignoreMaxLayerParameter = true is set from flexController.hasHigherLayerChanges(),
|
|
209
|
+
// triggered by rta.stop(), to check if reload needs to be performed
|
|
210
|
+
// as ctrl variant changes are already gone and to improve performance, just return the constant
|
|
211
|
+
this._bHasChangesOverMaxLayer = false;
|
|
212
|
+
return this.HIGHER_LAYER_CHANGES_EXIST;
|
|
213
|
+
}
|
|
209
214
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
215
|
+
var bIncludeControlVariants = oChangeFileContent.changes && mPropertyBag && mPropertyBag.includeCtrlVariants;
|
|
216
|
+
var aFilteredVariantChanges = this._getAllCtrlVariantChanges(oChangeFileContent, bIncludeControlVariants, fnFilter);
|
|
217
|
+
aChanges = aChanges.concat(aFilteredVariantChanges);
|
|
213
218
|
|
|
214
|
-
|
|
215
|
-
|
|
219
|
+
return this._checkAndGetChangeInstances(aChanges, oChangeFileContent);
|
|
220
|
+
}.bind(this, mPropertyBag));
|
|
216
221
|
};
|
|
217
222
|
|
|
218
223
|
ChangePersistence.prototype._checkAndGetChangeInstances = function(aChanges, oChangeFileContent) {
|
|
@@ -222,7 +227,7 @@ sap.ui.define([
|
|
|
222
227
|
};
|
|
223
228
|
|
|
224
229
|
ChangePersistence.prototype._filterChangeForMaxLayer = function(oChangeOrChangeContent) {
|
|
225
|
-
if (LayerUtils.isOverMaxLayer(this._getLayerFromChangeOrChangeContent(oChangeOrChangeContent))) {
|
|
230
|
+
if (LayerUtils.isOverMaxLayer(this._getLayerFromChangeOrChangeContent(oChangeOrChangeContent), this._oUShellURLParsingService)) {
|
|
226
231
|
if (!this._bHasChangesOverMaxLayer) {
|
|
227
232
|
this._bHasChangesOverMaxLayer = true;
|
|
228
233
|
}
|
|
@@ -414,7 +419,7 @@ sap.ui.define([
|
|
|
414
419
|
* @param {map} mPropertyBag - Contains additional data needed for reading changes
|
|
415
420
|
* @param {string} [mPropertyBag.layer] - Specifies a single layer for loading changes
|
|
416
421
|
* @param {boolean} [mPropertyBag.includeDirtyChanges] - Whether dirty changes of the current session should be included
|
|
417
|
-
* @returns {
|
|
422
|
+
* @returns {sap.ui.fl.Change[]} Array of changes
|
|
418
423
|
* @public
|
|
419
424
|
*/
|
|
420
425
|
ChangePersistence.prototype.getAllUIChanges = function(mPropertyBag) {
|
|
@@ -654,6 +659,7 @@ sap.ui.define([
|
|
|
654
659
|
* @param {boolean} [bSkipUpdateCache] - If true, then the dirty change shall be saved for the new created app variant, but not for the current app;
|
|
655
660
|
* therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
|
|
656
661
|
* @param {sap.ui.fl.Change} [aChanges] - If passed only those changes are saved
|
|
662
|
+
* @param {number} nParentVersion - Parent version
|
|
657
663
|
* @returns {Promise} Resolving after all changes have been saved
|
|
658
664
|
*/
|
|
659
665
|
ChangePersistence.prototype.saveDirtyChanges = function(oAppComponent, bSkipUpdateCache, aChanges, nParentVersion) {
|
|
@@ -667,9 +673,9 @@ sap.ui.define([
|
|
|
667
673
|
var aChangesClone = aAllChanges.slice(0);
|
|
668
674
|
var aDirtyChangesClone = aDirtyChanges.slice(0);
|
|
669
675
|
var aRequests = this._getRequests(aDirtyChanges);
|
|
670
|
-
var
|
|
676
|
+
var aStates = this._getStates(aDirtyChanges);
|
|
671
677
|
|
|
672
|
-
if (
|
|
678
|
+
if (aStates.length === 1 && aRequests.length === 1 && aStates[0] === Change.states.NEW) {
|
|
673
679
|
var oCondensedChangesPromise = Promise.resolve(aChangesClone);
|
|
674
680
|
if (shouldCondensingBeEnabled(oAppComponent, aChangesClone)) {
|
|
675
681
|
oCondensedChangesPromise = Condenser.condense(oAppComponent, aChangesClone);
|
|
@@ -726,7 +732,7 @@ sap.ui.define([
|
|
|
726
732
|
// in case of changes saved for a draft only the first writing operation must have the parentVersion targeting the basis
|
|
727
733
|
// followup changes must point the the existing draft created with the first request
|
|
728
734
|
var aNewChanges = aDirtyChanges.filter(function (oChange) {
|
|
729
|
-
return oChange.
|
|
735
|
+
return oChange.getState() === Change.states.NEW;
|
|
730
736
|
});
|
|
731
737
|
oFirstNewChange = [].concat(aNewChanges).shift();
|
|
732
738
|
}
|
|
@@ -740,24 +746,23 @@ sap.ui.define([
|
|
|
740
746
|
|
|
741
747
|
ChangePersistence.prototype._performSingleSaveAction = function(oDirtyChange, oFirstChange, nParentVersion) {
|
|
742
748
|
return function() {
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
nParentVersion
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
});
|
|
749
|
+
switch (oDirtyChange.getState()) {
|
|
750
|
+
case Change.states.NEW:
|
|
751
|
+
if (nParentVersion !== undefined) {
|
|
752
|
+
nParentVersion = oDirtyChange === oFirstChange ? nParentVersion : sap.ui.fl.Versions.Draft;
|
|
753
|
+
}
|
|
754
|
+
return Storage.write({
|
|
755
|
+
layer: oDirtyChange.getLayer(),
|
|
756
|
+
flexObjects: [oDirtyChange.getDefinition()],
|
|
757
|
+
transport: oDirtyChange.getRequest(),
|
|
758
|
+
parentVersion: nParentVersion
|
|
759
|
+
});
|
|
760
|
+
case Change.states.DELETED:
|
|
761
|
+
return Storage.remove({
|
|
762
|
+
flexObject: oDirtyChange.getDefinition(),
|
|
763
|
+
layer: oDirtyChange.getLayer(),
|
|
764
|
+
transport: oDirtyChange.getRequest()
|
|
765
|
+
});
|
|
761
766
|
}
|
|
762
767
|
};
|
|
763
768
|
};
|
|
@@ -775,14 +780,20 @@ sap.ui.define([
|
|
|
775
780
|
reference: this._mComponent.name,
|
|
776
781
|
changeToBeAddedOrDeleted: oDirtyChange
|
|
777
782
|
});
|
|
778
|
-
} else
|
|
779
|
-
oDirtyChange.
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
783
|
+
} else {
|
|
784
|
+
switch (oDirtyChange.getState()) {
|
|
785
|
+
case Change.states.NEW:
|
|
786
|
+
oDirtyChange.setState(Change.states.PERSISTED);
|
|
787
|
+
Cache.addChange(this._mComponent, oDirtyChange.getDefinition());
|
|
788
|
+
break;
|
|
789
|
+
case Change.states.DELETED:
|
|
790
|
+
Cache.deleteChange(this._mComponent, oDirtyChange.getDefinition());
|
|
791
|
+
break;
|
|
792
|
+
case Change.states.DIRTY:
|
|
793
|
+
oDirtyChange.setState(Change.states.PERSISTED);
|
|
794
|
+
Cache.updateChange(this._mComponent, oDirtyChange.getDefinition());
|
|
795
|
+
break;
|
|
796
|
+
}
|
|
786
797
|
}
|
|
787
798
|
}
|
|
788
799
|
|
|
@@ -792,7 +803,8 @@ sap.ui.define([
|
|
|
792
803
|
};
|
|
793
804
|
|
|
794
805
|
/**
|
|
795
|
-
* @param {
|
|
806
|
+
* @param {sap.ui.fl.Change[]} aDirtyChanges - Array of dirty changes
|
|
807
|
+
* @param {boolean} [bSkipUpdateCache]- If <code>true</code>, then the dirty change shall be saved for the newly created app variant, but not for the current app;
|
|
796
808
|
* therefore, the cache update of the current app is skipped because the dirty change is not saved for the running app.
|
|
797
809
|
*/
|
|
798
810
|
ChangePersistence.prototype._massUpdateCacheAndDirtyState = function(aDirtyChanges, bSkipUpdateCache) {
|
|
@@ -814,17 +826,17 @@ sap.ui.define([
|
|
|
814
826
|
return aRequests;
|
|
815
827
|
};
|
|
816
828
|
|
|
817
|
-
ChangePersistence.prototype.
|
|
818
|
-
var
|
|
829
|
+
ChangePersistence.prototype._getStates = function(aDirtyChanges) {
|
|
830
|
+
var aStates = [];
|
|
819
831
|
|
|
820
832
|
aDirtyChanges.forEach(function(oChange) {
|
|
821
|
-
var
|
|
822
|
-
if (
|
|
823
|
-
|
|
833
|
+
var sState = oChange.getState();
|
|
834
|
+
if (aStates.indexOf(sState) === -1) {
|
|
835
|
+
aStates.push(sState);
|
|
824
836
|
}
|
|
825
837
|
});
|
|
826
838
|
|
|
827
|
-
return
|
|
839
|
+
return aStates;
|
|
828
840
|
};
|
|
829
841
|
|
|
830
842
|
ChangePersistence.prototype._prepareDirtyChanges = function(aDirtyChanges) {
|
|
@@ -846,7 +858,7 @@ sap.ui.define([
|
|
|
846
858
|
* @see {ChangePersistence#saveDirtyChanges};
|
|
847
859
|
*
|
|
848
860
|
* If the given change is already in the dirty changes and
|
|
849
|
-
* has
|
|
861
|
+
* has the 'NEW' state it will be removed, assuming,
|
|
850
862
|
* it has just been created in the current session;
|
|
851
863
|
*
|
|
852
864
|
* Otherwise it will be marked for deletion.
|
|
@@ -858,7 +870,7 @@ sap.ui.define([
|
|
|
858
870
|
var nIndexInDirtyChanges = this._aDirtyChanges.indexOf(oChange);
|
|
859
871
|
|
|
860
872
|
if (nIndexInDirtyChanges > -1) {
|
|
861
|
-
if (oChange.
|
|
873
|
+
if (oChange.getState() === Change.states.DELETED) {
|
|
862
874
|
return;
|
|
863
875
|
}
|
|
864
876
|
this._aDirtyChanges.splice(nIndexInDirtyChanges, 1);
|
|
@@ -1066,4 +1078,4 @@ sap.ui.define([
|
|
|
1066
1078
|
};
|
|
1067
1079
|
|
|
1068
1080
|
return ChangePersistence;
|
|
1069
|
-
}
|
|
1081
|
+
});
|