@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.
Files changed (217) hide show
  1. package/.reuse/dep5 +25 -30
  2. package/THIRDPARTY.txt +15 -22
  3. package/package.json +3 -3
  4. package/src/sap/ui/fl/.library +1 -1
  5. package/src/sap/ui/fl/Cache.js +1 -1
  6. package/src/sap/ui/fl/Change.js +38 -230
  7. package/src/sap/ui/fl/ChangePersistence.js +113 -163
  8. package/src/sap/ui/fl/ChangePersistenceFactory.js +5 -3
  9. package/src/sap/ui/fl/FakeLrepConnectorLocalStorage.js +3 -4
  10. package/src/sap/ui/fl/FakeLrepConnectorSessionStorage.js +3 -4
  11. package/src/sap/ui/fl/FakeLrepLocalStorage.js +4 -4
  12. package/src/sap/ui/fl/FlexController.js +57 -71
  13. package/src/sap/ui/fl/FlexControllerFactory.js +6 -4
  14. package/src/sap/ui/fl/LayerUtils.js +1 -1
  15. package/src/sap/ui/fl/Utils.js +39 -313
  16. package/src/sap/ui/fl/Variant.js +5 -119
  17. package/src/sap/ui/fl/apply/_internal/DelegateMediator.js +2 -2
  18. package/src/sap/ui/fl/apply/_internal/changes/Applier.js +10 -8
  19. package/src/sap/ui/fl/apply/_internal/changes/FlexCustomData.js +1 -1
  20. package/src/sap/ui/fl/apply/_internal/changes/Reverter.js +1 -1
  21. package/src/sap/ui/fl/apply/_internal/changes/Utils.js +46 -2
  22. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Preprocessor.js +1 -1
  23. package/src/sap/ui/fl/apply/_internal/changes/descriptor/Registration.js +3 -2
  24. package/src/sap/ui/fl/apply/_internal/changes/descriptor/RegistrationBuild.js +1 -1
  25. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/AddAnnotationsToOData.js +1 -1
  26. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource.js +1 -1
  27. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeInbound.js +1 -1
  28. package/src/sap/ui/fl/apply/_internal/changes/descriptor/app/SetTitle.js +1 -1
  29. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetAbstract.js +1 -1
  30. package/src/sap/ui/fl/apply/_internal/changes/descriptor/fiori/SetRegistrationIds.js +1 -1
  31. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/AddNewCard.js +1 -1
  32. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/ChangeCard.js +1 -1
  33. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ovp/DeleteCard.js +1 -1
  34. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddComponentUsages.js +1 -1
  35. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddLibrary.js +1 -1
  36. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModel.js +1 -1
  37. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/AddNewModelEnhanceWith.js +1 -1
  38. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetFlexExtensionPointEnabled.js +1 -1
  39. package/src/sap/ui/fl/apply/_internal/changes/descriptor/ui5/SetMinUI5Version.js +1 -1
  40. package/src/sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils.js +1 -1
  41. package/src/sap/ui/fl/apply/_internal/controlVariants/URLHandler.js +6 -4
  42. package/src/sap/ui/fl/apply/_internal/extensionPoint/Processor.js +1 -1
  43. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariant.js +15 -10
  44. package/src/sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData.js +1 -1
  45. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObject.js +452 -0
  46. package/src/sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory.js +68 -0
  47. package/src/sap/ui/fl/apply/_internal/flexObjects/RevertData.js +1 -1
  48. package/src/sap/ui/fl/apply/_internal/flexState/FlexState.js +47 -23
  49. package/src/sap/ui/fl/apply/_internal/flexState/Loader.js +9 -5
  50. package/src/sap/ui/fl/apply/_internal/flexState/ManifestUtils.js +21 -22
  51. package/src/sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState.js +1 -1
  52. package/src/sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler.js +1 -1
  53. package/src/sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState.js +12 -10
  54. package/src/sap/ui/fl/apply/_internal/flexState/compVariants/CompVariantMerger.js +2 -2
  55. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/Switcher.js +1 -4
  56. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/VariantManagementState.js +17 -45
  57. package/src/sap/ui/fl/apply/_internal/flexState/controlVariants/prepareVariantsMap.js +6 -0
  58. package/src/sap/ui/fl/{PreprocessorImpl.js → apply/_internal/preprocessors/ControllerExtension.js} +43 -50
  59. package/src/sap/ui/fl/{EventHistory.js → apply/_internal/preprocessors/EventHistory.js} +7 -7
  60. package/src/sap/ui/fl/{RegistrationDelegator.js → apply/_internal/preprocessors/RegistrationDelegator.js} +40 -42
  61. package/src/sap/ui/fl/{XmlPreprocessorImpl.js → apply/_internal/preprocessors/XmlPreprocessor.js} +10 -8
  62. package/src/sap/ui/fl/apply/api/ControlVariantApplyAPI.js +1 -1
  63. package/src/sap/ui/fl/apply/api/DelegateMediatorAPI.js +1 -1
  64. package/src/sap/ui/fl/apply/api/FlexRuntimeInfoAPI.js +13 -0
  65. package/src/sap/ui/fl/apply/api/SmartVariantManagementApplyAPI.js +13 -2
  66. package/src/sap/ui/fl/changeHandler/AddIFrame.js +1 -1
  67. package/src/sap/ui/fl/changeHandler/AddXML.js +1 -1
  68. package/src/sap/ui/fl/changeHandler/AddXMLAtExtensionPoint.js +1 -1
  69. package/src/sap/ui/fl/changeHandler/Base.js +1 -1
  70. package/src/sap/ui/fl/changeHandler/BaseAddViaDelegate.js +1 -1
  71. package/src/sap/ui/fl/changeHandler/BaseAddXml.js +1 -1
  72. package/src/sap/ui/fl/changeHandler/BaseRename.js +1 -1
  73. package/src/sap/ui/fl/changeHandler/HideControl.js +1 -1
  74. package/src/sap/ui/fl/changeHandler/MoveControls.js +1 -1
  75. package/src/sap/ui/fl/changeHandler/MoveElements.js +1 -1
  76. package/src/sap/ui/fl/changeHandler/PropertyBindingChange.js +1 -1
  77. package/src/sap/ui/fl/changeHandler/PropertyChange.js +1 -1
  78. package/src/sap/ui/fl/changeHandler/StashControl.js +1 -1
  79. package/src/sap/ui/fl/changeHandler/UnhideControl.js +1 -1
  80. package/src/sap/ui/fl/changeHandler/UnstashControl.js +1 -1
  81. package/src/sap/ui/fl/changeHandler/UpdateIFrame.js +1 -1
  82. package/src/sap/ui/fl/codeExt/CodeExtManager.js +1 -1
  83. package/src/sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory.js +4 -4
  84. package/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js +1 -1
  85. package/src/sap/ui/fl/descriptorRelated/api/DescriptorVariantFactory.js +1 -1
  86. package/src/sap/ui/fl/designtime/variants/VariantManagement.designtime.js +9 -2
  87. package/src/sap/ui/fl/initial/_internal/Storage.js +1 -1
  88. package/src/sap/ui/fl/initial/_internal/StorageUtils.js +1 -1
  89. package/src/sap/ui/fl/initial/_internal/changeHandlers/ChangeRegistryItem.js +9 -9
  90. package/src/sap/ui/fl/initial/_internal/connectors/BackendConnector.js +1 -1
  91. package/src/sap/ui/fl/initial/_internal/connectors/LrepConnector.js +16 -6
  92. package/src/sap/ui/fl/initial/_internal/connectors/Utils.js +4 -3
  93. package/src/sap/ui/fl/initial/_internal/storageResultDisassemble.js +1 -1
  94. package/src/sap/ui/fl/interfaces/BaseLoadConnector.js +1 -1
  95. package/src/sap/ui/fl/interfaces/Delegate.js +1 -1
  96. package/src/sap/ui/fl/library.js +12 -12
  97. package/src/sap/ui/fl/messagebundle_ro.properties +1 -1
  98. package/src/sap/ui/fl/registry/Settings.js +52 -3
  99. package/src/sap/ui/fl/support/Flexibility.js +1 -1
  100. package/src/sap/ui/fl/support/_internal/getChangeDependencies.js +59 -0
  101. package/src/sap/ui/fl/support/_internal/getFlexSettings.js +34 -0
  102. package/src/sap/ui/fl/support/api/SupportAPI.js +31 -0
  103. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js +2 -2
  104. package/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetailsEdit.controller.js +1 -1
  105. package/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js +1 -1
  106. package/src/sap/ui/fl/support/apps/contentbrowser/controller/Layers.controller.js +1 -1
  107. package/src/sap/ui/fl/support/apps/contentbrowser/lrepConnector/LRepConnector.js +1 -1
  108. package/src/sap/ui/fl/support/apps/contentbrowser/utils/DataUtils.js +4 -4
  109. package/src/sap/ui/fl/support/apps/contentbrowser/utils/ErrorUtils.js +4 -4
  110. package/src/sap/ui/fl/support/apps/uiFlexibilityDiagnostics/helper/Extractor.js +3 -14
  111. package/src/sap/ui/fl/support/diagnostics/Flexibility.controller.js +1 -1
  112. package/src/sap/ui/fl/transport/TransportSelection.js +1 -1
  113. package/src/sap/ui/fl/util/DescriptorChangeCheck.js +1 -1
  114. package/src/sap/ui/fl/util/IFrame.js +1 -1
  115. package/src/sap/ui/fl/util/IFrameRenderer.js +1 -1
  116. package/src/sap/ui/fl/util/ManagedObjectModel.js +1 -1
  117. package/src/sap/ui/fl/util/changePropertyValueByPath.js +1 -1
  118. package/src/sap/ui/fl/util/resolveBinding.js +1 -1
  119. package/src/sap/ui/fl/variants/VariantManagement.js +7 -1
  120. package/src/sap/ui/fl/variants/VariantModel.js +32 -75
  121. package/src/sap/ui/fl/variants/context/Component.js +2 -6
  122. package/src/sap/ui/fl/variants/context/controller/ContextVisibility.controller.js +6 -41
  123. package/src/sap/ui/fl/variants/context/i18n/i18n.properties +3 -7
  124. package/src/sap/ui/fl/variants/context/i18n/i18n_ar.properties +2 -4
  125. package/src/sap/ui/fl/variants/context/i18n/i18n_bg.properties +2 -4
  126. package/src/sap/ui/fl/variants/context/i18n/i18n_ca.properties +2 -4
  127. package/src/sap/ui/fl/variants/context/i18n/i18n_cs.properties +2 -4
  128. package/src/sap/ui/fl/variants/context/i18n/i18n_cy.properties +2 -4
  129. package/src/sap/ui/fl/variants/context/i18n/i18n_da.properties +2 -4
  130. package/src/sap/ui/fl/variants/context/i18n/i18n_de.properties +2 -4
  131. package/src/sap/ui/fl/variants/context/i18n/i18n_el.properties +2 -4
  132. package/src/sap/ui/fl/variants/context/i18n/i18n_en.properties +2 -4
  133. package/src/sap/ui/fl/variants/context/i18n/i18n_en_GB.properties +2 -4
  134. package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_sappsd.properties +2 -4
  135. package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saprigi.properties +2 -4
  136. package/src/sap/ui/fl/variants/context/i18n/i18n_en_US_saptrc.properties +2 -4
  137. package/src/sap/ui/fl/variants/context/i18n/i18n_es.properties +2 -4
  138. package/src/sap/ui/fl/variants/context/i18n/i18n_es_MX.properties +2 -4
  139. package/src/sap/ui/fl/variants/context/i18n/i18n_et.properties +2 -4
  140. package/src/sap/ui/fl/variants/context/i18n/i18n_fi.properties +2 -4
  141. package/src/sap/ui/fl/variants/context/i18n/i18n_fr.properties +2 -4
  142. package/src/sap/ui/fl/variants/context/i18n/i18n_fr_CA.properties +2 -4
  143. package/src/sap/ui/fl/variants/context/i18n/i18n_hi.properties +2 -4
  144. package/src/sap/ui/fl/variants/context/i18n/i18n_hr.properties +2 -4
  145. package/src/sap/ui/fl/variants/context/i18n/i18n_hu.properties +2 -4
  146. package/src/sap/ui/fl/variants/context/i18n/i18n_id.properties +2 -4
  147. package/src/sap/ui/fl/variants/context/i18n/i18n_it.properties +2 -4
  148. package/src/sap/ui/fl/variants/context/i18n/i18n_iw.properties +2 -4
  149. package/src/sap/ui/fl/variants/context/i18n/i18n_ja.properties +2 -4
  150. package/src/sap/ui/fl/variants/context/i18n/i18n_kk.properties +2 -4
  151. package/src/sap/ui/fl/variants/context/i18n/i18n_ko.properties +2 -4
  152. package/src/sap/ui/fl/variants/context/i18n/i18n_lt.properties +2 -4
  153. package/src/sap/ui/fl/variants/context/i18n/i18n_lv.properties +2 -4
  154. package/src/sap/ui/fl/variants/context/i18n/i18n_ms.properties +2 -4
  155. package/src/sap/ui/fl/variants/context/i18n/i18n_nl.properties +2 -4
  156. package/src/sap/ui/fl/variants/context/i18n/i18n_no.properties +2 -4
  157. package/src/sap/ui/fl/variants/context/i18n/i18n_pl.properties +2 -4
  158. package/src/sap/ui/fl/variants/context/i18n/i18n_pt.properties +2 -4
  159. package/src/sap/ui/fl/variants/context/i18n/i18n_pt_PT.properties +2 -4
  160. package/src/sap/ui/fl/variants/context/i18n/i18n_ro.properties +2 -4
  161. package/src/sap/ui/fl/variants/context/i18n/i18n_ru.properties +2 -4
  162. package/src/sap/ui/fl/variants/context/i18n/i18n_sh.properties +2 -4
  163. package/src/sap/ui/fl/variants/context/i18n/i18n_sk.properties +2 -4
  164. package/src/sap/ui/fl/variants/context/i18n/i18n_sl.properties +2 -4
  165. package/src/sap/ui/fl/variants/context/i18n/i18n_sv.properties +2 -4
  166. package/src/sap/ui/fl/variants/context/i18n/i18n_th.properties +2 -4
  167. package/src/sap/ui/fl/variants/context/i18n/i18n_tr.properties +2 -4
  168. package/src/sap/ui/fl/variants/context/i18n/i18n_uk.properties +2 -4
  169. package/src/sap/ui/fl/variants/context/i18n/i18n_vi.properties +2 -4
  170. package/src/sap/ui/fl/variants/context/i18n/i18n_zh_CN.properties +2 -4
  171. package/src/sap/ui/fl/variants/context/i18n/i18n_zh_TW.properties +2 -4
  172. package/src/sap/ui/fl/variants/context/view/ContextVisibility.view.xml +7 -6
  173. package/src/sap/ui/fl/write/_internal/Storage.js +47 -1
  174. package/src/sap/ui/fl/write/_internal/StorageFeaturesMerger.js +1 -1
  175. package/src/sap/ui/fl/write/_internal/Versions.js +18 -19
  176. package/src/sap/ui/fl/write/_internal/appVariant/AppVariant.js +5 -1
  177. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantFactory.js +4 -2
  178. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChange.js +1 -1
  179. package/src/sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory.js +24 -1
  180. package/src/sap/ui/fl/write/_internal/condenser/Condenser.js +2 -2
  181. package/src/sap/ui/fl/write/_internal/condenser/UIReconstruction.js +1 -1
  182. package/src/sap/ui/fl/write/_internal/connectors/BackendConnector.js +3 -3
  183. package/src/sap/ui/fl/write/_internal/connectors/KeyUserConnector.js +60 -6
  184. package/src/sap/ui/fl/write/_internal/connectors/LrepConnector.js +59 -5
  185. package/src/sap/ui/fl/write/_internal/connectors/NeoLrepConnector.js +1 -1
  186. package/src/sap/ui/fl/write/_internal/connectors/ObjectPathConnector.js +1 -1
  187. package/src/sap/ui/fl/write/_internal/connectors/PersonalizationConnector.js +1 -1
  188. package/src/sap/ui/fl/write/_internal/connectors/Utils.js +1 -1
  189. package/src/sap/ui/fl/write/_internal/extensionPoint/Processor.js +1 -1
  190. package/src/sap/ui/fl/write/_internal/extensionPoint/Registry.js +1 -1
  191. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPAccess.js +4 -4
  192. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariant.js +1 -1
  193. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ABAPExtensibilityVariantFactory.js +1 -1
  194. package/src/sap/ui/fl/write/_internal/fieldExtensibility/MultiTenantABAPExtensibilityVariant.js +1 -1
  195. package/src/sap/ui/fl/write/_internal/fieldExtensibility/ServiceValidation.js +1 -1
  196. package/src/sap/ui/fl/write/_internal/fieldExtensibility/SingleTenantABAPExtensibilityVariant.js +1 -1
  197. package/src/sap/ui/fl/write/_internal/fieldExtensibility/UriParser.js +1 -1
  198. package/src/sap/ui/fl/write/_internal/fieldExtensibility/Utils.js +5 -5
  199. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/CAPAccess.js +1 -1
  200. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/dialog/CustomFieldCAPDialog.js +1 -1
  201. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
  202. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/rangeEditor/RangeEditor.js +1 -1
  203. package/src/sap/ui/fl/write/_internal/fieldExtensibility/cap/editor/propertyEditor/timeEditor/TimeEditor.js +1 -1
  204. package/src/sap/ui/fl/write/_internal/flexState/FlexObjectState.js +19 -5
  205. package/src/sap/ui/fl/write/_internal/flexState/compVariants/CompVariantState.js +1 -1
  206. package/src/sap/ui/fl/write/_internal/transport/TransportSelection.js +1 -1
  207. package/src/sap/ui/fl/write/_internal/transport/Transports.js +1 -1
  208. package/src/sap/ui/fl/write/api/AppVariantWriteAPI.js +13 -4
  209. package/src/sap/ui/fl/write/api/ControlPersonalizationWriteAPI.js +139 -39
  210. package/src/sap/ui/fl/write/api/FeaturesAPI.js +8 -2
  211. package/src/sap/ui/fl/write/api/FieldExtensibility.js +1 -1
  212. package/src/sap/ui/fl/write/api/PersistenceWriteAPI.js +87 -4
  213. package/src/sap/ui/fl/write/api/ReloadInfoAPI.js +4 -4
  214. package/src/sap/ui/fl/write/api/TranslationAPI.js +123 -0
  215. package/src/sap/ui/fl/write/api/VersionsAPI.js +1 -1
  216. package/src/sap/ui/fl/write/api/connectors/ObjectStorageConnector.js +2 -1
  217. package/src/sap/ui/fl/write/connectors/BaseConnector.js +43 -0
@@ -87,9 +87,11 @@ sap.ui.define([
87
87
  Change.applyState = {
88
88
  INITIAL: 0,
89
89
  APPLYING: 1,
90
- APPLY_FINISHED: 2,
90
+ APPLY_FINISHED: 2, // Deprecated
91
91
  REVERTING: 3,
92
- REVERT_FINISHED: 4
92
+ REVERT_FINISHED: 4,
93
+ APPLY_SUCCESSFUL: 5,
94
+ APPLY_FAILED: 6
93
95
  };
94
96
 
95
97
  Change.operations = {
@@ -154,10 +156,22 @@ sap.ui.define([
154
156
  this.setApplyState(Change.applyState.APPLYING);
155
157
  };
156
158
 
157
- Change.prototype.markFinished = function(oResult) {
159
+ // Deprecated, use markSuccessful or markFailed instead
160
+ Change.prototype.markFinished = function(oResult, bApplySuccessful) {
158
161
  this._aQueuedProcesses.pop();
159
162
  this._resolveChangeProcessingPromiseWithError(Change.operations.APPLY, oResult);
160
- this.setApplyState(Change.applyState.APPLY_FINISHED);
163
+ var sNewApplyState = bApplySuccessful !== false
164
+ ? Change.applyState.APPLY_SUCCESSFUL
165
+ : Change.applyState.APPLY_FAILED;
166
+ this.setApplyState(sNewApplyState);
167
+ };
168
+
169
+ Change.prototype.markSuccessful = function(oResult) {
170
+ this.markFinished(oResult, true);
171
+ };
172
+
173
+ Change.prototype.markFailed = function(oResult) {
174
+ this.markFinished(oResult, false);
161
175
  };
162
176
 
163
177
  Change.prototype.startReverting = function() {
@@ -174,8 +188,16 @@ sap.ui.define([
174
188
  return this.getApplyState() === Change.applyState.APPLYING;
175
189
  };
176
190
 
191
+ Change.prototype.isSuccessfullyApplied = function() {
192
+ return this.getApplyState() === Change.applyState.APPLY_SUCCESSFUL;
193
+ };
194
+
195
+ Change.prototype.hasApplyProcessFailed = function() {
196
+ return this.getApplyState() === Change.applyState.APPLY_FAILED;
197
+ };
198
+
177
199
  Change.prototype.isApplyProcessFinished = function() {
178
- return this.getApplyState() === Change.applyState.APPLY_FINISHED;
200
+ return this.isSuccessfullyApplied() || this.hasApplyProcessFailed();
179
201
  };
180
202
 
181
203
  Change.prototype.hasRevertProcessStarted = function() {
@@ -280,37 +302,6 @@ sap.ui.define([
280
302
  return true;
281
303
  };
282
304
 
283
- /**
284
- * Returns if the change is valid
285
- * @returns {boolean} <code>true</code> if the change is valid (all mandatory fields are filled, etc.)
286
- *
287
- * @public
288
- */
289
- Change.prototype.isValid = function () {
290
- var bIsValid = true;
291
-
292
- if (typeof (this._oDefinition) !== "object") {
293
- bIsValid = false;
294
- }
295
- if (!this._oDefinition.fileType) {
296
- bIsValid = false;
297
- }
298
- if (!this._oDefinition.fileName) {
299
- bIsValid = false;
300
- }
301
- if (!this._oDefinition.changeType) {
302
- bIsValid = false;
303
- }
304
- if (!this._oDefinition.layer) {
305
- bIsValid = false;
306
- }
307
- if (!this._oDefinition.originalLanguage) {
308
- bIsValid = false;
309
- }
310
-
311
- return bIsValid;
312
- };
313
-
314
305
  /**
315
306
  * Returns if the type of the change is <code>variant</code>.
316
307
  * @returns {boolean} <code>true</code> if the <code>fileType</code> of the change file is a variant
@@ -324,7 +315,7 @@ sap.ui.define([
324
315
  /**
325
316
  * Returns the change type.
326
317
  *
327
- * @returns {String} Change type of the file, for example <code>LabelChange</code>
318
+ * @returns {string} Change type of the file, for example <code>LabelChange</code>
328
319
  * @public
329
320
  */
330
321
  Change.prototype.getChangeType = function () {
@@ -336,7 +327,7 @@ sap.ui.define([
336
327
  /**
337
328
  * Returns the file name.
338
329
  *
339
- * @returns {String} <code>fileName</code> of the file
330
+ * @returns {string} <code>fileName</code> of the file
340
331
  * @public
341
332
  */
342
333
  Change.prototype.getFileName = function () {
@@ -348,27 +339,11 @@ sap.ui.define([
348
339
  /**
349
340
  * Returns the file type.
350
341
  *
351
- * @returns {String} <code>fileType</code> of the file
342
+ * @returns {string} <code>fileType</code> of the file
352
343
  * @public
353
344
  */
354
345
  Change.prototype.getFileType = function () {
355
- if (this._oDefinition) {
356
- return this._oDefinition.fileType;
357
- }
358
- };
359
-
360
- /**
361
- * Returns the original language in ISO 639-1 format.
362
- *
363
- * @returns {String} Original language
364
- *
365
- * @public
366
- */
367
- Change.prototype.getOriginalLanguage = function () {
368
- if (this._oDefinition && this._oDefinition.originalLanguage) {
369
- return this._oDefinition.originalLanguage;
370
- }
371
- return "";
346
+ return this._oDefinition.fileType;
372
347
  };
373
348
 
374
349
  /**
@@ -398,7 +373,7 @@ sap.ui.define([
398
373
  /**
399
374
  * Returns the namespace. The namespace of the change is also the namespace of the change file in the repository.
400
375
  *
401
- * @returns {String} Namespace of the change file
376
+ * @returns {string} Namespace of the change file
402
377
  *
403
378
  * @public
404
379
  */
@@ -420,7 +395,7 @@ sap.ui.define([
420
395
  /**
421
396
  * Returns the name of module which this change refers to (XML or JS).
422
397
  *
423
- * @returns {String} Module name
398
+ * @returns {string} Module name
424
399
  *
425
400
  * @public
426
401
  */
@@ -442,7 +417,7 @@ sap.ui.define([
442
417
  /**
443
418
  * Returns the project ID of the change. There might be multiple projects adapting a base application. The project ID helps to see where the change is coming from. If no <code>projectIDid</code> is specified, it is the <code>sap.app/id</code>.
444
419
  *
445
- * @returns {String} Project ID of the change file
420
+ * @returns {string} Project ID of the change file
446
421
  *
447
422
  * @public
448
423
  */
@@ -450,17 +425,6 @@ sap.ui.define([
450
425
  return this._oDefinition.projectId;
451
426
  };
452
427
 
453
- /**
454
- * Sets the project ID.
455
- *
456
- * @param {string} sProjectId - Project ID of the change file
457
- *
458
- * @public
459
- */
460
- Change.prototype.setProjectId = function (sProjectId) {
461
- this._oDefinition.projectId = sProjectId;
462
- };
463
-
464
428
  /**
465
429
  * Returns the ID of the change.
466
430
  * @returns {string} ID of the change file
@@ -529,38 +493,6 @@ sap.ui.define([
529
493
  this._oDefinition.selector = oSelector;
530
494
  };
531
495
 
532
- /**
533
- * Returns the source system of the change.
534
- *
535
- * @returns {String} Source system of the change file
536
- *
537
- * @public
538
- */
539
- Change.prototype.getSourceSystem = function () {
540
- return this._oDefinition.sourceSystem;
541
- };
542
-
543
- /**
544
- * Returns the source client of the change.
545
- *
546
- * @returns {String} Source client of the change file
547
- *
548
- * @public
549
- */
550
- Change.prototype.getSourceClient = function () {
551
- return this._oDefinition.sourceClient;
552
- };
553
-
554
- /**
555
- * Returns the user ID of the owner.
556
- * @returns {string} ID of the owner
557
- *
558
- * @public
559
- */
560
- Change.prototype.getOwnerId = function () {
561
- return this._oDefinition.support ? this._oDefinition.support.user : "";
562
- };
563
-
564
496
  /**
565
497
  * Returns the text in the current language for a given ID.
566
498
  *
@@ -613,80 +545,15 @@ sap.ui.define([
613
545
  }
614
546
  };
615
547
 
616
- /**
617
- * Returns <code>true</code> if the current layer is the same as the layer in which the change was created, or if the change is from the end-user layer and was created for this user.
618
- * @returns {boolean} <code>true</code> if the change file is read only
619
- *
620
- * @deprecated
621
- * @public
622
- */
623
- Change.prototype.isReadOnly = function () {
624
- return this._isReadOnlyDueToLayer() || this._isReadOnlyWhenNotKeyUser() || this.isChangeFromOtherSystem();
625
- };
626
-
627
- /**
628
- * Checks if the change is read only, because the current user is not a key user and the change is "shared".
629
- * @returns {boolean} <code>true</code> if the change is read only
630
- *
631
- * @deprecated
632
- * @private
633
- */
634
- Change.prototype._isReadOnlyWhenNotKeyUser = function () {
635
- if (this.isUserDependent()) {
636
- return false; // the user always can edit its own changes
637
- }
638
-
639
- var sReference = this.getDefinition().reference;
640
- if (!sReference) {
641
- return true; // without a reference the right to edit or delete a change cannot be determined
642
- }
643
-
644
- var oSettings = Settings.getInstanceOrUndef();
645
- if (!oSettings) {
646
- return true; // without settings the right to edit or delete a change cannot be determined
647
- }
648
- // a key user can edit changes
649
- return !oSettings.isKeyUser();
650
- };
651
-
652
- /**
653
- * Returns <code>true</code> if the label is read only. The label might be read only because of the current layer or because the logon language differs from the original language of the change file.
654
- *
655
- * @returns {boolean} <code>true</code> if the label is read only
656
- *
657
- * @deprecated
658
- * @public
659
- */
660
- Change.prototype.isLabelReadOnly = function () {
661
- if (this._isReadOnlyDueToLayer()) {
662
- return true;
663
- }
664
- return this._isReadOnlyDueToOriginalLanguage();
665
- };
666
-
667
- /**
668
- * Checks if the layer allows modifying the file.
669
- * @returns {boolean} <code>true</code> if the change is read only
670
- *
671
- * @deprecated
672
- * @private
673
- */
674
- Change.prototype._isReadOnlyDueToLayer = function () {
675
- var sCurrentLayer;
676
- sCurrentLayer = this._bUserDependent ? Layer.USER : LayerUtils.getCurrentLayer();
677
- return (this._oDefinition.layer !== sCurrentLayer);
678
- };
679
-
680
548
  /**
681
549
  * Checks if change is read only because of its source system.
682
550
  * @returns {boolean} <code>true</code> if the change is from another system
683
551
  *
684
- * @deprecated
685
552
  * @public
686
553
  */
687
554
  Change.prototype.isChangeFromOtherSystem = function () {
688
- var sSourceSystem = this.getSourceSystem();
689
- var sSourceClient = this.getSourceClient();
555
+ var sSourceSystem = this._oDefinition.sourceSystem;
556
+ var sSourceClient = this._oDefinition.sourceClient;
690
557
  if (!sSourceSystem || !sSourceClient) {
691
558
  return false;
692
559
  }
@@ -702,28 +569,6 @@ sap.ui.define([
702
569
  return (sSourceSystem !== sSystem || sSourceClient !== sClient);
703
570
  };
704
571
 
705
- /**
706
- * A change can only be modified if the current language equals the original language.
707
- * Returns <code>false</code> if the current language does not equal the original language of the change file.
708
- * Returns <code>false</code> if the original language is initial.
709
- *
710
- * @deprecated
711
- * @returns {boolean} <code>true</code> if the current logon language equals the original language of the change file
712
- *
713
- * @private
714
- */
715
- Change.prototype._isReadOnlyDueToOriginalLanguage = function () {
716
- var sCurrentLanguage;
717
- var sOriginalLanguage;
718
-
719
- sOriginalLanguage = this.getOriginalLanguage();
720
- if (!sOriginalLanguage) {
721
- return false;
722
- }
723
-
724
- sCurrentLanguage = Utils.getCurrentLanguage();
725
- return (sCurrentLanguage !== sOriginalLanguage);
726
- };
727
572
 
728
573
  /**
729
574
  * Marks the current change to be deleted persistently.
@@ -799,7 +644,7 @@ sap.ui.define([
799
644
  /**
800
645
  * Gets the creation timestamp.
801
646
  *
802
- * @returns {String} Creation timestamp
647
+ * @returns {string} Creation timestamp
803
648
  *
804
649
  * @public
805
650
  */
@@ -841,15 +686,6 @@ sap.ui.define([
841
686
  }
842
687
  };
843
688
 
844
- Change.prototype.getFullFileIdentifier = function () {
845
- var sLayer = this.getLayer();
846
- var sNamespace = this.getNamespace();
847
- var sFileName = this.getDefinition().fileName;
848
- var sFileType = this.getDefinition().fileType;
849
-
850
- return sLayer + "/" + sNamespace + "/" + sFileName + "." + sFileType;
851
- };
852
-
853
689
  /**
854
690
  * Adds the selector to the dependent selector list.
855
691
  *
@@ -1049,26 +885,6 @@ sap.ui.define([
1049
885
  this.setRevertData(null);
1050
886
  };
1051
887
 
1052
- /**
1053
- * Returns the undo operations.
1054
- *
1055
- * @returns {Array<*>} Array of undo operations
1056
- * @public
1057
- */
1058
- Change.prototype.getUndoOperations = function() {
1059
- return this._aUndoOperations;
1060
- };
1061
-
1062
- /**
1063
- * Sets the undo operations.
1064
- *
1065
- * @param {Array<*>} aData - Undo operations
1066
- * @public
1067
- */
1068
- Change.prototype.setUndoOperations = function(aData) {
1069
- this._aUndoOperations = aData;
1070
- };
1071
-
1072
888
  Change.prototype.getExtensionPointInfo = function() {
1073
889
  return this._oExtensionPointInfo;
1074
890
  };
@@ -1077,14 +893,6 @@ sap.ui.define([
1077
893
  this._oExtensionPointInfo = oExtensionPointInfo;
1078
894
  };
1079
895
 
1080
- /**
1081
- * Resets the undo operations
1082
- * @public
1083
- */
1084
- Change.prototype.resetUndoOperations = function() {
1085
- this.setUndoOperations(null);
1086
- };
1087
-
1088
896
  /**
1089
897
  * Creates and returns an instance of a change instance.
1090
898
  *
@@ -1145,7 +953,7 @@ sap.ui.define([
1145
953
  namespace: oPropertyBag.namespace || Utils.createNamespace(oPropertyBag, sFileType), //TODO: we need to think of a better way to create namespaces from Adaptation projects.
1146
954
  projectId: oPropertyBag.projectId || (oPropertyBag.reference && oPropertyBag.reference.replace(".Component", "")) || "",
1147
955
  creation: "",
1148
- originalLanguage: Utils.getCurrentLanguage(),
956
+ originalLanguage: Utils.getCurrentLanguage() || "",
1149
957
  support: {
1150
958
  generator: oPropertyBag.generator || "Change.createInitialFileContent",
1151
959
  service: oPropertyBag.service || "",