@openui5/sap.tnt
Version:
OpenUI5 UI Library sap.tnt
147 lines (131 loc) • 3.4 kB
JavaScript
/*!
* OpenUI5
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
/**
* Initialization Code and shared classes of library sap.tnt.
*/
sap.ui.define([
"./IllustratedMessageType",
"sap/ui/base/DataType",
"sap/ui/core/Lib",
"sap/ui/core/library",
"sap/m/library"],
function(IllustratedMessageType, DataType, Library) {
"use strict";
/**
* SAPUI5 library with controls specialized for administrative applications.
*
* @namespace
* @alias sap.tnt
* @author SAP SE
* @version 1.146.0
* @since 1.36
* @public
*/
var thisLib = Library.init({
apiVersion: 2,
name : "sap.tnt",
version: "1.146.0",
dependencies : ["sap.ui.core", "sap.m"],
designtime: "sap/tnt/designtime/library.designtime",
types: [
"sap.tnt.IllustratedMessageType",
"sap.tnt.RenderMode",
"sap.tnt.NavigationListItemDesign",
"sap.tnt.SideNavigationDesign"
],
interfaces: [
"sap.tnt.IToolHeader"
],
controls: [
"sap.tnt.NavigationList",
"sap.tnt.ToolHeaderUtilitySeparator",
"sap.tnt.ToolHeader",
"sap.tnt.SideNavigation",
"sap.tnt.ToolPage",
"sap.tnt.InfoLabel"
],
elements: [
"sap.tnt.NavigationListItem",
"sap.tnt.NavigationListGroup"
],
extensions: {
flChangeHandlers: {
"sap.tnt.NavigationList": "sap/tnt/flexibility/NavigationList",
"sap.tnt.NavigationListItem": "sap/tnt/flexibility/NavigationListItem",
"sap.tnt.NavigationListGroup": "sap/tnt/flexibility/NavigationListGroup"
}
}
});
thisLib.IllustratedMessageType = IllustratedMessageType;
/**
* Predefined types of <code>InfoLabel</code>
*
* @enum {string}
* @public
*/
thisLib.RenderMode = {
/**
* When type of the content of <code>InfoLabel</code> is numeric paddings are narrow
* @public
*/
Narrow: "Narrow",
/**
* When type of the content of <code>InfoLabel</code> is text padding are loose
* @public
*/
Loose: "Loose"
};
/**
* Available types for navigation list item.
* @public
* @enum {string}
* @since 1.133.0
*/
thisLib.NavigationListItemDesign = {
/**
* Navigation list item type which enables navigation or contains navigation child items, or both.
* @public
*/
Default: "Default",
/**
* Navigation list item type which provides access to frequent functionality.
* @public
*/
Action: "Action"
};
/**
* Available options for the Side Navigation design.
* @public
* @enum {string}
* @since 1.134.0
*/
thisLib.SideNavigationDesign = {
/**
* Side Navigation has a shadow and border.
* @public
*/
Decorated: "Decorated",
/**
* Side Navigation without any shadow or border.
* @public
*/
Plain: "Plain"
};
// Register all above defined enums.
DataType.registerEnum("sap.tnt.RenderMode", thisLib.RenderMode);
DataType.registerEnum("sap.tnt.NavigationListItemDesign", thisLib.NavigationListItemDesign);
DataType.registerEnum("sap.tnt.SideNavigationDesign", thisLib.SideNavigationDesign);
/**
* Interface for controls suitable for the <code>header</code> aggregation of {@link sap.tnt.ToolPage}.
*
* @since 1.68
* @name sap.tnt.IToolHeader
* @deprecated Since version 1.135. This interface is not needed anymore. The <code>ToolPage</code> now accepts any control as a header or subheader.
* @public
* @interface
*/
return thisLib;
});