text: /*!
   * UI development toolkit for HTML5 (OpenUI5)
   * (c) Copyright 2009-2016 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.ui.layout.
   */
  sap.ui.define(['jquery.sap.global', 'sap/ui/base/DataType',
  	'sap/ui/core/library'], // library dependency
  	function(jQuery, DataType) {
  
  	"use strict";
  
  	/**
  	 * SAPUI5 library with layout controls.
  	 *
  	 * @namespace
  	 * @name sap.ui.layout
  	 * @author SAP SE
  	 * @version 1.36.5
  	 * @public
  	 */
  
  	// delegate further initialization of this library to the Core
  	sap.ui.getCore().initLibrary({
  		name : "sap.ui.layout",
  		version: "1.36.5",
  		dependencies : ["sap.ui.core"],
  		types: [
  			"sap.ui.layout.BackgroundDesign",
  			"sap.ui.layout.GridIndent",
  			"sap.ui.layout.GridPosition",
  			"sap.ui.layout.GridSpan",
  			"sap.ui.layout.BlockBackgroundType",
  			"sap.ui.layout.form.GridElementCells",
  			"sap.ui.layout.form.SimpleFormLayout"
  		],
  		interfaces: [],
  		controls: [
  			"sap.ui.layout.DynamicSideContent",
  			"sap.ui.layout.FixFlex",
  			"sap.ui.layout.Grid",
  			"sap.ui.layout.HorizontalLayout",
  			"sap.ui.layout.ResponsiveFlowLayout",
  			"sap.ui.layout.Splitter",
  			"sap.ui.layout.VerticalLayout",
  			"sap.ui.layout.BlockLayoutCell",
  			"sap.ui.layout.BlockLayoutRow",
  			"sap.ui.layout.BlockLayout",
  			"sap.ui.layout.form.Form",
  			"sap.ui.layout.form.FormLayout",
  			"sap.ui.layout.form.GridLayout",
  			"sap.ui.layout.form.ResponsiveGridLayout",
  			"sap.ui.layout.form.ResponsiveLayout",
  			"sap.ui.layout.form.SimpleForm"
  		],
  		elements: [
  			"sap.ui.layout.GridData",
  			"sap.ui.layout.ResponsiveFlowLayoutData",
  			"sap.ui.layout.SplitterLayoutData",
  			"sap.ui.layout.form.FormContainer",
  			"sap.ui.layout.form.FormElement",
  			"sap.ui.layout.form.GridContainerData",
  			"sap.ui.layout.form.GridElementData"
  		]
  	});
  
  	/**
  	 * Available Background Design.
  	 *
  	 * @enum {string}
  	 * @public
  	 * @since 1.36.0
  	 * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.BackgroundDesign = {
  
  		/**
  		 * A solid background color dependent on the theme.
  		 * @public
  		 */
  		Solid : "Solid",
  
  		/**
  		 * Transparent background.
  		 * @public
  		 */
  		Transparent : "Transparent",
  
  		/**
  		 * A translucent background depending on the opacity value of the theme.
  		 * @public
  		 */
  		Translucent : "Translucent"
  
  	};
  
  	/**
  	 * @classdesc A string type that represents Grid's indent values for large, medium and small screens. Allowed values are separated by space Letters L, M or S followed by number of columns from 1 to 11 that the container has to take, for example: "L2 M4 S6", "M11", "s10" or "l4 m4". Note that the parameters have to be provided in the order large  medium  small.
  	 *
  	 * @final
  	 * @namespace
  	 * @public
  	 * @ui5-metamodel This simple type also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.GridIndent = DataType.createType('sap.ui.layout.GridIndent', {
  	    isValid : function(vValue) {
  	      return /^(([Xx][Ll](?:[0-9]|1[0-1]))? ?([Ll](?:[0-9]|1[0-1]))? ?([Mm](?:[0-9]|1[0-1]))? ?([Ss](?:[0-9]|1[0-1]))?)$/.test(vValue);
  	    }
  
  	  },
  	  DataType.getType('string')
  	);
  
  	/**
  	 * The position of the Grid. Can be "Left", "Center" or "Right". "Left" is default.
  	 *
  	 * @enum {string}
  	 * @public
  	 * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.GridPosition = {
  
  		/**
  		 * Grid is aligned left.
  		 * @public
  		 */
  		Left : "Left",
  
  		/**
  		 * Grid is aligned to the right.
  		 * @public
  		 */
  		Right : "Right",
  
  		/**
  		 * Grid is centered on the screen.
  		 * @public
  		 */
  		Center : "Center"
  
  	};
  
  
  	/**
  	 * @classdesc A string type that represents Grid's span values for large, medium and small screens. Allowed values are separated by space Letters L, M or S followed by number of columns from 1 to 12 that the container has to take, for example: "L2 M4 S6", "M12", "s10" or "l4 m4". Note that the parameters have to be provided in the order large  medium  small.
  	 *
  	 * @final
  	 * @namespace
  	 * @public
  	 * @ui5-metamodel This simple type also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.GridSpan = DataType.createType('sap.ui.layout.GridSpan', {
  	    isValid : function(vValue) {
  	      return /^(([Xx][Ll](?:[1-9]|1[0-2]))? ?([Ll](?:[1-9]|1[0-2]))? ?([Mm](?:[1-9]|1[0-2]))? ?([Ss](?:[1-9]|1[0-2]))?)$/.test(vValue);
  	    }
  
  	  },
  	  DataType.getType('string')
  	);
  
  		/**
  		 * A string type that is used inside the BlockLayout to set predefined background color to the cells inside
  		 * the control.
  		 * @namespace
  		 * @public
  		 * @ui5-metamodel This simple type also will be described in the UI5 (legacy) designtime metamodel
  		 * @type {{Default: string, Light: string}}
  		 */
  	sap.ui.layout.BlockBackgroundType = {
  		/**
  		 * Background is transparent
  		 * @public
  		 */
  		Default: "Default",
  		/**
  		 * Background is with predefined light colors
  		 * @public
  		 */
  		Light: "Light"
  	};
  
  	sap.ui.layout.form = sap.ui.layout.form || {};
  
  	/**
  	 * @classdesc A string that defines the number of used cells in a <code>GridLayout</code>. This can be a number from 1 to 16, "auto" or "full".
  	 * If set to "auto" the size is determined by the number of fields and the available cells. For labels the auto size is 3 cells.
  	 * If set to "full" only one field is allowed within the <code>FormElement</code>. It gets the full width of the row and the label is displayed above. <b>Note:</b> For labels full size has no effect.
  	 *
  	 * @namespace
  	 * @public
  	 * @ui5-metamodel This simple type also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.form.GridElementCells = DataType.createType('sap.ui.layout.form.GridElementCells', {
  		isValid : function(vValue) {
  			return /^(auto|full|([1-9]|1[0-6]))$/.test(vValue);
  			}
  
  		},
  		DataType.getType('string')
  	);
  
  
  	/**
  	 * Available <code>FormLayouts</code> used to render a <code>SimpleForm</code>.
  	 *
  	 * @enum {string}
  	 * @public
  	 * @since 1.16.0
  	 * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.form.SimpleFormLayout = {
  
  		/**
  		 * Uses the <code>ResponsiveLayout</code> to render the <code>SimpleForm</code>
  		 * @public
  		 */
  		ResponsiveLayout : "ResponsiveLayout",
  
  		/**
  		 * Uses the <code>GridLayout</code> to render the <code>SimpleForm</code>
  		 * @public
  		 */
  		GridLayout : "GridLayout",
  
  		/**
  		 * Uses the <code>ResponsiveGridLayout</code> to render the <code>SimpleForm</code>
  		 * @public
  		 * @since 1.16.0
  		 */
  		ResponsiveGridLayout : "ResponsiveGridLayout"
  
  	};
  
  	/**
  	 * Types of the DynamicSideContent Visibility options
  	 *
  	 * @enum {string}
  	 * @public
  	 * @since 1.30
  	 * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.SideContentVisibility = {
  		/**
  		 * Show the side content on any breakpoint
  		 * @public
  		 */
  		AlwaysShow: "AlwaysShow",
  		/**
  		 * Show the side content on XL breakpoint
  		 * @public
  		 */
  		ShowAboveL: "ShowAboveL",
  		/**
  		 * Show the side content on L and XL breakpoints
  		 * @public
  		 */
  		ShowAboveM: "ShowAboveM",
  		/**
  		 * Show the side content on M, L and XL breakpoints
  		 * @public
  		 */
  		ShowAboveS: "ShowAboveS",
  		/**
  		 * Don't show the side content on any breakpoints
  		 * @public
  		 */
  		NeverShow: "NeverShow"
  	};
  
  	/**
  	 * Types of the DynamicSideContent FallDown options
  	 *
  	 * @enum {string}
  	 * @public
  	 * @since 1.30
  	 * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.SideContentFallDown = {
  		/**
  		 * Side content falls down on breakpoints below XL
  		 * @public
  		 */
  		BelowXL: "BelowXL",
  		/**
  		 * Side content falls down on breakpoints below L
  		 * @public
  		 */
  		BelowL: "BelowL",
  		/**
  		 * Side content falls down on breakpoints below M
  		 * @public
  		 */
  		BelowM: "BelowM",
  		/**
  		 * Side content falls down on breakpoint M and the minimum width for the side content
  		 * @public
  		 */
  		OnMinimumWidth: "OnMinimumWidth"
  	};
  
  	/**
  	 * The position of the side content - End (default) and Begin.
  	 *
  	 * @enum {string}
  	 * @public
  	 * @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
  	 */
  	sap.ui.layout.SideContentPosition = {
  		/**
  		 * The side content is on the right side of the main container in left-to-right mode and on the left side in right-to-left mode.
  		 * @public
  		 */
  		End : "End",
  
  		/**
  		 * The side content is on the left side of the main container in left-to-right mode and on the right side in right-to-left mode.
  		 * @public
  		 */
  		Begin : "Begin"
  	};
  
  	// factory for Form to create labels an buttons to be overwritten by commons and mobile library
  	if (!sap.ui.layout.form.FormHelper) {
  		sap.ui.layout.form.FormHelper = {
  			createLabel: function(sText){ throw new Error("no Label control available!"); }, /* must return a Label control */
  			createButton: function(sId, fPressFunction){ throw new Error("no Button control available!"); }, /* must return a button control */
  			setButtonContent: function(oButton, sText, sTooltip, sIcon, sIconHovered){ throw new Error("no Button control available!"); },
  			addFormClass: function(){ return null; },
  			setToolbar: function(oToolbar){ return oToolbar; }, /* allow to overwrite toolbar settings */
  			bArrowKeySupport: true, /* enables the keyboard support for arrow keys */
  			bFinal: false /* if true, the helper must not be overwritten by an other library */
  		};
  	}
  
  	return sap.ui.layout;
  
  });
  