@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
58 lines (52 loc) • 1.76 kB
JavaScript
/*
* OpenUI5
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/ui/base/DataType"], (DataType) => {
"use strict";
/**
* Enumerations for p13n enum artifacts
* @namespace
* @name sap.m.p13n.enums
* @private
* @ui5-restricted sap.m.p13n
*/
/**
* Enumeration of the preferred persistence mode for personalization changes using the {@link sap.m.p13n.PersistenceProvider PersistenceProvider}
*
* @enum {string}
* @since 1.104
* @alias sap.m.p13n.enums.PersistenceMode
* @private
* @ui5-restricted sap.ui.mdc, sap.fe
*/
const PersistenceMode = {
/**
* Personalization changes are created in the SAPUI5 flexibility layer using <code>ignoreVariantManagement: true</code>
*
* @private
* @ui5-restricted sap.ui.mdc
*/
Global: "Global",
/**
* Personalization changes are created and implicitly persisted only if no additional <code>sap.ui.fl.variants.VariantManagement</code>
* control reference could be found. If a <code>sap.ui.fl.variants.VariantManagement</code> control has been found,
* it will be used instead.
*
* @private
* @ui5-restricted sap.fe
*/
Auto: "Auto",
/**
* Personalization changes are never persisted. Using this mode will ensure that personalization changes are never persisted in a <code>sap.ui.fl.variants.VariantManagement</code>.
* This mode should be used whenever it is certain that a control mustn't persist its personalization state.
*
* @private
* @ui5-restricted sap.ui.mdc, sap.fe
*/
Transient: "Transient"
};
DataType.registerEnum("sap.m.p13n.enums.PersistenceMode", PersistenceMode);
return PersistenceMode;
}, /* bExport= */ true);