/* * * GrapeCity InputMan Library 1.0.0 * http://grapecity.com/ * * Copyright(c) GrapeCity, Inc. All rights reserved. * **/ var __extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},GCIM;(function(n){var i=function(){function n(){}return n}(),e,u,o,f,r,t;n.ValidateAction=i,e=function(t){function i(i,r){t.call(this),this._invalidBackColor="",this._invalidForeColor="",this._validBackColor="",this._validForeColor="",typeof r!="undefined"&&(this._invalidBackColor=n.Utility.CheckColor(i),this._invalidForeColor=n.Utility.CheckColor(r))}return __extends(i,t),i.prototype.GetInvalidBackColor=function(){return this._invalidBackColor},i.prototype.SetInvalidBackColor=function(t){if(t===this._invalidBackColor)return;this._invalidBackColor=n.Utility.CheckColor(t)},i.prototype.GetInvalidForeColor=function(){return this._invalidForeColor},i.prototype.SetInvalidForeColor=function(t){if(t===this._invalidForeColor)return;this._invalidForeColor=n.Utility.CheckColor(t)},i.prototype.GetValidBackColor=function(){return this._validBackColor},i.prototype.SetValidBackColor=function(t){if(t===this._validBackColor)return;this._validBackColor=n.Utility.CheckColor(t)},i.prototype.GetValidForeColor=function(){return this._validForeColor},i.prototype.SetValidForeColor=function(t){if(t===this._validForeColor)return;this._validForeColor=n.Utility.CheckColor(t)},i}(i),n.ColorNotify=e,u=function(t){function i(i){t.call(this),this._blinkRate=250,this._blinkStyle=r.BlinkIfDifferentError,this._iconUrl="",this._iconAlignment=n.RelativePosition.Right,this._iconPadding=0,this._iconTip="",this._imageDiv={},this._imageElement={},this._timer={},typeof i!="undefined"&&(this._iconTip=n.Utility.CheckString(i))}return __extends(i,t),i.prototype.GetBlinkRate=function(){return this._blinkRate},i.prototype.SetBlinkRate=function(t){if(t===this._blinkRate)return;this._blinkRate=n.Utility.CheckInt(t)},i.prototype.GetBlinkStyle=function(){return this._blinkStyle},i.prototype.SetBlinkStyle=function(t){if(t===this._blinkStyle)return;this._blinkStyle=n.Utility.CheckEnum(r,t)},i.prototype.GetIconUrl=function(){return this._iconUrl},i.prototype.SetIconUrl=function(t){if(t===this._iconUrl)return;this._iconUrl=n.Utility.GetCssImageUrl(n.Utility.CheckCssImageUrl(t));if(this._imageElement)for(var i in this._imageElement)i.src=this._iconUrl},i.prototype.GetIconAlignment=function(){return this._iconAlignment},i.prototype.SetIconAlignment=function(t){if(t===this._iconAlignment)return;this._iconAlignment=n.Utility.CheckEnum(n.RelativePosition,t)},i.prototype.GetIconPadding=function(){return this._iconPadding},i.prototype.SetIconPadding=function(t){if(t===this._iconPadding)return;this._iconPadding=n.Utility.CheckInt(t)},i.prototype.GetIconTip=function(){return this._iconTip},i.prototype.SetIconTip=function(t){if(t===this._iconTip)return;this._iconTip=n.Utility.CheckString(t);if(this._imageElement)for(var i in this._imageElement)i.title=this._iconTip},i.prototype._createImageDiv=function(t,i){var f=this.GetIconUrl(),u,r;return f===""&&(f=n.Utility.BaseImageUrl+"ValidatorAction_Alert"+n.Component._getImageExtends(".png")),u=n.Utility.CreateInnerImage(f,20,20),u.title=this.GetIconTip()===""?n.Localization.GetString("ValidatorAction.DefaultErroInformation"):this.GetIconTip(),u.style.backgroundColor="transparent",r=n.Utility.CreateInnerDiv(),r.style.visibility="hidden",r.style.position="absolute",r.style.zIndex="999999",r.style.top="-1000px",r.style.left="-1000px",r.style.backgroundColor="transparent",r.appendChild(u),this._imageElement[i]=u,this._imageDiv[i]=r,r},i}(i),n.IconNotify=u,o=function(t){function i(i,r,u){t.call(this),this._backColor="",this._borderColor="",this._icon=n.IconType.Information,this._span=5e3,this._text="",this._title="",this._flatStyle=n.FlatStyle.Standard,this._balloonTip=null,this._tipInfo=null,typeof u!="undefined"?(this._text=n.Utility.CheckString(i),this._icon=n.Utility.CheckEnum(n.IconType,r),this._span=n.Utility.CheckInt(u)):typeof r!="undefined"&&(this._text=n.Utility.CheckString(i),this._title=n.Utility.CheckString(r))}return __extends(i,t),i.prototype.GetToolTipBackColor=function(){return this._backColor},i.prototype.SetToolTipBackColor=function(t){if(t===this._backColor)return;this._backColor=n.Utility.CheckColor(t),this._balloonTip&&this._balloonTip.GetBalloonTipInfo(0).SetBackColor(this._backColor)},i.prototype.GetToolTipBorderColor=function(){return this._borderColor},i.prototype.SetToolTipBorderColor=function(t){if(t===this._borderColor)return;this._borderColor=n.Utility.CheckColor(t),this._balloonTip&&this._balloonTip.GetBalloonTipInfo(0).SetBorderColor(this._borderColor)},i.prototype.GetToolTipIcon=function(){return this._icon},i.prototype.SetToolTipIcon=function(t){if(t===this._icon)return;this._icon=n.Utility.CheckEnum(n.IconType,t),this._balloonTip&&this._balloonTip.GetBalloonTipInfo(0).SetIcon(this._icon)},i.prototype.GetToolTipSpan=function(){return this._span},i.prototype.SetToolTipSpan=function(t){if(t===this._span)return;this._span=n.Utility.CheckInt(t),this._balloonTip&&this._balloonTip.GetBalloonTipInfo(0).SetSpan(this._span)},i.prototype.GetToolTipText=function(){return this._text},i.prototype.SetToolTipText=function(t){if(t===this._text)return;this._text=n.Utility.CheckString(t),this._balloonTip&&this._balloonTip.GetBalloonTipInfo(0).SetText(this._text)},i.prototype.GetToolTipTitle=function(){return this._title},i.prototype.SetToolTipTitle=function(t){if(t===this._title)return;this._title=n.Utility.CheckString(t),this._balloonTip&&this._balloonTip.GetBalloonTipInfo(0).SetCaption(this._title)},i.prototype.GetToolTipFlatStyle=function(){return this._flatStyle},i.prototype.SetToolTipFlatStyle=function(t){if(t===this._flatStyle)return;t!==n.InternalFlatStyle.JQueryUI&&(this._flatStyle=n.Utility.CheckEnum(n.FlatStyle,t)),this._balloonTip&&this._balloonTip.GetBalloonTipInfo(0).SetFlatStyle(this._flatStyle)},i.prototype._createBalloonTip=function(t,i){return this._balloonTip=new n.GcBalloonTip(t),this._balloonTip.AddBalloonTipInfo(i,this._getTipInfo()),this._balloonTip},i.prototype._getTipInfo=function(){if(this._tipInfo!==null)return this._tipInfo;this._tipInfo=new n.BalloonTipInfo,this._tipInfo.SetBackColor(this._backColor),this._tipInfo.SetBorderColor(this._borderColor),this._tipInfo.SetIcon(this._icon),this._tipInfo.SetSpan(this._span),this._tipInfo.SetText(this._text),this._tipInfo.SetCaption(this._title);var t=n.Utility.GetOSDefaultFontFamily();return this._tipInfo.SetCaptionFontFamily(t),this._tipInfo.SetTextFontFamily(t),this._tipInfo.SetUseCaptionFont(!0),this._tipInfo.SetUseTextFont(!0),this._tipInfo},i}(i),n.TipNotify=o,f=function(i){function r(r){i.call(this),this._option=t.Keep,typeof r!="undefined"&&(this._option=n.Utility.CheckEnum(t,r))}return __extends(r,i),r.prototype.GetValueProcessOption=function(){return this._option},r.prototype.SetValueProcessOption=function(i){if(i===this._option)return;this._option=n.Utility.CheckEnum(t,i)},r}(i),n.ValueProcess=f,r=function(){function n(){}return n.BlinkIfDifferentError="blinkifdifferenterror",n.AlwaysBlink="alwaysblink",n.NeverBlink="neverblink",n}(),n.BlinkStyle=r,t=function(){function n(){}return n.Keep="keep",n.Clear="clear",n.Restore="restore",n}(),n.ValueProcessOption=t})(GCIM||(GCIM={}));var __extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},GCIM;(function(n){var f=function(f){function e(n){f.call(this,null,n,!1),this._defaultActions=new t,this._useDefaultActions=new u(this),this._validateActions=new i(this),this._defaultActionsBindingState=new r(this),this._bindedValidators=[]}return __extends(e,f),e.prototype._dispose=function(){var l,u,s,i,h,r,e,t,a,o,c;f.prototype._dispose.call(this);if(typeof Page_Validators=="undefined")return;for(l=this._bindedValidators.length,u=0;u